diff --git a/129.eb265bbe.iframe.bundle.js.map b/129.eb265bbe.iframe.bundle.js.map deleted file mode 100644 index f9ef493fc..000000000 --- a/129.eb265bbe.iframe.bundle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"129.eb265bbe.iframe.bundle.js","mappings":";;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://lightning-ui-docs/../../../node_modules/@storybook/addon-docs/dist/DocsRenderer-NNNQARDV.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/react-dom-shim/dist/react-18.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/addon-docs/dist/chunk-HLWAVYOI.mjs","webpack://lightning-ui-docs/../../../node_modules/memoizerific/ sync","webpack://lightning-ui-docs/../../../node_modules/react-dom/client.js"],"sourcesContent":["export { DocsRenderer, defaultComponents } from './chunk-HLWAVYOI.mjs';\n","import React, { useRef, useLayoutEffect } from 'react';\nimport ReactDOM from 'react-dom/client';\n\nvar nodes=new Map,WithCallback=({callback,children})=>{let once=useRef();return useLayoutEffect(()=>{once.current!==callback&&(once.current=callback,callback());},[callback]),children},renderElement=async(node,el)=>{let root=await getReactRoot(el);return new Promise(resolve=>{root.render(React.createElement(WithCallback,{callback:()=>resolve(null)},node));})},unmountElement=(el,shouldUseNewRootApi)=>{let root=nodes.get(el);root&&(root.unmount(),nodes.delete(el));},getReactRoot=async el=>{let root=nodes.get(el);return root||(root=ReactDOM.createRoot(el),nodes.set(el,root)),root};\n\nexport { renderElement, unmountElement };\n","import React, { Component } from 'react';\nimport { renderElement, unmountElement } from '@storybook/react-dom-shim';\nimport { CodeOrSourceMdx, AnchorMdx, HeadersMdx, Docs } from '@storybook/blocks';\n\nvar defaultComponents={code:CodeOrSourceMdx,a:AnchorMdx,...HeadersMdx},ErrorBoundary=class extends Component{constructor(){super(...arguments);this.state={hasError:!1};}static getDerivedStateFromError(){return {hasError:!0}}componentDidCatch(err){let{showException}=this.props;showException(err);}render(){let{hasError}=this.state,{children}=this.props;return hasError?null:React.createElement(React.Fragment,null,children)}},DocsRenderer=class{constructor(){this.render=async(context,docsParameter,element)=>{let components={...defaultComponents,...docsParameter?.components},TDocs=Docs;return new Promise((resolve,reject)=>{import('@mdx-js/react').then(({MDXProvider})=>renderElement(React.createElement(ErrorBoundary,{showException:reject,key:Math.random()},React.createElement(MDXProvider,{components},React.createElement(TDocs,{context,docsParameter}))),element)).then(()=>resolve());})},this.unmount=element=>{unmountElement(element);};}};\n\nexport { DocsRenderer, defaultComponents };\n","function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = \"../../../node_modules/memoizerific sync recursive\";\nmodule.exports = webpackEmptyContext;","'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/1363.803b976b.iframe.bundle.js b/1363.803b976b.iframe.bundle.js deleted file mode 100644 index c3a1b2c25..000000000 --- a/1363.803b976b.iframe.bundle.js +++ /dev/null @@ -1,908 +0,0 @@ -"use strict"; -(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[1363],{ - -/***/ "../../@lightningjs/ui-components/src/components/ListItem/ListItemSlider.stories.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - ListItemSlider: () => (/* binding */ ListItemSlider), - __namedExportsOrder: () => (/* binding */ __namedExportsOrder), - "default": () => (/* binding */ ListItemSlider_stories) -}); - -// NAMESPACE OBJECT: ../../@lightningjs/ui-components/src/components/ListItem/NestedSlider.styles.js -var NestedSlider_styles_namespaceObject = {}; -__webpack_require__.r(NestedSlider_styles_namespaceObject); -__webpack_require__.d(NestedSlider_styles_namespaceObject, { - base: () => (base), - mode: () => (mode), - tone: () => (tone) -}); - -// NAMESPACE OBJECT: ../../@lightningjs/ui-components/src/components/ListItem/ListItemSlider.styles.js -var ListItemSlider_styles_namespaceObject = {}; -__webpack_require__.r(ListItemSlider_styles_namespaceObject); -__webpack_require__.d(ListItemSlider_styles_namespaceObject, { - base: () => (ListItemSlider_styles_base), - mode: () => (ListItemSlider_styles_mode), - tone: () => (ListItemSlider_styles_tone) -}); - -// EXTERNAL MODULE: ../../../node_modules/@lightningjs/core/dist/lightning.esm.js -var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/ListItem/NestedSlider.styles.js -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - -var base = function base() { - return { - showArrows: false, - showKnob: false - }; -}; -var mode = function mode() { - return { - focused: { - showArrows: true - } - }; -}; -var tone = function tone(theme) { - return { - neutral: { - mode: { - focused: { - arrowColor: theme.color.fillInverse, - progressBar: { - barColor: theme.color.fillInverseTertiary, - progressColor: theme.color.fillInverse - } - } - } - }, - inverse: { - mode: { - focused: { - arrowColor: theme.color.fillNeutral, - progressBar: { - barColor: theme.color.fillNeutralTertiary, - progressColor: theme.color.fillNeutral - } - } - } - }, - brand: { - mode: { - focused: { - arrowColor: theme.color.fillInverse, - progressBar: { - barColor: theme.color.fillBrandTertiary, - progressColor: theme.color.fillBrand - } - } - } - } - }; -}; -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Slider/Slider.js + 1 modules -var Slider = __webpack_require__("../../@lightningjs/ui-components/src/components/Slider/Slider.js"); -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/ListItem/NestedSlider.js -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - - -var NestedSlider = /*#__PURE__*/function (_Slider) { - _inherits(NestedSlider, _Slider); - var _super = _createSuper(NestedSlider); - function NestedSlider() { - _classCallCheck(this, NestedSlider); - return _super.apply(this, arguments); - } - _createClass(NestedSlider, null, [{ - key: "__componentName", - get: function get() { - return 'NestedSlider'; - } - }, { - key: "__themeStyle", - get: function get() { - return NestedSlider_styles_namespaceObject; - } - }]); - return NestedSlider; -}(Slider/* default */.A); - -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/ListItem/ListItem.js + 1 modules -var ListItem = __webpack_require__("../../@lightningjs/ui-components/src/components/ListItem/ListItem.js"); -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/ListItem/ListItemSlider.styles.js -function ListItemSlider_styles_typeof(o) { "@babel/helpers - typeof"; return ListItemSlider_styles_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, ListItemSlider_styles_typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = ListItemSlider_styles_toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function ListItemSlider_styles_toPropertyKey(t) { var i = ListItemSlider_styles_toPrimitive(t, "string"); return "symbol" == ListItemSlider_styles_typeof(i) ? i : String(i); } -function ListItemSlider_styles_toPrimitive(t, r) { if ("object" != ListItemSlider_styles_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != ListItemSlider_styles_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - -var ListItemSlider_styles_base = function base(theme) { - return { - paddingY: theme.spacer.md + theme.spacer.xs, - valueTextStyle: _objectSpread(_objectSpread({}, theme.typography.headline3), {}, { - maxLines: 1, - textColor: theme.color.textNeutralSecondary - }) - }; -}; -var ListItemSlider_styles_mode = function mode(theme) { - return { - disabled: { - valueTextStyle: { - textColor: theme.color.textNeutralDisabled - } - }, - focused: { - valueTextStyle: { - textColor: theme.color.textInverseSecondary - } - } - }; -}; -var ListItemSlider_styles_tone = function tone(theme) { - return { - neutral: { - mode: { - focused: { - valueTextStyle: { - textColor: theme.color.textInverseSecondary - } - } - } - }, - inverse: { - mode: { - focused: { - valueTextStyle: { - textColor: theme.color.textNeutralSecondary - } - } - } - }, - brand: { - mode: { - focused: { - valueTextStyle: { - textColor: theme.color.textInverseSecondary - } - } - } - } - }; -}; -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/TextBox/TextBox.js + 1 modules -var TextBox = __webpack_require__("../../@lightningjs/ui-components/src/components/TextBox/TextBox.js"); -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/ListItem/ListItemSlider.js -function ListItemSlider_typeof(o) { "@babel/helpers - typeof"; return ListItemSlider_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, ListItemSlider_typeof(o); } -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } -function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function ListItemSlider_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function ListItemSlider_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ListItemSlider_ownKeys(Object(t), !0).forEach(function (r) { ListItemSlider_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ListItemSlider_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function ListItemSlider_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function ListItemSlider_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, ListItemSlider_toPropertyKey(descriptor.key), descriptor); } } -function ListItemSlider_createClass(Constructor, protoProps, staticProps) { if (protoProps) ListItemSlider_defineProperties(Constructor.prototype, protoProps); if (staticProps) ListItemSlider_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function set(target, property, value, receiver) { if (typeof Reflect !== "undefined" && Reflect.set) { set = Reflect.set; } else { set = function set(target, property, value, receiver) { var base = _superPropBase(target, property); var desc; if (base) { desc = Object.getOwnPropertyDescriptor(base, property); if (desc.set) { desc.set.call(receiver, value); return true; } else if (!desc.writable) { return false; } } desc = Object.getOwnPropertyDescriptor(receiver, property); if (desc) { if (!desc.writable) { return false; } desc.value = value; Object.defineProperty(receiver, property, desc); } else { ListItemSlider_defineProperty(receiver, property, value); } return true; }; } return set(target, property, value, receiver); } -function _set(target, property, value, receiver, isStrict) { var s = set(target, property, value, receiver || target); if (!s && isStrict) { throw new TypeError('failed to set property'); } return value; } -function ListItemSlider_defineProperty(obj, key, value) { key = ListItemSlider_toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function ListItemSlider_toPropertyKey(t) { var i = ListItemSlider_toPrimitive(t, "string"); return "symbol" == ListItemSlider_typeof(i) ? i : String(i); } -function ListItemSlider_toPrimitive(t, r) { if ("object" != ListItemSlider_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != ListItemSlider_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); } -function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = ListItemSlider_getPrototypeOf(object); if (object === null) break; } return object; } -function ListItemSlider_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) ListItemSlider_setPrototypeOf(subClass, superClass); } -function ListItemSlider_setPrototypeOf(o, p) { ListItemSlider_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return ListItemSlider_setPrototypeOf(o, p); } -function ListItemSlider_createSuper(Derived) { var hasNativeReflectConstruct = ListItemSlider_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = ListItemSlider_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = ListItemSlider_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return ListItemSlider_possibleConstructorReturn(this, result); }; } -function ListItemSlider_possibleConstructorReturn(self, call) { if (call && (ListItemSlider_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return ListItemSlider_assertThisInitialized(self); } -function ListItemSlider_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -function ListItemSlider_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; } } -function ListItemSlider_getPrototypeOf(o) { ListItemSlider_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return ListItemSlider_getPrototypeOf(o); } -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - - - - -var ListItemSlider_ListItemSlider = /*#__PURE__*/function (_ListItem) { - ListItemSlider_inherits(ListItemSlider, _ListItem); - var _super = ListItemSlider_createSuper(ListItemSlider); - function ListItemSlider() { - ListItemSlider_classCallCheck(this, ListItemSlider); - return _super.apply(this, arguments); - } - ListItemSlider_createClass(ListItemSlider, [{ - key: "_construct", - value: function _construct() { - _get(ListItemSlider_getPrototypeOf(ListItemSlider.prototype), "_construct", this).call(this); - this.value = 50; - this.max = 100; - this.min = 0; - } - }, { - key: "_update", - value: function _update() { - _get(ListItemSlider_getPrototypeOf(ListItemSlider.prototype), "_update", this).call(this); - this._updateSliderPosition(); - this._updateValue(); - } - }, { - key: "_onTextBoxChanged", - value: function _onTextBoxChanged() { - _get(ListItemSlider_getPrototypeOf(ListItemSlider.prototype), "_onTextBoxChanged", this).call(this); - this._TextWrapper.h = Math.max(this._Title ? this._Title.h : 0, this._Value ? this._Value.h : 0); - } - }, { - key: "_updateValue", - value: function _updateValue() { - if (this._hasValue) { - var valuePatch = { - content: this.value.toString(), - style: { - textStyle: ListItemSlider_objectSpread({}, this.style.valueTextStyle) - }, - mountX: 1, - x: this.w - this._paddingX - }; - if (!this._Value) { - valuePatch = ListItemSlider_objectSpread({ - type: TextBox/* default */.A, - signals: { - textBoxChanged: '_onTextBoxChanged' - } - }, valuePatch); - } - this._TextWrapper.patch({ - Value: valuePatch - }); - } else { - this._TextWrapper.patch({ - Value: undefined - }); - } - } - }, { - key: "_updateSliderPosition", - value: function _updateSliderPosition() { - var w = this.w - this._paddingLeft - this._paddingRight; - var sliderProps = ListItemSlider_objectSpread(ListItemSlider_objectSpread({ - mode: this.mode, - tone: this.tone, - w: w, - x: w / 2, - visible: !this._collapse, - alpha: this.style.alpha - }, this.slider), {}, { - value: this.value, - max: this.max, - min: this.min - }); - this._Slider.patch(sliderProps); - } - }, { - key: "_hasValue", - get: function get() { - return this.value != undefined || this.value != null; - } - }, { - key: "_fixedWordWrapWidth", - get: function get() { - var titleWrapWidth = this.w - this._paddingLeft - this._paddingRight - this._paddingX; - return titleWrapWidth; - } - }, { - key: "_onSliderChanged", - value: function _onSliderChanged(value) { - this.value = value; - this._updateValue(); - this.signal('onSliderChange', value, this); - } - }, { - key: "_handleLeft", - value: function _handleLeft() { - if (typeof this.onLeft === 'function') { - return this.onLeft(this); - } else if (this._Slider && !this._isDisabledMode) { - return this._Slider._handleLeft(); - } - return false; - } - }, { - key: "_handleRight", - value: function _handleRight() { - if (typeof this.onRight === 'function') { - return this.onRight(this); - } else if (this._Slider && !this._isDisabledMode) { - return this._Slider._handleRight(); - } - return false; - } - }, { - key: "announce", - get: function get() { - if (this._announce) { - return this._announce; - } - return this.title + this.value + ', List Item Slider'; - }, - set: function set(announce) { - _set(ListItemSlider_getPrototypeOf(ListItemSlider.prototype), "announce", announce, this, true); - } - }], [{ - key: "__componentName", - get: function get() { - return 'ListItemSlider'; - } - }, { - key: "__themeStyle", - get: function get() { - return ListItemSlider_styles_namespaceObject; - } - }, { - key: "_template", - value: function _template() { - var template = _get(ListItemSlider_getPrototypeOf(ListItemSlider), "_template", this); - return ListItemSlider_objectSpread(ListItemSlider_objectSpread({}, template()), {}, { - Content: ListItemSlider_objectSpread(ListItemSlider_objectSpread({}, template().Content), {}, { - flex: { - direction: 'column' - }, - TextWrapper: ListItemSlider_objectSpread(ListItemSlider_objectSpread({}, template().Content.TextWrapper), {}, { - mountY: 0, - flex: undefined - }), - Slider: { - type: NestedSlider, - mountX: 0.5, - signals: { - onChange: '_onSliderChanged' - } - } - }) - }); - } - }, { - key: "properties", - get: function get() { - return [].concat(_toConsumableArray(_get(ListItemSlider_getPrototypeOf(ListItemSlider), "properties", this)), ['slider', 'value', 'max', 'min']); - } - }, { - key: "aliasStyles", - get: function get() { - return [{ - prev: 'titlePadding', - curr: 'contentSpacing' - }]; - } - }, { - key: "tags", - get: function get() { - return [].concat(_toConsumableArray(_get(ListItemSlider_getPrototypeOf(ListItemSlider), "tags", this)), [{ - name: 'Slider', - path: 'Content.Slider' - }, { - name: 'Value', - path: 'Content.TextWrapper.Value' - }]); - } - }]); - return ListItemSlider; -}(ListItem/* default */.A); - -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/docs/utils.js -var utils = __webpack_require__("../../@lightningjs/ui-components/src/docs/utils.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Slider/Slider.stories.js -var Slider_stories = __webpack_require__("../../@lightningjs/ui-components/src/components/Slider/Slider.stories.js"); -// EXTERNAL MODULE: external "__STORYBOOK_MODULE_CLIENT_API__" -var external_STORYBOOK_MODULE_CLIENT_API_ = __webpack_require__("@storybook/client-api"); -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/ListItem/ListItemSlider.stories.js -function ListItemSlider_stories_typeof(o) { - "@babel/helpers - typeof"; - - return ListItemSlider_stories_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { - return typeof o; - } : function (o) { - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; - }, ListItemSlider_stories_typeof(o); -} -function ListItemSlider_stories_ownKeys(e, r) { - var t = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(e); - r && (o = o.filter(function (r) { - return Object.getOwnPropertyDescriptor(e, r).enumerable; - })), t.push.apply(t, o); - } - return t; -} -function ListItemSlider_stories_objectSpread(e) { - for (var r = 1; r < arguments.length; r++) { - var t = null != arguments[r] ? arguments[r] : {}; - r % 2 ? ListItemSlider_stories_ownKeys(Object(t), !0).forEach(function (r) { - ListItemSlider_stories_defineProperty(e, r, t[r]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ListItemSlider_stories_ownKeys(Object(t)).forEach(function (r) { - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); - }); - } - return e; -} -function ListItemSlider_stories_defineProperty(obj, key, value) { - key = ListItemSlider_stories_toPropertyKey(key); - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} -function ListItemSlider_stories_classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} -function ListItemSlider_stories_defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, ListItemSlider_stories_toPropertyKey(descriptor.key), descriptor); - } -} -function ListItemSlider_stories_createClass(Constructor, protoProps, staticProps) { - if (protoProps) ListItemSlider_stories_defineProperties(Constructor.prototype, protoProps); - if (staticProps) ListItemSlider_stories_defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { - writable: false - }); - return Constructor; -} -function ListItemSlider_stories_toPropertyKey(t) { - var i = ListItemSlider_stories_toPrimitive(t, "string"); - return "symbol" == ListItemSlider_stories_typeof(i) ? i : String(i); -} -function ListItemSlider_stories_toPrimitive(t, r) { - if ("object" != ListItemSlider_stories_typeof(t) || !t) return t; - var e = t[Symbol.toPrimitive]; - if (void 0 !== e) { - var i = e.call(t, r || "default"); - if ("object" != ListItemSlider_stories_typeof(i)) return i; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return ("string" === r ? String : Number)(t); -} -function ListItemSlider_stories_inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { - writable: false - }); - if (superClass) ListItemSlider_stories_setPrototypeOf(subClass, superClass); -} -function ListItemSlider_stories_setPrototypeOf(o, p) { - ListItemSlider_stories_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return ListItemSlider_stories_setPrototypeOf(o, p); -} -function ListItemSlider_stories_createSuper(Derived) { - var hasNativeReflectConstruct = ListItemSlider_stories_isNativeReflectConstruct(); - return function _createSuperInternal() { - var Super = ListItemSlider_stories_getPrototypeOf(Derived), - result; - if (hasNativeReflectConstruct) { - var NewTarget = ListItemSlider_stories_getPrototypeOf(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); - } - return ListItemSlider_stories_possibleConstructorReturn(this, result); - }; -} -function ListItemSlider_stories_possibleConstructorReturn(self, call) { - if (call && (ListItemSlider_stories_typeof(call) === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { - throw new TypeError("Derived constructors may only return object or undefined"); - } - return ListItemSlider_stories_assertThisInitialized(self); -} -function ListItemSlider_stories_assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - return self; -} -function ListItemSlider_stories_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; - } -} -function ListItemSlider_stories_getPrototypeOf(o) { - ListItemSlider_stories_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return ListItemSlider_stories_getPrototypeOf(o); -} -function _slicedToArray(arr, i) { - return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || ListItemSlider_stories_unsupportedIterableToArray(arr, i) || _nonIterableRest(); -} -function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} -function ListItemSlider_stories_unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return ListItemSlider_stories_arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return ListItemSlider_stories_arrayLikeToArray(o, minLen); -} -function ListItemSlider_stories_arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; - return arr2; -} -function _iterableToArrayLimit(r, l) { - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; - if (null != t) { - var e, - n, - i, - u, - a = [], - f = !0, - o = !1; - try { - if (i = (t = t.call(r)).next, 0 === l) { - if (Object(t) !== t) return; - f = !1; - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); - } catch (r) { - o = !0, n = r; - } finally { - try { - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; - } finally { - if (o) throw n; - } - } - return a; - } -} -function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; -} -/* eslint-disable */ -// @ts-nocheck -// @ts-expect-error (Converted from ts-ignore) -var __STORY__ = "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport { default as ListItemSliderComponent } from './ListItemSlider';\nimport { createModeControl, generateSubStory } from '../../docs/utils';\nimport { Basic as SliderStory } from '../Slider/Slider.stories';\nimport { useArgs } from '@storybook/client-api';\n\n/**\n * A ListItem component with slider functionality\n */\n\nexport default {\n title: 'Components/ListItem/ListItemSlider'\n};\n\nexport const ListItemSlider = () => {\n const [{ value }, updateArgs] = useArgs();\n return class ListItemSlider extends lng.Component {\n static _template() {\n return {\n ListItemSlider: {\n type: ListItemSliderComponent,\n value: value,\n signals: {\n onSliderChange: true\n }\n }\n };\n }\n // update arg control when value changes\n onSliderChange(value) {\n updateArgs({ value });\n }\n };\n};\n\nListItemSlider.storyName = 'ListItemSlider';\n\nListItemSlider.args = {\n title: 'List Item',\n value: 50,\n shouldCollapse: false,\n mode: 'focused',\n max: 100,\n min: 0\n};\n\nListItemSlider.argTypes = {\n ...createModeControl({ summaryValue: 'focused' }),\n title: {\n control: 'text',\n description: 'Title text',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n value: {\n control: 'number',\n description: 'Current slider value',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'number' }\n }\n },\n shouldCollapse: {\n control: 'boolean',\n description:\n 'When in unfocused or disabled mode, if shouldCollapse property is true it will collapse the slider (when focused, it will always be expanded)',\n table: {\n defaultValue: { summary: false },\n type: { summary: 'boolean' }\n }\n },\n max: {\n control: 'number',\n description: 'Upper bound of value',\n table: {\n defaultValue: { summary: 100 },\n type: { summary: 'number' }\n }\n },\n min: {\n control: 'number',\n description: 'Lower bound of value',\n table: {\n defaultValue: { summary: 0 },\n type: { summary: 'number' }\n }\n }\n};\n\nListItemSlider.argActions = {\n shouldCollapse: (shouldCollapse, component) => {\n component.tag('ListItemSlider').shouldCollapse = shouldCollapse;\n }\n};\n\ngenerateSubStory({\n componentName: 'ListItemSlider',\n baseStory: ListItemSlider,\n subStory: SliderStory,\n targetProperty: 'slider',\n include: ['step']\n});\n"; -// @ts-expect-error (Converted from ts-ignore) -var __LOCATIONS_MAP__ = { - "ListItemSlider": { - "startLoc": { - "col": 30, - "line": 33 - }, - "endLoc": { - "col": 1, - "line": 52 - }, - "startBody": { - "col": 30, - "line": 33 - }, - "endBody": { - "col": 1, - "line": 52 - } - } -}; - -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - - - - - - -/** - * A ListItem component with slider functionality - */ - -/* harmony default export */ const ListItemSlider_stories = ({ - parameters: { - "storySource": { - "source": "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport { default as ListItemSliderComponent } from './ListItemSlider';\nimport { createModeControl, generateSubStory } from '../../docs/utils';\nimport { Basic as SliderStory } from '../Slider/Slider.stories';\nimport { useArgs } from '@storybook/client-api';\n\n/**\n * A ListItem component with slider functionality\n */\n\nexport default {\n title: 'Components/ListItem/ListItemSlider'\n};\n\nexport const ListItemSlider = () => {\n const [{ value }, updateArgs] = useArgs();\n return class ListItemSlider extends lng.Component {\n static _template() {\n return {\n ListItemSlider: {\n type: ListItemSliderComponent,\n value: value,\n signals: {\n onSliderChange: true\n }\n }\n };\n }\n // update arg control when value changes\n onSliderChange(value) {\n updateArgs({ value });\n }\n };\n};\n\nListItemSlider.storyName = 'ListItemSlider';\n\nListItemSlider.args = {\n title: 'List Item',\n value: 50,\n shouldCollapse: false,\n mode: 'focused',\n max: 100,\n min: 0\n};\n\nListItemSlider.argTypes = {\n ...createModeControl({ summaryValue: 'focused' }),\n title: {\n control: 'text',\n description: 'Title text',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n value: {\n control: 'number',\n description: 'Current slider value',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'number' }\n }\n },\n shouldCollapse: {\n control: 'boolean',\n description:\n 'When in unfocused or disabled mode, if shouldCollapse property is true it will collapse the slider (when focused, it will always be expanded)',\n table: {\n defaultValue: { summary: false },\n type: { summary: 'boolean' }\n }\n },\n max: {\n control: 'number',\n description: 'Upper bound of value',\n table: {\n defaultValue: { summary: 100 },\n type: { summary: 'number' }\n }\n },\n min: {\n control: 'number',\n description: 'Lower bound of value',\n table: {\n defaultValue: { summary: 0 },\n type: { summary: 'number' }\n }\n }\n};\n\nListItemSlider.argActions = {\n shouldCollapse: (shouldCollapse, component) => {\n component.tag('ListItemSlider').shouldCollapse = shouldCollapse;\n }\n};\n\ngenerateSubStory({\n componentName: 'ListItemSlider',\n baseStory: ListItemSlider,\n subStory: SliderStory,\n targetProperty: 'slider',\n include: ['step']\n});\n", - "locationsMap": { - "list-item-slider": { - "startLoc": { - "col": 30, - "line": 33 - }, - "endLoc": { - "col": 1, - "line": 52 - }, - "startBody": { - "col": 30, - "line": 33 - }, - "endBody": { - "col": 1, - "line": 52 - } - } - } - }, - docs: { - description: { - component: "A ListItem component with slider functionality" - } - } - }, - title: 'Components/ListItem/ListItemSlider' -}); -var ListItemSlider = function ListItemSlider() { - var _useArgs = (0,external_STORYBOOK_MODULE_CLIENT_API_.useArgs)(), - _useArgs2 = _slicedToArray(_useArgs, 2), - value = _useArgs2[0].value, - updateArgs = _useArgs2[1]; - return /*#__PURE__*/function (_lng$Component) { - ListItemSlider_stories_inherits(ListItemSlider, _lng$Component); - var _super = ListItemSlider_stories_createSuper(ListItemSlider); - function ListItemSlider() { - ListItemSlider_stories_classCallCheck(this, ListItemSlider); - return _super.apply(this, arguments); - } - ListItemSlider_stories_createClass(ListItemSlider, [{ - key: "onSliderChange", - value: - // update arg control when value changes - function onSliderChange(value) { - updateArgs({ - value: value - }); - } - }], [{ - key: "_template", - value: function _template() { - return { - ListItemSlider: { - type: ListItemSlider_ListItemSlider, - value: value, - signals: { - onSliderChange: true - } - } - }; - } - }]); - return ListItemSlider; - }(lightning_esm/* default */.A.Component); -}; -ListItemSlider.storyName = 'ListItemSlider'; -ListItemSlider.args = { - title: 'List Item', - value: 50, - shouldCollapse: false, - mode: 'focused', - max: 100, - min: 0 -}; -ListItemSlider.argTypes = ListItemSlider_stories_objectSpread(ListItemSlider_stories_objectSpread({}, (0,utils/* createModeControl */.Pg)({ - summaryValue: 'focused' -})), {}, { - title: { - control: 'text', - description: 'Title text', - table: { - defaultValue: { - summary: 'undefined' - }, - type: { - summary: 'string' - } - } - }, - value: { - control: 'number', - description: 'Current slider value', - table: { - defaultValue: { - summary: 'undefined' - }, - type: { - summary: 'number' - } - } - }, - shouldCollapse: { - control: 'boolean', - description: 'When in unfocused or disabled mode, if shouldCollapse property is true it will collapse the slider (when focused, it will always be expanded)', - table: { - defaultValue: { - summary: false - }, - type: { - summary: 'boolean' - } - } - }, - max: { - control: 'number', - description: 'Upper bound of value', - table: { - defaultValue: { - summary: 100 - }, - type: { - summary: 'number' - } - } - }, - min: { - control: 'number', - description: 'Lower bound of value', - table: { - defaultValue: { - summary: 0 - }, - type: { - summary: 'number' - } - } - } -}); -ListItemSlider.argActions = { - shouldCollapse: function shouldCollapse(_shouldCollapse, component) { - component.tag('ListItemSlider').shouldCollapse = _shouldCollapse; - } -}; -(0,utils/* generateSubStory */.jb)({ - componentName: 'ListItemSlider', - baseStory: ListItemSlider, - subStory: Slider_stories.Basic, - targetProperty: 'slider', - include: ['step'] -}); -ListItemSlider.parameters = { - ...ListItemSlider.parameters, - docs: { - ...ListItemSlider.parameters?.docs, - source: { - originalSource: "() => {\n const [{\n value\n }, updateArgs] = useArgs();\n return class ListItemSlider extends lng.Component {\n static _template() {\n return {\n ListItemSlider: {\n type: ListItemSliderComponent,\n value: value,\n signals: {\n onSliderChange: true\n }\n }\n };\n }\n // update arg control when value changes\n onSliderChange(value) {\n updateArgs({\n value\n });\n }\n };\n}", - ...ListItemSlider.parameters?.docs?.source - } - } -};;const __namedExportsOrder = ["ListItemSlider"]; - -/***/ }) - -}]); -//# sourceMappingURL=1363.803b976b.iframe.bundle.js.map \ No newline at end of file diff --git a/1363.803b976b.iframe.bundle.js.map b/1363.803b976b.iframe.bundle.js.map deleted file mode 100644 index 22b2704ba..000000000 --- a/1363.803b976b.iframe.bundle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"1363.803b976b.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;;;;;;;;;;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAAA;AACA;AACA;AAEA;AACA;AAAA;AAEA;AAAA;AAEA;AAAA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiDA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAIA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAGA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AACA;AACA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAEA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAOA;AACA;AACA;AAEA;AACA;AAAA;AATA;AACA;AAAA;AAAA;AAAA;AAhJA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAEA;AAEA;AAAA;AAAA;AACA;AAEA;AACA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAEA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAGA;AAEA;AAAA;AAAA;AACA;AAAA;AAAA;AAEA;AAAA;AAAA;AAAA;;;;;;;;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/ListItem/NestedSlider.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/ListItem/NestedSlider.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/ListItem/ListItemSlider.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/ListItem/ListItemSlider.js","webpack://lightning-ui-docs/"],"sourcesContent":["/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = () => {\n return {\n showArrows: false,\n showKnob: false\n };\n};\n\nexport const mode = () => ({\n focused: {\n showArrows: true\n }\n});\n\nexport const tone = theme => ({\n neutral: {\n mode: {\n focused: {\n arrowColor: theme.color.fillInverse,\n progressBar: {\n barColor: theme.color.fillInverseTertiary,\n progressColor: theme.color.fillInverse\n }\n }\n }\n },\n inverse: {\n mode: {\n focused: {\n arrowColor: theme.color.fillNeutral,\n progressBar: {\n barColor: theme.color.fillNeutralTertiary,\n progressColor: theme.color.fillNeutral\n }\n }\n }\n },\n brand: {\n mode: {\n focused: {\n arrowColor: theme.color.fillInverse,\n progressBar: {\n barColor: theme.color.fillBrandTertiary,\n progressColor: theme.color.fillBrand\n }\n }\n }\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport * as styles from './NestedSlider.styles';\nimport Slider from '../Slider';\n\nexport default class NestedSlider extends Slider {\n static get __componentName() {\n return 'NestedSlider';\n }\n\n static get __themeStyle() {\n return styles;\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => ({\n paddingY: theme.spacer.md + theme.spacer.xs,\n valueTextStyle: {\n ...theme.typography.headline3,\n maxLines: 1,\n textColor: theme.color.textNeutralSecondary\n }\n});\n\nexport const mode = theme => ({\n disabled: {\n valueTextStyle: { textColor: theme.color.textNeutralDisabled }\n },\n focused: {\n valueTextStyle: { textColor: theme.color.textInverseSecondary }\n }\n});\n\nexport const tone = theme => ({\n neutral: {\n mode: {\n focused: {\n valueTextStyle: { textColor: theme.color.textInverseSecondary }\n }\n }\n },\n inverse: {\n mode: {\n focused: {\n valueTextStyle: { textColor: theme.color.textNeutralSecondary }\n }\n }\n },\n brand: {\n mode: {\n focused: {\n valueTextStyle: { textColor: theme.color.textInverseSecondary }\n }\n }\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport NestedSlider from './NestedSlider';\nimport ListItem from './ListItem';\nimport * as styles from './ListItemSlider.styles';\nimport TextBox from '../TextBox';\n\nexport default class ListItemSlider extends ListItem {\n static get __componentName() {\n return 'ListItemSlider';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static _template() {\n const template = super._template;\n return {\n ...template(),\n Content: {\n ...template().Content,\n flex: { direction: 'column' },\n TextWrapper: {\n ...template().Content.TextWrapper,\n mountY: 0,\n flex: undefined\n },\n Slider: {\n type: NestedSlider,\n mountX: 0.5,\n signals: {\n onChange: '_onSliderChanged'\n }\n }\n }\n };\n }\n\n static get properties() {\n return [...super.properties, 'slider', 'value', 'max', 'min'];\n }\n\n static get aliasStyles() {\n return [{ prev: 'titlePadding', curr: 'contentSpacing' }];\n }\n\n static get tags() {\n return [\n ...super.tags,\n { name: 'Slider', path: 'Content.Slider' },\n { name: 'Value', path: 'Content.TextWrapper.Value' }\n ];\n }\n\n _construct() {\n super._construct();\n this.value = 50;\n this.max = 100;\n this.min = 0;\n }\n\n _update() {\n super._update();\n this._updateSliderPosition();\n this._updateValue();\n }\n\n _onTextBoxChanged() {\n super._onTextBoxChanged();\n this._TextWrapper.h = Math.max(\n this._Title ? this._Title.h : 0,\n this._Value ? this._Value.h : 0\n );\n }\n\n _updateValue() {\n if (this._hasValue) {\n let valuePatch = {\n content: this.value.toString(),\n style: { textStyle: { ...this.style.valueTextStyle } },\n mountX: 1,\n x: this.w - this._paddingX\n };\n if (!this._Value) {\n valuePatch = {\n type: TextBox,\n signals: {\n textBoxChanged: '_onTextBoxChanged'\n },\n ...valuePatch\n };\n }\n this._TextWrapper.patch({ Value: valuePatch });\n } else {\n this._TextWrapper.patch({ Value: undefined });\n }\n }\n\n _updateSliderPosition() {\n const w = this.w - this._paddingLeft - this._paddingRight;\n const sliderProps = {\n mode: this.mode,\n tone: this.tone,\n w,\n x: w / 2,\n visible: !this._collapse,\n alpha: this.style.alpha,\n ...this.slider,\n value: this.value,\n max: this.max,\n min: this.min\n };\n\n this._Slider.patch(sliderProps);\n }\n\n get _hasValue() {\n return this.value != undefined || this.value != null;\n }\n\n get _fixedWordWrapWidth() {\n const titleWrapWidth =\n this.w - this._paddingLeft - this._paddingRight - this._paddingX;\n return titleWrapWidth;\n }\n\n _onSliderChanged(value) {\n this.value = value;\n this._updateValue();\n this.signal('onSliderChange', value, this);\n }\n\n _handleLeft() {\n if (typeof this.onLeft === 'function') {\n return this.onLeft(this);\n } else if (this._Slider && !this._isDisabledMode) {\n return this._Slider._handleLeft();\n }\n return false;\n }\n\n _handleRight() {\n if (typeof this.onRight === 'function') {\n return this.onRight(this);\n } else if (this._Slider && !this._isDisabledMode) {\n return this._Slider._handleRight();\n }\n return false;\n }\n\n set announce(announce) {\n super.announce = announce;\n }\n\n get announce() {\n if (this._announce) {\n return this._announce;\n }\n\n return this.title + this.value + ', List Item Slider';\n }\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/141.65585e90.iframe.bundle.js b/141.65585e90.iframe.bundle.js deleted file mode 100644 index 418e8f6e0..000000000 --- a/141.65585e90.iframe.bundle.js +++ /dev/null @@ -1,1156 +0,0 @@ -"use strict"; -(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[141],{ - -/***/ "../../@lightningjs/ui-components/src/components/ControlRow/ControlRow.stories.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - AddingAndRemoving: () => (/* binding */ AddingAndRemoving), - Basic: () => (/* binding */ Basic), - LazyLoading: () => (/* binding */ LazyLoading), - __namedExportsOrder: () => (/* binding */ __namedExportsOrder), - "default": () => (/* binding */ ControlRow_stories) -}); - -// NAMESPACE OBJECT: ../../@lightningjs/ui-components/src/components/ControlRow/ControlRow.styles.js -var ControlRow_styles_namespaceObject = {}; -__webpack_require__.r(ControlRow_styles_namespaceObject); -__webpack_require__.d(ControlRow_styles_namespaceObject, { - base: () => (base) -}); - -// EXTERNAL MODULE: ../../../node_modules/@lightningjs/core/dist/lightning.esm.js -var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Tile/Tile.js + 1 modules -var Tile = __webpack_require__("../../@lightningjs/ui-components/src/components/Tile/Tile.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Control/ControlSmall.js + 1 modules -var ControlSmall = __webpack_require__("../../@lightningjs/ui-components/src/components/Control/ControlSmall.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/assets/images/ic_lightning_white_32.png -var ic_lightning_white_32 = __webpack_require__("../../@lightningjs/ui-components/src/assets/images/ic_lightning_white_32.png"); -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/assets/images/ic_play_white_32.png -const ic_play_white_32_namespaceObject = __webpack_require__.p + "static/media/ic_play_white_32.af3043b3.png"; -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/TitleRow/TitleRow.stories.js -var TitleRow_stories = __webpack_require__("../../@lightningjs/ui-components/src/components/TitleRow/TitleRow.stories.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/TitleRow/TitleRow.js + 1 modules -var TitleRow = __webpack_require__("../../@lightningjs/ui-components/src/components/TitleRow/TitleRow.js"); -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/ControlRow/ControlRow.styles.js -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - -var base = function base(theme) { - return { - extraItemSpacing: theme.spacer.lg - }; -}; -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/ControlRow/ControlRow.js -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } -function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); } -function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - - -var ControlRow = /*#__PURE__*/function (_TitleRow) { - _inherits(ControlRow, _TitleRow); - var _super = _createSuper(ControlRow); - function ControlRow() { - _classCallCheck(this, ControlRow); - return _super.apply(this, arguments); - } - _createClass(ControlRow, [{ - key: "_construct", - value: function _construct() { - _get(_getPrototypeOf(ControlRow.prototype), "_construct", this).call(this); - this._leftControls = []; - this._contentItems = []; - this._rightControls = []; - this._lastLeftControlIndex = -1; - this._lastItemIndex = -1; - this._lazyLoadBuffer = 0; - } - }, { - key: "_updateContent", - value: function _updateContent() { - var itemsToAppend = []; - if (this.leftControls.length) { - itemsToAppend.push.apply(itemsToAppend, _toConsumableArray(this._withExtraSpacing(this.leftControls, true))); - } - if (this.contentItems.length) { - itemsToAppend.push.apply(itemsToAppend, _toConsumableArray(this._withExtraSpacing(this.contentItems))); - } - if (this.rightControls.length) { - itemsToAppend.push.apply(itemsToAppend, _toConsumableArray(this.rightControls)); - } - if (itemsToAppend.length) { - this.patch({ - alpha: 1, - items: itemsToAppend, - selectedIndex: this.leftControls.length, - startLazyScrollIndex: this.leftControls.length, - stopLazyScrollIndex: this.leftControls.length + this.items.length - 1 - }); - } - } - }, { - key: "_withExtraSpacing", - value: function _withExtraSpacing(items) { - var isControl = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; - var itemsCopy = _toConsumableArray(items); - var prevItems = isControl ? this._prevLeftControls : this._prevItems; - - // after appending remove extra spacing from the previous last item - if (prevItems && prevItems.length && itemsCopy[prevItems.length - 1]) { - itemsCopy[prevItems.length - 1].extraItemSpacing = 0; - } - itemsCopy[itemsCopy.length - 1].extraItemSpacing = this.extraItemSpacing == undefined ? this.style.extraItemSpacing : this.extraItemSpacing; - if (isControl) { - this._prevLeftControls = itemsCopy; - } else { - this._prevItems = itemsCopy; - } - return itemsCopy; - } - }, { - key: "_getMoreItems", - value: function _getMoreItems() { - if (this.lazyLoadBuffer) { - var loadMoreIndex = this.contentItems.length - 1 - this.lazyLoadBuffer; - if (this.selectedIndex - this.leftControls.length >= loadMoreIndex && this.selectedIndex < this.leftControls.length + this.contentItems.length) { - this.loadMoreItems(); - } - } - } - }, { - key: "loadMoreItems", - value: function loadMoreItems() { - this.signal('loadMoreItems'); - } - }, { - key: "_selectedChange", - value: function _selectedChange(selected, prevSelected) { - _get(_getPrototypeOf(ControlRow.prototype), "_selectedChange", this).call(this, selected, prevSelected); - this._getMoreItems(); - } - }, { - key: "_appendItemsAt", - value: function _appendItemsAt(items, appendIndex, removeSpacingIndex) { - var itemsCopy = _toConsumableArray(items); - if (removeSpacingIndex != undefined && removeSpacingIndex >= 0) { - this.items[removeSpacingIndex].extraItemSpacing = undefined; - itemsCopy[itemsCopy.length - 1].extraItemSpacing = this.extraItemSpacing == undefined ? this.style.extraItemSpacing : this.extraItemSpacing; - } - this.appendItemsAt(itemsCopy, appendIndex); - } - }, { - key: "addContentItems", - value: function addContentItems(items) { - var lastSelected = this.selectedIndex; - var itemsToAdd = this._createContentItems(items); - var addIndex = this._lastItemIndex + 1; - this._appendItemsAt(itemsToAdd, addIndex, this._lastItemIndex); - this._lastItemIndex += itemsToAdd.length; - if (this._contentItems) { - this._contentItems = [].concat(_toConsumableArray(this.contentItems), _toConsumableArray(itemsToAdd)); - } - this._updateContent(); - this.selectedIndex = lastSelected; - this.patch({ - stopLazyScrollIndex: this.leftControls.length + this.items.length - 1 - }); - } - }, { - key: "addContentItemsAt", - value: function addContentItemsAt(items, itemIndex) { - var itemsToAdd = this._createContentItems(items); - var addIndex = this._lastLeftControlIndex + 1 + itemIndex; - if (addIndex === this._lastItemIndex + 1) { - this.addContentItems(itemsToAdd); - } else { - this._appendItemsAt(itemsToAdd, addIndex); - if (this._contentItems) { - var _this$_contentItems; - (_this$_contentItems = this._contentItems).splice.apply(_this$_contentItems, [addIndex, 0].concat(_toConsumableArray(itemsToAdd))); - this._lastItemIndex = this.contentItems.length - 1; - } - this.patch({ - stopLazyScrollIndex: this.leftControls.length + this.items.length - 1 - }); - } - } - }, { - key: "removeContentItemAt", - value: function removeContentItemAt(index) { - var removeIndex = this._lastLeftControlIndex + 1 + index; - this.removeItemAt(removeIndex); - this._lastItemIndex--; - if (this._contentItems) { - this._contentItems.splice(index, 1); - } - this.patch({ - startLazyScrollIndex: this.leftControls.length, - stopLazyScrollIndex: this.leftControls.length + this.items.length - 1 - }); - } - }, { - key: "addLeftControls", - value: function addLeftControls(controls) { - var itemsToAdd = this._createControls(controls); - var addIndex = this._lastLeftControlIndex + 1; - this._appendItemsAt(itemsToAdd, addIndex, this._lastLeftControlIndex); - if (this._leftControls) { - this._leftControls = [].concat(_toConsumableArray(this._leftControls), _toConsumableArray(controls)); - this._lastLeftControlIndex = this._leftControls.length - 1; - this._lastItemIndex += controls.length; - } - this.patch({ - startLazyScrollIndex: this.leftControls.length, - stopLazyScrollIndex: this.leftControls.length + this.items.length - 1 - }); - } - }, { - key: "addLeftControlsAt", - value: function addLeftControlsAt(controls, index) { - var itemsToAdd = this._createControls(controls); - if (index === this._lastLeftControlIndex + 1) { - this.addLeftControls(controls); - } else { - this._appendItemsAt(itemsToAdd, index); - if (this.leftControls) { - var _this$_leftControls; - (_this$_leftControls = this._leftControls).splice.apply(_this$_leftControls, [index, 0].concat(_toConsumableArray(controls))); - this._lastLeftControlIndex = this._leftControls.length - 1; - this._lastItemIndex += controls.length; - } - this.patch({ - startLazyScrollIndex: this.leftControls.length, - stopLazyScrollIndex: this.leftControls.length + this.items.length - 1 - }); - } - } - }, { - key: "removeLeftControlAt", - value: function removeLeftControlAt(index) { - this.removeItemAt(index); - this._lastLeftControlIndex--; - this._lastItemIndex--; - if (this.leftControls) { - this._leftControls.splice(index, 1); - } - this.patch({ - startLazyScrollIndex: this.leftControls.length, - stopLazyScrollIndex: this.leftControls.length + this.items.length - 1 - }); - } - }, { - key: "addRightControls", - value: function addRightControls(controls) { - var _this$_rightControls; - (_this$_rightControls = this._rightControls).push.apply(_this$_rightControls, _toConsumableArray(controls)); - this._appendItemsAt(this._createControls(controls), this.items.length); - } - }, { - key: "addRightControlsAt", - value: function addRightControlsAt(controls, index) { - var _this$_rightControls2; - var appendIndex = this._leftControls.length + this._contentItems.length + index; - (_this$_rightControls2 = this._rightControls).splice.apply(_this$_rightControls2, [index, 0].concat(_toConsumableArray(controls))); - this._appendItemsAt(this._createControls(controls), appendIndex); - } - }, { - key: "removeRightControlAt", - value: function removeRightControlAt(index) { - var removeIndex = this.leftControls.length + this.contentItems.length + index; - this.removeItemAt(removeIndex); - if (this.rightControls) { - this._rightControls.splice(index, 1); - } - } - }, { - key: "_createControls", - value: function _createControls(controls) { - return controls.map(function (controlProps) { - return _objectSpread({ - backgroundType: 'fill', - centerInParent: true - }, controlProps); - }); - } - }, { - key: "_createContentItems", - value: function _createContentItems(contentItems) { - var newContentItems = contentItems.map(function (itemProps) { - return _objectSpread(_objectSpread({}, itemProps), {}, { - centerInParent: true - }); - }); - return newContentItems; - } - }, { - key: "_setLeftControls", - value: function _setLeftControls(leftControls) { - this._leftControls = this._createControls(leftControls); - this._lastLeftControlIndex = leftControls.length - 1; - this._updateContent(); - } - }, { - key: "_getLeftControls", - value: function _getLeftControls() { - return this._leftControls; - } - }, { - key: "_setRightControls", - value: function _setRightControls(rightControls) { - this._rightControls = this._createControls(rightControls); - this._updateContent(); - } - }, { - key: "_getRightControls", - value: function _getRightControls() { - return this._rightControls; - } - }, { - key: "_getContentItems", - value: function _getContentItems() { - return this._contentItems; - } - }, { - key: "_setContentItems", - value: function _setContentItems(items) { - this._contentItems = this._createContentItems(items); - this._lastItemIndex = this._lastLeftControlIndex + items.length; - this._updateContent(); - } - }, { - key: "_getLeftControlItems", - value: function _getLeftControlItems() { - if (this.leftControls.length) { - return this.items.slice(0, this._lastLeftControlIndex + 1); - } - return []; - } - }, { - key: "_getContentItemItems", - value: function _getContentItemItems() { - if (this.contentItems.length) { - return this.items.slice(this._lastLeftControlIndex + 1, this._lastItemIndex + 1); - } - return []; - } - }, { - key: "_getRightControlItems", - value: function _getRightControlItems() { - if (this.rightControls.length) { - var leftSiblingIndex = this._lastItemIndex || this._lastLeftControlIndex; - return leftSiblingIndex ? this.items.slice(leftSiblingIndex + 1) : this.items; - } - return []; - } - }, { - key: "leftControls", - get: function get() { - return this._getLeftControls(); - }, - set: function set(leftControls) { - this._setLeftControls(leftControls); - } - }, { - key: "rightControls", - get: function get() { - return this._getRightControls(); - }, - set: function set(rightControls) { - this._setRightControls(rightControls); - } - }, { - key: "contentItems", - get: function get() { - return this._getContentItems(); - }, - set: function set(items) { - this._setContentItems(items); - } - }, { - key: "lazyLoadBuffer", - get: function get() { - return this._lazyLoadBuffer; - }, - set: function set(lazyLoadBuffer) { - this._lazyLoadBuffer = lazyLoadBuffer; - this._getMoreItems(); - } - }], [{ - key: "__componentName", - get: function get() { - return 'ControlRow'; - } - }, { - key: "__themeStyles", - get: function get() { - return ControlRow_styles_namespaceObject; - } - }, { - key: "_template", - value: function _template() { - return _objectSpread(_objectSpread({}, _get(_getPrototypeOf(ControlRow), "_template", this).call(this)), {}, { - alpha: 0, - lazyScroll: true, - signals: { - selectedChange: '_getMoreItems' - } - }); - } - }, { - key: "properties", - get: function get() { - return [].concat(_toConsumableArray(_get(_getPrototypeOf(ControlRow), "properties", this)), ['extraItemSpacing']); - } - }]); - return ControlRow; -}(TitleRow/* default */.A); - -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/docs/utils.js -var utils = __webpack_require__("../../@lightningjs/ui-components/src/docs/utils.js"); -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/ControlRow/ControlRow.stories.js -function ControlRow_stories_typeof(o) { - "@babel/helpers - typeof"; - - return ControlRow_stories_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { - return typeof o; - } : function (o) { - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; - }, ControlRow_stories_typeof(o); -} -function ControlRow_stories_classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} -function ControlRow_stories_defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, ControlRow_stories_toPropertyKey(descriptor.key), descriptor); - } -} -function ControlRow_stories_createClass(Constructor, protoProps, staticProps) { - if (protoProps) ControlRow_stories_defineProperties(Constructor.prototype, protoProps); - if (staticProps) ControlRow_stories_defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { - writable: false - }); - return Constructor; -} -function ControlRow_stories_inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { - writable: false - }); - if (superClass) ControlRow_stories_setPrototypeOf(subClass, superClass); -} -function ControlRow_stories_setPrototypeOf(o, p) { - ControlRow_stories_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return ControlRow_stories_setPrototypeOf(o, p); -} -function ControlRow_stories_createSuper(Derived) { - var hasNativeReflectConstruct = ControlRow_stories_isNativeReflectConstruct(); - return function _createSuperInternal() { - var Super = ControlRow_stories_getPrototypeOf(Derived), - result; - if (hasNativeReflectConstruct) { - var NewTarget = ControlRow_stories_getPrototypeOf(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); - } - return ControlRow_stories_possibleConstructorReturn(this, result); - }; -} -function ControlRow_stories_possibleConstructorReturn(self, call) { - if (call && (ControlRow_stories_typeof(call) === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { - throw new TypeError("Derived constructors may only return object or undefined"); - } - return ControlRow_stories_assertThisInitialized(self); -} -function ControlRow_stories_assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - return self; -} -function ControlRow_stories_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; - } -} -function ControlRow_stories_getPrototypeOf(o) { - ControlRow_stories_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return ControlRow_stories_getPrototypeOf(o); -} -function ControlRow_stories_ownKeys(e, r) { - var t = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(e); - r && (o = o.filter(function (r) { - return Object.getOwnPropertyDescriptor(e, r).enumerable; - })), t.push.apply(t, o); - } - return t; -} -function ControlRow_stories_objectSpread(e) { - for (var r = 1; r < arguments.length; r++) { - var t = null != arguments[r] ? arguments[r] : {}; - r % 2 ? ControlRow_stories_ownKeys(Object(t), !0).forEach(function (r) { - ControlRow_stories_defineProperty(e, r, t[r]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ControlRow_stories_ownKeys(Object(t)).forEach(function (r) { - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); - }); - } - return e; -} -function ControlRow_stories_defineProperty(obj, key, value) { - key = ControlRow_stories_toPropertyKey(key); - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} -function ControlRow_stories_toPropertyKey(t) { - var i = ControlRow_stories_toPrimitive(t, "string"); - return "symbol" == ControlRow_stories_typeof(i) ? i : String(i); -} -function ControlRow_stories_toPrimitive(t, r) { - if ("object" != ControlRow_stories_typeof(t) || !t) return t; - var e = t[Symbol.toPrimitive]; - if (void 0 !== e) { - var i = e.call(t, r || "default"); - if ("object" != ControlRow_stories_typeof(i)) return i; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return ("string" === r ? String : Number)(t); -} -/* eslint-disable */ -// @ts-nocheck -// @ts-expect-error (Converted from ts-ignore) -var __STORY__ = "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport Tile from '../Tile';\nimport ControlSmall from '../Control/ControlSmall';\nimport lightningIcon from '../../assets/images/ic_lightning_white_32.png';\nimport playIcon from '../../assets/images/ic_play_white_32.png';\nimport { default as TitleRowStory } from '../TitleRow/TitleRow.stories';\nimport ControlRowComponent from '.';\nimport { createModeControl } from '../../docs/utils';\n\nexport default {\n title: 'Components/ControlRow',\n args: {\n ...TitleRowStory.args,\n lazyScroll: true,\n mode: 'focused'\n },\n argTypes: {\n ...TitleRowStory.argTypes,\n ...createModeControl({ summaryValue: 'focused' })\n }\n};\n\nconst createItems = (length, src, props = {}) => {\n return Array.from({ length }).map((_, index) => ({\n type: Tile,\n artwork: {\n src\n },\n itemLayout: {\n ratioX: 16,\n ratioY: 9,\n upCount: 4\n },\n announce: 'Tile',\n announceContext: `${index + 1} of ${length}`,\n ...props\n }));\n};\nconst createControls = (length, icon = lightningIcon, props = {}) => {\n return Array.from({ length }).map(() => ({\n type: ControlSmall,\n icon,\n fixed: true,\n h: 64,\n w: 64,\n ...props\n }));\n};\n\nexport const Basic = () =>\n class Basic extends lng.Component {\n static _template() {\n return {\n ControlRow: {\n type: ControlRowComponent,\n leftControls: createControls(3),\n contentItems: createItems(5),\n rightControls: createControls(3)\n }\n };\n }\n\n _getFocused() {\n return this.tag('ControlRow');\n }\n };\n\nexport const LazyLoading = () =>\n class LazyLoading extends lng.Component {\n static _template() {\n return {\n ControlRow: {\n type: ControlRowComponent,\n leftControls: createControls(3),\n contentItems: createItems(5),\n rightControls: createControls(3),\n lazyLoadBuffer: 1,\n signals: {\n loadMoreItems: '_loadMore'\n }\n }\n };\n }\n\n _construct() {\n this._counter = 0;\n }\n\n _loadMore() {\n if (this._counter < 2) {\n this._ControlRow.addContentItems(\n createItems(\n 3,\n 'https://image.tmdb.org/t/p/w500/frwl2zBNAl5ZbFDJGoJv0mYo0rF.jpg'\n )\n );\n this._counter++;\n }\n }\n\n _getFocused() {\n return this.tag('ControlRow');\n }\n\n get _ControlRow() {\n return this.tag('ControlRow');\n }\n };\n\nLazyLoading.args = { lazyLoadBuffer: 1 };\nLazyLoading.argTypes = {\n lazyLoadBuffer: {\n control: 'number',\n description:\n 'The number of items before the last content item at which a signal, \"loadMoreItems\", is emitted.',\n remount: true,\n table: { defaultValue: { summary: 0 } }\n }\n};\nLazyLoading.parameters = {\n storyDetails:\n 'The loadMoreItems signal is emitted each time a contentItem is selected at and after the index defined by the lazyLoadBuffer property. This story adds a method that is invoked when that signal is emitted and adds 3 additional contentItems to the ControlRow via ControlRow.addContentItems. That method will append items in response to the signal two times, then will do nothing in response to further invocations from the signal.'\n};\n\nconst createSignal = signalName => ({\n onEnter: function () {\n this.signal(signalName);\n },\n passSignals: { [signalName]: true }\n});\n\nconst parksUrl =\n 'https://image.tmdb.org/t/p/w500/frwl2zBNAl5ZbFDJGoJv0mYo0rF.jpg';\n\nexport const AddingAndRemoving = () =>\n class AddingAndRemoving extends lng.Component {\n static _template() {\n return {\n ControlRow: {\n type: ControlRowComponent,\n signals: {\n addLeftControl: true,\n removeLeftControl: true,\n addContentItem: true,\n removeContentItem: true,\n addRightControl: true,\n removeRightControl: true\n },\n leftControls: createControls(\n 1,\n lightningIcon,\n createSignal('addLeftControl')\n ),\n contentItems: createItems(\n 5,\n undefined,\n createSignal('addContentItem')\n ),\n rightControls: createControls(\n 1,\n lightningIcon,\n createSignal('addRightControl')\n )\n }\n };\n }\n\n addLeftControl() {\n this._ControlRow.addLeftControlsAt(\n createControls(1, playIcon, createSignal('removeLeftControl')),\n 0\n );\n }\n\n removeLeftControl() {\n this._ControlRow.removeLeftControlAt(this._ControlRow.selectedIndex);\n }\n\n addContentItem() {\n this._ControlRow.addContentItemsAt(\n createItems(1, parksUrl, createSignal('removeContentItem')),\n this.contentItemIndex + 1\n );\n }\n\n removeContentItem() {\n this._ControlRow.removeContentItemAt(this.contentItemIndex);\n }\n\n addRightControl() {\n this._ControlRow.addRightControls(\n createControls(1, playIcon, createSignal('removeRightControl'))\n );\n }\n\n removeRightControl() {\n this._ControlRow.removeRightControlAt(this.rightControlIndex);\n }\n\n get _ControlRow() {\n return this.tag('ControlRow');\n }\n\n get contentItemIndex() {\n return (\n this._ControlRow.selectedIndex - this._ControlRow.leftControls.length\n );\n }\n\n get rightControlIndex() {\n return (\n this._ControlRow.selectedIndex -\n this._ControlRow.leftControls.length -\n this._ControlRow.contentItems.length\n );\n }\n\n _getFocused() {\n return this._ControlRow;\n }\n };\n\nAddingAndRemoving.parameters = {\n storyDetails: `\n Press the Enter key while focused on any controls or items in the ControlRow for the following effects:\n - left controls: prepend a new control with a play icon to the left controls\n - content items: append a tile with a background after the selected index\n - right controls: append a new control with a play icon to the right controls\n Press the Enter key while focused on any of the added controls or content items to remove that control or content item.\n `\n};\n"; -// @ts-expect-error (Converted from ts-ignore) -var __LOCATIONS_MAP__ = { - "Basic": { - "startLoc": { - "col": 21, - "line": 68 - }, - "endLoc": { - "col": 3, - "line": 84 - }, - "startBody": { - "col": 21, - "line": 68 - }, - "endBody": { - "col": 3, - "line": 84 - } - }, - "LazyLoading": { - "startLoc": { - "col": 27, - "line": 86 - }, - "endLoc": { - "col": 3, - "line": 126 - }, - "startBody": { - "col": 27, - "line": 86 - }, - "endBody": { - "col": 3, - "line": 126 - } - }, - "AddingAndRemoving": { - "startLoc": { - "col": 33, - "line": 153 - }, - "endLoc": { - "col": 3, - "line": 239 - }, - "startBody": { - "col": 33, - "line": 153 - }, - "endBody": { - "col": 3, - "line": 239 - } - } -}; - -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - - - - - - - - -/* harmony default export */ const ControlRow_stories = ({ - parameters: { - "storySource": { - "source": "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport Tile from '../Tile';\nimport ControlSmall from '../Control/ControlSmall';\nimport lightningIcon from '../../assets/images/ic_lightning_white_32.png';\nimport playIcon from '../../assets/images/ic_play_white_32.png';\nimport { default as TitleRowStory } from '../TitleRow/TitleRow.stories';\nimport ControlRowComponent from '.';\nimport { createModeControl } from '../../docs/utils';\n\nexport default {\n title: 'Components/ControlRow',\n args: {\n ...TitleRowStory.args,\n lazyScroll: true,\n mode: 'focused'\n },\n argTypes: {\n ...TitleRowStory.argTypes,\n ...createModeControl({ summaryValue: 'focused' })\n }\n};\n\nconst createItems = (length, src, props = {}) => {\n return Array.from({ length }).map((_, index) => ({\n type: Tile,\n artwork: {\n src\n },\n itemLayout: {\n ratioX: 16,\n ratioY: 9,\n upCount: 4\n },\n announce: 'Tile',\n announceContext: `${index + 1} of ${length}`,\n ...props\n }));\n};\nconst createControls = (length, icon = lightningIcon, props = {}) => {\n return Array.from({ length }).map(() => ({\n type: ControlSmall,\n icon,\n fixed: true,\n h: 64,\n w: 64,\n ...props\n }));\n};\n\nexport const Basic = () =>\n class Basic extends lng.Component {\n static _template() {\n return {\n ControlRow: {\n type: ControlRowComponent,\n leftControls: createControls(3),\n contentItems: createItems(5),\n rightControls: createControls(3)\n }\n };\n }\n\n _getFocused() {\n return this.tag('ControlRow');\n }\n };\n\nexport const LazyLoading = () =>\n class LazyLoading extends lng.Component {\n static _template() {\n return {\n ControlRow: {\n type: ControlRowComponent,\n leftControls: createControls(3),\n contentItems: createItems(5),\n rightControls: createControls(3),\n lazyLoadBuffer: 1,\n signals: {\n loadMoreItems: '_loadMore'\n }\n }\n };\n }\n\n _construct() {\n this._counter = 0;\n }\n\n _loadMore() {\n if (this._counter < 2) {\n this._ControlRow.addContentItems(\n createItems(\n 3,\n 'https://image.tmdb.org/t/p/w500/frwl2zBNAl5ZbFDJGoJv0mYo0rF.jpg'\n )\n );\n this._counter++;\n }\n }\n\n _getFocused() {\n return this.tag('ControlRow');\n }\n\n get _ControlRow() {\n return this.tag('ControlRow');\n }\n };\n\nLazyLoading.args = { lazyLoadBuffer: 1 };\nLazyLoading.argTypes = {\n lazyLoadBuffer: {\n control: 'number',\n description:\n 'The number of items before the last content item at which a signal, \"loadMoreItems\", is emitted.',\n remount: true,\n table: { defaultValue: { summary: 0 } }\n }\n};\nLazyLoading.parameters = {\n storyDetails:\n 'The loadMoreItems signal is emitted each time a contentItem is selected at and after the index defined by the lazyLoadBuffer property. This story adds a method that is invoked when that signal is emitted and adds 3 additional contentItems to the ControlRow via ControlRow.addContentItems. That method will append items in response to the signal two times, then will do nothing in response to further invocations from the signal.'\n};\n\nconst createSignal = signalName => ({\n onEnter: function () {\n this.signal(signalName);\n },\n passSignals: { [signalName]: true }\n});\n\nconst parksUrl =\n 'https://image.tmdb.org/t/p/w500/frwl2zBNAl5ZbFDJGoJv0mYo0rF.jpg';\n\nexport const AddingAndRemoving = () =>\n class AddingAndRemoving extends lng.Component {\n static _template() {\n return {\n ControlRow: {\n type: ControlRowComponent,\n signals: {\n addLeftControl: true,\n removeLeftControl: true,\n addContentItem: true,\n removeContentItem: true,\n addRightControl: true,\n removeRightControl: true\n },\n leftControls: createControls(\n 1,\n lightningIcon,\n createSignal('addLeftControl')\n ),\n contentItems: createItems(\n 5,\n undefined,\n createSignal('addContentItem')\n ),\n rightControls: createControls(\n 1,\n lightningIcon,\n createSignal('addRightControl')\n )\n }\n };\n }\n\n addLeftControl() {\n this._ControlRow.addLeftControlsAt(\n createControls(1, playIcon, createSignal('removeLeftControl')),\n 0\n );\n }\n\n removeLeftControl() {\n this._ControlRow.removeLeftControlAt(this._ControlRow.selectedIndex);\n }\n\n addContentItem() {\n this._ControlRow.addContentItemsAt(\n createItems(1, parksUrl, createSignal('removeContentItem')),\n this.contentItemIndex + 1\n );\n }\n\n removeContentItem() {\n this._ControlRow.removeContentItemAt(this.contentItemIndex);\n }\n\n addRightControl() {\n this._ControlRow.addRightControls(\n createControls(1, playIcon, createSignal('removeRightControl'))\n );\n }\n\n removeRightControl() {\n this._ControlRow.removeRightControlAt(this.rightControlIndex);\n }\n\n get _ControlRow() {\n return this.tag('ControlRow');\n }\n\n get contentItemIndex() {\n return (\n this._ControlRow.selectedIndex - this._ControlRow.leftControls.length\n );\n }\n\n get rightControlIndex() {\n return (\n this._ControlRow.selectedIndex -\n this._ControlRow.leftControls.length -\n this._ControlRow.contentItems.length\n );\n }\n\n _getFocused() {\n return this._ControlRow;\n }\n };\n\nAddingAndRemoving.parameters = {\n storyDetails: `\n Press the Enter key while focused on any controls or items in the ControlRow for the following effects:\n - left controls: prepend a new control with a play icon to the left controls\n - content items: append a tile with a background after the selected index\n - right controls: append a new control with a play icon to the right controls\n Press the Enter key while focused on any of the added controls or content items to remove that control or content item.\n `\n};\n", - "locationsMap": { - "basic": { - "startLoc": { - "col": 21, - "line": 68 - }, - "endLoc": { - "col": 3, - "line": 84 - }, - "startBody": { - "col": 21, - "line": 68 - }, - "endBody": { - "col": 3, - "line": 84 - } - }, - "lazy-loading": { - "startLoc": { - "col": 27, - "line": 86 - }, - "endLoc": { - "col": 3, - "line": 126 - }, - "startBody": { - "col": 27, - "line": 86 - }, - "endBody": { - "col": 3, - "line": 126 - } - }, - "adding-and-removing": { - "startLoc": { - "col": 33, - "line": 153 - }, - "endLoc": { - "col": 3, - "line": 239 - }, - "startBody": { - "col": 33, - "line": 153 - }, - "endBody": { - "col": 3, - "line": 239 - } - } - } - } - }, - title: 'Components/ControlRow', - args: ControlRow_stories_objectSpread(ControlRow_stories_objectSpread({}, TitleRow_stories["default"].args), {}, { - lazyScroll: true, - mode: 'focused' - }), - argTypes: ControlRow_stories_objectSpread(ControlRow_stories_objectSpread({}, TitleRow_stories["default"].argTypes), (0,utils/* createModeControl */.Pg)({ - summaryValue: 'focused' - })) -}); -var createItems = function createItems(length, src) { - var props = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - return Array.from({ - length: length - }).map(function (_, index) { - return ControlRow_stories_objectSpread({ - type: Tile/* default */.A, - artwork: { - src: src - }, - itemLayout: { - ratioX: 16, - ratioY: 9, - upCount: 4 - }, - announce: 'Tile', - announceContext: "".concat(index + 1, " of ").concat(length) - }, props); - }); -}; -var createControls = function createControls(length) { - var icon = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ic_lightning_white_32; - var props = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - return Array.from({ - length: length - }).map(function () { - return ControlRow_stories_objectSpread({ - type: ControlSmall/* default */.A, - icon: icon, - fixed: true, - h: 64, - w: 64 - }, props); - }); -}; -var Basic = function Basic() { - return /*#__PURE__*/function (_lng$Component) { - ControlRow_stories_inherits(Basic, _lng$Component); - var _super = ControlRow_stories_createSuper(Basic); - function Basic() { - ControlRow_stories_classCallCheck(this, Basic); - return _super.apply(this, arguments); - } - ControlRow_stories_createClass(Basic, [{ - key: "_getFocused", - value: function _getFocused() { - return this.tag('ControlRow'); - } - }], [{ - key: "_template", - value: function _template() { - return { - ControlRow: { - type: ControlRow, - leftControls: createControls(3), - contentItems: createItems(5), - rightControls: createControls(3) - } - }; - } - }]); - return Basic; - }(lightning_esm/* default */.A.Component); -}; -; -var LazyLoading = function LazyLoading() { - return /*#__PURE__*/function (_lng$Component2) { - ControlRow_stories_inherits(LazyLoading, _lng$Component2); - var _super2 = ControlRow_stories_createSuper(LazyLoading); - function LazyLoading() { - ControlRow_stories_classCallCheck(this, LazyLoading); - return _super2.apply(this, arguments); - } - ControlRow_stories_createClass(LazyLoading, [{ - key: "_construct", - value: function _construct() { - this._counter = 0; - } - }, { - key: "_loadMore", - value: function _loadMore() { - if (this._counter < 2) { - this._ControlRow.addContentItems(createItems(3, 'https://image.tmdb.org/t/p/w500/frwl2zBNAl5ZbFDJGoJv0mYo0rF.jpg')); - this._counter++; - } - } - }, { - key: "_getFocused", - value: function _getFocused() { - return this.tag('ControlRow'); - } - }, { - key: "_ControlRow", - get: function get() { - return this.tag('ControlRow'); - } - }], [{ - key: "_template", - value: function _template() { - return { - ControlRow: { - type: ControlRow, - leftControls: createControls(3), - contentItems: createItems(5), - rightControls: createControls(3), - lazyLoadBuffer: 1, - signals: { - loadMoreItems: '_loadMore' - } - } - }; - } - }]); - return LazyLoading; - }(lightning_esm/* default */.A.Component); -}; -; -LazyLoading.args = { - lazyLoadBuffer: 1 -}; -LazyLoading.argTypes = { - lazyLoadBuffer: { - control: 'number', - description: 'The number of items before the last content item at which a signal, "loadMoreItems", is emitted.', - remount: true, - table: { - defaultValue: { - summary: 0 - } - } - } -}; -LazyLoading.parameters = { - storyDetails: 'The loadMoreItems signal is emitted each time a contentItem is selected at and after the index defined by the lazyLoadBuffer property. This story adds a method that is invoked when that signal is emitted and adds 3 additional contentItems to the ControlRow via ControlRow.addContentItems. That method will append items in response to the signal two times, then will do nothing in response to further invocations from the signal.' -}; -var createSignal = function createSignal(signalName) { - return { - onEnter: function onEnter() { - this.signal(signalName); - }, - passSignals: ControlRow_stories_defineProperty({}, signalName, true) - }; -}; -var parksUrl = 'https://image.tmdb.org/t/p/w500/frwl2zBNAl5ZbFDJGoJv0mYo0rF.jpg'; -var AddingAndRemoving = function AddingAndRemoving() { - return /*#__PURE__*/function (_lng$Component3) { - ControlRow_stories_inherits(AddingAndRemoving, _lng$Component3); - var _super3 = ControlRow_stories_createSuper(AddingAndRemoving); - function AddingAndRemoving() { - ControlRow_stories_classCallCheck(this, AddingAndRemoving); - return _super3.apply(this, arguments); - } - ControlRow_stories_createClass(AddingAndRemoving, [{ - key: "addLeftControl", - value: function addLeftControl() { - this._ControlRow.addLeftControlsAt(createControls(1, ic_play_white_32_namespaceObject, createSignal('removeLeftControl')), 0); - } - }, { - key: "removeLeftControl", - value: function removeLeftControl() { - this._ControlRow.removeLeftControlAt(this._ControlRow.selectedIndex); - } - }, { - key: "addContentItem", - value: function addContentItem() { - this._ControlRow.addContentItemsAt(createItems(1, parksUrl, createSignal('removeContentItem')), this.contentItemIndex + 1); - } - }, { - key: "removeContentItem", - value: function removeContentItem() { - this._ControlRow.removeContentItemAt(this.contentItemIndex); - } - }, { - key: "addRightControl", - value: function addRightControl() { - this._ControlRow.addRightControls(createControls(1, ic_play_white_32_namespaceObject, createSignal('removeRightControl'))); - } - }, { - key: "removeRightControl", - value: function removeRightControl() { - this._ControlRow.removeRightControlAt(this.rightControlIndex); - } - }, { - key: "_ControlRow", - get: function get() { - return this.tag('ControlRow'); - } - }, { - key: "contentItemIndex", - get: function get() { - return this._ControlRow.selectedIndex - this._ControlRow.leftControls.length; - } - }, { - key: "rightControlIndex", - get: function get() { - return this._ControlRow.selectedIndex - this._ControlRow.leftControls.length - this._ControlRow.contentItems.length; - } - }, { - key: "_getFocused", - value: function _getFocused() { - return this._ControlRow; - } - }], [{ - key: "_template", - value: function _template() { - return { - ControlRow: { - type: ControlRow, - signals: { - addLeftControl: true, - removeLeftControl: true, - addContentItem: true, - removeContentItem: true, - addRightControl: true, - removeRightControl: true - }, - leftControls: createControls(1, ic_lightning_white_32, createSignal('addLeftControl')), - contentItems: createItems(5, undefined, createSignal('addContentItem')), - rightControls: createControls(1, ic_lightning_white_32, createSignal('addRightControl')) - } - }; - } - }]); - return AddingAndRemoving; - }(lightning_esm/* default */.A.Component); -}; -AddingAndRemoving.parameters = { - storyDetails: "\n Press the Enter key while focused on any controls or items in the ControlRow for the following effects:\n - left controls: prepend a new control with a play icon to the left controls\n - content items: append a tile with a background after the selected index\n - right controls: append a new control with a play icon to the right controls\n Press the Enter key while focused on any of the added controls or content items to remove that control or content item.\n " -}; -Basic.parameters = { - ...Basic.parameters, - docs: { - ...Basic.parameters?.docs, - source: { - originalSource: "() => class Basic extends lng.Component {\n static _template() {\n return {\n ControlRow: {\n type: ControlRowComponent,\n leftControls: createControls(3),\n contentItems: createItems(5),\n rightControls: createControls(3)\n }\n };\n }\n _getFocused() {\n return this.tag('ControlRow');\n }\n}", - ...Basic.parameters?.docs?.source - } - } -}; -LazyLoading.parameters = { - ...LazyLoading.parameters, - docs: { - ...LazyLoading.parameters?.docs, - source: { - originalSource: "() => class LazyLoading extends lng.Component {\n static _template() {\n return {\n ControlRow: {\n type: ControlRowComponent,\n leftControls: createControls(3),\n contentItems: createItems(5),\n rightControls: createControls(3),\n lazyLoadBuffer: 1,\n signals: {\n loadMoreItems: '_loadMore'\n }\n }\n };\n }\n _construct() {\n this._counter = 0;\n }\n _loadMore() {\n if (this._counter < 2) {\n this._ControlRow.addContentItems(createItems(3, 'https://image.tmdb.org/t/p/w500/frwl2zBNAl5ZbFDJGoJv0mYo0rF.jpg'));\n this._counter++;\n }\n }\n _getFocused() {\n return this.tag('ControlRow');\n }\n get _ControlRow() {\n return this.tag('ControlRow');\n }\n}", - ...LazyLoading.parameters?.docs?.source - } - } -}; -AddingAndRemoving.parameters = { - ...AddingAndRemoving.parameters, - docs: { - ...AddingAndRemoving.parameters?.docs, - source: { - originalSource: "() => class AddingAndRemoving extends lng.Component {\n static _template() {\n return {\n ControlRow: {\n type: ControlRowComponent,\n signals: {\n addLeftControl: true,\n removeLeftControl: true,\n addContentItem: true,\n removeContentItem: true,\n addRightControl: true,\n removeRightControl: true\n },\n leftControls: createControls(1, lightningIcon, createSignal('addLeftControl')),\n contentItems: createItems(5, undefined, createSignal('addContentItem')),\n rightControls: createControls(1, lightningIcon, createSignal('addRightControl'))\n }\n };\n }\n addLeftControl() {\n this._ControlRow.addLeftControlsAt(createControls(1, playIcon, createSignal('removeLeftControl')), 0);\n }\n removeLeftControl() {\n this._ControlRow.removeLeftControlAt(this._ControlRow.selectedIndex);\n }\n addContentItem() {\n this._ControlRow.addContentItemsAt(createItems(1, parksUrl, createSignal('removeContentItem')), this.contentItemIndex + 1);\n }\n removeContentItem() {\n this._ControlRow.removeContentItemAt(this.contentItemIndex);\n }\n addRightControl() {\n this._ControlRow.addRightControls(createControls(1, playIcon, createSignal('removeRightControl')));\n }\n removeRightControl() {\n this._ControlRow.removeRightControlAt(this.rightControlIndex);\n }\n get _ControlRow() {\n return this.tag('ControlRow');\n }\n get contentItemIndex() {\n return this._ControlRow.selectedIndex - this._ControlRow.leftControls.length;\n }\n get rightControlIndex() {\n return this._ControlRow.selectedIndex - this._ControlRow.leftControls.length - this._ControlRow.contentItems.length;\n }\n _getFocused() {\n return this._ControlRow;\n }\n}", - ...AddingAndRemoving.parameters?.docs?.source - } - } -};;const __namedExportsOrder = ["Basic","LazyLoading","AddingAndRemoving"]; - -/***/ }), - -/***/ "../../@lightningjs/ui-components/src/components/Control/ControlSmall.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - A: () => (/* binding */ ControlSmall) -}); - -// NAMESPACE OBJECT: ../../@lightningjs/ui-components/src/components/Control/ControlSmall.styles.js -var ControlSmall_styles_namespaceObject = {}; -__webpack_require__.r(ControlSmall_styles_namespaceObject); -__webpack_require__.d(ControlSmall_styles_namespaceObject, { - base: () => (base) -}); - -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Control/Control.js -var Control = __webpack_require__("../../@lightningjs/ui-components/src/components/Control/Control.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Control/Control.styles.js -var Control_styles = __webpack_require__("../../@lightningjs/ui-components/src/components/Control/Control.styles.js"); -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/Control/ControlSmall.styles.js -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - -var base = function base(theme) { - var parentStyle = (0,Control_styles.base)(theme); - var height = theme.spacer.md * 7; - var radiusOffset = (parentStyle.height - height) / 2; - var radius = Math.max(parentStyle.radius - radiusOffset, 0); - var logoRadius = Math.max(radius - parentStyle.paddingX / 2, 0); - return { - height: height, - logoStyle: { - radius: logoRadius, - height: theme.spacer.md * 5, - width: theme.spacer.md * 6 - }, - radius: radius, - minWidth: theme.spacer.md * 8, - textStyle: theme.typography.button2 - }; -}; -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/Control/ControlSmall.js -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - - -var ControlSmall = /*#__PURE__*/function (_Control) { - _inherits(ControlSmall, _Control); - var _super = _createSuper(ControlSmall); - function ControlSmall() { - _classCallCheck(this, ControlSmall); - return _super.apply(this, arguments); - } - _createClass(ControlSmall, null, [{ - key: "__componentName", - get: function get() { - return 'ControlSmall'; - } - }, { - key: "__themeStyle", - get: function get() { - return ControlSmall_styles_namespaceObject; - } - }]); - return ControlSmall; -}(Control/* default */.A); - - -/***/ }) - -}]); -//# sourceMappingURL=141.65585e90.iframe.bundle.js.map \ No newline at end of file diff --git a/141.65585e90.iframe.bundle.js.map b/141.65585e90.iframe.bundle.js.map deleted file mode 100644 index 4d0299ba1..000000000 --- a/141.65585e90.iframe.bundle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"141.65585e90.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAAA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAEA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAyBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AAEA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAIA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AAEA;AACA;AACA;AAIA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AAEA;AAEA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AAAA;AACA;AACA;AAAA;AACA;AAEA;AAAA;AAAA;AAAA;AAGA;AAAA;AAEA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAIA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAEA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAOA;AACA;AAAA;AALA;AACA;AAAA;AAAA;AAAA;AAWA;AACA;AAAA;AALA;AACA;AAAA;AAAA;AAAA;AAWA;AACA;AAAA;AALA;AACA;AAAA;AAAA;AAAA;AAYA;AACA;AAAA;AANA;AACA;AACA;AAAA;AAAA;AAAA;AAjVA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAEA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;;;;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;ACrjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA","sources":["webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/ControlRow/ControlRow.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/ControlRow/ControlRow.js","webpack://lightning-ui-docs/","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Control/ControlSmall.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Control/ControlSmall.js"],"sourcesContent":["/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => ({\n extraItemSpacing: theme.spacer.lg\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport TitleRow from '../TitleRow';\n\nimport * as styles from './ControlRow.styles';\n\nexport default class ControlRow extends TitleRow {\n static get __componentName() {\n return 'ControlRow';\n }\n\n static get __themeStyles() {\n return styles;\n }\n\n static _template() {\n return {\n ...super._template(),\n alpha: 0,\n lazyScroll: true,\n signals: {\n selectedChange: '_getMoreItems'\n }\n };\n }\n\n static get properties() {\n return [...super.properties, 'extraItemSpacing'];\n }\n\n _construct() {\n super._construct();\n this._leftControls = [];\n this._contentItems = [];\n this._rightControls = [];\n this._lastLeftControlIndex = -1;\n this._lastItemIndex = -1;\n this._lazyLoadBuffer = 0;\n }\n\n _updateContent() {\n const itemsToAppend = [];\n if (this.leftControls.length) {\n itemsToAppend.push(...this._withExtraSpacing(this.leftControls, true));\n }\n if (this.contentItems.length) {\n itemsToAppend.push(...this._withExtraSpacing(this.contentItems));\n }\n if (this.rightControls.length) {\n itemsToAppend.push(...this.rightControls);\n }\n if (itemsToAppend.length) {\n this.patch({\n alpha: 1,\n items: itemsToAppend,\n selectedIndex: this.leftControls.length,\n startLazyScrollIndex: this.leftControls.length,\n stopLazyScrollIndex: this.leftControls.length + this.items.length - 1\n });\n }\n }\n\n _withExtraSpacing(items, isControl = false) {\n const itemsCopy = [...items];\n const prevItems = isControl ? this._prevLeftControls : this._prevItems;\n\n // after appending remove extra spacing from the previous last item\n if (prevItems && prevItems.length && itemsCopy[prevItems.length - 1]) {\n itemsCopy[prevItems.length - 1].extraItemSpacing = 0;\n }\n\n itemsCopy[itemsCopy.length - 1].extraItemSpacing =\n this.extraItemSpacing == undefined\n ? this.style.extraItemSpacing\n : this.extraItemSpacing;\n\n if (isControl) {\n this._prevLeftControls = itemsCopy;\n } else {\n this._prevItems = itemsCopy;\n }\n return itemsCopy;\n }\n\n _getMoreItems() {\n if (this.lazyLoadBuffer) {\n const loadMoreIndex = this.contentItems.length - 1 - this.lazyLoadBuffer;\n if (\n this.selectedIndex - this.leftControls.length >= loadMoreIndex &&\n this.selectedIndex < this.leftControls.length + this.contentItems.length\n ) {\n this.loadMoreItems();\n }\n }\n }\n\n loadMoreItems() {\n this.signal('loadMoreItems');\n }\n\n _selectedChange(selected, prevSelected) {\n super._selectedChange(selected, prevSelected);\n this._getMoreItems();\n }\n\n _appendItemsAt(items, appendIndex, removeSpacingIndex) {\n const itemsCopy = [...items];\n\n if (removeSpacingIndex != undefined && removeSpacingIndex >= 0) {\n this.items[removeSpacingIndex].extraItemSpacing = undefined;\n itemsCopy[itemsCopy.length - 1].extraItemSpacing =\n this.extraItemSpacing == undefined\n ? this.style.extraItemSpacing\n : this.extraItemSpacing;\n }\n this.appendItemsAt(itemsCopy, appendIndex);\n }\n\n addContentItems(items) {\n const lastSelected = this.selectedIndex;\n const itemsToAdd = this._createContentItems(items);\n const addIndex = this._lastItemIndex + 1;\n this._appendItemsAt(itemsToAdd, addIndex, this._lastItemIndex);\n this._lastItemIndex += itemsToAdd.length;\n\n if (this._contentItems) {\n this._contentItems = [...this.contentItems, ...itemsToAdd];\n }\n\n this._updateContent();\n this.selectedIndex = lastSelected;\n\n this.patch({\n stopLazyScrollIndex: this.leftControls.length + this.items.length - 1\n });\n }\n\n addContentItemsAt(items, itemIndex) {\n const itemsToAdd = this._createContentItems(items);\n const addIndex = this._lastLeftControlIndex + 1 + itemIndex;\n if (addIndex === this._lastItemIndex + 1) {\n this.addContentItems(itemsToAdd);\n } else {\n this._appendItemsAt(itemsToAdd, addIndex);\n\n if (this._contentItems) {\n this._contentItems.splice(addIndex, 0, ...itemsToAdd);\n this._lastItemIndex = this.contentItems.length - 1;\n }\n\n this.patch({\n stopLazyScrollIndex: this.leftControls.length + this.items.length - 1\n });\n }\n }\n\n removeContentItemAt(index) {\n const removeIndex = this._lastLeftControlIndex + 1 + index;\n this.removeItemAt(removeIndex);\n this._lastItemIndex--;\n\n if (this._contentItems) {\n this._contentItems.splice(index, 1);\n }\n\n this.patch({\n startLazyScrollIndex: this.leftControls.length,\n stopLazyScrollIndex: this.leftControls.length + this.items.length - 1\n });\n }\n\n addLeftControls(controls) {\n const itemsToAdd = this._createControls(controls);\n const addIndex = this._lastLeftControlIndex + 1;\n\n this._appendItemsAt(itemsToAdd, addIndex, this._lastLeftControlIndex);\n if (this._leftControls) {\n this._leftControls = [...this._leftControls, ...controls];\n this._lastLeftControlIndex = this._leftControls.length - 1;\n this._lastItemIndex += controls.length;\n }\n\n this.patch({\n startLazyScrollIndex: this.leftControls.length,\n stopLazyScrollIndex: this.leftControls.length + this.items.length - 1\n });\n }\n\n addLeftControlsAt(controls, index) {\n const itemsToAdd = this._createControls(controls);\n if (index === this._lastLeftControlIndex + 1) {\n this.addLeftControls(controls);\n } else {\n this._appendItemsAt(itemsToAdd, index);\n if (this.leftControls) {\n this._leftControls.splice(index, 0, ...controls);\n this._lastLeftControlIndex = this._leftControls.length - 1;\n this._lastItemIndex += controls.length;\n }\n\n this.patch({\n startLazyScrollIndex: this.leftControls.length,\n stopLazyScrollIndex: this.leftControls.length + this.items.length - 1\n });\n }\n }\n\n removeLeftControlAt(index) {\n this.removeItemAt(index);\n this._lastLeftControlIndex--;\n this._lastItemIndex--;\n\n if (this.leftControls) {\n this._leftControls.splice(index, 1);\n }\n\n this.patch({\n startLazyScrollIndex: this.leftControls.length,\n stopLazyScrollIndex: this.leftControls.length + this.items.length - 1\n });\n }\n\n addRightControls(controls) {\n this._rightControls.push(...controls);\n this._appendItemsAt(this._createControls(controls), this.items.length);\n }\n\n addRightControlsAt(controls, index) {\n const appendIndex =\n this._leftControls.length + this._contentItems.length + index;\n this._rightControls.splice(index, 0, ...controls);\n this._appendItemsAt(this._createControls(controls), appendIndex);\n }\n\n removeRightControlAt(index) {\n const removeIndex =\n this.leftControls.length + this.contentItems.length + index;\n this.removeItemAt(removeIndex);\n\n if (this.rightControls) {\n this._rightControls.splice(index, 1);\n }\n }\n\n _createControls(controls) {\n return controls.map(controlProps => ({\n backgroundType: 'fill',\n centerInParent: true,\n ...controlProps\n }));\n }\n\n _createContentItems(contentItems) {\n const newContentItems = contentItems.map(itemProps => ({\n ...itemProps,\n centerInParent: true\n }));\n\n return newContentItems;\n }\n\n _setLeftControls(leftControls) {\n this._leftControls = this._createControls(leftControls);\n this._lastLeftControlIndex = leftControls.length - 1;\n this._updateContent();\n }\n\n _getLeftControls() {\n return this._leftControls;\n }\n\n _setRightControls(rightControls) {\n this._rightControls = this._createControls(rightControls);\n this._updateContent();\n }\n\n _getRightControls() {\n return this._rightControls;\n }\n\n _getContentItems() {\n return this._contentItems;\n }\n\n _setContentItems(items) {\n this._contentItems = this._createContentItems(items);\n this._lastItemIndex = this._lastLeftControlIndex + items.length;\n this._updateContent();\n }\n\n _getLeftControlItems() {\n if (this.leftControls.length) {\n return this.items.slice(0, this._lastLeftControlIndex + 1);\n }\n return [];\n }\n\n _getContentItemItems() {\n if (this.contentItems.length) {\n return this.items.slice(\n this._lastLeftControlIndex + 1,\n this._lastItemIndex + 1\n );\n }\n return [];\n }\n\n _getRightControlItems() {\n if (this.rightControls.length) {\n const leftSiblingIndex =\n this._lastItemIndex || this._lastLeftControlIndex;\n return leftSiblingIndex\n ? this.items.slice(leftSiblingIndex + 1)\n : this.items;\n }\n return [];\n }\n\n set leftControls(leftControls) {\n this._setLeftControls(leftControls);\n }\n\n get leftControls() {\n return this._getLeftControls();\n }\n\n set rightControls(rightControls) {\n this._setRightControls(rightControls);\n }\n\n get rightControls() {\n return this._getRightControls();\n }\n\n set contentItems(items) {\n this._setContentItems(items);\n }\n\n get contentItems() {\n return this._getContentItems();\n }\n\n set lazyLoadBuffer(lazyLoadBuffer) {\n this._lazyLoadBuffer = lazyLoadBuffer;\n this._getMoreItems();\n }\n\n get lazyLoadBuffer() {\n return this._lazyLoadBuffer;\n }\n}\n",null,"/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { base as ControlStyle } from './Control.styles';\n\nexport const base = theme => {\n const parentStyle = ControlStyle(theme);\n const height = theme.spacer.md * 7;\n const radiusOffset = (parentStyle.height - height) / 2;\n const radius = Math.max(parentStyle.radius - radiusOffset, 0);\n const logoRadius = Math.max(radius - parentStyle.paddingX / 2, 0);\n\n return {\n height,\n logoStyle: {\n radius: logoRadius,\n height: theme.spacer.md * 5,\n width: theme.spacer.md * 6\n },\n radius,\n minWidth: theme.spacer.md * 8,\n textStyle: theme.typography.button2\n };\n};\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport Control from './Control';\nimport * as styles from './ControlSmall.styles';\n\nexport default class ControlSmall extends Control {\n static get __componentName() {\n return 'ControlSmall';\n }\n\n static get __themeStyle() {\n return styles;\n }\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/3623.a4207740.iframe.bundle.js b/1735.08f9a3dc.iframe.bundle.js similarity index 52% rename from 3623.a4207740.iframe.bundle.js rename to 1735.08f9a3dc.iframe.bundle.js index b26094e14..c910c31c3 100644 --- a/3623.a4207740.iframe.bundle.js +++ b/1735.08f9a3dc.iframe.bundle.js @@ -1,5 +1,5 @@ "use strict"; -(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[3623],{ +(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[1735],{ /***/ "../../@lightningjs/ui-components/src/components/Button/ButtonSmall.js": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -52,18 +52,18 @@ var base = function base(theme) { }; ;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/Button/ButtonSmall.js function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } +function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } +function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); } +function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } +function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); } +function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } /** * Copyright 2023 Comcast Cable Communications Management, LLC * @@ -85,13 +85,12 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g var ButtonSmall = /*#__PURE__*/function (_Button) { - _inherits(ButtonSmall, _Button); - var _super = _createSuper(ButtonSmall); function ButtonSmall() { _classCallCheck(this, ButtonSmall); - return _super.apply(this, arguments); + return _callSuper(this, ButtonSmall, arguments); } - _createClass(ButtonSmall, null, [{ + _inherits(ButtonSmall, _Button); + return _createClass(ButtonSmall, null, [{ key: "__componentName", get: function get() { return 'ButtonSmall'; @@ -102,7 +101,6 @@ var ButtonSmall = /*#__PURE__*/function (_Button) { return ButtonSmall_styles_namespaceObject; } }]); - return ButtonSmall; }(Button/* default */.A); @@ -118,29 +116,30 @@ var ButtonSmall = /*#__PURE__*/function (_Button) { /* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Icon/Icon.js"); /* harmony import */ var _Control_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Control/Control.styles.js"); function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } +function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } +function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); } +function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); } +function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } +function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); } -function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } +function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } +function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); } +function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _superPropGet(t, e, o, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), e, o); return 2 & r && "function" == typeof p ? function (t) { return p.apply(o, t); } : p; } +function _get() { return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); } +function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; } +function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } +function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); } +function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } /** * Copyright 2023 Comcast Cable Communications Management, LLC * @@ -163,20 +162,19 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g var Control = /*#__PURE__*/function (_ButtonSmall) { - _inherits(Control, _ButtonSmall); - var _super = _createSuper(Control); function Control() { _classCallCheck(this, Control); - return _super.apply(this, arguments); + return _callSuper(this, Control, arguments); } - _createClass(Control, [{ + _inherits(Control, _ButtonSmall); + return _createClass(Control, [{ key: "_update", value: function _update() { // ordering this way to make sure that this._Title is defined so the title visibility can be set properly when _updateCollapseStatus is called this._updatePrefixStyle(); - _get(_getPrototypeOf(Control.prototype), "_updateTitle", this).call(this); + _superPropGet(Control, "_updateTitle", this, 3)([]); this._updateCollapseStatus(); - _get(_getPrototypeOf(Control.prototype), "_update", this).call(this); + _superPropGet(Control, "_update", this, 3)([]); } }, { key: "_updateCollapseStatus", @@ -255,7 +253,7 @@ var Control = /*#__PURE__*/function (_ButtonSmall) { break; } } else { - _get(_getPrototypeOf(Control.prototype), "_updateContentPosition", this).call(this); + _superPropGet(Control, "_updateContentPosition", this, 3)([]); this._Title && this._patchTitle(0, 0); // RESET Title back to original position } } @@ -352,7 +350,7 @@ var Control = /*#__PURE__*/function (_ButtonSmall) { }, { key: "properties", get: function get() { - return [].concat(_toConsumableArray(_get(_getPrototypeOf(Control), "properties", this)), ['icon', 'logo', 'shouldCollapse']); + return [].concat(_toConsumableArray(_superPropGet(Control, "properties", this)), ['icon', 'logo', 'shouldCollapse']); } }, { key: "aliasStyles", @@ -363,7 +361,6 @@ var Control = /*#__PURE__*/function (_ButtonSmall) { }]; } }]); - return Control; }(_Button__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A); @@ -419,6 +416,120 @@ var base = function base(theme) { }; }; +/***/ }), + +/***/ "../../@lightningjs/ui-components/src/components/Control/ControlSmall.js": +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + A: () => (/* binding */ ControlSmall) +}); + +// NAMESPACE OBJECT: ../../@lightningjs/ui-components/src/components/Control/ControlSmall.styles.js +var ControlSmall_styles_namespaceObject = {}; +__webpack_require__.r(ControlSmall_styles_namespaceObject); +__webpack_require__.d(ControlSmall_styles_namespaceObject, { + base: () => (base) +}); + +// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Control/Control.js +var Control = __webpack_require__("../../@lightningjs/ui-components/src/components/Control/Control.js"); +// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Control/Control.styles.js +var Control_styles = __webpack_require__("../../@lightningjs/ui-components/src/components/Control/Control.styles.js"); +;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/Control/ControlSmall.styles.js +/** + * Copyright 2023 Comcast Cable Communications Management, LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + + +var base = function base(theme) { + var parentStyle = (0,Control_styles.base)(theme); + var height = theme.spacer.md * 7; + var radiusOffset = (parentStyle.height - height) / 2; + var radius = Math.max(parentStyle.radius - radiusOffset, 0); + var logoRadius = Math.max(radius - parentStyle.paddingX / 2, 0); + return { + height: height, + logoStyle: { + radius: logoRadius, + height: theme.spacer.md * 5, + width: theme.spacer.md * 6 + }, + radius: radius, + minWidth: theme.spacer.md * 8, + textStyle: theme.typography.button2 + }; +}; +;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/Control/ControlSmall.js +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } +function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } +function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); } +function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } +function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); } +function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } +/** + * Copyright 2023 Comcast Cable Communications Management, LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + + + +var ControlSmall = /*#__PURE__*/function (_Control) { + function ControlSmall() { + _classCallCheck(this, ControlSmall); + return _callSuper(this, ControlSmall, arguments); + } + _inherits(ControlSmall, _Control); + return _createClass(ControlSmall, null, [{ + key: "__componentName", + get: function get() { + return 'ControlSmall'; + } + }, { + key: "__themeStyle", + get: function get() { + return ControlSmall_styles_namespaceObject; + } + }]); +}(Control/* default */.A); + + /***/ }), /***/ "../../@lightningjs/ui-components/src/assets/images/ic_lightning_white_32.png": @@ -429,4 +540,4 @@ module.exports = __webpack_require__.p + "static/media/ic_lightning_white_32.06a /***/ }) }]); -//# sourceMappingURL=3623.a4207740.iframe.bundle.js.map \ No newline at end of file +//# sourceMappingURL=1735.08f9a3dc.iframe.bundle.js.map \ No newline at end of file diff --git a/1735.08f9a3dc.iframe.bundle.js.map b/1735.08f9a3dc.iframe.bundle.js.map new file mode 100644 index 000000000..e02342cbe --- /dev/null +++ b/1735.08f9a3dc.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"1735.08f9a3dc.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAkBA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;;AAEA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;;AAEA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAAA;AAAA;AAAA;AAEA;AACA;;AAEA;AAAA;AAAA;AAAA;AAEA;AACA;;AAEA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAGA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAGA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AA5KA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;;;;;;;;;;;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA","sources":["webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Button/ButtonSmall.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Button/ButtonSmall.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Control/Control.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Control/Control.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Control/ControlSmall.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Control/ControlSmall.js"],"sourcesContent":["/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { getWidthByColumnSpan } from '../../utils';\n\nexport const base = theme => ({\n minWidth: getWidthByColumnSpan(theme, 1),\n paddingX: theme.spacer.xxl,\n paddingXNoTitle: theme.spacer.lg,\n paddingY: theme.spacer.lg,\n textStyle: theme.typography.button2\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport Button from './Button';\nimport * as styles from './ButtonSmall.styles';\n\nexport default class ButtonSmall extends Button {\n static get __componentName() {\n return 'ButtonSmall';\n }\n\n static get __themeStyle() {\n return styles;\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { ButtonSmall } from '../Button';\nimport Icon from '../Icon';\nimport * as styles from './Control.styles';\n\nexport default class Control extends ButtonSmall {\n static get __componentName() {\n return 'Control';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static get properties() {\n return [...super.properties, 'icon', 'logo', 'shouldCollapse'];\n }\n\n static get aliasStyles() {\n return [{ prev: 'titlePadding', curr: 'contentSpacing' }];\n }\n\n _update() {\n // ordering this way to make sure that this._Title is defined so the title visibility can be set properly when _updateCollapseStatus is called\n this._updatePrefixStyle();\n super._updateTitle();\n this._updateCollapseStatus();\n super._update();\n }\n\n _updateCollapseStatus() {\n if (this._Title) {\n this._Title.visible = !this._collapse;\n }\n }\n\n // if user provides styling of either logo or icon, apply the style to the respected element\n _updatePrefixStyle() {\n if (this._prefix) {\n // checking logo first since it takes precedence\n if (this.logo) {\n this._updatePrefixObj(this.logo, {\n style: { color: undefined, ...this.style.logoStyle }\n });\n } else if (this.icon) {\n this._updatePrefixObj(this.icon, { style: this.style.iconStyle });\n }\n }\n }\n\n // optimization\n // sets Title's x and mountX values\n _patchTitle(x, mountX) {\n this._Title.patch({\n x,\n mountX\n });\n }\n\n _updateContentPosition() {\n if (this._prefix && this._Title) {\n // placing prefix always to the left if title is present\n // justification should only apply to title in this case\n this._Content.patch({\n mountX: 0,\n x: this._paddingLeft\n });\n\n switch (this._justify) {\n case 'left':\n this._patchTitle(0, 0);\n break;\n case 'right':\n if (this.w < this._Prefix.w + this._Title.w) {\n this._patchTitle(0, 0);\n } else {\n const leftOverSpace =\n this.w -\n (this._paddingLeft +\n this._paddingRight +\n this._Prefix.w +\n this.style.contentSpacing);\n\n this._patchTitle(leftOverSpace, 1);\n }\n break;\n case 'center':\n default:\n if (this.fixed) {\n // if the component width is less than the prefix and title then we go to the default padding on left and right of title\n if (this.w < this._Prefix.w + this._Title.w) {\n this._patchTitle(0, 0);\n } else {\n const middle =\n (this.w -\n (this._paddingLeft + this._Prefix.w + this._paddingRight)) /\n 2;\n this._patchTitle(middle, 0.5);\n }\n } else if (this._Prefix !== undefined) {\n const middle =\n (this.w -\n (this._paddingLeft +\n this._Prefix.w +\n this.style.contentSpacing +\n this._paddingRight)) /\n 2;\n this._patchTitle(middle, 0.5);\n }\n break;\n }\n } else {\n super._updateContentPosition();\n this._Title && this._patchTitle(0, 0); // RESET Title back to original position\n }\n }\n\n // does nothing if a prefix property is passed in for Control\n _setPrefix() {\n return;\n }\n\n // does nothing if a suffix property is passed in for Control\n _setSuffix() {\n return;\n }\n\n // optimization\n // turning prefix property setter into a function since functionality is repeated\n _updatePrefixObj(icon, props = {}) {\n this._prefix = {\n type: Icon,\n icon,\n ...props\n };\n }\n\n _setIcon(icon) {\n if (!this.logo) {\n // if icon is defined then set it otherwise set prefix to be undefined\n if (icon) {\n this._updatePrefixObj(icon, { style: this.style.iconStyle });\n } else {\n this._prefix = icon;\n }\n }\n return icon;\n }\n\n _setLogo(logo) {\n if (logo) {\n this._updatePrefixObj(logo, {\n style: { color: undefined, ...this.style.logoStyle }\n });\n // if logo is set to undefined but an icon is provided, display the icon\n } else if (this.icon) {\n this._updatePrefixObj(this.icon, { style: this.style.iconStyle });\n } else {\n this._prefix = logo;\n }\n return logo;\n }\n\n get _paddingLeft() {\n return this.logo ? this.style.paddingXNoTitle : this.style.paddingX;\n }\n\n get _paddingRight() {\n return this.logo && (!this._hasTitle || this._collapse)\n ? this.style.paddingXNoTitle\n : this.style.paddingX;\n }\n\n get _collapse() {\n return this.shouldCollapse && !this._isFocusedMode;\n }\n\n get _announceComponentName() {\n return Control.__componentName;\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => {\n const paddingX = theme.spacer.lg;\n const radius = theme.radius.xl;\n const logoRadius = Math.max(radius - paddingX / 2, 0);\n\n return {\n height: theme.spacer.md * 8,\n iconStyle: {\n radius: radius,\n width: theme.spacer.xxxl,\n height: theme.spacer.xxxl\n },\n logoStyle: {\n radius: logoRadius,\n width: theme.spacer.md * 7,\n height: theme.spacer.md * 6\n },\n minWidth: theme.spacer.md * 9,\n paddingX,\n paddingXNoTitle: theme.spacer.md,\n prefixPadding: theme.spacer.md,\n radius,\n contentSpacing: theme.spacer.md\n };\n};\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { base as ControlStyle } from './Control.styles';\n\nexport const base = theme => {\n const parentStyle = ControlStyle(theme);\n const height = theme.spacer.md * 7;\n const radiusOffset = (parentStyle.height - height) / 2;\n const radius = Math.max(parentStyle.radius - radiusOffset, 0);\n const logoRadius = Math.max(radius - parentStyle.paddingX / 2, 0);\n\n return {\n height,\n logoStyle: {\n radius: logoRadius,\n height: theme.spacer.md * 5,\n width: theme.spacer.md * 6\n },\n radius,\n minWidth: theme.spacer.md * 8,\n textStyle: theme.typography.button2\n };\n};\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport Control from './Control';\nimport * as styles from './ControlSmall.styles';\n\nexport default class ControlSmall extends Control {\n static get __componentName() {\n return 'ControlSmall';\n }\n\n static get __themeStyle() {\n return styles;\n }\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/2072.9cbb9aca.iframe.bundle.js b/1930.66127212.iframe.bundle.js similarity index 67% rename from 2072.9cbb9aca.iframe.bundle.js rename to 1930.66127212.iframe.bundle.js index 1516cddc6..36cca26f4 100644 --- a/2072.9cbb9aca.iframe.bundle.js +++ b/1930.66127212.iframe.bundle.js @@ -1,5 +1,5 @@ "use strict"; -(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[2072],{ +(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[1930],{ /***/ "../../@lightningjs/ui-components/src/components/Artwork/Artwork.js": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -81,32 +81,34 @@ var CustomImageTexture = __webpack_require__("../../@lightningjs/ui-components/s function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { 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" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } +function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { 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" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } +function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); } +function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; } +function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); } function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } +function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function set(target, property, value, receiver) { if (typeof Reflect !== "undefined" && Reflect.set) { set = Reflect.set; } else { set = function set(target, property, value, receiver) { var base = _superPropBase(target, property); var desc; if (base) { desc = Object.getOwnPropertyDescriptor(base, property); if (desc.set) { desc.set.call(receiver, value); return true; } else if (!desc.writable) { return false; } } desc = Object.getOwnPropertyDescriptor(receiver, property); if (desc) { if (!desc.writable) { return false; } desc.value = value; Object.defineProperty(receiver, property, desc); } else { _defineProperty(receiver, property, value); } return true; }; } return set(target, property, value, receiver); } -function _set(target, property, value, receiver, isStrict) { var s = set(target, property, value, receiver || target); if (!s && isStrict) { throw new TypeError('failed to set property'); } return value; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } +function _arrayWithHoles(r) { if (Array.isArray(r)) return r; } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } +function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); } +function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _superPropSet(t, e, o, r, p, f) { return _set(_getPrototypeOf(f ? t.prototype : t), e, o, r, p); } +function set(e, r, t, o) { return set = "undefined" != typeof Reflect && Reflect.set ? Reflect.set : function (e, r, t, o) { var f, i = _superPropBase(e, r); if (i) { if ((f = Object.getOwnPropertyDescriptor(i, r)).set) return f.set.call(o, t), !0; if (!f.writable) return !1; } if (f = Object.getOwnPropertyDescriptor(o, r)) { if (!f.writable) return !1; f.value = t, Object.defineProperty(o, r, f); } else _defineProperty(o, r, t); return !0; }, set(e, r, t, o); } +function _set(e, r, t, o, f) { if (!set(e, r, t, o || e) && f) throw new TypeError("failed to set property"); return t; } +function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); } -function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } +function _superPropGet(t, e, o, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), e, o); return 2 & r && "function" == typeof p ? function (t) { return p.apply(o, t); } : p; } +function _get() { return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); } +function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; } +function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } +function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); } +function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } /** * Copyright 2023 Comcast Cable Communications Management, LLC * @@ -133,13 +135,12 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g var Artwork = /*#__PURE__*/function (_Base) { - _inherits(Artwork, _Base); - var _super = _createSuper(Artwork); function Artwork() { _classCallCheck(this, Artwork); - return _super.apply(this, arguments); + return _callSuper(this, Artwork, arguments); } - _createClass(Artwork, [{ + _inherits(Artwork, _Base); + return _createClass(Artwork, [{ key: "_shouldBlur", get: function get() { var shouldBur = this._blur || this._hasCenterImage; @@ -154,21 +155,21 @@ var Artwork = /*#__PURE__*/function (_Base) { }, { key: "w", get: function get() { - return _get(_getPrototypeOf(Artwork.prototype), "w", this); + return _superPropGet(Artwork, "w", this, 1); }, set: function set(v) { - if (v === _get(_getPrototypeOf(Artwork.prototype), "w", this)) return; - _set(_getPrototypeOf(Artwork.prototype), "w", v, this, true); + if (v === _superPropGet(Artwork, "w", this, 1)) return; + _superPropSet(Artwork, "w", v, this, 1, 1); this._componentSrc = this._generatePromise(); } }, { key: "h", get: function get() { - return _get(_getPrototypeOf(Artwork.prototype), "h", this); + return _superPropGet(Artwork, "h", this, 1); }, set: function set(v) { - if (v === _get(_getPrototypeOf(Artwork.prototype), "h", this)) return; - _set(_getPrototypeOf(Artwork.prototype), "h", v, this, true); + if (v === _superPropGet(Artwork, "h", this, 1)) return; + _superPropSet(Artwork, "h", v, this, 1, 1); this._componentSrc = this._generatePromise(); } }, { @@ -235,7 +236,7 @@ var Artwork = /*#__PURE__*/function (_Base) { }, { key: "_construct", value: function _construct() { - _get(_getPrototypeOf(Artwork.prototype), "_construct", this).call(this); + _superPropGet(Artwork, "_construct", this, 3)([]); this._srcCallbackAspectRatios = ['16x9', '3x4', '4x3', '2x1', '1x1']; } }, { @@ -290,7 +291,7 @@ var Artwork = /*#__PURE__*/function (_Base) { }, { key: "_update", value: function () { - var _update2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { + var _update2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() { return _regeneratorRuntime().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: @@ -384,7 +385,7 @@ var Artwork = /*#__PURE__*/function (_Base) { }, { key: "_updateForegroundImage", value: function () { - var _updateForegroundImage2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() { + var _updateForegroundImage2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() { var _this3 = this; var foregroundImagePatch; return _regeneratorRuntime().wrap(function _callee2$(_context2) { @@ -518,7 +519,7 @@ var Artwork = /*#__PURE__*/function (_Base) { }, { key: "_updateFormatContain", value: function () { - var _updateFormatContain2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() { + var _updateFormatContain2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() { var imageW, imageH, ratioW, ratioH, src; return _regeneratorRuntime().wrap(function _callee3$(_context3) { while (1) switch (_context3.prev = _context3.next) { @@ -689,7 +690,7 @@ var Artwork = /*#__PURE__*/function (_Base) { }, { key: "_updateImage", value: function () { - var _updateImage2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() { + var _updateImage2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() { var src; return _regeneratorRuntime().wrap(function _callee4$(_context4) { while (1) switch (_context4.prev = _context4.next) { @@ -807,7 +808,6 @@ var Artwork = /*#__PURE__*/function (_Base) { }; } }]); - return Artwork; }(Base/* default */.A); @@ -876,18 +876,18 @@ var tone = function tone(theme) { var utils = __webpack_require__("../../@lightningjs/ui-components/src/utils/index.js"); ;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/Gradient/Gradient.js function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } +function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } +function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); } +function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } +function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); } +function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } /** * Copyright 2023 Comcast Cable Communications Management, LLC * @@ -911,13 +911,12 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g var Gradient = /*#__PURE__*/function (_Base) { - _inherits(Gradient, _Base); - var _super = _createSuper(Gradient); function Gradient() { _classCallCheck(this, Gradient); - return _super.apply(this, arguments); + return _callSuper(this, Gradient, arguments); } - _createClass(Gradient, [{ + _inherits(Gradient, _Base); + return _createClass(Gradient, [{ key: "_update", value: function _update() { this.patch({ @@ -939,11 +938,10 @@ var Gradient = /*#__PURE__*/function (_Base) { return Gradient_styles_namespaceObject; } }]); - return Gradient; }(Base/* default */.A); /***/ }) }]); -//# sourceMappingURL=2072.9cbb9aca.iframe.bundle.js.map \ No newline at end of file +//# sourceMappingURL=1930.66127212.iframe.bundle.js.map \ No newline at end of file diff --git a/1930.66127212.iframe.bundle.js.map b/1930.66127212.iframe.bundle.js.map new file mode 100644 index 000000000..bb01ec58e --- /dev/null +++ b/1930.66127212.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"1930.66127212.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;AC3CA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AADA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAqDA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AAIA;AAAA;AAAA;AAAA;AASA;AACA;AAAA;AAPA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAaA;AACA;AAAA;AAPA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAOA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AAAA;AACA;AAEA;AAGA;AAAA;AAAA;AAAA;AAGA;AACA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AAMA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAEA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAEA;AACA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAvBA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA0BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAGA;AAGA;AACA;AACA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAtDA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAwDA;AACA;AAOA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAIA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AACA;AAAA;AAAA;AAQA;AAIA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAEA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAhFA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmFA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAEA;AAAA;AAAA;AAAA;AACA;AAAA;AAEA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAIA;AAAA;AAEA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AA1BA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA6BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAjmBA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAcA;AAAA;AAAA;AAAA;AAGA;AASA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAEA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;AC5EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAAA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;;;;;;;;;;;;;;;;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA;AACA;AACA;AACA;AACA;AACA;AAKA;AACA;AAAA;AAAA;AAAA;AAnBA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA","sources":["webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Artwork/Artwork.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Artwork/Artwork.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Gradient/Gradient.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Gradient/Gradient.js"],"sourcesContent":["/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => ({\n animationBlurEntrance: theme.animation.utilityEntrance,\n animationBlurExit: theme.animation.utilityExit,\n animationComponentEntrance: theme.animation.utilityEntrance,\n animationGradientEntrance: theme.animation.utilityEntrance,\n animationGradientExit: theme.animation.utilityExit,\n animationImageScaleEntrance: theme.animation.standardEntrance,\n animationImageScaleExit: theme.animation.standardEntrance,\n blur: 4,\n centerImageRadius: theme.radius.md,\n fallbackSrc: undefined,\n fillColor: theme.color.overlay,\n gradientColor: theme.color.material,\n imageScale: 1,\n imageScalePivotX: 0.5,\n imageScalePivotY: 0.5,\n padding: theme.spacer.md,\n radius: 0,\n zIndexSet: {\n image: 1,\n blur: 2,\n centerImage: 3,\n fill: 4,\n gradient: 5,\n foreground: 6\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport { getMaxRoundRadius, getValidColor, reduceFraction } from '../../utils';\nimport Base from '../Base';\nimport Gradient from '../Gradient';\nimport * as styles from './Artwork.styles';\nimport context from '../../globals/context/index';\nimport CustomImageTexture from '../../textures/CustomImageTexture';\n\nexport default class Artwork extends Base {\n static get __componentName() {\n return 'Artwork';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static get properties() {\n return [\n 'blur',\n 'fallbackSrc',\n 'foregroundHeight',\n 'foregroundSrc',\n 'foregroundWidth',\n 'gradient',\n 'format',\n 'src',\n 'fill',\n 'shouldScale',\n 'srcCallback',\n 'srcCallbackAspectRatios'\n ];\n }\n\n static get tags() {\n return [\n 'Blur',\n 'CenterImage',\n 'FillColor',\n 'ForegroundImage',\n 'Gradient',\n 'Image',\n 'Item'\n ];\n }\n\n static get aliasProperties() {\n return [\n { prev: 'foregroundH', curr: 'foregroundHeight' },\n { prev: 'foregroundW', curr: 'foregroundWidth' }\n ];\n }\n\n static _template() {\n return {\n rtt: true,\n Image: {}\n };\n }\n\n get _shouldBlur() {\n const shouldBur = this._blur || this._hasCenterImage;\n this._Image.rtt = shouldBur; // rtt can cause a performance hit. Remove if not needed on Image\n return shouldBur; // Artwork should always use blur when circleImage is set to true\n }\n\n get _hasCenterImage() {\n return (\n -1 < ['circle', 'square'].indexOf(this.format) ||\n ('contain' === this.format && !this._aspectRatioEqual)\n );\n }\n\n set w(v) {\n if (v === super.w) return;\n super.w = v;\n this._componentSrc = this._generatePromise();\n }\n\n get w() {\n return super.w;\n }\n\n set h(v) {\n if (v === super.h) return;\n super.h = v;\n this._componentSrc = this._generatePromise();\n }\n\n get h() {\n return super.h;\n }\n\n get _actualAspectRatio() {\n if (!this.w || !this.h) return null;\n return reduceFraction(`${this.w}/${this.h}`).replace('/', 'x');\n }\n\n get _supportedAspectRatioHeights() {\n return this.srcCallbackAspectRatios.map(ratio => {\n const [rw, rh] = ratio.split('x').map(v => parseInt(v));\n const calcHeight = (this.w / rw) * rh;\n return calcHeight;\n });\n }\n\n get _closestSupportedAspectRatio() {\n const closest = this._supportedAspectRatioHeights.reduce((prev, curr) =>\n Math.abs(curr - this.h) < Math.abs(prev - this.h) ? curr : prev\n );\n return this.srcCallbackAspectRatios[\n this._supportedAspectRatioHeights.indexOf(closest)\n ];\n }\n\n get _processedImageSrc() {\n let src = this.src || this.fallbackSrc;\n if (\n src !== this.fallbackSrc &&\n this.srcCallback &&\n typeof this.srcCallback === 'function'\n ) {\n src = this.srcCallback({\n closestAspectRatio: this._closestSupportedAspectRatio,\n aspectRatio: this._actualAspectRatio,\n src: this.src,\n w: this.w,\n h: this.h\n });\n }\n\n return src && src.then ? src : Promise.resolve(src);\n }\n\n get _gradientPatch() {\n return {\n alpha: !this._Gradient && this.shouldSmooth ? 0.001 : 1,\n style: {\n gradientColor: getValidColor(this.style.gradientColor)\n },\n h: this.h + 4,\n type: Gradient,\n w: this.w + 4,\n x: -2,\n y: -2,\n zIndex: this.core.findZContext().zIndex + this.style.zIndexSet.gradient\n };\n }\n\n _construct() {\n super._construct();\n this._srcCallbackAspectRatios = ['16x9', '3x4', '4x3', '2x1', '1x1'];\n }\n\n _setSrc(v) {\n this._componentSrc = this._generatePromise();\n return v;\n }\n\n _getFallbackSrc() {\n return this._fallbackSrc || (this.style && this.style.fallbackSrc);\n }\n\n _generatePromise() {\n // When a new src, w, or h value is added promises need to be reset\n let resolvePromise, rejectPromise;\n const complete = new Promise(function (resolve, reject) {\n resolvePromise = resolve;\n rejectPromise = reject;\n });\n return {\n complete,\n resolve: resolvePromise,\n reject: rejectPromise\n };\n }\n\n _setup() {\n this.alpha = 0.001; // Hide on first load to stop flash of un-styled content on first creation\n this._componentSrc = this._generatePromise(); // Initialize loading promises\n this._aspectRatioEqual = false;\n // Wait for _Image to be added to the tree to set listeners\n this._Image.on('txLoaded', this._resolveLoading.bind(this));\n this._Image.on('txError', this._rejectLoading.bind(this));\n }\n\n _resolveLoading() {\n this._aspectRatioEqual = this._Image.texture.source\n ? parseFloat(this.finalW / this.finalH).toFixed(2) ===\n parseFloat(\n this._Image.texture.source.w / this._Image.texture.source.h\n ).toFixed(2)\n : false;\n this._componentSrc.resolve && this._componentSrc.resolve();\n this.signal('imageLoaded');\n }\n\n _rejectLoading(error) {\n this._componentSrc.reject && this._componentSrc.reject(error);\n this.signal('imageLoadFailed');\n }\n\n async _update() {\n this._updateRadius();\n this._updateGradient();\n\n await this._updateImage();\n this._updateFillColor();\n this._updateForegroundImage();\n if (!this.src) {\n this._showComponent(); // Ensure that component displays even in the case that src is not set\n return;\n }\n try {\n // These actions are dependent on the image loading so we wait for the process to complete\n await this._componentSrc.complete;\n await this._updateCenterImage();\n this._updateBlur();\n // After everything is setup fade in the Artwork component for the first time\n this._showComponent();\n this._updateScale();\n } catch (e) {\n this._handleImageLoadError();\n }\n if (this.shouldSmooth === undefined) this.shouldSmooth = true;\n }\n\n _updateScale() {\n if (this.shouldScale) {\n let imageScale;\n switch (typeof this.style.imageScale) {\n case 'function':\n imageScale = this.style.imageScale(this.w);\n break;\n case 'number':\n imageScale = this.style.imageScale;\n break;\n default:\n imageScale = 1;\n }\n\n this._Image.smooth = {\n pivotX: this.style.imageScalePivotX,\n pivotY: this.style.imageScalePivotY,\n scale: [\n imageScale,\n this._Image.scale < imageScale\n ? this.style.animationImageScaleEntrance\n : this.style.animationImageScaleExit\n ]\n };\n } else {\n const scale = 1;\n this._Image.smooth = {\n scale: [scale, this.style.animationImageScaleExit]\n };\n }\n }\n\n _handleImageLoadError() {\n if (this.src === this.fallbackSrc) return;\n context.error(`Image ${this._src} failed to load`);\n if (this.fallbackSrc && this.fallbackSrc !== this.src) {\n this.src = this.fallbackSrc;\n }\n }\n\n _showComponent() {\n this.smooth = {\n alpha: [1, this.style.animationComponentEntrance]\n };\n }\n\n async _updateForegroundImage() {\n if (!this._foregroundSrc) {\n if (this._ForegroundImage) {\n this.patch({\n ForegroundImage: undefined\n });\n }\n return;\n }\n\n const foregroundImagePatch = {\n mount: 0.5,\n x: this.w / 2,\n y: this.h / 2,\n zIndex: this.core.findZContext().zIndex + this.style.zIndexSet.foreground,\n texture: {\n type: CustomImageTexture,\n src: this._foregroundSrc,\n hasAlpha: true\n }\n };\n\n if (this.foregroundWidth && this.foregroundHeight) {\n // The image size is already known so we can just patch it\n foregroundImagePatch.h = this.foregroundHeight;\n foregroundImagePatch.w = this.foregroundWidth;\n\n this.patch({\n ForegroundImage: foregroundImagePatch\n });\n } else if (this.foregroundWidth || this.foregroundHeight) {\n // Load the image to get the aspect ratio before showing\n this.patch({\n ForegroundImage: { ...foregroundImagePatch, alpha: 0.001 }\n });\n\n this._ForegroundImage.once('txLoaded', () => {\n const imageW = this._ForegroundImage.texture.getRenderWidth();\n const imageH = this._ForegroundImage.texture.getRenderHeight();\n this._ForegroundImage.patch({\n alpha: 1,\n w: this.foregroundHeight\n ? this.foregroundHeight * (imageW / imageH)\n : this.foregroundWidth,\n h: this.foregroundWidth\n ? this.foregroundWidth * (imageH / imageW)\n : this.foregroundHeight\n });\n });\n }\n\n this.patch({\n ForegroundImage: foregroundImagePatch\n });\n }\n\n _updateBlur() {\n if (\n (!this._shouldBlur ||\n (this._Image &&\n this._Image.texture &&\n this._Image.texture.src === this.fallbackSrc)) &&\n this._Blur\n ) {\n // Remove Blur element as it is not longer required\n if (this.shouldSmooth) {\n this._Blur._getTransition('alpha').once('finish', () => {\n // Clean up gradient after animation is complete\n this.patch({ Blur: undefined });\n });\n this._Blur.smooth = {\n alpha: [0, this.style.animationBlurExit]\n };\n } else {\n this.patch({\n Blur: undefined\n });\n }\n return;\n }\n // Create/update the Blur element\n if (!this._srcFailed && this._shouldBlur) {\n this.patch({\n Blur: {\n alpha: !this._Blur && this.shouldSmooth ? 0.001 : 1, // If the Blur element already exists there is no need to fade it in again\n amount: this.style.blur,\n zIndex: this.core.findZContext().zIndex + this.style.zIndexSet.blur,\n content: {\n Image: {\n h: this.h,\n texture: this._Image.getTexture(),\n w: this.w\n }\n },\n h: this.h,\n rtt: true,\n type: lng.components.FastBlurComponent,\n w: this.w\n }\n });\n\n if (this._Blur.alpha < 1) {\n this._Blur.smooth = {\n alpha: [1, this.style.animationBlurEntrance]\n };\n }\n }\n }\n\n _updateCenterImage() {\n if (this.format === 'contain') {\n this._updateFormatContain();\n } else if (this.format === 'circle' || this.format === 'square') {\n this._updateFormatSquareCircle();\n } else if (this._CenterImage) {\n // Remove the center image element if no longer required\n this.patch({\n CenterImage: undefined\n });\n }\n }\n\n async _updateFormatContain() {\n if (\n (this._CenterImage && this._CenterImage.mode !== this.format) ||\n this.src === this.fallbackSrc ||\n this._aspectRatioEqual\n ) {\n // Make sure previous mode is propertly cleaned up\n this.patch({\n CenterImage: undefined\n });\n\n if (this.src === this.fallbackSrc || this._aspectRatioEqual) {\n this._Image.alpha = 1;\n return; // If is fallback image or the aspect ratio already fits the space there is no need to proceed\n }\n }\n\n let imageW;\n let imageH;\n\n const ratioW = Math.abs(\n this._Image.texture.source.w / this._Image.texture.source.h\n );\n\n const ratioH = Math.abs(\n this._Image.texture.source.h / this._Image.texture.source.w\n );\n\n if (this._Image.texture.source.w < this._Image.texture.source.h) {\n // portrait\n if (this.h * ratioW < this.w) {\n // make sure it is set to show 100% height\n imageW = this.h * ratioW;\n imageH = this.h;\n } else {\n // make 100% width\n\n imageW = this.w;\n imageH = this.w * ratioH;\n }\n } else if (this._Image.texture.source.w > this._Image.texture.source.h) {\n // landscape\n if (this.w * ratioH < this.h) {\n // make sure it is set to show 100% w\n imageW = this.w;\n imageH = this.w * ratioH;\n } else {\n // make 100% width\n imageW = this.h * ratioW;\n imageH = this.h;\n }\n } else {\n // render a square\n imageW = Math.min(this.w, this.h);\n imageH = imageW;\n }\n\n const src = await this._processedImageSrc;\n\n this.patch({\n CenterImage: {\n format: this.format,\n mount: 0.5,\n w: imageW,\n h: imageH,\n x: this.w / 2,\n y: this.h / 2,\n zIndex:\n this.core.findZContext().zIndex + this.style.zIndexSet.centerImage,\n texture: {\n src,\n resizeMode: {\n h: imageH,\n type: 'cover',\n w: imageW\n },\n type: CustomImageTexture\n }\n }\n });\n }\n\n _updateFormatSquareCircle() {\n if (\n (this._CenterImage && this._CenterImage.mode !== this.format) ||\n this.src === this.fallbackSrc\n ) {\n // Make sure previous mode is properly cleaned up\n this.patch({\n CenterImage: undefined\n });\n if (this.src === this.fallbackSrc) return;\n }\n const imageSize = Math.min(this.w, this.h) - this.style.padding * 2;\n this.patch({\n CenterImage: {\n format: this.format,\n h: imageSize,\n shader: {\n radius:\n 'circle' === this.format\n ? imageSize / 2\n : this.style.centerImageRadius,\n type: lng.shaders.RoundedRectangle\n },\n w: imageSize,\n zIndex:\n this.core.findZContext().zIndex + this.style.zIndexSet.centerImage,\n Image: {\n h: imageSize,\n mount: 0.5,\n rtt: true, // Required for shader to work\n w: imageSize,\n x: this.w / 2,\n y: this.h / 2,\n texture: {\n src: this._Image.texture.src,\n resizeMode: {\n h: imageSize,\n type: 'cover',\n w: imageSize\n },\n type: CustomImageTexture\n }\n }\n }\n });\n }\n\n _updateGradient() {\n if (!this.gradient) {\n if (this._Gradient) {\n // Cleanup previous gradient\n if (this.shouldSmooth) {\n this._Gradient._getTransition('alpha').once('finish', () => {\n // Remove gradient if no longer required\n const transition =\n this._Gradient && this._Gradient._getTransition('alpha');\n if (!this.gradient && transition && transition.p === 1)\n this.patch({ Gradient: undefined });\n });\n this._Gradient.patch(this._gradientPatch); // Make sure any mode updates are patched ex.radius changes when focused/unfocused\n this._Gradient.smooth = {\n alpha: [0, this.style.animationGradientExit]\n };\n } else {\n this.patch({ Gradient: undefined });\n }\n }\n return;\n }\n\n this._createGradient();\n }\n\n _createGradient() {\n this.patch({\n Gradient: this._gradientPatch // Allows for an easier way to extend and replace the gradient\n });\n if (this.shouldSmooth) {\n this.applySmooth(this._Gradient, {\n alpha: [1, this.style.animationGradientEntrance]\n });\n }\n }\n\n async _updateImage() {\n this._aspectRatioEqual = false; // Set this back to false since we will not know the aspect ratio until after the image has loaded\n\n if (!this._processedImageSrc) {\n if (this._Image) {\n this._Image.texture = undefined;\n }\n return;\n }\n\n const src = await this._processedImageSrc;\n\n this._Image.patch({\n alpha:\n this.src !== this.fallbackSrc && (this._blur || this._hasCenterImage)\n ? 0.001\n : 1, // Prevent image from flashing on first load if mode requires a center image or blur is true\n h: this.h,\n texture: {\n type: CustomImageTexture,\n src,\n resizeMode: { type: 'cover', w: this.w, h: this.h }\n },\n w: this.w,\n zIndex: this.core.findZContext().zIndex + this.style.zIndexSet.image\n });\n }\n\n _updateFillColor() {\n if (!this.fill) {\n this.patch({\n FillColor: undefined\n });\n } else {\n this.patch({\n FillColor: {\n rect: true,\n w: this.w,\n h: this.h,\n color: this.style.fillColor,\n zIndex: 5\n }\n });\n }\n }\n\n _updateRadius() {\n // Add shader to all items in component if greater than 0, remove shader otherwise.\n this.patch(\n this.style.radius\n ? {\n shader: {\n type: lng.shaders.RoundedRectangle,\n radius: getMaxRoundRadius(this.style.radius, this.w, this.h)\n }\n }\n : { shader: undefined }\n );\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => ({\n gradientTop: theme.color.fillTransparent,\n radius: theme.radius.none\n});\n\nexport const tone = theme => ({\n neutral: { gradientColor: theme.color.material },\n inverse: { gradientColor: theme.color.fillNeutral },\n brand: { gradientColor: theme.color.fillBrand }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport Base from '../Base';\nimport * as styles from './Gradient.styles';\nimport { getMaxRoundRadius } from '../../utils';\n\nexport default class Gradient extends Base {\n static get __componentName() {\n return 'Gradient';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n _update() {\n this.patch({\n rect: true,\n rtt: true,\n colorTop: this.style.gradientTop,\n colorBottom: this.style.gradientColor,\n texture: lng.Tools.getRoundRect(\n this.w,\n this.h,\n getMaxRoundRadius(this.style.radius, this.w, this.h)\n )\n });\n }\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/2029.dbd1d97b.iframe.bundle.js b/2029.dbd1d97b.iframe.bundle.js deleted file mode 100644 index aa3153dbc..000000000 --- a/2029.dbd1d97b.iframe.bundle.js +++ /dev/null @@ -1,621 +0,0 @@ -"use strict"; -(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[2029],{ - -/***/ "../../@lightningjs/ui-components/src/components/MetadataBase/MetadataBase.stories.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ MetadataBase: () => (/* binding */ MetadataBase), -/* harmony export */ __namedExportsOrder: () => (/* binding */ __namedExportsOrder), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); -/* harmony import */ var _assets_images_ic_lightning_white_32_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("../../@lightningjs/ui-components/src/assets/images/ic_lightning_white_32.png"); -/* harmony import */ var _assets_images_circle_svg__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("../../@lightningjs/ui-components/src/assets/images/circle.svg"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("../../@lightningjs/ui-components/src/utils/index.js"); -/* harmony import */ var _docs_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("../../@lightningjs/ui-components/src/docs/utils.js"); -/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../@lightningjs/ui-components/src/components/MetadataBase/MetadataBase.js"); -function _typeof(o) { - "@babel/helpers - typeof"; - - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { - return typeof o; - } : function (o) { - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; - }, _typeof(o); -} -function ownKeys(e, r) { - var t = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(e); - r && (o = o.filter(function (r) { - return Object.getOwnPropertyDescriptor(e, r).enumerable; - })), t.push.apply(t, o); - } - return t; -} -function _objectSpread(e) { - for (var r = 1; r < arguments.length; r++) { - var t = null != arguments[r] ? arguments[r] : {}; - r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { - _defineProperty(e, r, t[r]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); - }); - } - return e; -} -function _defineProperty(obj, key, value) { - key = _toPropertyKey(key); - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); - } -} -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { - writable: false - }); - return Constructor; -} -function _toPropertyKey(t) { - var i = _toPrimitive(t, "string"); - return "symbol" == _typeof(i) ? i : String(i); -} -function _toPrimitive(t, r) { - if ("object" != _typeof(t) || !t) return t; - var e = t[Symbol.toPrimitive]; - if (void 0 !== e) { - var i = e.call(t, r || "default"); - if ("object" != _typeof(i)) return i; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return ("string" === r ? String : Number)(t); -} -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { - writable: false - }); - if (superClass) _setPrototypeOf(subClass, superClass); -} -function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); -} -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); - }; -} -function _possibleConstructorReturn(self, call) { - if (call && (_typeof(call) === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { - throw new TypeError("Derived constructors may only return object or undefined"); - } - return _assertThisInitialized(self); -} -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - return self; -} -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; - } -} -function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); -} -/* eslint-disable */ -// @ts-nocheck -// @ts-expect-error (Converted from ts-ignore) -var __STORY__ = "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport lightningbolt from '../../assets/images/ic_lightning_white_32.png';\nimport circle from '../../assets/images/circle.svg';\nimport { getHexColor } from '../../utils';\nimport { createModeControl } from '../../docs/utils';\nimport { default as MetadataBaseComponent } from '.';\n\nexport default {\n title: 'Components/MetadataBase'\n};\n\nexport const MetadataBase = () =>\n class MetadataBase extends lng.Component {\n static _template() {\n return {\n MetadataBase: {\n type: MetadataBaseComponent\n }\n };\n }\n };\n\nMetadataBase.storyName = 'MetadataBase';\n\nMetadataBase.args = {\n w: 400,\n title: 'Title',\n subtitle: 'Subtitle',\n details: [\n '94%',\n {\n icon: lightningbolt,\n style: { color: getHexColor('00ff00') },\n title: 'Green Lightning Bolt'\n },\n '86%',\n {\n icon: 'https://upload.wikimedia.org/wikipedia/commons/b/b6/Tomato-Torrent-Icon.png',\n title: 'Rotten Tomatoes rating'\n }\n ],\n description: 'Description',\n logo: circle,\n logoTitle: 'Logo title',\n logoPosition: 'right',\n mode: 'unfocused'\n};\n\nMetadataBase.argTypes = {\n ...createModeControl({ summaryValue: MetadataBase.args.mode }),\n w: {\n control: 'number',\n description: 'width of component',\n table: {\n defaultValue: { summary: 0 }\n }\n },\n title: {\n control: 'text',\n description: 'Title text',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n subtitle: {\n control: 'text',\n description: 'text directly below title',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n details: {\n control: 'object',\n description: 'details content',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n description: {\n control: 'text',\n description: 'description text',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n logo: {\n control: 'select',\n options: ['none', circle],\n description: 'Image to use for logo',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n logoTitle: {\n control: 'text',\n description: 'Title to use for logo in announcer',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n logoPosition: {\n control: 'select',\n options: ['right', 'left'],\n description: 'Position logo on the left/right side',\n table: {\n defaultValue: { summary: 'right' }\n }\n }\n};\n"; -// @ts-expect-error (Converted from ts-ignore) -var __LOCATIONS_MAP__ = { - "MetadataBase": { - "startLoc": { - "col": 28, - "line": 30 - }, - "endLoc": { - "col": 3, - "line": 39 - }, - "startBody": { - "col": 28, - "line": 30 - }, - "endBody": { - "col": 3, - "line": 39 - } - } -}; - -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - - - - - - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ - parameters: { - "storySource": { - "source": "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport lightningbolt from '../../assets/images/ic_lightning_white_32.png';\nimport circle from '../../assets/images/circle.svg';\nimport { getHexColor } from '../../utils';\nimport { createModeControl } from '../../docs/utils';\nimport { default as MetadataBaseComponent } from '.';\n\nexport default {\n title: 'Components/MetadataBase'\n};\n\nexport const MetadataBase = () =>\n class MetadataBase extends lng.Component {\n static _template() {\n return {\n MetadataBase: {\n type: MetadataBaseComponent\n }\n };\n }\n };\n\nMetadataBase.storyName = 'MetadataBase';\n\nMetadataBase.args = {\n w: 400,\n title: 'Title',\n subtitle: 'Subtitle',\n details: [\n '94%',\n {\n icon: lightningbolt,\n style: { color: getHexColor('00ff00') },\n title: 'Green Lightning Bolt'\n },\n '86%',\n {\n icon: 'https://upload.wikimedia.org/wikipedia/commons/b/b6/Tomato-Torrent-Icon.png',\n title: 'Rotten Tomatoes rating'\n }\n ],\n description: 'Description',\n logo: circle,\n logoTitle: 'Logo title',\n logoPosition: 'right',\n mode: 'unfocused'\n};\n\nMetadataBase.argTypes = {\n ...createModeControl({ summaryValue: MetadataBase.args.mode }),\n w: {\n control: 'number',\n description: 'width of component',\n table: {\n defaultValue: { summary: 0 }\n }\n },\n title: {\n control: 'text',\n description: 'Title text',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n subtitle: {\n control: 'text',\n description: 'text directly below title',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n details: {\n control: 'object',\n description: 'details content',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n description: {\n control: 'text',\n description: 'description text',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n logo: {\n control: 'select',\n options: ['none', circle],\n description: 'Image to use for logo',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n logoTitle: {\n control: 'text',\n description: 'Title to use for logo in announcer',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n logoPosition: {\n control: 'select',\n options: ['right', 'left'],\n description: 'Position logo on the left/right side',\n table: {\n defaultValue: { summary: 'right' }\n }\n }\n};\n", - "locationsMap": { - "metadata-base": { - "startLoc": { - "col": 28, - "line": 30 - }, - "endLoc": { - "col": 3, - "line": 39 - }, - "startBody": { - "col": 28, - "line": 30 - }, - "endBody": { - "col": 3, - "line": 39 - } - } - } - } - }, - title: 'Components/MetadataBase' -}); -var MetadataBase = function MetadataBase() { - return /*#__PURE__*/function (_lng$Component) { - _inherits(MetadataBase, _lng$Component); - var _super = _createSuper(MetadataBase); - function MetadataBase() { - _classCallCheck(this, MetadataBase); - return _super.apply(this, arguments); - } - _createClass(MetadataBase, null, [{ - key: "_template", - value: function _template() { - return { - MetadataBase: { - type: ___WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A - } - }; - } - }]); - return MetadataBase; - }(_lightningjs_core__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.Component); -}; -MetadataBase.storyName = 'MetadataBase'; -MetadataBase.args = { - w: 400, - title: 'Title', - subtitle: 'Subtitle', - details: ['94%', { - icon: _assets_images_ic_lightning_white_32_png__WEBPACK_IMPORTED_MODULE_2__, - style: { - color: (0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .getHexColor */ .H2)('00ff00') - }, - title: 'Green Lightning Bolt' - }, '86%', { - icon: 'https://upload.wikimedia.org/wikipedia/commons/b/b6/Tomato-Torrent-Icon.png', - title: 'Rotten Tomatoes rating' - }], - description: 'Description', - logo: _assets_images_circle_svg__WEBPACK_IMPORTED_MODULE_4__, - logoTitle: 'Logo title', - logoPosition: 'right', - mode: 'unfocused' -}; -MetadataBase.argTypes = _objectSpread(_objectSpread({}, (0,_docs_utils__WEBPACK_IMPORTED_MODULE_5__/* .createModeControl */ .Pg)({ - summaryValue: MetadataBase.args.mode -})), {}, { - w: { - control: 'number', - description: 'width of component', - table: { - defaultValue: { - summary: 0 - } - } - }, - title: { - control: 'text', - description: 'Title text', - table: { - defaultValue: { - summary: 'undefined' - } - } - }, - subtitle: { - control: 'text', - description: 'text directly below title', - table: { - defaultValue: { - summary: 'undefined' - }, - type: { - summary: 'string' - } - } - }, - details: { - control: 'object', - description: 'details content', - table: { - defaultValue: { - summary: 'undefined' - } - } - }, - description: { - control: 'text', - description: 'description text', - table: { - defaultValue: { - summary: 'undefined' - } - } - }, - logo: { - control: 'select', - options: ['none', _assets_images_circle_svg__WEBPACK_IMPORTED_MODULE_4__], - description: 'Image to use for logo', - table: { - defaultValue: { - summary: 'undefined' - } - } - }, - logoTitle: { - control: 'text', - description: 'Title to use for logo in announcer', - table: { - defaultValue: { - summary: 'undefined' - } - } - }, - logoPosition: { - control: 'select', - options: ['right', 'left'], - description: 'Position logo on the left/right side', - table: { - defaultValue: { - summary: 'right' - } - } - } -}); -MetadataBase.parameters = { - ...MetadataBase.parameters, - docs: { - ...MetadataBase.parameters?.docs, - source: { - originalSource: "() => class MetadataBase extends lng.Component {\n static _template() {\n return {\n MetadataBase: {\n type: MetadataBaseComponent\n }\n };\n }\n}", - ...MetadataBase.parameters?.docs?.source - } - } -};;const __namedExportsOrder = ["MetadataBase"]; - -/***/ }), - -/***/ "../../@lightningjs/ui-components/src/docs/utils.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Pg: () => (/* binding */ createModeControl), -/* harmony export */ cY: () => (/* binding */ DocsLink), -/* harmony export */ jb: () => (/* binding */ generateSubStory) -/* harmony export */ }); -/* unused harmony exports nestedArgs, nestedArgTypes, prevValues, nestedArgActions, Item, ObjectFormat, GenericType */ -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/react/index.js"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } -function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - -// eslint-disable-next-line no-unused-vars - - - -// creates Mode control on stories -var createModeControl = function createModeControl() { - var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, - options = _ref.options, - summaryValue = _ref.summaryValue; - return { - mode: { - control: 'radio', - options: options && Array.isArray(options) ? ['unfocused'].concat(_toConsumableArray(options)) : ['unfocused', 'focused', 'disabled'], - description: 'Sets the visual mode for the component', - table: { - defaultValue: { - summary: summaryValue - } - }, - type: { - name: 'string', - required: true - } - } - }; -}; - -/** - * @param {object} config Parameters for generating nested args: { argsObj, targetProp, include, overrides } - */ -function nestedArgs(config) { - var argsObj = config.argsObj, - targetProp = config.targetProp, - include = config.include, - overrides = config.overrides; - return Object.keys(argsObj).reduce(function (acc, curr) { - if (!include.includes(curr)) return acc; - return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, targetProp + '_' + curr, overrides.args && overrides.args[curr] || argsObj[curr])); - }, {}); -} - -/** - * @param {object} config Parameters for generating nested arg types: { argsObj, targetProp, include, overrides } - */ -function nestedArgTypes(config) { - var argTypesObj = config.argTypesObj, - targetProp = config.targetProp, - include = config.include, - overrides = config.overrides; - return Object.keys(argTypesObj).reduce(function (acc, curr) { - if (!include.includes(curr)) return acc; - return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, targetProp + '_' + curr, _objectSpread(_objectSpread(_objectSpread({ - // Namespaced to avoid conflicts - name: curr - }, argTypesObj[curr]), overrides[curr]), {}, { - table: _objectSpread(_objectSpread(_objectSpread({}, argTypesObj[curr].table || {}), overrides[curr] && overrides[curr].table), {}, { - category: targetProp - }) - }))); - }, {}); -} -var prevValues = {}; - -/** - * @param {object} config Parameters for generating nested arg actions: { componentName, argsTypeObj, targetProp, include, overrides } - */ -function nestedArgActions(config) { - var componentName = config.componentName, - argTypesObj = config.argTypesObj, - targetProp = config.targetProp, - include = config.include, - overrides = config.overrides; - return Object.keys(argTypesObj).reduce(function (acc, curr) { - if (!include.includes(curr)) return acc; - return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, targetProp + '_' + curr, function (value, component) { - component.tag(componentName).patch(_defineProperty({}, targetProp, _objectSpread(_objectSpread({}, prevValues[targetProp]), {}, _defineProperty({}, curr.replace(targetProp + '_', ''), value === 'none' ? undefined : overrides && overrides[curr] || value)))); - // Allow patching to work with nested objects - if (!prevValues[targetProp]) { - prevValues[targetProp] = {}; - } - prevValues[targetProp][curr.replace(targetProp + '_', '')] = value === 'none' ? undefined : overrides && overrides[curr] || value; - })); - }, {}); -} - -/** - * @param {object} config Parameters for generating story: { componentName, baseStory, subStory, targetProperty, include, options } - */ -function generateSubStory(config) { - config.baseStory.args = _objectSpread(_objectSpread({}, config.baseStory.args), nestedArgs({ - argsObj: config.subStory.args || {}, - targetProp: config.targetProperty, - include: config.include, - overrides: config.overrides && config.overrides.args || {} - })); - config.baseStory.argTypes = _objectSpread(_objectSpread({}, config.baseStory.argTypes), nestedArgTypes({ - argTypesObj: config.subStory.argTypes || {}, - targetProp: config.targetProperty, - include: config.include, - overrides: config.overrides && config.overrides.argTypes || {} - })); - if (!(config.baseStory && config.baseStory.parameters && config.baseStory.parameters.argActions)) { - config.baseStory.parameters = { - argActions: {} - }; - } - config.baseStory.parameters.argActions = _objectSpread(_objectSpread({}, config.baseStory.parameters.argActions), nestedArgActions({ - componentName: config.componentName, - argTypesObj: config.subStory.argTypes || {}, - targetProp: config.targetProperty, - include: config.include, - overrides: config.overrides && config.overrides.argActions || {} - })); -} - -// used to create links to Lightning docs given an id -var DocsLink = function DocsLink(_ref2) { - var children = _ref2.children, - id = _ref2.id; - var docsmap = { - lng: { - _base: 'https://rdkcentral.github.io/Lightning/docs', - Component: '/components/overview', - Text: '/textures/text', - Transition: '/transitions/attributes' - } - }; - var _id$split = id.split('.'), - _id$split2 = _slicedToArray(_id$split, 2), - source = _id$split2[0], - path = _id$split2[1]; - var href = docsmap[source]._base + docsmap[source][path]; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("a", { - href: href, - target: "_blank" - }, children || id); -}; -var Item = function Item(_ref3) { - var children = _ref3.children; - return children; -}; - -/** - * Creates formatted object for markdown prop tables - * see Column and Row stories - * @param {object} props - * @param {object} props.type - TS-style generic/utility type - */ -var ObjectFormat = function ObjectFormat(_ref4) { - var object = _ref4.object; - return ['{', /*#__PURE__*/React.createElement("br", null), ' '].concat(_toConsumableArray(utils.flatten(Object.entries(object).map(function (_ref5) { - var _ref6 = _slicedToArray(_ref5, 2), - k = _ref6[0], - v = _ref6[1]; - return [/*#__PURE__*/React.createElement("span", null, "\xA0\xA0"), "".concat(k, ": "), v, ',', /*#__PURE__*/React.createElement("br", null)]; - }))), ['}']).map(function (x, i) { - return /*#__PURE__*/React.createElement(Item, { - key: i - }, x); - }); -}; - -/** - * Formats TS-style generic types - * See Columns and Row stories - * @param {object} props - * @param {object} props.children - component children - * @param {string} props.type - Name of generic type - */ -var GenericType = function GenericType(_ref7) { - var children = _ref7.children, - type = _ref7.type; - return [type, '<', children, '>'].map(function (x, i) { - return /*#__PURE__*/React.createElement(Item, { - key: i - }, x); - }); -}; - -/***/ }), - -/***/ "../../@lightningjs/ui-components/src/assets/images/circle.svg": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -module.exports = __webpack_require__.p + "static/media/circle.6029db37.svg"; - -/***/ }), - -/***/ "../../@lightningjs/ui-components/src/assets/images/ic_lightning_white_32.png": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -module.exports = __webpack_require__.p + "static/media/ic_lightning_white_32.06aecfeb.png"; - -/***/ }) - -}]); -//# sourceMappingURL=2029.dbd1d97b.iframe.bundle.js.map \ No newline at end of file diff --git a/2029.dbd1d97b.iframe.bundle.js.map b/2029.dbd1d97b.iframe.bundle.js.map deleted file mode 100644 index c6ac2bd85..000000000 --- a/2029.dbd1d97b.iframe.bundle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"2029.dbd1d97b.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACtWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAKA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAGA;AACA;AAAA;AAGA;AAGA;AAAA;AACA;AAGA;AACA;AAEA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAGA;AASA;AACA;AACA;AACA;AACA;AAIA;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAGA;AAGA;AACA;AACA;AACA;AACA;AAGA;AAOA;AACA;AACA;AACA;AAEA;AAGA;AACA;AACA;AACA;AACA;AACA;AAEA;;AAEA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAIA;AAEA;AAAA;AAAA;AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAKA;AAAA;AAAA;AAAA;AAMA;AAGA;AAAA;AAAA;AAAA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AACA","sources":["webpack://lightning-ui-docs/","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/docs/utils.js"],"sourcesContent":[null,"/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// eslint-disable-next-line no-unused-vars\nimport React from 'react';\nimport utils from '../utils';\n\n// creates Mode control on stories\nexport const createModeControl = ({ options, summaryValue } = {}) => {\n return {\n mode: {\n control: 'radio',\n options:\n options && Array.isArray(options)\n ? ['unfocused', ...options]\n : ['unfocused', 'focused', 'disabled'],\n description: 'Sets the visual mode for the component',\n table: {\n defaultValue: { summary: summaryValue }\n },\n type: { name: 'string', required: true }\n }\n };\n};\n\n/**\n * @param {object} config Parameters for generating nested args: { argsObj, targetProp, include, overrides }\n */\nexport function nestedArgs(config) {\n const { argsObj, targetProp, include, overrides } = config;\n return Object.keys(argsObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]:\n (overrides.args && overrides.args[curr]) || argsObj[curr]\n };\n }, {});\n}\n\n/**\n * @param {object} config Parameters for generating nested arg types: { argsObj, targetProp, include, overrides }\n */\nexport function nestedArgTypes(config) {\n const { argTypesObj, targetProp, include, overrides } = config;\n return Object.keys(argTypesObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]: {\n // Namespaced to avoid conflicts\n name: curr,\n ...argTypesObj[curr],\n ...overrides[curr],\n table: {\n ...(argTypesObj[curr].table || {}),\n ...(overrides[curr] && overrides[curr].table),\n category: targetProp\n }\n }\n };\n }, {});\n}\n\nexport const prevValues = {};\n\n/**\n * @param {object} config Parameters for generating nested arg actions: { componentName, argsTypeObj, targetProp, include, overrides }\n */\nexport function nestedArgActions(config) {\n const { componentName, argTypesObj, targetProp, include, overrides } = config;\n return Object.keys(argTypesObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]: (value, component) => {\n component.tag(componentName).patch({\n [targetProp]: {\n ...prevValues[targetProp],\n [curr.replace(targetProp + '_', '')]:\n value === 'none'\n ? undefined\n : (overrides && overrides[curr]) || value // There are issues with merging objects here\n }\n });\n // Allow patching to work with nested objects\n if (!prevValues[targetProp]) {\n prevValues[targetProp] = {};\n }\n prevValues[targetProp][curr.replace(targetProp + '_', '')] =\n value === 'none'\n ? undefined\n : (overrides && overrides[curr]) || value;\n }\n };\n }, {});\n}\n\n/**\n * @param {object} config Parameters for generating story: { componentName, baseStory, subStory, targetProperty, include, options }\n */\nexport function generateSubStory(config) {\n config.baseStory.args = {\n ...config.baseStory.args,\n ...nestedArgs({\n argsObj: config.subStory.args || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.args) || {}\n })\n };\n\n config.baseStory.argTypes = {\n ...config.baseStory.argTypes,\n ...nestedArgTypes({\n argTypesObj: config.subStory.argTypes || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.argTypes) || {}\n })\n };\n\n if (\n !(\n config.baseStory &&\n config.baseStory.parameters &&\n config.baseStory.parameters.argActions\n )\n ) {\n config.baseStory.parameters = {\n argActions: {}\n };\n }\n\n config.baseStory.parameters.argActions = {\n ...config.baseStory.parameters.argActions,\n ...nestedArgActions({\n componentName: config.componentName,\n argTypesObj: config.subStory.argTypes || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.argActions) || {}\n })\n };\n}\n\n// used to create links to Lightning docs given an id\nexport const DocsLink = ({ children, id }) => {\n const docsmap = {\n lng: {\n _base: 'https://rdkcentral.github.io/Lightning/docs',\n Component: '/components/overview',\n Text: '/textures/text',\n Transition: '/transitions/attributes'\n }\n };\n const [source, path] = id.split('.');\n const href = docsmap[source]._base + docsmap[source][path];\n return (\n \n {children || id}\n \n );\n};\n\nexport const Item = ({ children }) => children;\n\n/**\n * Creates formatted object for markdown prop tables\n * see Column and Row stories\n * @param {object} props\n * @param {object} props.type - TS-style generic/utility type\n */\nexport const ObjectFormat = ({ object }) => {\n return [\n '{',\n
,\n ' ',\n ...utils.flatten(\n Object.entries(object).map(([k, v]) => [\n   ,\n `${k}: `,\n v,\n ',',\n
\n ])\n ),\n '}'\n ].map((x, i) => {x});\n};\n\n/**\n * Formats TS-style generic types\n * See Columns and Row stories\n * @param {object} props\n * @param {object} props.children - component children\n * @param {string} props.type - Name of generic type\n */\nexport const GenericType = ({ children, type }) => {\n return [type, '<', children, '>'].map((x, i) => {x});\n};\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/6567.0fdbfca6.iframe.bundle.js b/2067.dcef5479.iframe.bundle.js similarity index 56% rename from 6567.0fdbfca6.iframe.bundle.js rename to 2067.dcef5479.iframe.bundle.js index 0dc49bada..197b97e03 100644 --- a/6567.0fdbfca6.iframe.bundle.js +++ b/2067.dcef5479.iframe.bundle.js @@ -1,437 +1,5 @@ "use strict"; -(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[6567],{ - -/***/ "../../@lightningjs/ui-components/src/components/ListItem/ListItem.stories.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ListItem: () => (/* binding */ ListItem), -/* harmony export */ __namedExportsOrder: () => (/* binding */ __namedExportsOrder), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); -/* harmony import */ var _ListItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../@lightningjs/ui-components/src/components/ListItem/ListItem.js"); -/* harmony import */ var _docs_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("../../@lightningjs/ui-components/src/docs/utils.js"); -/* harmony import */ var _assets_images_Xfinity_Provider_Logo_Square_png__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("../../@lightningjs/ui-components/src/assets/images/Xfinity-Provider-Logo-Square.png"); -/* harmony import */ var _Checkbox__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Checkbox/Checkbox.js"); -/* harmony import */ var _Radio__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Radio/Radio.js"); -/* harmony import */ var _Toggle__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Toggle/Toggle.js"); -function _typeof(o) { - "@babel/helpers - typeof"; - - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { - return typeof o; - } : function (o) { - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; - }, _typeof(o); -} -function ownKeys(e, r) { - var t = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(e); - r && (o = o.filter(function (r) { - return Object.getOwnPropertyDescriptor(e, r).enumerable; - })), t.push.apply(t, o); - } - return t; -} -function _objectSpread(e) { - for (var r = 1; r < arguments.length; r++) { - var t = null != arguments[r] ? arguments[r] : {}; - r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { - _defineProperty(e, r, t[r]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); - }); - } - return e; -} -function _defineProperty(obj, key, value) { - key = _toPropertyKey(key); - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); - } -} -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { - writable: false - }); - return Constructor; -} -function _toPropertyKey(t) { - var i = _toPrimitive(t, "string"); - return "symbol" == _typeof(i) ? i : String(i); -} -function _toPrimitive(t, r) { - if ("object" != _typeof(t) || !t) return t; - var e = t[Symbol.toPrimitive]; - if (void 0 !== e) { - var i = e.call(t, r || "default"); - if ("object" != _typeof(i)) return i; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return ("string" === r ? String : Number)(t); -} -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { - writable: false - }); - if (superClass) _setPrototypeOf(subClass, superClass); -} -function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); -} -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); - }; -} -function _possibleConstructorReturn(self, call) { - if (call && (_typeof(call) === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { - throw new TypeError("Derived constructors may only return object or undefined"); - } - return _assertThisInitialized(self); -} -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - return self; -} -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; - } -} -function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); -} -/* eslint-disable */ -// @ts-nocheck -// @ts-expect-error (Converted from ts-ignore) -var __STORY__ = "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport ListItemComponent from './ListItem';\nimport { createModeControl } from '../../docs/utils';\nimport xfinity from '../../assets/images/Xfinity-Provider-Logo-Square.png';\nimport { default as Checkbox } from '../Checkbox';\nimport { default as Radio } from '../Radio';\nimport { default as Toggle } from '../Toggle';\n\n/**\n * ListItem component with the ability to let a user pick from a list of options.\n */\nexport default {\n title: 'Components/ListItem/ListItem',\n args: {\n title: 'List Item',\n shouldCollapse: false,\n description: 'Description',\n prefix: null,\n prefixLogo: 'none',\n suffix: null,\n suffixLogo: 'none',\n mode: 'focused'\n }\n};\n\nexport const ListItem = () =>\n class ListItem extends lng.Component {\n static _template() {\n return {\n ListItem: {\n type: ListItemComponent\n }\n };\n }\n };\n\nListItem.storyName = 'ListItem';\n\nListItem.argTypes = {\n ...createModeControl({ summaryValue: 'focused' }),\n title: {\n control: 'text',\n description: 'Title text',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n description: {\n control: 'text',\n description: 'Description text',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n shouldCollapse: {\n control: 'boolean',\n description:\n 'When in unfocused or disabled mode, if this flag is true the description will collapse (when focused, it will always be expanded)',\n table: {\n defaultValue: { summary: false },\n type: { summary: 'boolean' }\n }\n },\n prefix: {\n control: 'radio',\n options: [null, 'toggle', 'radio', 'checkbox'],\n description: 'Lightning components to be placed to the left of the title',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'object or array' }\n }\n },\n prefixLogo: {\n control: 'radio',\n options: ['none', 'xfinity'],\n description:\n 'Logo to be placed to the left of the title. If prefix and prefixLogo are both set, prefixLogo will take precedence for what is rendered and prefix will be ignored',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n suffix: {\n control: 'radio',\n options: [null, 'toggle', 'radio', 'checkbox'],\n description: 'Lightning components to be placed to the right of the title',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'object or array' }\n }\n },\n suffixLogo: {\n control: 'radio',\n options: ['none', 'xfinity'],\n description:\n 'Logo to be placed to the right of the title. If suffix and suffixLogo are both set, suffixLogo will take precedence for what is rendered and suffix will be ignored',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n }\n};\n\nconst logoSet = {\n none: null,\n xfinity: xfinity\n};\n\nconst elementSet = {\n toggle: {\n type: Toggle,\n checked: true\n },\n radio: {\n type: Radio,\n checked: true\n },\n checkbox: {\n type: Checkbox,\n checked: true\n }\n};\n\nconst sharedArgActions = {\n prefix: (prefix, component) => {\n if (prefix == null) {\n component.tag('ListItem').prefix = [];\n } else {\n component.tag('ListItem').prefix = elementSet[prefix];\n }\n },\n prefixLogo: (prefixLogo, component) => {\n component.tag('ListItem').prefixLogo = logoSet[prefixLogo];\n },\n suffixLogo: (suffixLogo, component) => {\n component.tag('ListItem').suffixLogo = logoSet[suffixLogo];\n },\n suffix: (suffix, component) => {\n if (suffix == null) {\n component.tag('ListItem').suffix = [];\n } else {\n component.tag('ListItem').suffix = elementSet[suffix];\n }\n }\n};\n\nListItem.parameters = {\n argActions: sharedArgActions\n};\n"; -// @ts-expect-error (Converted from ts-ignore) -var __LOCATIONS_MAP__ = { - "ListItem": { - "startLoc": { - "col": 24, - "line": 44 - }, - "endLoc": { - "col": 3, - "line": 53 - }, - "startBody": { - "col": 24, - "line": 44 - }, - "endBody": { - "col": 3, - "line": 53 - } - } -}; - -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - - - - - - - - -/** - * ListItem component with the ability to let a user pick from a list of options. - */ -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ - parameters: { - "storySource": { - "source": "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport ListItemComponent from './ListItem';\nimport { createModeControl } from '../../docs/utils';\nimport xfinity from '../../assets/images/Xfinity-Provider-Logo-Square.png';\nimport { default as Checkbox } from '../Checkbox';\nimport { default as Radio } from '../Radio';\nimport { default as Toggle } from '../Toggle';\n\n/**\n * ListItem component with the ability to let a user pick from a list of options.\n */\nexport default {\n title: 'Components/ListItem/ListItem',\n args: {\n title: 'List Item',\n shouldCollapse: false,\n description: 'Description',\n prefix: null,\n prefixLogo: 'none',\n suffix: null,\n suffixLogo: 'none',\n mode: 'focused'\n }\n};\n\nexport const ListItem = () =>\n class ListItem extends lng.Component {\n static _template() {\n return {\n ListItem: {\n type: ListItemComponent\n }\n };\n }\n };\n\nListItem.storyName = 'ListItem';\n\nListItem.argTypes = {\n ...createModeControl({ summaryValue: 'focused' }),\n title: {\n control: 'text',\n description: 'Title text',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n description: {\n control: 'text',\n description: 'Description text',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n shouldCollapse: {\n control: 'boolean',\n description:\n 'When in unfocused or disabled mode, if this flag is true the description will collapse (when focused, it will always be expanded)',\n table: {\n defaultValue: { summary: false },\n type: { summary: 'boolean' }\n }\n },\n prefix: {\n control: 'radio',\n options: [null, 'toggle', 'radio', 'checkbox'],\n description: 'Lightning components to be placed to the left of the title',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'object or array' }\n }\n },\n prefixLogo: {\n control: 'radio',\n options: ['none', 'xfinity'],\n description:\n 'Logo to be placed to the left of the title. If prefix and prefixLogo are both set, prefixLogo will take precedence for what is rendered and prefix will be ignored',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n suffix: {\n control: 'radio',\n options: [null, 'toggle', 'radio', 'checkbox'],\n description: 'Lightning components to be placed to the right of the title',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'object or array' }\n }\n },\n suffixLogo: {\n control: 'radio',\n options: ['none', 'xfinity'],\n description:\n 'Logo to be placed to the right of the title. If suffix and suffixLogo are both set, suffixLogo will take precedence for what is rendered and suffix will be ignored',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n }\n};\n\nconst logoSet = {\n none: null,\n xfinity: xfinity\n};\n\nconst elementSet = {\n toggle: {\n type: Toggle,\n checked: true\n },\n radio: {\n type: Radio,\n checked: true\n },\n checkbox: {\n type: Checkbox,\n checked: true\n }\n};\n\nconst sharedArgActions = {\n prefix: (prefix, component) => {\n if (prefix == null) {\n component.tag('ListItem').prefix = [];\n } else {\n component.tag('ListItem').prefix = elementSet[prefix];\n }\n },\n prefixLogo: (prefixLogo, component) => {\n component.tag('ListItem').prefixLogo = logoSet[prefixLogo];\n },\n suffixLogo: (suffixLogo, component) => {\n component.tag('ListItem').suffixLogo = logoSet[suffixLogo];\n },\n suffix: (suffix, component) => {\n if (suffix == null) {\n component.tag('ListItem').suffix = [];\n } else {\n component.tag('ListItem').suffix = elementSet[suffix];\n }\n }\n};\n\nListItem.parameters = {\n argActions: sharedArgActions\n};\n", - "locationsMap": { - "list-item": { - "startLoc": { - "col": 24, - "line": 44 - }, - "endLoc": { - "col": 3, - "line": 53 - }, - "startBody": { - "col": 24, - "line": 44 - }, - "endBody": { - "col": 3, - "line": 53 - } - } - } - }, - docs: { - description: { - component: "ListItem component with the ability to let a user pick from a list of options." - } - } - }, - title: 'Components/ListItem/ListItem', - args: { - title: 'List Item', - shouldCollapse: false, - description: 'Description', - prefix: null, - prefixLogo: 'none', - suffix: null, - suffixLogo: 'none', - mode: 'focused' - } -}); -var ListItem = function ListItem() { - return /*#__PURE__*/function (_lng$Component) { - _inherits(ListItem, _lng$Component); - var _super = _createSuper(ListItem); - function ListItem() { - _classCallCheck(this, ListItem); - return _super.apply(this, arguments); - } - _createClass(ListItem, null, [{ - key: "_template", - value: function _template() { - return { - ListItem: { - type: _ListItem__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A - } - }; - } - }]); - return ListItem; - }(_lightningjs_core__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.Component); -}; -ListItem.storyName = 'ListItem'; -ListItem.argTypes = _objectSpread(_objectSpread({}, (0,_docs_utils__WEBPACK_IMPORTED_MODULE_2__/* .createModeControl */ .Pg)({ - summaryValue: 'focused' -})), {}, { - title: { - control: 'text', - description: 'Title text', - table: { - defaultValue: { - summary: 'undefined' - }, - type: { - summary: 'string' - } - } - }, - description: { - control: 'text', - description: 'Description text', - table: { - defaultValue: { - summary: 'undefined' - }, - type: { - summary: 'string' - } - } - }, - shouldCollapse: { - control: 'boolean', - description: 'When in unfocused or disabled mode, if this flag is true the description will collapse (when focused, it will always be expanded)', - table: { - defaultValue: { - summary: false - }, - type: { - summary: 'boolean' - } - } - }, - prefix: { - control: 'radio', - options: [null, 'toggle', 'radio', 'checkbox'], - description: 'Lightning components to be placed to the left of the title', - table: { - defaultValue: { - summary: 'undefined' - }, - type: { - summary: 'object or array' - } - } - }, - prefixLogo: { - control: 'radio', - options: ['none', 'xfinity'], - description: 'Logo to be placed to the left of the title. If prefix and prefixLogo are both set, prefixLogo will take precedence for what is rendered and prefix will be ignored', - table: { - defaultValue: { - summary: 'undefined' - }, - type: { - summary: 'string' - } - } - }, - suffix: { - control: 'radio', - options: [null, 'toggle', 'radio', 'checkbox'], - description: 'Lightning components to be placed to the right of the title', - table: { - defaultValue: { - summary: 'undefined' - }, - type: { - summary: 'object or array' - } - } - }, - suffixLogo: { - control: 'radio', - options: ['none', 'xfinity'], - description: 'Logo to be placed to the right of the title. If suffix and suffixLogo are both set, suffixLogo will take precedence for what is rendered and suffix will be ignored', - table: { - defaultValue: { - summary: 'undefined' - }, - type: { - summary: 'string' - } - } - } -}); -var logoSet = { - none: null, - xfinity: _assets_images_Xfinity_Provider_Logo_Square_png__WEBPACK_IMPORTED_MODULE_3__ -}; -var elementSet = { - toggle: { - type: _Toggle__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A, - checked: true - }, - radio: { - type: _Radio__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A, - checked: true - }, - checkbox: { - type: _Checkbox__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A, - checked: true - } -}; -var sharedArgActions = { - prefix: function prefix(_prefix, component) { - if (_prefix == null) { - component.tag('ListItem').prefix = []; - } else { - component.tag('ListItem').prefix = elementSet[_prefix]; - } - }, - prefixLogo: function prefixLogo(_prefixLogo, component) { - component.tag('ListItem').prefixLogo = logoSet[_prefixLogo]; - }, - suffixLogo: function suffixLogo(_suffixLogo, component) { - component.tag('ListItem').suffixLogo = logoSet[_suffixLogo]; - }, - suffix: function suffix(_suffix, component) { - if (_suffix == null) { - component.tag('ListItem').suffix = []; - } else { - component.tag('ListItem').suffix = elementSet[_suffix]; - } - } -}; -ListItem.parameters = { - argActions: sharedArgActions -}; -ListItem.parameters = { - ...ListItem.parameters, - docs: { - ...ListItem.parameters?.docs, - source: { - originalSource: "() => class ListItem extends lng.Component {\n static _template() {\n return {\n ListItem: {\n type: ListItemComponent\n }\n };\n }\n}", - ...ListItem.parameters?.docs?.source - } - } -};;const __namedExportsOrder = ["ListItem"]; - -/***/ }), +(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[2067,5137,4188],{ /***/ "../../@lightningjs/ui-components/src/components/Checkbox/Checkbox.js": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -525,22 +93,23 @@ var utils = __webpack_require__("../../@lightningjs/ui-components/src/utils/inde function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function set(target, property, value, receiver) { if (typeof Reflect !== "undefined" && Reflect.set) { set = Reflect.set; } else { set = function set(target, property, value, receiver) { var base = _superPropBase(target, property); var desc; if (base) { desc = Object.getOwnPropertyDescriptor(base, property); if (desc.set) { desc.set.call(receiver, value); return true; } else if (!desc.writable) { return false; } } desc = Object.getOwnPropertyDescriptor(receiver, property); if (desc) { if (!desc.writable) { return false; } desc.value = value; Object.defineProperty(receiver, property, desc); } else { _defineProperty(receiver, property, value); } return true; }; } return set(target, property, value, receiver); } -function _set(target, property, value, receiver, isStrict) { var s = set(target, property, value, receiver || target); if (!s && isStrict) { throw new TypeError('failed to set property'); } return value; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } +function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); } +function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _superPropSet(t, e, o, r, p, f) { return _set(_getPrototypeOf(f ? t.prototype : t), e, o, r, p); } +function set(e, r, t, o) { return set = "undefined" != typeof Reflect && Reflect.set ? Reflect.set : function (e, r, t, o) { var f, i = _superPropBase(e, r); if (i) { if ((f = Object.getOwnPropertyDescriptor(i, r)).set) return f.set.call(o, t), !0; if (!f.writable) return !1; } if (f = Object.getOwnPropertyDescriptor(o, r)) { if (!f.writable) return !1; f.value = t, Object.defineProperty(o, r, f); } else _defineProperty(o, r, t); return !0; }, set(e, r, t, o); } +function _set(e, r, t, o, f) { if (!set(e, r, t, o || e) && f) throw new TypeError("failed to set property"); return t; } +function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } +function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; } +function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } +function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); } +function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } /** * Copyright 2023 Comcast Cable Communications Management, LLC * @@ -565,13 +134,12 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g var Checkbox = /*#__PURE__*/function (_Base) { - _inherits(Checkbox, _Base); - var _super = _createSuper(Checkbox); function Checkbox() { _classCallCheck(this, Checkbox); - return _super.apply(this, arguments); + return _callSuper(this, Checkbox, arguments); } - _createClass(Checkbox, [{ + _inherits(Checkbox, _Base); + return _createClass(Checkbox, [{ key: "_update", value: function _update() { this._updateBody(); @@ -657,7 +225,7 @@ var Checkbox = /*#__PURE__*/function (_Base) { return this._announce || (this.checked ? 'Checked' : 'Unchecked'); }, set: function set(announce) { - _set(_getPrototypeOf(Checkbox.prototype), "announce", announce, this, true); + _superPropSet(Checkbox, "announce", announce, this, 1, 1); } }], [{ key: "__componentName", @@ -725,7 +293,6 @@ var Checkbox = /*#__PURE__*/function (_Base) { }]; } }]); - return Checkbox; }(Base/* default */.A); @@ -755,8 +322,8 @@ var utils = __webpack_require__("../../@lightningjs/ui-components/src/utils/inde function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } +function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** * Copyright 2023 Comcast Cable Communications Management, LLC @@ -844,31 +411,33 @@ var TextBox = __webpack_require__("../../@lightningjs/ui-components/src/componen var Icon = __webpack_require__("../../@lightningjs/ui-components/src/components/Icon/Icon.js"); ;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/ListItem/ListItem.js function ListItem_typeof(o) { "@babel/helpers - typeof"; return ListItem_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, ListItem_typeof(o); } -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } +function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } +function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); } +function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); } +function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } function ListItem_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function ListItem_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ListItem_ownKeys(Object(t), !0).forEach(function (r) { ListItem_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ListItem_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, ListItem_toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function set(target, property, value, receiver) { if (typeof Reflect !== "undefined" && Reflect.set) { set = Reflect.set; } else { set = function set(target, property, value, receiver) { var base = _superPropBase(target, property); var desc; if (base) { desc = Object.getOwnPropertyDescriptor(base, property); if (desc.set) { desc.set.call(receiver, value); return true; } else if (!desc.writable) { return false; } } desc = Object.getOwnPropertyDescriptor(receiver, property); if (desc) { if (!desc.writable) { return false; } desc.value = value; Object.defineProperty(receiver, property, desc); } else { ListItem_defineProperty(receiver, property, value); } return true; }; } return set(target, property, value, receiver); } -function _set(target, property, value, receiver, isStrict) { var s = set(target, property, value, receiver || target); if (!s && isStrict) { throw new TypeError('failed to set property'); } return value; } -function ListItem_defineProperty(obj, key, value) { key = ListItem_toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function ListItem_toPropertyKey(t) { var i = ListItem_toPrimitive(t, "string"); return "symbol" == ListItem_typeof(i) ? i : String(i); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, ListItem_toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } +function _possibleConstructorReturn(t, e) { if (e && ("object" == ListItem_typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); } +function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _superPropSet(t, e, o, r, p, f) { return _set(_getPrototypeOf(f ? t.prototype : t), e, o, r, p); } +function set(e, r, t, o) { return set = "undefined" != typeof Reflect && Reflect.set ? Reflect.set : function (e, r, t, o) { var f, i = _superPropBase(e, r); if (i) { if ((f = Object.getOwnPropertyDescriptor(i, r)).set) return f.set.call(o, t), !0; if (!f.writable) return !1; } if (f = Object.getOwnPropertyDescriptor(o, r)) { if (!f.writable) return !1; f.value = t, Object.defineProperty(o, r, f); } else ListItem_defineProperty(o, r, t); return !0; }, set(e, r, t, o); } +function _set(e, r, t, o, f) { if (!set(e, r, t, o || e) && f) throw new TypeError("failed to set property"); return t; } +function ListItem_defineProperty(e, r, t) { return (r = ListItem_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } +function ListItem_toPropertyKey(t) { var i = ListItem_toPrimitive(t, "string"); return "symbol" == ListItem_typeof(i) ? i : i + ""; } function ListItem_toPrimitive(t, r) { if ("object" != ListItem_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != ListItem_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); } -function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (ListItem_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } +function _superPropGet(t, e, o, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), e, o); return 2 & r && "function" == typeof p ? function (t) { return p.apply(o, t); } : p; } +function _get() { return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); } +function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; } +function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } +function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); } +function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } /** * Copyright 2023 Comcast Cable Communications Management, LLC * @@ -892,13 +461,12 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g var ListItem = /*#__PURE__*/function (_Button) { - _inherits(ListItem, _Button); - var _super = _createSuper(ListItem); function ListItem() { _classCallCheck(this, ListItem); - return _super.apply(this, arguments); + return _callSuper(this, ListItem, arguments); } - _createClass(ListItem, [{ + _inherits(ListItem, _Button); + return _createClass(ListItem, [{ key: "_onTextBoxChanged", value: function _onTextBoxChanged() { this._updateTitle(); @@ -910,7 +478,7 @@ var ListItem = /*#__PURE__*/function (_Button) { value: function _update() { this._updatePrefixLogo(); this._updateSuffixLogo(); - _get(_getPrototypeOf(ListItem.prototype), "_update", this).call(this); + _superPropGet(ListItem, "_update", this, 3)([]); this._updateDescription(); } }, { @@ -1008,14 +576,14 @@ var ListItem = /*#__PURE__*/function (_Button) { }, { key: "_rowProps", get: function get() { - return ListItem_objectSpread(ListItem_objectSpread({}, _get(_getPrototypeOf(ListItem.prototype), "_rowProps", this)), {}, { + return ListItem_objectSpread(ListItem_objectSpread({}, _superPropGet(ListItem, "_rowProps", this, 1)), {}, { autoResizeHeight: true }); } }, { key: "_buttonProps", get: function get() { - return ListItem_objectSpread(ListItem_objectSpread({}, _get(_getPrototypeOf(ListItem.prototype), "_buttonProps", this)), {}, { + return ListItem_objectSpread(ListItem_objectSpread({}, _superPropGet(ListItem, "_buttonProps", this, 1)), {}, { alpha: this.style.alpha }); } @@ -1043,7 +611,7 @@ var ListItem = /*#__PURE__*/function (_Button) { return this.title + this.description + ', List Item'; }, set: function set(announce) { - _set(_getPrototypeOf(ListItem.prototype), "announce", announce, this, true); + _superPropSet(ListItem, "announce", announce, this, 1, 1); } }], [{ key: "__componentName", @@ -1058,10 +626,10 @@ var ListItem = /*#__PURE__*/function (_Button) { }, { key: "_template", value: function _template() { - return ListItem_objectSpread(ListItem_objectSpread({}, _get(_getPrototypeOf(ListItem), "_template", this).call(this)), {}, { + return ListItem_objectSpread(ListItem_objectSpread({}, _superPropGet(ListItem, "_template", this, 2)([])), {}, { justify: 'left', fixed: true, - Content: ListItem_objectSpread(ListItem_objectSpread({}, _get(_getPrototypeOf(ListItem), "_template", this).call(this).Content), {}, { + Content: ListItem_objectSpread(ListItem_objectSpread({}, _superPropGet(ListItem, "_template", this, 2)([]).Content), {}, { TextWrapper: { mountY: 0.5, flex: { @@ -1080,7 +648,7 @@ var ListItem = /*#__PURE__*/function (_Button) { }, { key: "properties", get: function get() { - return [].concat(_toConsumableArray(_get(_getPrototypeOf(ListItem), "properties", this)), ['description', 'prefixLogo', 'suffixLogo', 'shouldCollapse']); + return [].concat(_toConsumableArray(_superPropGet(ListItem, "properties", this)), ['description', 'prefixLogo', 'suffixLogo', 'shouldCollapse']); } }, { key: "aliasStyles", @@ -1093,13 +661,12 @@ var ListItem = /*#__PURE__*/function (_Button) { }, { key: "tags", get: function get() { - return [].concat(_toConsumableArray(_get(_getPrototypeOf(ListItem), "tags", this)), [{ + return [].concat(_toConsumableArray(_superPropGet(ListItem, "tags", this)), [{ name: 'Description', path: 'Content.TextWrapper.Description' }]); } }]); - return ListItem; }(Button/* default */.A); @@ -1193,22 +760,23 @@ var utils = __webpack_require__("../../@lightningjs/ui-components/src/utils/inde function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function set(target, property, value, receiver) { if (typeof Reflect !== "undefined" && Reflect.set) { set = Reflect.set; } else { set = function set(target, property, value, receiver) { var base = _superPropBase(target, property); var desc; if (base) { desc = Object.getOwnPropertyDescriptor(base, property); if (desc.set) { desc.set.call(receiver, value); return true; } else if (!desc.writable) { return false; } } desc = Object.getOwnPropertyDescriptor(receiver, property); if (desc) { if (!desc.writable) { return false; } desc.value = value; Object.defineProperty(receiver, property, desc); } else { _defineProperty(receiver, property, value); } return true; }; } return set(target, property, value, receiver); } -function _set(target, property, value, receiver, isStrict) { var s = set(target, property, value, receiver || target); if (!s && isStrict) { throw new TypeError('failed to set property'); } return value; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } +function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); } +function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _superPropSet(t, e, o, r, p, f) { return _set(_getPrototypeOf(f ? t.prototype : t), e, o, r, p); } +function set(e, r, t, o) { return set = "undefined" != typeof Reflect && Reflect.set ? Reflect.set : function (e, r, t, o) { var f, i = _superPropBase(e, r); if (i) { if ((f = Object.getOwnPropertyDescriptor(i, r)).set) return f.set.call(o, t), !0; if (!f.writable) return !1; } if (f = Object.getOwnPropertyDescriptor(o, r)) { if (!f.writable) return !1; f.value = t, Object.defineProperty(o, r, f); } else _defineProperty(o, r, t); return !0; }, set(e, r, t, o); } +function _set(e, r, t, o, f) { if (!set(e, r, t, o || e) && f) throw new TypeError("failed to set property"); return t; } +function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } +function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; } +function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } +function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); } +function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } /** * Copyright 2023 Comcast Cable Communications Management, LLC * @@ -1232,13 +800,12 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g var Radio = /*#__PURE__*/function (_Base) { - _inherits(Radio, _Base); - var _super = _createSuper(Radio); function Radio() { _classCallCheck(this, Radio); - return _super.apply(this, arguments); + return _callSuper(this, Radio, arguments); } - _createClass(Radio, [{ + _inherits(Radio, _Base); + return _createClass(Radio, [{ key: "_update", value: function _update() { this._updateBody(); @@ -1317,7 +884,7 @@ var Radio = /*#__PURE__*/function (_Base) { return this._announce || (this.checked ? 'Checked' : 'Unchecked'); }, set: function set(announce) { - _set(_getPrototypeOf(Radio.prototype), "announce", announce, this, true); + _superPropSet(Radio, "announce", announce, this, 1, 1); } }], [{ key: "__componentName", @@ -1363,7 +930,6 @@ var Radio = /*#__PURE__*/function (_Base) { return ['checked']; } }]); - return Radio; }(Base/* default */.A); @@ -1479,23 +1045,25 @@ var tone = function tone(theme) { var utils = __webpack_require__("../../@lightningjs/ui-components/src/utils/index.js"); ;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/Toggle/Toggle.js function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function set(target, property, value, receiver) { if (typeof Reflect !== "undefined" && Reflect.set) { set = Reflect.set; } else { set = function set(target, property, value, receiver) { var base = _superPropBase(target, property); var desc; if (base) { desc = Object.getOwnPropertyDescriptor(base, property); if (desc.set) { desc.set.call(receiver, value); return true; } else if (!desc.writable) { return false; } } desc = Object.getOwnPropertyDescriptor(receiver, property); if (desc) { if (!desc.writable) { return false; } desc.value = value; Object.defineProperty(receiver, property, desc); } else { _defineProperty(receiver, property, value); } return true; }; } return set(target, property, value, receiver); } -function _set(target, property, value, receiver, isStrict) { var s = set(target, property, value, receiver || target); if (!s && isStrict) { throw new TypeError('failed to set property'); } return value; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } +function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); } +function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _superPropSet(t, e, o, r, p, f) { return _set(_getPrototypeOf(f ? t.prototype : t), e, o, r, p); } +function set(e, r, t, o) { return set = "undefined" != typeof Reflect && Reflect.set ? Reflect.set : function (e, r, t, o) { var f, i = _superPropBase(e, r); if (i) { if ((f = Object.getOwnPropertyDescriptor(i, r)).set) return f.set.call(o, t), !0; if (!f.writable) return !1; } if (f = Object.getOwnPropertyDescriptor(o, r)) { if (!f.writable) return !1; f.value = t, Object.defineProperty(o, r, f); } else _defineProperty(o, r, t); return !0; }, set(e, r, t, o); } +function _set(e, r, t, o, f) { if (!set(e, r, t, o || e) && f) throw new TypeError("failed to set property"); return t; } +function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); } -function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } +function _superPropGet(t, e, o, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), e, o); return 2 & r && "function" == typeof p ? function (t) { return p.apply(o, t); } : p; } +function _get() { return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); } +function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; } +function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } +function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); } +function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } /** * Copyright 2023 Comcast Cable Communications Management, LLC * @@ -1519,16 +1087,15 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g var Toggle = /*#__PURE__*/function (_Base) { - _inherits(Toggle, _Base); - var _super = _createSuper(Toggle); function Toggle() { _classCallCheck(this, Toggle); - return _super.apply(this, arguments); + return _callSuper(this, Toggle, arguments); } - _createClass(Toggle, [{ + _inherits(Toggle, _Base); + return _createClass(Toggle, [{ key: "_construct", value: function _construct() { - _get(_getPrototypeOf(Toggle.prototype), "_construct", this) && _get(_getPrototypeOf(Toggle.prototype), "_construct", this).call(this); + _superPropGet(Toggle, "_construct", this, 1) && _superPropGet(Toggle, "_construct", this, 3)([]); this._checked = false; } }, { @@ -1651,7 +1218,7 @@ var Toggle = /*#__PURE__*/function (_Base) { return this._announce || (this.checked ? 'Checked' : 'Unchecked'); }, set: function set(announce) { - _set(_getPrototypeOf(Toggle.prototype), "announce", announce, this, true); + _superPropSet(Toggle, "announce", announce, this, 1, 1); } }], [{ key: "__componentName", @@ -1698,10 +1265,235 @@ var Toggle = /*#__PURE__*/function (_Base) { }]; } }]); - return Toggle; }(Base/* default */.A); +/***/ }), + +/***/ "../../@lightningjs/ui-components/src/components/ListItem/ListItem.stories.js": +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ ListItem: () => (/* binding */ ListItem), +/* harmony export */ __namedExportsOrder: () => (/* binding */ __namedExportsOrder), +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ }); +/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); +/* harmony import */ var _ListItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../@lightningjs/ui-components/src/components/ListItem/ListItem.js"); +/* harmony import */ var _docs_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("../../@lightningjs/ui-components/src/docs/utils.js"); +/* harmony import */ var _assets_images_Xfinity_Provider_Logo_Square_png__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("../../@lightningjs/ui-components/src/assets/images/Xfinity-Provider-Logo-Square.png"); +/* harmony import */ var _Checkbox__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Checkbox/Checkbox.js"); +/* harmony import */ var _Radio__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Radio/Radio.js"); +/* harmony import */ var _Toggle__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Toggle/Toggle.js"); +/** + * Copyright 2023 Comcast Cable Communications Management, LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + + + + + + + + + +/** + * ListItem component with the ability to let a user pick from a list of options. + */ +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ + title: 'Components/ListItem/ListItem', + args: { + title: 'List Item', + shouldCollapse: false, + description: 'Description', + prefix: null, + prefixLogo: 'none', + suffix: null, + suffixLogo: 'none', + mode: 'focused' + }, + parameters: { + docs: { + description: { + component: "ListItem component with the ability to let a user pick from a list of options." + } + } + } +}); +const ListItem = () => class ListItem extends _lightningjs_core__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.Component { + static _template() { + return { + ListItem: { + type: _ListItem__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A + } + }; + } +}; +ListItem.storyName = 'ListItem'; +ListItem.argTypes = { + ...(0,_docs_utils__WEBPACK_IMPORTED_MODULE_2__/* .createModeControl */ .Pg)({ + summaryValue: 'focused' + }), + title: { + control: 'text', + description: 'Title text', + table: { + defaultValue: { + summary: 'undefined' + }, + type: { + summary: 'string' + } + } + }, + description: { + control: 'text', + description: 'Description text', + table: { + defaultValue: { + summary: 'undefined' + }, + type: { + summary: 'string' + } + } + }, + shouldCollapse: { + control: 'boolean', + description: 'When in unfocused or disabled mode, if this flag is true the description will collapse (when focused, it will always be expanded)', + table: { + defaultValue: { + summary: false + }, + type: { + summary: 'boolean' + } + } + }, + prefix: { + control: 'radio', + options: [null, 'toggle', 'radio', 'checkbox'], + description: 'Lightning components to be placed to the left of the title', + table: { + defaultValue: { + summary: 'undefined' + }, + type: { + summary: 'object or array' + } + } + }, + prefixLogo: { + control: 'radio', + options: ['none', 'xfinity'], + description: 'Logo to be placed to the left of the title. If prefix and prefixLogo are both set, prefixLogo will take precedence for what is rendered and prefix will be ignored', + table: { + defaultValue: { + summary: 'undefined' + }, + type: { + summary: 'string' + } + } + }, + suffix: { + control: 'radio', + options: [null, 'toggle', 'radio', 'checkbox'], + description: 'Lightning components to be placed to the right of the title', + table: { + defaultValue: { + summary: 'undefined' + }, + type: { + summary: 'object or array' + } + } + }, + suffixLogo: { + control: 'radio', + options: ['none', 'xfinity'], + description: 'Logo to be placed to the right of the title. If suffix and suffixLogo are both set, suffixLogo will take precedence for what is rendered and suffix will be ignored', + table: { + defaultValue: { + summary: 'undefined' + }, + type: { + summary: 'string' + } + } + } +}; +const logoSet = { + none: null, + xfinity: _assets_images_Xfinity_Provider_Logo_Square_png__WEBPACK_IMPORTED_MODULE_3__ +}; +const elementSet = { + toggle: { + type: _Toggle__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A, + checked: true + }, + radio: { + type: _Radio__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A, + checked: true + }, + checkbox: { + type: _Checkbox__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A, + checked: true + } +}; +const sharedArgActions = { + prefix: (prefix, component) => { + if (prefix == null) { + component.tag('ListItem').prefix = []; + } else { + component.tag('ListItem').prefix = elementSet[prefix]; + } + }, + prefixLogo: (prefixLogo, component) => { + component.tag('ListItem').prefixLogo = logoSet[prefixLogo]; + }, + suffixLogo: (suffixLogo, component) => { + component.tag('ListItem').suffixLogo = logoSet[suffixLogo]; + }, + suffix: (suffix, component) => { + if (suffix == null) { + component.tag('ListItem').suffix = []; + } else { + component.tag('ListItem').suffix = elementSet[suffix]; + } + } +}; +ListItem.parameters = { + argActions: sharedArgActions +}; +; +const __namedExportsOrder = ["ListItem"]; +ListItem.parameters = { + ...ListItem.parameters, + docs: { + ...ListItem.parameters?.docs, + source: { + originalSource: "() => class ListItem extends lng.Component {\n static _template() {\n return {\n ListItem: {\n type: ListItemComponent\n }\n };\n }\n}", + ...ListItem.parameters?.docs?.source + } + } +}; + /***/ }), /***/ "../../@lightningjs/ui-components/src/assets/images/Xfinity-Provider-Logo-Square.png": @@ -1712,4 +1504,4 @@ module.exports = __webpack_require__.p + "static/media/Xfinity-Provider-Logo-Squ /***/ }) }]); -//# sourceMappingURL=6567.0fdbfca6.iframe.bundle.js.map \ No newline at end of file +//# sourceMappingURL=2067.dcef5479.iframe.bundle.js.map \ No newline at end of file diff --git a/2067.dcef5479.iframe.bundle.js.map b/2067.dcef5479.iframe.bundle.js.map new file mode 100644 index 000000000..938c1af26 --- /dev/null +++ b/2067.dcef5479.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"2067.dcef5479.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA4CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AAAA;AAGA;AAIA;AACA;AAEA;AACA;AACA;AACA;AAaA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAOA;AACA;AAAA;AAAA;AAAA;AAGA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAOA;AACA;AAAA;AALA;AACA;AAAA;AAAA;AAAA;AAvIA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAEA;AACA;AAAA;AAEA;AAAA;AACA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAEA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAEA;AAAA;AACA;AACA;AAEA;AACA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAEA;AACA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AChEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmDA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAGA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAEA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAEA;AAAA;AAEA;AAAA;AAAA;AAAA;AAGA;AAEA;AAAA;AAEA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAOA;AACA;AACA;AAEA;AACA;AAAA;AATA;AACA;AAAA;AAAA;AAAA;AAxKA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAEA;AAAA;AAAA;AAAA;AAEA;AAOA;AAAA;AAAA;AAAA;AAGA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAGA;AAEA;AAAA;AAAA;AAEA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACvEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;ACtDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AAIA;AACA;AAEA;AACA;AACA;AACA;AAaA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAQA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AASA;AAEA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAOA;AACA;AAAA;AALA;AACA;AAAA;AAAA;AAAA;AA9HA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAEA;AAEA;AAAA;AACA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;AClFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAyCA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AAAA;AAAA;AAAA;AAEA;AACA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAGA;AACA;AAIA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAGA;AAAA;AAAA;AAAA;AAAA;AAEA;AAOA;AACA;AACA;AACA;AACA;AACA;AAQA;AACA;AAAA;AAAA;AAAA;AAGA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AAgBA;AACA;AAAA;AAAA;AAAA;AAGA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AAQA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAOA;AACA;AAAA;AALA;AACA;AAAA;AAAA;AAAA;AAlLA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AAGA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sources":["webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Checkbox/Checkbox.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Checkbox/Checkbox.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/ListItem/ListItem.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/ListItem/ListItem.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Radio/Radio.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Radio/Radio.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Toggle/Toggle.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Toggle/Toggle.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/ListItem/ListItem.stories.js"],"sourcesContent":["/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => {\n const strokeWidth = theme.stroke.sm;\n const size = theme.spacer.xxl;\n return {\n alpha: theme.alpha.primary,\n width: size,\n height: size,\n iconWidth: theme.spacer.lg,\n iconHeight: theme.spacer.lg,\n icon: theme.asset.check,\n radius: theme.radius.xs,\n strokeWidth\n };\n};\n\nexport const tone = theme => ({\n neutral: {\n strokeColor: theme.color.strokeNeutralSecondary,\n checkColor: theme.color.fillInverse,\n backgroundColor: theme.color.fillInverseSecondary,\n backgroundColorChecked: theme.color.fillNeutral\n },\n inverse: {\n strokeColor: theme.color.strokeInverseSecondary,\n checkColor: theme.color.fillNeutral,\n backgroundColor: theme.color.fillNeutralSecondary,\n backgroundColorChecked: theme.color.fillInverse\n },\n brand: {\n strokeColor: theme.color.strokeNeutralSecondary,\n checkColor: theme.color.fillInverse,\n backgroundColor: theme.color.fillNeutralSecondary,\n backgroundColorChecked: theme.color.fillBrand\n }\n});\n\nexport const mode = theme => ({\n disabled: { alpha: theme.alpha.inactive }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport Icon from '../Icon';\nimport Base from '../Base';\nimport * as styles from './Checkbox.styles';\nimport { getMaxRoundRadius } from '../../utils';\n\nexport default class Checkbox extends Base {\n static get __componentName() {\n return 'Checkbox';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static _template() {\n const center = { mount: 0.5, x: w => w / 2, y: h => h / 2 };\n return {\n Body: {\n rtt: true, // ensures the background color doesn't bleed into the checkbox icon when disabled\n ...center,\n Check: {\n type: Icon,\n ...center,\n alpha: 0\n }\n },\n Stroke: center\n };\n }\n\n static get tags() {\n return ['Check', 'Body', 'Stroke'];\n }\n\n static get properties() {\n return ['checked'];\n }\n\n static get aliasStyles() {\n return [\n { prev: 'checkSrc', curr: 'icon' },\n { prev: 'checkH', curr: 'iconHeight' },\n { prev: 'checkW', curr: 'iconWidth' },\n { prev: 'checkHeight', curr: 'iconHeight' },\n { prev: 'checkWidth', curr: 'iconWidth' }\n ];\n }\n\n _update() {\n this._updateBody();\n this._updateStroke();\n this._updateCheck();\n if (this._checkedChanged) {\n this.fireAncestors('$announce', this.announce);\n this._checkedChanged = false;\n }\n this._updateOpacity();\n }\n\n _updateCheck() {\n this._Check.patch({\n w: this.style.iconWidth,\n h: this.style.iconHeight,\n icon: this.style.icon,\n style: { color: this.style.checkColor }\n });\n\n const alphaPatch = {\n alpha: this.checked ? 1 : 0\n };\n\n this.applySmooth(this._Check, alphaPatch);\n }\n\n _updateBody() {\n const bodyColor = this.checked\n ? this.style.backgroundColorChecked\n : this.style.backgroundColor;\n\n const width = this.w - this.style.strokeWidth * 2 - 2;\n const height = this.h - this.style.strokeWidth * 2 - 2;\n\n this._Body.patch({\n texture: lng.Tools.getRoundRect(\n // Compensating for the extra 2 pixels getRoundRect adds\n width,\n height,\n getMaxRoundRadius(\n this.style.radius,\n width,\n height,\n this.style.strokeWidth * 2 - 2\n ),\n 0,\n null,\n true,\n bodyColor\n )\n });\n }\n\n _updateStroke() {\n this._Stroke.patch({\n texture: lng.Tools.getRoundRect(\n // Compensating for the extra 2 pixels getRoundRect adds\n this.w - 2,\n this.h - 2,\n getMaxRoundRadius(this.style.radius, this.w - 2, this.h - 2),\n this.style.strokeWidth,\n this.style.strokeColor,\n false\n )\n });\n }\n\n _updateOpacity() {\n this.applySmooth(this, { alpha: this.style.alpha });\n }\n\n _setChecked(checked) {\n this._checkedChanged = checked !== this._checked;\n return checked;\n }\n\n toggle() {\n if (!this._isDisabledMode) {\n this.checked = !this.checked;\n }\n return this;\n }\n\n _handleEnter() {\n if (typeof this.onEnter === 'function') {\n return this.onEnter(this);\n } else {\n this.toggle();\n }\n return false;\n }\n\n set announce(announce) {\n super.announce = announce;\n }\n\n get announce() {\n return this._announce || (this.checked ? 'Checked' : 'Unchecked');\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport utils from '../../utils';\n\nexport const base = theme => ({\n alpha: theme.alpha.primary,\n descriptionTextStyle: {\n ...theme.typography.body3,\n maxLines: 1,\n textColor: theme.color.textNeutralSecondary\n },\n height: theme.spacer.xxl * 3,\n logoStyle: {\n width: theme.spacer.xxl * 2,\n height: theme.spacer.xxl * 2,\n radius: theme.radius.sm\n },\n paddingX: theme.spacer.xl,\n contentSpacing: theme.spacer.lg,\n titleTextStyle: {\n ...theme.typography.headline3,\n maxLines: 1,\n textColor: theme.color.textNeutral\n },\n width: utils.getWidthByColumnSpan(theme, 3)\n});\n\nexport const mode = theme => ({\n disabled: {\n alpha: theme.alpha.inactive,\n descriptionTextStyle: { textColor: theme.color.textNeutralDisabled },\n titleTextStyle: { textColor: theme.color.textNeutralDisabled }\n },\n focused: {\n descriptionTextStyle: { textColor: theme.color.textInverseSecondary },\n titleTextStyle: { textColor: theme.color.textInverse }\n }\n});\n\nexport const tone = theme => ({\n inverse: {\n mode: {\n focused: {\n descriptionTextStyle: { textColor: theme.color.textNeutral },\n titleTextStyle: { textColor: theme.color.textNeutral }\n }\n }\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport * as styles from './ListItem.styles';\nimport Button from '../Button';\nimport TextBox from '../TextBox';\nimport Icon from '../Icon';\n\nexport default class ListItem extends Button {\n static get __componentName() {\n return 'ListItem';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static _template() {\n return {\n ...super._template(),\n justify: 'left',\n fixed: true,\n Content: {\n ...super._template().Content,\n TextWrapper: {\n mountY: 0.5,\n flex: { direction: 'column' },\n Title: {\n type: TextBox,\n signals: {\n textBoxChanged: '_onTextBoxChanged'\n }\n }\n }\n }\n };\n }\n static get properties() {\n return [\n ...super.properties,\n 'description',\n 'prefixLogo',\n 'suffixLogo',\n 'shouldCollapse'\n ];\n }\n\n static get aliasStyles() {\n return [{ prev: 'titlePadding', curr: 'contentSpacing' }];\n }\n\n static get tags() {\n return [\n ...super.tags,\n { name: 'Description', path: 'Content.TextWrapper.Description' }\n ];\n }\n\n _onTextBoxChanged() {\n this._updateTitle();\n this._updateDescription();\n this._updateTruncation();\n }\n\n _update() {\n this._updatePrefixLogo();\n this._updateSuffixLogo();\n super._update();\n this._updateDescription();\n }\n\n _updateTitle() {\n this._TextWrapper.patch({\n Title: {\n content: this.title,\n style: { textStyle: this.style.titleTextStyle }\n }\n });\n }\n\n _updateDescription() {\n if (this._hasDescription) {\n let descriptionPatch = {\n content: this.description,\n style: {\n textStyle: {\n ...this.style.descriptionTextStyle,\n wordWrap: true,\n wordWrapWidth: this._fixedWordWrapWidth\n }\n },\n visible: !this._collapse\n };\n if (!this._Description) {\n descriptionPatch = {\n type: TextBox,\n signals: {\n textBoxChanged: '_onTextBoxChanged'\n },\n ...descriptionPatch\n };\n }\n this._TextWrapper.patch({ Description: descriptionPatch });\n } else {\n this._TextWrapper.patch({ Description: undefined });\n }\n }\n\n _updateTruncation() {\n if (this._Title) {\n this._Title.patch({\n style: {\n textStyle: {\n ...this.style.titleTextStyle,\n wordWrap: this.fixed,\n wordWrapWidth: this.fixed ? this._fixedWordWrapWidth : 0\n }\n }\n });\n }\n }\n\n _updatePrefixLogo() {\n if (this._hasPrefixLogo) {\n this._prefix = this._addLogoProps(this._prefixLogo);\n }\n }\n\n _updateSuffixLogo() {\n if (this._hasSuffixLogo) {\n this._suffix = this._addLogoProps(this._suffixLogo);\n }\n }\n\n _addLogoProps(icon) {\n return {\n type: Icon,\n icon,\n style: { color: undefined, ...this.style.logoStyle }\n };\n }\n\n get _hasPrefixLogo() {\n return this.prefixLogo;\n }\n\n get _hasSuffixLogo() {\n return this.suffixLogo;\n }\n\n get _rowProps() {\n return {\n ...super._rowProps,\n autoResizeHeight: true\n };\n }\n\n get _buttonProps() {\n return {\n ...super._buttonProps,\n alpha: this.style.alpha\n };\n }\n\n get _hasDescription() {\n return !!this.description;\n }\n\n get _suffixX() {\n return this.w - this._paddingRight - this._suffixW - this.style.paddingX;\n }\n\n get _collapse() {\n return this.shouldCollapse && !this._isFocusedMode;\n }\n\n set announce(announce) {\n super.announce = announce;\n }\n\n get announce() {\n if (this._announce) {\n return this._announce;\n }\n\n return this.title + this.description + ', List Item';\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => {\n const size = theme.spacer.xxl;\n return {\n alpha: theme.alpha.primary,\n width: size,\n height: size,\n knobHeight: size / 2,\n knobWidth: size / 2,\n radius: size / 2,\n strokeWidth: theme.stroke.sm\n };\n};\n\nexport const tone = theme => ({\n neutral: {\n backgroundColor: theme.color.fillInverseSecondary,\n backgroundColorChecked: theme.color.fillNeutral,\n knobColor: theme.color.fillInverse,\n strokeColor: theme.color.strokeNeutralSecondary\n },\n inverse: {\n backgroundColor: theme.color.fillNeutralSecondary,\n backgroundColorChecked: theme.color.fillInverse,\n knobColor: theme.color.fillNeutral,\n strokeColor: theme.color.strokeInverseSecondary\n },\n brand: {\n backgroundColor: theme.color.fillNeutralSecondary,\n backgroundColorChecked: theme.color.fillBrand,\n knobColor: theme.color.fillInverse,\n strokeColor: theme.color.strokeNeutralSecondary\n }\n});\n\nexport const mode = theme => ({\n disabled: { alpha: theme.alpha.inactive }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport Base from '../Base';\nimport lng from '@lightningjs/core';\nimport * as styles from './Radio.styles';\nimport { getMaxRoundRadius } from '../../utils';\n\nexport default class Radio extends Base {\n static get __componentName() {\n return 'Radio';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static _template() {\n const center = { mount: 0.5, x: w => w / 2, y: h => h / 2 };\n return {\n Body: {\n rtt: true, // ensures the background color doesn't bleed into the knob when disabled\n ...center,\n Knob: {\n ...center,\n alpha: 0\n }\n },\n Stroke: center\n };\n }\n\n static get tags() {\n return ['Knob', 'Body', 'Stroke'];\n }\n static get properties() {\n return ['checked'];\n }\n\n _update() {\n this._updateBody();\n this._updateStroke();\n this._updateKnob();\n if (this._checkedChanged) {\n this.fireAncestors('$announce', this.announce);\n this._checkedChanged = false;\n }\n this._updateOpacity();\n }\n\n _updateBody() {\n const bodyColor = this.checked\n ? this.style.backgroundColorChecked\n : this.style.backgroundColor;\n\n const width = this.w - this.style.strokeWidth * 2 - 2;\n const height = this.h - this.style.strokeWidth * 2 - 2;\n\n this._Body.patch({\n texture: lng.Tools.getRoundRect(\n // Compensating for the extra 2 pixels getRoundRect adds\n width,\n height,\n getMaxRoundRadius(\n this.style.radius,\n width,\n height,\n this.style.strokeWidth * 2 - 2\n ),\n null,\n null,\n true,\n bodyColor\n )\n });\n }\n\n _updateStroke() {\n this._Stroke.patch({\n // Compensating for the extra 2 pixels getRoundRect adds\n texture: lng.Tools.getRoundRect(\n this.w - 2,\n this.h - 2,\n getMaxRoundRadius(this.style.radius, this.w, this.h),\n this.style.strokeWidth,\n this.style.strokeColor,\n false\n )\n });\n }\n\n _updateKnob() {\n this._Knob.patch({\n texture: lng.Tools.getRoundRect(\n this.style.knobWidth,\n this.style.knobHeight,\n this.style.knobWidth / 2,\n null,\n null,\n true,\n this.style.knobColor\n )\n });\n\n this.applySmooth(this._Knob, {\n alpha: this.checked ? 1 : 0\n });\n }\n\n _updateOpacity() {\n this.applySmooth(this, { alpha: this.style.alpha });\n }\n\n _setChecked(checked) {\n this._checkedChanged = checked !== this._checked;\n return checked;\n }\n\n toggle() {\n if (!this._isDisabledMode) {\n this.checked = !this.checked;\n }\n return this;\n }\n\n _handleEnter() {\n if (typeof this.onEnter === 'function') {\n return this.onEnter(this);\n } else {\n this.toggle();\n }\n return false;\n }\n\n set announce(announce) {\n super.announce = announce;\n }\n\n get announce() {\n return this._announce || (this.checked ? 'Checked' : 'Unchecked');\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => {\n const knobSize = theme.spacer.xl;\n const knobPadding = theme.spacer.xs;\n const strokeWidth = theme.stroke.sm;\n return {\n height: knobSize + (knobPadding + strokeWidth) * 2,\n knobWidth: knobSize,\n knobHeight: knobSize,\n knobRadius: knobSize / 2,\n knobPadding,\n strokeWidth,\n width: (strokeWidth + knobPadding * 2 + knobSize) * 2\n };\n};\n\nexport const tone = theme => ({\n neutral: {\n strokeColor: theme.color.fillNeutral,\n backgroundColor: theme.color.fillInverseTertiary,\n backgroundColorChecked: theme.color.fillNeutral,\n knobColor: theme.color.fillNeutral,\n knobColorChecked: theme.color.fillInverse,\n mode: {\n disabled: {\n strokeColor: theme.color.fillNeutralDisabled,\n backgroundColor: theme.color.fillInverseDisabled,\n backgroundColorChecked: theme.color.fillNeutralDisabled,\n knobColor: theme.color.fillNeutralDisabled,\n knobColorChecked: theme.color.fillInverseDisabled\n }\n }\n },\n inverse: {\n strokeColor: theme.color.fillInverse,\n backgroundColor: theme.color.fillNeutralTertiary,\n backgroundColorChecked: theme.color.fillInverse,\n knobColor: theme.color.fillInverse,\n knobColorChecked: theme.color.fillNeutral,\n mode: {\n disabled: {\n strokeColor: theme.color.fillInverseDisabled,\n backgroundColor: theme.color.fillNeutralDisabled,\n backgroundColorChecked: theme.color.fillInverseDisabled,\n knobColor: theme.color.fillInverseDisabled,\n knobColorChecked: theme.color.fillNeutralDisabled\n }\n }\n },\n brand: {\n strokeColor: theme.color.fillBrand,\n backgroundColor: theme.color.fillBrandTertiary,\n backgroundColorChecked: theme.color.fillBrand,\n knobColor: theme.color.fillBrand,\n knobColorChecked: theme.color.fillInverse,\n mode: {\n disabled: {\n strokeColor: theme.color.fillNeutralDisabled,\n backgroundColor: theme.color.fillInverseDisabled,\n backgroundColorChecked: theme.color.fillNeutralDisabled,\n knobColor: theme.color.fillNeutralDisabled,\n knobColorChecked: theme.color.fillInverseDisabled\n }\n }\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport Base from '../Base';\nimport * as styles from './Toggle.styles';\nimport { getMaxRoundRadius } from '../../utils';\n\nexport default class Toggle extends Base {\n static get __componentName() {\n return 'Toggle';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static _template() {\n return {\n Container: {\n Stroke: {},\n Knob: {}\n }\n };\n }\n\n static get tags() {\n return [\n 'Container',\n {\n name: 'Knob',\n path: 'Container.Knob'\n },\n {\n name: 'Stroke',\n path: 'Container.Stroke'\n }\n ];\n }\n\n static get properties() {\n return ['checked'];\n }\n\n static get aliasStyles() {\n return [{ prev: 'strokeWeight', curr: 'strokeWidth' }];\n }\n\n _construct() {\n super._construct && super._construct();\n this._checked = false;\n }\n\n _update() {\n this._updateKnobPosition();\n this._updateColors();\n this._updateContainer();\n this._updateStroke();\n this._updateKnob();\n if (this._checkedChanged) {\n this.fireAncestors('$announce', this.announce);\n this._checkedChanged = false;\n }\n }\n\n _updateKnobPosition() {\n const { knobPadding, knobWidth, strokeWidth } = this.style;\n\n this.applySmooth(this._Knob, {\n x: this.checked\n ? this.w - strokeWidth - knobPadding - knobWidth\n : strokeWidth + knobPadding\n });\n }\n\n _updateColors() {\n const {\n backgroundColor,\n backgroundColorChecked,\n knobColor,\n knobColorChecked\n } = this.style;\n\n const currentKnobColor = this.checked ? knobColorChecked : knobColor;\n const containerColor = this.checked\n ? backgroundColorChecked\n : backgroundColor;\n\n this.applySmooth(this._Knob, { color: currentKnobColor });\n this.applySmooth(this._Container, { color: containerColor });\n }\n\n _updateContainer() {\n const { knobRadius, knobPadding, strokeRadius, strokeWidth } = this.style;\n\n const radius =\n strokeRadius !== undefined\n ? strokeRadius === 0\n ? strokeRadius\n : Math.max(0, strokeRadius - strokeWidth)\n : Math.max(0, knobRadius + knobPadding + strokeWidth);\n\n this._Container.patch({\n w: this.w,\n h: this.h,\n texture: lng.Tools.getRoundRect(\n // Compensating for the extra 2 pixels getRoundRect adds\n this.w - strokeWidth * 2 - 2,\n this.h - strokeWidth * 2 - 2,\n getMaxRoundRadius(radius, this.w, this.h),\n strokeWidth,\n 0,\n true,\n false\n )\n });\n }\n\n _updateStroke() {\n const { knobRadius, knobPadding, strokeColor, strokeRadius, strokeWidth } =\n this.style;\n\n this._Stroke.patch({\n w: this.w,\n h: this.h,\n texture: lng.Tools.getRoundRect(\n // Compensating for the extra 2 pixels getRoundRect adds\n this.w - 2,\n this.h - 2,\n strokeRadius !== undefined\n ? getMaxRoundRadius(strokeRadius, this.w, this.h)\n : getMaxRoundRadius(\n knobRadius,\n this.w - knobPadding * 2 - 2,\n this.h - knobPadding * 2 - 2\n ) +\n knobPadding +\n strokeWidth,\n strokeWidth,\n strokeColor,\n false,\n false\n )\n });\n }\n\n _updateKnob() {\n const { knobHeight, knobWidth, knobRadius } = this.style;\n\n this._Knob.patch({\n zIndex: 2,\n y: (this.h - knobHeight) / 2,\n texture: lng.Tools.getRoundRect(\n // Compensating for the extra 2 pixels getRoundRect adds\n knobWidth - 2,\n knobHeight - 2,\n getMaxRoundRadius(knobRadius, knobWidth - 2, knobHeight - 2),\n 0,\n 0,\n true,\n false\n )\n });\n }\n\n _setChecked(checked) {\n this._checkedChanged = checked !== this._checked;\n return checked;\n }\n\n toggle() {\n if (!this._isDisabledMode) {\n this.checked = !this.checked;\n }\n return this;\n }\n\n _handleEnter() {\n if (typeof this.onEnter === 'function') {\n return this.onEnter(this);\n } else {\n this.toggle();\n }\n return false;\n }\n\n set announce(announce) {\n super.announce = announce;\n }\n\n get announce() {\n return this._announce || (this.checked ? 'Checked' : 'Unchecked');\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport ListItemComponent from './ListItem';\nimport { createModeControl } from '../../docs/utils';\nimport xfinity from '../../assets/images/Xfinity-Provider-Logo-Square.png';\nimport { default as Checkbox } from '../Checkbox';\nimport { default as Radio } from '../Radio';\nimport { default as Toggle } from '../Toggle';\n\n/**\n * ListItem component with the ability to let a user pick from a list of options.\n */\nexport default {\n title: 'Components/ListItem/ListItem',\n args: {\n title: 'List Item',\n shouldCollapse: false,\n description: 'Description',\n prefix: null,\n prefixLogo: 'none',\n suffix: null,\n suffixLogo: 'none',\n mode: 'focused'\n }\n};\n\nexport const ListItem = () =>\n class ListItem extends lng.Component {\n static _template() {\n return {\n ListItem: {\n type: ListItemComponent\n }\n };\n }\n };\n\nListItem.storyName = 'ListItem';\n\nListItem.argTypes = {\n ...createModeControl({ summaryValue: 'focused' }),\n title: {\n control: 'text',\n description: 'Title text',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n description: {\n control: 'text',\n description: 'Description text',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n shouldCollapse: {\n control: 'boolean',\n description:\n 'When in unfocused or disabled mode, if this flag is true the description will collapse (when focused, it will always be expanded)',\n table: {\n defaultValue: { summary: false },\n type: { summary: 'boolean' }\n }\n },\n prefix: {\n control: 'radio',\n options: [null, 'toggle', 'radio', 'checkbox'],\n description: 'Lightning components to be placed to the left of the title',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'object or array' }\n }\n },\n prefixLogo: {\n control: 'radio',\n options: ['none', 'xfinity'],\n description:\n 'Logo to be placed to the left of the title. If prefix and prefixLogo are both set, prefixLogo will take precedence for what is rendered and prefix will be ignored',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n suffix: {\n control: 'radio',\n options: [null, 'toggle', 'radio', 'checkbox'],\n description: 'Lightning components to be placed to the right of the title',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'object or array' }\n }\n },\n suffixLogo: {\n control: 'radio',\n options: ['none', 'xfinity'],\n description:\n 'Logo to be placed to the right of the title. If suffix and suffixLogo are both set, suffixLogo will take precedence for what is rendered and suffix will be ignored',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n }\n};\n\nconst logoSet = {\n none: null,\n xfinity: xfinity\n};\n\nconst elementSet = {\n toggle: {\n type: Toggle,\n checked: true\n },\n radio: {\n type: Radio,\n checked: true\n },\n checkbox: {\n type: Checkbox,\n checked: true\n }\n};\n\nconst sharedArgActions = {\n prefix: (prefix, component) => {\n if (prefix == null) {\n component.tag('ListItem').prefix = [];\n } else {\n component.tag('ListItem').prefix = elementSet[prefix];\n }\n },\n prefixLogo: (prefixLogo, component) => {\n component.tag('ListItem').prefixLogo = logoSet[prefixLogo];\n },\n suffixLogo: (suffixLogo, component) => {\n component.tag('ListItem').suffixLogo = logoSet[suffixLogo];\n },\n suffix: (suffix, component) => {\n if (suffix == null) {\n component.tag('ListItem').suffix = [];\n } else {\n component.tag('ListItem').suffix = elementSet[suffix];\n }\n }\n};\n\nListItem.parameters = {\n argActions: sharedArgActions\n};\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/2072.9cbb9aca.iframe.bundle.js.map b/2072.9cbb9aca.iframe.bundle.js.map deleted file mode 100644 index 98b49cf22..000000000 --- a/2072.9cbb9aca.iframe.bundle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"2072.9cbb9aca.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;AC3CA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AADA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAqDA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AAIA;AAAA;AAAA;AAAA;AASA;AACA;AAAA;AAPA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAaA;AACA;AAAA;AAPA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAOA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AAAA;AACA;AAEA;AAGA;AAAA;AAAA;AAAA;AAGA;AACA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AAMA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAEA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAEA;AACA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAGA;AAGA;AACA;AACA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA;AACA;AAOA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAIA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AACA;AAAA;AAAA;AAQA;AAIA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAEA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAEA;AAAA;AAAA;AAAA;AACA;AAAA;AAEA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAIA;AAAA;AAEA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAjmBA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAcA;AAAA;AAAA;AAAA;AAGA;AASA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAEA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;AC5EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAAA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;;;;;;;;;;;;;;;;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA;AACA;AACA;AACA;AACA;AACA;AAKA;AACA;AAAA;AAAA;AAAA;AAnBA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA","sources":["webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Artwork/Artwork.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Artwork/Artwork.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Gradient/Gradient.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Gradient/Gradient.js"],"sourcesContent":["/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => ({\n animationBlurEntrance: theme.animation.utilityEntrance,\n animationBlurExit: theme.animation.utilityExit,\n animationComponentEntrance: theme.animation.utilityEntrance,\n animationGradientEntrance: theme.animation.utilityEntrance,\n animationGradientExit: theme.animation.utilityExit,\n animationImageScaleEntrance: theme.animation.standardEntrance,\n animationImageScaleExit: theme.animation.standardEntrance,\n blur: 4,\n centerImageRadius: theme.radius.md,\n fallbackSrc: undefined,\n fillColor: theme.color.overlay,\n gradientColor: theme.color.material,\n imageScale: 1,\n imageScalePivotX: 0.5,\n imageScalePivotY: 0.5,\n padding: theme.spacer.md,\n radius: 0,\n zIndexSet: {\n image: 1,\n blur: 2,\n centerImage: 3,\n fill: 4,\n gradient: 5,\n foreground: 6\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport { getMaxRoundRadius, getValidColor, reduceFraction } from '../../utils';\nimport Base from '../Base';\nimport Gradient from '../Gradient';\nimport * as styles from './Artwork.styles';\nimport context from '../../globals/context/index';\nimport CustomImageTexture from '../../textures/CustomImageTexture';\n\nexport default class Artwork extends Base {\n static get __componentName() {\n return 'Artwork';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static get properties() {\n return [\n 'blur',\n 'fallbackSrc',\n 'foregroundHeight',\n 'foregroundSrc',\n 'foregroundWidth',\n 'gradient',\n 'format',\n 'src',\n 'fill',\n 'shouldScale',\n 'srcCallback',\n 'srcCallbackAspectRatios'\n ];\n }\n\n static get tags() {\n return [\n 'Blur',\n 'CenterImage',\n 'FillColor',\n 'ForegroundImage',\n 'Gradient',\n 'Image',\n 'Item'\n ];\n }\n\n static get aliasProperties() {\n return [\n { prev: 'foregroundH', curr: 'foregroundHeight' },\n { prev: 'foregroundW', curr: 'foregroundWidth' }\n ];\n }\n\n static _template() {\n return {\n rtt: true,\n Image: {}\n };\n }\n\n get _shouldBlur() {\n const shouldBur = this._blur || this._hasCenterImage;\n this._Image.rtt = shouldBur; // rtt can cause a performance hit. Remove if not needed on Image\n return shouldBur; // Artwork should always use blur when circleImage is set to true\n }\n\n get _hasCenterImage() {\n return (\n -1 < ['circle', 'square'].indexOf(this.format) ||\n ('contain' === this.format && !this._aspectRatioEqual)\n );\n }\n\n set w(v) {\n if (v === super.w) return;\n super.w = v;\n this._componentSrc = this._generatePromise();\n }\n\n get w() {\n return super.w;\n }\n\n set h(v) {\n if (v === super.h) return;\n super.h = v;\n this._componentSrc = this._generatePromise();\n }\n\n get h() {\n return super.h;\n }\n\n get _actualAspectRatio() {\n if (!this.w || !this.h) return null;\n return reduceFraction(`${this.w}/${this.h}`).replace('/', 'x');\n }\n\n get _supportedAspectRatioHeights() {\n return this.srcCallbackAspectRatios.map(ratio => {\n const [rw, rh] = ratio.split('x').map(v => parseInt(v));\n const calcHeight = (this.w / rw) * rh;\n return calcHeight;\n });\n }\n\n get _closestSupportedAspectRatio() {\n const closest = this._supportedAspectRatioHeights.reduce((prev, curr) =>\n Math.abs(curr - this.h) < Math.abs(prev - this.h) ? curr : prev\n );\n return this.srcCallbackAspectRatios[\n this._supportedAspectRatioHeights.indexOf(closest)\n ];\n }\n\n get _processedImageSrc() {\n let src = this.src || this.fallbackSrc;\n if (\n src !== this.fallbackSrc &&\n this.srcCallback &&\n typeof this.srcCallback === 'function'\n ) {\n src = this.srcCallback({\n closestAspectRatio: this._closestSupportedAspectRatio,\n aspectRatio: this._actualAspectRatio,\n src: this.src,\n w: this.w,\n h: this.h\n });\n }\n\n return src && src.then ? src : Promise.resolve(src);\n }\n\n get _gradientPatch() {\n return {\n alpha: !this._Gradient && this.shouldSmooth ? 0.001 : 1,\n style: {\n gradientColor: getValidColor(this.style.gradientColor)\n },\n h: this.h + 4,\n type: Gradient,\n w: this.w + 4,\n x: -2,\n y: -2,\n zIndex: this.core.findZContext().zIndex + this.style.zIndexSet.gradient\n };\n }\n\n _construct() {\n super._construct();\n this._srcCallbackAspectRatios = ['16x9', '3x4', '4x3', '2x1', '1x1'];\n }\n\n _setSrc(v) {\n this._componentSrc = this._generatePromise();\n return v;\n }\n\n _getFallbackSrc() {\n return this._fallbackSrc || (this.style && this.style.fallbackSrc);\n }\n\n _generatePromise() {\n // When a new src, w, or h value is added promises need to be reset\n let resolvePromise, rejectPromise;\n const complete = new Promise(function (resolve, reject) {\n resolvePromise = resolve;\n rejectPromise = reject;\n });\n return {\n complete,\n resolve: resolvePromise,\n reject: rejectPromise\n };\n }\n\n _setup() {\n this.alpha = 0.001; // Hide on first load to stop flash of un-styled content on first creation\n this._componentSrc = this._generatePromise(); // Initialize loading promises\n this._aspectRatioEqual = false;\n // Wait for _Image to be added to the tree to set listeners\n this._Image.on('txLoaded', this._resolveLoading.bind(this));\n this._Image.on('txError', this._rejectLoading.bind(this));\n }\n\n _resolveLoading() {\n this._aspectRatioEqual = this._Image.texture.source\n ? parseFloat(this.finalW / this.finalH).toFixed(2) ===\n parseFloat(\n this._Image.texture.source.w / this._Image.texture.source.h\n ).toFixed(2)\n : false;\n this._componentSrc.resolve && this._componentSrc.resolve();\n this.signal('imageLoaded');\n }\n\n _rejectLoading(error) {\n this._componentSrc.reject && this._componentSrc.reject(error);\n this.signal('imageLoadFailed');\n }\n\n async _update() {\n this._updateRadius();\n this._updateGradient();\n\n await this._updateImage();\n this._updateFillColor();\n this._updateForegroundImage();\n if (!this.src) {\n this._showComponent(); // Ensure that component displays even in the case that src is not set\n return;\n }\n try {\n // These actions are dependent on the image loading so we wait for the process to complete\n await this._componentSrc.complete;\n await this._updateCenterImage();\n this._updateBlur();\n // After everything is setup fade in the Artwork component for the first time\n this._showComponent();\n this._updateScale();\n } catch (e) {\n this._handleImageLoadError();\n }\n if (this.shouldSmooth === undefined) this.shouldSmooth = true;\n }\n\n _updateScale() {\n if (this.shouldScale) {\n let imageScale;\n switch (typeof this.style.imageScale) {\n case 'function':\n imageScale = this.style.imageScale(this.w);\n break;\n case 'number':\n imageScale = this.style.imageScale;\n break;\n default:\n imageScale = 1;\n }\n\n this._Image.smooth = {\n pivotX: this.style.imageScalePivotX,\n pivotY: this.style.imageScalePivotY,\n scale: [\n imageScale,\n this._Image.scale < imageScale\n ? this.style.animationImageScaleEntrance\n : this.style.animationImageScaleExit\n ]\n };\n } else {\n const scale = 1;\n this._Image.smooth = {\n scale: [scale, this.style.animationImageScaleExit]\n };\n }\n }\n\n _handleImageLoadError() {\n if (this.src === this.fallbackSrc) return;\n context.error(`Image ${this._src} failed to load`);\n if (this.fallbackSrc && this.fallbackSrc !== this.src) {\n this.src = this.fallbackSrc;\n }\n }\n\n _showComponent() {\n this.smooth = {\n alpha: [1, this.style.animationComponentEntrance]\n };\n }\n\n async _updateForegroundImage() {\n if (!this._foregroundSrc) {\n if (this._ForegroundImage) {\n this.patch({\n ForegroundImage: undefined\n });\n }\n return;\n }\n\n const foregroundImagePatch = {\n mount: 0.5,\n x: this.w / 2,\n y: this.h / 2,\n zIndex: this.core.findZContext().zIndex + this.style.zIndexSet.foreground,\n texture: {\n type: CustomImageTexture,\n src: this._foregroundSrc,\n hasAlpha: true\n }\n };\n\n if (this.foregroundWidth && this.foregroundHeight) {\n // The image size is already known so we can just patch it\n foregroundImagePatch.h = this.foregroundHeight;\n foregroundImagePatch.w = this.foregroundWidth;\n\n this.patch({\n ForegroundImage: foregroundImagePatch\n });\n } else if (this.foregroundWidth || this.foregroundHeight) {\n // Load the image to get the aspect ratio before showing\n this.patch({\n ForegroundImage: { ...foregroundImagePatch, alpha: 0.001 }\n });\n\n this._ForegroundImage.once('txLoaded', () => {\n const imageW = this._ForegroundImage.texture.getRenderWidth();\n const imageH = this._ForegroundImage.texture.getRenderHeight();\n this._ForegroundImage.patch({\n alpha: 1,\n w: this.foregroundHeight\n ? this.foregroundHeight * (imageW / imageH)\n : this.foregroundWidth,\n h: this.foregroundWidth\n ? this.foregroundWidth * (imageH / imageW)\n : this.foregroundHeight\n });\n });\n }\n\n this.patch({\n ForegroundImage: foregroundImagePatch\n });\n }\n\n _updateBlur() {\n if (\n (!this._shouldBlur ||\n (this._Image &&\n this._Image.texture &&\n this._Image.texture.src === this.fallbackSrc)) &&\n this._Blur\n ) {\n // Remove Blur element as it is not longer required\n if (this.shouldSmooth) {\n this._Blur._getTransition('alpha').once('finish', () => {\n // Clean up gradient after animation is complete\n this.patch({ Blur: undefined });\n });\n this._Blur.smooth = {\n alpha: [0, this.style.animationBlurExit]\n };\n } else {\n this.patch({\n Blur: undefined\n });\n }\n return;\n }\n // Create/update the Blur element\n if (!this._srcFailed && this._shouldBlur) {\n this.patch({\n Blur: {\n alpha: !this._Blur && this.shouldSmooth ? 0.001 : 1, // If the Blur element already exists there is no need to fade it in again\n amount: this.style.blur,\n zIndex: this.core.findZContext().zIndex + this.style.zIndexSet.blur,\n content: {\n Image: {\n h: this.h,\n texture: this._Image.getTexture(),\n w: this.w\n }\n },\n h: this.h,\n rtt: true,\n type: lng.components.FastBlurComponent,\n w: this.w\n }\n });\n\n if (this._Blur.alpha < 1) {\n this._Blur.smooth = {\n alpha: [1, this.style.animationBlurEntrance]\n };\n }\n }\n }\n\n _updateCenterImage() {\n if (this.format === 'contain') {\n this._updateFormatContain();\n } else if (this.format === 'circle' || this.format === 'square') {\n this._updateFormatSquareCircle();\n } else if (this._CenterImage) {\n // Remove the center image element if no longer required\n this.patch({\n CenterImage: undefined\n });\n }\n }\n\n async _updateFormatContain() {\n if (\n (this._CenterImage && this._CenterImage.mode !== this.format) ||\n this.src === this.fallbackSrc ||\n this._aspectRatioEqual\n ) {\n // Make sure previous mode is propertly cleaned up\n this.patch({\n CenterImage: undefined\n });\n\n if (this.src === this.fallbackSrc || this._aspectRatioEqual) {\n this._Image.alpha = 1;\n return; // If is fallback image or the aspect ratio already fits the space there is no need to proceed\n }\n }\n\n let imageW;\n let imageH;\n\n const ratioW = Math.abs(\n this._Image.texture.source.w / this._Image.texture.source.h\n );\n\n const ratioH = Math.abs(\n this._Image.texture.source.h / this._Image.texture.source.w\n );\n\n if (this._Image.texture.source.w < this._Image.texture.source.h) {\n // portrait\n if (this.h * ratioW < this.w) {\n // make sure it is set to show 100% height\n imageW = this.h * ratioW;\n imageH = this.h;\n } else {\n // make 100% width\n\n imageW = this.w;\n imageH = this.w * ratioH;\n }\n } else if (this._Image.texture.source.w > this._Image.texture.source.h) {\n // landscape\n if (this.w * ratioH < this.h) {\n // make sure it is set to show 100% w\n imageW = this.w;\n imageH = this.w * ratioH;\n } else {\n // make 100% width\n imageW = this.h * ratioW;\n imageH = this.h;\n }\n } else {\n // render a square\n imageW = Math.min(this.w, this.h);\n imageH = imageW;\n }\n\n const src = await this._processedImageSrc;\n\n this.patch({\n CenterImage: {\n format: this.format,\n mount: 0.5,\n w: imageW,\n h: imageH,\n x: this.w / 2,\n y: this.h / 2,\n zIndex:\n this.core.findZContext().zIndex + this.style.zIndexSet.centerImage,\n texture: {\n src,\n resizeMode: {\n h: imageH,\n type: 'cover',\n w: imageW\n },\n type: CustomImageTexture\n }\n }\n });\n }\n\n _updateFormatSquareCircle() {\n if (\n (this._CenterImage && this._CenterImage.mode !== this.format) ||\n this.src === this.fallbackSrc\n ) {\n // Make sure previous mode is properly cleaned up\n this.patch({\n CenterImage: undefined\n });\n if (this.src === this.fallbackSrc) return;\n }\n const imageSize = Math.min(this.w, this.h) - this.style.padding * 2;\n this.patch({\n CenterImage: {\n format: this.format,\n h: imageSize,\n shader: {\n radius:\n 'circle' === this.format\n ? imageSize / 2\n : this.style.centerImageRadius,\n type: lng.shaders.RoundedRectangle\n },\n w: imageSize,\n zIndex:\n this.core.findZContext().zIndex + this.style.zIndexSet.centerImage,\n Image: {\n h: imageSize,\n mount: 0.5,\n rtt: true, // Required for shader to work\n w: imageSize,\n x: this.w / 2,\n y: this.h / 2,\n texture: {\n src: this._Image.texture.src,\n resizeMode: {\n h: imageSize,\n type: 'cover',\n w: imageSize\n },\n type: CustomImageTexture\n }\n }\n }\n });\n }\n\n _updateGradient() {\n if (!this.gradient) {\n if (this._Gradient) {\n // Cleanup previous gradient\n if (this.shouldSmooth) {\n this._Gradient._getTransition('alpha').once('finish', () => {\n // Remove gradient if no longer required\n const transition =\n this._Gradient && this._Gradient._getTransition('alpha');\n if (!this.gradient && transition && transition.p === 1)\n this.patch({ Gradient: undefined });\n });\n this._Gradient.patch(this._gradientPatch); // Make sure any mode updates are patched ex.radius changes when focused/unfocused\n this._Gradient.smooth = {\n alpha: [0, this.style.animationGradientExit]\n };\n } else {\n this.patch({ Gradient: undefined });\n }\n }\n return;\n }\n\n this._createGradient();\n }\n\n _createGradient() {\n this.patch({\n Gradient: this._gradientPatch // Allows for an easier way to extend and replace the gradient\n });\n if (this.shouldSmooth) {\n this.applySmooth(this._Gradient, {\n alpha: [1, this.style.animationGradientEntrance]\n });\n }\n }\n\n async _updateImage() {\n this._aspectRatioEqual = false; // Set this back to false since we will not know the aspect ratio until after the image has loaded\n\n if (!this._processedImageSrc) {\n if (this._Image) {\n this._Image.texture = undefined;\n }\n return;\n }\n\n const src = await this._processedImageSrc;\n\n this._Image.patch({\n alpha:\n this.src !== this.fallbackSrc && (this._blur || this._hasCenterImage)\n ? 0.001\n : 1, // Prevent image from flashing on first load if mode requires a center image or blur is true\n h: this.h,\n texture: {\n type: CustomImageTexture,\n src,\n resizeMode: { type: 'cover', w: this.w, h: this.h }\n },\n w: this.w,\n zIndex: this.core.findZContext().zIndex + this.style.zIndexSet.image\n });\n }\n\n _updateFillColor() {\n if (!this.fill) {\n this.patch({\n FillColor: undefined\n });\n } else {\n this.patch({\n FillColor: {\n rect: true,\n w: this.w,\n h: this.h,\n color: this.style.fillColor,\n zIndex: 5\n }\n });\n }\n }\n\n _updateRadius() {\n // Add shader to all items in component if greater than 0, remove shader otherwise.\n this.patch(\n this.style.radius\n ? {\n shader: {\n type: lng.shaders.RoundedRectangle,\n radius: getMaxRoundRadius(this.style.radius, this.w, this.h)\n }\n }\n : { shader: undefined }\n );\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => ({\n gradientTop: theme.color.fillTransparent,\n radius: theme.radius.none\n});\n\nexport const tone = theme => ({\n neutral: { gradientColor: theme.color.material },\n inverse: { gradientColor: theme.color.fillNeutral },\n brand: { gradientColor: theme.color.fillBrand }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport Base from '../Base';\nimport * as styles from './Gradient.styles';\nimport { getMaxRoundRadius } from '../../utils';\n\nexport default class Gradient extends Base {\n static get __componentName() {\n return 'Gradient';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n _update() {\n this.patch({\n rect: true,\n rtt: true,\n colorTop: this.style.gradientTop,\n colorBottom: this.style.gradientColor,\n texture: lng.Tools.getRoundRect(\n this.w,\n this.h,\n getMaxRoundRadius(this.style.radius, this.w, this.h)\n )\n });\n }\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/21.cdd051ec.iframe.bundle.js.map b/21.cdd051ec.iframe.bundle.js.map deleted file mode 100644 index 82119bbe8..000000000 --- a/21.cdd051ec.iframe.bundle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"21.cdd051ec.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2BA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AAIA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AAKA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAOA;AACA;AACA;AACA;AACA;AAAA;AARA;AACA;AAAA;AAAA;AAAA;AA9MA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAIA;AAAA;AAAA;AAEA;AAAA;AAAA;AAAA;AAGA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;;;;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC7SA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAKA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAGA;AACA;AAAA;AAGA;AAGA;AAAA;AACA;AAGA;AACA;AAEA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAGA;AASA;AACA;AACA;AACA;AACA;AAIA;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAGA;AAGA;AACA;AACA;AACA;AACA;AAGA;AAOA;AACA;AACA;AACA;AAEA;AAGA;AACA;AACA;AACA;AACA;AACA;AAEA;;AAEA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAIA;AAEA;AAAA;AAAA;AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAKA;AAAA;AAAA;AAAA;AAMA;AAGA;AAAA;AAAA;AAAA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AACA","sources":["webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/ListItem/ListItemPicker.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/ListItem/ListItemPicker.js","webpack://lightning-ui-docs/","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/docs/utils.js"],"sourcesContent":["/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => ({\n arrowAlphaValue: theme.alpha.primary,\n arrowAlphaValueLimit: theme.alpha.secondary,\n arrowWidth: theme.spacer.xxl,\n arrowHeight: theme.spacer.xxl,\n iconLeftSrc: theme.asset.arrowLeft,\n iconRightSrc: theme.asset.arrowRight\n});\n\nexport const tone = theme => ({\n neutral: {\n mode: {\n focused: {\n arrowColor: theme.color.fillInverse\n }\n }\n },\n inverse: {\n mode: {\n focused: {\n arrowColor: theme.color.fillNeutral\n }\n }\n },\n brand: {\n mode: {\n focused: {\n arrowColor: theme.color.fillInverse\n }\n }\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport ListItem from './ListItem';\nimport * as styles from './ListItemPicker.styles';\nimport Marquee from '../Marquee';\nimport Icon from '../Icon';\nimport Row from '../Row';\n\nexport default class ListItemPicker extends ListItem {\n static get __componentName() {\n return 'ListItemPicker';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static get properties() {\n return [...super.properties, 'options', 'selectedIndex'];\n }\n\n static get tags() {\n return [\n ...super.tags,\n 'LeftArrow',\n 'RightArrow',\n { name: 'Picker', path: 'Content.TextWrapper.Picker' }\n ];\n }\n\n static get aliasStyles() {\n return [{ prev: 'titlePadding', curr: 'contentSpacing' }];\n }\n\n _onTextBoxChanged() {\n super._onTextBoxChanged();\n this._alignPicker();\n }\n\n _construct() {\n super._construct();\n this._options = [];\n this._selectedIndex = 0;\n }\n\n _update() {\n super._update();\n this._updatePicker();\n this._updateArrows();\n this._updateArrowsAlpha();\n this._updateAlignment();\n }\n\n _updateAlignment() {\n if (this._isFocusedMode) {\n this.patch({ justify: 'center' });\n } else {\n this.patch({ justify: 'left' });\n }\n }\n\n _updateArrows() {\n if (!this._isFocusedMode) {\n const offAlpha = 0.001;\n if (this._LeftArrow) {\n this._LeftArrow.alpha = offAlpha;\n }\n if (this._RightArrow) {\n this._RightArrow.alpha = offAlpha;\n }\n return;\n }\n\n const arrowProps = {\n w: this.style.arrowWidth,\n h: this.style.arrowHeight,\n style: {\n color: this.style.arrowColor\n },\n alpha: this.style.arrowAlphaValue\n };\n if (!this._LeftArrow) {\n this.patch({\n LeftArrow: {\n type: Icon,\n mountY: 0.5,\n y: h => h / 2\n }\n });\n }\n this._LeftArrow.patch({\n ...arrowProps,\n icon: this.style.iconLeftSrc\n });\n this._LeftArrow.smooth = {\n x: this.style.paddingX\n };\n\n if (!this._RightArrow) {\n this.patch({\n RightArrow: {\n type: Icon,\n mountY: 0.5,\n mountX: 1,\n y: h => h / 2\n }\n });\n }\n this._RightArrow.patch({\n ...arrowProps,\n icon: this.style.iconRightSrc\n });\n\n this._RightArrow.smooth = {\n x: this.w - this.style.paddingX\n };\n }\n\n _updatePicker() {\n const w = this.w - this._paddingX - this.style.arrowWidth * 2;\n\n if (!this._Picker) {\n this._TextWrapper.patch({\n Picker: {\n type: Row,\n clipping: true,\n alwaysScroll: true,\n signals: {\n selectedChange: '_updateArrowsAlpha'\n }\n }\n });\n }\n this._Picker.patch({\n visible: !this._collapse,\n h: this.style.descriptionTextStyle.lineHeight,\n w,\n items: this.options.map(option => ({\n type: Marquee,\n h: this.style.descriptionTextStyle.lineHeight,\n w,\n centerAlign: this._isFocusedMode,\n title: {\n ...this.style.descriptionTextStyle,\n text: option\n }\n })),\n // We need to reset the selected index to ensure it does not get reset to zero when patching items.\n selectedIndex: this.selectedIndex\n });\n this._alignPicker();\n }\n\n _alignPicker() {\n this._Picker.patch({\n mountX: this._isFocusedMode ? 0.5 : 0,\n x: this._isFocusedMode ? this._Title.w / 2 : 0\n });\n }\n\n _updateArrowsAlpha() {\n if (this._Picker) {\n this._selectedIndex = this._Picker.selectedIndex;\n }\n const alpha = this._isFocusedMode ? this.style.arrowAlphaValue : 0;\n if (this._RightArrow) {\n this._RightArrow.alpha =\n this.selectedIndex === this.options.length - 1 && this._isFocusedMode\n ? this.style.arrowAlphaValueLimit\n : alpha;\n }\n if (this._LeftArrow) {\n this._LeftArrow.alpha =\n this.selectedIndex === 0 && this._isFocusedMode\n ? this.style.arrowAlphaValueLimit\n : alpha;\n }\n this.fireAncestors('$announce', this.announce);\n }\n\n get _fixedWordWrapWidth() {\n const wordWrapWidthFocused =\n this.w -\n this._paddingX -\n this.style.arrowWidth * 2 -\n 2 * this.style.contentSpacing;\n const wordWrapWidth = this.w - this._paddingLeft - this._paddingRight;\n return this._isFocusedMode ? wordWrapWidthFocused : wordWrapWidth;\n }\n\n get _collapse() {\n return this.shouldCollapse && !this._isFocusedMode;\n }\n\n get selectedOption() {\n return this._Picker.selected;\n }\n\n _handleLeft() {\n if (typeof this.onLeft === 'function') {\n return this.onLeft(this);\n }\n this._Picker.selectPrevious();\n return true;\n }\n\n _handleRight() {\n if (typeof this.onRight === 'function') {\n return this.onRight(this);\n }\n this._Picker.selectNext();\n return true;\n }\n\n set announce(announce) {\n super.announce = announce;\n }\n\n get announce() {\n if (this._announce) {\n return this._announce;\n }\n return this.title + this.options[this.selectedIndex] + ', List Item';\n }\n}\n",null,"/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// eslint-disable-next-line no-unused-vars\nimport React from 'react';\nimport utils from '../utils';\n\n// creates Mode control on stories\nexport const createModeControl = ({ options, summaryValue } = {}) => {\n return {\n mode: {\n control: 'radio',\n options:\n options && Array.isArray(options)\n ? ['unfocused', ...options]\n : ['unfocused', 'focused', 'disabled'],\n description: 'Sets the visual mode for the component',\n table: {\n defaultValue: { summary: summaryValue }\n },\n type: { name: 'string', required: true }\n }\n };\n};\n\n/**\n * @param {object} config Parameters for generating nested args: { argsObj, targetProp, include, overrides }\n */\nexport function nestedArgs(config) {\n const { argsObj, targetProp, include, overrides } = config;\n return Object.keys(argsObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]:\n (overrides.args && overrides.args[curr]) || argsObj[curr]\n };\n }, {});\n}\n\n/**\n * @param {object} config Parameters for generating nested arg types: { argsObj, targetProp, include, overrides }\n */\nexport function nestedArgTypes(config) {\n const { argTypesObj, targetProp, include, overrides } = config;\n return Object.keys(argTypesObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]: {\n // Namespaced to avoid conflicts\n name: curr,\n ...argTypesObj[curr],\n ...overrides[curr],\n table: {\n ...(argTypesObj[curr].table || {}),\n ...(overrides[curr] && overrides[curr].table),\n category: targetProp\n }\n }\n };\n }, {});\n}\n\nexport const prevValues = {};\n\n/**\n * @param {object} config Parameters for generating nested arg actions: { componentName, argsTypeObj, targetProp, include, overrides }\n */\nexport function nestedArgActions(config) {\n const { componentName, argTypesObj, targetProp, include, overrides } = config;\n return Object.keys(argTypesObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]: (value, component) => {\n component.tag(componentName).patch({\n [targetProp]: {\n ...prevValues[targetProp],\n [curr.replace(targetProp + '_', '')]:\n value === 'none'\n ? undefined\n : (overrides && overrides[curr]) || value // There are issues with merging objects here\n }\n });\n // Allow patching to work with nested objects\n if (!prevValues[targetProp]) {\n prevValues[targetProp] = {};\n }\n prevValues[targetProp][curr.replace(targetProp + '_', '')] =\n value === 'none'\n ? undefined\n : (overrides && overrides[curr]) || value;\n }\n };\n }, {});\n}\n\n/**\n * @param {object} config Parameters for generating story: { componentName, baseStory, subStory, targetProperty, include, options }\n */\nexport function generateSubStory(config) {\n config.baseStory.args = {\n ...config.baseStory.args,\n ...nestedArgs({\n argsObj: config.subStory.args || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.args) || {}\n })\n };\n\n config.baseStory.argTypes = {\n ...config.baseStory.argTypes,\n ...nestedArgTypes({\n argTypesObj: config.subStory.argTypes || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.argTypes) || {}\n })\n };\n\n if (\n !(\n config.baseStory &&\n config.baseStory.parameters &&\n config.baseStory.parameters.argActions\n )\n ) {\n config.baseStory.parameters = {\n argActions: {}\n };\n }\n\n config.baseStory.parameters.argActions = {\n ...config.baseStory.parameters.argActions,\n ...nestedArgActions({\n componentName: config.componentName,\n argTypesObj: config.subStory.argTypes || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.argActions) || {}\n })\n };\n}\n\n// used to create links to Lightning docs given an id\nexport const DocsLink = ({ children, id }) => {\n const docsmap = {\n lng: {\n _base: 'https://rdkcentral.github.io/Lightning/docs',\n Component: '/components/overview',\n Text: '/textures/text',\n Transition: '/transitions/attributes'\n }\n };\n const [source, path] = id.split('.');\n const href = docsmap[source]._base + docsmap[source][path];\n return (\n \n {children || id}\n \n );\n};\n\nexport const Item = ({ children }) => children;\n\n/**\n * Creates formatted object for markdown prop tables\n * see Column and Row stories\n * @param {object} props\n * @param {object} props.type - TS-style generic/utility type\n */\nexport const ObjectFormat = ({ object }) => {\n return [\n '{',\n
,\n ' ',\n ...utils.flatten(\n Object.entries(object).map(([k, v]) => [\n   ,\n `${k}: `,\n v,\n ',',\n
\n ])\n ),\n '}'\n ].map((x, i) => {x});\n};\n\n/**\n * Formats TS-style generic types\n * See Columns and Row stories\n * @param {object} props\n * @param {object} props.children - component children\n * @param {string} props.type - Name of generic type\n */\nexport const GenericType = ({ children, type }) => {\n return [type, '<', children, '>'].map((x, i) => {x});\n};\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/8932.816fbbbd.iframe.bundle.js b/2114.ca9bcca4.iframe.bundle.js similarity index 59% rename from 8932.816fbbbd.iframe.bundle.js rename to 2114.ca9bcca4.iframe.bundle.js index b5d65c97b..d12d85505 100644 --- a/8932.816fbbbd.iframe.bundle.js +++ b/2114.ca9bcca4.iframe.bundle.js @@ -1,4 +1,4 @@ -(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[8932],{ +(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[2114],{ /***/ "../../../node_modules/@lightningjs/core/devtools/lightning-inspect.js": /***/ (() => { @@ -19502,6 +19502,18 @@ if (Utils$1.isWeb) { //# sourceMappingURL=lightning.esm.js.map +/***/ }), + +/***/ "../../../node_modules/@storybook/addon-docs/dist/chunk-H6MOWX77.mjs": +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +/* unused harmony exports __commonJS, __export, __toESM */ +var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __commonJS=(cb,mod)=>function(){return mod||(0, cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports};var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0});},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)); + + + + /***/ }), /***/ "../../../node_modules/@storybook/addon-docs/dist/preview.mjs": @@ -19512,14 +19524,20 @@ __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ parameters: () => (/* binding */ parameters) /* harmony export */ }); -var parameters={docs:{renderer:async()=>{let{DocsRenderer}=await Promise.all(/* import() */[__webpack_require__.e(5600), __webpack_require__.e(129)]).then(__webpack_require__.bind(__webpack_require__, "../../../node_modules/@storybook/addon-docs/dist/DocsRenderer-NNNQARDV.mjs"));return new DocsRenderer}}}; +/* harmony import */ var _chunk_H6MOWX77_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/@storybook/addon-docs/dist/chunk-H6MOWX77.mjs"); +/* harmony import */ var _storybook_global__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("@storybook/global"); +/* harmony import */ var _storybook_global__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_storybook_global__WEBPACK_IMPORTED_MODULE_1__); + + + +var excludeTags=Object.entries(_storybook_global__WEBPACK_IMPORTED_MODULE_1__.global.TAGS_OPTIONS??{}).reduce((acc,entry)=>{let[tag,option]=entry;return option.excludeFromDocsStories&&(acc[tag]=!0),acc},{}),parameters={docs:{renderer:async()=>{let{DocsRenderer}=await Promise.all(/* import() */[__webpack_require__.e(5600), __webpack_require__.e(451)]).then(__webpack_require__.bind(__webpack_require__, "../../../node_modules/@storybook/addon-docs/dist/DocsRenderer-CFRXHY34.mjs"));return new DocsRenderer},stories:{filter:story=>(story.tags||[]).filter(tag=>excludeTags[tag]).length===0&&!story.parameters.docs?.disable}}}; /***/ }), -/***/ "../../../node_modules/@storybook/addon-essentials/dist/actions/preview.js": +/***/ "../../../node_modules/@storybook/addon-essentials/dist/actions/preview.mjs": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; @@ -19532,6 +19550,12 @@ __webpack_require__.d(__webpack_exports__, { loaders: () => (/* reexport */ loaders) }); +// EXTERNAL MODULE: external "__STORYBOOK_MODULE_PREVIEW_API__" +var external_STORYBOOK_MODULE_PREVIEW_API_ = __webpack_require__("storybook/internal/preview-api"); +// EXTERNAL MODULE: external "__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__" +var external_STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS_ = __webpack_require__("storybook/internal/preview-errors"); +// EXTERNAL MODULE: external "__STORYBOOK_MODULE_GLOBAL__" +var external_STORYBOOK_MODULE_GLOBAL_ = __webpack_require__("@storybook/global"); ;// CONCATENATED MODULE: ../../../node_modules/uuid/dist/esm-browser/native.js const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto); /* harmony default export */ const esm_browser_native = ({ @@ -19620,12106 +19644,8677 @@ function v4(options, buf, offset) { } /* harmony default export */ const esm_browser_v4 = (v4); -// EXTERNAL MODULE: external "__STORYBOOK_MODULE_PREVIEW_API__" -var external_STORYBOOK_MODULE_PREVIEW_API_ = __webpack_require__("@storybook/preview-api"); -// EXTERNAL MODULE: external "__STORYBOOK_MODULE_GLOBAL__" -var external_STORYBOOK_MODULE_GLOBAL_ = __webpack_require__("@storybook/global"); -;// CONCATENATED MODULE: ../../../node_modules/@storybook/core-events/dist/chunk-3FIG6PJN.mjs -var StorybookError=class extends Error{constructor(){super(...arguments);this.data={};this.documentation=!1;this.fromStorybook=!0;}get fullErrorCode(){let paddedCode=String(this.code).padStart(4,"0");return `SB_${this.category}_${paddedCode}`}get name(){let errorName=this.constructor.name;return `${this.fullErrorCode} (${errorName})`}get message(){let page;return this.documentation===!0?page=`https://storybook.js.org/error/${this.fullErrorCode}`:typeof this.documentation=="string"?page=this.documentation:Array.isArray(this.documentation)&&(page=` -${this.documentation.map(doc=>` - ${doc}`).join(` -`)}`),`${this.template()}${page!=null?` - -More info: ${page} -`:""}`}}; - - - -// EXTERNAL MODULE: ../../../node_modules/ts-dedent/esm/index.js -var esm = __webpack_require__("../../../node_modules/ts-dedent/esm/index.js"); -;// CONCATENATED MODULE: ../../../node_modules/@storybook/core-events/dist/errors/preview-errors.mjs +;// CONCATENATED MODULE: ../../../node_modules/@storybook/addon-actions/dist/preview.mjs -var Category=(Category2=>(Category2.PREVIEW_CLIENT_LOGGER="PREVIEW_CLIENT-LOGGER",Category2.PREVIEW_CHANNELS="PREVIEW_CHANNELS",Category2.PREVIEW_CORE_EVENTS="PREVIEW_CORE-EVENTS",Category2.PREVIEW_INSTRUMENTER="PREVIEW_INSTRUMENTER",Category2.PREVIEW_API="PREVIEW_API",Category2.PREVIEW_REACT_DOM_SHIM="PREVIEW_REACT-DOM-SHIM",Category2.PREVIEW_ROUTER="PREVIEW_ROUTER",Category2.PREVIEW_THEMING="PREVIEW_THEMING",Category2.RENDERER_HTML="RENDERER_HTML",Category2.RENDERER_PREACT="RENDERER_PREACT",Category2.RENDERER_REACT="RENDERER_REACT",Category2.RENDERER_SERVER="RENDERER_SERVER",Category2.RENDERER_SVELTE="RENDERER_SVELTE",Category2.RENDERER_VUE="RENDERER_VUE",Category2.RENDERER_VUE3="RENDERER_VUE3",Category2.RENDERER_WEB_COMPONENTS="RENDERER_WEB-COMPONENTS",Category2))(Category||{}),MissingStoryAfterHmrError=class extends StorybookError{constructor(data){super();this.data=data;this.category="PREVIEW_API";this.code=1;}template(){return (0,esm/* default */.A)` - Couldn't find story matching id '${this.data.storyId}' after HMR. - - Did you just rename a story? - - Did you remove it from your CSF file? - - Are you sure a story with the id '${this.data.storyId}' exists? - - Please check the values in the stories field of your main.js config and see if they would match your CSF File. - - Also check the browser console and terminal for potential error messages.`}},ImplicitActionsDuringRendering=class extends StorybookError{constructor(data){super();this.data=data;this.category="PREVIEW_API";this.code=2;this.documentation="https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function";}template(){return (0,esm/* default */.A)` - We detected that you use an implicit action arg during ${this.data.phase} of your story. - ${this.data.deprecated?` -This is deprecated and won't work in Storybook 8 anymore. -`:""} - Please provide an explicit spy to your args like this: - import { fn } from '@storybook/test'; - ... - args: { - ${this.data.name}: fn() - } - `}}; - - - -;// CONCATENATED MODULE: ../../../node_modules/@storybook/addon-actions/dist/preview.js +var ADDON_ID="storybook/actions",EVENT_ID=`${ADDON_ID}/action-event`;var config={depth:10,clearOnStoryChange:!0,limit:50};var findProto=(obj,callback)=>{let proto=Object.getPrototypeOf(obj);return !proto||callback(proto)?proto:findProto(proto,callback)},isReactSyntheticEvent=e=>!!(typeof e=="object"&&e&&findProto(e,proto=>/^Synthetic(?:Base)?Event$/.test(proto.constructor.name))&&typeof e.persist=="function"),serializeArg=a=>{if(isReactSyntheticEvent(a)){let e=Object.create(a.constructor.prototype,Object.getOwnPropertyDescriptors(a));e.persist();let viewDescriptor=Object.getOwnPropertyDescriptor(e,"view"),view=viewDescriptor?.value;return typeof view=="object"&&view?.constructor.name==="Window"&&Object.defineProperty(e,"view",{...viewDescriptor,value:Object.create(view.constructor.prototype)}),e}return a},generateId=()=>typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?esm_browser_v4():Date.now().toString(36)+Math.random().toString(36).substring(2);function action(name,options={}){let actionOptions={...config,...options},handler=function(...args){if(options.implicit){let storyRenderer=("__STORYBOOK_PREVIEW__" in external_STORYBOOK_MODULE_GLOBAL_.global?external_STORYBOOK_MODULE_GLOBAL_.global.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(render=>render.phase==="playing"||render.phase==="rendering");if(storyRenderer){let deprecated=!window?.FEATURES?.disallowImplicitActionsInRenderV8,error=new external_STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS_.ImplicitActionsDuringRendering({phase:storyRenderer.phase,name,deprecated});if(deprecated)console.warn(error);else throw error}}let channel=external_STORYBOOK_MODULE_PREVIEW_API_.addons.getChannel(),id=generateId(),minDepth=5,serializedArgs=args.map(serializeArg),normalizedArgs=args.length>1?serializedArgs:serializedArgs[0],actionDisplayToEmit={id,count:0,data:{name,args:normalizedArgs},options:{...actionOptions,maxDepth:minDepth+(actionOptions.depth||3),allowFunction:actionOptions.allowFunction||!1}};channel.emit(EVENT_ID,actionDisplayToEmit);};return handler.isAction=!0,handler.implicit=options.implicit,handler}var isInInitialArgs=(name,initialArgs)=>typeof initialArgs[name]>"u"&&!(name in initialArgs),inferActionsFromArgTypesRegex=context=>{let{initialArgs,argTypes,id,parameters:{actions}}=context;if(!actions||actions.disable||!actions.argTypesRegex||!argTypes)return {};let argTypesRegex=new RegExp(actions.argTypesRegex);return Object.entries(argTypes).filter(([name])=>!!argTypesRegex.test(name)).reduce((acc,[name,argType])=>(isInInitialArgs(name,initialArgs)&&(acc[name]=action(name,{implicit:!0,id})),acc),{})},addActionsFromArgTypes=context=>{let{initialArgs,argTypes,parameters:{actions}}=context;return actions?.disable||!argTypes?{}:Object.entries(argTypes).filter(([name,argType])=>!!argType.action).reduce((acc,[name,argType])=>(isInInitialArgs(name,initialArgs)&&(acc[name]=action(typeof argType.action=="string"?argType.action:name)),acc),{})};var argsEnhancers=[addActionsFromArgTypes,inferActionsFromArgTypesRegex];var subscribed=!1,logActionsWhenMockCalled=context=>{let{parameters:{actions}}=context;if(!actions?.disable&&!subscribed&&"__STORYBOOK_TEST_ON_MOCK_CALL__" in external_STORYBOOK_MODULE_GLOBAL_.global&&typeof external_STORYBOOK_MODULE_GLOBAL_.global.__STORYBOOK_TEST_ON_MOCK_CALL__=="function"){let onMockCall=external_STORYBOOK_MODULE_GLOBAL_.global.__STORYBOOK_TEST_ON_MOCK_CALL__;onMockCall((mock,args)=>{let name=mock.getMockName();name!=="spy"&&(!/^next\/.*::/.test(name)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some(prefix=>name.startsWith(prefix)))&&action(name)(args);}),subscribed=!0;}},loaders=[logActionsWhenMockCalled]; -var ADDON_ID="storybook/actions",EVENT_ID=`${ADDON_ID}/action-event`;var config={depth:10,clearOnStoryChange:!0,limit:50};var findProto=(obj,callback)=>{let proto=Object.getPrototypeOf(obj);return !proto||callback(proto)?proto:findProto(proto,callback)},isReactSyntheticEvent=e=>!!(typeof e=="object"&&e&&findProto(e,proto=>/^Synthetic(?:Base)?Event$/.test(proto.constructor.name))&&typeof e.persist=="function"),serializeArg=a=>{if(isReactSyntheticEvent(a)){let e=Object.create(a.constructor.prototype,Object.getOwnPropertyDescriptors(a));e.persist();let viewDescriptor=Object.getOwnPropertyDescriptor(e,"view"),view=viewDescriptor?.value;return typeof view=="object"&&view?.constructor.name==="Window"&&Object.defineProperty(e,"view",{...viewDescriptor,value:Object.create(view.constructor.prototype)}),e}return a},generateId=()=>typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?esm_browser_v4():Date.now().toString(36)+Math.random().toString(36).substring(2);function action(name,options={}){let actionOptions={...config,...options},handler=function(...args){if(options.implicit){let storyRenderer=("__STORYBOOK_PREVIEW__" in external_STORYBOOK_MODULE_GLOBAL_.global?external_STORYBOOK_MODULE_GLOBAL_.global.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(render=>render.phase==="playing"||render.phase==="rendering");if(storyRenderer){let deprecated=!window?.FEATURES?.disallowImplicitActionsInRenderV8,error=new ImplicitActionsDuringRendering({phase:storyRenderer.phase,name,deprecated});if(deprecated)console.warn(error);else throw error}}let channel=external_STORYBOOK_MODULE_PREVIEW_API_.addons.getChannel(),id=generateId(),minDepth=5,serializedArgs=args.map(serializeArg),normalizedArgs=args.length>1?serializedArgs:serializedArgs[0],actionDisplayToEmit={id,count:0,data:{name,args:normalizedArgs},options:{...actionOptions,maxDepth:minDepth+(actionOptions.depth||3),allowFunction:actionOptions.allowFunction||!1}};channel.emit(EVENT_ID,actionDisplayToEmit);};return handler.isAction=!0,handler}var isInInitialArgs=(name,initialArgs)=>typeof initialArgs[name]>"u"&&!(name in initialArgs),inferActionsFromArgTypesRegex=context=>{let{initialArgs,argTypes,id,parameters:{actions}}=context;if(!actions||actions.disable||!actions.argTypesRegex||!argTypes)return {};let argTypesRegex=new RegExp(actions.argTypesRegex);return Object.entries(argTypes).filter(([name])=>!!argTypesRegex.test(name)).reduce((acc,[name,argType])=>(isInInitialArgs(name,initialArgs)&&(acc[name]=action(name,{implicit:!0,id})),acc),{})},addActionsFromArgTypes=context=>{let{initialArgs,argTypes,parameters:{actions}}=context;return actions?.disable||!argTypes?{}:Object.entries(argTypes).filter(([name,argType])=>!!argType.action).reduce((acc,[name,argType])=>(isInInitialArgs(name,initialArgs)&&(acc[name]=action(typeof argType.action=="string"?argType.action:name)),acc),{})};var argsEnhancers=[addActionsFromArgTypes,inferActionsFromArgTypesRegex];var attachActionsToFunctionMocks=context=>{let{args,parameters:{actions}}=context;actions?.disable||Object.entries(args).filter(([,value])=>typeof value=="function"&&"_isMockFunction"in value&&value._isMockFunction).forEach(([key,value])=>{let previous=value.getMockImplementation();if(previous?._actionAttached!==!0&&previous?.isAction!==!0){let implementation=(...params)=>(action(key)(...params),previous?.(...params));implementation._actionAttached=!0,value.mockImplementation(implementation);}});},loaders=[attachActionsToFunctionMocks]; - - - -;// CONCATENATED MODULE: ../../../node_modules/@storybook/addon-essentials/dist/actions/preview.js +;// CONCATENATED MODULE: ../../../node_modules/@storybook/addon-essentials/dist/actions/preview.mjs /***/ }), -/***/ "../../../node_modules/@storybook/addon-essentials/dist/highlight/preview.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { +/***/ "../../../node_modules/@storybook/addon-essentials/dist/highlight/preview.mjs": +/***/ ((__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) => { "use strict"; -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - highlightObject: () => (/* reexport */ highlightObject), - highlightStyle: () => (/* reexport */ highlightStyle) -}); +// EXTERNAL MODULE: external "__STORYBOOK_MODULE_CORE_EVENTS__" +var external_STORYBOOK_MODULE_CORE_EVENTS_ = __webpack_require__("storybook/internal/core-events"); +// EXTERNAL MODULE: external "__STORYBOOK_MODULE_PREVIEW_API__" +var external_STORYBOOK_MODULE_PREVIEW_API_ = __webpack_require__("storybook/internal/preview-api"); // EXTERNAL MODULE: external "__STORYBOOK_MODULE_GLOBAL__" var external_STORYBOOK_MODULE_GLOBAL_ = __webpack_require__("@storybook/global"); -// EXTERNAL MODULE: external "__STORYBOOK_MODULE_PREVIEW_API__" -var external_STORYBOOK_MODULE_PREVIEW_API_ = __webpack_require__("@storybook/preview-api"); -// EXTERNAL MODULE: external "__STORYBOOK_MODULE_CORE_EVENTS__" -var external_STORYBOOK_MODULE_CORE_EVENTS_ = __webpack_require__("@storybook/core-events"); -;// CONCATENATED MODULE: ../../../node_modules/@storybook/addon-highlight/dist/preview.js +;// CONCATENATED MODULE: ../../../node_modules/@storybook/addon-highlight/dist/preview.mjs -var ADDON_ID="storybook/highlight",HIGHLIGHT_STYLE_ID="storybookHighlight",HIGHLIGHT=`${ADDON_ID}/add`,RESET_HIGHLIGHT=`${ADDON_ID}/reset`;var {document: preview_document}=external_STORYBOOK_MODULE_GLOBAL_.global,highlightStyle=(color="#FF4785",style="dashed")=>` +var ADDON_ID="storybook/highlight",HIGHLIGHT_STYLE_ID="storybookHighlight",HIGHLIGHT=`${ADDON_ID}/add`,RESET_HIGHLIGHT=`${ADDON_ID}/reset`;var{document: preview_document}=external_STORYBOOK_MODULE_GLOBAL_.global,highlightStyle=(color="#FF4785",style="dashed")=>` outline: 2px ${style} ${color}; outline-offset: 2px; box-shadow: 0 0 0 6px rgba(255,255,255,0.6); -`,highlightObject=color=>({outline:`2px dashed ${color}`,outlineOffset:2,boxShadow:"0 0 0 6px rgba(255,255,255,0.6)"}),channel=external_STORYBOOK_MODULE_PREVIEW_API_.addons.getChannel(),highlight=infos=>{let id=HIGHLIGHT_STYLE_ID;resetHighlight();let elements=Array.from(new Set(infos.elements)),sheet=preview_document.createElement("style");sheet.setAttribute("id",id),sheet.innerHTML=elements.map(target=>`${target}{ +`,channel=external_STORYBOOK_MODULE_PREVIEW_API_.addons.getChannel(),highlight=infos=>{let id=HIGHLIGHT_STYLE_ID;resetHighlight();let elements=Array.from(new Set(infos.elements)),sheet=preview_document.createElement("style");sheet.setAttribute("id",id),sheet.innerHTML=elements.map(target=>`${target}{ ${highlightStyle(infos.color,infos.style)} }`).join(" "),preview_document.head.appendChild(sheet);},resetHighlight=()=>{let id=HIGHLIGHT_STYLE_ID,sheetToBeRemoved=preview_document.getElementById(id);sheetToBeRemoved&&sheetToBeRemoved.parentNode?.removeChild(sheetToBeRemoved);};channel.on(external_STORYBOOK_MODULE_CORE_EVENTS_.STORY_CHANGED,resetHighlight);channel.on(RESET_HIGHLIGHT,resetHighlight);channel.on(HIGHLIGHT,highlight); - - -;// CONCATENATED MODULE: ../../../node_modules/@storybook/addon-essentials/dist/highlight/preview.js +;// CONCATENATED MODULE: ../../../node_modules/@storybook/addon-essentials/dist/highlight/preview.mjs /***/ }), -/***/ "../../../node_modules/@storybook/docs-tools/dist/index.mjs": +/***/ "../../../node_modules/@storybook/core/dist/docs-tools/index.js": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ C2: () => (/* binding */ enhanceArgTypes), -/* harmony export */ Op: () => (/* binding */ SNIPPET_RENDERED), -/* harmony export */ Y1: () => (/* binding */ SourceType), -/* harmony export */ gx: () => (/* binding */ str) +/* harmony export */ C2: () => (/* binding */ cv), +/* harmony export */ Op: () => (/* binding */ yv), +/* harmony export */ Y1: () => (/* binding */ Dg) /* harmony export */ }); -/* unused harmony exports ADDON_ID, MAX_DEFAULT_VALUE_SUMMARY_LENGTH, MAX_TYPE_SUMMARY_LENGTH, PANEL_ID, PARAM_KEY, TypeSystem, convert, createSummaryValue, extractComponentDescription, extractComponentProps, extractComponentSectionArray, extractComponentSectionObject, getDocgenDescription, getDocgenSection, hasDocgen, hasDocsOrControls, isDefaultValueBlacklisted, isTooLongForDefaultValueSummary, isTooLongForTypeSummary, isValidDocgenSection, normalizeNewlines, parseJsDoc */ -/* harmony import */ var lodash_mapValues_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/lodash/mapValues.js"); -/* harmony import */ var lodash_mapValues_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_mapValues_js__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var doctrine__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../../node_modules/doctrine/lib/doctrine.js"); -/* harmony import */ var _storybook_preview_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("@storybook/preview-api"); -/* harmony import */ var _storybook_preview_api__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_storybook_preview_api__WEBPACK_IMPORTED_MODULE_2__); - - +/* unused harmony exports ADDON_ID, MAX_DEFAULT_VALUE_SUMMARY_LENGTH, MAX_TYPE_SUMMARY_LENGTH, PANEL_ID, PARAM_KEY, TypeSystem, convert, createSummaryValue, extractComponentDescription, extractComponentProps, extractComponentSectionArray, extractComponentSectionObject, getDocgenDescription, getDocgenSection, hasDocgen, hasDocsOrControls, isDefaultValueBlacklisted, isTooLongForDefaultValueSummary, isTooLongForTypeSummary, isValidDocgenSection, normalizeNewlines, parseJsDoc, str */ +/* harmony import */ var _storybook_core_preview_errors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("storybook/internal/preview-errors"); +/* harmony import */ var _storybook_core_preview_errors__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_storybook_core_preview_errors__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var jsdoc_type_pratt_parser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../../node_modules/jsdoc-type-pratt-parser/dist/index.js"); +/* harmony import */ var jsdoc_type_pratt_parser__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(jsdoc_type_pratt_parser__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _storybook_core_preview_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("storybook/internal/preview-api"); +/* harmony import */ var _storybook_core_preview_api__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_storybook_core_preview_api__WEBPACK_IMPORTED_MODULE_2__); +var ii = Object.create; +var he = Object.defineProperty; +var si = Object.getOwnPropertyDescriptor; +var ui = Object.getOwnPropertyNames; +var pi = Object.getPrototypeOf, ci = Object.prototype.hasOwnProperty; +var t = (e, r) => he(e, "name", { value: r, configurable: !0 }); +var i = (e, r) => () => (r || e((r = { exports: {} }).exports, r), r.exports); +var li = (e, r, n, o) => { + if (r && typeof r == "object" || typeof r == "function") + for (let a of ui(r)) + !ci.call(e, a) && a !== n && he(e, a, { get: () => r[a], enumerable: !(o = si(r, a)) || o.enumerable }); + return e; +}; +var fi = (e, r, n) => (n = e != null ? ii(pi(e)) : {}, li( + // If the importer is in node compatibility mode or this is not an ESM + // file that has been converted to a CommonJS file using a Babel- + // compatible transform (i.e. "__esModule" has not been set), then set + // "default" to the CommonJS "module.exports" for node compatibility. + r || !e || !e.__esModule ? he(n, "default", { value: e, enumerable: !0 }) : n, + e +)); + +// ../node_modules/lodash/_freeGlobal.js +var Te = i((wg, rr) => { + var hi = typeof __webpack_require__.g == "object" && __webpack_require__.g && __webpack_require__.g.Object === Object && __webpack_require__.g; + rr.exports = hi; +}); +// ../node_modules/lodash/_root.js +var D = i((Ag, tr) => { + var Ti = Te(), xi = typeof self == "object" && self && self.Object === Object && self, bi = Ti || xi || Function("return this")(); + tr.exports = bi; +}); -var QUOTE_REGEX=/^['"]|['"]$/g,trimQuotes=str2=>str2.replace(QUOTE_REGEX,""),includesQuotes=str2=>QUOTE_REGEX.test(str2),parseLiteral=str2=>{let trimmedValue=trimQuotes(str2);return includesQuotes(str2)||Number.isNaN(Number(trimmedValue))?trimmedValue:Number(trimmedValue)};var convertSig=type=>{switch(type.type){case"function":return {name:"function"};case"object":let values={};return type.signature.properties.forEach(prop=>{values[prop.key]=convert(prop.value);}),{name:"object",value:values};default:throw new Error(`Unknown: ${type}`)}},convert=type=>{let{name,raw}=type,base={};switch(typeof raw<"u"&&(base.raw=raw),type.name){case"string":case"number":case"symbol":case"boolean":return {...base,name};case"Array":return {...base,name:"array",value:type.elements.map(convert)};case"signature":return {...base,...convertSig(type)};case"union":let result;return type.elements.every(element=>element.name==="literal")?result={...base,name:"enum",value:type.elements.map(v=>parseLiteral(v.value))}:result={...base,name,value:type.elements.map(convert)},result;case"intersection":return {...base,name,value:type.elements.map(convert)};default:return {...base,name:"other",value:name}}};var isLiteral=type=>type.name==="literal",toEnumOption=element=>element.value.replace(/['|"]/g,""),convertSig2=type=>{switch(type.type){case"function":return {name:"function"};case"object":let values={};return type.signature.properties.forEach(prop=>{values[prop.key]=convert2(prop.value);}),{name:"object",value:values};default:throw new Error(`Unknown: ${type}`)}},convert2=type=>{let{name,raw}=type,base={};switch(typeof raw<"u"&&(base.raw=raw),type.name){case"literal":return {...base,name:"other",value:type.value};case"string":case"number":case"symbol":case"boolean":return {...base,name};case"Array":return {...base,name:"array",value:type.elements.map(convert2)};case"signature":return {...base,...convertSig2(type)};case"union":return type.elements.every(isLiteral)?{...base,name:"enum",value:type.elements.map(toEnumOption)}:{...base,name,value:type.elements.map(convert2)};case"intersection":return {...base,name,value:type.elements.map(convert2)};default:return {...base,name:"other",value:name}}};var SIGNATURE_REGEXP=/^\(.*\) => /,convert3=type=>{let{name,raw,computed,value}=type,base={};switch(typeof raw<"u"&&(base.raw=raw),name){case"enum":{let values2=computed?value:value.map(v=>parseLiteral(v.value));return {...base,name,value:values2}}case"string":case"number":case"symbol":return {...base,name};case"func":return {...base,name:"function"};case"bool":case"boolean":return {...base,name:"boolean"};case"arrayOf":case"array":return {...base,name:"array",value:value&&convert3(value)};case"object":return {...base,name};case"objectOf":return {...base,name,value:convert3(value)};case"shape":case"exact":let values=mapValues(value,field=>convert3(field));return {...base,name:"object",value:values};case"union":return {...base,name:"union",value:value.map(v=>convert3(v))};case"instanceOf":case"element":case"elementType":default:{if(name?.indexOf("|")>0)try{let literalValues=name.split("|").map(v=>JSON.parse(v));return {...base,name:"enum",value:literalValues}}catch{}let otherVal=value?`${name}(${value})`:name,otherName=SIGNATURE_REGEXP.test(name)?"function":"other";return {...base,name:otherName,value:otherVal}}}};var convert4=docgenInfo=>{let{type,tsType,flowType}=docgenInfo;return type!=null?convert3(type):tsType!=null?convert(tsType):flowType!=null?convert2(flowType):null};var TypeSystem=(TypeSystem2=>(TypeSystem2.JAVASCRIPT="JavaScript",TypeSystem2.FLOW="Flow",TypeSystem2.TYPESCRIPT="TypeScript",TypeSystem2.UNKNOWN="Unknown",TypeSystem2))(TypeSystem||{});var BLACKLIST=(/* unused pure expression or super */ null && (["null","undefined"]));function isDefaultValueBlacklisted(value){return BLACKLIST.some(x=>x===value)}var str=obj=>{if(!obj)return "";if(typeof obj=="string")return obj;throw new Error(`Description: expected string, got: ${JSON.stringify(obj)}`)};function hasDocgen(component){return !!component.__docgenInfo}function isValidDocgenSection(docgenSection){return docgenSection!=null&&Object.keys(docgenSection).length>0}function getDocgenSection(component,section){return hasDocgen(component)?component.__docgenInfo[section]:null}function getDocgenDescription(component){return hasDocgen(component)&&str(component.__docgenInfo.description)}function containsJsDoc(value){return value!=null&&value.includes("@")}function parse(content,tags){let ast;try{ast=doctrine.parse(content,{tags,sloppy:!0});}catch(e){throw console.error(e),new Error("Cannot parse JSDoc tags.")}return ast}var DEFAULT_OPTIONS={tags:["param","arg","argument","returns","ignore","deprecated"]},parseJsDoc=(value,options=DEFAULT_OPTIONS)=>{if(!containsJsDoc(value))return {includesJsDoc:!1,ignore:!1};let jsDocAst=parse(value,options.tags),extractedTags=extractJsDocTags(jsDocAst);return extractedTags.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:jsDocAst.description,extractedTags}};function extractJsDocTags(ast){let extractedTags={params:null,deprecated:null,returns:null,ignore:!1};for(let i=0;iparamName.includes("null")?paramName.replace("-null","").replace(".null",""):tag.name,getTypeName:()=>tag.type!=null?extractTypeName(tag.type):null}:null}function extractDeprecated(tag){return tag.title!=null?tag.description:null}function extractReturns(tag){return tag.type!=null?{type:tag.type,description:tag.description,getTypeName:()=>extractTypeName(tag.type)}:null}function extractTypeName(type){return type.type==="NameExpression"?type.name:type.type==="RecordType"?`({${type.fields.map(field=>{if(field.value!=null){let valueTypeName=extractTypeName(field.value);return `${field.key}: ${valueTypeName}`}return field.key}).join(", ")}})`:type.type==="UnionType"?`(${type.elements.map(extractTypeName).join("|")})`:type.type==="ArrayType"?"[]":type.type==="TypeApplication"&&type.expression!=null&&type.expression.name==="Array"?`${extractTypeName(type.applications[0])}[]`:type.type==="NullableType"||type.type==="NonNullableType"||type.type==="OptionalType"?extractTypeName(type.expression):type.type==="AllLiteral"?"any":null}var MAX_TYPE_SUMMARY_LENGTH=90,MAX_DEFAULT_VALUE_SUMMARY_LENGTH=50;function isTooLongForTypeSummary(value){return value.length>90}function isTooLongForDefaultValueSummary(value){return value.length>50}function createSummaryValue(summary,detail){return summary===detail?{summary}:{summary,detail}}var normalizeNewlines=string=>string.replace(/\\r\\n/g,"\\n");function generateUnionElement({name,value,elements,raw}){return value??(elements!=null?elements.map(generateUnionElement).join(" | "):raw??name)}function generateUnion({name,raw,elements}){return elements!=null?createSummaryValue(elements.map(generateUnionElement).join(" | ")):raw!=null?createSummaryValue(raw.replace(/^\|\s*/,"")):createSummaryValue(name)}function generateFuncSignature({type,raw}){return raw!=null?createSummaryValue(raw):createSummaryValue(type)}function generateObjectSignature({type,raw}){return raw!=null?isTooLongForTypeSummary(raw)?createSummaryValue(type,raw):createSummaryValue(raw):createSummaryValue(type)}function generateSignature(flowType){let{type}=flowType;return type==="object"?generateObjectSignature(flowType):generateFuncSignature(flowType)}function generateDefault({name,raw}){return raw!=null?isTooLongForTypeSummary(raw)?createSummaryValue(name,raw):createSummaryValue(raw):createSummaryValue(name)}function createType(type){if(type==null)return null;switch(type.name){case"union":return generateUnion(type);case"signature":return generateSignature(type);default:return generateDefault(type)}}function createDefaultValue(defaultValue,type){if(defaultValue!=null){let{value}=defaultValue;if(!isDefaultValueBlacklisted(value))return isTooLongForDefaultValueSummary(value)?createSummaryValue(type.name,value):createSummaryValue(value)}return null}var createFlowPropDef=(propName,docgenInfo)=>{let{flowType,description,required,defaultValue}=docgenInfo;return {name:propName,type:createType(flowType),required,description,defaultValue:createDefaultValue(defaultValue,flowType)}};function createType2({tsType,required}){if(tsType==null)return null;let typeName=tsType.name;return required||(typeName=typeName.replace(" | undefined","")),createSummaryValue(["Array","Record","signature"].includes(tsType.name)?tsType.raw:typeName)}function createDefaultValue2({defaultValue}){if(defaultValue!=null){let{value}=defaultValue;if(!isDefaultValueBlacklisted(value))return createSummaryValue(value)}return null}var createTsPropDef=(propName,docgenInfo)=>{let{description,required}=docgenInfo;return {name:propName,type:createType2(docgenInfo),required,description,defaultValue:createDefaultValue2(docgenInfo)}};function createType3(type){return type!=null?createSummaryValue(type.name):null}function isReactDocgenTypescript(defaultValue){let{computed,func}=defaultValue;return typeof computed>"u"&&typeof func>"u"}function isStringValued(type){return type?type.name==="string"?!0:type.name==="enum"?Array.isArray(type.value)&&type.value.every(({value:tv})=>typeof tv=="string"&&tv[0]==='"'&&tv[tv.length-1]==='"'):!1:!1}function createDefaultValue3(defaultValue,type){if(defaultValue!=null){let{value}=defaultValue;if(!isDefaultValueBlacklisted(value))return isReactDocgenTypescript(defaultValue)&&isStringValued(type)?createSummaryValue(JSON.stringify(value)):createSummaryValue(value)}return null}function createBasicPropDef(name,type,docgenInfo){let{description,required,defaultValue}=docgenInfo;return {name,type:createType3(type),required,description,defaultValue:createDefaultValue3(defaultValue,type)}}function applyJsDocResult(propDef,jsDocParsingResult){if(jsDocParsingResult.includesJsDoc){let{description,extractedTags}=jsDocParsingResult;description!=null&&(propDef.description=jsDocParsingResult.description);let value={...extractedTags,params:extractedTags?.params?.map(x=>({name:x.getPrettyName(),description:x.description}))};Object.values(value).filter(Boolean).length>0&&(propDef.jsDocTags=value);}return propDef}var javaScriptFactory=(propName,docgenInfo,jsDocParsingResult)=>{let propDef=createBasicPropDef(propName,docgenInfo.type,docgenInfo);return propDef.sbType=convert4(docgenInfo),applyJsDocResult(propDef,jsDocParsingResult)},tsFactory=(propName,docgenInfo,jsDocParsingResult)=>{let propDef=createTsPropDef(propName,docgenInfo);return propDef.sbType=convert4(docgenInfo),applyJsDocResult(propDef,jsDocParsingResult)},flowFactory=(propName,docgenInfo,jsDocParsingResult)=>{let propDef=createFlowPropDef(propName,docgenInfo);return propDef.sbType=convert4(docgenInfo),applyJsDocResult(propDef,jsDocParsingResult)},unknownFactory=(propName,docgenInfo,jsDocParsingResult)=>{let propDef=createBasicPropDef(propName,{name:"unknown"},docgenInfo);return applyJsDocResult(propDef,jsDocParsingResult)},getPropDefFactory=typeSystem=>{switch(typeSystem){case"JavaScript":return javaScriptFactory;case"TypeScript":return tsFactory;case"Flow":return flowFactory;default:return unknownFactory}};var getTypeSystem=docgenInfo=>docgenInfo.type!=null?"JavaScript":docgenInfo.flowType!=null?"Flow":docgenInfo.tsType!=null?"TypeScript":"Unknown",extractComponentSectionArray=docgenSection=>{let typeSystem=getTypeSystem(docgenSection[0]),createPropDef=getPropDefFactory(typeSystem);return docgenSection.map(item=>{let sanitizedItem=item;return item.type?.elements&&(sanitizedItem={...item,type:{...item.type,value:item.type.elements}}),extractProp(sanitizedItem.name,sanitizedItem,typeSystem,createPropDef)})},extractComponentSectionObject=docgenSection=>{let docgenPropsKeys=Object.keys(docgenSection),typeSystem=getTypeSystem(docgenSection[docgenPropsKeys[0]]),createPropDef=getPropDefFactory(typeSystem);return docgenPropsKeys.map(propName=>{let docgenInfo=docgenSection[propName];return docgenInfo!=null?extractProp(propName,docgenInfo,typeSystem,createPropDef):null}).filter(Boolean)},extractComponentProps=(component,section)=>{let docgenSection=getDocgenSection(component,section);return isValidDocgenSection(docgenSection)?Array.isArray(docgenSection)?extractComponentSectionArray(docgenSection):extractComponentSectionObject(docgenSection):[]};function extractProp(propName,docgenInfo,typeSystem,createPropDef){let jsDocParsingResult=parseJsDoc(docgenInfo.description);return jsDocParsingResult.includesJsDoc&&jsDocParsingResult.ignore?null:{propDef:createPropDef(propName,docgenInfo,jsDocParsingResult),jsDocTags:jsDocParsingResult.extractedTags,docgenInfo,typeSystem}}function extractComponentDescription(component){return component!=null&&getDocgenDescription(component)}var enhanceArgTypes=context=>{let{component,argTypes:userArgTypes,parameters:{docs={}}}=context,{extractArgTypes}=docs,extractedArgTypes=extractArgTypes&&component?extractArgTypes(component):{};return extractedArgTypes?(0,_storybook_preview_api__WEBPACK_IMPORTED_MODULE_2__.combineParameters)(extractedArgTypes,userArgTypes):userArgTypes};var ADDON_ID="storybook/docs",PANEL_ID=(/* unused pure expression or super */ null && (`${ADDON_ID}/panel`)),PARAM_KEY="docs",SNIPPET_RENDERED=`${ADDON_ID}/snippet-rendered`,SourceType=(SourceType2=>(SourceType2.AUTO="auto",SourceType2.CODE="code",SourceType2.DYNAMIC="dynamic",SourceType2))(SourceType||{});var packageRe=/(addons\/|addon-|addon-essentials\/)(docs|controls)/,hasDocsOrControls=options=>options.presetsList?.some(preset=>packageRe.test(preset.name)); +// ../node_modules/lodash/_Symbol.js +var B = i((Eg, nr) => { + var vi = D(), Di = vi.Symbol; + nr.exports = Di; +}); +// ../node_modules/lodash/_getRawTag.js +var sr = i((jg, ir) => { + var or = B(), ar = Object.prototype, Pi = ar.hasOwnProperty, qi = ar.toString, z = or ? or.toStringTag : void 0; + function Si(e) { + var r = Pi.call(e, z), n = e[z]; + try { + e[z] = void 0; + var o = !0; + } catch { + } + var a = qi.call(e); + return o && (r ? e[z] = n : delete e[z]), a; + } + t(Si, "getRawTag"); + ir.exports = Si; +}); +// ../node_modules/lodash/_objectToString.js +var pr = i((Ig, ur) => { + var _i = Object.prototype, Oi = _i.toString; + function wi(e) { + return Oi.call(e); + } + t(wi, "objectToString"); + ur.exports = wi; +}); +// ../node_modules/lodash/_baseGetTag.js +var j = i((Ng, fr) => { + var cr = B(), Ai = sr(), Ei = pr(), ji = "[object Null]", Ci = "[object Undefined]", lr = cr ? cr.toStringTag : void 0; + function Ii(e) { + return e == null ? e === void 0 ? Ci : ji : lr && lr in Object(e) ? Ai(e) : Ei(e); + } + t(Ii, "baseGetTag"); + fr.exports = Ii; +}); -/***/ }), +// ../node_modules/lodash/isObject.js +var re = i((Lg, mr) => { + function Fi(e) { + var r = typeof e; + return e != null && (r == "object" || r == "function"); + } + t(Fi, "isObject"); + mr.exports = Fi; +}); -/***/ "../../../node_modules/@storybook/html/dist/entry-preview-docs.mjs": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { +// ../node_modules/lodash/isFunction.js +var xe = i((Jg, gr) => { + var Ni = j(), Ri = re(), Li = "[object AsyncFunction]", Mi = "[object Function]", Ji = "[object GeneratorFunction]", Ui = "[object Proxy]"; + function Gi(e) { + if (!Ri(e)) + return !1; + var r = Ni(e); + return r == Mi || r == Ji || r == Li || r == Ui; + } + t(Gi, "isFunction"); + gr.exports = Gi; +}); -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ argTypesEnhancers: () => (/* binding */ argTypesEnhancers), -/* harmony export */ decorators: () => (/* binding */ decorators), -/* harmony export */ parameters: () => (/* binding */ parameters) -/* harmony export */ }); -/* harmony import */ var _storybook_docs_tools__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../../node_modules/@storybook/docs-tools/dist/index.mjs"); -/* harmony import */ var _storybook_preview_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("@storybook/preview-api"); -/* harmony import */ var _storybook_preview_api__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_storybook_preview_api__WEBPACK_IMPORTED_MODULE_0__); +// ../node_modules/lodash/_coreJsData.js +var dr = i((Gg, yr) => { + var Vi = D(), Bi = Vi["__core-js_shared__"]; + yr.exports = Bi; +}); +// ../node_modules/lodash/_isMasked.js +var xr = i((Vg, Tr) => { + var be = dr(), hr = function() { + var e = /[^.]+$/.exec(be && be.keys && be.keys.IE_PROTO || ""); + return e ? "Symbol(src)_1." + e : ""; + }(); + function zi(e) { + return !!hr && hr in e; + } + t(zi, "isMasked"); + Tr.exports = zi; +}); +// ../node_modules/lodash/_toSource.js +var ve = i((zg, br) => { + var ki = Function.prototype, Hi = ki.toString; + function Ki(e) { + if (e != null) { + try { + return Hi.call(e); + } catch { + } + try { + return e + ""; + } catch { + } + } + return ""; + } + t(Ki, "toSource"); + br.exports = Ki; +}); -function skipSourceRender(context){let sourceParams=context?.parameters.docs?.source,isArgsStory=context?.parameters.__isArgsStory;return sourceParams?.type===_storybook_docs_tools__WEBPACK_IMPORTED_MODULE_1__/* .SourceType */ .Y1.DYNAMIC?!1:!isArgsStory||sourceParams?.code||sourceParams?.type===_storybook_docs_tools__WEBPACK_IMPORTED_MODULE_1__/* .SourceType */ .Y1.CODE}var sourceDecorator=(storyFn,context)=>{let story=storyFn(),renderedForSource=context?.parameters.docs?.source?.excludeDecorators?context.originalStoryFn(context.args,context):story,source;return skipSourceRender(context)||(typeof renderedForSource=="string"?source=renderedForSource:renderedForSource instanceof Element&&(source=renderedForSource.outerHTML)),(0,_storybook_preview_api__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{let{id,unmappedArgs}=context;source&&_storybook_preview_api__WEBPACK_IMPORTED_MODULE_0__.addons.getChannel().emit(_storybook_docs_tools__WEBPACK_IMPORTED_MODULE_1__/* .SNIPPET_RENDERED */ .Op,{id,args:unmappedArgs,source});}),story};var decorators=[sourceDecorator],parameters={docs:{story:{inline:!0},source:{type:_storybook_docs_tools__WEBPACK_IMPORTED_MODULE_1__/* .SourceType */ .Y1.DYNAMIC,language:"html",code:void 0,excludeDecorators:void 0}}},argTypesEnhancers=[_storybook_docs_tools__WEBPACK_IMPORTED_MODULE_1__/* .enhanceArgTypes */ .C2]; +// ../node_modules/lodash/_baseIsNative.js +var Dr = i((Hg, vr) => { + var $i = xe(), Wi = xr(), Yi = re(), Xi = ve(), Qi = /[\\^$.*+?()[\]{}|]/g, Zi = /^\[object .+?Constructor\]$/, es = Function.prototype, rs = Object. + prototype, ts = es.toString, ns = rs.hasOwnProperty, os = RegExp( + "^" + ts.call(ns).replace(Qi, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" + ); + function as(e) { + if (!Yi(e) || Wi(e)) + return !1; + var r = $i(e) ? os : Zi; + return r.test(Xi(e)); + } + t(as, "baseIsNative"); + vr.exports = as; +}); +// ../node_modules/lodash/_getValue.js +var qr = i(($g, Pr) => { + function is(e, r) { + return e?.[r]; + } + t(is, "getValue"); + Pr.exports = is; +}); +// ../node_modules/lodash/_getNative.js +var S = i((Yg, Sr) => { + var ss = Dr(), us = qr(); + function ps(e, r) { + var n = us(e, r); + return ss(n) ? n : void 0; + } + t(ps, "getNative"); + Sr.exports = ps; +}); +// ../node_modules/lodash/_defineProperty.js +var Or = i((Qg, _r) => { + var cs = S(), ls = function() { + try { + var e = cs(Object, "defineProperty"); + return e({}, "", {}), e; + } catch { + } + }(); + _r.exports = ls; +}); -/***/ }), +// ../node_modules/lodash/_baseAssignValue.js +var Er = i((Zg, Ar) => { + var wr = Or(); + function fs(e, r, n) { + r == "__proto__" && wr ? wr(e, r, { + configurable: !0, + enumerable: !0, + value: n, + writable: !0 + }) : e[r] = n; + } + t(fs, "baseAssignValue"); + Ar.exports = fs; +}); -/***/ "../../../node_modules/@storybook/html/dist/entry-preview.mjs": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { +// ../node_modules/lodash/_createBaseFor.js +var Cr = i((ry, jr) => { + function ms(e) { + return function(r, n, o) { + for (var a = -1, s = Object(r), u = o(r), p = u.length; p--; ) { + var c = u[e ? p : ++a]; + if (n(s[c], c, s) === !1) + break; + } + return r; + }; + } + t(ms, "createBaseFor"); + jr.exports = ms; +}); -"use strict"; -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); +// ../node_modules/lodash/_baseFor.js +var Fr = i((ny, Ir) => { + var gs = Cr(), ys = gs(); + Ir.exports = ys; +}); -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - parameters: () => (/* binding */ parameters), - render: () => (/* reexport */ render), - renderToCanvas: () => (/* reexport */ renderToCanvas) +// ../node_modules/lodash/_baseTimes.js +var Rr = i((oy, Nr) => { + function ds(e, r) { + for (var n = -1, o = Array(e); ++n < e; ) + o[n] = r(n); + return o; + } + t(ds, "baseTimes"); + Nr.exports = ds; }); -// EXTERNAL MODULE: external "__STORYBOOK_MODULE_GLOBAL__" -var external_STORYBOOK_MODULE_GLOBAL_ = __webpack_require__("@storybook/global"); -// EXTERNAL MODULE: ../../../node_modules/ts-dedent/esm/index.js -var esm = __webpack_require__("../../../node_modules/ts-dedent/esm/index.js"); -// EXTERNAL MODULE: external "__STORYBOOK_MODULE_PREVIEW_API__" -var external_STORYBOOK_MODULE_PREVIEW_API_ = __webpack_require__("@storybook/preview-api"); -;// CONCATENATED MODULE: ../../../node_modules/@storybook/html/dist/chunk-JHBKUHDQ.mjs +// ../node_modules/lodash/isObjectLike.js +var C = i((iy, Lr) => { + function hs(e) { + return e != null && typeof e == "object"; + } + t(hs, "isObjectLike"); + Lr.exports = hs; +}); +// ../node_modules/lodash/_baseIsArguments.js +var Jr = i((uy, Mr) => { + var Ts = j(), xs = C(), bs = "[object Arguments]"; + function vs(e) { + return xs(e) && Ts(e) == bs; + } + t(vs, "baseIsArguments"); + Mr.exports = vs; +}); +// ../node_modules/lodash/isArguments.js +var De = i((cy, Vr) => { + var Ur = Jr(), Ds = C(), Gr = Object.prototype, Ps = Gr.hasOwnProperty, qs = Gr.propertyIsEnumerable, Ss = Ur(/* @__PURE__ */ function() { + return arguments; + }()) ? Ur : function(e) { + return Ds(e) && Ps.call(e, "callee") && !qs.call(e, "callee"); + }; + Vr.exports = Ss; +}); +// ../node_modules/lodash/isArray.js +var P = i((ly, Br) => { + var _s = Array.isArray; + Br.exports = _s; +}); -var {Node}=external_STORYBOOK_MODULE_GLOBAL_.global,render=(args,context)=>{let{id,component:Component}=context;if(typeof Component=="string"){let output=Component;return Object.keys(args).forEach(key=>{output=output.replace(`{{${key}}}`,args[key]);}),output}if(Component instanceof HTMLElement){let output=Component.cloneNode(!0);return Object.keys(args).forEach(key=>{output.setAttribute(key,typeof args[key]=="string"?args[key]:JSON.stringify(args[key]));}),output}if(typeof Component=="function")return Component(args,context);throw console.warn((0,esm/* dedent */.T)` - Storybook's HTML renderer only supports rendering DOM elements and strings. - Received: ${Component} - `),new Error(`Unable to render story ${id}`)};function renderToCanvas({storyFn,kind,name,showMain,showError,forceRemount},canvasElement){let element=storyFn();if(showMain(),typeof element=="string")canvasElement.innerHTML=element,(0,external_STORYBOOK_MODULE_PREVIEW_API_.simulatePageLoad)(canvasElement);else if(element instanceof Node){if(canvasElement.firstChild===element&&forceRemount===!1)return;canvasElement.innerHTML="",canvasElement.appendChild(element),(0,external_STORYBOOK_MODULE_PREVIEW_API_.simulateDOMContentLoaded)();}else showError({title:`Expecting an HTML snippet or DOM node from the story: "${name}" of "${kind}".`,description:(0,esm/* dedent */.T)` - Did you forget to return the HTML snippet from the story? - Use "() => " or when defining the story. - `});} +// ../node_modules/lodash/stubFalse.js +var kr = i((fy, zr) => { + function Os() { + return !1; + } + t(Os, "stubFalse"); + zr.exports = Os; +}); +// ../node_modules/lodash/isBuffer.js +var Pe = i((k, I) => { + var ws = D(), As = kr(), $r = typeof k == "object" && k && !k.nodeType && k, Hr = $r && typeof I == "object" && I && !I.nodeType && I, Es = Hr && + Hr.exports === $r, Kr = Es ? ws.Buffer : void 0, js = Kr ? Kr.isBuffer : void 0, Cs = js || As; + I.exports = Cs; +}); +// ../node_modules/lodash/_isIndex.js +var qe = i((gy, Wr) => { + var Is = 9007199254740991, Fs = /^(?:0|[1-9]\d*)$/; + function Ns(e, r) { + var n = typeof e; + return r = r ?? Is, !!r && (n == "number" || n != "symbol" && Fs.test(e)) && e > -1 && e % 1 == 0 && e < r; + } + t(Ns, "isIndex"); + Wr.exports = Ns; +}); -;// CONCATENATED MODULE: ../../../node_modules/@storybook/html/dist/entry-preview.mjs +// ../node_modules/lodash/isLength.js +var te = i((dy, Yr) => { + var Rs = 9007199254740991; + function Ls(e) { + return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Rs; + } + t(Ls, "isLength"); + Yr.exports = Ls; +}); +// ../node_modules/lodash/_baseIsTypedArray.js +var Qr = i((Ty, Xr) => { + var Ms = j(), Js = te(), Us = C(), Gs = "[object Arguments]", Vs = "[object Array]", Bs = "[object Boolean]", zs = "[object Date]", ks = "\ +[object Error]", Hs = "[object Function]", Ks = "[object Map]", $s = "[object Number]", Ws = "[object Object]", Ys = "[object RegExp]", Xs = "\ +[object Set]", Qs = "[object String]", Zs = "[object WeakMap]", eu = "[object ArrayBuffer]", ru = "[object DataView]", tu = "[object Float32\ +Array]", nu = "[object Float64Array]", ou = "[object Int8Array]", au = "[object Int16Array]", iu = "[object Int32Array]", su = "[object Uint\ +8Array]", uu = "[object Uint8ClampedArray]", pu = "[object Uint16Array]", cu = "[object Uint32Array]", m = {}; + m[tu] = m[nu] = m[ou] = m[au] = m[iu] = m[su] = m[uu] = m[pu] = m[cu] = !0; + m[Gs] = m[Vs] = m[eu] = m[Bs] = m[ru] = m[zs] = m[ks] = m[Hs] = m[Ks] = m[$s] = m[Ws] = m[Ys] = m[Xs] = m[Qs] = m[Zs] = !1; + function lu(e) { + return Us(e) && Js(e.length) && !!m[Ms(e)]; + } + t(lu, "baseIsTypedArray"); + Xr.exports = lu; +}); -var parameters={renderer:"html"}; +// ../node_modules/lodash/_baseUnary.js +var et = i((by, Zr) => { + function fu(e) { + return function(r) { + return e(r); + }; + } + t(fu, "baseUnary"); + Zr.exports = fu; +}); +// ../node_modules/lodash/_nodeUtil.js +var tt = i((H, F) => { + var mu = Te(), rt = typeof H == "object" && H && !H.nodeType && H, K = rt && typeof F == "object" && F && !F.nodeType && F, gu = K && K.exports === + rt, Se = gu && mu.process, yu = function() { + try { + var e = K && K.require && K.require("util").types; + return e || Se && Se.binding && Se.binding("util"); + } catch { + } + }(); + F.exports = yu; +}); +// ../node_modules/lodash/isTypedArray.js +var _e = i((Dy, at) => { + var du = Qr(), hu = et(), nt = tt(), ot = nt && nt.isTypedArray, Tu = ot ? hu(ot) : du; + at.exports = Tu; +}); +// ../node_modules/lodash/_arrayLikeKeys.js +var st = i((Py, it) => { + var xu = Rr(), bu = De(), vu = P(), Du = Pe(), Pu = qe(), qu = _e(), Su = Object.prototype, _u = Su.hasOwnProperty; + function Ou(e, r) { + var n = vu(e), o = !n && bu(e), a = !n && !o && Du(e), s = !n && !o && !a && qu(e), u = n || o || a || s, p = u ? xu(e.length, String) : + [], c = p.length; + for (var l in e) + (r || _u.call(e, l)) && !(u && // Safari 9 has enumerable `arguments.length` in strict mode. + (l == "length" || // Node.js 0.10 has enumerable non-index properties on buffers. + a && (l == "offset" || l == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays. + s && (l == "buffer" || l == "byteLength" || l == "byteOffset") || // Skip index properties. + Pu(l, c))) && p.push(l); + return p; + } + t(Ou, "arrayLikeKeys"); + it.exports = Ou; +}); -/***/ }), +// ../node_modules/lodash/_isPrototype.js +var pt = i((Sy, ut) => { + var wu = Object.prototype; + function Au(e) { + var r = e && e.constructor, n = typeof r == "function" && r.prototype || wu; + return e === n; + } + t(Au, "isPrototype"); + ut.exports = Au; +}); -/***/ "../../../node_modules/@storybook/theming/dist/chunk-ZGA76URP.mjs": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { +// ../node_modules/lodash/_overArg.js +var lt = i((Oy, ct) => { + function Eu(e, r) { + return function(n) { + return e(r(n)); + }; + } + t(Eu, "overArg"); + ct.exports = Eu; +}); -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Il: () => (/* binding */ typography), -/* harmony export */ Oy: () => (/* binding */ getPreferredColorScheme), -/* harmony export */ P$: () => (/* binding */ __commonJS), -/* harmony export */ RA: () => (/* binding */ light_default), -/* harmony export */ Tp: () => (/* binding */ background), -/* harmony export */ Zj: () => (/* binding */ themes), -/* harmony export */ Zt: () => (/* binding */ lightenColor), -/* harmony export */ f1: () => (/* binding */ __toESM), -/* harmony export */ sd: () => (/* binding */ mkColor), -/* harmony export */ xH: () => (/* binding */ curriedOpacify$1), -/* harmony export */ yW: () => (/* binding */ color) -/* harmony export */ }); -/* unused harmony exports create, darkenColor */ -/* harmony import */ var _storybook_global__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("@storybook/global"); -/* harmony import */ var _storybook_global__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_storybook_global__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _storybook_client_logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("@storybook/client-logger"); -/* harmony import */ var _storybook_client_logger__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_storybook_client_logger__WEBPACK_IMPORTED_MODULE_1__); +// ../node_modules/lodash/_nativeKeys.js +var mt = i((Ay, ft) => { + var ju = lt(), Cu = ju(Object.keys, Object); + ft.exports = Cu; +}); +// ../node_modules/lodash/_baseKeys.js +var yt = i((Ey, gt) => { + var Iu = pt(), Fu = mt(), Nu = Object.prototype, Ru = Nu.hasOwnProperty; + function Lu(e) { + if (!Iu(e)) + return Fu(e); + var r = []; + for (var n in Object(e)) + Ru.call(e, n) && n != "constructor" && r.push(n); + return r; + } + t(Lu, "baseKeys"); + gt.exports = Lu; +}); +// ../node_modules/lodash/isArrayLike.js +var ht = i((Cy, dt) => { + var Mu = xe(), Ju = te(); + function Uu(e) { + return e != null && Ju(e.length) && !Mu(e); + } + t(Uu, "isArrayLike"); + dt.exports = Uu; +}); -var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __commonJS=(cb,mod)=>function(){return mod||(0, cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod));function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i"u"||!Reflect.construct||Reflect.construct.sham)return !1;if(typeof Proxy=="function")return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return !1}}function _construct(Parent,args,Class){return _isNativeReflectConstruct()?_construct=Reflect.construct.bind():_construct=function(Parent2,args2,Class2){var a=[null];a.push.apply(a,args2);var Constructor=Function.bind.apply(Parent2,a),instance=new Constructor;return Class2&&_setPrototypeOf(instance,Class2.prototype),instance},_construct.apply(null,arguments)}function _wrapNativeSuper(Class){var _cache=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(Class2){if(Class2===null||!_isNativeFunction(Class2))return Class2;if(typeof Class2!="function")throw new TypeError("Super expression must either be null or a function");if(typeof _cache<"u"){if(_cache.has(Class2))return _cache.get(Class2);_cache.set(Class2,Wrapper);}function Wrapper(){return _construct(Class2,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(Class2.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,Class2)},_wrapNativeSuper(Class)}var ERRORS={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }). +// ../node_modules/lodash/keys.js +var ne = i((Fy, Tt) => { + var Gu = st(), Vu = yt(), Bu = ht(); + function zu(e) { + return Bu(e) ? Gu(e) : Vu(e); + } + t(zu, "keys"); + Tt.exports = zu; +}); -`,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }). +// ../node_modules/lodash/_baseForOwn.js +var bt = i((Ry, xt) => { + var ku = Fr(), Hu = ne(); + function Ku(e, r) { + return e && ku(e, r, Hu); + } + t(Ku, "baseForOwn"); + xt.exports = Ku; +}); -`,3:`Passed an incorrect argument to a color function, please pass a string representation of a color. +// ../node_modules/lodash/_listCacheClear.js +var Dt = i((My, vt) => { + function $u() { + this.__data__ = [], this.size = 0; + } + t($u, "listCacheClear"); + vt.exports = $u; +}); -`,4:`Couldn't generate valid rgb string from %s, it returned %s. +// ../node_modules/lodash/eq.js +var Oe = i((Uy, Pt) => { + function Wu(e, r) { + return e === r || e !== e && r !== r; + } + t(Wu, "eq"); + Pt.exports = Wu; +}); -`,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation. +// ../node_modules/lodash/_assocIndexOf.js +var $ = i((Vy, qt) => { + var Yu = Oe(); + function Xu(e, r) { + for (var n = e.length; n--; ) + if (Yu(e[n][0], r)) + return n; + return -1; + } + t(Xu, "assocIndexOf"); + qt.exports = Xu; +}); -`,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }). +// ../node_modules/lodash/_listCacheDelete.js +var _t = i((zy, St) => { + var Qu = $(), Zu = Array.prototype, ep = Zu.splice; + function rp(e) { + var r = this.__data__, n = Qu(r, e); + if (n < 0) + return !1; + var o = r.length - 1; + return n == o ? r.pop() : ep.call(r, n, 1), --this.size, !0; + } + t(rp, "listCacheDelete"); + St.exports = rp; +}); -`,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }). +// ../node_modules/lodash/_listCacheGet.js +var wt = i((Hy, Ot) => { + var tp = $(); + function np(e) { + var r = this.__data__, n = tp(r, e); + return n < 0 ? void 0 : r[n][1]; + } + t(np, "listCacheGet"); + Ot.exports = np; +}); -`,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object. +// ../node_modules/lodash/_listCacheHas.js +var Et = i(($y, At) => { + var op = $(); + function ap(e) { + return op(this.__data__, e) > -1; + } + t(ap, "listCacheHas"); + At.exports = ap; +}); -`,9:`Please provide a number of steps to the modularScale helper. +// ../node_modules/lodash/_listCacheSet.js +var Ct = i((Yy, jt) => { + var ip = $(); + function sp(e, r) { + var n = this.__data__, o = ip(n, e); + return o < 0 ? (++this.size, n.push([e, r])) : n[o][1] = r, this; + } + t(sp, "listCacheSet"); + jt.exports = sp; +}); -`,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio. +// ../node_modules/lodash/_ListCache.js +var W = i((Qy, It) => { + var up = Dt(), pp = _t(), cp = wt(), lp = Et(), fp = Ct(); + function N(e) { + var r = -1, n = e == null ? 0 : e.length; + for (this.clear(); ++r < n; ) { + var o = e[r]; + this.set(o[0], o[1]); + } + } + t(N, "ListCache"); + N.prototype.clear = up; + N.prototype.delete = pp; + N.prototype.get = cp; + N.prototype.has = lp; + N.prototype.set = fp; + It.exports = N; +}); -`,11:`Invalid value passed as base to modularScale, expected number or em string but got "%s" +// ../node_modules/lodash/_stackClear.js +var Nt = i((ed, Ft) => { + var mp = W(); + function gp() { + this.__data__ = new mp(), this.size = 0; + } + t(gp, "stackClear"); + Ft.exports = gp; +}); -`,12:`Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead. +// ../node_modules/lodash/_stackDelete.js +var Lt = i((td, Rt) => { + function yp(e) { + var r = this.__data__, n = r.delete(e); + return this.size = r.size, n; + } + t(yp, "stackDelete"); + Rt.exports = yp; +}); -`,13:`Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead. +// ../node_modules/lodash/_stackGet.js +var Jt = i((od, Mt) => { + function dp(e) { + return this.__data__.get(e); + } + t(dp, "stackGet"); + Mt.exports = dp; +}); -`,14:`Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12. +// ../node_modules/lodash/_stackHas.js +var Gt = i((id, Ut) => { + function hp(e) { + return this.__data__.has(e); + } + t(hp, "stackHas"); + Ut.exports = hp; +}); -`,15:`Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12. +// ../node_modules/lodash/_Map.js +var oe = i((ud, Vt) => { + var Tp = S(), xp = D(), bp = Tp(xp, "Map"); + Vt.exports = bp; +}); -`,16:`You must provide a template to this method. +// ../node_modules/lodash/_nativeCreate.js +var Y = i((pd, Bt) => { + var vp = S(), Dp = vp(Object, "create"); + Bt.exports = Dp; +}); -`,17:`You passed an unsupported selector state to this method. +// ../node_modules/lodash/_hashClear.js +var Ht = i((cd, kt) => { + var zt = Y(); + function Pp() { + this.__data__ = zt ? zt(null) : {}, this.size = 0; + } + t(Pp, "hashClear"); + kt.exports = Pp; +}); -`,18:`minScreen and maxScreen must be provided as stringified numbers with the same units. +// ../node_modules/lodash/_hashDelete.js +var $t = i((fd, Kt) => { + function qp(e) { + var r = this.has(e) && delete this.__data__[e]; + return this.size -= r ? 1 : 0, r; + } + t(qp, "hashDelete"); + Kt.exports = qp; +}); -`,19:`fromSize and toSize must be provided as stringified numbers with the same units. +// ../node_modules/lodash/_hashGet.js +var Yt = i((gd, Wt) => { + var Sp = Y(), _p = "__lodash_hash_undefined__", Op = Object.prototype, wp = Op.hasOwnProperty; + function Ap(e) { + var r = this.__data__; + if (Sp) { + var n = r[e]; + return n === _p ? void 0 : n; + } + return wp.call(r, e) ? r[e] : void 0; + } + t(Ap, "hashGet"); + Wt.exports = Ap; +}); -`,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize. +// ../node_modules/lodash/_hashHas.js +var Qt = i((dd, Xt) => { + var Ep = Y(), jp = Object.prototype, Cp = jp.hasOwnProperty; + function Ip(e) { + var r = this.__data__; + return Ep ? r[e] !== void 0 : Cp.call(r, e); + } + t(Ip, "hashHas"); + Xt.exports = Ip; +}); -`,21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:`fontFace expects a name of a font-family. +// ../node_modules/lodash/_hashSet.js +var en = i((Td, Zt) => { + var Fp = Y(), Np = "__lodash_hash_undefined__"; + function Rp(e, r) { + var n = this.__data__; + return this.size += this.has(e) ? 0 : 1, n[e] = Fp && r === void 0 ? Np : r, this; + } + t(Rp, "hashSet"); + Zt.exports = Rp; +}); -`,24:`fontFace expects either the path to the font file(s) or a name of a local copy. +// ../node_modules/lodash/_Hash.js +var tn = i((bd, rn) => { + var Lp = Ht(), Mp = $t(), Jp = Yt(), Up = Qt(), Gp = en(); + function R(e) { + var r = -1, n = e == null ? 0 : e.length; + for (this.clear(); ++r < n; ) { + var o = e[r]; + this.set(o[0], o[1]); + } + } + t(R, "Hash"); + R.prototype.clear = Lp; + R.prototype.delete = Mp; + R.prototype.get = Jp; + R.prototype.has = Up; + R.prototype.set = Gp; + rn.exports = R; +}); -`,25:`fontFace expects localFonts to be an array. +// ../node_modules/lodash/_mapCacheClear.js +var an = i((Dd, on) => { + var nn = tn(), Vp = W(), Bp = oe(); + function zp() { + this.size = 0, this.__data__ = { + hash: new nn(), + map: new (Bp || Vp)(), + string: new nn() + }; + } + t(zp, "mapCacheClear"); + on.exports = zp; +}); -`,26:`fontFace expects fileFormats to be an array. +// ../node_modules/lodash/_isKeyable.js +var un = i((qd, sn) => { + function kp(e) { + var r = typeof e; + return r == "string" || r == "number" || r == "symbol" || r == "boolean" ? e !== "__proto__" : e === null; + } + t(kp, "isKeyable"); + sn.exports = kp; +}); -`,27:`radialGradient requries at least 2 color-stops to properly render. +// ../node_modules/lodash/_getMapData.js +var X = i((_d, pn) => { + var Hp = un(); + function Kp(e, r) { + var n = e.__data__; + return Hp(r) ? n[typeof r == "string" ? "string" : "hash"] : n.map; + } + t(Kp, "getMapData"); + pn.exports = Kp; +}); -`,28:`Please supply a filename to retinaImage() as the first argument. +// ../node_modules/lodash/_mapCacheDelete.js +var ln = i((wd, cn) => { + var $p = X(); + function Wp(e) { + var r = $p(this, e).delete(e); + return this.size -= r ? 1 : 0, r; + } + t(Wp, "mapCacheDelete"); + cn.exports = Wp; +}); -`,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. +// ../node_modules/lodash/_mapCacheGet.js +var mn = i((Ed, fn) => { + var Yp = X(); + function Xp(e) { + return Yp(this, e).get(e); + } + t(Xp, "mapCacheGet"); + fn.exports = Xp; +}); -`,30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation +// ../node_modules/lodash/_mapCacheHas.js +var yn = i((Cd, gn) => { + var Qp = X(); + function Zp(e) { + return Qp(this, e).has(e); + } + t(Zp, "mapCacheHas"); + gn.exports = Zp; +}); -`,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s']) -To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s') +// ../node_modules/lodash/_mapCacheSet.js +var hn = i((Fd, dn) => { + var ec = X(); + function rc(e, r) { + var n = ec(this, e), o = n.size; + return n.set(e, r), this.size += n.size == o ? 0 : 1, this; + } + t(rc, "mapCacheSet"); + dn.exports = rc; +}); -`,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation +// ../node_modules/lodash/_MapCache.js +var ae = i((Rd, Tn) => { + var tc = an(), nc = ln(), oc = mn(), ac = yn(), ic = hn(); + function L(e) { + var r = -1, n = e == null ? 0 : e.length; + for (this.clear(); ++r < n; ) { + var o = e[r]; + this.set(o[0], o[1]); + } + } + t(L, "MapCache"); + L.prototype.clear = tc; + L.prototype.delete = nc; + L.prototype.get = oc; + L.prototype.has = ac; + L.prototype.set = ic; + Tn.exports = L; +}); -`,34:`borderRadius expects a radius value as a string or number as the second argument. +// ../node_modules/lodash/_stackSet.js +var bn = i((Md, xn) => { + var sc = W(), uc = oe(), pc = ae(), cc = 200; + function lc(e, r) { + var n = this.__data__; + if (n instanceof sc) { + var o = n.__data__; + if (!uc || o.length < cc - 1) + return o.push([e, r]), this.size = ++n.size, this; + n = this.__data__ = new pc(o); + } + return n.set(e, r), this.size = n.size, this; + } + t(lc, "stackSet"); + xn.exports = lc; +}); -`,35:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. +// ../node_modules/lodash/_Stack.js +var we = i((Ud, vn) => { + var fc = W(), mc = Nt(), gc = Lt(), yc = Jt(), dc = Gt(), hc = bn(); + function M(e) { + var r = this.__data__ = new fc(e); + this.size = r.size; + } + t(M, "Stack"); + M.prototype.clear = mc; + M.prototype.delete = gc; + M.prototype.get = yc; + M.prototype.has = dc; + M.prototype.set = hc; + vn.exports = M; +}); -`,36:`Property must be a string value. +// ../node_modules/lodash/_setCacheAdd.js +var Pn = i((Vd, Dn) => { + var Tc = "__lodash_hash_undefined__"; + function xc(e) { + return this.__data__.set(e, Tc), this; + } + t(xc, "setCacheAdd"); + Dn.exports = xc; +}); -`,37:`Syntax Error at %s. +// ../node_modules/lodash/_setCacheHas.js +var Sn = i((zd, qn) => { + function bc(e) { + return this.__data__.has(e); + } + t(bc, "setCacheHas"); + qn.exports = bc; +}); -`,38:`Formula contains a function that needs parentheses at %s. +// ../node_modules/lodash/_SetCache.js +var On = i((Hd, _n) => { + var vc = ae(), Dc = Pn(), Pc = Sn(); + function ie(e) { + var r = -1, n = e == null ? 0 : e.length; + for (this.__data__ = new vc(); ++r < n; ) + this.add(e[r]); + } + t(ie, "SetCache"); + ie.prototype.add = ie.prototype.push = Dc; + ie.prototype.has = Pc; + _n.exports = ie; +}); -`,39:`Formula is missing closing parenthesis at %s. +// ../node_modules/lodash/_arraySome.js +var An = i(($d, wn) => { + function qc(e, r) { + for (var n = -1, o = e == null ? 0 : e.length; ++n < o; ) + if (r(e[n], n, e)) + return !0; + return !1; + } + t(qc, "arraySome"); + wn.exports = qc; +}); -`,40:`Formula has too many closing parentheses at %s. +// ../node_modules/lodash/_cacheHas.js +var jn = i((Yd, En) => { + function Sc(e, r) { + return e.has(r); + } + t(Sc, "cacheHas"); + En.exports = Sc; +}); -`,41:`All values in a formula must have the same unit or be unitless. +// ../node_modules/lodash/_equalArrays.js +var Ae = i((Qd, Cn) => { + var _c = On(), Oc = An(), wc = jn(), Ac = 1, Ec = 2; + function jc(e, r, n, o, a, s) { + var u = n & Ac, p = e.length, c = r.length; + if (p != c && !(u && c > p)) + return !1; + var l = s.get(e), f = s.get(r); + if (l && f) + return l == r && f == e; + var d = -1, g = !0, x = n & Ec ? new _c() : void 0; + for (s.set(e, r), s.set(r, e); ++d < p; ) { + var h = e[d], T = r[d]; + if (o) + var v = u ? o(T, h, d, r, e, s) : o(h, T, d, e, r, s); + if (v !== void 0) { + if (v) + continue; + g = !1; + break; + } + if (x) { + if (!Oc(r, function(O, w) { + if (!wc(x, w) && (h === O || a(h, O, n, o, s))) + return x.push(w); + })) { + g = !1; + break; + } + } else if (!(h === T || a(h, T, n, o, s))) { + g = !1; + break; + } + } + return s.delete(e), s.delete(r), g; + } + t(jc, "equalArrays"); + Cn.exports = jc; +}); -`,42:`Please provide a number of steps to the modularScale helper. +// ../node_modules/lodash/_Uint8Array.js +var Fn = i((eh, In) => { + var Cc = D(), Ic = Cc.Uint8Array; + In.exports = Ic; +}); -`,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio. +// ../node_modules/lodash/_mapToArray.js +var Rn = i((rh, Nn) => { + function Fc(e) { + var r = -1, n = Array(e.size); + return e.forEach(function(o, a) { + n[++r] = [a, o]; + }), n; + } + t(Fc, "mapToArray"); + Nn.exports = Fc; +}); -`,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s. +// ../node_modules/lodash/_setToArray.js +var Mn = i((nh, Ln) => { + function Nc(e) { + var r = -1, n = Array(e.size); + return e.forEach(function(o) { + n[++r] = o; + }), n; + } + t(Nc, "setToArray"); + Ln.exports = Nc; +}); -`,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object. +// ../node_modules/lodash/_equalByTag.js +var Bn = i((ah, Vn) => { + var Jn = B(), Un = Fn(), Rc = Oe(), Lc = Ae(), Mc = Rn(), Jc = Mn(), Uc = 1, Gc = 2, Vc = "[object Boolean]", Bc = "[object Date]", zc = "\ +[object Error]", kc = "[object Map]", Hc = "[object Number]", Kc = "[object RegExp]", $c = "[object Set]", Wc = "[object String]", Yc = "[ob\ +ject Symbol]", Xc = "[object ArrayBuffer]", Qc = "[object DataView]", Gn = Jn ? Jn.prototype : void 0, Ee = Gn ? Gn.valueOf : void 0; + function Zc(e, r, n, o, a, s, u) { + switch (n) { + case Qc: + if (e.byteLength != r.byteLength || e.byteOffset != r.byteOffset) + return !1; + e = e.buffer, r = r.buffer; + case Xc: + return !(e.byteLength != r.byteLength || !s(new Un(e), new Un(r))); + case Vc: + case Bc: + case Hc: + return Rc(+e, +r); + case zc: + return e.name == r.name && e.message == r.message; + case Kc: + case Wc: + return e == r + ""; + case kc: + var p = Mc; + case $c: + var c = o & Uc; + if (p || (p = Jc), e.size != r.size && !c) + return !1; + var l = u.get(e); + if (l) + return l == r; + o |= Gc, u.set(e, r); + var f = Lc(p(e), p(r), o, a, s, u); + return u.delete(e), f; + case Yc: + if (Ee) + return Ee.call(e) == Ee.call(r); + } + return !1; + } + t(Zc, "equalByTag"); + Vn.exports = Zc; +}); -`,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object. +// ../node_modules/lodash/_arrayPush.js +var kn = i((sh, zn) => { + function el(e, r) { + for (var n = -1, o = r.length, a = e.length; ++n < o; ) + e[a + n] = r[n]; + return e; + } + t(el, "arrayPush"); + zn.exports = el; +}); -`,47:`minScreen and maxScreen must be provided as stringified numbers with the same units. +// ../node_modules/lodash/_baseGetAllKeys.js +var Kn = i((ph, Hn) => { + var rl = kn(), tl = P(); + function nl(e, r, n) { + var o = r(e); + return tl(e) ? o : rl(o, n(e)); + } + t(nl, "baseGetAllKeys"); + Hn.exports = nl; +}); -`,48:`fromSize and toSize must be provided as stringified numbers with the same units. +// ../node_modules/lodash/_arrayFilter.js +var Wn = i((lh, $n) => { + function ol(e, r) { + for (var n = -1, o = e == null ? 0 : e.length, a = 0, s = []; ++n < o; ) { + var u = e[n]; + r(u, n, e) && (s[a++] = u); + } + return s; + } + t(ol, "arrayFilter"); + $n.exports = ol; +}); -`,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize. +// ../node_modules/lodash/stubArray.js +var Xn = i((mh, Yn) => { + function al() { + return []; + } + t(al, "stubArray"); + Yn.exports = al; +}); -`,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize. +// ../node_modules/lodash/_getSymbols.js +var eo = i((yh, Zn) => { + var il = Wn(), sl = Xn(), ul = Object.prototype, pl = ul.propertyIsEnumerable, Qn = Object.getOwnPropertySymbols, cl = Qn ? function(e) { + return e == null ? [] : (e = Object(e), il(Qn(e), function(r) { + return pl.call(e, r); + })); + } : sl; + Zn.exports = cl; +}); -`,51:`Expects the first argument object to have the properties prop, fromSize, and toSize. +// ../node_modules/lodash/_getAllKeys.js +var to = i((dh, ro) => { + var ll = Kn(), fl = eo(), ml = ne(); + function gl(e) { + return ll(e, ml, fl); + } + t(gl, "getAllKeys"); + ro.exports = gl; +}); -`,52:`fontFace expects either the path to the font file(s) or a name of a local copy. - -`,53:`fontFace expects localFonts to be an array. - -`,54:`fontFace expects fileFormats to be an array. - -`,55:`fontFace expects a name of a font-family. - -`,56:`linearGradient requries at least 2 color-stops to properly render. - -`,57:`radialGradient requries at least 2 color-stops to properly render. - -`,58:`Please supply a filename to retinaImage() as the first argument. - -`,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. +// ../node_modules/lodash/_equalObjects.js +var ao = i((Th, oo) => { + var no = to(), yl = 1, dl = Object.prototype, hl = dl.hasOwnProperty; + function Tl(e, r, n, o, a, s) { + var u = n & yl, p = no(e), c = p.length, l = no(r), f = l.length; + if (c != f && !u) + return !1; + for (var d = c; d--; ) { + var g = p[d]; + if (!(u ? g in r : hl.call(r, g))) + return !1; + } + var x = s.get(e), h = s.get(r); + if (x && h) + return x == r && h == e; + var T = !0; + s.set(e, r), s.set(r, e); + for (var v = u; ++d < c; ) { + g = p[d]; + var O = e[g], w = r[g]; + if (o) + var er = u ? o(w, O, g, r, e, s) : o(O, w, g, e, r, s); + if (!(er === void 0 ? O === w || a(O, w, n, o, s) : er)) { + T = !1; + break; + } + v || (v = g == "constructor"); + } + if (T && !v) { + var Z = e.constructor, ee = r.constructor; + Z != ee && "constructor" in e && "constructor" in r && !(typeof Z == "function" && Z instanceof Z && typeof ee == "function" && ee instanceof + ee) && (T = !1); + } + return s.delete(e), s.delete(r), T; + } + t(Tl, "equalObjects"); + oo.exports = Tl; +}); -`,60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:`Property must be a string value. +// ../node_modules/lodash/_DataView.js +var so = i((bh, io) => { + var xl = S(), bl = D(), vl = xl(bl, "DataView"); + io.exports = vl; +}); -`,62:`borderRadius expects a radius value as a string or number as the second argument. +// ../node_modules/lodash/_Promise.js +var po = i((vh, uo) => { + var Dl = S(), Pl = D(), ql = Dl(Pl, "Promise"); + uo.exports = ql; +}); -`,63:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. +// ../node_modules/lodash/_Set.js +var lo = i((Dh, co) => { + var Sl = S(), _l = D(), Ol = Sl(_l, "Set"); + co.exports = Ol; +}); -`,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation. +// ../node_modules/lodash/_WeakMap.js +var mo = i((Ph, fo) => { + var wl = S(), Al = D(), El = wl(Al, "WeakMap"); + fo.exports = El; +}); -`,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s'). +// ../node_modules/lodash/_getTag.js +var Do = i((qh, vo) => { + var je = so(), Ce = oe(), Ie = po(), Fe = lo(), Ne = mo(), bo = j(), J = ve(), go = "[object Map]", jl = "[object Object]", yo = "[object \ +Promise]", ho = "[object Set]", To = "[object WeakMap]", xo = "[object DataView]", Cl = J(je), Il = J(Ce), Fl = J(Ie), Nl = J(Fe), Rl = J(Ne), + A = bo; + (je && A(new je(new ArrayBuffer(1))) != xo || Ce && A(new Ce()) != go || Ie && A(Ie.resolve()) != yo || Fe && A(new Fe()) != ho || Ne && A( + new Ne()) != To) && (A = /* @__PURE__ */ t(function(e) { + var r = bo(e), n = r == jl ? e.constructor : void 0, o = n ? J(n) : ""; + if (o) + switch (o) { + case Cl: + return xo; + case Il: + return go; + case Fl: + return yo; + case Nl: + return ho; + case Rl: + return To; + } + return r; + }, "getTag")); + vo.exports = A; +}); -`,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation. +// ../node_modules/lodash/_baseIsEqualDeep.js +var Eo = i((_h, Ao) => { + var Re = we(), Ll = Ae(), Ml = Bn(), Jl = ao(), Po = Do(), qo = P(), So = Pe(), Ul = _e(), Gl = 1, _o = "[object Arguments]", Oo = "[objec\ +t Array]", se = "[object Object]", Vl = Object.prototype, wo = Vl.hasOwnProperty; + function Bl(e, r, n, o, a, s) { + var u = qo(e), p = qo(r), c = u ? Oo : Po(e), l = p ? Oo : Po(r); + c = c == _o ? se : c, l = l == _o ? se : l; + var f = c == se, d = l == se, g = c == l; + if (g && So(e)) { + if (!So(r)) + return !1; + u = !0, f = !1; + } + if (g && !f) + return s || (s = new Re()), u || Ul(e) ? Ll(e, r, n, o, a, s) : Ml(e, r, c, n, o, a, s); + if (!(n & Gl)) { + var x = f && wo.call(e, "__wrapped__"), h = d && wo.call(r, "__wrapped__"); + if (x || h) { + var T = x ? e.value() : e, v = h ? r.value() : r; + return s || (s = new Re()), a(T, v, n, o, s); + } + } + return g ? (s || (s = new Re()), Jl(e, r, n, o, a, s)) : !1; + } + t(Bl, "baseIsEqualDeep"); + Ao.exports = Bl; +}); -`,67:`You must provide a template to this method. +// ../node_modules/lodash/_baseIsEqual.js +var Le = i((wh, Io) => { + var zl = Eo(), jo = C(); + function Co(e, r, n, o, a) { + return e === r ? !0 : e == null || r == null || !jo(e) && !jo(r) ? e !== e && r !== r : zl(e, r, n, o, Co, a); + } + t(Co, "baseIsEqual"); + Io.exports = Co; +}); -`,68:`You passed an unsupported selector state to this method. +// ../node_modules/lodash/_baseIsMatch.js +var No = i((Eh, Fo) => { + var kl = we(), Hl = Le(), Kl = 1, $l = 2; + function Wl(e, r, n, o) { + var a = n.length, s = a, u = !o; + if (e == null) + return !s; + for (e = Object(e); a--; ) { + var p = n[a]; + if (u && p[2] ? p[1] !== e[p[0]] : !(p[0] in e)) + return !1; + } + for (; ++a < s; ) { + p = n[a]; + var c = p[0], l = e[c], f = p[1]; + if (u && p[2]) { + if (l === void 0 && !(c in e)) + return !1; + } else { + var d = new kl(); + if (o) + var g = o(l, f, c, e, r, d); + if (!(g === void 0 ? Hl(f, l, Kl | $l, o, d) : g)) + return !1; + } + } + return !0; + } + t(Wl, "baseIsMatch"); + Fo.exports = Wl; +}); -`,69:`Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead. +// ../node_modules/lodash/_isStrictComparable.js +var Me = i((Ch, Ro) => { + var Yl = re(); + function Xl(e) { + return e === e && !Yl(e); + } + t(Xl, "isStrictComparable"); + Ro.exports = Xl; +}); -`,70:`Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead. +// ../node_modules/lodash/_getMatchData.js +var Mo = i((Fh, Lo) => { + var Ql = Me(), Zl = ne(); + function ef(e) { + for (var r = Zl(e), n = r.length; n--; ) { + var o = r[n], a = e[o]; + r[n] = [o, a, Ql(a)]; + } + return r; + } + t(ef, "getMatchData"); + Lo.exports = ef; +}); -`,71:`Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12. +// ../node_modules/lodash/_matchesStrictComparable.js +var Je = i((Rh, Jo) => { + function rf(e, r) { + return function(n) { + return n == null ? !1 : n[e] === r && (r !== void 0 || e in Object(n)); + }; + } + t(rf, "matchesStrictComparable"); + Jo.exports = rf; +}); -`,72:`Passed invalid base value %s to %s(), please pass a value like "12px" or 12. +// ../node_modules/lodash/_baseMatches.js +var Go = i((Mh, Uo) => { + var tf = No(), nf = Mo(), of = Je(); + function af(e) { + var r = nf(e); + return r.length == 1 && r[0][2] ? of(r[0][0], r[0][1]) : function(n) { + return n === e || tf(n, e, r); + }; + } + t(af, "baseMatches"); + Uo.exports = af; +}); -`,73:`Please provide a valid CSS variable. +// ../node_modules/lodash/isSymbol.js +var ue = i((Uh, Vo) => { + var sf = j(), uf = C(), pf = "[object Symbol]"; + function cf(e) { + return typeof e == "symbol" || uf(e) && sf(e) == pf; + } + t(cf, "isSymbol"); + Vo.exports = cf; +}); -`,74:`CSS variable not found and no default was provided. +// ../node_modules/lodash/_isKey.js +var pe = i((Vh, Bo) => { + var lf = P(), ff = ue(), mf = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, gf = /^\w*$/; + function yf(e, r) { + if (lf(e)) + return !1; + var n = typeof e; + return n == "number" || n == "symbol" || n == "boolean" || e == null || ff(e) ? !0 : gf.test(e) || !mf.test(e) || r != null && e in Object( + r); + } + t(yf, "isKey"); + Bo.exports = yf; +}); -`,75:`important requires a valid style object, got a %s instead. +// ../node_modules/lodash/memoize.js +var Ho = i((zh, ko) => { + var zo = ae(), df = "Expected a function"; + function Ue(e, r) { + if (typeof e != "function" || r != null && typeof r != "function") + throw new TypeError(df); + var n = /* @__PURE__ */ t(function() { + var o = arguments, a = r ? r.apply(this, o) : o[0], s = n.cache; + if (s.has(a)) + return s.get(a); + var u = e.apply(this, o); + return n.cache = s.set(a, u) || s, u; + }, "memoized"); + return n.cache = new (Ue.Cache || zo)(), n; + } + t(Ue, "memoize"); + Ue.Cache = zo; + ko.exports = Ue; +}); -`,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen. +// ../node_modules/lodash/_memoizeCapped.js +var $o = i((Hh, Ko) => { + var hf = Ho(), Tf = 500; + function xf(e) { + var r = hf(e, function(o) { + return n.size === Tf && n.clear(), o; + }), n = r.cache; + return r; + } + t(xf, "memoizeCapped"); + Ko.exports = xf; +}); -`,77:`remToPx expects a value in "rem" but you provided it in "%s". +// ../node_modules/lodash/_stringToPath.js +var Yo = i(($h, Wo) => { + var bf = $o(), vf = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Df = /\\(\\)?/g, Pf = bf( + function(e) { + var r = []; + return e.charCodeAt(0) === 46 && r.push(""), e.replace(vf, function(n, o, a, s) { + r.push(a ? s.replace(Df, "$1") : o || n); + }), r; + }); + Wo.exports = Pf; +}); -`,78:`base must be set in "px" or "%" but you set it in "%s". -`};function format(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];var a=args[0],b=[],c;for(c=1;c1?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];return _this=_Error.call(this,format.apply(void 0,[ERRORS[code]].concat(args)))||this,_assertThisInitialized(_this)}return PolishedError2}(_wrapNativeSuper(Error));function colorToInt(color2){return Math.round(color2*255)}function convertToInt(red,green,blue){return colorToInt(red)+","+colorToInt(green)+","+colorToInt(blue)}function hslToRgb(hue,saturation,lightness,convert){if(convert===void 0&&(convert=convertToInt),saturation===0)return convert(lightness,lightness,lightness);var huePrime=(hue%360+360)%360/60,chroma=(1-Math.abs(2*lightness-1))*saturation,secondComponent=chroma*(1-Math.abs(huePrime%2-1)),red=0,green=0,blue=0;huePrime>=0&&huePrime<1?(red=chroma,green=secondComponent):huePrime>=1&&huePrime<2?(red=secondComponent,green=chroma):huePrime>=2&&huePrime<3?(green=chroma,blue=secondComponent):huePrime>=3&&huePrime<4?(green=secondComponent,blue=chroma):huePrime>=4&&huePrime<5?(red=secondComponent,blue=chroma):huePrime>=5&&huePrime<6&&(red=chroma,blue=secondComponent);var lightnessModification=lightness-chroma/2,finalRed=red+lightnessModification,finalGreen=green+lightnessModification,finalBlue=blue+lightnessModification;return convert(finalRed,finalGreen,finalBlue)}var namedColorMap={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function nameToHex(color2){if(typeof color2!="string")return color2;var normalizedColorName=color2.toLowerCase();return namedColorMap[normalizedColorName]?"#"+namedColorMap[normalizedColorName]:color2}var hexRegex=/^#[a-fA-F0-9]{6}$/,hexRgbaRegex=/^#[a-fA-F0-9]{8}$/,reducedHexRegex=/^#[a-fA-F0-9]{3}$/,reducedRgbaHexRegex=/^#[a-fA-F0-9]{4}$/,rgbRegex=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,rgbaRegex=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,hslRegex=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,hslaRegex=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function parseToRgb(color2){if(typeof color2!="string")throw new PolishedError(3);var normalizedColor=nameToHex(color2);if(normalizedColor.match(hexRegex))return {red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16)};if(normalizedColor.match(hexRgbaRegex)){var alpha=parseFloat((parseInt(""+normalizedColor[7]+normalizedColor[8],16)/255).toFixed(2));return {red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16),alpha}}if(normalizedColor.match(reducedHexRegex))return {red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16)};if(normalizedColor.match(reducedRgbaHexRegex)){var _alpha=parseFloat((parseInt(""+normalizedColor[4]+normalizedColor[4],16)/255).toFixed(2));return {red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16),alpha:_alpha}}var rgbMatched=rgbRegex.exec(normalizedColor);if(rgbMatched)return {red:parseInt(""+rgbMatched[1],10),green:parseInt(""+rgbMatched[2],10),blue:parseInt(""+rgbMatched[3],10)};var rgbaMatched=rgbaRegex.exec(normalizedColor.substring(0,50));if(rgbaMatched)return {red:parseInt(""+rgbaMatched[1],10),green:parseInt(""+rgbaMatched[2],10),blue:parseInt(""+rgbaMatched[3],10),alpha:parseFloat(""+rgbaMatched[4])>1?parseFloat(""+rgbaMatched[4])/100:parseFloat(""+rgbaMatched[4])};var hslMatched=hslRegex.exec(normalizedColor);if(hslMatched){var hue=parseInt(""+hslMatched[1],10),saturation=parseInt(""+hslMatched[2],10)/100,lightness=parseInt(""+hslMatched[3],10)/100,rgbColorString="rgb("+hslToRgb(hue,saturation,lightness)+")",hslRgbMatched=rgbRegex.exec(rgbColorString);if(!hslRgbMatched)throw new PolishedError(4,normalizedColor,rgbColorString);return {red:parseInt(""+hslRgbMatched[1],10),green:parseInt(""+hslRgbMatched[2],10),blue:parseInt(""+hslRgbMatched[3],10)}}var hslaMatched=hslaRegex.exec(normalizedColor.substring(0,50));if(hslaMatched){var _hue=parseInt(""+hslaMatched[1],10),_saturation=parseInt(""+hslaMatched[2],10)/100,_lightness=parseInt(""+hslaMatched[3],10)/100,_rgbColorString="rgb("+hslToRgb(_hue,_saturation,_lightness)+")",_hslRgbMatched=rgbRegex.exec(_rgbColorString);if(!_hslRgbMatched)throw new PolishedError(4,normalizedColor,_rgbColorString);return {red:parseInt(""+_hslRgbMatched[1],10),green:parseInt(""+_hslRgbMatched[2],10),blue:parseInt(""+_hslRgbMatched[3],10),alpha:parseFloat(""+hslaMatched[4])>1?parseFloat(""+hslaMatched[4])/100:parseFloat(""+hslaMatched[4])}}throw new PolishedError(5)}function rgbToHsl(color2){var red=color2.red/255,green=color2.green/255,blue=color2.blue/255,max=Math.max(red,green,blue),min=Math.min(red,green,blue),lightness=(max+min)/2;if(max===min)return color2.alpha!==void 0?{hue:0,saturation:0,lightness,alpha:color2.alpha}:{hue:0,saturation:0,lightness};var hue,delta=max-min,saturation=lightness>.5?delta/(2-max-min):delta/(max+min);switch(max){case red:hue=(green-blue)/delta+(green=1?hslToHex(value,saturation,lightness):"rgba("+hslToRgb(value,saturation,lightness)+","+alpha+")";if(typeof value=="object"&&saturation===void 0&&lightness===void 0&&alpha===void 0)return value.alpha>=1?hslToHex(value.hue,value.saturation,value.lightness):"rgba("+hslToRgb(value.hue,value.saturation,value.lightness)+","+value.alpha+")";throw new PolishedError(2)}function rgb(value,green,blue){if(typeof value=="number"&&typeof green=="number"&&typeof blue=="number")return reduceHexValue$1("#"+numberToHex(value)+numberToHex(green)+numberToHex(blue));if(typeof value=="object"&&green===void 0&&blue===void 0)return reduceHexValue$1("#"+numberToHex(value.red)+numberToHex(value.green)+numberToHex(value.blue));throw new PolishedError(6)}function rgba(firstValue,secondValue,thirdValue,fourthValue){if(typeof firstValue=="string"&&typeof secondValue=="number"){var rgbValue=parseToRgb(firstValue);return "rgba("+rgbValue.red+","+rgbValue.green+","+rgbValue.blue+","+secondValue+")"}else {if(typeof firstValue=="number"&&typeof secondValue=="number"&&typeof thirdValue=="number"&&typeof fourthValue=="number")return fourthValue>=1?rgb(firstValue,secondValue,thirdValue):"rgba("+firstValue+","+secondValue+","+thirdValue+","+fourthValue+")";if(typeof firstValue=="object"&&secondValue===void 0&&thirdValue===void 0&&fourthValue===void 0)return firstValue.alpha>=1?rgb(firstValue.red,firstValue.green,firstValue.blue):"rgba("+firstValue.red+","+firstValue.green+","+firstValue.blue+","+firstValue.alpha+")"}throw new PolishedError(7)}var isRgb=function(color2){return typeof color2.red=="number"&&typeof color2.green=="number"&&typeof color2.blue=="number"&&(typeof color2.alpha!="number"||typeof color2.alpha>"u")},isRgba=function(color2){return typeof color2.red=="number"&&typeof color2.green=="number"&&typeof color2.blue=="number"&&typeof color2.alpha=="number"},isHsl=function(color2){return typeof color2.hue=="number"&&typeof color2.saturation=="number"&&typeof color2.lightness=="number"&&(typeof color2.alpha!="number"||typeof color2.alpha>"u")},isHsla=function(color2){return typeof color2.hue=="number"&&typeof color2.saturation=="number"&&typeof color2.lightness=="number"&&typeof color2.alpha=="number"};function toColorString(color2){if(typeof color2!="object")throw new PolishedError(8);if(isRgba(color2))return rgba(color2);if(isRgb(color2))return rgb(color2);if(isHsla(color2))return hsla(color2);if(isHsl(color2))return hsl(color2);throw new PolishedError(8)}function curried(f,length,acc){return function(){var combined=acc.concat(Array.prototype.slice.call(arguments));return combined.length>=length?f.apply(this,combined):curried(f,length,combined)}}function curry(f){return curried(f,f.length,[])}function guard(lowerBoundary,upperBoundary,value){return Math.max(lowerBoundary,Math.min(upperBoundary,value))}function darken(amount,color2){if(color2==="transparent")return color2;var hslColor=parseToHsl(color2);return toColorString(_extends({},hslColor,{lightness:guard(0,1,hslColor.lightness-parseFloat(amount))}))}var curriedDarken=curry(darken),curriedDarken$1=curriedDarken;function lighten(amount,color2){if(color2==="transparent")return color2;var hslColor=parseToHsl(color2);return toColorString(_extends({},hslColor,{lightness:guard(0,1,hslColor.lightness+parseFloat(amount))}))}var curriedLighten=curry(lighten),curriedLighten$1=curriedLighten;function opacify(amount,color2){if(color2==="transparent")return color2;var parsedColor=parseToRgb(color2),alpha=typeof parsedColor.alpha=="number"?parsedColor.alpha:1,colorWithAlpha=_extends({},parsedColor,{alpha:guard(0,1,(alpha*100+parseFloat(amount)*100)/100)});return rgba(colorWithAlpha)}var curriedOpacify=curry(opacify),curriedOpacify$1=curriedOpacify;function transparentize(amount,color2){if(color2==="transparent")return color2;var parsedColor=parseToRgb(color2),alpha=typeof parsedColor.alpha=="number"?parsedColor.alpha:1,colorWithAlpha=_extends({},parsedColor,{alpha:guard(0,1,+(alpha*100-parseFloat(amount)*100).toFixed(2)/100)});return rgba(colorWithAlpha)}var curriedTransparentize=curry(transparentize),curriedTransparentize$1=curriedTransparentize;var color={primary:"#FF4785",secondary:"#029CFD",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F7FAFC",light:"#EEF3F6",mediumlight:"#ECF4F9",medium:"#D9E8F2",mediumdark:"#73828C",dark:"#5C6870",darker:"#454E54",darkest:"#2E3438",border:"hsla(203, 50%, 30%, 0.15)",positive:"#66BF3C",negative:"#FF4400",warning:"#E69D00",critical:"#FFFFFF",defaultText:"#2E3438",inverseText:"#FFFFFF",positiveText:"#448028",negativeText:"#D43900",warningText:"#A15C20"},background={app:"#F6F9FC",bar:color.lightest,content:color.lightest,preview:color.lightest,gridCellSize:10,hoverable:curriedTransparentize$1(.9,color.secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},typography={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}};var theme={base:"light",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:background.app,appContentBg:color.lightest,appPreviewBg:color.lightest,appBorderColor:color.border,appBorderRadius:4,fontBase:typography.fonts.base,fontCode:typography.fonts.mono,textColor:color.darkest,textInverseColor:color.lightest,textMutedColor:color.dark,barTextColor:color.mediumdark,barHoverColor:color.secondary,barSelectedColor:color.secondary,barBg:color.lightest,buttonBg:background.app,buttonBorder:color.medium,booleanBg:color.mediumlight,booleanSelectedBg:color.lightest,inputBg:color.lightest,inputBorder:color.border,inputTextColor:color.darkest,inputBorderRadius:4},light_default=theme;var theme2={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:"#222425",appContentBg:"#1B1C1D",appPreviewBg:color.lightest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:typography.fonts.base,fontCode:typography.fonts.mono,textColor:"#C9CDCF",textInverseColor:"#222425",textMutedColor:"#798186",barTextColor:"#798186",barHoverColor:color.secondary,barSelectedColor:color.secondary,barBg:"#292C2E",buttonBg:"#222425",buttonBorder:"rgba(255,255,255,.1)",booleanBg:"#222425",booleanSelectedBg:"#2E3438",inputBg:"#1B1C1D",inputBorder:"rgba(255,255,255,.1)",inputTextColor:color.lightest,inputBorderRadius:4},dark_default=theme2;var {window:globalWindow}=_storybook_global__WEBPACK_IMPORTED_MODULE_0__.global,mkColor=color2=>({color:color2}),isColorString=color2=>typeof color2!="string"?(_storybook_client_logger__WEBPACK_IMPORTED_MODULE_1__.logger.warn(`Color passed to theme object should be a string. Instead ${color2}(${typeof color2}) was passed.`),!1):!0,isValidColorForPolished=color2=>!/(gradient|var|calc)/.test(color2),applyPolished=(type,color2)=>type==="darken"?rgba(`${curriedDarken$1(1,color2)}`,.95):type==="lighten"?rgba(`${curriedLighten$1(1,color2)}`,.95):color2,colorFactory=type=>color2=>{if(!isColorString(color2)||!isValidColorForPolished(color2))return color2;try{return applyPolished(type,color2)}catch{return color2}},lightenColor=colorFactory("lighten"),darkenColor=colorFactory("darken"),getPreferredColorScheme=()=>!globalWindow||!globalWindow.matchMedia?"light":globalWindow.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";var themes={light:light_default,dark:dark_default,normal:light_default},preferredColorScheme=getPreferredColorScheme(),create=(vars={base:preferredColorScheme},rest)=>{let inherit={...themes[preferredColorScheme],...themes[vars.base]||{},...vars,base:themes[vars.base]?vars.base:preferredColorScheme};return {...rest,...inherit,barSelectedColor:vars.barSelectedColor||inherit.colorSecondary}}; +// ../node_modules/lodash/_arrayMap.js +var Qo = i((Wh, Xo) => { + function qf(e, r) { + for (var n = -1, o = e == null ? 0 : e.length, a = Array(o); ++n < o; ) + a[n] = r(e[n], n, e); + return a; + } + t(qf, "arrayMap"); + Xo.exports = qf; +}); +// ../node_modules/lodash/_baseToString.js +var oa = i((Xh, na) => { + var Zo = B(), Sf = Qo(), _f = P(), Of = ue(), wf = 1 / 0, ea = Zo ? Zo.prototype : void 0, ra = ea ? ea.toString : void 0; + function ta(e) { + if (typeof e == "string") + return e; + if (_f(e)) + return Sf(e, ta) + ""; + if (Of(e)) + return ra ? ra.call(e) : ""; + var r = e + ""; + return r == "0" && 1 / e == -wf ? "-0" : r; + } + t(ta, "baseToString"); + na.exports = ta; +}); +// ../node_modules/lodash/toString.js +var ia = i((Zh, aa) => { + var Af = oa(); + function Ef(e) { + return e == null ? "" : Af(e); + } + t(Ef, "toString"); + aa.exports = Ef; +}); +// ../node_modules/lodash/_castPath.js +var Ge = i((rT, sa) => { + var jf = P(), Cf = pe(), If = Yo(), Ff = ia(); + function Nf(e, r) { + return jf(e) ? e : Cf(e, r) ? [e] : If(Ff(e)); + } + t(Nf, "castPath"); + sa.exports = Nf; +}); -/***/ }), +// ../node_modules/lodash/_toKey.js +var Q = i((nT, ua) => { + var Rf = ue(), Lf = 1 / 0; + function Mf(e) { + if (typeof e == "string" || Rf(e)) + return e; + var r = e + ""; + return r == "0" && 1 / e == -Lf ? "-0" : r; + } + t(Mf, "toKey"); + ua.exports = Mf; +}); -/***/ "../../../node_modules/assert/build/assert.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +// ../node_modules/lodash/_baseGet.js +var Ve = i((aT, pa) => { + var Jf = Ge(), Uf = Q(); + function Gf(e, r) { + r = Jf(r, e); + for (var n = 0, o = r.length; e != null && n < o; ) + e = e[Uf(r[n++])]; + return n && n == o ? e : void 0; + } + t(Gf, "baseGet"); + pa.exports = Gf; +}); -"use strict"; -/* provided dependency */ var process = __webpack_require__("../../../node_modules/process/browser.js"); -// Currently in sync with Node.js lib/assert.js -// https://github.com/nodejs/node/commit/2a51ae424a513ec9a6aa3466baa0cc1d55dd4f3b - -// Originally from narwhal.js (http://narwhaljs.org) -// Copyright (c) 2009 Thomas Robinson <280north.com> -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the 'Software'), to -// deal in the Software without restriction, including without limitation the -// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -// sell copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN -// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - - -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } -function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -var _require = __webpack_require__("../../../node_modules/assert/build/internal/errors.js"), - _require$codes = _require.codes, - ERR_AMBIGUOUS_ARGUMENT = _require$codes.ERR_AMBIGUOUS_ARGUMENT, - ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE, - ERR_INVALID_ARG_VALUE = _require$codes.ERR_INVALID_ARG_VALUE, - ERR_INVALID_RETURN_VALUE = _require$codes.ERR_INVALID_RETURN_VALUE, - ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS; -var AssertionError = __webpack_require__("../../../node_modules/assert/build/internal/assert/assertion_error.js"); -var _require2 = __webpack_require__("../../../node_modules/util/util.js"), - inspect = _require2.inspect; -var _require$types = (__webpack_require__("../../../node_modules/util/util.js").types), - isPromise = _require$types.isPromise, - isRegExp = _require$types.isRegExp; -var objectAssign = __webpack_require__("../../../node_modules/object.assign/polyfill.js")(); -var objectIs = __webpack_require__("../../../node_modules/object-is/polyfill.js")(); -var RegExpPrototypeTest = __webpack_require__("../../../node_modules/call-bind/callBound.js")('RegExp.prototype.test'); -var errorCache = new Map(); -var isDeepEqual; -var isDeepStrictEqual; -var parseExpressionAt; -var findNodeAround; -var decoder; -function lazyLoadComparison() { - var comparison = __webpack_require__("../../../node_modules/assert/build/internal/util/comparisons.js"); - isDeepEqual = comparison.isDeepEqual; - isDeepStrictEqual = comparison.isDeepStrictEqual; -} - -// Escape control characters but not \n and \t to keep the line breaks and -// indentation intact. -// eslint-disable-next-line no-control-regex -var escapeSequencesRegExp = /[\x00-\x08\x0b\x0c\x0e-\x1f]/g; -var meta = (/* unused pure expression or super */ null && (["\\u0000", "\\u0001", "\\u0002", "\\u0003", "\\u0004", "\\u0005", "\\u0006", "\\u0007", '\\b', '', '', "\\u000b", '\\f', '', "\\u000e", "\\u000f", "\\u0010", "\\u0011", "\\u0012", "\\u0013", "\\u0014", "\\u0015", "\\u0016", "\\u0017", "\\u0018", "\\u0019", "\\u001a", "\\u001b", "\\u001c", "\\u001d", "\\u001e", "\\u001f"])); -var escapeFn = function escapeFn(str) { - return meta[str.charCodeAt(0)]; -}; -var warned = false; - -// The assert module provides functions that throw -// AssertionError's when particular conditions are not met. The -// assert module must conform to the following interface. - -var assert = module.exports = ok; -var NO_EXCEPTION_SENTINEL = {}; - -// All of the following functions must throw an AssertionError -// when a corresponding condition is not met, with a message that -// may be undefined if not provided. All assertion methods provide -// both the actual and expected values to the assertion error for -// display purposes. - -function innerFail(obj) { - if (obj.message instanceof Error) throw obj.message; - throw new AssertionError(obj); -} -function fail(actual, expected, message, operator, stackStartFn) { - var argsLen = arguments.length; - var internalMessage; - if (argsLen === 0) { - internalMessage = 'Failed'; - } else if (argsLen === 1) { - message = actual; - actual = undefined; - } else { - if (warned === false) { - warned = true; - var warn = process.emitWarning ? process.emitWarning : console.warn.bind(console); - warn('assert.fail() with more than one argument is deprecated. ' + 'Please use assert.strictEqual() instead or only pass a message.', 'DeprecationWarning', 'DEP0094'); - } - if (argsLen === 2) operator = '!='; - } - if (message instanceof Error) throw message; - var errArgs = { - actual: actual, - expected: expected, - operator: operator === undefined ? 'fail' : operator, - stackStartFn: stackStartFn || fail - }; - if (message !== undefined) { - errArgs.message = message; - } - var err = new AssertionError(errArgs); - if (internalMessage) { - err.message = internalMessage; - err.generatedMessage = true; - } - throw err; -} -assert.fail = fail; - -// The AssertionError is defined in internal/error. -assert.AssertionError = AssertionError; -function innerOk(fn, argLen, value, message) { - if (!value) { - var generatedMessage = false; - if (argLen === 0) { - generatedMessage = true; - message = 'No value argument passed to `assert.ok()`'; - } else if (message instanceof Error) { - throw message; - } - var err = new AssertionError({ - actual: value, - expected: true, - message: message, - operator: '==', - stackStartFn: fn - }); - err.generatedMessage = generatedMessage; - throw err; +// ../node_modules/lodash/get.js +var la = i((sT, ca) => { + var Vf = Ve(); + function Bf(e, r, n) { + var o = e == null ? void 0 : Vf(e, r); + return o === void 0 ? n : o; } -} + t(Bf, "get"); + ca.exports = Bf; +}); -// Pure assertion tests whether a value is truthy, as determined -// by !!value. -function ok() { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; +// ../node_modules/lodash/_baseHasIn.js +var ma = i((pT, fa) => { + function zf(e, r) { + return e != null && r in Object(e); } - innerOk.apply(void 0, [ok, args.length].concat(args)); -} -assert.ok = ok; + t(zf, "baseHasIn"); + fa.exports = zf; +}); -// The equality assertion tests shallow, coercive equality with ==. -/* eslint-disable no-restricted-properties */ -assert.equal = function equal(actual, expected, message) { - if (arguments.length < 2) { - throw new ERR_MISSING_ARGS('actual', 'expected'); - } - // eslint-disable-next-line eqeqeq - if (actual != expected) { - innerFail({ - actual: actual, - expected: expected, - message: message, - operator: '==', - stackStartFn: equal - }); +// ../node_modules/lodash/_hasPath.js +var ya = i((lT, ga) => { + var kf = Ge(), Hf = De(), Kf = P(), $f = qe(), Wf = te(), Yf = Q(); + function Xf(e, r, n) { + r = kf(r, e); + for (var o = -1, a = r.length, s = !1; ++o < a; ) { + var u = Yf(r[o]); + if (!(s = e != null && n(e, u))) + break; + e = e[u]; + } + return s || ++o != a ? s : (a = e == null ? 0 : e.length, !!a && Wf(a) && $f(u, a) && (Kf(e) || Hf(e))); } -}; + t(Xf, "hasPath"); + ga.exports = Xf; +}); -// The non-equality assertion tests for whether two objects are not -// equal with !=. -assert.notEqual = function notEqual(actual, expected, message) { - if (arguments.length < 2) { - throw new ERR_MISSING_ARGS('actual', 'expected'); - } - // eslint-disable-next-line eqeqeq - if (actual == expected) { - innerFail({ - actual: actual, - expected: expected, - message: message, - operator: '!=', - stackStartFn: notEqual - }); +// ../node_modules/lodash/hasIn.js +var ha = i((mT, da) => { + var Qf = ma(), Zf = ya(); + function em(e, r) { + return e != null && Zf(e, r, Qf); } -}; + t(em, "hasIn"); + da.exports = em; +}); -// The equivalence assertion tests a deep equality relation. -assert.deepEqual = function deepEqual(actual, expected, message) { - if (arguments.length < 2) { - throw new ERR_MISSING_ARGS('actual', 'expected'); - } - if (isDeepEqual === undefined) lazyLoadComparison(); - if (!isDeepEqual(actual, expected)) { - innerFail({ - actual: actual, - expected: expected, - message: message, - operator: 'deepEqual', - stackStartFn: deepEqual - }); +// ../node_modules/lodash/_baseMatchesProperty.js +var xa = i((yT, Ta) => { + var rm = Le(), tm = la(), nm = ha(), om = pe(), am = Me(), im = Je(), sm = Q(), um = 1, pm = 2; + function cm(e, r) { + return om(e) && am(r) ? im(sm(e), r) : function(n) { + var o = tm(n, e); + return o === void 0 && o === r ? nm(n, e) : rm(r, o, um | pm); + }; } -}; + t(cm, "baseMatchesProperty"); + Ta.exports = cm; +}); -// The non-equivalence assertion tests for any deep inequality. -assert.notDeepEqual = function notDeepEqual(actual, expected, message) { - if (arguments.length < 2) { - throw new ERR_MISSING_ARGS('actual', 'expected'); - } - if (isDeepEqual === undefined) lazyLoadComparison(); - if (isDeepEqual(actual, expected)) { - innerFail({ - actual: actual, - expected: expected, - message: message, - operator: 'notDeepEqual', - stackStartFn: notDeepEqual - }); - } -}; -/* eslint-enable */ - -assert.deepStrictEqual = function deepStrictEqual(actual, expected, message) { - if (arguments.length < 2) { - throw new ERR_MISSING_ARGS('actual', 'expected'); - } - if (isDeepEqual === undefined) lazyLoadComparison(); - if (!isDeepStrictEqual(actual, expected)) { - innerFail({ - actual: actual, - expected: expected, - message: message, - operator: 'deepStrictEqual', - stackStartFn: deepStrictEqual - }); - } -}; -assert.notDeepStrictEqual = notDeepStrictEqual; -function notDeepStrictEqual(actual, expected, message) { - if (arguments.length < 2) { - throw new ERR_MISSING_ARGS('actual', 'expected'); - } - if (isDeepEqual === undefined) lazyLoadComparison(); - if (isDeepStrictEqual(actual, expected)) { - innerFail({ - actual: actual, - expected: expected, - message: message, - operator: 'notDeepStrictEqual', - stackStartFn: notDeepStrictEqual - }); - } -} -assert.strictEqual = function strictEqual(actual, expected, message) { - if (arguments.length < 2) { - throw new ERR_MISSING_ARGS('actual', 'expected'); - } - if (!objectIs(actual, expected)) { - innerFail({ - actual: actual, - expected: expected, - message: message, - operator: 'strictEqual', - stackStartFn: strictEqual - }); +// ../node_modules/lodash/identity.js +var va = i((hT, ba) => { + function lm(e) { + return e; } -}; -assert.notStrictEqual = function notStrictEqual(actual, expected, message) { - if (arguments.length < 2) { - throw new ERR_MISSING_ARGS('actual', 'expected'); - } - if (objectIs(actual, expected)) { - innerFail({ - actual: actual, - expected: expected, - message: message, - operator: 'notStrictEqual', - stackStartFn: notStrictEqual - }); + t(lm, "identity"); + ba.exports = lm; +}); + +// ../node_modules/lodash/_baseProperty.js +var Pa = i((xT, Da) => { + function fm(e) { + return function(r) { + return r?.[e]; + }; } -}; -var Comparison = /*#__PURE__*/_createClass(function Comparison(obj, keys, actual) { - var _this = this; - _classCallCheck(this, Comparison); - keys.forEach(function (key) { - if (key in obj) { - if (actual !== undefined && typeof actual[key] === 'string' && isRegExp(obj[key]) && RegExpPrototypeTest(obj[key], actual[key])) { - _this[key] = actual[key]; - } else { - _this[key] = obj[key]; - } - } - }); + t(fm, "baseProperty"); + Da.exports = fm; }); -function compareExceptionKey(actual, expected, key, message, keys, fn) { - if (!(key in actual) || !isDeepStrictEqual(actual[key], expected[key])) { - if (!message) { - // Create placeholder objects to create a nice output. - var a = new Comparison(actual, keys); - var b = new Comparison(expected, keys, actual); - var err = new AssertionError({ - actual: a, - expected: b, - operator: 'deepStrictEqual', - stackStartFn: fn - }); - err.actual = actual; - err.expected = expected; - err.operator = fn.name; - throw err; - } - innerFail({ - actual: actual, - expected: expected, - message: message, - operator: fn.name, - stackStartFn: fn - }); + +// ../node_modules/lodash/_basePropertyDeep.js +var Sa = i((vT, qa) => { + var mm = Ve(); + function gm(e) { + return function(r) { + return mm(r, e); + }; } -} -function expectedException(actual, expected, msg, fn) { - if (typeof expected !== 'function') { - if (isRegExp(expected)) return RegExpPrototypeTest(expected, actual); - // assert.doesNotThrow does not accept objects. - if (arguments.length === 2) { - throw new ERR_INVALID_ARG_TYPE('expected', ['Function', 'RegExp'], expected); - } + t(gm, "basePropertyDeep"); + qa.exports = gm; +}); - // Handle primitives properly. - if (_typeof(actual) !== 'object' || actual === null) { - var err = new AssertionError({ - actual: actual, - expected: expected, - message: msg, - operator: 'deepStrictEqual', - stackStartFn: fn - }); - err.operator = fn.name; - throw err; - } - var keys = Object.keys(expected); - // Special handle errors to make sure the name and the message are compared - // as well. - if (expected instanceof Error) { - keys.push('name', 'message'); - } else if (keys.length === 0) { - throw new ERR_INVALID_ARG_VALUE('error', expected, 'may not be an empty object'); - } - if (isDeepEqual === undefined) lazyLoadComparison(); - keys.forEach(function (key) { - if (typeof actual[key] === 'string' && isRegExp(expected[key]) && RegExpPrototypeTest(expected[key], actual[key])) { - return; - } - compareExceptionKey(actual, expected, key, msg, keys, fn); - }); - return true; +// ../node_modules/lodash/property.js +var Oa = i((PT, _a) => { + var ym = Pa(), dm = Sa(), hm = pe(), Tm = Q(); + function xm(e) { + return hm(e) ? ym(Tm(e)) : dm(e); } - // Guard instanceof against arrow functions as they don't have a prototype. - if (expected.prototype !== undefined && actual instanceof expected) { - return true; + t(xm, "property"); + _a.exports = xm; +}); + +// ../node_modules/lodash/_baseIteratee.js +var Aa = i((ST, wa) => { + var bm = Go(), vm = xa(), Dm = va(), Pm = P(), qm = Oa(); + function Sm(e) { + return typeof e == "function" ? e : e == null ? Dm : typeof e == "object" ? Pm(e) ? vm(e[0], e[1]) : bm(e) : qm(e); } - if (Error.isPrototypeOf(expected)) { - return false; + t(Sm, "baseIteratee"); + wa.exports = Sm; +}); + +// ../node_modules/lodash/mapValues.js +var ja = i((OT, Ea) => { + var _m = Er(), Om = bt(), wm = Aa(); + function Am(e, r) { + var n = {}; + return r = wm(r, 3), Om(e, function(o, a, s) { + _m(n, a, r(o, a, s)); + }), n; + } + t(Am, "mapValues"); + Ea.exports = Am; +}); + +// src/docs-tools/argTypes/convert/flow/convert.ts + +var gi = /* @__PURE__ */ (/* unused pure expression or super */ null && (t((e) => e.name === "literal", "isLiteral"))), yi = /* @__PURE__ */ (/* unused pure expression or super */ null && (t((e) => e.value.replace(/['|"]/g, ""), "toEnumOp\ +tion"))), di = /* @__PURE__ */ (/* unused pure expression or super */ null && (t((e) => { + switch (e.type) { + case "function": + return { name: "function" }; + case "object": + let r = {}; + return e.signature.properties.forEach((n) => { + r[n.key] = E(n.value); + }), { + name: "object", + value: r + }; + default: + throw new mi({ type: e, language: "Flow" }); + } +}, "convertSig"))), E = /* @__PURE__ */ (/* unused pure expression or super */ null && (t((e) => { + let { name: r, raw: n } = e, o = {}; + switch (typeof n < "u" && (o.raw = n), e.name) { + case "literal": + return { ...o, name: "other", value: e.value }; + case "string": + case "number": + case "symbol": + case "boolean": + return { ...o, name: r }; + case "Array": + return { ...o, name: "array", value: e.elements.map(E) }; + case "signature": + return { ...o, ...di(e) }; + case "union": + return e.elements?.every(gi) ? { ...o, name: "enum", value: e.elements?.map(yi) } : { ...o, name: r, value: e.elements?.map(E) }; + case "intersection": + return { ...o, name: r, value: e.elements?.map(E) }; + default: + return { ...o, name: "other", value: r }; + } +}, "convert"))); + +// src/docs-tools/argTypes/convert/proptypes/convert.ts +var Ia = fi(ja(), 1); + +// src/docs-tools/argTypes/convert/utils.ts +var Ca = /^['"]|['"]$/g, Em = /* @__PURE__ */ (/* unused pure expression or super */ null && (t((e) => e.replace(Ca, ""), "trimQuotes"))), jm = /* @__PURE__ */ (/* unused pure expression or super */ null && (t((e) => Ca.test(e), "includes\ +Quotes"))), ce = /* @__PURE__ */ (/* unused pure expression or super */ null && (t((e) => { + let r = Em(e); + return jm(e) || Number.isNaN(Number(r)) ? r : Number(r); +}, "parseLiteral"))); + +// src/docs-tools/argTypes/convert/proptypes/convert.ts +var Cm = /^\(.*\) => /, U = /* @__PURE__ */ (/* unused pure expression or super */ null && (t((e) => { + let { name: r, raw: n, computed: o, value: a } = e, s = {}; + switch (typeof n < "u" && (s.raw = n), r) { + case "enum": { + let p = o ? a : a.map((c) => ce(c.value)); + return { ...s, name: r, value: p }; + } + case "string": + case "number": + case "symbol": + return { ...s, name: r }; + case "func": + return { ...s, name: "function" }; + case "bool": + case "boolean": + return { ...s, name: "boolean" }; + case "arrayOf": + case "array": + return { ...s, name: "array", value: a && U(a) }; + case "object": + return { ...s, name: r }; + case "objectOf": + return { ...s, name: r, value: U(a) }; + case "shape": + case "exact": + let u = (0, Ia.default)(a, (p) => U(p)); + return { ...s, name: "object", value: u }; + case "union": + return { ...s, name: "union", value: a.map((p) => U(p)) }; + case "instanceOf": + case "element": + case "elementType": + default: { + if (r?.indexOf("|") > 0) + try { + let l = r.split("|").map((f) => JSON.parse(f)); + return { ...s, name: "enum", value: l }; + } catch { + } + let p = a ? `${r}(${a})` : r, c = Cm.test(r) ? "function" : "other"; + return { ...s, name: c, value: p }; + } } - return expected.call({}, actual) === true; -} -function getActual(fn) { - if (typeof fn !== 'function') { - throw new ERR_INVALID_ARG_TYPE('fn', 'Function', fn); +}, "convert"))); + +// src/docs-tools/argTypes/convert/typescript/convert.ts + +var Fm = /* @__PURE__ */ (/* unused pure expression or super */ null && (t((e) => { + switch (e.type) { + case "function": + return { name: "function" }; + case "object": + let r = {}; + return e.signature.properties.forEach((n) => { + r[n.key] = G(n.value); + }), { + name: "object", + value: r + }; + default: + throw new Im({ type: e, language: "Typescript" }); + } +}, "convertSig"))), G = /* @__PURE__ */ (/* unused pure expression or super */ null && (t((e) => { + let { name: r, raw: n } = e, o = {}; + switch (typeof n < "u" && (o.raw = n), e.name) { + case "string": + case "number": + case "symbol": + case "boolean": + return { ...o, name: r }; + case "Array": + return { ...o, name: "array", value: e.elements.map(G) }; + case "signature": + return { ...o, ...Fm(e) }; + case "union": + let a; + return e.elements?.every((s) => s.name === "literal") ? a = { + ...o, + name: "enum", + // @ts-expect-error fix types + value: e.elements?.map((s) => ce(s.value)) + } : a = { ...o, name: r, value: e.elements?.map(G) }, a; + case "intersection": + return { ...o, name: r, value: e.elements?.map(G) }; + default: + return { ...o, name: "other", value: r }; } +}, "convert"))); + +// src/docs-tools/argTypes/convert/index.ts +var le = /* @__PURE__ */ (/* unused pure expression or super */ null && (t((e) => { + let { type: r, tsType: n, flowType: o } = e; try { - fn(); - } catch (e) { + if (r != null) + return U(r); + if (n != null) + return G(n); + if (o != null) + return E(o); + } catch (a) { + console.error(a); + } + return null; +}, "convert"))); + +// src/docs-tools/argTypes/docgen/types.ts +var Nm = /* @__PURE__ */ ((a) => (a.JAVASCRIPT = "JavaScript", a.FLOW = "Flow", a.TYPESCRIPT = "TypeScript", a.UNKNOWN = "Unknown", a))(Nm || +{}); + +// src/docs-tools/argTypes/docgen/utils/defaultValue.ts +var Rm = ["null", "undefined"]; +function V(e) { + return Rm.some((r) => r === e); +} +t(V, "isDefaultValueBlacklisted"); + +// src/docs-tools/argTypes/docgen/utils/string.ts +var Fa = /* @__PURE__ */ t((e) => { + if (!e) + return ""; + if (typeof e == "string") return e; - } - return NO_EXCEPTION_SENTINEL; + throw new Error(`Description: expected string, got: ${JSON.stringify(e)}`); +}, "str"); + +// src/docs-tools/argTypes/docgen/utils/docgenInfo.ts +function Na(e) { + return !!e.__docgenInfo; +} +t(Na, "hasDocgen"); +function Ra(e) { + return e != null && Object.keys(e).length > 0; +} +t(Ra, "isValidDocgenSection"); +function La(e, r) { + return Na(e) ? e.__docgenInfo[r] : null; +} +t(La, "getDocgenSection"); +function Ma(e) { + return Na(e) ? Fa(e.__docgenInfo.description) : ""; +} +t(Ma, "getDocgenDescription"); + +// ../node_modules/comment-parser/es6/primitives.js +var b; +(function(e) { + e.start = "/**", e.nostart = "/***", e.delim = "*", e.end = "*/"; +})(b = b || (b = {})); + +// ../node_modules/comment-parser/es6/util.js +function Be(e) { + return /^\s+$/.test(e); +} +t(Be, "isSpace"); +function Ja(e) { + let r = e.match(/\r+$/); + return r == null ? ["", e] : [e.slice(-r[0].length), e.slice(0, -r[0].length)]; +} +t(Ja, "splitCR"); +function q(e) { + let r = e.match(/^\s+/); + return r == null ? ["", e] : [e.slice(0, r[0].length), e.slice(r[0].length)]; +} +t(q, "splitSpace"); +function Ua(e) { + return e.split(/\n/); +} +t(Ua, "splitLines"); +function Ga(e = {}) { + return Object.assign({ tag: "", name: "", type: "", optional: !1, description: "", problems: [], source: [] }, e); +} +t(Ga, "seedSpec"); +function ze(e = {}) { + return Object.assign({ start: "", delimiter: "", postDelimiter: "", tag: "", postTag: "", name: "", postName: "", type: "", postType: "", description: "", + end: "", lineEnd: "" }, e); +} +t(ze, "seedTokens"); + +// ../node_modules/comment-parser/es6/parser/block-parser.js +var Lm = /^@\S+/; +function ke({ fence: e = "```" } = {}) { + let r = Mm(e), n = /* @__PURE__ */ t((o, a) => r(o) ? !a : a, "toggleFence"); + return /* @__PURE__ */ t(function(a) { + let s = [[]], u = !1; + for (let p of a) + Lm.test(p.tokens.description) && !u ? s.push([p]) : s[s.length - 1].push(p), u = n(p.tokens.description, u); + return s; + }, "parseBlock"); +} +t(ke, "getParser"); +function Mm(e) { + return typeof e == "string" ? (r) => r.split(e).length % 2 === 0 : e; +} +t(Mm, "getFencer"); + +// ../node_modules/comment-parser/es6/parser/source-parser.js +function He({ startLine: e = 0, markers: r = b } = {}) { + let n = null, o = e; + return /* @__PURE__ */ t(function(s) { + let u = s, p = ze(); + if ([p.lineEnd, u] = Ja(u), [p.start, u] = q(u), n === null && u.startsWith(r.start) && !u.startsWith(r.nostart) && (n = [], p.delimiter = + u.slice(0, r.start.length), u = u.slice(r.start.length), [p.postDelimiter, u] = q(u)), n === null) + return o++, null; + let c = u.trimRight().endsWith(r.end); + if (p.delimiter === "" && u.startsWith(r.delim) && !u.startsWith(r.end) && (p.delimiter = r.delim, u = u.slice(r.delim.length), [p.postDelimiter, + u] = q(u)), c) { + let l = u.trimRight(); + p.end = u.slice(l.length - r.end.length), u = l.slice(0, -r.end.length); + } + if (p.description = u, n.push({ number: o, source: s, tokens: p }), o++, c) { + let l = n.slice(); + return n = null, l; + } + return null; + }, "parseSource"); } -function checkIsPromise(obj) { - // Accept native ES6 promises and promises that are implemented in a similar - // way. Do not accept thenables that use a function as `obj` and that have no - // `catch` handler. - - // TODO: thenables are checked up until they have the correct methods, - // but according to documentation, the `then` method should receive - // the `fulfill` and `reject` arguments as well or it may be never resolved. +t(He, "getParser"); - return isPromise(obj) || obj !== null && _typeof(obj) === 'object' && typeof obj.then === 'function' && typeof obj.catch === 'function'; +// ../node_modules/comment-parser/es6/parser/spec-parser.js +function Ke({ tokenizers: e }) { + return /* @__PURE__ */ t(function(n) { + var o; + let a = Ga({ source: n }); + for (let s of e) + if (a = s(a), !((o = a.problems[a.problems.length - 1]) === null || o === void 0) && o.critical) + break; + return a; + }, "parseSpec"); +} +t(Ke, "getParser"); + +// ../node_modules/comment-parser/es6/parser/tokenizers/tag.js +function fe() { + return (e) => { + let { tokens: r } = e.source[0], n = r.description.match(/\s*(@(\S+))(\s*)/); + return n === null ? (e.problems.push({ + code: "spec:tag:prefix", + message: 'tag should start with "@" symbol', + line: e.source[0].number, + critical: !0 + }), e) : (r.tag = n[1], r.postTag = n[3], r.description = r.description.slice(n[0].length), e.tag = n[2], e); + }; } -function waitForActual(promiseFn) { - return Promise.resolve().then(function () { - var resultPromise; - if (typeof promiseFn === 'function') { - // Return a rejected promise if `promiseFn` throws synchronously. - resultPromise = promiseFn(); - // Fail in case no promise is returned. - if (!checkIsPromise(resultPromise)) { - throw new ERR_INVALID_RETURN_VALUE('instance of Promise', 'promiseFn', resultPromise); - } - } else if (checkIsPromise(promiseFn)) { - resultPromise = promiseFn; - } else { - throw new ERR_INVALID_ARG_TYPE('promiseFn', ['Function', 'Promise'], promiseFn); +t(fe, "tagTokenizer"); + +// ../node_modules/comment-parser/es6/parser/tokenizers/type.js +function me(e = "compact") { + let r = Um(e); + return (n) => { + let o = 0, a = []; + for (let [p, { tokens: c }] of n.source.entries()) { + let l = ""; + if (p === 0 && c.description[0] !== "{") + return n; + for (let f of c.description) + if (f === "{" && o++, f === "}" && o--, l += f, o === 0) + break; + if (a.push([c, l]), o === 0) + break; } - return Promise.resolve().then(function () { - return resultPromise; - }).then(function () { - return NO_EXCEPTION_SENTINEL; - }).catch(function (e) { - return e; - }); - }); + if (o !== 0) + return n.problems.push({ + code: "spec:type:unpaired-curlies", + message: "unpaired curlies", + line: n.source[0].number, + critical: !0 + }), n; + let s = [], u = a[0][0].postDelimiter.length; + for (let [p, [c, l]] of a.entries()) + c.type = l, p > 0 && (c.type = c.postDelimiter.slice(u) + l, c.postDelimiter = c.postDelimiter.slice(0, u)), [c.postType, c.description] = + q(c.description.slice(l.length)), s.push(c.type); + return s[0] = s[0].slice(1), s[s.length - 1] = s[s.length - 1].slice(0, -1), n.type = r(s), n; + }; } -function expectsError(stackStartFn, actual, error, message) { - if (typeof error === 'string') { - if (arguments.length === 4) { - throw new ERR_INVALID_ARG_TYPE('error', ['Object', 'Error', 'Function', 'RegExp'], error); - } - if (_typeof(actual) === 'object' && actual !== null) { - if (actual.message === error) { - throw new ERR_AMBIGUOUS_ARGUMENT('error/message', "The error message \"".concat(actual.message, "\" is identical to the message.")); - } - } else if (actual === error) { - throw new ERR_AMBIGUOUS_ARGUMENT('error/message', "The error \"".concat(actual, "\" is identical to the message.")); - } - message = error; - error = undefined; - } else if (error != null && _typeof(error) !== 'object' && typeof error !== 'function') { - throw new ERR_INVALID_ARG_TYPE('error', ['Object', 'Error', 'Function', 'RegExp'], error); - } - if (actual === NO_EXCEPTION_SENTINEL) { - var details = ''; - if (error && error.name) { - details += " (".concat(error.name, ")"); - } - details += message ? ": ".concat(message) : '.'; - var fnType = stackStartFn.name === 'rejects' ? 'rejection' : 'exception'; - innerFail({ - actual: undefined, - expected: error, - operator: stackStartFn.name, - message: "Missing expected ".concat(fnType).concat(details), - stackStartFn: stackStartFn - }); - } - if (error && !expectedException(actual, error, message, stackStartFn)) { - throw actual; - } -} -function expectsNoError(stackStartFn, actual, error, message) { - if (actual === NO_EXCEPTION_SENTINEL) return; - if (typeof error === 'string') { - message = error; - error = undefined; - } - if (!error || expectedException(actual, error)) { - var details = message ? ": ".concat(message) : '.'; - var fnType = stackStartFn.name === 'doesNotReject' ? 'rejection' : 'exception'; - innerFail({ - actual: actual, - expected: error, - operator: stackStartFn.name, - message: "Got unwanted ".concat(fnType).concat(details, "\n") + "Actual message: \"".concat(actual && actual.message, "\""), - stackStartFn: stackStartFn - }); - } - throw actual; +t(me, "typeTokenizer"); +var Jm = /* @__PURE__ */ t((e) => e.trim(), "trim"); +function Um(e) { + return e === "compact" ? (r) => r.map(Jm).join("") : e === "preserve" ? (r) => r.join(` +`) : e; +} +t(Um, "getJoiner"); + +// ../node_modules/comment-parser/es6/parser/tokenizers/name.js +var Gm = /* @__PURE__ */ t((e) => e && e.startsWith('"') && e.endsWith('"'), "isQuoted"); +function ge() { + let e = /* @__PURE__ */ t((r, { tokens: n }, o) => n.type === "" ? r : o, "typeEnd"); + return (r) => { + let { tokens: n } = r.source[r.source.reduce(e, 0)], o = n.description.trimLeft(), a = o.split('"'); + if (a.length > 1 && a[0] === "" && a.length % 2 === 1) + return r.name = a[1], n.name = `"${a[1]}"`, [n.postName, n.description] = q(o.slice(n.name.length)), r; + let s = 0, u = "", p = !1, c; + for (let f of o) { + if (s === 0 && Be(f)) + break; + f === "[" && s++, f === "]" && s--, u += f; + } + if (s !== 0) + return r.problems.push({ + code: "spec:name:unpaired-brackets", + message: "unpaired brackets", + line: r.source[0].number, + critical: !0 + }), r; + let l = u; + if (u[0] === "[" && u[u.length - 1] === "]") { + p = !0, u = u.slice(1, -1); + let f = u.split("="); + if (u = f[0].trim(), f[1] !== void 0 && (c = f.slice(1).join("=").trim()), u === "") + return r.problems.push({ + code: "spec:name:empty-name", + message: "empty name", + line: r.source[0].number, + critical: !0 + }), r; + if (c === "") + return r.problems.push({ + code: "spec:name:empty-default", + message: "empty default value", + line: r.source[0].number, + critical: !0 + }), r; + if (!Gm(c) && /=(?!>)/.test(c)) + return r.problems.push({ + code: "spec:name:invalid-default", + message: "invalid default value syntax", + line: r.source[0].number, + critical: !0 + }), r; + } + return r.optional = p, r.name = u, n.name = l, c !== void 0 && (r.default = c), [n.postName, n.description] = q(o.slice(n.name.length)), + r; + }; } -assert.throws = function throws(promiseFn) { - for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { - args[_key2 - 1] = arguments[_key2]; - } - expectsError.apply(void 0, [throws, getActual(promiseFn)].concat(args)); -}; -assert.rejects = function rejects(promiseFn) { - for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) { - args[_key3 - 1] = arguments[_key3]; - } - return waitForActual(promiseFn).then(function (result) { - return expectsError.apply(void 0, [rejects, result].concat(args)); - }); -}; -assert.doesNotThrow = function doesNotThrow(fn) { - for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) { - args[_key4 - 1] = arguments[_key4]; - } - expectsNoError.apply(void 0, [doesNotThrow, getActual(fn)].concat(args)); -}; -assert.doesNotReject = function doesNotReject(fn) { - for (var _len5 = arguments.length, args = new Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) { - args[_key5 - 1] = arguments[_key5]; - } - return waitForActual(fn).then(function (result) { - return expectsNoError.apply(void 0, [doesNotReject, result].concat(args)); - }); -}; -assert.ifError = function ifError(err) { - if (err !== null && err !== undefined) { - var message = 'ifError got unwanted exception: '; - if (_typeof(err) === 'object' && typeof err.message === 'string') { - if (err.message.length === 0 && err.constructor) { - message += err.constructor.name; - } else { - message += err.message; - } - } else { - message += inspect(err); - } - var newErr = new AssertionError({ - actual: err, - expected: null, - operator: 'ifError', - message: message, - stackStartFn: ifError - }); - - // Make sure we actually have a stack trace! - var origStack = err.stack; - if (typeof origStack === 'string') { - // This will remove any duplicated frames from the error frames taken - // from within `ifError` and add the original error frames to the newly - // created ones. - var tmp2 = origStack.split('\n'); - tmp2.shift(); - // Filter all frames existing in err.stack. - var tmp1 = newErr.stack.split('\n'); - for (var i = 0; i < tmp2.length; i++) { - // Find the first occurrence of the frame. - var pos = tmp1.indexOf(tmp2[i]); - if (pos !== -1) { - // Only keep new frames. - tmp1 = tmp1.slice(0, pos); - break; - } - } - newErr.stack = "".concat(tmp1.join('\n'), "\n").concat(tmp2.join('\n')); +t(ge, "nameTokenizer"); + +// ../node_modules/comment-parser/es6/parser/tokenizers/description.js +function ye(e = "compact", r = b) { + let n = $e(e); + return (o) => (o.description = n(o.source, r), o); +} +t(ye, "descriptionTokenizer"); +function $e(e) { + return e === "compact" ? Vm : e === "preserve" ? km : e; +} +t($e, "getJoiner"); +function Vm(e, r = b) { + return e.map(({ tokens: { description: n } }) => n.trim()).filter((n) => n !== "").join(" "); +} +t(Vm, "compactJoiner"); +var Bm = /* @__PURE__ */ t((e, { tokens: r }, n) => r.type === "" ? e : n, "lineNo"), zm = /* @__PURE__ */ t(({ tokens: e }) => (e.delimiter === +"" ? e.start : e.postDelimiter.slice(1)) + e.description, "getDescription"); +function km(e, r = b) { + if (e.length === 0) + return ""; + e[0].tokens.description === "" && e[0].tokens.delimiter === r.start && (e = e.slice(1)); + let n = e[e.length - 1]; + return n !== void 0 && n.tokens.description === "" && n.tokens.end.endsWith(r.end) && (e = e.slice(0, -1)), e = e.slice(e.reduce(Bm, 0)), e. + map(zm).join(` +`); +} +t(km, "preserveJoiner"); + +// ../node_modules/comment-parser/es6/parser/index.js +function We({ startLine: e = 0, fence: r = "```", spacing: n = "compact", markers: o = b, tokenizers: a = [ + fe(), + me(n), + ge(), + ye(n) +] } = {}) { + if (e < 0 || e % 1 > 0) + throw new Error("Invalid startLine"); + let s = He({ startLine: e, markers: o }), u = ke({ fence: r }), p = Ke({ tokenizers: a }), c = $e(n); + return function(l) { + let f = []; + for (let d of Ua(l)) { + let g = s(d); + if (g === null) + continue; + let x = u(g), h = x.slice(1).map(p); + f.push({ + description: c(x[0], o), + tags: h, + source: g, + problems: h.reduce((T, v) => T.concat(v.problems), []) + }); } - throw newErr; - } -}; - -// Currently in sync with Node.js lib/assert.js -// https://github.com/nodejs/node/commit/2a871df3dfb8ea663ef5e1f8f62701ec51384ecb -function internalMatch(string, regexp, message, fn, fnName) { - if (!isRegExp(regexp)) { - throw new ERR_INVALID_ARG_TYPE('regexp', 'RegExp', regexp); - } - var match = fnName === 'match'; - if (typeof string !== 'string' || RegExpPrototypeTest(regexp, string) !== match) { - if (message instanceof Error) { - throw message; - } - var generatedMessage = !message; - - // 'The input was expected to not match the regular expression ' + - message = message || (typeof string !== 'string' ? 'The "string" argument must be of type string. Received type ' + "".concat(_typeof(string), " (").concat(inspect(string), ")") : (match ? 'The input did not match the regular expression ' : 'The input was expected to not match the regular expression ') + "".concat(inspect(regexp), ". Input:\n\n").concat(inspect(string), "\n")); - var err = new AssertionError({ - actual: string, - expected: regexp, - message: message, - operator: fnName, - stackStartFn: fn - }); - err.generatedMessage = generatedMessage; - throw err; - } + return f; + }; } -assert.match = function match(string, regexp, message) { - internalMatch(string, regexp, message, match, 'match'); -}; -assert.doesNotMatch = function doesNotMatch(string, regexp, message) { - internalMatch(string, regexp, message, doesNotMatch, 'doesNotMatch'); +t(We, "getParser"); + +// ../node_modules/comment-parser/es6/stringifier/index.js +function Hm(e) { + return e.start + e.delimiter + e.postDelimiter + e.tag + e.postTag + e.type + e.postType + e.name + e.postName + e.description + e.end + e. + lineEnd; +} +t(Hm, "join"); +function Ye() { + return (e) => e.source.map(({ tokens: r }) => Hm(r)).join(` +`); +} +t(Ye, "getStringifier"); + +// ../node_modules/comment-parser/es6/stringifier/inspect.js +var Km = { + line: 0, + start: 0, + delimiter: 0, + postDelimiter: 0, + tag: 0, + postTag: 0, + name: 0, + postName: 0, + type: 0, + postType: 0, + description: 0, + end: 0, + lineEnd: 0 }; +var Hx = Object.keys(Km); -// Expose a strict only variant of assert -function strict() { - for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) { - args[_key6] = arguments[_key6]; - } - innerOk.apply(void 0, [strict, args.length].concat(args)); +// ../node_modules/comment-parser/es6/index.js +function Va(e, r = {}) { + return We(r)(e); } -assert.strict = objectAssign(strict, assert, { - equal: assert.strictEqual, - deepEqual: assert.deepStrictEqual, - notEqual: assert.notStrictEqual, - notDeepEqual: assert.notDeepStrictEqual -}); -assert.strict.strict = assert.strict; - -/***/ }), - -/***/ "../../../node_modules/assert/build/internal/assert/assertion_error.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +t(Va, "parse"); +var mb = Ye(); -"use strict"; -/* provided dependency */ var process = __webpack_require__("../../../node_modules/process/browser.js"); -// Currently in sync with Node.js lib/internal/assert/assertion_error.js -// https://github.com/nodejs/node/commit/0817840f775032169ddd70c85ac059f18ffcc81c - - - -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } -function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); } -function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); } -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; } } -function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -var _require = __webpack_require__("../../../node_modules/util/util.js"), - inspect = _require.inspect; -var _require2 = __webpack_require__("../../../node_modules/assert/build/internal/errors.js"), - ERR_INVALID_ARG_TYPE = _require2.codes.ERR_INVALID_ARG_TYPE; - -// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith -function endsWith(str, search, this_len) { - if (this_len === undefined || this_len > str.length) { - this_len = str.length; - } - return str.substring(this_len - search.length, this_len) === search; -} - -// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/repeat -function repeat(str, count) { - count = Math.floor(count); - if (str.length == 0 || count == 0) return ''; - var maxCount = str.length * count; - count = Math.floor(Math.log(count) / Math.log(2)); - while (count) { - str += str; - count--; - } - str += str.substring(0, maxCount - str.length); - return str; -} -var blue = ''; -var green = ''; -var red = ''; -var white = ''; -var kReadableOperator = { - deepStrictEqual: 'Expected values to be strictly deep-equal:', - strictEqual: 'Expected values to be strictly equal:', - strictEqualObject: 'Expected "actual" to be reference-equal to "expected":', - deepEqual: 'Expected values to be loosely deep-equal:', - equal: 'Expected values to be loosely equal:', - notDeepStrictEqual: 'Expected "actual" not to be strictly deep-equal to:', - notStrictEqual: 'Expected "actual" to be strictly unequal to:', - notStrictEqualObject: 'Expected "actual" not to be reference-equal to "expected":', - notDeepEqual: 'Expected "actual" not to be loosely deep-equal to:', - notEqual: 'Expected "actual" to be loosely unequal to:', - notIdentical: 'Values identical but not reference-equal:' -}; +// src/docs-tools/argTypes/jsdocParser.ts -// Comparing short primitives should just show === / !== instead of using the -// diff. -var kMaxShortLength = 10; -function copyError(source) { - var keys = Object.keys(source); - var target = Object.create(Object.getPrototypeOf(source)); - keys.forEach(function (key) { - target[key] = source[key]; - }); - Object.defineProperty(target, 'message', { - value: source.message - }); - return target; -} -function inspectValue(val) { - // The util.inspect default values could be changed. This makes sure the - // error messages contain the necessary information nevertheless. - return inspect(val, { - compact: false, - customInspect: false, - depth: 1000, - maxArrayLength: Infinity, - // Assert compares only enumerable properties (with a few exceptions). - showHidden: false, - // Having a long line as error is better than wrapping the line for - // comparison for now. - // TODO(BridgeAR): `breakLength` should be limited as soon as soon as we - // have meta information about the inspected properties (i.e., know where - // in what line the property starts and ends). - breakLength: Infinity, - // Assert does not detect proxies currently. - showProxy: false, - sorted: true, - // Inspect getters as we also check them when comparing entries. - getters: true - }); +function Xm(e) { + return e != null && e.includes("@"); } -function createErrDiff(actual, expected, operator) { - var other = ''; - var res = ''; - var lastPos = 0; - var end = ''; - var skipped = false; - var actualInspected = inspectValue(actual); - var actualLines = actualInspected.split('\n'); - var expectedLines = inspectValue(expected).split('\n'); - var i = 0; - var indicator = ''; - - // In case both values are objects explicitly mark them as not reference equal - // for the `strictEqual` operator. - if (operator === 'strictEqual' && _typeof(actual) === 'object' && _typeof(expected) === 'object' && actual !== null && expected !== null) { - operator = 'strictEqualObject'; - } - - // If "actual" and "expected" fit on a single line and they are not strictly - // equal, check further special handling. - if (actualLines.length === 1 && expectedLines.length === 1 && actualLines[0] !== expectedLines[0]) { - var inputLength = actualLines[0].length + expectedLines[0].length; - // If the character length of "actual" and "expected" together is less than - // kMaxShortLength and if neither is an object and at least one of them is - // not `zero`, use the strict equal comparison to visualize the output. - if (inputLength <= kMaxShortLength) { - if ((_typeof(actual) !== 'object' || actual === null) && (_typeof(expected) !== 'object' || expected === null) && (actual !== 0 || expected !== 0)) { - // -0 === +0 - return "".concat(kReadableOperator[operator], "\n\n") + "".concat(actualLines[0], " !== ").concat(expectedLines[0], "\n"); - } - } else if (operator !== 'strictEqualObject') { - // If the stderr is a tty and the input length is lower than the current - // columns per line, add a mismatch indicator below the output. If it is - // not a tty, use a default value of 80 characters. - var maxLength = process.stderr && process.stderr.isTTY ? process.stderr.columns : 80; - if (inputLength < maxLength) { - while (actualLines[0][i] === expectedLines[0][i]) { - i++; - } - // Ignore the first characters. - if (i > 2) { - // Add position indicator for the first mismatch in case it is a - // single line and the input length is less than the column length. - indicator = "\n ".concat(repeat(' ', i), "^"); - i = 0; - } - } - } - } - - // Remove all ending lines that match (this optimizes the output for - // readability by reducing the number of total changed lines). - var a = actualLines[actualLines.length - 1]; - var b = expectedLines[expectedLines.length - 1]; - while (a === b) { - if (i++ < 2) { - end = "\n ".concat(a).concat(end); - } else { - other = a; - } - actualLines.pop(); - expectedLines.pop(); - if (actualLines.length === 0 || expectedLines.length === 0) break; - a = actualLines[actualLines.length - 1]; - b = expectedLines[expectedLines.length - 1]; - } - var maxLines = Math.max(actualLines.length, expectedLines.length); - // Strict equal with identical objects that are not identical by reference. - // E.g., assert.deepStrictEqual({ a: Symbol() }, { a: Symbol() }) - if (maxLines === 0) { - // We have to get the result again. The lines were all removed before. - var _actualLines = actualInspected.split('\n'); - - // Only remove lines in case it makes sense to collapse those. - // TODO: Accept env to always show the full error. - if (_actualLines.length > 30) { - _actualLines[26] = "".concat(blue, "...").concat(white); - while (_actualLines.length > 27) { - _actualLines.pop(); - } - } - return "".concat(kReadableOperator.notIdentical, "\n\n").concat(_actualLines.join('\n'), "\n"); - } - if (i > 3) { - end = "\n".concat(blue, "...").concat(white).concat(end); - skipped = true; - } - if (other !== '') { - end = "\n ".concat(other).concat(end); - other = ''; - } - var printedLines = 0; - var msg = kReadableOperator[operator] + "\n".concat(green, "+ actual").concat(white, " ").concat(red, "- expected").concat(white); - var skippedMsg = " ".concat(blue, "...").concat(white, " Lines skipped"); - for (i = 0; i < maxLines; i++) { - // Only extra expected lines exist - var cur = i - lastPos; - if (actualLines.length < i + 1) { - // If the last diverging line is more than one line above and the - // current line is at least line three, add some of the former lines and - // also add dots to indicate skipped entries. - if (cur > 1 && i > 2) { - if (cur > 4) { - res += "\n".concat(blue, "...").concat(white); - skipped = true; - } else if (cur > 3) { - res += "\n ".concat(expectedLines[i - 2]); - printedLines++; - } - res += "\n ".concat(expectedLines[i - 1]); - printedLines++; - } - // Mark the current line as the last diverging one. - lastPos = i; - // Add the expected line to the cache. - other += "\n".concat(red, "-").concat(white, " ").concat(expectedLines[i]); - printedLines++; - // Only extra actual lines exist - } else if (expectedLines.length < i + 1) { - // If the last diverging line is more than one line above and the - // current line is at least line three, add some of the former lines and - // also add dots to indicate skipped entries. - if (cur > 1 && i > 2) { - if (cur > 4) { - res += "\n".concat(blue, "...").concat(white); - skipped = true; - } else if (cur > 3) { - res += "\n ".concat(actualLines[i - 2]); - printedLines++; - } - res += "\n ".concat(actualLines[i - 1]); - printedLines++; - } - // Mark the current line as the last diverging one. - lastPos = i; - // Add the actual line to the result. - res += "\n".concat(green, "+").concat(white, " ").concat(actualLines[i]); - printedLines++; - // Lines diverge - } else { - var expectedLine = expectedLines[i]; - var actualLine = actualLines[i]; - // If the lines diverge, specifically check for lines that only diverge by - // a trailing comma. In that case it is actually identical and we should - // mark it as such. - var divergingLines = actualLine !== expectedLine && (!endsWith(actualLine, ',') || actualLine.slice(0, -1) !== expectedLine); - // If the expected line has a trailing comma but is otherwise identical, - // add a comma at the end of the actual line. Otherwise the output could - // look weird as in: - // - // [ - // 1 // No comma at the end! - // + 2 - // ] - // - if (divergingLines && endsWith(expectedLine, ',') && expectedLine.slice(0, -1) === actualLine) { - divergingLines = false; - actualLine += ','; - } - if (divergingLines) { - // If the last diverging line is more than one line above and the - // current line is at least line three, add some of the former lines and - // also add dots to indicate skipped entries. - if (cur > 1 && i > 2) { - if (cur > 4) { - res += "\n".concat(blue, "...").concat(white); - skipped = true; - } else if (cur > 3) { - res += "\n ".concat(actualLines[i - 2]); - printedLines++; - } - res += "\n ".concat(actualLines[i - 1]); - printedLines++; - } - // Mark the current line as the last diverging one. - lastPos = i; - // Add the actual line to the result and cache the expected diverging - // line so consecutive diverging lines show up as +++--- and not +-+-+-. - res += "\n".concat(green, "+").concat(white, " ").concat(actualLine); - other += "\n".concat(red, "-").concat(white, " ").concat(expectedLine); - printedLines += 2; - // Lines are identical - } else { - // Add all cached information to the result before adding other things - // and reset the cache. - res += other; - other = ''; - // If the last diverging line is exactly one line above or if it is the - // very first line, add the line to the result. - if (cur === 1 || i === 0) { - res += "\n ".concat(actualLine); - printedLines++; - } - } - } - // Inspected object to big (Show ~20 rows max) - if (printedLines > 20 && i < maxLines - 2) { - return "".concat(msg).concat(skippedMsg, "\n").concat(res, "\n").concat(blue, "...").concat(white).concat(other, "\n") + "".concat(blue, "...").concat(white); - } - } - return "".concat(msg).concat(skipped ? skippedMsg : '', "\n").concat(res).concat(other).concat(end).concat(indicator); -} -var AssertionError = /*#__PURE__*/function (_Error, _inspect$custom) { - _inherits(AssertionError, _Error); - var _super = _createSuper(AssertionError); - function AssertionError(options) { - var _this; - _classCallCheck(this, AssertionError); - if (_typeof(options) !== 'object' || options === null) { - throw new ERR_INVALID_ARG_TYPE('options', 'Object', options); - } - var message = options.message, - operator = options.operator, - stackStartFn = options.stackStartFn; - var actual = options.actual, - expected = options.expected; - var limit = Error.stackTraceLimit; - Error.stackTraceLimit = 0; - if (message != null) { - _this = _super.call(this, String(message)); - } else { - if (process.stderr && process.stderr.isTTY) { - // Reset on each call to make sure we handle dynamically set environment - // variables correct. - if (process.stderr && process.stderr.getColorDepth && process.stderr.getColorDepth() !== 1) { - blue = "\x1B[34m"; - green = "\x1B[32m"; - white = "\x1B[39m"; - red = "\x1B[31m"; - } else { - blue = ''; - green = ''; - white = ''; - red = ''; - } - } - // Prevent the error stack from being visible by duplicating the error - // in a very close way to the original in case both sides are actually - // instances of Error. - if (_typeof(actual) === 'object' && actual !== null && _typeof(expected) === 'object' && expected !== null && 'stack' in actual && actual instanceof Error && 'stack' in expected && expected instanceof Error) { - actual = copyError(actual); - expected = copyError(expected); - } - if (operator === 'deepStrictEqual' || operator === 'strictEqual') { - _this = _super.call(this, createErrDiff(actual, expected, operator)); - } else if (operator === 'notDeepStrictEqual' || operator === 'notStrictEqual') { - // In case the objects are equal but the operator requires unequal, show - // the first object and say A equals B - var base = kReadableOperator[operator]; - var res = inspectValue(actual).split('\n'); - - // In case "actual" is an object, it should not be reference equal. - if (operator === 'notStrictEqual' && _typeof(actual) === 'object' && actual !== null) { - base = kReadableOperator.notStrictEqualObject; - } - - // Only remove lines in case it makes sense to collapse those. - // TODO: Accept env to always show the full error. - if (res.length > 30) { - res[26] = "".concat(blue, "...").concat(white); - while (res.length > 27) { - res.pop(); - } - } - - // Only print a single input. - if (res.length === 1) { - _this = _super.call(this, "".concat(base, " ").concat(res[0])); - } else { - _this = _super.call(this, "".concat(base, "\n\n").concat(res.join('\n'), "\n")); - } - } else { - var _res = inspectValue(actual); - var other = ''; - var knownOperators = kReadableOperator[operator]; - if (operator === 'notDeepEqual' || operator === 'notEqual') { - _res = "".concat(kReadableOperator[operator], "\n\n").concat(_res); - if (_res.length > 1024) { - _res = "".concat(_res.slice(0, 1021), "..."); - } - } else { - other = "".concat(inspectValue(expected)); - if (_res.length > 512) { - _res = "".concat(_res.slice(0, 509), "..."); +t(Xm, "containsJsDoc"); +function Qm(e) { + let o = `/** +` + (e ?? "").split(` +`).map((s) => ` * ${s}`).join(` +`) + ` +*/`, a = Va(o, { + spacing: "preserve" + }); + if (!a || a.length === 0) + throw new Error("Cannot parse JSDoc tags."); + return a[0]; +} +t(Qm, "parse"); +var Zm = { + tags: ["param", "arg", "argument", "returns", "ignore", "deprecated"] +}, Ba = /* @__PURE__ */ t((e, r = Zm) => { + if (!Xm(e)) + return { + includesJsDoc: !1, + ignore: !1 + }; + let n = Qm(e), o = eg(n, r.tags); + return o.ignore ? { + includesJsDoc: !0, + ignore: !0 + } : { + includesJsDoc: !0, + ignore: !1, + // Always use the parsed description to ensure JSDoc is removed from the description. + description: n.description.trim(), + extractedTags: o + }; +}, "parseJsDoc"); +function eg(e, r) { + let n = { + params: null, + deprecated: null, + returns: null, + ignore: !1 + }; + for (let o of e.tags) + if (!(r !== void 0 && !r.includes(o.tag))) + if (o.tag === "ignore") { + n.ignore = !0; + break; + } else + switch (o.tag) { + case "param": + case "arg": + case "argument": { + let a = tg(o); + a != null && (n.params == null && (n.params = []), n.params.push(a)); + break; } - if (other.length > 512) { - other = "".concat(other.slice(0, 509), "..."); + case "deprecated": { + let a = ng(o); + a != null && (n.deprecated = a); + break; } - if (operator === 'deepEqual' || operator === 'equal') { - _res = "".concat(knownOperators, "\n\n").concat(_res, "\n\nshould equal\n\n"); - } else { - other = " ".concat(operator, " ").concat(other); + case "returns": { + let a = og(o); + a != null && (n.returns = a); + break; } + default: + break; } - _this = _super.call(this, "".concat(_res).concat(other)); - } - } - Error.stackTraceLimit = limit; - _this.generatedMessage = !message; - Object.defineProperty(_assertThisInitialized(_this), 'name', { - value: 'AssertionError [ERR_ASSERTION]', - enumerable: false, - writable: true, - configurable: true - }); - _this.code = 'ERR_ASSERTION'; - _this.actual = actual; - _this.expected = expected; - _this.operator = operator; - if (Error.captureStackTrace) { - // eslint-disable-next-line no-restricted-syntax - Error.captureStackTrace(_assertThisInitialized(_this), stackStartFn); - } - // Create error message including the error code in the name. - _this.stack; - // Reset the name. - _this.name = 'AssertionError'; - return _possibleConstructorReturn(_this); - } - _createClass(AssertionError, [{ - key: "toString", - value: function toString() { - return "".concat(this.name, " [").concat(this.code, "]: ").concat(this.message); - } - }, { - key: _inspect$custom, - value: function value(recurseTimes, ctx) { - // This limits the `actual` and `expected` property default inspection to - // the minimum depth. Otherwise those values would be too verbose compared - // to the actual error message which contains a combined view of these two - // input values. - return inspect(this, _objectSpread(_objectSpread({}, ctx), {}, { - customInspect: false, - depth: 0 - })); - } - }]); - return AssertionError; -}( /*#__PURE__*/_wrapNativeSuper(Error), inspect.custom); -module.exports = AssertionError; - -/***/ }), - -/***/ "../../../node_modules/assert/build/internal/errors.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -// Currently in sync with Node.js lib/internal/errors.js -// https://github.com/nodejs/node/commit/3b044962c48fe313905877a96b5d0894a5404f6f - -/* eslint node-core/documented-errors: "error" */ -/* eslint node-core/alphabetize-errors: "error" */ -/* eslint node-core/prefer-util-format-errors: "error" */ - - - -// The whole point behind this internal module is to allow Node.js to no -// longer be forced to treat every error message change as a semver-major -// change. The NodeError classes here all expose a `code` property whose -// value statically and permanently identifies the error. While the error -// message may change, the code should not. -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } -function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } -var codes = {}; - -// Lazy loaded -var assert; -var util; -function createErrorType(code, message, Base) { - if (!Base) { - Base = Error; - } - function getMessage(arg1, arg2, arg3) { - if (typeof message === 'string') { - return message; - } else { - return message(arg1, arg2, arg3); - } - } - var NodeError = /*#__PURE__*/function (_Base) { - _inherits(NodeError, _Base); - var _super = _createSuper(NodeError); - function NodeError(arg1, arg2, arg3) { - var _this; - _classCallCheck(this, NodeError); - _this = _super.call(this, getMessage(arg1, arg2, arg3)); - _this.code = code; - return _this; - } - return _createClass(NodeError); - }(Base); - codes[code] = NodeError; -} - -// https://github.com/nodejs/node/blob/v10.8.0/lib/internal/errors.js -function oneOf(expected, thing) { - if (Array.isArray(expected)) { - var len = expected.length; - expected = expected.map(function (i) { - return String(i); - }); - if (len > 2) { - return "one of ".concat(thing, " ").concat(expected.slice(0, len - 1).join(', '), ", or ") + expected[len - 1]; - } else if (len === 2) { - return "one of ".concat(thing, " ").concat(expected[0], " or ").concat(expected[1]); - } else { - return "of ".concat(thing, " ").concat(expected[0]); - } - } else { - return "of ".concat(thing, " ").concat(String(expected)); + return n; +} +t(eg, "extractJsDocTags"); +function rg(e) { + return e.replace(/[\.-]$/, ""); +} +t(rg, "normaliseParamName"); +function tg(e) { + if (!e.name || e.name === "-") + return null; + let r = Ha(e.type); + return { + name: e.name, + type: r, + description: ka(e.description), + getPrettyName: /* @__PURE__ */ t(() => rg(e.name), "getPrettyName"), + getTypeName: /* @__PURE__ */ t(() => r ? Ka(r) : null, "getTypeName") + }; +} +t(tg, "extractParam"); +function ng(e) { + return e.name ? za(e.name, e.description) : null; +} +t(ng, "extractDeprecated"); +function za(e, r) { + let n = e === "" ? r : `${e} ${r}`; + return ka(n); +} +t(za, "joinNameAndDescription"); +function ka(e) { + let r = e.replace(/^- /g, "").trim(); + return r === "" ? null : r; +} +t(ka, "normaliseDescription"); +function og(e) { + let r = Ha(e.type); + return r ? { + type: r, + description: za(e.name, e.description), + getTypeName: /* @__PURE__ */ t(() => Ka(r), "getTypeName") + } : null; +} +t(og, "extractReturns"); +var _ = (0,jsdoc_type_pratt_parser__WEBPACK_IMPORTED_MODULE_1__.stringifyRules)(), ag = _.JsdocTypeObject; +_.JsdocTypeAny = () => "any"; +_.JsdocTypeObject = (e, r) => `(${ag(e, r)})`; +_.JsdocTypeOptional = (e, r) => r(e.element); +_.JsdocTypeNullable = (e, r) => r(e.element); +_.JsdocTypeNotNullable = (e, r) => r(e.element); +_.JsdocTypeUnion = (e, r) => e.elements.map(r).join("|"); +function Ha(e) { + try { + return (0,jsdoc_type_pratt_parser__WEBPACK_IMPORTED_MODULE_1__.parse)(e, "typescript"); + } catch { + return null; } } +t(Ha, "extractType"); +function Ka(e) { + return (0,jsdoc_type_pratt_parser__WEBPACK_IMPORTED_MODULE_1__.transform)(_, e); +} +t(Ka, "extractTypeName"); -// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith -function startsWith(str, search, pos) { - return str.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search; +// src/docs-tools/argTypes/utils.ts +var Db = 90, Pb = 50; +function Qe(e) { + return e.length > 90; +} +t(Qe, "isTooLongForTypeSummary"); +function $a(e) { + return e.length > 50; } +t($a, "isTooLongForDefaultValueSummary"); +function y(e, r) { + return e === r ? { summary: e } : { summary: e, detail: r }; +} +t(y, "createSummaryValue"); +var qb = /* @__PURE__ */ (/* unused pure expression or super */ null && (t((e) => e.replace(/\\r\\n/g, "\\n"), "normalizeNewlines"))); -// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith -function endsWith(str, search, this_len) { - if (this_len === undefined || this_len > str.length) { - this_len = str.length; +// src/docs-tools/argTypes/docgen/flow/createDefaultValue.ts +function Wa(e, r) { + if (e != null) { + let { value: n } = e; + if (!V(n)) + return $a(n) ? y(r?.name, n) : y(n); } - return str.substring(this_len - search.length, this_len) === search; + return null; } +t(Wa, "createDefaultValue"); -// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes -function includes(str, search, start) { - if (typeof start !== 'number') { - start = 0; - } - if (start + search.length > str.length) { - return false; - } else { - return str.indexOf(search, start) !== -1; +// src/docs-tools/argTypes/docgen/flow/createType.ts +function Ya({ name: e, value: r, elements: n, raw: o }) { + return r ?? (n != null ? n.map(Ya).join(" | ") : o ?? e); +} +t(Ya, "generateUnionElement"); +function ig({ name: e, raw: r, elements: n }) { + return n != null ? y(n.map(Ya).join(" | ")) : r != null ? y(r.replace(/^\|\s*/, "")) : y(e); +} +t(ig, "generateUnion"); +function sg({ type: e, raw: r }) { + return r != null ? y(r) : y(e); +} +t(sg, "generateFuncSignature"); +function ug({ type: e, raw: r }) { + return r != null ? Qe(r) ? y(e, r) : y(r) : y(e); +} +t(ug, "generateObjectSignature"); +function pg(e) { + let { type: r } = e; + return r === "object" ? ug(e) : sg(e); +} +t(pg, "generateSignature"); +function cg({ name: e, raw: r }) { + return r != null ? Qe(r) ? y(e, r) : y(r) : y(e); +} +t(cg, "generateDefault"); +function Xa(e) { + if (e == null) + return null; + switch (e.name) { + case "union": + return ig(e); + case "signature": + return pg(e); + default: + return cg(e); } } -createErrorType('ERR_AMBIGUOUS_ARGUMENT', 'The "%s" argument is ambiguous. %s', TypeError); -createErrorType('ERR_INVALID_ARG_TYPE', function (name, expected, actual) { - if (assert === undefined) assert = __webpack_require__("../../../node_modules/assert/build/assert.js"); - assert(typeof name === 'string', "'name' must be a string"); +t(Xa, "createType"); - // determiner: 'must be' or 'must not be' - var determiner; - if (typeof expected === 'string' && startsWith(expected, 'not ')) { - determiner = 'must not be'; - expected = expected.replace(/^not /, ''); - } else { - determiner = 'must be'; - } - var msg; - if (endsWith(name, ' argument')) { - // For cases like 'first argument' - msg = "The ".concat(name, " ").concat(determiner, " ").concat(oneOf(expected, 'type')); - } else { - var type = includes(name, '.') ? 'property' : 'argument'; - msg = "The \"".concat(name, "\" ").concat(type, " ").concat(determiner, " ").concat(oneOf(expected, 'type')); - } - - // TODO(BridgeAR): Improve the output by showing `null` and similar. - msg += ". Received type ".concat(_typeof(actual)); - return msg; -}, TypeError); -createErrorType('ERR_INVALID_ARG_VALUE', function (name, value) { - var reason = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'is invalid'; - if (util === undefined) util = __webpack_require__("../../../node_modules/util/util.js"); - var inspected = util.inspect(value); - if (inspected.length > 128) { - inspected = "".concat(inspected.slice(0, 128), "..."); - } - return "The argument '".concat(name, "' ").concat(reason, ". Received ").concat(inspected); -}, TypeError, RangeError); -createErrorType('ERR_INVALID_RETURN_VALUE', function (input, name, value) { - var type; - if (value && value.constructor && value.constructor.name) { - type = "instance of ".concat(value.constructor.name); - } else { - type = "type ".concat(_typeof(value)); - } - return "Expected ".concat(input, " to be returned from the \"").concat(name, "\"") + " function but got ".concat(type, "."); -}, TypeError); -createErrorType('ERR_MISSING_ARGS', function () { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - if (assert === undefined) assert = __webpack_require__("../../../node_modules/assert/build/assert.js"); - assert(args.length > 0, 'At least one arg needs to be specified'); - var msg = 'The '; - var len = args.length; - args = args.map(function (a) { - return "\"".concat(a, "\""); - }); - switch (len) { - case 1: - msg += "".concat(args[0], " argument"); - break; - case 2: - msg += "".concat(args[0], " and ").concat(args[1], " arguments"); - break; - default: - msg += args.slice(0, len - 1).join(', '); - msg += ", and ".concat(args[len - 1], " arguments"); - break; - } - return "".concat(msg, " must be specified"); -}, TypeError); -module.exports.codes = codes; - -/***/ }), - -/***/ "../../../node_modules/assert/build/internal/util/comparisons.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +// src/docs-tools/argTypes/docgen/flow/createPropDef.ts +var Qa = /* @__PURE__ */ (/* unused pure expression or super */ null && (t((e, r) => { + let { flowType: n, description: o, required: a, defaultValue: s } = r; + return { + name: e, + type: Xa(n), + required: a, + description: o, + defaultValue: Wa(s ?? null, n ?? null) + }; +}, "createFlowPropDef"))); -"use strict"; -// Currently in sync with Node.js lib/internal/util/comparisons.js -// https://github.com/nodejs/node/commit/112cc7c27551254aa2b17098fb774867f05ed0d9 - - - -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -var regexFlagsSupported = /a/g.flags !== undefined; -var arrayFromSet = function arrayFromSet(set) { - var array = []; - set.forEach(function (value) { - return array.push(value); - }); - return array; -}; -var arrayFromMap = function arrayFromMap(map) { - var array = []; - map.forEach(function (value, key) { - return array.push([key, value]); - }); - return array; -}; -var objectIs = Object.is ? Object.is : __webpack_require__("../../../node_modules/object-is/index.js"); -var objectGetOwnPropertySymbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols : function () { - return []; -}; -var numberIsNaN = Number.isNaN ? Number.isNaN : __webpack_require__("../../../node_modules/is-nan/index.js"); -function uncurryThis(f) { - return f.call.bind(f); -} -var hasOwnProperty = uncurryThis(Object.prototype.hasOwnProperty); -var propertyIsEnumerable = uncurryThis(Object.prototype.propertyIsEnumerable); -var objectToString = uncurryThis(Object.prototype.toString); -var _require$types = (__webpack_require__("../../../node_modules/util/util.js").types), - isAnyArrayBuffer = _require$types.isAnyArrayBuffer, - isArrayBufferView = _require$types.isArrayBufferView, - isDate = _require$types.isDate, - isMap = _require$types.isMap, - isRegExp = _require$types.isRegExp, - isSet = _require$types.isSet, - isNativeError = _require$types.isNativeError, - isBoxedPrimitive = _require$types.isBoxedPrimitive, - isNumberObject = _require$types.isNumberObject, - isStringObject = _require$types.isStringObject, - isBooleanObject = _require$types.isBooleanObject, - isBigIntObject = _require$types.isBigIntObject, - isSymbolObject = _require$types.isSymbolObject, - isFloat32Array = _require$types.isFloat32Array, - isFloat64Array = _require$types.isFloat64Array; -function isNonIndex(key) { - if (key.length === 0 || key.length > 10) return true; - for (var i = 0; i < key.length; i++) { - var code = key.charCodeAt(i); - if (code < 48 || code > 57) return true; - } - // The maximum size for an array is 2 ** 32 -1. - return key.length === 10 && key >= Math.pow(2, 32); -} -function getOwnNonIndexProperties(value) { - return Object.keys(value).filter(isNonIndex).concat(objectGetOwnPropertySymbols(value).filter(Object.prototype.propertyIsEnumerable.bind(value))); -} - -// Taken from https://github.com/feross/buffer/blob/680e9e5e488f22aac27599a57dc844a6315928dd/index.js -// original notice: -/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ -function compare(a, b) { - if (a === b) { - return 0; - } - var x = a.length; - var y = b.length; - for (var i = 0, len = Math.min(x, y); i < len; ++i) { - if (a[i] !== b[i]) { - x = a[i]; - y = b[i]; - break; - } - } - if (x < y) { - return -1; - } - if (y < x) { - return 1; +// src/docs-tools/argTypes/docgen/typeScript/createDefaultValue.ts +function Za({ defaultValue: e }) { + if (e != null) { + let { value: r } = e; + if (!V(r)) + return y(r); } - return 0; + return null; } -var ONLY_ENUMERABLE = undefined; -var kStrict = true; -var kLoose = false; -var kNoIterator = 0; -var kIsArray = 1; -var kIsSet = 2; -var kIsMap = 3; +t(Za, "createDefaultValue"); -// Check if they have the same source and flags -function areSimilarRegExps(a, b) { - return regexFlagsSupported ? a.source === b.source && a.flags === b.flags : RegExp.prototype.toString.call(a) === RegExp.prototype.toString.call(b); -} -function areSimilarFloatArrays(a, b) { - if (a.byteLength !== b.byteLength) { - return false; - } - for (var offset = 0; offset < a.byteLength; offset++) { - if (a[offset] !== b[offset]) { - return false; - } - } - return true; +// src/docs-tools/argTypes/docgen/typeScript/createType.ts +function ei({ tsType: e, required: r }) { + if (e == null) + return null; + let n = e.name; + return r || (n = n.replace(" | undefined", "")), y( + ["Array", "Record", "signature"].includes(e.name) ? e.raw : n + ); } -function areSimilarTypedArrays(a, b) { - if (a.byteLength !== b.byteLength) { - return false; - } - return compare(new Uint8Array(a.buffer, a.byteOffset, a.byteLength), new Uint8Array(b.buffer, b.byteOffset, b.byteLength)) === 0; +t(ei, "createType"); + +// src/docs-tools/argTypes/docgen/typeScript/createPropDef.ts +var ri = /* @__PURE__ */ (/* unused pure expression or super */ null && (t((e, r) => { + let { description: n, required: o } = r; + return { + name: e, + type: ei(r), + required: o, + description: n, + defaultValue: Za(r) + }; +}, "createTsPropDef"))); + +// src/docs-tools/argTypes/docgen/createPropDef.ts +function lg(e) { + return e != null ? y(e.name) : null; +} +t(lg, "createType"); +function fg(e) { + let { computed: r, func: n } = e; + return typeof r > "u" && typeof n > "u"; +} +t(fg, "isReactDocgenTypescript"); +function mg(e) { + return e ? e.name === "string" ? !0 : e.name === "enum" ? Array.isArray(e.value) && e.value.every( + ({ value: r }) => typeof r == "string" && r[0] === '"' && r[r.length - 1] === '"' + ) : !1 : !1; +} +t(mg, "isStringValued"); +function gg(e, r) { + if (e != null) { + let { value: n } = e; + if (!V(n)) + return fg(e) && mg(r) ? y(JSON.stringify(n)) : y(n); + } + return null; +} +t(gg, "createDefaultValue"); +function ti(e, r, n) { + let { description: o, required: a, defaultValue: s } = n; + return { + name: e, + type: lg(r), + required: a, + description: o, + defaultValue: gg(s, r) + }; } -function areEqualArrayBuffers(buf1, buf2) { - return buf1.byteLength === buf2.byteLength && compare(new Uint8Array(buf1), new Uint8Array(buf2)) === 0; +t(ti, "createBasicPropDef"); +function de(e, r) { + if (r?.includesJsDoc) { + let { description: n, extractedTags: o } = r; + n != null && (e.description = r.description); + let a = { + ...o, + params: o?.params?.map( + (s) => ({ + name: s.getPrettyName(), + description: s.description + }) + ) + }; + Object.values(a).filter(Boolean).length > 0 && (e.jsDocTags = a); + } + return e; +} +t(de, "applyJsDocResult"); +var yg = /* @__PURE__ */ (/* unused pure expression or super */ null && (t((e, r, n) => { + let o = ti(e, r.type, r); + return o.sbType = le(r), de(o, n); +}, "javaScriptFactory"))), dg = /* @__PURE__ */ (/* unused pure expression or super */ null && (t((e, r, n) => { + let o = ri(e, r); + return o.sbType = le(r), de(o, n); +}, "tsFactory"))), hg = /* @__PURE__ */ (/* unused pure expression or super */ null && (t((e, r, n) => { + let o = Qa(e, r); + return o.sbType = le(r), de(o, n); +}, "flowFactory"))), Tg = /* @__PURE__ */ (/* unused pure expression or super */ null && (t((e, r, n) => { + let o = ti(e, { name: "unknown" }, r); + return de(o, n); +}, "unknownFactory"))), Ze = /* @__PURE__ */ (/* unused pure expression or super */ null && (t((e) => { + switch (e) { + case "JavaScript": + return yg; + case "TypeScript": + return dg; + case "Flow": + return hg; + default: + return Tg; + } +}, "getPropDefFactory"))); + +// src/docs-tools/argTypes/docgen/extractDocgenProps.ts +var ni = /* @__PURE__ */ (/* unused pure expression or super */ null && (t((e) => e.type != null ? "JavaScript" : e.flowType != null ? "Flow" : e.tsType != null ? "TypeScript" : "Unknown", +"getTypeSystem"))), xg = /* @__PURE__ */ (/* unused pure expression or super */ null && (t((e) => { + let r = ni(e[0]), n = Ze(r); + return e.map((o) => { + let a = o; + return o.type?.elements && (a = { + ...o, + type: { + ...o.type, + value: o.type.elements + } + }), oi(a.name, a, r, n); + }); +}, "extractComponentSectionArray"))), bg = /* @__PURE__ */ (/* unused pure expression or super */ null && (t((e) => { + let r = Object.keys(e), n = ni(e[r[0]]), o = Ze(n); + return r.map((a) => { + let s = e[a]; + return s != null ? oi(a, s, n, o) : null; + }).filter(Boolean); +}, "extractComponentSectionObject"))), av = /* @__PURE__ */ (/* unused pure expression or super */ null && (t((e, r) => { + let n = La(e, r); + return Ra(n) ? Array.isArray(n) ? xg(n) : bg(n) : []; +}, "extractComponentProps"))); +function oi(e, r, n, o) { + let a = Ba(r.description); + return a.includesJsDoc && a.ignore ? null : { + propDef: o(e, r, a), + jsDocTags: a.extractedTags, + docgenInfo: r, + typeSystem: n + }; } -function isEqualBoxedPrimitive(val1, val2) { - if (isNumberObject(val1)) { - return isNumberObject(val2) && objectIs(Number.prototype.valueOf.call(val1), Number.prototype.valueOf.call(val2)); - } - if (isStringObject(val1)) { - return isStringObject(val2) && String.prototype.valueOf.call(val1) === String.prototype.valueOf.call(val2); - } - if (isBooleanObject(val1)) { - return isBooleanObject(val2) && Boolean.prototype.valueOf.call(val1) === Boolean.prototype.valueOf.call(val2); - } - if (isBigIntObject(val1)) { - return isBigIntObject(val2) && BigInt.prototype.valueOf.call(val1) === BigInt.prototype.valueOf.call(val2); - } - return isSymbolObject(val2) && Symbol.prototype.valueOf.call(val1) === Symbol.prototype.valueOf.call(val2); +t(oi, "extractProp"); +function iv(e) { + return e != null ? Ma(e) : ""; } +t(iv, "extractComponentDescription"); -// Notes: Type tags are historical [[Class]] properties that can be set by -// FunctionTemplate::SetClassName() in C++ or Symbol.toStringTag in JS -// and retrieved using Object.prototype.toString.call(obj) in JS -// See https://tc39.github.io/ecma262/#sec-object.prototype.tostring -// for a list of tags pre-defined in the spec. -// There are some unspecified tags in the wild too (e.g. typed array tags). -// Since tags can be altered, they only serve fast failures -// -// Typed arrays and buffers are checked by comparing the content in their -// underlying ArrayBuffer. This optimization requires that it's -// reasonable to interpret their underlying memory in the same way, -// which is checked by comparing their type tags. -// (e.g. a Uint8Array and a Uint16Array with the same memory content -// could still be different because they will be interpreted differently). -// -// For strict comparison, objects should have -// a) The same built-in type tags -// b) The same prototypes. +// src/docs-tools/argTypes/enhanceArgTypes.ts -function innerDeepEqual(val1, val2, strict, memos) { - // All identical values are equivalent, as determined by ===. - if (val1 === val2) { - if (val1 !== 0) return true; - return strict ? objectIs(val1, val2) : true; - } +var cv = /* @__PURE__ */ t((e) => { + let { + component: r, + argTypes: n, + parameters: { docs: o = {} } + } = e, { extractArgTypes: a } = o, s = a && r ? a(r) : {}; + return s ? (0,_storybook_core_preview_api__WEBPACK_IMPORTED_MODULE_2__.combineParameters)(s, n) : n; +}, "enhanceArgTypes"); - // Check more closely if val1 and val2 are equal. - if (strict) { - if (_typeof(val1) !== 'object') { - return typeof val1 === 'number' && numberIsNaN(val1) && numberIsNaN(val2); - } - if (_typeof(val2) !== 'object' || val1 === null || val2 === null) { - return false; - } - if (Object.getPrototypeOf(val1) !== Object.getPrototypeOf(val2)) { - return false; - } - } else { - if (val1 === null || _typeof(val1) !== 'object') { - if (val2 === null || _typeof(val2) !== 'object') { - // eslint-disable-next-line eqeqeq - return val1 == val2; +// src/docs-tools/shared.ts +var ai = "storybook/docs", mv = (/* unused pure expression or super */ null && (`${ai}/panel`)), gv = "docs", yv = `${ai}/snippet-rendered`, Dg = /* @__PURE__ */ ((o) => (o.AUTO = "auto", o. +CODE = "code", o.DYNAMIC = "dynamic", o))(Dg || {}); + +// src/docs-tools/hasDocsOrControls.ts +var Pg = /(addons\/|addon-|addon-essentials\/)(docs|controls)/, hv = /* @__PURE__ */ (/* unused pure expression or super */ null && (t((e) => e.presetsList?.some((r) => Pg.test(r.name)), "\ +hasDocsOrControls"))); + + + +/***/ }), + +/***/ "../../../node_modules/@storybook/core/dist/theming/index.js": +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ C6: () => (/* binding */ zr), +/* harmony export */ D8: () => (/* binding */ pc), +/* harmony export */ DP: () => (/* binding */ Mt), +/* harmony export */ EG: () => (/* binding */ sr), +/* harmony export */ I4: () => (/* binding */ Tr), +/* harmony export */ Il: () => (/* binding */ H), +/* harmony export */ NP: () => (/* binding */ jt), +/* harmony export */ Zj: () => (/* binding */ Ne), +/* harmony export */ a: () => (/* binding */ yo), +/* harmony export */ i7: () => (/* binding */ be), +/* harmony export */ v_: () => (/* binding */ gc), +/* harmony export */ yW: () => (/* binding */ g) +/* harmony export */ }); +/* unused harmony exports CacheProvider, ClassNames, Global, background, create, createCache, createGlobal, createReset, css, darken, jsx, withTheme */ +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/react/index.js"); +/* harmony import */ var _storybook_core_client_logger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("storybook/internal/client-logger"); +/* harmony import */ var _storybook_core_client_logger__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_storybook_core_client_logger__WEBPACK_IMPORTED_MODULE_1__); +var Bn = Object.create; +var or = Object.defineProperty; +var $n = Object.getOwnPropertyDescriptor; +var Hn = Object.getOwnPropertyNames; +var Vn = Object.getPrototypeOf, Un = Object.prototype.hasOwnProperty; +var a = (e, r) => or(e, "name", { value: r, configurable: !0 }), Ee = /* @__PURE__ */ ((e) => true ? __webpack_require__("../../../node_modules/@storybook/core/dist/theming sync recursive") : 0)(function(e) { + if (true) return __webpack_require__("../../../node_modules/@storybook/core/dist/theming sync recursive").apply(this, arguments); + throw Error('Dynamic require of "' + e + '" is not supported'); +}); +var Le = (e, r) => () => (r || e((r = { exports: {} }).exports, r), r.exports); +var Wn = (e, r, t, n) => { + if (r && typeof r == "object" || typeof r == "function") + for (let o of Hn(r)) + !Un.call(e, o) && o !== t && or(e, o, { get: () => r[o], enumerable: !(n = $n(r, o)) || n.enumerable }); + return e; +}; +var ir = (e, r, t) => (t = e != null ? Bn(Vn(e)) : {}, Wn( + // If the importer is in node compatibility mode or this is not an ESM + // file that has been converted to a CommonJS file using a Babel- + // compatible transform (i.e. "__esModule" has not been set), then set + // "default" to the CommonJS "module.exports" for node compatibility. + r || !e || !e.__esModule ? or(t, "default", { value: e, enumerable: !0 }) : t, + e +)); + +// ../node_modules/react-is/cjs/react-is.development.js +var ct = Le((R) => { + "use strict"; + (function() { + "use strict"; + var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, + n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, + s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, + d = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, l = e ? Symbol.for("react.suspense") : + 60113, p = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, + m = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, + E = e ? Symbol.for("react.scope") : 60119; + function A(b) { + return typeof b == "string" || typeof b == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. + b === n || b === d || b === i || b === o || b === l || b === p || typeof b == "object" && b !== null && (b.$$typeof === h || b.$$typeof === + v || b.$$typeof === s || b.$$typeof === u || b.$$typeof === f || b.$$typeof === y || b.$$typeof === x || b.$$typeof === E || b.$$typeof === + m); + } + a(A, "isValidElementType"); + function T(b) { + if (typeof b == "object" && b !== null) { + var ar = b.$$typeof; + switch (ar) { + case r: + var Pe = b.type; + switch (Pe) { + case c: + case d: + case n: + case i: + case o: + case l: + return Pe; + default: + var Br = Pe && Pe.$$typeof; + switch (Br) { + case u: + case f: + case h: + case v: + case s: + return Br; + default: + return ar; + } + } + case t: + return ar; + } } - return false; } - if (val2 === null || _typeof(val2) !== 'object') { - return false; + a(T, "typeOf"); + var C = c, N = d, S = u, xe = s, W = r, G = f, er = n, rr = h, tr = v, nr = t, Tn = i, Cn = o, Rn = l, jr = !1; + function An(b) { + return jr || (jr = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update you\ +r code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), Dr(b) || T(b) === c; } - } - var val1Tag = objectToString(val1); - var val2Tag = objectToString(val2); - if (val1Tag !== val2Tag) { - return false; - } - if (Array.isArray(val1)) { - // Check for sparse arrays and general fast path - if (val1.length !== val2.length) { - return false; + a(An, "isAsyncMode"); + function Dr(b) { + return T(b) === d; } - var keys1 = getOwnNonIndexProperties(val1, ONLY_ENUMERABLE); - var keys2 = getOwnNonIndexProperties(val2, ONLY_ENUMERABLE); - if (keys1.length !== keys2.length) { - return false; + a(Dr, "isConcurrentMode"); + function _n(b) { + return T(b) === u; } - return keyCheck(val1, val2, strict, memos, kIsArray, keys1); - } - // [browserify] This triggers on certain types in IE (Map/Set) so we don't - // wan't to early return out of the rest of the checks. However we can check - // if the second value is one of these values and the first isn't. - if (val1Tag === '[object Object]') { - // return keyCheck(val1, val2, strict, memos, kNoIterator); - if (!isMap(val1) && isMap(val2) || !isSet(val1) && isSet(val2)) { - return false; + a(_n, "isContextConsumer"); + function Fn(b) { + return T(b) === s; } - } - if (isDate(val1)) { - if (!isDate(val2) || Date.prototype.getTime.call(val1) !== Date.prototype.getTime.call(val2)) { - return false; + a(Fn, "isContextProvider"); + function Nn(b) { + return typeof b == "object" && b !== null && b.$$typeof === r; } - } else if (isRegExp(val1)) { - if (!isRegExp(val2) || !areSimilarRegExps(val1, val2)) { - return false; + a(Nn, "isElement"); + function In(b) { + return T(b) === f; } - } else if (isNativeError(val1) || val1 instanceof Error) { - // Do not compare the stack as it might differ even though the error itself - // is otherwise identical. - if (val1.message !== val2.message || val1.name !== val2.name) { - return false; + a(In, "isForwardRef"); + function kn(b) { + return T(b) === n; } - } else if (isArrayBufferView(val1)) { - if (!strict && (isFloat32Array(val1) || isFloat64Array(val1))) { - if (!areSimilarFloatArrays(val1, val2)) { - return false; - } - } else if (!areSimilarTypedArrays(val1, val2)) { - return false; + a(kn, "isFragment"); + function Pn(b) { + return T(b) === h; } - // Buffer.compare returns true, so val1.length === val2.length. If they both - // only contain numeric keys, we don't need to exam further than checking - // the symbols. - var _keys = getOwnNonIndexProperties(val1, ONLY_ENUMERABLE); - var _keys2 = getOwnNonIndexProperties(val2, ONLY_ENUMERABLE); - if (_keys.length !== _keys2.length) { - return false; + a(Pn, "isLazy"); + function Ln(b) { + return T(b) === v; } - return keyCheck(val1, val2, strict, memos, kNoIterator, _keys); - } else if (isSet(val1)) { - if (!isSet(val2) || val1.size !== val2.size) { - return false; + a(Ln, "isMemo"); + function zn(b) { + return T(b) === t; } - return keyCheck(val1, val2, strict, memos, kIsSet); - } else if (isMap(val1)) { - if (!isMap(val2) || val1.size !== val2.size) { - return false; + a(zn, "isPortal"); + function Mn(b) { + return T(b) === i; } - return keyCheck(val1, val2, strict, memos, kIsMap); - } else if (isAnyArrayBuffer(val1)) { - if (!areEqualArrayBuffers(val1, val2)) { - return false; + a(Mn, "isProfiler"); + function jn(b) { + return T(b) === o; } - } else if (isBoxedPrimitive(val1) && !isEqualBoxedPrimitive(val1, val2)) { - return false; - } - return keyCheck(val1, val2, strict, memos, kNoIterator); -} -function getEnumerables(val, keys) { - return keys.filter(function (k) { - return propertyIsEnumerable(val, k); - }); -} -function keyCheck(val1, val2, strict, memos, iterationType, aKeys) { - // For all remaining Object pairs, including Array, objects and Maps, - // equivalence is determined by having: - // a) The same number of owned enumerable properties - // b) The same set of keys/indexes (although not necessarily the same order) - // c) Equivalent values for every corresponding key/index - // d) For Sets and Maps, equal contents - // Note: this accounts for both named and indexed properties on Arrays. - if (arguments.length === 5) { - aKeys = Object.keys(val1); - var bKeys = Object.keys(val2); - - // The pair must have the same number of owned properties. - if (aKeys.length !== bKeys.length) { - return false; + a(jn, "isStrictMode"); + function Dn(b) { + return T(b) === l; } - } + a(Dn, "isSuspense"), R.AsyncMode = C, R.ConcurrentMode = N, R.ContextConsumer = S, R.ContextProvider = xe, R.Element = W, R.ForwardRef = + G, R.Fragment = er, R.Lazy = rr, R.Memo = tr, R.Portal = nr, R.Profiler = Tn, R.StrictMode = Cn, R.Suspense = Rn, R.isAsyncMode = An, R. + isConcurrentMode = Dr, R.isContextConsumer = _n, R.isContextProvider = Fn, R.isElement = Nn, R.isForwardRef = In, R.isFragment = kn, R.isLazy = + Pn, R.isMemo = Ln, R.isPortal = zn, R.isProfiler = Mn, R.isStrictMode = jn, R.isSuspense = Dn, R.isValidElementType = A, R.typeOf = T; + })(); +}); - // Cheap key test - var i = 0; - for (; i < aKeys.length; i++) { - if (!hasOwnProperty(val2, aKeys[i])) { - return false; +// ../node_modules/react-is/index.js +var lt = Le((xi, ft) => { + "use strict"; + ft.exports = ct(); +}); + +// ../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +var mr = Le((Ei, bt) => { + "use strict"; + var dr = lt(), ua = { + childContextTypes: !0, + contextType: !0, + contextTypes: !0, + defaultProps: !0, + displayName: !0, + getDefaultProps: !0, + getDerivedStateFromError: !0, + getDerivedStateFromProps: !0, + mixins: !0, + propTypes: !0, + type: !0 + }, ca = { + name: !0, + length: !0, + prototype: !0, + caller: !0, + callee: !0, + arguments: !0, + arity: !0 + }, fa = { + $$typeof: !0, + render: !0, + defaultProps: !0, + displayName: !0, + propTypes: !0 + }, ht = { + $$typeof: !0, + compare: !0, + defaultProps: !0, + displayName: !0, + propTypes: !0, + type: !0 + }, pr = {}; + pr[dr.ForwardRef] = fa; + pr[dr.Memo] = ht; + function dt(e) { + return dr.isMemo(e) ? ht : pr[e.$$typeof] || ua; + } + a(dt, "getStatics"); + var la = Object.defineProperty, da = Object.getOwnPropertyNames, pt = Object.getOwnPropertySymbols, pa = Object.getOwnPropertyDescriptor, ma = Object. + getPrototypeOf, mt = Object.prototype; + function gt(e, r, t) { + if (typeof r != "string") { + if (mt) { + var n = ma(r); + n && n !== mt && gt(e, n, t); + } + var o = da(r); + pt && (o = o.concat(pt(r))); + for (var i = dt(e), s = dt(r), u = 0; u < o.length; ++u) { + var c = o[u]; + if (!ca[c] && !(t && t[c]) && !(s && s[c]) && !(i && i[c])) { + var d = pa(r, c); + try { + la(e, c, d); + } catch { + } + } + } } + return e; } - if (strict && arguments.length === 5) { - var symbolKeysA = objectGetOwnPropertySymbols(val1); - if (symbolKeysA.length !== 0) { - var count = 0; - for (i = 0; i < symbolKeysA.length; i++) { - var key = symbolKeysA[i]; - if (propertyIsEnumerable(val1, key)) { - if (!propertyIsEnumerable(val2, key)) { - return false; + a(gt, "hoistNonReactStatics"); + bt.exports = gt; +}); + +// ../node_modules/memoizerific/memoizerific.js +var ln = Le((fn, Ir) => { + (function(e) { + if (typeof fn == "object" && typeof Ir < "u") + Ir.exports = e(); + else if (typeof define == "function" && __webpack_require__.amdO) + define([], e); + else { + var r; + typeof window < "u" ? r = window : typeof __webpack_require__.g < "u" ? r = __webpack_require__.g : typeof self < "u" ? r = self : r = this, r.memoizerific = e(); + } + })(function() { + var e, r, t; + return (/* @__PURE__ */ a(function n(o, i, s) { + function u(f, l) { + if (!i[f]) { + if (!o[f]) { + var p = typeof Ee == "function" && Ee; + if (!l && p) return p(f, !0); + if (c) return c(f, !0); + var v = new Error("Cannot find module '" + f + "'"); + throw v.code = "MODULE_NOT_FOUND", v; } - aKeys.push(key); - count++; - } else if (propertyIsEnumerable(val2, key)) { - return false; + var h = i[f] = { exports: {} }; + o[f][0].call(h.exports, function(m) { + var y = o[f][1][m]; + return u(y || m); + }, h, h.exports, n, o, i, s); + } + return i[f].exports; + } + a(u, "s"); + for (var c = typeof Ee == "function" && Ee, d = 0; d < s.length; d++) u(s[d]); + return u; + }, "e"))({ 1: [function(n, o, i) { + o.exports = function(s) { + if (typeof Map != "function" || s) { + var u = n("./similar"); + return new u(); + } else + return /* @__PURE__ */ new Map(); + }; + }, { "./similar": 2 }], 2: [function(n, o, i) { + function s() { + return this.list = [], this.lastItem = void 0, this.size = 0, this; + } + a(s, "Similar"), s.prototype.get = function(u) { + var c; + if (this.lastItem && this.isEqual(this.lastItem.key, u)) + return this.lastItem.val; + if (c = this.indexOf(u), c >= 0) + return this.lastItem = this.list[c], this.list[c].val; + }, s.prototype.set = function(u, c) { + var d; + return this.lastItem && this.isEqual(this.lastItem.key, u) ? (this.lastItem.val = c, this) : (d = this.indexOf(u), d >= 0 ? (this.lastItem = + this.list[d], this.list[d].val = c, this) : (this.lastItem = { key: u, val: c }, this.list.push(this.lastItem), this.size++, this)); + }, s.prototype.delete = function(u) { + var c; + if (this.lastItem && this.isEqual(this.lastItem.key, u) && (this.lastItem = void 0), c = this.indexOf(u), c >= 0) + return this.size--, this.list.splice(c, 1)[0]; + }, s.prototype.has = function(u) { + var c; + return this.lastItem && this.isEqual(this.lastItem.key, u) ? !0 : (c = this.indexOf(u), c >= 0 ? (this.lastItem = this.list[c], !0) : + !1); + }, s.prototype.forEach = function(u, c) { + var d; + for (d = 0; d < this.size; d++) + u.call(c || this, this.list[d].val, this.list[d].key, this); + }, s.prototype.indexOf = function(u) { + var c; + for (c = 0; c < this.size; c++) + if (this.isEqual(this.list[c].key, u)) + return c; + return -1; + }, s.prototype.isEqual = function(u, c) { + return u === c || u !== u && c !== c; + }, o.exports = s; + }, {}], 3: [function(n, o, i) { + var s = n("map-or-similar"); + o.exports = function(f) { + var l = new s(!1), p = []; + return function(v) { + var h = /* @__PURE__ */ a(function() { + var m = l, y, x, E = arguments.length - 1, A = Array(E + 1), T = !0, C; + if ((h.numArgs || h.numArgs === 0) && h.numArgs !== E + 1) + throw new Error("Memoizerific functions should always be called with the same number of arguments"); + for (C = 0; C < E; C++) { + if (A[C] = { + cacheItem: m, + arg: arguments[C] + }, m.has(arguments[C])) { + m = m.get(arguments[C]); + continue; + } + T = !1, y = new s(!1), m.set(arguments[C], y), m = y; + } + return T && (m.has(arguments[E]) ? x = m.get(arguments[E]) : T = !1), T || (x = v.apply(null, arguments), m.set(arguments[E], x)), + f > 0 && (A[E] = { + cacheItem: m, + arg: arguments[E] + }, T ? u(p, A) : p.push(A), p.length > f && c(p.shift())), h.wasMemoized = T, h.numArgs = E + 1, x; + }, "memoizerific"); + return h.limit = f, h.wasMemoized = !1, h.cache = l, h.lru = p, h; + }; + }; + function u(f, l) { + var p = f.length, v = l.length, h, m, y; + for (m = 0; m < p; m++) { + for (h = !0, y = 0; y < v; y++) + if (!d(f[m][y].arg, l[y].arg)) { + h = !1; + break; + } + if (h) + break; } + f.push(f.splice(m, 1)[0]); } - var symbolKeysB = objectGetOwnPropertySymbols(val2); - if (symbolKeysA.length !== symbolKeysB.length && getEnumerables(val2, symbolKeysB).length !== count) { - return false; + a(u, "moveToMostRecentLru"); + function c(f) { + var l = f.length, p = f[l - 1], v, h; + for (p.cacheItem.delete(p.arg), h = l - 2; h >= 0 && (p = f[h], v = p.cacheItem.get(p.arg), !v || !v.size); h--) + p.cacheItem.delete(p.arg); } - } else { - var _symbolKeysB = objectGetOwnPropertySymbols(val2); - if (_symbolKeysB.length !== 0 && getEnumerables(val2, _symbolKeysB).length !== 0) { - return false; + a(c, "removeCachedResult"); + function d(f, l) { + return f === l || f !== f && l !== l; } - } - } - if (aKeys.length === 0 && (iterationType === kNoIterator || iterationType === kIsArray && val1.length === 0 || val1.size === 0)) { - return true; - } + a(d, "isEqual"); + }, { "map-or-similar": 1 }] }, {}, [3])(3); + }); +}); - // Use memos to handle cycles. - if (memos === undefined) { - memos = { - val1: new Map(), - val2: new Map(), - position: 0 - }; - } else { - // We prevent up to two map.has(x) calls by directly retrieving the value - // and checking for undefined. The map can only contain numbers, so it is - // safe to check for undefined only. - var val2MemoA = memos.val1.get(val1); - if (val2MemoA !== undefined) { - var val2MemoB = memos.val2.get(val2); - if (val2MemoB !== undefined) { - return val2MemoA === val2MemoB; - } - } - memos.position++; - } - memos.val1.set(val1, memos.position); - memos.val2.set(val2, memos.position); - var areEq = objEquiv(val1, val2, strict, aKeys, memos, iterationType); - memos.val1.delete(val1); - memos.val2.delete(val2); - return areEq; -} -function setHasEqualElement(set, val1, strict, memo) { - // Go looking. - var setValues = arrayFromSet(set); - for (var i = 0; i < setValues.length; i++) { - var val2 = setValues[i]; - if (innerDeepEqual(val1, val2, strict, memo)) { - // Remove the matching element to make sure we do not check that again. - set.delete(val2); - return true; +// ../node_modules/@babel/runtime/helpers/esm/extends.js +function j() { + return j = Object.assign ? Object.assign.bind() : function(e) { + for (var r = 1; r < arguments.length; r++) { + var t = arguments[r]; + for (var n in t) ({}).hasOwnProperty.call(t, n) && (e[n] = t[n]); } - } - return false; + return e; + }, j.apply(null, arguments); } +a(j, "_extends"); -// See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness#Loose_equality_using -// Sadly it is not possible to detect corresponding values properly in case the -// type is a string, number, bigint or boolean. The reason is that those values -// can match lots of different string values (e.g., 1n == '+00001'). -function findLooseMatchingPrimitives(prim) { - switch (_typeof(prim)) { - case 'undefined': - return null; - case 'object': - // Only pass in null as object! - return undefined; - case 'symbol': - return false; - case 'string': - prim = +prim; - // Loose equal entries exist only if the string is possible to convert to - // a regular number and not NaN. - // Fall through - case 'number': - if (numberIsNaN(prim)) { - return false; - } - } - return true; -} -function setMightHaveLoosePrim(a, b, prim) { - var altValue = findLooseMatchingPrimitives(prim); - if (altValue != null) return altValue; - return b.has(altValue) && !a.has(altValue); +// ../node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js + + +// ../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +function ze(e) { + var r = /* @__PURE__ */ Object.create(null); + return function(t) { + return r[t] === void 0 && (r[t] = e(t)), r[t]; + }; } -function mapMightHaveLoosePrim(a, b, prim, item, memo) { - var altValue = findLooseMatchingPrimitives(prim); - if (altValue != null) { - return altValue; - } - var curB = b.get(altValue); - if (curB === undefined && !b.has(altValue) || !innerDeepEqual(item, curB, false, memo)) { - return false; - } - return !a.has(altValue) && innerDeepEqual(item, curB, false, memo); -} -function setEquiv(a, b, strict, memo) { - // This is a lazily initiated Set of entries which have to be compared - // pairwise. - var set = null; - var aValues = arrayFromSet(a); - for (var i = 0; i < aValues.length; i++) { - var val = aValues[i]; - // Note: Checking for the objects first improves the performance for object - // heavy sets but it is a minor slow down for primitives. As they are fast - // to check this improves the worst case scenario instead. - if (_typeof(val) === 'object' && val !== null) { - if (set === null) { - set = new Set(); - } - // If the specified value doesn't exist in the second set its an not null - // object (or non strict only: a not matching primitive) we'll need to go - // hunting for something thats deep-(strict-)equal to it. To make this - // O(n log n) complexity we have to copy these values in a new set first. - set.add(val); - } else if (!b.has(val)) { - if (strict) return false; - - // Fast path to detect missing string, symbol, undefined and null values. - if (!setMightHaveLoosePrim(a, b, val)) { - return false; - } - if (set === null) { - set = new Set(); - } - set.add(val); - } +a(ze, "memoize"); + +// ../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +var Yn = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, +sr = /* @__PURE__ */ ze( + function(e) { + return Yn.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91; } - if (set !== null) { - var bValues = arrayFromSet(b); - for (var _i = 0; _i < bValues.length; _i++) { - var _val = bValues[_i]; - // We have to check if a primitive value is already - // matching and only if it's not, go hunting for it. - if (_typeof(_val) === 'object' && _val !== null) { - if (!setHasEqualElement(set, _val, strict, memo)) return false; - } else if (!strict && !a.has(_val) && !setHasEqualElement(set, _val, strict, memo)) { - return false; - } - } - return set.size === 0; + /* Z+1 */ +); + +// ../node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.js + + + +// ../node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js +function Gn(e) { + if (e.sheet) + return e.sheet; + for (var r = 0; r < document.styleSheets.length; r++) + if (document.styleSheets[r].ownerNode === e) + return document.styleSheets[r]; +} +a(Gn, "sheetForTag"); +function qn(e) { + var r = document.createElement("style"); + return r.setAttribute("data-emotion", e.key), e.nonce !== void 0 && r.setAttribute("nonce", e.nonce), r.appendChild(document.createTextNode( + "")), r.setAttribute("data-s", ""), r; +} +a(qn, "createStyleElement"); +var $r = /* @__PURE__ */ function() { + function e(t) { + var n = this; + this._insertTag = function(o) { + var i; + n.tags.length === 0 ? n.insertionPoint ? i = n.insertionPoint.nextSibling : n.prepend ? i = n.container.firstChild : i = n.before : i = + n.tags[n.tags.length - 1].nextSibling, n.container.insertBefore(o, i), n.tags.push(o); + }, this.isSpeedy = t.speedy === void 0 ? !1 : t.speedy, this.tags = [], this.ctr = 0, this.nonce = t.nonce, this.key = t.key, this.container = + t.container, this.prepend = t.prepend, this.insertionPoint = t.insertionPoint, this.before = null; + } + a(e, "StyleSheet"); + var r = e.prototype; + return r.hydrate = /* @__PURE__ */ a(function(n) { + n.forEach(this._insertTag); + }, "hydrate"), r.insert = /* @__PURE__ */ a(function(n) { + this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(qn(this)); + var o = this.tags[this.tags.length - 1], i = n.charCodeAt(0) === 64 && n.charCodeAt(1) === 105; + if (i && this._alreadyInsertedOrderInsensitiveRule && console.error(`You're attempting to insert the following rule: +` + n + "\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure\ + that `@import` rules are before all other rules."), this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || + !i, this.isSpeedy) { + var s = Gn(o); + try { + s.insertRule(n, s.cssRules.length); + } catch (u) { + /:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/. + test(n) || console.error('There was a problem inserting the following rule: "' + n + '"', u); + } + } else + o.appendChild(document.createTextNode(n)); + this.ctr++; + }, "insert"), r.flush = /* @__PURE__ */ a(function() { + this.tags.forEach(function(n) { + return n.parentNode && n.parentNode.removeChild(n); + }), this.tags = [], this.ctr = 0, this._alreadyInsertedOrderInsensitiveRule = !1; + }, "flush"), e; +}(); + +// ../node_modules/stylis/src/Enum.js +var k = "-ms-", we = "-moz-", O = "-webkit-", ae = "comm", oe = "rule", ie = "decl"; +var Hr = "@import"; +var Me = "@keyframes"; +var Vr = "@layer"; + +// ../node_modules/stylis/src/Utility.js +var Ur = Math.abs, X = String.fromCharCode, Wr = Object.assign; +function Yr(e, r) { + return _(e, 0) ^ 45 ? (((r << 2 ^ _(e, 0)) << 2 ^ _(e, 1)) << 2 ^ _(e, 2)) << 2 ^ _(e, 3) : 0; +} +a(Yr, "hash"); +function je(e) { + return e.trim(); +} +a(je, "trim"); +function ur(e, r) { + return (e = r.exec(e)) ? e[0] : e; +} +a(ur, "match"); +function w(e, r, t) { + return e.replace(r, t); +} +a(w, "replace"); +function Se(e, r) { + return e.indexOf(r); +} +a(Se, "indexof"); +function _(e, r) { + return e.charCodeAt(r) | 0; +} +a(_, "charat"); +function q(e, r, t) { + return e.slice(r, t); +} +a(q, "substr"); +function P(e) { + return e.length; +} +a(P, "strlen"); +function se(e) { + return e.length; +} +a(se, "sizeof"); +function ue(e, r) { + return r.push(e), e; +} +a(ue, "append"); +function cr(e, r) { + return e.map(r).join(""); +} +a(cr, "combine"); + +// ../node_modules/stylis/src/Tokenizer.js +var De = 1, ce = 1, Gr = 0, L = 0, F = 0, le = ""; +function Oe(e, r, t, n, o, i, s) { + return { value: e, root: r, parent: t, type: n, props: o, children: i, line: De, column: ce, length: s, return: "" }; +} +a(Oe, "node"); +function de(e, r) { + return Wr(Oe("", null, null, "", null, null, 0), e, { length: -e.length }, r); +} +a(de, "copy"); +function qr() { + return F; +} +a(qr, "char"); +function Jr() { + return F = L > 0 ? _(le, --L) : 0, ce--, F === 10 && (ce = 1, De--), F; +} +a(Jr, "prev"); +function z() { + return F = L < Gr ? _(le, L++) : 0, ce++, F === 10 && (ce = 1, De++), F; +} +a(z, "next"); +function D() { + return _(le, L); +} +a(D, "peek"); +function Te() { + return L; +} +a(Te, "caret"); +function pe(e, r) { + return q(le, e, r); +} +a(pe, "slice"); +function fe(e) { + switch (e) { + case 0: + case 9: + case 10: + case 13: + case 32: + return 5; + case 33: + case 43: + case 44: + case 47: + case 62: + case 64: + case 126: + case 59: + case 123: + case 125: + return 4; + case 58: + return 3; + case 34: + case 39: + case 40: + case 91: + return 2; + case 41: + case 93: + return 1; } - return true; + return 0; } -function mapHasEqualEntry(set, map, key1, item1, strict, memo) { - // To be able to handle cases like: - // Map([[{}, 'a'], [{}, 'b']]) vs Map([[{}, 'b'], [{}, 'a']]) - // ... we need to consider *all* matching keys, not just the first we find. - var setValues = arrayFromSet(set); - for (var i = 0; i < setValues.length; i++) { - var key2 = setValues[i]; - if (innerDeepEqual(key1, key2, strict, memo) && innerDeepEqual(item1, map.get(key2), strict, memo)) { - set.delete(key2); - return true; +a(fe, "token"); +function Be(e) { + return De = ce = 1, Gr = P(le = e), L = 0, []; +} +a(Be, "alloc"); +function $e(e) { + return le = "", e; +} +a($e, "dealloc"); +function me(e) { + return je(pe(L - 1, fr(e === 91 ? e + 2 : e === 40 ? e + 1 : e))); +} +a(me, "delimit"); +function Zr(e) { + for (; (F = D()) && F < 33; ) + z(); + return fe(e) > 2 || fe(F) > 3 ? "" : " "; +} +a(Zr, "whitespace"); +function Kr(e, r) { + for (; --r && z() && !(F < 48 || F > 102 || F > 57 && F < 65 || F > 70 && F < 97); ) + ; + return pe(e, Te() + (r < 6 && D() == 32 && z() == 32)); +} +a(Kr, "escaping"); +function fr(e) { + for (; z(); ) + switch (F) { + case e: + return L; + case 34: + case 39: + e !== 34 && e !== 39 && fr(F); + break; + case 40: + e === 41 && fr(e); + break; + case 92: + z(); + break; } - } - return false; + return L; } -function mapEquiv(a, b, strict, memo) { - var set = null; - var aEntries = arrayFromMap(a); - for (var i = 0; i < aEntries.length; i++) { - var _aEntries$i = _slicedToArray(aEntries[i], 2), - key = _aEntries$i[0], - item1 = _aEntries$i[1]; - if (_typeof(key) === 'object' && key !== null) { - if (set === null) { - set = new Set(); - } - set.add(key); - } else { - // By directly retrieving the value we prevent another b.has(key) check in - // almost all possible cases. - var item2 = b.get(key); - if (item2 === undefined && !b.has(key) || !innerDeepEqual(item1, item2, strict, memo)) { - if (strict) return false; - // Fast path to detect missing string, symbol, undefined and null - // keys. - if (!mapMightHaveLoosePrim(a, b, key, item1, memo)) return false; - if (set === null) { - set = new Set(); - } - set.add(key); - } - } - } - if (set !== null) { - var bEntries = arrayFromMap(b); - for (var _i2 = 0; _i2 < bEntries.length; _i2++) { - var _bEntries$_i = _slicedToArray(bEntries[_i2], 2), - _key = _bEntries$_i[0], - item = _bEntries$_i[1]; - if (_typeof(_key) === 'object' && _key !== null) { - if (!mapHasEqualEntry(set, a, _key, item, strict, memo)) return false; - } else if (!strict && (!a.has(_key) || !innerDeepEqual(a.get(_key), item, false, memo)) && !mapHasEqualEntry(set, a, _key, item, false, memo)) { - return false; - } - } - return set.size === 0; - } - return true; +a(fr, "delimiter"); +function Xr(e, r) { + for (; z() && e + F !== 57; ) + if (e + F === 84 && D() === 47) + break; + return "/*" + pe(r, L - 1) + "*" + X(e === 47 ? e : z()); +} +a(Xr, "commenter"); +function Qr(e) { + for (; !fe(D()); ) + z(); + return pe(e, L); +} +a(Qr, "identifier"); + +// ../node_modules/stylis/src/Parser.js +function tt(e) { + return $e(He("", null, null, null, [""], e = Be(e), 0, [0], e)); +} +a(tt, "compile"); +function He(e, r, t, n, o, i, s, u, c) { + for (var d = 0, f = 0, l = s, p = 0, v = 0, h = 0, m = 1, y = 1, x = 1, E = 0, A = "", T = o, C = i, N = n, S = A; y; ) + switch (h = E, E = z()) { + case 40: + if (h != 108 && _(S, l - 1) == 58) { + Se(S += w(me(E), "&", "&\f"), "&\f") != -1 && (x = -1); + break; + } + case 34: + case 39: + case 91: + S += me(E); + break; + case 9: + case 10: + case 13: + case 32: + S += Zr(h); + break; + case 92: + S += Kr(Te() - 1, 7); + continue; + case 47: + switch (D()) { + case 42: + case 47: + ue(Jn(Xr(z(), Te()), r, t), c); + break; + default: + S += "/"; + } + break; + case 123 * m: + u[d++] = P(S) * x; + case 125 * m: + case 59: + case 0: + switch (E) { + case 0: + case 125: + y = 0; + case 59 + f: + x == -1 && (S = w(S, /\f/g, "")), v > 0 && P(S) - l && ue(v > 32 ? rt(S + ";", n, t, l - 1) : rt(w(S, " ", "") + ";", n, t, l - 2), + c); + break; + case 59: + S += ";"; + default: + if (ue(N = et(S, r, t, d, f, o, u, A, T = [], C = [], l), i), E === 123) + if (f === 0) + He(S, r, N, N, T, i, l, u, C); + else + switch (p === 99 && _(S, 3) === 110 ? 100 : p) { + case 100: + case 108: + case 109: + case 115: + He(e, N, N, n && ue(et(e, N, N, 0, 0, o, u, A, o, T = [], l), C), o, C, l, u, n ? T : C); + break; + default: + He(S, N, N, N, [""], C, 0, u, C); + } + } + d = f = v = 0, m = x = 1, A = S = "", l = s; + break; + case 58: + l = 1 + P(S), v = h; + default: + if (m < 1) { + if (E == 123) + --m; + else if (E == 125 && m++ == 0 && Jr() == 125) + continue; + } + switch (S += X(E), E * m) { + case 38: + x = f > 0 ? 1 : (S += "\f", -1); + break; + case 44: + u[d++] = (P(S) - 1) * x, x = 1; + break; + case 64: + D() === 45 && (S += me(z())), p = D(), f = l = P(A = S += Qr(Te())), E++; + break; + case 45: + h === 45 && P(S) == 2 && (m = 0); + } + } + return i; +} +a(He, "parse"); +function et(e, r, t, n, o, i, s, u, c, d, f) { + for (var l = o - 1, p = o === 0 ? i : [""], v = se(p), h = 0, m = 0, y = 0; h < n; ++h) + for (var x = 0, E = q(e, l + 1, l = Ur(m = s[h])), A = e; x < v; ++x) + (A = je(m > 0 ? p[x] + " " + E : w(E, /&\f/g, p[x]))) && (c[y++] = A); + return Oe(e, r, t, o === 0 ? oe : u, c, d, f); +} +a(et, "ruleset"); +function Jn(e, r, t) { + return Oe(e, r, t, ae, X(qr()), q(e, 2, -2), 0); +} +a(Jn, "comment"); +function rt(e, r, t, n) { + return Oe(e, r, t, ie, q(e, 0, n), q(e, n + 1, -1), n); +} +a(rt, "declaration"); + +// ../node_modules/stylis/src/Serializer.js +function Q(e, r) { + for (var t = "", n = se(e), o = 0; o < n; o++) + t += r(e[o], o, e, r) || ""; + return t; +} +a(Q, "serialize"); +function nt(e, r, t, n) { + switch (e.type) { + case Vr: + if (e.children.length) break; + case Hr: + case ie: + return e.return = e.return || e.value; + case ae: + return ""; + case Me: + return e.return = e.value + "{" + Q(e.children, n) + "}"; + case oe: + e.value = e.props.join(","); + } + return P(t = Q(e.children, n)) ? e.return = e.value + "{" + t + "}" : ""; +} +a(nt, "stringify"); + +// ../node_modules/stylis/src/Middleware.js +function at(e) { + var r = se(e); + return function(t, n, o, i) { + for (var s = "", u = 0; u < r; u++) + s += e[u](t, n, o, i) || ""; + return s; + }; } -function objEquiv(a, b, strict, keys, memos, iterationType) { - // Sets and maps don't have their entries accessible via normal object - // properties. - var i = 0; - if (iterationType === kIsSet) { - if (!setEquiv(a, b, strict, memos)) { - return false; - } - } else if (iterationType === kIsMap) { - if (!mapEquiv(a, b, strict, memos)) { - return false; - } - } else if (iterationType === kIsArray) { - for (; i < a.length; i++) { - if (hasOwnProperty(a, i)) { - if (!hasOwnProperty(b, i) || !innerDeepEqual(a[i], b[i], strict, memos)) { - return false; +a(at, "middleware"); + +// ../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +var lr = /* @__PURE__ */ a(function(r) { + var t = /* @__PURE__ */ new WeakMap(); + return function(n) { + if (t.has(n)) + return t.get(n); + var o = r(n); + return t.set(n, o), o; + }; +}, "weakMemoize"); + +// ../node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +var Zn = /* @__PURE__ */ a(function(r, t, n) { + for (var o = 0, i = 0; o = i, i = D(), o === 38 && i === 12 && (t[n] = 1), !fe(i); ) + z(); + return pe(r, L); +}, "identifierWithPointTracking"), Kn = /* @__PURE__ */ a(function(r, t) { + var n = -1, o = 44; + do + switch (fe(o)) { + case 0: + o === 38 && D() === 12 && (t[n] = 1), r[n] += Zn(L - 1, t, n); + break; + case 2: + r[n] += me(o); + break; + case 4: + if (o === 44) { + r[++n] = D() === 58 ? "&\f" : "", t[n] = r[n].length; + break; } - } else if (hasOwnProperty(b, i)) { - return false; - } else { - // Array is sparse. - var keysA = Object.keys(a); - for (; i < keysA.length; i++) { - var key = keysA[i]; - if (!hasOwnProperty(b, key) || !innerDeepEqual(a[key], b[key], strict, memos)) { - return false; + default: + r[n] += X(o); + } + while (o = z()); + return r; +}, "toRules"), Xn = /* @__PURE__ */ a(function(r, t) { + return $e(Kn(Be(r), t)); +}, "getRules"), ot = /* @__PURE__ */ new WeakMap(), Qn = /* @__PURE__ */ a(function(r) { + if (!(r.type !== "rule" || !r.parent || // positive .length indicates that this rule contains pseudo + // negative .length indicates that this rule has been already prefixed + r.length < 1)) { + for (var t = r.value, n = r.parent, o = r.column === n.column && r.line === n.line; n.type !== "rule"; ) + if (n = n.parent, !n) return; + if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !ot.get(n)) && !o) { + ot.set(r, !0); + for (var i = [], s = Xn(t, i), u = n.props, c = 0, d = 0; c < s.length; c++) + for (var f = 0; f < u.length; f++, d++) + r.props[d] = i[c] ? s[c].replace(/&\f/g, u[f]) : u[f] + " " + s[c]; + } + } +}, "compat"), ea = /* @__PURE__ */ a(function(r) { + if (r.type === "decl") { + var t = r.value; + // charcode for l + t.charCodeAt(0) === 108 && // charcode for b + t.charCodeAt(2) === 98 && (r.return = "", r.value = ""); + } +}, "removeLabel"), ra = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason", ta = /* @__PURE__ */ a( +function(r) { + return r.type === "comm" && r.children.indexOf(ra) > -1; +}, "isIgnoringComment"), na = /* @__PURE__ */ a(function(r) { + return function(t, n, o) { + if (!(t.type !== "rule" || r.compat)) { + var i = t.value.match(/(:first|:nth|:nth-last)-child/g); + if (i) { + for (var s = !!t.parent, u = s ? t.parent.children : ( + // global rule at the root level + o + ), c = u.length - 1; c >= 0; c--) { + var d = u[c]; + if (d.line < t.line) + break; + if (d.column < t.column) { + if (ta(d)) + return; + break; } } - if (keysA.length !== Object.keys(b).length) { - return false; - } - return true; + i.forEach(function(f) { + console.error('The pseudo class "' + f + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + f.split( + "-child")[0] + '-of-type".'); + }); } } + }; +}, "createUnsafeSelectorsAlarm"), st = /* @__PURE__ */ a(function(r) { + return r.type.charCodeAt(1) === 105 && r.type.charCodeAt(0) === 64; +}, "isImportRule"), aa = /* @__PURE__ */ a(function(r, t) { + for (var n = r - 1; n >= 0; n--) + if (!st(t[n])) + return !0; + return !1; +}, "isPrependedWithRegularRules"), it = /* @__PURE__ */ a(function(r) { + r.type = "", r.value = "", r.return = "", r.children = "", r.props = ""; +}, "nullifyElement"), oa = /* @__PURE__ */ a(function(r, t, n) { + st(r) && (r.parent ? (console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before\ + regular rules. Keep in mind that they can only be used within global styles."), it(r)) : aa(t, n) && (console.error("`@import` rules can't \ +be after other rules. Please put your `@import` rules before your other rules."), it(r))); +}, "incorrectImportAlarm"); +function ut(e, r) { + switch (Yr(e, r)) { + case 5103: + return O + "print-" + e + e; + case 5737: + case 4201: + case 3177: + case 3433: + case 1641: + case 4457: + case 2921: + case 5572: + case 6356: + case 5844: + case 3191: + case 6645: + case 3005: + case 6391: + case 5879: + case 5623: + case 6135: + case 4599: + case 4855: + case 4215: + case 6389: + case 5109: + case 5365: + case 5621: + case 3829: + return O + e + e; + case 5349: + case 4246: + case 4810: + case 6968: + case 2756: + return O + e + we + e + k + e + e; + case 6828: + case 4268: + return O + e + k + e + e; + case 6165: + return O + e + k + "flex-" + e + e; + case 5187: + return O + e + w(e, /(\w+).+(:[^]+)/, O + "box-$1$2" + k + "flex-$1$2") + e; + case 5443: + return O + e + k + "flex-item-" + w(e, /flex-|-self/, "") + e; + case 4675: + return O + e + k + "flex-line-pack" + w(e, /align-content|flex-|-self/, "") + e; + case 5548: + return O + e + k + w(e, "shrink", "negative") + e; + case 5292: + return O + e + k + w(e, "basis", "preferred-size") + e; + case 6060: + return O + "box-" + w(e, "-grow", "") + O + e + k + w(e, "grow", "positive") + e; + case 4554: + return O + w(e, /([^-])(transform)/g, "$1" + O + "$2") + e; + case 6187: + return w(w(w(e, /(zoom-|grab)/, O + "$1"), /(image-set)/, O + "$1"), e, "") + e; + case 5495: + case 3959: + return w(e, /(image-set\([^]*)/, O + "$1$`$1"); + case 4968: + return w(w(e, /(.+:)(flex-)?(.*)/, O + "box-pack:$3" + k + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + O + e + e; + case 4095: + case 3583: + case 4068: + case 2532: + return w(e, /(.+)-inline(.+)/, O + "$1$2") + e; + case 8116: + case 7059: + case 5753: + case 5535: + case 5445: + case 5701: + case 4933: + case 4677: + case 5533: + case 5789: + case 5021: + case 4765: + if (P(e) - 1 - r > 6) switch (_(e, r + 1)) { + case 109: + if (_(e, r + 4) !== 45) break; + case 102: + return w(e, /(.+:)(.+)-([^]+)/, "$1" + O + "$2-$3$1" + we + (_(e, r + 3) == 108 ? "$3" : "$2-$3")) + e; + case 115: + return ~Se(e, "stretch") ? ut(w(e, "stretch", "fill-available"), r) + e : e; + } + break; + case 4949: + if (_(e, r + 1) !== 115) break; + case 6444: + switch (_(e, P(e) - 3 - (~Se(e, "!important") && 10))) { + case 107: + return w(e, ":", ":" + O) + e; + case 101: + return w(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + O + (_(e, 14) === 45 ? "inline-" : "") + "box$3$1" + O + "$2$3$1" + k + "$2box$3") + e; + } + break; + case 5936: + switch (_(e, r + 11)) { + case 114: + return O + e + k + w(e, /[svh]\w+-[tblr]{2}/, "tb") + e; + case 108: + return O + e + k + w(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e; + case 45: + return O + e + k + w(e, /[svh]\w+-[tblr]{2}/, "lr") + e; + } + return O + e + k + e + e; + } + return e; +} +a(ut, "prefix"); +var ia = /* @__PURE__ */ a(function(r, t, n, o) { + if (r.length > -1 && !r.return) switch (r.type) { + case ie: + r.return = ut(r.value, r.length); + break; + case Me: + return Q([de(r, { + value: w(r.value, "@", "@" + O) + })], o); + case oe: + if (r.length) return cr(r.props, function(i) { + switch (ur(i, /(::plac\w+|:read-\w+)/)) { + case ":read-only": + case ":read-write": + return Q([de(r, { + props: [w(i, /:(read-\w+)/, ":" + we + "$1")] + })], o); + case "::placeholder": + return Q([de(r, { + props: [w(i, /:(plac\w+)/, ":" + O + "input-$1")] + }), de(r, { + props: [w(i, /:(plac\w+)/, ":" + we + "$1")] + }), de(r, { + props: [w(i, /:(plac\w+)/, k + "input-$1")] + })], o); + } + return ""; + }); } - - // The pair must have equivalent values for every corresponding key. - // Possibly expensive deep test: - for (i = 0; i < keys.length; i++) { - var _key2 = keys[i]; - if (!innerDeepEqual(a[_key2], b[_key2], strict, memos)) { - return false; - } +}, "prefixer"), sa = [ia], Ve = /* @__PURE__ */ a(function(r) { + var t = r.key; + if (!t) + throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for link\ +ing styles to your cache. +If multiple caches share the same key they might "fight" for each other's style elements.`); + if (t === "css") { + var n = document.querySelectorAll("style[data-emotion]:not([data-s])"); + Array.prototype.forEach.call(n, function(m) { + var y = m.getAttribute("data-emotion"); + y.indexOf(" ") !== -1 && (document.head.appendChild(m), m.setAttribute("data-s", "")); + }); } - return true; -} -function isDeepEqual(val1, val2) { - return innerDeepEqual(val1, val2, kLoose); -} -function isDeepStrictEqual(val1, val2) { - return innerDeepEqual(val1, val2, kStrict); -} -module.exports = { - isDeepEqual: isDeepEqual, - isDeepStrictEqual: isDeepStrictEqual -}; - -/***/ }), - -/***/ "../../../node_modules/available-typed-arrays/index.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var possibleNames = [ - 'BigInt64Array', - 'BigUint64Array', - 'Float32Array', - 'Float64Array', - 'Int16Array', - 'Int32Array', - 'Int8Array', - 'Uint16Array', - 'Uint32Array', - 'Uint8Array', - 'Uint8ClampedArray' -]; - -var g = typeof globalThis === 'undefined' ? __webpack_require__.g : globalThis; - -module.exports = function availableTypedArrays() { - var out = []; - for (var i = 0; i < possibleNames.length; i++) { - if (typeof g[possibleNames[i]] === 'function') { - out[out.length] = possibleNames[i]; - } - } - return out; + var o = r.stylisPlugins || sa; + if (/[^a-z-]/.test(t)) + throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + t + '" was passed'); + var i = {}, s, u = []; + s = r.container || document.head, Array.prototype.forEach.call( + // this means we will ignore elements which don't have a space in them which + // means that the style elements we're looking at are only Emotion 11 server-rendered style elements + document.querySelectorAll('style[data-emotion^="' + t + ' "]'), + function(m) { + for (var y = m.getAttribute("data-emotion").split(" "), x = 1; x < y.length; x++) + i[y[x]] = !0; + u.push(m); + } + ); + var c, d = [Qn, ea]; + d.push(na({ + get compat() { + return h.compat; + } + }), oa); + { + var f, l = [nt, function(m) { + m.root || (m.return ? f.insert(m.return) : m.value && m.type !== ae && f.insert(m.value + "{}")); + }], p = at(d.concat(o, l)), v = /* @__PURE__ */ a(function(y) { + return Q(tt(y), p); + }, "stylis"); + c = /* @__PURE__ */ a(function(y, x, E, A) { + f = E, x.map !== void 0 && (f = { + insert: /* @__PURE__ */ a(function(C) { + E.insert(C + x.map); + }, "insert") + }), v(y ? y + "{" + x.styles + "}" : x.styles), A && (h.inserted[x.name] = !0); + }, "insert"); + } + var h = { + key: t, + sheet: new $r({ + key: t, + container: s, + nonce: r.nonce, + speedy: r.speedy, + prepend: r.prepend, + insertionPoint: r.insertionPoint + }), + nonce: r.nonce, + inserted: i, + registered: {}, + insert: c + }; + return h.sheet.hydrate(u), h; +}, "createCache"); + +// ../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js +var vt = ir(mr()); +var yt = /* @__PURE__ */ a(function(e, r) { + return (0, vt.default)(e, r); +}, "hoistNonReactStatics"); + +// ../node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +var ha = !0; +function he(e, r, t) { + var n = ""; + return t.split(" ").forEach(function(o) { + e[o] !== void 0 ? r.push(e[o] + ";") : n += o + " "; + }), n; +} +a(he, "getRegisteredStyles"); +var ee = /* @__PURE__ */ a(function(r, t, n) { + var o = r.key + "-" + t.name; + // we only need to add the styles to the registered cache if the + // class name could be used further down + // the tree but if it's a string tag, we know it won't + // so we don't have to add it to registered cache. + // this improves memory usage since we can avoid storing the whole style string + (n === !1 || // we need to always store it if we're in compat mode and + // in node since emotion-server relies on whether a style is in + // the registered cache to know whether a style is global or not + // also, note that this check will be dead code eliminated in the browser + ha === !1) && r.registered[o] === void 0 && (r.registered[o] = t.styles); +}, "registerStyles"), re = /* @__PURE__ */ a(function(r, t, n) { + ee(r, t, n); + var o = r.key + "-" + t.name; + if (r.inserted[t.name] === void 0) { + var i = t; + do + r.insert(t === i ? "." + o : "", i, r.sheet, !0), i = i.next; + while (i !== void 0); + } +}, "insertStyles"); + +// ../node_modules/@emotion/hash/dist/emotion-hash.esm.js +function xt(e) { + for (var r = 0, t, n = 0, o = e.length; o >= 4; ++n, o -= 4) + t = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, t = /* Math.imul(k, m): */ + (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), t ^= /* k >>> r: */ + t >>> 24, r = /* Math.imul(k, m): */ + (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */ + (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16); + switch (o) { + case 3: + r ^= (e.charCodeAt(n + 2) & 255) << 16; + case 2: + r ^= (e.charCodeAt(n + 1) & 255) << 8; + case 1: + r ^= e.charCodeAt(n) & 255, r = /* Math.imul(h, m): */ + (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16); + } + return r ^= r >>> 13, r = /* Math.imul(h, m): */ + (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), ((r ^ r >>> 15) >>> 0).toString(36); +} +a(xt, "murmur2"); + +// ../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +var Et = { + animationIterationCount: 1, + aspectRatio: 1, + borderImageOutset: 1, + borderImageSlice: 1, + borderImageWidth: 1, + boxFlex: 1, + boxFlexGroup: 1, + boxOrdinalGroup: 1, + columnCount: 1, + columns: 1, + flex: 1, + flexGrow: 1, + flexPositive: 1, + flexShrink: 1, + flexNegative: 1, + flexOrder: 1, + gridRow: 1, + gridRowEnd: 1, + gridRowSpan: 1, + gridRowStart: 1, + gridColumn: 1, + gridColumnEnd: 1, + gridColumnSpan: 1, + gridColumnStart: 1, + msGridRow: 1, + msGridRowSpan: 1, + msGridColumn: 1, + msGridColumnSpan: 1, + fontWeight: 1, + lineHeight: 1, + opacity: 1, + order: 1, + orphans: 1, + tabSize: 1, + widows: 1, + zIndex: 1, + zoom: 1, + WebkitLineClamp: 1, + // SVG-related properties + fillOpacity: 1, + floodOpacity: 1, + stopOpacity: 1, + strokeDasharray: 1, + strokeDashoffset: 1, + strokeMiterlimit: 1, + strokeOpacity: 1, + strokeWidth: 1 }; +// ../node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js +var wt = `You have illegal escape sequence in your template literal, most likely inside content's property value. +Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should bec\ +ome "content: '\\\\00d7';". +You can read more about this here: +https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, ga = "You \ +have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", ba = /[A-Z]|^ms/g, +Ft = /_EMO_([^_]+?)_([^]*?)_EMO_/g, br = /* @__PURE__ */ a(function(r) { + return r.charCodeAt(1) === 45; +}, "isCustomProperty"), St = /* @__PURE__ */ a(function(r) { + return r != null && typeof r != "boolean"; +}, "isProcessableValue"), hr = /* @__PURE__ */ ze(function(e) { + return br(e) ? e : e.replace(ba, "-$&").toLowerCase(); +}), Ue = /* @__PURE__ */ a(function(r, t) { + switch (r) { + case "animation": + case "animationName": + if (typeof t == "string") + return t.replace(Ft, function(n, o, i) { + return $ = { + name: o, + styles: i, + next: $ + }, o; + }); + } + return Et[r] !== 1 && !br(r) && typeof t == "number" && t !== 0 ? t + "px" : t; +}, "processStyleValue"); +Ot = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, Tt = ["normal", "none", "\ +initial", "inherit", "unset"], Ct = Ue, Rt = /^-ms-/, At = /-(.)/g, gr = {}, Ue = /* @__PURE__ */ a(function(r, t) { + if (r === "content" && (typeof t != "string" || Tt.indexOf(t) === -1 && !Ot.test(t) && (t.charAt(0) !== t.charAt(t.length - 1) || t.charAt( + 0) !== '"' && t.charAt(0) !== "'"))) + throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + t + "\"'`"); + var n = Ct(r, t); + return n !== "" && !br(r) && r.indexOf("-") !== -1 && gr[r] === void 0 && (gr[r] = !0, console.error("Using kebab-case for css properties \ +in objects is not supported. Did you mean " + r.replace(Rt, "ms-").replace(At, function(o, i) { + return i.toUpperCase(); + }) + "?")), n; +}, "processStyleValue"); +var Ot, Tt, Ct, Rt, At, gr, Nt = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or\ + another Emotion-aware compiler transform."; +function Ce(e, r, t) { + if (t == null) + return ""; + if (t.__emotion_styles !== void 0) { + if (t.toString() === "NO_COMPONENT_SELECTOR") + throw new Error(Nt); + return t; + } + switch (typeof t) { + case "boolean": + return ""; + case "object": { + if (t.anim === 1) + return $ = { + name: t.name, + styles: t.styles, + next: $ + }, t.name; + if (t.styles !== void 0) { + var n = t.next; + if (n !== void 0) + for (; n !== void 0; ) + $ = { + name: n.name, + styles: n.styles, + next: $ + }, n = n.next; + var o = t.styles + ";"; + return t.map !== void 0 && (o += t.map), o; + } + return va(e, r, t); + } + case "function": { + if (e !== void 0) { + var i = $, s = t(e); + return $ = i, Ce(e, r, s); + } else console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props,\ + create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with\ + props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`"); + break; + } + case "string": + var u = [], c = t.replace(Ft, function(f, l, p) { + var v = "animation" + u.length; + return u.push("const " + v + " = keyframes`" + p.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + v + "}"; + }); + u.length && console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + + [].concat(u, ["`" + c + "`"]).join(` +`) + ` -/***/ }), - -/***/ "../../../node_modules/call-bind/callBound.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; +You should wrap it with \`css\` like this: +` + ("css`" + c + "`")); + break; + } + if (r == null) + return t; + var d = r[t]; + return d !== void 0 ? d : t; +} +a(Ce, "handleInterpolation"); +function va(e, r, t) { + var n = ""; + if (Array.isArray(t)) + for (var o = 0; o < t.length; o++) + n += Ce(e, r, t[o]) + ";"; + else + for (var i in t) { + var s = t[i]; + if (typeof s != "object") + r != null && r[s] !== void 0 ? n += i + "{" + r[s] + "}" : St(s) && (n += hr(i) + ":" + Ue(i, s) + ";"); + else { + if (i === "NO_COMPONENT_SELECTOR") + throw new Error(Nt); + if (Array.isArray(s) && typeof s[0] == "string" && (r == null || r[s[0]] === void 0)) + for (var u = 0; u < s.length; u++) + St(s[u]) && (n += hr(i) + ":" + Ue(i, s[u]) + ";"); + else { + var c = Ce(e, r, s); + switch (i) { + case "animation": + case "animationName": { + n += hr(i) + ":" + c + ";"; + break; + } + default: + i === "undefined" && console.error(ga), n += i + "{" + c + "}"; + } + } + } + } + return n; +} +a(va, "createStringFromObject"); +var _t = /label:\s*([^\s;\n{]+)\s*(;|$)/g, It; +It = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g; +var $, Y = /* @__PURE__ */ a(function(r, t, n) { + if (r.length === 1 && typeof r[0] == "object" && r[0] !== null && r[0].styles !== void 0) + return r[0]; + var o = !0, i = ""; + $ = void 0; + var s = r[0]; + s == null || s.raw === void 0 ? (o = !1, i += Ce(n, t, s)) : (s[0] === void 0 && console.error(wt), i += s[0]); + for (var u = 1; u < r.length; u++) + i += Ce(n, t, r[u]), o && (s[u] === void 0 && console.error(wt), i += s[u]); + var c; + i = i.replace(It, function(p) { + return c = p, ""; + }), _t.lastIndex = 0; + for (var d = "", f; (f = _t.exec(i)) !== null; ) + d += "-" + // $FlowFixMe we know it's not null + f[1]; + var l = xt(i) + d; + return { + name: l, + styles: i, + map: c, + next: $, + toString: /* @__PURE__ */ a(function() { + return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `\ +className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; + }, "toString") + }; +}, "serializeStyles"); + +// ../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js + +var ya = /* @__PURE__ */ a(function(r) { + return r(); +}, "syncFallback"), kt = react__WEBPACK_IMPORTED_MODULE_0__.useInsertionEffect ? react__WEBPACK_IMPORTED_MODULE_0__.useInsertionEffect : !1, ge = kt || ya, vr = kt || react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect; + +// ../node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.js +var Er = !0, We = {}.hasOwnProperty, Ae = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createContext( + // we're doing this to avoid preconstruct's dead code elimination in this one case + // because this module is primarily intended for the browser and node + // but it's also required in react native and similar environments sometimes + // and we could have a special build just for that + // but this is much easier and the native packages + // might use a different theme context in the future anyway + typeof HTMLElement < "u" ? /* @__PURE__ */ Ve({ + key: "css" + }) : null +); +Ae.displayName = "EmotionCacheContext"; +var zt = Ae.Provider; +var J = /* @__PURE__ */ a(function(r) { + return /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function(t, n) { + var o = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(Ae); + return r(t, o, n); + }); +}, "withEmotionCache"); +Er || (J = /* @__PURE__ */ a(function(r) { + return function(t) { + var n = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(Ae); + return n === null ? (n = Ve({ + key: "css" + }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement(Ae.Provider, { + value: n + }, r(t, n))) : r(t, n); + }; +}, "withEmotionCache")); +var B = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createContext({}); +B.displayName = "EmotionThemeContext"; +var Mt = /* @__PURE__ */ a(function() { + return react__WEBPACK_IMPORTED_MODULE_0__.useContext(B); +}, "useTheme"), Ea = /* @__PURE__ */ a(function(r, t) { + if (typeof t == "function") { + var n = t(r); + if (n == null || typeof n != "object" || Array.isArray(n)) + throw new Error("[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!"); + return n; + } + if (t == null || typeof t != "object" || Array.isArray(t)) + throw new Error("[ThemeProvider] Please make your theme prop a plain object"); + return j({}, r, t); +}, "getTheme"), wa = /* @__PURE__ */ lr(function(e) { + return lr(function(r) { + return Ea(e, r); + }); +}), jt = /* @__PURE__ */ a(function(r) { + var t = react__WEBPACK_IMPORTED_MODULE_0__.useContext(B); + return r.theme !== t && (t = wa(t)(r.theme)), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement(B.Provider, { + value: t + }, r.children); +}, "ThemeProvider"); +function Dt(e) { + var r = e.displayName || e.name || "Component", t = /* @__PURE__ */ a(function(i, s) { + var u = react__WEBPACK_IMPORTED_MODULE_0__.useContext(B); + return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement(e, j({ + theme: u, + ref: s + }, i)); + }, "render"), n = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(t); + return n.displayName = "WithTheme(" + r + ")", yt(n, e); +} +a(Dt, "withTheme"); +var Pt = /* @__PURE__ */ (/* unused pure expression or super */ null && (a(function(r) { + var t = r.split("."); + return t[t.length - 1]; +}, "getLastPart"))), Sa = /* @__PURE__ */ (/* unused pure expression or super */ null && (a(function(r) { + var t = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(r); + if (t || (t = /^([A-Za-z0-9$.]+)@/.exec(r), t)) return Pt(t[1]); +}, "getFunctionNameFromStackTraceLine"))), Oa = /* @__PURE__ */ new Set(["renderWithHooks", "processChild", "finishClassComponent", "renderToS\ +tring"]), Ta = /* @__PURE__ */ (/* unused pure expression or super */ null && (a(function(r) { + return r.replace(/\$/g, "-"); +}, "sanitizeIdentifier"))), Ca = /* @__PURE__ */ (/* unused pure expression or super */ null && (a(function(r) { + if (r) + for (var t = r.split(` +`), n = 0; n < t.length; n++) { + var o = Sa(t[n]); + if (o) { + if (Oa.has(o)) break; + if (/^[A-Z]/.test(o)) return Ta(o); + } + } +}, "getLabelFromStackTrace"))), yr = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", xr = "__EMOTION_LABEL_PLEASE_DO_NOT_USE__", Bt = /* @__PURE__ */ (/* unused pure expression or super */ null && (a( +function(r, t) { + if (typeof t.css == "string" && // check if there is a css declaration + t.css.indexOf(":") !== -1) + throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: c\ +ss`" + t.css + "`"); + var n = {}; + for (var o in t) + We.call(t, o) && (n[o] = t[o]); + if (n[yr] = r, t.css && (typeof t.css != "object" || typeof t.css.name != "string" || t.css.name.indexOf("-") === -1)) { + var i = Ca(new Error().stack); + i && (n[xr] = i); + } + return n; +}, "createEmotionProps"))), Ra = /* @__PURE__ */ a(function(r) { + var t = r.cache, n = r.serialized, o = r.isStringTag; + return ee(t, n, o), ge(function() { + return re(t, n, o); + }), null; +}, "Insertion"), $t = /* @__PURE__ */ J(function(e, r, t) { + var n = e.css; + typeof n == "string" && r.registered[n] !== void 0 && (n = r.registered[n]); + var o = e[yr], i = [n], s = ""; + typeof e.className == "string" ? s = he(r.registered, i, e.className) : e.className != null && (s = e.className + " "); + var u = Y(i, void 0, react__WEBPACK_IMPORTED_MODULE_0__.useContext(B)); + if (u.name.indexOf("-") === -1) { + var c = e[xr]; + c && (u = Y([u, "label:" + c + ";"])); + } + s += r.key + "-" + u.name; + var d = {}; + for (var f in e) + We.call(e, f) && f !== "css" && f !== yr && f !== xr && (d[f] = e[f]); + return d.ref = t, d.className = s, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement(Ra, { + cache: r, + serialized: u, + isStringTag: typeof o == "string" + }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement(o, d)); +}); +$t.displayName = "EmotionCssPropInternal"; +var Ht = (/* unused pure expression or super */ null && ($t)); + +// ../node_modules/@emotion/react/dist/emotion-react.browser.esm.js + +var rs = ir(mr()); +var Aa = { + name: "@emotion/react", + version: "11.11.4", + main: "dist/emotion-react.cjs.js", + module: "dist/emotion-react.esm.js", + browser: { + "./dist/emotion-react.esm.js": "./dist/emotion-react.browser.esm.js" + }, + exports: { + ".": { + module: { + worker: "./dist/emotion-react.worker.esm.js", + browser: "./dist/emotion-react.browser.esm.js", + default: "./dist/emotion-react.esm.js" + }, + import: "./dist/emotion-react.cjs.mjs", + default: "./dist/emotion-react.cjs.js" + }, + "./jsx-runtime": { + module: { + worker: "./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js", + browser: "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js", + default: "./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js" + }, + import: "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs", + default: "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js" + }, + "./_isolated-hnrs": { + module: { + worker: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js", + browser: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js", + default: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js" + }, + import: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs", + default: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js" + }, + "./jsx-dev-runtime": { + module: { + worker: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js", + browser: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js", + default: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js" + }, + import: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs", + default: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js" + }, + "./package.json": "./package.json", + "./types/css-prop": "./types/css-prop.d.ts", + "./macro": { + types: { + import: "./macro.d.mts", + default: "./macro.d.ts" + }, + default: "./macro.js" + } + }, + types: "types/index.d.ts", + files: [ + "src", + "dist", + "jsx-runtime", + "jsx-dev-runtime", + "_isolated-hnrs", + "types/*.d.ts", + "macro.*" + ], + sideEffects: !1, + author: "Emotion Contributors", + license: "MIT", + scripts: { + "test:typescript": "dtslint types" + }, + dependencies: { + "@babel/runtime": "^7.18.3", + "@emotion/babel-plugin": "^11.11.0", + "@emotion/cache": "^11.11.0", + "@emotion/serialize": "^1.1.3", + "@emotion/use-insertion-effect-with-fallbacks": "^1.0.1", + "@emotion/utils": "^1.2.1", + "@emotion/weak-memoize": "^0.3.1", + "hoist-non-react-statics": "^3.3.1" + }, + peerDependencies: { + react: ">=16.8.0" + }, + peerDependenciesMeta: { + "@types/react": { + optional: !0 + } + }, + devDependencies: { + "@definitelytyped/dtslint": "0.0.112", + "@emotion/css": "11.11.2", + "@emotion/css-prettifier": "1.1.3", + "@emotion/server": "11.11.0", + "@emotion/styled": "11.11.0", + "html-tag-names": "^1.1.2", + react: "16.14.0", + "svg-tag-names": "^1.1.1", + typescript: "^4.5.5" + }, + repository: "https://github.com/emotion-js/emotion/tree/main/packages/react", + publishConfig: { + access: "public" + }, + "umd:main": "dist/emotion-react.umd.min.js", + preconstruct: { + entrypoints: [ + "./index.js", + "./jsx-runtime.js", + "./jsx-dev-runtime.js", + "./_isolated-hnrs.js" + ], + umdName: "emotionReact", + exports: { + envConditions: [ + "browser", + "worker" + ], + extra: { + "./types/css-prop": "./types/css-prop.d.ts", + "./macro": { + types: { + import: "./macro.d.mts", + default: "./macro.d.ts" + }, + default: "./macro.js" + } + } + } + } +}, _a = /* @__PURE__ */ (/* unused pure expression or super */ null && (a(function(r, t) { + var n = arguments; + if (t == null || !We.call(t, "css")) + return M.createElement.apply(void 0, n); + var o = n.length, i = new Array(o); + i[0] = Ht, i[1] = Bt(r, t); + for (var s = 2; s < o; s++) + i[s] = n[s]; + return M.createElement.apply(null, i); +}, "jsx"))), Vt = !1, Wt = /* @__PURE__ */ J(function(e, r) { + !Vt && // check for className as well since the user is + // probably using the custom createElement which + // means it will be turned into a className prop + // $FlowFixMe I don't really want to add it to the type since it shouldn't be used + (e.className || e.css) && (console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"), + Vt = !0); + var t = e.styles, n = Y([t], void 0, react__WEBPACK_IMPORTED_MODULE_0__.useContext(B)); + if (!Er) { + for (var o, i = n.name, s = n.styles, u = n.next; u !== void 0; ) + i += " " + u.name, s += u.styles, u = u.next; + var c = r.compat === !0, d = r.insert("", { + name: i, + styles: s + }, r.sheet, c); + return c ? null : /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement("style", (o = {}, o["data-emotion"] = r.key + "-global " + i, o.dangerouslySetInnerHTML = + { + __html: d + }, o.nonce = r.sheet.nonce, o)); + } + var f = react__WEBPACK_IMPORTED_MODULE_0__.useRef(); + return vr(function() { + var l = r.key + "-global", p = new r.sheet.constructor({ + key: l, + nonce: r.sheet.nonce, + container: r.sheet.container, + speedy: r.sheet.isSpeedy + }), v = !1, h = document.querySelector('style[data-emotion="' + l + " " + n.name + '"]'); + return r.sheet.tags.length && (p.before = r.sheet.tags[0]), h !== null && (v = !0, h.setAttribute("data-emotion", l), p.hydrate([h])), f. + current = [p, v], function() { + p.flush(); + }; + }, [r]), vr(function() { + var l = f.current, p = l[0], v = l[1]; + if (v) { + l[1] = !1; + return; + } + if (n.next !== void 0 && re(r, n.next, !0), p.tags.length) { + var h = p.tags[p.tags.length - 1].nextElementSibling; + p.before = h, p.flush(); + } + r.insert("", n, p, !1); + }, [r, n.name]), null; +}); +Wt.displayName = "EmotionGlobal"; +function _e() { + for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++) + r[t] = arguments[t]; + return Y(r); +} +a(_e, "css"); +var be = /* @__PURE__ */ a(function() { + var r = _e.apply(void 0, arguments), t = "animation-" + r.name; + return { + name: t, + styles: "@keyframes " + t + "{" + r.styles + "}", + anim: 1, + toString: /* @__PURE__ */ a(function() { + return "_EMO_" + this.name + "_" + this.styles + "_EMO_"; + }, "toString") + }; +}, "keyframes"), Fa = /* @__PURE__ */ a(function e(r) { + for (var t = r.length, n = 0, o = ""; n < t; n++) { + var i = r[n]; + if (i != null) { + var s = void 0; + switch (typeof i) { + case "boolean": + break; + case "object": { + if (Array.isArray(i)) + s = e(i); + else { + i.styles !== void 0 && i.name !== void 0 && console.error("You have passed styles created with `css` from `@emotion/react` packa\ +ge to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `cs\ +s` received from component."), s = ""; + for (var u in i) + i[u] && u && (s && (s += " "), s += u); + } + break; + } + default: + s = i; + } + s && (o && (o += " "), o += s); + } + } + return o; +}, "classnames"); +function Na(e, r, t) { + var n = [], o = he(e, n, t); + return n.length < 2 ? t : o + r(n); +} +a(Na, "merge"); +var Ia = /* @__PURE__ */ a(function(r) { + var t = r.cache, n = r.serializedArr; + return ge(function() { + for (var o = 0; o < n.length; o++) + re(t, n[o], !1); + }), null; +}, "Insertion"), Yt = /* @__PURE__ */ J(function(e, r) { + var t = !1, n = [], o = /* @__PURE__ */ a(function() { + if (t) + throw new Error("css can only be used during render"); + for (var d = arguments.length, f = new Array(d), l = 0; l < d; l++) + f[l] = arguments[l]; + var p = Y(f, r.registered); + return n.push(p), ee(r, p, !1), r.key + "-" + p.name; + }, "css"), i = /* @__PURE__ */ a(function() { + if (t) + throw new Error("cx can only be used during render"); + for (var d = arguments.length, f = new Array(d), l = 0; l < d; l++) + f[l] = arguments[l]; + return Na(r.registered, o, Fa(f)); + }, "cx"), s = { + css: o, + cx: i, + theme: react__WEBPACK_IMPORTED_MODULE_0__.useContext(B) + }, u = e.children(s); + return t = !0, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement(Ia, { + cache: r, + serializedArr: n + }), u); +}); +Yt.displayName = "EmotionClassNames"; +wr = !0, Ut = typeof jest < "u" || typeof vi < "u", wr && !Ut && (Sr = // $FlowIgnore +typeof globalThis < "u" ? globalThis : wr ? window : __webpack_require__.g, Or = "__EMOTION_REACT_" + Aa.version.split(".")[0] + "__", Sr[Or] && console.warn( +"You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versio\ +ns are used, or if multiple builds of the same version are used."), Sr[Or] = !0); +var wr, Ut, Sr, Or; + +// ../node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js +var ka = sr, Pa = /* @__PURE__ */ a(function(r) { + return r !== "theme"; +}, "testOmitPropsOnComponent"), Gt = /* @__PURE__ */ a(function(r) { + return typeof r == "string" && // 96 is one less than the char code + // for "a" so this is checking that + // it's a lowercase character + r.charCodeAt(0) > 96 ? ka : Pa; +}, "getDefaultShouldForwardProp"), qt = /* @__PURE__ */ a(function(r, t, n) { + var o; + if (t) { + var i = t.shouldForwardProp; + o = r.__emotion_forwardProp && i ? function(s) { + return r.__emotion_forwardProp(s) && i(s); + } : i; + } + return typeof o != "function" && n && (o = r.__emotion_forwardProp), o; +}, "composeShouldForwardProps"), Jt = `You have illegal escape sequence in your template literal, most likely inside content's property valu\ +e. +Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should bec\ +ome "content: '\\\\00d7';". +You can read more about this here: +https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, La = /* @__PURE__ */ a( +function(r) { + var t = r.cache, n = r.serialized, o = r.isStringTag; + return ee(t, n, o), ge(function() { + return re(t, n, o); + }), null; +}, "Insertion"), Zt = /* @__PURE__ */ a(function e(r, t) { + if (r === void 0) + throw new Error(`You are trying to create a styled element with an undefined component. +You may have forgotten to import it.`); + var n = r.__emotion_real === r, o = n && r.__emotion_base || r, i, s; + t !== void 0 && (i = t.label, s = t.target); + var u = qt(r, t, n), c = u || Gt(o), d = !c("as"); + return function() { + var f = arguments, l = n && r.__emotion_styles !== void 0 ? r.__emotion_styles.slice(0) : []; + if (i !== void 0 && l.push("label:" + i + ";"), f[0] == null || f[0].raw === void 0) + l.push.apply(l, f); + else { + f[0][0] === void 0 && console.error(Jt), l.push(f[0][0]); + for (var p = f.length, v = 1; v < p; v++) + f[0][v] === void 0 && console.error(Jt), l.push(f[v], f[0][v]); + } + var h = J(function(m, y, x) { + var E = d && m.as || o, A = "", T = [], C = m; + if (m.theme == null) { + C = {}; + for (var N in m) + C[N] = m[N]; + C.theme = react__WEBPACK_IMPORTED_MODULE_0__.useContext(B); + } + typeof m.className == "string" ? A = he(y.registered, T, m.className) : m.className != null && (A = m.className + " "); + var S = Y(l.concat(T), y.registered, C); + A += y.key + "-" + S.name, s !== void 0 && (A += " " + s); + var xe = d && u === void 0 ? Gt(E) : c, W = {}; + for (var G in m) + d && G === "as" || // $FlowFixMe + xe(G) && (W[G] = m[G]); + return W.className = A, W.ref = x, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement(La, { + cache: y, + serialized: S, + isStringTag: typeof E == "string" + }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement(E, W)); + }); + return h.displayName = i !== void 0 ? i : "Styled(" + (typeof o == "string" ? o : o.displayName || o.name || "Component") + ")", h.defaultProps = + r.defaultProps, h.__emotion_real = h, h.__emotion_base = o, h.__emotion_styles = l, h.__emotion_forwardProp = u, Object.defineProperty(h, + "toString", { + value: /* @__PURE__ */ a(function() { + return s === void 0 ? "NO_COMPONENT_SELECTOR" : "." + s; + }, "value") + }), h.withComponent = function(m, y) { + return e(m, j({}, t, y, { + shouldForwardProp: qt(h, y, !0) + })).apply(void 0, l); + }, h; + }; +}, "createStyled"); + +// ../node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js + +var za = [ + "a", + "abbr", + "address", + "area", + "article", + "aside", + "audio", + "b", + "base", + "bdi", + "bdo", + "big", + "blockquote", + "body", + "br", + "button", + "canvas", + "caption", + "cite", + "code", + "col", + "colgroup", + "data", + "datalist", + "dd", + "del", + "details", + "dfn", + "dialog", + "div", + "dl", + "dt", + "em", + "embed", + "fieldset", + "figcaption", + "figure", + "footer", + "form", + "h1", + "h2", + "h3", + "h4", + "h5", + "h6", + "head", + "header", + "hgroup", + "hr", + "html", + "i", + "iframe", + "img", + "input", + "ins", + "kbd", + "keygen", + "label", + "legend", + "li", + "link", + "main", + "map", + "mark", + "marquee", + "menu", + "menuitem", + "meta", + "meter", + "nav", + "noscript", + "object", + "ol", + "optgroup", + "option", + "output", + "p", + "param", + "picture", + "pre", + "progress", + "q", + "rp", + "rt", + "ruby", + "s", + "samp", + "script", + "section", + "select", + "small", + "source", + "span", + "strong", + "style", + "sub", + "summary", + "sup", + "table", + "tbody", + "td", + "textarea", + "tfoot", + "th", + "thead", + "time", + "title", + "tr", + "track", + "u", + "ul", + "var", + "video", + "wbr", + // SVG + "circle", + "clipPath", + "defs", + "ellipse", + "foreignObject", + "g", + "image", + "line", + "linearGradient", + "mask", + "path", + "pattern", + "polygon", + "polyline", + "radialGradient", + "rect", + "stop", + "svg", + "text", + "tspan" +], Tr = Zt.bind(); +za.forEach(function(e) { + Tr[e] = Tr(e); +}); -var GetIntrinsic = __webpack_require__("../../../node_modules/get-intrinsic/index.js"); +// ../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +function Kt(e) { + if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return e; +} +a(Kt, "_assertThisInitialized"); -var callBind = __webpack_require__("../../../node_modules/call-bind/index.js"); +// ../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +function K(e, r) { + return K = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) { + return t.__proto__ = n, t; + }, K(e, r); +} +a(K, "_setPrototypeOf"); -var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf')); +// ../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +function Xt(e, r) { + e.prototype = Object.create(r.prototype), e.prototype.constructor = e, K(e, r); +} +a(Xt, "_inheritsLoose"); -module.exports = function callBoundIntrinsic(name, allowMissing) { - var intrinsic = GetIntrinsic(name, !!allowMissing); - if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) { - return callBind(intrinsic); - } - return intrinsic; -}; +// ../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +function Ye(e) { + return Ye = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) { + return r.__proto__ || Object.getPrototypeOf(r); + }, Ye(e); +} +a(Ye, "_getPrototypeOf"); +// ../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +function Qt(e) { + try { + return Function.toString.call(e).indexOf("[native code]") !== -1; + } catch { + return typeof e == "function"; + } +} +a(Qt, "_isNativeFunction"); -/***/ }), +// ../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +function Cr() { + try { + var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { + })); + } catch { + } + return (Cr = /* @__PURE__ */ a(function() { + return !!e; + }, "_isNativeReflectConstruct"))(); +} +a(Cr, "_isNativeReflectConstruct"); -/***/ "../../../node_modules/call-bind/index.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +// ../node_modules/@babel/runtime/helpers/esm/construct.js +function en(e, r, t) { + if (Cr()) return Reflect.construct.apply(null, arguments); + var n = [null]; + n.push.apply(n, r); + var o = new (e.bind.apply(e, n))(); + return t && K(o, t.prototype), o; +} +a(en, "_construct"); -"use strict"; +// ../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +function Ge(e) { + var r = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0; + return Ge = /* @__PURE__ */ a(function(n) { + if (n === null || !Qt(n)) return n; + if (typeof n != "function") throw new TypeError("Super expression must either be null or a function"); + if (r !== void 0) { + if (r.has(n)) return r.get(n); + r.set(n, o); + } + function o() { + return en(n, arguments, Ye(this).constructor); + } + return a(o, "Wrapper"), o.prototype = Object.create(n.prototype, { + constructor: { + value: o, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), K(o, n); + }, "_wrapNativeSuper"), Ge(e); +} +a(Ge, "_wrapNativeSuper"); +// ../node_modules/polished/dist/polished.esm.js +var Ma = { + 1: `Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0\ +.4, lightness: 0.75 }). -var bind = __webpack_require__("../../../node_modules/function-bind/index.js"); -var GetIntrinsic = __webpack_require__("../../../node_modules/get-intrinsic/index.js"); -var setFunctionLength = __webpack_require__("../../../node_modules/set-function-length/index.js"); +`, + 2: `Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, satura\ +tion: 0.4, lightness: 0.75, alpha: 0.7 }). -var $TypeError = GetIntrinsic('%TypeError%'); -var $apply = GetIntrinsic('%Function.prototype.apply%'); -var $call = GetIntrinsic('%Function.prototype.call%'); -var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply); +`, + 3: `Passed an incorrect argument to a color function, please pass a string representation of a color. -var $defineProperty = GetIntrinsic('%Object.defineProperty%', true); -var $max = GetIntrinsic('%Math.max%'); +`, + 4: `Couldn't generate valid rgb string from %s, it returned %s. -if ($defineProperty) { - try { - $defineProperty({}, 'a', { value: 1 }); - } catch (e) { - // IE 8 has a broken defineProperty - $defineProperty = null; - } -} +`, + 5: `Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation. -module.exports = function callBind(originalFunction) { - if (typeof originalFunction !== 'function') { - throw new $TypeError('a function is required'); - } - var func = $reflectApply(bind, $call, arguments); - return setFunctionLength( - func, - 1 + $max(0, originalFunction.length - (arguments.length - 1)), - true - ); -}; +`, + 6: `Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, bl\ +ue: 100 }). -var applyBind = function applyBind() { - return $reflectApply(bind, $apply, arguments); -}; +`, + 7: `Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: \ +205, blue: 100, alpha: 0.75 }). -if ($defineProperty) { - $defineProperty(module.exports, 'apply', { value: applyBind }); -} else { - module.exports.apply = applyBind; -} +`, + 8: `Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object. +`, + 9: `Please provide a number of steps to the modularScale helper. -/***/ }), +`, + 10: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio. -/***/ "../../../node_modules/define-data-property/index.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +`, + 11: `Invalid value passed as base to modularScale, expected number or em string but got "%s" -"use strict"; +`, + 12: `Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead. +`, + 13: `Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead. -var hasPropertyDescriptors = __webpack_require__("../../../node_modules/has-property-descriptors/index.js")(); +`, + 14: `Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12. -var GetIntrinsic = __webpack_require__("../../../node_modules/get-intrinsic/index.js"); +`, + 15: `Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12. -var $defineProperty = hasPropertyDescriptors && GetIntrinsic('%Object.defineProperty%', true); -if ($defineProperty) { - try { - $defineProperty({}, 'a', { value: 1 }); - } catch (e) { - // IE 8 has a broken defineProperty - $defineProperty = false; - } -} +`, + 16: `You must provide a template to this method. -var $SyntaxError = GetIntrinsic('%SyntaxError%'); -var $TypeError = GetIntrinsic('%TypeError%'); +`, + 17: `You passed an unsupported selector state to this method. -var gopd = __webpack_require__("../../../node_modules/gopd/index.js"); +`, + 18: `minScreen and maxScreen must be provided as stringified numbers with the same units. -/** @type {(obj: Record, property: PropertyKey, value: unknown, nonEnumerable?: boolean | null, nonWritable?: boolean | null, nonConfigurable?: boolean | null, loose?: boolean) => void} */ -module.exports = function defineDataProperty( - obj, - property, - value -) { - if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) { - throw new $TypeError('`obj` must be an object or a function`'); - } - if (typeof property !== 'string' && typeof property !== 'symbol') { - throw new $TypeError('`property` must be a string or a symbol`'); - } - if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) { - throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null'); - } - if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) { - throw new $TypeError('`nonWritable`, if provided, must be a boolean or null'); - } - if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) { - throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null'); - } - if (arguments.length > 6 && typeof arguments[6] !== 'boolean') { - throw new $TypeError('`loose`, if provided, must be a boolean'); - } +`, + 19: `fromSize and toSize must be provided as stringified numbers with the same units. - var nonEnumerable = arguments.length > 3 ? arguments[3] : null; - var nonWritable = arguments.length > 4 ? arguments[4] : null; - var nonConfigurable = arguments.length > 5 ? arguments[5] : null; - var loose = arguments.length > 6 ? arguments[6] : false; - - /* @type {false | TypedPropertyDescriptor} */ - var desc = !!gopd && gopd(obj, property); - - if ($defineProperty) { - $defineProperty(obj, property, { - configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable, - enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable, - value: value, - writable: nonWritable === null && desc ? desc.writable : !nonWritable - }); - } else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) { - // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable - obj[property] = value; // eslint-disable-line no-param-reassign - } else { - throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.'); - } -}; +`, + 20: `expects either an array of objects or a single object with the properties prop, fromSize, and toSize. +`, + 21: "expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n", + 22: "expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n", + 23: `fontFace expects a name of a font-family. -/***/ }), +`, + 24: `fontFace expects either the path to the font file(s) or a name of a local copy. -/***/ "../../../node_modules/define-properties/index.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { +`, + 25: `fontFace expects localFonts to be an array. -"use strict"; +`, + 26: `fontFace expects fileFormats to be an array. +`, + 27: `radialGradient requries at least 2 color-stops to properly render. -var keys = __webpack_require__("../../../node_modules/object-keys/index.js"); -var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol'; +`, + 28: `Please supply a filename to retinaImage() as the first argument. -var toStr = Object.prototype.toString; -var concat = Array.prototype.concat; -var defineDataProperty = __webpack_require__("../../../node_modules/define-data-property/index.js"); +`, + 29: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. -var isFunction = function (fn) { - return typeof fn === 'function' && toStr.call(fn) === '[object Function]'; -}; +`, + 30: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n", + 31: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation -var supportsDescriptors = __webpack_require__("../../../node_modules/has-property-descriptors/index.js")(); - -var defineProperty = function (object, name, value, predicate) { - if (name in object) { - if (predicate === true) { - if (object[name] === value) { - return; - } - } else if (!isFunction(predicate) || !predicate()) { - return; - } - } +`, + 32: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s']) +To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s') - if (supportsDescriptors) { - defineDataProperty(object, name, value, true); - } else { - defineDataProperty(object, name, value); - } -}; +`, + 33: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation -var defineProperties = function (object, map) { - var predicates = arguments.length > 2 ? arguments[2] : {}; - var props = keys(map); - if (hasSymbols) { - props = concat.call(props, Object.getOwnPropertySymbols(map)); - } - for (var i = 0; i < props.length; i += 1) { - defineProperty(object, props[i], map[props[i]], predicates[props[i]]); - } -}; +`, + 34: `borderRadius expects a radius value as a string or number as the second argument. -defineProperties.supportsDescriptors = !!supportsDescriptors; +`, + 35: `borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. -module.exports = defineProperties; +`, + 36: `Property must be a string value. +`, + 37: `Syntax Error at %s. -/***/ }), +`, + 38: `Formula contains a function that needs parentheses at %s. -/***/ "../../../node_modules/doctrine/lib/doctrine.js": -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { +`, + 39: `Formula is missing closing parenthesis at %s. -var __webpack_unused_export__; -/* - * @fileoverview Main Doctrine object - * @author Yusuke Suzuki - * @author Dan Tao - * @author Andrew Eisenberg - */ +`, + 40: `Formula has too many closing parentheses at %s. -(function () { - 'use strict'; +`, + 41: `All values in a formula must have the same unit or be unitless. - var typed, - utility, - jsdoc, - esutils, - hasOwnProperty; +`, + 42: `Please provide a number of steps to the modularScale helper. - esutils = __webpack_require__("../../../node_modules/esutils/lib/utils.js"); - typed = __webpack_require__("../../../node_modules/doctrine/lib/typed.js"); - utility = __webpack_require__("../../../node_modules/doctrine/lib/utility.js"); +`, + 43: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio. - function sliceSource(source, index, last) { - return source.slice(index, last); - } +`, + 44: `Invalid value passed as base to modularScale, expected number or em/rem string but got %s. - hasOwnProperty = (function () { - var func = Object.prototype.hasOwnProperty; - return function hasOwnProperty(obj, name) { - return func.call(obj, name); - }; - }()); - function shallowCopy(obj) { - var ret = {}, key; - for (key in obj) { - if (obj.hasOwnProperty(key)) { - ret[key] = obj[key]; - } - } - return ret; - } +`, + 45: `Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object. - function isASCIIAlphanumeric(ch) { - return (ch >= 0x61 /* 'a' */ && ch <= 0x7A /* 'z' */) || - (ch >= 0x41 /* 'A' */ && ch <= 0x5A /* 'Z' */) || - (ch >= 0x30 /* '0' */ && ch <= 0x39 /* '9' */); - } +`, + 46: `Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object. - function isParamTitle(title) { - return title === 'param' || title === 'argument' || title === 'arg'; - } +`, + 47: `minScreen and maxScreen must be provided as stringified numbers with the same units. - function isReturnTitle(title) { - return title === 'return' || title === 'returns'; - } +`, + 48: `fromSize and toSize must be provided as stringified numbers with the same units. - function isProperty(title) { - return title === 'property' || title === 'prop'; - } +`, + 49: `Expects either an array of objects or a single object with the properties prop, fromSize, and toSize. - function isNameParameterRequired(title) { - return isParamTitle(title) || isProperty(title) || - title === 'alias' || title === 'this' || title === 'mixes' || title === 'requires'; - } +`, + 50: `Expects the objects in the first argument array to have the properties prop, fromSize, and toSize. - function isAllowedName(title) { - return isNameParameterRequired(title) || title === 'const' || title === 'constant'; - } +`, + 51: `Expects the first argument object to have the properties prop, fromSize, and toSize. - function isAllowedNested(title) { - return isProperty(title) || isParamTitle(title); - } +`, + 52: `fontFace expects either the path to the font file(s) or a name of a local copy. - function isAllowedOptional(title) { - return isProperty(title) || isParamTitle(title); - } +`, + 53: `fontFace expects localFonts to be an array. - function isTypeParameterRequired(title) { - return isParamTitle(title) || isReturnTitle(title) || - title === 'define' || title === 'enum' || - title === 'implements' || title === 'this' || - title === 'type' || title === 'typedef' || isProperty(title); - } +`, + 54: `fontFace expects fileFormats to be an array. - // Consider deprecation instead using 'isTypeParameterRequired' and 'Rules' declaration to pick when a type is optional/required - // This would require changes to 'parseType' - function isAllowedType(title) { - return isTypeParameterRequired(title) || title === 'throws' || title === 'const' || title === 'constant' || - title === 'namespace' || title === 'member' || title === 'var' || title === 'module' || - title === 'constructor' || title === 'class' || title === 'extends' || title === 'augments' || - title === 'public' || title === 'private' || title === 'protected'; - } +`, + 55: `fontFace expects a name of a font-family. - // A regex character class that contains all whitespace except linebreak characters (\r, \n, \u2028, \u2029) - var WHITESPACE = '[ \\f\\t\\v\\u00a0\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]'; +`, + 56: `linearGradient requries at least 2 color-stops to properly render. - var STAR_MATCHER = '(' + WHITESPACE + '*(?:\\*' + WHITESPACE + '?)?)(.+|[\r\n\u2028\u2029])'; +`, + 57: `radialGradient requries at least 2 color-stops to properly render. - function unwrapComment(doc) { - // JSDoc comment is following form - // /** - // * ....... - // */ +`, + 58: `Please supply a filename to retinaImage() as the first argument. - return doc. - // remove /** - replace(/^\/\*\*?/, ''). - // remove */ - replace(/\*\/$/, ''). - // remove ' * ' at the beginning of a line - replace(new RegExp(STAR_MATCHER, 'g'), '$2'). - // remove trailing whitespace - replace(/\s*$/, ''); - } +`, + 59: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. - /** - * Converts an index in an "unwrapped" JSDoc comment to the corresponding index in the original "wrapped" version - * @param {string} originalSource The original wrapped comment - * @param {number} unwrappedIndex The index of a character in the unwrapped string - * @returns {number} The index of the corresponding character in the original wrapped string - */ - function convertUnwrappedCommentIndex(originalSource, unwrappedIndex) { - var replacedSource = originalSource.replace(/^\/\*\*?/, ''); - var numSkippedChars = 0; - var matcher = new RegExp(STAR_MATCHER, 'g'); - var match; +`, + 60: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n", + 61: `Property must be a string value. - while ((match = matcher.exec(replacedSource))) { - numSkippedChars += match[1].length; +`, + 62: `borderRadius expects a radius value as a string or number as the second argument. - if (match.index + match[0].length > unwrappedIndex + numSkippedChars) { - return unwrappedIndex + numSkippedChars + originalSource.length - replacedSource.length; - } - } +`, + 63: `borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. - return originalSource.replace(/\*\/$/, '').replace(/\s*$/, '').length; - } +`, + 64: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation. - // JSDoc Tag Parser +`, + 65: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animatio\ +n please supply them in simple values, e.g. animation('rotate', '2s'). - (function (exports) { - var Rules, - index, - lineNumber, - length, - source, - originalSource, - recoverable, - sloppy, - strict; +`, + 66: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation. - function advance() { - var ch = source.charCodeAt(index); - index += 1; - if (esutils.code.isLineTerminator(ch) && !(ch === 0x0D /* '\r' */ && source.charCodeAt(index) === 0x0A /* '\n' */)) { - lineNumber += 1; - } - return String.fromCharCode(ch); - } +`, + 67: `You must provide a template to this method. - function scanTitle() { - var title = ''; - // waste '@' - advance(); +`, + 68: `You passed an unsupported selector state to this method. - while (index < length && isASCIIAlphanumeric(source.charCodeAt(index))) { - title += advance(); - } +`, + 69: `Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead. - return title; - } +`, + 70: `Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead. - function seekContent() { - var ch, waiting, last = index; +`, + 71: `Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12. - waiting = false; - while (last < length) { - ch = source.charCodeAt(last); - if (esutils.code.isLineTerminator(ch) && !(ch === 0x0D /* '\r' */ && source.charCodeAt(last + 1) === 0x0A /* '\n' */)) { - waiting = true; - } else if (waiting) { - if (ch === 0x40 /* '@' */) { - break; - } - if (!esutils.code.isWhiteSpace(ch)) { - waiting = false; - } - } - last += 1; - } - return last; - } +`, + 72: `Passed invalid base value %s to %s(), please pass a value like "12px" or 12. - // type expression may have nest brace, such as, - // { { ok: string } } - // - // therefore, scanning type expression with balancing braces. - function parseType(title, last, addRange) { - var ch, brace, type, startIndex, direct = false; +`, + 73: `Please provide a valid CSS variable. +`, + 74: `CSS variable not found and no default was provided. - // search '{' - while (index < last) { - ch = source.charCodeAt(index); - if (esutils.code.isWhiteSpace(ch)) { - advance(); - } else if (ch === 0x7B /* '{' */) { - advance(); - break; - } else { - // this is direct pattern - direct = true; - break; - } - } +`, + 75: `important requires a valid style object, got a %s instead. +`, + 76: `fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen. - if (direct) { - return null; - } +`, + 77: `remToPx expects a value in "rem" but you provided it in "%s". - // type expression { is found - brace = 1; - type = ''; - while (index < last) { - ch = source.charCodeAt(index); - if (esutils.code.isLineTerminator(ch)) { - advance(); - } else { - if (ch === 0x7D /* '}' */) { - brace -= 1; - if (brace === 0) { - advance(); - break; - } - } else if (ch === 0x7B /* '{' */) { - brace += 1; - } - if (type === '') { - startIndex = index; - } - type += advance(); - } - } +`, + 78: `base must be set in "px" or "%" but you set it in "%s". +` +}; +function ja() { + for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++) + r[t] = arguments[t]; + var n = r[0], o = [], i; + for (i = 1; i < r.length; i += 1) + o.push(r[i]); + return o.forEach(function(s) { + n = n.replace(/%[a-z]/, s); + }), n; +} +a(ja, "format"); +var V = /* @__PURE__ */ function(e) { + Xt(r, e); + function r(t) { + for (var n, o = arguments.length, i = new Array(o > 1 ? o - 1 : 0), s = 1; s < o; s++) + i[s - 1] = arguments[s]; + return n = e.call(this, ja.apply(void 0, [Ma[t]].concat(i))) || this, Kt(n); + } + return a(r, "PolishedError"), r; +}(/* @__PURE__ */ Ge(Error)); +function Rr(e) { + return Math.round(e * 255); +} +a(Rr, "colorToInt"); +function Da(e, r, t) { + return Rr(e) + "," + Rr(r) + "," + Rr(t); +} +a(Da, "convertToInt"); +function Fe(e, r, t, n) { + if (n === void 0 && (n = Da), r === 0) + return n(t, t, t); + var o = (e % 360 + 360) % 360 / 60, i = (1 - Math.abs(2 * t - 1)) * r, s = i * (1 - Math.abs(o % 2 - 1)), u = 0, c = 0, d = 0; + o >= 0 && o < 1 ? (u = i, c = s) : o >= 1 && o < 2 ? (u = s, c = i) : o >= 2 && o < 3 ? (c = i, d = s) : o >= 3 && o < 4 ? (c = s, d = i) : + o >= 4 && o < 5 ? (u = s, d = i) : o >= 5 && o < 6 && (u = i, d = s); + var f = t - i / 2, l = u + f, p = c + f, v = d + f; + return n(l, p, v); +} +a(Fe, "hslToRgb"); +var rn = { + aliceblue: "f0f8ff", + antiquewhite: "faebd7", + aqua: "00ffff", + aquamarine: "7fffd4", + azure: "f0ffff", + beige: "f5f5dc", + bisque: "ffe4c4", + black: "000", + blanchedalmond: "ffebcd", + blue: "0000ff", + blueviolet: "8a2be2", + brown: "a52a2a", + burlywood: "deb887", + cadetblue: "5f9ea0", + chartreuse: "7fff00", + chocolate: "d2691e", + coral: "ff7f50", + cornflowerblue: "6495ed", + cornsilk: "fff8dc", + crimson: "dc143c", + cyan: "00ffff", + darkblue: "00008b", + darkcyan: "008b8b", + darkgoldenrod: "b8860b", + darkgray: "a9a9a9", + darkgreen: "006400", + darkgrey: "a9a9a9", + darkkhaki: "bdb76b", + darkmagenta: "8b008b", + darkolivegreen: "556b2f", + darkorange: "ff8c00", + darkorchid: "9932cc", + darkred: "8b0000", + darksalmon: "e9967a", + darkseagreen: "8fbc8f", + darkslateblue: "483d8b", + darkslategray: "2f4f4f", + darkslategrey: "2f4f4f", + darkturquoise: "00ced1", + darkviolet: "9400d3", + deeppink: "ff1493", + deepskyblue: "00bfff", + dimgray: "696969", + dimgrey: "696969", + dodgerblue: "1e90ff", + firebrick: "b22222", + floralwhite: "fffaf0", + forestgreen: "228b22", + fuchsia: "ff00ff", + gainsboro: "dcdcdc", + ghostwhite: "f8f8ff", + gold: "ffd700", + goldenrod: "daa520", + gray: "808080", + green: "008000", + greenyellow: "adff2f", + grey: "808080", + honeydew: "f0fff0", + hotpink: "ff69b4", + indianred: "cd5c5c", + indigo: "4b0082", + ivory: "fffff0", + khaki: "f0e68c", + lavender: "e6e6fa", + lavenderblush: "fff0f5", + lawngreen: "7cfc00", + lemonchiffon: "fffacd", + lightblue: "add8e6", + lightcoral: "f08080", + lightcyan: "e0ffff", + lightgoldenrodyellow: "fafad2", + lightgray: "d3d3d3", + lightgreen: "90ee90", + lightgrey: "d3d3d3", + lightpink: "ffb6c1", + lightsalmon: "ffa07a", + lightseagreen: "20b2aa", + lightskyblue: "87cefa", + lightslategray: "789", + lightslategrey: "789", + lightsteelblue: "b0c4de", + lightyellow: "ffffe0", + lime: "0f0", + limegreen: "32cd32", + linen: "faf0e6", + magenta: "f0f", + maroon: "800000", + mediumaquamarine: "66cdaa", + mediumblue: "0000cd", + mediumorchid: "ba55d3", + mediumpurple: "9370db", + mediumseagreen: "3cb371", + mediumslateblue: "7b68ee", + mediumspringgreen: "00fa9a", + mediumturquoise: "48d1cc", + mediumvioletred: "c71585", + midnightblue: "191970", + mintcream: "f5fffa", + mistyrose: "ffe4e1", + moccasin: "ffe4b5", + navajowhite: "ffdead", + navy: "000080", + oldlace: "fdf5e6", + olive: "808000", + olivedrab: "6b8e23", + orange: "ffa500", + orangered: "ff4500", + orchid: "da70d6", + palegoldenrod: "eee8aa", + palegreen: "98fb98", + paleturquoise: "afeeee", + palevioletred: "db7093", + papayawhip: "ffefd5", + peachpuff: "ffdab9", + peru: "cd853f", + pink: "ffc0cb", + plum: "dda0dd", + powderblue: "b0e0e6", + purple: "800080", + rebeccapurple: "639", + red: "f00", + rosybrown: "bc8f8f", + royalblue: "4169e1", + saddlebrown: "8b4513", + salmon: "fa8072", + sandybrown: "f4a460", + seagreen: "2e8b57", + seashell: "fff5ee", + sienna: "a0522d", + silver: "c0c0c0", + skyblue: "87ceeb", + slateblue: "6a5acd", + slategray: "708090", + slategrey: "708090", + snow: "fffafa", + springgreen: "00ff7f", + steelblue: "4682b4", + tan: "d2b48c", + teal: "008080", + thistle: "d8bfd8", + tomato: "ff6347", + turquoise: "40e0d0", + violet: "ee82ee", + wheat: "f5deb3", + white: "fff", + whitesmoke: "f5f5f5", + yellow: "ff0", + yellowgreen: "9acd32" +}; +function Ba(e) { + if (typeof e != "string") return e; + var r = e.toLowerCase(); + return rn[r] ? "#" + rn[r] : e; +} +a(Ba, "nameToHex"); +var $a = /^#[a-fA-F0-9]{6}$/, Ha = /^#[a-fA-F0-9]{8}$/, Va = /^#[a-fA-F0-9]{3}$/, Ua = /^#[a-fA-F0-9]{4}$/, Ar = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i, +Wa = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, Ya = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i, +Ga = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i; +function Je(e) { + if (typeof e != "string") + throw new V(3); + var r = Ba(e); + if (r.match($a)) + return { + red: parseInt("" + r[1] + r[2], 16), + green: parseInt("" + r[3] + r[4], 16), + blue: parseInt("" + r[5] + r[6], 16) + }; + if (r.match(Ha)) { + var t = parseFloat((parseInt("" + r[7] + r[8], 16) / 255).toFixed(2)); + return { + red: parseInt("" + r[1] + r[2], 16), + green: parseInt("" + r[3] + r[4], 16), + blue: parseInt("" + r[5] + r[6], 16), + alpha: t + }; + } + if (r.match(Va)) + return { + red: parseInt("" + r[1] + r[1], 16), + green: parseInt("" + r[2] + r[2], 16), + blue: parseInt("" + r[3] + r[3], 16) + }; + if (r.match(Ua)) { + var n = parseFloat((parseInt("" + r[4] + r[4], 16) / 255).toFixed(2)); + return { + red: parseInt("" + r[1] + r[1], 16), + green: parseInt("" + r[2] + r[2], 16), + blue: parseInt("" + r[3] + r[3], 16), + alpha: n + }; + } + var o = Ar.exec(r); + if (o) + return { + red: parseInt("" + o[1], 10), + green: parseInt("" + o[2], 10), + blue: parseInt("" + o[3], 10) + }; + var i = Wa.exec(r.substring(0, 50)); + if (i) + return { + red: parseInt("" + i[1], 10), + green: parseInt("" + i[2], 10), + blue: parseInt("" + i[3], 10), + alpha: parseFloat("" + i[4]) > 1 ? parseFloat("" + i[4]) / 100 : parseFloat("" + i[4]) + }; + var s = Ya.exec(r); + if (s) { + var u = parseInt("" + s[1], 10), c = parseInt("" + s[2], 10) / 100, d = parseInt("" + s[3], 10) / 100, f = "rgb(" + Fe(u, c, d) + ")", l = Ar. + exec(f); + if (!l) + throw new V(4, r, f); + return { + red: parseInt("" + l[1], 10), + green: parseInt("" + l[2], 10), + blue: parseInt("" + l[3], 10) + }; + } + var p = Ga.exec(r.substring(0, 50)); + if (p) { + var v = parseInt("" + p[1], 10), h = parseInt("" + p[2], 10) / 100, m = parseInt("" + p[3], 10) / 100, y = "rgb(" + Fe(v, h, m) + ")", x = Ar. + exec(y); + if (!x) + throw new V(4, r, y); + return { + red: parseInt("" + x[1], 10), + green: parseInt("" + x[2], 10), + blue: parseInt("" + x[3], 10), + alpha: parseFloat("" + p[4]) > 1 ? parseFloat("" + p[4]) / 100 : parseFloat("" + p[4]) + }; + } + throw new V(5); +} +a(Je, "parseToRgb"); +function qa(e) { + var r = e.red / 255, t = e.green / 255, n = e.blue / 255, o = Math.max(r, t, n), i = Math.min(r, t, n), s = (o + i) / 2; + if (o === i) + return e.alpha !== void 0 ? { + hue: 0, + saturation: 0, + lightness: s, + alpha: e.alpha + } : { + hue: 0, + saturation: 0, + lightness: s + }; + var u, c = o - i, d = s > 0.5 ? c / (2 - o - i) : c / (o + i); + switch (o) { + case r: + u = (t - n) / c + (t < n ? 6 : 0); + break; + case t: + u = (n - r) / c + 2; + break; + default: + u = (r - t) / c + 4; + break; + } + return u *= 60, e.alpha !== void 0 ? { + hue: u, + saturation: d, + lightness: s, + alpha: e.alpha + } : { + hue: u, + saturation: d, + lightness: s + }; +} +a(qa, "rgbToHsl"); +function tn(e) { + return qa(Je(e)); +} +a(tn, "parseToHsl"); +var Ja = /* @__PURE__ */ a(function(r) { + return r.length === 7 && r[1] === r[2] && r[3] === r[4] && r[5] === r[6] ? "#" + r[1] + r[3] + r[5] : r; +}, "reduceHexValue"), Fr = Ja; +function te(e) { + var r = e.toString(16); + return r.length === 1 ? "0" + r : r; +} +a(te, "numberToHex"); +function _r(e) { + return te(Math.round(e * 255)); +} +a(_r, "colorToHex"); +function Za(e, r, t) { + return Fr("#" + _r(e) + _r(r) + _r(t)); +} +a(Za, "convertToHex"); +function qe(e, r, t) { + return Fe(e, r, t, Za); +} +a(qe, "hslToHex"); +function Ka(e, r, t) { + if (typeof e == "number" && typeof r == "number" && typeof t == "number") + return qe(e, r, t); + if (typeof e == "object" && r === void 0 && t === void 0) + return qe(e.hue, e.saturation, e.lightness); + throw new V(1); +} +a(Ka, "hsl"); +function Xa(e, r, t, n) { + if (typeof e == "number" && typeof r == "number" && typeof t == "number" && typeof n == "number") + return n >= 1 ? qe(e, r, t) : "rgba(" + Fe(e, r, t) + "," + n + ")"; + if (typeof e == "object" && r === void 0 && t === void 0 && n === void 0) + return e.alpha >= 1 ? qe(e.hue, e.saturation, e.lightness) : "rgba(" + Fe(e.hue, e.saturation, e.lightness) + "," + e.alpha + ")"; + throw new V(2); +} +a(Xa, "hsla"); +function Nr(e, r, t) { + if (typeof e == "number" && typeof r == "number" && typeof t == "number") + return Fr("#" + te(e) + te(r) + te(t)); + if (typeof e == "object" && r === void 0 && t === void 0) + return Fr("#" + te(e.red) + te(e.green) + te(e.blue)); + throw new V(6); +} +a(Nr, "rgb"); +function ve(e, r, t, n) { + if (typeof e == "string" && typeof r == "number") { + var o = Je(e); + return "rgba(" + o.red + "," + o.green + "," + o.blue + "," + r + ")"; + } else { + if (typeof e == "number" && typeof r == "number" && typeof t == "number" && typeof n == "number") + return n >= 1 ? Nr(e, r, t) : "rgba(" + e + "," + r + "," + t + "," + n + ")"; + if (typeof e == "object" && r === void 0 && t === void 0 && n === void 0) + return e.alpha >= 1 ? Nr(e.red, e.green, e.blue) : "rgba(" + e.red + "," + e.green + "," + e.blue + "," + e.alpha + ")"; + } + throw new V(7); +} +a(ve, "rgba"); +var Qa = /* @__PURE__ */ a(function(r) { + return typeof r.red == "number" && typeof r.green == "number" && typeof r.blue == "number" && (typeof r.alpha != "number" || typeof r.alpha > + "u"); +}, "isRgb"), eo = /* @__PURE__ */ a(function(r) { + return typeof r.red == "number" && typeof r.green == "number" && typeof r.blue == "number" && typeof r.alpha == "number"; +}, "isRgba"), ro = /* @__PURE__ */ a(function(r) { + return typeof r.hue == "number" && typeof r.saturation == "number" && typeof r.lightness == "number" && (typeof r.alpha != "number" || typeof r. + alpha > "u"); +}, "isHsl"), to = /* @__PURE__ */ a(function(r) { + return typeof r.hue == "number" && typeof r.saturation == "number" && typeof r.lightness == "number" && typeof r.alpha == "number"; +}, "isHsla"); +function nn(e) { + if (typeof e != "object") throw new V(8); + if (eo(e)) return ve(e); + if (Qa(e)) return Nr(e); + if (to(e)) return Xa(e); + if (ro(e)) return Ka(e); + throw new V(8); +} +a(nn, "toColorString"); +function an(e, r, t) { + return /* @__PURE__ */ a(function() { + var o = t.concat(Array.prototype.slice.call(arguments)); + return o.length >= r ? e.apply(this, o) : an(e, r, o); + }, "fn"); +} +a(an, "curried"); +function Ze(e) { + return an(e, e.length, []); +} +a(Ze, "curry"); +function Ke(e, r, t) { + return Math.max(e, Math.min(r, t)); +} +a(Ke, "guard"); +function no(e, r) { + if (r === "transparent") return r; + var t = tn(r); + return nn(j({}, t, { + lightness: Ke(0, 1, t.lightness - parseFloat(e)) + })); +} +a(no, "darken"); +var ao = /* @__PURE__ */ Ze(no), on = ao; +function oo(e, r) { + if (r === "transparent") return r; + var t = tn(r); + return nn(j({}, t, { + lightness: Ke(0, 1, t.lightness + parseFloat(e)) + })); +} +a(oo, "lighten"); +var io = /* @__PURE__ */ Ze(oo), sn = io; +function so(e, r) { + if (r === "transparent") return r; + var t = Je(r), n = typeof t.alpha == "number" ? t.alpha : 1, o = j({}, t, { + alpha: Ke(0, 1, (n * 100 + parseFloat(e) * 100) / 100) + }); + return ve(o); +} +a(so, "opacify"); +var uo = /* @__PURE__ */ Ze(so), un = uo; +function co(e, r) { + if (r === "transparent") return r; + var t = Je(r), n = typeof t.alpha == "number" ? t.alpha : 1, o = j({}, t, { + alpha: Ke(0, 1, +(n * 100 - parseFloat(e) * 100).toFixed(2) / 100) + }); + return ve(o); +} +a(co, "transparentize"); +var fo = /* @__PURE__ */ Ze(co), cn = fo; + +// src/theming/base.ts +var g = { + // Official color palette + primary: "#FF4785", + // coral + secondary: "#029CFD", + // ocean + tertiary: "#FAFBFC", + ancillary: "#22a699", + // Complimentary + orange: "#FC521F", + gold: "#FFAE00", + green: "#66BF3C", + seafoam: "#37D5D3", + purple: "#6F2CAC", + ultraviolet: "#2A0481", + // Monochrome + lightest: "#FFFFFF", + lighter: "#F7FAFC", + light: "#EEF3F6", + mediumlight: "#ECF4F9", + medium: "#D9E8F2", + mediumdark: "#73828C", + dark: "#5C6870", + darker: "#454E54", + darkest: "#2E3438", + // For borders + border: "hsla(203, 50%, 30%, 0.15)", + // Status + positive: "#66BF3C", + negative: "#FF4400", + warning: "#E69D00", + critical: "#FFFFFF", + // Text + defaultText: "#2E3438", + inverseText: "#FFFFFF", + positiveText: "#448028", + negativeText: "#D43900", + warningText: "#A15C20" +}, U = { + app: "#F6F9FC", + bar: g.lightest, + content: g.lightest, + preview: g.lightest, + gridCellSize: 10, + hoverable: cn(0.9, g.secondary), + // hover state for items in a list + // Notification, error, and warning backgrounds + positive: "#E1FFD4", + negative: "#FEDED2", + warning: "#FFF5CF", + critical: "#FF4400" +}, H = { + fonts: { + base: [ + '"Nunito Sans"', + "-apple-system", + '".SFNSText-Regular"', + '"San Francisco"', + "BlinkMacSystemFont", + '"Segoe UI"', + '"Helvetica Neue"', + "Helvetica", + "Arial", + "sans-serif" + ].join(", "), + mono: [ + "ui-monospace", + "Menlo", + "Monaco", + '"Roboto Mono"', + '"Oxygen Mono"', + '"Ubuntu Monospace"', + '"Source Code Pro"', + '"Droid Sans Mono"', + '"Courier New"', + "monospace" + ].join(", ") + }, + weight: { + regular: 400, + bold: 700 + }, + size: { + s1: 12, + s2: 14, + s3: 16, + m1: 20, + m2: 24, + m3: 28, + l1: 32, + l2: 40, + l3: 48, + code: 90 + } +}; - if (brace !== 0) { - // braces is not balanced - return utility.throwError('Braces are not balanced'); - } +// src/theming/global.ts +var kr = ir(ln(), 1), dn = (0, kr.default)(1)( + ({ typography: e }) => ({ + body: { + fontFamily: e.fonts.base, + fontSize: e.size.s3, + margin: 0, + WebkitFontSmoothing: "antialiased", + MozOsxFontSmoothing: "grayscale", + WebkitTapHighlightColor: "rgba(0, 0, 0, 0)", + WebkitOverflowScrolling: "touch" + }, + "*": { + boxSizing: "border-box" + }, + "h1, h2, h3, h4, h5, h6": { + fontWeight: e.weight.regular, + margin: 0, + padding: 0 + }, + "button, input, textarea, select": { + fontFamily: "inherit", + fontSize: "inherit", + boxSizing: "border-box" + }, + sub: { + fontSize: "0.8em", + bottom: "-0.2em" + }, + sup: { + fontSize: "0.8em", + top: "-0.2em" + }, + "b, strong": { + fontWeight: e.weight.bold + }, + hr: { + border: "none", + borderTop: "1px solid silver", + clear: "both", + marginBottom: "1.25rem" + }, + code: { + fontFamily: e.fonts.mono, + WebkitFontSmoothing: "antialiased", + MozOsxFontSmoothing: "grayscale", + display: "inline-block", + paddingLeft: 2, + paddingRight: 2, + verticalAlign: "baseline", + color: "inherit" + }, + pre: { + fontFamily: e.fonts.mono, + WebkitFontSmoothing: "antialiased", + MozOsxFontSmoothing: "grayscale", + lineHeight: "18px", + padding: "11px 1rem", + whiteSpace: "pre-wrap", + color: "inherit", + borderRadius: 3, + margin: "1rem 0" + } + }) +), lo = (0, kr.default)(1)(({ + color: e, + background: r, + typography: t +}) => { + let n = dn({ typography: t }); + return { + ...n, + body: { + ...n.body, + color: e.defaultText, + background: r.app, + overflow: "hidden" + }, + hr: { + ...n.hr, + borderTop: `1px solid ${e.border}` + } + }; +}); - if (isAllowedOptional(title)) { - return typed.parseParamType(type, {startIndex: convertIndex(startIndex), range: addRange}); - } +// src/theming/themes/dark.ts +var po = { + base: "dark", + // Storybook-specific color palette + colorPrimary: "#FF4785", + // coral + colorSecondary: "#029CFD", + // ocean + // UI + appBg: "#222425", + appContentBg: "#1B1C1D", + appPreviewBg: g.lightest, + appBorderColor: "rgba(255,255,255,.1)", + appBorderRadius: 4, + // Fonts + fontBase: H.fonts.base, + fontCode: H.fonts.mono, + // Text colors + textColor: "#C9CDCF", + textInverseColor: "#222425", + textMutedColor: "#798186", + // Toolbar default and active colors + barTextColor: g.mediumdark, + barHoverColor: g.secondary, + barSelectedColor: g.secondary, + barBg: "#292C2E", + // Form colors + buttonBg: "#222425", + buttonBorder: "rgba(255,255,255,.1)", + booleanBg: "#222425", + booleanSelectedBg: "#2E3438", + inputBg: "#1B1C1D", + inputBorder: "rgba(255,255,255,.1)", + inputTextColor: g.lightest, + inputBorderRadius: 4 +}, pn = po; + +// src/theming/themes/light.ts +var mo = { + base: "light", + // Storybook-specific color palette + colorPrimary: "#FF4785", + // coral + colorSecondary: "#029CFD", + // ocean + // UI + appBg: U.app, + appContentBg: g.lightest, + appPreviewBg: g.lightest, + appBorderColor: g.border, + appBorderRadius: 4, + // Fonts + fontBase: H.fonts.base, + fontCode: H.fonts.mono, + // Text colors + textColor: g.darkest, + textInverseColor: g.lightest, + textMutedColor: g.dark, + // Toolbar default and active colors + barTextColor: g.mediumdark, + barHoverColor: g.secondary, + barSelectedColor: g.secondary, + barBg: g.lightest, + // Form colors + buttonBg: U.app, + buttonBorder: g.medium, + booleanBg: g.mediumlight, + booleanSelectedBg: g.lightest, + inputBg: g.lightest, + inputBorder: g.border, + inputTextColor: g.darkest, + inputBorderRadius: 4 +}, ye = mo; + +// ../node_modules/@storybook/global/dist/index.mjs +var mn = (() => { + let e; + return typeof window < "u" ? e = window : typeof globalThis < "u" ? e = globalThis : typeof __webpack_require__.g < "u" ? e = __webpack_require__.g : typeof self < "u" ? + e = self : e = {}, e; +})(); + +// src/theming/utils.ts + +var { window: Pr } = mn, hn = /* @__PURE__ */ a((e) => ({ color: e }), "mkColor"), go = /* @__PURE__ */ a((e) => typeof e != "string" ? (_storybook_core_client_logger__WEBPACK_IMPORTED_MODULE_1__.logger. +warn( + `Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.` +), !1) : !0, "isColorString"), bo = /* @__PURE__ */ a((e) => !/(gradient|var|calc)/.test(e), "isValidColorForPolished"), vo = /* @__PURE__ */ a( +(e, r) => e === "darken" ? ve(`${on(1, r)}`, 0.95) : e === "lighten" ? ve(`${sn(1, r)}`, 0.95) : r, "applyPolished"), gn = /* @__PURE__ */ a( +(e) => (r) => { + if (!go(r) || !bo(r)) + return r; + try { + return vo(e, r); + } catch { + return r; + } +}, "colorFactory"), yo = gn("lighten"), xo = gn("darken"), Xe = /* @__PURE__ */ a(() => !Pr || !Pr.matchMedia ? "light" : Pr.matchMedia("(pr\ +efers-color-scheme: dark)").matches ? "dark" : "light", "getPreferredColorScheme"); + +// src/theming/create.ts +var Ne = { + light: ye, + dark: pn, + normal: ye +}, Lr = Xe(), bu = /* @__PURE__ */ (/* unused pure expression or super */ null && (a((e = { base: Lr }, r) => { + let t = { + ...Ne[Lr], + ...Ne[e.base] || {}, + ...e, + base: Ne[e.base] ? e.base : Lr + }; + return { + ...r, + ...t, + barSelectedColor: e.barSelectedColor || t.colorSecondary + }; +}, "create"))); + +// src/theming/animation.ts +var bn = { + rubber: "cubic-bezier(0.175, 0.885, 0.335, 1.05)" +}, Eo = be` + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +`, vn = be` + 0%, 100% { opacity: 1; } + 50% { opacity: .4; } +`, wo = be` + 0% { transform: translateY(1px); } + 25% { transform: translateY(0px); } + 50% { transform: translateY(-3px); } + 100% { transform: translateY(1px); } +`, So = be` + 0%, 100% { transform:translate3d(0,0,0); } + 12.5%, 62.5% { transform:translate3d(-4px,0,0); } + 37.5%, 87.5% { transform: translate3d(4px,0,0); } +`, Oo = _e` + animation: ${vn} 1.5s ease-in-out infinite; + color: transparent; + cursor: progress; +`, To = _e` + transition: all 150ms ease-out; + transform: translate3d(0, 0, 0); + + &:hover { + transform: translate3d(0, -2px, 0); + } + + &:active { + transform: translate3d(0, 0, 0); + } +`, yn = { + rotate360: Eo, + glow: vn, + float: wo, + jiggle: So, + inlineGlow: Oo, + hoverable: To +}; - return typed.parseType(type, {startIndex: convertIndex(startIndex), range: addRange}); - } +// src/theming/modules/syntax.ts +var xn = { + BASE_FONT_FAMILY: "Menlo, monospace", + BASE_FONT_SIZE: "11px", + BASE_LINE_HEIGHT: 1.2, + BASE_BACKGROUND_COLOR: "rgb(36, 36, 36)", + BASE_COLOR: "rgb(213, 213, 213)", + OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES: 10, + OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES: 5, + OBJECT_NAME_COLOR: "rgb(227, 110, 236)", + OBJECT_VALUE_NULL_COLOR: "rgb(127, 127, 127)", + OBJECT_VALUE_UNDEFINED_COLOR: "rgb(127, 127, 127)", + OBJECT_VALUE_REGEXP_COLOR: "rgb(233, 63, 59)", + OBJECT_VALUE_STRING_COLOR: "rgb(233, 63, 59)", + OBJECT_VALUE_SYMBOL_COLOR: "rgb(233, 63, 59)", + OBJECT_VALUE_NUMBER_COLOR: "hsl(252, 100%, 75%)", + OBJECT_VALUE_BOOLEAN_COLOR: "hsl(252, 100%, 75%)", + OBJECT_VALUE_FUNCTION_PREFIX_COLOR: "rgb(85, 106, 242)", + HTML_TAG_COLOR: "rgb(93, 176, 215)", + HTML_TAGNAME_COLOR: "rgb(93, 176, 215)", + HTML_TAGNAME_TEXT_TRANSFORM: "lowercase", + HTML_ATTRIBUTE_NAME_COLOR: "rgb(155, 187, 220)", + HTML_ATTRIBUTE_VALUE_COLOR: "rgb(242, 151, 102)", + HTML_COMMENT_COLOR: "rgb(137, 137, 137)", + HTML_DOCTYPE_COLOR: "rgb(192, 192, 192)", + ARROW_COLOR: "rgb(145, 145, 145)", + ARROW_MARGIN_RIGHT: 3, + ARROW_FONT_SIZE: 12, + ARROW_ANIMATION_DURATION: "0", + TREENODE_FONT_FAMILY: "Menlo, monospace", + TREENODE_FONT_SIZE: "11px", + TREENODE_LINE_HEIGHT: 1.2, + TREENODE_PADDING_LEFT: 12, + TABLE_BORDER_COLOR: "rgb(85, 85, 85)", + TABLE_TH_BACKGROUND_COLOR: "rgb(44, 44, 44)", + TABLE_TH_HOVER_COLOR: "rgb(48, 48, 48)", + TABLE_SORT_ICON_COLOR: "black", + // 'rgb(48, 57, 66)', + TABLE_DATA_BACKGROUND_IMAGE: "linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(\ +51, 139, 255, 0.0980392))", + TABLE_DATA_BACKGROUND_SIZE: "128px 32px" +}, En = { + BASE_FONT_FAMILY: "Menlo, monospace", + BASE_FONT_SIZE: "11px", + BASE_LINE_HEIGHT: 1.2, + BASE_BACKGROUND_COLOR: "white", + BASE_COLOR: "black", + OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES: 10, + OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES: 5, + OBJECT_NAME_COLOR: "rgb(136, 19, 145)", + OBJECT_VALUE_NULL_COLOR: "rgb(128, 128, 128)", + OBJECT_VALUE_UNDEFINED_COLOR: "rgb(128, 128, 128)", + OBJECT_VALUE_REGEXP_COLOR: "rgb(196, 26, 22)", + OBJECT_VALUE_STRING_COLOR: "rgb(196, 26, 22)", + OBJECT_VALUE_SYMBOL_COLOR: "rgb(196, 26, 22)", + OBJECT_VALUE_NUMBER_COLOR: "rgb(28, 0, 207)", + OBJECT_VALUE_BOOLEAN_COLOR: "rgb(28, 0, 207)", + OBJECT_VALUE_FUNCTION_PREFIX_COLOR: "rgb(13, 34, 170)", + HTML_TAG_COLOR: "rgb(168, 148, 166)", + HTML_TAGNAME_COLOR: "rgb(136, 18, 128)", + HTML_TAGNAME_TEXT_TRANSFORM: "lowercase", + HTML_ATTRIBUTE_NAME_COLOR: "rgb(153, 69, 0)", + HTML_ATTRIBUTE_VALUE_COLOR: "rgb(26, 26, 166)", + HTML_COMMENT_COLOR: "rgb(35, 110, 37)", + HTML_DOCTYPE_COLOR: "rgb(192, 192, 192)", + ARROW_COLOR: "#6e6e6e", + ARROW_MARGIN_RIGHT: 3, + ARROW_FONT_SIZE: 12, + ARROW_ANIMATION_DURATION: "0", + TREENODE_FONT_FAMILY: "Menlo, monospace", + TREENODE_FONT_SIZE: "11px", + TREENODE_LINE_HEIGHT: 1.2, + TREENODE_PADDING_LEFT: 12, + TABLE_BORDER_COLOR: "#aaa", + TABLE_TH_BACKGROUND_COLOR: "#eee", + TABLE_TH_HOVER_COLOR: "hsla(0, 0%, 90%, 1)", + TABLE_SORT_ICON_COLOR: "#6e6e6e", + TABLE_DATA_BACKGROUND_IMAGE: "linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))", + TABLE_DATA_BACKGROUND_SIZE: "128px 32px" +}, Co = /* @__PURE__ */ a((e) => Object.entries(e).reduce((r, [t, n]) => ({ ...r, [t]: hn(n) }), {}), "convertColors"), wn = /* @__PURE__ */ a( +({ colors: e, mono: r }) => { + let t = Co(e); + return { + token: { + fontFamily: r, + WebkitFontSmoothing: "antialiased", + "&.tag": t.red3, + "&.comment": { ...t.green1, fontStyle: "italic" }, + "&.prolog": { ...t.green1, fontStyle: "italic" }, + "&.doctype": { ...t.green1, fontStyle: "italic" }, + "&.cdata": { ...t.green1, fontStyle: "italic" }, + "&.string": t.red1, + "&.url": t.cyan1, + "&.symbol": t.cyan1, + "&.number": t.cyan1, + "&.boolean": t.cyan1, + "&.variable": t.cyan1, + "&.constant": t.cyan1, + "&.inserted": t.cyan1, + "&.atrule": t.blue1, + "&.keyword": t.blue1, + "&.attr-value": t.blue1, + "&.punctuation": t.gray1, + "&.operator": t.gray1, + "&.function": t.gray1, + "&.deleted": t.red2, + "&.important": { + fontWeight: "bold" + }, + "&.bold": { + fontWeight: "bold" + }, + "&.italic": { + fontStyle: "italic" + }, + "&.class-name": t.cyan2, + "&.selector": t.red3, + "&.attr-name": t.red4, + "&.property": t.red4, + "&.regex": t.red4, + "&.entity": t.red4, + "&.directive.tag .tag": { + background: "#ffff00", + ...t.gray1 + } + }, + "language-json .token.boolean": t.blue1, + "language-json .token.number": t.blue1, + "language-json .token.property": t.cyan2, + namespace: { + opacity: 0.7 + } + }; +}, "create"); + +// src/theming/convert.ts +var Ro = { + green1: "#008000", + red1: "#A31515", + red2: "#9a050f", + red3: "#800000", + red4: "#ff0000", + gray1: "#393A34", + cyan1: "#36acaa", + cyan2: "#2B91AF", + blue1: "#0000ff", + blue2: "#00009f" +}, Ao = { + green1: "#7C7C7C", + red1: "#92C379", + red2: "#9a050f", + red3: "#A8FF60", + red4: "#96CBFE", + gray1: "#EDEDED", + cyan1: "#C6C5FE", + cyan2: "#FFFFB6", + blue1: "#B474DD", + blue2: "#00009f" +}, _o = /* @__PURE__ */ a((e) => ({ + // Changeable colors + primary: e.colorPrimary, + secondary: e.colorSecondary, + tertiary: g.tertiary, + ancillary: g.ancillary, + // Complimentary + orange: g.orange, + gold: g.gold, + green: g.green, + seafoam: g.seafoam, + purple: g.purple, + ultraviolet: g.ultraviolet, + // Monochrome + lightest: g.lightest, + lighter: g.lighter, + light: g.light, + mediumlight: g.mediumlight, + medium: g.medium, + mediumdark: g.mediumdark, + dark: g.dark, + darker: g.darker, + darkest: g.darkest, + // For borders + border: g.border, + // Status + positive: g.positive, + negative: g.negative, + warning: g.warning, + critical: g.critical, + defaultText: e.textColor || g.darkest, + inverseText: e.textInverseColor || g.lightest, + positiveText: g.positiveText, + negativeText: g.negativeText, + warningText: g.warningText +}), "createColors"), zr = /* @__PURE__ */ a((e = Ne[Xe()]) => { + let { + base: r, + colorPrimary: t, + colorSecondary: n, + appBg: o, + appContentBg: i, + appPreviewBg: s, + appBorderColor: u, + appBorderRadius: c, + fontBase: d, + fontCode: f, + textColor: l, + textInverseColor: p, + barTextColor: v, + barHoverColor: h, + barSelectedColor: m, + barBg: y, + buttonBg: x, + buttonBorder: E, + booleanBg: A, + booleanSelectedBg: T, + inputBg: C, + inputBorder: N, + inputTextColor: S, + inputBorderRadius: xe, + brandTitle: W, + brandUrl: G, + brandImage: er, + brandTarget: rr, + gridCellSize: tr, + ...nr + } = e; + return { + ...nr, + base: r, + color: _o(e), + background: { + app: o, + bar: y, + content: i, + preview: s, + gridCellSize: tr || U.gridCellSize, + hoverable: U.hoverable, + positive: U.positive, + negative: U.negative, + warning: U.warning, + critical: U.critical + }, + typography: { + fonts: { + base: d, + mono: f + }, + weight: H.weight, + size: H.size + }, + animation: yn, + easing: bn, + input: { + background: C, + border: N, + borderRadius: xe, + color: S + }, + button: { + background: x || C, + border: E || N + }, + boolean: { + background: A || N, + selectedBackground: T || C + }, + // UI + layoutMargin: 10, + appBorderColor: u, + appBorderRadius: c, + // Toolbar default/active colors + barTextColor: v, + barHoverColor: h || n, + barSelectedColor: m || n, + barBg: y, + // Brand logo/text + brand: { + title: W, + url: G, + image: er || (W ? null : void 0), + target: rr + }, + code: wn({ + colors: r === "light" ? Ro : Ao, + mono: f + }), + // Addon actions theme + // API example https://github.com/storybookjs/react-inspector/blob/master/src/styles/themes/chromeLight.tsx + addonActionsTheme: { + ...r === "light" ? En : xn, + BASE_FONT_FAMILY: f, + BASE_FONT_SIZE: H.size.s2 - 1, + BASE_LINE_HEIGHT: "18px", + BASE_BACKGROUND_COLOR: "transparent", + BASE_COLOR: l, + ARROW_COLOR: un(0.2, u), + ARROW_MARGIN_RIGHT: 4, + ARROW_FONT_SIZE: 8, + TREENODE_FONT_FAMILY: f, + TREENODE_FONT_SIZE: H.size.s2 - 1, + TREENODE_LINE_HEIGHT: "18px", + TREENODE_PADDING_LEFT: 12 + } + }; +}, "convert"); + +// src/theming/ensure.ts + + +// ../node_modules/deep-object-diff/mjs/utils.js +var Mr = /* @__PURE__ */ a((e) => Object.keys(e).length === 0, "isEmpty"), ne = /* @__PURE__ */ a((e) => e != null && typeof e == "object", "\ +isObject"), Ie = /* @__PURE__ */ a((e, ...r) => Object.prototype.hasOwnProperty.call(e, ...r), "hasOwnProperty"); +var ke = /* @__PURE__ */ a(() => /* @__PURE__ */ Object.create(null), "makeObjectWithoutPrototype"); + +// ../node_modules/deep-object-diff/mjs/deleted.js +var Sn = /* @__PURE__ */ a((e, r) => e === r || !ne(e) || !ne(r) ? {} : Object.keys(e).reduce((t, n) => { + if (Ie(r, n)) { + let o = Sn(e[n], r[n]); + return ne(o) && Mr(o) || (t[n] = o), t; + } + return t[n] = void 0, t; +}, ke()), "deletedDiff"), Qe = Sn; + +// ../node_modules/ts-dedent/esm/index.js +function On(e) { + for (var r = [], t = 1; t < arguments.length; t++) + r[t - 1] = arguments[t]; + var n = Array.from(typeof e == "string" ? [e] : e); + n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, ""); + var o = n.reduce(function(u, c) { + var d = c.match(/\n([\t ]+|(?!\s).)/g); + return d ? u.concat(d.map(function(f) { + var l, p; + return (p = (l = f.match(/[\t ]/g)) === null || l === void 0 ? void 0 : l.length) !== null && p !== void 0 ? p : 0; + })) : u; + }, []); + if (o.length) { + var i = new RegExp(` +[ ]{` + Math.min.apply(Math, o) + "}", "g"); + n = n.map(function(u) { + return u.replace(i, ` +`); + }); + } + n[0] = n[0].replace(/^\r?\n/, ""); + var s = n[0]; + return r.forEach(function(u, c) { + var d = s.match(/(?:^|\n)( *)$/), f = d ? d[1] : "", l = u; + typeof u == "string" && u.includes(` +`) && (l = String(u).split(` +`).map(function(p, v) { + return v === 0 ? p : "" + f + p; + }).join(` +`)), s += l + n[c + 1]; + }), s; +} +a(On, "dedent"); - function scanIdentifier(last) { - var identifier; - if (!esutils.code.isIdentifierStartES5(source.charCodeAt(index)) && !source[index].match(/[0-9]/)) { - return null; - } - identifier = advance(); - while (index < last && esutils.code.isIdentifierPartES5(source.charCodeAt(index))) { - identifier += advance(); - } - return identifier; - } +// src/theming/ensure.ts +var pc = /* @__PURE__ */ a((e) => { + if (!e) + return zr(ye); + let r = Qe(ye, e); + return Object.keys(r).length && _storybook_core_client_logger__WEBPACK_IMPORTED_MODULE_1__.logger.warn( + On` + Your theme is missing properties, you should update your theme! - function skipWhiteSpace(last) { - while (index < last && (esutils.code.isWhiteSpace(source.charCodeAt(index)) || esutils.code.isLineTerminator(source.charCodeAt(index)))) { - advance(); - } - } + theme-data missing: + `, + r + ), zr(e); +}, "ensure"); - function parseName(last, allowBrackets, allowNestedParams) { - var name = '', - useBrackets, - insideString; +// src/theming/index.ts +var gc = "/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */"; - skipWhiteSpace(last); - if (index >= last) { - return null; - } +/***/ }), - if (source.charCodeAt(index) === 0x5B /* '[' */) { - if (allowBrackets) { - useBrackets = true; - name = advance(); - } else { - return null; - } - } +/***/ "../../../node_modules/@storybook/html/dist/chunk-CEH6MNVV.mjs": +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - name += scanIdentifier(last); +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ V: () => (/* binding */ __export) +/* harmony export */ }); +var __defProp=Object.defineProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0});}; - if (allowNestedParams) { - if (source.charCodeAt(index) === 0x3A /* ':' */ && ( - name === 'module' || - name === 'external' || - name === 'event')) { - name += advance(); - name += scanIdentifier(last); - } - if(source.charCodeAt(index) === 0x5B /* '[' */ && source.charCodeAt(index + 1) === 0x5D /* ']' */){ - name += advance(); - name += advance(); - } - while (source.charCodeAt(index) === 0x2E /* '.' */ || - source.charCodeAt(index) === 0x2F /* '/' */ || - source.charCodeAt(index) === 0x23 /* '#' */ || - source.charCodeAt(index) === 0x2D /* '-' */ || - source.charCodeAt(index) === 0x7E /* '~' */) { - name += advance(); - name += scanIdentifier(last); - } - } - if (useBrackets) { - skipWhiteSpace(last); - // do we have a default value for this? - if (source.charCodeAt(index) === 0x3D /* '=' */) { - // consume the '='' symbol - name += advance(); - skipWhiteSpace(last); - - var ch; - var bracketDepth = 1; - - // scan in the default value - while (index < last) { - ch = source.charCodeAt(index); - - if (esutils.code.isWhiteSpace(ch)) { - if (!insideString) { - skipWhiteSpace(last); - ch = source.charCodeAt(index); - } - } - if (ch === 0x27 /* ''' */) { - if (!insideString) { - insideString = '\''; - } else { - if (insideString === '\'') { - insideString = ''; - } - } - } +/***/ }), - if (ch === 0x22 /* '"' */) { - if (!insideString) { - insideString = '"'; - } else { - if (insideString === '"') { - insideString = ''; - } - } - } +/***/ "../../../node_modules/@storybook/html/dist/entry-preview-docs.mjs": +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - if (ch === 0x5B /* '[' */) { - bracketDepth++; - } else if (ch === 0x5D /* ']' */ && - --bracketDepth === 0) { - break; - } +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ argTypesEnhancers: () => (/* binding */ argTypesEnhancers), +/* harmony export */ decorators: () => (/* binding */ decorators), +/* harmony export */ parameters: () => (/* binding */ parameters) +/* harmony export */ }); +/* harmony import */ var _chunk_CEH6MNVV_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/@storybook/html/dist/chunk-CEH6MNVV.mjs"); +/* harmony import */ var storybook_internal_docs_tools__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("../../../node_modules/@storybook/core/dist/docs-tools/index.js"); +/* harmony import */ var storybook_internal_preview_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("storybook/internal/preview-api"); +/* harmony import */ var storybook_internal_preview_api__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(storybook_internal_preview_api__WEBPACK_IMPORTED_MODULE_1__); - name += advance(); - } - } - skipWhiteSpace(last); - if (index >= last || source.charCodeAt(index) !== 0x5D /* ']' */) { - // we never found a closing ']' - return null; - } - // collect the last ']' - name += advance(); - } +function skipSourceRender(context){let sourceParams=context?.parameters.docs?.source,isArgsStory=context?.parameters.__isArgsStory;return sourceParams?.type===storybook_internal_docs_tools__WEBPACK_IMPORTED_MODULE_2__/* .SourceType */ .Y1.DYNAMIC?!1:!isArgsStory||sourceParams?.code||sourceParams?.type===storybook_internal_docs_tools__WEBPACK_IMPORTED_MODULE_2__/* .SourceType */ .Y1.CODE}var sourceDecorator=(storyFn,context)=>{let story=storyFn(),renderedForSource=context?.parameters.docs?.source?.excludeDecorators?context.originalStoryFn(context.args,context):story,source;return skipSourceRender(context)||(typeof renderedForSource=="string"?source=renderedForSource:renderedForSource instanceof Element&&(source=renderedForSource.outerHTML)),(0,storybook_internal_preview_api__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{let{id,unmappedArgs}=context;source&&storybook_internal_preview_api__WEBPACK_IMPORTED_MODULE_1__.addons.getChannel().emit(storybook_internal_docs_tools__WEBPACK_IMPORTED_MODULE_2__/* .SNIPPET_RENDERED */ .Op,{id,args:unmappedArgs,source});}),story};var decorators=[sourceDecorator],parameters={docs:{story:{inline:!0},source:{type:storybook_internal_docs_tools__WEBPACK_IMPORTED_MODULE_2__/* .SourceType */ .Y1.DYNAMIC,language:"html",code:void 0,excludeDecorators:void 0}}},argTypesEnhancers=[storybook_internal_docs_tools__WEBPACK_IMPORTED_MODULE_2__/* .enhanceArgTypes */ .C2]; - return name; - } - function skipToTag() { - while (index < length && source.charCodeAt(index) !== 0x40 /* '@' */) { - advance(); - } - if (index >= length) { - return false; - } - utility.assert(source.charCodeAt(index) === 0x40 /* '@' */); - return true; - } - function convertIndex(rangeIndex) { - if (source === originalSource) { - return rangeIndex; - } - return convertUnwrappedCommentIndex(originalSource, rangeIndex); - } - function TagParser(options, title) { - this._options = options; - this._title = title.toLowerCase(); - this._tag = { - title: title, - description: null - }; - if (this._options.lineNumbers) { - this._tag.lineNumber = lineNumber; - } - this._first = index - title.length - 1; - this._last = 0; - // space to save special information for title parsers. - this._extra = { }; - } - - // addError(err, ...) - TagParser.prototype.addError = function addError(errorText) { - var args = Array.prototype.slice.call(arguments, 1), - msg = errorText.replace( - /%(\d)/g, - function (whole, index) { - utility.assert(index < args.length, 'Message reference must be in range'); - return args[index]; - } - ); +/***/ }), - if (!this._tag.errors) { - this._tag.errors = []; - } - if (strict) { - utility.throwError(msg); - } - this._tag.errors.push(msg); - return recoverable; - }; +/***/ "../../../node_modules/@storybook/html/dist/entry-preview.mjs": +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - TagParser.prototype.parseType = function () { - // type required titles - if (isTypeParameterRequired(this._title)) { - try { - this._tag.type = parseType(this._title, this._last, this._options.range); - if (!this._tag.type) { - if (!isParamTitle(this._title) && !isReturnTitle(this._title)) { - if (!this.addError('Missing or invalid tag type')) { - return false; - } - } - } - } catch (error) { - this._tag.type = null; - if (!this.addError(error.message)) { - return false; - } - } - } else if (isAllowedType(this._title)) { - // optional types - try { - this._tag.type = parseType(this._title, this._last, this._options.range); - } catch (e) { - //For optional types, lets drop the thrown error when we hit the end of the file - } - } - return true; - }; +"use strict"; +// ESM COMPAT FLAG +__webpack_require__.r(__webpack_exports__); - TagParser.prototype._parseNamePath = function (optional) { - var name; - name = parseName(this._last, sloppy && isAllowedOptional(this._title), true); - if (!name) { - if (!optional) { - if (!this.addError('Missing or invalid tag name')) { - return false; - } - } - } - this._tag.name = name; - return true; - }; +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + parameters: () => (/* reexport */ parameters), + render: () => (/* reexport */ render), + renderToCanvas: () => (/* reexport */ renderToCanvas) +}); - TagParser.prototype.parseNamePath = function () { - return this._parseNamePath(false); - }; +// EXTERNAL MODULE: ../../../node_modules/@storybook/html/dist/chunk-CEH6MNVV.mjs +var chunk_CEH6MNVV = __webpack_require__("../../../node_modules/@storybook/html/dist/chunk-CEH6MNVV.mjs"); +// EXTERNAL MODULE: external "__STORYBOOK_MODULE_PREVIEW_API__" +var external_STORYBOOK_MODULE_PREVIEW_API_ = __webpack_require__("storybook/internal/preview-api"); +// EXTERNAL MODULE: external "__STORYBOOK_MODULE_GLOBAL__" +var external_STORYBOOK_MODULE_GLOBAL_ = __webpack_require__("@storybook/global"); +// EXTERNAL MODULE: ../../../node_modules/ts-dedent/esm/index.js +var esm = __webpack_require__("../../../node_modules/ts-dedent/esm/index.js"); +;// CONCATENATED MODULE: ../../../node_modules/@storybook/html/dist/chunk-EVBQXENU.mjs - TagParser.prototype.parseNamePathOptional = function () { - return this._parseNamePath(true); - }; - TagParser.prototype.parseName = function () { - var assign, name; - // param, property requires name - if (isAllowedName(this._title)) { - this._tag.name = parseName(this._last, sloppy && isAllowedOptional(this._title), isAllowedNested(this._title)); - if (!this._tag.name) { - if (!isNameParameterRequired(this._title)) { - return true; - } - // it's possible the name has already been parsed but interpreted as a type - // it's also possible this is a sloppy declaration, in which case it will be - // fixed at the end - if (isParamTitle(this._title) && this._tag.type && this._tag.type.name) { - this._extra.name = this._tag.type; - this._tag.name = this._tag.type.name; - this._tag.type = null; - } else { - if (!this.addError('Missing or invalid tag name')) { - return false; - } - } - } else { - name = this._tag.name; - if (name.charAt(0) === '[' && name.charAt(name.length - 1) === ']') { - // extract the default value if there is one - // example: @param {string} [somebody=John Doe] description - assign = name.substring(1, name.length - 1).split('='); - if (assign.length > 1) { - this._tag['default'] = assign.slice(1).join('='); - } - this._tag.name = assign[0]; - - // convert to an optional type - if (this._tag.type && this._tag.type.type !== 'OptionalType') { - this._tag.type = { - type: 'OptionalType', - expression: this._tag.type - }; - } - } - } - } +var entry_preview_exports={};(0,chunk_CEH6MNVV/* __export */.V)(entry_preview_exports,{parameters:()=>parameters,render:()=>render,renderToCanvas:()=>renderToCanvas});var {Node}=external_STORYBOOK_MODULE_GLOBAL_.global,render=(args,context)=>{let{id,component:Component}=context;if(typeof Component=="string"){let output=Component;return Object.keys(args).forEach(key=>{output=output.replace(`{{${key}}}`,args[key]);}),output}if(Component instanceof HTMLElement){let output=Component.cloneNode(!0);return Object.keys(args).forEach(key=>{output.setAttribute(key,typeof args[key]=="string"?args[key]:JSON.stringify(args[key]));}),output}if(typeof Component=="function")return Component(args,context);throw console.warn((0,esm/* dedent */.T)` + Storybook's HTML renderer only supports rendering DOM elements and strings. + Received: ${Component} + `),new Error(`Unable to render story ${id}`)};function renderToCanvas({storyFn,kind,name,showMain,showError,forceRemount},canvasElement){let element=storyFn();if(showMain(),typeof element=="string")canvasElement.innerHTML=element,(0,external_STORYBOOK_MODULE_PREVIEW_API_.simulatePageLoad)(canvasElement);else if(element instanceof Node){if(canvasElement.firstChild===element&&forceRemount===!1)return;canvasElement.innerHTML="",canvasElement.appendChild(element),(0,external_STORYBOOK_MODULE_PREVIEW_API_.simulateDOMContentLoaded)();}else showError({title:`Expecting an HTML snippet or DOM node from the story: "${name}" of "${kind}".`,description:(0,esm/* dedent */.T)` + Did you forget to return the HTML snippet from the story? + Use "() => " or when defining the story. + `});}var parameters={renderer:"html"}; - return true; - }; - TagParser.prototype.parseDescription = function parseDescription() { - var description = sliceSource(source, index, this._last).trim(); - if (description) { - if ((/^-\s+/).test(description)) { - description = description.substring(2); - } - this._tag.description = description; - } - return true; - }; +;// CONCATENATED MODULE: ../../../node_modules/@storybook/html/dist/entry-preview.mjs - TagParser.prototype.parseCaption = function parseDescription() { - var description = sliceSource(source, index, this._last).trim(); - var captionStartTag = ''; - var captionEndTag = ''; - var captionStart = description.indexOf(captionStartTag); - var captionEnd = description.indexOf(captionEndTag); - if (captionStart >= 0 && captionEnd >= 0) { - this._tag.caption = description.substring( - captionStart + captionStartTag.length, captionEnd).trim(); - this._tag.description = description.substring(captionEnd + captionEndTag.length).trim(); - } else { - this._tag.description = description; - } - return true; - }; - TagParser.prototype.parseKind = function parseKind() { - var kind, kinds; - kinds = { - 'class': true, - 'constant': true, - 'event': true, - 'external': true, - 'file': true, - 'function': true, - 'member': true, - 'mixin': true, - 'module': true, - 'namespace': true, - 'typedef': true - }; - kind = sliceSource(source, index, this._last).trim(); - this._tag.kind = kind; - if (!hasOwnProperty(kinds, kind)) { - if (!this.addError('Invalid kind name \'%0\'', kind)) { - return false; - } - } - return true; - }; - TagParser.prototype.parseAccess = function parseAccess() { - var access; - access = sliceSource(source, index, this._last).trim(); - this._tag.access = access; - if (access !== 'private' && access !== 'protected' && access !== 'public') { - if (!this.addError('Invalid access name \'%0\'', access)) { - return false; - } - } - return true; - }; - TagParser.prototype.parseThis = function parseThis() { - // this name may be a name expression (e.g. {foo.bar}), - // an union (e.g. {foo.bar|foo.baz}) or a name path (e.g. foo.bar) - var value = sliceSource(source, index, this._last).trim(); - if (value && value.charAt(0) === '{') { - var gotType = this.parseType(); - if (gotType && this._tag.type.type === 'NameExpression' || this._tag.type.type === 'UnionType') { - this._tag.name = this._tag.type.name; - return true; - } else { - return this.addError('Invalid name for this'); - } - } else { - return this.parseNamePath(); - } - }; +/***/ }), - TagParser.prototype.parseVariation = function parseVariation() { - var variation, text; - text = sliceSource(source, index, this._last).trim(); - variation = parseFloat(text, 10); - this._tag.variation = variation; - if (isNaN(variation)) { - if (!this.addError('Invalid variation \'%0\'', text)) { - return false; - } +/***/ "../../../node_modules/jsdoc-type-pratt-parser/dist/index.js": +/***/ (function(__unused_webpack_module, exports) { + +(function (global, factory) { + true ? factory(exports) : + 0; +})(this, (function (exports) { 'use strict'; + + function tokenToString(token) { + if (token.text !== undefined && token.text !== '') { + return `'${token.type}' with value '${token.text}'`; + } + else { + return `'${token.type}'`; + } + } + class NoParsletFoundError extends Error { + constructor(token) { + super(`No parslet found for token: ${tokenToString(token)}`); + this.token = token; + Object.setPrototypeOf(this, NoParsletFoundError.prototype); + } + getToken() { + return this.token; + } + } + class EarlyEndOfParseError extends Error { + constructor(token) { + super(`The parsing ended early. The next token was: ${tokenToString(token)}`); + this.token = token; + Object.setPrototypeOf(this, EarlyEndOfParseError.prototype); + } + getToken() { + return this.token; + } + } + class UnexpectedTypeError extends Error { + constructor(result, message) { + let error = `Unexpected type: '${result.type}'.`; + if (message !== undefined) { + error += ` Message: ${message}`; + } + super(error); + Object.setPrototypeOf(this, UnexpectedTypeError.prototype); + } + } + // export class UnexpectedTokenError extends Error { + // private expected: Token + // private found: Token + // + // constructor (expected: Token, found: Token) { + // super(`The parsing ended early. The next token was: ${tokenToString(token)}`) + // + // this.token = token + // + // Object.setPrototypeOf(this, EarlyEndOfParseError.prototype) + // } + // + // getToken() { + // return this.token + // } + // } + + function makePunctuationRule(type) { + return text => { + if (text.startsWith(type)) { + return { type, text: type }; + } + else { + return null; } - return true; }; - - TagParser.prototype.ensureEnd = function () { - var shouldBeEmpty = sliceSource(source, index, this._last).trim(); - if (shouldBeEmpty) { - if (!this.addError('Unknown content \'%0\'', shouldBeEmpty)) { - return false; - } + } + function getQuoted(text) { + let position = 0; + let char; + const mark = text[0]; + let escaped = false; + if (mark !== '\'' && mark !== '"') { + return null; + } + while (position < text.length) { + position++; + char = text[position]; + if (!escaped && char === mark) { + position++; + break; + } + escaped = !escaped && char === '\\'; + } + if (char !== mark) { + throw new Error('Unterminated String'); + } + return text.slice(0, position); + } + const identifierStartRegex = /[$_\p{ID_Start}]|\\u\p{Hex_Digit}{4}|\\u\{0*(?:\p{Hex_Digit}{1,5}|10\p{Hex_Digit}{4})\}/u; + // A hyphen is not technically allowed, but to keep it liberal for now, + // adding it here + const identifierContinueRegex = /[$\-\p{ID_Continue}\u200C\u200D]|\\u\p{Hex_Digit}{4}|\\u\{0*(?:\p{Hex_Digit}{1,5}|10\p{Hex_Digit}{4})\}/u; + function getIdentifier(text) { + let char = text[0]; + if (!identifierStartRegex.test(char)) { + return null; + } + let position = 1; + do { + char = text[position]; + if (!identifierContinueRegex.test(char)) { + break; } - return true; + position++; + } while (position < text.length); + return text.slice(0, position); + } + // we are a bit more liberal than TypeScript here and allow `NaN`, `Infinity` and `-Infinity` + const numberRegex = /^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/; + function getNumber(text) { + var _a, _b; + return (_b = (_a = numberRegex.exec(text)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : null; + } + const identifierRule = text => { + const value = getIdentifier(text); + if (value == null) { + return null; + } + return { + type: 'Identifier', + text: value }; - - TagParser.prototype.epilogue = function epilogue() { - var description; - - description = this._tag.description; - // un-fix potentially sloppy declaration - if (isAllowedOptional(this._title) && !this._tag.type && description && description.charAt(0) === '[') { - this._tag.type = this._extra.name; - if (!this._tag.name) { - this._tag.name = undefined; - } - - if (!sloppy) { - if (!this.addError('Missing or invalid tag name')) { - return false; - } - } + }; + function makeKeyWordRule(type) { + return text => { + if (!text.startsWith(type)) { + return null; } - - return true; + const prepends = text[type.length]; + if (prepends !== undefined && identifierContinueRegex.test(prepends)) { + return null; + } + return { + type, + text: type + }; }; - - Rules = { - // http://usejsdoc.org/tags-access.html - 'access': ['parseAccess'], - // http://usejsdoc.org/tags-alias.html - 'alias': ['parseNamePath', 'ensureEnd'], - // http://usejsdoc.org/tags-augments.html - 'augments': ['parseType', 'parseNamePathOptional', 'ensureEnd'], - // http://usejsdoc.org/tags-constructor.html - 'constructor': ['parseType', 'parseNamePathOptional', 'ensureEnd'], - // Synonym: http://usejsdoc.org/tags-constructor.html - 'class': ['parseType', 'parseNamePathOptional', 'ensureEnd'], - // Synonym: http://usejsdoc.org/tags-extends.html - 'extends': ['parseType', 'parseNamePathOptional', 'ensureEnd'], - // http://usejsdoc.org/tags-example.html - 'example': ['parseCaption'], - // http://usejsdoc.org/tags-deprecated.html - 'deprecated': ['parseDescription'], - // http://usejsdoc.org/tags-global.html - 'global': ['ensureEnd'], - // http://usejsdoc.org/tags-inner.html - 'inner': ['ensureEnd'], - // http://usejsdoc.org/tags-instance.html - 'instance': ['ensureEnd'], - // http://usejsdoc.org/tags-kind.html - 'kind': ['parseKind'], - // http://usejsdoc.org/tags-mixes.html - 'mixes': ['parseNamePath', 'ensureEnd'], - // http://usejsdoc.org/tags-mixin.html - 'mixin': ['parseNamePathOptional', 'ensureEnd'], - // http://usejsdoc.org/tags-member.html - 'member': ['parseType', 'parseNamePathOptional', 'ensureEnd'], - // http://usejsdoc.org/tags-method.html - 'method': ['parseNamePathOptional', 'ensureEnd'], - // http://usejsdoc.org/tags-module.html - 'module': ['parseType', 'parseNamePathOptional', 'ensureEnd'], - // Synonym: http://usejsdoc.org/tags-method.html - 'func': ['parseNamePathOptional', 'ensureEnd'], - // Synonym: http://usejsdoc.org/tags-method.html - 'function': ['parseNamePathOptional', 'ensureEnd'], - // Synonym: http://usejsdoc.org/tags-member.html - 'var': ['parseType', 'parseNamePathOptional', 'ensureEnd'], - // http://usejsdoc.org/tags-name.html - 'name': ['parseNamePath', 'ensureEnd'], - // http://usejsdoc.org/tags-namespace.html - 'namespace': ['parseType', 'parseNamePathOptional', 'ensureEnd'], - // http://usejsdoc.org/tags-private.html - 'private': ['parseType', 'parseDescription'], - // http://usejsdoc.org/tags-protected.html - 'protected': ['parseType', 'parseDescription'], - // http://usejsdoc.org/tags-public.html - 'public': ['parseType', 'parseDescription'], - // http://usejsdoc.org/tags-readonly.html - 'readonly': ['ensureEnd'], - // http://usejsdoc.org/tags-requires.html - 'requires': ['parseNamePath', 'ensureEnd'], - // http://usejsdoc.org/tags-since.html - 'since': ['parseDescription'], - // http://usejsdoc.org/tags-static.html - 'static': ['ensureEnd'], - // http://usejsdoc.org/tags-summary.html - 'summary': ['parseDescription'], - // http://usejsdoc.org/tags-this.html - 'this': ['parseThis', 'ensureEnd'], - // http://usejsdoc.org/tags-todo.html - 'todo': ['parseDescription'], - // http://usejsdoc.org/tags-typedef.html - 'typedef': ['parseType', 'parseNamePathOptional'], - // http://usejsdoc.org/tags-variation.html - 'variation': ['parseVariation'], - // http://usejsdoc.org/tags-version.html - 'version': ['parseDescription'] + } + const stringValueRule = text => { + const value = getQuoted(text); + if (value == null) { + return null; + } + return { + type: 'StringValue', + text: value }; - - TagParser.prototype.parse = function parse() { - var i, iz, sequences, method; - - - // empty title - if (!this._title) { - if (!this.addError('Missing or invalid title')) { - return null; + }; + const eofRule = text => { + if (text.length > 0) { + return null; + } + return { + type: 'EOF', + text: '' + }; + }; + const numberRule = text => { + const value = getNumber(text); + if (value === null) { + return null; + } + return { + type: 'Number', + text: value + }; + }; + const rules = [ + eofRule, + makePunctuationRule('=>'), + makePunctuationRule('('), + makePunctuationRule(')'), + makePunctuationRule('{'), + makePunctuationRule('}'), + makePunctuationRule('['), + makePunctuationRule(']'), + makePunctuationRule('|'), + makePunctuationRule('&'), + makePunctuationRule('<'), + makePunctuationRule('>'), + makePunctuationRule(','), + makePunctuationRule(';'), + makePunctuationRule('*'), + makePunctuationRule('?'), + makePunctuationRule('!'), + makePunctuationRule('='), + makePunctuationRule(':'), + makePunctuationRule('...'), + makePunctuationRule('.'), + makePunctuationRule('#'), + makePunctuationRule('~'), + makePunctuationRule('/'), + makePunctuationRule('@'), + makeKeyWordRule('undefined'), + makeKeyWordRule('null'), + makeKeyWordRule('function'), + makeKeyWordRule('this'), + makeKeyWordRule('new'), + makeKeyWordRule('module'), + makeKeyWordRule('event'), + makeKeyWordRule('external'), + makeKeyWordRule('typeof'), + makeKeyWordRule('keyof'), + makeKeyWordRule('readonly'), + makeKeyWordRule('import'), + makeKeyWordRule('is'), + makeKeyWordRule('in'), + makeKeyWordRule('asserts'), + numberRule, + identifierRule, + stringValueRule + ]; + const breakingWhitespaceRegex = /^\s*\n\s*/; + class Lexer { + static create(text) { + const current = this.read(text); + text = current.text; + const next = this.read(text); + text = next.text; + return new Lexer(text, undefined, current.token, next.token); + } + constructor(text, previous, current, next) { + this.text = ''; + this.text = text; + this.previous = previous; + this.current = current; + this.next = next; + } + static read(text, startOfLine = false) { + startOfLine = startOfLine || breakingWhitespaceRegex.test(text); + text = text.trim(); + for (const rule of rules) { + const partial = rule(text); + if (partial !== null) { + const token = Object.assign(Object.assign({}, partial), { startOfLine }); + text = text.slice(token.text.length); + return { text, token }; } } + throw new Error('Unexpected Token ' + text); + } + advance() { + const next = Lexer.read(this.text); + return new Lexer(next.text, this.current, this.next, next.token); + } + } - // Seek to content last index. - this._last = seekContent(this._title); - - if (this._options.range) { - this._tag.range = [this._first, source.slice(0, this._last).replace(/\s*$/, '').length].map(convertIndex); + /** + * Throws an error if the provided result is not a {@link RootResult} + */ + function assertRootResult(result) { + if (result === undefined) { + throw new Error('Unexpected undefined'); + } + if (result.type === 'JsdocTypeKeyValue' || result.type === 'JsdocTypeParameterList' || + result.type === 'JsdocTypeProperty' || result.type === 'JsdocTypeReadonlyProperty' || + result.type === 'JsdocTypeObjectField' || result.type === 'JsdocTypeJsdocObjectField' || + result.type === 'JsdocTypeIndexSignature' || result.type === 'JsdocTypeMappedType') { + throw new UnexpectedTypeError(result); + } + return result; + } + function assertPlainKeyValueOrRootResult(result) { + if (result.type === 'JsdocTypeKeyValue') { + return assertPlainKeyValueResult(result); + } + return assertRootResult(result); + } + function assertPlainKeyValueOrNameResult(result) { + if (result.type === 'JsdocTypeName') { + return result; + } + return assertPlainKeyValueResult(result); + } + function assertPlainKeyValueResult(result) { + if (result.type !== 'JsdocTypeKeyValue') { + throw new UnexpectedTypeError(result); + } + return result; + } + function assertNumberOrVariadicNameResult(result) { + var _a; + if (result.type === 'JsdocTypeVariadic') { + if (((_a = result.element) === null || _a === void 0 ? void 0 : _a.type) === 'JsdocTypeName') { + return result; } - - if (hasOwnProperty(Rules, this._title)) { - sequences = Rules[this._title]; - } else { - // default sequences - sequences = ['parseType', 'parseName', 'parseDescription', 'epilogue']; + throw new UnexpectedTypeError(result); + } + if (result.type !== 'JsdocTypeNumber' && result.type !== 'JsdocTypeName') { + throw new UnexpectedTypeError(result); + } + return result; + } + function isSquaredProperty(result) { + return result.type === 'JsdocTypeIndexSignature' || result.type === 'JsdocTypeMappedType'; + } + + // higher precedence = higher importance + var Precedence; + (function (Precedence) { + Precedence[Precedence["ALL"] = 0] = "ALL"; + Precedence[Precedence["PARAMETER_LIST"] = 1] = "PARAMETER_LIST"; + Precedence[Precedence["OBJECT"] = 2] = "OBJECT"; + Precedence[Precedence["KEY_VALUE"] = 3] = "KEY_VALUE"; + Precedence[Precedence["INDEX_BRACKETS"] = 4] = "INDEX_BRACKETS"; + Precedence[Precedence["UNION"] = 5] = "UNION"; + Precedence[Precedence["INTERSECTION"] = 6] = "INTERSECTION"; + Precedence[Precedence["PREFIX"] = 7] = "PREFIX"; + Precedence[Precedence["INFIX"] = 8] = "INFIX"; + Precedence[Precedence["TUPLE"] = 9] = "TUPLE"; + Precedence[Precedence["SYMBOL"] = 10] = "SYMBOL"; + Precedence[Precedence["OPTIONAL"] = 11] = "OPTIONAL"; + Precedence[Precedence["NULLABLE"] = 12] = "NULLABLE"; + Precedence[Precedence["KEY_OF_TYPE_OF"] = 13] = "KEY_OF_TYPE_OF"; + Precedence[Precedence["FUNCTION"] = 14] = "FUNCTION"; + Precedence[Precedence["ARROW"] = 15] = "ARROW"; + Precedence[Precedence["ARRAY_BRACKETS"] = 16] = "ARRAY_BRACKETS"; + Precedence[Precedence["GENERIC"] = 17] = "GENERIC"; + Precedence[Precedence["NAME_PATH"] = 18] = "NAME_PATH"; + Precedence[Precedence["PARENTHESIS"] = 19] = "PARENTHESIS"; + Precedence[Precedence["SPECIAL_TYPES"] = 20] = "SPECIAL_TYPES"; + })(Precedence || (Precedence = {})); + + class Parser { + constructor(grammar, textOrLexer, baseParser) { + this.grammar = grammar; + if (typeof textOrLexer === 'string') { + this._lexer = Lexer.create(textOrLexer); } - - for (i = 0, iz = sequences.length; i < iz; ++i) { - method = sequences[i]; - if (!this[method]()) { - return null; + else { + this._lexer = textOrLexer; + } + this.baseParser = baseParser; + } + get lexer() { + return this._lexer; + } + /** + * Parses a given string and throws an error if the parse ended before the end of the string. + */ + parse() { + const result = this.parseType(Precedence.ALL); + if (this.lexer.current.type !== 'EOF') { + throw new EarlyEndOfParseError(this.lexer.current); + } + return result; + } + /** + * Parses with the current lexer and asserts that the result is a {@link RootResult}. + */ + parseType(precedence) { + return assertRootResult(this.parseIntermediateType(precedence)); + } + /** + * The main parsing function. First it tries to parse the current state in the prefix step, and then it continues + * to parse the state in the infix step. + */ + parseIntermediateType(precedence) { + const result = this.tryParslets(null, precedence); + if (result === null) { + throw new NoParsletFoundError(this.lexer.current); + } + return this.parseInfixIntermediateType(result, precedence); + } + /** + * In the infix parsing step the parser continues to parse the current state with all parslets until none returns + * a result. + */ + parseInfixIntermediateType(left, precedence) { + let result = this.tryParslets(left, precedence); + while (result !== null) { + left = result; + result = this.tryParslets(left, precedence); + } + return left; + } + /** + * Tries to parse the current state with all parslets in the grammar and returns the first non null result. + */ + tryParslets(left, precedence) { + for (const parslet of this.grammar) { + const result = parslet(this, precedence, left); + if (result !== null) { + return result; } } - - return this._tag; - }; - - function parseTag(options) { - var title, parser, tag; - - // skip to tag - if (!skipToTag()) { - return null; + return null; + } + /** + * If the given type equals the current type of the {@link Lexer} advance the lexer. Return true if the lexer was + * advanced. + */ + consume(types) { + if (!Array.isArray(types)) { + types = [types]; } - - // scan title - title = scanTitle(); - - // construct tag parser - parser = new TagParser(options, title); - tag = parser.parse(); - - // Seek global index to end of this tag. - while (index < parser._last) { - advance(); + if (types.includes(this.lexer.current.type)) { + this._lexer = this.lexer.advance(); + return true; + } + else { + return false; } - - return tag; } + acceptLexerState(parser) { + this._lexer = parser.lexer; + } + } - // - // Parse JSDoc - // - - function scanJSDocDescription(preserveWhitespace) { - var description = '', ch, atAllowed; - - atAllowed = true; - while (index < length) { - ch = source.charCodeAt(index); + function isQuestionMarkUnknownType(next) { + return next === 'EOF' || next === '|' || next === ',' || next === ')' || next === '>'; + } - if (atAllowed && ch === 0x40 /* '@' */) { - break; + const nullableParslet = (parser, precedence, left) => { + const type = parser.lexer.current.type; + const next = parser.lexer.next.type; + const accept = ((left == null) && type === '?' && !isQuestionMarkUnknownType(next)) || + ((left != null) && type === '?'); + if (!accept) { + return null; + } + parser.consume('?'); + if (left == null) { + return { + type: 'JsdocTypeNullable', + element: parser.parseType(Precedence.NULLABLE), + meta: { + position: 'prefix' } - - if (esutils.code.isLineTerminator(ch)) { - atAllowed = true; - } else if (atAllowed && !esutils.code.isWhiteSpace(ch)) { - atAllowed = false; + }; + } + else { + return { + type: 'JsdocTypeNullable', + element: assertRootResult(left), + meta: { + position: 'suffix' } - - description += advance(); - } - - return preserveWhitespace ? description : description.trim(); + }; } + }; - function parse(comment, options) { - var tags = [], tag, description, interestingTags, i, iz; - - if (options === undefined) { - options = {}; - } - - if (typeof options.unwrap === 'boolean' && options.unwrap) { - source = unwrapComment(comment); - } else { - source = comment; + function composeParslet(options) { + const parslet = (parser, curPrecedence, left) => { + const type = parser.lexer.current.type; + const next = parser.lexer.next.type; + if (left === null) { + if ('parsePrefix' in options) { + if (options.accept(type, next)) { + return options.parsePrefix(parser); + } + } } - - originalSource = comment; - - // array of relevant tags - if (options.tags) { - if (Array.isArray(options.tags)) { - interestingTags = { }; - for (i = 0, iz = options.tags.length; i < iz; i++) { - if (typeof options.tags[i] === 'string') { - interestingTags[options.tags[i]] = true; - } else { - utility.throwError('Invalid "tags" parameter: ' + options.tags); - } + else { + if ('parseInfix' in options) { + if (options.precedence > curPrecedence && options.accept(type, next)) { + return options.parseInfix(parser, left); } - } else { - utility.throwError('Invalid "tags" parameter: ' + options.tags); } } + return null; + }; + // for debugging + Object.defineProperty(parslet, 'name', { + value: options.name + }); + return parslet; + } - length = source.length; - index = 0; - lineNumber = 0; - recoverable = options.recoverable; - sloppy = options.sloppy; - strict = options.strict; - - description = scanJSDocDescription(options.preserveWhitespace); - - while (true) { - tag = parseTag(options); - if (!tag) { - break; + const optionalParslet = composeParslet({ + name: 'optionalParslet', + accept: type => type === '=', + precedence: Precedence.OPTIONAL, + parsePrefix: parser => { + parser.consume('='); + return { + type: 'JsdocTypeOptional', + element: parser.parseType(Precedence.OPTIONAL), + meta: { + position: 'prefix' } - if (!interestingTags || interestingTags.hasOwnProperty(tag.title)) { - tags.push(tag); + }; + }, + parseInfix: (parser, left) => { + parser.consume('='); + return { + type: 'JsdocTypeOptional', + element: assertRootResult(left), + meta: { + position: 'suffix' } - } + }; + } + }); + const numberParslet = composeParslet({ + name: 'numberParslet', + accept: type => type === 'Number', + parsePrefix: parser => { + const value = parseFloat(parser.lexer.current.text); + parser.consume('Number'); return { - description: description, - tags: tags + type: 'JsdocTypeNumber', + value }; } - exports.parse = parse; - }(jsdoc = {})); - - __webpack_unused_export__ = utility.VERSION; - __webpack_unused_export__ = jsdoc.parse; - __webpack_unused_export__ = typed.parseType; - __webpack_unused_export__ = typed.parseParamType; - __webpack_unused_export__ = unwrapComment; - exports.w4 = shallowCopy(typed.Syntax); - __webpack_unused_export__ = utility.DoctrineError; - __webpack_unused_export__ = { - Syntax: exports.w4, - parseType: typed.parseType, - parseParamType: typed.parseParamType, - stringify: typed.stringify - }; -}()); -/* vim: set sw=4 ts=4 et tw=80 : */ - - -/***/ }), + }); -/***/ "../../../node_modules/doctrine/lib/typed.js": -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + const parenthesisParslet = composeParslet({ + name: 'parenthesisParslet', + accept: type => type === '(', + parsePrefix: parser => { + parser.consume('('); + if (parser.consume(')')) { + return { + type: 'JsdocTypeParameterList', + elements: [] + }; + } + const result = parser.parseIntermediateType(Precedence.ALL); + if (!parser.consume(')')) { + throw new Error('Unterminated parenthesis'); + } + if (result.type === 'JsdocTypeParameterList') { + return result; + } + else if (result.type === 'JsdocTypeKeyValue') { + return { + type: 'JsdocTypeParameterList', + elements: [result] + }; + } + return { + type: 'JsdocTypeParenthesis', + element: assertRootResult(result) + }; + } + }); -/* - * @fileoverview Type expression parser. - * @author Yusuke Suzuki - * @author Dan Tao - * @author Andrew Eisenberg - */ - -// "typed", the Type Expression Parser for doctrine. - -(function () { - 'use strict'; - - var Syntax, - Token, - source, - length, - index, - previous, - token, - value, - esutils, - utility, - rangeOffset, - addRange; - - esutils = __webpack_require__("../../../node_modules/esutils/lib/utils.js"); - utility = __webpack_require__("../../../node_modules/doctrine/lib/utility.js"); - - Syntax = { - NullableLiteral: 'NullableLiteral', - AllLiteral: 'AllLiteral', - NullLiteral: 'NullLiteral', - UndefinedLiteral: 'UndefinedLiteral', - VoidLiteral: 'VoidLiteral', - UnionType: 'UnionType', - ArrayType: 'ArrayType', - RecordType: 'RecordType', - FieldType: 'FieldType', - FunctionType: 'FunctionType', - ParameterType: 'ParameterType', - RestType: 'RestType', - NonNullableType: 'NonNullableType', - OptionalType: 'OptionalType', - NullableType: 'NullableType', - NameExpression: 'NameExpression', - TypeApplication: 'TypeApplication', - StringLiteralType: 'StringLiteralType', - NumericLiteralType: 'NumericLiteralType', - BooleanLiteralType: 'BooleanLiteralType' - }; - - Token = { - ILLEGAL: 0, // ILLEGAL - DOT_LT: 1, // .< - REST: 2, // ... - LT: 3, // < - GT: 4, // > - LPAREN: 5, // ( - RPAREN: 6, // ) - LBRACE: 7, // { - RBRACE: 8, // } - LBRACK: 9, // [ - RBRACK: 10, // ] - COMMA: 11, // , - COLON: 12, // : - STAR: 13, // * - PIPE: 14, // | - QUESTION: 15, // ? - BANG: 16, // ! - EQUAL: 17, // = - NAME: 18, // name token - STRING: 19, // string - NUMBER: 20, // number - EOF: 21 - }; - - function isTypeName(ch) { - return '><(){}[],:*|?!='.indexOf(String.fromCharCode(ch)) === -1 && !esutils.code.isWhiteSpace(ch) && !esutils.code.isLineTerminator(ch); - } - - function Context(previous, index, token, value) { - this._previous = previous; - this._index = index; - this._token = token; - this._value = value; - } - - Context.prototype.restore = function () { - previous = this._previous; - index = this._index; - token = this._token; - value = this._value; - }; - - Context.save = function () { - return new Context(previous, index, token, value); - }; + const specialTypesParslet = composeParslet({ + name: 'specialTypesParslet', + accept: (type, next) => (type === '?' && isQuestionMarkUnknownType(next)) || + type === 'null' || type === 'undefined' || type === '*', + parsePrefix: parser => { + if (parser.consume('null')) { + return { + type: 'JsdocTypeNull' + }; + } + if (parser.consume('undefined')) { + return { + type: 'JsdocTypeUndefined' + }; + } + if (parser.consume('*')) { + return { + type: 'JsdocTypeAny' + }; + } + if (parser.consume('?')) { + return { + type: 'JsdocTypeUnknown' + }; + } + throw new Error('Unacceptable token: ' + parser.lexer.current.text); + } + }); - function maybeAddRange(node, range) { - if (addRange) { - node.range = [range[0] + rangeOffset, range[1] + rangeOffset]; + const notNullableParslet = composeParslet({ + name: 'notNullableParslet', + accept: type => type === '!', + precedence: Precedence.NULLABLE, + parsePrefix: parser => { + parser.consume('!'); + return { + type: 'JsdocTypeNotNullable', + element: parser.parseType(Precedence.NULLABLE), + meta: { + position: 'prefix' + } + }; + }, + parseInfix: (parser, left) => { + parser.consume('!'); + return { + type: 'JsdocTypeNotNullable', + element: assertRootResult(left), + meta: { + position: 'suffix' + } + }; } - return node; - } + }); - function advance() { - var ch = source.charAt(index); - index += 1; - return ch; + function createParameterListParslet({ allowTrailingComma }) { + return composeParslet({ + name: 'parameterListParslet', + accept: type => type === ',', + precedence: Precedence.PARAMETER_LIST, + parseInfix: (parser, left) => { + const elements = [ + assertPlainKeyValueOrRootResult(left) + ]; + parser.consume(','); + do { + try { + const next = parser.parseIntermediateType(Precedence.PARAMETER_LIST); + elements.push(assertPlainKeyValueOrRootResult(next)); + } + catch (e) { + if (allowTrailingComma && e instanceof NoParsletFoundError) { + break; + } + else { + throw e; + } + } + } while (parser.consume(',')); + if (elements.length > 0 && elements.slice(0, -1).some(e => e.type === 'JsdocTypeVariadic')) { + throw new Error('Only the last parameter may be a rest parameter'); + } + return { + type: 'JsdocTypeParameterList', + elements + }; + } + }); } - function scanHexEscape(prefix) { - var i, len, ch, code = 0; - - len = (prefix === 'u') ? 4 : 2; - for (i = 0; i < len; ++i) { - if (index < length && esutils.code.isHexDigit(source.charCodeAt(index))) { - ch = advance(); - code = code * 16 + '0123456789abcdef'.indexOf(ch.toLowerCase()); - } else { - return ''; + const genericParslet = composeParslet({ + name: 'genericParslet', + accept: (type, next) => type === '<' || (type === '.' && next === '<'), + precedence: Precedence.GENERIC, + parseInfix: (parser, left) => { + const dot = parser.consume('.'); + parser.consume('<'); + const objects = []; + do { + objects.push(parser.parseType(Precedence.PARAMETER_LIST)); + } while (parser.consume(',')); + if (!parser.consume('>')) { + throw new Error('Unterminated generic parameter list'); } + return { + type: 'JsdocTypeGeneric', + left: assertRootResult(left), + elements: objects, + meta: { + brackets: 'angle', + dot + } + }; } - return String.fromCharCode(code); - } + }); - function scanString() { - var str = '', quote, ch, code, unescaped, restore; //TODO review removal octal = false - quote = source.charAt(index); - ++index; + const unionParslet = composeParslet({ + name: 'unionParslet', + accept: type => type === '|', + precedence: Precedence.UNION, + parseInfix: (parser, left) => { + parser.consume('|'); + const elements = []; + do { + elements.push(parser.parseType(Precedence.UNION)); + } while (parser.consume('|')); + return { + type: 'JsdocTypeUnion', + elements: [assertRootResult(left), ...elements] + }; + } + }); - while (index < length) { - ch = advance(); + const baseGrammar = [ + nullableParslet, + optionalParslet, + numberParslet, + parenthesisParslet, + specialTypesParslet, + notNullableParslet, + createParameterListParslet({ + allowTrailingComma: true + }), + genericParslet, + unionParslet, + optionalParslet + ]; - if (ch === quote) { - quote = ''; - break; - } else if (ch === '\\') { - ch = advance(); - if (!esutils.code.isLineTerminator(ch.charCodeAt(0))) { - switch (ch) { - case 'n': - str += '\n'; - break; - case 'r': - str += '\r'; - break; - case 't': - str += '\t'; - break; - case 'u': - case 'x': - restore = index; - unescaped = scanHexEscape(ch); - if (unescaped) { - str += unescaped; - } else { - index = restore; - str += ch; + function createNamePathParslet({ allowSquareBracketsOnAnyType, allowJsdocNamePaths, pathGrammar }) { + return function namePathParslet(parser, precedence, left) { + if ((left == null) || precedence >= Precedence.NAME_PATH) { + return null; + } + const type = parser.lexer.current.type; + const next = parser.lexer.next.type; + const accept = (type === '.' && next !== '<') || + (type === '[' && (allowSquareBracketsOnAnyType || left.type === 'JsdocTypeName')) || + (allowJsdocNamePaths && (type === '~' || type === '#')); + if (!accept) { + return null; + } + let pathType; + let brackets = false; + if (parser.consume('.')) { + pathType = 'property'; + } + else if (parser.consume('[')) { + pathType = 'property-brackets'; + brackets = true; + } + else if (parser.consume('~')) { + pathType = 'inner'; + } + else { + parser.consume('#'); + pathType = 'instance'; + } + const pathParser = pathGrammar !== null + ? new Parser(pathGrammar, parser.lexer, parser) + : parser; + const parsed = pathParser.parseIntermediateType(Precedence.NAME_PATH); + parser.acceptLexerState(pathParser); + let right; + switch (parsed.type) { + case 'JsdocTypeName': + right = { + type: 'JsdocTypeProperty', + value: parsed.value, + meta: { + quote: undefined } - break; - case 'b': - str += '\b'; - break; - case 'f': - str += '\f'; - break; - case 'v': - str += '\v'; - break; - - default: - if (esutils.code.isOctalDigit(ch.charCodeAt(0))) { - code = '01234567'.indexOf(ch); - - // \0 is not octal escape sequence - // Deprecating unused code. TODO review removal - //if (code !== 0) { - // octal = true; - //} - - if (index < length && esutils.code.isOctalDigit(source.charCodeAt(index))) { - //TODO Review Removal octal = true; - code = code * 8 + '01234567'.indexOf(advance()); - - // 3 digits are only allowed when string starts - // with 0, 1, 2, 3 - if ('0123'.indexOf(ch) >= 0 && - index < length && - esutils.code.isOctalDigit(source.charCodeAt(index))) { - code = code * 8 + '01234567'.indexOf(advance()); - } - } - str += String.fromCharCode(code); - } else { - str += ch; + }; + break; + case 'JsdocTypeNumber': + right = { + type: 'JsdocTypeProperty', + value: parsed.value.toString(10), + meta: { + quote: undefined } - break; + }; + break; + case 'JsdocTypeStringValue': + right = { + type: 'JsdocTypeProperty', + value: parsed.value, + meta: { + quote: parsed.meta.quote + } + }; + break; + case 'JsdocTypeSpecialNamePath': + if (parsed.specialType === 'event') { + right = parsed; } - } else { - if (ch === '\r' && source.charCodeAt(index) === 0x0A /* '\n' */) { - ++index; + else { + throw new UnexpectedTypeError(parsed, 'Type \'JsdocTypeSpecialNamePath\' is only allowed with specialType \'event\''); } - } - } else if (esutils.code.isLineTerminator(ch.charCodeAt(0))) { - break; - } else { - str += ch; + break; + default: + throw new UnexpectedTypeError(parsed, 'Expecting \'JsdocTypeName\', \'JsdocTypeNumber\', \'JsdocStringValue\' or \'JsdocTypeSpecialNamePath\''); } - } - - if (quote !== '') { - utility.throwError('unexpected quote'); - } - - value = str; - return Token.STRING; + if (brackets && !parser.consume(']')) { + const token = parser.lexer.current; + throw new Error(`Unterminated square brackets. Next token is '${token.type}' ` + + `with text '${token.text}'`); + } + return { + type: 'JsdocTypeNamePath', + left: assertRootResult(left), + right, + pathType + }; + }; } - function scanNumber() { - var number, ch; - - number = ''; - ch = source.charCodeAt(index); + function createNameParslet({ allowedAdditionalTokens }) { + return composeParslet({ + name: 'nameParslet', + accept: type => type === 'Identifier' || type === 'this' || type === 'new' || allowedAdditionalTokens.includes(type), + parsePrefix: parser => { + const { type, text } = parser.lexer.current; + parser.consume(type); + return { + type: 'JsdocTypeName', + value: text + }; + } + }); + } - if (ch !== 0x2E /* '.' */) { - number = advance(); - ch = source.charCodeAt(index); + const stringValueParslet = composeParslet({ + name: 'stringValueParslet', + accept: type => type === 'StringValue', + parsePrefix: parser => { + const text = parser.lexer.current.text; + parser.consume('StringValue'); + return { + type: 'JsdocTypeStringValue', + value: text.slice(1, -1), + meta: { + quote: text[0] === '\'' ? 'single' : 'double' + } + }; + } + }); - if (number === '0') { - if (ch === 0x78 /* 'x' */ || ch === 0x58 /* 'X' */) { - number += advance(); - while (index < length) { - ch = source.charCodeAt(index); - if (!esutils.code.isHexDigit(ch)) { - break; + function createSpecialNamePathParslet({ pathGrammar, allowedTypes }) { + return composeParslet({ + name: 'specialNamePathParslet', + accept: type => allowedTypes.includes(type), + parsePrefix: parser => { + const type = parser.lexer.current.type; + parser.consume(type); + if (!parser.consume(':')) { + return { + type: 'JsdocTypeName', + value: type + }; + } + let result; + let token = parser.lexer.current; + if (parser.consume('StringValue')) { + result = { + type: 'JsdocTypeSpecialNamePath', + value: token.text.slice(1, -1), + specialType: type, + meta: { + quote: token.text[0] === '\'' ? 'single' : 'double' } - number += advance(); + }; + } + else { + let value = ''; + const allowed = ['Identifier', '@', '/']; + while (allowed.some(type => parser.consume(type))) { + value += token.text; + token = parser.lexer.current; } + result = { + type: 'JsdocTypeSpecialNamePath', + value, + specialType: type, + meta: { + quote: undefined + } + }; + } + const moduleParser = new Parser(pathGrammar, parser.lexer, parser); + const moduleResult = moduleParser.parseInfixIntermediateType(result, Precedence.ALL); + parser.acceptLexerState(moduleParser); + return assertRootResult(moduleResult); + } + }); + } - if (number.length <= 2) { - // only 0x - utility.throwError('unexpected token'); - } + const basePathGrammar = [ + createNameParslet({ + allowedAdditionalTokens: ['external', 'module'] + }), + stringValueParslet, + numberParslet, + createNamePathParslet({ + allowSquareBracketsOnAnyType: false, + allowJsdocNamePaths: true, + pathGrammar: null + }) + ]; + const pathGrammar = [ + ...basePathGrammar, + createSpecialNamePathParslet({ + allowedTypes: ['event'], + pathGrammar: basePathGrammar + }) + ]; - if (index < length) { - ch = source.charCodeAt(index); - if (esutils.code.isIdentifierStartES5(ch)) { - utility.throwError('unexpected token'); - } + function getParameters(value) { + let parameters; + if (value.type === 'JsdocTypeParameterList') { + parameters = value.elements; + } + else if (value.type === 'JsdocTypeParenthesis') { + parameters = [value.element]; + } + else { + throw new UnexpectedTypeError(value); + } + return parameters.map(p => assertPlainKeyValueOrRootResult(p)); + } + function getUnnamedParameters(value) { + const parameters = getParameters(value); + if (parameters.some(p => p.type === 'JsdocTypeKeyValue')) { + throw new Error('No parameter should be named'); + } + return parameters; + } + function createFunctionParslet({ allowNamedParameters, allowNoReturnType, allowWithoutParenthesis, allowNewAsFunctionKeyword }) { + return composeParslet({ + name: 'functionParslet', + accept: (type, next) => type === 'function' || (allowNewAsFunctionKeyword && type === 'new' && next === '('), + parsePrefix: parser => { + const newKeyword = parser.consume('new'); + parser.consume('function'); + const hasParenthesis = parser.lexer.current.type === '('; + if (!hasParenthesis) { + if (!allowWithoutParenthesis) { + throw new Error('function is missing parameter list'); } - value = parseInt(number, 16); - return Token.NUMBER; + return { + type: 'JsdocTypeName', + value: 'function' + }; } - - if (esutils.code.isOctalDigit(ch)) { - number += advance(); - while (index < length) { - ch = source.charCodeAt(index); - if (!esutils.code.isOctalDigit(ch)) { - break; + let result = { + type: 'JsdocTypeFunction', + parameters: [], + arrow: false, + constructor: newKeyword, + parenthesis: hasParenthesis + }; + const value = parser.parseIntermediateType(Precedence.FUNCTION); + if (allowNamedParameters === undefined) { + result.parameters = getUnnamedParameters(value); + } + else if (newKeyword && value.type === 'JsdocTypeFunction' && value.arrow) { + result = value; + result.constructor = true; + return result; + } + else { + result.parameters = getParameters(value); + for (const p of result.parameters) { + if (p.type === 'JsdocTypeKeyValue' && (!allowNamedParameters.includes(p.key))) { + throw new Error(`only allowed named parameters are ${allowNamedParameters.join(', ')} but got ${p.type}`); } - number += advance(); } + } + if (parser.consume(':')) { + result.returnType = parser.parseType(Precedence.PREFIX); + } + else { + if (!allowNoReturnType) { + throw new Error('function is missing return type'); + } + } + return result; + } + }); + } - if (index < length) { - ch = source.charCodeAt(index); - if (esutils.code.isIdentifierStartES5(ch) || esutils.code.isDecimalDigit(ch)) { - utility.throwError('unexpected token'); + function createVariadicParslet({ allowPostfix, allowEnclosingBrackets }) { + return composeParslet({ + name: 'variadicParslet', + accept: type => type === '...', + precedence: Precedence.PREFIX, + parsePrefix: parser => { + parser.consume('...'); + const brackets = allowEnclosingBrackets && parser.consume('['); + try { + const element = parser.parseType(Precedence.PREFIX); + if (brackets && !parser.consume(']')) { + throw new Error('Unterminated variadic type. Missing \']\''); + } + return { + type: 'JsdocTypeVariadic', + element: assertRootResult(element), + meta: { + position: 'prefix', + squareBrackets: brackets } + }; + } + catch (e) { + if (e instanceof NoParsletFoundError) { + if (brackets) { + throw new Error('Empty square brackets for variadic are not allowed.'); + } + return { + type: 'JsdocTypeVariadic', + meta: { + position: undefined, + squareBrackets: false + } + }; + } + else { + throw e; } - value = parseInt(number, 8); - return Token.NUMBER; } - - if (esutils.code.isDecimalDigit(ch)) { - utility.throwError('unexpected token'); + }, + parseInfix: allowPostfix + ? (parser, left) => { + parser.consume('...'); + return { + type: 'JsdocTypeVariadic', + element: assertRootResult(left), + meta: { + position: 'suffix', + squareBrackets: false + } + }; } - } + : undefined + }); + } - while (index < length) { - ch = source.charCodeAt(index); - if (!esutils.code.isDecimalDigit(ch)) { - break; + const symbolParslet = composeParslet({ + name: 'symbolParslet', + accept: type => type === '(', + precedence: Precedence.SYMBOL, + parseInfix: (parser, left) => { + if (left.type !== 'JsdocTypeName') { + throw new Error('Symbol expects a name on the left side. (Reacting on \'(\')'); + } + parser.consume('('); + const result = { + type: 'JsdocTypeSymbol', + value: left.value + }; + if (!parser.consume(')')) { + const next = parser.parseIntermediateType(Precedence.SYMBOL); + result.element = assertNumberOrVariadicNameResult(next); + if (!parser.consume(')')) { + throw new Error('Symbol does not end after value'); } - number += advance(); } + return result; } + }); - if (ch === 0x2E /* '.' */) { - number += advance(); - while (index < length) { - ch = source.charCodeAt(index); - if (!esutils.code.isDecimalDigit(ch)) { - break; + const arrayBracketsParslet = composeParslet({ + name: 'arrayBracketsParslet', + precedence: Precedence.ARRAY_BRACKETS, + accept: (type, next) => type === '[' && next === ']', + parseInfix: (parser, left) => { + parser.consume('['); + parser.consume(']'); + return { + type: 'JsdocTypeGeneric', + left: { + type: 'JsdocTypeName', + value: 'Array' + }, + elements: [ + assertRootResult(left) + ], + meta: { + brackets: 'square', + dot: false } - number += advance(); - } + }; } + }); - if (ch === 0x65 /* 'e' */ || ch === 0x45 /* 'E' */) { - number += advance(); - - ch = source.charCodeAt(index); - if (ch === 0x2B /* '+' */ || ch === 0x2D /* '-' */) { - number += advance(); - } - - ch = source.charCodeAt(index); - if (esutils.code.isDecimalDigit(ch)) { - number += advance(); - while (index < length) { - ch = source.charCodeAt(index); - if (!esutils.code.isDecimalDigit(ch)) { - break; + function createObjectParslet({ objectFieldGrammar, allowKeyTypes }) { + return composeParslet({ + name: 'objectParslet', + accept: type => type === '{', + parsePrefix: parser => { + parser.consume('{'); + const result = { + type: 'JsdocTypeObject', + meta: { + separator: 'comma' + }, + elements: [] + }; + if (!parser.consume('}')) { + let separator; + const fieldParser = new Parser(objectFieldGrammar, parser.lexer, parser); + while (true) { + fieldParser.acceptLexerState(parser); + let field = fieldParser.parseIntermediateType(Precedence.OBJECT); + parser.acceptLexerState(fieldParser); + if (field === undefined && allowKeyTypes) { + field = parser.parseIntermediateType(Precedence.OBJECT); + } + let optional = false; + if (field.type === 'JsdocTypeNullable') { + optional = true; + field = field.element; + } + if (field.type === 'JsdocTypeNumber' || field.type === 'JsdocTypeName' || field.type === 'JsdocTypeStringValue') { + let quote; + if (field.type === 'JsdocTypeStringValue') { + quote = field.meta.quote; + } + result.elements.push({ + type: 'JsdocTypeObjectField', + key: field.value.toString(), + right: undefined, + optional, + readonly: false, + meta: { + quote + } + }); + } + else if (field.type === 'JsdocTypeObjectField' || field.type === 'JsdocTypeJsdocObjectField') { + result.elements.push(field); + } + else { + throw new UnexpectedTypeError(field); + } + if (parser.lexer.current.startOfLine) { + separator = 'linebreak'; + } + else if (parser.consume(',')) { + separator = 'comma'; + } + else if (parser.consume(';')) { + separator = 'semicolon'; + } + else { + break; + } + const type = parser.lexer.current.type; + if (type === '}') { + break; + } + } + result.meta.separator = separator !== null && separator !== void 0 ? separator : 'comma'; // TODO: use undefined here + if (!parser.consume('}')) { + throw new Error('Unterminated record type. Missing \'}\''); } - number += advance(); } - } else { - utility.throwError('unexpected token'); - } - } - - if (index < length) { - ch = source.charCodeAt(index); - if (esutils.code.isIdentifierStartES5(ch)) { - utility.throwError('unexpected token'); + return result; } - } - - value = parseFloat(number); - return Token.NUMBER; + }); } - - function scanTypeName() { - var ch, ch2; - - value = advance(); - while (index < length && isTypeName(source.charCodeAt(index))) { - ch = source.charCodeAt(index); - if (ch === 0x2E /* '.' */) { - if ((index + 1) >= length) { - return Token.ILLEGAL; + function createObjectFieldParslet({ allowSquaredProperties, allowKeyTypes, allowReadonly, allowOptional }) { + return composeParslet({ + name: 'objectFieldParslet', + precedence: Precedence.KEY_VALUE, + accept: type => type === ':', + parseInfix: (parser, left) => { + var _a; + let optional = false; + let readonlyProperty = false; + if (allowOptional && left.type === 'JsdocTypeNullable') { + optional = true; + left = left.element; } - ch2 = source.charCodeAt(index + 1); - if (ch2 === 0x3C /* '<' */) { - break; + if (allowReadonly && left.type === 'JsdocTypeReadonlyProperty') { + readonlyProperty = true; + left = left.element; } - } - value += advance(); - } - return Token.NAME; - } - - function next() { - var ch; - - previous = index; - - while (index < length && esutils.code.isWhiteSpace(source.charCodeAt(index))) { - advance(); - } - if (index >= length) { - token = Token.EOF; - return token; - } - - ch = source.charCodeAt(index); - switch (ch) { - case 0x27: /* ''' */ - case 0x22: /* '"' */ - token = scanString(); - return token; - - case 0x3A: /* ':' */ - advance(); - token = Token.COLON; - return token; - - case 0x2C: /* ',' */ - advance(); - token = Token.COMMA; - return token; - - case 0x28: /* '(' */ - advance(); - token = Token.LPAREN; - return token; - - case 0x29: /* ')' */ - advance(); - token = Token.RPAREN; - return token; - - case 0x5B: /* '[' */ - advance(); - token = Token.LBRACK; - return token; - - case 0x5D: /* ']' */ - advance(); - token = Token.RBRACK; - return token; - - case 0x7B: /* '{' */ - advance(); - token = Token.LBRACE; - return token; - - case 0x7D: /* '}' */ - advance(); - token = Token.RBRACE; - return token; - - case 0x2E: /* '.' */ - if (index + 1 < length) { - ch = source.charCodeAt(index + 1); - if (ch === 0x3C /* '<' */) { - advance(); // '.' - advance(); // '<' - token = Token.DOT_LT; - return token; + // object parslet uses a special grammar and for the value we want to switch back to the parent + const parentParser = (_a = parser.baseParser) !== null && _a !== void 0 ? _a : parser; + parentParser.acceptLexerState(parser); + if (left.type === 'JsdocTypeNumber' || left.type === 'JsdocTypeName' || left.type === 'JsdocTypeStringValue' || + isSquaredProperty(left)) { + if (isSquaredProperty(left) && !allowSquaredProperties) { + throw new UnexpectedTypeError(left); + } + parentParser.consume(':'); + let quote; + if (left.type === 'JsdocTypeStringValue') { + quote = left.meta.quote; + } + const right = parentParser.parseType(Precedence.KEY_VALUE); + parser.acceptLexerState(parentParser); + return { + type: 'JsdocTypeObjectField', + key: isSquaredProperty(left) ? left : left.value.toString(), + right, + optional, + readonly: readonlyProperty, + meta: { + quote + } + }; } - - if (ch === 0x2E /* '.' */ && index + 2 < length && source.charCodeAt(index + 2) === 0x2E /* '.' */) { - advance(); // '.' - advance(); // '.' - advance(); // '.' - token = Token.REST; - return token; + else { + if (!allowKeyTypes) { + throw new UnexpectedTypeError(left); + } + parentParser.consume(':'); + const right = parentParser.parseType(Precedence.KEY_VALUE); + parser.acceptLexerState(parentParser); + return { + type: 'JsdocTypeJsdocObjectField', + left: assertRootResult(left), + right + }; } + } + }); + } - if (esutils.code.isDecimalDigit(ch)) { - token = scanNumber(); - return token; + function createKeyValueParslet({ allowOptional, allowVariadic }) { + return composeParslet({ + name: 'keyValueParslet', + precedence: Precedence.KEY_VALUE, + accept: type => type === ':', + parseInfix: (parser, left) => { + let optional = false; + let variadic = false; + if (allowOptional && left.type === 'JsdocTypeNullable') { + optional = true; + left = left.element; + } + if (allowVariadic && left.type === 'JsdocTypeVariadic' && left.element !== undefined) { + variadic = true; + left = left.element; } + if (left.type !== 'JsdocTypeName') { + throw new UnexpectedTypeError(left); + } + parser.consume(':'); + const right = parser.parseType(Precedence.KEY_VALUE); + return { + type: 'JsdocTypeKeyValue', + key: left.value, + right, + optional, + variadic + }; } - token = Token.ILLEGAL; - return token; - - case 0x3C: /* '<' */ - advance(); - token = Token.LT; - return token; - - case 0x3E: /* '>' */ - advance(); - token = Token.GT; - return token; - - case 0x2A: /* '*' */ - advance(); - token = Token.STAR; - return token; - - case 0x7C: /* '|' */ - advance(); - token = Token.PIPE; - return token; - - case 0x3F: /* '?' */ - advance(); - token = Token.QUESTION; - return token; - - case 0x21: /* '!' */ - advance(); - token = Token.BANG; - return token; - - case 0x3D: /* '=' */ - advance(); - token = Token.EQUAL; - return token; - - case 0x2D: /* '-' */ - token = scanNumber(); - return token; + }); + } - default: - if (esutils.code.isDecimalDigit(ch)) { - token = scanNumber(); - return token; - } + const jsdocBaseGrammar = [ + ...baseGrammar, + createFunctionParslet({ + allowWithoutParenthesis: true, + allowNamedParameters: ['this', 'new'], + allowNoReturnType: true, + allowNewAsFunctionKeyword: false + }), + stringValueParslet, + createSpecialNamePathParslet({ + allowedTypes: ['module', 'external', 'event'], + pathGrammar + }), + createVariadicParslet({ + allowEnclosingBrackets: true, + allowPostfix: true + }), + createNameParslet({ + allowedAdditionalTokens: ['keyof'] + }), + symbolParslet, + arrayBracketsParslet, + createNamePathParslet({ + allowSquareBracketsOnAnyType: false, + allowJsdocNamePaths: true, + pathGrammar + }) + ]; + const jsdocGrammar = [ + ...jsdocBaseGrammar, + createObjectParslet({ + // jsdoc syntax allows full types as keys, so we need to pull in the full grammar here + // we leave out the object type deliberately + objectFieldGrammar: [ + createNameParslet({ + allowedAdditionalTokens: ['module', 'in'] + }), + createObjectFieldParslet({ + allowSquaredProperties: false, + allowKeyTypes: true, + allowOptional: false, + allowReadonly: false + }), + ...jsdocBaseGrammar + ], + allowKeyTypes: true + }), + createKeyValueParslet({ + allowOptional: true, + allowVariadic: true + }) + ]; - // type string permits following case, - // - // namespace.module.MyClass - // - // this reduced 1 token TK_NAME - utility.assert(isTypeName(ch)); - token = scanTypeName(); - return token; + const typeOfParslet = composeParslet({ + name: 'typeOfParslet', + accept: type => type === 'typeof', + parsePrefix: parser => { + parser.consume('typeof'); + return { + type: 'JsdocTypeTypeof', + element: assertRootResult(parser.parseType(Precedence.KEY_OF_TYPE_OF)) + }; } - } + }); - function consume(target, text) { - utility.assert(token === target, text || 'consumed token not matched'); - next(); - } + const objectFieldGrammar$1 = [ + createNameParslet({ + allowedAdditionalTokens: ['module', 'keyof', 'event', 'external', 'in'] + }), + nullableParslet, + optionalParslet, + stringValueParslet, + numberParslet, + createObjectFieldParslet({ + allowSquaredProperties: false, + allowKeyTypes: false, + allowOptional: false, + allowReadonly: false + }) + ]; + const closureGrammar = [ + ...baseGrammar, + createObjectParslet({ + allowKeyTypes: false, + objectFieldGrammar: objectFieldGrammar$1 + }), + createNameParslet({ + allowedAdditionalTokens: ['event', 'external', 'in'] + }), + typeOfParslet, + createFunctionParslet({ + allowWithoutParenthesis: false, + allowNamedParameters: ['this', 'new'], + allowNoReturnType: true, + allowNewAsFunctionKeyword: false + }), + createVariadicParslet({ + allowEnclosingBrackets: false, + allowPostfix: false + }), + // additional name parslet is needed for some special cases + createNameParslet({ + allowedAdditionalTokens: ['keyof'] + }), + createSpecialNamePathParslet({ + allowedTypes: ['module'], + pathGrammar + }), + createNamePathParslet({ + allowSquareBracketsOnAnyType: false, + allowJsdocNamePaths: true, + pathGrammar + }), + createKeyValueParslet({ + allowOptional: false, + allowVariadic: false + }), + symbolParslet + ]; - function expect(target, message) { - if (token !== target) { - utility.throwError(message || 'unexpected token'); + const assertsParslet = composeParslet({ + name: 'assertsParslet', + accept: type => type === 'asserts', + parsePrefix: (parser) => { + parser.consume('asserts'); + const left = parser.parseIntermediateType(Precedence.SYMBOL); + if (left.type !== 'JsdocTypeName') { + throw new UnexpectedTypeError(left, 'A typescript asserts always has to have a name on the left side.'); + } + parser.consume('is'); + return { + type: 'JsdocTypeAsserts', + left, + right: assertRootResult(parser.parseIntermediateType(Precedence.INFIX)) + }; } - next(); - } + }); - // UnionType := '(' TypeUnionList ')' - // - // TypeUnionList := - // <> - // | NonemptyTypeUnionList - // - // NonemptyTypeUnionList := - // TypeExpression - // | TypeExpression '|' NonemptyTypeUnionList - function parseUnionType() { - var elements, startIndex = index - 1; - consume(Token.LPAREN, 'UnionType should start with ('); - elements = []; - if (token !== Token.RPAREN) { - while (true) { - elements.push(parseTypeExpression()); - if (token === Token.RPAREN) { - break; + function createTupleParslet({ allowQuestionMark }) { + return composeParslet({ + name: 'tupleParslet', + accept: type => type === '[', + parsePrefix: parser => { + parser.consume('['); + const result = { + type: 'JsdocTypeTuple', + elements: [] + }; + if (parser.consume(']')) { + return result; + } + const typeList = parser.parseIntermediateType(Precedence.ALL); + if (typeList.type === 'JsdocTypeParameterList') { + if (typeList.elements[0].type === 'JsdocTypeKeyValue') { + result.elements = typeList.elements.map(assertPlainKeyValueResult); + } + else { + result.elements = typeList.elements.map(assertRootResult); + } + } + else { + if (typeList.type === 'JsdocTypeKeyValue') { + result.elements = [assertPlainKeyValueResult(typeList)]; + } + else { + result.elements = [assertRootResult(typeList)]; + } + } + if (!parser.consume(']')) { + throw new Error('Unterminated \'[\''); } - expect(Token.PIPE); + if (!allowQuestionMark && result.elements.some((e) => e.type === 'JsdocTypeUnknown')) { + throw new Error('Question mark in tuple not allowed'); + } + return result; } - } - consume(Token.RPAREN, 'UnionType should end with )'); - return maybeAddRange({ - type: Syntax.UnionType, - elements: elements - }, [startIndex, previous]); + }); } - // ArrayType := '[' ElementTypeList ']' - // - // ElementTypeList := - // <> - // | TypeExpression - // | '...' TypeExpression - // | TypeExpression ',' ElementTypeList - function parseArrayType() { - var elements, startIndex = index - 1, restStartIndex; - consume(Token.LBRACK, 'ArrayType should start with ['); - elements = []; - while (token !== Token.RBRACK) { - if (token === Token.REST) { - restStartIndex = index - 3; - consume(Token.REST); - elements.push(maybeAddRange({ - type: Syntax.RestType, - expression: parseTypeExpression() - }, [restStartIndex, previous])); - break; - } else { - elements.push(parseTypeExpression()); + const keyOfParslet = composeParslet({ + name: 'keyOfParslet', + accept: type => type === 'keyof', + parsePrefix: parser => { + parser.consume('keyof'); + return { + type: 'JsdocTypeKeyof', + element: assertRootResult(parser.parseType(Precedence.KEY_OF_TYPE_OF)) + }; + } + }); + + const importParslet = composeParslet({ + name: 'importParslet', + accept: type => type === 'import', + parsePrefix: parser => { + parser.consume('import'); + if (!parser.consume('(')) { + throw new Error('Missing parenthesis after import keyword'); } - if (token !== Token.RBRACK) { - expect(Token.COMMA); + const path = parser.parseType(Precedence.PREFIX); + if (path.type !== 'JsdocTypeStringValue') { + throw new Error('Only string values are allowed as paths for imports'); } + if (!parser.consume(')')) { + throw new Error('Missing closing parenthesis after import keyword'); + } + return { + type: 'JsdocTypeImport', + element: path + }; } - expect(Token.RBRACK); - return maybeAddRange({ - type: Syntax.ArrayType, - elements: elements - }, [startIndex, previous]); - } + }); - function parseFieldName() { - var v = value; - if (token === Token.NAME || token === Token.STRING) { - next(); - return v; + const readonlyPropertyParslet = composeParslet({ + name: 'readonlyPropertyParslet', + accept: type => type === 'readonly', + parsePrefix: parser => { + parser.consume('readonly'); + return { + type: 'JsdocTypeReadonlyProperty', + element: parser.parseType(Precedence.KEY_VALUE) + }; } + }); - if (token === Token.NUMBER) { - consume(Token.NUMBER); - return String(v); + const arrowFunctionParslet = composeParslet({ + name: 'arrowFunctionParslet', + precedence: Precedence.ARROW, + accept: type => type === '=>', + parseInfix: (parser, left) => { + parser.consume('=>'); + return { + type: 'JsdocTypeFunction', + parameters: getParameters(left).map(assertPlainKeyValueOrNameResult), + arrow: true, + constructor: false, + parenthesis: true, + returnType: parser.parseType(Precedence.OBJECT) + }; } + }); - utility.throwError('unexpected token'); - } + const intersectionParslet = composeParslet({ + name: 'intersectionParslet', + accept: type => type === '&', + precedence: Precedence.INTERSECTION, + parseInfix: (parser, left) => { + parser.consume('&'); + const elements = []; + do { + elements.push(parser.parseType(Precedence.INTERSECTION)); + } while (parser.consume('&')); + return { + type: 'JsdocTypeIntersection', + elements: [assertRootResult(left), ...elements] + }; + } + }); - // FieldType := - // FieldName - // | FieldName ':' TypeExpression - // - // FieldName := - // NameExpression - // | StringLiteral - // | NumberLiteral - // | ReservedIdentifier - function parseFieldType() { - var key, rangeStart = previous; - - key = parseFieldName(); - if (token === Token.COLON) { - consume(Token.COLON); - return maybeAddRange({ - type: Syntax.FieldType, - key: key, - value: parseTypeExpression() - }, [rangeStart, previous]); - } - return maybeAddRange({ - type: Syntax.FieldType, - key: key, - value: null - }, [rangeStart, previous]); - } - - // RecordType := '{' FieldTypeList '}' - // - // FieldTypeList := - // <> - // | FieldType - // | FieldType ',' FieldTypeList - function parseRecordType() { - var fields, rangeStart = index - 1, rangeEnd; - - consume(Token.LBRACE, 'RecordType should start with {'); - fields = []; - if (token === Token.COMMA) { - consume(Token.COMMA); - } else { - while (token !== Token.RBRACE) { - fields.push(parseFieldType()); - if (token !== Token.RBRACE) { - expect(Token.COMMA); - } + const predicateParslet = composeParslet({ + name: 'predicateParslet', + precedence: Precedence.INFIX, + accept: type => type === 'is', + parseInfix: (parser, left) => { + if (left.type !== 'JsdocTypeName') { + throw new UnexpectedTypeError(left, 'A typescript predicate always has to have a name on the left side.'); } + parser.consume('is'); + return { + type: 'JsdocTypePredicate', + left, + right: assertRootResult(parser.parseIntermediateType(Precedence.INFIX)) + }; } - rangeEnd = index; - expect(Token.RBRACE); - return maybeAddRange({ - type: Syntax.RecordType, - fields: fields - }, [rangeStart, rangeEnd]); - } - - // NameExpression := - // Identifier - // | TagIdentifier ':' Identifier - // - // Tag identifier is one of "module", "external" or "event" - // Identifier is the same as Token.NAME, including any dots, something like - // namespace.module.MyClass - function parseNameExpression() { - var name = value, rangeStart = index - name.length; - expect(Token.NAME); + }); - if (token === Token.COLON && ( - name === 'module' || - name === 'external' || - name === 'event')) { - consume(Token.COLON); - name += ':' + value; - expect(Token.NAME); + const objectSquaredPropertyParslet = composeParslet({ + name: 'objectSquareBracketPropertyParslet', + accept: type => type === '[', + parsePrefix: parser => { + if (parser.baseParser === undefined) { + throw new Error('Only allowed inside object grammar'); + } + parser.consume('['); + const key = parser.lexer.current.text; + parser.consume('Identifier'); + let result; + if (parser.consume(':')) { + const parentParser = parser.baseParser; + parentParser.acceptLexerState(parser); + result = { + type: 'JsdocTypeIndexSignature', + key, + right: parentParser.parseType(Precedence.INDEX_BRACKETS) + }; + parser.acceptLexerState(parentParser); + } + else if (parser.consume('in')) { + const parentParser = parser.baseParser; + parentParser.acceptLexerState(parser); + result = { + type: 'JsdocTypeMappedType', + key, + right: parentParser.parseType(Precedence.ARRAY_BRACKETS) + }; + parser.acceptLexerState(parentParser); + } + else { + throw new Error('Missing \':\' or \'in\' inside square bracketed property.'); + } + if (!parser.consume(']')) { + throw new Error('Unterminated square brackets'); + } + return result; } + }); - return maybeAddRange({ - type: Syntax.NameExpression, - name: name - }, [rangeStart, previous]); - } - - // TypeExpressionList := - // TopLevelTypeExpression - // | TopLevelTypeExpression ',' TypeExpressionList - function parseTypeExpressionList() { - var elements = []; + const objectFieldGrammar = [ + readonlyPropertyParslet, + createNameParslet({ + allowedAdditionalTokens: ['module', 'event', 'keyof', 'event', 'external', 'in'] + }), + nullableParslet, + optionalParslet, + stringValueParslet, + numberParslet, + createObjectFieldParslet({ + allowSquaredProperties: true, + allowKeyTypes: false, + allowOptional: true, + allowReadonly: true + }), + objectSquaredPropertyParslet + ]; + const typescriptGrammar = [ + ...baseGrammar, + createObjectParslet({ + allowKeyTypes: false, + objectFieldGrammar + }), + typeOfParslet, + keyOfParslet, + importParslet, + stringValueParslet, + createFunctionParslet({ + allowWithoutParenthesis: true, + allowNoReturnType: false, + allowNamedParameters: ['this', 'new', 'args'], + allowNewAsFunctionKeyword: true + }), + createTupleParslet({ + allowQuestionMark: false + }), + createVariadicParslet({ + allowEnclosingBrackets: false, + allowPostfix: false + }), + assertsParslet, + createNameParslet({ + allowedAdditionalTokens: ['event', 'external', 'in'] + }), + createSpecialNamePathParslet({ + allowedTypes: ['module'], + pathGrammar + }), + arrayBracketsParslet, + arrowFunctionParslet, + createNamePathParslet({ + allowSquareBracketsOnAnyType: true, + allowJsdocNamePaths: false, + pathGrammar + }), + intersectionParslet, + predicateParslet, + createKeyValueParslet({ + allowVariadic: true, + allowOptional: true + }) + ]; - elements.push(parseTop()); - while (token === Token.COMMA) { - consume(Token.COMMA); - elements.push(parseTop()); + /** + * This function parses the given expression in the given mode and produces a {@link RootResult}. + * @param expression + * @param mode + */ + function parse(expression, mode) { + switch (mode) { + case 'closure': + return (new Parser(closureGrammar, expression)).parse(); + case 'jsdoc': + return (new Parser(jsdocGrammar, expression)).parse(); + case 'typescript': + return (new Parser(typescriptGrammar, expression)).parse(); } - return elements; } - - // TypeName := - // NameExpression - // | NameExpression TypeApplication - // - // TypeApplication := - // '.<' TypeExpressionList '>' - // | '<' TypeExpressionList '>' // this is extension of doctrine - function parseTypeName() { - var expr, applications, startIndex = index - value.length; - - expr = parseNameExpression(); - if (token === Token.DOT_LT || token === Token.LT) { - next(); - applications = parseTypeExpressionList(); - expect(Token.GT); - return maybeAddRange({ - type: Syntax.TypeApplication, - expression: expr, - applications: applications - }, [startIndex, previous]); - } - return expr; - } - - // ResultType := - // <> - // | ':' void - // | ':' TypeExpression - // - // BNF is above - // but, we remove <> pattern, so token is always TypeToken::COLON - function parseResultType() { - consume(Token.COLON, 'ResultType should start with :'); - if (token === Token.NAME && value === 'void') { - consume(Token.NAME); - return { - type: Syntax.VoidLiteral - }; + /** + * This function tries to parse the given expression in multiple modes and returns the first successful + * {@link RootResult}. By default it tries `'typescript'`, `'closure'` and `'jsdoc'` in this order. If + * no mode was successful it throws the error that was produced by the last parsing attempt. + * @param expression + * @param modes + */ + function tryParse(expression, modes = ['typescript', 'closure', 'jsdoc']) { + let error; + for (const mode of modes) { + try { + return parse(expression, mode); + } + catch (e) { + error = e; + } } - return parseTypeExpression(); + throw error; } - // ParametersType := - // RestParameterType - // | NonRestParametersType - // | NonRestParametersType ',' RestParameterType - // - // RestParameterType := - // '...' - // '...' Identifier - // - // NonRestParametersType := - // ParameterType ',' NonRestParametersType - // | ParameterType - // | OptionalParametersType - // - // OptionalParametersType := - // OptionalParameterType - // | OptionalParameterType, OptionalParametersType - // - // OptionalParameterType := ParameterType= - // - // ParameterType := TypeExpression | Identifier ':' TypeExpression - // - // Identifier is "new" or "this" - function parseParametersType() { - var params = [], optionalSequence = false, expr, rest = false, startIndex, restStartIndex = index - 3, nameStartIndex; - - while (token !== Token.RPAREN) { - if (token === Token.REST) { - // RestParameterType - consume(Token.REST); - rest = true; - } - - startIndex = previous; - - expr = parseTypeExpression(); - if (expr.type === Syntax.NameExpression && token === Token.COLON) { - nameStartIndex = previous - expr.name.length; - // Identifier ':' TypeExpression - consume(Token.COLON); - expr = maybeAddRange({ - type: Syntax.ParameterType, - name: expr.name, - expression: parseTypeExpression() - }, [nameStartIndex, previous]); - } - if (token === Token.EQUAL) { - consume(Token.EQUAL); - expr = maybeAddRange({ - type: Syntax.OptionalType, - expression: expr - }, [startIndex, previous]); - optionalSequence = true; - } else { - if (optionalSequence) { - utility.throwError('unexpected token'); + function transform(rules, parseResult) { + const rule = rules[parseResult.type]; + if (rule === undefined) { + throw new Error(`In this set of transform rules exists no rule for type ${parseResult.type}.`); + } + return rule(parseResult, aParseResult => transform(rules, aParseResult)); + } + function notAvailableTransform(parseResult) { + throw new Error('This transform is not available. Are you trying the correct parsing mode?'); + } + function extractSpecialParams(source) { + const result = { + params: [] + }; + for (const param of source.parameters) { + if (param.type === 'JsdocTypeKeyValue') { + if (param.key === 'this') { + result.this = param.right; + } + else if (param.key === 'new') { + result.new = param.right; + } + else { + result.params.push(param); } } - if (rest) { - expr = maybeAddRange({ - type: Syntax.RestType, - expression: expr - }, [restStartIndex, previous]); - } - params.push(expr); - if (token !== Token.RPAREN) { - expect(Token.COMMA); + else { + result.params.push(param); } } - return params; + return result; } - // FunctionType := 'function' FunctionSignatureType - // - // FunctionSignatureType := - // | TypeParameters '(' ')' ResultType - // | TypeParameters '(' ParametersType ')' ResultType - // | TypeParameters '(' 'this' ':' TypeName ')' ResultType - // | TypeParameters '(' 'this' ':' TypeName ',' ParametersType ')' ResultType - function parseFunctionType() { - var isNew, thisBinding, params, result, fnType, startIndex = index - value.length; - utility.assert(token === Token.NAME && value === 'function', 'FunctionType should start with \'function\''); - consume(Token.NAME); - - // Google Closure Compiler is not implementing TypeParameters. - // So we do not. if we don't get '(', we see it as error. - expect(Token.LPAREN); - - isNew = false; - params = []; - thisBinding = null; - if (token !== Token.RPAREN) { - // ParametersType or 'this' - if (token === Token.NAME && - (value === 'this' || value === 'new')) { - // 'this' or 'new' - // 'new' is Closure Compiler extension - isNew = value === 'new'; - consume(Token.NAME); - expect(Token.COLON); - thisBinding = parseTypeName(); - if (token === Token.COMMA) { - consume(Token.COMMA); - params = parseParametersType(); + function applyPosition(position, target, value) { + return position === 'prefix' ? value + target : target + value; + } + function quote(value, quote) { + switch (quote) { + case 'double': + return `"${value}"`; + case 'single': + return `'${value}'`; + case undefined: + return value; + } + } + function stringifyRules() { + return { + JsdocTypeParenthesis: (result, transform) => `(${result.element !== undefined ? transform(result.element) : ''})`, + JsdocTypeKeyof: (result, transform) => `keyof ${transform(result.element)}`, + JsdocTypeFunction: (result, transform) => { + if (!result.arrow) { + let stringified = result.constructor ? 'new' : 'function'; + if (!result.parenthesis) { + return stringified; + } + stringified += `(${result.parameters.map(transform).join(', ')})`; + if (result.returnType !== undefined) { + stringified += `: ${transform(result.returnType)}`; + } + return stringified; } - } else { - params = parseParametersType(); - } - } - - expect(Token.RPAREN); - - result = null; - if (token === Token.COLON) { - result = parseResultType(); + else { + if (result.returnType === undefined) { + throw new Error('Arrow function needs a return type.'); + } + let stringified = `(${result.parameters.map(transform).join(', ')}) => ${transform(result.returnType)}`; + if (result.constructor) { + stringified = 'new ' + stringified; + } + return stringified; + } + }, + JsdocTypeName: result => result.value, + JsdocTypeTuple: (result, transform) => `[${result.elements.map(transform).join(', ')}]`, + JsdocTypeVariadic: (result, transform) => result.meta.position === undefined + ? '...' + : applyPosition(result.meta.position, transform(result.element), '...'), + JsdocTypeNamePath: (result, transform) => { + const left = transform(result.left); + const right = transform(result.right); + switch (result.pathType) { + case 'inner': + return `${left}~${right}`; + case 'instance': + return `${left}#${right}`; + case 'property': + return `${left}.${right}`; + case 'property-brackets': + return `${left}[${right}]`; + } + }, + JsdocTypeStringValue: result => quote(result.value, result.meta.quote), + JsdocTypeAny: () => '*', + JsdocTypeGeneric: (result, transform) => { + if (result.meta.brackets === 'square') { + const element = result.elements[0]; + const transformed = transform(element); + if (element.type === 'JsdocTypeUnion' || element.type === 'JsdocTypeIntersection') { + return `(${transformed})[]`; + } + else { + return `${transformed}[]`; + } + } + else { + return `${transform(result.left)}${result.meta.dot ? '.' : ''}<${result.elements.map(transform).join(', ')}>`; + } + }, + JsdocTypeImport: (result, transform) => `import(${transform(result.element)})`, + JsdocTypeObjectField: (result, transform) => { + let text = ''; + if (result.readonly) { + text += 'readonly '; + } + if (typeof result.key === 'string') { + text += quote(result.key, result.meta.quote); + } + else { + text += transform(result.key); + } + if (result.optional) { + text += '?'; + } + if (result.right === undefined) { + return text; + } + else { + return text + `: ${transform(result.right)}`; + } + }, + JsdocTypeJsdocObjectField: (result, transform) => { + return `${transform(result.left)}: ${transform(result.right)}`; + }, + JsdocTypeKeyValue: (result, transform) => { + let text = result.key; + if (result.optional) { + text += '?'; + } + if (result.variadic) { + text = '...' + text; + } + if (result.right === undefined) { + return text; + } + else { + return text + `: ${transform(result.right)}`; + } + }, + JsdocTypeSpecialNamePath: result => `${result.specialType}:${quote(result.value, result.meta.quote)}`, + JsdocTypeNotNullable: (result, transform) => applyPosition(result.meta.position, transform(result.element), '!'), + JsdocTypeNull: () => 'null', + JsdocTypeNullable: (result, transform) => applyPosition(result.meta.position, transform(result.element), '?'), + JsdocTypeNumber: result => result.value.toString(), + JsdocTypeObject: (result, transform) => `{${result.elements.map(transform).join((result.meta.separator === 'comma' ? ',' : ';') + ' ')}}`, + JsdocTypeOptional: (result, transform) => applyPosition(result.meta.position, transform(result.element), '='), + JsdocTypeSymbol: (result, transform) => `${result.value}(${result.element !== undefined ? transform(result.element) : ''})`, + JsdocTypeTypeof: (result, transform) => `typeof ${transform(result.element)}`, + JsdocTypeUndefined: () => 'undefined', + JsdocTypeUnion: (result, transform) => result.elements.map(transform).join(' | '), + JsdocTypeUnknown: () => '?', + JsdocTypeIntersection: (result, transform) => result.elements.map(transform).join(' & '), + JsdocTypeProperty: result => quote(result.value, result.meta.quote), + JsdocTypePredicate: (result, transform) => `${transform(result.left)} is ${transform(result.right)}`, + JsdocTypeIndexSignature: (result, transform) => `[${result.key}: ${transform(result.right)}]`, + JsdocTypeMappedType: (result, transform) => `[${result.key} in ${transform(result.right)}]`, + JsdocTypeAsserts: (result, transform) => `asserts ${transform(result.left)} is ${transform(result.right)}` + }; + } + const storedStringifyRules = stringifyRules(); + function stringify(result) { + return transform(storedStringifyRules, result); + } + + const reservedWords = [ + 'null', + 'true', + 'false', + 'break', + 'case', + 'catch', + 'class', + 'const', + 'continue', + 'debugger', + 'default', + 'delete', + 'do', + 'else', + 'export', + 'extends', + 'finally', + 'for', + 'function', + 'if', + 'import', + 'in', + 'instanceof', + 'new', + 'return', + 'super', + 'switch', + 'this', + 'throw', + 'try', + 'typeof', + 'var', + 'void', + 'while', + 'with', + 'yield' + ]; + function makeName(value) { + const result = { + type: 'NameExpression', + name: value + }; + if (reservedWords.includes(value)) { + result.reservedWord = true; } - - fnType = maybeAddRange({ - type: Syntax.FunctionType, - params: params, - result: result - }, [startIndex, previous]); - if (thisBinding) { - // avoid adding null 'new' and 'this' properties - fnType['this'] = thisBinding; - if (isNew) { - fnType['new'] = true; + return result; + } + const catharsisTransformRules = { + JsdocTypeOptional: (result, transform) => { + const transformed = transform(result.element); + transformed.optional = true; + return transformed; + }, + JsdocTypeNullable: (result, transform) => { + const transformed = transform(result.element); + transformed.nullable = true; + return transformed; + }, + JsdocTypeNotNullable: (result, transform) => { + const transformed = transform(result.element); + transformed.nullable = false; + return transformed; + }, + JsdocTypeVariadic: (result, transform) => { + if (result.element === undefined) { + throw new Error('dots without value are not allowed in catharsis mode'); } - } - return fnType; - } - - // BasicTypeExpression := - // '*' - // | 'null' - // | 'undefined' - // | TypeName - // | FunctionType - // | UnionType - // | RecordType - // | ArrayType - function parseBasicTypeExpression() { - var context, startIndex; - switch (token) { - case Token.STAR: - consume(Token.STAR); - return maybeAddRange({ - type: Syntax.AllLiteral - }, [previous - 1, previous]); - - case Token.LPAREN: - return parseUnionType(); - - case Token.LBRACK: - return parseArrayType(); - - case Token.LBRACE: - return parseRecordType(); - - case Token.NAME: - startIndex = index - value.length; - - if (value === 'null') { - consume(Token.NAME); - return maybeAddRange({ - type: Syntax.NullLiteral - }, [startIndex, previous]); + const transformed = transform(result.element); + transformed.repeatable = true; + return transformed; + }, + JsdocTypeAny: () => ({ + type: 'AllLiteral' + }), + JsdocTypeNull: () => ({ + type: 'NullLiteral' + }), + JsdocTypeStringValue: result => makeName(quote(result.value, result.meta.quote)), + JsdocTypeUndefined: () => ({ + type: 'UndefinedLiteral' + }), + JsdocTypeUnknown: () => ({ + type: 'UnknownLiteral' + }), + JsdocTypeFunction: (result, transform) => { + const params = extractSpecialParams(result); + const transformed = { + type: 'FunctionType', + params: params.params.map(transform) + }; + if (params.this !== undefined) { + transformed.this = transform(params.this); } - - if (value === 'undefined') { - consume(Token.NAME); - return maybeAddRange({ - type: Syntax.UndefinedLiteral - }, [startIndex, previous]); + if (params.new !== undefined) { + transformed.new = transform(params.new); } - - if (value === 'true' || value === 'false') { - consume(Token.NAME); - return maybeAddRange({ - type: Syntax.BooleanLiteralType, - value: value === 'true' - }, [startIndex, previous]); + if (result.returnType !== undefined) { + transformed.result = transform(result.returnType); } - - context = Context.save(); - if (value === 'function') { - try { - return parseFunctionType(); - } catch (e) { - context.restore(); + return transformed; + }, + JsdocTypeGeneric: (result, transform) => ({ + type: 'TypeApplication', + applications: result.elements.map(o => transform(o)), + expression: transform(result.left) + }), + JsdocTypeSpecialNamePath: result => makeName(result.specialType + ':' + quote(result.value, result.meta.quote)), + JsdocTypeName: result => { + if (result.value !== 'function') { + return makeName(result.value); + } + else { + return { + type: 'FunctionType', + params: [] + }; + } + }, + JsdocTypeNumber: result => makeName(result.value.toString()), + JsdocTypeObject: (result, transform) => { + const transformed = { + type: 'RecordType', + fields: [] + }; + for (const field of result.elements) { + if (field.type !== 'JsdocTypeObjectField' && field.type !== 'JsdocTypeJsdocObjectField') { + transformed.fields.push({ + type: 'FieldType', + key: transform(field), + value: undefined + }); + } + else { + transformed.fields.push(transform(field)); } } - - return parseTypeName(); - - case Token.STRING: - next(); - return maybeAddRange({ - type: Syntax.StringLiteralType, - value: value - }, [previous - value.length - 2, previous]); - - case Token.NUMBER: - next(); - return maybeAddRange({ - type: Syntax.NumericLiteralType, - value: value - }, [previous - String(value).length, previous]); - - default: - utility.throwError('unexpected token'); - } - } - - // TypeExpression := - // BasicTypeExpression - // | '?' BasicTypeExpression - // | '!' BasicTypeExpression - // | BasicTypeExpression '?' - // | BasicTypeExpression '!' - // | '?' - // | BasicTypeExpression '[]' - function parseTypeExpression() { - var expr, rangeStart; - - if (token === Token.QUESTION) { - rangeStart = index - 1; - consume(Token.QUESTION); - if (token === Token.COMMA || token === Token.EQUAL || token === Token.RBRACE || - token === Token.RPAREN || token === Token.PIPE || token === Token.EOF || - token === Token.RBRACK || token === Token.GT) { - return maybeAddRange({ - type: Syntax.NullableLiteral - }, [rangeStart, previous]); + return transformed; + }, + JsdocTypeObjectField: (result, transform) => { + if (typeof result.key !== 'string') { + throw new Error('Index signatures and mapped types are not supported'); } - return maybeAddRange({ - type: Syntax.NullableType, - expression: parseBasicTypeExpression(), - prefix: true - }, [rangeStart, previous]); - } else if (token === Token.BANG) { - rangeStart = index - 1; - consume(Token.BANG); - return maybeAddRange({ - type: Syntax.NonNullableType, - expression: parseBasicTypeExpression(), - prefix: true - }, [rangeStart, previous]); - } else { - rangeStart = previous; - } - - expr = parseBasicTypeExpression(); - if (token === Token.BANG) { - consume(Token.BANG); - return maybeAddRange({ - type: Syntax.NonNullableType, - expression: expr, - prefix: false - }, [rangeStart, previous]); - } - - if (token === Token.QUESTION) { - consume(Token.QUESTION); - return maybeAddRange({ - type: Syntax.NullableType, - expression: expr, - prefix: false - }, [rangeStart, previous]); - } - - if (token === Token.LBRACK) { - consume(Token.LBRACK); - expect(Token.RBRACK, 'expected an array-style type declaration (' + value + '[])'); - return maybeAddRange({ - type: Syntax.TypeApplication, - expression: maybeAddRange({ - type: Syntax.NameExpression, - name: 'Array' - }, [rangeStart, previous]), - applications: [expr] - }, [rangeStart, previous]); - } - - return expr; - } - - // TopLevelTypeExpression := - // TypeExpression - // | TypeUnionList - // - // This rule is Google Closure Compiler extension, not ES4 - // like, - // { number | string } - // If strict to ES4, we should write it as - // { (number|string) } - function parseTop() { - var expr, elements; - - expr = parseTypeExpression(); - if (token !== Token.PIPE) { - return expr; - } - - elements = [expr]; - consume(Token.PIPE); - while (true) { - elements.push(parseTypeExpression()); - if (token !== Token.PIPE) { - break; + return { + type: 'FieldType', + key: makeName(quote(result.key, result.meta.quote)), + value: result.right === undefined ? undefined : transform(result.right) + }; + }, + JsdocTypeJsdocObjectField: (result, transform) => ({ + type: 'FieldType', + key: transform(result.left), + value: transform(result.right) + }), + JsdocTypeUnion: (result, transform) => ({ + type: 'TypeUnion', + elements: result.elements.map(e => transform(e)) + }), + JsdocTypeKeyValue: (result, transform) => { + return { + type: 'FieldType', + key: makeName(result.key), + value: result.right === undefined ? undefined : transform(result.right) + }; + }, + JsdocTypeNamePath: (result, transform) => { + const leftResult = transform(result.left); + let rightValue; + if (result.right.type === 'JsdocTypeSpecialNamePath') { + rightValue = transform(result.right).name; } - consume(Token.PIPE); - } - - return maybeAddRange({ - type: Syntax.UnionType, - elements: elements - }, [0, index]); - } - - function parseTopParamType() { - var expr; - - if (token === Token.REST) { - consume(Token.REST); - return maybeAddRange({ - type: Syntax.RestType, - expression: parseTop() - }, [0, index]); - } - - expr = parseTop(); - if (token === Token.EQUAL) { - consume(Token.EQUAL); - return maybeAddRange({ - type: Syntax.OptionalType, - expression: expr - }, [0, index]); - } - - return expr; - } - - function parseType(src, opt) { - var expr; - - source = src; - length = source.length; - index = 0; - previous = 0; - addRange = opt && opt.range; - rangeOffset = opt && opt.startIndex || 0; - - next(); - expr = parseTop(); - - if (opt && opt.midstream) { + else { + rightValue = quote(result.right.value, result.right.meta.quote); + } + const joiner = result.pathType === 'inner' ? '~' : result.pathType === 'instance' ? '#' : '.'; + return makeName(`${leftResult.name}${joiner}${rightValue}`); + }, + JsdocTypeSymbol: result => { + let value = ''; + let element = result.element; + let trailingDots = false; + if ((element === null || element === void 0 ? void 0 : element.type) === 'JsdocTypeVariadic') { + if (element.meta.position === 'prefix') { + value = '...'; + } + else { + trailingDots = true; + } + element = element.element; + } + if ((element === null || element === void 0 ? void 0 : element.type) === 'JsdocTypeName') { + value += element.value; + } + else if ((element === null || element === void 0 ? void 0 : element.type) === 'JsdocTypeNumber') { + value += element.value.toString(); + } + if (trailingDots) { + value += '...'; + } + return makeName(`${result.value}(${value})`); + }, + JsdocTypeParenthesis: (result, transform) => transform(assertRootResult(result.element)), + JsdocTypeMappedType: notAvailableTransform, + JsdocTypeIndexSignature: notAvailableTransform, + JsdocTypeImport: notAvailableTransform, + JsdocTypeKeyof: notAvailableTransform, + JsdocTypeTuple: notAvailableTransform, + JsdocTypeTypeof: notAvailableTransform, + JsdocTypeIntersection: notAvailableTransform, + JsdocTypeProperty: notAvailableTransform, + JsdocTypePredicate: notAvailableTransform, + JsdocTypeAsserts: notAvailableTransform + }; + function catharsisTransform(result) { + return transform(catharsisTransformRules, result); + } + + function getQuoteStyle(quote) { + switch (quote) { + case undefined: + return 'none'; + case 'single': + return 'single'; + case 'double': + return 'double'; + } + } + function getMemberType(type) { + switch (type) { + case 'inner': + return 'INNER_MEMBER'; + case 'instance': + return 'INSTANCE_MEMBER'; + case 'property': + return 'MEMBER'; + case 'property-brackets': + return 'MEMBER'; + } + } + function nestResults(type, results) { + if (results.length === 2) { return { - expression: expr, - index: previous + type, + left: results[0], + right: results[1] }; } - - if (token !== Token.EOF) { - utility.throwError('not reach to EOF'); - } - - return expr; - } - - function parseParamType(src, opt) { - var expr; - - source = src; - length = source.length; - index = 0; - previous = 0; - addRange = opt && opt.range; - rangeOffset = opt && opt.startIndex || 0; - - next(); - expr = parseTopParamType(); - - if (opt && opt.midstream) { + else { return { - expression: expr, - index: previous + type, + left: results[0], + right: nestResults(type, results.slice(1)) }; } - - if (token !== Token.EOF) { - utility.throwError('not reach to EOF'); - } - - return expr; } - - function stringifyImpl(node, compact, topLevel) { - var result, i, iz; - - switch (node.type) { - case Syntax.NullableLiteral: - result = '?'; - break; - - case Syntax.AllLiteral: - result = '*'; - break; - - case Syntax.NullLiteral: - result = 'null'; - break; - - case Syntax.UndefinedLiteral: - result = 'undefined'; - break; - - case Syntax.VoidLiteral: - result = 'void'; - break; - - case Syntax.UnionType: - if (!topLevel) { - result = '('; - } else { - result = ''; + const jtpRules = { + JsdocTypeOptional: (result, transform) => ({ + type: 'OPTIONAL', + value: transform(result.element), + meta: { + syntax: result.meta.position === 'prefix' ? 'PREFIX_EQUAL_SIGN' : 'SUFFIX_EQUALS_SIGN' } - - for (i = 0, iz = node.elements.length; i < iz; ++i) { - result += stringifyImpl(node.elements[i], compact); - if ((i + 1) !== iz) { - result += compact ? '|' : ' | '; + }), + JsdocTypeNullable: (result, transform) => ({ + type: 'NULLABLE', + value: transform(result.element), + meta: { + syntax: result.meta.position === 'prefix' ? 'PREFIX_QUESTION_MARK' : 'SUFFIX_QUESTION_MARK' + } + }), + JsdocTypeNotNullable: (result, transform) => ({ + type: 'NOT_NULLABLE', + value: transform(result.element), + meta: { + syntax: result.meta.position === 'prefix' ? 'PREFIX_BANG' : 'SUFFIX_BANG' + } + }), + JsdocTypeVariadic: (result, transform) => { + const transformed = { + type: 'VARIADIC', + meta: { + syntax: result.meta.position === 'prefix' + ? 'PREFIX_DOTS' + : result.meta.position === 'suffix' ? 'SUFFIX_DOTS' : 'ONLY_DOTS' } + }; + if (result.element !== undefined) { + transformed.value = transform(result.element); } - - if (!topLevel) { - result += ')'; + return transformed; + }, + JsdocTypeName: result => ({ + type: 'NAME', + name: result.value + }), + JsdocTypeTypeof: (result, transform) => ({ + type: 'TYPE_QUERY', + name: transform(result.element) + }), + JsdocTypeTuple: (result, transform) => ({ + type: 'TUPLE', + entries: result.elements.map(transform) + }), + JsdocTypeKeyof: (result, transform) => ({ + type: 'KEY_QUERY', + value: transform(result.element) + }), + JsdocTypeImport: result => ({ + type: 'IMPORT', + path: { + type: 'STRING_VALUE', + quoteStyle: getQuoteStyle(result.element.meta.quote), + string: result.element.value } - break; - - case Syntax.ArrayType: - result = '['; - for (i = 0, iz = node.elements.length; i < iz; ++i) { - result += stringifyImpl(node.elements[i], compact); - if ((i + 1) !== iz) { - result += compact ? ',' : ', '; + }), + JsdocTypeUndefined: () => ({ + type: 'NAME', + name: 'undefined' + }), + JsdocTypeAny: () => ({ + type: 'ANY' + }), + JsdocTypeFunction: (result, transform) => { + const specialParams = extractSpecialParams(result); + const transformed = { + type: result.arrow ? 'ARROW' : 'FUNCTION', + params: specialParams.params.map(param => { + if (param.type === 'JsdocTypeKeyValue') { + if (param.right === undefined) { + throw new Error('Function parameter without \':\' is not expected to be \'KEY_VALUE\''); + } + return { + type: 'NAMED_PARAMETER', + name: param.key, + typeName: transform(param.right) + }; + } + else { + return transform(param); + } + }), + new: null, + returns: null + }; + if (specialParams.this !== undefined) { + transformed.this = transform(specialParams.this); + } + else if (!result.arrow) { + transformed.this = null; + } + if (specialParams.new !== undefined) { + transformed.new = transform(specialParams.new); + } + if (result.returnType !== undefined) { + transformed.returns = transform(result.returnType); + } + return transformed; + }, + JsdocTypeGeneric: (result, transform) => { + const transformed = { + type: 'GENERIC', + subject: transform(result.left), + objects: result.elements.map(transform), + meta: { + syntax: result.meta.brackets === 'square' ? 'SQUARE_BRACKET' : result.meta.dot ? 'ANGLE_BRACKET_WITH_DOT' : 'ANGLE_BRACKET' } + }; + if (result.meta.brackets === 'square' && result.elements[0].type === 'JsdocTypeFunction' && !result.elements[0].parenthesis) { + transformed.objects[0] = { + type: 'NAME', + name: 'function' + }; } - result += ']'; - break; - - case Syntax.RecordType: - result = '{'; - for (i = 0, iz = node.fields.length; i < iz; ++i) { - result += stringifyImpl(node.fields[i], compact); - if ((i + 1) !== iz) { - result += compact ? ',' : ', '; + return transformed; + }, + JsdocTypeObjectField: (result, transform) => { + if (typeof result.key !== 'string') { + throw new Error('Index signatures and mapped types are not supported'); + } + if (result.right === undefined) { + return { + type: 'RECORD_ENTRY', + key: result.key, + quoteStyle: getQuoteStyle(result.meta.quote), + value: null, + readonly: false + }; + } + let right = transform(result.right); + if (result.optional) { + right = { + type: 'OPTIONAL', + value: right, + meta: { + syntax: 'SUFFIX_KEY_QUESTION_MARK' + } + }; + } + return { + type: 'RECORD_ENTRY', + key: result.key.toString(), + quoteStyle: getQuoteStyle(result.meta.quote), + value: right, + readonly: false + }; + }, + JsdocTypeJsdocObjectField: () => { + throw new Error('Keys may not be typed in jsdoctypeparser.'); + }, + JsdocTypeKeyValue: (result, transform) => { + if (result.right === undefined) { + return { + type: 'RECORD_ENTRY', + key: result.key, + quoteStyle: 'none', + value: null, + readonly: false + }; + } + let right = transform(result.right); + if (result.optional) { + right = { + type: 'OPTIONAL', + value: right, + meta: { + syntax: 'SUFFIX_KEY_QUESTION_MARK' + } + }; + } + return { + type: 'RECORD_ENTRY', + key: result.key, + quoteStyle: 'none', + value: right, + readonly: false + }; + }, + JsdocTypeObject: (result, transform) => { + const entries = []; + for (const field of result.elements) { + if (field.type === 'JsdocTypeObjectField' || field.type === 'JsdocTypeJsdocObjectField') { + entries.push(transform(field)); } } - result += '}'; - break; - - case Syntax.FieldType: - if (node.value) { - result = node.key + (compact ? ':' : ': ') + stringifyImpl(node.value, compact); - } else { - result = node.key; + return { + type: 'RECORD', + entries + }; + }, + JsdocTypeSpecialNamePath: result => { + if (result.specialType !== 'module') { + throw new Error(`jsdoctypeparser does not support type ${result.specialType} at this point.`); } - break; - - case Syntax.FunctionType: - result = compact ? 'function(' : 'function ('; - - if (node['this']) { - if (node['new']) { - result += (compact ? 'new:' : 'new: '); - } else { - result += (compact ? 'this:' : 'this: '); + return { + type: 'MODULE', + value: { + type: 'FILE_PATH', + quoteStyle: getQuoteStyle(result.meta.quote), + path: result.value + } + }; + }, + JsdocTypeNamePath: (result, transform) => { + let hasEventPrefix = false; + let name; + let quoteStyle; + if (result.right.type === 'JsdocTypeSpecialNamePath' && result.right.specialType === 'event') { + hasEventPrefix = true; + name = result.right.value; + quoteStyle = getQuoteStyle(result.right.meta.quote); + } + else { + name = result.right.value; + quoteStyle = getQuoteStyle(result.right.meta.quote); + } + const transformed = { + type: getMemberType(result.pathType), + owner: transform(result.left), + name, + quoteStyle, + hasEventPrefix + }; + if (transformed.owner.type === 'MODULE') { + const tModule = transformed.owner; + transformed.owner = transformed.owner.value; + tModule.value = transformed; + return tModule; + } + else { + return transformed; + } + }, + JsdocTypeUnion: (result, transform) => nestResults('UNION', result.elements.map(transform)), + JsdocTypeParenthesis: (result, transform) => ({ + type: 'PARENTHESIS', + value: transform(assertRootResult(result.element)) + }), + JsdocTypeNull: () => ({ + type: 'NAME', + name: 'null' + }), + JsdocTypeUnknown: () => ({ + type: 'UNKNOWN' + }), + JsdocTypeStringValue: result => ({ + type: 'STRING_VALUE', + quoteStyle: getQuoteStyle(result.meta.quote), + string: result.value + }), + JsdocTypeIntersection: (result, transform) => nestResults('INTERSECTION', result.elements.map(transform)), + JsdocTypeNumber: result => ({ + type: 'NUMBER_VALUE', + number: result.value.toString() + }), + JsdocTypeSymbol: notAvailableTransform, + JsdocTypeProperty: notAvailableTransform, + JsdocTypePredicate: notAvailableTransform, + JsdocTypeMappedType: notAvailableTransform, + JsdocTypeIndexSignature: notAvailableTransform, + JsdocTypeAsserts: notAvailableTransform + }; + function jtpTransform(result) { + return transform(jtpRules, result); + } + + function identityTransformRules() { + return { + JsdocTypeIntersection: (result, transform) => ({ + type: 'JsdocTypeIntersection', + elements: result.elements.map(transform) + }), + JsdocTypeGeneric: (result, transform) => ({ + type: 'JsdocTypeGeneric', + left: transform(result.left), + elements: result.elements.map(transform), + meta: { + dot: result.meta.dot, + brackets: result.meta.brackets + } + }), + JsdocTypeNullable: result => result, + JsdocTypeUnion: (result, transform) => ({ + type: 'JsdocTypeUnion', + elements: result.elements.map(transform) + }), + JsdocTypeUnknown: result => result, + JsdocTypeUndefined: result => result, + JsdocTypeTypeof: (result, transform) => ({ + type: 'JsdocTypeTypeof', + element: transform(result.element) + }), + JsdocTypeSymbol: (result, transform) => { + const transformed = { + type: 'JsdocTypeSymbol', + value: result.value + }; + if (result.element !== undefined) { + transformed.element = transform(result.element); + } + return transformed; + }, + JsdocTypeOptional: (result, transform) => ({ + type: 'JsdocTypeOptional', + element: transform(result.element), + meta: { + position: result.meta.position + } + }), + JsdocTypeObject: (result, transform) => ({ + type: 'JsdocTypeObject', + meta: { + separator: 'comma' + }, + elements: result.elements.map(transform) + }), + JsdocTypeNumber: result => result, + JsdocTypeNull: result => result, + JsdocTypeNotNullable: (result, transform) => ({ + type: 'JsdocTypeNotNullable', + element: transform(result.element), + meta: { + position: result.meta.position + } + }), + JsdocTypeSpecialNamePath: result => result, + JsdocTypeObjectField: (result, transform) => ({ + type: 'JsdocTypeObjectField', + key: result.key, + right: result.right === undefined ? undefined : transform(result.right), + optional: result.optional, + readonly: result.readonly, + meta: result.meta + }), + JsdocTypeJsdocObjectField: (result, transform) => ({ + type: 'JsdocTypeJsdocObjectField', + left: transform(result.left), + right: transform(result.right) + }), + JsdocTypeKeyValue: (result, transform) => { + return { + type: 'JsdocTypeKeyValue', + key: result.key, + right: result.right === undefined ? undefined : transform(result.right), + optional: result.optional, + variadic: result.variadic + }; + }, + JsdocTypeImport: (result, transform) => ({ + type: 'JsdocTypeImport', + element: transform(result.element) + }), + JsdocTypeAny: result => result, + JsdocTypeStringValue: result => result, + JsdocTypeNamePath: result => result, + JsdocTypeVariadic: (result, transform) => { + const transformed = { + type: 'JsdocTypeVariadic', + meta: { + position: result.meta.position, + squareBrackets: result.meta.squareBrackets + } + }; + if (result.element !== undefined) { + transformed.element = transform(result.element); + } + return transformed; + }, + JsdocTypeTuple: (result, transform) => ({ + type: 'JsdocTypeTuple', + elements: result.elements.map(transform) + }), + JsdocTypeName: result => result, + JsdocTypeFunction: (result, transform) => { + const transformed = { + type: 'JsdocTypeFunction', + arrow: result.arrow, + parameters: result.parameters.map(transform), + constructor: result.constructor, + parenthesis: result.parenthesis + }; + if (result.returnType !== undefined) { + transformed.returnType = transform(result.returnType); } + return transformed; + }, + JsdocTypeKeyof: (result, transform) => ({ + type: 'JsdocTypeKeyof', + element: transform(result.element) + }), + JsdocTypeParenthesis: (result, transform) => ({ + type: 'JsdocTypeParenthesis', + element: transform(result.element) + }), + JsdocTypeProperty: result => result, + JsdocTypePredicate: (result, transform) => ({ + type: 'JsdocTypePredicate', + left: transform(result.left), + right: transform(result.right) + }), + JsdocTypeIndexSignature: (result, transform) => ({ + type: 'JsdocTypeIndexSignature', + key: result.key, + right: transform(result.right) + }), + JsdocTypeMappedType: (result, transform) => ({ + type: 'JsdocTypeMappedType', + key: result.key, + right: transform(result.right) + }), + JsdocTypeAsserts: (result, transform) => ({ + type: 'JsdocTypeAsserts', + left: transform(result.left), + right: transform(result.right) + }) + }; + } - result += stringifyImpl(node['this'], compact); + const visitorKeys = { + JsdocTypeAny: [], + JsdocTypeFunction: ['parameters', 'returnType'], + JsdocTypeGeneric: ['left', 'elements'], + JsdocTypeImport: [], + JsdocTypeIndexSignature: ['right'], + JsdocTypeIntersection: ['elements'], + JsdocTypeKeyof: ['element'], + JsdocTypeKeyValue: ['right'], + JsdocTypeMappedType: ['right'], + JsdocTypeName: [], + JsdocTypeNamePath: ['left', 'right'], + JsdocTypeNotNullable: ['element'], + JsdocTypeNull: [], + JsdocTypeNullable: ['element'], + JsdocTypeNumber: [], + JsdocTypeObject: ['elements'], + JsdocTypeObjectField: ['right'], + JsdocTypeJsdocObjectField: ['left', 'right'], + JsdocTypeOptional: ['element'], + JsdocTypeParenthesis: ['element'], + JsdocTypeSpecialNamePath: [], + JsdocTypeStringValue: [], + JsdocTypeSymbol: ['element'], + JsdocTypeTuple: ['elements'], + JsdocTypeTypeof: ['element'], + JsdocTypeUndefined: [], + JsdocTypeUnion: ['elements'], + JsdocTypeUnknown: [], + JsdocTypeVariadic: ['element'], + JsdocTypeProperty: [], + JsdocTypePredicate: ['left', 'right'], + JsdocTypeAsserts: ['left', 'right'] + }; - if (node.params.length !== 0) { - result += compact ? ',' : ', '; + function _traverse(node, parentNode, property, onEnter, onLeave) { + onEnter === null || onEnter === void 0 ? void 0 : onEnter(node, parentNode, property); + const keysToVisit = visitorKeys[node.type]; + for (const key of keysToVisit) { + const value = node[key]; + if (value !== undefined) { + if (Array.isArray(value)) { + for (const element of value) { + _traverse(element, node, key, onEnter, onLeave); + } } - } - - for (i = 0, iz = node.params.length; i < iz; ++i) { - result += stringifyImpl(node.params[i], compact); - if ((i + 1) !== iz) { - result += compact ? ',' : ', '; + else { + _traverse(value, node, key, onEnter, onLeave); } } + } + onLeave === null || onLeave === void 0 ? void 0 : onLeave(node, parentNode, property); + } + /** + * A function to traverse an AST. It traverses it depth first. + * @param node the node to start traversing at. + * @param onEnter node visitor function that will be called on entering the node. This corresponds to preorder traversing. + * @param onLeave node visitor function that will be called on leaving the node. This corresponds to postorder traversing. + */ + function traverse(node, onEnter, onLeave) { + _traverse(node, undefined, undefined, onEnter, onLeave); + } - result += ')'; + exports.catharsisTransform = catharsisTransform; + exports.identityTransformRules = identityTransformRules; + exports.jtpTransform = jtpTransform; + exports.parse = parse; + exports.stringify = stringify; + exports.stringifyRules = stringifyRules; + exports.transform = transform; + exports.traverse = traverse; + exports.tryParse = tryParse; + exports.visitorKeys = visitorKeys; - if (node.result) { - result += (compact ? ':' : ': ') + stringifyImpl(node.result, compact); - } - break; +})); - case Syntax.ParameterType: - result = node.name + (compact ? ':' : ': ') + stringifyImpl(node.expression, compact); - break; - case Syntax.RestType: - result = '...'; - if (node.expression) { - result += stringifyImpl(node.expression, compact); - } - break; +/***/ }), - case Syntax.NonNullableType: - if (node.prefix) { - result = '!' + stringifyImpl(node.expression, compact); - } else { - result = stringifyImpl(node.expression, compact) + '!'; - } - break; +/***/ "../../../node_modules/react/cjs/react.production.min.js": +/***/ ((__unused_webpack_module, exports) => { - case Syntax.OptionalType: - result = stringifyImpl(node.expression, compact) + '='; - break; - - case Syntax.NullableType: - if (node.prefix) { - result = '?' + stringifyImpl(node.expression, compact); - } else { - result = stringifyImpl(node.expression, compact) + '?'; - } - break; - - case Syntax.NameExpression: - result = node.name; - break; - - case Syntax.TypeApplication: - result = stringifyImpl(node.expression, compact) + '.<'; - for (i = 0, iz = node.applications.length; i < iz; ++i) { - result += stringifyImpl(node.applications[i], compact); - if ((i + 1) !== iz) { - result += compact ? ',' : ', '; - } - } - result += '>'; - break; - - case Syntax.StringLiteralType: - result = '"' + node.value + '"'; - break; - - case Syntax.NumericLiteralType: - result = String(node.value); - break; - - case Syntax.BooleanLiteralType: - result = String(node.value); - break; - - default: - utility.throwError('Unknown type ' + node.type); - } - - return result; - } - - function stringify(node, options) { - if (options == null) { - options = {}; - } - return stringifyImpl(node, options.compact, options.topLevel); - } - - exports.parseType = parseType; - exports.parseParamType = parseParamType; - exports.stringify = stringify; - exports.Syntax = Syntax; -}()); -/* vim: set sw=4 ts=4 et tw=80 : */ - - -/***/ }), - -/***/ "../../../node_modules/doctrine/lib/utility.js": -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -/* - * @fileoverview Utilities for Doctrine - * @author Yusuke Suzuki - */ - - -(function () { - 'use strict'; - - var VERSION; - - VERSION = (__webpack_require__("../../../node_modules/doctrine/package.json")/* .version */ .rE); - exports.VERSION = VERSION; - - function DoctrineError(message) { - this.name = 'DoctrineError'; - this.message = message; - } - DoctrineError.prototype = (function () { - var Middle = function () { }; - Middle.prototype = Error.prototype; - return new Middle(); - }()); - DoctrineError.prototype.constructor = DoctrineError; - exports.DoctrineError = DoctrineError; - - function throwError(message) { - throw new DoctrineError(message); - } - exports.throwError = throwError; - - exports.assert = __webpack_require__("../../../node_modules/assert/build/assert.js"); -}()); - -/* vim: set sw=4 ts=4 et tw=80 : */ - - -/***/ }), - -/***/ "../../../node_modules/esutils/lib/ast.js": -/***/ ((module) => { - -/* - Copyright (C) 2013 Yusuke Suzuki - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -(function () { - 'use strict'; - - function isExpression(node) { - if (node == null) { return false; } - switch (node.type) { - case 'ArrayExpression': - case 'AssignmentExpression': - case 'BinaryExpression': - case 'CallExpression': - case 'ConditionalExpression': - case 'FunctionExpression': - case 'Identifier': - case 'Literal': - case 'LogicalExpression': - case 'MemberExpression': - case 'NewExpression': - case 'ObjectExpression': - case 'SequenceExpression': - case 'ThisExpression': - case 'UnaryExpression': - case 'UpdateExpression': - return true; - } - return false; - } - - function isIterationStatement(node) { - if (node == null) { return false; } - switch (node.type) { - case 'DoWhileStatement': - case 'ForInStatement': - case 'ForStatement': - case 'WhileStatement': - return true; - } - return false; - } - - function isStatement(node) { - if (node == null) { return false; } - switch (node.type) { - case 'BlockStatement': - case 'BreakStatement': - case 'ContinueStatement': - case 'DebuggerStatement': - case 'DoWhileStatement': - case 'EmptyStatement': - case 'ExpressionStatement': - case 'ForInStatement': - case 'ForStatement': - case 'IfStatement': - case 'LabeledStatement': - case 'ReturnStatement': - case 'SwitchStatement': - case 'ThrowStatement': - case 'TryStatement': - case 'VariableDeclaration': - case 'WhileStatement': - case 'WithStatement': - return true; - } - return false; - } - - function isSourceElement(node) { - return isStatement(node) || node != null && node.type === 'FunctionDeclaration'; - } - - function trailingStatement(node) { - switch (node.type) { - case 'IfStatement': - if (node.alternate != null) { - return node.alternate; - } - return node.consequent; - - case 'LabeledStatement': - case 'ForStatement': - case 'ForInStatement': - case 'WhileStatement': - case 'WithStatement': - return node.body; - } - return null; - } - - function isProblematicIfStatement(node) { - var current; - - if (node.type !== 'IfStatement') { - return false; - } - if (node.alternate == null) { - return false; - } - current = node.consequent; - do { - if (current.type === 'IfStatement') { - if (current.alternate == null) { - return true; - } - } - current = trailingStatement(current); - } while (current); - - return false; - } - - module.exports = { - isExpression: isExpression, - isStatement: isStatement, - isIterationStatement: isIterationStatement, - isSourceElement: isSourceElement, - isProblematicIfStatement: isProblematicIfStatement, - - trailingStatement: trailingStatement - }; -}()); -/* vim: set sw=4 ts=4 et tw=80 : */ - - -/***/ }), - -/***/ "../../../node_modules/esutils/lib/code.js": -/***/ ((module) => { - -/* - Copyright (C) 2013-2014 Yusuke Suzuki - Copyright (C) 2014 Ivan Nikulin - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -(function () { - 'use strict'; - - var ES6Regex, ES5Regex, NON_ASCII_WHITESPACES, IDENTIFIER_START, IDENTIFIER_PART, ch; - - // See `tools/generate-identifier-regex.js`. - ES5Regex = { - // ECMAScript 5.1/Unicode v9.0.0 NonAsciiIdentifierStart: - NonAsciiIdentifierStart: /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/, - // ECMAScript 5.1/Unicode v9.0.0 NonAsciiIdentifierPart: - NonAsciiIdentifierPart: /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/ - }; - - ES6Regex = { - // ECMAScript 6/Unicode v9.0.0 NonAsciiIdentifierStart: - NonAsciiIdentifierStart: /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/, - // ECMAScript 6/Unicode v9.0.0 NonAsciiIdentifierPart: - NonAsciiIdentifierPart: /[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/ - }; - - function isDecimalDigit(ch) { - return 0x30 <= ch && ch <= 0x39; // 0..9 - } - - function isHexDigit(ch) { - return 0x30 <= ch && ch <= 0x39 || // 0..9 - 0x61 <= ch && ch <= 0x66 || // a..f - 0x41 <= ch && ch <= 0x46; // A..F - } - - function isOctalDigit(ch) { - return ch >= 0x30 && ch <= 0x37; // 0..7 - } - - // 7.2 White Space - - NON_ASCII_WHITESPACES = [ - 0x1680, - 0x2000, 0x2001, 0x2002, 0x2003, 0x2004, 0x2005, 0x2006, 0x2007, 0x2008, 0x2009, 0x200A, - 0x202F, 0x205F, - 0x3000, - 0xFEFF - ]; - - function isWhiteSpace(ch) { - return ch === 0x20 || ch === 0x09 || ch === 0x0B || ch === 0x0C || ch === 0xA0 || - ch >= 0x1680 && NON_ASCII_WHITESPACES.indexOf(ch) >= 0; - } - - // 7.3 Line Terminators - - function isLineTerminator(ch) { - return ch === 0x0A || ch === 0x0D || ch === 0x2028 || ch === 0x2029; - } - - // 7.6 Identifier Names and Identifiers - - function fromCodePoint(cp) { - if (cp <= 0xFFFF) { return String.fromCharCode(cp); } - var cu1 = String.fromCharCode(Math.floor((cp - 0x10000) / 0x400) + 0xD800); - var cu2 = String.fromCharCode(((cp - 0x10000) % 0x400) + 0xDC00); - return cu1 + cu2; - } - - IDENTIFIER_START = new Array(0x80); - for(ch = 0; ch < 0x80; ++ch) { - IDENTIFIER_START[ch] = - ch >= 0x61 && ch <= 0x7A || // a..z - ch >= 0x41 && ch <= 0x5A || // A..Z - ch === 0x24 || ch === 0x5F; // $ (dollar) and _ (underscore) - } - - IDENTIFIER_PART = new Array(0x80); - for(ch = 0; ch < 0x80; ++ch) { - IDENTIFIER_PART[ch] = - ch >= 0x61 && ch <= 0x7A || // a..z - ch >= 0x41 && ch <= 0x5A || // A..Z - ch >= 0x30 && ch <= 0x39 || // 0..9 - ch === 0x24 || ch === 0x5F; // $ (dollar) and _ (underscore) - } - - function isIdentifierStartES5(ch) { - return ch < 0x80 ? IDENTIFIER_START[ch] : ES5Regex.NonAsciiIdentifierStart.test(fromCodePoint(ch)); - } - - function isIdentifierPartES5(ch) { - return ch < 0x80 ? IDENTIFIER_PART[ch] : ES5Regex.NonAsciiIdentifierPart.test(fromCodePoint(ch)); - } - - function isIdentifierStartES6(ch) { - return ch < 0x80 ? IDENTIFIER_START[ch] : ES6Regex.NonAsciiIdentifierStart.test(fromCodePoint(ch)); - } - - function isIdentifierPartES6(ch) { - return ch < 0x80 ? IDENTIFIER_PART[ch] : ES6Regex.NonAsciiIdentifierPart.test(fromCodePoint(ch)); - } - - module.exports = { - isDecimalDigit: isDecimalDigit, - isHexDigit: isHexDigit, - isOctalDigit: isOctalDigit, - isWhiteSpace: isWhiteSpace, - isLineTerminator: isLineTerminator, - isIdentifierStartES5: isIdentifierStartES5, - isIdentifierPartES5: isIdentifierPartES5, - isIdentifierStartES6: isIdentifierStartES6, - isIdentifierPartES6: isIdentifierPartES6 - }; -}()); -/* vim: set sw=4 ts=4 et tw=80 : */ - - -/***/ }), - -/***/ "../../../node_modules/esutils/lib/keyword.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -/* - Copyright (C) 2013 Yusuke Suzuki - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -(function () { - 'use strict'; - - var code = __webpack_require__("../../../node_modules/esutils/lib/code.js"); - - function isStrictModeReservedWordES6(id) { - switch (id) { - case 'implements': - case 'interface': - case 'package': - case 'private': - case 'protected': - case 'public': - case 'static': - case 'let': - return true; - default: - return false; - } - } - - function isKeywordES5(id, strict) { - // yield should not be treated as keyword under non-strict mode. - if (!strict && id === 'yield') { - return false; - } - return isKeywordES6(id, strict); - } - - function isKeywordES6(id, strict) { - if (strict && isStrictModeReservedWordES6(id)) { - return true; - } - - switch (id.length) { - case 2: - return (id === 'if') || (id === 'in') || (id === 'do'); - case 3: - return (id === 'var') || (id === 'for') || (id === 'new') || (id === 'try'); - case 4: - return (id === 'this') || (id === 'else') || (id === 'case') || - (id === 'void') || (id === 'with') || (id === 'enum'); - case 5: - return (id === 'while') || (id === 'break') || (id === 'catch') || - (id === 'throw') || (id === 'const') || (id === 'yield') || - (id === 'class') || (id === 'super'); - case 6: - return (id === 'return') || (id === 'typeof') || (id === 'delete') || - (id === 'switch') || (id === 'export') || (id === 'import'); - case 7: - return (id === 'default') || (id === 'finally') || (id === 'extends'); - case 8: - return (id === 'function') || (id === 'continue') || (id === 'debugger'); - case 10: - return (id === 'instanceof'); - default: - return false; - } - } - - function isReservedWordES5(id, strict) { - return id === 'null' || id === 'true' || id === 'false' || isKeywordES5(id, strict); - } - - function isReservedWordES6(id, strict) { - return id === 'null' || id === 'true' || id === 'false' || isKeywordES6(id, strict); - } - - function isRestrictedWord(id) { - return id === 'eval' || id === 'arguments'; - } - - function isIdentifierNameES5(id) { - var i, iz, ch; - - if (id.length === 0) { return false; } - - ch = id.charCodeAt(0); - if (!code.isIdentifierStartES5(ch)) { - return false; - } - - for (i = 1, iz = id.length; i < iz; ++i) { - ch = id.charCodeAt(i); - if (!code.isIdentifierPartES5(ch)) { - return false; - } - } - return true; - } - - function decodeUtf16(lead, trail) { - return (lead - 0xD800) * 0x400 + (trail - 0xDC00) + 0x10000; - } - - function isIdentifierNameES6(id) { - var i, iz, ch, lowCh, check; - - if (id.length === 0) { return false; } - - check = code.isIdentifierStartES6; - for (i = 0, iz = id.length; i < iz; ++i) { - ch = id.charCodeAt(i); - if (0xD800 <= ch && ch <= 0xDBFF) { - ++i; - if (i >= iz) { return false; } - lowCh = id.charCodeAt(i); - if (!(0xDC00 <= lowCh && lowCh <= 0xDFFF)) { - return false; - } - ch = decodeUtf16(ch, lowCh); - } - if (!check(ch)) { - return false; - } - check = code.isIdentifierPartES6; - } - return true; - } - - function isIdentifierES5(id, strict) { - return isIdentifierNameES5(id) && !isReservedWordES5(id, strict); - } - - function isIdentifierES6(id, strict) { - return isIdentifierNameES6(id) && !isReservedWordES6(id, strict); - } - - module.exports = { - isKeywordES5: isKeywordES5, - isKeywordES6: isKeywordES6, - isReservedWordES5: isReservedWordES5, - isReservedWordES6: isReservedWordES6, - isRestrictedWord: isRestrictedWord, - isIdentifierNameES5: isIdentifierNameES5, - isIdentifierNameES6: isIdentifierNameES6, - isIdentifierES5: isIdentifierES5, - isIdentifierES6: isIdentifierES6 - }; -}()); -/* vim: set sw=4 ts=4 et tw=80 : */ - - -/***/ }), - -/***/ "../../../node_modules/esutils/lib/utils.js": -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -/* - Copyright (C) 2013 Yusuke Suzuki - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - - -(function () { - 'use strict'; - - exports.ast = __webpack_require__("../../../node_modules/esutils/lib/ast.js"); - exports.code = __webpack_require__("../../../node_modules/esutils/lib/code.js"); - exports.keyword = __webpack_require__("../../../node_modules/esutils/lib/keyword.js"); -}()); -/* vim: set sw=4 ts=4 et tw=80 : */ +"use strict"; +/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +var l=Symbol.for("react.element"),n=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z=Symbol.iterator;function A(a){if(null===a||"object"!==typeof a)return null;a=z&&a[z]||a["@@iterator"];return"function"===typeof a?a:null} +var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}E.prototype.isReactComponent={}; +E.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,b,"setState")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}var H=G.prototype=new F; +H.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0}; +function M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=""+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1 { "use strict"; -var isCallable = __webpack_require__("../../../node_modules/is-callable/index.js"); - -var toStr = Object.prototype.toString; -var hasOwnProperty = Object.prototype.hasOwnProperty; - -var forEachArray = function forEachArray(array, iterator, receiver) { - for (var i = 0, len = array.length; i < len; i++) { - if (hasOwnProperty.call(array, i)) { - if (receiver == null) { - iterator(array[i], i, array); - } else { - iterator.call(receiver, array[i], i, array); - } - } - } -}; - -var forEachString = function forEachString(string, iterator, receiver) { - for (var i = 0, len = string.length; i < len; i++) { - // no such thing as a sparse string. - if (receiver == null) { - iterator(string.charAt(i), i, string); - } else { - iterator.call(receiver, string.charAt(i), i, string); - } - } -}; - -var forEachObject = function forEachObject(object, iterator, receiver) { - for (var k in object) { - if (hasOwnProperty.call(object, k)) { - if (receiver == null) { - iterator(object[k], k, object); - } else { - iterator.call(receiver, object[k], k, object); - } - } - } -}; - -var forEach = function forEach(list, iterator, thisArg) { - if (!isCallable(iterator)) { - throw new TypeError('iterator must be a function'); - } - - var receiver; - if (arguments.length >= 3) { - receiver = thisArg; - } - - if (toStr.call(list) === '[object Array]') { - forEachArray(list, iterator, receiver); - } else if (typeof list === 'string') { - forEachString(list, iterator, receiver); - } else { - forEachObject(list, iterator, receiver); - } -}; - -module.exports = forEach; +if (true) { + module.exports = __webpack_require__("../../../node_modules/react/cjs/react.production.min.js"); +} else {} /***/ }), -/***/ "../../../node_modules/function-bind/implementation.js": -/***/ ((module) => { +/***/ "../../../node_modules/ts-dedent/esm/index.js": +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; - - -/* eslint no-invalid-this: 1 */ - -var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible '; -var toStr = Object.prototype.toString; -var max = Math.max; -var funcType = '[object Function]'; - -var concatty = function concatty(a, b) { - var arr = []; - - for (var i = 0; i < a.length; i += 1) { - arr[i] = a[i]; - } - for (var j = 0; j < b.length; j += 1) { - arr[j + a.length] = b[j]; - } - - return arr; -}; - -var slicy = function slicy(arrLike, offset) { - var arr = []; - for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) { - arr[j] = arrLike[i]; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ T: () => (/* binding */ dedent) +/* harmony export */ }); +function dedent(templ) { + var values = []; + for (var _i = 1; _i < arguments.length; _i++) { + values[_i - 1] = arguments[_i]; } - return arr; -}; - -var joiny = function (arr, joiner) { - var str = ''; - for (var i = 0; i < arr.length; i += 1) { - str += arr[i]; - if (i + 1 < arr.length) { - str += joiner; + var strings = Array.from(typeof templ === 'string' ? [templ] : templ); + strings[strings.length - 1] = strings[strings.length - 1].replace(/\r?\n([\t ]*)$/, ''); + var indentLengths = strings.reduce(function (arr, str) { + var matches = str.match(/\n([\t ]+|(?!\s).)/g); + if (matches) { + return arr.concat(matches.map(function (match) { var _a, _b; return (_b = (_a = match.match(/[\t ]/g)) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0; })); } + return arr; + }, []); + if (indentLengths.length) { + var pattern_1 = new RegExp("\n[\t ]{" + Math.min.apply(Math, indentLengths) + "}", 'g'); + strings = strings.map(function (str) { return str.replace(pattern_1, '\n'); }); } - return str; -}; - -module.exports = function bind(that) { - var target = this; - if (typeof target !== 'function' || toStr.apply(target) !== funcType) { - throw new TypeError(ERROR_MESSAGE + target); - } - var args = slicy(arguments, 1); - - var bound; - var binder = function () { - if (this instanceof bound) { - var result = target.apply( - this, - concatty(args, arguments) - ); - if (Object(result) === result) { - return result; - } - return this; - } - return target.apply( - that, - concatty(args, arguments) - ); - - }; - - var boundLength = max(0, target.length - args.length); - var boundArgs = []; - for (var i = 0; i < boundLength; i++) { - boundArgs[i] = '$' + i; - } - - bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder); - - if (target.prototype) { - var Empty = function Empty() {}; - Empty.prototype = target.prototype; - bound.prototype = new Empty(); - Empty.prototype = null; - } - - return bound; -}; - - -/***/ }), - -/***/ "../../../node_modules/function-bind/index.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var implementation = __webpack_require__("../../../node_modules/function-bind/implementation.js"); - -module.exports = Function.prototype.bind || implementation; - - -/***/ }), - -/***/ "../../../node_modules/get-intrinsic/index.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var undefined; - -var $SyntaxError = SyntaxError; -var $Function = Function; -var $TypeError = TypeError; - -// eslint-disable-next-line consistent-return -var getEvalledConstructor = function (expressionSyntax) { - try { - return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')(); - } catch (e) {} -}; - -var $gOPD = Object.getOwnPropertyDescriptor; -if ($gOPD) { - try { - $gOPD({}, ''); - } catch (e) { - $gOPD = null; // this is IE 8, which has a broken gOPD - } -} - -var throwTypeError = function () { - throw new $TypeError(); -}; -var ThrowTypeError = $gOPD - ? (function () { - try { - // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties - arguments.callee; // IE 8 does not throw here - return throwTypeError; - } catch (calleeThrows) { - try { - // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '') - return $gOPD(arguments, 'callee').get; - } catch (gOPDthrows) { - return throwTypeError; - } - } - }()) - : throwTypeError; - -var hasSymbols = __webpack_require__("../../../node_modules/has-symbols/index.js")(); -var hasProto = __webpack_require__("../../../node_modules/has-proto/index.js")(); - -var getProto = Object.getPrototypeOf || ( - hasProto - ? function (x) { return x.__proto__; } // eslint-disable-line no-proto - : null -); - -var needsEval = {}; - -var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array); - -var INTRINSICS = { - '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError, - '%Array%': Array, - '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer, - '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined, - '%AsyncFromSyncIteratorPrototype%': undefined, - '%AsyncFunction%': needsEval, - '%AsyncGenerator%': needsEval, - '%AsyncGeneratorFunction%': needsEval, - '%AsyncIteratorPrototype%': needsEval, - '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics, - '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt, - '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array, - '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array, - '%Boolean%': Boolean, - '%DataView%': typeof DataView === 'undefined' ? undefined : DataView, - '%Date%': Date, - '%decodeURI%': decodeURI, - '%decodeURIComponent%': decodeURIComponent, - '%encodeURI%': encodeURI, - '%encodeURIComponent%': encodeURIComponent, - '%Error%': Error, - '%eval%': eval, // eslint-disable-line no-eval - '%EvalError%': EvalError, - '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array, - '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array, - '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry, - '%Function%': $Function, - '%GeneratorFunction%': needsEval, - '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array, - '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array, - '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array, - '%isFinite%': isFinite, - '%isNaN%': isNaN, - '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined, - '%JSON%': typeof JSON === 'object' ? JSON : undefined, - '%Map%': typeof Map === 'undefined' ? undefined : Map, - '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()), - '%Math%': Math, - '%Number%': Number, - '%Object%': Object, - '%parseFloat%': parseFloat, - '%parseInt%': parseInt, - '%Promise%': typeof Promise === 'undefined' ? undefined : Promise, - '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy, - '%RangeError%': RangeError, - '%ReferenceError%': ReferenceError, - '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect, - '%RegExp%': RegExp, - '%Set%': typeof Set === 'undefined' ? undefined : Set, - '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()), - '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer, - '%String%': String, - '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined, - '%Symbol%': hasSymbols ? Symbol : undefined, - '%SyntaxError%': $SyntaxError, - '%ThrowTypeError%': ThrowTypeError, - '%TypedArray%': TypedArray, - '%TypeError%': $TypeError, - '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array, - '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray, - '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array, - '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array, - '%URIError%': URIError, - '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap, - '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef, - '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet -}; - -if (getProto) { - try { - null.error; // eslint-disable-line no-unused-expressions - } catch (e) { - // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229 - var errorProto = getProto(getProto(e)); - INTRINSICS['%Error.prototype%'] = errorProto; - } -} - -var doEval = function doEval(name) { - var value; - if (name === '%AsyncFunction%') { - value = getEvalledConstructor('async function () {}'); - } else if (name === '%GeneratorFunction%') { - value = getEvalledConstructor('function* () {}'); - } else if (name === '%AsyncGeneratorFunction%') { - value = getEvalledConstructor('async function* () {}'); - } else if (name === '%AsyncGenerator%') { - var fn = doEval('%AsyncGeneratorFunction%'); - if (fn) { - value = fn.prototype; - } - } else if (name === '%AsyncIteratorPrototype%') { - var gen = doEval('%AsyncGenerator%'); - if (gen && getProto) { - value = getProto(gen.prototype); - } - } - - INTRINSICS[name] = value; - - return value; -}; - -var LEGACY_ALIASES = { - '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'], - '%ArrayPrototype%': ['Array', 'prototype'], - '%ArrayProto_entries%': ['Array', 'prototype', 'entries'], - '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'], - '%ArrayProto_keys%': ['Array', 'prototype', 'keys'], - '%ArrayProto_values%': ['Array', 'prototype', 'values'], - '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'], - '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'], - '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'], - '%BooleanPrototype%': ['Boolean', 'prototype'], - '%DataViewPrototype%': ['DataView', 'prototype'], - '%DatePrototype%': ['Date', 'prototype'], - '%ErrorPrototype%': ['Error', 'prototype'], - '%EvalErrorPrototype%': ['EvalError', 'prototype'], - '%Float32ArrayPrototype%': ['Float32Array', 'prototype'], - '%Float64ArrayPrototype%': ['Float64Array', 'prototype'], - '%FunctionPrototype%': ['Function', 'prototype'], - '%Generator%': ['GeneratorFunction', 'prototype'], - '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'], - '%Int8ArrayPrototype%': ['Int8Array', 'prototype'], - '%Int16ArrayPrototype%': ['Int16Array', 'prototype'], - '%Int32ArrayPrototype%': ['Int32Array', 'prototype'], - '%JSONParse%': ['JSON', 'parse'], - '%JSONStringify%': ['JSON', 'stringify'], - '%MapPrototype%': ['Map', 'prototype'], - '%NumberPrototype%': ['Number', 'prototype'], - '%ObjectPrototype%': ['Object', 'prototype'], - '%ObjProto_toString%': ['Object', 'prototype', 'toString'], - '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'], - '%PromisePrototype%': ['Promise', 'prototype'], - '%PromiseProto_then%': ['Promise', 'prototype', 'then'], - '%Promise_all%': ['Promise', 'all'], - '%Promise_reject%': ['Promise', 'reject'], - '%Promise_resolve%': ['Promise', 'resolve'], - '%RangeErrorPrototype%': ['RangeError', 'prototype'], - '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'], - '%RegExpPrototype%': ['RegExp', 'prototype'], - '%SetPrototype%': ['Set', 'prototype'], - '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'], - '%StringPrototype%': ['String', 'prototype'], - '%SymbolPrototype%': ['Symbol', 'prototype'], - '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'], - '%TypedArrayPrototype%': ['TypedArray', 'prototype'], - '%TypeErrorPrototype%': ['TypeError', 'prototype'], - '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'], - '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'], - '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'], - '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'], - '%URIErrorPrototype%': ['URIError', 'prototype'], - '%WeakMapPrototype%': ['WeakMap', 'prototype'], - '%WeakSetPrototype%': ['WeakSet', 'prototype'] -}; - -var bind = __webpack_require__("../../../node_modules/function-bind/index.js"); -var hasOwn = __webpack_require__("../../../node_modules/hasown/index.js"); -var $concat = bind.call(Function.call, Array.prototype.concat); -var $spliceApply = bind.call(Function.apply, Array.prototype.splice); -var $replace = bind.call(Function.call, String.prototype.replace); -var $strSlice = bind.call(Function.call, String.prototype.slice); -var $exec = bind.call(Function.call, RegExp.prototype.exec); - -/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */ -var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g; -var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */ -var stringToPath = function stringToPath(string) { - var first = $strSlice(string, 0, 1); - var last = $strSlice(string, -1); - if (first === '%' && last !== '%') { - throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`'); - } else if (last === '%' && first !== '%') { - throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`'); - } - var result = []; - $replace(string, rePropName, function (match, number, quote, subString) { - result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match; - }); - return result; -}; -/* end adaptation */ - -var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) { - var intrinsicName = name; - var alias; - if (hasOwn(LEGACY_ALIASES, intrinsicName)) { - alias = LEGACY_ALIASES[intrinsicName]; - intrinsicName = '%' + alias[0] + '%'; - } - - if (hasOwn(INTRINSICS, intrinsicName)) { - var value = INTRINSICS[intrinsicName]; - if (value === needsEval) { - value = doEval(intrinsicName); - } - if (typeof value === 'undefined' && !allowMissing) { - throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!'); - } - - return { - alias: alias, - name: intrinsicName, - value: value - }; - } - - throw new $SyntaxError('intrinsic ' + name + ' does not exist!'); -}; - -module.exports = function GetIntrinsic(name, allowMissing) { - if (typeof name !== 'string' || name.length === 0) { - throw new $TypeError('intrinsic name must be a non-empty string'); - } - if (arguments.length > 1 && typeof allowMissing !== 'boolean') { - throw new $TypeError('"allowMissing" argument must be a boolean'); - } - - if ($exec(/^%?[^%]*%?$/, name) === null) { - throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name'); - } - var parts = stringToPath(name); - var intrinsicBaseName = parts.length > 0 ? parts[0] : ''; - - var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing); - var intrinsicRealName = intrinsic.name; - var value = intrinsic.value; - var skipFurtherCaching = false; - - var alias = intrinsic.alias; - if (alias) { - intrinsicBaseName = alias[0]; - $spliceApply(parts, $concat([0, 1], alias)); - } - - for (var i = 1, isOwn = true; i < parts.length; i += 1) { - var part = parts[i]; - var first = $strSlice(part, 0, 1); - var last = $strSlice(part, -1); - if ( - ( - (first === '"' || first === "'" || first === '`') - || (last === '"' || last === "'" || last === '`') - ) - && first !== last - ) { - throw new $SyntaxError('property names with quotes must have matching quotes'); - } - if (part === 'constructor' || !isOwn) { - skipFurtherCaching = true; - } - - intrinsicBaseName += '.' + part; - intrinsicRealName = '%' + intrinsicBaseName + '%'; - - if (hasOwn(INTRINSICS, intrinsicRealName)) { - value = INTRINSICS[intrinsicRealName]; - } else if (value != null) { - if (!(part in value)) { - if (!allowMissing) { - throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.'); - } - return void undefined; - } - if ($gOPD && (i + 1) >= parts.length) { - var desc = $gOPD(value, part); - isOwn = !!desc; - - // By convention, when a data property is converted to an accessor - // property to emulate a data property that does not suffer from - // the override mistake, that accessor's getter is marked with - // an `originalValue` property. Here, when we detect this, we - // uphold the illusion by pretending to see that original data - // property, i.e., returning the value rather than the getter - // itself. - if (isOwn && 'get' in desc && !('originalValue' in desc.get)) { - value = desc.get; - } else { - value = value[part]; - } - } else { - isOwn = hasOwn(value, part); - value = value[part]; - } - - if (isOwn && !skipFurtherCaching) { - INTRINSICS[intrinsicRealName] = value; - } - } - } - return value; -}; - - -/***/ }), - -/***/ "../../../node_modules/gopd/index.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var GetIntrinsic = __webpack_require__("../../../node_modules/get-intrinsic/index.js"); - -var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true); - -if ($gOPD) { - try { - $gOPD([], 'length'); - } catch (e) { - // IE 8 has a broken gOPD - $gOPD = null; - } -} - -module.exports = $gOPD; - - -/***/ }), - -/***/ "../../../node_modules/has-property-descriptors/index.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var GetIntrinsic = __webpack_require__("../../../node_modules/get-intrinsic/index.js"); - -var $defineProperty = GetIntrinsic('%Object.defineProperty%', true); - -var hasPropertyDescriptors = function hasPropertyDescriptors() { - if ($defineProperty) { - try { - $defineProperty({}, 'a', { value: 1 }); - return true; - } catch (e) { - // IE 8 has a broken defineProperty - return false; - } - } - return false; -}; - -hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() { - // node v0.6 has a bug where array lengths can be Set but not Defined - if (!hasPropertyDescriptors()) { - return null; - } - try { - return $defineProperty([], 'length', { value: 1 }).length !== 1; - } catch (e) { - // In Firefox 4-22, defining length on an array throws an exception. - return true; - } -}; - -module.exports = hasPropertyDescriptors; - - -/***/ }), - -/***/ "../../../node_modules/has-proto/index.js": -/***/ ((module) => { - -"use strict"; - - -var test = { - foo: {} -}; - -var $Object = Object; - -module.exports = function hasProto() { - return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object); -}; - - -/***/ }), - -/***/ "../../../node_modules/has-symbols/index.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var origSymbol = typeof Symbol !== 'undefined' && Symbol; -var hasSymbolSham = __webpack_require__("../../../node_modules/has-symbols/shams.js"); - -module.exports = function hasNativeSymbols() { - if (typeof origSymbol !== 'function') { return false; } - if (typeof Symbol !== 'function') { return false; } - if (typeof origSymbol('foo') !== 'symbol') { return false; } - if (typeof Symbol('bar') !== 'symbol') { return false; } - - return hasSymbolSham(); -}; - - -/***/ }), - -/***/ "../../../node_modules/has-symbols/shams.js": -/***/ ((module) => { - -"use strict"; - - -/* eslint complexity: [2, 18], max-statements: [2, 33] */ -module.exports = function hasSymbols() { - if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; } - if (typeof Symbol.iterator === 'symbol') { return true; } - - var obj = {}; - var sym = Symbol('test'); - var symObj = Object(sym); - if (typeof sym === 'string') { return false; } - - if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; } - if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; } - - // temp disabled per https://github.com/ljharb/object.assign/issues/17 - // if (sym instanceof Symbol) { return false; } - // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4 - // if (!(symObj instanceof Symbol)) { return false; } - - // if (typeof Symbol.prototype.toString !== 'function') { return false; } - // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; } - - var symVal = 42; - obj[sym] = symVal; - for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop - if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; } - - if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; } - - var syms = Object.getOwnPropertySymbols(obj); - if (syms.length !== 1 || syms[0] !== sym) { return false; } - - if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; } - - if (typeof Object.getOwnPropertyDescriptor === 'function') { - var descriptor = Object.getOwnPropertyDescriptor(obj, sym); - if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; } - } - - return true; -}; - - -/***/ }), - -/***/ "../../../node_modules/has-tostringtag/shams.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var hasSymbols = __webpack_require__("../../../node_modules/has-symbols/shams.js"); - -module.exports = function hasToStringTagShams() { - return hasSymbols() && !!Symbol.toStringTag; -}; - - -/***/ }), - -/***/ "../../../node_modules/hasown/index.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var call = Function.prototype.call; -var $hasOwn = Object.prototype.hasOwnProperty; -var bind = __webpack_require__("../../../node_modules/function-bind/index.js"); - -/** @type {(o: {}, p: PropertyKey) => p is keyof o} */ -module.exports = bind.call(call, $hasOwn); - - -/***/ }), - -/***/ "../../../node_modules/inherits/inherits_browser.js": -/***/ ((module) => { - -if (typeof Object.create === 'function') { - // implementation from standard node.js 'util' module - module.exports = function inherits(ctor, superCtor) { - if (superCtor) { - ctor.super_ = superCtor - ctor.prototype = Object.create(superCtor.prototype, { - constructor: { - value: ctor, - enumerable: false, - writable: true, - configurable: true - } - }) - } - }; -} else { - // old school shim for old browsers - module.exports = function inherits(ctor, superCtor) { - if (superCtor) { - ctor.super_ = superCtor - var TempCtor = function () {} - TempCtor.prototype = superCtor.prototype - ctor.prototype = new TempCtor() - ctor.prototype.constructor = ctor - } - } -} - - -/***/ }), - -/***/ "../../../node_modules/is-arguments/index.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var hasToStringTag = __webpack_require__("../../../node_modules/has-tostringtag/shams.js")(); -var callBound = __webpack_require__("../../../node_modules/call-bind/callBound.js"); - -var $toString = callBound('Object.prototype.toString'); - -var isStandardArguments = function isArguments(value) { - if (hasToStringTag && value && typeof value === 'object' && Symbol.toStringTag in value) { - return false; - } - return $toString(value) === '[object Arguments]'; -}; - -var isLegacyArguments = function isArguments(value) { - if (isStandardArguments(value)) { - return true; - } - return value !== null && - typeof value === 'object' && - typeof value.length === 'number' && - value.length >= 0 && - $toString(value) !== '[object Array]' && - $toString(value.callee) === '[object Function]'; -}; - -var supportsStandardArguments = (function () { - return isStandardArguments(arguments); -}()); - -isStandardArguments.isLegacyArguments = isLegacyArguments; // for tests - -module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments; - - -/***/ }), - -/***/ "../../../node_modules/is-callable/index.js": -/***/ ((module) => { - -"use strict"; - - -var fnToStr = Function.prototype.toString; -var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply; -var badArrayLike; -var isCallableMarker; -if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') { - try { - badArrayLike = Object.defineProperty({}, 'length', { - get: function () { - throw isCallableMarker; - } - }); - isCallableMarker = {}; - // eslint-disable-next-line no-throw-literal - reflectApply(function () { throw 42; }, null, badArrayLike); - } catch (_) { - if (_ !== isCallableMarker) { - reflectApply = null; - } - } -} else { - reflectApply = null; -} - -var constructorRegex = /^\s*class\b/; -var isES6ClassFn = function isES6ClassFunction(value) { - try { - var fnStr = fnToStr.call(value); - return constructorRegex.test(fnStr); - } catch (e) { - return false; // not a function - } -}; - -var tryFunctionObject = function tryFunctionToStr(value) { - try { - if (isES6ClassFn(value)) { return false; } - fnToStr.call(value); - return true; - } catch (e) { - return false; - } -}; -var toStr = Object.prototype.toString; -var objectClass = '[object Object]'; -var fnClass = '[object Function]'; -var genClass = '[object GeneratorFunction]'; -var ddaClass = '[object HTMLAllCollection]'; // IE 11 -var ddaClass2 = '[object HTML document.all class]'; -var ddaClass3 = '[object HTMLCollection]'; // IE 9-10 -var hasToStringTag = typeof Symbol === 'function' && !!Symbol.toStringTag; // better: use `has-tostringtag` - -var isIE68 = !(0 in [,]); // eslint-disable-line no-sparse-arrays, comma-spacing - -var isDDA = function isDocumentDotAll() { return false; }; -if (typeof document === 'object') { - // Firefox 3 canonicalizes DDA to undefined when it's not accessed directly - var all = document.all; - if (toStr.call(all) === toStr.call(document.all)) { - isDDA = function isDocumentDotAll(value) { - /* globals document: false */ - // in IE 6-8, typeof document.all is "object" and it's truthy - if ((isIE68 || !value) && (typeof value === 'undefined' || typeof value === 'object')) { - try { - var str = toStr.call(value); - return ( - str === ddaClass - || str === ddaClass2 - || str === ddaClass3 // opera 12.16 - || str === objectClass // IE 6-8 - ) && value('') == null; // eslint-disable-line eqeqeq - } catch (e) { /**/ } - } - return false; - }; - } -} - -module.exports = reflectApply - ? function isCallable(value) { - if (isDDA(value)) { return true; } - if (!value) { return false; } - if (typeof value !== 'function' && typeof value !== 'object') { return false; } - try { - reflectApply(value, null, badArrayLike); - } catch (e) { - if (e !== isCallableMarker) { return false; } - } - return !isES6ClassFn(value) && tryFunctionObject(value); - } - : function isCallable(value) { - if (isDDA(value)) { return true; } - if (!value) { return false; } - if (typeof value !== 'function' && typeof value !== 'object') { return false; } - if (hasToStringTag) { return tryFunctionObject(value); } - if (isES6ClassFn(value)) { return false; } - var strClass = toStr.call(value); - if (strClass !== fnClass && strClass !== genClass && !(/^\[object HTML/).test(strClass)) { return false; } - return tryFunctionObject(value); - }; - - -/***/ }), - -/***/ "../../../node_modules/is-generator-function/index.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var toStr = Object.prototype.toString; -var fnToStr = Function.prototype.toString; -var isFnRegex = /^\s*(?:function)?\*/; -var hasToStringTag = __webpack_require__("../../../node_modules/has-tostringtag/shams.js")(); -var getProto = Object.getPrototypeOf; -var getGeneratorFunc = function () { // eslint-disable-line consistent-return - if (!hasToStringTag) { - return false; - } - try { - return Function('return function*() {}')(); - } catch (e) { - } -}; -var GeneratorFunction; - -module.exports = function isGeneratorFunction(fn) { - if (typeof fn !== 'function') { - return false; - } - if (isFnRegex.test(fnToStr.call(fn))) { - return true; - } - if (!hasToStringTag) { - var str = toStr.call(fn); - return str === '[object GeneratorFunction]'; - } - if (!getProto) { - return false; - } - if (typeof GeneratorFunction === 'undefined') { - var generatorFunc = getGeneratorFunc(); - GeneratorFunction = generatorFunc ? getProto(generatorFunc) : false; - } - return getProto(fn) === GeneratorFunction; -}; - - -/***/ }), - -/***/ "../../../node_modules/is-nan/implementation.js": -/***/ ((module) => { - -"use strict"; - - -/* http://www.ecma-international.org/ecma-262/6.0/#sec-number.isnan */ - -module.exports = function isNaN(value) { - return value !== value; -}; - - -/***/ }), - -/***/ "../../../node_modules/is-nan/index.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var callBind = __webpack_require__("../../../node_modules/call-bind/index.js"); -var define = __webpack_require__("../../../node_modules/define-properties/index.js"); - -var implementation = __webpack_require__("../../../node_modules/is-nan/implementation.js"); -var getPolyfill = __webpack_require__("../../../node_modules/is-nan/polyfill.js"); -var shim = __webpack_require__("../../../node_modules/is-nan/shim.js"); - -var polyfill = callBind(getPolyfill(), Number); - -/* http://www.ecma-international.org/ecma-262/6.0/#sec-number.isnan */ - -define(polyfill, { - getPolyfill: getPolyfill, - implementation: implementation, - shim: shim -}); - -module.exports = polyfill; - - -/***/ }), - -/***/ "../../../node_modules/is-nan/polyfill.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var implementation = __webpack_require__("../../../node_modules/is-nan/implementation.js"); - -module.exports = function getPolyfill() { - if (Number.isNaN && Number.isNaN(NaN) && !Number.isNaN('a')) { - return Number.isNaN; - } - return implementation; -}; - - -/***/ }), - -/***/ "../../../node_modules/is-nan/shim.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var define = __webpack_require__("../../../node_modules/define-properties/index.js"); -var getPolyfill = __webpack_require__("../../../node_modules/is-nan/polyfill.js"); - -/* http://www.ecma-international.org/ecma-262/6.0/#sec-number.isnan */ - -module.exports = function shimNumberIsNaN() { - var polyfill = getPolyfill(); - define(Number, { isNaN: polyfill }, { - isNaN: function testIsNaN() { - return Number.isNaN !== polyfill; - } - }); - return polyfill; -}; - - -/***/ }), - -/***/ "../../../node_modules/is-typed-array/index.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var whichTypedArray = __webpack_require__("../../../node_modules/which-typed-array/index.js"); - -module.exports = function isTypedArray(value) { - return !!whichTypedArray(value); -}; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_DataView.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getNative = __webpack_require__("../../../node_modules/lodash/_getNative.js"), - root = __webpack_require__("../../../node_modules/lodash/_root.js"); - -/* Built-in method references that are verified to be native. */ -var DataView = getNative(root, 'DataView'); - -module.exports = DataView; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_Hash.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var hashClear = __webpack_require__("../../../node_modules/lodash/_hashClear.js"), - hashDelete = __webpack_require__("../../../node_modules/lodash/_hashDelete.js"), - hashGet = __webpack_require__("../../../node_modules/lodash/_hashGet.js"), - hashHas = __webpack_require__("../../../node_modules/lodash/_hashHas.js"), - hashSet = __webpack_require__("../../../node_modules/lodash/_hashSet.js"); - -/** - * Creates a hash object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function Hash(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -// Add methods to `Hash`. -Hash.prototype.clear = hashClear; -Hash.prototype['delete'] = hashDelete; -Hash.prototype.get = hashGet; -Hash.prototype.has = hashHas; -Hash.prototype.set = hashSet; - -module.exports = Hash; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_ListCache.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var listCacheClear = __webpack_require__("../../../node_modules/lodash/_listCacheClear.js"), - listCacheDelete = __webpack_require__("../../../node_modules/lodash/_listCacheDelete.js"), - listCacheGet = __webpack_require__("../../../node_modules/lodash/_listCacheGet.js"), - listCacheHas = __webpack_require__("../../../node_modules/lodash/_listCacheHas.js"), - listCacheSet = __webpack_require__("../../../node_modules/lodash/_listCacheSet.js"); - -/** - * Creates an list cache object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function ListCache(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -// Add methods to `ListCache`. -ListCache.prototype.clear = listCacheClear; -ListCache.prototype['delete'] = listCacheDelete; -ListCache.prototype.get = listCacheGet; -ListCache.prototype.has = listCacheHas; -ListCache.prototype.set = listCacheSet; - -module.exports = ListCache; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_Map.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getNative = __webpack_require__("../../../node_modules/lodash/_getNative.js"), - root = __webpack_require__("../../../node_modules/lodash/_root.js"); - -/* Built-in method references that are verified to be native. */ -var Map = getNative(root, 'Map'); - -module.exports = Map; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_MapCache.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var mapCacheClear = __webpack_require__("../../../node_modules/lodash/_mapCacheClear.js"), - mapCacheDelete = __webpack_require__("../../../node_modules/lodash/_mapCacheDelete.js"), - mapCacheGet = __webpack_require__("../../../node_modules/lodash/_mapCacheGet.js"), - mapCacheHas = __webpack_require__("../../../node_modules/lodash/_mapCacheHas.js"), - mapCacheSet = __webpack_require__("../../../node_modules/lodash/_mapCacheSet.js"); - -/** - * Creates a map cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function MapCache(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -// Add methods to `MapCache`. -MapCache.prototype.clear = mapCacheClear; -MapCache.prototype['delete'] = mapCacheDelete; -MapCache.prototype.get = mapCacheGet; -MapCache.prototype.has = mapCacheHas; -MapCache.prototype.set = mapCacheSet; - -module.exports = MapCache; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_Promise.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getNative = __webpack_require__("../../../node_modules/lodash/_getNative.js"), - root = __webpack_require__("../../../node_modules/lodash/_root.js"); - -/* Built-in method references that are verified to be native. */ -var Promise = getNative(root, 'Promise'); - -module.exports = Promise; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_Set.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getNative = __webpack_require__("../../../node_modules/lodash/_getNative.js"), - root = __webpack_require__("../../../node_modules/lodash/_root.js"); - -/* Built-in method references that are verified to be native. */ -var Set = getNative(root, 'Set'); - -module.exports = Set; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_SetCache.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var MapCache = __webpack_require__("../../../node_modules/lodash/_MapCache.js"), - setCacheAdd = __webpack_require__("../../../node_modules/lodash/_setCacheAdd.js"), - setCacheHas = __webpack_require__("../../../node_modules/lodash/_setCacheHas.js"); - -/** - * - * Creates an array cache object to store unique values. - * - * @private - * @constructor - * @param {Array} [values] The values to cache. - */ -function SetCache(values) { - var index = -1, - length = values == null ? 0 : values.length; - - this.__data__ = new MapCache; - while (++index < length) { - this.add(values[index]); - } -} - -// Add methods to `SetCache`. -SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; -SetCache.prototype.has = setCacheHas; - -module.exports = SetCache; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_Stack.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var ListCache = __webpack_require__("../../../node_modules/lodash/_ListCache.js"), - stackClear = __webpack_require__("../../../node_modules/lodash/_stackClear.js"), - stackDelete = __webpack_require__("../../../node_modules/lodash/_stackDelete.js"), - stackGet = __webpack_require__("../../../node_modules/lodash/_stackGet.js"), - stackHas = __webpack_require__("../../../node_modules/lodash/_stackHas.js"), - stackSet = __webpack_require__("../../../node_modules/lodash/_stackSet.js"); - -/** - * Creates a stack cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function Stack(entries) { - var data = this.__data__ = new ListCache(entries); - this.size = data.size; -} - -// Add methods to `Stack`. -Stack.prototype.clear = stackClear; -Stack.prototype['delete'] = stackDelete; -Stack.prototype.get = stackGet; -Stack.prototype.has = stackHas; -Stack.prototype.set = stackSet; - -module.exports = Stack; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_Symbol.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var root = __webpack_require__("../../../node_modules/lodash/_root.js"); - -/** Built-in value references. */ -var Symbol = root.Symbol; - -module.exports = Symbol; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_Uint8Array.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var root = __webpack_require__("../../../node_modules/lodash/_root.js"); - -/** Built-in value references. */ -var Uint8Array = root.Uint8Array; - -module.exports = Uint8Array; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_WeakMap.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getNative = __webpack_require__("../../../node_modules/lodash/_getNative.js"), - root = __webpack_require__("../../../node_modules/lodash/_root.js"); - -/* Built-in method references that are verified to be native. */ -var WeakMap = getNative(root, 'WeakMap'); - -module.exports = WeakMap; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_arrayFilter.js": -/***/ ((module) => { - -/** - * A specialized version of `_.filter` for arrays without support for - * iteratee shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} predicate The function invoked per iteration. - * @returns {Array} Returns the new filtered array. - */ -function arrayFilter(array, predicate) { - var index = -1, - length = array == null ? 0 : array.length, - resIndex = 0, - result = []; - - while (++index < length) { - var value = array[index]; - if (predicate(value, index, array)) { - result[resIndex++] = value; - } - } - return result; -} - -module.exports = arrayFilter; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_arrayLikeKeys.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseTimes = __webpack_require__("../../../node_modules/lodash/_baseTimes.js"), - isArguments = __webpack_require__("../../../node_modules/lodash/isArguments.js"), - isArray = __webpack_require__("../../../node_modules/lodash/isArray.js"), - isBuffer = __webpack_require__("../../../node_modules/lodash/isBuffer.js"), - isIndex = __webpack_require__("../../../node_modules/lodash/_isIndex.js"), - isTypedArray = __webpack_require__("../../../node_modules/lodash/isTypedArray.js"); - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * Creates an array of the enumerable property names of the array-like `value`. - * - * @private - * @param {*} value The value to query. - * @param {boolean} inherited Specify returning inherited property names. - * @returns {Array} Returns the array of property names. - */ -function arrayLikeKeys(value, inherited) { - var isArr = isArray(value), - isArg = !isArr && isArguments(value), - isBuff = !isArr && !isArg && isBuffer(value), - isType = !isArr && !isArg && !isBuff && isTypedArray(value), - skipIndexes = isArr || isArg || isBuff || isType, - result = skipIndexes ? baseTimes(value.length, String) : [], - length = result.length; - - for (var key in value) { - if ((inherited || hasOwnProperty.call(value, key)) && - !(skipIndexes && ( - // Safari 9 has enumerable `arguments.length` in strict mode. - key == 'length' || - // Node.js 0.10 has enumerable non-index properties on buffers. - (isBuff && (key == 'offset' || key == 'parent')) || - // PhantomJS 2 has enumerable non-index properties on typed arrays. - (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || - // Skip index properties. - isIndex(key, length) - ))) { - result.push(key); - } - } - return result; -} - -module.exports = arrayLikeKeys; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_arrayMap.js": -/***/ ((module) => { - -/** - * A specialized version of `_.map` for arrays without support for iteratee - * shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array} Returns the new mapped array. - */ -function arrayMap(array, iteratee) { - var index = -1, - length = array == null ? 0 : array.length, - result = Array(length); - - while (++index < length) { - result[index] = iteratee(array[index], index, array); - } - return result; -} - -module.exports = arrayMap; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_arrayPush.js": -/***/ ((module) => { - -/** - * Appends the elements of `values` to `array`. - * - * @private - * @param {Array} array The array to modify. - * @param {Array} values The values to append. - * @returns {Array} Returns `array`. - */ -function arrayPush(array, values) { - var index = -1, - length = values.length, - offset = array.length; - - while (++index < length) { - array[offset + index] = values[index]; - } - return array; -} - -module.exports = arrayPush; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_arraySome.js": -/***/ ((module) => { - -/** - * A specialized version of `_.some` for arrays without support for iteratee - * shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} predicate The function invoked per iteration. - * @returns {boolean} Returns `true` if any element passes the predicate check, - * else `false`. - */ -function arraySome(array, predicate) { - var index = -1, - length = array == null ? 0 : array.length; - - while (++index < length) { - if (predicate(array[index], index, array)) { - return true; - } - } - return false; -} - -module.exports = arraySome; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_assocIndexOf.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var eq = __webpack_require__("../../../node_modules/lodash/eq.js"); - -/** - * Gets the index at which the `key` is found in `array` of key-value pairs. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} key The key to search for. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function assocIndexOf(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; -} - -module.exports = assocIndexOf; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseAssignValue.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var defineProperty = __webpack_require__("../../../node_modules/lodash/_defineProperty.js"); - -/** - * The base implementation of `assignValue` and `assignMergeValue` without - * value checks. - * - * @private - * @param {Object} object The object to modify. - * @param {string} key The key of the property to assign. - * @param {*} value The value to assign. - */ -function baseAssignValue(object, key, value) { - if (key == '__proto__' && defineProperty) { - defineProperty(object, key, { - 'configurable': true, - 'enumerable': true, - 'value': value, - 'writable': true - }); - } else { - object[key] = value; - } -} - -module.exports = baseAssignValue; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseFor.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var createBaseFor = __webpack_require__("../../../node_modules/lodash/_createBaseFor.js"); - -/** - * The base implementation of `baseForOwn` which iterates over `object` - * properties returned by `keysFunc` and invokes `iteratee` for each property. - * Iteratee functions may exit iteration early by explicitly returning `false`. - * - * @private - * @param {Object} object The object to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @param {Function} keysFunc The function to get the keys of `object`. - * @returns {Object} Returns `object`. - */ -var baseFor = createBaseFor(); - -module.exports = baseFor; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseForOwn.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseFor = __webpack_require__("../../../node_modules/lodash/_baseFor.js"), - keys = __webpack_require__("../../../node_modules/lodash/keys.js"); - -/** - * The base implementation of `_.forOwn` without support for iteratee shorthands. - * - * @private - * @param {Object} object The object to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Object} Returns `object`. - */ -function baseForOwn(object, iteratee) { - return object && baseFor(object, iteratee, keys); -} - -module.exports = baseForOwn; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseGet.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var castPath = __webpack_require__("../../../node_modules/lodash/_castPath.js"), - toKey = __webpack_require__("../../../node_modules/lodash/_toKey.js"); - -/** - * The base implementation of `_.get` without support for default values. - * - * @private - * @param {Object} object The object to query. - * @param {Array|string} path The path of the property to get. - * @returns {*} Returns the resolved value. - */ -function baseGet(object, path) { - path = castPath(path, object); - - var index = 0, - length = path.length; - - while (object != null && index < length) { - object = object[toKey(path[index++])]; - } - return (index && index == length) ? object : undefined; -} - -module.exports = baseGet; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseGetAllKeys.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var arrayPush = __webpack_require__("../../../node_modules/lodash/_arrayPush.js"), - isArray = __webpack_require__("../../../node_modules/lodash/isArray.js"); - -/** - * The base implementation of `getAllKeys` and `getAllKeysIn` which uses - * `keysFunc` and `symbolsFunc` to get the enumerable property names and - * symbols of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {Function} keysFunc The function to get the keys of `object`. - * @param {Function} symbolsFunc The function to get the symbols of `object`. - * @returns {Array} Returns the array of property names and symbols. - */ -function baseGetAllKeys(object, keysFunc, symbolsFunc) { - var result = keysFunc(object); - return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); -} - -module.exports = baseGetAllKeys; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseGetTag.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var Symbol = __webpack_require__("../../../node_modules/lodash/_Symbol.js"), - getRawTag = __webpack_require__("../../../node_modules/lodash/_getRawTag.js"), - objectToString = __webpack_require__("../../../node_modules/lodash/_objectToString.js"); - -/** `Object#toString` result references. */ -var nullTag = '[object Null]', - undefinedTag = '[object Undefined]'; - -/** Built-in value references. */ -var symToStringTag = Symbol ? Symbol.toStringTag : undefined; - -/** - * The base implementation of `getTag` without fallbacks for buggy environments. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the `toStringTag`. - */ -function baseGetTag(value) { - if (value == null) { - return value === undefined ? undefinedTag : nullTag; - } - return (symToStringTag && symToStringTag in Object(value)) - ? getRawTag(value) - : objectToString(value); -} - -module.exports = baseGetTag; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseHasIn.js": -/***/ ((module) => { - -/** - * The base implementation of `_.hasIn` without support for deep paths. - * - * @private - * @param {Object} [object] The object to query. - * @param {Array|string} key The key to check. - * @returns {boolean} Returns `true` if `key` exists, else `false`. - */ -function baseHasIn(object, key) { - return object != null && key in Object(object); -} - -module.exports = baseHasIn; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseIsArguments.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseGetTag = __webpack_require__("../../../node_modules/lodash/_baseGetTag.js"), - isObjectLike = __webpack_require__("../../../node_modules/lodash/isObjectLike.js"); - -/** `Object#toString` result references. */ -var argsTag = '[object Arguments]'; - -/** - * The base implementation of `_.isArguments`. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an `arguments` object, - */ -function baseIsArguments(value) { - return isObjectLike(value) && baseGetTag(value) == argsTag; -} - -module.exports = baseIsArguments; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseIsEqual.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseIsEqualDeep = __webpack_require__("../../../node_modules/lodash/_baseIsEqualDeep.js"), - isObjectLike = __webpack_require__("../../../node_modules/lodash/isObjectLike.js"); - -/** - * The base implementation of `_.isEqual` which supports partial comparisons - * and tracks traversed objects. - * - * @private - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @param {boolean} bitmask The bitmask flags. - * 1 - Unordered comparison - * 2 - Partial comparison - * @param {Function} [customizer] The function to customize comparisons. - * @param {Object} [stack] Tracks traversed `value` and `other` objects. - * @returns {boolean} Returns `true` if the values are equivalent, else `false`. - */ -function baseIsEqual(value, other, bitmask, customizer, stack) { - if (value === other) { - return true; - } - if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) { - return value !== value && other !== other; - } - return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack); -} - -module.exports = baseIsEqual; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseIsEqualDeep.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var Stack = __webpack_require__("../../../node_modules/lodash/_Stack.js"), - equalArrays = __webpack_require__("../../../node_modules/lodash/_equalArrays.js"), - equalByTag = __webpack_require__("../../../node_modules/lodash/_equalByTag.js"), - equalObjects = __webpack_require__("../../../node_modules/lodash/_equalObjects.js"), - getTag = __webpack_require__("../../../node_modules/lodash/_getTag.js"), - isArray = __webpack_require__("../../../node_modules/lodash/isArray.js"), - isBuffer = __webpack_require__("../../../node_modules/lodash/isBuffer.js"), - isTypedArray = __webpack_require__("../../../node_modules/lodash/isTypedArray.js"); - -/** Used to compose bitmasks for value comparisons. */ -var COMPARE_PARTIAL_FLAG = 1; - -/** `Object#toString` result references. */ -var argsTag = '[object Arguments]', - arrayTag = '[object Array]', - objectTag = '[object Object]'; - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * A specialized version of `baseIsEqual` for arrays and objects which performs - * deep comparisons and tracks traversed objects enabling objects with circular - * references to be compared. - * - * @private - * @param {Object} object The object to compare. - * @param {Object} other The other object to compare. - * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. - * @param {Function} customizer The function to customize comparisons. - * @param {Function} equalFunc The function to determine equivalents of values. - * @param {Object} [stack] Tracks traversed `object` and `other` objects. - * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. - */ -function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { - var objIsArr = isArray(object), - othIsArr = isArray(other), - objTag = objIsArr ? arrayTag : getTag(object), - othTag = othIsArr ? arrayTag : getTag(other); - - objTag = objTag == argsTag ? objectTag : objTag; - othTag = othTag == argsTag ? objectTag : othTag; - - var objIsObj = objTag == objectTag, - othIsObj = othTag == objectTag, - isSameTag = objTag == othTag; - - if (isSameTag && isBuffer(object)) { - if (!isBuffer(other)) { - return false; - } - objIsArr = true; - objIsObj = false; - } - if (isSameTag && !objIsObj) { - stack || (stack = new Stack); - return (objIsArr || isTypedArray(object)) - ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) - : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); - } - if (!(bitmask & COMPARE_PARTIAL_FLAG)) { - var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'), - othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__'); - - if (objIsWrapped || othIsWrapped) { - var objUnwrapped = objIsWrapped ? object.value() : object, - othUnwrapped = othIsWrapped ? other.value() : other; - - stack || (stack = new Stack); - return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); - } - } - if (!isSameTag) { - return false; - } - stack || (stack = new Stack); - return equalObjects(object, other, bitmask, customizer, equalFunc, stack); -} - -module.exports = baseIsEqualDeep; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseIsMatch.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var Stack = __webpack_require__("../../../node_modules/lodash/_Stack.js"), - baseIsEqual = __webpack_require__("../../../node_modules/lodash/_baseIsEqual.js"); - -/** Used to compose bitmasks for value comparisons. */ -var COMPARE_PARTIAL_FLAG = 1, - COMPARE_UNORDERED_FLAG = 2; - -/** - * The base implementation of `_.isMatch` without support for iteratee shorthands. - * - * @private - * @param {Object} object The object to inspect. - * @param {Object} source The object of property values to match. - * @param {Array} matchData The property names, values, and compare flags to match. - * @param {Function} [customizer] The function to customize comparisons. - * @returns {boolean} Returns `true` if `object` is a match, else `false`. - */ -function baseIsMatch(object, source, matchData, customizer) { - var index = matchData.length, - length = index, - noCustomizer = !customizer; - - if (object == null) { - return !length; - } - object = Object(object); - while (index--) { - var data = matchData[index]; - if ((noCustomizer && data[2]) - ? data[1] !== object[data[0]] - : !(data[0] in object) - ) { - return false; - } - } - while (++index < length) { - data = matchData[index]; - var key = data[0], - objValue = object[key], - srcValue = data[1]; - - if (noCustomizer && data[2]) { - if (objValue === undefined && !(key in object)) { - return false; - } - } else { - var stack = new Stack; - if (customizer) { - var result = customizer(objValue, srcValue, key, object, source, stack); - } - if (!(result === undefined - ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) - : result - )) { - return false; - } - } - } - return true; -} - -module.exports = baseIsMatch; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseIsNative.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isFunction = __webpack_require__("../../../node_modules/lodash/isFunction.js"), - isMasked = __webpack_require__("../../../node_modules/lodash/_isMasked.js"), - isObject = __webpack_require__("../../../node_modules/lodash/isObject.js"), - toSource = __webpack_require__("../../../node_modules/lodash/_toSource.js"); - -/** - * Used to match `RegExp` - * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). - */ -var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; - -/** Used to detect host constructors (Safari). */ -var reIsHostCtor = /^\[object .+?Constructor\]$/; - -/** Used for built-in method references. */ -var funcProto = Function.prototype, - objectProto = Object.prototype; - -/** Used to resolve the decompiled source of functions. */ -var funcToString = funcProto.toString; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** Used to detect if a method is native. */ -var reIsNative = RegExp('^' + - funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' -); - -/** - * The base implementation of `_.isNative` without bad shim checks. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a native function, - * else `false`. - */ -function baseIsNative(value) { - if (!isObject(value) || isMasked(value)) { - return false; - } - var pattern = isFunction(value) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); -} - -module.exports = baseIsNative; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseIsTypedArray.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseGetTag = __webpack_require__("../../../node_modules/lodash/_baseGetTag.js"), - isLength = __webpack_require__("../../../node_modules/lodash/isLength.js"), - isObjectLike = __webpack_require__("../../../node_modules/lodash/isObjectLike.js"); - -/** `Object#toString` result references. */ -var argsTag = '[object Arguments]', - arrayTag = '[object Array]', - boolTag = '[object Boolean]', - dateTag = '[object Date]', - errorTag = '[object Error]', - funcTag = '[object Function]', - mapTag = '[object Map]', - numberTag = '[object Number]', - objectTag = '[object Object]', - regexpTag = '[object RegExp]', - setTag = '[object Set]', - stringTag = '[object String]', - weakMapTag = '[object WeakMap]'; - -var arrayBufferTag = '[object ArrayBuffer]', - dataViewTag = '[object DataView]', - float32Tag = '[object Float32Array]', - float64Tag = '[object Float64Array]', - int8Tag = '[object Int8Array]', - int16Tag = '[object Int16Array]', - int32Tag = '[object Int32Array]', - uint8Tag = '[object Uint8Array]', - uint8ClampedTag = '[object Uint8ClampedArray]', - uint16Tag = '[object Uint16Array]', - uint32Tag = '[object Uint32Array]'; - -/** Used to identify `toStringTag` values of typed arrays. */ -var typedArrayTags = {}; -typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = -typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = -typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = -typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = -typedArrayTags[uint32Tag] = true; -typedArrayTags[argsTag] = typedArrayTags[arrayTag] = -typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = -typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = -typedArrayTags[errorTag] = typedArrayTags[funcTag] = -typedArrayTags[mapTag] = typedArrayTags[numberTag] = -typedArrayTags[objectTag] = typedArrayTags[regexpTag] = -typedArrayTags[setTag] = typedArrayTags[stringTag] = -typedArrayTags[weakMapTag] = false; - -/** - * The base implementation of `_.isTypedArray` without Node.js optimizations. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. - */ -function baseIsTypedArray(value) { - return isObjectLike(value) && - isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; -} - -module.exports = baseIsTypedArray; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseIteratee.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseMatches = __webpack_require__("../../../node_modules/lodash/_baseMatches.js"), - baseMatchesProperty = __webpack_require__("../../../node_modules/lodash/_baseMatchesProperty.js"), - identity = __webpack_require__("../../../node_modules/lodash/identity.js"), - isArray = __webpack_require__("../../../node_modules/lodash/isArray.js"), - property = __webpack_require__("../../../node_modules/lodash/property.js"); - -/** - * The base implementation of `_.iteratee`. - * - * @private - * @param {*} [value=_.identity] The value to convert to an iteratee. - * @returns {Function} Returns the iteratee. - */ -function baseIteratee(value) { - // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9. - // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details. - if (typeof value == 'function') { - return value; - } - if (value == null) { - return identity; - } - if (typeof value == 'object') { - return isArray(value) - ? baseMatchesProperty(value[0], value[1]) - : baseMatches(value); - } - return property(value); -} - -module.exports = baseIteratee; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseKeys.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isPrototype = __webpack_require__("../../../node_modules/lodash/_isPrototype.js"), - nativeKeys = __webpack_require__("../../../node_modules/lodash/_nativeKeys.js"); - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names. - */ -function baseKeys(object) { - if (!isPrototype(object)) { - return nativeKeys(object); - } - var result = []; - for (var key in Object(object)) { - if (hasOwnProperty.call(object, key) && key != 'constructor') { - result.push(key); - } - } - return result; -} - -module.exports = baseKeys; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseMatches.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseIsMatch = __webpack_require__("../../../node_modules/lodash/_baseIsMatch.js"), - getMatchData = __webpack_require__("../../../node_modules/lodash/_getMatchData.js"), - matchesStrictComparable = __webpack_require__("../../../node_modules/lodash/_matchesStrictComparable.js"); - -/** - * The base implementation of `_.matches` which doesn't clone `source`. - * - * @private - * @param {Object} source The object of property values to match. - * @returns {Function} Returns the new spec function. - */ -function baseMatches(source) { - var matchData = getMatchData(source); - if (matchData.length == 1 && matchData[0][2]) { - return matchesStrictComparable(matchData[0][0], matchData[0][1]); - } - return function(object) { - return object === source || baseIsMatch(object, source, matchData); - }; -} - -module.exports = baseMatches; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseMatchesProperty.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseIsEqual = __webpack_require__("../../../node_modules/lodash/_baseIsEqual.js"), - get = __webpack_require__("../../../node_modules/lodash/get.js"), - hasIn = __webpack_require__("../../../node_modules/lodash/hasIn.js"), - isKey = __webpack_require__("../../../node_modules/lodash/_isKey.js"), - isStrictComparable = __webpack_require__("../../../node_modules/lodash/_isStrictComparable.js"), - matchesStrictComparable = __webpack_require__("../../../node_modules/lodash/_matchesStrictComparable.js"), - toKey = __webpack_require__("../../../node_modules/lodash/_toKey.js"); - -/** Used to compose bitmasks for value comparisons. */ -var COMPARE_PARTIAL_FLAG = 1, - COMPARE_UNORDERED_FLAG = 2; - -/** - * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`. - * - * @private - * @param {string} path The path of the property to get. - * @param {*} srcValue The value to match. - * @returns {Function} Returns the new spec function. - */ -function baseMatchesProperty(path, srcValue) { - if (isKey(path) && isStrictComparable(srcValue)) { - return matchesStrictComparable(toKey(path), srcValue); - } - return function(object) { - var objValue = get(object, path); - return (objValue === undefined && objValue === srcValue) - ? hasIn(object, path) - : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG); - }; -} - -module.exports = baseMatchesProperty; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseProperty.js": -/***/ ((module) => { - -/** - * The base implementation of `_.property` without support for deep paths. - * - * @private - * @param {string} key The key of the property to get. - * @returns {Function} Returns the new accessor function. - */ -function baseProperty(key) { - return function(object) { - return object == null ? undefined : object[key]; - }; -} - -module.exports = baseProperty; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_basePropertyDeep.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseGet = __webpack_require__("../../../node_modules/lodash/_baseGet.js"); - -/** - * A specialized version of `baseProperty` which supports deep paths. - * - * @private - * @param {Array|string} path The path of the property to get. - * @returns {Function} Returns the new accessor function. - */ -function basePropertyDeep(path) { - return function(object) { - return baseGet(object, path); - }; -} - -module.exports = basePropertyDeep; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseTimes.js": -/***/ ((module) => { - -/** - * The base implementation of `_.times` without support for iteratee shorthands - * or max array length checks. - * - * @private - * @param {number} n The number of times to invoke `iteratee`. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array} Returns the array of results. - */ -function baseTimes(n, iteratee) { - var index = -1, - result = Array(n); - - while (++index < n) { - result[index] = iteratee(index); - } - return result; -} - -module.exports = baseTimes; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseToString.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var Symbol = __webpack_require__("../../../node_modules/lodash/_Symbol.js"), - arrayMap = __webpack_require__("../../../node_modules/lodash/_arrayMap.js"), - isArray = __webpack_require__("../../../node_modules/lodash/isArray.js"), - isSymbol = __webpack_require__("../../../node_modules/lodash/isSymbol.js"); - -/** Used as references for various `Number` constants. */ -var INFINITY = 1 / 0; - -/** Used to convert symbols to primitives and strings. */ -var symbolProto = Symbol ? Symbol.prototype : undefined, - symbolToString = symbolProto ? symbolProto.toString : undefined; - -/** - * The base implementation of `_.toString` which doesn't convert nullish - * values to empty strings. - * - * @private - * @param {*} value The value to process. - * @returns {string} Returns the string. - */ -function baseToString(value) { - // Exit early for strings to avoid a performance hit in some environments. - if (typeof value == 'string') { - return value; - } - if (isArray(value)) { - // Recursively convert values (susceptible to call stack limits). - return arrayMap(value, baseToString) + ''; - } - if (isSymbol(value)) { - return symbolToString ? symbolToString.call(value) : ''; - } - var result = (value + ''); - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; -} - -module.exports = baseToString; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseUnary.js": -/***/ ((module) => { - -/** - * The base implementation of `_.unary` without support for storing metadata. - * - * @private - * @param {Function} func The function to cap arguments for. - * @returns {Function} Returns the new capped function. - */ -function baseUnary(func) { - return function(value) { - return func(value); - }; -} - -module.exports = baseUnary; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_cacheHas.js": -/***/ ((module) => { - -/** - * Checks if a `cache` value for `key` exists. - * - * @private - * @param {Object} cache The cache to query. - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function cacheHas(cache, key) { - return cache.has(key); -} - -module.exports = cacheHas; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_castPath.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isArray = __webpack_require__("../../../node_modules/lodash/isArray.js"), - isKey = __webpack_require__("../../../node_modules/lodash/_isKey.js"), - stringToPath = __webpack_require__("../../../node_modules/lodash/_stringToPath.js"), - toString = __webpack_require__("../../../node_modules/lodash/toString.js"); - -/** - * Casts `value` to a path array if it's not one. - * - * @private - * @param {*} value The value to inspect. - * @param {Object} [object] The object to query keys on. - * @returns {Array} Returns the cast property path array. - */ -function castPath(value, object) { - if (isArray(value)) { - return value; - } - return isKey(value, object) ? [value] : stringToPath(toString(value)); -} - -module.exports = castPath; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_coreJsData.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var root = __webpack_require__("../../../node_modules/lodash/_root.js"); - -/** Used to detect overreaching core-js shims. */ -var coreJsData = root['__core-js_shared__']; - -module.exports = coreJsData; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_createBaseFor.js": -/***/ ((module) => { - -/** - * Creates a base function for methods like `_.forIn` and `_.forOwn`. - * - * @private - * @param {boolean} [fromRight] Specify iterating from right to left. - * @returns {Function} Returns the new base function. - */ -function createBaseFor(fromRight) { - return function(object, iteratee, keysFunc) { - var index = -1, - iterable = Object(object), - props = keysFunc(object), - length = props.length; - - while (length--) { - var key = props[fromRight ? length : ++index]; - if (iteratee(iterable[key], key, iterable) === false) { - break; - } - } - return object; - }; -} - -module.exports = createBaseFor; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_defineProperty.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getNative = __webpack_require__("../../../node_modules/lodash/_getNative.js"); - -var defineProperty = (function() { - try { - var func = getNative(Object, 'defineProperty'); - func({}, '', {}); - return func; - } catch (e) {} -}()); - -module.exports = defineProperty; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_equalArrays.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var SetCache = __webpack_require__("../../../node_modules/lodash/_SetCache.js"), - arraySome = __webpack_require__("../../../node_modules/lodash/_arraySome.js"), - cacheHas = __webpack_require__("../../../node_modules/lodash/_cacheHas.js"); - -/** Used to compose bitmasks for value comparisons. */ -var COMPARE_PARTIAL_FLAG = 1, - COMPARE_UNORDERED_FLAG = 2; - -/** - * A specialized version of `baseIsEqualDeep` for arrays with support for - * partial deep comparisons. - * - * @private - * @param {Array} array The array to compare. - * @param {Array} other The other array to compare. - * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. - * @param {Function} customizer The function to customize comparisons. - * @param {Function} equalFunc The function to determine equivalents of values. - * @param {Object} stack Tracks traversed `array` and `other` objects. - * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`. - */ -function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { - var isPartial = bitmask & COMPARE_PARTIAL_FLAG, - arrLength = array.length, - othLength = other.length; - - if (arrLength != othLength && !(isPartial && othLength > arrLength)) { - return false; - } - // Check that cyclic values are equal. - var arrStacked = stack.get(array); - var othStacked = stack.get(other); - if (arrStacked && othStacked) { - return arrStacked == other && othStacked == array; - } - var index = -1, - result = true, - seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined; - - stack.set(array, other); - stack.set(other, array); - - // Ignore non-index properties. - while (++index < arrLength) { - var arrValue = array[index], - othValue = other[index]; - - if (customizer) { - var compared = isPartial - ? customizer(othValue, arrValue, index, other, array, stack) - : customizer(arrValue, othValue, index, array, other, stack); - } - if (compared !== undefined) { - if (compared) { - continue; - } - result = false; - break; - } - // Recursively compare arrays (susceptible to call stack limits). - if (seen) { - if (!arraySome(other, function(othValue, othIndex) { - if (!cacheHas(seen, othIndex) && - (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { - return seen.push(othIndex); - } - })) { - result = false; - break; - } - } else if (!( - arrValue === othValue || - equalFunc(arrValue, othValue, bitmask, customizer, stack) - )) { - result = false; - break; - } - } - stack['delete'](array); - stack['delete'](other); - return result; -} - -module.exports = equalArrays; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_equalByTag.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var Symbol = __webpack_require__("../../../node_modules/lodash/_Symbol.js"), - Uint8Array = __webpack_require__("../../../node_modules/lodash/_Uint8Array.js"), - eq = __webpack_require__("../../../node_modules/lodash/eq.js"), - equalArrays = __webpack_require__("../../../node_modules/lodash/_equalArrays.js"), - mapToArray = __webpack_require__("../../../node_modules/lodash/_mapToArray.js"), - setToArray = __webpack_require__("../../../node_modules/lodash/_setToArray.js"); - -/** Used to compose bitmasks for value comparisons. */ -var COMPARE_PARTIAL_FLAG = 1, - COMPARE_UNORDERED_FLAG = 2; - -/** `Object#toString` result references. */ -var boolTag = '[object Boolean]', - dateTag = '[object Date]', - errorTag = '[object Error]', - mapTag = '[object Map]', - numberTag = '[object Number]', - regexpTag = '[object RegExp]', - setTag = '[object Set]', - stringTag = '[object String]', - symbolTag = '[object Symbol]'; - -var arrayBufferTag = '[object ArrayBuffer]', - dataViewTag = '[object DataView]'; - -/** Used to convert symbols to primitives and strings. */ -var symbolProto = Symbol ? Symbol.prototype : undefined, - symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; - -/** - * A specialized version of `baseIsEqualDeep` for comparing objects of - * the same `toStringTag`. - * - * **Note:** This function only supports comparing values with tags of - * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`. - * - * @private - * @param {Object} object The object to compare. - * @param {Object} other The other object to compare. - * @param {string} tag The `toStringTag` of the objects to compare. - * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. - * @param {Function} customizer The function to customize comparisons. - * @param {Function} equalFunc The function to determine equivalents of values. - * @param {Object} stack Tracks traversed `object` and `other` objects. - * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. - */ -function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { - switch (tag) { - case dataViewTag: - if ((object.byteLength != other.byteLength) || - (object.byteOffset != other.byteOffset)) { - return false; - } - object = object.buffer; - other = other.buffer; - - case arrayBufferTag: - if ((object.byteLength != other.byteLength) || - !equalFunc(new Uint8Array(object), new Uint8Array(other))) { - return false; - } - return true; - - case boolTag: - case dateTag: - case numberTag: - // Coerce booleans to `1` or `0` and dates to milliseconds. - // Invalid dates are coerced to `NaN`. - return eq(+object, +other); - - case errorTag: - return object.name == other.name && object.message == other.message; - - case regexpTag: - case stringTag: - // Coerce regexes to strings and treat strings, primitives and objects, - // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring - // for more details. - return object == (other + ''); - - case mapTag: - var convert = mapToArray; - - case setTag: - var isPartial = bitmask & COMPARE_PARTIAL_FLAG; - convert || (convert = setToArray); - - if (object.size != other.size && !isPartial) { - return false; - } - // Assume cyclic values are equal. - var stacked = stack.get(object); - if (stacked) { - return stacked == other; - } - bitmask |= COMPARE_UNORDERED_FLAG; - - // Recursively compare objects (susceptible to call stack limits). - stack.set(object, other); - var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); - stack['delete'](object); - return result; - - case symbolTag: - if (symbolValueOf) { - return symbolValueOf.call(object) == symbolValueOf.call(other); - } - } - return false; -} - -module.exports = equalByTag; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_equalObjects.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getAllKeys = __webpack_require__("../../../node_modules/lodash/_getAllKeys.js"); - -/** Used to compose bitmasks for value comparisons. */ -var COMPARE_PARTIAL_FLAG = 1; - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * A specialized version of `baseIsEqualDeep` for objects with support for - * partial deep comparisons. - * - * @private - * @param {Object} object The object to compare. - * @param {Object} other The other object to compare. - * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. - * @param {Function} customizer The function to customize comparisons. - * @param {Function} equalFunc The function to determine equivalents of values. - * @param {Object} stack Tracks traversed `object` and `other` objects. - * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. - */ -function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { - var isPartial = bitmask & COMPARE_PARTIAL_FLAG, - objProps = getAllKeys(object), - objLength = objProps.length, - othProps = getAllKeys(other), - othLength = othProps.length; - - if (objLength != othLength && !isPartial) { - return false; - } - var index = objLength; - while (index--) { - var key = objProps[index]; - if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) { - return false; - } - } - // Check that cyclic values are equal. - var objStacked = stack.get(object); - var othStacked = stack.get(other); - if (objStacked && othStacked) { - return objStacked == other && othStacked == object; - } - var result = true; - stack.set(object, other); - stack.set(other, object); - - var skipCtor = isPartial; - while (++index < objLength) { - key = objProps[index]; - var objValue = object[key], - othValue = other[key]; - - if (customizer) { - var compared = isPartial - ? customizer(othValue, objValue, key, other, object, stack) - : customizer(objValue, othValue, key, object, other, stack); - } - // Recursively compare objects (susceptible to call stack limits). - if (!(compared === undefined - ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack)) - : compared - )) { - result = false; - break; - } - skipCtor || (skipCtor = key == 'constructor'); - } - if (result && !skipCtor) { - var objCtor = object.constructor, - othCtor = other.constructor; - - // Non `Object` object instances with different constructors are not equal. - if (objCtor != othCtor && - ('constructor' in object && 'constructor' in other) && - !(typeof objCtor == 'function' && objCtor instanceof objCtor && - typeof othCtor == 'function' && othCtor instanceof othCtor)) { - result = false; - } - } - stack['delete'](object); - stack['delete'](other); - return result; -} - -module.exports = equalObjects; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_freeGlobal.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -/** Detect free variable `global` from Node.js. */ -var freeGlobal = typeof __webpack_require__.g == 'object' && __webpack_require__.g && __webpack_require__.g.Object === Object && __webpack_require__.g; - -module.exports = freeGlobal; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_getAllKeys.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseGetAllKeys = __webpack_require__("../../../node_modules/lodash/_baseGetAllKeys.js"), - getSymbols = __webpack_require__("../../../node_modules/lodash/_getSymbols.js"), - keys = __webpack_require__("../../../node_modules/lodash/keys.js"); - -/** - * Creates an array of own enumerable property names and symbols of `object`. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names and symbols. - */ -function getAllKeys(object) { - return baseGetAllKeys(object, keys, getSymbols); -} - -module.exports = getAllKeys; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_getMapData.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isKeyable = __webpack_require__("../../../node_modules/lodash/_isKeyable.js"); - -/** - * Gets the data for `map`. - * - * @private - * @param {Object} map The map to query. - * @param {string} key The reference key. - * @returns {*} Returns the map data. - */ -function getMapData(map, key) { - var data = map.__data__; - return isKeyable(key) - ? data[typeof key == 'string' ? 'string' : 'hash'] - : data.map; -} - -module.exports = getMapData; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_getMatchData.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isStrictComparable = __webpack_require__("../../../node_modules/lodash/_isStrictComparable.js"), - keys = __webpack_require__("../../../node_modules/lodash/keys.js"); - -/** - * Gets the property names, values, and compare flags of `object`. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the match data of `object`. - */ -function getMatchData(object) { - var result = keys(object), - length = result.length; - - while (length--) { - var key = result[length], - value = object[key]; - - result[length] = [key, value, isStrictComparable(value)]; - } - return result; -} - -module.exports = getMatchData; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_getNative.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseIsNative = __webpack_require__("../../../node_modules/lodash/_baseIsNative.js"), - getValue = __webpack_require__("../../../node_modules/lodash/_getValue.js"); - -/** - * Gets the native function at `key` of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the method to get. - * @returns {*} Returns the function if it's native, else `undefined`. - */ -function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined; -} - -module.exports = getNative; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_getRawTag.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var Symbol = __webpack_require__("../../../node_modules/lodash/_Symbol.js"); - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ -var nativeObjectToString = objectProto.toString; - -/** Built-in value references. */ -var symToStringTag = Symbol ? Symbol.toStringTag : undefined; - -/** - * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the raw `toStringTag`. - */ -function getRawTag(value) { - var isOwn = hasOwnProperty.call(value, symToStringTag), - tag = value[symToStringTag]; - - try { - value[symToStringTag] = undefined; - var unmasked = true; - } catch (e) {} - - var result = nativeObjectToString.call(value); - if (unmasked) { - if (isOwn) { - value[symToStringTag] = tag; - } else { - delete value[symToStringTag]; - } - } - return result; -} - -module.exports = getRawTag; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_getSymbols.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var arrayFilter = __webpack_require__("../../../node_modules/lodash/_arrayFilter.js"), - stubArray = __webpack_require__("../../../node_modules/lodash/stubArray.js"); - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** Built-in value references. */ -var propertyIsEnumerable = objectProto.propertyIsEnumerable; - -/* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeGetSymbols = Object.getOwnPropertySymbols; - -/** - * Creates an array of the own enumerable symbols of `object`. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of symbols. - */ -var getSymbols = !nativeGetSymbols ? stubArray : function(object) { - if (object == null) { - return []; - } - object = Object(object); - return arrayFilter(nativeGetSymbols(object), function(symbol) { - return propertyIsEnumerable.call(object, symbol); - }); -}; - -module.exports = getSymbols; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_getTag.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var DataView = __webpack_require__("../../../node_modules/lodash/_DataView.js"), - Map = __webpack_require__("../../../node_modules/lodash/_Map.js"), - Promise = __webpack_require__("../../../node_modules/lodash/_Promise.js"), - Set = __webpack_require__("../../../node_modules/lodash/_Set.js"), - WeakMap = __webpack_require__("../../../node_modules/lodash/_WeakMap.js"), - baseGetTag = __webpack_require__("../../../node_modules/lodash/_baseGetTag.js"), - toSource = __webpack_require__("../../../node_modules/lodash/_toSource.js"); - -/** `Object#toString` result references. */ -var mapTag = '[object Map]', - objectTag = '[object Object]', - promiseTag = '[object Promise]', - setTag = '[object Set]', - weakMapTag = '[object WeakMap]'; - -var dataViewTag = '[object DataView]'; - -/** Used to detect maps, sets, and weakmaps. */ -var dataViewCtorString = toSource(DataView), - mapCtorString = toSource(Map), - promiseCtorString = toSource(Promise), - setCtorString = toSource(Set), - weakMapCtorString = toSource(WeakMap); - -/** - * Gets the `toStringTag` of `value`. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the `toStringTag`. - */ -var getTag = baseGetTag; - -// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6. -if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) || - (Map && getTag(new Map) != mapTag) || - (Promise && getTag(Promise.resolve()) != promiseTag) || - (Set && getTag(new Set) != setTag) || - (WeakMap && getTag(new WeakMap) != weakMapTag)) { - getTag = function(value) { - var result = baseGetTag(value), - Ctor = result == objectTag ? value.constructor : undefined, - ctorString = Ctor ? toSource(Ctor) : ''; - - if (ctorString) { - switch (ctorString) { - case dataViewCtorString: return dataViewTag; - case mapCtorString: return mapTag; - case promiseCtorString: return promiseTag; - case setCtorString: return setTag; - case weakMapCtorString: return weakMapTag; - } - } - return result; - }; -} - -module.exports = getTag; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_getValue.js": -/***/ ((module) => { - -/** - * Gets the value at `key` of `object`. - * - * @private - * @param {Object} [object] The object to query. - * @param {string} key The key of the property to get. - * @returns {*} Returns the property value. - */ -function getValue(object, key) { - return object == null ? undefined : object[key]; -} - -module.exports = getValue; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_hasPath.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var castPath = __webpack_require__("../../../node_modules/lodash/_castPath.js"), - isArguments = __webpack_require__("../../../node_modules/lodash/isArguments.js"), - isArray = __webpack_require__("../../../node_modules/lodash/isArray.js"), - isIndex = __webpack_require__("../../../node_modules/lodash/_isIndex.js"), - isLength = __webpack_require__("../../../node_modules/lodash/isLength.js"), - toKey = __webpack_require__("../../../node_modules/lodash/_toKey.js"); - -/** - * Checks if `path` exists on `object`. - * - * @private - * @param {Object} object The object to query. - * @param {Array|string} path The path to check. - * @param {Function} hasFunc The function to check properties. - * @returns {boolean} Returns `true` if `path` exists, else `false`. - */ -function hasPath(object, path, hasFunc) { - path = castPath(path, object); - - var index = -1, - length = path.length, - result = false; - - while (++index < length) { - var key = toKey(path[index]); - if (!(result = object != null && hasFunc(object, key))) { - break; - } - object = object[key]; - } - if (result || ++index != length) { - return result; - } - length = object == null ? 0 : object.length; - return !!length && isLength(length) && isIndex(key, length) && - (isArray(object) || isArguments(object)); -} - -module.exports = hasPath; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_hashClear.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var nativeCreate = __webpack_require__("../../../node_modules/lodash/_nativeCreate.js"); - -/** - * Removes all key-value entries from the hash. - * - * @private - * @name clear - * @memberOf Hash - */ -function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; - this.size = 0; -} - -module.exports = hashClear; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_hashDelete.js": -/***/ ((module) => { - -/** - * Removes `key` and its value from the hash. - * - * @private - * @name delete - * @memberOf Hash - * @param {Object} hash The hash to modify. - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function hashDelete(key) { - var result = this.has(key) && delete this.__data__[key]; - this.size -= result ? 1 : 0; - return result; -} - -module.exports = hashDelete; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_hashGet.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var nativeCreate = __webpack_require__("../../../node_modules/lodash/_nativeCreate.js"); - -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED = '__lodash_hash_undefined__'; - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * Gets the hash value for `key`. - * - * @private - * @name get - * @memberOf Hash - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result = data[key]; - return result === HASH_UNDEFINED ? undefined : result; - } - return hasOwnProperty.call(data, key) ? data[key] : undefined; -} - -module.exports = hashGet; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_hashHas.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var nativeCreate = __webpack_require__("../../../node_modules/lodash/_nativeCreate.js"); - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * Checks if a hash value for `key` exists. - * - * @private - * @name has - * @memberOf Hash - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function hashHas(key) { - var data = this.__data__; - return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); -} - -module.exports = hashHas; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_hashSet.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var nativeCreate = __webpack_require__("../../../node_modules/lodash/_nativeCreate.js"); - -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED = '__lodash_hash_undefined__'; - -/** - * Sets the hash `key` to `value`. - * - * @private - * @name set - * @memberOf Hash - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the hash instance. - */ -function hashSet(key, value) { - var data = this.__data__; - this.size += this.has(key) ? 0 : 1; - data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; - return this; -} - -module.exports = hashSet; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_isIndex.js": -/***/ ((module) => { - -/** Used as references for various `Number` constants. */ -var MAX_SAFE_INTEGER = 9007199254740991; - -/** Used to detect unsigned integer values. */ -var reIsUint = /^(?:0|[1-9]\d*)$/; - -/** - * Checks if `value` is a valid array-like index. - * - * @private - * @param {*} value The value to check. - * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. - * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. - */ -function isIndex(value, length) { - var type = typeof value; - length = length == null ? MAX_SAFE_INTEGER : length; - - return !!length && - (type == 'number' || - (type != 'symbol' && reIsUint.test(value))) && - (value > -1 && value % 1 == 0 && value < length); -} - -module.exports = isIndex; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_isKey.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isArray = __webpack_require__("../../../node_modules/lodash/isArray.js"), - isSymbol = __webpack_require__("../../../node_modules/lodash/isSymbol.js"); - -/** Used to match property names within property paths. */ -var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, - reIsPlainProp = /^\w*$/; - -/** - * Checks if `value` is a property name and not a property path. - * - * @private - * @param {*} value The value to check. - * @param {Object} [object] The object to query keys on. - * @returns {boolean} Returns `true` if `value` is a property name, else `false`. - */ -function isKey(value, object) { - if (isArray(value)) { - return false; - } - var type = typeof value; - if (type == 'number' || type == 'symbol' || type == 'boolean' || - value == null || isSymbol(value)) { - return true; - } - return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || - (object != null && value in Object(object)); -} - -module.exports = isKey; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_isKeyable.js": -/***/ ((module) => { - -/** - * Checks if `value` is suitable for use as unique object key. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is suitable, else `false`. - */ -function isKeyable(value) { - var type = typeof value; - return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') - ? (value !== '__proto__') - : (value === null); -} - -module.exports = isKeyable; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_isMasked.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var coreJsData = __webpack_require__("../../../node_modules/lodash/_coreJsData.js"); - -/** Used to detect methods masquerading as native. */ -var maskSrcKey = (function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); - return uid ? ('Symbol(src)_1.' + uid) : ''; -}()); - -/** - * Checks if `func` has its source masked. - * - * @private - * @param {Function} func The function to check. - * @returns {boolean} Returns `true` if `func` is masked, else `false`. - */ -function isMasked(func) { - return !!maskSrcKey && (maskSrcKey in func); -} - -module.exports = isMasked; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_isPrototype.js": -/***/ ((module) => { - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** - * Checks if `value` is likely a prototype object. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a prototype, else `false`. - */ -function isPrototype(value) { - var Ctor = value && value.constructor, - proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; - - return value === proto; -} - -module.exports = isPrototype; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_isStrictComparable.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isObject = __webpack_require__("../../../node_modules/lodash/isObject.js"); - -/** - * Checks if `value` is suitable for strict equality comparisons, i.e. `===`. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` if suitable for strict - * equality comparisons, else `false`. - */ -function isStrictComparable(value) { - return value === value && !isObject(value); -} - -module.exports = isStrictComparable; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_listCacheClear.js": -/***/ ((module) => { - -/** - * Removes all key-value entries from the list cache. - * - * @private - * @name clear - * @memberOf ListCache - */ -function listCacheClear() { - this.__data__ = []; - this.size = 0; -} - -module.exports = listCacheClear; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_listCacheDelete.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var assocIndexOf = __webpack_require__("../../../node_modules/lodash/_assocIndexOf.js"); - -/** Used for built-in method references. */ -var arrayProto = Array.prototype; - -/** Built-in value references. */ -var splice = arrayProto.splice; - -/** - * Removes `key` and its value from the list cache. - * - * @private - * @name delete - * @memberOf ListCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function listCacheDelete(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - --this.size; - return true; -} - -module.exports = listCacheDelete; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_listCacheGet.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var assocIndexOf = __webpack_require__("../../../node_modules/lodash/_assocIndexOf.js"); - -/** - * Gets the list cache value for `key`. - * - * @private - * @name get - * @memberOf ListCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function listCacheGet(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - - return index < 0 ? undefined : data[index][1]; -} - -module.exports = listCacheGet; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_listCacheHas.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var assocIndexOf = __webpack_require__("../../../node_modules/lodash/_assocIndexOf.js"); - -/** - * Checks if a list cache value for `key` exists. - * - * @private - * @name has - * @memberOf ListCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; -} - -module.exports = listCacheHas; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_listCacheSet.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var assocIndexOf = __webpack_require__("../../../node_modules/lodash/_assocIndexOf.js"); - -/** - * Sets the list cache `key` to `value`. - * - * @private - * @name set - * @memberOf ListCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the list cache instance. - */ -function listCacheSet(key, value) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - ++this.size; - data.push([key, value]); - } else { - data[index][1] = value; - } - return this; -} - -module.exports = listCacheSet; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_mapCacheClear.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var Hash = __webpack_require__("../../../node_modules/lodash/_Hash.js"), - ListCache = __webpack_require__("../../../node_modules/lodash/_ListCache.js"), - Map = __webpack_require__("../../../node_modules/lodash/_Map.js"); - -/** - * Removes all key-value entries from the map. - * - * @private - * @name clear - * @memberOf MapCache - */ -function mapCacheClear() { - this.size = 0; - this.__data__ = { - 'hash': new Hash, - 'map': new (Map || ListCache), - 'string': new Hash - }; -} - -module.exports = mapCacheClear; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_mapCacheDelete.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getMapData = __webpack_require__("../../../node_modules/lodash/_getMapData.js"); - -/** - * Removes `key` and its value from the map. - * - * @private - * @name delete - * @memberOf MapCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function mapCacheDelete(key) { - var result = getMapData(this, key)['delete'](key); - this.size -= result ? 1 : 0; - return result; -} - -module.exports = mapCacheDelete; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_mapCacheGet.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getMapData = __webpack_require__("../../../node_modules/lodash/_getMapData.js"); - -/** - * Gets the map value for `key`. - * - * @private - * @name get - * @memberOf MapCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function mapCacheGet(key) { - return getMapData(this, key).get(key); -} - -module.exports = mapCacheGet; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_mapCacheHas.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getMapData = __webpack_require__("../../../node_modules/lodash/_getMapData.js"); - -/** - * Checks if a map value for `key` exists. - * - * @private - * @name has - * @memberOf MapCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function mapCacheHas(key) { - return getMapData(this, key).has(key); -} - -module.exports = mapCacheHas; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_mapCacheSet.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getMapData = __webpack_require__("../../../node_modules/lodash/_getMapData.js"); - -/** - * Sets the map `key` to `value`. - * - * @private - * @name set - * @memberOf MapCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the map cache instance. - */ -function mapCacheSet(key, value) { - var data = getMapData(this, key), - size = data.size; - - data.set(key, value); - this.size += data.size == size ? 0 : 1; - return this; -} - -module.exports = mapCacheSet; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_mapToArray.js": -/***/ ((module) => { - -/** - * Converts `map` to its key-value pairs. - * - * @private - * @param {Object} map The map to convert. - * @returns {Array} Returns the key-value pairs. - */ -function mapToArray(map) { - var index = -1, - result = Array(map.size); - - map.forEach(function(value, key) { - result[++index] = [key, value]; - }); - return result; -} - -module.exports = mapToArray; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_matchesStrictComparable.js": -/***/ ((module) => { - -/** - * A specialized version of `matchesProperty` for source values suitable - * for strict equality comparisons, i.e. `===`. - * - * @private - * @param {string} key The key of the property to get. - * @param {*} srcValue The value to match. - * @returns {Function} Returns the new spec function. - */ -function matchesStrictComparable(key, srcValue) { - return function(object) { - if (object == null) { - return false; - } - return object[key] === srcValue && - (srcValue !== undefined || (key in Object(object))); - }; -} - -module.exports = matchesStrictComparable; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_memoizeCapped.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var memoize = __webpack_require__("../../../node_modules/lodash/memoize.js"); - -/** Used as the maximum memoize cache size. */ -var MAX_MEMOIZE_SIZE = 500; - -/** - * A specialized version of `_.memoize` which clears the memoized function's - * cache when it exceeds `MAX_MEMOIZE_SIZE`. - * - * @private - * @param {Function} func The function to have its output memoized. - * @returns {Function} Returns the new memoized function. - */ -function memoizeCapped(func) { - var result = memoize(func, function(key) { - if (cache.size === MAX_MEMOIZE_SIZE) { - cache.clear(); - } - return key; - }); - - var cache = result.cache; - return result; -} - -module.exports = memoizeCapped; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_nativeCreate.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getNative = __webpack_require__("../../../node_modules/lodash/_getNative.js"); - -/* Built-in method references that are verified to be native. */ -var nativeCreate = getNative(Object, 'create'); - -module.exports = nativeCreate; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_nativeKeys.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var overArg = __webpack_require__("../../../node_modules/lodash/_overArg.js"); - -/* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeKeys = overArg(Object.keys, Object); - -module.exports = nativeKeys; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_nodeUtil.js": -/***/ ((module, exports, __webpack_require__) => { - -/* module decorator */ module = __webpack_require__.nmd(module); -var freeGlobal = __webpack_require__("../../../node_modules/lodash/_freeGlobal.js"); - -/** Detect free variable `exports`. */ -var freeExports = true && exports && !exports.nodeType && exports; - -/** Detect free variable `module`. */ -var freeModule = freeExports && "object" == 'object' && module && !module.nodeType && module; - -/** Detect the popular CommonJS extension `module.exports`. */ -var moduleExports = freeModule && freeModule.exports === freeExports; - -/** Detect free variable `process` from Node.js. */ -var freeProcess = moduleExports && freeGlobal.process; - -/** Used to access faster Node.js helpers. */ -var nodeUtil = (function() { - try { - // Use `util.types` for Node.js 10+. - var types = freeModule && freeModule.require && freeModule.require('util').types; - - if (types) { - return types; - } - - // Legacy `process.binding('util')` for Node.js < 10. - return freeProcess && freeProcess.binding && freeProcess.binding('util'); - } catch (e) {} -}()); - -module.exports = nodeUtil; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_objectToString.js": -/***/ ((module) => { - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ -var nativeObjectToString = objectProto.toString; - -/** - * Converts `value` to a string using `Object.prototype.toString`. - * - * @private - * @param {*} value The value to convert. - * @returns {string} Returns the converted string. - */ -function objectToString(value) { - return nativeObjectToString.call(value); -} - -module.exports = objectToString; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_overArg.js": -/***/ ((module) => { - -/** - * Creates a unary function that invokes `func` with its argument transformed. - * - * @private - * @param {Function} func The function to wrap. - * @param {Function} transform The argument transform. - * @returns {Function} Returns the new function. - */ -function overArg(func, transform) { - return function(arg) { - return func(transform(arg)); - }; -} - -module.exports = overArg; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_root.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var freeGlobal = __webpack_require__("../../../node_modules/lodash/_freeGlobal.js"); - -/** Detect free variable `self`. */ -var freeSelf = typeof self == 'object' && self && self.Object === Object && self; - -/** Used as a reference to the global object. */ -var root = freeGlobal || freeSelf || Function('return this')(); - -module.exports = root; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_setCacheAdd.js": -/***/ ((module) => { - -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED = '__lodash_hash_undefined__'; - -/** - * Adds `value` to the array cache. - * - * @private - * @name add - * @memberOf SetCache - * @alias push - * @param {*} value The value to cache. - * @returns {Object} Returns the cache instance. - */ -function setCacheAdd(value) { - this.__data__.set(value, HASH_UNDEFINED); - return this; -} - -module.exports = setCacheAdd; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_setCacheHas.js": -/***/ ((module) => { - -/** - * Checks if `value` is in the array cache. - * - * @private - * @name has - * @memberOf SetCache - * @param {*} value The value to search for. - * @returns {number} Returns `true` if `value` is found, else `false`. - */ -function setCacheHas(value) { - return this.__data__.has(value); -} - -module.exports = setCacheHas; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_setToArray.js": -/***/ ((module) => { - -/** - * Converts `set` to an array of its values. - * - * @private - * @param {Object} set The set to convert. - * @returns {Array} Returns the values. - */ -function setToArray(set) { - var index = -1, - result = Array(set.size); - - set.forEach(function(value) { - result[++index] = value; - }); - return result; -} - -module.exports = setToArray; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_stackClear.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var ListCache = __webpack_require__("../../../node_modules/lodash/_ListCache.js"); - -/** - * Removes all key-value entries from the stack. - * - * @private - * @name clear - * @memberOf Stack - */ -function stackClear() { - this.__data__ = new ListCache; - this.size = 0; -} - -module.exports = stackClear; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_stackDelete.js": -/***/ ((module) => { - -/** - * Removes `key` and its value from the stack. - * - * @private - * @name delete - * @memberOf Stack - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function stackDelete(key) { - var data = this.__data__, - result = data['delete'](key); - - this.size = data.size; - return result; -} - -module.exports = stackDelete; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_stackGet.js": -/***/ ((module) => { - -/** - * Gets the stack value for `key`. - * - * @private - * @name get - * @memberOf Stack - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function stackGet(key) { - return this.__data__.get(key); -} - -module.exports = stackGet; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_stackHas.js": -/***/ ((module) => { - -/** - * Checks if a stack value for `key` exists. - * - * @private - * @name has - * @memberOf Stack - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function stackHas(key) { - return this.__data__.has(key); -} - -module.exports = stackHas; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_stackSet.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var ListCache = __webpack_require__("../../../node_modules/lodash/_ListCache.js"), - Map = __webpack_require__("../../../node_modules/lodash/_Map.js"), - MapCache = __webpack_require__("../../../node_modules/lodash/_MapCache.js"); - -/** Used as the size to enable large array optimizations. */ -var LARGE_ARRAY_SIZE = 200; - -/** - * Sets the stack `key` to `value`. - * - * @private - * @name set - * @memberOf Stack - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the stack cache instance. - */ -function stackSet(key, value) { - var data = this.__data__; - if (data instanceof ListCache) { - var pairs = data.__data__; - if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { - pairs.push([key, value]); - this.size = ++data.size; - return this; - } - data = this.__data__ = new MapCache(pairs); - } - data.set(key, value); - this.size = data.size; - return this; -} - -module.exports = stackSet; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_stringToPath.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var memoizeCapped = __webpack_require__("../../../node_modules/lodash/_memoizeCapped.js"); - -/** Used to match property names within property paths. */ -var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; - -/** Used to match backslashes in property paths. */ -var reEscapeChar = /\\(\\)?/g; - -/** - * Converts `string` to a property path array. - * - * @private - * @param {string} string The string to convert. - * @returns {Array} Returns the property path array. - */ -var stringToPath = memoizeCapped(function(string) { - var result = []; - if (string.charCodeAt(0) === 46 /* . */) { - result.push(''); - } - string.replace(rePropName, function(match, number, quote, subString) { - result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match)); - }); - return result; -}); - -module.exports = stringToPath; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_toKey.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isSymbol = __webpack_require__("../../../node_modules/lodash/isSymbol.js"); - -/** Used as references for various `Number` constants. */ -var INFINITY = 1 / 0; - -/** - * Converts `value` to a string key if it's not a string or symbol. - * - * @private - * @param {*} value The value to inspect. - * @returns {string|symbol} Returns the key. - */ -function toKey(value) { - if (typeof value == 'string' || isSymbol(value)) { - return value; - } - var result = (value + ''); - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; -} - -module.exports = toKey; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_toSource.js": -/***/ ((module) => { - -/** Used for built-in method references. */ -var funcProto = Function.prototype; - -/** Used to resolve the decompiled source of functions. */ -var funcToString = funcProto.toString; - -/** - * Converts `func` to its source code. - * - * @private - * @param {Function} func The function to convert. - * @returns {string} Returns the source code. - */ -function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e) {} - try { - return (func + ''); - } catch (e) {} - } - return ''; -} - -module.exports = toSource; - - -/***/ }), - -/***/ "../../../node_modules/lodash/eq.js": -/***/ ((module) => { - -/** - * Performs a - * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * comparison between two values to determine if they are equivalent. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @returns {boolean} Returns `true` if the values are equivalent, else `false`. - * @example - * - * var object = { 'a': 1 }; - * var other = { 'a': 1 }; - * - * _.eq(object, object); - * // => true - * - * _.eq(object, other); - * // => false - * - * _.eq('a', 'a'); - * // => true - * - * _.eq('a', Object('a')); - * // => false - * - * _.eq(NaN, NaN); - * // => true - */ -function eq(value, other) { - return value === other || (value !== value && other !== other); -} - -module.exports = eq; - - -/***/ }), - -/***/ "../../../node_modules/lodash/get.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseGet = __webpack_require__("../../../node_modules/lodash/_baseGet.js"); - -/** - * Gets the value at `path` of `object`. If the resolved value is - * `undefined`, the `defaultValue` is returned in its place. - * - * @static - * @memberOf _ - * @since 3.7.0 - * @category Object - * @param {Object} object The object to query. - * @param {Array|string} path The path of the property to get. - * @param {*} [defaultValue] The value returned for `undefined` resolved values. - * @returns {*} Returns the resolved value. - * @example - * - * var object = { 'a': [{ 'b': { 'c': 3 } }] }; - * - * _.get(object, 'a[0].b.c'); - * // => 3 - * - * _.get(object, ['a', '0', 'b', 'c']); - * // => 3 - * - * _.get(object, 'a.b.c', 'default'); - * // => 'default' - */ -function get(object, path, defaultValue) { - var result = object == null ? undefined : baseGet(object, path); - return result === undefined ? defaultValue : result; -} - -module.exports = get; - - -/***/ }), - -/***/ "../../../node_modules/lodash/hasIn.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseHasIn = __webpack_require__("../../../node_modules/lodash/_baseHasIn.js"), - hasPath = __webpack_require__("../../../node_modules/lodash/_hasPath.js"); - -/** - * Checks if `path` is a direct or inherited property of `object`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Object - * @param {Object} object The object to query. - * @param {Array|string} path The path to check. - * @returns {boolean} Returns `true` if `path` exists, else `false`. - * @example - * - * var object = _.create({ 'a': _.create({ 'b': 2 }) }); - * - * _.hasIn(object, 'a'); - * // => true - * - * _.hasIn(object, 'a.b'); - * // => true - * - * _.hasIn(object, ['a', 'b']); - * // => true - * - * _.hasIn(object, 'b'); - * // => false - */ -function hasIn(object, path) { - return object != null && hasPath(object, path, baseHasIn); -} - -module.exports = hasIn; - - -/***/ }), - -/***/ "../../../node_modules/lodash/identity.js": -/***/ ((module) => { - -/** - * This method returns the first argument it receives. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Util - * @param {*} value Any value. - * @returns {*} Returns `value`. - * @example - * - * var object = { 'a': 1 }; - * - * console.log(_.identity(object) === object); - * // => true - */ -function identity(value) { - return value; -} - -module.exports = identity; - - -/***/ }), - -/***/ "../../../node_modules/lodash/isArguments.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseIsArguments = __webpack_require__("../../../node_modules/lodash/_baseIsArguments.js"), - isObjectLike = __webpack_require__("../../../node_modules/lodash/isObjectLike.js"); - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** Built-in value references. */ -var propertyIsEnumerable = objectProto.propertyIsEnumerable; - -/** - * Checks if `value` is likely an `arguments` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an `arguments` object, - * else `false`. - * @example - * - * _.isArguments(function() { return arguments; }()); - * // => true - * - * _.isArguments([1, 2, 3]); - * // => false - */ -var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { - return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && - !propertyIsEnumerable.call(value, 'callee'); -}; - -module.exports = isArguments; - - -/***/ }), - -/***/ "../../../node_modules/lodash/isArray.js": -/***/ ((module) => { - -/** - * Checks if `value` is classified as an `Array` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an array, else `false`. - * @example - * - * _.isArray([1, 2, 3]); - * // => true - * - * _.isArray(document.body.children); - * // => false - * - * _.isArray('abc'); - * // => false - * - * _.isArray(_.noop); - * // => false - */ -var isArray = Array.isArray; - -module.exports = isArray; - - -/***/ }), - -/***/ "../../../node_modules/lodash/isArrayLike.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isFunction = __webpack_require__("../../../node_modules/lodash/isFunction.js"), - isLength = __webpack_require__("../../../node_modules/lodash/isLength.js"); - -/** - * Checks if `value` is array-like. A value is considered array-like if it's - * not a function and has a `value.length` that's an integer greater than or - * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is array-like, else `false`. - * @example - * - * _.isArrayLike([1, 2, 3]); - * // => true - * - * _.isArrayLike(document.body.children); - * // => true - * - * _.isArrayLike('abc'); - * // => true - * - * _.isArrayLike(_.noop); - * // => false - */ -function isArrayLike(value) { - return value != null && isLength(value.length) && !isFunction(value); -} - -module.exports = isArrayLike; - - -/***/ }), - -/***/ "../../../node_modules/lodash/isBuffer.js": -/***/ ((module, exports, __webpack_require__) => { - -/* module decorator */ module = __webpack_require__.nmd(module); -var root = __webpack_require__("../../../node_modules/lodash/_root.js"), - stubFalse = __webpack_require__("../../../node_modules/lodash/stubFalse.js"); - -/** Detect free variable `exports`. */ -var freeExports = true && exports && !exports.nodeType && exports; - -/** Detect free variable `module`. */ -var freeModule = freeExports && "object" == 'object' && module && !module.nodeType && module; - -/** Detect the popular CommonJS extension `module.exports`. */ -var moduleExports = freeModule && freeModule.exports === freeExports; - -/** Built-in value references. */ -var Buffer = moduleExports ? root.Buffer : undefined; - -/* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined; - -/** - * Checks if `value` is a buffer. - * - * @static - * @memberOf _ - * @since 4.3.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. - * @example - * - * _.isBuffer(new Buffer(2)); - * // => true - * - * _.isBuffer(new Uint8Array(2)); - * // => false - */ -var isBuffer = nativeIsBuffer || stubFalse; - -module.exports = isBuffer; - - -/***/ }), - -/***/ "../../../node_modules/lodash/isFunction.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseGetTag = __webpack_require__("../../../node_modules/lodash/_baseGetTag.js"), - isObject = __webpack_require__("../../../node_modules/lodash/isObject.js"); - -/** `Object#toString` result references. */ -var asyncTag = '[object AsyncFunction]', - funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - proxyTag = '[object Proxy]'; - -/** - * Checks if `value` is classified as a `Function` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a function, else `false`. - * @example - * - * _.isFunction(_); - * // => true - * - * _.isFunction(/abc/); - * // => false - */ -function isFunction(value) { - if (!isObject(value)) { - return false; - } - // The use of `Object#toString` avoids issues with the `typeof` operator - // in Safari 9 which returns 'object' for typed arrays and other constructors. - var tag = baseGetTag(value); - return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; -} - -module.exports = isFunction; - - -/***/ }), - -/***/ "../../../node_modules/lodash/isLength.js": -/***/ ((module) => { - -/** Used as references for various `Number` constants. */ -var MAX_SAFE_INTEGER = 9007199254740991; - -/** - * Checks if `value` is a valid array-like length. - * - * **Note:** This method is loosely based on - * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. - * @example - * - * _.isLength(3); - * // => true - * - * _.isLength(Number.MIN_VALUE); - * // => false - * - * _.isLength(Infinity); - * // => false - * - * _.isLength('3'); - * // => false - */ -function isLength(value) { - return typeof value == 'number' && - value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; -} - -module.exports = isLength; - - -/***/ }), - -/***/ "../../../node_modules/lodash/isObject.js": -/***/ ((module) => { - -/** - * Checks if `value` is the - * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) - * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an object, else `false`. - * @example - * - * _.isObject({}); - * // => true - * - * _.isObject([1, 2, 3]); - * // => true - * - * _.isObject(_.noop); - * // => true - * - * _.isObject(null); - * // => false - */ -function isObject(value) { - var type = typeof value; - return value != null && (type == 'object' || type == 'function'); -} - -module.exports = isObject; - - -/***/ }), - -/***/ "../../../node_modules/lodash/isObjectLike.js": -/***/ ((module) => { - -/** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false - */ -function isObjectLike(value) { - return value != null && typeof value == 'object'; -} - -module.exports = isObjectLike; - - -/***/ }), - -/***/ "../../../node_modules/lodash/isSymbol.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseGetTag = __webpack_require__("../../../node_modules/lodash/_baseGetTag.js"), - isObjectLike = __webpack_require__("../../../node_modules/lodash/isObjectLike.js"); - -/** `Object#toString` result references. */ -var symbolTag = '[object Symbol]'; - -/** - * Checks if `value` is classified as a `Symbol` primitive or object. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. - * @example - * - * _.isSymbol(Symbol.iterator); - * // => true - * - * _.isSymbol('abc'); - * // => false - */ -function isSymbol(value) { - return typeof value == 'symbol' || - (isObjectLike(value) && baseGetTag(value) == symbolTag); -} - -module.exports = isSymbol; - - -/***/ }), - -/***/ "../../../node_modules/lodash/isTypedArray.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseIsTypedArray = __webpack_require__("../../../node_modules/lodash/_baseIsTypedArray.js"), - baseUnary = __webpack_require__("../../../node_modules/lodash/_baseUnary.js"), - nodeUtil = __webpack_require__("../../../node_modules/lodash/_nodeUtil.js"); - -/* Node.js helper references. */ -var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; - -/** - * Checks if `value` is classified as a typed array. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. - * @example - * - * _.isTypedArray(new Uint8Array); - * // => true - * - * _.isTypedArray([]); - * // => false - */ -var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; - -module.exports = isTypedArray; - - -/***/ }), - -/***/ "../../../node_modules/lodash/keys.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var arrayLikeKeys = __webpack_require__("../../../node_modules/lodash/_arrayLikeKeys.js"), - baseKeys = __webpack_require__("../../../node_modules/lodash/_baseKeys.js"), - isArrayLike = __webpack_require__("../../../node_modules/lodash/isArrayLike.js"); - -/** - * Creates an array of the own enumerable property names of `object`. - * - * **Note:** Non-object values are coerced to objects. See the - * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) - * for more details. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Object - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names. - * @example - * - * function Foo() { - * this.a = 1; - * this.b = 2; - * } - * - * Foo.prototype.c = 3; - * - * _.keys(new Foo); - * // => ['a', 'b'] (iteration order is not guaranteed) - * - * _.keys('hi'); - * // => ['0', '1'] - */ -function keys(object) { - return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); -} - -module.exports = keys; - - -/***/ }), - -/***/ "../../../node_modules/lodash/mapValues.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseAssignValue = __webpack_require__("../../../node_modules/lodash/_baseAssignValue.js"), - baseForOwn = __webpack_require__("../../../node_modules/lodash/_baseForOwn.js"), - baseIteratee = __webpack_require__("../../../node_modules/lodash/_baseIteratee.js"); - -/** - * Creates an object with the same keys as `object` and values generated - * by running each own enumerable string keyed property of `object` thru - * `iteratee`. The iteratee is invoked with three arguments: - * (value, key, object). - * - * @static - * @memberOf _ - * @since 2.4.0 - * @category Object - * @param {Object} object The object to iterate over. - * @param {Function} [iteratee=_.identity] The function invoked per iteration. - * @returns {Object} Returns the new mapped object. - * @see _.mapKeys - * @example - * - * var users = { - * 'fred': { 'user': 'fred', 'age': 40 }, - * 'pebbles': { 'user': 'pebbles', 'age': 1 } - * }; - * - * _.mapValues(users, function(o) { return o.age; }); - * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed) - * - * // The `_.property` iteratee shorthand. - * _.mapValues(users, 'age'); - * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed) - */ -function mapValues(object, iteratee) { - var result = {}; - iteratee = baseIteratee(iteratee, 3); - - baseForOwn(object, function(value, key, object) { - baseAssignValue(result, key, iteratee(value, key, object)); - }); - return result; -} - -module.exports = mapValues; - - -/***/ }), - -/***/ "../../../node_modules/lodash/memoize.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var MapCache = __webpack_require__("../../../node_modules/lodash/_MapCache.js"); - -/** Error message constants. */ -var FUNC_ERROR_TEXT = 'Expected a function'; - -/** - * Creates a function that memoizes the result of `func`. If `resolver` is - * provided, it determines the cache key for storing the result based on the - * arguments provided to the memoized function. By default, the first argument - * provided to the memoized function is used as the map cache key. The `func` - * is invoked with the `this` binding of the memoized function. - * - * **Note:** The cache is exposed as the `cache` property on the memoized - * function. Its creation may be customized by replacing the `_.memoize.Cache` - * constructor with one whose instances implement the - * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) - * method interface of `clear`, `delete`, `get`, `has`, and `set`. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Function - * @param {Function} func The function to have its output memoized. - * @param {Function} [resolver] The function to resolve the cache key. - * @returns {Function} Returns the new memoized function. - * @example - * - * var object = { 'a': 1, 'b': 2 }; - * var other = { 'c': 3, 'd': 4 }; - * - * var values = _.memoize(_.values); - * values(object); - * // => [1, 2] - * - * values(other); - * // => [3, 4] - * - * object.a = 2; - * values(object); - * // => [1, 2] - * - * // Modify the result cache. - * values.cache.set(object, ['a', 'b']); - * values(object); - * // => ['a', 'b'] - * - * // Replace `_.memoize.Cache`. - * _.memoize.Cache = WeakMap; - */ -function memoize(func, resolver) { - if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) { - throw new TypeError(FUNC_ERROR_TEXT); - } - var memoized = function() { - var args = arguments, - key = resolver ? resolver.apply(this, args) : args[0], - cache = memoized.cache; - - if (cache.has(key)) { - return cache.get(key); - } - var result = func.apply(this, args); - memoized.cache = cache.set(key, result) || cache; - return result; - }; - memoized.cache = new (memoize.Cache || MapCache); - return memoized; -} - -// Expose `MapCache`. -memoize.Cache = MapCache; - -module.exports = memoize; - - -/***/ }), - -/***/ "../../../node_modules/lodash/property.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseProperty = __webpack_require__("../../../node_modules/lodash/_baseProperty.js"), - basePropertyDeep = __webpack_require__("../../../node_modules/lodash/_basePropertyDeep.js"), - isKey = __webpack_require__("../../../node_modules/lodash/_isKey.js"), - toKey = __webpack_require__("../../../node_modules/lodash/_toKey.js"); - -/** - * Creates a function that returns the value at `path` of a given object. - * - * @static - * @memberOf _ - * @since 2.4.0 - * @category Util - * @param {Array|string} path The path of the property to get. - * @returns {Function} Returns the new accessor function. - * @example - * - * var objects = [ - * { 'a': { 'b': 2 } }, - * { 'a': { 'b': 1 } } - * ]; - * - * _.map(objects, _.property('a.b')); - * // => [2, 1] - * - * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b'); - * // => [1, 2] - */ -function property(path) { - return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path); -} - -module.exports = property; - - -/***/ }), - -/***/ "../../../node_modules/lodash/stubArray.js": -/***/ ((module) => { - -/** - * This method returns a new empty array. - * - * @static - * @memberOf _ - * @since 4.13.0 - * @category Util - * @returns {Array} Returns the new empty array. - * @example - * - * var arrays = _.times(2, _.stubArray); - * - * console.log(arrays); - * // => [[], []] - * - * console.log(arrays[0] === arrays[1]); - * // => false - */ -function stubArray() { - return []; -} - -module.exports = stubArray; - - -/***/ }), - -/***/ "../../../node_modules/lodash/stubFalse.js": -/***/ ((module) => { - -/** - * This method returns `false`. - * - * @static - * @memberOf _ - * @since 4.13.0 - * @category Util - * @returns {boolean} Returns `false`. - * @example - * - * _.times(2, _.stubFalse); - * // => [false, false] - */ -function stubFalse() { - return false; -} - -module.exports = stubFalse; - - -/***/ }), - -/***/ "../../../node_modules/lodash/toString.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseToString = __webpack_require__("../../../node_modules/lodash/_baseToString.js"); - -/** - * Converts `value` to a string. An empty string is returned for `null` - * and `undefined` values. The sign of `-0` is preserved. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to convert. - * @returns {string} Returns the converted string. - * @example - * - * _.toString(null); - * // => '' - * - * _.toString(-0); - * // => '-0' - * - * _.toString([1, 2, 3]); - * // => '1,2,3' - */ -function toString(value) { - return value == null ? '' : baseToString(value); -} - -module.exports = toString; - - -/***/ }), - -/***/ "../../../node_modules/object-is/implementation.js": -/***/ ((module) => { - -"use strict"; - - -var numberIsNaN = function (value) { - return value !== value; -}; - -module.exports = function is(a, b) { - if (a === 0 && b === 0) { - return 1 / a === 1 / b; - } - if (a === b) { - return true; - } - if (numberIsNaN(a) && numberIsNaN(b)) { - return true; - } - return false; -}; - - - -/***/ }), - -/***/ "../../../node_modules/object-is/index.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var define = __webpack_require__("../../../node_modules/define-properties/index.js"); -var callBind = __webpack_require__("../../../node_modules/call-bind/index.js"); - -var implementation = __webpack_require__("../../../node_modules/object-is/implementation.js"); -var getPolyfill = __webpack_require__("../../../node_modules/object-is/polyfill.js"); -var shim = __webpack_require__("../../../node_modules/object-is/shim.js"); - -var polyfill = callBind(getPolyfill(), Object); - -define(polyfill, { - getPolyfill: getPolyfill, - implementation: implementation, - shim: shim -}); - -module.exports = polyfill; - - -/***/ }), - -/***/ "../../../node_modules/object-is/polyfill.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var implementation = __webpack_require__("../../../node_modules/object-is/implementation.js"); - -module.exports = function getPolyfill() { - return typeof Object.is === 'function' ? Object.is : implementation; -}; - - -/***/ }), - -/***/ "../../../node_modules/object-is/shim.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var getPolyfill = __webpack_require__("../../../node_modules/object-is/polyfill.js"); -var define = __webpack_require__("../../../node_modules/define-properties/index.js"); - -module.exports = function shimObjectIs() { - var polyfill = getPolyfill(); - define(Object, { is: polyfill }, { - is: function testObjectIs() { - return Object.is !== polyfill; - } - }); - return polyfill; -}; - - -/***/ }), - -/***/ "../../../node_modules/object-keys/implementation.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var keysShim; -if (!Object.keys) { - // modified from https://github.com/es-shims/es5-shim - var has = Object.prototype.hasOwnProperty; - var toStr = Object.prototype.toString; - var isArgs = __webpack_require__("../../../node_modules/object-keys/isArguments.js"); // eslint-disable-line global-require - var isEnumerable = Object.prototype.propertyIsEnumerable; - var hasDontEnumBug = !isEnumerable.call({ toString: null }, 'toString'); - var hasProtoEnumBug = isEnumerable.call(function () {}, 'prototype'); - var dontEnums = [ - 'toString', - 'toLocaleString', - 'valueOf', - 'hasOwnProperty', - 'isPrototypeOf', - 'propertyIsEnumerable', - 'constructor' - ]; - var equalsConstructorPrototype = function (o) { - var ctor = o.constructor; - return ctor && ctor.prototype === o; - }; - var excludedKeys = { - $applicationCache: true, - $console: true, - $external: true, - $frame: true, - $frameElement: true, - $frames: true, - $innerHeight: true, - $innerWidth: true, - $onmozfullscreenchange: true, - $onmozfullscreenerror: true, - $outerHeight: true, - $outerWidth: true, - $pageXOffset: true, - $pageYOffset: true, - $parent: true, - $scrollLeft: true, - $scrollTop: true, - $scrollX: true, - $scrollY: true, - $self: true, - $webkitIndexedDB: true, - $webkitStorageInfo: true, - $window: true - }; - var hasAutomationEqualityBug = (function () { - /* global window */ - if (typeof window === 'undefined') { return false; } - for (var k in window) { - try { - if (!excludedKeys['$' + k] && has.call(window, k) && window[k] !== null && typeof window[k] === 'object') { - try { - equalsConstructorPrototype(window[k]); - } catch (e) { - return true; - } - } - } catch (e) { - return true; - } - } - return false; - }()); - var equalsConstructorPrototypeIfNotBuggy = function (o) { - /* global window */ - if (typeof window === 'undefined' || !hasAutomationEqualityBug) { - return equalsConstructorPrototype(o); - } - try { - return equalsConstructorPrototype(o); - } catch (e) { - return false; - } - }; - - keysShim = function keys(object) { - var isObject = object !== null && typeof object === 'object'; - var isFunction = toStr.call(object) === '[object Function]'; - var isArguments = isArgs(object); - var isString = isObject && toStr.call(object) === '[object String]'; - var theKeys = []; - - if (!isObject && !isFunction && !isArguments) { - throw new TypeError('Object.keys called on a non-object'); - } - - var skipProto = hasProtoEnumBug && isFunction; - if (isString && object.length > 0 && !has.call(object, 0)) { - for (var i = 0; i < object.length; ++i) { - theKeys.push(String(i)); - } - } - - if (isArguments && object.length > 0) { - for (var j = 0; j < object.length; ++j) { - theKeys.push(String(j)); - } - } else { - for (var name in object) { - if (!(skipProto && name === 'prototype') && has.call(object, name)) { - theKeys.push(String(name)); - } - } - } - - if (hasDontEnumBug) { - var skipConstructor = equalsConstructorPrototypeIfNotBuggy(object); - - for (var k = 0; k < dontEnums.length; ++k) { - if (!(skipConstructor && dontEnums[k] === 'constructor') && has.call(object, dontEnums[k])) { - theKeys.push(dontEnums[k]); - } - } - } - return theKeys; - }; -} -module.exports = keysShim; - - -/***/ }), - -/***/ "../../../node_modules/object-keys/index.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var slice = Array.prototype.slice; -var isArgs = __webpack_require__("../../../node_modules/object-keys/isArguments.js"); - -var origKeys = Object.keys; -var keysShim = origKeys ? function keys(o) { return origKeys(o); } : __webpack_require__("../../../node_modules/object-keys/implementation.js"); - -var originalKeys = Object.keys; - -keysShim.shim = function shimObjectKeys() { - if (Object.keys) { - var keysWorksWithArguments = (function () { - // Safari 5.0 bug - var args = Object.keys(arguments); - return args && args.length === arguments.length; - }(1, 2)); - if (!keysWorksWithArguments) { - Object.keys = function keys(object) { // eslint-disable-line func-name-matching - if (isArgs(object)) { - return originalKeys(slice.call(object)); - } - return originalKeys(object); - }; - } - } else { - Object.keys = keysShim; - } - return Object.keys || keysShim; -}; - -module.exports = keysShim; - - -/***/ }), - -/***/ "../../../node_modules/object-keys/isArguments.js": -/***/ ((module) => { - -"use strict"; - - -var toStr = Object.prototype.toString; - -module.exports = function isArguments(value) { - var str = toStr.call(value); - var isArgs = str === '[object Arguments]'; - if (!isArgs) { - isArgs = str !== '[object Array]' && - value !== null && - typeof value === 'object' && - typeof value.length === 'number' && - value.length >= 0 && - toStr.call(value.callee) === '[object Function]'; - } - return isArgs; -}; - - -/***/ }), - -/***/ "../../../node_modules/object.assign/implementation.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -// modified from https://github.com/es-shims/es6-shim -var objectKeys = __webpack_require__("../../../node_modules/object-keys/index.js"); -var hasSymbols = __webpack_require__("../../../node_modules/has-symbols/shams.js")(); -var callBound = __webpack_require__("../../../node_modules/call-bind/callBound.js"); -var toObject = Object; -var $push = callBound('Array.prototype.push'); -var $propIsEnumerable = callBound('Object.prototype.propertyIsEnumerable'); -var originalGetSymbols = hasSymbols ? Object.getOwnPropertySymbols : null; - -// eslint-disable-next-line no-unused-vars -module.exports = function assign(target, source1) { - if (target == null) { throw new TypeError('target must be an object'); } - var to = toObject(target); // step 1 - if (arguments.length === 1) { - return to; // step 2 - } - for (var s = 1; s < arguments.length; ++s) { - var from = toObject(arguments[s]); // step 3.a.i - - // step 3.a.ii: - var keys = objectKeys(from); - var getSymbols = hasSymbols && (Object.getOwnPropertySymbols || originalGetSymbols); - if (getSymbols) { - var syms = getSymbols(from); - for (var j = 0; j < syms.length; ++j) { - var key = syms[j]; - if ($propIsEnumerable(from, key)) { - $push(keys, key); - } - } - } - - // step 3.a.iii: - for (var i = 0; i < keys.length; ++i) { - var nextKey = keys[i]; - if ($propIsEnumerable(from, nextKey)) { // step 3.a.iii.2 - var propValue = from[nextKey]; // step 3.a.iii.2.a - to[nextKey] = propValue; // step 3.a.iii.2.b - } - } - } - - return to; // step 4 -}; - - -/***/ }), - -/***/ "../../../node_modules/object.assign/polyfill.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var implementation = __webpack_require__("../../../node_modules/object.assign/implementation.js"); - -var lacksProperEnumerationOrder = function () { - if (!Object.assign) { - return false; - } - /* - * v8, specifically in node 4.x, has a bug with incorrect property enumeration order - * note: this does not detect the bug unless there's 20 characters - */ - var str = 'abcdefghijklmnopqrst'; - var letters = str.split(''); - var map = {}; - for (var i = 0; i < letters.length; ++i) { - map[letters[i]] = letters[i]; - } - var obj = Object.assign({}, map); - var actual = ''; - for (var k in obj) { - actual += k; - } - return str !== actual; -}; - -var assignHasPendingExceptions = function () { - if (!Object.assign || !Object.preventExtensions) { - return false; - } - /* - * Firefox 37 still has "pending exception" logic in its Object.assign implementation, - * which is 72% slower than our shim, and Firefox 40's native implementation. - */ - var thrower = Object.preventExtensions({ 1: 2 }); - try { - Object.assign(thrower, 'xy'); - } catch (e) { - return thrower[1] === 'y'; - } - return false; -}; - -module.exports = function getPolyfill() { - if (!Object.assign) { - return implementation; - } - if (lacksProperEnumerationOrder()) { - return implementation; - } - if (assignHasPendingExceptions()) { - return implementation; - } - return Object.assign; -}; - - -/***/ }), - -/***/ "../../../node_modules/process/browser.js": -/***/ ((module) => { - -// shim for using process in browser -var process = module.exports = {}; - -// cached from whatever global is present so that test runners that stub it -// don't break things. But we need to wrap it in a try catch in case it is -// wrapped in strict mode code which doesn't define any globals. It's inside a -// function because try/catches deoptimize in certain engines. - -var cachedSetTimeout; -var cachedClearTimeout; - -function defaultSetTimout() { - throw new Error('setTimeout has not been defined'); -} -function defaultClearTimeout () { - throw new Error('clearTimeout has not been defined'); -} -(function () { - try { - if (typeof setTimeout === 'function') { - cachedSetTimeout = setTimeout; - } else { - cachedSetTimeout = defaultSetTimout; - } - } catch (e) { - cachedSetTimeout = defaultSetTimout; - } - try { - if (typeof clearTimeout === 'function') { - cachedClearTimeout = clearTimeout; - } else { - cachedClearTimeout = defaultClearTimeout; - } - } catch (e) { - cachedClearTimeout = defaultClearTimeout; - } -} ()) -function runTimeout(fun) { - if (cachedSetTimeout === setTimeout) { - //normal enviroments in sane situations - return setTimeout(fun, 0); - } - // if setTimeout wasn't available but was latter defined - if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { - cachedSetTimeout = setTimeout; - return setTimeout(fun, 0); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedSetTimeout(fun, 0); - } catch(e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedSetTimeout.call(null, fun, 0); - } catch(e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error - return cachedSetTimeout.call(this, fun, 0); - } - } - - -} -function runClearTimeout(marker) { - if (cachedClearTimeout === clearTimeout) { - //normal enviroments in sane situations - return clearTimeout(marker); - } - // if clearTimeout wasn't available but was latter defined - if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { - cachedClearTimeout = clearTimeout; - return clearTimeout(marker); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedClearTimeout(marker); - } catch (e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedClearTimeout.call(null, marker); - } catch (e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. - // Some versions of I.E. have different rules for clearTimeout vs setTimeout - return cachedClearTimeout.call(this, marker); - } - } - - - -} -var queue = []; -var draining = false; -var currentQueue; -var queueIndex = -1; - -function cleanUpNextTick() { - if (!draining || !currentQueue) { - return; - } - draining = false; - if (currentQueue.length) { - queue = currentQueue.concat(queue); - } else { - queueIndex = -1; - } - if (queue.length) { - drainQueue(); - } -} - -function drainQueue() { - if (draining) { - return; - } - var timeout = runTimeout(cleanUpNextTick); - draining = true; - - var len = queue.length; - while(len) { - currentQueue = queue; - queue = []; - while (++queueIndex < len) { - if (currentQueue) { - currentQueue[queueIndex].run(); - } - } - queueIndex = -1; - len = queue.length; - } - currentQueue = null; - draining = false; - runClearTimeout(timeout); -} - -process.nextTick = function (fun) { - var args = new Array(arguments.length - 1); - if (arguments.length > 1) { - for (var i = 1; i < arguments.length; i++) { - args[i - 1] = arguments[i]; - } - } - queue.push(new Item(fun, args)); - if (queue.length === 1 && !draining) { - runTimeout(drainQueue); - } -}; - -// v8 likes predictible objects -function Item(fun, array) { - this.fun = fun; - this.array = array; -} -Item.prototype.run = function () { - this.fun.apply(null, this.array); -}; -process.title = 'browser'; -process.browser = true; -process.env = {}; -process.argv = []; -process.version = ''; // empty string to avoid regexp issues -process.versions = {}; - -function noop() {} - -process.on = noop; -process.addListener = noop; -process.once = noop; -process.off = noop; -process.removeListener = noop; -process.removeAllListeners = noop; -process.emit = noop; -process.prependListener = noop; -process.prependOnceListener = noop; - -process.listeners = function (name) { return [] } - -process.binding = function (name) { - throw new Error('process.binding is not supported'); -}; - -process.cwd = function () { return '/' }; -process.chdir = function (dir) { - throw new Error('process.chdir is not supported'); -}; -process.umask = function() { return 0; }; - - -/***/ }), - -/***/ "../../../node_modules/set-function-length/index.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var GetIntrinsic = __webpack_require__("../../../node_modules/get-intrinsic/index.js"); -var define = __webpack_require__("../../../node_modules/define-data-property/index.js"); -var hasDescriptors = __webpack_require__("../../../node_modules/has-property-descriptors/index.js")(); -var gOPD = __webpack_require__("../../../node_modules/gopd/index.js"); - -var $TypeError = GetIntrinsic('%TypeError%'); -var $floor = GetIntrinsic('%Math.floor%'); - -module.exports = function setFunctionLength(fn, length) { - if (typeof fn !== 'function') { - throw new $TypeError('`fn` is not a function'); - } - if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) { - throw new $TypeError('`length` must be a positive 32-bit integer'); - } - - var loose = arguments.length > 2 && !!arguments[2]; - - var functionLengthIsConfigurable = true; - var functionLengthIsWritable = true; - if ('length' in fn && gOPD) { - var desc = gOPD(fn, 'length'); - if (desc && !desc.configurable) { - functionLengthIsConfigurable = false; - } - if (desc && !desc.writable) { - functionLengthIsWritable = false; - } - } - - if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) { - if (hasDescriptors) { - define(fn, 'length', length, true, true); - } else { - define(fn, 'length', length); - } - } - return fn; -}; - - -/***/ }), - -/***/ "../../../node_modules/ts-dedent/esm/index.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ T: () => (/* binding */ dedent) -/* harmony export */ }); -function dedent(templ) { - var values = []; - for (var _i = 1; _i < arguments.length; _i++) { - values[_i - 1] = arguments[_i]; - } - var strings = Array.from(typeof templ === 'string' ? [templ] : templ); - strings[strings.length - 1] = strings[strings.length - 1].replace(/\r?\n([\t ]*)$/, ''); - var indentLengths = strings.reduce(function (arr, str) { - var matches = str.match(/\n([\t ]+|(?!\s).)/g); - if (matches) { - return arr.concat(matches.map(function (match) { var _a, _b; return (_b = (_a = match.match(/[\t ]/g)) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0; })); - } - return arr; - }, []); - if (indentLengths.length) { - var pattern_1 = new RegExp("\n[\t ]{" + Math.min.apply(Math, indentLengths) + "}", 'g'); - strings = strings.map(function (str) { return str.replace(pattern_1, '\n'); }); - } - strings[0] = strings[0].replace(/^\r?\n/, ''); - var string = strings[0]; - values.forEach(function (value, i) { - var endentations = string.match(/(?:^|\n)( *)$/); - var endentation = endentations ? endentations[1] : ''; - var indentedValue = value; - if (typeof value === 'string' && value.includes('\n')) { - indentedValue = String(value) - .split('\n') - .map(function (str, i) { - return i === 0 ? str : "" + endentation + str; - }) - .join('\n'); - } - string += indentedValue + strings[i + 1]; - }); - return string; -} -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (dedent); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "../../../node_modules/util/support/isBufferBrowser.js": -/***/ ((module) => { - -module.exports = function isBuffer(arg) { - return arg && typeof arg === 'object' - && typeof arg.copy === 'function' - && typeof arg.fill === 'function' - && typeof arg.readUInt8 === 'function'; -} - -/***/ }), - -/***/ "../../../node_modules/util/support/types.js": -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -// Currently in sync with Node.js lib/internal/util/types.js -// https://github.com/nodejs/node/commit/112cc7c27551254aa2b17098fb774867f05ed0d9 - - - -var isArgumentsObject = __webpack_require__("../../../node_modules/is-arguments/index.js"); -var isGeneratorFunction = __webpack_require__("../../../node_modules/is-generator-function/index.js"); -var whichTypedArray = __webpack_require__("../../../node_modules/which-typed-array/index.js"); -var isTypedArray = __webpack_require__("../../../node_modules/is-typed-array/index.js"); - -function uncurryThis(f) { - return f.call.bind(f); -} - -var BigIntSupported = typeof BigInt !== 'undefined'; -var SymbolSupported = typeof Symbol !== 'undefined'; - -var ObjectToString = uncurryThis(Object.prototype.toString); - -var numberValue = uncurryThis(Number.prototype.valueOf); -var stringValue = uncurryThis(String.prototype.valueOf); -var booleanValue = uncurryThis(Boolean.prototype.valueOf); - -if (BigIntSupported) { - var bigIntValue = uncurryThis(BigInt.prototype.valueOf); -} - -if (SymbolSupported) { - var symbolValue = uncurryThis(Symbol.prototype.valueOf); -} - -function checkBoxedPrimitive(value, prototypeValueOf) { - if (typeof value !== 'object') { - return false; - } - try { - prototypeValueOf(value); - return true; - } catch(e) { - return false; - } -} - -exports.isArgumentsObject = isArgumentsObject; -exports.isGeneratorFunction = isGeneratorFunction; -exports.isTypedArray = isTypedArray; - -// Taken from here and modified for better browser support -// https://github.com/sindresorhus/p-is-promise/blob/cda35a513bda03f977ad5cde3a079d237e82d7ef/index.js -function isPromise(input) { - return ( - ( - typeof Promise !== 'undefined' && - input instanceof Promise - ) || - ( - input !== null && - typeof input === 'object' && - typeof input.then === 'function' && - typeof input.catch === 'function' - ) - ); -} -exports.isPromise = isPromise; - -function isArrayBufferView(value) { - if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) { - return ArrayBuffer.isView(value); - } - - return ( - isTypedArray(value) || - isDataView(value) - ); -} -exports.isArrayBufferView = isArrayBufferView; - - -function isUint8Array(value) { - return whichTypedArray(value) === 'Uint8Array'; -} -exports.isUint8Array = isUint8Array; - -function isUint8ClampedArray(value) { - return whichTypedArray(value) === 'Uint8ClampedArray'; -} -exports.isUint8ClampedArray = isUint8ClampedArray; - -function isUint16Array(value) { - return whichTypedArray(value) === 'Uint16Array'; -} -exports.isUint16Array = isUint16Array; - -function isUint32Array(value) { - return whichTypedArray(value) === 'Uint32Array'; -} -exports.isUint32Array = isUint32Array; - -function isInt8Array(value) { - return whichTypedArray(value) === 'Int8Array'; -} -exports.isInt8Array = isInt8Array; - -function isInt16Array(value) { - return whichTypedArray(value) === 'Int16Array'; -} -exports.isInt16Array = isInt16Array; - -function isInt32Array(value) { - return whichTypedArray(value) === 'Int32Array'; -} -exports.isInt32Array = isInt32Array; - -function isFloat32Array(value) { - return whichTypedArray(value) === 'Float32Array'; -} -exports.isFloat32Array = isFloat32Array; - -function isFloat64Array(value) { - return whichTypedArray(value) === 'Float64Array'; -} -exports.isFloat64Array = isFloat64Array; - -function isBigInt64Array(value) { - return whichTypedArray(value) === 'BigInt64Array'; -} -exports.isBigInt64Array = isBigInt64Array; - -function isBigUint64Array(value) { - return whichTypedArray(value) === 'BigUint64Array'; -} -exports.isBigUint64Array = isBigUint64Array; - -function isMapToString(value) { - return ObjectToString(value) === '[object Map]'; -} -isMapToString.working = ( - typeof Map !== 'undefined' && - isMapToString(new Map()) -); - -function isMap(value) { - if (typeof Map === 'undefined') { - return false; - } - - return isMapToString.working - ? isMapToString(value) - : value instanceof Map; -} -exports.isMap = isMap; - -function isSetToString(value) { - return ObjectToString(value) === '[object Set]'; -} -isSetToString.working = ( - typeof Set !== 'undefined' && - isSetToString(new Set()) -); -function isSet(value) { - if (typeof Set === 'undefined') { - return false; - } - - return isSetToString.working - ? isSetToString(value) - : value instanceof Set; -} -exports.isSet = isSet; - -function isWeakMapToString(value) { - return ObjectToString(value) === '[object WeakMap]'; -} -isWeakMapToString.working = ( - typeof WeakMap !== 'undefined' && - isWeakMapToString(new WeakMap()) -); -function isWeakMap(value) { - if (typeof WeakMap === 'undefined') { - return false; - } - - return isWeakMapToString.working - ? isWeakMapToString(value) - : value instanceof WeakMap; -} -exports.isWeakMap = isWeakMap; - -function isWeakSetToString(value) { - return ObjectToString(value) === '[object WeakSet]'; -} -isWeakSetToString.working = ( - typeof WeakSet !== 'undefined' && - isWeakSetToString(new WeakSet()) -); -function isWeakSet(value) { - return isWeakSetToString(value); -} -exports.isWeakSet = isWeakSet; - -function isArrayBufferToString(value) { - return ObjectToString(value) === '[object ArrayBuffer]'; -} -isArrayBufferToString.working = ( - typeof ArrayBuffer !== 'undefined' && - isArrayBufferToString(new ArrayBuffer()) -); -function isArrayBuffer(value) { - if (typeof ArrayBuffer === 'undefined') { - return false; - } - - return isArrayBufferToString.working - ? isArrayBufferToString(value) - : value instanceof ArrayBuffer; -} -exports.isArrayBuffer = isArrayBuffer; - -function isDataViewToString(value) { - return ObjectToString(value) === '[object DataView]'; -} -isDataViewToString.working = ( - typeof ArrayBuffer !== 'undefined' && - typeof DataView !== 'undefined' && - isDataViewToString(new DataView(new ArrayBuffer(1), 0, 1)) -); -function isDataView(value) { - if (typeof DataView === 'undefined') { - return false; - } - - return isDataViewToString.working - ? isDataViewToString(value) - : value instanceof DataView; -} -exports.isDataView = isDataView; - -// Store a copy of SharedArrayBuffer in case it's deleted elsewhere -var SharedArrayBufferCopy = typeof SharedArrayBuffer !== 'undefined' ? SharedArrayBuffer : undefined; -function isSharedArrayBufferToString(value) { - return ObjectToString(value) === '[object SharedArrayBuffer]'; -} -function isSharedArrayBuffer(value) { - if (typeof SharedArrayBufferCopy === 'undefined') { - return false; - } - - if (typeof isSharedArrayBufferToString.working === 'undefined') { - isSharedArrayBufferToString.working = isSharedArrayBufferToString(new SharedArrayBufferCopy()); - } - - return isSharedArrayBufferToString.working - ? isSharedArrayBufferToString(value) - : value instanceof SharedArrayBufferCopy; -} -exports.isSharedArrayBuffer = isSharedArrayBuffer; - -function isAsyncFunction(value) { - return ObjectToString(value) === '[object AsyncFunction]'; -} -exports.isAsyncFunction = isAsyncFunction; - -function isMapIterator(value) { - return ObjectToString(value) === '[object Map Iterator]'; -} -exports.isMapIterator = isMapIterator; - -function isSetIterator(value) { - return ObjectToString(value) === '[object Set Iterator]'; -} -exports.isSetIterator = isSetIterator; - -function isGeneratorObject(value) { - return ObjectToString(value) === '[object Generator]'; -} -exports.isGeneratorObject = isGeneratorObject; - -function isWebAssemblyCompiledModule(value) { - return ObjectToString(value) === '[object WebAssembly.Module]'; -} -exports.isWebAssemblyCompiledModule = isWebAssemblyCompiledModule; - -function isNumberObject(value) { - return checkBoxedPrimitive(value, numberValue); -} -exports.isNumberObject = isNumberObject; - -function isStringObject(value) { - return checkBoxedPrimitive(value, stringValue); -} -exports.isStringObject = isStringObject; - -function isBooleanObject(value) { - return checkBoxedPrimitive(value, booleanValue); -} -exports.isBooleanObject = isBooleanObject; - -function isBigIntObject(value) { - return BigIntSupported && checkBoxedPrimitive(value, bigIntValue); -} -exports.isBigIntObject = isBigIntObject; - -function isSymbolObject(value) { - return SymbolSupported && checkBoxedPrimitive(value, symbolValue); -} -exports.isSymbolObject = isSymbolObject; - -function isBoxedPrimitive(value) { - return ( - isNumberObject(value) || - isStringObject(value) || - isBooleanObject(value) || - isBigIntObject(value) || - isSymbolObject(value) - ); -} -exports.isBoxedPrimitive = isBoxedPrimitive; - -function isAnyArrayBuffer(value) { - return typeof Uint8Array !== 'undefined' && ( - isArrayBuffer(value) || - isSharedArrayBuffer(value) - ); -} -exports.isAnyArrayBuffer = isAnyArrayBuffer; - -['isProxy', 'isExternal', 'isModuleNamespaceObject'].forEach(function(method) { - Object.defineProperty(exports, method, { - enumerable: false, - value: function() { - throw new Error(method + ' is not supported in userland'); - } - }); -}); - - -/***/ }), - -/***/ "../../../node_modules/util/util.js": -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -/* provided dependency */ var process = __webpack_require__("../../../node_modules/process/browser.js"); -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -var getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors || - function getOwnPropertyDescriptors(obj) { - var keys = Object.keys(obj); - var descriptors = {}; - for (var i = 0; i < keys.length; i++) { - descriptors[keys[i]] = Object.getOwnPropertyDescriptor(obj, keys[i]); - } - return descriptors; - }; - -var formatRegExp = /%[sdj%]/g; -exports.format = function(f) { - if (!isString(f)) { - var objects = []; - for (var i = 0; i < arguments.length; i++) { - objects.push(inspect(arguments[i])); - } - return objects.join(' '); - } - - var i = 1; - var args = arguments; - var len = args.length; - var str = String(f).replace(formatRegExp, function(x) { - if (x === '%%') return '%'; - if (i >= len) return x; - switch (x) { - case '%s': return String(args[i++]); - case '%d': return Number(args[i++]); - case '%j': - try { - return JSON.stringify(args[i++]); - } catch (_) { - return '[Circular]'; - } - default: - return x; - } - }); - for (var x = args[i]; i < len; x = args[++i]) { - if (isNull(x) || !isObject(x)) { - str += ' ' + x; - } else { - str += ' ' + inspect(x); - } - } - return str; -}; - - -// Mark that a method should not be used. -// Returns a modified function which warns once by default. -// If --no-deprecation is set, then it is a no-op. -exports.deprecate = function(fn, msg) { - if (typeof process !== 'undefined' && process.noDeprecation === true) { - return fn; - } - - // Allow for deprecating things in the process of starting up. - if (typeof process === 'undefined') { - return function() { - return exports.deprecate(fn, msg).apply(this, arguments); - }; - } - - var warned = false; - function deprecated() { - if (!warned) { - if (process.throwDeprecation) { - throw new Error(msg); - } else if (process.traceDeprecation) { - console.trace(msg); - } else { - console.error(msg); - } - warned = true; - } - return fn.apply(this, arguments); - } - - return deprecated; -}; - - -var debugs = {}; -var debugEnvRegex = /^$/; - -if (process.env.NODE_DEBUG) { - var debugEnv = process.env.NODE_DEBUG; - debugEnv = debugEnv.replace(/[|\\{}()[\]^$+?.]/g, '\\$&') - .replace(/\*/g, '.*') - .replace(/,/g, '$|^') - .toUpperCase(); - debugEnvRegex = new RegExp('^' + debugEnv + '$', 'i'); -} -exports.debuglog = function(set) { - set = set.toUpperCase(); - if (!debugs[set]) { - if (debugEnvRegex.test(set)) { - var pid = process.pid; - debugs[set] = function() { - var msg = exports.format.apply(exports, arguments); - console.error('%s %d: %s', set, pid, msg); - }; - } else { - debugs[set] = function() {}; - } - } - return debugs[set]; -}; - - -/** - * Echos the value of a value. Trys to print the value out - * in the best way possible given the different types. - * - * @param {Object} obj The object to print out. - * @param {Object} opts Optional options object that alters the output. - */ -/* legacy: obj, showHidden, depth, colors*/ -function inspect(obj, opts) { - // default options - var ctx = { - seen: [], - stylize: stylizeNoColor - }; - // legacy... - if (arguments.length >= 3) ctx.depth = arguments[2]; - if (arguments.length >= 4) ctx.colors = arguments[3]; - if (isBoolean(opts)) { - // legacy... - ctx.showHidden = opts; - } else if (opts) { - // got an "options" object - exports._extend(ctx, opts); - } - // set default options - if (isUndefined(ctx.showHidden)) ctx.showHidden = false; - if (isUndefined(ctx.depth)) ctx.depth = 2; - if (isUndefined(ctx.colors)) ctx.colors = false; - if (isUndefined(ctx.customInspect)) ctx.customInspect = true; - if (ctx.colors) ctx.stylize = stylizeWithColor; - return formatValue(ctx, obj, ctx.depth); -} -exports.inspect = inspect; - - -// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics -inspect.colors = { - 'bold' : [1, 22], - 'italic' : [3, 23], - 'underline' : [4, 24], - 'inverse' : [7, 27], - 'white' : [37, 39], - 'grey' : [90, 39], - 'black' : [30, 39], - 'blue' : [34, 39], - 'cyan' : [36, 39], - 'green' : [32, 39], - 'magenta' : [35, 39], - 'red' : [31, 39], - 'yellow' : [33, 39] -}; - -// Don't use 'blue' not visible on cmd.exe -inspect.styles = { - 'special': 'cyan', - 'number': 'yellow', - 'boolean': 'yellow', - 'undefined': 'grey', - 'null': 'bold', - 'string': 'green', - 'date': 'magenta', - // "name": intentionally not styling - 'regexp': 'red' -}; - - -function stylizeWithColor(str, styleType) { - var style = inspect.styles[styleType]; - - if (style) { - return '\u001b[' + inspect.colors[style][0] + 'm' + str + - '\u001b[' + inspect.colors[style][1] + 'm'; - } else { - return str; - } -} - - -function stylizeNoColor(str, styleType) { - return str; -} - - -function arrayToHash(array) { - var hash = {}; - - array.forEach(function(val, idx) { - hash[val] = true; - }); - - return hash; -} - - -function formatValue(ctx, value, recurseTimes) { - // Provide a hook for user-specified inspect functions. - // Check that value is an object with an inspect function on it - if (ctx.customInspect && - value && - isFunction(value.inspect) && - // Filter out the util module, it's inspect function is special - value.inspect !== exports.inspect && - // Also filter out any prototype objects using the circular check. - !(value.constructor && value.constructor.prototype === value)) { - var ret = value.inspect(recurseTimes, ctx); - if (!isString(ret)) { - ret = formatValue(ctx, ret, recurseTimes); - } - return ret; - } - - // Primitive types cannot have properties - var primitive = formatPrimitive(ctx, value); - if (primitive) { - return primitive; - } - - // Look up the keys of the object. - var keys = Object.keys(value); - var visibleKeys = arrayToHash(keys); - - if (ctx.showHidden) { - keys = Object.getOwnPropertyNames(value); - } - - // IE doesn't make error fields non-enumerable - // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx - if (isError(value) - && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) { - return formatError(value); - } - - // Some type of object without properties can be shortcutted. - if (keys.length === 0) { - if (isFunction(value)) { - var name = value.name ? ': ' + value.name : ''; - return ctx.stylize('[Function' + name + ']', 'special'); - } - if (isRegExp(value)) { - return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); - } - if (isDate(value)) { - return ctx.stylize(Date.prototype.toString.call(value), 'date'); - } - if (isError(value)) { - return formatError(value); - } - } - - var base = '', array = false, braces = ['{', '}']; - - // Make Array say that they are Array - if (isArray(value)) { - array = true; - braces = ['[', ']']; - } - - // Make functions say that they are functions - if (isFunction(value)) { - var n = value.name ? ': ' + value.name : ''; - base = ' [Function' + n + ']'; - } - - // Make RegExps say that they are RegExps - if (isRegExp(value)) { - base = ' ' + RegExp.prototype.toString.call(value); - } - - // Make dates with properties first say the date - if (isDate(value)) { - base = ' ' + Date.prototype.toUTCString.call(value); - } - - // Make error with message first say the error - if (isError(value)) { - base = ' ' + formatError(value); - } - - if (keys.length === 0 && (!array || value.length == 0)) { - return braces[0] + base + braces[1]; - } - - if (recurseTimes < 0) { - if (isRegExp(value)) { - return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp'); - } else { - return ctx.stylize('[Object]', 'special'); - } - } - - ctx.seen.push(value); - - var output; - if (array) { - output = formatArray(ctx, value, recurseTimes, visibleKeys, keys); - } else { - output = keys.map(function(key) { - return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array); - }); - } - - ctx.seen.pop(); - - return reduceToSingleString(output, base, braces); -} - - -function formatPrimitive(ctx, value) { - if (isUndefined(value)) - return ctx.stylize('undefined', 'undefined'); - if (isString(value)) { - var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '') - .replace(/'/g, "\\'") - .replace(/\\"/g, '"') + '\''; - return ctx.stylize(simple, 'string'); - } - if (isNumber(value)) - return ctx.stylize('' + value, 'number'); - if (isBoolean(value)) - return ctx.stylize('' + value, 'boolean'); - // For some reason typeof null is "object", so special case here. - if (isNull(value)) - return ctx.stylize('null', 'null'); -} - - -function formatError(value) { - return '[' + Error.prototype.toString.call(value) + ']'; -} - - -function formatArray(ctx, value, recurseTimes, visibleKeys, keys) { - var output = []; - for (var i = 0, l = value.length; i < l; ++i) { - if (hasOwnProperty(value, String(i))) { - output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, - String(i), true)); - } else { - output.push(''); - } - } - keys.forEach(function(key) { - if (!key.match(/^\d+$/)) { - output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, - key, true)); - } - }); - return output; -} - - -function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) { - var name, str, desc; - desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] }; - if (desc.get) { - if (desc.set) { - str = ctx.stylize('[Getter/Setter]', 'special'); - } else { - str = ctx.stylize('[Getter]', 'special'); - } - } else { - if (desc.set) { - str = ctx.stylize('[Setter]', 'special'); - } - } - if (!hasOwnProperty(visibleKeys, key)) { - name = '[' + key + ']'; - } - if (!str) { - if (ctx.seen.indexOf(desc.value) < 0) { - if (isNull(recurseTimes)) { - str = formatValue(ctx, desc.value, null); - } else { - str = formatValue(ctx, desc.value, recurseTimes - 1); - } - if (str.indexOf('\n') > -1) { - if (array) { - str = str.split('\n').map(function(line) { - return ' ' + line; - }).join('\n').slice(2); - } else { - str = '\n' + str.split('\n').map(function(line) { - return ' ' + line; - }).join('\n'); + strings[0] = strings[0].replace(/^\r?\n/, ''); + var string = strings[0]; + values.forEach(function (value, i) { + var endentations = string.match(/(?:^|\n)( *)$/); + var endentation = endentations ? endentations[1] : ''; + var indentedValue = value; + if (typeof value === 'string' && value.includes('\n')) { + indentedValue = String(value) + .split('\n') + .map(function (str, i) { + return i === 0 ? str : "" + endentation + str; + }) + .join('\n'); } - } - } else { - str = ctx.stylize('[Circular]', 'special'); - } - } - if (isUndefined(name)) { - if (array && key.match(/^\d+$/)) { - return str; - } - name = JSON.stringify('' + key); - if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) { - name = name.slice(1, -1); - name = ctx.stylize(name, 'name'); - } else { - name = name.replace(/'/g, "\\'") - .replace(/\\"/g, '"') - .replace(/(^"|"$)/g, "'"); - name = ctx.stylize(name, 'string'); - } - } - - return name + ': ' + str; -} - - -function reduceToSingleString(output, base, braces) { - var numLinesEst = 0; - var length = output.reduce(function(prev, cur) { - numLinesEst++; - if (cur.indexOf('\n') >= 0) numLinesEst++; - return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1; - }, 0); - - if (length > 60) { - return braces[0] + - (base === '' ? '' : base + '\n ') + - ' ' + - output.join(',\n ') + - ' ' + - braces[1]; - } - - return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1]; -} - - -// NOTE: These type checking functions intentionally don't use `instanceof` -// because it is fragile and can be easily faked with `Object.create()`. -exports.types = __webpack_require__("../../../node_modules/util/support/types.js"); - -function isArray(ar) { - return Array.isArray(ar); -} -exports.isArray = isArray; - -function isBoolean(arg) { - return typeof arg === 'boolean'; -} -exports.isBoolean = isBoolean; - -function isNull(arg) { - return arg === null; -} -exports.isNull = isNull; - -function isNullOrUndefined(arg) { - return arg == null; -} -exports.isNullOrUndefined = isNullOrUndefined; - -function isNumber(arg) { - return typeof arg === 'number'; -} -exports.isNumber = isNumber; - -function isString(arg) { - return typeof arg === 'string'; -} -exports.isString = isString; - -function isSymbol(arg) { - return typeof arg === 'symbol'; -} -exports.isSymbol = isSymbol; - -function isUndefined(arg) { - return arg === void 0; -} -exports.isUndefined = isUndefined; - -function isRegExp(re) { - return isObject(re) && objectToString(re) === '[object RegExp]'; -} -exports.isRegExp = isRegExp; -exports.types.isRegExp = isRegExp; - -function isObject(arg) { - return typeof arg === 'object' && arg !== null; -} -exports.isObject = isObject; - -function isDate(d) { - return isObject(d) && objectToString(d) === '[object Date]'; -} -exports.isDate = isDate; -exports.types.isDate = isDate; - -function isError(e) { - return isObject(e) && - (objectToString(e) === '[object Error]' || e instanceof Error); -} -exports.isError = isError; -exports.types.isNativeError = isError; - -function isFunction(arg) { - return typeof arg === 'function'; -} -exports.isFunction = isFunction; - -function isPrimitive(arg) { - return arg === null || - typeof arg === 'boolean' || - typeof arg === 'number' || - typeof arg === 'string' || - typeof arg === 'symbol' || // ES6 symbol - typeof arg === 'undefined'; -} -exports.isPrimitive = isPrimitive; - -exports.isBuffer = __webpack_require__("../../../node_modules/util/support/isBufferBrowser.js"); - -function objectToString(o) { - return Object.prototype.toString.call(o); -} - - -function pad(n) { - return n < 10 ? '0' + n.toString(10) : n.toString(10); -} - - -var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', - 'Oct', 'Nov', 'Dec']; - -// 26 Feb 16:19:34 -function timestamp() { - var d = new Date(); - var time = [pad(d.getHours()), - pad(d.getMinutes()), - pad(d.getSeconds())].join(':'); - return [d.getDate(), months[d.getMonth()], time].join(' '); -} - - -// log is just a thin wrapper to console.log that prepends a timestamp -exports.log = function() { - console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments)); -}; - - -/** - * Inherit the prototype methods from one constructor into another. - * - * The Function.prototype.inherits from lang.js rewritten as a standalone - * function (not on Function.prototype). NOTE: If this file is to be loaded - * during bootstrapping this function needs to be rewritten using some native - * functions as prototype setup using normal JavaScript does not work as - * expected during bootstrapping (see mirror.js in r114903). - * - * @param {function} ctor Constructor function which needs to inherit the - * prototype. - * @param {function} superCtor Constructor function to inherit prototype from. - */ -exports.inherits = __webpack_require__("../../../node_modules/inherits/inherits_browser.js"); - -exports._extend = function(origin, add) { - // Don't do anything if add isn't an object - if (!add || !isObject(add)) return origin; - - var keys = Object.keys(add); - var i = keys.length; - while (i--) { - origin[keys[i]] = add[keys[i]]; - } - return origin; -}; - -function hasOwnProperty(obj, prop) { - return Object.prototype.hasOwnProperty.call(obj, prop); -} - -var kCustomPromisifiedSymbol = typeof Symbol !== 'undefined' ? Symbol('util.promisify.custom') : undefined; - -exports.promisify = function promisify(original) { - if (typeof original !== 'function') - throw new TypeError('The "original" argument must be of type Function'); - - if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) { - var fn = original[kCustomPromisifiedSymbol]; - if (typeof fn !== 'function') { - throw new TypeError('The "util.promisify.custom" argument must be of type Function'); - } - Object.defineProperty(fn, kCustomPromisifiedSymbol, { - value: fn, enumerable: false, writable: false, configurable: true - }); - return fn; - } - - function fn() { - var promiseResolve, promiseReject; - var promise = new Promise(function (resolve, reject) { - promiseResolve = resolve; - promiseReject = reject; - }); - - var args = []; - for (var i = 0; i < arguments.length; i++) { - args.push(arguments[i]); - } - args.push(function (err, value) { - if (err) { - promiseReject(err); - } else { - promiseResolve(value); - } + string += indentedValue + strings[i + 1]; }); - - try { - original.apply(this, args); - } catch (err) { - promiseReject(err); - } - - return promise; - } - - Object.setPrototypeOf(fn, Object.getPrototypeOf(original)); - - if (kCustomPromisifiedSymbol) Object.defineProperty(fn, kCustomPromisifiedSymbol, { - value: fn, enumerable: false, writable: false, configurable: true - }); - return Object.defineProperties( - fn, - getOwnPropertyDescriptors(original) - ); -} - -exports.promisify.custom = kCustomPromisifiedSymbol - -function callbackifyOnRejected(reason, cb) { - // `!reason` guard inspired by bluebird (Ref: https://goo.gl/t5IS6M). - // Because `null` is a special error value in callbacks which means "no error - // occurred", we error-wrap so the callback consumer can distinguish between - // "the promise rejected with null" or "the promise fulfilled with undefined". - if (!reason) { - var newReason = new Error('Promise was rejected with a falsy value'); - newReason.reason = reason; - reason = newReason; - } - return cb(reason); -} - -function callbackify(original) { - if (typeof original !== 'function') { - throw new TypeError('The "original" argument must be of type Function'); - } - - // We DO NOT return the promise as it gives the user a false sense that - // the promise is actually somehow related to the callback's execution - // and that the callback throwing will reject the promise. - function callbackified() { - var args = []; - for (var i = 0; i < arguments.length; i++) { - args.push(arguments[i]); - } - - var maybeCb = args.pop(); - if (typeof maybeCb !== 'function') { - throw new TypeError('The last argument must be of type Function'); - } - var self = this; - var cb = function() { - return maybeCb.apply(self, arguments); - }; - // In true node style we process the callback on `nextTick` with all the - // implications (stack, `uncaughtException`, `async_hooks`) - original.apply(this, args) - .then(function(ret) { process.nextTick(cb.bind(null, null, ret)) }, - function(rej) { process.nextTick(callbackifyOnRejected.bind(null, rej, cb)) }); - } - - Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original)); - Object.defineProperties(callbackified, - getOwnPropertyDescriptors(original)); - return callbackified; + return string; } -exports.callbackify = callbackify; - - -/***/ }), - -/***/ "../../../node_modules/which-typed-array/index.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var forEach = __webpack_require__("../../../node_modules/for-each/index.js"); -var availableTypedArrays = __webpack_require__("../../../node_modules/available-typed-arrays/index.js"); -var callBind = __webpack_require__("../../../node_modules/call-bind/index.js"); -var callBound = __webpack_require__("../../../node_modules/call-bind/callBound.js"); -var gOPD = __webpack_require__("../../../node_modules/gopd/index.js"); - -var $toString = callBound('Object.prototype.toString'); -var hasToStringTag = __webpack_require__("../../../node_modules/has-tostringtag/shams.js")(); - -var g = typeof globalThis === 'undefined' ? __webpack_require__.g : globalThis; -var typedArrays = availableTypedArrays(); - -var $slice = callBound('String.prototype.slice'); -var getPrototypeOf = Object.getPrototypeOf; // require('getprototypeof'); - -var $indexOf = callBound('Array.prototype.indexOf', true) || function indexOf(array, value) { - for (var i = 0; i < array.length; i += 1) { - if (array[i] === value) { - return i; - } - } - return -1; -}; -var cache = { __proto__: null }; -if (hasToStringTag && gOPD && getPrototypeOf) { - forEach(typedArrays, function (typedArray) { - var arr = new g[typedArray](); - if (Symbol.toStringTag in arr) { - var proto = getPrototypeOf(arr); - var descriptor = gOPD(proto, Symbol.toStringTag); - if (!descriptor) { - var superProto = getPrototypeOf(proto); - descriptor = gOPD(superProto, Symbol.toStringTag); - } - cache['$' + typedArray] = callBind(descriptor.get); - } - }); -} else { - forEach(typedArrays, function (typedArray) { - var arr = new g[typedArray](); - var fn = arr.slice || arr.set; - if (fn) { - cache['$' + typedArray] = callBind(fn); - } - }); -} - -var tryTypedArrays = function tryAllTypedArrays(value) { - var found = false; - forEach(cache, function (getter, typedArray) { - if (!found) { - try { - if ('$' + getter(value) === typedArray) { - found = $slice(typedArray, 1); - } - } catch (e) { /**/ } - } - }); - return found; -}; - -var trySlices = function tryAllSlices(value) { - var found = false; - forEach(cache, function (getter, name) { - if (!found) { - try { - getter(value); - found = $slice(name, 1); - } catch (e) { /**/ } - } - }); - return found; -}; - -module.exports = function whichTypedArray(value) { - if (!value || typeof value !== 'object') { return false; } - if (!hasToStringTag) { - var tag = $slice($toString(value), 8, -1); - if ($indexOf(typedArrays, tag) > -1) { - return tag; - } - if (tag !== 'Object') { - return false; - } - // node < 0.6 hits here on real Typed Arrays - return trySlices(value); - } - if (!gOPD) { return null; } // unknown engine - return tryTypedArrays(value); -}; - - -/***/ }), - -/***/ "../../../node_modules/doctrine/package.json": -/***/ ((module) => { - -"use strict"; -module.exports = {"rE":"3.0.0"}; +/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (dedent))); +//# sourceMappingURL=index.js.map /***/ }) }]); -//# sourceMappingURL=8932.816fbbbd.iframe.bundle.js.map \ No newline at end of file +//# sourceMappingURL=2114.ca9bcca4.iframe.bundle.js.map \ No newline at end of file diff --git a/2114.ca9bcca4.iframe.bundle.js.map b/2114.ca9bcca4.iframe.bundle.js.map new file mode 100644 index 000000000..6da9d2869 --- /dev/null +++ b/2114.ca9bcca4.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"2114.ca9bcca4.iframe.bundle.js","mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACj2BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;;;;;;;;;;AC7rkBA;AACA;AACA;;;;;;;;;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;ACLA;AACA;AACA;AACA;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;ACPA;;;;;;;;;;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;ACVA;;;;;;;;;;;;;;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA4BA;;;;;;;;;;;;;;;;;;;;;;;;;;;AC91EA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA0BA;;;;;;;;;;;;AC95GA;AACA;AACA;;;;;;;;;;;;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;ACbA;AACA;;;;;;;;ACDA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACvgFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACzBA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://lightning-ui-docs/../../../node_modules/@lightningjs/core/devtools/lightning-inspect.js","webpack://lightning-ui-docs/../../../node_modules/@lightningjs/core/dist/lightning.esm.js","webpack://lightning-ui-docs/../../../node_modules/@storybook/addon-docs/dist/chunk-H6MOWX77.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/addon-docs/dist/preview.mjs","webpack://lightning-ui-docs/../../../node_modules/uuid/dist/esm-browser/native.js","webpack://lightning-ui-docs/../../../node_modules/uuid/dist/esm-browser/rng.js","webpack://lightning-ui-docs/../../../node_modules/uuid/dist/esm-browser/stringify.js","webpack://lightning-ui-docs/../../../node_modules/uuid/dist/esm-browser/v4.js","webpack://lightning-ui-docs/../../../node_modules/@storybook/addon-actions/dist/preview.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/addon-essentials/dist/actions/preview.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/addon-highlight/dist/preview.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/addon-essentials/dist/highlight/preview.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/core/dist/docs-tools/index.js","webpack://lightning-ui-docs/../../../node_modules/@storybook/core/dist/theming/index.js","webpack://lightning-ui-docs/../../../node_modules/@storybook/html/dist/chunk-CEH6MNVV.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/html/dist/entry-preview-docs.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/html/dist/chunk-EVBQXENU.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/html/dist/entry-preview.mjs","webpack://lightning-ui-docs/../../../node_modules/jsdoc-type-pratt-parser/dist/index.js","webpack://lightning-ui-docs/../../../node_modules/react/cjs/react.production.min.js","webpack://lightning-ui-docs/../../../node_modules/react/index.js","webpack://lightning-ui-docs/../../../node_modules/ts-dedent/esm/index.js"],"sourcesContent":["/*\n * If not stated otherwise in this file or this component's LICENSE file the\n * following copyright and licenses apply:\n *\n * Copyright 2020 Metrological\n *\n * Licensed under the Apache License, Version 2.0 (the License);\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nwindow.attachInspector = function({Application, Element, ElementCore, Stage, Component, ElementTexturizer, Texture}) {\n\n const isAlreadyAttached = window.hasOwnProperty('mutationCounter');\n if (isAlreadyAttached) {\n return;\n }\n\n window.mutationCounter = 0;\n window.mutatingChildren = false;\n var observer = new MutationObserver(function(mutations) {\n var fa = [\"x\", \"y\", \"w\", \"h\", \"alpha\", \"mountX\", \"mountY\", \"pivotX\", \"pivotY\", \"scaleX\", \"scaleY\", \"rotation\", \"visible\", \"clipping\", \"rect\", \"colorUl\", \"colorUr\", \"colorBl\", \"colorBr\", \"color\", \"borderWidthLeft\", \"borderWidthRight\", \"borderWidthTop\", \"borderWidthBottom\", \"borderWidth\", \"borderColorLeft\", \"borderColorRight\", \"borderColorTop\", \"borderColorBottom\", \"borderColor\", \"zIndex\", \"forceZIndexContext\", \"renderToTexture\", \"renderToTextureLazy\", \"renderOffscreen\", \"colorizeResultTexture\", \"texture\"];\n var fac = fa.map(function(v) {return v.toLowerCase()});\n\n mutations.forEach(function(mutation) {\n if (mutation.type == 'childList') {\n\n var node = mutation.target;\n var c = mutation.target.element;\n }\n\n if (mutation.type == 'attributes' && mutation.attributeName !== 'style' && mutation.attributeName !== 'class') {\n var n = mutation.attributeName.toLowerCase();\n var c = mutation.target.element;\n\n if (c.__ignore_attrib_changes === window.mutationCounter) {\n // Ignore attribute changes that were caused by actual value modifications by js.\n return;\n }\n\n var v = mutation.target.getAttribute(mutation.attributeName);\n\n if (n.startsWith(\"texture-\")) {\n if (c.displayedTexture) {\n const att = n.substr(8).split(\"_\")\n const camelCaseAtt = att[0] + att.slice(1).map(a => {\n return a.substr(0,1).toUpperCase() + a.substr(1).toLowerCase()\n }).join()\n\n c.displayedTexture[camelCaseAtt] = v\n }\n return\n }\n\n var index = fac.indexOf(n);\n if (index !== -1) {\n var rn = fa[index];\n var pv;\n try {\n if (v === null) {\n switch(rn) {\n case \"pivotX\":\n case \"pivotY\":\n pv = 0.5;\n break;\n case \"alpha\":\n case \"scaleX\":\n case \"scaleY\":\n pv = 1;\n break;\n case \"visible\":\n pv = true;\n break;\n case \"clipping\":\n pv = false;\n break;\n case \"rect\":\n pv = false;\n break;\n case \"zIndex\":\n pv = 0;\n break;\n case \"forceZIndexContext\":\n pv = false;\n break;\n case \"color\":\n pv = 0xffffffff;\n break;\n case \"colorUl\":\n case \"colorUr\":\n case \"colorBl\":\n case \"colorBr\":\n if (mutation.target.hasAttribute(\"color\")) {\n // This may happen when the separate values are combined.\n return;\n }\n pv = 0xffffffff;\n break;\n case \"renderToTexture\":\n pv = false\n break;\n case \"renderToTextureLazy\":\n pv = false\n break;\n case \"renderOffscreen\":\n pv = false\n break;\n case \"colorizeResultTexture\":\n pv = false\n break;\n default:\n pv = 0;\n }\n } else {\n switch(rn) {\n case \"color\":\n case \"colorUl\":\n case \"colorUr\":\n case \"colorBl\":\n case \"colorBr\":\n pv = parseInt(v, 16);\n break;\n case \"visible\":\n case \"clipping\":\n case \"rect\":\n case \"forceZIndexContext\":\n case \"renderToTexture\":\n case \"renderToTextureLazy\":\n case \"renderOffscreen\":\n case \"colorizeResultTexture\":\n pv = (v === \"true\");\n break;\n case \"texture\":\n pv = JSON.parse(v)\n break\n default:\n pv = parseFloat(v);\n if (isNaN(pv)) throw \"e\";\n }\n }\n\n var fv;\n switch(rn) {\n case \"color\":\n var f = ['colorUl','colorUr','colorBl','colorBr'].map(function(q) {\n return mutation.target.hasAttribute(q);\n });\n\n if (!f[0]) c[\"colorUl\"] = pv;\n if (!f[1]) c[\"colorUr\"] = pv;\n if (!f[2]) c[\"colorBl\"] = pv;\n if (!f[3]) c[\"colorBr\"] = pv;\n break;\n default:\n c[rn] = pv;\n }\n\n // Set final value, not the transitioned value.\n } catch(e) {\n console.error('Bad (ignored) attribute value', rn);\n }\n }\n }\n });\n\n window.mutationCounter++;\n });\n\n ElementCore.prototype.dhtml = function() {\n return this._element.dhtml();\n }\n\n Element.prototype.dhtml = function() {\n if (!this.debugElement) {\n this.debugElement = document.createElement('DIV');\n this.debugElement.setAttribute('type', this.constructor.name);\n this.debugElement.element = this;\n this.debugElement.style.position = 'absolute';\n\n this.debugElement.id = \"\" + this.id;\n observer.observe(this.debugElement, {attributes: true});\n }\n if (this.stage.root === this && !this.dhtml_root) {\n // Root element.\n var root = document.createElement('DIV');\n document.body.appendChild(root);\n var self = this;\n let updateRootStyleFromCanvas = function (bcr) {\n const p = self.stage.getRenderPrecision() / self.stage.getOption('devicePixelRatio');\n root.style.left = bcr.left + 'px';\n root.style.top = bcr.top + 'px';\n root.style.width = Math.ceil(bcr.width / p) + 'px';\n root.style.height = Math.ceil(bcr.height / p) + 'px';\n root.style.transformOrigin = '0 0 0';\n root.style.transform = 'scale(' + p + ',' + p + ')';\n }\n\n if (window.ResizeObserver != null) {\n const resize_ob = new ResizeObserver(function (entries) {\n updateRootStyleFromCanvas(entries[0].target.getBoundingClientRect());\n });\n // start observing for resize\n resize_ob.observe(this.stage.getCanvas());\n } else {\n setTimeout(function () {\n updateRootStyleFromCanvas(self.stage.getCanvas().getBoundingClientRect());\n }, 1000);\n }\n\n root.style.position = 'absolute';\n root.style.overflow = 'hidden';\n root.style.zIndex = '65535';\n root.appendChild(this.debugElement);\n\n this.dhtml_root = root;\n }\n return this.debugElement;\n };\n\n var oElement = Element;\n\n var oSetParent = oElement.prototype._setParent;\n Element.prototype._setParent = function(parent) {\n var prevParent = this.parent;\n oSetParent.apply(this, arguments);\n\n if (!window.mutatingChildren) {\n if (parent && parent.dhtml) {\n var index = parent._children.getIndex(this);\n if (index == parent._children.get().length - 1) {\n parent.dhtml().appendChild(this.dhtml());\n } else {\n parent.dhtml().insertBefore(this.dhtml(), parent.dhtml().children[index]);\n }\n } else {\n if (prevParent && prevParent.dhtml) {\n prevParent.dhtml().removeChild(this.dhtml());\n }\n }\n }\n };\n\n var oInit = Stage.prototype.init;\n Stage.prototype.init = function() {\n oInit.apply(this, arguments);\n\n // Apply stage scaling.\n this.root.core.updateDebugTransforms();\n };\n\n var oAddTag = oElement.prototype.addTag;\n Element.prototype.addTag = function(tag) {\n oAddTag.apply(this, arguments);\n\n if (tag) {\n this.dhtml().classList.add(tag);\n }\n };\n\n var oRemoveTag = oElement.prototype.removeTag;\n Element.prototype.removeTag = function(tag) {\n oRemoveTag.apply(this, arguments);\n\n if (tag) {\n this.dhtml().classList.remove(tag);\n }\n };\n\n// Change an attribute due to new value inputs.\n var val = function(c, n, v, dv) {\n if (c._element) {\n c = c._element;\n }\n if (v == dv) {\n if (c.dhtmlRemoveAttribute) {\n c.dhtmlRemoveAttribute(n);\n }\n } else {\n if (c.dhtmlSetAttribute) {\n c.dhtmlSetAttribute(n, v);\n }\n }\n };\n\n var valStrict = function(c, n, v, dv) {\n if (c._element) {\n c = c._element;\n }\n if (v === dv) {\n if (c.dhtmlRemoveAttribute) {\n c.dhtmlRemoveAttribute(n);\n }\n } else {\n if (c.dhtmlSetAttribute) {\n c.dhtmlSetAttribute(n, v);\n }\n }\n };\n\n Element.prototype.dhtmlRemoveAttribute = function() {\n // We don't want the attribute listeners to be called during the next observer cycle.\n this.__ignore_attrib_changes = window.mutationCounter;\n this.dhtml().removeAttribute.apply(this.dhtml(), arguments);\n };\n\n Element.prototype.dhtmlSetAttribute = function() {\n this.__ignore_attrib_changes = window.mutationCounter;\n this.dhtml().setAttribute.apply(this.dhtml(), arguments);\n };\n\n if (typeof Component !== \"undefined\") {\n Object.defineProperty(Component.prototype, '_state', {\n get: function() {\n return this.__state;\n },\n set: function(v) {\n if (this.__state !== v) {\n if (this.__state !== null) { // Ignore initial.\n val(this, 'state', v ? v.__path : \"\", \"\");\n }\n this.__state = v;\n }\n }\n });\n }\n\n Element.prototype.$ref = Element.prototype.__ref;\n Object.defineProperty(Element.prototype, '__ref', {\n get: function() {\n return this.$ref;\n },\n set: function(v) {\n if (this.$ref !== v) {\n val(this, 'ref', v, null);\n this.$ref = v;\n }\n }\n });\n\n ElementCore.prototype.$x = ElementCore.prototype._x;\n Object.defineProperty(ElementCore.prototype, '_x', {\n get: function() {\n return this.$x;\n },\n set: function(v) {\n if (this.$x !== v) {\n val(this, 'x', v, 0);\n this.$x = v;\n this.updateLeft();\n }\n }\n });\n\n ElementCore.prototype.$y = ElementCore.prototype._y;\n Object.defineProperty(ElementCore.prototype, '_y', {\n get: function() {\n return this.$y;\n },\n set: function(v) {\n if (this.$y !== v) {\n val(this, 'y', v, 0);\n this.$y = v;\n this.updateTop();\n }\n }\n });\n\n Element.prototype.$w = Element.prototype._w;\n Object.defineProperty(Element.prototype, '_w', {\n get: function() {\n return this.$w;\n },\n set: function(v) {\n if (this.$w !== v) {\n val(this, 'w', v, 0);\n this.$w = v;\n }\n }\n });\n\n Element.prototype.$h = Element.prototype._h;\n Object.defineProperty(Element.prototype, '_h', {\n get: function() {\n return this.$h;\n },\n set: function(v) {\n if (this.$h !== v) {\n val(this, 'h', v, 0);\n this.$h = v;\n }\n }\n });\n\n ElementCore.prototype.updateLeft = function() {\n var mx = this._mountX * this._w;\n var x = this._x - mx;\n this.dhtml().style.left = x + 'px';\n };\n\n ElementCore.prototype.updateTop = function() {\n var my = this._mountY * this._h;\n var y = this._y - my;\n this.dhtml().style.top = y + 'px';\n };\n\n ElementCore.prototype.__w = 0;\n Object.defineProperty(ElementCore.prototype, '_w', {\n get: function() {\n return this.__w;\n },\n set: function(v) {\n this.__w = v;\n this.dhtml().style.width = v + 'px';\n this.updateLeft();\n }\n });\n\n ElementCore.prototype.__h = 0;\n Object.defineProperty(ElementCore.prototype, '_h', {\n get: function() {\n return this.__h;\n },\n set: function(v) {\n this.__h = v;\n this.dhtml().style.height = v + 'px';\n this.updateTop();\n }\n });\n\n ElementCore.prototype.$alpha = 1;\n Object.defineProperty(ElementCore.prototype, '_alpha', {\n get: function() {\n return this.$alpha;\n },\n set: function(v) {\n if (this.$alpha !== v) {\n val(this, 'alpha', v, 1);\n this.$alpha = v;\n this.dhtml().style.opacity = v;\n this.dhtml().style.display = this.$visible && this.$alpha ? 'block' : 'none';\n }\n }\n });\n\n ElementCore.prototype.$visible = true;\n Object.defineProperty(ElementCore.prototype, '_visible', {\n get: function() {\n return this.$visible;\n },\n set: function(v) {\n if (this.$visible !== v) {\n val(this, 'visible', v, true);\n this.$visible = v;\n this.dhtml().style.visibility = v ? 'visible' : 'hidden';\n this.dhtml().style.display = this.$visible && this.$alpha ? 'block' : 'none';\n }\n }\n });\n\n ElementCore.prototype.$rotation = 0;\n Object.defineProperty(ElementCore.prototype, '_rotation', {\n get: function() {\n return this.$rotation;\n },\n set: function(v) {\n if (this.$rotation !== v) {\n val(this, 'rotation', v, 0);\n this.$rotation = v;\n this.updateDebugTransforms();\n }\n }\n });\n\n\n ElementCore.prototype.$scaleX = 1;\n Object.defineProperty(ElementCore.prototype, '_scaleX', {\n get: function() {\n return this.$scaleX;\n },\n set: function(v) {\n if (this.$scaleX !== v) {\n val(this, 'scaleX', v, 1);\n this.$scaleX = v;\n this.updateDebugTransforms();\n }\n }\n });\n\n ElementCore.prototype.$scaleY = 1;\n Object.defineProperty(ElementCore.prototype, '_scaleY', {\n get: function() {\n return this.$scaleY;\n },\n set: function(v) {\n if (this.$scaleY !== v) {\n val(this, 'scaleY', v, 1);\n this.$scaleY = v;\n this.updateDebugTransforms();\n }\n }\n });\n\n ElementCore.prototype.$pivotX = 0.5;\n Object.defineProperty(ElementCore.prototype, '_pivotX', {\n get: function() {\n return this.$pivotX;\n },\n set: function(v) {\n if (this.$pivotX !== v) {\n val(this, 'pivotX', v, 0.5);\n this.$pivotX = v;\n this.updateDebugTransforms();\n }\n }\n });\n\n ElementCore.prototype.$pivotY = 0.5;\n Object.defineProperty(ElementCore.prototype, '_pivotY', {\n get: function() {\n return this.$pivotY;\n },\n set: function(v) {\n if (this.$pivotY !== v) {\n val(this, 'pivotY', v, 0.5);\n this.$pivotY = v;\n this.updateDebugTransforms();\n }\n }\n });\n\n ElementCore.prototype.$mountX = 0;\n Object.defineProperty(ElementCore.prototype, '_mountX', {\n get: function() {\n return this.$mountX;\n },\n set: function(v) {\n if (this.$mountX !== v) {\n val(this, 'mountX', v, 0);\n this.$mountX = v;\n this.updateLeft();\n }\n }\n });\n\n ElementCore.prototype.$mountY = 0;\n Object.defineProperty(ElementCore.prototype, '_mountY', {\n get: function() {\n return this.$mountY;\n },\n set: function(v) {\n if (this.$mountY !== v) {\n val(this, 'mountY', v, 0);\n this.$mountY = v;\n this.updateTop();\n }\n }\n });\n\n ElementCore.prototype.__zIndex = 0;\n Object.defineProperty(ElementCore.prototype, '_zIndex', {\n get: function() {\n return this.__zIndex;\n },\n set: function(v) {\n if (this.__zIndex !== v) {\n val(this, 'zIndex', v, 0);\n this.__zIndex = v;\n if (this.__zIndex || v) {\n this.dhtml().style.zIndex = v;\n }\n }\n }\n });\n\n ElementCore.prototype.__forceZIndexContext = false;\n Object.defineProperty(ElementCore.prototype, '_forceZIndexContext', {\n get: function() {\n return this.__forceZIndexContext;\n },\n set: function(v) {\n if (this.__forceZIndexContext !== v) {\n val(this, 'forceZIndexContext', v, false);\n this.__forceZIndexContext = v;\n }\n }\n });\n\n ElementCore.prototype.__clipping = false;\n Object.defineProperty(ElementCore.prototype, '_clipping', {\n get: function() {\n return this.__clipping;\n },\n set: function(v) {\n if (this.__clipping !== v) {\n val(this, 'clipping', v, false);\n this.__clipping = v;\n var nv = v ? 'hidden' : 'visible';\n if (v || !v && (this.dhtml().style.overflow == 'hidden')) {\n this.dhtml().style.overflow = nv;\n }\n }\n }\n });\n\n ElementCore.prototype.__withinBoundsMargin = false;\n Object.defineProperty(ElementCore.prototype, '_withinBoundsMargin', {\n get: function() {\n return this.__withinBoundsMargin;\n },\n set: function(v) {\n if (this.__withinBoundsMargin !== v) {\n val(this, 'withinBoundsMargin', v, false);\n this.__withinBoundsMargin = v;\n }\n }\n });\n\n ElementCore.prototype.__colorUl = 0xFFFFFFFF;\n Object.defineProperty(ElementCore.prototype, '_colorUl', {\n get: function() {\n return this.__colorUl;\n },\n set: function(v) {\n if (this.__colorUl !== v) {\n val(this, 'colorUl', v.toString(16), \"ffffffff\");\n this.__colorUl = v;\n checkColors(this);\n }\n }\n });\n\n ElementCore.prototype.__colorUr = 0xFFFFFFFF;\n Object.defineProperty(ElementCore.prototype, '_colorUr', {\n get: function() {\n return this.__colorUr;\n },\n set: function(v) {\n if (this.__colorUr !== v) {\n val(this, 'colorUr', v.toString(16), \"ffffffff\");\n this.__colorUr = v;\n checkColors(this);\n }\n }\n });\n\n ElementCore.prototype.__colorBl = 0xFFFFFFFF;\n Object.defineProperty(ElementCore.prototype, '_colorBl', {\n get: function() {\n return this.__colorBl;\n },\n set: function(v) {\n if (this.__colorBl !== v) {\n val(this, 'colorBl', v.toString(16), \"ffffffff\");\n this.__colorBl = v;\n checkColors(this);\n }\n }\n });\n\n ElementCore.prototype.__colorBr = 0xFFFFFFFF;\n Object.defineProperty(ElementCore.prototype, '_colorBr', {\n get: function() {\n return this.__colorBr;\n },\n set: function(v) {\n if (this.__colorBr !== v) {\n val(this, 'colorBr', v.toString(16), \"ffffffff\");\n this.__colorBr = v;\n checkColors(this);\n }\n }\n });\n\n Element.prototype.$texture = null;\n Object.defineProperty(Element.prototype, '__texture', {\n get: function() {\n return this.$texture;\n },\n set: function(v) {\n this.$texture = v;\n\n val(this, 'rect', this.rect, false);\n val(this, 'src', this.src, null);\n }\n });\n\n Element.prototype.$testId = null;\n Object.defineProperty(Element.prototype, 'testId', {\n get: function() {\n return this.$testId;\n },\n set: function(v) {\n if (this.$testId !== v) {\n this.$testId = v;\n val(this, 'data-testid', v, null);\n }\n }\n });\n\n var checkColors = function(elementRenderer) {\n let element = elementRenderer._element;\n if (elementRenderer._colorBr === undefined) {\n // Element initialization.\n return;\n }\n\n if (elementRenderer._colorUl === elementRenderer._colorUr && elementRenderer._colorUl === elementRenderer._colorBl && elementRenderer._colorUl === elementRenderer._colorBr) {\n if (elementRenderer._colorUl !== 0xffffffff) {\n element.dhtmlSetAttribute('color', elementRenderer._colorUl.toString(16));\n } else {\n element.dhtmlRemoveAttribute('color');\n }\n element.dhtmlRemoveAttribute('colorul');\n element.dhtmlRemoveAttribute('colorur');\n element.dhtmlRemoveAttribute('colorbl');\n element.dhtmlRemoveAttribute('colorbr');\n } else {\n val(element, 'colorUr', elementRenderer.colorUr.toString(16), \"ffffffff\");\n val(element, 'colorUl', elementRenderer.colorUl.toString(16), \"ffffffff\");\n val(element, 'colorBr', elementRenderer.colorBr.toString(16), \"ffffffff\");\n val(element, 'colorBl', elementRenderer.colorBl.toString(16), \"ffffffff\");\n element.dhtmlRemoveAttribute('color');\n }\n };\n\n ElementTexturizer.prototype.__enabled = false;\n Object.defineProperty(ElementTexturizer.prototype, '_enabled', {\n get: function() {\n return this.__enabled;\n },\n set: function(v) {\n if (this.__enabled !== v) {\n val(this, 'renderToTexture', v, false);\n this.__enabled = v;\n }\n }\n });\n\n ElementTexturizer.prototype.__lazy = false;\n Object.defineProperty(ElementTexturizer.prototype, '_lazy', {\n get: function() {\n return this.__lazy;\n },\n set: function(v) {\n if (this.__lazy !== v) {\n val(this, 'renderToTextureLazy', v, false);\n this.__lazy = v;\n }\n }\n });\n\n ElementTexturizer.prototype.__colorize = false;\n Object.defineProperty(ElementTexturizer.prototype, '_colorize', {\n get: function() {\n return this.__colorize;\n },\n set: function(v) {\n if (this.__colorize !== v) {\n val(this, 'colorizeResultTexture', v, false);\n this.__colorize = v;\n }\n }\n });\n\n ElementTexturizer.prototype.__renderOffscreen = false;\n Object.defineProperty(ElementTexturizer.prototype, '_renderOffscreen', {\n get: function() {\n return this.__renderOffscreen;\n },\n set: function(v) {\n if (this.__renderOffscreen !== v) {\n val(this, 'renderOffscreen', v, false);\n this.__renderOffscreen = v;\n }\n }\n });\n\n ElementCore.prototype.updateDebugTransforms = function() {\n const stage = this._element.stage\n\n if (this._pivotX !== 0.5 || this._pivotY !== 0.5) {\n this.dhtml().style.transformOrigin = (this._pivotX * 100) + '% ' + (this._pivotY * 100) + '%';\n } else if (this.dhtml().style.transformOrigin) {\n this.dhtml().style.transformOrigin = '50% 50%';\n }\n\n var r = this._rotation;\n var sx = this._scaleX;\n var sy = this._scaleY;\n\n if ((sx !== undefined && sy !== undefined) && (this._element.id === 0)) {\n // Root element: must be scaled.\n if (stage.options.w !== stage.options.renderWidth || stage.options.h !== stage.options.renderHeight) {\n sx *= (stage.options.w / stage.options.renderWidth);\n sy *= (stage.options.h / stage.options.renderHeight);\n }\n }\n var parts = [];\n if (r) parts.push('rotate(' + r + 'rad)');\n if ((sx !== undefined && sy !== undefined) && (sx !== 1 || sy !== 1)) parts.push('scale(' + sx + ', ' + sy + ')');\n\n this.dhtml().style.transform = parts.join(' ');\n };\n\n var updateTextureAttribs = function(element) {\n if (element.texture) {\n const nonDefaults = element.texture.getNonDefaults()\n const keys = Object.keys(nonDefaults)\n keys.forEach(key => {\n let f = \"\"\n for (let i = 0, n = key.length; i < n; i++) {\n const c = key.charAt(i)\n if (c !== c.toLowerCase()) {\n f += \"_\" + c.toLowerCase()\n } else {\n f += c\n }\n }\n valStrict(element, `texture-${f}`, nonDefaults[key], false);\n })\n }\n }\n\n const _performUpdateSource = Texture.prototype._performUpdateSource\n Texture.prototype._performUpdateSource = function() {\n _performUpdateSource.apply(this, arguments)\n this.elements.forEach(v => {\n updateTextureAttribs(v)\n })\n }\n\n const _setDisplayedTexture = Element.prototype._setDisplayedTexture\n Element.prototype._setDisplayedTexture = function() {\n _setDisplayedTexture.apply(this, arguments)\n updateTextureAttribs(this)\n }\n\n const _updateFocus = Application.prototype.__updateFocus\n Application.prototype.__updateFocus = function() {\n const prev = this._focusPath && this._focusPath.length ? this._focusPath[this._focusPath.length - 1] : null;\n _updateFocus.apply(this, arguments)\n const focused = this._focusPath && this._focusPath.length ? this._focusPath[this._focusPath.length - 1] : null;\n\n if (prev != focused) {\n if (prev) {\n val(prev, 'focused', false, false);\n }\n if (focused) {\n val(focused, 'focused', true, false);\n }\n }\n }\n};\n\nif (window.lng) {\n // Automatically attach inspector if lng was already loaded.\n attachInspector(lng);\n}\n","/*\n * Lightning v2.11.0\n *\n * https://github.com/rdkcentral/Lightning\n */\nclass StageUtils {\n static mergeNumbers(v1, v2, p) {\n return v1 * p + v2 * (1 - p);\n }\n static rgb(r, g, b) {\n return (r << 16) + (g << 8) + b + 255 * 16777216;\n }\n static rgba(r, g, b, a) {\n return (r << 16) + (g << 8) + b + (a * 255 | 0) * 16777216;\n }\n static getRgbString(color) {\n let r = (color / 65536 | 0) % 256;\n let g = (color / 256 | 0) % 256;\n let b = color % 256;\n return \"rgb(\" + r + \",\" + g + \",\" + b + \")\";\n }\n static getRgbaString(color) {\n let r = (color / 65536 | 0) % 256;\n let g = (color / 256 | 0) % 256;\n let b = color % 256;\n let a = (color / 16777216 | 0) / 255;\n return \"rgba(\" + r + \",\" + g + \",\" + b + \",\" + a.toFixed(4) + \")\";\n }\n static getRgbaStringFromArray(color) {\n let r = Math.floor(color[0] * 255);\n let g = Math.floor(color[1] * 255);\n let b = Math.floor(color[2] * 255);\n let a = Math.floor(color[3] * 255) / 255;\n return \"rgba(\" + r + \",\" + g + \",\" + b + \",\" + a.toFixed(4) + \")\";\n }\n static getRgbaComponentsNormalized(argb) {\n let r = (argb / 65536 | 0) % 256;\n let g = (argb / 256 | 0) % 256;\n let b = argb % 256;\n let a = argb / 16777216 | 0;\n return [r / 255, g / 255, b / 255, a / 255];\n }\n static getRgbComponentsNormalized(argb) {\n let r = (argb / 65536 | 0) % 256;\n let g = (argb / 256 | 0) % 256;\n let b = argb % 256;\n return [r / 255, g / 255, b / 255];\n }\n static getRgbaComponents(argb) {\n let r = (argb / 65536 | 0) % 256;\n let g = (argb / 256 | 0) % 256;\n let b = argb % 256;\n let a = argb / 16777216 | 0;\n return [r, g, b, a];\n }\n static getArgbNumber(rgba) {\n rgba[0] = Math.max(0, Math.min(255, rgba[0]));\n rgba[1] = Math.max(0, Math.min(255, rgba[1]));\n rgba[2] = Math.max(0, Math.min(255, rgba[2]));\n rgba[3] = Math.max(0, Math.min(255, rgba[3]));\n let v = ((rgba[3] | 0) << 24) + ((rgba[0] | 0) << 16) + ((rgba[1] | 0) << 8) + (rgba[2] | 0);\n if (v < 0) {\n v = 4294967295 + v + 1;\n }\n return v;\n }\n static mergeColors(c1, c2, p) {\n let r1 = (c1 / 65536 | 0) % 256;\n let g1 = (c1 / 256 | 0) % 256;\n let b1 = c1 % 256;\n let a1 = c1 / 16777216 | 0;\n let r2 = (c2 / 65536 | 0) % 256;\n let g2 = (c2 / 256 | 0) % 256;\n let b2 = c2 % 256;\n let a2 = c2 / 16777216 | 0;\n let r = r1 * p + r2 * (1 - p);\n let g = g1 * p + g2 * (1 - p);\n let b = b1 * p + b2 * (1 - p);\n let a = a1 * p + a2 * (1 - p);\n return Math.round(a) * 16777216 + Math.round(r) * 65536 + Math.round(g) * 256 + Math.round(b);\n }\n static mergeMultiColors(c, p) {\n let r = 0, g = 0, b = 0, a = 0, t = 0;\n let n = c.length;\n for (let i = 0; i < n; i++) {\n let r1 = (c[i] / 65536 | 0) % 256;\n let g1 = (c[i] / 256 | 0) % 256;\n let b1 = c[i] % 256;\n let a1 = c[i] / 16777216 | 0;\n r += r1 * p[i];\n g += g1 * p[i];\n b += b1 * p[i];\n a += a1 * p[i];\n t += p[i];\n }\n t = 1 / t;\n return Math.round(a * t) * 16777216 + Math.round(r * t) * 65536 + Math.round(g * t) * 256 + Math.round(b * t);\n }\n static mergeMultiColorsEqual(c) {\n let r = 0, g = 0, b = 0, a = 0, t = 0;\n let n = c.length;\n for (let i = 0; i < n; i++) {\n let r1 = (c[i] / 65536 | 0) % 256;\n let g1 = (c[i] / 256 | 0) % 256;\n let b1 = c[i] % 256;\n let a1 = c[i] / 16777216 | 0;\n r += r1;\n g += g1;\n b += b1;\n a += a1;\n t += 1;\n }\n t = 1 / t;\n return Math.round(a * t) * 16777216 + Math.round(r * t) * 65536 + Math.round(g * t) * 256 + Math.round(b * t);\n }\n static mergeColorAlpha(c, alpha) {\n let a = (c / 16777216 | 0) * alpha | 0;\n return ((c >> 16 & 255) * a / 255 & 255) + ((c & 65280) * a / 255 & 65280) + (((c & 255) << 16) * a / 255 & 16711680) + (a << 24);\n }\n static rad(deg) {\n return deg * (Math.PI / 180);\n }\n static getTimingBezier(a, b, c, d) {\n let xc = 3 * a;\n let xb = 3 * (c - a) - xc;\n let xa = 1 - xc - xb;\n let yc = 3 * b;\n let yb = 3 * (d - b) - yc;\n let ya = 1 - yc - yb;\n return function(time) {\n if (time >= 1) {\n return 1;\n }\n if (time <= 0) {\n return 0;\n }\n let t = 0.5, cbx, cbxd, dx;\n for (let it = 0; it < 20; it++) {\n cbx = t * (t * (t * xa + xb) + xc);\n dx = time - cbx;\n if (dx > -1e-8 && dx < 1e-8) {\n return t * (t * (t * ya + yb) + yc);\n }\n cbxd = t * (t * (3 * xa) + 2 * xb) + xc;\n if (cbxd > 1e-10 && cbxd < 1e-10) {\n break;\n }\n t += dx / cbxd;\n }\n let minT = 0;\n let maxT = 1;\n for (let it = 0; it < 20; it++) {\n t = 0.5 * (minT + maxT);\n cbx = t * (t * (t * xa + xb) + xc);\n dx = time - cbx;\n if (dx > -1e-8 && dx < 1e-8) {\n return t * (t * (t * ya + yb) + yc);\n }\n if (dx < 0) {\n maxT = t;\n } else {\n minT = t;\n }\n }\n };\n }\n static getTimingFunction(str) {\n switch (str) {\n case \"linear\":\n return function(time) {\n return time;\n };\n case \"ease\":\n return StageUtils.getTimingBezier(0.25, 0.1, 0.25, 1);\n case \"ease-in\":\n return StageUtils.getTimingBezier(0.42, 0, 1, 1);\n case \"ease-out\":\n return StageUtils.getTimingBezier(0, 0, 0.58, 1);\n case \"ease-in-out\":\n return StageUtils.getTimingBezier(0.42, 0, 0.58, 1);\n case \"step-start\":\n return function() {\n return 1;\n };\n case \"step-end\":\n return function(time) {\n return time === 1 ? 1 : 0;\n };\n default:\n let s = \"cubic-bezier(\";\n if (str && str.indexOf(s) === 0) {\n let parts = str.substr(s.length, str.length - s.length - 1).split(\",\");\n if (parts.length !== 4) {\n console.warn(\"[Lightning] Unknown timing function: \" + str);\n return function(time) {\n return time;\n };\n }\n let a = parseFloat(parts[0]);\n let b = parseFloat(parts[1]);\n let c = parseFloat(parts[2]);\n let d = parseFloat(parts[3]);\n if (isNaN(a) || isNaN(b) || isNaN(c) || isNaN(d)) {\n console.warn(\"[Lightning] Unknown timing function: \" + str);\n return function(time) {\n return time;\n };\n }\n return StageUtils.getTimingBezier(a, b, c, d);\n } else {\n console.warn(\"[Lightning] Unknown timing function: \" + str);\n return function(time) {\n return time;\n };\n }\n }\n }\n}\nlet Utils$1 = class Utils {\n static isFunction(value) {\n return typeof value === \"function\";\n }\n static isNumber(value) {\n return typeof value === \"number\";\n }\n static isInteger(value) {\n return typeof value === \"number\" && value % 1 === 0;\n }\n static isBoolean(value) {\n return value === true || value === false;\n }\n static isString(value) {\n return typeof value === \"string\";\n }\n static clone(v) {\n if (Utils$1.isObjectLiteral(v) || Array.isArray(v)) {\n return Utils$1.getDeepClone(v);\n } else {\n return v;\n }\n }\n static cloneObjShallow(obj) {\n let keys = Object.keys(obj);\n let clone = {};\n for (let i = 0; i < keys.length; i++) {\n clone[keys[i]] = obj[keys[i]];\n }\n return clone;\n }\n static merge(obj1, obj2) {\n let keys = Object.keys(obj2);\n for (let i = 0; i < keys.length; i++) {\n obj1[keys[i]] = obj2[keys[i]];\n }\n return obj1;\n }\n static isObject(value) {\n let type = typeof value;\n return !!value && (type === \"object\" || type === \"function\");\n }\n static isPlainObject(value) {\n let type = typeof value;\n return !!value && type === \"object\";\n }\n static isObjectLiteral(value) {\n return typeof value === \"object\" && value && value.constructor === Object;\n }\n static getArrayIndex(index, arr) {\n return Utils$1.getModuloIndex(index, arr.length);\n }\n static getModuloIndex(index, len) {\n if (len === 0)\n return index;\n while (index < 0) {\n index += Math.ceil(-index / len) * len;\n }\n index = index % len;\n return index;\n }\n static getDeepClone(obj) {\n let i, c;\n if (Utils$1.isFunction(obj)) {\n return obj;\n }\n if (Array.isArray(obj)) {\n c = [];\n let keys = Object.keys(obj);\n for (i = 0; i < keys.length; i++) {\n c[keys[i]] = Utils$1.getDeepClone(obj[keys[i]]);\n }\n return c;\n } else if (Utils$1.isObject(obj)) {\n c = {};\n let keys = Object.keys(obj);\n for (i = 0; i < keys.length; i++) {\n c[keys[i]] = Utils$1.getDeepClone(obj[keys[i]]);\n }\n return c;\n } else {\n return obj;\n }\n }\n static equalValues(v1, v2) {\n if (typeof v1 !== typeof v2)\n return false;\n if (Utils$1.isObjectLiteral(v1)) {\n return Utils$1.isObjectLiteral(v2) && Utils$1.equalObjectLiterals(v1, v2);\n } else if (Array.isArray(v1)) {\n return Array.isArray(v2) && Utils$1.equalArrays(v1, v2);\n } else {\n return v1 === v2;\n }\n }\n static equalObjectLiterals(obj1, obj2) {\n let keys1 = Object.keys(obj1);\n let keys2 = Object.keys(obj2);\n if (keys1.length !== keys2.length) {\n return false;\n }\n for (let i = 0, n = keys1.length; i < n; i++) {\n const k1 = keys1[i];\n const k2 = keys2[i];\n if (k1 !== k2) {\n return false;\n }\n const v1 = obj1[k1];\n const v2 = obj2[k2];\n if (!Utils$1.equalValues(v1, v2)) {\n return false;\n }\n }\n return true;\n }\n static equalArrays(v1, v2) {\n if (v1.length !== v2.length) {\n return false;\n }\n for (let i = 0, n = v1.length; i < n; i++) {\n if (!this.equalValues(v1[i], v2[i])) {\n return false;\n }\n }\n return true;\n }\n static setToArray(s) {\n let result = [];\n s.forEach(function(value) {\n result.push(value);\n });\n return result;\n }\n static iteratorToArray(iterator) {\n let result = [];\n let iteratorResult = iterator.next();\n while (!iteratorResult.done) {\n result.push(iteratorResult.value);\n iteratorResult = iterator.next();\n }\n return result;\n }\n static isUcChar(charcode) {\n return charcode >= 65 && charcode <= 90;\n }\n};\nUtils$1.isWeb = typeof window !== \"undefined\" && typeof sparkscene === \"undefined\";\nUtils$1.isWPE = Utils$1.isWeb && navigator.userAgent.indexOf(\"WPE\") !== -1;\nUtils$1.isSpark = typeof sparkscene !== \"undefined\";\nUtils$1.isNode = typeof window === \"undefined\" || Utils$1.isSpark;\nUtils$1.isPS4 = Utils$1.isWeb && navigator.userAgent.indexOf(\"PlayStation 4\") !== -1;\nUtils$1.isZiggo = Utils$1.isWeb && (navigator.userAgent.indexOf(\"EOSSTB\") !== -1 || navigator.userAgent.indexOf(\"HZNSTB\") !== -1);\nclass Base {\n static defaultSetter(obj, name, value) {\n obj[name] = value;\n }\n static patchObject(obj, settings) {\n if (!Utils$1.isObjectLiteral(settings)) {\n console.error(\"[Lightning] Settings must be object literal\");\n } else {\n let names = Object.keys(settings);\n for (let i = 0, n = names.length; i < n; i++) {\n let name = names[i];\n this.patchObjectProperty(obj, name, settings[name]);\n }\n }\n }\n static patchObjectProperty(obj, name, value) {\n let setter = obj.setSetting || Base.defaultSetter;\n if (name.charAt(0) === \"_\") {\n if (name !== \"__create\") {\n console.error(\"[Lightning] Patch of private property '\" + name + \"' is not allowed\");\n }\n } else if (name !== \"type\") {\n if (Utils$1.isFunction(value) && value.__local) {\n value = value.__local(obj);\n }\n setter(obj, name, value);\n }\n }\n static local(func) {\n func.__local = true;\n }\n}\nclass SpacingCalculator {\n static getSpacing(mode, numberOfItems, remainingSpace) {\n const itemGaps = numberOfItems - 1;\n let spacePerGap;\n let spacingBefore, spacingBetween;\n switch (mode) {\n case \"flex-start\":\n spacingBefore = 0;\n spacingBetween = 0;\n break;\n case \"flex-end\":\n spacingBefore = remainingSpace;\n spacingBetween = 0;\n break;\n case \"center\":\n spacingBefore = remainingSpace / 2;\n spacingBetween = 0;\n break;\n case \"space-between\":\n spacingBefore = 0;\n spacingBetween = Math.max(0, remainingSpace) / itemGaps;\n break;\n case \"space-around\":\n if (remainingSpace < 0) {\n return this.getSpacing(\"center\", numberOfItems, remainingSpace);\n } else {\n spacePerGap = remainingSpace / (itemGaps + 1);\n spacingBefore = 0.5 * spacePerGap;\n spacingBetween = spacePerGap;\n }\n break;\n case \"space-evenly\":\n if (remainingSpace < 0) {\n return this.getSpacing(\"center\", numberOfItems, remainingSpace);\n } else {\n spacePerGap = remainingSpace / (itemGaps + 2);\n spacingBefore = spacePerGap;\n spacingBetween = spacePerGap;\n }\n break;\n case \"stretch\":\n spacingBefore = 0;\n spacingBetween = 0;\n break;\n default:\n throw new Error(\"Unknown mode: \" + mode);\n }\n return { spacingBefore, spacingBetween };\n }\n}\nclass ContentAligner {\n constructor(layout) {\n this._layout = layout;\n this._totalCrossAxisSize = 0;\n }\n get _lines() {\n return this._layout._lines;\n }\n init() {\n this._totalCrossAxisSize = this._getTotalCrossAxisSize();\n }\n align() {\n const crossAxisSize = this._layout.crossAxisSize;\n const remainingSpace = crossAxisSize - this._totalCrossAxisSize;\n const { spacingBefore, spacingBetween } = this._getSpacing(remainingSpace);\n const lines = this._lines;\n const mode = this._layout._flexContainer.alignContent;\n let growSize = 0;\n if (mode === \"stretch\" && lines.length && remainingSpace > 0) {\n growSize = remainingSpace / lines.length;\n }\n let currentPos = spacingBefore;\n for (let i = 0, n = lines.length; i < n; i++) {\n const crossAxisLayoutOffset = currentPos;\n const aligner = lines[i].createItemAligner();\n let finalCrossAxisLayoutSize = lines[i].crossAxisLayoutSize + growSize;\n aligner.setCrossAxisLayoutSize(finalCrossAxisLayoutSize);\n aligner.setCrossAxisLayoutOffset(crossAxisLayoutOffset);\n aligner.align();\n if (aligner.recursiveResizeOccured) {\n lines[i].setItemPositions();\n }\n currentPos += finalCrossAxisLayoutSize;\n currentPos += spacingBetween;\n }\n }\n get totalCrossAxisSize() {\n return this._totalCrossAxisSize;\n }\n _getTotalCrossAxisSize() {\n const lines = this._lines;\n let total = 0;\n for (let i = 0, n = lines.length; i < n; i++) {\n const line = lines[i];\n total += line.crossAxisLayoutSize;\n }\n return total;\n }\n _getSpacing(remainingSpace) {\n const mode = this._layout._flexContainer.alignContent;\n const numberOfItems = this._lines.length;\n return SpacingCalculator.getSpacing(mode, numberOfItems, remainingSpace);\n }\n}\nclass FlexUtils {\n static getParentAxisSizeWithPadding(item, horizontal) {\n const target = item.target;\n const parent = target.getParent();\n if (!parent) {\n return 0;\n } else {\n const flexParent = item.flexParent;\n if (flexParent) {\n return this.getAxisLayoutSize(flexParent, horizontal) + this.getTotalPadding(flexParent, horizontal);\n } else {\n return horizontal ? parent.w : parent.h;\n }\n }\n }\n static getRelAxisSize(item, horizontal) {\n if (horizontal) {\n if (item.funcW) {\n if (this._allowRelAxisSizeFunction(item, true)) {\n return item.funcW(this.getParentAxisSizeWithPadding(item, true));\n } else {\n return 0;\n }\n } else {\n return item.originalWidth;\n }\n } else {\n if (item.funcH) {\n if (this._allowRelAxisSizeFunction(item, false)) {\n return item.funcH(this.getParentAxisSizeWithPadding(item, false));\n } else {\n return 0;\n }\n } else {\n return item.originalHeight;\n }\n }\n }\n static _allowRelAxisSizeFunction(item, horizontal) {\n const flexParent = item.flexParent;\n if (flexParent && flexParent._flex._layout.isAxisFitToContents(horizontal)) {\n return false;\n }\n return true;\n }\n static isZeroAxisSize(item, horizontal) {\n if (horizontal) {\n return !item.originalWidth && !item.funcW;\n } else {\n return !item.originalHeight && !item.funcH;\n }\n }\n static getAxisLayoutPos(item, horizontal) {\n return horizontal ? item.x : item.y;\n }\n static getAxisLayoutSize(item, horizontal) {\n return horizontal ? item.w : item.h;\n }\n static setAxisLayoutPos(item, horizontal, pos) {\n if (horizontal) {\n item.x = pos;\n } else {\n item.y = pos;\n }\n }\n static setAxisLayoutSize(item, horizontal, size) {\n if (horizontal) {\n item.w = size;\n } else {\n item.h = size;\n }\n }\n static getAxisMinSize(item, horizontal) {\n let minSize = this.getPlainAxisMinSize(item, horizontal);\n let flexItemMinSize = 0;\n if (item.isFlexItemEnabled()) {\n flexItemMinSize = item._flexItem._getMinSizeSetting(horizontal);\n }\n const hasLimitedMinSize = flexItemMinSize > 0;\n if (hasLimitedMinSize) {\n minSize = Math.max(minSize, flexItemMinSize);\n }\n return minSize;\n }\n static getPlainAxisMinSize(item, horizontal) {\n if (item.isFlexEnabled()) {\n return item._flex._layout.getAxisMinSize(horizontal);\n } else {\n const isShrinkable = item.flexItem.shrink !== 0;\n if (isShrinkable) {\n return 0;\n } else {\n return this.getRelAxisSize(item, horizontal);\n }\n }\n }\n static resizeAxis(item, horizontal, size) {\n if (item.isFlexEnabled()) {\n const isMainAxis = item._flex._horizontal === horizontal;\n if (isMainAxis) {\n item._flex._layout.resizeMainAxis(size);\n } else {\n item._flex._layout.resizeCrossAxis(size);\n }\n } else {\n this.setAxisLayoutSize(item, horizontal, size);\n }\n }\n static getPaddingOffset(item, horizontal) {\n if (item.isFlexEnabled()) {\n const flex = item._flex;\n if (horizontal) {\n return flex.paddingLeft;\n } else {\n return flex.paddingTop;\n }\n } else {\n return 0;\n }\n }\n static getTotalPadding(item, horizontal) {\n if (item.isFlexEnabled()) {\n const flex = item._flex;\n if (horizontal) {\n return flex.paddingRight + flex.paddingLeft;\n } else {\n return flex.paddingTop + flex.paddingBottom;\n }\n } else {\n return 0;\n }\n }\n static getMarginOffset(item, horizontal) {\n const flexItem = item.flexItem;\n if (flexItem) {\n if (horizontal) {\n return flexItem.marginLeft;\n } else {\n return flexItem.marginTop;\n }\n } else {\n return 0;\n }\n }\n static getTotalMargin(item, horizontal) {\n const flexItem = item.flexItem;\n if (flexItem) {\n if (horizontal) {\n return flexItem.marginRight + flexItem.marginLeft;\n } else {\n return flexItem.marginTop + flexItem.marginBottom;\n }\n } else {\n return 0;\n }\n }\n}\nclass SizeShrinker {\n constructor(line) {\n this._line = line;\n this._amountRemaining = 0;\n this._shrunkSize = 0;\n }\n shrink(amount) {\n this._shrunkSize = 0;\n this._amountRemaining = amount;\n let totalShrinkAmount = this._getTotalShrinkAmount();\n if (totalShrinkAmount) {\n const items = this._line.items;\n do {\n let amountPerShrink = this._amountRemaining / totalShrinkAmount;\n for (let i = this._line.startIndex; i <= this._line.endIndex; i++) {\n const item = items[i];\n const flexItem = item.flexItem;\n const shrinkAmount = flexItem.shrink;\n const isShrinkableItem = shrinkAmount > 0;\n if (isShrinkableItem) {\n let shrink = shrinkAmount * amountPerShrink;\n const minSize = flexItem._getMainAxisMinSize();\n const size = flexItem._getMainAxisLayoutSize();\n if (size > minSize) {\n const maxShrink = size - minSize;\n const isFullyShrunk = shrink >= maxShrink;\n if (isFullyShrunk) {\n shrink = maxShrink;\n totalShrinkAmount -= shrinkAmount;\n }\n const finalSize = size - shrink;\n flexItem._resizeMainAxis(finalSize);\n this._shrunkSize += shrink;\n this._amountRemaining -= shrink;\n if (Math.abs(this._amountRemaining) < 1e-5) {\n return;\n }\n }\n }\n }\n } while (totalShrinkAmount && Math.abs(this._amountRemaining) > 1e-5);\n }\n }\n _getTotalShrinkAmount() {\n let total = 0;\n const items = this._line.items;\n for (let i = this._line.startIndex; i <= this._line.endIndex; i++) {\n const item = items[i];\n const flexItem = item.flexItem;\n if (flexItem.shrink) {\n const minSize = flexItem._getMainAxisMinSize();\n const size = flexItem._getMainAxisLayoutSize();\n if (size > minSize) {\n total += flexItem.shrink;\n }\n }\n }\n return total;\n }\n getShrunkSize() {\n return this._shrunkSize;\n }\n}\nclass SizeGrower {\n constructor(line) {\n this._line = line;\n this._amountRemaining = 0;\n this._grownSize = 0;\n }\n grow(amount) {\n this._grownSize = 0;\n this._amountRemaining = amount;\n let totalGrowAmount = this._getTotalGrowAmount();\n if (totalGrowAmount) {\n const items = this._line.items;\n do {\n let amountPerGrow = this._amountRemaining / totalGrowAmount;\n for (let i = this._line.startIndex; i <= this._line.endIndex; i++) {\n const item = items[i];\n const flexItem = item.flexItem;\n const growAmount = flexItem.grow;\n const isGrowableItem = growAmount > 0;\n if (isGrowableItem) {\n let grow = growAmount * amountPerGrow;\n const maxSize = flexItem._getMainAxisMaxSizeSetting();\n const size = flexItem._getMainAxisLayoutSize();\n if (maxSize > 0) {\n if (size >= maxSize) {\n grow = 0;\n } else {\n const maxGrow = maxSize - size;\n const isFullyGrown = grow >= maxGrow;\n if (isFullyGrown) {\n grow = maxGrow;\n totalGrowAmount -= growAmount;\n }\n }\n }\n if (grow > 0) {\n const finalSize = size + grow;\n flexItem._resizeMainAxis(finalSize);\n this._grownSize += grow;\n this._amountRemaining -= grow;\n if (Math.abs(this._amountRemaining) < 1e-5) {\n return;\n }\n }\n }\n }\n } while (totalGrowAmount && Math.abs(this._amountRemaining) > 1e-5);\n }\n }\n _getTotalGrowAmount() {\n let total = 0;\n const items = this._line.items;\n for (let i = this._line.startIndex; i <= this._line.endIndex; i++) {\n const item = items[i];\n const flexItem = item.flexItem;\n if (flexItem.grow) {\n const maxSize = flexItem._getMainAxisMaxSizeSetting();\n const size = flexItem._getMainAxisLayoutSize();\n if (maxSize === 0 || size < maxSize) {\n total += flexItem.grow;\n }\n }\n }\n return total;\n }\n getGrownSize() {\n return this._grownSize;\n }\n}\nclass ItemPositioner {\n constructor(lineLayout) {\n this._line = lineLayout;\n }\n get _layout() {\n return this._line._layout;\n }\n position() {\n const { spacingBefore, spacingBetween } = this._getSpacing();\n let currentPos = spacingBefore;\n const items = this._line.items;\n for (let i = this._line.startIndex; i <= this._line.endIndex; i++) {\n const item = items[i];\n item.flexItem._setMainAxisLayoutPos(currentPos);\n currentPos += item.flexItem._getMainAxisLayoutSizeWithPaddingAndMargin();\n currentPos += spacingBetween;\n }\n }\n _getSpacing() {\n const remainingSpace = this._line._availableSpace;\n let mode = this._layout._flexContainer.justifyContent;\n const numberOfItems = this._line.numberOfItems;\n return SpacingCalculator.getSpacing(mode, numberOfItems, remainingSpace);\n }\n}\nclass ItemAligner {\n constructor(line) {\n this._line = line;\n this._crossAxisLayoutSize = 0;\n this._crossAxisLayoutOffset = 0;\n this._alignItemsSetting = null;\n this._recursiveResizeOccured = false;\n this._isCrossAxisFitToContents = false;\n }\n get _layout() {\n return this._line._layout;\n }\n get _flexContainer() {\n return this._layout._flexContainer;\n }\n setCrossAxisLayoutSize(size) {\n this._crossAxisLayoutSize = size;\n }\n setCrossAxisLayoutOffset(offset) {\n this._crossAxisLayoutOffset = offset;\n }\n align() {\n this._alignItemsSetting = this._flexContainer.alignItems;\n this._isCrossAxisFitToContents = this._layout.isAxisFitToContents(!this._flexContainer._horizontal);\n this._recursiveResizeOccured = false;\n const items = this._line.items;\n for (let i = this._line.startIndex; i <= this._line.endIndex; i++) {\n const item = items[i];\n this._alignItem(item);\n }\n }\n get recursiveResizeOccured() {\n return this._recursiveResizeOccured;\n }\n _alignItem(item) {\n const flexItem = item.flexItem;\n let align = flexItem.alignSelf || this._alignItemsSetting;\n if (align === \"stretch\" && this._preventStretch(flexItem)) {\n align = \"flex-start\";\n }\n if (align !== \"stretch\" && !this._isCrossAxisFitToContents) {\n if (flexItem._hasRelCrossAxisSize()) {\n flexItem._resetCrossAxisLayoutSize();\n }\n }\n switch (align) {\n case \"flex-start\":\n this._alignItemFlexStart(flexItem);\n break;\n case \"flex-end\":\n this._alignItemFlexEnd(flexItem);\n break;\n case \"center\":\n this._alignItemFlexCenter(flexItem);\n break;\n case \"stretch\":\n this._alignItemStretch(flexItem);\n break;\n }\n }\n _alignItemFlexStart(flexItem) {\n flexItem._setCrossAxisLayoutPos(this._crossAxisLayoutOffset);\n }\n _alignItemFlexEnd(flexItem) {\n const itemCrossAxisSize = flexItem._getCrossAxisLayoutSizeWithPaddingAndMargin();\n flexItem._setCrossAxisLayoutPos(this._crossAxisLayoutOffset + (this._crossAxisLayoutSize - itemCrossAxisSize));\n }\n _alignItemFlexCenter(flexItem) {\n const itemCrossAxisSize = flexItem._getCrossAxisLayoutSizeWithPaddingAndMargin();\n const center = (this._crossAxisLayoutSize - itemCrossAxisSize) / 2;\n flexItem._setCrossAxisLayoutPos(this._crossAxisLayoutOffset + center);\n }\n _alignItemStretch(flexItem) {\n flexItem._setCrossAxisLayoutPos(this._crossAxisLayoutOffset);\n const mainAxisLayoutSizeBeforeResize = flexItem._getMainAxisLayoutSize();\n let size = this._crossAxisLayoutSize - flexItem._getCrossAxisMargin() - flexItem._getCrossAxisPadding();\n const crossAxisMinSizeSetting = flexItem._getCrossAxisMinSizeSetting();\n if (crossAxisMinSizeSetting > 0) {\n size = Math.max(size, crossAxisMinSizeSetting);\n }\n const crossAxisMaxSizeSetting = flexItem._getCrossAxisMaxSizeSetting();\n const crossAxisMaxSizeSettingEnabled = crossAxisMaxSizeSetting > 0;\n if (crossAxisMaxSizeSettingEnabled) {\n size = Math.min(size, crossAxisMaxSizeSetting);\n }\n flexItem._resizeCrossAxis(size);\n const mainAxisLayoutSizeAfterResize = flexItem._getMainAxisLayoutSize();\n const recursiveResize = mainAxisLayoutSizeAfterResize !== mainAxisLayoutSizeBeforeResize;\n if (recursiveResize) {\n this._recursiveResizeOccured = true;\n }\n }\n _preventStretch(flexItem) {\n const hasFixedCrossAxisSize = flexItem._hasFixedCrossAxisSize();\n const forceStretch = flexItem.alignSelf === \"stretch\";\n return hasFixedCrossAxisSize && !forceStretch;\n }\n}\nclass LineLayout {\n constructor(layout, startIndex, endIndex, availableSpace) {\n this._layout = layout;\n this.items = layout.items;\n this.startIndex = startIndex;\n this.endIndex = endIndex;\n this._availableSpace = availableSpace;\n }\n performLayout() {\n this._setItemSizes();\n this.setItemPositions();\n this._calcLayoutInfo();\n }\n _setItemSizes() {\n if (this._availableSpace > 0) {\n this._growItemSizes(this._availableSpace);\n } else if (this._availableSpace < 0) {\n this._shrinkItemSizes(-this._availableSpace);\n }\n }\n _growItemSizes(amount) {\n const grower = new SizeGrower(this);\n grower.grow(amount);\n this._availableSpace -= grower.getGrownSize();\n }\n _shrinkItemSizes(amount) {\n const shrinker = new SizeShrinker(this);\n shrinker.shrink(amount);\n this._availableSpace += shrinker.getShrunkSize();\n }\n setItemPositions() {\n const positioner = new ItemPositioner(this);\n positioner.position();\n }\n createItemAligner() {\n return new ItemAligner(this);\n }\n _calcLayoutInfo() {\n this._calcCrossAxisMaxLayoutSize();\n }\n getMainAxisMinSize() {\n let mainAxisMinSize = 0;\n for (let i = this.startIndex; i <= this.endIndex; i++) {\n const item = this.items[i];\n mainAxisMinSize += item.flexItem._getMainAxisMinSizeWithPaddingAndMargin();\n }\n return mainAxisMinSize;\n }\n get numberOfItems() {\n return this.endIndex - this.startIndex + 1;\n }\n get crossAxisLayoutSize() {\n const noSpecifiedCrossAxisSize = this._layout.isCrossAxisFitToContents() && !this._layout.resizingCrossAxis;\n const shouldFitToContents = this._layout.isWrapping() || noSpecifiedCrossAxisSize;\n if (shouldFitToContents) {\n return this._crossAxisMaxLayoutSize;\n } else {\n return this._layout.crossAxisSize;\n }\n }\n _calcCrossAxisMaxLayoutSize() {\n this._crossAxisMaxLayoutSize = this._getCrossAxisMaxLayoutSize();\n }\n _getCrossAxisMaxLayoutSize() {\n let crossAxisMaxSize = 0;\n for (let i = this.startIndex; i <= this.endIndex; i++) {\n const item = this.items[i];\n crossAxisMaxSize = Math.max(crossAxisMaxSize, item.flexItem._getCrossAxisLayoutSizeWithPaddingAndMargin());\n }\n return crossAxisMaxSize;\n }\n}\nclass LineLayouter {\n constructor(layout) {\n this._layout = layout;\n this._mainAxisMinSize = -1;\n this._crossAxisMinSize = -1;\n this._mainAxisContentSize = 0;\n }\n get lines() {\n return this._lines;\n }\n get mainAxisMinSize() {\n if (this._mainAxisMinSize === -1) {\n this._mainAxisMinSize = this._getMainAxisMinSize();\n }\n return this._mainAxisMinSize;\n }\n get crossAxisMinSize() {\n if (this._crossAxisMinSize === -1) {\n this._crossAxisMinSize = this._getCrossAxisMinSize();\n }\n return this._crossAxisMinSize;\n }\n get mainAxisContentSize() {\n return this._mainAxisContentSize;\n }\n layoutLines() {\n this._setup();\n const items = this._layout.items;\n const wrap = this._layout.isWrapping();\n let startIndex = 0;\n let i;\n const n = items.length;\n for (i = 0; i < n; i++) {\n const item = items[i];\n this._layoutFlexItem(item);\n const itemMainAxisSize = item.flexItem._getMainAxisLayoutSizeWithPaddingAndMargin();\n if (wrap && i > startIndex) {\n const isOverflowing = this._curMainAxisPos + itemMainAxisSize > this._mainAxisSize;\n if (isOverflowing) {\n this._layoutLine(startIndex, i - 1);\n this._curMainAxisPos = 0;\n startIndex = i;\n }\n }\n this._addToMainAxisPos(itemMainAxisSize);\n }\n if (startIndex < i) {\n this._layoutLine(startIndex, i - 1);\n }\n }\n _layoutFlexItem(item) {\n if (item.isFlexEnabled()) {\n item.flexLayout.updateTreeLayout();\n } else {\n item.flexItem._resetLayoutSize();\n }\n }\n _setup() {\n this._mainAxisSize = this._layout.mainAxisSize;\n this._curMainAxisPos = 0;\n this._maxMainAxisPos = 0;\n this._lines = [];\n this._mainAxisMinSize = -1;\n this._crossAxisMinSize = -1;\n this._mainAxisContentSize = 0;\n }\n _addToMainAxisPos(itemMainAxisSize) {\n this._curMainAxisPos += itemMainAxisSize;\n if (this._curMainAxisPos > this._maxMainAxisPos) {\n this._maxMainAxisPos = this._curMainAxisPos;\n }\n }\n _layoutLine(startIndex, endIndex) {\n const availableSpace = this._getAvailableMainAxisLayoutSpace();\n const line = new LineLayout(this._layout, startIndex, endIndex, availableSpace);\n line.performLayout();\n this._lines.push(line);\n if (this._mainAxisContentSize === 0 || this._curMainAxisPos > this._mainAxisContentSize) {\n this._mainAxisContentSize = this._curMainAxisPos;\n }\n }\n _getAvailableMainAxisLayoutSpace() {\n if (!this._layout.resizingMainAxis && this._layout.isMainAxisFitToContents()) {\n return 0;\n } else {\n return this._mainAxisSize - this._curMainAxisPos;\n }\n }\n _getCrossAxisMinSize() {\n let crossAxisMinSize = 0;\n const items = this._layout.items;\n for (let i = 0, n = items.length; i < n; i++) {\n const item = items[i];\n const itemCrossAxisMinSize = item.flexItem._getCrossAxisMinSizeWithPaddingAndMargin();\n crossAxisMinSize = Math.max(crossAxisMinSize, itemCrossAxisMinSize);\n }\n return crossAxisMinSize;\n }\n _getMainAxisMinSize() {\n if (this._lines.length === 1) {\n return this._lines[0].getMainAxisMinSize();\n } else {\n return this._layout.mainAxisSize;\n }\n }\n}\nclass ItemCoordinatesUpdater {\n constructor(layout) {\n this._layout = layout;\n this._isReverse = this._flexContainer._reverse;\n this._horizontalPaddingOffset = this._layout._getHorizontalPaddingOffset();\n this._verticalPaddingOffset = this._layout._getVerticalPaddingOffset();\n }\n get _flexContainer() {\n return this._layout._flexContainer;\n }\n finalize() {\n const parentFlex = this._layout.getParentFlexContainer();\n if (parentFlex) {\n const updater = new ItemCoordinatesUpdater(parentFlex._layout);\n updater._finalizeItemAndChildren(this._flexContainer.item);\n } else {\n this._finalizeRoot();\n this._finalizeItems();\n }\n }\n _finalizeRoot() {\n const item = this._flexContainer.item;\n let x = FlexUtils.getAxisLayoutPos(item, true);\n let y = FlexUtils.getAxisLayoutPos(item, false);\n let w = FlexUtils.getAxisLayoutSize(item, true);\n let h = FlexUtils.getAxisLayoutSize(item, false);\n w += this._layout._getHorizontalPadding();\n h += this._layout._getVerticalPadding();\n item.clearRecalcFlag();\n item.setLayout(x, y, w, h);\n }\n _finalizeItems() {\n const items = this._layout.items;\n for (let i = 0, n = items.length; i < n; i++) {\n const item = items[i];\n const validCache = this._validateItemCache(item);\n this._finalizeItem(item);\n if (!validCache) {\n this._finalizeItemChildren(item);\n }\n }\n }\n _validateItemCache(item) {\n if (item.recalc === 0) {\n if (item.isFlexEnabled()) {\n const layout = item._flex._layout;\n const dimensionsMatchPreviousResult = item.w === item.target.w && item.h === item.target.h;\n if (dimensionsMatchPreviousResult) {\n return true;\n } else {\n const crossAxisSize = layout.crossAxisSize;\n layout.performResizeMainAxis(layout.mainAxisSize);\n layout.performResizeCrossAxis(crossAxisSize);\n }\n }\n }\n return false;\n }\n _finalizeItemAndChildren(item) {\n this._finalizeItem(item);\n this._finalizeItemChildren(item);\n }\n _finalizeItem(item) {\n if (this._isReverse) {\n this._reverseMainAxisLayoutPos(item);\n }\n let x = FlexUtils.getAxisLayoutPos(item, true);\n let y = FlexUtils.getAxisLayoutPos(item, false);\n let w = FlexUtils.getAxisLayoutSize(item, true);\n let h = FlexUtils.getAxisLayoutSize(item, false);\n x += this._horizontalPaddingOffset;\n y += this._verticalPaddingOffset;\n const flex = item.flex;\n if (flex) {\n w += item._flex._layout._getHorizontalPadding();\n h += item._flex._layout._getVerticalPadding();\n }\n const flexItem = item.flexItem;\n if (flexItem) {\n x += flexItem._getHorizontalMarginOffset();\n y += flexItem._getVerticalMarginOffset();\n }\n item.clearRecalcFlag();\n item.setLayout(x, y, w, h);\n }\n _finalizeItemChildren(item) {\n const flex = item._flex;\n if (flex) {\n const updater = new ItemCoordinatesUpdater(flex._layout);\n updater._finalizeItems();\n }\n }\n _reverseMainAxisLayoutPos(item) {\n const endPos = item.flexItem._getMainAxisLayoutPos() + item.flexItem._getMainAxisLayoutSizeWithPaddingAndMargin();\n const reversedPos = this._layout.mainAxisSize - endPos;\n item.flexItem._setMainAxisLayoutPos(reversedPos);\n }\n}\nclass FlexLayout {\n constructor(flexContainer) {\n this._flexContainer = flexContainer;\n this._lineLayouter = new LineLayouter(this);\n this._resizingMainAxis = false;\n this._resizingCrossAxis = false;\n this._cachedMainAxisSizeAfterLayout = 0;\n this._cachedCrossAxisSizeAfterLayout = 0;\n this._shrunk = false;\n }\n get shrunk() {\n return this._shrunk;\n }\n get recalc() {\n return this.item.recalc;\n }\n layoutTree() {\n const isSubTree = this.item.flexParent !== null;\n if (isSubTree) {\n this._updateSubTreeLayout();\n } else {\n this.updateTreeLayout();\n }\n this.updateItemCoords();\n }\n updateTreeLayout() {\n if (this.recalc) {\n this._performUpdateLayoutTree();\n } else {\n this._performUpdateLayoutTreeFromCache();\n }\n }\n _performUpdateLayoutTree() {\n this._setInitialAxisSizes();\n this._layoutAxes();\n this._refreshLayoutCache();\n }\n _refreshLayoutCache() {\n this._cachedMainAxisSizeAfterLayout = this.mainAxisSize;\n this._cachedCrossAxisSizeAfterLayout = this.crossAxisSize;\n }\n _performUpdateLayoutTreeFromCache() {\n const sizeMightHaveChanged = this.item.funcW || this.item.funcH;\n if (sizeMightHaveChanged) {\n this.item.enableLocalRecalcFlag();\n this._performUpdateLayoutTree();\n } else {\n this.mainAxisSize = this._cachedMainAxisSizeAfterLayout;\n this.crossAxisSize = this._cachedCrossAxisSizeAfterLayout;\n }\n }\n updateItemCoords() {\n const updater = new ItemCoordinatesUpdater(this);\n updater.finalize();\n }\n _updateSubTreeLayout() {\n const crossAxisSize = this.crossAxisSize;\n this._layoutMainAxis();\n this.performResizeCrossAxis(crossAxisSize);\n }\n _setInitialAxisSizes() {\n if (this.item.isFlexItemEnabled()) {\n this.item.flexItem._resetLayoutSize();\n } else {\n this.mainAxisSize = this._getMainAxisBasis();\n this.crossAxisSize = this._getCrossAxisBasis();\n }\n this._resizingMainAxis = false;\n this._resizingCrossAxis = false;\n this._shrunk = false;\n }\n _layoutAxes() {\n this._layoutMainAxis();\n this._layoutCrossAxis();\n }\n _layoutMainAxis() {\n this._layoutLines();\n this._fitMainAxisSizeToContents();\n }\n _layoutLines() {\n this._lineLayouter.layoutLines();\n }\n get _lines() {\n return this._lineLayouter.lines;\n }\n _fitMainAxisSizeToContents() {\n if (!this._resizingMainAxis) {\n if (this.isMainAxisFitToContents()) {\n this.mainAxisSize = this._lineLayouter.mainAxisContentSize;\n }\n }\n }\n _layoutCrossAxis() {\n const aligner = new ContentAligner(this);\n aligner.init();\n this._totalCrossAxisSize = aligner.totalCrossAxisSize;\n this._fitCrossAxisSizeToContents();\n aligner.align();\n }\n _fitCrossAxisSizeToContents() {\n if (!this._resizingCrossAxis) {\n if (this.isCrossAxisFitToContents()) {\n this.crossAxisSize = this._totalCrossAxisSize;\n }\n }\n }\n isWrapping() {\n return this._flexContainer.wrap;\n }\n isAxisFitToContents(horizontal) {\n if (this._horizontal === horizontal) {\n return this.isMainAxisFitToContents();\n } else {\n return this.isCrossAxisFitToContents();\n }\n }\n isMainAxisFitToContents() {\n return !this.isWrapping() && !this._hasFixedMainAxisBasis();\n }\n isCrossAxisFitToContents() {\n return !this._hasFixedCrossAxisBasis();\n }\n _hasFixedMainAxisBasis() {\n return !FlexUtils.isZeroAxisSize(this.item, this._horizontal);\n }\n _hasFixedCrossAxisBasis() {\n return !FlexUtils.isZeroAxisSize(this.item, !this._horizontal);\n }\n getAxisMinSize(horizontal) {\n if (this._horizontal === horizontal) {\n return this._getMainAxisMinSize();\n } else {\n return this._getCrossAxisMinSize();\n }\n }\n _getMainAxisMinSize() {\n return this._lineLayouter.mainAxisMinSize;\n }\n _getCrossAxisMinSize() {\n return this._lineLayouter.crossAxisMinSize;\n }\n resizeMainAxis(size) {\n if (this.mainAxisSize !== size) {\n if (this.recalc > 0) {\n this.performResizeMainAxis(size);\n } else {\n if (this._checkValidCacheMainAxisResize()) {\n this.mainAxisSize = size;\n this._fitCrossAxisSizeToContents();\n } else {\n this.item.enableLocalRecalcFlag();\n this.performResizeMainAxis(size);\n }\n }\n }\n }\n _checkValidCacheMainAxisResize(size) {\n const isFinalMainAxisSize = size === this.targetMainAxisSize;\n if (isFinalMainAxisSize) {\n return true;\n }\n const canIgnoreCacheMiss = !this.isCrossAxisFitToContents();\n if (canIgnoreCacheMiss) {\n return true;\n }\n return false;\n }\n performResizeMainAxis(size) {\n const isShrinking = size < this.mainAxisSize;\n this._shrunk = isShrinking;\n this.mainAxisSize = size;\n this._resizingMainAxis = true;\n this._layoutAxes();\n this._resizingMainAxis = false;\n }\n resizeCrossAxis(size) {\n if (this.crossAxisSize !== size) {\n if (this.recalc > 0) {\n this.performResizeCrossAxis(size);\n } else {\n this.crossAxisSize = size;\n }\n }\n }\n performResizeCrossAxis(size) {\n this.crossAxisSize = size;\n this._resizingCrossAxis = true;\n this._layoutCrossAxis();\n this._resizingCrossAxis = false;\n }\n get targetMainAxisSize() {\n return this._horizontal ? this.item.target.w : this.item.target.h;\n }\n get targetCrossAxisSize() {\n return this._horizontal ? this.item.target.h : this.item.target.w;\n }\n getParentFlexContainer() {\n return this.item.isFlexItemEnabled() ? this.item.flexItem.ctr : null;\n }\n _getHorizontalPadding() {\n return FlexUtils.getTotalPadding(this.item, true);\n }\n _getVerticalPadding() {\n return FlexUtils.getTotalPadding(this.item, false);\n }\n _getHorizontalPaddingOffset() {\n return FlexUtils.getPaddingOffset(this.item, true);\n }\n _getVerticalPaddingOffset() {\n return FlexUtils.getPaddingOffset(this.item, false);\n }\n _getMainAxisBasis() {\n return FlexUtils.getRelAxisSize(this.item, this._horizontal);\n }\n _getCrossAxisBasis() {\n return FlexUtils.getRelAxisSize(this.item, !this._horizontal);\n }\n get _horizontal() {\n return this._flexContainer._horizontal;\n }\n get _reverse() {\n return this._flexContainer._reverse;\n }\n get item() {\n return this._flexContainer.item;\n }\n get items() {\n return this.item.items;\n }\n get resizingMainAxis() {\n return this._resizingMainAxis;\n }\n get resizingCrossAxis() {\n return this._resizingCrossAxis;\n }\n get numberOfItems() {\n return this.items.length;\n }\n get mainAxisSize() {\n return FlexUtils.getAxisLayoutSize(this.item, this._horizontal);\n }\n get crossAxisSize() {\n return FlexUtils.getAxisLayoutSize(this.item, !this._horizontal);\n }\n set mainAxisSize(v) {\n FlexUtils.setAxisLayoutSize(this.item, this._horizontal, v);\n }\n set crossAxisSize(v) {\n FlexUtils.setAxisLayoutSize(this.item, !this._horizontal, v);\n }\n}\nclass FlexContainer {\n constructor(item) {\n this._item = item;\n this._layout = new FlexLayout(this);\n this._horizontal = true;\n this._reverse = false;\n this._wrap = false;\n this._alignItems = \"stretch\";\n this._justifyContent = \"flex-start\";\n this._alignContent = \"flex-start\";\n this._paddingLeft = 0;\n this._paddingTop = 0;\n this._paddingRight = 0;\n this._paddingBottom = 0;\n }\n get item() {\n return this._item;\n }\n _changedDimensions() {\n this._item.changedDimensions();\n }\n _changedContents() {\n this._item.changedContents();\n }\n get direction() {\n return (this._horizontal ? \"row\" : \"column\") + (this._reverse ? \"-reverse\" : \"\");\n }\n set direction(f) {\n if (this.direction === f)\n return;\n this._horizontal = f === \"row\" || f === \"row-reverse\";\n this._reverse = f === \"row-reverse\" || f === \"column-reverse\";\n this._changedContents();\n }\n set wrap(v) {\n this._wrap = v;\n this._changedContents();\n }\n get wrap() {\n return this._wrap;\n }\n get alignItems() {\n return this._alignItems;\n }\n set alignItems(v) {\n if (this._alignItems === v)\n return;\n if (FlexContainer.ALIGN_ITEMS.indexOf(v) === -1) {\n throw new Error(\"Unknown alignItems, options: \" + FlexContainer.ALIGN_ITEMS.join(\",\"));\n }\n this._alignItems = v;\n this._changedContents();\n }\n get alignContent() {\n return this._alignContent;\n }\n set alignContent(v) {\n if (this._alignContent === v)\n return;\n if (FlexContainer.ALIGN_CONTENT.indexOf(v) === -1) {\n throw new Error(\"Unknown alignContent, options: \" + FlexContainer.ALIGN_CONTENT.join(\",\"));\n }\n this._alignContent = v;\n this._changedContents();\n }\n get justifyContent() {\n return this._justifyContent;\n }\n set justifyContent(v) {\n if (this._justifyContent === v)\n return;\n if (FlexContainer.JUSTIFY_CONTENT.indexOf(v) === -1) {\n throw new Error(\"Unknown justifyContent, options: \" + FlexContainer.JUSTIFY_CONTENT.join(\",\"));\n }\n this._justifyContent = v;\n this._changedContents();\n }\n set padding(v) {\n this.paddingLeft = v;\n this.paddingTop = v;\n this.paddingRight = v;\n this.paddingBottom = v;\n }\n get padding() {\n return this.paddingLeft;\n }\n set paddingLeft(v) {\n this._paddingLeft = v;\n this._changedDimensions();\n }\n get paddingLeft() {\n return this._paddingLeft;\n }\n set paddingTop(v) {\n this._paddingTop = v;\n this._changedDimensions();\n }\n get paddingTop() {\n return this._paddingTop;\n }\n set paddingRight(v) {\n this._paddingRight = v;\n this._changedDimensions();\n }\n get paddingRight() {\n return this._paddingRight;\n }\n set paddingBottom(v) {\n this._paddingBottom = v;\n this._changedDimensions();\n }\n get paddingBottom() {\n return this._paddingBottom;\n }\n patch(settings) {\n Base.patchObject(this, settings);\n }\n}\nFlexContainer.ALIGN_ITEMS = [\"flex-start\", \"flex-end\", \"center\", \"stretch\"];\nFlexContainer.ALIGN_CONTENT = [\"flex-start\", \"flex-end\", \"center\", \"space-between\", \"space-around\", \"space-evenly\", \"stretch\"];\nFlexContainer.JUSTIFY_CONTENT = [\"flex-start\", \"flex-end\", \"center\", \"space-between\", \"space-around\", \"space-evenly\"];\nclass FlexItem {\n constructor(item) {\n this._ctr = null;\n this._item = item;\n this._grow = 0;\n this._shrink = FlexItem.SHRINK_AUTO;\n this._alignSelf = void 0;\n this._minWidth = 0;\n this._minHeight = 0;\n this._maxWidth = 0;\n this._maxHeight = 0;\n this._marginLeft = 0;\n this._marginTop = 0;\n this._marginRight = 0;\n this._marginBottom = 0;\n }\n get item() {\n return this._item;\n }\n get grow() {\n return this._grow;\n }\n set grow(v) {\n if (this._grow === v)\n return;\n this._grow = parseInt(v) || 0;\n this._changed();\n }\n get shrink() {\n if (this._shrink === FlexItem.SHRINK_AUTO) {\n return this._getDefaultShrink();\n }\n return this._shrink;\n }\n _getDefaultShrink() {\n if (this.item.isFlexEnabled()) {\n return 1;\n } else {\n return 0;\n }\n }\n set shrink(v) {\n if (this._shrink === v)\n return;\n this._shrink = parseInt(v) || 0;\n this._changed();\n }\n get alignSelf() {\n return this._alignSelf;\n }\n set alignSelf(v) {\n if (this._alignSelf === v)\n return;\n if (v === void 0) {\n this._alignSelf = void 0;\n } else {\n if (FlexContainer.ALIGN_ITEMS.indexOf(v) === -1) {\n throw new Error(\"Unknown alignSelf, options: \" + FlexContainer.ALIGN_ITEMS.join(\",\"));\n }\n this._alignSelf = v;\n }\n this._changed();\n }\n get minWidth() {\n return this._minWidth;\n }\n set minWidth(v) {\n this._minWidth = Math.max(0, v);\n this._item.changedDimensions(true, false);\n }\n get minHeight() {\n return this._minHeight;\n }\n set minHeight(v) {\n this._minHeight = Math.max(0, v);\n this._item.changedDimensions(false, true);\n }\n get maxWidth() {\n return this._maxWidth;\n }\n set maxWidth(v) {\n this._maxWidth = Math.max(0, v);\n this._item.changedDimensions(true, false);\n }\n get maxHeight() {\n return this._maxHeight;\n }\n set maxHeight(v) {\n this._maxHeight = Math.max(0, v);\n this._item.changedDimensions(false, true);\n }\n set margin(v) {\n this.marginLeft = v;\n this.marginTop = v;\n this.marginRight = v;\n this.marginBottom = v;\n }\n get margin() {\n return this.marginLeft;\n }\n set marginLeft(v) {\n this._marginLeft = v;\n this._changed();\n }\n get marginLeft() {\n return this._marginLeft;\n }\n set marginTop(v) {\n this._marginTop = v;\n this._changed();\n }\n get marginTop() {\n return this._marginTop;\n }\n set marginRight(v) {\n this._marginRight = v;\n this._changed();\n }\n get marginRight() {\n return this._marginRight;\n }\n set marginBottom(v) {\n this._marginBottom = v;\n this._changed();\n }\n get marginBottom() {\n return this._marginBottom;\n }\n _changed() {\n if (this.ctr)\n this.ctr._changedContents();\n }\n set ctr(v) {\n this._ctr = v;\n }\n get ctr() {\n return this._ctr;\n }\n patch(settings) {\n Base.patchObject(this, settings);\n }\n _resetLayoutSize() {\n this._resetHorizontalAxisLayoutSize();\n this._resetVerticalAxisLayoutSize();\n }\n _resetCrossAxisLayoutSize() {\n if (this.ctr._horizontal) {\n this._resetVerticalAxisLayoutSize();\n } else {\n this._resetHorizontalAxisLayoutSize();\n }\n }\n _resetHorizontalAxisLayoutSize() {\n let w = FlexUtils.getRelAxisSize(this.item, true);\n if (this._minWidth) {\n w = Math.max(this._minWidth, w);\n }\n if (this._maxWidth) {\n w = Math.min(this._maxWidth, w);\n }\n FlexUtils.setAxisLayoutSize(this.item, true, w);\n }\n _resetVerticalAxisLayoutSize() {\n let h = FlexUtils.getRelAxisSize(this.item, false);\n if (this._minHeight) {\n h = Math.max(this._minHeight, h);\n }\n if (this._maxHeight) {\n h = Math.min(this._maxHeight, h);\n }\n FlexUtils.setAxisLayoutSize(this.item, false, h);\n }\n _getCrossAxisMinSizeSetting() {\n return this._getMinSizeSetting(!this.ctr._horizontal);\n }\n _getCrossAxisMaxSizeSetting() {\n return this._getMaxSizeSetting(!this.ctr._horizontal);\n }\n _getMainAxisMaxSizeSetting() {\n return this._getMaxSizeSetting(this.ctr._horizontal);\n }\n _getMinSizeSetting(horizontal) {\n if (horizontal) {\n return this._minWidth;\n } else {\n return this._minHeight;\n }\n }\n _getMaxSizeSetting(horizontal) {\n if (horizontal) {\n return this._maxWidth;\n } else {\n return this._maxHeight;\n }\n }\n _getMainAxisMinSize() {\n return FlexUtils.getAxisMinSize(this.item, this.ctr._horizontal);\n }\n _getCrossAxisMinSize() {\n return FlexUtils.getAxisMinSize(this.item, !this.ctr._horizontal);\n }\n _getMainAxisLayoutSize() {\n return FlexUtils.getAxisLayoutSize(this.item, this.ctr._horizontal);\n }\n _getMainAxisLayoutPos() {\n return FlexUtils.getAxisLayoutPos(this.item, this.ctr._horizontal);\n }\n _setMainAxisLayoutPos(pos) {\n return FlexUtils.setAxisLayoutPos(this.item, this.ctr._horizontal, pos);\n }\n _setCrossAxisLayoutPos(pos) {\n return FlexUtils.setAxisLayoutPos(this.item, !this.ctr._horizontal, pos);\n }\n _getCrossAxisLayoutSize() {\n return FlexUtils.getAxisLayoutSize(this.item, !this.ctr._horizontal);\n }\n _resizeCrossAxis(size) {\n return FlexUtils.resizeAxis(this.item, !this.ctr._horizontal, size);\n }\n _resizeMainAxis(size) {\n return FlexUtils.resizeAxis(this.item, this.ctr._horizontal, size);\n }\n _getMainAxisPadding() {\n return FlexUtils.getTotalPadding(this.item, this.ctr._horizontal);\n }\n _getCrossAxisPadding() {\n return FlexUtils.getTotalPadding(this.item, !this.ctr._horizontal);\n }\n _getMainAxisMargin() {\n return FlexUtils.getTotalMargin(this.item, this.ctr._horizontal);\n }\n _getCrossAxisMargin() {\n return FlexUtils.getTotalMargin(this.item, !this.ctr._horizontal);\n }\n _getHorizontalMarginOffset() {\n return FlexUtils.getMarginOffset(this.item, true);\n }\n _getVerticalMarginOffset() {\n return FlexUtils.getMarginOffset(this.item, false);\n }\n _getMainAxisMinSizeWithPaddingAndMargin() {\n return this._getMainAxisMinSize() + this._getMainAxisPadding() + this._getMainAxisMargin();\n }\n _getCrossAxisMinSizeWithPaddingAndMargin() {\n return this._getCrossAxisMinSize() + this._getCrossAxisPadding() + this._getCrossAxisMargin();\n }\n _getMainAxisLayoutSizeWithPaddingAndMargin() {\n return this._getMainAxisLayoutSize() + this._getMainAxisPadding() + this._getMainAxisMargin();\n }\n _getCrossAxisLayoutSizeWithPaddingAndMargin() {\n return this._getCrossAxisLayoutSize() + this._getCrossAxisPadding() + this._getCrossAxisMargin();\n }\n _hasFixedCrossAxisSize() {\n return !FlexUtils.isZeroAxisSize(this.item, !this.ctr._horizontal);\n }\n _hasRelCrossAxisSize() {\n return !!(this.ctr._horizontal ? this.item.funcH : this.item.funcW);\n }\n}\nFlexItem.SHRINK_AUTO = -1;\nclass FlexTarget {\n constructor(target) {\n this._target = target;\n this._recalc = 0;\n this._enabled = false;\n this.x = 0;\n this.y = 0;\n this.w = 0;\n this.h = 0;\n this._originalX = 0;\n this._originalY = 0;\n this._originalWidth = 0;\n this._originalHeight = 0;\n this._flex = null;\n this._flexItem = null;\n this._flexItemDisabled = false;\n this._items = null;\n }\n get flexLayout() {\n return this.flex ? this.flex._layout : null;\n }\n layoutFlexTree() {\n if (this.isFlexEnabled() && this.isChanged()) {\n this.flexLayout.layoutTree();\n }\n }\n get target() {\n return this._target;\n }\n get flex() {\n return this._flex;\n }\n set flex(v) {\n if (!v) {\n if (this.isFlexEnabled()) {\n this._disableFlex();\n }\n } else {\n if (!this.isFlexEnabled()) {\n this._enableFlex();\n }\n this._flex.patch(v);\n }\n }\n get flexItem() {\n if (this._flexItemDisabled) {\n return false;\n }\n this._ensureFlexItem();\n return this._flexItem;\n }\n set flexItem(v) {\n if (v === false) {\n if (!this._flexItemDisabled) {\n const parent = this.flexParent;\n this._flexItemDisabled = true;\n this._checkEnabled();\n if (parent) {\n parent._clearFlexItemsCache();\n parent.changedContents();\n }\n }\n } else {\n this._ensureFlexItem();\n this._flexItem.patch(v);\n if (this._flexItemDisabled) {\n this._flexItemDisabled = false;\n this._checkEnabled();\n const parent = this.flexParent;\n if (parent) {\n parent._clearFlexItemsCache();\n parent.changedContents();\n }\n }\n }\n }\n _enableFlex() {\n this._flex = new FlexContainer(this);\n this._checkEnabled();\n this.changedDimensions();\n this._enableChildrenAsFlexItems();\n }\n _disableFlex() {\n this.changedDimensions();\n this._flex = null;\n this._checkEnabled();\n this._disableChildrenAsFlexItems();\n }\n _enableChildrenAsFlexItems() {\n const children = this._target._children;\n if (children) {\n for (let i = 0, n = children.length; i < n; i++) {\n const child = children[i];\n child.layout._enableFlexItem();\n }\n }\n }\n _disableChildrenAsFlexItems() {\n const children = this._target._children;\n if (children) {\n for (let i = 0, n = children.length; i < n; i++) {\n const child = children[i];\n child.layout._disableFlexItem();\n }\n }\n }\n _enableFlexItem() {\n this._ensureFlexItem();\n const flexParent = this._target._parent._layout;\n this._flexItem.ctr = flexParent._flex;\n flexParent.changedContents();\n this._checkEnabled();\n }\n _disableFlexItem() {\n if (this._flexItem) {\n this._flexItem.ctr = null;\n }\n this._checkEnabled();\n this._resetOffsets();\n }\n _resetOffsets() {\n this.x = 0;\n this.y = 0;\n }\n _ensureFlexItem() {\n if (!this._flexItem) {\n this._flexItem = new FlexItem(this);\n }\n }\n _checkEnabled() {\n const enabled = this.isEnabled();\n if (this._enabled !== enabled) {\n if (enabled) {\n this._enable();\n } else {\n this._disable();\n }\n this._enabled = enabled;\n }\n }\n _enable() {\n this._setupTargetForFlex();\n this._target.enableFlexLayout();\n }\n _disable() {\n this._restoreTargetToNonFlex();\n this._target.disableFlexLayout();\n }\n isEnabled() {\n return this.isFlexEnabled() || this.isFlexItemEnabled();\n }\n isFlexEnabled() {\n return this._flex !== null;\n }\n isFlexItemEnabled() {\n return this.flexParent !== null;\n }\n _restoreTargetToNonFlex() {\n const target = this._target;\n target.x = this._originalX;\n target.y = this._originalY;\n target.setDimensions(this._originalWidth, this._originalHeight);\n }\n _setupTargetForFlex() {\n const target = this._target;\n this._originalX = target._x;\n this._originalY = target._y;\n this._originalWidth = target._w;\n this._originalHeight = target._h;\n }\n setParent(from, to) {\n if (from && from.isFlexContainer()) {\n from._layout._changedChildren();\n }\n if (to && to.isFlexContainer()) {\n this._enableFlexItem();\n to._layout._changedChildren();\n }\n this._checkEnabled();\n }\n get flexParent() {\n if (this._flexItemDisabled) {\n return null;\n }\n const parent = this._target._parent;\n if (parent && parent.isFlexContainer()) {\n return parent._layout;\n }\n return null;\n }\n setVisible(v) {\n const parent = this.flexParent;\n if (parent) {\n parent._changedChildren();\n }\n }\n get items() {\n if (!this._items) {\n this._items = this._getFlexItems();\n }\n return this._items;\n }\n _getFlexItems() {\n const items = [];\n const children = this._target._children;\n if (children) {\n for (let i = 0, n = children.length; i < n; i++) {\n const item = children[i];\n if (item.visible) {\n if (item.isFlexItem()) {\n items.push(item.layout);\n }\n }\n }\n }\n return items;\n }\n _changedChildren() {\n this._clearFlexItemsCache();\n this.changedContents();\n }\n _clearFlexItemsCache() {\n this._items = null;\n }\n setLayout(x, y, w, h) {\n let originalX = this._originalX;\n let originalY = this._originalY;\n if (this.funcX) {\n originalX = this.funcX(FlexUtils.getParentAxisSizeWithPadding(this, true));\n }\n if (this.funcY) {\n originalY = this.funcY(FlexUtils.getParentAxisSizeWithPadding(this, false));\n }\n if (this.isFlexItemEnabled()) {\n this.target.setLayout(x + originalX, y + originalY, w, h);\n } else {\n this.target.setLayout(originalX, originalY, w, h);\n }\n }\n changedDimensions(changeWidth = true, changeHeight = true) {\n this._updateRecalc(changeWidth, changeHeight);\n }\n changedContents() {\n this._updateRecalc();\n }\n forceLayout() {\n this._updateRecalc();\n }\n isChanged() {\n return this._recalc > 0;\n }\n _updateRecalc(changeExternalWidth = false, changeExternalHeight = false) {\n if (this.isFlexEnabled()) {\n const layout = this._flex._layout;\n changeExternalWidth = changeExternalWidth || layout.isAxisFitToContents(true);\n changeExternalHeight = changeExternalHeight || layout.isAxisFitToContents(false);\n }\n const recalc = 1 + (changeExternalWidth ? 2 : 0) + (changeExternalHeight ? 4 : 0);\n const newRecalcFlags = this.getNewRecalcFlags(recalc);\n this._recalc |= recalc;\n if (newRecalcFlags > 1) {\n if (this.flexParent) {\n this.flexParent._updateRecalcBottomUp(recalc);\n } else {\n this._target.triggerLayout();\n }\n } else {\n this._target.triggerLayout();\n }\n }\n getNewRecalcFlags(flags) {\n return 7 - this._recalc & flags;\n }\n _updateRecalcBottomUp(childRecalc) {\n const newRecalc = this._getRecalcFromChangedChildRecalc(childRecalc);\n const newRecalcFlags = this.getNewRecalcFlags(newRecalc);\n this._recalc |= newRecalc;\n if (newRecalcFlags > 1) {\n const flexParent = this.flexParent;\n if (flexParent) {\n flexParent._updateRecalcBottomUp(newRecalc);\n } else {\n this._target.triggerLayout();\n }\n } else {\n this._target.triggerLayout();\n }\n }\n _getRecalcFromChangedChildRecalc(childRecalc) {\n const layout = this._flex._layout;\n const mainAxisRecalcFlag = layout._horizontal ? 1 : 2;\n const crossAxisRecalcFlag = layout._horizontal ? 2 : 1;\n const crossAxisDimensionsChangedInChild = childRecalc & crossAxisRecalcFlag;\n if (!crossAxisDimensionsChangedInChild) {\n const mainAxisDimensionsChangedInChild = childRecalc & mainAxisRecalcFlag;\n if (mainAxisDimensionsChangedInChild) {\n const mainAxisIsWrapping = layout.isWrapping();\n if (mainAxisIsWrapping) {\n const crossAxisIsFitToContents = layout.isCrossAxisFitToContents();\n if (crossAxisIsFitToContents) {\n childRecalc += crossAxisRecalcFlag;\n }\n }\n }\n }\n let isWidthDynamic = layout.isAxisFitToContents(true);\n let isHeightDynamic = layout.isAxisFitToContents(false);\n if (layout.shrunk) {\n if (layout._horizontal) {\n isWidthDynamic = true;\n } else {\n isHeightDynamic = true;\n }\n }\n const localRecalc = 1 + (isWidthDynamic ? 2 : 0) + (isHeightDynamic ? 4 : 0);\n const combinedRecalc = childRecalc & localRecalc;\n return combinedRecalc;\n }\n get recalc() {\n return this._recalc;\n }\n clearRecalcFlag() {\n this._recalc = 0;\n }\n enableLocalRecalcFlag() {\n this._recalc = 1;\n }\n get originalX() {\n return this._originalX;\n }\n setOriginalXWithoutUpdatingLayout(v) {\n this._originalX = v;\n }\n get originalY() {\n return this._originalY;\n }\n setOriginalYWithoutUpdatingLayout(v) {\n this._originalY = v;\n }\n get originalWidth() {\n return this._originalWidth;\n }\n set originalWidth(v) {\n if (this._originalWidth !== v) {\n this._originalWidth = v;\n this.changedDimensions(true, false);\n }\n }\n get originalHeight() {\n return this._originalHeight;\n }\n set originalHeight(v) {\n if (this._originalHeight !== v) {\n this._originalHeight = v;\n this.changedDimensions(false, true);\n }\n }\n get funcX() {\n return this._target.funcX;\n }\n get funcY() {\n return this._target.funcY;\n }\n get funcW() {\n return this._target.funcW;\n }\n get funcH() {\n return this._target.funcH;\n }\n}\nclass TextureSource {\n constructor(manager, loader = null) {\n this.id = TextureSource.id++;\n this.manager = manager;\n this.stage = manager.stage;\n this.textures = /* @__PURE__ */ new Set();\n this._activeTextureCount = 0;\n this.loader = loader;\n this.lookupId = null;\n this._cancelCb = null;\n this.loadingSince = 0;\n this.w = 0;\n this.h = 0;\n this._nativeTexture = null;\n this.permanent = false;\n this.renderInfo = null;\n this._isResultTexture = !this.loader;\n this._loadError = null;\n this._imageRef = null;\n this._hasAlpha = false;\n }\n get hasAlpha() {\n return this._hasAlpha;\n }\n get loadError() {\n return this._loadError;\n }\n addTexture(v) {\n if (!this.textures.has(v)) {\n this.textures.add(v);\n }\n }\n removeTexture(v) {\n this.textures.delete(v);\n }\n incActiveTextureCount() {\n this._activeTextureCount++;\n if (this._activeTextureCount === 1) {\n this.becomesUsed();\n }\n }\n decActiveTextureCount() {\n this._activeTextureCount--;\n if (this._activeTextureCount === 0) {\n this.becomesUnused();\n }\n }\n get isResultTexture() {\n return this._isResultTexture;\n }\n set isResultTexture(v) {\n this._isResultTexture = v;\n }\n forEachEnabledElement(cb) {\n this.textures.forEach((texture) => {\n texture.elements.forEach(cb);\n });\n }\n hasEnabledElements() {\n return this.textures.size > 0;\n }\n forEachActiveElement(cb) {\n this.textures.forEach((texture) => {\n texture.elements.forEach((element) => {\n if (element.active) {\n cb(element);\n }\n });\n });\n }\n getRenderWidth() {\n return this.w;\n }\n getRenderHeight() {\n return this.h;\n }\n allowCleanup() {\n return !this.permanent && !this.isUsed();\n }\n becomesUsed() {\n this.load();\n }\n becomesUnused() {\n this.cancel();\n }\n cancel() {\n if (this.isLoading()) {\n if (this._cancelCb) {\n this._cancelCb(this);\n this._cancelCb = null;\n }\n this.loadingSince = 0;\n }\n }\n isLoaded() {\n return !!this._nativeTexture;\n }\n isLoading() {\n return this.loadingSince > 0;\n }\n isError() {\n return !!this._loadError;\n }\n reload() {\n this.free();\n if (this.isUsed()) {\n this.load();\n }\n }\n load(forceSync = false) {\n if (this.isResultTexture) {\n return;\n }\n if (!this._nativeTexture && !this.isLoading()) {\n this.loadingSince = new Date().getTime();\n this._cancelCb = this.loader((err, options) => {\n if (this.isLoading()) {\n this._cancelCb = null;\n if (this.manager.stage.destroyed) {\n return;\n }\n if (err) {\n this.onError(err);\n } else if (options && options.source) {\n if (!this.stage.isUpdatingFrame() && !forceSync && options.throttle !== false) {\n const textureThrottler = this.stage.textureThrottler;\n this._cancelCb = textureThrottler.genericCancelCb;\n textureThrottler.add(this, options);\n } else {\n this.processLoadedSource(options);\n }\n }\n }\n }, this);\n }\n }\n processLoadedSource(options) {\n this.loadingSince = 0;\n this.setSource(options);\n }\n setSource(options) {\n const source = options.source;\n this._hasAlpha = options ? options.hasAlpha || false : false;\n this.w = source.width || options && options.w || 0;\n this.h = source.height || options && options.h || 0;\n if (options && options.renderInfo) {\n this.renderInfo = options.renderInfo;\n }\n this.permanent = !!options.permanent;\n if (options && options.imageRef)\n this._imageRef = options.imageRef;\n if (options && options.flipTextureY) {\n this._flipTextureY = options.flipTextureY;\n } else {\n this._flipTextureY = false;\n }\n if (this._isNativeTexture(source)) {\n this._nativeTexture = source;\n this.w = this.w || source.w;\n this.h = this.h || source.h;\n this.permanent = options.hasOwnProperty(\"permanent\") ? options.permanent : true;\n } else {\n this.manager.uploadTextureSource(this, options);\n }\n this._loadError = null;\n this.onLoad();\n }\n isUsed() {\n return this._activeTextureCount > 0;\n }\n onLoad() {\n if (this.isUsed()) {\n this.textures.forEach((texture) => {\n texture.onLoad();\n });\n }\n }\n forceRenderUpdate() {\n if (this._nativeTexture) {\n this._nativeTexture.update = this.stage.frameCounter;\n }\n this.forEachActiveElement(function(element) {\n element.forceRenderUpdate();\n });\n }\n forceUpdateRenderCoords() {\n this.forEachActiveElement(function(element) {\n element._updateTextureCoords();\n });\n }\n get nativeTexture() {\n return this._nativeTexture;\n }\n clearNativeTexture() {\n this._nativeTexture = null;\n this._imageRef = null;\n }\n replaceNativeTexture(newNativeTexture, w, h) {\n let prevNativeTexture = this._nativeTexture;\n this._nativeTexture = newNativeTexture;\n this.w = w;\n this.h = h;\n if (!prevNativeTexture && this._nativeTexture) {\n this.forEachActiveElement((element) => element.onTextureSourceLoaded());\n }\n if (!this._nativeTexture) {\n this.forEachActiveElement((element) => element._setDisplayedTexture(null));\n }\n this.forEachEnabledElement((element) => element._updateDimensions());\n }\n onError(e) {\n this._loadError = e;\n this.loadingSince = 0;\n console.error(\"[Lightning] texture load error\", e, this.lookupId);\n this.forEachActiveElement((element) => element.onTextureSourceLoadError(e));\n }\n free() {\n if (this.isLoaded()) {\n this.manager.freeTextureSource(this);\n }\n }\n _isNativeTexture(source) {\n if (Utils$1.isNode) {\n return source.constructor.name === \"WebGLTexture\";\n }\n if (\"WebGLTexture\" in window) {\n return source instanceof WebGLTexture;\n }\n return false;\n }\n}\nTextureSource.prototype.isTextureSource = true;\nTextureSource.id = 1;\nclass ElementTexturizer {\n constructor(elementCore) {\n this._element = elementCore.element;\n this._core = elementCore;\n this.ctx = this._core.ctx;\n this._enabled = false;\n this.lazy = false;\n this._colorize = false;\n this._renderTexture = null;\n this._renderTextureReused = false;\n this._resultTextureSource = null;\n this._renderOffscreen = false;\n this.empty = false;\n }\n get enabled() {\n return this._enabled;\n }\n set enabled(v) {\n this._enabled = v;\n this._core.updateRenderToTextureEnabled();\n }\n get renderOffscreen() {\n return this._renderOffscreen;\n }\n set renderOffscreen(v) {\n this._renderOffscreen = v;\n this._core.setHasRenderUpdates(1);\n this._core._setRecalc(6);\n }\n get colorize() {\n return this._colorize;\n }\n set colorize(v) {\n if (this._colorize !== v) {\n this._colorize = v;\n this._core.setHasRenderUpdates(1);\n }\n }\n _getTextureSource() {\n if (!this._resultTextureSource) {\n this._resultTextureSource = new TextureSource(this._element.stage.textureManager);\n this.updateResultTexture();\n }\n return this._resultTextureSource;\n }\n hasResultTexture() {\n return !!this._resultTextureSource;\n }\n resultTextureInUse() {\n return this._resultTextureSource && this._resultTextureSource.hasEnabledElements();\n }\n updateResultTexture() {\n let resultTexture = this.getResultTexture();\n if (this._resultTextureSource) {\n if (this._resultTextureSource.nativeTexture !== resultTexture) {\n let w = resultTexture ? resultTexture.w : 0;\n let h = resultTexture ? resultTexture.h : 0;\n this._resultTextureSource.replaceNativeTexture(resultTexture, w, h);\n }\n this._resultTextureSource.forEachEnabledElement((element) => {\n element._updateDimensions();\n element.core.setHasRenderUpdates(3);\n });\n }\n }\n mustRenderToTexture() {\n if (this._enabled && !this.lazy) {\n return true;\n } else if (this._enabled && this.lazy && this._core._hasRenderUpdates < 3) {\n return true;\n }\n return false;\n }\n deactivate() {\n this.release();\n }\n get renderTextureReused() {\n return this._renderTextureReused;\n }\n release() {\n this.releaseRenderTexture();\n }\n releaseRenderTexture() {\n if (this._renderTexture) {\n if (!this._renderTextureReused) {\n this.ctx.releaseRenderTexture(this._renderTexture);\n }\n this._renderTexture = null;\n this._renderTextureReused = false;\n this.updateResultTexture();\n }\n }\n reuseTextureAsRenderTexture(nativeTexture) {\n if (this._renderTexture !== nativeTexture) {\n this.releaseRenderTexture();\n this._renderTexture = nativeTexture;\n this._renderTextureReused = true;\n }\n }\n hasRenderTexture() {\n return !!this._renderTexture;\n }\n getRenderTexture() {\n if (!this._renderTexture) {\n this._renderTexture = this.ctx.allocateRenderTexture(this._core._w, this._core._h);\n this._renderTextureReused = false;\n }\n return this._renderTexture;\n }\n getResultTexture() {\n return this._renderTexture;\n }\n}\nclass ElementCore {\n constructor(element) {\n this._element = element;\n this.ctx = element.stage.ctx;\n this._recalc = 0;\n this._parent = null;\n this._onUpdate = null;\n this._pRecalc = 0;\n this._worldContext = new ElementCoreContext();\n this._hasUpdates = false;\n this._localAlpha = 1;\n this._onAfterCalcs = null;\n this._onAfterUpdate = null;\n this._localPx = 0;\n this._localPy = 0;\n this._localTa = 1;\n this._localTb = 0;\n this._localTc = 0;\n this._localTd = 1;\n this._isComplex = false;\n this._dimsUnknown = false;\n this._clipping = false;\n this._zSort = false;\n this._outOfBounds = 0;\n this._displayedTextureSource = null;\n this._zContextUsage = 0;\n this._children = null;\n this._hasRenderUpdates = 0;\n this._zIndexedChildren = null;\n this._renderContext = this._worldContext;\n this.renderState = this.ctx.renderState;\n this._scissor = null;\n this._shaderOwner = null;\n this._updateTreeOrder = 0;\n this._colorUl = this._colorUr = this._colorBl = this._colorBr = 4294967295;\n this._x = 0;\n this._y = 0;\n this._w = 0;\n this._h = 0;\n this._optFlags = 0;\n this._funcX = null;\n this._funcY = null;\n this._funcW = null;\n this._funcH = null;\n this._scaleX = 1;\n this._scaleY = 1;\n this._pivotX = 0.5;\n this._pivotY = 0.5;\n this._mountX = 0;\n this._mountY = 0;\n this._rotation = 0;\n this._alpha = 1;\n this._visible = true;\n this._ulx = 0;\n this._uly = 0;\n this._brx = 1;\n this._bry = 1;\n this._zIndex = 0;\n this._forceZIndexContext = false;\n this._zParent = null;\n this._isRoot = false;\n this._zIndexResort = false;\n this._shader = null;\n this._renderToTextureEnabled = false;\n this._texturizer = null;\n this._useRenderToTexture = false;\n this._boundsMargin = null;\n this._recBoundsMargin = null;\n this._withinBoundsMargin = false;\n this._viewport = null;\n this._clipbox = true;\n this.render = this._renderSimple;\n this._layout = null;\n }\n get offsetX() {\n if (this._funcX) {\n return this._funcX;\n } else {\n if (this.hasFlexLayout()) {\n return this._layout.originalX;\n } else {\n return this._x;\n }\n }\n }\n set offsetX(v) {\n if (Utils$1.isFunction(v)) {\n this.funcX = v;\n } else {\n this._disableFuncX();\n if (this.hasFlexLayout()) {\n this.x += v - this._layout.originalX;\n this._layout.setOriginalXWithoutUpdatingLayout(v);\n } else {\n this.x = v;\n }\n }\n }\n get x() {\n return this._x;\n }\n set x(v) {\n if (v !== this._x) {\n this._updateLocalTranslateDelta(v - this._x, 0);\n this._x = v;\n }\n }\n get funcX() {\n return this._optFlags & 1 ? this._funcX : null;\n }\n set funcX(v) {\n if (this._funcX !== v) {\n this._optFlags |= 1;\n this._funcX = v;\n if (this.hasFlexLayout()) {\n this._layout.setOriginalXWithoutUpdatingLayout(0);\n this.layout.forceLayout();\n } else {\n this._x = 0;\n this._triggerRecalcTranslate();\n }\n }\n }\n _disableFuncX() {\n this._optFlags = this._optFlags & 65535 - 1;\n this._funcX = null;\n }\n get offsetY() {\n if (this._funcY) {\n return this._funcY;\n } else {\n if (this.hasFlexLayout()) {\n return this._layout.originalY;\n } else {\n return this._y;\n }\n }\n }\n set offsetY(v) {\n if (Utils$1.isFunction(v)) {\n this.funcY = v;\n } else {\n this._disableFuncY();\n if (this.hasFlexLayout()) {\n this.y += v - this._layout.originalY;\n this._layout.setOriginalYWithoutUpdatingLayout(v);\n } else {\n this.y = v;\n }\n }\n }\n get y() {\n return this._y;\n }\n set y(v) {\n if (v !== this._y) {\n this._updateLocalTranslateDelta(0, v - this._y);\n this._y = v;\n }\n }\n get funcY() {\n return this._optFlags & 2 ? this._funcY : null;\n }\n set funcY(v) {\n if (this._funcY !== v) {\n this._optFlags |= 2;\n this._funcY = v;\n if (this.hasFlexLayout()) {\n this._layout.setOriginalYWithoutUpdatingLayout(0);\n this.layout.forceLayout();\n } else {\n this._y = 0;\n this._triggerRecalcTranslate();\n }\n }\n }\n _disableFuncY() {\n this._optFlags = this._optFlags & 65535 - 2;\n this._funcY = null;\n }\n get funcW() {\n return this._optFlags & 4 ? this._funcW : null;\n }\n set funcW(v) {\n if (this._funcW !== v) {\n this._optFlags |= 4;\n this._funcW = v;\n if (this.hasFlexLayout()) {\n this._layout._originalWidth = 0;\n this.layout.changedDimensions(true, false);\n } else {\n this._w = 0;\n this._triggerRecalcTranslate();\n }\n }\n }\n disableFuncW() {\n this._optFlags = this._optFlags & 65535 - 4;\n this._funcW = null;\n }\n get funcH() {\n return this._optFlags & 8 ? this._funcH : null;\n }\n set funcH(v) {\n if (this._funcH !== v) {\n this._optFlags |= 8;\n this._funcH = v;\n if (this.hasFlexLayout()) {\n this._layout._originalHeight = 0;\n this.layout.changedDimensions(false, true);\n } else {\n this._h = 0;\n this._triggerRecalcTranslate();\n }\n }\n }\n disableFuncH() {\n this._optFlags = this._optFlags & 65535 - 8;\n this._funcH = null;\n }\n get w() {\n return this._w;\n }\n getRenderWidth() {\n if (this.hasFlexLayout()) {\n return this._layout.originalWidth;\n } else {\n return this._w;\n }\n }\n get h() {\n return this._h;\n }\n getRenderHeight() {\n if (this.hasFlexLayout()) {\n return this._layout.originalHeight;\n } else {\n return this._h;\n }\n }\n get scaleX() {\n return this._scaleX;\n }\n set scaleX(v) {\n if (this._scaleX !== v) {\n this._scaleX = v;\n this._updateLocalTransform();\n }\n }\n get scaleY() {\n return this._scaleY;\n }\n set scaleY(v) {\n if (this._scaleY !== v) {\n this._scaleY = v;\n this._updateLocalTransform();\n }\n }\n get scale() {\n return this.scaleX;\n }\n set scale(v) {\n if (this._scaleX !== v || this._scaleY !== v) {\n this._scaleX = v;\n this._scaleY = v;\n this._updateLocalTransform();\n }\n }\n get pivotX() {\n return this._pivotX;\n }\n set pivotX(v) {\n if (this._pivotX !== v) {\n this._pivotX = v;\n this._updateLocalTranslate();\n }\n }\n get pivotY() {\n return this._pivotY;\n }\n set pivotY(v) {\n if (this._pivotY !== v) {\n this._pivotY = v;\n this._updateLocalTranslate();\n }\n }\n get pivot() {\n return this._pivotX;\n }\n set pivot(v) {\n if (this._pivotX !== v || this._pivotY !== v) {\n this._pivotX = v;\n this._pivotY = v;\n this._updateLocalTranslate();\n }\n }\n get mountX() {\n return this._mountX;\n }\n set mountX(v) {\n if (this._mountX !== v) {\n this._mountX = v;\n this._updateLocalTranslate();\n }\n }\n get mountY() {\n return this._mountY;\n }\n set mountY(v) {\n if (this._mountY !== v) {\n this._mountY = v;\n this._updateLocalTranslate();\n }\n }\n get mount() {\n return this._mountX;\n }\n set mount(v) {\n if (this._mountX !== v || this._mountY !== v) {\n this._mountX = v;\n this._mountY = v;\n this._updateLocalTranslate();\n }\n }\n get rotation() {\n return this._rotation;\n }\n set rotation(v) {\n if (this._rotation !== v) {\n this._rotation = v;\n this._updateLocalTransform();\n }\n }\n get alpha() {\n return this._alpha;\n }\n set alpha(v) {\n v = v > 1 ? 1 : v < 1e-14 ? 0 : v;\n if (this._alpha !== v) {\n let prev = this._alpha;\n this._alpha = v;\n this._updateLocalAlpha();\n if (prev === 0 !== (v === 0)) {\n this._element._updateEnabledFlag();\n }\n }\n }\n get visible() {\n return this._visible;\n }\n set visible(v) {\n if (this._visible !== v) {\n this._visible = v;\n this._updateLocalAlpha();\n this._element._updateEnabledFlag();\n if (this.hasFlexLayout()) {\n this.layout.setVisible(v);\n }\n }\n }\n _updateLocalTransform() {\n if (this._rotation !== 0 && this._rotation % (2 * Math.PI)) {\n let _sr = Math.sin(this._rotation);\n let _cr = Math.cos(this._rotation);\n this._setLocalTransform(\n _cr * this._scaleX,\n -_sr * this._scaleY,\n _sr * this._scaleX,\n _cr * this._scaleY\n );\n } else {\n this._setLocalTransform(\n this._scaleX,\n 0,\n 0,\n this._scaleY\n );\n }\n this._updateLocalTranslate();\n }\n _updateLocalTranslate() {\n this._recalcLocalTranslate();\n this._triggerRecalcTranslate();\n }\n _recalcLocalTranslate() {\n let pivotXMul = this._pivotX * this._w;\n let pivotYMul = this._pivotY * this._h;\n let px = this._x - (pivotXMul * this._localTa + pivotYMul * this._localTb) + pivotXMul;\n let py = this._y - (pivotXMul * this._localTc + pivotYMul * this._localTd) + pivotYMul;\n px -= this._mountX * this._w;\n py -= this._mountY * this._h;\n this._localPx = px;\n this._localPy = py;\n }\n _updateLocalTranslateDelta(dx, dy) {\n this._addLocalTranslate(dx, dy);\n }\n _updateLocalAlpha() {\n this._setLocalAlpha(this._visible ? this._alpha : 0);\n }\n setHasRenderUpdates(type) {\n if (this._worldContext.alpha) {\n let p = this;\n p._hasRenderUpdates = Math.max(type, p._hasRenderUpdates);\n while ((p = p._parent) && p._hasRenderUpdates !== 3) {\n p._hasRenderUpdates = 3;\n }\n }\n }\n _setRecalc(type) {\n this._recalc |= type;\n this._setHasUpdates();\n if (this._parent) {\n this._parent.setHasRenderUpdates(3);\n }\n }\n _setHasUpdates() {\n let p = this;\n while (p && !p._hasUpdates) {\n p._hasUpdates = true;\n p = p._parent;\n }\n }\n getParent() {\n return this._parent;\n }\n setParent(parent) {\n if (parent !== this._parent) {\n let prevIsZContext = this.isZContext();\n let prevParent = this._parent;\n this._parent = parent;\n if (this._layout || parent && parent.isFlexContainer()) {\n this.layout.setParent(prevParent, parent);\n }\n if (prevParent) {\n prevParent.setHasRenderUpdates(3);\n }\n this._setRecalc(1 + 2 + 4);\n if (this._parent) {\n this._parent._setHasUpdates();\n }\n if (this._zIndex === 0) {\n this.setZParent(parent);\n } else {\n this.setZParent(parent ? parent.findZContext() : null);\n }\n if (prevIsZContext !== this.isZContext()) {\n if (!this.isZContext()) {\n this.disableZContext();\n } else {\n this.enableZContext(prevParent.findZContext());\n }\n }\n this._zIndexResort = true;\n if (this._zParent) {\n this._zParent.enableZSort();\n }\n if (!this._shader) {\n let newShaderOwner = parent && !parent._renderToTextureEnabled ? parent._shaderOwner : null;\n if (newShaderOwner !== this._shaderOwner) {\n this.setHasRenderUpdates(1);\n this._setShaderOwnerRecursive(newShaderOwner);\n }\n }\n }\n }\n enableZSort(force = false) {\n if (!this._zSort && this._zContextUsage > 0) {\n this._zSort = true;\n if (force) {\n this.ctx.forceZSort(this);\n }\n }\n }\n addChildAt(index, child) {\n if (!this._children)\n this._children = [];\n this._children.splice(index, 0, child);\n child.setParent(this);\n }\n setChildAt(index, child) {\n if (!this._children)\n this._children = [];\n this._children[index].setParent(null);\n this._children[index] = child;\n child.setParent(this);\n }\n removeChildAt(index) {\n let child = this._children[index];\n this._children.splice(index, 1);\n child.setParent(null);\n }\n removeChildren() {\n if (this._children) {\n for (let i = 0, n = this._children.length; i < n; i++) {\n this._children[i].setParent(null);\n }\n this._children.splice(0);\n if (this._zIndexedChildren) {\n this._zIndexedChildren.splice(0);\n }\n }\n }\n syncChildren(removed, added, order) {\n this._children = order;\n for (let i = 0, n = removed.length; i < n; i++) {\n removed[i].setParent(null);\n }\n for (let i = 0, n = added.length; i < n; i++) {\n added[i].setParent(this);\n }\n }\n moveChild(fromIndex, toIndex) {\n let c = this._children[fromIndex];\n this._children.splice(fromIndex, 1);\n this._children.splice(toIndex, 0, c);\n this._zIndexResort = true;\n if (this._zParent) {\n this._zParent.enableZSort();\n }\n }\n _setLocalTransform(a, b, c, d) {\n this._setRecalc(4);\n this._localTa = a;\n this._localTb = b;\n this._localTc = c;\n this._localTd = d;\n this._isComplex = b !== 0 || c !== 0 || a < 0 || d < 0;\n }\n _addLocalTranslate(dx, dy) {\n this._localPx += dx;\n this._localPy += dy;\n this._triggerRecalcTranslate();\n }\n _setLocalAlpha(a) {\n if (!this._worldContext.alpha && (this._parent && this._parent._worldContext.alpha && a)) {\n this._setRecalc(1 + 128);\n } else {\n this._setRecalc(1);\n }\n if (a < 1e-14) {\n a = 0;\n }\n this._localAlpha = a;\n }\n setDimensions(w, h, isEstimate = this._dimsUnknown) {\n this._dimsUnknown = isEstimate;\n if (this.hasFlexLayout()) {\n this._layout.originalWidth = w;\n this._layout.originalHeight = h;\n } else {\n if (this._w !== w || this._h !== h) {\n this._updateDimensions(w, h);\n return true;\n }\n }\n return false;\n }\n _updateDimensions(w, h) {\n if (this._w !== w || this._h !== h) {\n this._w = w;\n this._h = h;\n this._triggerRecalcTranslate();\n if (this._texturizer) {\n this._texturizer.releaseRenderTexture();\n this._texturizer.updateResultTexture();\n }\n this._updateLocalTranslate();\n }\n }\n setTextureCoords(ulx, uly, brx, bry) {\n this.setHasRenderUpdates(3);\n this._ulx = ulx;\n this._uly = uly;\n this._brx = brx;\n this._bry = bry;\n }\n get displayedTextureSource() {\n return this._displayedTextureSource;\n }\n setDisplayedTextureSource(textureSource) {\n this.setHasRenderUpdates(3);\n this._displayedTextureSource = textureSource;\n }\n get isRoot() {\n return this._isRoot;\n }\n setAsRoot() {\n this._parent = new ElementCore(this._element);\n this._parent._hasRenderUpdates = 3;\n this._parent._hasUpdates = true;\n this._isRoot = true;\n this.ctx.root = this;\n this._parent._viewport = [0, 0, this.ctx.stage.coordsWidth, this.ctx.stage.coordsHeight];\n this._parent._scissor = this._parent._viewport;\n this._parent._recBoundsMargin = null;\n this._setRecalc(1 + 2 + 4);\n }\n isAncestorOf(c) {\n let p = c;\n while (p = p._parent) {\n if (this === p) {\n return true;\n }\n }\n return false;\n }\n isZContext() {\n return this._forceZIndexContext || this._renderToTextureEnabled || this._zIndex !== 0 || this._isRoot || !this._parent;\n }\n findZContext() {\n if (this.isZContext()) {\n return this;\n } else {\n return this._parent.findZContext();\n }\n }\n setZParent(newZParent) {\n if (this._zParent !== newZParent) {\n if (this._zParent !== null) {\n if (this._zIndex !== 0) {\n this._zParent.decZContextUsage();\n }\n this._zParent.enableZSort();\n }\n if (newZParent !== null) {\n let hadZContextUsage = newZParent._zContextUsage > 0;\n if (this._zIndex !== 0) {\n newZParent.incZContextUsage();\n }\n if (newZParent._zContextUsage > 0) {\n if (!hadZContextUsage && this._parent === newZParent)\n ;\n else {\n newZParent._zIndexedChildren.push(this);\n }\n newZParent.enableZSort();\n }\n }\n this._zParent = newZParent;\n this._zIndexResort = true;\n }\n }\n incZContextUsage() {\n this._zContextUsage++;\n if (this._zContextUsage === 1) {\n if (!this._zIndexedChildren) {\n this._zIndexedChildren = [];\n }\n if (this._children) {\n for (let i = 0, n = this._children.length; i < n; i++) {\n this._zIndexedChildren.push(this._children[i]);\n }\n this._zSort = false;\n }\n }\n }\n decZContextUsage() {\n this._zContextUsage--;\n if (this._zContextUsage === 0) {\n this._zSort = false;\n this._zIndexedChildren.splice(0);\n }\n }\n get zIndex() {\n return this._zIndex;\n }\n set zIndex(zIndex) {\n if (this._zIndex !== zIndex) {\n this.setHasRenderUpdates(1);\n let newZParent = this._zParent;\n let prevIsZContext = this.isZContext();\n if (zIndex === 0 && this._zIndex !== 0) {\n if (this._parent === this._zParent) {\n if (this._zParent) {\n this._zParent.decZContextUsage();\n }\n } else {\n newZParent = this._parent;\n }\n } else if (zIndex !== 0 && this._zIndex === 0) {\n newZParent = this._parent ? this._parent.findZContext() : null;\n if (newZParent === this._zParent) {\n if (this._zParent) {\n this._zParent.incZContextUsage();\n this._zParent.enableZSort();\n }\n }\n } else if (zIndex !== this._zIndex) {\n if (this._zParent && this._zParent._zContextUsage) {\n this._zParent.enableZSort();\n }\n }\n if (newZParent !== this._zParent) {\n this.setZParent(null);\n }\n this._zIndex = zIndex;\n if (newZParent !== this._zParent) {\n this.setZParent(newZParent);\n }\n if (prevIsZContext !== this.isZContext()) {\n if (!this.isZContext()) {\n this.disableZContext();\n } else {\n this.enableZContext(this._parent.findZContext());\n }\n }\n this._zIndexResort = true;\n if (this._zParent) {\n this._zParent.enableZSort();\n }\n }\n }\n get forceZIndexContext() {\n return this._forceZIndexContext;\n }\n set forceZIndexContext(v) {\n this.setHasRenderUpdates(1);\n let prevIsZContext = this.isZContext();\n this._forceZIndexContext = v;\n if (prevIsZContext !== this.isZContext()) {\n if (!this.isZContext()) {\n this.disableZContext();\n } else {\n this.enableZContext(this._parent.findZContext());\n }\n }\n }\n enableZContext(prevZContext) {\n if (prevZContext && prevZContext._zContextUsage > 0) {\n const results = this._getZIndexedDescs();\n results.forEach((c) => {\n if (this.isAncestorOf(c) && c._zIndex !== 0) {\n c.setZParent(this);\n }\n });\n }\n }\n _getZIndexedDescs() {\n const results = [];\n if (this._children) {\n for (let i = 0, n = this._children.length; i < n; i++) {\n this._children[i]._getZIndexedDescsRec(results);\n }\n }\n return results;\n }\n _getZIndexedDescsRec(results) {\n if (this._zIndex) {\n results.push(this);\n } else if (this._children && !this.isZContext()) {\n for (let i = 0, n = this._children.length; i < n; i++) {\n this._children[i]._getZIndexedDescsRec(results);\n }\n }\n }\n disableZContext() {\n if (this._zContextUsage > 0) {\n let newZParent = this._parent.findZContext();\n if (this._zSort) {\n this.sortZIndexedChildren();\n }\n this._zIndexedChildren.slice().forEach(function(c) {\n if (c._zIndex !== 0) {\n c.setZParent(newZParent);\n }\n });\n }\n }\n get colorUl() {\n return this._colorUl;\n }\n set colorUl(color) {\n if (this._colorUl !== color) {\n this.setHasRenderUpdates(this._displayedTextureSource ? 3 : 1);\n this._colorUl = color;\n }\n }\n get colorUr() {\n return this._colorUr;\n }\n set colorUr(color) {\n if (this._colorUr !== color) {\n this.setHasRenderUpdates(this._displayedTextureSource ? 3 : 1);\n this._colorUr = color;\n }\n }\n get colorBl() {\n return this._colorBl;\n }\n set colorBl(color) {\n if (this._colorBl !== color) {\n this.setHasRenderUpdates(this._displayedTextureSource ? 3 : 1);\n this._colorBl = color;\n }\n }\n get colorBr() {\n return this._colorBr;\n }\n set colorBr(color) {\n if (this._colorBr !== color) {\n this.setHasRenderUpdates(this._displayedTextureSource ? 3 : 1);\n this._colorBr = color;\n }\n }\n set onUpdate(f) {\n this._onUpdate = f;\n this._setRecalc(7);\n }\n set onAfterUpdate(f) {\n this._onAfterUpdate = f;\n this._setRecalc(7);\n }\n set onAfterCalcs(f) {\n this._onAfterCalcs = f;\n this._setRecalc(7);\n }\n get shader() {\n return this._shader;\n }\n set shader(v) {\n this.setHasRenderUpdates(1);\n let prevShader = this._shader;\n this._shader = v;\n if (!v && prevShader) {\n let newShaderOwner = this._parent && !this._parent._renderToTextureEnabled ? this._parent._shaderOwner : null;\n this._setShaderOwnerRecursive(newShaderOwner);\n } else if (v) {\n this._setShaderOwnerRecursive(this);\n }\n }\n get activeShader() {\n return this._shaderOwner ? this._shaderOwner.shader : this.renderState.defaultShader;\n }\n get activeShaderOwner() {\n return this._shaderOwner;\n }\n get clipping() {\n return this._clipping;\n }\n set clipping(v) {\n if (this._clipping !== v) {\n this._clipping = v;\n this._setRecalc(1 + 2);\n }\n }\n get clipbox() {\n return this._clipbox;\n }\n set clipbox(v) {\n this._clipbox = v;\n }\n _setShaderOwnerRecursive(elementCore) {\n this._shaderOwner = elementCore;\n if (this._children && !this._renderToTextureEnabled) {\n for (let i = 0, n = this._children.length; i < n; i++) {\n let c = this._children[i];\n if (!c._shader) {\n c._setShaderOwnerRecursive(elementCore);\n c._hasRenderUpdates = 3;\n }\n }\n }\n }\n _setShaderOwnerChildrenRecursive(elementCore) {\n if (this._children) {\n for (let i = 0, n = this._children.length; i < n; i++) {\n let c = this._children[i];\n if (!c._shader) {\n c._setShaderOwnerRecursive(elementCore);\n c._hasRenderUpdates = 3;\n }\n }\n }\n }\n _hasRenderContext() {\n return this._renderContext !== this._worldContext;\n }\n get renderContext() {\n return this._renderContext;\n }\n updateRenderToTextureEnabled() {\n let v = this.texturizer._enabled;\n if (v) {\n this._enableRenderToTexture();\n } else {\n this._disableRenderToTexture();\n this._texturizer.releaseRenderTexture();\n }\n }\n _enableRenderToTexture() {\n if (!this._renderToTextureEnabled) {\n let prevIsZContext = this.isZContext();\n this._renderToTextureEnabled = true;\n this._renderContext = new ElementCoreContext();\n this._setShaderOwnerChildrenRecursive(null);\n if (!prevIsZContext) {\n this.enableZContext(this._parent ? this._parent.findZContext() : null);\n }\n this.setHasRenderUpdates(3);\n this._setRecalc(7);\n this.render = this._renderAdvanced;\n }\n }\n _disableRenderToTexture() {\n if (this._renderToTextureEnabled) {\n this._renderToTextureEnabled = false;\n this._setShaderOwnerChildrenRecursive(this._shaderOwner);\n this._renderContext = this._worldContext;\n if (!this.isZContext()) {\n this.disableZContext();\n }\n this._setRecalc(7);\n this.setHasRenderUpdates(3);\n this.render = this._renderSimple;\n }\n }\n isWhite() {\n return this._colorUl === 4294967295 && this._colorUr === 4294967295 && this._colorBl === 4294967295 && this._colorBr === 4294967295;\n }\n hasSimpleTexCoords() {\n return this._ulx === 0 && this._uly === 0 && this._brx === 1 && this._bry === 1;\n }\n _stashTexCoords() {\n this._stashedTexCoords = [this._ulx, this._uly, this._brx, this._bry];\n this._ulx = 0;\n this._uly = 0;\n this._brx = 1;\n this._bry = 1;\n }\n _unstashTexCoords() {\n this._ulx = this._stashedTexCoords[0];\n this._uly = this._stashedTexCoords[1];\n this._brx = this._stashedTexCoords[2];\n this._bry = this._stashedTexCoords[3];\n this._stashedTexCoords = null;\n }\n _stashColors() {\n this._stashedColors = [this._colorUl, this._colorUr, this._colorBr, this._colorBl];\n this._colorUl = 4294967295;\n this._colorUr = 4294967295;\n this._colorBr = 4294967295;\n this._colorBl = 4294967295;\n }\n _unstashColors() {\n this._colorUl = this._stashedColors[0];\n this._colorUr = this._stashedColors[1];\n this._colorBr = this._stashedColors[2];\n this._colorBl = this._stashedColors[3];\n this._stashedColors = null;\n }\n isVisible() {\n return this._localAlpha > 1e-14;\n }\n get outOfBounds() {\n return this._outOfBounds;\n }\n set boundsMargin(v) {\n this._boundsMargin = v ? v.slice() : null;\n this._triggerRecalcTranslate();\n }\n get boundsMargin() {\n return this._boundsMargin;\n }\n update() {\n this._recalc |= this._parent._pRecalc;\n if (this._layout && this._layout.isEnabled()) {\n if (this._recalc & 256) {\n this._layout.layoutFlexTree();\n }\n } else if (this._recalc & 2 && this._optFlags) {\n this._applyRelativeDimFuncs();\n }\n if (this._onUpdate) {\n this._hasUpdates = true;\n this._onUpdate(this.element, this);\n }\n const pw = this._parent._worldContext;\n let w = this._worldContext;\n const visible = pw.alpha && this._localAlpha;\n if (this._hasUpdates || this._recalc && visible || w.alpha && !visible) {\n let recalc = this._recalc;\n if (recalc & 1) {\n if (!w.alpha && visible) {\n this._hasRenderUpdates = 3;\n }\n w.alpha = pw.alpha * this._localAlpha;\n if (w.alpha < 1e-14) {\n w.alpha = 0;\n }\n }\n if (recalc & 6) {\n w.px = pw.px + this._localPx * pw.ta;\n w.py = pw.py + this._localPy * pw.td;\n if (pw.tb !== 0)\n w.px += this._localPy * pw.tb;\n if (pw.tc !== 0)\n w.py += this._localPx * pw.tc;\n }\n if (recalc & 4) {\n w.ta = this._localTa * pw.ta;\n w.tb = this._localTd * pw.tb;\n w.tc = this._localTa * pw.tc;\n w.td = this._localTd * pw.td;\n if (this._isComplex) {\n w.ta += this._localTc * pw.tb;\n w.tb += this._localTb * pw.ta;\n w.tc += this._localTc * pw.td;\n w.td += this._localTb * pw.tc;\n }\n }\n const pr = this._parent._renderContext;\n if (this._parent._hasRenderContext()) {\n const init = this._renderContext === this._worldContext;\n if (init) {\n this._renderContext = new ElementCoreContext();\n }\n const r2 = this._renderContext;\n if (init || recalc & 1) {\n r2.alpha = pr.alpha * this._localAlpha;\n if (r2.alpha < 1e-14) {\n r2.alpha = 0;\n }\n }\n if (init || recalc & 6) {\n r2.px = pr.px + this._localPx * pr.ta;\n r2.py = pr.py + this._localPy * pr.td;\n if (pr.tb !== 0)\n r2.px += this._localPy * pr.tb;\n if (pr.tc !== 0)\n r2.py += this._localPx * pr.tc;\n }\n if (init) {\n recalc |= 2;\n }\n if (init || recalc & 4) {\n r2.ta = this._localTa * pr.ta;\n r2.tb = this._localTd * pr.tb;\n r2.tc = this._localTa * pr.tc;\n r2.td = this._localTd * pr.td;\n if (this._isComplex) {\n r2.ta += this._localTc * pr.tb;\n r2.tb += this._localTb * pr.ta;\n r2.tc += this._localTc * pr.td;\n r2.td += this._localTb * pr.tc;\n }\n }\n } else {\n this._renderContext = this._worldContext;\n }\n if (this.ctx.updateTreeOrder === -1) {\n this.ctx.updateTreeOrder = this._updateTreeOrder + 1;\n } else {\n this._updateTreeOrder = this.ctx.updateTreeOrder++;\n }\n const useRenderToTexture = this._renderToTextureEnabled && this._texturizer.mustRenderToTexture();\n if (this._useRenderToTexture !== useRenderToTexture) {\n this._recalc |= 2 + 4;\n recalc |= 2;\n if (!this._useRenderToTexture) {\n this._texturizer.release();\n }\n }\n this._useRenderToTexture = useRenderToTexture;\n const r = this._renderContext;\n const bboxW = this._dimsUnknown ? 2048 : this._w;\n const bboxH = this._dimsUnknown ? 2048 : this._h;\n let sx, sy, ex, ey;\n const rComplex = r.tb !== 0 || r.tc !== 0 || r.ta < 0 || r.td < 0;\n if (rComplex) {\n sx = Math.min(0, bboxW * r.ta, bboxW * r.ta + bboxH * r.tb, bboxH * r.tb) + r.px;\n ex = Math.max(0, bboxW * r.ta, bboxW * r.ta + bboxH * r.tb, bboxH * r.tb) + r.px;\n sy = Math.min(0, bboxW * r.tc, bboxW * r.tc + bboxH * r.td, bboxH * r.td) + r.py;\n ey = Math.max(0, bboxW * r.tc, bboxW * r.tc + bboxH * r.td, bboxH * r.td) + r.py;\n } else {\n sx = r.px;\n ex = r.px + r.ta * bboxW;\n sy = r.py;\n ey = r.py + r.td * bboxH;\n }\n if (this._dimsUnknown && (rComplex || this._localTa < 1 || this._localTb < 1)) {\n const nx = this._x * pr.ta + this._y * pr.tb + pr.px;\n const ny = this._x * pr.tc + this._y * pr.td + pr.py;\n if (nx < sx)\n sx = nx;\n if (ny < sy)\n sy = ny;\n if (nx > ex)\n ex = nx;\n if (ny > ey)\n ey = ny;\n }\n if (recalc & 6 || !this._scissor) {\n if (this._clipping && r.isSquare()) {\n const area = this._parent._useRenderToTexture ? this._parent._viewport : this._parent._scissor;\n if (area) {\n const lx = Math.max(area[0], sx);\n const ly = Math.max(area[1], sy);\n this._scissor = [\n lx,\n ly,\n Math.min(area[2] + area[0], ex) - lx,\n Math.min(area[3] + area[1], ey) - ly\n ];\n } else {\n this._scissor = [sx, sy, ex - sx, ey - sy];\n }\n } else {\n this._scissor = this._parent._useRenderToTexture ? this._parent._viewport : this._parent._scissor;\n }\n }\n if (this._boundsMargin) {\n this._recBoundsMargin = this._boundsMargin;\n } else {\n this._recBoundsMargin = this._parent._recBoundsMargin;\n }\n if (this._onAfterCalcs) {\n if (this._onAfterCalcs(this.element)) {\n if (rComplex) {\n sx = Math.min(0, bboxW * r.ta, bboxW * r.ta + bboxH * r.tb, bboxH * r.tb) + r.px;\n ex = Math.max(0, bboxW * r.ta, bboxW * r.ta + bboxH * r.tb, bboxH * r.tb) + r.px;\n sy = Math.min(0, bboxW * r.tc, bboxW * r.tc + bboxH * r.td, bboxH * r.td) + r.py;\n ey = Math.max(0, bboxW * r.tc, bboxW * r.tc + bboxH * r.td, bboxH * r.td) + r.py;\n } else {\n sx = r.px;\n ex = r.px + r.ta * bboxW;\n sy = r.py;\n ey = r.py + r.td * bboxH;\n }\n if (this._dimsUnknown && (rComplex || this._localTa < 1 || this._localTb < 1)) {\n const nx = this._x * pr.ta + this._y * pr.tb + pr.px;\n const ny = this._x * pr.tc + this._y * pr.td + pr.py;\n if (nx < sx)\n sx = nx;\n if (ny < sy)\n sy = ny;\n if (nx > ex)\n ex = nx;\n if (ny > ey)\n ey = ny;\n }\n }\n }\n if (this._parent._outOfBounds === 2) {\n this._outOfBounds = 2;\n if (this._withinBoundsMargin) {\n this._withinBoundsMargin = false;\n this.element._disableWithinBoundsMargin();\n }\n } else {\n if (recalc & 6) {\n this._outOfBounds = 0;\n let withinMargin = true;\n if (!this._renderToTextureEnabled || !this._texturizer || !this._texturizer.renderOffscreen) {\n if (this._scissor && (this._scissor[2] <= 0 || this._scissor[3] <= 0)) {\n this._outOfBounds = 2;\n } else {\n if (this._scissor[0] > ex || this._scissor[1] > ey || sx > this._scissor[0] + this._scissor[2] || sy > this._scissor[1] + this._scissor[3]) {\n this._outOfBounds = 1;\n }\n if (this._outOfBounds) {\n if (this._clipping || this._useRenderToTexture || this._clipbox && (bboxW && bboxH)) {\n this._outOfBounds = 2;\n }\n }\n }\n withinMargin = this._outOfBounds === 0;\n if (!withinMargin) {\n if (this._recBoundsMargin) {\n withinMargin = !(ex < this._scissor[0] - this._recBoundsMargin[2] || ey < this._scissor[1] - this._recBoundsMargin[3] || sx > this._scissor[0] + this._scissor[2] + this._recBoundsMargin[0] || sy > this._scissor[1] + this._scissor[3] + this._recBoundsMargin[1]);\n } else {\n withinMargin = !(ex < this._scissor[0] - 100 || ey < this._scissor[1] - 100 || sx > this._scissor[0] + this._scissor[2] + 100 || sy > this._scissor[1] + this._scissor[3] + 100);\n }\n if (withinMargin && this._outOfBounds === 2) {\n this._outOfBounds = 1;\n }\n }\n }\n if (this._withinBoundsMargin !== withinMargin) {\n this._withinBoundsMargin = withinMargin;\n if (this._withinBoundsMargin) {\n this._hasUpdates = true;\n const recalc2 = this._recalc;\n this._recalc = 0;\n this.element._enableWithinBoundsMargin();\n if (this._recalc) {\n return this.update();\n }\n this._recalc = recalc2;\n } else {\n this.element._disableWithinBoundsMargin();\n }\n }\n }\n }\n if (this._useRenderToTexture) {\n if (this._viewport) {\n this._viewport[2] = bboxW;\n this._viewport[3] = bboxH;\n } else {\n this._viewport = [0, 0, bboxW, bboxH];\n }\n }\n this._pRecalc = this._recalc & 135;\n this._recalc = 0;\n this._hasUpdates = false;\n if (this._outOfBounds < 2) {\n if (this._useRenderToTexture) {\n if (this._worldContext.isIdentity()) {\n this._renderContext = this._worldContext;\n } else {\n this._renderContext = ElementCoreContext.IDENTITY;\n }\n }\n if (this._children) {\n for (let i = 0, n = this._children.length; i < n; i++) {\n this._children[i].update();\n }\n }\n if (this._useRenderToTexture) {\n this._renderContext = r;\n }\n } else {\n if (this._children) {\n for (let i = 0, n = this._children.length; i < n; i++) {\n if (this._children[i]._hasUpdates) {\n this._children[i].update();\n } else {\n this._children[i]._recalc |= this._pRecalc;\n this._children[i].updateOutOfBounds();\n }\n }\n }\n }\n if (this._onAfterUpdate) {\n this._onAfterUpdate(this.element);\n }\n } else {\n if (this.ctx.updateTreeOrder === -1 || this._updateTreeOrder >= this.ctx.updateTreeOrder) {\n this.ctx.updateTreeOrder = -1;\n } else {\n this.updateTreeOrder();\n }\n }\n }\n _applyRelativeDimFuncs() {\n if (this._optFlags & 1) {\n const x = this._funcX(this._parent.w);\n if (x !== this._x) {\n this._localPx += x - this._x;\n this._x = x;\n }\n }\n if (this._optFlags & 2) {\n const y = this._funcY(this._parent.h);\n if (y !== this._y) {\n this._localPy += y - this._y;\n this._y = y;\n }\n }\n let changedDims = false;\n if (this._optFlags & 4) {\n const w = this._funcW(this._parent.w);\n if (w !== this._w) {\n this._w = w;\n changedDims = true;\n }\n }\n if (this._optFlags & 8) {\n const h = this._funcH(this._parent.h);\n if (h !== this._h) {\n this._h = h;\n changedDims = true;\n }\n }\n if (changedDims) {\n this._recalcLocalTranslate();\n this.element.onDimensionsChanged(this._w, this._h);\n }\n }\n updateOutOfBounds() {\n if (this._outOfBounds !== 2 && this._renderContext.alpha > 0) {\n this._outOfBounds = 2;\n if (this._withinBoundsMargin) {\n this._withinBoundsMargin = false;\n this.element._disableWithinBoundsMargin();\n }\n if (this._children) {\n for (let i = 0, n = this._children.length; i < n; i++) {\n this._children[i].updateOutOfBounds();\n }\n }\n }\n }\n updateTreeOrder() {\n if (this._localAlpha && this._outOfBounds !== 2) {\n this._updateTreeOrder = this.ctx.updateTreeOrder++;\n if (this._children) {\n for (let i = 0, n = this._children.length; i < n; i++) {\n this._children[i].updateTreeOrder();\n }\n }\n }\n }\n _renderSimple() {\n this._hasRenderUpdates = 0;\n if (this._zSort) {\n this.sortZIndexedChildren();\n }\n if (this._outOfBounds < 2 && this._renderContext.alpha) {\n let renderState = this.renderState;\n if (this._outOfBounds === 0 && this._displayedTextureSource) {\n renderState.setShader(this.activeShader, this._shaderOwner);\n renderState.setScissor(this._scissor);\n this.renderState.addQuad(this);\n }\n if (this._children) {\n if (this._zContextUsage) {\n for (let i = 0, n = this._zIndexedChildren.length; i < n; i++) {\n this._zIndexedChildren[i].render();\n }\n } else {\n for (let i = 0, n = this._children.length; i < n; i++) {\n if (this._children[i]._zIndex === 0) {\n this._children[i].render();\n }\n }\n }\n }\n }\n }\n _renderAdvanced() {\n const hasRenderUpdates = this._hasRenderUpdates;\n this._hasRenderUpdates = 0;\n if (this._zSort) {\n this.sortZIndexedChildren();\n }\n if (this._outOfBounds < 2 && this._renderContext.alpha) {\n let renderState = this.renderState;\n let mustRenderChildren = true;\n let renderTextureInfo;\n let prevRenderTextureInfo;\n if (this._useRenderToTexture) {\n if (this._w === 0 || this._h === 0) {\n return;\n } else if (!this._texturizer.hasRenderTexture() || hasRenderUpdates >= 3) {\n this.ctx.renderToTextureCount++;\n renderState.setShader(renderState.defaultShader, this);\n prevRenderTextureInfo = renderState.renderTextureInfo;\n renderTextureInfo = {\n nativeTexture: null,\n offset: 0,\n w: this._w,\n h: this._h,\n empty: true,\n cleared: false,\n ignore: false,\n cache: false\n };\n if (this._texturizer.hasResultTexture() || !renderState.isCachingTexturizer && hasRenderUpdates < 3) {\n renderTextureInfo.cache = true;\n renderState.isCachingTexturizer = true;\n }\n if (!this._texturizer.hasResultTexture()) {\n this._texturizer.releaseRenderTexture();\n }\n renderState.setRenderTextureInfo(renderTextureInfo);\n renderState.setScissor(null);\n if (this._displayedTextureSource) {\n let r = this._renderContext;\n this._renderContext = ElementCoreContext.IDENTITY;\n this.renderState.addQuad(this);\n this._renderContext = r;\n }\n } else {\n mustRenderChildren = false;\n }\n } else {\n if (this._outOfBounds === 0 && this._displayedTextureSource) {\n renderState.setShader(this.activeShader, this._shaderOwner);\n renderState.setScissor(this._scissor);\n this.renderState.addQuad(this);\n }\n }\n if (mustRenderChildren && this._children) {\n if (this._zContextUsage) {\n for (let i = 0, n = this._zIndexedChildren.length; i < n; i++) {\n this._zIndexedChildren[i].render();\n }\n } else {\n for (let i = 0, n = this._children.length; i < n; i++) {\n if (this._children[i]._zIndex === 0) {\n this._children[i].render();\n }\n }\n }\n }\n if (this._useRenderToTexture) {\n let updateResultTexture = false;\n if (mustRenderChildren) {\n renderState.finishedRenderTexture();\n this._texturizer.empty = renderTextureInfo.empty;\n if (renderTextureInfo.empty) {\n this._texturizer.releaseRenderTexture();\n } else if (renderTextureInfo.nativeTexture) {\n this._texturizer.reuseTextureAsRenderTexture(renderTextureInfo.nativeTexture);\n renderTextureInfo.ignore = true;\n } else {\n if (this._texturizer.renderTextureReused) {\n this._texturizer.releaseRenderTexture();\n }\n renderTextureInfo.nativeTexture = this._texturizer.getRenderTexture();\n }\n renderState.setRenderTextureInfo(prevRenderTextureInfo);\n updateResultTexture = true;\n }\n if (!this._texturizer.empty) {\n let resultTexture = this._texturizer.getResultTexture();\n if (updateResultTexture) {\n if (resultTexture) {\n resultTexture.update = renderState.stage.frameCounter;\n }\n this._texturizer.updateResultTexture();\n }\n if (!this._texturizer.renderOffscreen) {\n renderState.setShader(this.activeShader, this._shaderOwner);\n renderState.setScissor(this._scissor);\n const cache = !renderTextureInfo || renderTextureInfo.cache;\n renderState.setTexturizer(this._texturizer, cache);\n this._stashTexCoords();\n if (!this._texturizer.colorize)\n this._stashColors();\n this.renderState.addQuad(this, true);\n if (!this._texturizer.colorize)\n this._unstashColors();\n this._unstashTexCoords();\n renderState.setTexturizer(null);\n }\n }\n }\n if (renderTextureInfo && renderTextureInfo.cache) {\n renderState.isCachingTexturizer = false;\n }\n }\n }\n get zSort() {\n return this._zSort;\n }\n sortZIndexedChildren() {\n const n = this._zIndexedChildren.length;\n let ptr = 0;\n const a = this._zIndexedChildren;\n const b = [];\n for (let i = 0; i < n; i++) {\n if (a[i]._zParent === this) {\n if (a[i]._zIndexResort) {\n b.push(a[i]);\n } else {\n if (ptr !== i) {\n a[ptr] = a[i];\n }\n ptr++;\n }\n }\n }\n const m = b.length;\n if (m) {\n for (let j = 0; j < m; j++) {\n b[j]._zIndexResort = false;\n }\n b.sort(ElementCore.sortZIndexedChildren);\n const n2 = ptr;\n if (!n2) {\n ptr = 0;\n let j = 0;\n do {\n a[ptr++] = b[j++];\n } while (j < m);\n if (a.length > ptr) {\n a.splice(ptr);\n }\n } else {\n ptr = 0;\n let i = 0;\n let j = 0;\n const mergeResult = [];\n do {\n const v = a[i]._zIndex === b[j]._zIndex ? a[i]._updateTreeOrder - b[j]._updateTreeOrder : a[i]._zIndex - b[j]._zIndex;\n const add = v > 0 ? b[j++] : a[i++];\n if (ptr === 0 || mergeResult[ptr - 1] !== add) {\n mergeResult[ptr++] = add;\n }\n if (i >= n2) {\n do {\n const add2 = b[j++];\n if (ptr === 0 || mergeResult[ptr - 1] !== add2) {\n mergeResult[ptr++] = add2;\n }\n } while (j < m);\n break;\n } else if (j >= m) {\n do {\n const add2 = a[i++];\n if (ptr === 0 || mergeResult[ptr - 1] !== add2) {\n mergeResult[ptr++] = add2;\n }\n } while (i < n2);\n break;\n }\n } while (true);\n this._zIndexedChildren = mergeResult;\n }\n } else {\n if (a.length > ptr) {\n a.splice(ptr);\n }\n }\n this._zSort = false;\n }\n get localTa() {\n return this._localTa;\n }\n get localTb() {\n return this._localTb;\n }\n get localTc() {\n return this._localTc;\n }\n get localTd() {\n return this._localTd;\n }\n get element() {\n return this._element;\n }\n get renderUpdates() {\n return this._hasRenderUpdates;\n }\n get texturizer() {\n if (!this._texturizer) {\n this._texturizer = new ElementTexturizer(this);\n }\n return this._texturizer;\n }\n getCornerPoints() {\n let w = this._worldContext;\n return [\n w.px,\n w.py,\n w.px + this._w * w.ta,\n w.py + this._w * w.tc,\n w.px + this._w * w.ta + this._h * w.tb,\n w.py + this._w * w.tc + this._h * w.td,\n w.px + this._h * w.tb,\n w.py + this._h * w.td\n ];\n }\n getRenderTextureCoords(relX, relY) {\n let r = this._renderContext;\n return [\n r.px + r.ta * relX + r.tb * relY,\n r.py + r.tc * relX + r.td * relY\n ];\n }\n getAbsoluteCoords(relX, relY) {\n let w = this._renderContext;\n return [\n w.px + w.ta * relX + w.tb * relY,\n w.py + w.tc * relX + w.td * relY\n ];\n }\n collectAtCoord(x, y, children) {\n if (this._renderContext.alpha === 0) {\n return;\n }\n if (this.inBound(x, y)) {\n if (this._scissor) {\n if (this.inScissor()) {\n children.push(this);\n }\n } else {\n children.push(this);\n }\n }\n if (this._children) {\n const j = this._children.length;\n for (let i = 0; i < j; i++) {\n this._children[i].collectAtCoord(x, y, children);\n }\n }\n return children.sort(ElementCore.sortZIndexedChildren);\n }\n inBound(tx, ty) {\n const c = this.getCornerPoints();\n return tx > c[0] && tx < c[2] && ty > c[1] && ty < c[7];\n }\n inScissor() {\n const sc = this._scissor;\n const c = this.getCornerPoints();\n return c[2] >= sc[0] && c[0] <= sc[0] + sc[2] && c[7] >= sc[1] && c[1] <= sc[1] + sc[3];\n }\n get layout() {\n this._ensureLayout();\n return this._layout;\n }\n get flex() {\n return this._layout ? this._layout.flex : null;\n }\n set flex(v) {\n this.layout.flex = v;\n }\n get flexItem() {\n return this._layout ? this._layout.flexItem : null;\n }\n set flexItem(v) {\n this.layout.flexItem = v;\n }\n isFlexItem() {\n return !!this._layout && this._layout.isFlexItemEnabled();\n }\n isFlexContainer() {\n return !!this._layout && this._layout.isFlexEnabled();\n }\n enableFlexLayout() {\n this._ensureLayout();\n }\n _ensureLayout() {\n if (!this._layout) {\n this._layout = new FlexTarget(this);\n }\n }\n disableFlexLayout() {\n this._triggerRecalcTranslate();\n }\n hasFlexLayout() {\n return this._layout && this._layout.isEnabled();\n }\n setLayout(x, y, w, h) {\n this.x = x;\n this.y = y;\n this._updateDimensions(w, h);\n }\n triggerLayout() {\n this._setRecalc(256);\n }\n _triggerRecalcTranslate() {\n this._setRecalc(2);\n }\n}\nclass ElementCoreContext {\n constructor() {\n this.alpha = 1;\n this.px = 0;\n this.py = 0;\n this.ta = 1;\n this.tb = 0;\n this.tc = 0;\n this.td = 1;\n }\n isIdentity() {\n return this.alpha === 1 && this.px === 0 && this.py === 0 && this.ta === 1 && this.tb === 0 && this.tc === 0 && this.td === 1;\n }\n isSquare() {\n return this.tb === 0 && this.tc === 0;\n }\n}\nElementCoreContext.IDENTITY = new ElementCoreContext();\nElementCore.sortZIndexedChildren = function(a, b) {\n return a._zIndex === b._zIndex ? a._updateTreeOrder - b._updateTreeOrder : a._zIndex - b._zIndex;\n};\nclass EventEmitter {\n constructor() {\n this._hasEventListeners = false;\n }\n on(name, listener) {\n if (!this._hasEventListeners) {\n this._eventFunction = {};\n this._eventListeners = {};\n this._hasEventListeners = true;\n }\n const current = this._eventFunction[name];\n if (!current) {\n this._eventFunction[name] = listener;\n } else {\n if (this._eventFunction[name] !== EventEmitter.combiner) {\n this._eventListeners[name] = [this._eventFunction[name], listener];\n this._eventFunction[name] = EventEmitter.combiner;\n } else {\n this._eventListeners[name].push(listener);\n }\n }\n }\n once(name, listener) {\n const wrapper = (arg1, arg2, arg3) => {\n listener(arg1, arg2, arg3);\n this.off(name, wrapper);\n };\n wrapper.__originalFunc = listener;\n this.on(name, wrapper);\n }\n has(name, listener) {\n if (this._hasEventListeners) {\n const current = this._eventFunction[name];\n if (current) {\n if (current === EventEmitter.combiner) {\n const listeners = this._eventListeners[name];\n for (const l of listeners) {\n if (l === listener || l.__originalFunc == listener) {\n return true;\n }\n }\n } else if (this._eventFunction[name] === listener || this._eventFunction[name].__originalFunc === listener) {\n return true;\n }\n }\n }\n return false;\n }\n off(name, listener) {\n if (this._hasEventListeners) {\n const current = this._eventFunction[name];\n if (current) {\n if (current === EventEmitter.combiner) {\n const listeners = this._eventListeners[name];\n let index = listeners.indexOf(listener);\n if (index >= 0) {\n listeners.splice(index, 1);\n }\n index = listeners.map((l) => l.__originalFunc).indexOf(listener);\n if (index >= 0) {\n listeners.splice(index, 1);\n }\n if (listeners.length === 1) {\n this._eventFunction[name] = listeners[0];\n this._eventListeners[name] = void 0;\n }\n } else if (this._eventFunction[name] === listener || this._eventFunction[name].__originalFunc === listener) {\n this._eventFunction[name] = void 0;\n }\n }\n }\n }\n removeListener(name, listener) {\n this.off(name, listener);\n }\n emit(name, arg1, arg2, arg3) {\n if (this._hasEventListeners) {\n const func = this._eventFunction[name];\n if (func) {\n if (func === EventEmitter.combiner) {\n func(this, name, arg1, arg2, arg3);\n } else {\n func(arg1, arg2, arg3);\n }\n }\n }\n }\n listenerCount(name) {\n if (this._hasEventListeners) {\n const func = this._eventFunction[name];\n if (func) {\n if (func === EventEmitter.combiner) {\n return this._eventListeners[name].length;\n } else {\n return 1;\n }\n }\n }\n return 0;\n }\n removeAllListeners(name) {\n if (this._hasEventListeners) {\n delete this._eventFunction[name];\n delete this._eventListeners[name];\n }\n }\n}\nEventEmitter.combiner = function(object, name, arg1, arg2, arg3) {\n const listeners = object._eventListeners[name];\n if (listeners) {\n for (const listener of [...listeners]) {\n listener(arg1, arg2, arg3);\n }\n }\n};\nEventEmitter.addAsMixin = function(cls) {\n cls.prototype.on = EventEmitter.prototype.on;\n cls.prototype.once = EventEmitter.prototype.once;\n cls.prototype.has = EventEmitter.prototype.has;\n cls.prototype.off = EventEmitter.prototype.off;\n cls.prototype.removeListener = EventEmitter.prototype.removeListener;\n cls.prototype.emit = EventEmitter.prototype.emit;\n cls.prototype.listenerCount = EventEmitter.prototype.listenerCount;\n cls.prototype.removeAllListeners = EventEmitter.prototype.removeAllListeners;\n};\nclass Shader {\n constructor(coreContext) {\n this._initialized = false;\n this.ctx = coreContext;\n this._elements = /* @__PURE__ */ new Set();\n }\n static create(stage, v) {\n let shader;\n if (Utils$1.isObjectLiteral(v)) {\n if (v.type) {\n shader = stage.renderer.createShader(stage.ctx, v);\n } else {\n shader = this.shader;\n }\n if (shader) {\n Base.patchObject(shader, v);\n }\n } else if (v === null) {\n shader = stage.ctx.renderState.defaultShader;\n } else if (v === void 0) {\n shader = null;\n } else {\n if (v.isShader) {\n if (!stage.renderer.isValidShaderType(v.constructor)) {\n console.error(\"[Lightning] Invalid shader type\");\n v = null;\n }\n shader = v;\n } else {\n console.error(\"[Lightning] Please specify a shader type.\");\n return;\n }\n }\n return shader;\n }\n static getWebGL() {\n return void 0;\n }\n static getC2d() {\n return void 0;\n }\n addElement(elementCore) {\n this._elements.add(elementCore);\n }\n removeElement(elementCore) {\n this._elements.delete(elementCore);\n if (!this._elements) {\n this.cleanup();\n }\n }\n redraw() {\n this._elements.forEach((elementCore) => {\n elementCore.setHasRenderUpdates(2);\n });\n }\n patch(settings) {\n Base.patchObject(this, settings);\n }\n useDefault() {\n return false;\n }\n addEmpty() {\n return false;\n }\n cleanup() {\n }\n get isShader() {\n return true;\n }\n}\nclass Texture {\n constructor(stage) {\n this.stage = stage;\n this.manager = this.stage.textureManager;\n this.id = Texture.id++;\n this.elements = /* @__PURE__ */ new Set();\n this._activeCount = 0;\n this._source = null;\n this._resizeMode = null;\n this._x = 0;\n this._y = 0;\n this._w = 0;\n this._h = 0;\n this._precision = 1;\n this.mw = 0;\n this.mh = 0;\n this.clipping = false;\n this._mustUpdate = true;\n }\n get source() {\n if (this._mustUpdate || this.stage.hasUpdateSourceTexture(this)) {\n this._performUpdateSource(true);\n this.stage.removeUpdateSourceTexture(this);\n }\n return this._source;\n }\n addElement(v) {\n if (!this.elements.has(v)) {\n this.elements.add(v);\n if (this.elements.size === 1) {\n if (this._source) {\n this._source.addTexture(this);\n }\n }\n if (v.active) {\n this.incActiveCount();\n }\n }\n }\n removeElement(v) {\n if (this.elements.delete(v)) {\n if (this.elements.size === 0) {\n if (this._source) {\n this._source.removeTexture(this);\n }\n }\n if (v.active) {\n this.decActiveCount();\n }\n }\n }\n incActiveCount() {\n const source = this.source;\n if (source) {\n this._checkForNewerReusableTextureSource();\n }\n this._activeCount++;\n if (this._activeCount === 1) {\n this.becomesUsed();\n }\n }\n decActiveCount() {\n this.source;\n this._activeCount--;\n if (!this._activeCount) {\n this.becomesUnused();\n }\n }\n becomesUsed() {\n if (this.source) {\n this.source.incActiveTextureCount();\n }\n }\n onLoad() {\n if (this._resizeMode) {\n this._applyResizeMode();\n }\n this.elements.forEach((element) => {\n if (element.active) {\n element.onTextureSourceLoaded();\n }\n });\n }\n _checkForNewerReusableTextureSource() {\n const source = this.source;\n if (!source.isLoaded()) {\n const reusable = this._getReusableTextureSource();\n if (reusable && reusable.isLoaded() && reusable !== source) {\n this._replaceTextureSource(reusable);\n }\n } else {\n if (this._resizeMode) {\n this._applyResizeMode();\n }\n }\n }\n becomesUnused() {\n if (this.source) {\n this.source.decActiveTextureCount();\n }\n }\n isUsed() {\n return this._activeCount > 0;\n }\n _getLookupId() {\n return null;\n }\n _getSourceLoader() {\n throw new Error(\"Texture.generate must be implemented.\");\n }\n get isValid() {\n return this._getIsValid();\n }\n _getIsValid() {\n return true;\n }\n _changed() {\n if (this.isUsed()) {\n this._updateSource();\n } else {\n this._mustUpdate = true;\n }\n }\n _updateSource() {\n this.stage.addUpdateSourceTexture(this);\n }\n _performUpdateSource(force = false) {\n if (force || this.isUsed()) {\n this._mustUpdate = false;\n let source = this._getTextureSource();\n this._replaceTextureSource(source);\n }\n }\n _getTextureSource() {\n let source = null;\n if (this._getIsValid()) {\n const lookupId = this._getLookupId();\n source = this._getReusableTextureSource(lookupId);\n if (!source) {\n source = this.manager.getTextureSource(this._getSourceLoader(), lookupId);\n }\n }\n return source;\n }\n _getReusableTextureSource(lookupId = this._getLookupId()) {\n if (this._getIsValid()) {\n if (lookupId) {\n return this.manager.getReusableTextureSource(lookupId);\n }\n }\n return null;\n }\n _replaceTextureSource(newSource = null) {\n let oldSource = this._source;\n this._source = newSource;\n if (this.elements.size) {\n if (oldSource) {\n if (this._activeCount) {\n oldSource.decActiveTextureCount();\n }\n oldSource.removeTexture(this);\n if (this[\"text\"] && !oldSource.isUsed()) {\n this.manager.freeTextureSource(oldSource);\n }\n }\n if (newSource) {\n newSource.addTexture(this);\n if (this._activeCount) {\n newSource.incActiveTextureCount();\n }\n }\n }\n if (this.isUsed()) {\n if (newSource) {\n if (newSource.isLoaded()) {\n if (this._resizeMode) {\n this._applyResizeMode();\n }\n this.elements.forEach((element) => {\n if (element.active) {\n element._setDisplayedTexture(this);\n }\n });\n } else {\n const loadError = newSource.loadError;\n if (loadError) {\n this.elements.forEach((element) => {\n if (element.active) {\n element.onTextureSourceLoadError(loadError);\n }\n });\n }\n }\n } else {\n this.elements.forEach((element) => {\n if (element.active) {\n element._setDisplayedTexture(null);\n }\n });\n }\n }\n }\n load() {\n if (this.source) {\n if (!this.isLoaded()) {\n this.source.load(true);\n }\n }\n }\n isLoaded() {\n return this._source && this._source.isLoaded();\n }\n get loadError() {\n return this._source && this._source.loadError;\n }\n free() {\n if (this._source) {\n this._source.free();\n }\n }\n set resizeMode({ type = \"cover\", w = 0, h = 0, clipX = 0.5, clipY = 0.5 }) {\n this._resizeMode = { type, w, h, clipX, clipY };\n if (this.isLoaded()) {\n this._applyResizeMode();\n }\n }\n get resizeMode() {\n return this._resizeMode;\n }\n _clearResizeMode() {\n this._resizeMode = null;\n }\n _applyResizeMode() {\n if (this._resizeMode.type === \"cover\") {\n this._applyResizeCover();\n } else if (this._resizeMode.type === \"contain\") {\n this._applyResizeContain();\n }\n this._updatePrecision();\n this._updateClipping();\n }\n _applyResizeCover() {\n const scaleX = this._resizeMode.w / this._source.w;\n const scaleY = this._resizeMode.h / this._source.h;\n let scale = Math.max(scaleX, scaleY);\n if (!scale)\n return;\n this._precision = 1 / scale;\n if (scaleX && scaleX < scale) {\n const desiredSize = this._precision * this._resizeMode.w;\n const choppedOffPixels = this._source.w - desiredSize;\n this._x = choppedOffPixels * this._resizeMode.clipX;\n this._w = this._source.w - choppedOffPixels;\n }\n if (scaleY && scaleY < scale) {\n const desiredSize = this._precision * this._resizeMode.h;\n const choppedOffPixels = this._source.h - desiredSize;\n this._y = choppedOffPixels * this._resizeMode.clipY;\n this._h = this._source.h - choppedOffPixels;\n }\n }\n _applyResizeContain() {\n const scaleX = this._resizeMode.w / this._source.w;\n const scaleY = this._resizeMode.h / this._source.h;\n let scale = scaleX;\n if (!scale || scaleY < scale) {\n scale = scaleY;\n }\n if (!scale)\n return;\n this._precision = 1 / scale;\n }\n enableClipping(x, y, w, h) {\n this._clearResizeMode();\n x *= this._precision;\n y *= this._precision;\n w *= this._precision;\n h *= this._precision;\n if (this._x !== x || this._y !== y || this._w !== w || this._h !== h) {\n this._x = x;\n this._y = y;\n this._w = w;\n this._h = h;\n this._updateClipping(true);\n }\n }\n disableClipping() {\n this._clearResizeMode();\n if (this._x || this._y || this._w || this._h) {\n this._x = 0;\n this._y = 0;\n this._w = 0;\n this._h = 0;\n this._updateClipping();\n }\n }\n _updateClipping() {\n this.clipping = !!(this._x || this._y || this._w || this._h);\n let self = this;\n this.elements.forEach(function(element) {\n if (element.displayedTexture === self) {\n element.onDisplayedTextureClippingChanged();\n }\n });\n }\n _updatePrecision() {\n let self = this;\n this.elements.forEach(function(element) {\n if (element.displayedTexture === self) {\n element.onPrecisionChanged();\n }\n });\n }\n getNonDefaults() {\n let nonDefaults = {};\n nonDefaults[\"type\"] = this.constructor.name;\n if (this.x !== 0)\n nonDefaults[\"x\"] = this.x;\n if (this.y !== 0)\n nonDefaults[\"y\"] = this.y;\n if (this.w !== 0)\n nonDefaults[\"w\"] = this.w;\n if (this.h !== 0)\n nonDefaults[\"h\"] = this.h;\n if (this.precision !== 1)\n nonDefaults[\"precision\"] = this.precision;\n return nonDefaults;\n }\n get px() {\n return this._x;\n }\n get py() {\n return this._y;\n }\n get pw() {\n return this._w;\n }\n get ph() {\n return this._h;\n }\n get x() {\n return this._x / this._precision;\n }\n set x(v) {\n this._clearResizeMode();\n v = v * this._precision;\n if (this._x !== v) {\n this._x = v;\n this._updateClipping();\n }\n }\n get y() {\n return this._y / this._precision;\n }\n set y(v) {\n this._clearResizeMode();\n v = v * this._precision;\n if (this._y !== v) {\n this._y = v;\n this._updateClipping();\n }\n }\n get w() {\n return this._w / this._precision;\n }\n set w(v) {\n this._clearResizeMode();\n v = v * this._precision;\n if (this._w !== v) {\n this._w = v;\n this._updateClipping();\n }\n }\n get h() {\n return this._h / this._precision;\n }\n set h(v) {\n this._clearResizeMode();\n v = v * this._precision;\n if (this._h !== v) {\n this._h = v;\n this._updateClipping();\n }\n }\n get precision() {\n return this._precision;\n }\n set precision(v) {\n this._clearResizeMode();\n if (this._precision !== v) {\n this._precision = v;\n this._updatePrecision();\n }\n }\n isAutosizeTexture() {\n return true;\n }\n getRenderWidth() {\n if (!this.isAutosizeTexture()) {\n return 0;\n }\n return (this._w || (this._source ? this._source.getRenderWidth() - this._x : 0)) / this._precision;\n }\n getRenderHeight() {\n if (!this.isAutosizeTexture()) {\n return 0;\n }\n return (this._h || (this._source ? this._source.getRenderHeight() - this._y : 0)) / this._precision;\n }\n patch(settings) {\n Base.patchObject(this, settings);\n }\n}\nTexture.prototype.isTexture = true;\nTexture.id = 0;\nclass ImageTexture extends Texture {\n constructor(stage) {\n super(stage);\n this._src = void 0;\n this._hasAlpha = false;\n }\n get src() {\n return this._src;\n }\n set src(v) {\n if (this._src !== v) {\n this._src = v;\n this._changed();\n }\n }\n get hasAlpha() {\n return this._hasAlpha;\n }\n set hasAlpha(v) {\n if (this._hasAlpha !== v) {\n this._hasAlpha = v;\n this._changed();\n }\n }\n _getIsValid() {\n return !!this._src;\n }\n _getLookupId() {\n return this._src;\n }\n _getSourceLoader() {\n let src = this._src;\n let hasAlpha = this._hasAlpha;\n if (this.stage.getOption(\"srcBasePath\")) {\n var fc = src.charCodeAt(0);\n if (src.indexOf(\"//\") === -1 && (fc >= 65 && fc <= 90 || fc >= 97 && fc <= 122 || fc == 46)) {\n src = this.stage.getOption(\"srcBasePath\") + src;\n }\n }\n return (cb) => {\n return this.stage.platform.loadSrcTexture({ src, hasAlpha }, cb);\n };\n }\n getNonDefaults() {\n const obj = super.getNonDefaults();\n if (this._src) {\n obj.src = this._src;\n }\n return obj;\n }\n}\nfunction getFontSetting(fontFace, fontStyle, fontSize, precision, defaultFontFace) {\n let ff = fontFace;\n if (!Array.isArray(ff)) {\n ff = [ff];\n }\n let ffs = [];\n for (let i = 0, n = ff.length; i < n; i++) {\n let curFf = ff[i];\n if (curFf === null) {\n curFf = defaultFontFace;\n }\n if (curFf === \"serif\" || curFf === \"sans-serif\") {\n ffs.push(curFf);\n } else {\n ffs.push(`\"${curFf}\"`);\n }\n }\n return `${fontStyle} ${fontSize * precision}px ${ffs.join(\",\")}`;\n}\nfunction isZeroWidthSpace(space) {\n return space === \"\" || space === \"​\";\n}\nfunction isSpace(space) {\n return isZeroWidthSpace(space) || space === \" \";\n}\nfunction tokenizeString(tokenRegex, text) {\n const delimeters = text.match(tokenRegex) || [];\n const words = text.split(tokenRegex) || [];\n let final = [];\n for (let i = 0; i < words.length; i++) {\n final.push(words[i], delimeters[i]);\n }\n final.pop();\n return final.filter((word) => word != \"\");\n}\nfunction measureText(context, word, space = 0) {\n if (!space) {\n return context.measureText(word).width;\n }\n return word.split(\"\").reduce((acc, char) => {\n if (isZeroWidthSpace(char)) {\n return acc;\n }\n return acc + context.measureText(char).width + space;\n }, 0);\n}\nfunction wrapText(context, text, wordWrapWidth, letterSpacing, indent) {\n const spaceRegex = / |\\u200B/g;\n let lines = text.split(/\\r?\\n/g);\n let allLines = [];\n let realNewlines = [];\n for (let i = 0; i < lines.length; i++) {\n let resultLines = [];\n let result = \"\";\n let spaceLeft = wordWrapWidth - indent;\n let words = lines[i].split(spaceRegex);\n let spaces = lines[i].match(spaceRegex) || [];\n for (let j = 0; j < words.length; j++) {\n const space = spaces[j - 1] || \"\";\n const word = words[j];\n const wordWidth = measureText(context, word, letterSpacing);\n const wordWidthWithSpace = wordWidth + measureText(context, space, letterSpacing);\n if (j === 0 || wordWidthWithSpace > spaceLeft) {\n if (j > 0) {\n resultLines.push(result);\n result = \"\";\n }\n result += word;\n spaceLeft = wordWrapWidth - wordWidth - (j === 0 ? indent : 0);\n } else {\n spaceLeft -= wordWidthWithSpace;\n result += space + word;\n }\n }\n resultLines.push(result);\n result = \"\";\n allLines = allLines.concat(resultLines);\n if (i < lines.length - 1) {\n realNewlines.push(allLines.length);\n }\n }\n return { l: allLines, n: realNewlines };\n}\nclass TextTextureRenderer {\n constructor(stage, canvas, settings) {\n this._stage = stage;\n this._canvas = canvas;\n this._context = this._canvas.getContext(\"2d\");\n this._settings = settings;\n }\n getPrecision() {\n return this._settings.precision;\n }\n setFontProperties() {\n this._context.font = getFontSetting(\n this._settings.fontFace,\n this._settings.fontStyle,\n this._settings.fontSize,\n this.getPrecision(),\n this._stage.getOption(\"defaultFontFace\")\n );\n this._context.textBaseline = this._settings.textBaseline;\n }\n _load() {\n if (Utils$1.isWeb && document.fonts) {\n const fontSetting = getFontSetting(\n this._settings.fontFace,\n this._settings.fontStyle,\n this._settings.fontSize,\n this.getPrecision(),\n this._stage.getOption(\"defaultFontFace\")\n );\n try {\n if (!document.fonts.check(fontSetting, this._settings.text)) {\n return document.fonts.load(fontSetting, this._settings.text).catch((err) => {\n console.warn(\"[Lightning] Font load error\", err, fontSetting);\n }).then(() => {\n if (!document.fonts.check(fontSetting, this._settings.text)) {\n console.warn(\"[Lightning] Font not found\", fontSetting);\n }\n });\n }\n } catch (e) {\n console.warn(\"[Lightning] Can't check font loading for \" + fontSetting);\n }\n }\n }\n draw() {\n const loadPromise = this._load();\n if (!loadPromise) {\n return Utils$1.isSpark ? this._stage.platform.drawText(this) : this._draw();\n } else {\n return loadPromise.then(() => {\n return Utils$1.isSpark ? this._stage.platform.drawText(this) : this._draw();\n });\n }\n }\n _calculateRenderInfo() {\n let renderInfo = {};\n const precision = this.getPrecision();\n const paddingLeft = this._settings.paddingLeft * precision;\n const paddingRight = this._settings.paddingRight * precision;\n const fontSize = this._settings.fontSize * precision;\n let offsetY = this._settings.offsetY === null ? null : this._settings.offsetY * precision;\n let lineHeight = this._settings.lineHeight * precision;\n const w = this._settings.w * precision;\n const h = this._settings.h * precision;\n let wordWrapWidth = this._settings.wordWrapWidth * precision;\n const cutSx = this._settings.cutSx * precision;\n const cutEx = this._settings.cutEx * precision;\n const cutSy = this._settings.cutSy * precision;\n const cutEy = this._settings.cutEy * precision;\n const letterSpacing = (this._settings.letterSpacing || 0) * precision;\n const textIndent = this._settings.textIndent * precision;\n this.setFontProperties();\n let width = w || this._stage.getOption(\"w\");\n let innerWidth = width - paddingLeft;\n if (innerWidth < 10) {\n width += 10 - innerWidth;\n innerWidth = 10;\n }\n if (!wordWrapWidth) {\n wordWrapWidth = innerWidth;\n }\n if (this._settings.textOverflow && !this._settings.wordWrap) {\n let suffix;\n switch (this._settings.textOverflow) {\n case \"clip\":\n suffix = \"\";\n break;\n case \"ellipsis\":\n suffix = this._settings.maxLinesSuffix;\n break;\n default:\n suffix = this._settings.textOverflow;\n }\n this._settings.text = this.wrapWord(this._settings.text, wordWrapWidth - textIndent, suffix);\n }\n let linesInfo;\n if (this._settings.wordWrap) {\n linesInfo = this.wrapText(this._settings.text, wordWrapWidth, letterSpacing, textIndent);\n } else {\n linesInfo = { l: this._settings.text.split(/(?:\\r\\n|\\r|\\n)/), n: [] };\n let n = linesInfo.l.length;\n for (let i = 0; i < n - 1; i++) {\n linesInfo.n.push(i);\n }\n }\n let lines = linesInfo.l;\n if (this._settings.maxLines && lines.length > this._settings.maxLines) {\n let usedLines = lines.slice(0, this._settings.maxLines);\n let otherLines = null;\n if (this._settings.maxLinesSuffix) {\n let w2 = this._settings.maxLinesSuffix ? this.measureText(this._settings.maxLinesSuffix) : 0;\n let al = this.wrapText(usedLines[usedLines.length - 1], wordWrapWidth - w2, letterSpacing, textIndent);\n usedLines[usedLines.length - 1] = al.l[0] + this._settings.maxLinesSuffix;\n otherLines = [al.l.length > 1 ? al.l[1] : \"\"];\n } else {\n otherLines = [\"\"];\n }\n let i, n = lines.length;\n let j = 0;\n let m = linesInfo.n.length;\n for (i = this._settings.maxLines; i < n; i++) {\n otherLines[j] += (otherLines[j] ? \" \" : \"\") + lines[i];\n if (i + 1 < m && linesInfo.n[i + 1]) {\n j++;\n }\n }\n renderInfo.remainingText = otherLines.join(\"\\n\");\n renderInfo.moreTextLines = true;\n lines = usedLines;\n } else {\n renderInfo.moreTextLines = false;\n renderInfo.remainingText = \"\";\n }\n let maxLineWidth = 0;\n let lineWidths = [];\n for (let i = 0; i < lines.length; i++) {\n let lineWidth = this.measureText(lines[i], letterSpacing) + (i === 0 ? textIndent : 0);\n lineWidths.push(lineWidth);\n maxLineWidth = Math.max(maxLineWidth, lineWidth);\n }\n renderInfo.lineWidths = lineWidths;\n if (!w) {\n width = maxLineWidth + paddingLeft + paddingRight;\n innerWidth = maxLineWidth;\n }\n lineHeight = lineHeight || fontSize;\n let height;\n if (h) {\n height = h;\n } else {\n const baselineOffset = this._settings.textBaseline != \"bottom\" ? 0.5 * fontSize : 0;\n height = lineHeight * (lines.length - 1) + baselineOffset + Math.max(lineHeight, fontSize) + offsetY;\n }\n if (offsetY === null) {\n offsetY = fontSize;\n }\n renderInfo.w = width;\n renderInfo.h = height;\n renderInfo.lines = lines;\n renderInfo.precision = precision;\n if (!width) {\n width = 1;\n }\n if (!height) {\n height = 1;\n }\n if (cutSx || cutEx) {\n width = Math.min(width, cutEx - cutSx);\n }\n if (cutSy || cutEy) {\n height = Math.min(height, cutEy - cutSy);\n }\n renderInfo.width = width;\n renderInfo.innerWidth = innerWidth;\n renderInfo.height = height;\n renderInfo.fontSize = fontSize;\n renderInfo.cutSx = cutSx;\n renderInfo.cutSy = cutSy;\n renderInfo.cutEx = cutEx;\n renderInfo.cutEy = cutEy;\n renderInfo.lineHeight = lineHeight;\n renderInfo.lineWidths = lineWidths;\n renderInfo.offsetY = offsetY;\n renderInfo.paddingLeft = paddingLeft;\n renderInfo.paddingRight = paddingRight;\n renderInfo.letterSpacing = letterSpacing;\n renderInfo.textIndent = textIndent;\n return renderInfo;\n }\n _draw() {\n const renderInfo = this._calculateRenderInfo();\n const precision = this.getPrecision();\n this._canvas.width = Math.ceil(renderInfo.width + this._stage.getOption(\"textRenderIssueMargin\"));\n this._canvas.height = Math.ceil(renderInfo.height);\n this.setFontProperties();\n if (renderInfo.fontSize >= 128) {\n this._context.globalAlpha = 0.01;\n this._context.fillRect(0, 0, 0.01, 0.01);\n this._context.globalAlpha = 1;\n }\n if (renderInfo.cutSx || renderInfo.cutSy) {\n this._context.translate(-renderInfo.cutSx, -renderInfo.cutSy);\n }\n let linePositionX;\n let linePositionY;\n let drawLines = [];\n for (let i = 0, n = renderInfo.lines.length; i < n; i++) {\n linePositionX = i === 0 ? renderInfo.textIndent : 0;\n linePositionY = i * renderInfo.lineHeight + renderInfo.offsetY;\n if (this._settings.verticalAlign == \"middle\") {\n linePositionY += (renderInfo.lineHeight - renderInfo.fontSize) / 2;\n } else if (this._settings.verticalAlign == \"bottom\") {\n linePositionY += renderInfo.lineHeight - renderInfo.fontSize;\n }\n if (this._settings.textAlign === \"right\") {\n linePositionX += renderInfo.innerWidth - renderInfo.lineWidths[i];\n } else if (this._settings.textAlign === \"center\") {\n linePositionX += (renderInfo.innerWidth - renderInfo.lineWidths[i]) / 2;\n }\n linePositionX += renderInfo.paddingLeft;\n drawLines.push({ text: renderInfo.lines[i], x: linePositionX, y: linePositionY, w: renderInfo.lineWidths[i] });\n }\n if (this._settings.highlight) {\n let color = this._settings.highlightColor || 0;\n let hlHeight = this._settings.highlightHeight * precision || renderInfo.fontSize * 1.5;\n const offset = this._settings.highlightOffset * precision;\n const hlPaddingLeft = this._settings.highlightPaddingLeft !== null ? this._settings.highlightPaddingLeft * precision : renderInfo.paddingLeft;\n const hlPaddingRight = this._settings.highlightPaddingRight !== null ? this._settings.highlightPaddingRight * precision : renderInfo.paddingRight;\n this._context.fillStyle = StageUtils.getRgbaString(color);\n for (let i = 0; i < drawLines.length; i++) {\n let drawLine = drawLines[i];\n this._context.fillRect(drawLine.x - hlPaddingLeft, drawLine.y - renderInfo.offsetY + offset, drawLine.w + hlPaddingRight + hlPaddingLeft, hlHeight);\n }\n }\n let prevShadowSettings = null;\n if (this._settings.shadow) {\n prevShadowSettings = [this._context.shadowColor, this._context.shadowOffsetX, this._context.shadowOffsetY, this._context.shadowBlur];\n this._context.shadowColor = StageUtils.getRgbaString(this._settings.shadowColor);\n this._context.shadowOffsetX = this._settings.shadowOffsetX * precision;\n this._context.shadowOffsetY = this._settings.shadowOffsetY * precision;\n this._context.shadowBlur = this._settings.shadowBlur * precision;\n }\n this._context.fillStyle = StageUtils.getRgbaString(this._settings.textColor);\n for (let i = 0, n = drawLines.length; i < n; i++) {\n let drawLine = drawLines[i];\n if (renderInfo.letterSpacing === 0) {\n this._context.fillText(drawLine.text, drawLine.x, drawLine.y);\n } else {\n const textSplit = drawLine.text.split(\"\");\n let x = drawLine.x;\n for (let i2 = 0, j = textSplit.length; i2 < j; i2++) {\n this._context.fillText(textSplit[i2], x, drawLine.y);\n x += this.measureText(textSplit[i2], renderInfo.letterSpacing);\n }\n }\n }\n if (prevShadowSettings) {\n this._context.shadowColor = prevShadowSettings[0];\n this._context.shadowOffsetX = prevShadowSettings[1];\n this._context.shadowOffsetY = prevShadowSettings[2];\n this._context.shadowBlur = prevShadowSettings[3];\n }\n if (renderInfo.cutSx || renderInfo.cutSy) {\n this._context.translate(renderInfo.cutSx, renderInfo.cutSy);\n }\n this.renderInfo = renderInfo;\n }\n wrapWord(word, wordWrapWidth, suffix) {\n const suffixWidth = this.measureText(suffix);\n const wordLen = word.length;\n const wordWidth = this.measureText(word);\n if (wordWidth <= wordWrapWidth) {\n return word;\n }\n let cutoffIndex = Math.floor(wordWrapWidth * wordLen / wordWidth);\n let truncWordWidth = this.measureText(word.substring(0, cutoffIndex)) + suffixWidth;\n if (truncWordWidth > wordWrapWidth) {\n while (cutoffIndex > 0) {\n truncWordWidth = this.measureText(word.substring(0, cutoffIndex)) + suffixWidth;\n if (truncWordWidth > wordWrapWidth) {\n cutoffIndex -= 1;\n } else {\n break;\n }\n }\n } else {\n while (cutoffIndex < wordLen) {\n truncWordWidth = this.measureText(word.substring(0, cutoffIndex)) + suffixWidth;\n if (truncWordWidth < wordWrapWidth) {\n cutoffIndex += 1;\n } else {\n cutoffIndex -= 1;\n break;\n }\n }\n }\n return word.substring(0, cutoffIndex) + (wordWrapWidth >= suffixWidth ? suffix : \"\");\n }\n wrapText(text, wordWrapWidth, letterSpacing, indent = 0) {\n return wrapText(this._context, text, wordWrapWidth, letterSpacing, indent);\n }\n measureText(word, space = 0) {\n return measureText(this._context, word, space);\n }\n}\nclass TextTextureRendererAdvanced {\n constructor(stage, canvas, settings) {\n this._stage = stage;\n this._canvas = canvas;\n this._context = this._canvas.getContext(\"2d\");\n this._settings = settings;\n }\n getPrecision() {\n return this._settings.precision;\n }\n setFontProperties() {\n const font = getFontSetting(\n this._settings.fontFace,\n this._settings.fontStyle,\n this._settings.fontSize,\n this.getPrecision(),\n this._stage.getOption(\"defaultFontFace\")\n );\n this._context.font = font;\n this._context.textBaseline = this._settings.textBaseline;\n return font;\n }\n _load() {\n if (Utils$1.isWeb && document.fonts) {\n const fontSetting = getFontSetting(\n this._settings.fontFace,\n this._settings.fontStyle,\n this._settings.fontSize,\n this.getPrecision(),\n this._stage.getOption(\"defaultFontFace\")\n );\n try {\n if (!document.fonts.check(fontSetting, this._settings.text)) {\n return document.fonts.load(fontSetting, this._settings.text).catch((err) => {\n console.warn(\"Font load error\", err, fontSetting);\n }).then(() => {\n if (!document.fonts.check(fontSetting, this._settings.text)) {\n console.warn(\"Font not found\", fontSetting);\n }\n });\n }\n } catch (e) {\n console.warn(\"Can't check font loading for \" + fontSetting);\n }\n }\n }\n draw() {\n const loadPromise = this._load();\n if (!loadPromise) {\n return Utils$1.isSpark ? this._stage.platform.drawText(this) : this._draw();\n } else {\n return loadPromise.then(() => {\n return Utils$1.isSpark ? this._stage.platform.drawText(this) : this._draw();\n });\n }\n }\n _calculateRenderInfo() {\n let renderInfo = {};\n const precision = this.getPrecision();\n const paddingLeft = this._settings.paddingLeft * precision;\n const paddingRight = this._settings.paddingRight * precision;\n const fontSize = this._settings.fontSize * precision;\n const lineHeight = this._settings.lineHeight * precision || fontSize;\n const w = this._settings.w != 0 ? this._settings.w * precision : this._stage.getOption(\"w\");\n const wordWrapWidth = this._settings.wordWrapWidth * precision;\n const cutSx = this._settings.cutSx * precision;\n const cutEx = this._settings.cutEx * precision;\n const cutSy = this._settings.cutSy * precision;\n const cutEy = this._settings.cutEy * precision;\n const letterSpacing = this._settings.letterSpacing || 0;\n renderInfo.baseFont = this.setFontProperties();\n renderInfo.w = w;\n renderInfo.width = w;\n renderInfo.text = this._settings.text;\n renderInfo.precision = precision;\n renderInfo.fontSize = fontSize;\n renderInfo.fontBaselineRatio = this._settings.fontBaselineRatio;\n renderInfo.lineHeight = lineHeight;\n renderInfo.letterSpacing = letterSpacing;\n renderInfo.textAlign = this._settings.textAlign;\n renderInfo.textColor = this._settings.textColor;\n renderInfo.verticalAlign = this._settings.verticalAlign;\n renderInfo.highlight = this._settings.highlight;\n renderInfo.highlightColor = this._settings.highlightColor;\n renderInfo.highlightHeight = this._settings.highlightHeight;\n renderInfo.highlightPaddingLeft = this._settings.highlightPaddingLeft;\n renderInfo.highlightPaddingRight = this._settings.highlightPaddingRight;\n renderInfo.highlightOffset = this._settings.highlightOffset;\n renderInfo.paddingLeft = this._settings.paddingLeft;\n renderInfo.paddingRight = this._settings.paddingRight;\n renderInfo.maxLines = this._settings.maxLines;\n renderInfo.maxLinesSuffix = this._settings.maxLinesSuffix;\n renderInfo.textOverflow = this._settings.textOverflow;\n renderInfo.wordWrap = this._settings.wordWrap;\n renderInfo.wordWrapWidth = wordWrapWidth;\n renderInfo.shadow = this._settings.shadow;\n renderInfo.shadowColor = this._settings.shadowColor;\n renderInfo.shadowOffsetX = this._settings.shadowOffsetX;\n renderInfo.shadowOffsetY = this._settings.shadowOffsetY;\n renderInfo.shadowBlur = this._settings.shadowBlur;\n renderInfo.cutSx = cutSx;\n renderInfo.cutEx = cutEx;\n renderInfo.cutSy = cutSy;\n renderInfo.cutEy = cutEy;\n renderInfo.textIndent = this._settings.textIndent * precision;\n renderInfo.wordBreak = this._settings.wordBreak;\n let text = renderInfo.text;\n let wrapWidth = renderInfo.wordWrap ? renderInfo.wordWrapWidth || renderInfo.width : renderInfo.width;\n if (renderInfo.textOverflow && !renderInfo.wordWrap) {\n let suffix;\n switch (this._settings.textOverflow) {\n case \"clip\":\n suffix = \"\";\n break;\n case \"ellipsis\":\n suffix = this._settings.maxLinesSuffix;\n break;\n default:\n suffix = this._settings.textOverflow;\n }\n text = this.wrapWord(text, wordWrapWidth || renderInfo.w, suffix);\n }\n text = this.tokenize(text);\n text = this.parse(text);\n text = this.measure(text, letterSpacing, renderInfo.baseFont);\n if (renderInfo.textIndent) {\n text = this.indent(text, renderInfo.textIndent);\n }\n if (renderInfo.wordBreak) {\n text = text.reduce((acc, t) => acc.concat(this.wordBreak(t, wrapWidth, renderInfo.baseFont)), []);\n this.resetFontStyle();\n }\n let x = paddingLeft;\n let lineNo = 0;\n for (const t of text) {\n if (renderInfo.wordWrap && x + t.width > wrapWidth || t.text == \"\\n\") {\n x = paddingLeft;\n lineNo += 1;\n }\n t.lineNo = lineNo;\n if (t.text == \"\\n\") {\n continue;\n }\n t.x = x;\n x += t.width;\n }\n renderInfo.lineNum = lineNo + 1;\n if (this._settings.h) {\n renderInfo.h = this._settings.h;\n } else if (renderInfo.maxLines && renderInfo.maxLines < renderInfo.lineNum) {\n renderInfo.h = renderInfo.maxLines * renderInfo.lineHeight + fontSize / 2;\n } else {\n renderInfo.h = renderInfo.lineNum * renderInfo.lineHeight + fontSize / 2;\n }\n const baselineOffsetInPx = renderInfo.fontBaselineRatio * renderInfo.fontSize;\n let vaOffset = 0;\n if (renderInfo.verticalAlign == \"top\" && this._context.textBaseline == \"alphabetic\") {\n vaOffset = -baselineOffsetInPx;\n } else if (renderInfo.verticalAlign == \"middle\") {\n vaOffset = (renderInfo.lineHeight - renderInfo.fontSize - baselineOffsetInPx) / 2;\n } else if (this._settings.verticalAlign == \"bottom\") {\n vaOffset = renderInfo.lineHeight - renderInfo.fontSize;\n }\n renderInfo.lines = [];\n for (let i = 0; i < renderInfo.lineNum; i++) {\n renderInfo.lines[i] = {\n width: 0,\n x: 0,\n y: renderInfo.lineHeight * i + vaOffset,\n text: []\n };\n }\n for (let t of text) {\n renderInfo.lines[t.lineNo].text.push(t);\n }\n for (const l of renderInfo.lines) {\n if (l.text.length == 0) {\n continue;\n }\n const firstWord = l.text[0].text;\n const lastWord = l.text[l.text.length - 1].text;\n if (firstWord == \"\\n\") {\n l.text.shift();\n }\n if (isSpace(lastWord) || lastWord == \"\\n\") {\n l.text.pop();\n }\n }\n for (let l of renderInfo.lines) {\n l.width = l.text.reduce((acc, t) => acc + t.width, 0);\n }\n renderInfo.width = this._settings.w != 0 ? this._settings.w * precision : Math.max(...renderInfo.lines.map((l) => l.width)) + paddingRight;\n renderInfo.w = renderInfo.width;\n if (renderInfo.maxLines && renderInfo.lineNum > renderInfo.maxLines && renderInfo.maxLinesSuffix) {\n const index = renderInfo.maxLines - 1;\n let lastLineText = text.filter((t) => t.lineNo == index);\n let suffix = renderInfo.maxLinesSuffix;\n suffix = this.tokenize(suffix);\n suffix = this.parse(suffix);\n suffix = this.measure(suffix, renderInfo.letterSpacing, renderInfo.baseFont);\n for (const s of suffix) {\n s.lineNo = index;\n s.x = 0;\n lastLineText.push(s);\n }\n const spl = suffix.length + 1;\n let _w = lastLineText.reduce((acc, t) => acc + t.width, 0);\n while (_w > renderInfo.width || isSpace(lastLineText[lastLineText.length - spl].text)) {\n lastLineText.splice(lastLineText.length - spl, 1);\n _w = lastLineText.reduce((acc, t) => acc + t.width, 0);\n if (lastLineText.length < spl) {\n break;\n }\n }\n this.alignLine(lastLineText, lastLineText[0].x);\n renderInfo.lines[index].text = lastLineText;\n renderInfo.lines[index].width = _w;\n }\n if (renderInfo.textAlign == \"center\") {\n for (let l of renderInfo.lines) {\n l.x = (renderInfo.width - l.width - paddingLeft) / 2;\n }\n } else if (renderInfo.textAlign == \"right\") {\n for (let l of renderInfo.lines) {\n l.x = renderInfo.width - l.width - paddingLeft;\n }\n }\n return renderInfo;\n }\n _draw() {\n const renderInfo = this._calculateRenderInfo();\n const precision = this.getPrecision();\n const paddingLeft = renderInfo.paddingLeft * precision;\n let canvasWidth = renderInfo.w || renderInfo.width;\n if (renderInfo.cutSx || renderInfo.cutEx) {\n canvasWidth = Math.min(renderInfo.w, renderInfo.cutEx - renderInfo.cutSx);\n }\n let canvasHeight = renderInfo.h;\n if (renderInfo.cutSy || renderInfo.cutEy) {\n canvasHeight = Math.min(renderInfo.h, renderInfo.cutEy - renderInfo.cutSy);\n }\n this._canvas.width = Math.ceil(canvasWidth + this._stage.getOption(\"textRenderIssueMargin\"));\n this._canvas.height = Math.ceil(canvasHeight);\n this.setFontProperties();\n if (renderInfo.fontSize >= 128) {\n this._context.globalAlpha = 0.01;\n this._context.fillRect(0, 0, 0.01, 0.01);\n this._context.globalAlpha = 1;\n }\n if (renderInfo.cutSx || renderInfo.cutSy) {\n this._context.translate(-renderInfo.cutSx, -renderInfo.cutSy);\n }\n if (renderInfo.highlight) {\n const hlColor = renderInfo.highlightColor || 0;\n const hlHeight = renderInfo.highlightHeight ? renderInfo.highlightHeight * precision : renderInfo.fontSize * 1.5;\n const hlOffset = renderInfo.highlightOffset ? renderInfo.highlightOffset * precision : 0;\n const hlPaddingLeft = renderInfo.highlightPaddingLeft !== null ? renderInfo.highlightPaddingLeft * precision : renderInfo.paddingLeft;\n const hlPaddingRight = renderInfo.highlightPaddingRight !== null ? renderInfo.highlightPaddingRight * precision : renderInfo.paddingRight;\n this._context.fillStyle = StageUtils.getRgbaString(hlColor);\n const lineNum = renderInfo.maxLines ? Math.min(renderInfo.maxLines, renderInfo.lineNum) : renderInfo.lineNum;\n for (let i = 0; i < lineNum; i++) {\n const l = renderInfo.lines[i];\n this._context.fillRect(l.x - hlPaddingLeft + paddingLeft, l.y + hlOffset, l.width + hlPaddingLeft + hlPaddingRight, hlHeight);\n }\n }\n let prevShadowSettings = null;\n if (this._settings.shadow) {\n prevShadowSettings = [this._context.shadowColor, this._context.shadowOffsetX, this._context.shadowOffsetY, this._context.shadowBlur];\n this._context.shadowColor = StageUtils.getRgbaString(this._settings.shadowColor);\n this._context.shadowOffsetX = this._settings.shadowOffsetX * precision;\n this._context.shadowOffsetY = this._settings.shadowOffsetY * precision;\n this._context.shadowBlur = this._settings.shadowBlur * precision;\n }\n const defaultColor = StageUtils.getRgbaString(this._settings.textColor);\n let currentColor = defaultColor;\n this._context.fillStyle = defaultColor;\n for (const line of renderInfo.lines) {\n for (const t of line.text) {\n let lx = 0;\n if (t.text == \"\\n\") {\n continue;\n }\n if (renderInfo.maxLines && t.lineNo >= renderInfo.maxLines) {\n continue;\n }\n if (t.color != currentColor) {\n currentColor = t.color;\n this._context.fillStyle = currentColor;\n }\n this._context.font = t.fontStyle;\n if (t.letters) {\n for (let l of t.letters) {\n const _x = renderInfo.lines[t.lineNo].x + t.x + lx;\n this._context.fillText(l.text, _x, renderInfo.lines[t.lineNo].y + renderInfo.fontSize);\n lx += l.width;\n }\n } else {\n const _x = renderInfo.lines[t.lineNo].x + t.x;\n this._context.fillText(t.text, _x, renderInfo.lines[t.lineNo].y + renderInfo.fontSize);\n }\n }\n }\n if (prevShadowSettings) {\n this._context.shadowColor = prevShadowSettings[0];\n this._context.shadowOffsetX = prevShadowSettings[1];\n this._context.shadowOffsetY = prevShadowSettings[2];\n this._context.shadowBlur = prevShadowSettings[3];\n }\n if (renderInfo.cutSx || renderInfo.cutSy) {\n this._context.translate(renderInfo.cutSx, renderInfo.cutSy);\n }\n renderInfo.lines = renderInfo.lines.map((l) => l.text.reduce((acc, v) => acc + v.text, \"\"));\n if (renderInfo.maxLines) {\n renderInfo.lines = renderInfo.lines.slice(0, renderInfo.maxLines);\n }\n this.renderInfo = renderInfo;\n }\n measureText(word, space = 0) {\n return measureText(this._context, word, space);\n }\n tokenize(text) {\n return tokenizeString(/ |\\u200B|\\n||<\\/i>||<\\/b>||<\\/color>/g, text);\n }\n parse(tokens) {\n let italic = 0;\n let bold = 0;\n let colorStack = [StageUtils.getRgbaString(this._settings.textColor)];\n let color = 0;\n const colorRegexp = //;\n return tokens.map((t) => {\n if (t == \"\") {\n italic += 1;\n t = \"\";\n } else if (t == \"\" && italic > 0) {\n italic -= 1;\n t = \"\";\n } else if (t == \"\") {\n bold += 1;\n t = \"\";\n } else if (t == \"\" && bold > 0) {\n bold -= 1;\n t = \"\";\n } else if (t == \"\") {\n if (colorStack.length > 1) {\n color -= 1;\n colorStack.pop();\n }\n t = \"\";\n } else if (colorRegexp.test(t)) {\n const matched = colorRegexp.exec(t);\n colorStack.push(\n StageUtils.getRgbaString(parseInt(matched[1]))\n );\n color += 1;\n t = \"\";\n }\n return {\n text: t,\n italic,\n bold,\n color: colorStack[color]\n };\n }).filter((o) => o.text != \"\");\n }\n applyFontStyle(word, baseFont) {\n let font = baseFont;\n if (word.bold) {\n font = \"bold \" + font;\n }\n if (word.italic) {\n font = \"italic \" + font;\n }\n this._context.font = font;\n word.fontStyle = font;\n }\n resetFontStyle(baseFont) {\n this._context.font = baseFont;\n }\n measure(parsed, letterSpacing = 0, baseFont) {\n for (const p of parsed) {\n this.applyFontStyle(p, baseFont);\n p.width = this.measureText(p.text, letterSpacing);\n if (letterSpacing > 0) {\n p.letters = p.text.split(\"\").map((l) => {\n return { text: l };\n });\n for (let l of p.letters) {\n l.width = this.measureText(l.text, letterSpacing);\n }\n }\n }\n this.resetFontStyle(baseFont);\n return parsed;\n }\n indent(parsed, textIndent) {\n parsed.splice(0, 0, { text: \"\", width: textIndent });\n return parsed;\n }\n wrapWord(word, wordWrapWidth, suffix) {\n const suffixWidth = this.measureText(suffix);\n const wordLen = word.length;\n const wordWidth = this.measureText(word);\n if (wordWidth <= wordWrapWidth) {\n return word;\n }\n let cutoffIndex = Math.floor(wordWrapWidth * wordLen / wordWidth);\n let truncWordWidth = this.measureText(word.substring(0, cutoffIndex)) + suffixWidth;\n if (truncWordWidth > wordWrapWidth) {\n while (cutoffIndex > 0) {\n truncWordWidth = this.measureText(word.substring(0, cutoffIndex)) + suffixWidth;\n if (truncWordWidth > wordWrapWidth) {\n cutoffIndex -= 1;\n } else {\n break;\n }\n }\n } else {\n while (cutoffIndex < wordLen) {\n truncWordWidth = this.measureText(word.substring(0, cutoffIndex)) + suffixWidth;\n if (truncWordWidth < wordWrapWidth) {\n cutoffIndex += 1;\n } else {\n cutoffIndex -= 1;\n break;\n }\n }\n }\n return word.substring(0, cutoffIndex) + (wordWrapWidth >= suffixWidth ? suffix : \"\");\n }\n _getBreakIndex(word, width) {\n const wordLen = word.length;\n const wordWidth = this.measureText(word);\n if (wordWidth <= width) {\n return { breakIndex: word.length, truncWordWidth: wordWidth };\n }\n let breakIndex = Math.floor(width * wordLen / wordWidth);\n let truncWordWidth = this.measureText(word.substring(0, breakIndex));\n if (truncWordWidth > width) {\n while (breakIndex > 0) {\n truncWordWidth = this.measureText(word.substring(0, breakIndex));\n if (truncWordWidth > width) {\n breakIndex -= 1;\n } else {\n break;\n }\n }\n } else {\n while (breakIndex < wordLen) {\n truncWordWidth = this.measureText(word.substring(0, breakIndex));\n if (truncWordWidth < width) {\n breakIndex += 1;\n } else {\n breakIndex -= 1;\n truncWordWidth = this.measureText(word.substring(0, breakIndex));\n break;\n }\n }\n }\n return { breakIndex, truncWordWidth };\n }\n wordBreak(word, width, baseFont) {\n if (!word.text) {\n return word;\n }\n this.applyFontStyle(word, baseFont);\n const parts = [];\n let text = word.text;\n if (!word.letters) {\n while (true) {\n const { breakIndex, truncWordWidth } = this._getBreakIndex(text, width);\n parts.push({ ...word });\n parts[parts.length - 1].text = text.slice(0, breakIndex);\n parts[parts.length - 1].width = truncWordWidth;\n if (breakIndex === text.length) {\n break;\n }\n text = text.slice(breakIndex);\n }\n } else {\n let totalWidth = 0;\n let letters = [];\n let breakIndex = 0;\n for (const l of word.letters) {\n if (totalWidth + l.width >= width) {\n parts.push({ ...word });\n parts[parts.length - 1].text = text.slice(0, breakIndex);\n parts[parts.length - 1].width = totalWidth;\n parts[parts.length - 1].letters = letters;\n text = text.slice(breakIndex);\n totalWidth = 0;\n letters = [];\n breakIndex = 0;\n } else {\n breakIndex += 1;\n letters.push(l);\n totalWidth += l.width;\n }\n }\n if (totalWidth > 0) {\n parts.push({ ...word });\n parts[parts.length - 1].text = text.slice(0, breakIndex);\n parts[parts.length - 1].width = totalWidth;\n parts[parts.length - 1].letters = letters;\n }\n }\n return parts;\n }\n alignLine(parsed, initialX = 0) {\n let prevWidth = 0;\n let prevX = initialX;\n for (const word of parsed) {\n if (word.text == \"\\n\") {\n continue;\n }\n word.x = prevX + prevWidth;\n prevX = word.x;\n prevWidth = word.width;\n }\n }\n}\nclass TextTexture extends Texture {\n constructor(stage) {\n super(stage);\n this._precision = this.stage.getOption(\"precision\");\n }\n static renderer(stage, canvas, settings) {\n if (this.advancedRenderer) {\n return new TextTextureRendererAdvanced(stage, canvas, settings);\n } else {\n return new TextTextureRenderer(stage, canvas, settings);\n }\n }\n get text() {\n return this._text;\n }\n set text(v) {\n if (this._text !== v) {\n this._text = \"\" + v;\n this._changed();\n }\n }\n get w() {\n return this._w;\n }\n set w(v) {\n if (this._w !== v) {\n this._w = v;\n this._changed();\n }\n }\n get h() {\n return this._h;\n }\n set h(v) {\n if (this._h !== v) {\n this._h = v;\n this._changed();\n }\n }\n get fontStyle() {\n return this._fontStyle;\n }\n set fontStyle(v) {\n if (this._fontStyle !== v) {\n this._fontStyle = v;\n this._changed();\n }\n }\n get fontBaselineRatio() {\n return this._fontBaselineRatio;\n }\n set fontBaselineRatio(v) {\n if (this._fontBaselineRatio !== v) {\n this._fontBaselineRatio = v;\n this._changed();\n }\n }\n get fontSize() {\n return this._fontSize;\n }\n set fontSize(v) {\n if (this._fontSize !== v) {\n this._fontSize = v;\n this._changed();\n }\n }\n get fontFace() {\n return this._fontFace;\n }\n set fontFace(v) {\n if (this._fontFace !== v) {\n this._fontFace = v;\n this._changed();\n }\n }\n get wordWrap() {\n return this._wordWrap;\n }\n set wordWrap(v) {\n if (this._wordWrap !== v) {\n this._wordWrap = v;\n this._changed();\n }\n }\n get wordWrapWidth() {\n return this._wordWrapWidth;\n }\n set wordWrapWidth(v) {\n if (this._wordWrapWidth !== v) {\n this._wordWrapWidth = v;\n this._changed();\n }\n }\n get wordBreak() {\n return this._wordBreak;\n }\n set wordBreak(v) {\n if (this._wordBreak !== v) {\n this._wordBreak = v;\n this._changed();\n }\n }\n get textOverflow() {\n return this._textOverflow;\n }\n set textOverflow(v) {\n if (v != this._textOverflow) {\n this._textOverflow = v;\n this._changed();\n }\n }\n get lineHeight() {\n return this._lineHeight;\n }\n set lineHeight(v) {\n if (this._lineHeight !== v) {\n this._lineHeight = v;\n this._changed();\n }\n }\n get textBaseline() {\n return this._textBaseline;\n }\n set textBaseline(v) {\n if (this._textBaseline !== v) {\n this._textBaseline = v;\n this._changed();\n }\n }\n get textAlign() {\n return this._textAlign;\n }\n set textAlign(v) {\n if (this._textAlign !== v) {\n this._textAlign = v;\n this._changed();\n }\n }\n get verticalAlign() {\n return this._verticalAlign;\n }\n set verticalAlign(v) {\n if (this._verticalAlign !== v) {\n this._verticalAlign = v;\n this._changed();\n }\n }\n get offsetY() {\n return this._offsetY;\n }\n set offsetY(v) {\n if (this._offsetY !== v) {\n this._offsetY = v;\n this._changed();\n }\n }\n get maxLines() {\n return this._maxLines;\n }\n set maxLines(v) {\n if (this._maxLines !== v) {\n this._maxLines = v;\n this._changed();\n }\n }\n get maxLinesSuffix() {\n return this._maxLinesSuffix;\n }\n set maxLinesSuffix(v) {\n if (this._maxLinesSuffix !== v) {\n this._maxLinesSuffix = v;\n this._changed();\n }\n }\n get textColor() {\n return this._textColor;\n }\n set textColor(v) {\n if (this._textColor !== v) {\n this._textColor = v;\n this._changed();\n }\n }\n get paddingLeft() {\n return this._paddingLeft;\n }\n set paddingLeft(v) {\n if (this._paddingLeft !== v) {\n this._paddingLeft = v;\n this._changed();\n }\n }\n get paddingRight() {\n return this._paddingRight;\n }\n set paddingRight(v) {\n if (this._paddingRight !== v) {\n this._paddingRight = v;\n this._changed();\n }\n }\n get shadow() {\n return this._shadow;\n }\n set shadow(v) {\n if (this._shadow !== v) {\n this._shadow = v;\n this._changed();\n }\n }\n get shadowColor() {\n return this._shadowColor;\n }\n set shadowColor(v) {\n if (this._shadowColor !== v) {\n this._shadowColor = v;\n this._changed();\n }\n }\n get shadowOffsetX() {\n return this._shadowOffsetX;\n }\n set shadowOffsetX(v) {\n if (this._shadowOffsetX !== v) {\n this._shadowOffsetX = v;\n this._changed();\n }\n }\n get shadowOffsetY() {\n return this._shadowOffsetY;\n }\n set shadowOffsetY(v) {\n if (this._shadowOffsetY !== v) {\n this._shadowOffsetY = v;\n this._changed();\n }\n }\n get shadowBlur() {\n return this._shadowBlur;\n }\n set shadowBlur(v) {\n if (this._shadowBlur !== v) {\n this._shadowBlur = v;\n this._changed();\n }\n }\n get highlight() {\n return this._highlight;\n }\n set highlight(v) {\n if (this._highlight !== v) {\n this._highlight = v;\n this._changed();\n }\n }\n get highlightHeight() {\n return this._highlightHeight;\n }\n set highlightHeight(v) {\n if (this._highlightHeight !== v) {\n this._highlightHeight = v;\n this._changed();\n }\n }\n get highlightColor() {\n return this._highlightColor;\n }\n set highlightColor(v) {\n if (this._highlightColor !== v) {\n this._highlightColor = v;\n this._changed();\n }\n }\n get highlightOffset() {\n return this._highlightOffset;\n }\n set highlightOffset(v) {\n if (this._highlightOffset !== v) {\n this._highlightOffset = v;\n this._changed();\n }\n }\n get highlightPaddingLeft() {\n return this._highlightPaddingLeft;\n }\n set highlightPaddingLeft(v) {\n if (this._highlightPaddingLeft !== v) {\n this._highlightPaddingLeft = v;\n this._changed();\n }\n }\n get highlightPaddingRight() {\n return this._highlightPaddingRight;\n }\n set highlightPaddingRight(v) {\n if (this._highlightPaddingRight !== v) {\n this._highlightPaddingRight = v;\n this._changed();\n }\n }\n get cutSx() {\n return this._cutSx;\n }\n set cutSx(v) {\n if (this._cutSx !== v) {\n this._cutSx = v;\n this._changed();\n }\n }\n get cutEx() {\n return this._cutEx;\n }\n set cutEx(v) {\n if (this._cutEx !== v) {\n this._cutEx = v;\n this._changed();\n }\n }\n get cutSy() {\n return this._cutSy;\n }\n set cutSy(v) {\n if (this._cutSy !== v) {\n this._cutSy = v;\n this._changed();\n }\n }\n get cutEy() {\n return this._cutEy;\n }\n set cutEy(v) {\n if (this._cutEy !== v) {\n this._cutEy = v;\n this._changed();\n }\n }\n get advancedRenderer() {\n return this._advancedRenderer;\n }\n set advancedRenderer(v) {\n if (this._advancedRenderer !== v) {\n this._advancedRenderer = v;\n this._changed();\n }\n }\n set letterSpacing(v) {\n if (this._letterSpacing !== v) {\n this._letterSpacing = v;\n this._changed();\n }\n }\n get letterSpacing() {\n return this._letterSpacing;\n }\n set textIndent(v) {\n if (this._textIndent !== v) {\n this._textIndent = v;\n this._changed();\n }\n }\n get textIndent() {\n return this._textIndent;\n }\n get precision() {\n return super.precision;\n }\n set precision(v) {\n if (this.precision !== v) {\n super.precision = v;\n this._changed();\n }\n }\n _getIsValid() {\n return !!this.text;\n }\n _getLookupId() {\n let parts = [];\n if (this.w !== 0)\n parts.push(\"w \" + this.w);\n if (this.h !== 0)\n parts.push(\"h \" + this.h);\n if (this.fontStyle !== \"normal\")\n parts.push(\"fS\" + this.fontStyle);\n if (this.fontSize !== 40)\n parts.push(\"fs\" + this.fontSize);\n if (this.fontBaselineRatio !== 0)\n parts.push(\"fb\" + this.fontBaselineRatio);\n if (this.fontFace !== null)\n parts.push(\"ff\" + (Array.isArray(this.fontFace) ? this.fontFace.join(\",\") : this.fontFace));\n if (this.wordWrap !== true)\n parts.push(\"wr\" + (this.wordWrap ? 1 : 0));\n if (this.wordWrapWidth !== 0)\n parts.push(\"ww\" + this.wordWrapWidth);\n if (this.wordBreak !== false)\n parts.push(\"wb\" + this.wordBreak ? 1 : 0);\n if (this.textOverflow != \"\")\n parts.push(\"to\" + this.textOverflow);\n if (this.lineHeight !== null)\n parts.push(\"lh\" + this.lineHeight);\n if (this.textBaseline !== \"alphabetic\")\n parts.push(\"tb\" + this.textBaseline);\n if (this.textAlign !== \"left\")\n parts.push(\"ta\" + this.textAlign);\n if (this.verticalAlign !== \"top\")\n parts.push(\"va\" + this.verticalAlign);\n if (this.offsetY !== null)\n parts.push(\"oy\" + this.offsetY);\n if (this.maxLines !== 0)\n parts.push(\"ml\" + this.maxLines);\n if (this.maxLinesSuffix !== \"..\")\n parts.push(\"ms\" + this.maxLinesSuffix);\n parts.push(\"pc\" + this.precision);\n if (this.textColor !== 4294967295)\n parts.push(\"co\" + this.textColor.toString(16));\n if (this.paddingLeft !== 0)\n parts.push(\"pl\" + this.paddingLeft);\n if (this.paddingRight !== 0)\n parts.push(\"pr\" + this.paddingRight);\n if (this.shadow !== false)\n parts.push(\"sh\" + (this.shadow ? 1 : 0));\n if (this.shadowColor !== 4278190080)\n parts.push(\"sc\" + this.shadowColor.toString(16));\n if (this.shadowOffsetX !== 0)\n parts.push(\"sx\" + this.shadowOffsetX);\n if (this.shadowOffsetY !== 0)\n parts.push(\"sy\" + this.shadowOffsetY);\n if (this.shadowBlur !== 5)\n parts.push(\"sb\" + this.shadowBlur);\n if (this.highlight !== false)\n parts.push(\"hL\" + (this.highlight ? 1 : 0));\n if (this.highlightHeight !== 0)\n parts.push(\"hh\" + this.highlightHeight);\n if (this.highlightColor !== 4278190080)\n parts.push(\"hc\" + this.highlightColor.toString(16));\n if (this.highlightOffset !== null)\n parts.push(\"ho\" + this.highlightOffset);\n if (this.highlightPaddingLeft !== null)\n parts.push(\"hl\" + this.highlightPaddingLeft);\n if (this.highlightPaddingRight !== null)\n parts.push(\"hr\" + this.highlightPaddingRight);\n if (this.letterSpacing !== null)\n parts.push(\"ls\" + this.letterSpacing);\n if (this.textIndent !== null)\n parts.push(\"ti\" + this.textIndent);\n if (this.cutSx)\n parts.push(\"csx\" + this.cutSx);\n if (this.cutEx)\n parts.push(\"cex\" + this.cutEx);\n if (this.cutSy)\n parts.push(\"csy\" + this.cutSy);\n if (this.cutEy)\n parts.push(\"cey\" + this.cutEy);\n if (this.advancedRenderer)\n parts.push(\"aR\" + this.advancedRenderer ? 1 : 0);\n let id = \"TX$\" + parts.join(\"|\") + \":\" + this.text;\n return id;\n }\n _getSourceLoader() {\n const args = this.cloneArgs();\n const gl = this.stage.gl;\n return function(cb) {\n const canvas = this.stage.platform.getDrawingCanvas();\n const renderer = args.advancedRenderer ? new TextTextureRendererAdvanced(this.stage, canvas, args) : new TextTextureRenderer(this.stage, canvas, args);\n const p = renderer.draw();\n const texParams = {};\n const sharpCfg = this.stage.getOption(\"fontSharp\");\n let sharpen = false;\n if (Utils$1.isBoolean(sharpCfg)) {\n sharpen = sharpCfg;\n } else if (Utils$1.isObject(sharpCfg)) {\n const precision = this.stage.getRenderPrecision();\n sharpen = precision <= sharpCfg.precision && args.fontSize <= sharpCfg.fontSize;\n }\n if (gl && sharpen) {\n texParams[gl.TEXTURE_MAG_FILTER] = gl.NEAREST;\n }\n if (p) {\n p.then(() => {\n cb(null, Object.assign({\n renderInfo: renderer.renderInfo,\n throttle: false,\n texParams\n }, this.stage.platform.getTextureOptionsForDrawingCanvas(canvas)));\n }).catch((err) => {\n cb(err);\n });\n } else {\n cb(null, Object.assign({\n renderInfo: renderer.renderInfo,\n throttle: false,\n texParams\n }, this.stage.platform.getTextureOptionsForDrawingCanvas(canvas)));\n }\n };\n }\n getNonDefaults() {\n const nonDefaults = super.getNonDefaults();\n if (this.text !== \"\")\n nonDefaults[\"text\"] = this.text;\n if (this.w !== 0)\n nonDefaults[\"w\"] = this.w;\n if (this.h !== 0)\n nonDefaults[\"h\"] = this.h;\n if (this.fontStyle !== \"normal\")\n nonDefaults[\"fontStyle\"] = this.fontStyle;\n if (this.fontSize !== 40)\n nonDefaults[\"fontSize\"] = this.fontSize;\n if (this.fontBaselineRatio !== 0)\n nonDefaults[\"fontBaselineRatio\"] = this.fontBaselineRatio;\n if (this.fontFace !== null)\n nonDefaults[\"fontFace\"] = this.fontFace;\n if (this.wordWrap !== true)\n nonDefaults[\"wordWrap\"] = this.wordWrap;\n if (this.wordWrapWidth !== 0)\n nonDefaults[\"wordWrapWidth\"] = this.wordWrapWidth;\n if (this.wordBreak !== false)\n nonDefaults[\"wordBreak\"] = this.wordBreak;\n if (this.textOverflow != \"\")\n nonDefaults[\"textOverflow\"] = this.textOverflow;\n if (this.lineHeight !== null)\n nonDefaults[\"lineHeight\"] = this.lineHeight;\n if (this.textBaseline !== \"alphabetic\")\n nonDefaults[\"textBaseline\"] = this.textBaseline;\n if (this.textAlign !== \"left\")\n nonDefaults[\"textAlign\"] = this.textAlign;\n if (this.verticalAlign !== \"top\")\n nonDefaults[\"verticalAlign\"] = this.verticalAlign;\n if (this.offsetY !== null)\n nonDefaults[\"offsetY\"] = this.offsetY;\n if (this.maxLines !== 0)\n nonDefaults[\"maxLines\"] = this.maxLines;\n if (this.maxLinesSuffix !== \"..\")\n nonDefaults[\"maxLinesSuffix\"] = this.maxLinesSuffix;\n if (this.precision !== this.stage.getOption(\"precision\"))\n nonDefaults[\"precision\"] = this.precision;\n if (this.textColor !== 4294967295)\n nonDefaults[\"textColor\"] = this.textColor;\n if (this.paddingLeft !== 0)\n nonDefaults[\"paddingLeft\"] = this.paddingLeft;\n if (this.paddingRight !== 0)\n nonDefaults[\"paddingRight\"] = this.paddingRight;\n if (this.shadow !== false)\n nonDefaults[\"shadow\"] = this.shadow;\n if (this.shadowColor !== 4278190080)\n nonDefaults[\"shadowColor\"] = this.shadowColor;\n if (this.shadowOffsetX !== 0)\n nonDefaults[\"shadowOffsetX\"] = this.shadowOffsetX;\n if (this.shadowOffsetY !== 0)\n nonDefaults[\"shadowOffsetY\"] = this.shadowOffsetY;\n if (this.shadowBlur !== 5)\n nonDefaults[\"shadowBlur\"] = this.shadowBlur;\n if (this.highlight !== false)\n nonDefaults[\"highlight\"] = this.highlight;\n if (this.highlightHeight !== 0)\n nonDefaults[\"highlightHeight\"] = this.highlightHeight;\n if (this.highlightColor !== 4278190080)\n nonDefaults[\"highlightColor\"] = this.highlightColor;\n if (this.highlightOffset !== 0)\n nonDefaults[\"highlightOffset\"] = this.highlightOffset;\n if (this.highlightPaddingLeft !== 0)\n nonDefaults[\"highlightPaddingLeft\"] = this.highlightPaddingLeft;\n if (this.highlightPaddingRight !== 0)\n nonDefaults[\"highlightPaddingRight\"] = this.highlightPaddingRight;\n if (this.letterSpacing !== 0)\n nonDefaults[\"letterSpacing\"] = this.letterSpacing;\n if (this.textIndent !== 0)\n nonDefaults[\"textIndent\"] = this.textIndent;\n if (this.cutSx)\n nonDefaults[\"cutSx\"] = this.cutSx;\n if (this.cutEx)\n nonDefaults[\"cutEx\"] = this.cutEx;\n if (this.cutSy)\n nonDefaults[\"cutSy\"] = this.cutSy;\n if (this.cutEy)\n nonDefaults[\"cutEy\"] = this.cutEy;\n if (this.advancedRenderer)\n nonDefaults[\"renderer\"] = this.advancedRenderer;\n return nonDefaults;\n }\n cloneArgs() {\n let obj = {};\n obj.text = this._text;\n obj.w = this._w;\n obj.h = this._h;\n obj.fontStyle = this._fontStyle;\n obj.fontSize = this._fontSize;\n obj.fontBaselineRatio = this._fontBaselineRatio;\n obj.fontFace = this._fontFace;\n obj.wordWrap = this._wordWrap;\n obj.wordWrapWidth = this._wordWrapWidth;\n obj.wordBreak = this._wordBreak;\n obj.textOverflow = this._textOverflow;\n obj.lineHeight = this._lineHeight;\n obj.textBaseline = this._textBaseline;\n obj.textAlign = this._textAlign;\n obj.verticalAlign = this._verticalAlign;\n obj.offsetY = this._offsetY;\n obj.maxLines = this._maxLines;\n obj.maxLinesSuffix = this._maxLinesSuffix;\n obj.precision = this._precision;\n obj.textColor = this._textColor;\n obj.paddingLeft = this._paddingLeft;\n obj.paddingRight = this._paddingRight;\n obj.shadow = this._shadow;\n obj.shadowColor = this._shadowColor;\n obj.shadowOffsetX = this._shadowOffsetX;\n obj.shadowOffsetY = this._shadowOffsetY;\n obj.shadowBlur = this._shadowBlur;\n obj.highlight = this._highlight;\n obj.highlightHeight = this._highlightHeight;\n obj.highlightColor = this._highlightColor;\n obj.highlightOffset = this._highlightOffset;\n obj.highlightPaddingLeft = this._highlightPaddingLeft;\n obj.highlightPaddingRight = this._highlightPaddingRight;\n obj.letterSpacing = this._letterSpacing;\n obj.textIndent = this._textIndent;\n obj.cutSx = this._cutSx;\n obj.cutEx = this._cutEx;\n obj.cutSy = this._cutSy;\n obj.cutEy = this._cutEy;\n obj.advancedRenderer = this._advancedRenderer;\n return obj;\n }\n}\nlet proto = TextTexture.prototype;\nproto._text = \"\";\nproto._w = 0;\nproto._h = 0;\nproto._fontStyle = \"normal\";\nproto._fontSize = 40;\nproto._fontFace = null;\nproto._wordWrap = true;\nproto._wordWrapWidth = 0;\nproto._wordBreak = false;\nproto._textOverflow = \"\";\nproto._lineHeight = null;\nproto._textBaseline = \"alphabetic\";\nproto._textAlign = \"left\";\nproto._verticalAlign = \"top\";\nproto._offsetY = null;\nproto._maxLines = 0;\nproto._maxLinesSuffix = \"..\";\nproto._textColor = 4294967295;\nproto._paddingLeft = 0;\nproto._paddingRight = 0;\nproto._shadow = false;\nproto._shadowColor = 4278190080;\nproto._shadowOffsetX = 0;\nproto._shadowOffsetY = 0;\nproto._shadowBlur = 5;\nproto._highlight = false;\nproto._highlightHeight = 0;\nproto._highlightColor = 4278190080;\nproto._highlightOffset = 0;\nproto._highlightPaddingLeft = 0;\nproto._highlightPaddingRight = 0;\nproto._letterSpacing = 0;\nproto._textIndent = 0;\nproto._cutSx = 0;\nproto._cutEx = 0;\nproto._cutSy = 0;\nproto._cutEy = 0;\nproto._advancedRenderer = false;\nproto._fontBaselineRatio = 0;\nclass SourceTexture extends Texture {\n constructor(stage) {\n super(stage);\n this._textureSource = void 0;\n }\n get textureSource() {\n return this._textureSource;\n }\n set textureSource(v) {\n if (v !== this._textureSource) {\n if (v.isResultTexture) {\n this._precision = this.stage.getRenderPrecision();\n }\n this._textureSource = v;\n this._changed();\n }\n }\n _getTextureSource() {\n return this._textureSource;\n }\n}\nclass Transition extends EventEmitter {\n constructor(manager, settings, element, property) {\n super();\n this.manager = manager;\n this._settings = settings;\n this._element = element;\n this._getter = element.constructor.getGetter(property);\n this._setter = element.constructor.getSetter(property);\n this._merger = settings.merger;\n if (!this._merger) {\n this._merger = element.constructor.getMerger(property);\n }\n this._startValue = this._getter(this._element);\n this._targetValue = this._startValue;\n this._p = 1;\n this._delayLeft = 0;\n }\n start(targetValue) {\n this._startValue = this._getter(this._element);\n if (!this.isAttached()) {\n this._targetValue = targetValue;\n this._p = 1;\n this._updateDrawValue();\n } else {\n if (targetValue === this._startValue) {\n this.reset(targetValue, 1);\n } else {\n this._targetValue = targetValue;\n this._p = 0;\n this._delayLeft = this._settings.delay;\n this.emit(\"start\");\n this.add();\n }\n }\n }\n finish() {\n if (this._p < 1) {\n this._p = 1;\n }\n }\n stop() {\n this.emit(\"stop\");\n this.manager.removeActive(this);\n }\n pause() {\n this.stop();\n }\n play() {\n this.manager.addActive(this);\n }\n reset(targetValue, p) {\n if (!this.isAttached()) {\n this._startValue = this._getter(this._element);\n this._targetValue = targetValue;\n this._p = 1;\n this._updateDrawValue();\n } else {\n this._startValue = this._getter(this._element);\n this._targetValue = targetValue;\n this._p = p;\n this.add();\n }\n }\n _updateDrawValue() {\n this._setter(this._element, this.getDrawValue());\n }\n add() {\n this.manager.addActive(this);\n }\n isAttached() {\n return this._element.attached;\n }\n isRunning() {\n return this._p < 1;\n }\n progress(dt) {\n if (!this.isAttached()) {\n this._p = 1;\n }\n if (this.p < 1) {\n if (this.delayLeft > 0) {\n this._delayLeft -= dt;\n if (this.delayLeft < 0) {\n dt = -this.delayLeft;\n this._delayLeft = 0;\n this.emit(\"delayEnd\");\n } else {\n return;\n }\n }\n if (this._settings.duration == 0) {\n this._p = 1;\n } else {\n this._p += dt / this._settings.duration;\n }\n if (this._p >= 1) {\n this._p = 1;\n }\n }\n this._updateDrawValue();\n this.invokeListeners();\n }\n invokeListeners() {\n this.emit(\"progress\", this.p);\n if (this.p === 1) {\n this.emit(\"finish\");\n }\n }\n updateTargetValue(targetValue) {\n let t = this._settings.timingFunctionImpl(this.p);\n if (t === 1) {\n this._targetValue = targetValue;\n } else if (t === 0) {\n this._startValue = this._targetValue;\n this._targetValue = targetValue;\n } else {\n this._startValue = targetValue - (targetValue - this._targetValue) / (1 - t);\n this._targetValue = targetValue;\n }\n }\n getDrawValue() {\n if (this.p >= 1) {\n return this.targetValue;\n } else {\n let v = this._settings._timingFunctionImpl(this.p);\n return this._merger(this.targetValue, this.startValue, v);\n }\n }\n skipDelay() {\n this._delayLeft = 0;\n }\n get startValue() {\n return this._startValue;\n }\n get targetValue() {\n return this._targetValue;\n }\n get p() {\n return this._p;\n }\n get delayLeft() {\n return this._delayLeft;\n }\n get element() {\n return this._element;\n }\n get settings() {\n return this._settings;\n }\n set settings(v) {\n this._settings = v;\n }\n}\nTransition.prototype.isTransition = true;\nclass ObjectList {\n constructor() {\n this._items = [];\n this._refs = {};\n }\n get() {\n return this._items;\n }\n get first() {\n return this._items[0];\n }\n get last() {\n return this._items.length ? this._items[this._items.length - 1] : void 0;\n }\n add(item) {\n this.addAt(item, this._items.length);\n }\n addAt(item, index) {\n if (index >= 0 && index <= this._items.length) {\n let currentIndex = this._items.indexOf(item);\n if (currentIndex === index) {\n return item;\n }\n if (Utils$1.isObjectLiteral(item)) {\n const o = item;\n item = this.createItem(o);\n item.patch(o);\n }\n if (currentIndex != -1) {\n this.setAt(item, index);\n } else {\n if (item.ref) {\n this._refs[item.ref] = item;\n }\n this._items.splice(index, 0, item);\n this.onAdd(item, index);\n }\n } else {\n throw new Error(\"addAt: The index \" + index + \" is out of bounds \" + this._items.length);\n }\n }\n replaceByRef(item) {\n if (item.ref) {\n const existingItem = this.getByRef(item.ref);\n if (!existingItem) {\n throw new Error(\"replaceByRef: no item found with reference: \" + item.ref);\n }\n this.replace(item, existingItem);\n } else {\n throw new Error(\"replaceByRef: no ref specified in item\");\n }\n this.addAt(item, this._items.length);\n }\n replace(item, prevItem) {\n const index = this.getIndex(prevItem);\n if (index === -1) {\n throw new Error(\"replace: The previous item does not exist\");\n }\n this.setAt(item, index);\n }\n setAt(item, index) {\n if (index >= 0 && index < this._items.length) {\n if (Utils$1.isObjectLiteral(item)) {\n const o = item;\n item = this.createItem(o);\n item.patch(o);\n }\n let currentIndex = this._items.indexOf(item);\n if (currentIndex != -1) {\n if (currentIndex !== index) {\n const fromIndex = currentIndex;\n if (fromIndex !== index) {\n this._items.splice(fromIndex, 1);\n this._items.splice(index, 0, item);\n this.onMove(item, fromIndex, index);\n }\n }\n } else {\n if (index < this._items.length) {\n if (this._items[index].ref) {\n this._refs[this._items[index].ref] = void 0;\n }\n }\n const prevItem = this._items[index];\n this._items[index] = item;\n if (item.ref) {\n this._refs[item.ref] = item;\n }\n this.onSet(item, index, prevItem);\n }\n } else {\n throw new Error(\"setAt: The index \" + index + \" is out of bounds \" + this._items.length);\n }\n }\n getAt(index) {\n return this._items[index];\n }\n getIndex(item) {\n return this._items.indexOf(item);\n }\n remove(item) {\n let index = this._items.indexOf(item);\n if (index !== -1) {\n this.removeAt(index);\n }\n }\n removeAt(index) {\n if (index >= 0 && index < this._items.length) {\n const item = this._items[index];\n if (item.ref) {\n this._refs[item.ref] = void 0;\n }\n this._items.splice(index, 1);\n this.onRemove(item, index);\n return item;\n } else {\n throw new Error(`removeAt: The index ${index} is out of bounds ${this._items.length - 1}`);\n }\n }\n clear() {\n let n = this._items.length;\n if (n) {\n let prev = this._items;\n this._items = [];\n this._refs = {};\n this.onSync(prev, [], []);\n }\n }\n a(o) {\n if (Utils$1.isObjectLiteral(o)) {\n let c = this.createItem(o);\n c.patch(o);\n this.add(c);\n return c;\n } else if (Array.isArray(o)) {\n for (let i = 0, n = o.length; i < n; i++) {\n this.a(o[i]);\n }\n return null;\n } else if (this.isItem(o)) {\n this.add(o);\n return o;\n }\n }\n get length() {\n return this._items.length;\n }\n _getRefs() {\n return this._refs;\n }\n getByRef(ref) {\n return this._refs[ref];\n }\n clearRef(ref) {\n delete this._refs[ref];\n }\n setRef(ref, child) {\n this._refs[ref] = child;\n }\n patch(settings) {\n if (Utils$1.isObjectLiteral(settings)) {\n this._setByObject(settings);\n } else if (Array.isArray(settings)) {\n this._setByArray(settings);\n }\n }\n _setByObject(settings) {\n let refs = this._getRefs();\n let crefs = Object.keys(settings);\n for (let i = 0, n = crefs.length; i < n; i++) {\n let cref = crefs[i];\n let s = settings[cref];\n let c = refs[cref];\n if (!c) {\n if (this.isItem(s)) {\n s.ref = cref;\n this.add(s);\n } else {\n c = this.createItem(s);\n c.ref = cref;\n c.patch(s);\n this.add(c);\n }\n } else {\n if (this.isItem(s)) {\n if (c !== s) {\n let idx = this.getIndex(c);\n s.ref = cref;\n this.setAt(s, idx);\n }\n } else {\n c.patch(s);\n }\n }\n }\n }\n _equalsArray(array) {\n let same = true;\n if (array.length === this._items.length) {\n for (let i = 0, n = this._items.length; i < n && same; i++) {\n same = same && this._items[i] === array[i];\n }\n } else {\n same = false;\n }\n return same;\n }\n _setByArray(array) {\n if (this._equalsArray(array)) {\n return;\n }\n for (let i = 0, n = this._items.length; i < n; i++) {\n this._items[i].marker = true;\n }\n let refs;\n let newItems = [];\n for (let i = 0, n = array.length; i < n; i++) {\n let s = array[i];\n if (this.isItem(s)) {\n s.marker = false;\n newItems.push(s);\n } else {\n let cref = s.ref;\n let c;\n if (cref) {\n if (!refs)\n refs = this._getRefs();\n c = refs[cref];\n }\n if (!c) {\n c = this.createItem(s);\n } else {\n c.marker = false;\n }\n if (Utils$1.isObjectLiteral(s)) {\n c.patch(s);\n }\n newItems.push(c);\n }\n }\n this._setItems(newItems);\n }\n _setItems(newItems) {\n let prevItems = this._items;\n this._items = newItems;\n let removed = prevItems.filter((item) => {\n let m = item.marker;\n delete item.marker;\n return m;\n });\n let added = newItems.filter((item) => prevItems.indexOf(item) === -1);\n if (removed.length || added.length) {\n this._refs = {};\n for (let i = 0, n = this._items.length; i < n; i++) {\n let ref = this._items[i].ref;\n if (ref) {\n this._refs[ref] = this._items[i];\n }\n }\n }\n this.onSync(removed, added, newItems);\n }\n sort(f) {\n const items = this._items.slice();\n items.sort(f);\n this._setByArray(items);\n }\n onAdd(item, index) {\n }\n onRemove(item, index) {\n }\n onSync(removed, added, order) {\n }\n onSet(item, index, prevItem) {\n }\n onMove(item, fromIndex, toIndex) {\n }\n createItem(object) {\n throw new Error(\"ObjectList.createItem must create and return a new object\");\n }\n isItem(object) {\n return false;\n }\n forEach(f) {\n this.get().forEach(f);\n }\n}\nclass ElementChildList extends ObjectList {\n constructor(element) {\n super();\n this._element = element;\n }\n _connectParent(item) {\n const prevParent = item.parent;\n if (prevParent && prevParent !== this._element) {\n const prevChildList = item.parent.childList;\n const index = prevChildList.getIndex(item);\n if (item.ref) {\n prevChildList._refs[item.ref] = void 0;\n }\n prevChildList._items.splice(index, 1);\n prevParent.core.removeChildAt(index);\n }\n item._setParent(this._element);\n }\n onAdd(item, index) {\n this._connectParent(item);\n this._element.core.addChildAt(index, item.core);\n }\n onRemove(item, index) {\n item._setParent(null);\n this._element.core.removeChildAt(index);\n }\n onSync(removed, added, order) {\n for (let i = 0, n = removed.length; i < n; i++) {\n removed[i]._setParent(null);\n }\n for (let i = 0, n = added.length; i < n; i++) {\n this._connectParent(added[i]);\n }\n let gc = (i) => i.core;\n this._element.core.syncChildren(removed.map(gc), added.map(gc), order.map(gc));\n }\n onSet(item, index, prevItem) {\n prevItem._setParent(null);\n this._connectParent(item);\n this._element.core.setChildAt(index, item.core);\n }\n onMove(item, fromIndex, toIndex) {\n this._element.core.moveChild(fromIndex, toIndex);\n }\n createItem(object) {\n if (object.type) {\n return new object.type(this._element.stage);\n } else {\n return this._element.stage.createElement();\n }\n }\n isItem(object) {\n return object.isElement;\n }\n}\nclass Element {\n constructor(stage) {\n this.stage = stage;\n this.__id = Element.id++;\n this.__start();\n this._hasEventListeners = false;\n this.__core = new ElementCore(this);\n this.__ref = null;\n this.__attached = false;\n this.__enabled = false;\n this.__active = false;\n this.__parent = null;\n this.__texture = null;\n this.__displayedTexture = null;\n this.__tags = null;\n this.__treeTags = null;\n this.__tagRoot = false;\n this.__childList = null;\n this._w = 0;\n this._h = 0;\n }\n __start() {\n }\n get id() {\n return this.__id;\n }\n set ref(ref) {\n if (this.__ref !== ref) {\n const charcode = ref.charCodeAt(0);\n if (!Utils$1.isUcChar(charcode)) {\n this._throwError(\"Ref must start with an upper case character: \" + ref);\n }\n if (this.__ref !== null) {\n this.removeTag(this.__ref);\n if (this.__parent) {\n this.__parent.__childList.clearRef(this.__ref);\n }\n }\n this.__ref = ref;\n if (this.__ref) {\n this._addTag(this.__ref);\n if (this.__parent) {\n this.__parent.__childList.setRef(this.__ref, this);\n }\n }\n }\n }\n get ref() {\n return this.__ref;\n }\n get core() {\n return this.__core;\n }\n setAsRoot() {\n this.__core.setAsRoot();\n this._updateAttachedFlag();\n this._updateEnabledFlag();\n }\n get isRoot() {\n return this.__core.isRoot;\n }\n _setParent(parent) {\n if (this.__parent === parent)\n return;\n if (this.__parent) {\n this._unsetTagsParent();\n }\n this.__parent = parent;\n if (parent) {\n this._setTagsParent();\n }\n this._updateAttachedFlag();\n this._updateEnabledFlag();\n this._updateCollision();\n if (this.isRoot && parent) {\n this._throwError(\"Root should not be added as a child! Results are unspecified!\");\n }\n }\n getDepth() {\n let depth = 0;\n let p = this.__parent;\n while (p) {\n depth++;\n p = p.__parent;\n }\n return depth;\n }\n getAncestor(l) {\n let p = this;\n while (l > 0 && p.__parent) {\n p = p.__parent;\n l--;\n }\n return p;\n }\n getAncestors() {\n const a = [];\n let p = this;\n while (p) {\n a.push(p);\n p = p.__parent;\n }\n return a;\n }\n getAncestorAtDepth(depth) {\n let levels = this.getDepth() - depth;\n if (levels < 0) {\n return null;\n }\n return this.getAncestor(levels);\n }\n isAncestorOf(c) {\n let p = c;\n while (p = p.parent) {\n if (this === p) {\n return true;\n }\n }\n return false;\n }\n getSharedAncestor(c) {\n let o1 = this;\n let o2 = c;\n let l1 = o1.getDepth();\n let l2 = o2.getDepth();\n if (l1 > l2) {\n o1 = o1.getAncestor(l1 - l2);\n } else if (l2 > l1) {\n o2 = o2.getAncestor(l2 - l1);\n }\n do {\n if (o1 === o2) {\n return o1;\n }\n o1 = o1.__parent;\n o2 = o2.__parent;\n } while (o1 && o2);\n return null;\n }\n get attached() {\n return this.__attached;\n }\n get enabled() {\n return this.__enabled;\n }\n get active() {\n return this.__active;\n }\n _isAttached() {\n return this.__parent ? this.__parent.__attached : this.stage.root === this;\n }\n _isEnabled() {\n return this.__core.visible && this.__core.alpha > 0 && (this.__parent ? this.__parent.__enabled : this.stage.root === this);\n }\n _isActive() {\n return this._isEnabled() && this.withinBoundsMargin;\n }\n _updateAttachedFlag() {\n let newAttached = this._isAttached();\n if (this.__attached !== newAttached) {\n this.__attached = newAttached;\n if (newAttached) {\n this._onSetup();\n }\n let children = this._children.get();\n if (children) {\n let m = children.length;\n if (m > 0) {\n for (let i = 0; i < m; i++) {\n children[i]._updateAttachedFlag();\n }\n }\n }\n if (newAttached) {\n this._onAttach();\n } else {\n this._onDetach();\n }\n }\n }\n _updateEnabledFlag() {\n let newEnabled = this._isEnabled();\n if (this.__enabled !== newEnabled) {\n if (newEnabled) {\n this._onEnabled();\n this._setEnabledFlag();\n } else {\n this._onDisabled();\n this._unsetEnabledFlag();\n }\n let children = this._children.get();\n if (children) {\n let m = children.length;\n if (m > 0) {\n for (let i = 0; i < m; i++) {\n children[i]._updateEnabledFlag();\n }\n }\n }\n }\n }\n _setEnabledFlag() {\n this.__enabled = true;\n this._updateDimensions();\n this._updateTextureCoords();\n if (this.__texture) {\n this.__texture.addElement(this);\n }\n if (this.withinBoundsMargin) {\n this._setActiveFlag();\n }\n if (this.__core.shader) {\n this.__core.shader.addElement(this.__core);\n }\n }\n _unsetEnabledFlag() {\n if (this.__active) {\n this._unsetActiveFlag();\n }\n if (this.__texture) {\n this.__texture.removeElement(this);\n }\n if (this.__core.shader) {\n this.__core.shader.removeElement(this.__core);\n }\n if (this._texturizer) {\n this.texturizer.filters.forEach((filter) => filter.removeElement(this.__core));\n }\n this.__enabled = false;\n }\n _setActiveFlag() {\n this.__active = true;\n if (this.__texture) {\n this.__texture.incActiveCount();\n }\n if (this.__texture) {\n this._enableTexture();\n }\n this._onActive();\n }\n _unsetActiveFlag() {\n if (this.__texture) {\n this.__texture.decActiveCount();\n }\n this.__active = false;\n if (this.__texture) {\n this._disableTexture();\n }\n if (this._hasTexturizer()) {\n this.texturizer.deactivate();\n }\n this._onInactive();\n }\n _onSetup() {\n }\n _onAttach() {\n }\n _onDetach() {\n }\n _onEnabled() {\n }\n _onDisabled() {\n }\n _onActive() {\n }\n _onInactive() {\n }\n _onResize() {\n }\n _getRenderWidth() {\n if (this._w) {\n return this._w;\n } else if (this.__displayedTexture) {\n return this.__displayedTexture.getRenderWidth();\n } else if (this.__texture) {\n return this.__texture.getRenderWidth();\n } else {\n return 0;\n }\n }\n _getRenderHeight() {\n if (this._h) {\n return this._h;\n } else if (this.__displayedTexture) {\n return this.__displayedTexture.getRenderHeight();\n } else if (this.__texture) {\n return this.__texture.getRenderHeight();\n } else {\n return 0;\n }\n }\n get renderWidth() {\n if (this.__enabled) {\n return this.__core.getRenderWidth();\n } else {\n return this._getRenderWidth();\n }\n }\n get renderHeight() {\n if (this.__enabled) {\n return this.__core.getRenderHeight();\n } else {\n return this._getRenderHeight();\n }\n }\n get finalX() {\n return this.__core.x;\n }\n get finalY() {\n return this.__core.y;\n }\n get finalW() {\n return this.__core.w;\n }\n get finalH() {\n return this.__core.h;\n }\n textureIsLoaded() {\n return this.__texture && this.__texture.isLoaded();\n }\n loadTexture() {\n if (this.__texture) {\n this.__texture.load();\n if (!this.__texture.isUsed() || !this._isEnabled()) {\n this._updateDimensions();\n }\n }\n }\n _enableTextureError() {\n const loadError = this.__texture.loadError;\n if (loadError) {\n this.emit(\"txError\", loadError, this.__texture._source);\n }\n }\n _enableTexture() {\n if (this.__texture.isLoaded()) {\n this._setDisplayedTexture(this.__texture);\n } else {\n this._setDisplayedTexture(null);\n this._enableTextureError();\n }\n }\n _disableTexture() {\n this._setDisplayedTexture(null);\n }\n get texture() {\n return this.__texture;\n }\n set texture(v) {\n let texture;\n if (Utils$1.isObjectLiteral(v)) {\n if (v.type) {\n texture = new v.type(this.stage);\n } else {\n texture = this.texture;\n }\n if (texture) {\n Base.patchObject(texture, v);\n }\n } else if (!v) {\n texture = null;\n } else {\n if (v.isTexture) {\n texture = v;\n } else if (v.isTextureSource) {\n texture = new SourceTexture(this.stage);\n texture.textureSource = v;\n } else {\n console.error(\"[Lightning] Please specify a texture type.\");\n return;\n }\n }\n const prevTexture = this.__texture;\n if (texture !== prevTexture) {\n this.__texture = texture;\n if (this.__texture) {\n if (this.__enabled) {\n this.__texture.addElement(this);\n if (this.withinBoundsMargin) {\n if (this.__texture.isLoaded()) {\n this._setDisplayedTexture(this.__texture);\n } else {\n this._enableTextureError();\n }\n }\n }\n } else {\n this._setDisplayedTexture(null);\n }\n if (prevTexture && prevTexture !== this.__displayedTexture) {\n prevTexture.removeElement(this);\n }\n this._updateDimensions();\n }\n }\n get displayedTexture() {\n return this.__displayedTexture;\n }\n _setDisplayedTexture(v) {\n let prevTexture = this.__displayedTexture;\n if (prevTexture && v !== prevTexture) {\n if (this.__texture !== prevTexture) {\n prevTexture.removeElement(this);\n }\n }\n const prevSource = this.__core.displayedTextureSource ? this.__core.displayedTextureSource._source : null;\n const sourceChanged = (v ? v._source : null) !== prevSource;\n this.__displayedTexture = v;\n this._updateDimensions();\n if (this.__displayedTexture) {\n if (sourceChanged) {\n this._updateTextureCoords();\n this.__core.setDisplayedTextureSource(this.__displayedTexture._source);\n }\n } else {\n this.__core.setDisplayedTextureSource(null);\n }\n if (sourceChanged) {\n if (this.__displayedTexture) {\n this.emit(\"txLoaded\", this.__displayedTexture);\n } else {\n this.emit(\"txUnloaded\", this.__displayedTexture);\n }\n }\n }\n onTextureSourceLoaded() {\n if (this.active) {\n this._setDisplayedTexture(this.__texture);\n }\n }\n onTextureSourceLoadError(e) {\n this.emit(\"txError\", e, this.__texture._source);\n }\n forceRenderUpdate() {\n this.__core.setHasRenderUpdates(3);\n }\n onDisplayedTextureClippingChanged() {\n this._updateDimensions();\n this._updateTextureCoords();\n }\n onPrecisionChanged() {\n this._updateDimensions();\n }\n onDimensionsChanged(w, h) {\n if (this.texture instanceof TextTexture) {\n this.texture.w = w;\n this.texture.h = h;\n this.w = w;\n this.h = h;\n }\n }\n _updateDimensions() {\n let w = this._getRenderWidth();\n let h = this._getRenderHeight();\n let unknownSize = false;\n if (!w || !h) {\n if (!this.__displayedTexture && this.__texture) {\n w = w || this.__texture.mw;\n h = h || this.__texture.mh;\n if ((!w || !h) && this.__texture.isAutosizeTexture()) {\n unknownSize = true;\n }\n }\n }\n if (this.__core.setDimensions(w, h, unknownSize)) {\n this._onResize();\n }\n }\n _updateTextureCoords() {\n if (this.displayedTexture && this.displayedTexture._source) {\n let displayedTexture = this.displayedTexture;\n let displayedTextureSource = this.displayedTexture._source;\n let tx1 = 0, ty1 = 0, tx2 = 1, ty2 = 1;\n if (displayedTexture.clipping) {\n let w = displayedTextureSource.getRenderWidth();\n let h = displayedTextureSource.getRenderHeight();\n let iw, ih, rw, rh;\n iw = 1 / w;\n ih = 1 / h;\n if (displayedTexture.pw) {\n rw = displayedTexture.pw * iw;\n } else {\n rw = (w - displayedTexture.px) * iw;\n }\n if (displayedTexture.ph) {\n rh = displayedTexture.ph * ih;\n } else {\n rh = (h - displayedTexture.py) * ih;\n }\n iw *= displayedTexture.px;\n ih *= displayedTexture.py;\n tx1 = iw;\n ty1 = ih;\n tx2 = tx2 * rw + iw;\n ty2 = ty2 * rh + ih;\n tx1 = Math.max(0, tx1);\n ty1 = Math.max(0, ty1);\n tx2 = Math.min(1, tx2);\n ty2 = Math.min(1, ty2);\n }\n if (displayedTextureSource._flipTextureY) {\n let tempty = ty2;\n ty2 = ty1;\n ty1 = tempty;\n }\n this.__core.setTextureCoords(tx1, ty1, tx2, ty2);\n }\n }\n getCornerPoints() {\n return this.__core.getCornerPoints();\n }\n _unsetTagsParent() {\n if (this.__tags) {\n this.__tags.forEach((tag) => {\n let p = this;\n while (p = p.__parent) {\n let parentTreeTags = p.__treeTags.get(tag);\n parentTreeTags.delete(this);\n if (p.__tagRoot) {\n break;\n }\n }\n });\n }\n let tags = null;\n let n = 0;\n if (this.__treeTags) {\n if (!this.__tagRoot) {\n tags = Utils$1.iteratorToArray(this.__treeTags.keys());\n n = tags.length;\n if (n > 0) {\n for (let i = 0; i < n; i++) {\n let tagSet = this.__treeTags.get(tags[i]);\n let p = this;\n while (p = p.__parent) {\n let parentTreeTags = p.__treeTags.get(tags[i]);\n tagSet.forEach(function(comp) {\n parentTreeTags.delete(comp);\n });\n if (p.__tagRoot) {\n break;\n }\n }\n }\n }\n }\n }\n }\n _setTagsParent() {\n if (this.__tags) {\n this.__tags.forEach((tag) => {\n let p = this;\n while (p = p.__parent) {\n if (!p.__treeTags) {\n p.__treeTags = /* @__PURE__ */ new Map();\n }\n let s = p.__treeTags.get(tag);\n if (!s) {\n s = /* @__PURE__ */ new Set();\n p.__treeTags.set(tag, s);\n }\n s.add(this);\n if (p.__tagRoot) {\n break;\n }\n }\n });\n }\n if (this.__treeTags && this.__treeTags.size) {\n if (!this.__tagRoot) {\n this.__treeTags.forEach((tagSet, tag) => {\n let p = this;\n while (!p.__tagRoot && (p = p.__parent)) {\n if (p.__tagRoot)\n ;\n if (!p.__treeTags) {\n p.__treeTags = /* @__PURE__ */ new Map();\n }\n let s = p.__treeTags.get(tag);\n if (!s) {\n s = /* @__PURE__ */ new Set();\n p.__treeTags.set(tag, s);\n }\n tagSet.forEach(function(comp) {\n s.add(comp);\n });\n }\n });\n }\n }\n }\n _getByTag(tag) {\n if (!this.__treeTags) {\n return [];\n }\n let t = this.__treeTags.get(tag);\n return t ? Utils$1.setToArray(t) : [];\n }\n getTags() {\n return this.__tags ? this.__tags : [];\n }\n setTags(tags) {\n tags = tags.reduce((acc, tag) => {\n return acc.concat(tag.split(\" \"));\n }, []);\n if (this.__ref) {\n tags.push(this.__ref);\n }\n let i, n = tags.length;\n let removes = [];\n let adds = [];\n for (i = 0; i < n; i++) {\n if (!this.hasTag(tags[i])) {\n adds.push(tags[i]);\n }\n }\n let currentTags = this.tags || [];\n n = currentTags.length;\n for (i = 0; i < n; i++) {\n if (tags.indexOf(currentTags[i]) == -1) {\n removes.push(currentTags[i]);\n }\n }\n for (i = 0; i < removes.length; i++) {\n this.removeTag(removes[i]);\n }\n for (i = 0; i < adds.length; i++) {\n this.addTag(adds[i]);\n }\n }\n addTag(tag) {\n if (tag.indexOf(\" \") === -1) {\n if (Utils$1.isUcChar(tag.charCodeAt(0))) {\n this._throwError(\"Tag may not start with an upper case character.\");\n }\n this._addTag(tag);\n } else {\n const tags = tag.split(\" \");\n for (let i = 0, m = tags.length; i < m; i++) {\n const tag2 = tags[i];\n if (Utils$1.isUcChar(tag2.charCodeAt(0))) {\n this._throwError(\"Tag may not start with an upper case character.\");\n }\n this._addTag(tag2);\n }\n }\n }\n _addTag(tag) {\n if (!this.__tags) {\n this.__tags = [];\n }\n if (this.__tags.indexOf(tag) === -1) {\n this.__tags.push(tag);\n let p = this.__parent;\n if (p) {\n do {\n if (!p.__treeTags) {\n p.__treeTags = /* @__PURE__ */ new Map();\n }\n let s = p.__treeTags.get(tag);\n if (!s) {\n s = /* @__PURE__ */ new Set();\n p.__treeTags.set(tag, s);\n }\n s.add(this);\n } while (!p.__tagRoot && (p = p.__parent));\n }\n }\n }\n removeTag(tag) {\n let i = this.__tags.indexOf(tag);\n if (i !== -1) {\n this.__tags.splice(i, 1);\n let p = this.__parent;\n if (p) {\n do {\n let list = p.__treeTags.get(tag);\n if (list) {\n list.delete(this);\n }\n } while (!p.__tagRoot && (p = p.__parent));\n }\n }\n }\n hasTag(tag) {\n return this.__tags && this.__tags.indexOf(tag) !== -1;\n }\n _tag(tag) {\n if (tag.indexOf(\".\") !== -1) {\n return this.mtag(tag)[0];\n } else {\n if (this.__treeTags) {\n let t = this.__treeTags.get(tag);\n if (t) {\n const item = t.values().next();\n return item ? item.value : void 0;\n }\n }\n }\n }\n get tag() {\n return this._tag;\n }\n set tag(t) {\n this.tags = t;\n }\n mtag(tag) {\n let idx = tag.indexOf(\".\");\n if (idx >= 0) {\n let parts = tag.split(\".\");\n let res = this._getByTag(parts[0]);\n let level = 1;\n let c = parts.length;\n while (res.length && level < c) {\n let resn = [];\n for (let j = 0, n = res.length; j < n; j++) {\n resn = resn.concat(res[j]._getByTag(parts[level]));\n }\n res = resn;\n level++;\n }\n return res;\n } else {\n return this._getByTag(tag);\n }\n }\n stag(tag, settings) {\n let t = this.mtag(tag);\n let n = t.length;\n for (let i = 0; i < n; i++) {\n Base.patchObject(t[i], settings);\n }\n }\n get tagRoot() {\n return this.__tagRoot;\n }\n set tagRoot(v) {\n if (this.__tagRoot !== v) {\n if (!v) {\n this._setTagsParent();\n } else {\n this._unsetTagsParent();\n }\n this.__tagRoot = v;\n }\n }\n sel(path) {\n const results = this.select(path);\n if (results.length) {\n return results[0];\n } else {\n return void 0;\n }\n }\n select(path) {\n if (path.indexOf(\",\") !== -1) {\n let selectors = path.split(\",\");\n let res = [];\n for (let i = 0; i < selectors.length; i++) {\n res = res.concat(this._select(selectors[i]));\n }\n return res;\n } else {\n return this._select(path);\n }\n }\n _select(path) {\n if (path === \"\")\n return [this];\n let pointIdx = path.indexOf(\".\");\n let arrowIdx = path.indexOf(\">\");\n if (pointIdx === -1 && arrowIdx === -1) {\n return this.mtag(path);\n }\n let isRef;\n if (arrowIdx === 0) {\n isRef = true;\n path = path.substr(1);\n } else if (pointIdx === 0) {\n isRef = false;\n path = path.substr(1);\n } else {\n isRef = false;\n }\n return this._selectChilds(path, isRef);\n }\n _selectChilds(path, isRef) {\n const pointIdx = path.indexOf(\".\");\n const arrowIdx = path.indexOf(\">\");\n if (pointIdx === -1 && arrowIdx === -1) {\n if (isRef) {\n const ref = this.getByRef(path);\n return ref ? [ref] : [];\n } else {\n return this.mtag(path);\n }\n }\n if (arrowIdx === -1 || pointIdx !== -1 && pointIdx < arrowIdx) {\n let next;\n const str = path.substr(0, pointIdx);\n if (isRef) {\n const ref = this.getByRef(str);\n next = ref ? [ref] : [];\n } else {\n next = this.mtag(str);\n }\n let total = [];\n const subPath = path.substr(pointIdx + 1);\n for (let i = 0, n = next.length; i < n; i++) {\n total = total.concat(next[i]._selectChilds(subPath, false));\n }\n return total;\n } else {\n let next;\n const str = path.substr(0, arrowIdx);\n if (isRef) {\n const ref = this.getByRef(str);\n next = ref ? [ref] : [];\n } else {\n next = this.mtag(str);\n }\n let total = [];\n const subPath = path.substr(arrowIdx + 1);\n for (let i = 0, n = next.length; i < n; i++) {\n total = total.concat(next[i]._selectChilds(subPath, true));\n }\n return total;\n }\n }\n getByRef(ref) {\n return this.childList.getByRef(ref);\n }\n getLocationString() {\n let i;\n i = this.__parent ? this.__parent._children.getIndex(this) : \"R\";\n let localTags = this.getTags();\n let str = this.__parent ? this.__parent.getLocationString() : \"\";\n if (this.ref) {\n str += \":[\" + i + \"]\" + this.ref;\n } else if (localTags.length) {\n str += \":[\" + i + \"]\" + localTags.join(\",\");\n } else {\n str += \":[\" + i + \"]#\" + this.id;\n }\n return str;\n }\n toString() {\n let obj = this.getSettings();\n return Element.getPrettyString(obj, \"\");\n }\n static getPrettyString(obj, indent) {\n let children = obj.children;\n delete obj.children;\n let colorKeys = [\"color\", \"colorUl\", \"colorUr\", \"colorBl\", \"colorBr\"];\n let str = JSON.stringify(obj, function(k, v) {\n if (colorKeys.indexOf(k) !== -1) {\n return \"COLOR[\" + v.toString(16) + \"]\";\n }\n return v;\n });\n str = str.replace(/\"COLOR\\[([a-f0-9]{1,8})\\]\"/g, \"0x$1\");\n if (children) {\n let childStr = \"\";\n if (Utils$1.isObjectLiteral(children)) {\n let refs = Object.keys(children);\n childStr = \"\";\n for (let i = 0, n = refs.length; i < n; i++) {\n childStr += `\n${indent} \"${refs[i]}\":`;\n delete children[refs[i]].ref;\n childStr += Element.getPrettyString(children[refs[i]], indent + \" \") + (i < n - 1 ? \",\" : \"\");\n }\n let isEmpty = str === \"{}\";\n str = str.substr(0, str.length - 1) + (isEmpty ? \"\" : \",\") + childStr + \"\\n\" + indent + \"}\";\n } else {\n let n = children.length;\n childStr = \"[\";\n for (let i = 0; i < n; i++) {\n childStr += Element.getPrettyString(children[i], indent + \" \") + (i < n - 1 ? \",\" : \"\") + \"\\n\";\n }\n childStr += indent + \"]}\";\n let isEmpty = str === \"{}\";\n str = str.substr(0, str.length - 1) + (isEmpty ? \"\" : \",\") + '\"children\":\\n' + indent + childStr + \"}\";\n }\n }\n return str;\n }\n getSettings() {\n let settings = this.getNonDefaults();\n let children = this._children.get();\n if (children) {\n let n = children.length;\n if (n) {\n const childArray = [];\n let missing = false;\n for (let i = 0; i < n; i++) {\n childArray.push(children[i].getSettings());\n missing = missing || !children[i].ref;\n }\n if (!missing) {\n settings.children = {};\n childArray.forEach((child) => {\n settings.children[child.ref] = child;\n });\n } else {\n settings.children = childArray;\n }\n }\n }\n settings.id = this.id;\n return settings;\n }\n getNonDefaults() {\n let settings = {};\n if (this.constructor !== Element) {\n settings.type = this.constructor.name;\n }\n if (this.__ref) {\n settings.ref = this.__ref;\n }\n if (this.__tags && this.__tags.length) {\n settings.tags = this.__tags;\n }\n if (this.x !== 0)\n settings.x = this.x;\n if (this.y !== 0)\n settings.y = this.y;\n if (this.w !== 0)\n settings.w = this.w;\n if (this.h !== 0)\n settings.h = this.h;\n if (this.scaleX === this.scaleY) {\n if (this.scaleX !== 1)\n settings.scale = this.scaleX;\n } else {\n if (this.scaleX !== 1)\n settings.scaleX = this.scaleX;\n if (this.scaleY !== 1)\n settings.scaleY = this.scaleY;\n }\n if (this.pivotX === this.pivotY) {\n if (this.pivotX !== 0.5)\n settings.pivot = this.pivotX;\n } else {\n if (this.pivotX !== 0.5)\n settings.pivotX = this.pivotX;\n if (this.pivotY !== 0.5)\n settings.pivotY = this.pivotY;\n }\n if (this.mountX === this.mountY) {\n if (this.mountX !== 0)\n settings.mount = this.mountX;\n } else {\n if (this.mountX !== 0)\n settings.mountX = this.mountX;\n if (this.mountY !== 0)\n settings.mountY = this.mountY;\n }\n if (this.alpha !== 1)\n settings.alpha = this.alpha;\n if (!this.visible)\n settings.visible = false;\n if (this.rotation !== 0)\n settings.rotation = this.rotation;\n if (this.colorUl === this.colorUr && this.colorBl === this.colorBr && this.colorUl === this.colorBl) {\n if (this.colorUl !== 4294967295)\n settings.color = this.colorUl.toString(16);\n } else {\n if (this.colorUl !== 4294967295)\n settings.colorUl = this.colorUl.toString(16);\n if (this.colorUr !== 4294967295)\n settings.colorUr = this.colorUr.toString(16);\n if (this.colorBl !== 4294967295)\n settings.colorBl = this.colorBl.toString(16);\n if (this.colorBr !== 4294967295)\n settings.colorBr = this.colorBr.toString(16);\n }\n if (this.zIndex)\n settings.zIndex = this.zIndex;\n if (this.forceZIndexContext)\n settings.forceZIndexContext = true;\n if (this.clipping)\n settings.clipping = this.clipping;\n if (!this.clipbox)\n settings.clipbox = this.clipbox;\n if (this.__texture) {\n let tnd = this.__texture.getNonDefaults();\n if (Object.keys(tnd).length) {\n settings.texture = tnd;\n }\n }\n if (this.shader && Utils$1.isFunction(this.shader.getNonDefaults)) {\n let tnd = this.shader.getNonDefaults();\n if (Object.keys(tnd).length) {\n settings.shader = tnd;\n }\n }\n if (this._hasTexturizer()) {\n if (this.texturizer.enabled) {\n settings.renderToTexture = this.texturizer.enabled;\n }\n if (this.texturizer.lazy) {\n settings.renderToTextureLazy = this.texturizer.lazy;\n }\n if (this.texturizer.colorize) {\n settings.colorizeResultTexture = this.texturizer.colorize;\n }\n if (this.texturizer.renderOffscreen) {\n settings.renderOffscreen = this.texturizer.renderOffscreen;\n }\n }\n return settings;\n }\n static getGetter(propertyPath) {\n let getter = Element.PROP_GETTERS.get(propertyPath);\n if (!getter) {\n getter = new Function(\"obj\", \"return obj.\" + propertyPath);\n Element.PROP_GETTERS.set(propertyPath, getter);\n }\n return getter;\n }\n static getSetter(propertyPath) {\n let setter = Element.PROP_SETTERS.get(propertyPath);\n if (!setter) {\n setter = new Function(\"obj\", \"v\", \"obj.\" + propertyPath + \" = v\");\n Element.PROP_SETTERS.set(propertyPath, setter);\n }\n return setter;\n }\n get withinBoundsMargin() {\n return this.__core._withinBoundsMargin;\n }\n _enableWithinBoundsMargin() {\n if (this.__enabled) {\n this._setActiveFlag();\n }\n }\n _disableWithinBoundsMargin() {\n if (this.__active) {\n this._unsetActiveFlag();\n }\n }\n set boundsMargin(v) {\n if (!Array.isArray(v) && v !== null) {\n throw new Error(\"boundsMargin should be an array of left-top-right-bottom values or null (inherit margin)\");\n }\n this.__core.boundsMargin = v;\n }\n get boundsMargin() {\n return this.__core.boundsMargin;\n }\n get x() {\n return this.__core.offsetX;\n }\n set x(v) {\n this.__core.offsetX = v;\n }\n get y() {\n return this.__core.offsetY;\n }\n set y(v) {\n this.__core.offsetY = v;\n }\n get w() {\n return this._w;\n }\n set w(v) {\n if (Utils$1.isFunction(v)) {\n this._w = 0;\n this.__core.funcW = v;\n } else {\n v = Math.max(v, 0);\n if (this._w !== v) {\n this.__core.disableFuncW();\n this._w = v;\n this._updateDimensions();\n }\n }\n }\n get h() {\n return this._h;\n }\n set h(v) {\n if (Utils$1.isFunction(v)) {\n this._h = 0;\n this.__core.funcH = v;\n } else {\n v = Math.max(v, 0);\n if (this._h !== v) {\n this.__core.disableFuncH();\n this._h = v;\n this._updateDimensions();\n }\n }\n }\n get collision() {\n return this._collision;\n }\n set collision(v) {\n this._collision = v;\n }\n _updateCollision() {\n if (this.collision && this.__parent && this.__parent.collision === void 0) {\n this.__parent.collision = 2;\n }\n }\n get scaleX() {\n return this.__core.scaleX;\n }\n set scaleX(v) {\n this.__core.scaleX = v;\n }\n get scaleY() {\n return this.__core.scaleY;\n }\n set scaleY(v) {\n this.__core.scaleY = v;\n }\n get scale() {\n return this.__core.scale;\n }\n set scale(v) {\n this.__core.scale = v;\n }\n get pivotX() {\n return this.__core.pivotX;\n }\n set pivotX(v) {\n this.__core.pivotX = v;\n }\n get pivotY() {\n return this.__core.pivotY;\n }\n set pivotY(v) {\n this.__core.pivotY = v;\n }\n get pivot() {\n return this.__core.pivot;\n }\n set pivot(v) {\n this.__core.pivot = v;\n }\n get mountX() {\n return this.__core.mountX;\n }\n set mountX(v) {\n this.__core.mountX = v;\n }\n get mountY() {\n return this.__core.mountY;\n }\n set mountY(v) {\n this.__core.mountY = v;\n }\n get mount() {\n return this.__core.mount;\n }\n set mount(v) {\n this.__core.mount = v;\n }\n get rotation() {\n return this.__core.rotation;\n }\n set rotation(v) {\n this.__core.rotation = v;\n }\n get alpha() {\n return this.__core.alpha;\n }\n set alpha(v) {\n this.__core.alpha = v;\n }\n get visible() {\n return this.__core.visible;\n }\n set visible(v) {\n this.__core.visible = v;\n }\n get colorUl() {\n return this.__core.colorUl;\n }\n set colorUl(v) {\n this.__core.colorUl = v;\n }\n get colorUr() {\n return this.__core.colorUr;\n }\n set colorUr(v) {\n this.__core.colorUr = v;\n }\n get colorBl() {\n return this.__core.colorBl;\n }\n set colorBl(v) {\n this.__core.colorBl = v;\n }\n get colorBr() {\n return this.__core.colorBr;\n }\n set colorBr(v) {\n this.__core.colorBr = v;\n }\n get color() {\n return this.__core.colorUl;\n }\n set color(v) {\n if (this.colorUl !== v || this.colorUr !== v || this.colorBl !== v || this.colorBr !== v) {\n this.colorUl = v;\n this.colorUr = v;\n this.colorBl = v;\n this.colorBr = v;\n }\n }\n get colorTop() {\n return this.colorUl;\n }\n set colorTop(v) {\n if (this.colorUl !== v || this.colorUr !== v) {\n this.colorUl = v;\n this.colorUr = v;\n }\n }\n get colorBottom() {\n return this.colorBl;\n }\n set colorBottom(v) {\n if (this.colorBl !== v || this.colorBr !== v) {\n this.colorBl = v;\n this.colorBr = v;\n }\n }\n get colorLeft() {\n return this.colorUl;\n }\n set colorLeft(v) {\n if (this.colorUl !== v || this.colorBl !== v) {\n this.colorUl = v;\n this.colorBl = v;\n }\n }\n get colorRight() {\n return this.colorUr;\n }\n set colorRight(v) {\n if (this.colorUr !== v || this.colorBr !== v) {\n this.colorUr = v;\n this.colorBr = v;\n }\n }\n get zIndex() {\n return this.__core.zIndex;\n }\n set zIndex(v) {\n this.__core.zIndex = v;\n }\n get forceZIndexContext() {\n return this.__core.forceZIndexContext;\n }\n set forceZIndexContext(v) {\n this.__core.forceZIndexContext = v;\n }\n get clipping() {\n return this.__core.clipping;\n }\n set clipping(v) {\n this.__core.clipping = v;\n }\n get clipbox() {\n return this.__core.clipbox;\n }\n set clipbox(v) {\n this.__core.clipbox = v;\n }\n get tags() {\n return this.getTags();\n }\n set tags(v) {\n if (!Array.isArray(v))\n v = [v];\n this.setTags(v);\n }\n set t(v) {\n this.tags = v;\n }\n get _children() {\n if (!this.__childList) {\n this.__childList = new ElementChildList(this, false);\n }\n return this.__childList;\n }\n get childList() {\n if (!this._allowChildrenAccess()) {\n this._throwError(\"Direct access to children is not allowed in \" + this.getLocationString());\n }\n return this._children;\n }\n hasChildren() {\n return this._allowChildrenAccess() && this.__childList && this.__childList.length > 0;\n }\n _allowChildrenAccess() {\n return true;\n }\n get children() {\n return this.childList.get();\n }\n set children(children) {\n this.childList.patch(children);\n }\n add(o) {\n return this.childList.a(o);\n }\n get p() {\n return this.__parent;\n }\n get parent() {\n return this.__parent;\n }\n get src() {\n if (this.texture && this.texture instanceof ImageTexture) {\n return this.texture._src;\n } else {\n return void 0;\n }\n }\n set src(v) {\n const texture = new ImageTexture(this.stage);\n texture.src = v;\n this.texture = texture;\n }\n set mw(v) {\n if (this.texture) {\n this.texture.mw = v;\n this._updateDimensions();\n } else {\n this._throwError(\"Please set mw after setting a texture.\");\n }\n }\n set mh(v) {\n if (this.texture) {\n this.texture.mh = v;\n this._updateDimensions();\n } else {\n this._throwError(\"Please set mh after setting a texture.\");\n }\n }\n get rect() {\n return this.texture === this.stage.rectangleTexture;\n }\n set rect(v) {\n if (v) {\n this.texture = this.stage.rectangleTexture;\n } else {\n this.texture = null;\n }\n }\n enableTextTexture() {\n if (!this.texture || !(this.texture instanceof TextTexture)) {\n this.texture = new TextTexture(this.stage);\n if (!this.texture.w && !this.texture.h) {\n this.texture.w = this.w;\n this.texture.h = this.h;\n }\n }\n return this.texture;\n }\n get text() {\n if (this.texture && this.texture instanceof TextTexture) {\n return this.texture;\n } else {\n return null;\n }\n }\n set text(v) {\n if (!this.texture || !(this.texture instanceof TextTexture)) {\n this.enableTextTexture();\n }\n if (Utils$1.isString(v)) {\n this.texture.text = v;\n } else {\n this.texture.patch(v);\n }\n }\n set onUpdate(f) {\n this.__core.onUpdate = f;\n }\n set onAfterCalcs(f) {\n this.__core.onAfterCalcs = f;\n }\n set onAfterUpdate(f) {\n this.__core.onAfterUpdate = f;\n }\n forceUpdate() {\n this.__core._setHasUpdates();\n }\n get shader() {\n return this.__core.shader;\n }\n set shader(v) {\n if (Utils$1.isObjectLiteral(v) && !v.type) {\n if (this.shader) {\n this.shader.patch(v);\n }\n } else {\n const shader = Shader.create(this.stage, v);\n if (this.__enabled && this.__core.shader) {\n this.__core.shader.removeElement(this.__core);\n }\n this.__core.shader = shader;\n if (this.__enabled && this.__core.shader) {\n this.__core.shader.addElement(this.__core);\n }\n }\n }\n _hasTexturizer() {\n return !!this.__core._texturizer;\n }\n get renderToTexture() {\n return this.rtt;\n }\n set renderToTexture(v) {\n this.rtt = v;\n }\n get rtt() {\n return this._hasTexturizer() && this.texturizer.enabled;\n }\n set rtt(v) {\n this.texturizer.enabled = v;\n }\n get rttLazy() {\n return this._hasTexturizer() && this.texturizer.lazy;\n }\n set rttLazy(v) {\n this.texturizer.lazy = v;\n }\n get renderOffscreen() {\n return this._hasTexturizer() && this.texturizer.renderOffscreen;\n }\n set renderOffscreen(v) {\n this.texturizer.renderOffscreen = v;\n }\n get colorizeResultTexture() {\n return this._hasTexturizer() && this.texturizer.colorize;\n }\n set colorizeResultTexture(v) {\n this.texturizer.colorize = v;\n }\n getTexture() {\n return this.texturizer._getTextureSource();\n }\n get texturizer() {\n return this.__core.texturizer;\n }\n patch(settings) {\n let paths = Object.keys(settings);\n for (let i = 0, n = paths.length; i < n; i++) {\n let path = paths[i];\n const v = settings[path];\n const firstCharCode = path.charCodeAt(0);\n if (Utils$1.isUcChar(firstCharCode)) {\n const child = this.getByRef(path);\n if (!child) {\n if (v !== void 0) {\n let c;\n if (Utils$1.isObjectLiteral(v)) {\n c = this.childList.createItem(v);\n c.patch(v);\n } else if (Utils$1.isObject(v)) {\n c = v;\n }\n if (c.isElement) {\n c.ref = path;\n }\n this.childList.a(c);\n }\n } else {\n if (v === void 0) {\n if (child.parent) {\n child.parent.childList.remove(child);\n }\n } else if (Utils$1.isObjectLiteral(v)) {\n child.patch(v);\n } else if (v.isElement) {\n v.ref = path;\n this.childList.replace(v, child);\n } else {\n this._throwError(\"Unexpected value for path: \" + path);\n }\n }\n } else {\n Base.patchObjectProperty(this, path, v);\n }\n }\n }\n _throwError(message) {\n throw new Error(this.constructor.name + \" (\" + this.getLocationString() + \"): \" + message);\n }\n animation(settings) {\n return this.stage.animations.createAnimation(this, settings);\n }\n transition(property, settings = null) {\n if (settings === null) {\n return this._getTransition(property);\n } else {\n this._setTransition(property, settings);\n return null;\n }\n }\n set transitions(object) {\n let keys = Object.keys(object);\n keys.forEach((property) => {\n this.transition(property, object[property]);\n });\n }\n set smooth(object) {\n let keys = Object.keys(object);\n keys.forEach((property) => {\n let value = object[property];\n if (Array.isArray(value)) {\n this.setSmooth(property, value[0], value[1]);\n } else {\n this.setSmooth(property, value);\n }\n });\n }\n fastForward(property) {\n if (this._transitions) {\n let t = this._transitions[property];\n if (t && t.isTransition) {\n t.finish();\n }\n }\n }\n _getTransition(property) {\n if (!this._transitions) {\n this._transitions = {};\n }\n let t = this._transitions[property];\n if (!t) {\n t = new Transition(this.stage.transitions, this.stage.transitions.defaultTransitionSettings, this, property);\n } else if (t.isTransitionSettings) {\n t = new Transition(\n this.stage.transitions,\n t,\n this,\n property\n );\n }\n this._transitions[property] = t;\n return t;\n }\n _setTransition(property, settings) {\n if (!settings) {\n this._removeTransition(property);\n } else {\n if (Utils$1.isObjectLiteral(settings)) {\n settings = this.stage.transitions.createSettings(settings);\n }\n if (!this._transitions) {\n this._transitions = {};\n }\n let current = this._transitions[property];\n if (current && current.isTransition) {\n current.settings = settings;\n return current;\n } else {\n this._transitions[property] = settings;\n }\n }\n }\n _removeTransition(property) {\n if (this._transitions) {\n delete this._transitions[property];\n }\n }\n getSmooth(property, v) {\n let t = this._getTransition(property);\n if (t && t.isAttached()) {\n return t.targetValue;\n } else {\n return v;\n }\n }\n setSmooth(property, v, settings) {\n if (settings) {\n this._setTransition(property, settings);\n }\n let t = this._getTransition(property);\n t.start(v);\n return t;\n }\n get flex() {\n return this.__core.flex;\n }\n set flex(v) {\n this.__core.flex = v;\n }\n get flexItem() {\n return this.__core.flexItem;\n }\n set flexItem(v) {\n this.__core.flexItem = v;\n }\n static isColorProperty(property) {\n return property.toLowerCase().indexOf(\"color\") >= 0;\n }\n static getMerger(property) {\n if (Element.isColorProperty(property)) {\n return StageUtils.mergeColors;\n } else {\n return StageUtils.mergeNumbers;\n }\n }\n toJSON() {\n const ref = [`${this.constructor.name}`];\n const tree = {};\n tree[ref] = {};\n if (this.hasChildren()) {\n Element.collectChildren(tree[ref], this.__childList);\n } else {\n tree[ref] = { ...Element.getProperties(this) };\n }\n return tree;\n }\n static collectChildren(tree, children) {\n const childList = children;\n for (let i = 0, j = childList.length; i < j; i++) {\n const element = childList.getAt(i);\n const ref = `${element.__ref || `Element-${element.id}`}`;\n const properties = this.getProperties(element);\n tree[ref] = { ...properties };\n if (element.hasChildren()) {\n tree[ref].children = {};\n this.collectChildren(\n tree[ref].children,\n element.__childList\n );\n }\n }\n }\n static getProperties(element) {\n const props = {};\n const list = [\n \"alpha\",\n \"active\",\n \"attached\",\n \"boundsMargin\",\n \"color\",\n \"clipping\",\n \"enabled\",\n \"h\",\n \"id\",\n \"isComponent\",\n \"mount\",\n \"mountY\",\n \"mountX\",\n \"pivot\",\n \"pivotX\",\n \"pivotY\",\n \"ref\",\n \"renderOffscreen\",\n \"renderToTexture\",\n \"scale\",\n \"scaleX\",\n \"scaleY\",\n \"state\",\n \"tag\",\n \"visible\",\n \"w\",\n \"x\",\n \"y\",\n \"zIndex\",\n \"!!flex\",\n \"!!flexItem\",\n \"hasFocus()\",\n \"hasFinalFocus()\"\n ];\n let n = list.length;\n while (n--) {\n let key = list[n];\n const getBoolean = /^!{2}/;\n const isFunction = /\\(\\)$/;\n if (getBoolean.test(key)) {\n key = key.substring(2, key.length);\n props[key] = !!element[key];\n } else if (isFunction.test(key)) {\n key = key.substring(0, key.length - 2);\n if (typeof element[key] === \"function\") {\n props[key] = element[key]();\n }\n } else {\n props[key] = element[key];\n }\n }\n return { ...props, ...element.getNonDefaults() };\n }\n}\nEventEmitter.addAsMixin(Element);\nElement.prototype.isElement = 1;\nElement.id = 1;\nElement.PROP_GETTERS = /* @__PURE__ */ new Map();\nElement.PROP_SETTERS = /* @__PURE__ */ new Map();\nclass StateMachine {\n constructor() {\n StateMachine.setupStateMachine(this);\n }\n static setupStateMachine(target) {\n const targetConstructor = target.constructor;\n const router = StateMachine.create(targetConstructor);\n Object.setPrototypeOf(target, router.prototype);\n target.constructor = targetConstructor;\n target._initStateMachine();\n }\n static create(type) {\n if (!type.hasOwnProperty(\"_sm\")) {\n const stateMachineType = new StateMachineType(type);\n type._sm = stateMachineType;\n }\n return type._sm.router;\n }\n fire(event, ...args) {\n if (this._hasMethod(event)) {\n return this[event](...args);\n }\n }\n _getState() {\n return this._state.__path;\n }\n _inState(statePath, currentStatePath = this._state.__path) {\n const state = this._sm.getStateByPath(statePath);\n const currentState = this._sm.getStateByPath(currentStatePath);\n const level = state.__level;\n const stateAtLevel = StateMachine._getStateAtLevel(currentState, level);\n return stateAtLevel === state;\n }\n _hasMember(name) {\n return !!this.constructor.prototype[name];\n }\n _hasMethod(name) {\n const member = this.constructor.prototype[name];\n return !!member && typeof member === \"function\";\n }\n _setState(statePath, args) {\n const setStateId = ++this._setStateCounter;\n this._setStateId = setStateId;\n if (this._state.__path !== statePath) {\n let newState = this._sm._stateMap[statePath];\n if (!newState) {\n newState = this._sm.getStateByPath(statePath);\n }\n const prevState = this._state;\n const hasDifferentEnterMethod = newState.prototype.$enter !== this._state.prototype.$enter;\n const hasDifferentExitMethod = newState.prototype.$exit !== this._state.prototype.$exit;\n if (hasDifferentEnterMethod || hasDifferentExitMethod) {\n const sharedState = StateMachine._getSharedState(this._state, newState);\n const context = {\n newState: newState.__path,\n prevState: prevState.__path,\n sharedState: sharedState.__path\n };\n const sharedLevel = sharedState.__level;\n if (hasDifferentExitMethod) {\n const exitStates = StateMachine._getStatesUntilLevel(this._state, sharedLevel);\n for (let i = 0, n = exitStates.length; i < n; i++) {\n this.__setState(exitStates[i]);\n this._callExit(this._state, args, context);\n const stateChangeOverridden = this._setStateId !== setStateId;\n if (stateChangeOverridden) {\n return;\n }\n }\n }\n if (hasDifferentEnterMethod) {\n const enterStates = StateMachine._getStatesUntilLevel(newState, sharedLevel).reverse();\n for (let i = 0, n = enterStates.length; i < n; i++) {\n this.__setState(enterStates[i]);\n this._callEnter(this._state, args, context);\n const stateChangeOverridden = this._setStateId !== setStateId;\n if (stateChangeOverridden) {\n return;\n }\n }\n }\n }\n this.__setState(newState);\n if (this._changedState) {\n const context = {\n newState: newState.__path,\n prevState: prevState.__path\n };\n if (args) {\n this._changedState(context, ...args);\n } else {\n this._changedState(context);\n }\n }\n if (this._onStateChange) {\n const context = {\n newState: newState.__path,\n prevState: prevState.__path\n };\n this._onStateChange(context);\n }\n }\n }\n _callEnter(state, args = [], context) {\n const hasParent = !!state.__parent;\n if (state.prototype.$enter) {\n if (!hasParent || state.__parent.prototype.$enter !== state.prototype.$enter) {\n state.prototype.$enter.apply(this, [context, ...args]);\n }\n }\n }\n _callExit(state, args = [], context) {\n const hasParent = !!state.__parent;\n if (state.prototype.$exit) {\n if (!hasParent || state.__parent.prototype.$exit !== state.prototype.$exit) {\n state.prototype.$exit.apply(this, [context, ...args]);\n }\n }\n }\n __setState(state) {\n this._state = state;\n this._stateIndex = state.__index;\n this.constructor = state;\n }\n _initStateMachine() {\n this._state = null;\n this._stateIndex = 0;\n this._setStateCounter = 0;\n this._sm = this._routedType._sm;\n this.__setState(this._sm.getStateByPath(\"\"));\n const context = { newState: \"\", prevState: void 0, sharedState: void 0 };\n this._callEnter(this._state, [], context);\n this._onStateChange = void 0;\n }\n _getMostSpecificHandledMember(memberNames) {\n let cur = this._state;\n do {\n for (let i = 0, n = memberNames.length; i < n; i++) {\n const memberName = memberNames[i];\n if (!cur.__parent) {\n if (cur.prototype[memberName]) {\n return memberName;\n }\n } else {\n const alias = StateMachineType.getStateMemberAlias(cur.__path, memberName);\n if (this[alias]) {\n return memberName;\n }\n }\n }\n cur = cur.__parent;\n } while (cur);\n }\n static _getStatesUntilLevel(state, level) {\n const states = [];\n while (state.__level > level) {\n states.push(state);\n state = state.__parent;\n }\n return states;\n }\n static _getSharedState(state1, state2) {\n const state1Array = StateMachine._getAncestorStates(state1);\n const state2Array = StateMachine._getAncestorStates(state2);\n const n = Math.min(state1Array.length, state2Array.length);\n for (let i = 0; i < n; i++) {\n if (state1Array[i] !== state2Array[i]) {\n return state1Array[i - 1];\n }\n }\n return state1Array[n - 1];\n }\n static _getAncestorStates(state) {\n const result = [];\n do {\n result.push(state);\n } while (state = state.__parent);\n return result.reverse();\n }\n static _getStateAtLevel(state, level) {\n if (level > state.__level) {\n return void 0;\n }\n while (level < state.__level) {\n state = state.__parent;\n }\n return state;\n }\n}\nclass StateMachineType {\n constructor(type) {\n this._type = type;\n this._router = null;\n this.init();\n }\n get router() {\n return this._router;\n }\n init() {\n this._router = this._createRouter();\n this._stateMap = this._getStateMap();\n this._addStateMemberDelegatorsToRouter();\n }\n _createRouter() {\n const type = this._type;\n const router = class StateMachineRouter extends type {\n constructor() {\n super(...arguments);\n if (!this.constructor.hasOwnProperty(\"_isRouter\")) {\n throw new Error(`You need to extend ${type.name}.original instead of ${type.name}.`);\n }\n }\n };\n router._isRouter = true;\n router.prototype._routedType = type;\n router.original = type;\n this._mixinStateMachineMethods(router);\n return router;\n }\n _mixinStateMachineMethods(router) {\n const names = Object.getOwnPropertyNames(StateMachine.prototype);\n for (let i = 0, n = names.length; i < n; i++) {\n const name = names[i];\n if (name !== \"constructor\") {\n const descriptor = Object.getOwnPropertyDescriptor(StateMachine.prototype, name);\n Object.defineProperty(router.prototype, name, descriptor);\n }\n }\n }\n _addStateMemberDelegatorsToRouter() {\n const members = this._getAllMemberNames();\n members.forEach((member) => {\n this._addMemberRouter(member);\n });\n }\n _addMemberRouter(member) {\n const statePaths = Object.keys(this._stateMap);\n const descriptors = [];\n const aliases = [];\n statePaths.forEach((statePath, index) => {\n const state = this._stateMap[statePath];\n const descriptor = this._getDescriptor(state, member);\n if (descriptor) {\n descriptors[index] = descriptor;\n const alias = StateMachineType.getStateMemberAlias(descriptor._source.__path, member);\n aliases[index] = alias;\n if (!this._router.prototype.hasOwnProperty(alias)) {\n Object.defineProperty(this._router.prototype, alias, descriptor);\n }\n } else {\n descriptors[index] = null;\n aliases[index] = null;\n }\n });\n let type = void 0;\n descriptors.forEach((descriptor) => {\n if (descriptor) {\n const descType = this._getDescriptorType(descriptor);\n if (type && type !== descType) {\n console.warn(`[Lightning] Member ${member} in ${this._type.name} has inconsistent types.`);\n return;\n }\n type = descType;\n }\n });\n switch (type) {\n case \"method\":\n this._addMethodRouter(member, descriptors, aliases);\n break;\n case \"getter\":\n this._addGetterSetterRouters(member);\n break;\n case \"property\":\n console.warn(\"[Lightning] Fixed properties are not supported; please use a getter instead!\");\n break;\n }\n }\n _getDescriptor(state, member, isValid = () => true) {\n let type = state;\n let curState = state;\n do {\n const descriptor = Object.getOwnPropertyDescriptor(type.prototype, member);\n if (descriptor) {\n if (isValid(descriptor)) {\n descriptor._source = curState;\n return descriptor;\n }\n }\n type = Object.getPrototypeOf(type);\n if (type && type.hasOwnProperty(\"__state\")) {\n curState = type;\n }\n } while (type && type.prototype);\n return void 0;\n }\n _getDescriptorType(descriptor) {\n if (descriptor.get || descriptor.set) {\n return \"getter\";\n } else {\n if (typeof descriptor.value === \"function\") {\n return \"method\";\n } else {\n return \"property\";\n }\n }\n }\n static _supportsSpread() {\n if (this.__supportsSpread === void 0) {\n this.__supportsSpread = false;\n try {\n const func = new Function(\"return [].concat(...arguments);\");\n func();\n this.__supportsSpread = true;\n } catch (e) {\n }\n }\n return this.__supportsSpread;\n }\n _addMethodRouter(member, descriptors, aliases) {\n const code = [\n \"//@ sourceURL=StateMachineRouter.js\",\n \"var i = this._stateIndex;\"\n ];\n let cur = aliases[0];\n const supportsSpread = StateMachineType._supportsSpread();\n for (let i = 1, n = aliases.length; i < n; i++) {\n const alias = aliases[i];\n if (alias !== cur) {\n if (cur) {\n if (supportsSpread) {\n code.push(`if (i < ${i}) return this[\"${cur}\"](...arguments); else`);\n } else {\n code.push(`if (i < ${i}) return this[\"${cur}\"].apply(this, arguments); else`);\n }\n } else {\n code.push(`if (i < ${i}) return ; else`);\n }\n }\n cur = alias;\n }\n if (cur) {\n if (supportsSpread) {\n code.push(`return this[\"${cur}\"](...arguments);`);\n } else {\n code.push(`return this[\"${cur}\"].apply(this, arguments);`);\n }\n } else {\n code.push(`;`);\n }\n const functionBody = code.join(\"\\n\");\n const router = new Function([], functionBody);\n const descriptor = { value: router };\n Object.defineProperty(this._router.prototype, member, descriptor);\n }\n _addGetterSetterRouters(member) {\n const getter = this._getGetterRouter(member);\n const setter = this._getSetterRouter(member);\n const descriptor = {\n get: getter,\n set: setter\n };\n Object.defineProperty(this._router.prototype, member, descriptor);\n }\n _getGetterRouter(member) {\n const statePaths = Object.keys(this._stateMap);\n const aliases = [];\n statePaths.forEach((statePath, index) => {\n const state = this._stateMap[statePath];\n const descriptor = this._getDescriptor(state, member, (descriptor2) => descriptor2.get);\n if (descriptor) {\n const alias = StateMachineType.getStateMemberAlias(descriptor._source.__path, member);\n aliases[index] = alias;\n if (!this._router.prototype.hasOwnProperty(alias)) {\n Object.defineProperty(this._router.prototype, alias, descriptor);\n }\n } else {\n aliases[index] = null;\n }\n });\n const code = [\n \"//@ sourceURL=StateMachineRouter.js\",\n \"var i = this._stateIndex;\"\n ];\n let cur = aliases[0];\n for (let i = 1, n = aliases.length; i < n; i++) {\n const alias = aliases[i];\n if (alias !== cur) {\n if (cur) {\n code.push(`if (i < ${i}) return this[\"${cur}\"]; else`);\n } else {\n code.push(`if (i < ${i}) return ; else`);\n }\n }\n cur = alias;\n }\n if (cur) {\n code.push(`return this[\"${cur}\"];`);\n } else {\n code.push(`;`);\n }\n const functionBody = code.join(\"\\n\");\n const router = new Function([], functionBody);\n return router;\n }\n _getSetterRouter(member) {\n const statePaths = Object.keys(this._stateMap);\n const aliases = [];\n statePaths.forEach((statePath, index) => {\n const state = this._stateMap[statePath];\n const descriptor = this._getDescriptor(state, member, (descriptor2) => descriptor2.set);\n if (descriptor) {\n const alias = StateMachineType.getStateMemberAlias(descriptor._source.__path, member);\n aliases[index] = alias;\n if (!this._router.prototype.hasOwnProperty(alias)) {\n Object.defineProperty(this._router.prototype, alias, descriptor);\n }\n } else {\n aliases[index] = null;\n }\n });\n const code = [\n \"//@ sourceURL=StateMachineRouter.js\",\n \"var i = this._stateIndex;\"\n ];\n let cur = aliases[0];\n for (let i = 1, n = aliases.length; i < n; i++) {\n const alias = aliases[i];\n if (alias !== cur) {\n if (cur) {\n code.push(`if (i < ${i}) this[\"${cur}\"] = arg; else`);\n } else {\n code.push(`if (i < ${i}) ; else`);\n }\n }\n cur = alias;\n }\n if (cur) {\n code.push(`this[\"${cur}\"] = arg;`);\n } else {\n code.push(`;`);\n }\n const functionBody = code.join(\"\\n\");\n const router = new Function([\"arg\"], functionBody);\n return router;\n }\n static getStateMemberAlias(path, member) {\n return \"$\" + (path ? path + \".\" : \"\") + member;\n }\n _getAllMemberNames() {\n const stateMap = this._stateMap;\n const map = Object.keys(stateMap);\n let members = /* @__PURE__ */ new Set();\n map.forEach((statePath) => {\n if (statePath === \"\") {\n return;\n }\n const state = stateMap[statePath];\n const names = this._getStateMemberNames(state);\n names.forEach((name) => {\n members.add(name);\n });\n });\n return [...members];\n }\n _getStateMemberNames(state) {\n let type = state;\n let members = /* @__PURE__ */ new Set();\n const isRoot = this._type === state;\n do {\n const names = this._getStateMemberNamesForType(type);\n names.forEach((name) => {\n members.add(name);\n });\n type = Object.getPrototypeOf(type);\n } while (type && type.prototype && (!type.hasOwnProperty(\"__state\") || isRoot));\n return members;\n }\n _getStateMemberNamesForType(type) {\n const memberNames = Object.getOwnPropertyNames(type.prototype);\n return memberNames.filter((memberName) => {\n return memberName !== \"constructor\" && !StateMachineType._isStateLocalMember(memberName);\n });\n }\n static _isStateLocalMember(memberName) {\n return memberName === \"$enter\" || memberName === \"$exit\";\n }\n getStateByPath(statePath) {\n if (this._stateMap[statePath]) {\n return this._stateMap[statePath];\n }\n const parts = statePath.split(\".\");\n while (parts.pop()) {\n const statePath2 = parts.join(\".\");\n if (this._stateMap[statePath2]) {\n return this._stateMap[statePath2];\n }\n }\n }\n _getStateMap() {\n if (!this._stateMap) {\n this._stateMap = this._createStateMap();\n }\n return this._stateMap;\n }\n _createStateMap() {\n const stateMap = {};\n this._addState(this._type, null, \"\", stateMap);\n return stateMap;\n }\n _addState(state, parentState, name, stateMap) {\n state.__state = true;\n state.__name = name;\n this._addStaticStateProperty(state, parentState);\n const parentPath = parentState ? parentState.__path : \"\";\n let path = (parentPath ? parentPath + \".\" : \"\") + name;\n state.__path = path;\n state.__level = parentState ? parentState.__level + 1 : 0;\n state.__parent = parentState;\n state.__index = Object.keys(stateMap).length;\n stateMap[path] = state;\n const states = state._states;\n if (states) {\n const isInheritedFromParent = parentState && parentState._states === states;\n if (!isInheritedFromParent) {\n const subStates = state._states();\n subStates.forEach((subState) => {\n const stateName = StateMachineType._getStateName(subState);\n this._addState(subState, state, stateName, stateMap);\n });\n }\n }\n }\n static _getStateName(state) {\n const name = state.name;\n const index = name.indexOf(\"$\");\n if (index > 0) {\n return name.substr(0, index);\n }\n return name;\n }\n _addStaticStateProperty(state, parentState) {\n if (parentState) {\n const isClassStateLevel = parentState && !parentState.__parent;\n if (isClassStateLevel) {\n this._router[state.__name] = state;\n } else {\n parentState[state.__name] = state;\n }\n }\n }\n}\nclass Component extends Element {\n constructor(stage, properties) {\n super(stage);\n this.tagRoot = true;\n if (Utils$1.isObjectLiteral(properties)) {\n Object.assign(this, properties);\n }\n this.__initialized = false;\n this.__firstActive = false;\n this.__firstEnable = false;\n this.__signals = void 0;\n this.__passSignals = void 0;\n this.__construct();\n const func = this.constructor.getTemplateFunc(this);\n func.f(this, func.a);\n this._build();\n }\n __start() {\n StateMachine.setupStateMachine(this);\n this._onStateChange = Component.prototype.__onStateChange;\n }\n get state() {\n return this._getState();\n }\n __onStateChange() {\n if (this.application) {\n this.application.updateFocusPath();\n }\n }\n _refocus() {\n if (this.application) {\n this.application.updateFocusPath();\n }\n }\n static bindProp(name, func = null) {\n return { __propertyBinding: true, __name: name, __func: func };\n }\n __bindProperty(propObj, targetObj, targetProp) {\n const obj = targetObj;\n const prop = targetProp;\n const propDependencies = Array.isArray(propObj.__name) ? propObj.__name : [propObj.__name];\n for (let i = 0; i < propDependencies.length; i++) {\n const propName = propDependencies[i];\n const func = propObj.__func ? propObj.__func : (context) => context[propName];\n if (!this.hasOwnProperty(propName)) {\n this[`__prop_bindings_${propName}`] = [{ __obj: obj, __prop: prop, __func: func }];\n Object.defineProperty(this, propName, {\n set: (value) => {\n this[`__prop_${propName}`] = value;\n for (const { __obj, __prop, __func } of this[`__prop_bindings_${propName}`]) {\n __obj[__prop] = __func(this);\n }\n },\n get: () => this[`__prop_${propName}`]\n });\n } else {\n this[`__prop_bindings_${propName}`].push({ __obj: obj, __prop: prop, __func: func });\n }\n }\n }\n static getTemplateFunc(ctx) {\n const name = \"_templateFunc\";\n const hasName = \"__has\" + name;\n if (this[hasName] !== this) {\n this[hasName] = this;\n this[name] = this.parseTemplate(this._template(ctx));\n }\n return this[name];\n }\n static parseTemplate(obj) {\n const context = {\n loc: [],\n store: [],\n rid: 0\n };\n this.parseTemplateRec(obj, context, \"element\");\n const code = context.loc.join(\";\\n\");\n const f = new Function(\"element\", \"store\", code);\n return { f, a: context.store };\n }\n static parseTemplateRec(obj, context, cursor) {\n const store = context.store;\n const loc = context.loc;\n const keys = Object.keys(obj);\n keys.forEach((key) => {\n let value = obj[key];\n if (Utils$1.isUcChar(key.charCodeAt(0))) {\n if (Utils$1.isObjectLiteral(value)) {\n const childCursor = `r${key.replace(/[^a-z0-9]/gi, \"\") + context.rid}`;\n let type = value.type ? value.type : Element;\n if (type === Element) {\n loc.push(`var ${childCursor} = element.stage.createElement()`);\n } else {\n store.push(type);\n loc.push(`var ${childCursor} = new store[${store.length - 1}](${cursor}.stage)`);\n }\n loc.push(`${childCursor}.ref = \"${key}\"`);\n context.rid++;\n this.parseTemplateRec(value, context, childCursor);\n loc.push(`${cursor}.childList.add(${childCursor})`);\n } else if (Utils$1.isObject(value)) {\n store.push(value);\n loc.push(`${cursor}.childList.add(store[${store.length - 1}])`);\n }\n } else {\n if (key === \"text\") {\n const propKey = cursor + \"__text\";\n loc.push(`var ${propKey} = ${cursor}.enableTextTexture()`);\n if (value.__propertyBinding === true) {\n store.push(value);\n loc.push(`element.__bindProperty(store[${store.length - 1}], ${cursor}, \"${key}\")`);\n } else {\n this.parseTemplatePropRec(value, context, propKey);\n }\n } else if (key === \"shader\" && Utils$1.isObjectLiteral(value)) {\n const shaderCursor = `${cursor}[\"shader\"]`;\n store.push(value);\n loc.push(`${cursor}[\"${key}\"] = store[${store.length - 1}]`);\n this.parsePropertyBindings(value, context, shaderCursor);\n } else if (key === \"texture\" && Utils$1.isObjectLiteral(value)) {\n const propKey = cursor + \"__texture\";\n const type = value.type;\n if (type) {\n store.push(type);\n loc.push(`var ${propKey} = new store[${store.length - 1}](${cursor}.stage)`);\n this.parseTemplatePropRec(value, context, propKey);\n loc.push(`${cursor}[\"${key}\"] = ${propKey}`);\n } else {\n loc.push(`${propKey} = ${cursor}.texture`);\n this.parseTemplatePropRec(value, context, propKey);\n }\n } else if (Utils$1.isObjectLiteral(value) && value.__propertyBinding === true) {\n store.push(value);\n loc.push(`element.__bindProperty(store[${store.length - 1}], ${cursor}, \"${key}\")`);\n } else {\n if (Utils$1.isNumber(value)) {\n loc.push(`${cursor}[\"${key}\"] = ${value}`);\n } else if (Utils$1.isBoolean(value)) {\n loc.push(`${cursor}[\"${key}\"] = ${value ? \"true\" : \"false\"}`);\n } else if (Utils$1.isObject(value) || Array.isArray(value)) {\n store.push(value);\n loc.push(`${cursor}[\"${key}\"] = store[${store.length - 1}]`);\n } else {\n loc.push(`${cursor}[\"${key}\"] = ${JSON.stringify(value)}`);\n }\n }\n }\n });\n }\n static parseTemplatePropRec(obj, context, cursor) {\n const store = context.store;\n const loc = context.loc;\n const keys = Object.keys(obj);\n keys.forEach((key) => {\n if (key !== \"type\") {\n const value = obj[key];\n if (Utils$1.isNumber(value)) {\n loc.push(`${cursor}[\"${key}\"] = ${value}`);\n } else if (Utils$1.isBoolean(value)) {\n loc.push(`${cursor}[\"${key}\"] = ${value ? \"true\" : \"false\"}`);\n } else if (Utils$1.isObject(value) && value.__propertyBinding === true) {\n store.push(value);\n loc.push(`element.__bindProperty(store[${store.length - 1}], ${cursor}, \"${key}\")`);\n } else if (Utils$1.isObject(value) || Array.isArray(value)) {\n store.push(value);\n loc.push(`${cursor}[\"${key}\"] = store[${store.length - 1}]`);\n } else {\n loc.push(`${cursor}[\"${key}\"] = ${JSON.stringify(value)}`);\n }\n }\n });\n }\n static parsePropertyBindings(obj, context, cursor) {\n const store = context.store;\n const loc = context.loc;\n const keys = Object.keys(obj);\n keys.forEach((key) => {\n if (key !== \"type\") {\n const value = obj[key];\n if (Utils$1.isObjectLiteral(value) && value.__propertyBinding === true) {\n store.push(value);\n loc.push(`element.__bindProperty(store[${store.length - 1}], ${cursor}, \"${key}\")`);\n }\n }\n });\n }\n _onSetup() {\n if (!this.__initialized) {\n this._setup();\n }\n }\n _setup() {\n }\n _onAttach() {\n if (!this.__initialized) {\n this.__init();\n this.__initialized = true;\n }\n this._attach();\n }\n _attach() {\n }\n _onDetach() {\n this._detach();\n }\n _detach() {\n }\n _onEnabled() {\n if (!this.__firstEnable) {\n this._firstEnable();\n this.__firstEnable = true;\n }\n this._enable();\n }\n _firstEnable() {\n }\n _enable() {\n }\n _onDisabled() {\n this._disable();\n }\n _disable() {\n }\n _onActive() {\n if (!this.__firstActive) {\n this._firstActive();\n this.__firstActive = true;\n }\n this._active();\n }\n _firstActive() {\n }\n _active() {\n }\n _onInactive() {\n this._inactive();\n }\n _inactive() {\n }\n get application() {\n return this.stage.application;\n }\n __construct() {\n this._construct();\n }\n _construct() {\n }\n _build() {\n }\n __init() {\n this._init();\n }\n _init() {\n }\n _focus(newTarget, prevTarget) {\n }\n _unfocus(newTarget) {\n }\n _focusChange(target, newTarget) {\n }\n _getFocused() {\n return this;\n }\n _setFocusSettings(settings) {\n }\n _handleFocusSettings(settings) {\n }\n static _template() {\n return {};\n }\n hasFinalFocus() {\n let path = this.application._focusPath;\n return path && path.length && path[path.length - 1] === this;\n }\n hasFocus() {\n let path = this.application._focusPath;\n return path && path.indexOf(this) >= 0;\n }\n get cparent() {\n return Component.getParent(this);\n }\n seekAncestorByType(type) {\n let c = this.cparent;\n while (c) {\n if (c.constructor === type) {\n return c;\n }\n c = c.cparent;\n }\n }\n getSharedAncestorComponent(element) {\n let ancestor = this.getSharedAncestor(element);\n while (ancestor && !ancestor.isComponent) {\n ancestor = ancestor.parent;\n }\n return ancestor;\n }\n get signals() {\n return this.__signals;\n }\n set signals(v) {\n if (!Utils$1.isObjectLiteral(v)) {\n this._throwError(\"Signals: specify an object with signal-to-fire mappings\");\n }\n this.__signals = v;\n }\n set alterSignals(v) {\n if (!Utils$1.isObjectLiteral(v)) {\n this._throwError(\"Signals: specify an object with signal-to-fire mappings\");\n }\n if (!this.__signals) {\n this.__signals = {};\n }\n for (let key in v) {\n const d = v[key];\n if (d === void 0) {\n delete this.__signals[key];\n } else {\n this.__signals[key] = v;\n }\n }\n }\n get passSignals() {\n return this.__passSignals || {};\n }\n set passSignals(v) {\n this.__passSignals = Object.assign(this.__passSignals || {}, v);\n }\n set alterPassSignals(v) {\n if (!Utils$1.isObjectLiteral(v)) {\n this._throwError(\"Signals: specify an object with signal-to-fire mappings\");\n }\n if (!this.__passSignals) {\n this.__passSignals = {};\n }\n for (let key in v) {\n const d = v[key];\n if (d === void 0) {\n delete this.__passSignals[key];\n } else {\n this.__passSignals[key] = v;\n }\n }\n }\n signal(event, ...args) {\n return this._signal(event, args);\n }\n _signal(event, args) {\n const signalParent = this._getParentSignalHandler();\n if (signalParent) {\n if (this.__signals) {\n let fireEvent = this.__signals[event];\n if (fireEvent === false) {\n return;\n }\n if (fireEvent) {\n if (fireEvent === true) {\n fireEvent = event;\n }\n if (Utils$1.isFunction(fireEvent)) {\n return fireEvent(...args);\n }\n if (signalParent._hasMethod(fireEvent)) {\n return signalParent[fireEvent](...args);\n }\n }\n }\n let passSignal = this.__passSignals && this.__passSignals[event];\n if (passSignal) {\n if (passSignal && passSignal !== true) {\n event = passSignal;\n }\n return signalParent._signal(event, args);\n }\n }\n }\n _getParentSignalHandler() {\n return this.cparent ? this.cparent._getSignalHandler() : null;\n }\n _getSignalHandler() {\n if (this._signalProxy) {\n return this.cparent ? this.cparent._getSignalHandler() : null;\n }\n return this;\n }\n get _signalProxy() {\n return false;\n }\n fireAncestors(name, ...args) {\n if (!name.startsWith(\"$\")) {\n throw new Error(\"Ancestor event name must be prefixed by dollar sign.\");\n }\n const parent = this._getParentSignalHandler();\n if (parent) {\n return parent._doFireAncestors(name, args);\n }\n }\n _doFireAncestors(name, args) {\n if (this._hasMethod(name)) {\n return this.fire(name, ...args);\n } else {\n const signalParent = this._getParentSignalHandler();\n if (signalParent) {\n return signalParent._doFireAncestors(name, args);\n }\n }\n }\n static collectSubComponents(subs, element) {\n if (element.hasChildren()) {\n const childList = element.__childList;\n for (let i = 0, n = childList.length; i < n; i++) {\n const child = childList.getAt(i);\n if (child.isComponent) {\n subs.push(child);\n } else {\n Component.collectSubComponents(subs, child);\n }\n }\n }\n }\n static getComponent(element) {\n let parent = element;\n while (parent && !parent.isComponent) {\n parent = parent.parent;\n }\n return parent;\n }\n static getParent(element) {\n return Component.getComponent(element.parent);\n }\n}\nComponent.prototype.isComponent = true;\nclass CoreQuadList {\n constructor(ctx) {\n this.ctx = ctx;\n this.quadTextures = [];\n this.quadElements = [];\n }\n get length() {\n return this.quadTextures.length;\n }\n reset() {\n this.quadTextures = [];\n this.quadElements = [];\n this.dataLength = 0;\n }\n getElement(index) {\n return this.quadElements[index]._element;\n }\n getElementCore(index) {\n return this.quadElements[index];\n }\n getTexture(index) {\n return this.quadTextures[index];\n }\n getTextureWidth(index) {\n let nativeTexture = this.quadTextures[index];\n if (nativeTexture.w) {\n return nativeTexture.w;\n } else {\n return this.quadElements[index]._displayedTextureSource.w;\n }\n }\n getTextureHeight(index) {\n let nativeTexture = this.quadTextures[index];\n if (nativeTexture.h) {\n return nativeTexture.h;\n } else {\n return this.quadElements[index]._displayedTextureSource.h;\n }\n }\n}\nclass WebGLCoreQuadList extends CoreQuadList {\n constructor(ctx) {\n super(ctx);\n const byteSize = ctx.stage.getOption(\"bufferMemory\");\n this.dataLength = 0;\n this.data = new ArrayBuffer(byteSize);\n this.floats = new Float32Array(this.data);\n this.uints = new Uint32Array(this.data);\n }\n getAttribsDataByteOffset(index) {\n return index * 80;\n }\n getQuadContents() {\n let floats = this.floats;\n let uints = this.uints;\n let lines = [];\n for (let i = 1; i <= this.length; i++) {\n let str = \"entry \" + i + \": \";\n for (let j = 0; j < 4; j++) {\n let b = i * 20 + j * 4;\n str += floats[b] + \",\" + floats[b + 1] + \":\" + floats[b + 2] + \",\" + floats[b + 3] + \"[\" + uints[b + 4].toString(16) + \"] \";\n }\n lines.push(str);\n }\n return lines;\n }\n}\nclass CoreQuadOperation {\n constructor(ctx, shader, shaderOwner, renderTextureInfo, scissor, index) {\n this.ctx = ctx;\n this.shader = shader;\n this.shaderOwner = shaderOwner;\n this.renderTextureInfo = renderTextureInfo;\n this.scissor = scissor;\n this.index = index;\n this.length = 0;\n }\n get quads() {\n return this.ctx.renderState.quads;\n }\n getTexture(index) {\n return this.quads.getTexture(this.index + index);\n }\n getElementCore(index) {\n return this.quads.getElementCore(this.index + index);\n }\n getElement(index) {\n return this.quads.getElement(this.index + index);\n }\n getElementWidth(index) {\n return this.getElement(index).renderWidth;\n }\n getElementHeight(index) {\n return this.getElement(index).renderHeight;\n }\n getTextureWidth(index) {\n return this.quads.getTextureWidth(this.index + index);\n }\n getTextureHeight(index) {\n return this.quads.getTextureHeight(this.index + index);\n }\n getRenderWidth() {\n if (this.renderTextureInfo) {\n return this.renderTextureInfo.w;\n } else {\n return this.ctx.stage.w;\n }\n }\n getRenderHeight() {\n if (this.renderTextureInfo) {\n return this.renderTextureInfo.h;\n } else {\n return this.ctx.stage.h;\n }\n }\n}\nclass WebGLCoreQuadOperation extends CoreQuadOperation {\n constructor(ctx, shader, shaderOwner, renderTextureInfo, scissor, index) {\n super(ctx, shader, shaderOwner, renderTextureInfo, scissor, index);\n this.extraAttribsDataByteOffset = 0;\n }\n getAttribsDataByteOffset(index) {\n return this.quads.getAttribsDataByteOffset(this.index + index);\n }\n getNormalRenderTextureCoords(x, y) {\n let coords = this.shaderOwner.getRenderTextureCoords(x, y);\n coords[0] /= this.getRenderWidth();\n coords[1] /= this.getRenderHeight();\n coords[0] = coords[0] * 2 - 1;\n coords[1] = 1 - coords[1] * 2;\n return coords;\n }\n getProjection() {\n if (this.renderTextureInfo === null) {\n return this.ctx.renderExec._projection;\n } else {\n return this.renderTextureInfo.nativeTexture.projection;\n }\n }\n}\nclass CoreRenderExecutor {\n constructor(ctx) {\n this.ctx = ctx;\n this.renderState = ctx.renderState;\n this.gl = this.ctx.stage.gl;\n }\n destroy() {\n this.ctx = null;\n this.renderState = null;\n this.gl = null;\n delete this.ctx;\n delete this.renderState;\n delete this.gl;\n }\n _reset() {\n this._bindRenderTexture(null);\n this._setScissor(null);\n this._clearRenderTexture();\n }\n execute() {\n this._reset();\n let qops = this.renderState.quadOperations;\n let i = 0, n = qops.length;\n while (i < n) {\n this._processQuadOperation(qops[i]);\n i++;\n }\n }\n _processQuadOperation(quadOperation) {\n if (quadOperation.renderTextureInfo && quadOperation.renderTextureInfo.ignore) {\n return;\n }\n this._setupQuadOperation(quadOperation);\n this._execQuadOperation(quadOperation);\n }\n _setupQuadOperation(quadOperation) {\n }\n _execQuadOperation(op) {\n let nativeTexture = op.renderTextureInfo ? op.renderTextureInfo.nativeTexture : null;\n if (this._renderTexture !== nativeTexture) {\n this._bindRenderTexture(nativeTexture);\n }\n if (op.renderTextureInfo && !op.renderTextureInfo.cleared) {\n this._setScissor(null);\n this._clearRenderTexture();\n op.renderTextureInfo.cleared = true;\n this._setScissor(op.scissor);\n } else {\n this._setScissor(op.scissor);\n }\n this._renderQuadOperation(op);\n }\n _renderQuadOperation(op) {\n }\n _bindRenderTexture(renderTexture) {\n this._renderTexture = renderTexture;\n }\n _clearRenderTexture(renderTexture) {\n }\n _setScissor(area) {\n }\n}\nclass WebGLCoreRenderExecutor extends CoreRenderExecutor {\n constructor(ctx) {\n super(ctx);\n this.gl = this.ctx.stage.gl;\n this.init();\n }\n init() {\n let gl = this.gl;\n this._attribsBuffer = gl.createBuffer();\n let maxQuads = Math.floor(this.renderState.quads.data.byteLength / 80);\n let allIndices = new Uint16Array(maxQuads * 6);\n for (let i = 0, j = 0; i < maxQuads; i += 6, j += 4) {\n allIndices[i] = j;\n allIndices[i + 1] = j + 1;\n allIndices[i + 2] = j + 2;\n allIndices[i + 3] = j;\n allIndices[i + 4] = j + 2;\n allIndices[i + 5] = j + 3;\n }\n this._quadsBuffer = gl.createBuffer();\n gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, this._quadsBuffer);\n gl.bufferData(gl.ELEMENT_ARRAY_BUFFER, allIndices, gl.STATIC_DRAW);\n this._projection = new Float32Array([2 / this.ctx.stage.coordsWidth, -2 / this.ctx.stage.coordsHeight]);\n }\n destroy() {\n super.destroy();\n this.gl.deleteBuffer(this._attribsBuffer);\n this.gl.deleteBuffer(this._quadsBuffer);\n this.gl = null;\n delete this.gl;\n }\n _reset() {\n super._reset();\n let gl = this.gl;\n gl.blendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA);\n gl.enable(gl.BLEND);\n gl.disable(gl.DEPTH_TEST);\n this._stopShaderProgram();\n this._setupBuffers();\n }\n _setupBuffers() {\n let gl = this.gl;\n gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, this._quadsBuffer);\n let element = new Float32Array(this.renderState.quads.data, 0, this.renderState.quads.dataLength);\n gl.bindBuffer(gl.ARRAY_BUFFER, this._attribsBuffer);\n gl.bufferData(gl.ARRAY_BUFFER, element, gl.DYNAMIC_DRAW);\n }\n _setupQuadOperation(quadOperation) {\n super._setupQuadOperation(quadOperation);\n this._useShaderProgram(quadOperation.shader, quadOperation);\n }\n _renderQuadOperation(op) {\n let shader = op.shader;\n if (op.length || op.shader.addEmpty()) {\n shader.beforeDraw(op);\n shader.draw(op);\n shader.afterDraw(op);\n }\n }\n _useShaderProgram(shader, operation) {\n if (!shader.hasSameProgram(this._currentShaderProgram)) {\n if (this._currentShaderProgram) {\n this._currentShaderProgram.stopProgram();\n }\n shader.useProgram();\n this._currentShaderProgram = shader;\n }\n shader.setupUniforms(operation);\n }\n _stopShaderProgram() {\n if (this._currentShaderProgram) {\n this._currentShaderProgram.stopProgram();\n this._currentShaderProgram = null;\n }\n }\n _bindRenderTexture(renderTexture) {\n super._bindRenderTexture(renderTexture);\n let gl = this.gl;\n if (!this._renderTexture) {\n gl.bindFramebuffer(gl.FRAMEBUFFER, null);\n gl.viewport(0, 0, this.ctx.stage.w, this.ctx.stage.h);\n } else {\n gl.bindFramebuffer(gl.FRAMEBUFFER, this._renderTexture.framebuffer);\n gl.viewport(0, 0, this._renderTexture.w, this._renderTexture.h);\n }\n }\n _clearRenderTexture() {\n super._clearRenderTexture();\n let gl = this.gl;\n if (!this._renderTexture) {\n let glClearColor = this.ctx.stage.getClearColor();\n if (glClearColor) {\n gl.clearColor(glClearColor[0] * glClearColor[3], glClearColor[1] * glClearColor[3], glClearColor[2] * glClearColor[3], glClearColor[3]);\n gl.clear(gl.COLOR_BUFFER_BIT);\n }\n } else {\n gl.clearColor(0, 0, 0, 0);\n gl.clear(gl.COLOR_BUFFER_BIT);\n }\n }\n _setScissor(area) {\n super._setScissor(area);\n if (this._scissor === area) {\n return;\n }\n this._scissor = area;\n let gl = this.gl;\n if (!area) {\n gl.disable(gl.SCISSOR_TEST);\n } else {\n gl.enable(gl.SCISSOR_TEST);\n let precision = this.ctx.stage.getRenderPrecision();\n let y = area[1];\n if (this._renderTexture === null) {\n y = this.ctx.stage.h / precision - (area[1] + area[3]);\n }\n gl.scissor(Math.round(area[0] * precision), Math.round(y * precision), Math.round(area[2] * precision), Math.round(area[3] * precision));\n }\n }\n}\nclass CoreRenderState {\n constructor(ctx) {\n this.ctx = ctx;\n this.stage = ctx.stage;\n this.defaultShader = this.stage.renderer.getDefaultShader(ctx);\n this.renderer = ctx.stage.renderer;\n this.quads = this.renderer.createCoreQuadList(ctx);\n }\n reset() {\n this._renderTextureInfo = null;\n this._scissor = null;\n this._shader = null;\n this._shaderOwner = null;\n this._realShader = null;\n this._check = false;\n this.quadOperations = [];\n this._texturizer = null;\n this._texturizerTemporary = false;\n this._quadOperation = null;\n this.quads.reset();\n this._temporaryTexturizers = [];\n this._isCachingTexturizer = false;\n }\n get length() {\n return this.quads.quadTextures.length;\n }\n setShader(shader, owner) {\n if (this._shaderOwner !== owner || this._realShader !== shader) {\n this._realShader = shader;\n if (shader.useDefault()) {\n shader = this.defaultShader;\n }\n if (this._shader !== shader || this._shaderOwner !== owner) {\n this._shader = shader;\n this._shaderOwner = owner;\n this._check = true;\n }\n }\n }\n get renderTextureInfo() {\n return this._renderTextureInfo;\n }\n setScissor(area) {\n if (this._scissor !== area) {\n if (area) {\n this._scissor = area;\n } else {\n this._scissor = null;\n }\n this._check = true;\n }\n }\n getScissor() {\n return this._scissor;\n }\n setRenderTextureInfo(renderTextureInfo) {\n if (this._renderTextureInfo !== renderTextureInfo) {\n this._renderTextureInfo = renderTextureInfo;\n this._scissor = null;\n this._check = true;\n }\n }\n setTexturizer(texturizer, cache = false) {\n this._texturizer = texturizer;\n this._cacheTexturizer = cache;\n }\n set isCachingTexturizer(v) {\n this._isCachingTexturizer = v;\n }\n get isCachingTexturizer() {\n return this._isCachingTexturizer;\n }\n addQuad(elementCore) {\n if (!this._quadOperation) {\n this._createQuadOperation();\n } else if (this._check && this._hasChanges()) {\n this._finishQuadOperation();\n this._check = false;\n }\n let nativeTexture = null;\n if (this._texturizer) {\n nativeTexture = this._texturizer.getResultTexture();\n if (!this._cacheTexturizer) {\n this._temporaryTexturizers.push(this._texturizer);\n }\n }\n if (!nativeTexture) {\n nativeTexture = elementCore._displayedTextureSource.nativeTexture;\n }\n if (this._renderTextureInfo) {\n if (this._shader === this.defaultShader && this._renderTextureInfo.empty) {\n this._renderTextureInfo.nativeTexture = nativeTexture;\n this._renderTextureInfo.offset = this.length;\n } else {\n this._renderTextureInfo.nativeTexture = null;\n }\n this._renderTextureInfo.empty = false;\n }\n this.quads.quadTextures.push(nativeTexture);\n this.quads.quadElements.push(elementCore);\n this._quadOperation.length++;\n this.renderer.addQuad(this, this.quads, this.length - 1);\n }\n finishedRenderTexture() {\n if (this._renderTextureInfo.nativeTexture) {\n if (!this._isRenderTextureReusable()) {\n this._renderTextureInfo.nativeTexture = null;\n }\n }\n }\n _isRenderTextureReusable() {\n const offset = this._renderTextureInfo.offset;\n return this.quads.quadTextures[offset].w === this._renderTextureInfo.w && this.quads.quadTextures[offset].h === this._renderTextureInfo.h && this.renderer.isRenderTextureReusable(this, this._renderTextureInfo);\n }\n _hasChanges() {\n let q = this._quadOperation;\n if (this._shader !== q.shader)\n return true;\n if (this._shaderOwner !== q.shaderOwner)\n return true;\n if (this._renderTextureInfo !== q.renderTextureInfo)\n return true;\n if (this._scissor !== q.scissor) {\n if (this._scissor[0] !== q.scissor[0] || this._scissor[1] !== q.scissor[1] || this._scissor[2] !== q.scissor[2] || this._scissor[3] !== q.scissor[3]) {\n return true;\n }\n }\n return false;\n }\n _finishQuadOperation(create = true) {\n if (this._quadOperation) {\n if (this._quadOperation.length || this._shader.addEmpty()) {\n if (!this._quadOperation.scissor || this._quadOperation.scissor[2] > 0 && this._quadOperation.scissor[3] > 0) {\n this.quadOperations.push(this._quadOperation);\n }\n }\n if (this._temporaryTexturizers.length) {\n for (let i = 0, n = this._temporaryTexturizers.length; i < n; i++) {\n this._temporaryTexturizers[i].releaseRenderTexture();\n }\n this._temporaryTexturizers = [];\n }\n this._quadOperation = null;\n }\n if (create) {\n this._createQuadOperation();\n }\n }\n _createQuadOperation() {\n this._quadOperation = this.renderer.createCoreQuadOperation(\n this.ctx,\n this._shader,\n this._shaderOwner,\n this._renderTextureInfo,\n this._scissor,\n this.length\n );\n this._check = false;\n }\n finish() {\n if (this._quadOperation) {\n this._finishQuadOperation(false);\n }\n this.renderer.finishRenderState(this);\n }\n}\nclass WebGLShaderProgram {\n constructor(vertexShaderSource, fragmentShaderSource) {\n this.vertexShaderSource = vertexShaderSource;\n this.fragmentShaderSource = fragmentShaderSource;\n this._program = null;\n this.gl = null;\n this._uniformLocations = /* @__PURE__ */ new Map();\n this._attributeLocations = /* @__PURE__ */ new Map();\n this._currentUniformValues = {};\n }\n compile(gl) {\n if (this._program)\n return;\n this.gl = gl;\n this._program = gl.createProgram();\n let glVertShader = this._glCompile(gl.VERTEX_SHADER, this.vertexShaderSource);\n let glFragShader = this._glCompile(gl.FRAGMENT_SHADER, this.fragmentShaderSource);\n gl.attachShader(this._program, glVertShader);\n gl.attachShader(this._program, glFragShader);\n gl.linkProgram(this._program);\n if (!gl.getProgramParameter(this._program, gl.LINK_STATUS)) {\n console.error(\"[Lightning] Error: Could not initialize shader.\");\n console.error(\"[Lightning] gl.VALIDATE_STATUS\", gl.getProgramParameter(this._program, gl.VALIDATE_STATUS));\n console.error(\"[Lightning] gl.getError()\", gl.getError());\n if (gl.getProgramInfoLog(this._program) !== \"\") {\n console.warn(\"[Lightning] Warning: gl.getProgramInfoLog()\", gl.getProgramInfoLog(this._program));\n }\n gl.deleteProgram(this._program);\n this._program = null;\n }\n gl.deleteShader(glVertShader);\n gl.deleteShader(glFragShader);\n }\n _glCompile(type, src) {\n let shader = this.gl.createShader(type);\n this.gl.shaderSource(shader, src);\n this.gl.compileShader(shader);\n if (!this.gl.getShaderParameter(shader, this.gl.COMPILE_STATUS)) {\n console.error(\"[Lightning]\", this.constructor.name, \"Type: \" + (type === this.gl.VERTEX_SHADER ? \"vertex shader\" : \"fragment shader\"));\n console.error(\"[Lightning]\", this.gl.getShaderInfoLog(shader));\n let idx = 0;\n console.error(\"[Lightning]\", \"========== source ==========\\n\" + src.split(\"\\n\").map((line) => \"\" + ++idx + \": \" + line).join(\"\\n\"));\n return null;\n }\n return shader;\n }\n getUniformLocation(name) {\n let location = this._uniformLocations.get(name);\n if (location === void 0) {\n location = this.gl.getUniformLocation(this._program, name);\n this._uniformLocations.set(name, location);\n }\n return location;\n }\n getAttribLocation(name) {\n let location = this._attributeLocations.get(name);\n if (location === void 0) {\n location = this.gl.getAttribLocation(this._program, name);\n this._attributeLocations.set(name, location);\n }\n return location;\n }\n destroy() {\n if (this._program) {\n this.gl.deleteProgram(this._program);\n }\n this._attributeLocations = null;\n this._currentUniformValues = null;\n this.fragmentShaderSource = null;\n this._program = null;\n this.gl = null;\n this._uniformLocations = null;\n this.vertexShaderSource = null;\n delete this.vertexShaderSource;\n delete this._program;\n delete this._currentUniformValues;\n delete this.fragmentShaderSource;\n delete this.gl;\n delete this._uniformLocations;\n delete this._attributeLocations;\n }\n get glProgram() {\n return this._program;\n }\n get compiled() {\n return !!this._program;\n }\n _valueEquals(v1, v2) {\n if (v1.length && v2.length) {\n for (let i = 0, n = v1.length; i < n; i++) {\n if (v1[i] !== v2[i])\n return false;\n }\n return true;\n } else {\n return v1 === v2;\n }\n }\n _valueClone(v) {\n if (v.length) {\n return v.slice(0);\n } else {\n return v;\n }\n }\n setUniformValue(name, value, glFunction) {\n let v = this._currentUniformValues[name];\n if (v === void 0 || !this._valueEquals(v, value)) {\n let clonedValue = this._valueClone(value);\n this._currentUniformValues[name] = clonedValue;\n let loc = this.getUniformLocation(name);\n if (loc) {\n let isMatrix = glFunction === this.gl.uniformMatrix2fv || glFunction === this.gl.uniformMatrix3fv || glFunction === this.gl.uniformMatrix4fv;\n if (isMatrix) {\n glFunction.call(this.gl, loc, false, clonedValue);\n } else {\n glFunction.call(this.gl, loc, clonedValue);\n }\n }\n }\n }\n}\nclass WebGLShader extends Shader {\n constructor(ctx) {\n super(ctx);\n const stage = ctx.stage;\n this._program = stage.renderer.shaderPrograms.get(this.constructor);\n if (!this._program) {\n this._program = new WebGLShaderProgram(this.constructor.vertexShaderSource, this.constructor.fragmentShaderSource);\n stage.renderer.shaderPrograms.set(this.constructor, this._program);\n }\n this.gl = stage.gl;\n }\n get glProgram() {\n return this._program.glProgram;\n }\n _init() {\n if (!this._initialized) {\n this.initialize();\n this._initialized = true;\n }\n }\n initialize() {\n this._program.compile(this.gl);\n }\n get initialized() {\n return this._initialized;\n }\n _uniform(name) {\n return this._program.getUniformLocation(name);\n }\n _attrib(name) {\n return this._program.getAttribLocation(name);\n }\n _setUniform(name, value, glFunction) {\n this._program.setUniformValue(name, value, glFunction);\n }\n useProgram() {\n this._init();\n this.gl.useProgram(this.glProgram);\n this.beforeUsage();\n this.enableAttribs();\n }\n stopProgram() {\n this.afterUsage();\n this.disableAttribs();\n }\n hasSameProgram(other) {\n return other && (other === this || other._program === this._program);\n }\n beforeUsage() {\n }\n afterUsage() {\n }\n enableAttribs() {\n }\n disableAttribs() {\n }\n getExtraAttribBytesPerVertex() {\n return 0;\n }\n getVertexAttribPointerOffset(operation) {\n return operation.extraAttribsDataByteOffset - operation.index * 4 * this.getExtraAttribBytesPerVertex();\n }\n setExtraAttribsInBuffer(operation) {\n }\n setupUniforms(operation) {\n }\n _getProjection(operation) {\n return operation.getProjection();\n }\n getFlipY(operation) {\n return this._getProjection(operation)[1] < 0;\n }\n beforeDraw(operation) {\n }\n draw(operation) {\n }\n afterDraw(operation) {\n }\n cleanup() {\n this._initialized = false;\n }\n}\nlet DefaultShader$1 = class DefaultShader extends WebGLShader {\n enableAttribs() {\n let gl = this.gl;\n gl.vertexAttribPointer(this._attrib(\"aVertexPosition\"), 2, gl.FLOAT, false, 20, 0);\n gl.enableVertexAttribArray(this._attrib(\"aVertexPosition\"));\n if (this._attrib(\"aTextureCoord\") !== -1) {\n gl.vertexAttribPointer(this._attrib(\"aTextureCoord\"), 2, gl.FLOAT, false, 20, 2 * 4);\n gl.enableVertexAttribArray(this._attrib(\"aTextureCoord\"));\n }\n if (this._attrib(\"aColor\") !== -1) {\n gl.vertexAttribPointer(this._attrib(\"aColor\"), 4, gl.UNSIGNED_BYTE, true, 20, 4 * 4);\n gl.enableVertexAttribArray(this._attrib(\"aColor\"));\n }\n }\n disableAttribs() {\n let gl = this.gl;\n gl.disableVertexAttribArray(this._attrib(\"aVertexPosition\"));\n if (this._attrib(\"aTextureCoord\") !== -1) {\n gl.disableVertexAttribArray(this._attrib(\"aTextureCoord\"));\n }\n if (this._attrib(\"aColor\") !== -1) {\n gl.disableVertexAttribArray(this._attrib(\"aColor\"));\n }\n }\n setupUniforms(operation) {\n this._setUniform(\"projection\", this._getProjection(operation), this.gl.uniform2fv, false);\n }\n draw(operation) {\n let gl = this.gl;\n let length = operation.length;\n if (length) {\n let glTexture = operation.getTexture(0);\n let pos = 0;\n for (let i = 0; i < length; i++) {\n let tx = operation.getTexture(i);\n if (glTexture !== tx) {\n gl.bindTexture(gl.TEXTURE_2D, glTexture);\n gl.drawElements(gl.TRIANGLES, 6 * (i - pos), gl.UNSIGNED_SHORT, (pos + operation.index) * 6 * 2);\n glTexture = tx;\n pos = i;\n }\n }\n gl.bindTexture(gl.TEXTURE_2D, glTexture);\n gl.drawElements(gl.TRIANGLES, 6 * (length - pos), gl.UNSIGNED_SHORT, (pos + operation.index) * 6 * 2);\n }\n }\n};\nDefaultShader$1.vertexShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n attribute vec2 aVertexPosition;\n attribute vec2 aTextureCoord;\n attribute vec4 aColor;\n uniform vec2 projection;\n varying vec2 vTextureCoord;\n varying vec4 vColor;\n void main(void){\n gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n vColor = aColor;\n gl_Position.y = -sign(projection.y) * gl_Position.y;\n }\n`;\nDefaultShader$1.fragmentShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n varying vec2 vTextureCoord;\n varying vec4 vColor;\n uniform sampler2D uSampler;\n void main(void){\n gl_FragColor = texture2D(uSampler, vTextureCoord) * vColor;\n }\n`;\nclass Renderer {\n constructor(stage) {\n this.stage = stage;\n this._defaultShader = void 0;\n }\n gc(aggressive) {\n }\n destroy() {\n }\n getDefaultShader(ctx = this.stage.ctx) {\n if (!this._defaultShader) {\n this._defaultShader = this._createDefaultShader(ctx);\n }\n return this._defaultShader;\n }\n _createDefaultShader(ctx) {\n }\n isValidShaderType(shaderType) {\n return shaderType.prototype instanceof this._getShaderBaseType();\n }\n createShader(ctx, settings) {\n const shaderType = settings.type;\n if (!this.isValidShaderType(shaderType)) {\n const convertedShaderType = this._getShaderAlternative(shaderType);\n if (!convertedShaderType) {\n console.warn(\"[Lightning] Shader has no implementation for render target: \" + shaderType.name);\n return this._createDefaultShader(ctx);\n }\n return new convertedShaderType(ctx);\n } else {\n const shader = new shaderType(ctx);\n Base.patchObject(this, settings);\n return shader;\n }\n }\n _getShaderBaseType() {\n }\n _getShaderAlternative(shaderType) {\n return this.getDefaultShader();\n }\n copyRenderTexture(renderTexture, nativeTexture, options) {\n console.warn(\"[Lightning] copyRenderTexture not supported by renderer\");\n }\n}\nclass WebGLRenderer extends Renderer {\n constructor(stage) {\n super(stage);\n this.shaderPrograms = /* @__PURE__ */ new Map();\n this._compressedTextureExtensions = {\n astc: stage.gl.getExtension(\"WEBGL_compressed_texture_astc\"),\n etc1: stage.gl.getExtension(\"WEBGL_compressed_texture_etc1\"),\n s3tc: stage.gl.getExtension(\"WEBGL_compressed_texture_s3tc\"),\n pvrtc: stage.gl.getExtension(\"WEBGL_compressed_texture_pvrtc\")\n };\n }\n getCompressedTextureExtensions() {\n return this._compressedTextureExtensions;\n }\n destroy() {\n this.shaderPrograms.forEach((shaderProgram) => shaderProgram.destroy());\n this.shaderPrograms = null;\n this._compressedTextureExtensions = null;\n delete this.shaderPrograms;\n delete this._compressedTextureExtensions;\n }\n _createDefaultShader(ctx) {\n return new DefaultShader$1(ctx);\n }\n _getShaderBaseType() {\n return WebGLShader;\n }\n _getShaderAlternative(shaderType) {\n return shaderType.getWebGL && shaderType.getWebGL();\n }\n createCoreQuadList(ctx) {\n return new WebGLCoreQuadList(ctx);\n }\n createCoreQuadOperation(ctx, shader, shaderOwner, renderTextureInfo, scissor, index) {\n return new WebGLCoreQuadOperation(ctx, shader, shaderOwner, renderTextureInfo, scissor, index);\n }\n createCoreRenderExecutor(ctx) {\n return new WebGLCoreRenderExecutor(ctx);\n }\n createCoreRenderState(ctx) {\n return new CoreRenderState(ctx);\n }\n createRenderTexture(w, h, pw, ph) {\n const gl = this.stage.gl;\n const glTexture = gl.createTexture();\n gl.bindTexture(gl.TEXTURE_2D, glTexture);\n gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, pw, ph, 0, gl.RGBA, gl.UNSIGNED_BYTE, null);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);\n glTexture.params = {};\n glTexture.params[gl.TEXTURE_MAG_FILTER] = gl.LINEAR;\n glTexture.params[gl.TEXTURE_MIN_FILTER] = gl.LINEAR;\n glTexture.params[gl.TEXTURE_WRAP_S] = gl.CLAMP_TO_EDGE;\n glTexture.params[gl.TEXTURE_WRAP_T] = gl.CLAMP_TO_EDGE;\n glTexture.options = { format: gl.RGBA, internalFormat: gl.RGBA, type: gl.UNSIGNED_BYTE };\n glTexture.framebuffer = gl.createFramebuffer();\n glTexture.projection = new Float32Array([2 / w, 2 / h]);\n gl.bindFramebuffer(gl.FRAMEBUFFER, glTexture.framebuffer);\n gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, glTexture, 0);\n return glTexture;\n }\n freeRenderTexture(glTexture) {\n let gl = this.stage.gl;\n gl.deleteFramebuffer(glTexture.framebuffer);\n gl.deleteTexture(glTexture);\n }\n _getBytesPerPixel(fmt, type) {\n const gl = this.stage.gl;\n if (fmt === gl.RGBA) {\n switch (type) {\n case gl.UNSIGNED_BYTE:\n return 4;\n case gl.UNSIGNED_SHORT_4_4_4_4:\n return 2;\n case gl.UNSIGNED_SHORT_5_5_5_1:\n return 2;\n default:\n throw new Error(\"Invalid type specified for GL_RGBA format\");\n }\n } else if (fmt === gl.RGB) {\n switch (type) {\n case gl.UNSIGNED_BYTE:\n return 3;\n case gl.UNSIGNED_BYTE_5_6_5:\n return 2;\n default:\n throw new Error(\"Invalid type specified for GL_RGB format\");\n }\n } else {\n throw new Error(\"Invalid format specified in call to _getBytesPerPixel()\");\n }\n }\n uploadTextureSource(textureSource, options) {\n const gl = this.stage.gl;\n const source = options.source;\n let compressed = false;\n if (options.renderInfo) {\n compressed = options.renderInfo.compressed || false;\n }\n const format = {\n premultiplyAlpha: true,\n hasAlpha: true\n };\n if (options && options.hasOwnProperty(\"premultiplyAlpha\")) {\n format.premultiplyAlpha = options.premultiplyAlpha;\n }\n if (options && options.hasOwnProperty(\"flipBlueRed\")) {\n format.flipBlueRed = options.flipBlueRed;\n }\n if (options && options.hasOwnProperty(\"hasAlpha\")) {\n format.hasAlpha = options.hasAlpha;\n }\n if (!format.hasAlpha) {\n format.premultiplyAlpha = false;\n }\n format.texParams = options.texParams || {};\n format.texOptions = options.texOptions || {};\n let glTexture = gl.createTexture();\n gl.bindTexture(gl.TEXTURE_2D, glTexture);\n gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, format.premultiplyAlpha);\n if (Utils$1.isNode) {\n gl.pixelStorei(gl.UNPACK_FLIP_BLUE_RED, !!format.flipBlueRed);\n }\n const texParams = format.texParams;\n if (!texParams[gl.TEXTURE_MAG_FILTER])\n texParams[gl.TEXTURE_MAG_FILTER] = gl.LINEAR;\n if (!texParams[gl.TEXTURE_MIN_FILTER])\n texParams[gl.TEXTURE_MIN_FILTER] = gl.LINEAR;\n if (!texParams[gl.TEXTURE_WRAP_S])\n texParams[gl.TEXTURE_WRAP_S] = gl.CLAMP_TO_EDGE;\n if (!texParams[gl.TEXTURE_WRAP_T])\n texParams[gl.TEXTURE_WRAP_T] = gl.CLAMP_TO_EDGE;\n Object.keys(texParams).forEach((key) => {\n const value = texParams[key];\n gl.texParameteri(gl.TEXTURE_2D, parseInt(key), value);\n });\n if (compressed) {\n this.stage.platform.uploadCompressedGlTexture(gl, textureSource, source);\n return glTexture;\n }\n const texOptions = format.texOptions;\n texOptions.format = texOptions.format || (format.hasAlpha ? gl.RGBA : gl.RGB);\n texOptions.type = texOptions.type || gl.UNSIGNED_BYTE;\n texOptions.internalFormat = texOptions.internalFormat || texOptions.format;\n if (options && options.imageRef) {\n texOptions.imageRef = options.imageRef;\n }\n this.stage.platform.uploadGlTexture(gl, textureSource, source, texOptions);\n glTexture.params = Utils$1.cloneObjShallow(texParams);\n glTexture.options = Utils$1.cloneObjShallow(texOptions);\n glTexture.bytesPerPixel = this._getBytesPerPixel(texOptions.format, texOptions.type);\n return glTexture;\n }\n freeTextureSource(textureSource) {\n this.stage.gl.deleteTexture(textureSource.nativeTexture);\n }\n addQuad(renderState, quads, index) {\n let offset = index * 20;\n const elementCore = quads.quadElements[index];\n let r = elementCore._renderContext;\n let floats = renderState.quads.floats;\n let uints = renderState.quads.uints;\n const mca = StageUtils.mergeColorAlpha;\n if (r.tb !== 0 || r.tc !== 0) {\n floats[offset++] = r.px;\n floats[offset++] = r.py;\n floats[offset++] = elementCore._ulx;\n floats[offset++] = elementCore._uly;\n uints[offset++] = mca(elementCore._colorUl, r.alpha);\n floats[offset++] = r.px + elementCore._w * r.ta;\n floats[offset++] = r.py + elementCore._w * r.tc;\n floats[offset++] = elementCore._brx;\n floats[offset++] = elementCore._uly;\n uints[offset++] = mca(elementCore._colorUr, r.alpha);\n floats[offset++] = r.px + elementCore._w * r.ta + elementCore._h * r.tb;\n floats[offset++] = r.py + elementCore._w * r.tc + elementCore._h * r.td;\n floats[offset++] = elementCore._brx;\n floats[offset++] = elementCore._bry;\n uints[offset++] = mca(elementCore._colorBr, r.alpha);\n floats[offset++] = r.px + elementCore._h * r.tb;\n floats[offset++] = r.py + elementCore._h * r.td;\n floats[offset++] = elementCore._ulx;\n floats[offset++] = elementCore._bry;\n uints[offset] = mca(elementCore._colorBl, r.alpha);\n } else {\n let cx = r.px + elementCore._w * r.ta;\n let cy = r.py + elementCore._h * r.td;\n floats[offset++] = r.px;\n floats[offset++] = r.py;\n floats[offset++] = elementCore._ulx;\n floats[offset++] = elementCore._uly;\n uints[offset++] = mca(elementCore._colorUl, r.alpha);\n floats[offset++] = cx;\n floats[offset++] = r.py;\n floats[offset++] = elementCore._brx;\n floats[offset++] = elementCore._uly;\n uints[offset++] = mca(elementCore._colorUr, r.alpha);\n floats[offset++] = cx;\n floats[offset++] = cy;\n floats[offset++] = elementCore._brx;\n floats[offset++] = elementCore._bry;\n uints[offset++] = mca(elementCore._colorBr, r.alpha);\n floats[offset++] = r.px;\n floats[offset++] = cy;\n floats[offset++] = elementCore._ulx;\n floats[offset++] = elementCore._bry;\n uints[offset] = mca(elementCore._colorBl, r.alpha);\n }\n }\n isRenderTextureReusable(renderState, renderTextureInfo) {\n let offset = renderState._renderTextureInfo.offset * 80 / 4;\n let floats = renderState.quads.floats;\n let uints = renderState.quads.uints;\n return floats[offset] === 0 && floats[offset + 1] === 0 && floats[offset + 2] === 0 && floats[offset + 3] === 0 && uints[offset + 4] === 4294967295 && floats[offset + 5] === renderTextureInfo.w && floats[offset + 6] === 0 && floats[offset + 7] === 1 && floats[offset + 8] === 0 && uints[offset + 9] === 4294967295 && floats[offset + 10] === renderTextureInfo.w && floats[offset + 11] === renderTextureInfo.h && floats[offset + 12] === 1 && floats[offset + 13] === 1 && uints[offset + 14] === 4294967295 && floats[offset + 15] === 0 && floats[offset + 16] === renderTextureInfo.h && floats[offset + 17] === 0 && floats[offset + 18] === 1 && uints[offset + 19] === 4294967295;\n }\n finishRenderState(renderState) {\n let offset = renderState.length * 80;\n for (let i = 0, n = renderState.quadOperations.length; i < n; i++) {\n renderState.quadOperations[i].extraAttribsDataByteOffset = offset;\n let extra = renderState.quadOperations[i].shader.getExtraAttribBytesPerVertex() * 4 * renderState.quadOperations[i].length;\n offset += extra;\n if (extra) {\n renderState.quadOperations[i].shader.setExtraAttribsInBuffer(renderState.quadOperations[i], renderState.quads);\n }\n }\n renderState.quads.dataLength = offset;\n }\n copyRenderTexture(renderTexture, nativeTexture, options) {\n const gl = this.stage.gl;\n gl.bindTexture(gl.TEXTURE_2D, nativeTexture);\n gl.bindFramebuffer(gl.FRAMEBUFFER, renderTexture.framebuffer);\n const precision = renderTexture.precision;\n gl.copyTexSubImage2D(\n gl.TEXTURE_2D,\n 0,\n precision * (options.sx || 0),\n precision * (options.sy || 0),\n precision * (options.x || 0),\n precision * (options.y || 0),\n precision * (options.w || renderTexture.ow),\n precision * (options.h || renderTexture.oh)\n );\n }\n}\nclass C2dCoreQuadList extends CoreQuadList {\n constructor(ctx) {\n super(ctx);\n this.renderContexts = [];\n this.modes = [];\n }\n setRenderContext(index, v) {\n this.renderContexts[index] = v;\n }\n setSimpleTc(index, v) {\n if (v) {\n this.modes[index] |= 1;\n } else {\n this.modes[index] -= this.modes[index] & 1;\n }\n }\n setWhite(index, v) {\n if (v) {\n this.modes[index] |= 2;\n } else {\n this.modes[index] -= this.modes[index] & 2;\n }\n }\n getRenderContext(index) {\n return this.renderContexts[index];\n }\n getSimpleTc(index) {\n return this.modes[index] & 1;\n }\n getWhite(index) {\n return this.modes[index] & 2;\n }\n}\nclass C2dCoreQuadOperation extends CoreQuadOperation {\n getRenderContext(index) {\n return this.quads.getRenderContext(this.index + index);\n }\n getSimpleTc(index) {\n return this.quads.getSimpleTc(this.index + index);\n }\n getWhite(index) {\n return this.quads.getWhite(this.index + index);\n }\n}\nclass C2dCoreRenderExecutor extends CoreRenderExecutor {\n init() {\n this._mainRenderTexture = this.ctx.stage.getCanvas();\n }\n _renderQuadOperation(op) {\n let shader = op.shader;\n if (op.length || op.shader.addEmpty()) {\n const target = this._renderTexture || this._mainRenderTexture;\n shader.beforeDraw(op, target);\n shader.draw(op, target);\n shader.afterDraw(op, target);\n }\n }\n _clearRenderTexture() {\n const ctx = this._getContext();\n let clearColor = [0, 0, 0, 0];\n if (this._mainRenderTexture.ctx === ctx) {\n clearColor = this.ctx.stage.getClearColor();\n }\n const renderTexture = ctx.canvas;\n ctx.setTransform(1, 0, 0, 1, 0, 0);\n if (!clearColor[0] && !clearColor[1] && !clearColor[2] && !clearColor[3]) {\n ctx.clearRect(0, 0, renderTexture.width, renderTexture.height);\n } else {\n ctx.fillStyle = StageUtils.getRgbaStringFromArray(clearColor);\n ctx.globalCompositeOperation = \"copy\";\n ctx.beginPath();\n ctx.rect(0, 0, renderTexture.width, renderTexture.height);\n ctx.closePath();\n ctx.fill();\n ctx.globalCompositeOperation = \"source-over\";\n }\n }\n _getContext() {\n if (this._renderTexture) {\n return this._renderTexture.ctx;\n } else {\n return this._mainRenderTexture.ctx;\n }\n }\n _restoreContext() {\n const ctx = this._getContext();\n ctx.restore();\n ctx.save();\n ctx._scissor = null;\n }\n _setScissor(area) {\n const ctx = this._getContext();\n if (!C2dCoreRenderExecutor._equalScissorAreas(ctx.canvas, ctx._scissor, area)) {\n this._restoreContext();\n let precision = this.ctx.stage.getRenderPrecision();\n if (area) {\n ctx.beginPath();\n ctx.rect(Math.round(area[0] * precision), Math.round(area[1] * precision), Math.round(area[2] * precision), Math.round(area[3] * precision));\n ctx.closePath();\n ctx.clip();\n }\n ctx._scissor = area;\n }\n }\n static _equalScissorAreas(canvas, area, current) {\n if (!area) {\n area = [0, 0, canvas.width, canvas.height];\n }\n if (!current) {\n current = [0, 0, canvas.width, canvas.height];\n }\n return Utils$1.equalValues(area, current);\n }\n}\nclass C2dShader extends Shader {\n beforeDraw(operation) {\n }\n draw(operation) {\n }\n afterDraw(operation) {\n }\n}\nclass DefaultShader2 extends C2dShader {\n constructor(ctx) {\n super(ctx);\n this._rectangleTexture = ctx.stage.rectangleTexture.source.nativeTexture;\n this._tintManager = this.ctx.stage.renderer.tintManager;\n }\n draw(operation, target) {\n const ctx = target.ctx;\n let length = operation.length;\n for (let i = 0; i < length; i++) {\n const tx = operation.getTexture(i);\n const vc = operation.getElementCore(i);\n const rc = operation.getRenderContext(i);\n const white = operation.getWhite(i);\n const stc = operation.getSimpleTc(i);\n const precision = this.ctx.stage.getRenderPrecision();\n ctx.setTransform(rc.ta * precision, rc.tc * precision, rc.tb * precision, rc.td * precision, rc.px * precision, rc.py * precision);\n const rect = tx === this._rectangleTexture;\n const info = { operation, target, index: i, rect };\n if (rect) {\n if (white) {\n ctx.fillStyle = \"white\";\n } else {\n this._setColorGradient(ctx, vc);\n }\n ctx.globalAlpha = rc.alpha;\n this._beforeDrawEl(info);\n ctx.fillRect(0, 0, vc.w, vc.h);\n this._afterDrawEl(info);\n ctx.globalAlpha = 1;\n } else {\n ctx.globalAlpha = rc.alpha;\n this._beforeDrawEl(info);\n const sourceX = stc ? 0 : vc._ulx * tx.w;\n const sourceY = stc ? 0 : vc._uly * tx.h;\n const sourceW = (stc ? 1 : vc._brx - vc._ulx) * tx.w;\n const sourceH = (stc ? 1 : vc._bry - vc._uly) * tx.h;\n let colorize = !white;\n if (colorize) {\n let color = vc._colorUl;\n if (vc._colorUl !== vc._colorUr || vc._colorUr !== vc._colorBl || vc._colorBr !== vc._colorBl) {\n color = StageUtils.mergeMultiColorsEqual([vc._colorUl, vc._colorUr, vc._colorBl, vc._colorBr]);\n }\n const alpha = (color / 16777216 | 0) / 255;\n ctx.globalAlpha *= alpha;\n const rgb = color & 16777215;\n const tintTexture = this._tintManager.getTintTexture(tx, rgb);\n ctx.fillStyle = \"white\";\n ctx.drawImage(tintTexture, sourceX, sourceY, sourceW, sourceH, 0, 0, vc.w, vc.h);\n } else {\n ctx.fillStyle = \"white\";\n ctx.drawImage(tx, sourceX, sourceY, sourceW, sourceH, 0, 0, vc.w, vc.h);\n }\n this._afterDrawEl(info);\n ctx.globalAlpha = 1;\n }\n }\n }\n _setColorGradient(ctx, vc, w = vc.w, h = vc.h, transparency = true) {\n let color = vc._colorUl;\n let gradient;\n if (vc._colorUl === vc._colorUr) {\n if (vc._colorBl === vc._colorBr) {\n if (vc._colorUl === vc.colorBl)\n ;\n else {\n gradient = ctx.createLinearGradient(0, 0, 0, h);\n if (transparency) {\n gradient.addColorStop(0, StageUtils.getRgbaString(vc._colorUl));\n gradient.addColorStop(1, StageUtils.getRgbaString(vc._colorBl));\n } else {\n gradient.addColorStop(0, StageUtils.getRgbString(vc._colorUl));\n gradient.addColorStop(1, StageUtils.getRgbString(vc._colorBl));\n }\n }\n }\n } else {\n if (vc._colorUl === vc._colorBl && vc._colorUr === vc._colorBr) {\n gradient = ctx.createLinearGradient(0, 0, w, 0);\n if (transparency) {\n gradient.addColorStop(0, StageUtils.getRgbaString(vc._colorUl));\n gradient.addColorStop(1, StageUtils.getRgbaString(vc._colorBr));\n } else {\n gradient.addColorStop(0, StageUtils.getRgbString(vc._colorUl));\n gradient.addColorStop(1, StageUtils.getRgbString(vc._colorBr));\n }\n }\n }\n if (gradient) {\n ctx.fillStyle = gradient;\n } else {\n ctx.fillStyle = transparency ? StageUtils.getRgbaString(color) : StageUtils.getRgbString(color);\n }\n }\n _beforeDrawEl(info) {\n }\n _afterDrawEl(info) {\n }\n}\nclass C2dTextureTintManager {\n constructor(stage) {\n this.stage = stage;\n this._usedMemory = 0;\n this._cachedNativeTextures = /* @__PURE__ */ new Set();\n }\n destroy() {\n this.gc(true);\n this.stage = null;\n delete this.stage;\n }\n _addMemoryUsage(delta) {\n this._usedMemory += delta;\n this.stage.addMemoryUsage(delta);\n }\n delete(nativeTexture) {\n if (this._hasCache(nativeTexture)) {\n const cache = this._getCache(nativeTexture);\n const prevMemUsage = cache.memoryUsage;\n cache.clear();\n this._cachedNativeTextures.delete(nativeTexture);\n this._addMemoryUsage(cache.memoryUsage - prevMemUsage);\n }\n }\n getTintTexture(nativeTexture, color) {\n const frame = this.stage.frameCounter;\n this._cachedNativeTextures.add(nativeTexture);\n const cache = this._getCache(nativeTexture);\n const item = cache.get(color);\n item.lf = frame;\n if (item.tx) {\n if (nativeTexture.update > item.u) {\n this._tintTexture(item.tx, nativeTexture, color);\n }\n return item.tx;\n } else {\n const before = cache.memoryUsage;\n let target = cache.reuseTexture(frame);\n if (target) {\n target.ctx.clearRect(0, 0, target.width, target.height);\n } else {\n target = document.createElement(\"canvas\");\n target.width = nativeTexture.w;\n target.height = nativeTexture.h;\n target.ctx = target.getContext(\"2d\");\n }\n this._tintTexture(target, nativeTexture, color);\n cache.set(color, target, frame);\n const after = cache.memoryUsage;\n if (after !== before) {\n this._addMemoryUsage(after - before);\n }\n return target;\n }\n }\n _tintTexture(target, source, color) {\n let col = color.toString(16);\n while (col.length < 6) {\n col = \"0\" + col;\n }\n target.ctx.fillStyle = \"#\" + col;\n target.ctx.globalCompositeOperation = \"copy\";\n target.ctx.fillRect(0, 0, source.w, source.h);\n target.ctx.globalCompositeOperation = \"multiply\";\n target.ctx.drawImage(source, 0, 0, source.w, source.h, 0, 0, target.width, target.height);\n target.ctx.globalCompositeOperation = \"destination-in\";\n target.ctx.drawImage(source, 0, 0, source.w, source.h, 0, 0, target.width, target.height);\n }\n _hasCache(nativeTexture) {\n return !!nativeTexture._tintCache;\n }\n _getCache(nativeTexture) {\n if (!nativeTexture._tintCache) {\n nativeTexture._tintCache = new C2dTintCache(nativeTexture);\n }\n return nativeTexture._tintCache;\n }\n gc(aggressive = false) {\n const frame = this.stage.frameCounter;\n let delta = 0;\n this._cachedNativeTextures.forEach((texture) => {\n const cache = this._getCache(texture);\n if (aggressive) {\n delta += cache.memoryUsage;\n cache.clear();\n } else {\n const before = cache.memoryUsage;\n cache.cleanup(frame);\n cache.releaseBlancoTextures();\n delta += cache.memoryUsage - before;\n }\n });\n if (aggressive) {\n this._cachedNativeTextures.clear();\n }\n if (delta) {\n this._addMemoryUsage(delta);\n }\n }\n}\nclass C2dTintCache {\n constructor(nativeTexture) {\n this._tx = nativeTexture;\n this._colors = /* @__PURE__ */ new Map();\n this._blancoTextures = null;\n this._lastCleanupFrame = 0;\n this._memTextures = 0;\n }\n get memoryUsage() {\n return this._memTextures * this._tx.w * this._tx.h;\n }\n releaseBlancoTextures() {\n this._memTextures -= this._blancoTextures.length;\n this._blancoTextures = [];\n }\n clear() {\n this._blancoTextures = null;\n this._colors.clear();\n this._memTextures = 0;\n }\n get(color) {\n let item = this._colors.get(color);\n if (!item) {\n item = { lf: -1, tx: void 0, u: -1 };\n this._colors.set(color, item);\n }\n return item;\n }\n set(color, texture, frame) {\n const item = this.get(color);\n item.lf = frame;\n item.tx = texture;\n item.u = frame;\n this._memTextures++;\n }\n cleanup(frame) {\n if (this._lastCleanupFrame !== frame) {\n this._blancoTextures = [];\n this._colors.forEach((item, color) => {\n if (item.lf < frame - 1) {\n if (item.tx) {\n this._blancoTextures.push(item.tx);\n }\n this._colors.delete(color);\n }\n });\n this._lastCleanupFrame = frame;\n }\n }\n reuseTexture(frame) {\n this.cleanup(frame);\n if (this._blancoTextures && this._blancoTextures.length) {\n this._memTextures--;\n return this._blancoTextures.pop();\n }\n }\n}\nclass C2dRenderer extends Renderer {\n constructor(stage) {\n super(stage);\n this.tintManager = new C2dTextureTintManager(stage);\n this.setupC2d(this.stage.c2d.canvas);\n }\n destroy() {\n this.tintManager.destroy();\n this.tintManager = null;\n delete this.tintManager;\n }\n _createDefaultShader(ctx) {\n return new DefaultShader2(ctx);\n }\n _getShaderBaseType() {\n return C2dShader;\n }\n _getShaderAlternative(shaderType) {\n return shaderType.getC2d && shaderType.getC2d();\n }\n createCoreQuadList(ctx) {\n return new C2dCoreQuadList(ctx);\n }\n createCoreQuadOperation(ctx, shader, shaderOwner, renderTextureInfo, scissor, index) {\n return new C2dCoreQuadOperation(ctx, shader, shaderOwner, renderTextureInfo, scissor, index);\n }\n createCoreRenderExecutor(ctx) {\n return new C2dCoreRenderExecutor(ctx);\n }\n createCoreRenderState(ctx) {\n return new CoreRenderState(ctx);\n }\n createRenderTexture(w, h, pw, ph) {\n const canvas = document.createElement(\"canvas\");\n canvas.width = pw;\n canvas.height = ph;\n this.setupC2d(canvas);\n return canvas;\n }\n freeRenderTexture(nativeTexture) {\n this.tintManager.delete(nativeTexture);\n }\n gc(aggressive) {\n this.tintManager.gc(aggressive);\n }\n uploadTextureSource(textureSource, options) {\n if (options.source.buffer) {\n const canvas = document.createElement(\"canvas\");\n canvas.width = options.w;\n canvas.height = options.h;\n const imageData = new ImageData(new Uint8ClampedArray(options.source.buffer), options.w, options.h);\n canvas.getContext(\"2d\").putImageData(imageData, 0, 0);\n return canvas;\n }\n return options.source;\n }\n freeTextureSource(textureSource) {\n this.tintManager.delete(textureSource.nativeTexture);\n }\n addQuad(renderState, quads, index) {\n const elementCore = quads.quadElements[index];\n quads.setRenderContext(index, elementCore._renderContext);\n quads.setWhite(index, elementCore.isWhite());\n quads.setSimpleTc(index, elementCore.hasSimpleTexCoords());\n }\n isRenderTextureReusable(renderState, renderTextureInfo) {\n return false;\n }\n finishRenderState(renderState) {\n }\n setupC2d(canvas) {\n const ctx = canvas.getContext(\"2d\");\n canvas.ctx = ctx;\n ctx._scissor = null;\n canvas.ctx.save();\n }\n}\nclass SparkShader extends WebGLShader {\n enableAttribs() {\n let gl = this.gl;\n gl.vertexAttribPointer(this._attrib(\"aVertexPosition\"), 2, gl.FLOAT, false, 20, 0);\n gl.enableVertexAttribArray(this._attrib(\"aVertexPosition\"));\n if (this._attrib(\"aTextureCoord\") !== -1) {\n gl.vertexAttribPointer(this._attrib(\"aTextureCoord\"), 2, gl.FLOAT, false, 20, 2 * 4);\n gl.enableVertexAttribArray(this._attrib(\"aTextureCoord\"));\n }\n if (this._attrib(\"aColor\") !== -1) {\n gl.vertexAttribPointer(this._attrib(\"aColor\"), 4, gl.UNSIGNED_BYTE, true, 20, 4 * 4);\n gl.enableVertexAttribArray(this._attrib(\"aColor\"));\n }\n }\n disableAttribs() {\n let gl = this.gl;\n gl.disableVertexAttribArray(this._attrib(\"aVertexPosition\"));\n if (this._attrib(\"aTextureCoord\") !== -1) {\n gl.disableVertexAttribArray(this._attrib(\"aTextureCoord\"));\n }\n if (this._attrib(\"aColor\") !== -1) {\n gl.disableVertexAttribArray(this._attrib(\"aColor\"));\n }\n }\n setupUniforms(operation) {\n this._setUniform(\"projection\", this._getProjection(operation), this.gl.uniform2fv, false);\n }\n draw(operation) {\n let gl = this.gl;\n let length = operation.length;\n if (length) {\n let glTexture = operation.getTexture(0);\n let pos = 0;\n for (let i = 0; i < length; i++) {\n let tx = operation.getTexture(i);\n if (glTexture !== tx) {\n if (glTexture.options && glTexture.options.imageRef) {\n let elementPostion = i > 0 ? i - 1 : i;\n const precision = this.ctx.stage.getOption(\"precision\");\n let vc = operation.getElementCore(elementPostion);\n this.ctx.stage.platform.paint(gl, glTexture.options.imageRef, vc._worldContext.px * precision, vc._worldContext.py * precision, vc._colorUl, vc);\n } else {\n gl.bindTexture(gl.TEXTURE_2D, glTexture);\n gl.drawElements(gl.TRIANGLES, 6 * (i - pos), gl.UNSIGNED_SHORT, (pos + operation.index) * 6 * 2);\n }\n glTexture = tx;\n pos = i;\n }\n }\n if (pos < length) {\n if (glTexture.options && glTexture.options.imageRef) {\n const precision = this.ctx.stage.getOption(\"precision\");\n let vc = operation.getElementCore(pos);\n this.ctx.stage.platform.paint(gl, glTexture.options.imageRef, vc._worldContext.px * precision, vc._worldContext.py * precision, vc._colorUl, vc);\n } else {\n gl.bindTexture(gl.TEXTURE_2D, glTexture);\n gl.drawElements(gl.TRIANGLES, 6 * (length - pos), gl.UNSIGNED_SHORT, (pos + operation.index) * 6 * 2);\n }\n }\n }\n }\n}\nSparkShader.vertexShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n attribute vec2 aVertexPosition;\n attribute vec2 aTextureCoord;\n attribute vec4 aColor;\n uniform vec2 projection;\n varying vec2 vTextureCoord;\n varying vec4 vColor;\n void main(void){\n gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n vColor = aColor;\n gl_Position.y = -sign(projection.y) * gl_Position.y;\n }\n`;\nSparkShader.fragmentShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n varying vec2 vTextureCoord;\n varying vec4 vColor;\n uniform sampler2D uSampler;\n void main(void){\n gl_FragColor = texture2D(uSampler, vTextureCoord) * vColor;\n }\n`;\nclass SparkRenderer extends WebGLRenderer {\n constructor(stage) {\n super(stage);\n }\n _createDefaultShader(ctx) {\n return new SparkShader(ctx);\n }\n createCoreRenderExecutor(ctx) {\n global.beginDrawing();\n let ret = super.createCoreRenderExecutor(ctx);\n global.endDrawing();\n return ret;\n }\n}\nclass ImageWorker {\n constructor(options = {}) {\n this._items = /* @__PURE__ */ new Map();\n this._id = 0;\n this._initWorker();\n }\n destroy() {\n if (this._worker) {\n this._worker.terminate();\n }\n this._items = null;\n this._worker = null;\n delete this._items;\n delete this._worker;\n }\n _initWorker() {\n const code = `(${createWorker.toString()})()`;\n const blob = new Blob([code.replace('\"use strict\";', \"\")]);\n const blobURL = (window.URL ? URL : webkitURL).createObjectURL(blob, {\n type: \"application/javascript; charset=utf-8\"\n });\n this._worker = new Worker(blobURL);\n this._worker.postMessage({ type: \"config\", config: { path: window.location.href, protocol: window.location.protocol } });\n this._worker.onmessage = (e) => {\n if (e.data && e.data.id) {\n const id = e.data.id;\n const item = this._items.get(id);\n if (item) {\n if (e.data.type == \"data\") {\n this.finish(item, e.data.info);\n } else {\n this.error(item, e.data.info);\n }\n }\n }\n };\n }\n create(src) {\n const id = ++this._id;\n const item = new ImageWorkerImage(this, id, src);\n this._items.set(id, item);\n this._worker.postMessage({ type: \"add\", id, src });\n return item;\n }\n cancel(image) {\n this._worker.postMessage({ type: \"cancel\", id: image.id });\n this._items.delete(image.id);\n }\n error(image, info) {\n image.error(info);\n this._items.delete(image.id);\n }\n finish(image, info) {\n image.load(info);\n this._items.delete(image.id);\n }\n}\nclass ImageWorkerImage {\n constructor(manager, id, src) {\n this._manager = manager;\n this._id = id;\n this._src = src;\n this._onError = null;\n this._onLoad = null;\n }\n get id() {\n return this._id;\n }\n get src() {\n return this._src;\n }\n set onError(f) {\n this._onError = f;\n }\n set onLoad(f) {\n this._onLoad = f;\n }\n cancel() {\n this._manager.cancel(this);\n }\n load(info) {\n if (this._onLoad) {\n this._onLoad(info);\n }\n }\n error(info) {\n if (this._onError) {\n this._onError(info);\n }\n }\n}\nconst createWorker = function() {\n function ImageWorkerServer() {\n this.items = /* @__PURE__ */ new Map();\n var t = this;\n onmessage = function(e) {\n t._receiveMessage(e);\n };\n }\n ImageWorkerServer.isPathAbsolute = function(path) {\n return /^(?:\\/|[a-z]+:\\/\\/)/.test(path) || path.substr(0, 5) == \"data:\";\n };\n ImageWorkerServer.prototype._receiveMessage = function(e) {\n if (e.data.type === \"config\") {\n this.config = e.data.config;\n var base = this.config.path;\n var hasHashPath = /#.*?\\//;\n if (hasHashPath.test(base)) {\n base = base.replace(/#.*$/, \"\");\n }\n var parts = base.split(\"/\");\n parts.pop();\n this._relativeBase = parts.join(\"/\") + \"/\";\n } else if (e.data.type === \"add\") {\n this.add(e.data.id, e.data.src);\n } else if (e.data.type === \"cancel\") {\n this.cancel(e.data.id);\n }\n };\n ImageWorkerServer.prototype.add = function(id, src) {\n if (!ImageWorkerServer.isPathAbsolute(src)) {\n src = this._relativeBase + src;\n }\n if (src.substr(0, 2) === \"//\") {\n src = this.config.protocol + src;\n }\n var item = new ImageWorkerServerItem(id, src);\n var t = this;\n item.onFinish = function(result) {\n t.finish(item, result);\n };\n item.onError = function(info) {\n t.error(item, info);\n };\n this.items.set(id, item);\n item.start();\n };\n ImageWorkerServer.prototype.cancel = function(id) {\n var item = this.items.get(id);\n if (item) {\n item.cancel();\n this.items.delete(id);\n }\n };\n ImageWorkerServer.prototype.finish = function(item, { imageBitmap, hasAlphaChannel }) {\n postMessage({\n type: \"data\",\n id: item.id,\n info: {\n imageBitmap,\n hasAlphaChannel\n }\n }, [imageBitmap]);\n this.items.delete(item.id);\n };\n ImageWorkerServer.prototype.error = function(item, { type, message }) {\n postMessage({\n type: \"error\",\n id: item.id,\n info: {\n type,\n message\n }\n });\n this.items.delete(item.id);\n };\n ImageWorkerServer.isWPEBrowser = function() {\n return navigator.userAgent.indexOf(\"WPE\") !== -1;\n };\n function ImageWorkerServerItem(id, src) {\n this._onError = void 0;\n this._onFinish = void 0;\n this._id = id;\n this._src = src;\n this._xhr = void 0;\n this._mimeType = void 0;\n this._canceled = false;\n }\n Object.defineProperty(ImageWorkerServerItem.prototype, \"id\", {\n get: function() {\n return this._id;\n }\n });\n Object.defineProperty(ImageWorkerServerItem.prototype, \"onFinish\", {\n get: function() {\n return this._onFinish;\n },\n set: function(f) {\n this._onFinish = f;\n }\n });\n Object.defineProperty(ImageWorkerServerItem.prototype, \"onError\", {\n get: function() {\n return this._onError;\n },\n set: function(f) {\n this._onError = f;\n }\n });\n ImageWorkerServerItem.prototype.start = function() {\n this._xhr = new XMLHttpRequest();\n this._xhr.open(\"GET\", this._src, true);\n this._xhr.responseType = \"blob\";\n var t = this;\n this._xhr.onerror = function(oEvent) {\n t.error({ type: \"connection\", message: \"Connection error\" });\n };\n this._xhr.onload = function(oEvent) {\n var blob = t._xhr.response;\n t._mimeType = blob.type;\n t._createImageBitmap(blob);\n };\n this._xhr.send();\n };\n ImageWorkerServerItem.prototype._createImageBitmap = function(blob) {\n var t = this;\n createImageBitmap(blob, { premultiplyAlpha: \"premultiply\", colorSpaceConversion: \"none\", imageOrientation: \"none\" }).then(function(imageBitmap) {\n t.finish({\n imageBitmap,\n hasAlphaChannel: t._hasAlphaChannel()\n });\n }).catch(function(e) {\n t.error({ type: \"parse\", message: \"Error parsing image data\" });\n });\n };\n ImageWorkerServerItem.prototype._hasAlphaChannel = function() {\n if (ImageWorkerServer.isWPEBrowser()) {\n return true;\n } else {\n return this._mimeType.indexOf(\"image/png\") !== -1;\n }\n };\n ImageWorkerServerItem.prototype.cancel = function() {\n if (this._canceled)\n return;\n if (this._xhr) {\n this._xhr.abort();\n }\n this._canceled = true;\n };\n ImageWorkerServerItem.prototype.error = function(type, message) {\n if (!this._canceled && this._onError) {\n this._onError({ type, message });\n }\n };\n ImageWorkerServerItem.prototype.finish = function(info) {\n if (!this._canceled && this._onFinish) {\n this._onFinish(info);\n }\n };\n new ImageWorkerServer();\n};\nclass WebPlatform {\n init(stage) {\n this.stage = stage;\n this._looping = false;\n this._awaitingLoop = false;\n this._loopHandler = null;\n this._idleLoopCounter = 0;\n this._idleLoopDelay = 60;\n if (this.stage.getOption(\"useImageWorker\")) {\n if (!window.createImageBitmap || !window.Worker) {\n console.warn(\"[Lightning] Can't use image worker because browser does not have createImageBitmap and Web Worker support\");\n } else {\n this._imageWorker = new ImageWorker();\n }\n }\n this._registerVisibilityChangeHandler();\n }\n destroy() {\n if (this._imageWorker) {\n this._imageWorker.destroy();\n }\n clearInterval(this._loopHandler);\n this._removeKeyHandler();\n this._removeClickHandler();\n this._removeHoverHandler();\n this._removeScrollWheelHandler();\n this._removeVisibilityChangeHandler();\n this.stage = null;\n delete this.stage;\n }\n startLoop() {\n this._looping = true;\n if (!this._awaitingLoop) {\n this.loop();\n }\n }\n stopLoop() {\n this._looping = false;\n }\n switchLoop() {\n if (this._idleLoopCounter < this._idleLoopDelay) {\n this._idleLoopCounter++;\n return;\n }\n if (!this.stage.ctx.hasRenderUpdates()) {\n this.stopLoop();\n this._loopHandler = setInterval(() => {\n this.stage.updateFrame();\n this.stage.idleFrame();\n if (this.stage.ctx.hasRenderUpdates()) {\n clearInterval(this._loopHandler);\n this.startLoop();\n }\n }, 1e3 / 60);\n } else {\n this._idleLoopCounter = 0;\n }\n }\n loop() {\n let self = this;\n let lp = function() {\n self._awaitingLoop = false;\n if (self._looping) {\n self.stage.updateFrame();\n if (self.stage.getOption(\"pauseRafLoopOnIdle\")) {\n self.switchLoop();\n }\n self.stage.renderFrame();\n requestAnimationFrame(lp);\n self._awaitingLoop = true;\n }\n };\n requestAnimationFrame(lp);\n }\n uploadCompressedGlTexture(gl, textureSource, source, options) {\n const view = !source.pvr ? new DataView(source.mipmaps[0]) : source.mipmaps[0];\n gl.compressedTexImage2D(\n gl.TEXTURE_2D,\n 0,\n source.glInternalFormat,\n source.pixelWidth,\n source.pixelHeight,\n 0,\n view\n );\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);\n }\n uploadGlTexture(gl, textureSource, source, options) {\n if (source instanceof ImageData || source instanceof HTMLImageElement || source instanceof HTMLVideoElement || window.ImageBitmap && source instanceof ImageBitmap) {\n gl.texImage2D(gl.TEXTURE_2D, 0, options.internalFormat, options.format, options.type, source);\n } else if (source instanceof HTMLCanvasElement) {\n if (Utils$1.isZiggo || this.stage.getOption(\"forceTxCanvasSource\")) {\n gl.texImage2D(gl.TEXTURE_2D, 0, options.internalFormat, options.format, options.type, source);\n } else if (source.width > 0 && source.height > 0) {\n const ctx = source.getContext(\"2d\");\n gl.texImage2D(gl.TEXTURE_2D, 0, options.internalFormat, options.format, options.type, ctx.getImageData(0, 0, source.width, source.height));\n }\n } else {\n gl.texImage2D(gl.TEXTURE_2D, 0, options.internalFormat, textureSource.w, textureSource.h, 0, options.format, options.type, source);\n }\n }\n handleKtxLoad(cb, src) {\n var self = this;\n return function() {\n var arraybuffer = this.response;\n var view = new DataView(arraybuffer);\n var targetIdentifier = 3632701469;\n if (targetIdentifier !== view.getUint32(0) + view.getUint32(4) + view.getUint32(8)) {\n cb(\"Parsing failed: identifier ktx mismatch:\", src);\n }\n var littleEndian = view.getUint32(12) === 16909060 ? true : false;\n var data = {\n glType: view.getUint32(16, littleEndian),\n glTypeSize: view.getUint32(20, littleEndian),\n glFormat: view.getUint32(24, littleEndian),\n glInternalFormat: view.getUint32(28, littleEndian),\n glBaseInternalFormat: view.getUint32(32, littleEndian),\n pixelWidth: view.getUint32(36, littleEndian),\n pixelHeight: view.getUint32(40, littleEndian),\n pixelDepth: view.getUint32(44, littleEndian),\n numberOfArrayElements: view.getUint32(48, littleEndian),\n numberOfFaces: view.getUint32(52, littleEndian),\n numberOfMipmapLevels: view.getUint32(56, littleEndian),\n bytesOfKeyValueData: view.getUint32(60, littleEndian),\n kvps: [],\n mipmaps: [],\n get width() {\n return this.pixelWidth;\n },\n get height() {\n return this.pixelHeight;\n }\n };\n const props = (obj) => {\n const p = [];\n for (let v in obj) {\n p.push(obj[v]);\n }\n return p;\n };\n const formats = Object.values(self.stage.renderer.getCompressedTextureExtensions()).filter((obj) => obj != null).map((obj) => props(obj)).reduce((prev, current) => prev.concat(current));\n if (!formats.includes(data.glInternalFormat)) {\n console.warn(\"[Lightning] Unrecognized texture extension format:\", src, data.glInternalFormat, self.stage.renderer.getCompressedTextureExtensions());\n }\n var offset = 64;\n offset += data.bytesOfKeyValueData;\n for (var i = 0; i < data.numberOfMipmapLevels; i++) {\n var imageSize = view.getUint32(offset);\n offset += 4;\n data.mipmaps.push(view.buffer.slice(offset, imageSize));\n offset += imageSize;\n }\n cb(null, {\n source: data,\n renderInfo: { src, compressed: true }\n });\n };\n }\n handlePvrLoad(cb, src) {\n return function() {\n const pvrHeaderLength = 13;\n const pvrFormatEtc1 = 36196;\n const pvrWidth = 7;\n const pvrHeight = 6;\n const pvrMipmapCount = 11;\n const pvrMetadata = 12;\n const arrayBuffer = this.response;\n const header = new Int32Array(arrayBuffer, 0, pvrHeaderLength);\n const dataOffset = header[pvrMetadata] + 52;\n const pvrtcData = new Uint8Array(arrayBuffer, dataOffset);\n var data = {\n glInternalFormat: pvrFormatEtc1,\n pixelWidth: header[pvrWidth],\n pixelHeight: header[pvrHeight],\n numberOfMipmapLevels: header[pvrMipmapCount],\n mipmaps: [],\n pvr: true,\n get width() {\n return this.pixelWidth;\n },\n get height() {\n return this.pixelHeight;\n }\n };\n let offset = 0;\n let width = data.pixelWidth;\n let height = data.pixelHeight;\n for (var i = 0; i < data.numberOfMipmapLevels; i++) {\n const level = (width + 3 >> 2) * (height + 3 >> 2) * 8;\n const view = new Uint8Array(arrayBuffer, pvrtcData.byteOffset + offset, level);\n data.mipmaps.push(view);\n offset += level;\n width = width >> 1;\n height = height >> 1;\n }\n cb(null, {\n source: data,\n renderInfo: { src, compressed: true }\n });\n };\n }\n loadSrcTexture({ src, hasAlpha }, cb) {\n let cancelCb = void 0;\n let isPng = src.toLowerCase().indexOf(\".png\") >= 0 || src.substr(0, 21) == \"data:image/png;base64\";\n let isKtx = src.indexOf(\".ktx\") >= 0;\n let isPvr = src.indexOf(\".pvr\") >= 0;\n if (isKtx || isPvr) {\n let request = new XMLHttpRequest();\n request.addEventListener(\n \"load\",\n isKtx ? this.handleKtxLoad(cb, src) : this.handlePvrLoad(cb, src)\n );\n request.open(\"GET\", src);\n request.responseType = \"arraybuffer\";\n request.send();\n cancelCb = function() {\n request.abort();\n };\n } else if (this._imageWorker) {\n const image = this._imageWorker.create(src);\n image.onError = function(err) {\n return cb(\"Image load error\");\n };\n image.onLoad = function({ imageBitmap, hasAlphaChannel }) {\n cb(null, {\n source: imageBitmap,\n renderInfo: { src, compressed: false },\n hasAlpha: hasAlphaChannel,\n premultiplyAlpha: true\n });\n };\n cancelCb = function() {\n image.cancel();\n };\n } else {\n let image = new Image();\n if (!(src.substr(0, 5) == \"data:\") && !Utils$1.isPS4) {\n image.crossOrigin = \"Anonymous\";\n }\n image.onerror = function(err) {\n if (image.src) {\n return cb(\"Image load error\");\n }\n };\n image.onload = function() {\n cb(null, {\n source: image,\n renderInfo: { src, compressed: false },\n hasAlpha: isPng || hasAlpha\n });\n };\n image.src = src;\n cancelCb = function() {\n image.onerror = null;\n image.onload = null;\n image.removeAttribute(\"src\");\n };\n }\n return cancelCb;\n }\n createWebGLContext(w, h) {\n let canvas = this.stage.getOption(\"canvas\") || document.createElement(\"canvas\");\n if (w && h) {\n canvas.width = w;\n canvas.height = h;\n }\n let opts = {\n alpha: true,\n antialias: false,\n premultipliedAlpha: true,\n stencil: true,\n preserveDrawingBuffer: false\n };\n let gl = canvas.getContext(\"webgl\", opts) || canvas.getContext(\"experimental-webgl\", opts) || canvas.getContext(\"webgl2\", opts);\n if (!gl) {\n throw new Error(\"This browser does not support webGL.\");\n }\n return gl;\n }\n createCanvasContext(w, h) {\n let canvas = this.stage.getOption(\"canvas\") || document.createElement(\"canvas\");\n if (w && h) {\n canvas.width = w;\n canvas.height = h;\n }\n let c2d = canvas.getContext(\"2d\");\n if (!c2d) {\n throw new Error(\"This browser does not support 2d canvas.\");\n }\n return c2d;\n }\n getHrTime() {\n return window.performance ? window.performance.now() : new Date().getTime();\n }\n getDrawingCanvas() {\n return document.createElement(\"canvas\");\n }\n getTextureOptionsForDrawingCanvas(canvas) {\n let options = {};\n options.source = canvas;\n return options;\n }\n nextFrame(changes) {\n }\n registerKeydownHandler(keyhandler) {\n this._keydownListener = (e) => {\n keyhandler(e);\n };\n window.addEventListener(\"keydown\", this._keydownListener);\n }\n registerKeyupHandler(keyhandler) {\n this._keyupListener = (e) => {\n keyhandler(e);\n };\n window.addEventListener(\"keyup\", this._keyupListener);\n }\n _removeKeyHandler() {\n if (this._keydownListener) {\n window.removeEventListener(\"keydown\", this._keydownListener);\n }\n if (this._keyupListener) {\n window.removeEventListener(\"keyup\", this._keyupListener);\n }\n }\n registerClickHandler(clickHandler) {\n this._clickListener = (e) => {\n clickHandler(e);\n };\n window.addEventListener(\"mousedown\", this._clickListener);\n }\n _removeClickHandler() {\n if (this._clickListener) {\n window.removeEventListener(\"mousedown\", this._clickListener);\n }\n }\n registerHoverHandler(hoverHandler) {\n this._hoverListener = (e) => {\n hoverHandler(e);\n };\n window.addEventListener(\"mousemove\", this._hoverListener);\n }\n _removeHoverHandler() {\n if (this._hoverListener) {\n window.removeEventListener(\"mousemove\", this._hoverListener);\n }\n }\n registerScrollWheelHandler(registerScrollWheelHandler) {\n this._scrollWheelListener = (e) => {\n registerScrollWheelHandler(e);\n };\n window.addEventListener(\"wheel\", this._scrollWheelListener);\n }\n _removeScrollWheelHandler() {\n if (this._scrollWheelListener) {\n window.removeEventListener(\"wheel\", this._scrollWheelListener);\n }\n }\n _registerVisibilityChangeHandler() {\n this._visibilityChangeHandler = () => {\n if (document.visibilityState === \"visible\") {\n this.stage.root.core.setHasRenderUpdates(2);\n this.stage.renderFrame();\n }\n };\n document.addEventListener(\"visibilitychange\", this._visibilityChangeHandler);\n }\n _removeVisibilityChangeHandler() {\n if (this._visibilityChangeHandler) {\n document.removeEventListener(\"visibilitychange\", this._visibilityChangeHandler);\n }\n }\n}\nclass PlatformLoader {\n static load(options) {\n if (options.platform) {\n return options.platform;\n } else {\n return WebPlatform;\n }\n }\n}\nclass Utils2 {\n static isFunction(value) {\n return typeof value === \"function\";\n }\n static isNumber(value) {\n return typeof value === \"number\";\n }\n static isInteger(value) {\n return typeof value === \"number\" && value % 1 === 0;\n }\n static isBoolean(value) {\n return value === true || value === false;\n }\n static isString(value) {\n return typeof value == \"string\";\n }\n static isObject(value) {\n let type = typeof value;\n return !!value && (type == \"object\" || type == \"function\");\n }\n static isPlainObject(value) {\n let type = typeof value;\n return !!value && type == \"object\";\n }\n static isObjectLiteral(value) {\n return typeof value === \"object\" && value && value.constructor === Object;\n }\n static getArrayIndex(index, arr) {\n return Utils2.getModuloIndex(index, arr.length);\n }\n static equalValues(v1, v2) {\n if (typeof v1 !== typeof v2)\n return false;\n if (Utils2.isObjectLiteral(v1)) {\n return Utils2.isObjectLiteral(v2) && Utils2.equalObjectLiterals(v1, v2);\n } else if (Array.isArray(v1)) {\n return Array.isArray(v2) && Utils2.equalArrays(v1, v2);\n } else {\n return v1 === v2;\n }\n }\n static equalObjectLiterals(obj1, obj2) {\n let keys1 = Object.keys(obj1);\n let keys2 = Object.keys(obj2);\n if (keys1.length !== keys2.length) {\n return false;\n }\n for (let i = 0, n = keys1.length; i < n; i++) {\n const k1 = keys1[i];\n const k2 = keys2[i];\n if (k1 !== k2) {\n return false;\n }\n const v1 = obj1[k1];\n const v2 = obj2[k2];\n if (!Utils2.equalValues(v1, v2)) {\n return false;\n }\n }\n return true;\n }\n static equalArrays(v1, v2) {\n if (v1.length !== v2.length) {\n return false;\n }\n for (let i = 0, n = v1.length; i < n; i++) {\n if (!this.equalValues(v1[i], v2[i])) {\n return false;\n }\n }\n return true;\n }\n}\nclass WebGLState {\n constructor(id, gl) {\n this._id = id;\n this._gl = gl;\n this._program = void 0;\n this._buffers = /* @__PURE__ */ new Map();\n this._framebuffers = /* @__PURE__ */ new Map();\n this._renderbuffers = /* @__PURE__ */ new Map();\n this._vertexAttribs = new Array(16);\n this._nonDefaultFlags = /* @__PURE__ */ new Set();\n this._settings = /* @__PURE__ */ new Map();\n this._textures = new Array(8);\n this._maxTexture = 0;\n this._activeTexture = gl.TEXTURE0;\n this._pixelStorei = new Array(5);\n }\n _getDefaultFlag(cap) {\n return cap === this._gl.DITHER;\n }\n setFlag(cap, v) {\n const def = this._getDefaultFlag(cap);\n if (v === def) {\n return this._nonDefaultFlags.delete(cap);\n } else {\n if (!this._nonDefaultFlags.has(cap)) {\n this._nonDefaultFlags.add(cap);\n return true;\n } else {\n return false;\n }\n }\n }\n setBuffer(target, buffer) {\n const change = this._buffers.get(target) !== buffer;\n this._buffers.set(target, buffer);\n if (change && target === this._gl.ARRAY_BUFFER) {\n this._vertexAttribs = [];\n }\n return change;\n }\n setFramebuffer(target, buffer) {\n const change = this._framebuffers.get(target) !== buffer;\n this._framebuffers.set(target, buffer);\n return change;\n }\n setRenderbuffer(target, buffer) {\n const change = this._renderbuffers.get(target) !== buffer;\n this._renderbuffers.set(target, buffer);\n return change;\n }\n setProgram(program) {\n const change = this._program !== program;\n this._program = program;\n return change;\n }\n setSetting(func, v) {\n const s = this._settings.get(func);\n const change = !s || !Utils2.equalValues(s, v);\n this._settings.set(func, v);\n return change;\n }\n disableVertexAttribArray(index) {\n const va = this._vertexAttribs[index];\n if (va && va[5]) {\n va[5] = false;\n return true;\n }\n return false;\n }\n enableVertexAttribArray(index) {\n const va = this._vertexAttribs[index];\n if (va) {\n if (!va[0]) {\n va[0] = true;\n return true;\n }\n } else {\n this._vertexAttribs[index] = [0, 0, 0, 0, 0, true];\n return true;\n }\n return false;\n }\n vertexAttribPointer(index, props) {\n let va = this._vertexAttribs[index];\n let equal = false;\n if (va) {\n equal = va[0] === props[0] && va[1] === props[1] && va[2] === props[2] && va[3] === props[3] && va[4] === props[4];\n }\n if (equal) {\n return false;\n } else {\n props[5] = va ? va[5] : false;\n return true;\n }\n }\n setActiveTexture(texture) {\n const changed = this._activeTexture !== texture;\n this._activeTexture = texture;\n return changed;\n }\n bindTexture(target, texture) {\n const activeIndex = WebGLState._getTextureIndex(this._activeTexture);\n this._maxTexture = Math.max(this._maxTexture, activeIndex + 1);\n const current = this._textures[activeIndex];\n const targetIndex = WebGLState._getTextureTargetIndex(target);\n if (current) {\n if (current[targetIndex] === texture) {\n return false;\n }\n current[targetIndex] = texture;\n return true;\n } else {\n if (texture) {\n this._textures[activeIndex] = [];\n this._textures[activeIndex][targetIndex] = texture;\n return true;\n } else {\n return false;\n }\n }\n }\n setPixelStorei(pname, param) {\n const i = WebGLState._getPixelStoreiIndex(pname);\n const change = !Utils2.equalValues(this._pixelStorei[i], param);\n this._pixelStorei[i] = param;\n return change;\n }\n migrate(s) {\n const t = this;\n this._migrateFlags(t, s);\n if (s._program !== t._program) {\n this._gl._useProgram(s._program);\n }\n this._migrateFramebuffers(t, s);\n this._migrateRenderbuffers(t, s);\n const buffersChanged = this._migrateBuffers(t, s);\n this._migrateAttributes(t, s, buffersChanged);\n this._migrateFlags(t, s);\n this._migrateSettings(t, s);\n this._migratePixelStorei(t, s);\n this._migrateTextures(t, s);\n }\n _migratePixelStorei(t, s) {\n for (let i = 0, n = t._pixelStorei.length; i < n; i++) {\n if (t._pixelStorei[i] !== s._pixelStorei[i]) {\n const value = s._pixelStorei[i] !== void 0 ? s._pixelStorei[i] : WebGLState._getDefaultPixelStoreiByIndex(i);\n this._gl._pixelStorei(WebGLState._getPixelStoreiByIndex(i), value);\n }\n }\n }\n _migrateTextures(t, s) {\n const max = Math.max(t._maxTexture, s._maxTexture);\n let activeTexture = t._activeTexture;\n for (let i = 0; i < max; i++) {\n const sTargets = s._textures[i];\n const tTargets = t._textures[i];\n const textureNumb = WebGLState._getTextureByIndex(i);\n const targetMax = Math.max(tTargets ? tTargets.length : 0, sTargets ? sTargets.length : 0);\n for (let j = 0, n = targetMax; j < n; j++) {\n const target = WebGLState._getTextureTargetByIndex(j);\n if (activeTexture !== textureNumb) {\n this._gl._activeTexture(textureNumb);\n activeTexture = textureNumb;\n }\n const texture = sTargets && sTargets[j] || null;\n this._gl._bindTexture(target, texture);\n }\n }\n if (s._activeTexture !== activeTexture) {\n this._gl._activeTexture(s._activeTexture);\n }\n }\n _migrateBuffers(t, s) {\n s._buffers.forEach((framebuffer, target) => {\n if (t._buffers.get(target) !== framebuffer) {\n this._gl._bindBuffer(target, framebuffer);\n }\n });\n t._buffers.forEach((buffer, target) => {\n const b = s._buffers.get(target);\n if (b === void 0) {\n this._gl._bindBuffer(target, null);\n }\n });\n return s._buffers.get(this._gl.ARRAY_BUFFER) !== t._buffers.get(this._gl.ARRAY_BUFFER);\n }\n _migrateFramebuffers(t, s) {\n s._framebuffers.forEach((framebuffer, target) => {\n if (t._framebuffers.get(target) !== framebuffer) {\n this._gl._bindFramebuffer(target, framebuffer);\n }\n });\n t._framebuffers.forEach((framebuffer, target) => {\n const fb = s._framebuffers.get(target);\n if (fb === void 0) {\n this._gl._bindFramebuffer(target, null);\n }\n });\n }\n _migrateRenderbuffers(t, s) {\n s._renderbuffers.forEach((renderbuffer, target) => {\n if (t._renderbuffers.get(target) !== renderbuffer) {\n this._gl._bindRenderbuffer(target, renderbuffer);\n }\n });\n t._renderbuffers.forEach((renderbuffer, target) => {\n const fb = s._renderbuffers.get(target);\n if (fb === void 0) {\n this._gl._bindRenderbuffer(target, null);\n }\n });\n }\n _migrateAttributes(t, s, buffersChanged) {\n if (!buffersChanged) {\n t._vertexAttribs.forEach((attrib, index) => {\n if (!s._vertexAttribs[index]) {\n this._gl._disableVertexAttribArray(index);\n }\n });\n s._vertexAttribs.forEach((attrib, index) => {\n this._gl._vertexAttribPointer(index, attrib[0], attrib[1], attrib[2], attrib[4]);\n if (attrib[5]) {\n this._gl._enableVertexAttribArray(index);\n } else {\n this._gl._disableVertexAttribArray(index);\n }\n });\n } else {\n s._vertexAttribs.forEach((attrib, index) => {\n if (attrib[0]) {\n this._gl._vertexAttribPointer(index, attrib[0], attrib[1], attrib[2], attrib[3], attrib[4]);\n }\n if (attrib[5]) {\n this._gl._enableVertexAttribArray(index);\n }\n });\n }\n }\n _migrateSettings(t, s) {\n const defaults = this.constructor.getDefaultSettings();\n t._settings.forEach((value, func) => {\n const name = func.name || func.xname;\n if (!s._settings.has(func)) {\n let args = defaults.get(name);\n if (Utils2.isFunction(args)) {\n args = args(this._gl);\n }\n s._settings.set(func, args);\n func.apply(this._gl, args);\n }\n });\n s._settings.forEach((value, func) => {\n const tValue = t._settings.get(func);\n if (!tValue || !Utils2.equalValues(tValue, value)) {\n func.apply(this._gl, value);\n }\n });\n }\n _migrateFlags(t, s) {\n t._nonDefaultFlags.forEach((setting) => {\n if (!s._nonDefaultFlags.has(setting)) {\n if (this._getDefaultFlag(setting)) {\n this._gl._enable(setting);\n } else {\n this._gl._disable(setting);\n }\n }\n });\n s._nonDefaultFlags.forEach((setting) => {\n if (!t._nonDefaultFlags.has(setting)) {\n if (this._getDefaultFlag(setting)) {\n this._gl._disable(setting);\n } else {\n this._gl._enable(setting);\n }\n }\n });\n }\n static getDefaultSettings() {\n if (!this._defaultSettings) {\n this._defaultSettings = /* @__PURE__ */ new Map();\n const d = this._defaultSettings;\n const g = WebGLRenderingContext.prototype;\n d.set(\"viewport\", function(gl) {\n return [0, 0, gl.canvas.width, gl.canvas.height];\n });\n d.set(\"scissor\", function(gl) {\n return [0, 0, gl.canvas.width, gl.canvas.height];\n });\n d.set(\"blendColor\", [0, 0, 0, 0]);\n d.set(\"blendEquation\", [g.FUNC_ADD]);\n d.set(\"blendEquationSeparate\", [g.FUNC_ADD, g.FUNC_ADD]);\n d.set(\"blendFunc\", [g.ONE, g.ZERO]);\n d.set(\"blendFuncSeparate\", [g.ONE, g.ZERO, g.ONE, g.ZERO]);\n d.set(\"clearColor\", [0, 0, 0, 0]);\n d.set(\"clearDepth\", [1]);\n d.set(\"clearStencil\", [0]);\n d.set(\"colorMask\", [true, true, true, true]);\n d.set(\"cullFace\", [g.BACK]);\n d.set(\"depthFunc\", [g.LESS]);\n d.set(\"depthMask\", [true]);\n d.set(\"depthRange\", [0, 1]);\n d.set(\"frontFace\", [g.CCW]);\n d.set(\"lineWidth\", [1]);\n d.set(\"polygonOffset\", [0, 0]);\n d.set(\"sampleCoverage\", [1, false]);\n d.set(\"stencilFunc\", [g.ALWAYS, 0, 1]);\n d.set(\"_stencilFuncSeparateFront\", [g.ALWAYS, 0, 1]);\n d.set(\"_stencilFuncSeparateBack\", [g.ALWAYS, 0, 1]);\n d.set(\"_stencilFuncSeparateFrontAndBack\", [g.ALWAYS, 0, 1]);\n d.set(\"stencilMask\", [1]);\n d.set(\"_stencilMaskSeparateFront\", [1]);\n d.set(\"_stencilMaskSeparateBack\", [1]);\n d.set(\"_stencilMaskSeparateFrontAndBack\", [1]);\n d.set(\"stencilOp\", [g.KEEP, g.KEEP, g.KEEP]);\n d.set(\"_stencilOpSeparateFront\", [g.KEEP, g.KEEP, g.KEEP]);\n d.set(\"_stencilOpSeparateBack\", [g.KEEP, g.KEEP, g.KEEP]);\n d.set(\"_stencilOpSeparateFrontAndBack\", [g.KEEP, g.KEEP, g.KEEP]);\n d.set(\"vertexAttrib1f\", []);\n d.set(\"vertexAttrib1fv\", []);\n d.set(\"vertexAttrib2f\", []);\n d.set(\"vertexAttrib2fv\", []);\n d.set(\"vertexAttrib3f\", []);\n d.set(\"vertexAttrib3fv\", []);\n d.set(\"vertexAttrib4f\", []);\n d.set(\"vertexAttrib4fv\", []);\n }\n return this._defaultSettings;\n }\n static _getTextureTargetIndex(target) {\n switch (target) {\n case 3553:\n return 0;\n case 34067:\n return 1;\n default:\n throw new Error(\"Unknown texture target: \" + target);\n }\n }\n static _getTextureTargetByIndex(index) {\n if (!this._textureTargetIndices) {\n this._textureTargetIndices = [3553, 34067];\n }\n return this._textureTargetIndices[index];\n }\n static _getTextureIndex(index) {\n return index - 33984;\n }\n static _getTextureByIndex(index) {\n return index + 33984;\n }\n static _getPixelStoreiIndex(pname) {\n switch (pname) {\n case 3333:\n return 0;\n case 3317:\n return 1;\n case 37440:\n return 2;\n case 37441:\n return 3;\n case 37443:\n return 4;\n case 37445:\n return 5;\n default:\n throw new Error(\"Unknown pixelstorei: \" + pname);\n }\n }\n static _getPixelStoreiByIndex(index) {\n if (!this._pixelStoreiIndices) {\n this._pixelStoreiIndices = [3333, 3317, 37440, 37441, 37443];\n }\n return this._pixelStoreiIndices[index];\n }\n static _getDefaultPixelStoreiByIndex(index) {\n if (!this._pixelStoreiDefaults) {\n this._pixelStoreiDefaults = [4, 4, false, false, WebGLRenderingContext.prototype.BROWSER_DEFAULT_WEBGL];\n }\n return this._pixelStoreiDefaults[index];\n }\n}\nclass WebGLStateManager {\n _initStateManager(id = \"default\") {\n this._states = {};\n this._state = this._getState(id);\n }\n _getState(id) {\n if (!this._states[id]) {\n this._states[id] = new WebGLState(id, this);\n }\n return this._states[id];\n }\n switchState(id = \"default\") {\n if (this._state._id !== id) {\n const newState = this._getState(id);\n this._state.migrate(newState);\n this._state = newState;\n }\n }\n $useProgram(program) {\n if (this._state.setProgram(program))\n this._useProgram(program);\n }\n $bindBuffer(target, fb) {\n if (this._state.setBuffer(target, fb))\n this._bindBuffer(target, fb);\n }\n $bindFramebuffer(target, fb) {\n if (this._state.setFramebuffer(target, fb))\n this._bindFramebuffer(target, fb);\n }\n $bindRenderbuffer(target, fb) {\n if (this._state.setRenderbuffer(target, fb))\n this._bindRenderbuffer(target, fb);\n }\n $enable(cap) {\n if (this._state.setFlag(cap, true))\n this._enable(cap);\n }\n $disable(cap) {\n if (this._state.setFlag(cap, false))\n this._disable(cap);\n }\n $viewport(x, y, w, h) {\n if (this._state.setSetting(this._viewport, [x, y, w, h]))\n this._viewport(x, y, w, h);\n }\n $scissor(x, y, w, h) {\n if (this._state.setSetting(this._scissor, [x, y, w, h]))\n this._scissor(x, y, w, h);\n }\n $disableVertexAttribArray(index) {\n if (this._state.disableVertexAttribArray(index))\n this._disableVertexAttribArray(index);\n }\n $enableVertexAttribArray(index) {\n if (this._state.enableVertexAttribArray(index))\n this._enableVertexAttribArray(index);\n }\n $vertexAttribPointer(index, size, type, normalized, stride, offset) {\n if (this._state.vertexAttribPointer(index, [size, type, normalized, stride, offset]))\n this._vertexAttribPointer(index, size, type, normalized, stride, offset);\n }\n $activeTexture(texture) {\n if (this._state.setActiveTexture(texture))\n this._activeTexture(texture);\n }\n $bindTexture(target, texture) {\n if (this._state.bindTexture(target, texture))\n this._bindTexture(target, texture);\n }\n $pixelStorei(pname, param) {\n if (this._state.setPixelStorei(pname, param)) {\n this._pixelStorei(pname, param);\n }\n }\n $stencilFuncSeparate(face, func, ref, mask) {\n let f;\n switch (face) {\n case this.FRONT:\n f = this._stencilFuncSeparateFront;\n break;\n case this.BACK:\n f = this._stencilFuncSeparateBack;\n break;\n case this.FRONT_AND_BACK:\n f = this._stencilFuncSeparateFrontAndBack;\n break;\n }\n if (this._state.setSetting(f, [func, ref, mask]))\n f.apply(this, [func, ref, mask]);\n }\n _stencilFuncSeparateFront(func, ref, mask) {\n this._stencilFuncSeparate(this.FRONT, func, ref, mask);\n }\n _stencilFuncSeparateBack(func, ref, mask) {\n this._stencilFuncSeparate(this.BACK, func, ref, mask);\n }\n _stencilFuncSeparateFrontAndBack(func, ref, mask) {\n this._stencilFuncSeparate(this.FRONT_AND_BACK, func, ref, mask);\n }\n $stencilMaskSeparate(face, mask) {\n let f;\n switch (face) {\n case this.FRONT:\n f = this._stencilMaskSeparateFront;\n break;\n case this.BACK:\n f = this._stencilMaskSeparateBack;\n break;\n case this.FRONT_AND_BACK:\n f = this._stencilMaskSeparateFrontAndBack;\n break;\n }\n if (this._state.setSetting(f, [mask]))\n f.apply(this, [mask]);\n }\n _stencilMaskSeparateFront(mask) {\n this._stencilMaskSeparate(this.FRONT, mask);\n }\n _stencilMaskSeparateBack(mask) {\n this._stencilMaskSeparate(this.BACK, mask);\n }\n _stencilMaskSeparateFrontAndBack(mask) {\n this._stencilMaskSeparate(this.FRONT_AND_BACK, mask);\n }\n $stencilOpSeparate(face, fail, zfail, zpass) {\n let f;\n switch (face) {\n case this.FRONT:\n f = this._stencilOpSeparateFront;\n break;\n case this.BACK:\n f = this._stencilOpSeparateBack;\n break;\n case this.FRONT_AND_BACK:\n f = this._stencilOpSeparateFrontAndBack;\n break;\n }\n if (this._state.setSetting(f, [fail, zfail, zpass]))\n f.apply(this, [fail, zfail, zpass]);\n }\n _stencilOpSeparateFront(fail, zfail, zpass) {\n this._stencilOpSeparate(this.FRONT, fail, zfail, zpass);\n }\n _stencilOpSeparateBack(fail, zfail, zpass) {\n this._stencilOpSeparate(this.BACK, fail, zfail, zpass);\n }\n _stencilOpSeparateFrontAndBack(fail, zfail, zpass) {\n this._stencilOpSeparate(this.FRONT_AND_BACK, fail, zfail, zpass);\n }\n $blendColor(red, green, blue, alpha) {\n if (this._state.setSetting(this._blendColor, [red, green, blue, alpha]))\n this._blendColor(red, green, blue, alpha);\n }\n $blendEquation(mode) {\n if (this._state.setSetting(this._blendEquation, [mode]))\n this._blendEquation(mode);\n }\n $blendEquationSeparate(modeRGB, modeAlpha) {\n if (this._state.setSetting(this._blendEquationSeparate, [modeRGB, modeAlpha]))\n this._blendEquationSeparate(modeRGB, modeAlpha);\n }\n $blendFunc(sfactor, dfactor) {\n if (this._state.setSetting(this._blendFunc, [sfactor, dfactor]))\n this._blendFunc(sfactor, dfactor);\n }\n $blendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha) {\n if (this._state.setSetting(this._blendFuncSeparate, [srcRGB, dstRGB, srcAlpha, dstAlpha]))\n this._blendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);\n }\n $clearColor(red, green, blue, alpha) {\n if (this._state.setSetting(this._clearColor, [red, green, blue, alpha]))\n this._clearColor(red, green, blue, alpha);\n }\n $clearDepth(depth) {\n if (this._state.setSetting(this._clearDepth, [depth]))\n this._clearDepth(depth);\n }\n $clearStencil(s) {\n if (this._state.setSetting(this._clearStencil, [s]))\n this._clearStencil(s);\n }\n $colorMask(red, green, blue, alpha) {\n if (this._state.setSetting(this._colorMask, [red, green, blue, alpha]))\n this._colorMask(red, green, blue, alpha);\n }\n $cullFace(mode) {\n if (this._state.setSetting(this._cullFace, [mode]))\n this._cullFace(mode);\n }\n $depthFunc(func) {\n if (this._state.setSetting(this._depthFunc, [func]))\n this._depthFunc(func);\n }\n $depthMask(flag) {\n if (this._state.setSetting(this._depthMask, [flag]))\n this._depthMask(flag);\n }\n $depthRange(zNear, zFar) {\n if (this._state.setSetting(this._depthRange, [zNear, zFar]))\n this._depthRange(zNear, zFar);\n }\n $frontFace(mode) {\n if (this._state.setSetting(this._frontFace, [mode]))\n this._frontFace(mode);\n }\n $lineWidth(width) {\n if (this._state.setSetting(this._lineWidth, [width]))\n this._lineWidth(width);\n }\n $polygonOffset(factor, units) {\n if (this._state.setSetting(this._polygonOffset, [factor, units]))\n this._polygonOffset(factor, units);\n }\n $sampleCoverage(value, invert) {\n if (this._state.setSetting(this._sampleCoverage, [value, invert]))\n this._sampleCoverage(value, invert);\n }\n $stencilFunc(func, ref, mask) {\n if (this._state.setSetting(this._stencilFunc, [func, ref, mask]))\n this._stencilFunc(func, ref, mask);\n }\n $stencilMask(mask) {\n if (this._state.setSetting(this._stencilMask, [mask]))\n this._stencilMask(mask);\n }\n $stencilOp(fail, zfail, zpass) {\n if (this._state.setSetting(this._stencilOp, [fail, zfail, zpass]))\n this._stencilOp(fail, zfail, zpass);\n }\n $vertexAttrib1f(indx, x) {\n if (this._state.setSetting(this._vertexAttrib1f, [indx, x]))\n this._vertexAttrib1f(indx, x);\n }\n $vertexAttrib1fv(indx, values) {\n if (this._state.setSetting(this._vertexAttrib1fv, [indx, values]))\n this._vertexAttrib1fv(indx, values);\n }\n $vertexAttrib2f(indx, x, y) {\n if (this._state.setSetting(this._vertexAttrib2f, [indx, x, y]))\n this._vertexAttrib2f(indx, x, y);\n }\n $vertexAttrib2fv(indx, values) {\n if (this._state.setSetting(this._vertexAttrib2fv, [indx, values]))\n this._vertexAttrib2fv(indx, values);\n }\n $vertexAttrib3f(indx, x, y, z) {\n if (this._state.setSetting(this._vertexAttrib3f, [indx, x, y, z]))\n this._vertexAttrib3f(indx, x, y, z);\n }\n $vertexAttrib3fv(indx, values) {\n if (this._state.setSetting(this._vertexAttrib3fv, [indx, values]))\n this._vertexAttrib3fv(indx, values);\n }\n $vertexAttrib4f(indx, x, y, z, w) {\n if (this._state.setSetting(this._vertexAttrib4f, [indx, x, y, z, w]))\n this._vertexAttrib4f(indx, x, y, z, w);\n }\n $vertexAttrib4fv(indx, values) {\n if (this._state.setSetting(this._vertexAttrib4fv, [indx, values]))\n this._vertexAttrib4fv(indx, values);\n }\n static enable(gl, id = \"default\") {\n const names = Object.getOwnPropertyNames(WebGLStateManager.prototype);\n gl.__proto__;\n names.forEach((name) => {\n if (name !== \"constructor\") {\n const method = WebGLStateManager.prototype[name];\n if (name.charAt(0) === \"$\") {\n name = name.substr(1);\n }\n if (gl[name] !== method) {\n if (gl[name]) {\n if (!gl[name].name) {\n gl[name].xname = name;\n }\n gl[\"_\" + name] = gl[name];\n }\n gl[name] = method;\n }\n }\n });\n WebGLStateManager.prototype._initStateManager.call(gl, id);\n return gl;\n }\n}\nclass TextureManager {\n constructor(stage) {\n this.stage = stage;\n this._usedMemory = 0;\n this._uploadedTextureSources = [];\n this.textureSourceHashmap = /* @__PURE__ */ new Map();\n }\n get usedMemory() {\n return this._usedMemory;\n }\n destroy() {\n for (let i = 0, n = this._uploadedTextureSources.length; i < n; i++) {\n this._nativeFreeTextureSource(this._uploadedTextureSources[i]);\n }\n this.textureSourceHashmap.clear();\n this._usedMemory = 0;\n }\n getReusableTextureSource(id) {\n return this.textureSourceHashmap.get(id);\n }\n getTextureSource(func, id) {\n let textureSource = id ? this.textureSourceHashmap.get(id) : null;\n if (!textureSource) {\n textureSource = new TextureSource(this, func);\n if (id) {\n textureSource.lookupId = id;\n this.textureSourceHashmap.set(id, textureSource);\n }\n }\n return textureSource;\n }\n uploadTextureSource(textureSource, options) {\n if (textureSource.isLoaded())\n return;\n this._addMemoryUsage(textureSource.w * textureSource.h);\n const nativeTexture = this._nativeUploadTextureSource(textureSource, options);\n textureSource._nativeTexture = nativeTexture;\n nativeTexture.w = textureSource.w;\n nativeTexture.h = textureSource.h;\n nativeTexture.update = this.stage.frameCounter;\n this._uploadedTextureSources.push(textureSource);\n this.addToLookupMap(textureSource);\n this._updateVramUsage(textureSource, 1);\n }\n _addMemoryUsage(delta) {\n this._usedMemory += delta;\n this.stage.addMemoryUsage(delta);\n }\n _updateVramUsage(textureSource, sign) {\n const nativeTexture = textureSource.nativeTexture;\n var usage;\n if (!Stage.isWebglSupported())\n return;\n if (!textureSource.isLoaded())\n return;\n if (!nativeTexture.hasOwnProperty(\"bytesPerPixel\") || isNaN(nativeTexture.bytesPerPixel))\n return;\n usage = sign * (textureSource.w * textureSource.h * nativeTexture.bytesPerPixel);\n this.stage.addVramUsage(usage, textureSource.hasAlpha);\n }\n addToLookupMap(textureSource) {\n const lookupId = textureSource.lookupId;\n if (lookupId) {\n if (!this.textureSourceHashmap.has(lookupId)) {\n this.textureSourceHashmap.set(lookupId, textureSource);\n }\n }\n }\n gc() {\n this.freeUnusedTextureSources();\n this._cleanupLookupMap();\n }\n freeUnusedTextureSources() {\n let remainingTextureSources = [];\n for (let i = 0, n = this._uploadedTextureSources.length; i < n; i++) {\n let ts = this._uploadedTextureSources[i];\n if (ts.allowCleanup()) {\n this._freeManagedTextureSource(ts);\n } else {\n remainingTextureSources.push(ts);\n }\n }\n this._uploadedTextureSources = remainingTextureSources;\n this._cleanupLookupMap();\n }\n _freeManagedTextureSource(textureSource) {\n if (textureSource.isLoaded()) {\n this._nativeFreeTextureSource(textureSource);\n this._addMemoryUsage(-textureSource.w * textureSource.h);\n this._updateVramUsage(textureSource, -1);\n }\n textureSource.loadingSince = null;\n }\n _cleanupLookupMap() {\n this.textureSourceHashmap.forEach((textureSource, lookupId) => {\n if (!(textureSource.isLoaded() || textureSource.isLoading()) && !textureSource.isUsed()) {\n this.textureSourceHashmap.delete(lookupId);\n }\n });\n }\n freeTextureSource(textureSource) {\n const index = this._uploadedTextureSources.indexOf(textureSource);\n const managed = index !== -1;\n if (textureSource.isLoaded()) {\n if (managed) {\n this._addMemoryUsage(-textureSource.w * textureSource.h);\n this._uploadedTextureSources.splice(index, 1);\n }\n this._nativeFreeTextureSource(textureSource);\n }\n textureSource.loadingSince = null;\n }\n _nativeUploadTextureSource(textureSource, options) {\n return this.stage.renderer.uploadTextureSource(textureSource, options);\n }\n _nativeFreeTextureSource(textureSource) {\n this.stage.renderer.freeTextureSource(textureSource);\n textureSource.clearNativeTexture();\n }\n}\nclass TextureThrottler {\n constructor(stage) {\n this.stage = stage;\n this.genericCancelCb = (textureSource) => {\n this._remove(textureSource);\n };\n this._sources = [];\n this._data = [];\n }\n destroy() {\n this._sources = [];\n this._data = [];\n this.stage = null;\n delete this._sources;\n delete this._data;\n delete this.stage;\n }\n processSome() {\n if (this._sources.length) {\n const start = Date.now();\n do {\n this._processItem();\n } while (this._sources.length && Date.now() - start < TextureThrottler.MAX_UPLOAD_TIME_PER_FRAME);\n }\n }\n _processItem() {\n const source = this._sources.pop();\n const data = this._data.pop();\n if (source.isLoading()) {\n source.processLoadedSource(data);\n }\n }\n add(textureSource, data) {\n this._sources.push(textureSource);\n this._data.push(data);\n }\n _remove(textureSource) {\n const index = this._sources.indexOf(textureSource);\n if (index >= 0) {\n this._sources.splice(index, 1);\n this._data.splice(index, 1);\n }\n }\n}\nTextureThrottler.MAX_UPLOAD_TIME_PER_FRAME = 10;\nclass CoreContext {\n constructor(stage) {\n this.stage = stage;\n this.root = null;\n this.updateTreeOrder = 0;\n this.renderState = this.stage.renderer.createCoreRenderState(this);\n this.renderExec = this.stage.renderer.createCoreRenderExecutor(this);\n this.renderExec.init();\n this._usedMemory = 0;\n this._renderTexturePool = [];\n this._renderTextureId = 1;\n this._zSorts = [];\n this.renderToTextureCount = 0;\n }\n get usedMemory() {\n return this._usedMemory;\n }\n destroy() {\n this._renderTexturePool.forEach((texture) => this._freeRenderTexture(texture));\n this._usedMemory = 0;\n this.stage = null;\n this.root = null;\n this.renderState = null;\n this.renderExec = null;\n this._renderTexturePool = null;\n this._zSorts = null;\n delete this.stage;\n delete this.root;\n delete this.renderState;\n delete this.renderExec;\n delete this._renderTexturePool;\n delete this._zSorts;\n }\n hasRenderUpdates() {\n return !!this.root._parent._hasRenderUpdates;\n }\n render() {\n this.root._parent._hasRenderUpdates = 0;\n this._render();\n }\n update() {\n this._update();\n if (this.root._hasUpdates) {\n this._update();\n }\n this._performForcedZSorts();\n }\n _performForcedZSorts() {\n const n = this._zSorts.length;\n if (n) {\n for (let i = 0, n2 = this._zSorts.length; i < n2; i++) {\n if (this._zSorts[i].zSort) {\n this._zSorts[i].sortZIndexedChildren();\n }\n }\n this._zSorts = [];\n }\n }\n _update() {\n this.updateTreeOrder = 0;\n this.root.update();\n }\n _render() {\n const debugFrame = this.stage.getOption(\"debugFrame\");\n this._fillRenderState();\n if (this.stage.getOption(\"readPixelsBeforeDraw\")) {\n this._readPixels();\n }\n this._performRender();\n if (debugFrame) {\n console.log(`[Lightning] RTT Renders in frame: ${this.renderToTextureCount}`);\n }\n if (this.stage.getOption(\"readPixelsAfterDraw\") && this.renderToTextureCount >= this.stage.getOption(\"readPixelsAfterDrawThreshold\")) {\n if (debugFrame) {\n console.log(`[Lightning] readPixelsAfterDraw behavior triggered`);\n }\n this._readPixels();\n }\n this.renderToTextureCount = 0;\n }\n _readPixels() {\n const pixels = new Uint8Array(4);\n const gl = this.stage.gl;\n gl.readPixels(0, 0, 1, 1, gl.RGBA, gl.UNSIGNED_BYTE, pixels);\n }\n _fillRenderState() {\n this.renderState.reset();\n this.root.render();\n this.renderState.finish();\n }\n _performRender() {\n this.renderExec.execute();\n }\n _addMemoryUsage(delta) {\n this._usedMemory += delta;\n this.stage.addMemoryUsage(delta);\n }\n allocateRenderTexture(w, h) {\n let prec = this.stage.getRenderPrecision();\n let pw = Math.max(1, Math.round(w * prec));\n let ph = Math.max(1, Math.round(h * prec));\n const n = this._renderTexturePool.length;\n for (let i = n - 1; i >= 0; i--) {\n const texture2 = this._renderTexturePool[i];\n if (texture2.w === pw && texture2.h === ph && texture2.update !== this.stage.frameCounter) {\n texture2.f = this.stage.frameCounter;\n this._renderTexturePool.splice(i, 1);\n return texture2;\n }\n }\n const texture = this._createRenderTexture(w, h, pw, ph);\n texture.precision = prec;\n return texture;\n }\n releaseRenderTexture(texture) {\n this._renderTexturePool.push(texture);\n }\n freeUnusedRenderTextures(maxAge = 60) {\n let limit = this.stage.frameCounter - maxAge;\n this._renderTexturePool = this._renderTexturePool.filter((texture) => {\n if (texture.f <= limit) {\n this._freeRenderTexture(texture);\n return false;\n }\n return true;\n });\n }\n _createRenderTexture(w, h, pw, ph) {\n this._addMemoryUsage(pw * ph);\n const texture = this.stage.renderer.createRenderTexture(w, h, pw, ph);\n texture.id = this._renderTextureId++;\n texture.f = this.stage.frameCounter;\n texture.ow = w;\n texture.oh = h;\n texture.w = pw;\n texture.h = ph;\n return texture;\n }\n _freeRenderTexture(nativeTexture) {\n this.stage.renderer.freeRenderTexture(nativeTexture);\n this._addMemoryUsage(-nativeTexture.w * nativeTexture.h);\n }\n copyRenderTexture(renderTexture, nativeTexture, options) {\n this.stage.renderer.copyRenderTexture(renderTexture, nativeTexture, options);\n }\n forceZSort(elementCore) {\n this._zSorts.push(elementCore);\n }\n}\nclass TransitionSettings {\n constructor(stage) {\n this.stage = stage;\n this._timingFunction = \"ease\";\n this._timingFunctionImpl = StageUtils.getTimingFunction(this._timingFunction);\n this.delay = 0;\n this.duration = 0.2;\n this.merger = null;\n }\n get timingFunction() {\n return this._timingFunction;\n }\n set timingFunction(v) {\n this._timingFunction = v;\n this._timingFunctionImpl = StageUtils.getTimingFunction(v);\n }\n get timingFunctionImpl() {\n return this._timingFunctionImpl;\n }\n patch(settings) {\n Base.patchObject(this, settings);\n }\n}\nTransitionSettings.prototype.isTransitionSettings = true;\nclass TransitionManager {\n constructor(stage) {\n this.stage = stage;\n this.stage.on(\"frameStart\", () => this.progress());\n this.active = /* @__PURE__ */ new Set();\n this.defaultTransitionSettings = new TransitionSettings(this.stage);\n }\n progress() {\n if (this.active.size) {\n let dt = this.stage.dt;\n let filter = false;\n this.active.forEach(function(a) {\n a.progress(dt);\n if (!a.isRunning()) {\n filter = true;\n }\n });\n if (filter) {\n this.active = new Set([...this.active].filter((t) => t.isRunning()));\n }\n }\n }\n createSettings(settings) {\n const transitionSettings = new TransitionSettings();\n Base.patchObject(transitionSettings, settings);\n return transitionSettings;\n }\n addActive(transition) {\n this.active.add(transition);\n }\n removeActive(transition) {\n this.active.delete(transition);\n }\n}\nclass MultiSpline {\n constructor() {\n this._clear();\n }\n _clear() {\n this._p = [];\n this._pe = [];\n this._idp = [];\n this._f = [];\n this._v = [];\n this._lv = [];\n this._sm = [];\n this._s = [];\n this._ve = [];\n this._sme = [];\n this._se = [];\n this._length = 0;\n }\n parse(rgba, def) {\n let i, n;\n if (!Utils$1.isObjectLiteral(def)) {\n def = { 0: def };\n }\n let defaultSmoothness = 0.5;\n let items = [];\n for (let key in def) {\n if (def.hasOwnProperty(key)) {\n let obj = def[key];\n if (!Utils$1.isObjectLiteral(obj)) {\n obj = { v: obj };\n }\n let p = parseFloat(key);\n if (key === \"sm\") {\n defaultSmoothness = obj.v;\n } else if (!isNaN(p) && p >= 0 && p <= 2) {\n obj.p = p;\n obj.f = Utils$1.isFunction(obj.v);\n obj.lv = obj.f ? obj.v(0, 0) : obj.v;\n items.push(obj);\n }\n }\n }\n items = items.sort(function(a, b) {\n return a.p - b.p;\n });\n n = items.length;\n for (i = 0; i < n; i++) {\n let last = i === n - 1;\n if (!items[i].hasOwnProperty(\"pe\")) {\n items[i].pe = last ? items[i].p <= 1 ? 1 : 2 : items[i + 1].p;\n } else {\n const max = i < n - 1 ? items[i + 1].p : 1;\n if (items[i].pe > max) {\n items[i].pe = max;\n }\n }\n if (items[i].pe === items[i].p) {\n items[i].idp = 0;\n } else {\n items[i].idp = 1 / (items[i].pe - items[i].p);\n }\n }\n for (i = 0; i < n; i++) {\n if (!items[i].hasOwnProperty(\"sm\")) {\n items[i].sm = defaultSmoothness;\n }\n if (!items[i].hasOwnProperty(\"s\")) {\n if (i === 0 || i === n - 1 || items[i].p === 1) {\n items[i].s = rgba ? [0, 0, 0, 0] : 0;\n } else {\n const pi = items[i - 1];\n const ni = items[i + 1];\n if (pi.p === ni.p) {\n items[i].s = rgba ? [0, 0, 0, 0] : 0;\n } else {\n if (rgba) {\n const nc = MultiSpline.getRgbaComponents(ni.lv);\n const pc = MultiSpline.getRgbaComponents(pi.lv);\n const d = 1 / (ni.p - pi.p);\n items[i].s = [\n d * (nc[0] - pc[0]),\n d * (nc[1] - pc[1]),\n d * (nc[2] - pc[2]),\n d * (nc[3] - pc[3])\n ];\n } else {\n items[i].s = (ni.lv - pi.lv) / (ni.p - pi.p);\n }\n }\n }\n }\n }\n for (i = 0; i < n - 1; i++) {\n if (!items[i].f) {\n let last = i === n - 1;\n if (!items[i].hasOwnProperty(\"ve\")) {\n items[i].ve = last ? items[i].lv : items[i + 1].lv;\n }\n if (Utils$1.isNumber(items[i].v) && Utils$1.isNumber(items[i].lv)) {\n if (!items[i].hasOwnProperty(\"sme\")) {\n items[i].sme = last ? defaultSmoothness : items[i + 1].sm;\n }\n if (!items[i].hasOwnProperty(\"se\")) {\n items[i].se = last ? rgba ? [0, 0, 0, 0] : 0 : items[i + 1].s;\n }\n if (rgba) {\n items[i].v = MultiSpline.getSplineRgbaValueFunction(items[i].v, items[i].ve, items[i].p, items[i].pe, items[i].sm, items[i].sme, items[i].s, items[i].se);\n } else {\n items[i].v = MultiSpline.getSplineValueFunction(items[i].v, items[i].ve, items[i].p, items[i].pe, items[i].sm, items[i].sme, items[i].s, items[i].se);\n }\n items[i].f = true;\n }\n }\n }\n if (this.length) {\n this._clear();\n }\n for (i = 0, n = items.length; i < n; i++) {\n this._add(items[i]);\n }\n }\n _add(item) {\n this._p.push(item.p || 0);\n this._pe.push(item.pe || 0);\n this._idp.push(item.idp || 0);\n this._f.push(item.f || false);\n this._v.push(item.hasOwnProperty(\"v\") ? item.v : 0);\n this._lv.push(item.lv || 0);\n this._sm.push(item.sm || 0);\n this._s.push(item.s || 0);\n this._ve.push(item.ve || 0);\n this._sme.push(item.sme || 0);\n this._se.push(item.se || 0);\n this._length++;\n }\n _getItem(p) {\n const n = this._length;\n if (!n) {\n return -1;\n }\n if (p < this._p[0]) {\n return 0;\n }\n for (let i = 0; i < n; i++) {\n if (this._p[i] <= p && p < this._pe[i]) {\n return i;\n }\n }\n return n - 1;\n }\n getValue(p) {\n const i = this._getItem(p);\n if (i === -1) {\n return void 0;\n } else {\n if (this._f[i]) {\n const o = Math.min(1, Math.max(0, (p - this._p[i]) * this._idp[i]));\n return this._v[i](o);\n } else {\n return this._v[i];\n }\n }\n }\n get length() {\n return this._length;\n }\n static getRgbaComponents(argb) {\n let r = (argb / 65536 | 0) % 256;\n let g = (argb / 256 | 0) % 256;\n let b = argb % 256;\n let a = argb / 16777216 | 0;\n return [r, g, b, a];\n }\n static getSplineValueFunction(v1, v2, p1, p2, o1, i2, s1, s2) {\n let dp = p2 - p1;\n s1 *= dp;\n s2 *= dp;\n let helpers = MultiSpline.getSplineHelpers(v1, v2, o1, i2, s1, s2);\n if (!helpers) {\n return function(p) {\n if (p === 0)\n return v1;\n if (p === 1)\n return v2;\n return v2 * p + v1 * (1 - p);\n };\n } else {\n return function(p) {\n if (p === 0)\n return v1;\n if (p === 1)\n return v2;\n return MultiSpline.calculateSpline(helpers, p);\n };\n }\n }\n static getSplineRgbaValueFunction(v1, v2, p1, p2, o1, i2, s1, s2) {\n let dp = p2 - p1;\n s1[0] *= dp;\n s1[1] *= dp;\n s1[2] *= dp;\n s1[3] *= dp;\n s2[0] *= dp;\n s2[1] *= dp;\n s2[2] *= dp;\n s2[3] *= dp;\n let cv1 = MultiSpline.getRgbaComponents(v1);\n let cv2 = MultiSpline.getRgbaComponents(v2);\n let helpers = [\n MultiSpline.getSplineHelpers(cv1[0], cv2[0], o1, i2, s1[0], s2[0]),\n MultiSpline.getSplineHelpers(cv1[1], cv2[1], o1, i2, s1[1], s2[1]),\n MultiSpline.getSplineHelpers(cv1[2], cv2[2], o1, i2, s1[2], s2[2]),\n MultiSpline.getSplineHelpers(cv1[3], cv2[3], o1, i2, s1[3], s2[3])\n ];\n if (!helpers[0]) {\n return function(p) {\n if (p === 0)\n return v1;\n if (p === 1)\n return v2;\n return MultiSpline.mergeColors(v2, v1, p);\n };\n } else {\n return function(p) {\n if (p === 0)\n return v1;\n if (p === 1)\n return v2;\n return MultiSpline.getArgbNumber([\n Math.min(255, MultiSpline.calculateSpline(helpers[0], p)),\n Math.min(255, MultiSpline.calculateSpline(helpers[1], p)),\n Math.min(255, MultiSpline.calculateSpline(helpers[2], p)),\n Math.min(255, MultiSpline.calculateSpline(helpers[3], p))\n ]);\n };\n }\n }\n static getSplineHelpers(v1, v2, o1, i2, s1, s2) {\n if (!o1 && !i2) {\n return null;\n }\n let csx = o1;\n let csy = v1 + s1 * o1;\n let cex = 1 - i2;\n let cey = v2 - s2 * i2;\n let xa = 3 * csx - 3 * cex + 1;\n let xb = -6 * csx + 3 * cex;\n let xc = 3 * csx;\n let ya = 3 * csy - 3 * cey + v2 - v1;\n let yb = 3 * (cey + v1) - 6 * csy;\n let yc = 3 * (csy - v1);\n let yd = v1;\n return [xa, xb, xc, ya, yb, yc, yd];\n }\n static calculateSpline(helpers, p) {\n let xa = helpers[0];\n let xb = helpers[1];\n let xc = helpers[2];\n let ya = helpers[3];\n let yb = helpers[4];\n let yc = helpers[5];\n let yd = helpers[6];\n if (xa === -2 && ya === -2 && xc === 0 && yc === 0) {\n return p;\n }\n let t = 0.5, cbx, dx;\n for (let it = 0; it < 20; it++) {\n cbx = t * (t * (t * xa + xb) + xc);\n dx = p - cbx;\n if (dx > -1e-8 && dx < 1e-8) {\n return t * (t * (t * ya + yb) + yc) + yd;\n }\n let cbxd = t * (t * (3 * xa) + 2 * xb) + xc;\n if (cbxd > 1e-10 && cbxd < 1e-10) {\n break;\n }\n t += dx / cbxd;\n }\n let minT = 0;\n let maxT = 1;\n for (let it = 0; it < 20; it++) {\n t = 0.5 * (minT + maxT);\n cbx = t * (t * (t * xa + xb) + xc);\n dx = p - cbx;\n if (dx > -1e-8 && dx < 1e-8) {\n return t * (t * (t * ya + yb) + yc) + yd;\n }\n if (dx < 0) {\n maxT = t;\n } else {\n minT = t;\n }\n }\n return t;\n }\n static mergeColors(c1, c2, p) {\n let r1 = (c1 / 65536 | 0) % 256;\n let g1 = (c1 / 256 | 0) % 256;\n let b1 = c1 % 256;\n let a1 = c1 / 16777216 | 0;\n let r2 = (c2 / 65536 | 0) % 256;\n let g2 = (c2 / 256 | 0) % 256;\n let b2 = c2 % 256;\n let a2 = c2 / 16777216 | 0;\n let r = r1 * p + r2 * (1 - p);\n let g = g1 * p + g2 * (1 - p);\n let b = b1 * p + b2 * (1 - p);\n let a = a1 * p + a2 * (1 - p);\n return Math.round(a) * 16777216 + Math.round(r) * 65536 + Math.round(g) * 256 + Math.round(b);\n }\n static getArgbNumber(rgba) {\n rgba[0] = Math.max(0, Math.min(255, rgba[0]));\n rgba[1] = Math.max(0, Math.min(255, rgba[1]));\n rgba[2] = Math.max(0, Math.min(255, rgba[2]));\n rgba[3] = Math.max(0, Math.min(255, rgba[3]));\n let v = ((rgba[3] | 0) << 24) + ((rgba[0] | 0) << 16) + ((rgba[1] | 0) << 8) + (rgba[2] | 0);\n if (v < 0) {\n v = 4294967295 + v + 1;\n }\n return v;\n }\n}\nclass AnimationActionSettings {\n constructor(animationSettings) {\n this.animationSettings = animationSettings;\n this._selector = \"\";\n this._items = new MultiSpline();\n this._props = [];\n this._propSetters = [];\n this._resetValue = void 0;\n this._hasResetValue = false;\n this._hasColorProperty = void 0;\n }\n getResetValue() {\n if (this._hasResetValue) {\n return this._resetValue;\n } else {\n return this._items.getValue(0);\n }\n }\n apply(element, p, factor) {\n const elements = this.getAnimatedElements(element);\n let v = this._items.getValue(p);\n if (v === void 0 || !elements.length) {\n return;\n }\n if (factor !== 1) {\n let sv = this.getResetValue();\n if (Utils$1.isNumber(v) && Utils$1.isNumber(sv)) {\n if (this.hasColorProperty()) {\n v = StageUtils.mergeColors(v, sv, factor);\n } else {\n v = StageUtils.mergeNumbers(v, sv, factor);\n }\n }\n }\n const n = this._propSetters.length;\n const m = elements.length;\n for (let j = 0; j < m; j++) {\n for (let i = 0; i < n; i++) {\n this._propSetters[i](elements[j], v);\n }\n }\n }\n getAnimatedElements(element) {\n return element.select(this._selector);\n }\n reset(element) {\n const elements = this.getAnimatedElements(element);\n let v = this.getResetValue();\n if (v === void 0 || !elements.length) {\n return;\n }\n const n = this._propSetters.length;\n const m = elements.length;\n for (let j = 0; j < m; j++) {\n for (let i = 0; i < n; i++) {\n this._propSetters[i](elements[j], v);\n }\n }\n }\n set selector(v) {\n this._selector = v;\n }\n set t(v) {\n this.selector = v;\n }\n get resetValue() {\n return this._resetValue;\n }\n set resetValue(v) {\n this._resetValue = v;\n this._hasResetValue = v !== void 0;\n }\n set rv(v) {\n this.resetValue = v;\n }\n set value(v) {\n this._items.parse(this.hasColorProperty(), v);\n }\n set v(v) {\n this.value = v;\n }\n set properties(v) {\n if (!Array.isArray(v)) {\n v = [v];\n }\n this._props = [];\n v.forEach((prop) => {\n this._props.push(prop);\n this._propSetters.push(Element.getSetter(prop));\n });\n }\n set property(v) {\n this._hasColorProperty = void 0;\n this.properties = v;\n }\n set p(v) {\n this.properties = v;\n }\n patch(settings) {\n Base.patchObject(this, settings);\n }\n hasColorProperty() {\n if (this._hasColorProperty === void 0) {\n this._hasColorProperty = this._props.length ? Element.isColorProperty(this._props[0]) : false;\n }\n return this._hasColorProperty;\n }\n}\nAnimationActionSettings.prototype.isAnimationActionSettings = true;\nclass AnimationSettings {\n constructor() {\n this._actions = [];\n this.delay = 0;\n this.duration = 1;\n this.repeat = 0;\n this.repeatOffset = 0;\n this.repeatDelay = 0;\n this.autostop = false;\n this.stopMethod = AnimationSettings.STOP_METHODS.FADE;\n this._stopTimingFunction = \"ease\";\n this._stopTimingFunctionImpl = StageUtils.getTimingFunction(this._stopTimingFunction);\n this.stopDuration = 0;\n this.stopDelay = 0;\n }\n get actions() {\n return this._actions;\n }\n set actions(v) {\n this._actions = [];\n for (let i = 0, n = v.length; i < n; i++) {\n const e = v[i];\n if (!e.isAnimationActionSettings) {\n const aas = new AnimationActionSettings(this);\n aas.patch(e);\n this._actions.push(aas);\n } else {\n this._actions.push(e);\n }\n }\n }\n apply(element, p, factor = 1) {\n this._actions.forEach(function(action) {\n action.apply(element, p, factor);\n });\n }\n reset(element) {\n this._actions.forEach(function(action) {\n action.reset(element);\n });\n }\n get stopTimingFunction() {\n return this._stopTimingFunction;\n }\n set stopTimingFunction(v) {\n this._stopTimingFunction = v;\n this._stopTimingFunctionImpl = StageUtils.getTimingFunction(v);\n }\n get stopTimingFunctionImpl() {\n return this._stopTimingFunctionImpl;\n }\n patch(settings) {\n Base.patchObject(this, settings);\n }\n}\nAnimationSettings.STOP_METHODS = {\n FADE: \"fade\",\n REVERSE: \"reverse\",\n FORWARD: \"forward\",\n IMMEDIATE: \"immediate\",\n ONETOTWO: \"onetotwo\"\n};\nclass Animation extends EventEmitter {\n constructor(manager, settings, element) {\n super();\n this.manager = manager;\n this._settings = settings;\n this._element = element;\n this._state = Animation.STATES.IDLE;\n this._p = 0;\n this._delayLeft = 0;\n this._repeatsLeft = 0;\n this._stopDelayLeft = 0;\n this._stopP = 0;\n }\n start() {\n if (this._element && this._element.attached) {\n this._p = 0;\n this._delayLeft = this.settings.delay;\n this._repeatsLeft = this.settings.repeat;\n this._state = Animation.STATES.PLAYING;\n this.emit(\"start\");\n this.checkActive();\n } else {\n console.warn(\"[Lightning] Element must be attached before starting animation\");\n }\n }\n play() {\n if (this._state === Animation.STATES.PAUSED) {\n this._state = Animation.STATES.PLAYING;\n this.checkActive();\n this.emit(\"resume\");\n } else if (this._state == Animation.STATES.STOPPING && this.settings.stopMethod == AnimationSettings.STOP_METHODS.REVERSE) {\n this._state = Animation.STATES.PLAYING;\n this.emit(\"stopContinue\");\n } else if (this._state != Animation.STATES.PLAYING && this._state != Animation.STATES.FINISHED) {\n this.start();\n }\n }\n pause() {\n if (this._state === Animation.STATES.PLAYING) {\n this._state = Animation.STATES.PAUSED;\n this.emit(\"pause\");\n }\n }\n replay() {\n if (this._state == Animation.STATES.FINISHED) {\n this.start();\n } else {\n this.play();\n }\n }\n skipDelay() {\n this._delayLeft = 0;\n this._stopDelayLeft = 0;\n }\n finish() {\n if (this._state === Animation.STATES.PLAYING) {\n this._delayLeft = 0;\n this._p = 1;\n } else if (this._state === Animation.STATES.STOPPING) {\n this._stopDelayLeft = 0;\n this._p = 0;\n }\n }\n stop() {\n if (this._state === Animation.STATES.STOPPED || this._state === Animation.STATES.IDLE)\n return;\n this._stopDelayLeft = this.settings.stopDelay || 0;\n if (this.settings.stopMethod === AnimationSettings.STOP_METHODS.IMMEDIATE && !this._stopDelayLeft || this._delayLeft > 0) {\n this._state = Animation.STATES.STOPPING;\n this.emit(\"stop\");\n } else {\n if (this.settings.stopMethod === AnimationSettings.STOP_METHODS.FADE) {\n this._stopP = 0;\n }\n this._state = Animation.STATES.STOPPING;\n this.emit(\"stop\");\n }\n this.checkActive();\n }\n stopNow() {\n if (this._state !== Animation.STATES.STOPPED || this._state !== Animation.STATES.IDLE) {\n this._state = Animation.STATES.STOPPING;\n this._p = 0;\n this.emit(\"stop\");\n this.reset();\n this._state = Animation.STATES.STOPPED;\n this.emit(\"stopFinish\");\n }\n }\n isPaused() {\n return this._state === Animation.STATES.PAUSED;\n }\n isPlaying() {\n return this._state === Animation.STATES.PLAYING;\n }\n isStopping() {\n return this._state === Animation.STATES.STOPPING;\n }\n isFinished() {\n return this._state === Animation.STATES.FINISHED;\n }\n checkActive() {\n if (this.isActive()) {\n this.manager.addActive(this);\n }\n }\n isActive() {\n return (this._state == Animation.STATES.PLAYING || this._state == Animation.STATES.STOPPING) && this._element && this._element.attached;\n }\n progress(dt) {\n if (!this._element)\n return;\n this._progress(dt);\n this.apply();\n }\n _progress(dt) {\n if (this._state == Animation.STATES.STOPPING) {\n this._stopProgress(dt);\n return;\n }\n if (this._state != Animation.STATES.PLAYING) {\n return;\n }\n if (this._delayLeft > 0) {\n this._delayLeft -= dt;\n if (this._delayLeft < 0) {\n dt = -this._delayLeft;\n this._delayLeft = 0;\n this.emit(\"delayEnd\");\n } else {\n return;\n }\n }\n if (this.settings.duration === 0) {\n this._p = 1;\n } else if (this.settings.duration > 0) {\n this._p += dt / this.settings.duration;\n }\n if (this._p >= 1) {\n if (this.settings.repeat == -1 || this._repeatsLeft > 0) {\n if (this._repeatsLeft > 0) {\n this._repeatsLeft--;\n }\n this._p = this.settings.repeatOffset;\n this.emit(\"progress\", this._p);\n if (this.settings.repeatDelay) {\n this._delayLeft = this.settings.repeatDelay;\n }\n this.emit(\"repeat\", this._repeatsLeft);\n } else {\n this._p = 1;\n this.emit(\"progress\", this._p);\n this._state = Animation.STATES.FINISHED;\n this.emit(\"finish\");\n if (this.settings.autostop) {\n this.stop();\n }\n }\n } else {\n this.emit(\"progress\", this._p);\n }\n }\n _stopProgress(dt) {\n let duration = this._getStopDuration();\n if (this._stopDelayLeft > 0) {\n this._stopDelayLeft -= dt;\n if (this._stopDelayLeft < 0) {\n dt = -this._stopDelayLeft;\n this._stopDelayLeft = 0;\n this.emit(\"stopDelayEnd\");\n } else {\n return;\n }\n }\n if (this.settings.stopMethod == AnimationSettings.STOP_METHODS.IMMEDIATE) {\n this._state = Animation.STATES.STOPPED;\n this.emit(\"stopFinish\");\n } else if (this.settings.stopMethod == AnimationSettings.STOP_METHODS.REVERSE) {\n if (duration === 0) {\n this._p = 0;\n } else if (duration > 0) {\n this._p -= dt / duration;\n }\n if (this._p <= 0) {\n this._p = 0;\n this._state = Animation.STATES.STOPPED;\n this.emit(\"stopFinish\");\n }\n } else if (this.settings.stopMethod == AnimationSettings.STOP_METHODS.FADE) {\n this._progressStopTransition(dt);\n if (this._stopP >= 1) {\n this._p = 0;\n this._state = Animation.STATES.STOPPED;\n this.emit(\"stopFinish\");\n }\n } else if (this.settings.stopMethod == AnimationSettings.STOP_METHODS.ONETOTWO) {\n if (this._p < 2) {\n if (duration === 0) {\n this._p = 2;\n } else if (duration > 0) {\n if (this._p < 1) {\n this._p += dt / this.settings.duration;\n } else {\n this._p += dt / duration;\n }\n }\n if (this._p >= 2) {\n this._p = 2;\n this._state = Animation.STATES.STOPPED;\n this.emit(\"stopFinish\");\n } else {\n this.emit(\"progress\", this._p);\n }\n }\n } else if (this.settings.stopMethod == AnimationSettings.STOP_METHODS.FORWARD) {\n if (this._p < 1) {\n if (this.settings.duration == 0) {\n this._p = 1;\n } else {\n this._p += dt / this.settings.duration;\n }\n if (this._p >= 1) {\n if (this.settings.stopMethod == AnimationSettings.STOP_METHODS.FORWARD) {\n this._p = 1;\n this._state = Animation.STATES.STOPPED;\n this.emit(\"stopFinish\");\n } else {\n if (this._repeatsLeft > 0) {\n this._repeatsLeft--;\n this._p = 0;\n this.emit(\"repeat\", this._repeatsLeft);\n } else {\n this._p = 1;\n this._state = Animation.STATES.STOPPED;\n this.emit(\"stopFinish\");\n }\n }\n } else {\n this.emit(\"progress\", this._p);\n }\n }\n }\n }\n _progressStopTransition(dt) {\n if (this._stopP < 1) {\n if (this._stopDelayLeft > 0) {\n this._stopDelayLeft -= dt;\n if (this._stopDelayLeft < 0) {\n dt = -this._stopDelayLeft;\n this._stopDelayLeft = 0;\n this.emit(\"delayEnd\");\n } else {\n return;\n }\n }\n const duration = this._getStopDuration();\n if (duration == 0) {\n this._stopP = 1;\n } else {\n this._stopP += dt / duration;\n }\n if (this._stopP >= 1) {\n this._stopP = 1;\n }\n }\n }\n _getStopDuration() {\n return this.settings.stopDuration || this.settings.duration;\n }\n apply() {\n if (this._state === Animation.STATES.STOPPED) {\n this.reset();\n } else {\n let factor = 1;\n if (this._state === Animation.STATES.STOPPING && this.settings.stopMethod === AnimationSettings.STOP_METHODS.FADE) {\n factor = 1 - this.settings.stopTimingFunctionImpl(this._stopP);\n }\n this._settings.apply(this._element, this._p, factor);\n }\n }\n reset() {\n this._settings.reset(this._element);\n }\n get state() {\n return this._state;\n }\n get p() {\n return this._p;\n }\n get delayLeft() {\n return this._delayLeft;\n }\n get element() {\n return this._element;\n }\n get frame() {\n return Math.round(this._p * this._settings.duration * 60);\n }\n get settings() {\n return this._settings;\n }\n}\nAnimation.STATES = {\n IDLE: 0,\n PLAYING: 1,\n STOPPING: 2,\n STOPPED: 3,\n FINISHED: 4,\n PAUSED: 5\n};\nclass AnimationManager {\n constructor(stage) {\n this.stage = stage;\n this.stage.on(\"frameStart\", () => this.progress());\n this.active = /* @__PURE__ */ new Set();\n }\n progress() {\n if (this.active.size) {\n let dt = this.stage.dt;\n let filter = false;\n this.active.forEach(function(a) {\n if (a.isActive()) {\n a.progress(dt);\n } else {\n filter = true;\n }\n });\n if (filter) {\n this.active = new Set([...this.active].filter((t) => t.isActive()));\n }\n }\n }\n createAnimation(element, settings) {\n if (Utils$1.isObjectLiteral(settings)) {\n settings = this.createSettings(settings);\n }\n return new Animation(\n this,\n settings,\n element\n );\n }\n createSettings(settings) {\n const animationSettings = new AnimationSettings();\n Base.patchObject(animationSettings, settings);\n return animationSettings;\n }\n addActive(transition) {\n this.active.add(transition);\n }\n}\nclass RectangleTexture extends Texture {\n _getLookupId() {\n return \"__whitepix\";\n }\n _getSourceLoader() {\n return function(cb) {\n var whitePixel = new Uint8Array([255, 255, 255, 255]);\n cb(null, { source: whitePixel, w: 1, h: 1, permanent: true });\n };\n }\n isAutosizeTexture() {\n return false;\n }\n}\nclass Stage extends EventEmitter {\n constructor(options = {}) {\n super();\n this._setOptions(options);\n this._usedMemory = 0;\n this._lastGcFrame = 0;\n this._usedVramAlpha = 0;\n this._usedVramNonAlpha = 0;\n const platformType = Stage.platform ? Stage.platform : PlatformLoader.load(options);\n this.platform = new platformType();\n if (this.platform.init) {\n this.platform.init(this);\n }\n this.gl = null;\n this.c2d = null;\n const context = this.getOption(\"context\");\n if (context) {\n if (context.useProgram) {\n this.gl = context;\n } else {\n this.c2d = context;\n }\n } else {\n if (Utils$1.isWeb && (!Stage.isWebglSupported() || this.getOption(\"canvas2d\"))) {\n this.c2d = this.platform.createCanvasContext(this.getOption(\"w\"), this.getOption(\"h\"));\n } else {\n this.gl = this.platform.createWebGLContext(this.getOption(\"w\"), this.getOption(\"h\"));\n }\n }\n if (this.gl) {\n WebGLStateManager.enable(this.gl, \"lightning\");\n }\n this._mode = this.gl ? 0 : 1;\n if (this.getCanvas()) {\n if (this.getOption(\"devicePixelRatio\") !== 1) {\n const ratio = this.getOption(\"devicePixelRatio\");\n this.getCanvas().style.width = this._options[\"w\"] / ratio + \"px\";\n this.getCanvas().style.height = this._options[\"h\"] / ratio + \"px\";\n }\n this._options.w = this.getCanvas().width;\n this._options.h = this.getCanvas().height;\n }\n if (this._mode === 0) {\n if (Utils$1.isSpark) {\n this._renderer = new SparkRenderer(this);\n } else {\n this._renderer = new WebGLRenderer(this);\n }\n } else {\n this._renderer = new C2dRenderer(this);\n }\n this.setClearColor(this.getOption(\"clearColor\"));\n this.frameCounter = 0;\n this.transitions = new TransitionManager(this);\n this.animations = new AnimationManager(this);\n this.textureManager = new TextureManager(this);\n this.textureThrottler = new TextureThrottler(this);\n this.startTime = 0;\n this.currentTime = 0;\n this.dt = 0;\n this.rectangleTexture = new RectangleTexture(this);\n this.rectangleTexture.load();\n this.rectangleTexture.source.permanent = true;\n this.ctx = new CoreContext(this);\n this._updateSourceTextures = /* @__PURE__ */ new Set();\n }\n get renderer() {\n return this._renderer;\n }\n static isWebglSupported() {\n if (Utils$1.isNode) {\n return true;\n }\n try {\n return !!window.WebGLRenderingContext;\n } catch (e) {\n return false;\n }\n }\n get mode() {\n return this._mode;\n }\n isWebgl() {\n return this.mode === 0;\n }\n isC2d() {\n return this.mode === 1;\n }\n getOption(name) {\n return this._options[name];\n }\n _setOptions(o) {\n this._options = {};\n let opt = (name, def) => {\n let value = o[name];\n if (value === void 0) {\n this._options[name] = def;\n } else {\n this._options[name] = value;\n }\n };\n opt(\"canvas\", null);\n opt(\"context\", null);\n opt(\"w\", 1920);\n opt(\"h\", 1080);\n opt(\"srcBasePath\", null);\n opt(\"memoryPressure\", 24e6);\n opt(\"bufferMemory\", 2e6);\n opt(\"textRenderIssueMargin\", 0);\n opt(\"fontSharp\", { precision: 0.6666666667, fontSize: 24 });\n opt(\"clearColor\", [0, 0, 0, 0]);\n opt(\"defaultFontFace\", \"sans-serif\");\n opt(\"fixedDt\", 0);\n opt(\"useImageWorker\", true);\n opt(\"autostart\", true);\n opt(\"precision\", 1);\n opt(\"canvas2d\", false);\n opt(\"platform\", null);\n opt(\"readPixelsBeforeDraw\", false);\n opt(\"devicePixelRatio\", 1);\n opt(\"readPixelsAfterDraw\", false);\n opt(\"readPixelsAfterDrawThreshold\", 0);\n opt(\"debugFrame\", false);\n opt(\"forceTxCanvasSource\", false);\n opt(\"pauseRafLoopOnIdle\", false);\n if (o[\"devicePixelRatio\"] != null && o[\"devicePixelRatio\"] !== 1) {\n this._options[\"precision\"] *= o[\"devicePixelRatio\"];\n this._options[\"w\"] *= o[\"devicePixelRatio\"];\n this._options[\"h\"] *= o[\"devicePixelRatio\"];\n }\n }\n setApplication(app) {\n this.application = app;\n }\n init() {\n if (this.application.getOption(\"debug\") && this.platform._imageWorker) {\n console.log(\"[Lightning] Using image worker!\");\n }\n if (this.application.getOption(\"debug\") && this.c2d) {\n console.log(\"[Lightning] Using canvas2d renderer\");\n }\n this.application.setAsRoot();\n if (this.getOption(\"autostart\")) {\n this.platform.startLoop();\n }\n }\n destroy() {\n this.platform.stopLoop();\n this.platform.destroy();\n this.ctx.destroy();\n this.textureManager.destroy();\n this._renderer.destroy();\n if (this.gl) {\n this.gl.clearColor(0, 0, 0, 0);\n this.gl.clear(this.gl.COLOR_BUFFER_BIT);\n } else if (this.c2d) {\n this.c2d.clearRect(\n 0,\n 0,\n this.c2d.canvas.width,\n this.c2d.canvas.height\n );\n }\n this.gl = null;\n this.c2d = null;\n this.ctx = null;\n this._options = null;\n this.platform = null;\n this.textureManager = null;\n this._renderer = null;\n delete this.gl;\n delete this.c2d;\n delete this.ctx;\n delete this._options;\n delete this.platform;\n delete this.textureManager;\n delete this._renderer;\n }\n stop() {\n this.platform.stopLoop();\n }\n resume() {\n this.platform.startLoop();\n }\n get root() {\n return this.application;\n }\n getCanvas() {\n return this._mode ? this.c2d.canvas : this.gl.canvas;\n }\n getRenderPrecision() {\n return this._options.precision;\n }\n addUpdateSourceTexture(texture) {\n if (this._updatingFrame) {\n texture._performUpdateSource();\n } else {\n this._updateSourceTextures.add(texture);\n }\n }\n removeUpdateSourceTexture(texture) {\n if (this._updateSourceTextures) {\n this._updateSourceTextures.delete(texture);\n }\n }\n hasUpdateSourceTexture(texture) {\n return this._updateSourceTextures && this._updateSourceTextures.has(texture);\n }\n _performUpdateSource() {\n if (this._updateSourceTextures.size) {\n this._updateSourceTextures.forEach((texture) => {\n texture._performUpdateSource();\n });\n this._updateSourceTextures = /* @__PURE__ */ new Set();\n }\n }\n _calculateDt() {\n this.startTime = this.currentTime;\n this.currentTime = this.platform.getHrTime();\n if (this._options.fixedDt) {\n this.dt = this._options.fixedDt;\n } else {\n this.dt = !this.startTime ? 0.02 : 1e-3 * (this.currentTime - this.startTime);\n }\n }\n updateFrame() {\n this._calculateDt();\n this.emit(\"frameStart\");\n this._performUpdateSource();\n this.emit(\"update\");\n }\n idleFrame() {\n this.textureThrottler.processSome();\n this.emit(\"frameEnd\");\n this.frameCounter++;\n }\n renderFrame() {\n const changes = this.ctx.hasRenderUpdates();\n this.textureThrottler.processSome();\n if (changes) {\n this._updatingFrame = true;\n this.ctx.update();\n this.ctx.render();\n this._updatingFrame = false;\n }\n this.platform.nextFrame(changes);\n this.emit(\"frameEnd\");\n this.frameCounter++;\n }\n isUpdatingFrame() {\n return this._updatingFrame;\n }\n drawFrame() {\n this.updateFrame();\n this.renderFrame();\n }\n forceRenderUpdate() {\n if (this.root) {\n this.root.core._parent.setHasRenderUpdates(1);\n }\n }\n setClearColor(clearColor) {\n this.forceRenderUpdate();\n if (clearColor === null) {\n this._clearColor = null;\n } else if (Array.isArray(clearColor)) {\n this._clearColor = clearColor;\n } else {\n this._clearColor = StageUtils.getRgbaComponentsNormalized(clearColor);\n }\n }\n getClearColor() {\n return this._clearColor;\n }\n createElement(settings) {\n if (settings) {\n return this.element(settings);\n } else {\n return new Element(this);\n }\n }\n createShader(settings) {\n return Shader.create(this, settings);\n }\n element(settings) {\n if (settings.isElement)\n return settings;\n let element;\n if (settings.type) {\n element = new settings.type(this);\n } else {\n element = new Element(this);\n }\n element.patch(settings);\n return element;\n }\n c(settings) {\n return this.element(settings);\n }\n get w() {\n return this._options.w;\n }\n get h() {\n return this._options.h;\n }\n get coordsWidth() {\n return this.w / this._options.precision;\n }\n get coordsHeight() {\n return this.h / this._options.precision;\n }\n addMemoryUsage(delta) {\n this._usedMemory += delta;\n if (this._lastGcFrame !== this.frameCounter) {\n if (this._usedMemory > this.getOption(\"memoryPressure\")) {\n this.gc(false);\n if (this._usedMemory > this.getOption(\"memoryPressure\") - 2e6) {\n this.gc(true);\n }\n }\n }\n }\n get usedMemory() {\n return this._usedMemory;\n }\n addVramUsage(delta, alpha) {\n if (alpha) {\n this._usedVramAlpha += delta;\n } else {\n this._usedVramNonAlpha += delta;\n }\n }\n get usedVramAlpha() {\n return this._usedVramAlpha;\n }\n get usedVramNonAlpha() {\n return this._usedVramNonAlpha;\n }\n get usedVram() {\n return this._usedVramAlpha + this._usedVramNonAlpha;\n }\n gc(aggressive) {\n if (this._lastGcFrame !== this.frameCounter) {\n this._lastGcFrame = this.frameCounter;\n const memoryUsageBefore = this._usedMemory;\n this.gcTextureMemory(aggressive);\n this.gcRenderTextureMemory(aggressive);\n this.renderer.gc(aggressive);\n if (this.application.getOption(\"debug\")) {\n console.log(`[Lightning] GC${aggressive ? \"[aggressive]\" : \"\"}! Frame ${this._lastGcFrame} Freed ${((memoryUsageBefore - this._usedMemory) / 1e6).toFixed(2)}MP from GPU memory. Remaining: ${(this._usedMemory / 1e6).toFixed(2)}MP`);\n const other = this._usedMemory - this.textureManager.usedMemory - this.ctx.usedMemory;\n console.log(`[Lightning] Textures: ${(this.textureManager.usedMemory / 1e6).toFixed(2)}MP, Render Textures: ${(this.ctx.usedMemory / 1e6).toFixed(2)}MP, Renderer caches: ${(other / 1e6).toFixed(2)}MP`);\n }\n }\n }\n gcTextureMemory(aggressive = false) {\n if (aggressive && this.ctx.root.visible) {\n this.ctx.root.visible = false;\n this.textureManager.gc();\n this.ctx.root.visible = true;\n } else {\n this.textureManager.gc();\n }\n }\n gcRenderTextureMemory(aggressive = false) {\n if (aggressive && this.root.visible) {\n this.root.visible = false;\n this.ctx.freeUnusedRenderTextures(0);\n this.root.visible = true;\n } else {\n this.ctx.freeUnusedRenderTextures(0);\n }\n }\n getDrawingCanvas() {\n return this.platform.getDrawingCanvas();\n }\n update() {\n this.ctx.update();\n }\n addServiceProvider(serviceprovider) {\n if (Utils$1.isSpark) {\n this.platform.addServiceProvider(serviceprovider);\n }\n }\n getChildrenByPosition(x, y) {\n const children = [];\n this.root.core.update();\n this.root.core.collectAtCoord(x, y, children);\n return children;\n }\n}\nclass Application extends Component {\n constructor(options = {}, properties) {\n Application._temp_options = options;\n Application.booting = true;\n const stage = new Stage(options.stage);\n super(stage, properties);\n Application.booting = false;\n this.__updateFocusCounter = 0;\n this.__keypressTimers = /* @__PURE__ */ new Map();\n this.__hoveredChild = null;\n this.stage.init();\n this.updateFocusSettings();\n this.__keymap = this.getOption(\"keys\");\n if (this.__keymap) {\n this.stage.platform.registerKeydownHandler((e) => {\n this._receiveKeydown(e);\n });\n this.stage.platform.registerKeyupHandler((e) => {\n this._receiveKeyup(e);\n });\n }\n if (this.getOption(\"enablePointer\")) {\n this.stage.platform.registerClickHandler((e) => {\n this._receiveClick(e);\n });\n this.stage.platform.registerHoverHandler((e) => {\n this._receiveHover(e);\n });\n this.stage.platform.registerScrollWheelHandler((e) => {\n this._recieveScrollWheel(e);\n });\n this.cursor = \"default\";\n }\n }\n getOption(name) {\n return this.__options[name];\n }\n _setOptions(o) {\n this.__options = {};\n let opt = (name, def) => {\n let value = o[name];\n if (value === void 0) {\n this.__options[name] = def;\n } else {\n this.__options[name] = value;\n }\n };\n opt(\"debug\", false);\n opt(\"keys\", {\n 38: \"Up\",\n 40: \"Down\",\n 37: \"Left\",\n 39: \"Right\",\n 13: \"Enter\",\n 8: \"Back\",\n 27: \"Exit\"\n });\n opt(\"enablePointer\", false);\n }\n __construct() {\n this.stage.setApplication(this);\n this._setOptions(Application._temp_options);\n delete Application._temp_options;\n super.__construct();\n }\n __init() {\n super.__init();\n this.__updateFocus();\n }\n updateFocusPath() {\n this.__updateFocus();\n }\n __updateFocus() {\n const notOverridden = this.__updateFocusRec();\n if (!Application.booting && notOverridden) {\n this.updateFocusSettings();\n }\n }\n __updateFocusRec() {\n const updateFocusId = ++this.__updateFocusCounter;\n this.__updateFocusId = updateFocusId;\n const newFocusPath = this.__getFocusPath();\n const newFocusedComponent = newFocusPath[newFocusPath.length - 1];\n const prevFocusedComponent = this._focusPath ? this._focusPath[this._focusPath.length - 1] : void 0;\n if (!prevFocusedComponent) {\n this._focusPath = [];\n for (let i = 0, n = newFocusPath.length; i < n; i++) {\n this._focusPath.push(newFocusPath[i]);\n this._focusPath[i]._focus(newFocusedComponent, void 0);\n const focusOverridden = this.__updateFocusId !== updateFocusId;\n if (focusOverridden) {\n return false;\n }\n }\n return true;\n } else {\n let m = Math.min(this._focusPath.length, newFocusPath.length);\n let index;\n for (index = 0; index < m; index++) {\n if (this._focusPath[index] !== newFocusPath[index]) {\n break;\n }\n }\n if (this._focusPath.length !== newFocusPath.length || index !== newFocusPath.length) {\n if (this.getOption(\"debug\")) {\n console.log(\"[Lightning] Focus changed: \" + newFocusedComponent.getLocationString());\n }\n for (let i = this._focusPath.length - 1; i >= index; i--) {\n const unfocusedElement = this._focusPath.pop();\n unfocusedElement._unfocus(newFocusedComponent, prevFocusedComponent);\n const focusOverridden = this.__updateFocusId !== updateFocusId;\n if (focusOverridden) {\n return false;\n }\n }\n for (let i = index, n = newFocusPath.length; i < n; i++) {\n this._focusPath.push(newFocusPath[i]);\n this._focusPath[i]._focus(newFocusedComponent, prevFocusedComponent);\n const focusOverridden = this.__updateFocusId !== updateFocusId;\n if (focusOverridden) {\n return false;\n }\n }\n for (let i = 0; i < index; i++) {\n this._focusPath[i]._focusChange(newFocusedComponent, prevFocusedComponent);\n }\n }\n }\n return true;\n }\n updateFocusSettings() {\n const focusedComponent = this._focusPath[this._focusPath.length - 1];\n const focusSettings = {};\n const defaultSetFocusSettings = Component.prototype._setFocusSettings;\n for (let i = 0, n = this._focusPath.length; i < n; i++) {\n if (this._focusPath[i]._setFocusSettings !== defaultSetFocusSettings) {\n this._focusPath[i]._setFocusSettings(focusSettings);\n }\n }\n const defaultHandleFocusSettings = Component.prototype._handleFocusSettings;\n for (let i = 0, n = this._focusPath.length; i < n; i++) {\n if (this._focusPath[i]._handleFocusSettings !== defaultHandleFocusSettings) {\n this._focusPath[i]._handleFocusSettings(focusSettings, this.__prevFocusSettings, focusedComponent);\n }\n }\n this.__prevFocusSettings = focusSettings;\n }\n _handleFocusSettings(settings, prevSettings, focused, prevFocused) {\n }\n __getFocusPath() {\n const path = [this];\n let current = this;\n do {\n const nextFocus = current._getFocused();\n if (!nextFocus || nextFocus === current) {\n break;\n }\n let ptr = nextFocus.cparent;\n if (ptr === current) {\n path.push(nextFocus);\n } else {\n const newParts = [nextFocus];\n do {\n if (!ptr) {\n current._throwError(\"Return value for _getFocused must be an attached descendant component but its '\" + nextFocus.getLocationString() + \"'\");\n }\n newParts.push(ptr);\n ptr = ptr.cparent;\n } while (ptr !== current);\n for (let i = 0, n = newParts.length; i < n; i++) {\n path.push(newParts[n - i - 1]);\n }\n }\n current = nextFocus;\n } while (true);\n return path;\n }\n get focusPath() {\n return this._focusPath;\n }\n focusTopDownEvent(events, ...args) {\n const path = this.focusPath;\n const n = path.length;\n for (let i = 0; i < n; i++) {\n const event = path[i]._getMostSpecificHandledMember(events);\n if (event !== void 0) {\n const returnValue = path[i][event](...args);\n if (returnValue !== false) {\n return true;\n }\n }\n }\n return false;\n }\n focusBottomUpEvent(events, ...args) {\n const path = this.focusPath;\n const n = path.length;\n for (let i = n - 1; i >= 0; i--) {\n const event = path[i]._getMostSpecificHandledMember(events);\n if (event !== void 0) {\n const returnValue = path[i][event](...args);\n if (returnValue !== false) {\n return true;\n }\n }\n }\n return false;\n }\n _receiveKeydown(e) {\n const obj = e;\n const key = this.__keymap[e.keyCode];\n const path = this.focusPath;\n let keys;\n if (key) {\n keys = Array.isArray(key) ? key : [key];\n }\n if (keys) {\n for (let i = 0, n = keys.length; i < n; i++) {\n const hasTimer = this.__keypressTimers.has(keys[i]);\n if (path[path.length - 1].longpress && hasTimer) {\n return;\n }\n if (!this.stage.application.focusTopDownEvent([`_capture${keys[i]}`, \"_captureKey\"], obj)) {\n this.stage.application.focusBottomUpEvent([`_handle${keys[i]}`, \"_handleKey\"], obj);\n }\n }\n } else {\n if (!this.stage.application.focusTopDownEvent([\"_captureKey\"], obj)) {\n this.stage.application.focusBottomUpEvent([\"_handleKey\"], obj);\n }\n }\n this.updateFocusPath();\n const consumer = path[path.length - 1];\n if (keys && consumer.longpress) {\n for (let i = 0, n = keys.length; i < n; i++) {\n this._startLongpressTimer(keys[i], consumer);\n }\n }\n }\n _receiveKeyup(e) {\n const obj = e;\n const key = this.__keymap[e.keyCode];\n let keys;\n if (key) {\n keys = Array.isArray(key) ? key : [key];\n }\n if (keys) {\n for (let i = 0, n = keys.length; i < n; i++) {\n if (!this.stage.application.focusTopDownEvent([`_capture${keys[i]}Release`, \"_captureKeyRelease\"], obj)) {\n this.stage.application.focusBottomUpEvent([`_handle${keys[i]}Release`, \"_handleKeyRelease\"], obj);\n }\n }\n } else {\n if (!this.stage.application.focusTopDownEvent([\"_captureKeyRelease\"], obj)) {\n this.stage.application.focusBottomUpEvent([\"_handleKeyRelease\"], obj);\n }\n }\n this.updateFocusPath();\n if (keys) {\n for (let i = 0, n = keys.length; i < n; i++) {\n if (this.__keypressTimers.has(keys[i])) {\n clearTimeout(this.__keypressTimers.get(keys[i]));\n this.__keypressTimers.delete(keys[i]);\n }\n }\n }\n }\n _startLongpressTimer(key, element) {\n const config = element.longpress;\n const lookup = key.toLowerCase();\n if (config[lookup]) {\n const timeout = config[lookup];\n if (!Utils$1.isNumber(timeout)) {\n element._throwError(\"config value for longpress must be a number\");\n } else {\n this.__keypressTimers.set(key, setTimeout(() => {\n if (!this.stage.application.focusTopDownEvent([`_capture${key}Long`, \"_captureKey\"], {})) {\n this.stage.application.focusBottomUpEvent([`_handle${key}Long`, \"_handleKey\"], {});\n }\n this.__keypressTimers.delete(key);\n }, timeout || 500));\n }\n }\n return;\n }\n _recieveScrollWheel(e) {\n const obj = e;\n const { clientX, clientY } = obj;\n if (clientX <= this.stage.w && clientY <= this.stage.h) {\n if (!this.fireTopDownScrollWheelHandler(\"_captureScroll\", obj)) {\n this.fireBottomUpScrollWheelHandler(\"_handleScroll\", obj);\n }\n }\n }\n fireTopDownScrollWheelHandler(event, obj) {\n let children = this.stage.application.children;\n let affected = this._findChildren([], children).reverse();\n let n = affected.length;\n while (n--) {\n const child = affected[n];\n if (child && child[event]) {\n child._captureScroll(obj);\n return true;\n }\n }\n return false;\n }\n fireBottomUpScrollWheelHandler(event, obj) {\n const { clientX, clientY } = obj;\n const target = this._getTargetChild(clientX, clientY);\n let child = target;\n while (child !== null) {\n if (child && child[event]) {\n child._handleScroll(obj);\n return true;\n }\n child = child.parent;\n }\n return false;\n }\n _receiveClick(e) {\n const obj = e;\n const { clientX, clientY } = obj;\n if (clientX <= this.stage.w && clientY <= this.stage.h) {\n this.stage.application.fireBottomUpClickHandler(obj);\n }\n }\n fireBottomUpClickHandler(obj) {\n const { clientX, clientY } = obj;\n const target = this._getTargetChild(clientX, clientY);\n const precision = this.stage.getRenderPrecision() / this.stage.getOption(\"devicePixelRatio\");\n let child = target;\n while (child !== null) {\n if (child && child[\"_handleClick\"]) {\n const { px, py } = child.core._worldContext;\n const cx = px * precision;\n const cy = py * precision;\n const localCoords = {\n x: clientX - cx,\n y: clientY - cy\n };\n const returnValue = child._handleClick(target, localCoords);\n if (returnValue !== false) {\n break;\n }\n }\n child = child.parent;\n }\n }\n _receiveHover(e) {\n const obj = e;\n const { clientX, clientY } = obj;\n if (clientX <= this.stage.w && clientY <= this.stage.h) {\n this.stage.application.fireBottomUpHoverHandler(obj);\n }\n }\n fireBottomUpHoverHandler(obj) {\n const { clientX, clientY } = obj;\n const target = this._getTargetChild(clientX, clientY);\n if (target !== this.__hoveredChild) {\n let hoveredBranch = /* @__PURE__ */ new Set();\n let newHoveredBranch = /* @__PURE__ */ new Set();\n if (target) {\n newHoveredBranch = new Set(target.getAncestors());\n }\n if (this.__hoveredChild) {\n hoveredBranch = new Set(this.__hoveredChild.getAncestors());\n for (const elem of [...hoveredBranch].filter((e) => !newHoveredBranch.has(e))) {\n const c = Component.getComponent(elem);\n if (c[\"_handleUnhover\"]) {\n c._handleUnhover(elem);\n }\n if (elem.parent && elem.parent.cursor) {\n this.stage.getCanvas().style.cursor = elem.parent.cursor;\n }\n }\n }\n this.__hoveredChild = target;\n const diffBranch = [...newHoveredBranch].filter((e) => !hoveredBranch.has(e));\n for (const elem of diffBranch) {\n const c = Component.getComponent(elem);\n if (c[\"_handleHover\"]) {\n c._handleHover(elem);\n }\n }\n const lastElement = diffBranch[0];\n if (lastElement && lastElement.cursor) {\n this.stage.getCanvas().style.cursor = lastElement.cursor;\n }\n if (diffBranch.length === 0 && target) {\n const c = Component.getComponent(target);\n if (c[\"_handleHover\"]) {\n c._handleHover(target);\n }\n }\n }\n }\n _getTargetChild(clientX, clientY) {\n let children = this.stage.application.children;\n let affected = this._findChildren([], children);\n let hoverableChildren = this._withinClickableRange(affected, clientX, clientY);\n hoverableChildren.sort((a, b) => {\n if (a.zIndex > b.zIndex) {\n return 1;\n } else if (a.zIndex < b.zIndex) {\n return -1;\n } else {\n return a.id > b.id ? 1 : -1;\n }\n });\n if (hoverableChildren.length) {\n return hoverableChildren.slice(-1)[0];\n } else {\n return null;\n }\n }\n _findChildren(bucket, children) {\n let n = children.length;\n while (n--) {\n const child = children[n];\n if (child.__active && child.collision) {\n if (child.collision === true) {\n bucket.push(child);\n }\n if (child.hasChildren()) {\n this._findChildren(bucket, child.children);\n }\n }\n }\n return bucket;\n }\n _withinClickableRange(affectedChildren, cursorX, cursorY) {\n let n = affectedChildren.length;\n const candidates = [];\n while (n--) {\n const child = affectedChildren[n];\n const precision = this.stage.getRenderPrecision() / this.stage.getOption(\"devicePixelRatio\");\n const ctx = child.core._worldContext;\n const cx = ctx.px * precision;\n const cy = ctx.py * precision;\n const cw = child.finalW * ctx.ta * precision;\n const ch = child.finalH * ctx.td * precision;\n if (cx > this.stage.w || cy > this.stage.h) {\n continue;\n }\n if (child.parent.core._scissor) {\n const scissor = child.parent.core._scissor.map((v) => v * precision);\n if (!this._testCollision(cursorX, cursorY, ...scissor))\n continue;\n }\n if (this._testCollision(cursorX, cursorY, cx, cy, cw, ch)) {\n candidates.push(child);\n }\n }\n return candidates;\n }\n _testCollision(px, py, cx, cy, cw, ch) {\n if (px >= cx && px <= cx + cw && py >= cy && py <= cy + ch) {\n return true;\n }\n return false;\n }\n destroy() {\n if (!this._destroyed) {\n this._destroy();\n this.stage.destroy();\n this._destroyed = true;\n }\n }\n _destroy() {\n this.stage.setApplication(void 0);\n this._updateAttachedFlag();\n this._updateEnabledFlag();\n if (this.__keypressTimers.size) {\n for (const timer of this.__keypressTimers.values()) {\n clearTimeout(timer);\n }\n this.__keypressTimers.clear();\n }\n }\n getCanvas() {\n return this.stage.getCanvas();\n }\n}\nclass StaticCanvasTexture extends Texture {\n constructor(stage) {\n super(stage);\n this._factory = void 0;\n this._lookupId = void 0;\n }\n set content({ factory, lookupId = void 0 }) {\n this._factory = factory;\n this._lookupId = lookupId;\n this._changed();\n }\n _getIsValid() {\n return !!this._factory;\n }\n _getLookupId() {\n return this._lookupId;\n }\n _getSourceLoader() {\n const f = this._factory;\n return (cb) => {\n return f((err, canvas) => {\n if (err) {\n return cb(err);\n }\n cb(null, this.stage.platform.getTextureOptionsForDrawingCanvas(canvas));\n }, this.stage);\n };\n }\n}\nclass Tools {\n static getCanvasTexture(canvasFactory, lookupId) {\n return { type: StaticCanvasTexture, content: { factory: canvasFactory, lookupId } };\n }\n static getRoundRect(w, h, radius, strokeWidth, strokeColor, fill, fillColor) {\n if (!Array.isArray(radius)) {\n radius = [radius, radius, radius, radius];\n }\n let factory = (cb, stage) => {\n if (Utils$1.isSpark) {\n stage.platform.createRoundRect(cb, stage, w, h, radius, strokeWidth, strokeColor, fill, fillColor);\n } else {\n cb(null, this.createRoundRect(stage, w, h, radius, strokeWidth, strokeColor, fill, fillColor));\n }\n };\n let id = \"rect\" + [w, h, strokeWidth, strokeColor, fill ? 1 : 0, fillColor].concat(radius).join(\",\");\n return Tools.getCanvasTexture(factory, id);\n }\n static createRoundRect(stage, w, h, radius, strokeWidth, strokeColor, fill, fillColor) {\n if (fill === void 0)\n fill = true;\n if (strokeWidth === void 0)\n strokeWidth = 0;\n let canvas = stage.platform.getDrawingCanvas();\n let ctx = canvas.getContext(\"2d\");\n ctx.imageSmoothingEnabled = true;\n canvas.width = w + strokeWidth + 2;\n canvas.height = h + strokeWidth + 2;\n ctx.beginPath();\n let x = 0.5 * strokeWidth + 1, y = 0.5 * strokeWidth + 1;\n ctx.moveTo(x + radius[0], y);\n ctx.lineTo(x + w - radius[1], y);\n ctx.arcTo(x + w, y, x + w, y + radius[1], radius[1]);\n ctx.lineTo(x + w, y + h - radius[2]);\n ctx.arcTo(x + w, y + h, x + w - radius[2], y + h, radius[2]);\n ctx.lineTo(x + radius[3], y + h);\n ctx.arcTo(x, y + h, x, y + h - radius[3], radius[3]);\n ctx.lineTo(x, y + radius[0]);\n ctx.arcTo(x, y, x + radius[0], y, radius[0]);\n ctx.closePath();\n if (fill) {\n if (Utils$1.isNumber(fillColor)) {\n ctx.fillStyle = StageUtils.getRgbaString(fillColor);\n } else {\n ctx.fillStyle = \"white\";\n }\n ctx.fill();\n }\n if (strokeWidth) {\n if (Utils$1.isNumber(strokeColor)) {\n ctx.strokeStyle = StageUtils.getRgbaString(strokeColor);\n } else {\n ctx.strokeStyle = \"white\";\n }\n ctx.lineWidth = strokeWidth;\n ctx.stroke();\n }\n return canvas;\n }\n static getShadowRect(w, h, radius = 0, blur = 5, margin = blur * 2) {\n if (!Array.isArray(radius)) {\n radius = [radius, radius, radius, radius];\n }\n let factory = (cb, stage) => {\n if (Utils$1.isSpark) {\n stage.platform.createShadowRect(cb, stage, w, h, radius, blur, margin);\n } else {\n cb(null, this.createShadowRect(stage, w, h, radius, blur, margin));\n }\n };\n let id = \"shadow\" + [w, h, blur, margin].concat(radius).join(\",\");\n return Tools.getCanvasTexture(factory, id);\n }\n static createShadowRect(stage, w, h, radius, blur, margin) {\n let canvas = stage.platform.getDrawingCanvas();\n let ctx = canvas.getContext(\"2d\");\n ctx.imageSmoothingEnabled = true;\n canvas.width = w + margin * 2;\n canvas.height = h + margin * 2;\n ctx.globalAlpha = 0.01;\n ctx.fillRect(0, 0, 0.01, 0.01);\n ctx.globalAlpha = 1;\n ctx.shadowColor = StageUtils.getRgbaString(4294967295);\n ctx.fillStyle = StageUtils.getRgbaString(4294967295);\n ctx.shadowBlur = blur;\n ctx.shadowOffsetX = w + 10 + margin;\n ctx.shadowOffsetY = margin;\n ctx.beginPath();\n const x = -(w + 10);\n const y = 0;\n ctx.moveTo(x + radius[0], y);\n ctx.lineTo(x + w - radius[1], y);\n ctx.arcTo(x + w, y, x + w, y + radius[1], radius[1]);\n ctx.lineTo(x + w, y + h - radius[2]);\n ctx.arcTo(x + w, y + h, x + w - radius[2], y + h, radius[2]);\n ctx.lineTo(x + radius[3], y + h);\n ctx.arcTo(x, y + h, x, y + h - radius[3], radius[3]);\n ctx.lineTo(x, y + radius[0]);\n ctx.arcTo(x, y, x + radius[0], y, radius[0]);\n ctx.closePath();\n ctx.fill();\n return canvas;\n }\n static getSvgTexture(url, w, h) {\n let factory = (cb, stage) => {\n if (Utils$1.isSpark) {\n stage.platform.createSvg(cb, stage, url, w, h);\n } else {\n this.createSvg(cb, stage, url, w, h);\n }\n };\n let id = \"svg\" + [w, h, url].join(\",\");\n return Tools.getCanvasTexture(factory, id);\n }\n static createSvg(cb, stage, url, w, h) {\n let canvas = stage.platform.getDrawingCanvas();\n let ctx = canvas.getContext(\"2d\");\n ctx.imageSmoothingEnabled = true;\n let img = new Image();\n img.onload = () => {\n canvas.width = w;\n canvas.height = h;\n ctx.drawImage(img, 0, 0, canvas.width, canvas.height);\n cb(null, canvas);\n };\n img.onError = (err) => {\n cb(err);\n };\n if (!Utils$1.isPS4) {\n img.crossOrigin = \"Anonymous\";\n }\n img.src = url;\n }\n}\nclass ObjMerger {\n static isMf(f) {\n return Utils$1.isFunction(f) && f.__mf;\n }\n static mf(f) {\n f.__mf = true;\n return f;\n }\n static merge(a, b) {\n const aks = Object.keys(a);\n const bks = Object.keys(b);\n if (!bks.length) {\n return a;\n }\n const ai = {};\n const bi = {};\n for (let i = 0, n = bks.length; i < n; i++) {\n const key = bks[i];\n ai[key] = -1;\n bi[key] = i;\n }\n for (let i = 0, n = aks.length; i < n; i++) {\n const key = aks[i];\n ai[key] = i;\n if (bi[key] === void 0) {\n bi[key] = -1;\n }\n }\n const aksl = aks.length;\n const result = {};\n for (let i = 0, n = bks.length; i < n; i++) {\n const key = bks[i];\n const aIndex = ai[key];\n let curIndex2 = aIndex;\n while (--curIndex2 >= 0) {\n const akey = aks[curIndex2];\n if (bi[akey] !== -1) {\n break;\n }\n }\n while (++curIndex2 < aIndex) {\n const akey = aks[curIndex2];\n result[akey] = a[akey];\n }\n const bv = b[key];\n const av = a[key];\n let r;\n if (this.isMf(bv)) {\n r = bv(av);\n } else {\n if (!Utils$1.isObjectLiteral(av) || !Utils$1.isObjectLiteral(bv)) {\n r = bv;\n } else {\n r = ObjMerger.merge(av, bv);\n }\n }\n if (r !== void 0) {\n result[key] = r;\n }\n }\n let curIndex = aksl;\n while (--curIndex >= 0) {\n const akey = aks[curIndex];\n if (bi[akey] !== -1) {\n break;\n }\n }\n while (++curIndex < aksl) {\n const akey = aks[curIndex];\n result[akey] = a[akey];\n }\n return result;\n }\n}\nclass ObjectListProxy extends ObjectList {\n constructor(target) {\n super();\n this._target = target;\n }\n onAdd(item, index) {\n this._target.addAt(item, index);\n }\n onRemove(item, index) {\n this._target.removeAt(index);\n }\n onSync(removed, added, order) {\n this._target._setByArray(order);\n }\n onSet(item, index) {\n this._target.setAt(item, index);\n }\n onMove(item, fromIndex, toIndex) {\n this._target.setAt(item, toIndex);\n }\n createItem(object) {\n return this._target.createItem(object);\n }\n isItem(object) {\n return this._target.isItem(object);\n }\n}\nclass ObjectListWrapper extends ObjectListProxy {\n constructor(target, wrap) {\n super(target);\n this._wrap = wrap;\n }\n wrap(item) {\n let wrapper = this._wrap(item);\n item._wrapper = wrapper;\n return wrapper;\n }\n onAdd(item, index) {\n item = this.wrap(item);\n super.onAdd(item, index);\n }\n onRemove(item, index) {\n super.onRemove(item, index);\n }\n onSync(removed, added, order) {\n added.forEach((a) => this.wrap(a));\n order = order.map((a) => a._wrapper);\n super.onSync(removed, added, order);\n }\n onSet(item, index) {\n item = this.wrap(item);\n super.onSet(item, index);\n }\n onMove(item, fromIndex, toIndex) {\n super.onMove(item, fromIndex, toIndex);\n }\n}\nclass NoiseTexture extends Texture {\n _getLookupId() {\n return \"__noise\";\n }\n _getSourceLoader() {\n const gl = this.stage.gl;\n return function(cb) {\n const noise = new Uint8Array(128 * 128 * 4);\n for (let i = 0; i < 128 * 128 * 4; i += 4) {\n const v = Math.floor(Math.random() * 256);\n noise[i] = v;\n noise[i + 1] = v;\n noise[i + 2] = v;\n noise[i + 3] = 255;\n }\n const texParams = {};\n if (gl) {\n texParams[gl.TEXTURE_WRAP_S] = gl.REPEAT;\n texParams[gl.TEXTURE_WRAP_T] = gl.REPEAT;\n texParams[gl.TEXTURE_MIN_FILTER] = gl.NEAREST;\n texParams[gl.TEXTURE_MAG_FILTER] = gl.NEAREST;\n }\n cb(null, { source: noise, w: 128, h: 128, texParams });\n };\n }\n}\nclass HtmlTexture extends Texture {\n constructor(stage) {\n super(stage);\n this._htmlElement = void 0;\n this._scale = 1;\n }\n set htmlElement(v) {\n this._htmlElement = v;\n this._changed();\n }\n get htmlElement() {\n return this._htmlElement;\n }\n set scale(v) {\n this._scale = v;\n this._changed();\n }\n get scale() {\n return this._scale;\n }\n set html(v) {\n if (!v) {\n this.htmlElement = void 0;\n } else {\n const d = document.createElement(\"div\");\n d.innerHTML = \"
\" + v + \"
\";\n this.htmlElement = d.firstElementChild;\n }\n }\n get html() {\n return this._htmlElement.innerHTML;\n }\n _getIsValid() {\n return this.htmlElement;\n }\n _getLookupId() {\n return this._scale + \":\" + this._htmlElement.innerHTML;\n }\n _getSourceLoader() {\n const htmlElement = this._htmlElement;\n const scale = this._scale;\n return function(cb) {\n if (!window.html2canvas) {\n return cb(new Error(\"Please include html2canvas (https://html2canvas.hertzen.com/)\"));\n }\n const area = HtmlTexture.getPreloadArea();\n area.appendChild(htmlElement);\n html2canvas(htmlElement, { backgroundColor: null, scale }).then(function(canvas) {\n area.removeChild(htmlElement);\n if (canvas.height === 0) {\n return cb(new Error(\"Canvas height is 0\"));\n }\n cb(null, { source: canvas, width: canvas.width, height: canvas.height });\n }).catch((e) => {\n console.error(\"[Lightning]\", e);\n });\n };\n }\n static getPreloadArea() {\n if (!this._preloadArea) {\n this._preloadArea = document.createElement(\"div\");\n if (this._preloadArea.attachShadow) {\n this._preloadArea.attachShadow({ mode: \"closed\" });\n }\n this._preloadArea.style.opacity = 0;\n this._preloadArea.style.pointerEvents = \"none\";\n this._preloadArea.style.position = \"fixed\";\n this._preloadArea.style.display = \"block\";\n this._preloadArea.style.top = \"100vh\";\n this._preloadArea.style.overflow = \"hidden\";\n document.body.appendChild(this._preloadArea);\n }\n return this._preloadArea;\n }\n}\nclass StaticTexture extends Texture {\n constructor(stage, options) {\n super(stage);\n this._options = options;\n }\n set options(v) {\n if (this._options !== v) {\n this._options = v;\n this._changed();\n }\n }\n get options() {\n return this._options;\n }\n _getIsValid() {\n return !!this._options;\n }\n _getSourceLoader() {\n return (cb) => {\n cb(null, this._options);\n };\n }\n}\nclass ListComponent extends Component {\n constructor(stage) {\n super(stage);\n this._wrapper = super._children.a({});\n this._reloadVisibleElements = false;\n this._visibleItems = /* @__PURE__ */ new Set();\n this._index = 0;\n this._started = false;\n this._scrollTransitionSettings = this.stage.transitions.createSettings({});\n this._itemSize = 100;\n this._viewportScrollOffset = 0;\n this._itemScrollOffset = 0;\n this._roll = false;\n this._rollMin = 0;\n this._rollMax = 0;\n this._progressAnimation = null;\n this._invertDirection = false;\n this._horizontal = true;\n this.itemList = new ListItems(this);\n }\n _allowChildrenAccess() {\n return false;\n }\n get items() {\n return this.itemList.get();\n }\n set items(children) {\n this.itemList.patch(children);\n }\n start() {\n this._wrapper.transition(this.property, this._scrollTransitionSettings);\n this._scrollTransition = this._wrapper.transition(this.property);\n this._scrollTransition.on(\"progress\", (p) => this.update());\n this.setIndex(0, true, true);\n this._started = true;\n this.update();\n }\n setIndex(index, immediate = false, closest = false) {\n let nElements = this.length;\n if (!nElements)\n return;\n this.emit(\"unfocus\", this.getElement(this.realIndex), this._index, this.realIndex);\n if (closest) {\n let offset = Utils$1.getModuloIndex(index, nElements);\n let o = Utils$1.getModuloIndex(this.index, nElements);\n let diff = offset - o;\n if (diff > 0.5 * nElements) {\n diff -= nElements;\n } else if (diff < -0.5 * nElements) {\n diff += nElements;\n }\n this._index += diff;\n } else {\n this._index = index;\n }\n if (this._roll || this.viewportSize > this._itemSize * nElements) {\n this._index = Utils$1.getModuloIndex(this._index, nElements);\n }\n let direction = this._horizontal ^ this._invertDirection ? -1 : 1;\n let value = direction * this._index * this._itemSize;\n if (this._roll) {\n let min, max, scrollDelta;\n if (direction == 1) {\n max = (nElements - 1) * this._itemSize;\n scrollDelta = this._viewportScrollOffset * this.viewportSize - this._itemScrollOffset * this._itemSize;\n max -= scrollDelta;\n min = this.viewportSize - (this._itemSize + scrollDelta);\n if (this._rollMin)\n min -= this._rollMin;\n if (this._rollMax)\n max += this._rollMax;\n value = Math.max(Math.min(value, max), min);\n } else {\n max = nElements * this._itemSize - this.viewportSize;\n scrollDelta = this._viewportScrollOffset * this.viewportSize - this._itemScrollOffset * this._itemSize;\n max += scrollDelta;\n let min2 = scrollDelta;\n if (this._rollMin)\n min2 -= this._rollMin;\n if (this._rollMax)\n max += this._rollMax;\n value = Math.min(Math.max(-max, value), -min2);\n }\n }\n this._scrollTransition.start(value);\n if (immediate) {\n this._scrollTransition.finish();\n }\n this.emit(\"focus\", this.getElement(this.realIndex), this._index, this.realIndex);\n }\n getAxisPosition() {\n let target = -this._scrollTransition._targetValue;\n let direction = this._horizontal ^ this._invertDirection ? -1 : 1;\n let value = -direction * this._index * this._itemSize;\n return this._viewportScrollOffset * this.viewportSize + (value - target);\n }\n update() {\n if (!this._started)\n return;\n let nElements = this.length;\n if (!nElements)\n return;\n let direction = this._horizontal ^ this._invertDirection ? -1 : 1;\n let v = this._horizontal ? this._wrapper.x : this._wrapper.y;\n let viewportSize = this.viewportSize;\n let scrollDelta = this._viewportScrollOffset * viewportSize - this._itemScrollOffset * this._itemSize;\n v += scrollDelta;\n let s, e, ps, pe;\n if (direction == -1) {\n s = Math.floor(-v / this._itemSize);\n ps = 1 - (-v / this._itemSize - s);\n e = Math.floor((viewportSize - v) / this._itemSize);\n pe = (viewportSize - v) / this._itemSize - e;\n } else {\n s = Math.ceil(v / this._itemSize);\n ps = 1 + v / this._itemSize - s;\n e = Math.ceil((v - viewportSize) / this._itemSize);\n pe = e - (v - viewportSize) / this._itemSize;\n }\n if (this._roll || viewportSize > this._itemSize * nElements) {\n if (e >= nElements) {\n e = nElements - 1;\n pe = 1;\n }\n if (s >= nElements) {\n s = nElements - 1;\n ps = 1;\n }\n if (e <= -1) {\n e = 0;\n pe = 1;\n }\n if (s <= -1) {\n s = 0;\n ps = 1;\n }\n }\n let offset = -direction * s * this._itemSize;\n let item;\n for (let index = s; direction == -1 ? index <= e : index >= e; direction == -1 ? index++ : index--) {\n let realIndex = Utils$1.getModuloIndex(index, nElements);\n let element = this.getElement(realIndex);\n item = element.parent;\n this._visibleItems.delete(item);\n if (this._horizontal) {\n item.x = offset + scrollDelta;\n } else {\n item.y = offset + scrollDelta;\n }\n let wasVisible = item.visible;\n item.visible = true;\n if (!wasVisible || this._reloadVisibleElements) {\n this.emit(\"visible\", index, realIndex);\n }\n if (this._progressAnimation) {\n let p = 1;\n if (index == s) {\n p = ps;\n } else if (index == e) {\n p = pe;\n }\n this._progressAnimation.apply(element, p);\n }\n offset += this._itemSize;\n }\n let self = this;\n this._visibleItems.forEach(function(invisibleItem) {\n invisibleItem.visible = false;\n self._visibleItems.delete(invisibleItem);\n });\n for (let index = s; direction == -1 ? index <= e : index >= e; direction == -1 ? index++ : index--) {\n let realIndex = Utils$1.getModuloIndex(index, nElements);\n this._visibleItems.add(this.getWrapper(realIndex));\n }\n this._reloadVisibleElements = false;\n }\n setPrevious() {\n this.setIndex(this._index - 1);\n }\n setNext() {\n this.setIndex(this._index + 1);\n }\n getWrapper(index) {\n return this._wrapper.children[index];\n }\n getElement(index) {\n let e = this._wrapper.children[index];\n return e ? e.children[0] : null;\n }\n reload() {\n this._reloadVisibleElements = true;\n this.update();\n }\n get element() {\n let e = this._wrapper.children[this.realIndex];\n return e ? e.children[0] : null;\n }\n get length() {\n return this._wrapper.children.length;\n }\n get property() {\n return this._horizontal ? \"x\" : \"y\";\n }\n get viewportSize() {\n return this._horizontal ? this.w : this.h;\n }\n get index() {\n return this._index;\n }\n get realIndex() {\n return Utils$1.getModuloIndex(this._index, this.length);\n }\n get itemSize() {\n return this._itemSize;\n }\n set itemSize(v) {\n this._itemSize = v;\n this.update();\n }\n get viewportScrollOffset() {\n return this._viewportScrollOffset;\n }\n set viewportScrollOffset(v) {\n this._viewportScrollOffset = v;\n this.update();\n }\n get itemScrollOffset() {\n return this._itemScrollOffset;\n }\n set itemScrollOffset(v) {\n this._itemScrollOffset = v;\n this.update();\n }\n get scrollTransitionSettings() {\n return this._scrollTransitionSettings;\n }\n set scrollTransitionSettings(v) {\n this._scrollTransitionSettings.patch(v);\n }\n set scrollTransition(v) {\n this._scrollTransitionSettings.patch(v);\n }\n get scrollTransition() {\n return this._scrollTransition;\n }\n get progressAnimation() {\n return this._progressAnimation;\n }\n set progressAnimation(v) {\n if (Utils$1.isObjectLiteral(v)) {\n this._progressAnimation = this.stage.animations.createSettings(v);\n } else {\n this._progressAnimation = v;\n }\n this.update();\n }\n get roll() {\n return this._roll;\n }\n set roll(v) {\n this._roll = v;\n this.update();\n }\n get rollMin() {\n return this._rollMin;\n }\n set rollMin(v) {\n this._rollMin = v;\n this.update();\n }\n get rollMax() {\n return this._rollMax;\n }\n set rollMax(v) {\n this._rollMax = v;\n this.update();\n }\n get invertDirection() {\n return this._invertDirection;\n }\n set invertDirection(v) {\n if (!this._started) {\n this._invertDirection = v;\n }\n }\n get horizontal() {\n return this._horizontal;\n }\n set horizontal(v) {\n if (v !== this._horizontal) {\n if (!this._started) {\n this._horizontal = v;\n }\n }\n }\n}\nclass ListItems extends ObjectListWrapper {\n constructor(list) {\n let wrap = (item) => {\n let parent = item.stage.createElement();\n parent.add(item);\n parent.visible = false;\n return parent;\n };\n super(list._wrapper._children, wrap);\n this.list = list;\n }\n onAdd(item, index) {\n super.onAdd(item, index);\n this.checkStarted(index);\n }\n checkStarted(index) {\n this.list._reloadVisibleElements = true;\n if (!this.list._started) {\n this.list.start();\n } else {\n if (this.list.length === 1) {\n this.list.setIndex(0, true, true);\n } else {\n if (this.list._index >= this.list.length) {\n this.list.setIndex(0);\n }\n }\n this.list.update();\n }\n }\n onRemove(item, index) {\n super.onRemove(item, index);\n let ri = this.list.realIndex;\n if (ri === index) {\n if (ri === this.list.length) {\n ri--;\n }\n if (ri >= 0) {\n this.list.setIndex(ri);\n }\n } else if (ri > index) {\n this.list.setIndex(ri - 1);\n }\n this.list._reloadVisibleElements = true;\n }\n onSet(item, index) {\n super.onSet(item, index);\n this.checkStarted(index);\n }\n onSync(removed, added, order) {\n super.onSync(removed, added, order);\n this.checkStarted(0);\n }\n get _signalProxy() {\n return true;\n }\n}\nclass LinearBlurShader extends DefaultShader$1 {\n constructor(context) {\n super(context);\n this._direction = new Float32Array([1, 0]);\n this._kernelRadius = 1;\n }\n get x() {\n return this._direction[0];\n }\n set x(v) {\n this._direction[0] = v;\n this.redraw();\n }\n get y() {\n return this._direction[1];\n }\n set y(v) {\n this._direction[1] = v;\n this.redraw();\n }\n get kernelRadius() {\n return this._kernelRadius;\n }\n set kernelRadius(v) {\n this._kernelRadius = v;\n this.redraw();\n }\n useDefault() {\n return this._kernelRadius === 0;\n }\n setupUniforms(operation) {\n super.setupUniforms(operation);\n this._setUniform(\"direction\", this._direction, this.gl.uniform2fv);\n this._setUniform(\"kernelRadius\", this._kernelRadius, this.gl.uniform1i);\n const w = operation.getRenderWidth();\n const h = operation.getRenderHeight();\n this._setUniform(\"resolution\", new Float32Array([w, h]), this.gl.uniform2fv);\n }\n}\nLinearBlurShader.fragmentShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n uniform vec2 resolution;\n varying vec2 vTextureCoord;\n varying vec4 vColor;\n uniform sampler2D uSampler;\n uniform vec2 direction;\n uniform int kernelRadius;\n \n vec4 blur1(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) {\n vec4 color = vec4(0.0);\n vec2 off1 = vec2(1.3333333333333333) * direction;\n color += texture2D(image, uv) * 0.29411764705882354;\n color += texture2D(image, uv + (off1 / resolution)) * 0.35294117647058826;\n color += texture2D(image, uv - (off1 / resolution)) * 0.35294117647058826;\n return color; \n }\n \n vec4 blur2(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) {\n vec4 color = vec4(0.0);\n vec2 off1 = vec2(1.3846153846) * direction;\n vec2 off2 = vec2(3.2307692308) * direction;\n color += texture2D(image, uv) * 0.2270270270;\n color += texture2D(image, uv + (off1 / resolution)) * 0.3162162162;\n color += texture2D(image, uv - (off1 / resolution)) * 0.3162162162;\n color += texture2D(image, uv + (off2 / resolution)) * 0.0702702703;\n color += texture2D(image, uv - (off2 / resolution)) * 0.0702702703;\n return color;\n }\n \n vec4 blur3(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) {\n vec4 color = vec4(0.0);\n vec2 off1 = vec2(1.411764705882353) * direction;\n vec2 off2 = vec2(3.2941176470588234) * direction;\n vec2 off3 = vec2(5.176470588235294) * direction;\n color += texture2D(image, uv) * 0.1964825501511404;\n color += texture2D(image, uv + (off1 / resolution)) * 0.2969069646728344;\n color += texture2D(image, uv - (off1 / resolution)) * 0.2969069646728344;\n color += texture2D(image, uv + (off2 / resolution)) * 0.09447039785044732;\n color += texture2D(image, uv - (off2 / resolution)) * 0.09447039785044732;\n color += texture2D(image, uv + (off3 / resolution)) * 0.010381362401148057;\n color += texture2D(image, uv - (off3 / resolution)) * 0.010381362401148057;\n return color;\n } \n\n void main(void){\n if (kernelRadius == 1) {\n gl_FragColor = blur1(uSampler, vTextureCoord, resolution, direction) * vColor;\n } else if (kernelRadius == 2) {\n gl_FragColor = blur2(uSampler, vTextureCoord, resolution, direction) * vColor;\n } else {\n gl_FragColor = blur3(uSampler, vTextureCoord, resolution, direction) * vColor;\n }\n }\n`;\nclass BoxBlurShader extends DefaultShader$1 {\n setupUniforms(operation) {\n super.setupUniforms(operation);\n const dx = 1 / operation.getTextureWidth(0);\n const dy = 1 / operation.getTextureHeight(0);\n this._setUniform(\"stepTextureCoord\", new Float32Array([dx, dy]), this.gl.uniform2fv);\n }\n}\nBoxBlurShader.vertexShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n uniform vec2 stepTextureCoord;\n attribute vec2 aVertexPosition;\n attribute vec2 aTextureCoord;\n attribute vec4 aColor;\n uniform vec2 projection;\n varying vec4 vColor;\n varying vec2 vTextureCoordUl;\n varying vec2 vTextureCoordUr;\n varying vec2 vTextureCoordBl;\n varying vec2 vTextureCoordBr;\n void main(void){\n gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0);\n vTextureCoordUl = aTextureCoord - stepTextureCoord;\n vTextureCoordBr = aTextureCoord + stepTextureCoord;\n vTextureCoordUr = vec2(vTextureCoordBr.x, vTextureCoordUl.y);\n vTextureCoordBl = vec2(vTextureCoordUl.x, vTextureCoordBr.y);\n vColor = aColor;\n gl_Position.y = -sign(projection.y) * gl_Position.y;\n }\n`;\nBoxBlurShader.fragmentShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n varying vec2 vTextureCoordUl;\n varying vec2 vTextureCoordUr;\n varying vec2 vTextureCoordBl;\n varying vec2 vTextureCoordBr;\n varying vec4 vColor;\n uniform sampler2D uSampler;\n void main(void){\n vec4 color = 0.25 * (texture2D(uSampler, vTextureCoordUl) + texture2D(uSampler, vTextureCoordUr) + texture2D(uSampler, vTextureCoordBl) + texture2D(uSampler, vTextureCoordBr));\n gl_FragColor = color * vColor;\n }\n`;\nclass BlurShader extends DefaultShader2 {\n constructor(context) {\n super(context);\n this._kernelRadius = 1;\n }\n get kernelRadius() {\n return this._kernelRadius;\n }\n set kernelRadius(v) {\n this._kernelRadius = v;\n this.redraw();\n }\n useDefault() {\n return this._amount === 0;\n }\n _beforeDrawEl({ target }) {\n target.ctx.filter = \"blur(\" + this._kernelRadius + \"px)\";\n }\n _afterDrawEl({ target }) {\n target.ctx.filter = \"none\";\n }\n}\nclass FastBlurComponent extends Component {\n static _template() {\n return {};\n }\n get wrap() {\n return this.tag(\"Wrap\");\n }\n set content(v) {\n return this.wrap.content = v;\n }\n get content() {\n return this.wrap.content;\n }\n set padding(v) {\n this.wrap._paddingX = v;\n this.wrap._paddingY = v;\n this.wrap._updateBlurSize();\n }\n set paddingX(v) {\n this.wrap._paddingX = v;\n this.wrap._updateBlurSize();\n }\n set paddingY(v) {\n this.wrap._paddingY = v;\n this.wrap._updateBlurSize();\n }\n set amount(v) {\n return this.wrap.amount = v;\n }\n get amount() {\n return this.wrap.amount;\n }\n _onResize() {\n this.wrap.w = this.renderWidth;\n this.wrap.h = this.renderHeight;\n }\n get _signalProxy() {\n return true;\n }\n _build() {\n this.patch({\n Wrap: { type: this.stage.gl ? WebGLFastBlurComponent : C2dFastBlurComponent }\n });\n }\n}\nclass C2dFastBlurComponent extends Component {\n static _template() {\n return {\n forceZIndexContext: true,\n rtt: true,\n Textwrap: { shader: { type: BlurShader }, Content: {} }\n };\n }\n constructor(stage) {\n super(stage);\n this._textwrap = this.sel(\"Textwrap\");\n this._wrapper = this.sel(\"Textwrap>Content\");\n this._amount = 0;\n this._paddingX = 0;\n this._paddingY = 0;\n }\n static getSpline() {\n if (!this._multiSpline) {\n this._multiSpline = new MultiSpline();\n this._multiSpline.parse(false, { 0: 0, 0.25: 1.5, 0.5: 5.5, 0.75: 18, 1: 39 });\n }\n return this._multiSpline;\n }\n get content() {\n return this.sel(\"Textwrap>Content\");\n }\n set content(v) {\n this.sel(\"Textwrap>Content\").patch(v, true);\n }\n set padding(v) {\n this._paddingX = v;\n this._paddingY = v;\n this._updateBlurSize();\n }\n set paddingX(v) {\n this._paddingX = v;\n this._updateBlurSize();\n }\n set paddingY(v) {\n this._paddingY = v;\n this._updateBlurSize();\n }\n _updateBlurSize() {\n let w = this.renderWidth;\n let h = this.renderHeight;\n let paddingX = this._paddingX;\n let paddingY = this._paddingY;\n this._wrapper.x = paddingX;\n this._textwrap.x = -paddingX;\n this._wrapper.y = paddingY;\n this._textwrap.y = -paddingY;\n this._textwrap.w = w + paddingX * 2;\n this._textwrap.h = h + paddingY * 2;\n }\n get amount() {\n return this._amount;\n }\n set amount(v) {\n this._amount = v;\n this._textwrap.shader.kernelRadius = C2dFastBlurComponent._amountToKernelRadius(v);\n }\n static _amountToKernelRadius(v) {\n return C2dFastBlurComponent.getSpline().getValue(Math.min(1, v * 0.25));\n }\n get _signalProxy() {\n return true;\n }\n}\nclass WebGLFastBlurComponent extends Component {\n static _template() {\n const onUpdate = function(element, elementCore) {\n if (elementCore._recalc & 2 + 128) {\n const w = elementCore.w;\n const h = elementCore.h;\n let cur = elementCore;\n do {\n cur = cur._children[0];\n cur._element.w = w;\n cur._element.h = h;\n } while (cur._children);\n }\n };\n return {\n Textwrap: { rtt: true, forceZIndexContext: true, renderOffscreen: true, Content: {} },\n Layers: {\n L0: { rtt: true, onUpdate, renderOffscreen: true, visible: false, Content: { shader: { type: BoxBlurShader } } },\n L1: { rtt: true, onUpdate, renderOffscreen: true, visible: false, Content: { shader: { type: BoxBlurShader } } },\n L2: { rtt: true, onUpdate, renderOffscreen: true, visible: false, Content: { shader: { type: BoxBlurShader } } },\n L3: { rtt: true, onUpdate, renderOffscreen: true, visible: false, Content: { shader: { type: BoxBlurShader } } }\n },\n Result: { shader: { type: FastBlurOutputShader }, visible: false }\n };\n }\n get _signalProxy() {\n return true;\n }\n constructor(stage) {\n super(stage);\n this._textwrap = this.sel(\"Textwrap\");\n this._wrapper = this.sel(\"Textwrap>Content\");\n this._layers = this.sel(\"Layers\");\n this._output = this.sel(\"Result\");\n this._amount = 0;\n this._paddingX = 0;\n this._paddingY = 0;\n }\n _buildLayers() {\n const filterShaderSettings = [{ x: 1, y: 0, kernelRadius: 1 }, { x: 0, y: 1, kernelRadius: 1 }, { x: 1.5, y: 0, kernelRadius: 1 }, { x: 0, y: 1.5, kernelRadius: 1 }];\n const filterShaders = filterShaderSettings.map((s) => {\n const shader = Shader.create(this.stage, Object.assign({ type: LinearBlurShader }, s));\n return shader;\n });\n this._setLayerTexture(this.getLayerContents(0), this._textwrap.getTexture(), []);\n this._setLayerTexture(this.getLayerContents(1), this.getLayer(0).getTexture(), [filterShaders[0], filterShaders[1]]);\n this._setLayerTexture(this.getLayerContents(2), this.getLayer(1).getTexture(), [filterShaders[0], filterShaders[1], filterShaders[2], filterShaders[3]]);\n this._setLayerTexture(this.getLayerContents(3), this.getLayer(2).getTexture(), [filterShaders[0], filterShaders[1], filterShaders[2], filterShaders[3]]);\n }\n _setLayerTexture(element, texture, steps) {\n if (!steps.length) {\n element.texture = texture;\n } else {\n const step = steps.pop();\n const child = element.stage.c({ rtt: true, shader: step });\n this._setLayerTexture(child, texture, steps);\n element.childList.add(child);\n }\n return element;\n }\n get content() {\n return this.sel(\"Textwrap>Content\");\n }\n set content(v) {\n this.sel(\"Textwrap>Content\").patch(v, true);\n }\n set padding(v) {\n this._paddingX = v;\n this._paddingY = v;\n this._updateBlurSize();\n }\n set paddingX(v) {\n this._paddingX = v;\n this._updateBlurSize();\n }\n set paddingY(v) {\n this._paddingY = v;\n this._updateBlurSize();\n }\n getLayer(i) {\n return this._layers.sel(\"L\" + i);\n }\n getLayerContents(i) {\n return this.getLayer(i).sel(\"Content\");\n }\n _onResize() {\n this._updateBlurSize();\n }\n _updateBlurSize() {\n let w = this.renderWidth;\n let h = this.renderHeight;\n let paddingX = this._paddingX;\n let paddingY = this._paddingY;\n let fw = w + paddingX * 2;\n let fh = h + paddingY * 2;\n this._textwrap.w = fw;\n this._wrapper.x = paddingX;\n this.getLayer(0).w = this.getLayerContents(0).w = fw / 2;\n this.getLayer(1).w = this.getLayerContents(1).w = fw / 4;\n this.getLayer(2).w = this.getLayerContents(2).w = fw / 8;\n this.getLayer(3).w = this.getLayerContents(3).w = fw / 16;\n this._output.x = -paddingX;\n this._textwrap.x = -paddingX;\n this._output.w = fw;\n this._textwrap.h = fh;\n this._wrapper.y = paddingY;\n this.getLayer(0).h = this.getLayerContents(0).h = fh / 2;\n this.getLayer(1).h = this.getLayerContents(1).h = fh / 4;\n this.getLayer(2).h = this.getLayerContents(2).h = fh / 8;\n this.getLayer(3).h = this.getLayerContents(3).h = fh / 16;\n this._output.y = -paddingY;\n this._textwrap.y = -paddingY;\n this._output.h = fh;\n this.w = w;\n this.h = h;\n }\n set amount(v) {\n this._amount = v;\n this._update();\n }\n get amount() {\n return this._amount;\n }\n _update() {\n let v = Math.min(4, Math.max(0, this._amount));\n if (v === 0) {\n this._textwrap.renderToTexture = false;\n this._output.shader.otherTextureSource = null;\n this._output.visible = false;\n } else {\n this._textwrap.renderToTexture = true;\n this._output.visible = true;\n this.getLayer(0).visible = v > 0;\n this.getLayer(1).visible = v > 1;\n this.getLayer(2).visible = v > 2;\n this.getLayer(3).visible = v > 3;\n if (v <= 1) {\n this._output.texture = this._textwrap.getTexture();\n this._output.shader.otherTextureSource = this.getLayer(0).getTexture();\n this._output.shader.a = v;\n } else if (v <= 2) {\n this._output.texture = this.getLayer(0).getTexture();\n this._output.shader.otherTextureSource = this.getLayer(1).getTexture();\n this._output.shader.a = v - 1;\n } else if (v <= 3) {\n this._output.texture = this.getLayer(1).getTexture();\n this._output.shader.otherTextureSource = this.getLayer(2).getTexture();\n this._output.shader.a = v - 2;\n } else if (v <= 4) {\n this._output.texture = this.getLayer(2).getTexture();\n this._output.shader.otherTextureSource = this.getLayer(3).getTexture();\n this._output.shader.a = v - 3;\n }\n }\n }\n set shader(s) {\n super.shader = s;\n if (!this.renderToTexture) {\n console.warn(\"[Lightning] Please enable renderToTexture to use with a shader.\");\n }\n }\n _firstActive() {\n this._buildLayers();\n }\n}\nclass FastBlurOutputShader extends DefaultShader$1 {\n constructor(ctx) {\n super(ctx);\n this._a = 0;\n this._otherTextureSource = null;\n }\n get a() {\n return this._a;\n }\n set a(v) {\n this._a = v;\n this.redraw();\n }\n set otherTextureSource(v) {\n this._otherTextureSource = v;\n this.redraw();\n }\n setupUniforms(operation) {\n super.setupUniforms(operation);\n this._setUniform(\"a\", this._a, this.gl.uniform1f);\n this._setUniform(\"uSampler2\", 1, this.gl.uniform1i);\n }\n beforeDraw(operation) {\n let glTexture = this._otherTextureSource ? this._otherTextureSource.nativeTexture : null;\n let gl = this.gl;\n gl.activeTexture(gl.TEXTURE1);\n gl.bindTexture(gl.TEXTURE_2D, glTexture);\n gl.activeTexture(gl.TEXTURE0);\n }\n}\nFastBlurOutputShader.fragmentShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n varying vec2 vTextureCoord;\n varying vec4 vColor;\n uniform sampler2D uSampler;\n uniform sampler2D uSampler2;\n uniform float a;\n void main(void){\n if (a == 1.0) {\n gl_FragColor = texture2D(uSampler2, vTextureCoord) * vColor;\n } else {\n gl_FragColor = ((1.0 - a) * texture2D(uSampler, vTextureCoord) + (a * texture2D(uSampler2, vTextureCoord))) * vColor;\n }\n }\n`;\nclass BloomComponent extends Component {\n static _template() {\n const onUpdate = function(element, elementCore) {\n if (elementCore._recalc & 2 + 128) {\n const w = elementCore.w;\n const h = elementCore.h;\n let cur = elementCore;\n do {\n cur = cur._children[0];\n cur._element.w = w;\n cur._element.h = h;\n } while (cur._children);\n }\n };\n return {\n Textwrap: {\n rtt: true,\n forceZIndexContext: true,\n renderOffscreen: true,\n BloomBase: {\n shader: { type: BloomBaseShader },\n Content: {}\n }\n },\n Layers: {\n L0: { rtt: true, onUpdate, scale: 2, pivot: 0, visible: false, Content: { shader: { type: BoxBlurShader } } },\n L1: { rtt: true, onUpdate, scale: 4, pivot: 0, visible: false, Content: { shader: { type: BoxBlurShader } } },\n L2: { rtt: true, onUpdate, scale: 8, pivot: 0, visible: false, Content: { shader: { type: BoxBlurShader } } },\n L3: { rtt: true, onUpdate, scale: 16, pivot: 0, visible: false, Content: { shader: { type: BoxBlurShader } } }\n }\n };\n }\n get _signalProxy() {\n return true;\n }\n constructor(stage) {\n super(stage);\n this._textwrap = this.sel(\"Textwrap\");\n this._wrapper = this.sel(\"Textwrap.Content\");\n this._layers = this.sel(\"Layers\");\n this._amount = 0;\n this._paddingX = 0;\n this._paddingY = 0;\n }\n _build() {\n const filterShaderSettings = [{ x: 1, y: 0, kernelRadius: 3 }, { x: 0, y: 1, kernelRadius: 3 }, { x: 1.5, y: 0, kernelRadius: 3 }, { x: 0, y: 1.5, kernelRadius: 3 }];\n const filterShaders = filterShaderSettings.map((s) => {\n const shader = this.stage.createShader(Object.assign({ type: LinearBlurShader }, s));\n return shader;\n });\n this._setLayerTexture(this.getLayerContents(0), this._textwrap.getTexture(), []);\n this._setLayerTexture(this.getLayerContents(1), this.getLayer(0).getTexture(), [filterShaders[0], filterShaders[1]]);\n this._setLayerTexture(this.getLayerContents(2), this.getLayer(1).getTexture(), [filterShaders[0], filterShaders[1], filterShaders[2], filterShaders[3]]);\n this._setLayerTexture(this.getLayerContents(3), this.getLayer(2).getTexture(), [filterShaders[0], filterShaders[1], filterShaders[2], filterShaders[3]]);\n }\n _setLayerTexture(element, texture, steps) {\n if (!steps.length) {\n element.texture = texture;\n } else {\n const step = steps.pop();\n const child = element.stage.c({ rtt: true, shader: step });\n this._setLayerTexture(child, texture, steps);\n element.childList.add(child);\n }\n return element;\n }\n get content() {\n return this.sel(\"Textwrap.Content\");\n }\n set content(v) {\n this.sel(\"Textwrap.Content\").patch(v);\n }\n set padding(v) {\n this._paddingX = v;\n this._paddingY = v;\n this._updateBlurSize();\n }\n set paddingX(v) {\n this._paddingX = v;\n this._updateBlurSize();\n }\n set paddingY(v) {\n this._paddingY = v;\n this._updateBlurSize();\n }\n getLayer(i) {\n return this._layers.sel(\"L\" + i);\n }\n getLayerContents(i) {\n return this.getLayer(i).sel(\"Content\");\n }\n _onResize() {\n this._updateBlurSize();\n }\n _updateBlurSize() {\n let w = this.renderWidth;\n let h = this.renderHeight;\n let paddingX = this._paddingX;\n let paddingY = this._paddingY;\n let fw = w + paddingX * 2;\n let fh = h + paddingY * 2;\n this._textwrap.w = fw;\n this._wrapper.x = paddingX;\n this.getLayer(0).w = this.getLayerContents(0).w = fw / 2;\n this.getLayer(1).w = this.getLayerContents(1).w = fw / 4;\n this.getLayer(2).w = this.getLayerContents(2).w = fw / 8;\n this.getLayer(3).w = this.getLayerContents(3).w = fw / 16;\n this._textwrap.x = -paddingX;\n this._textwrap.h = fh;\n this._wrapper.y = paddingY;\n this.getLayer(0).h = this.getLayerContents(0).h = fh / 2;\n this.getLayer(1).h = this.getLayerContents(1).h = fh / 4;\n this.getLayer(2).h = this.getLayerContents(2).h = fh / 8;\n this.getLayer(3).h = this.getLayerContents(3).h = fh / 16;\n this._textwrap.y = -paddingY;\n this.w = w;\n this.h = h;\n }\n set amount(v) {\n this._amount = v;\n this._update();\n }\n get amount() {\n return this._amount;\n }\n _update() {\n let v = Math.min(4, Math.max(0, this._amount));\n if (v > 0) {\n this.getLayer(0).visible = v > 0;\n this.getLayer(1).visible = v > 1;\n this.getLayer(2).visible = v > 2;\n this.getLayer(3).visible = v > 3;\n }\n }\n set shader(s) {\n super.shader = s;\n if (!this.renderToTexture) {\n console.warn(\"[Lightning] Please enable renderToTexture to use with a shader.\");\n }\n }\n _firstActive() {\n this._build();\n }\n}\nclass BloomBaseShader extends DefaultShader$1 {\n}\nBloomBaseShader.fragmentShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n varying vec2 vTextureCoord;\n varying vec4 vColor;\n uniform sampler2D uSampler;\n void main(void){\n vec4 color = texture2D(uSampler, vTextureCoord) * vColor;\n float m = max(max(color.r, color.g), color.b);\n float c = max(0.0, (m - 0.80)) * 5.0;\n color = color * c;\n gl_FragColor = color;\n }\n`;\nclass SmoothScaleComponent extends Component {\n static _template() {\n return {\n ContentWrap: {\n renderOffscreen: true,\n forceZIndexContext: true,\n onAfterUpdate: SmoothScaleComponent._updateDimensions,\n Content: {}\n },\n Scale: { visible: false }\n };\n }\n constructor(stage) {\n super(stage);\n this._smoothScale = 1;\n this._iterations = 0;\n }\n get content() {\n return this.tag(\"Content\");\n }\n set content(v) {\n this.tag(\"Content\").patch(v, true);\n }\n get smoothScale() {\n return this._smoothScale;\n }\n set smoothScale(v) {\n if (this._smoothScale !== v) {\n let its = 0;\n while (v < 0.5 && its < 12) {\n its++;\n v = v * 2;\n }\n this.scale = v;\n this._setIterations(its);\n this._smoothScale = v;\n }\n }\n _setIterations(its) {\n if (this._iterations !== its) {\n const scalers = this.sel(\"Scale\").childList;\n const content = this.sel(\"ContentWrap\");\n while (scalers.length < its) {\n const first = scalers.length === 0;\n const texture = first ? content.getTexture() : scalers.last.getTexture();\n scalers.a({ rtt: true, renderOffscreen: true, texture });\n }\n SmoothScaleComponent._updateDimensions(this.tag(\"ContentWrap\"), true);\n const useScalers = its > 0;\n this.patch({\n ContentWrap: { renderToTexture: useScalers },\n Scale: { visible: useScalers }\n });\n for (let i = 0, n = scalers.length; i < n; i++) {\n scalers.getAt(i).patch({\n visible: i < its,\n renderOffscreen: i !== its - 1\n });\n }\n this._iterations = its;\n }\n }\n static _updateDimensions(contentWrap, force) {\n const content = contentWrap.children[0];\n let w = content.renderWidth;\n let h = content.renderHeight;\n if (w !== contentWrap.w || h !== contentWrap.h || force) {\n contentWrap.w = w;\n contentWrap.h = h;\n const scalers = contentWrap.parent.tag(\"Scale\").children;\n for (let i = 0, n = scalers.length; i < n; i++) {\n w = w * 0.5;\n h = h * 0.5;\n scalers[i].w = w;\n scalers[i].h = h;\n }\n }\n }\n get _signalProxy() {\n return true;\n }\n}\nclass BorderComponent extends Component {\n static _template() {\n return {\n Content: {},\n Borders: {\n Top: { rect: true, visible: false, mountY: 1 },\n Right: { rect: true, visible: false },\n Bottom: { rect: true, visible: false },\n Left: { rect: true, visible: false, mountX: 1 }\n }\n };\n }\n get _signalProxy() {\n return true;\n }\n constructor(stage) {\n super(stage);\n this._borderTop = this.tag(\"Top\");\n this._borderRight = this.tag(\"Right\");\n this._borderBottom = this.tag(\"Bottom\");\n this._borderLeft = this.tag(\"Left\");\n this.onAfterUpdate = function(element) {\n const content = element.childList.first;\n let w = element.core.w || content.renderWidth;\n let h = element.core.h || content.renderHeight;\n element._borderTop.w = w;\n element._borderBottom.y = h;\n element._borderBottom.w = w;\n element._borderLeft.h = h + element._borderTop.h + element._borderBottom.h;\n element._borderLeft.y = -element._borderTop.h;\n element._borderRight.x = w;\n element._borderRight.h = h + element._borderTop.h + element._borderBottom.h;\n element._borderRight.y = -element._borderTop.h;\n };\n this.borderWidth = 1;\n }\n get content() {\n return this.sel(\"Content\");\n }\n set content(v) {\n this.sel(\"Content\").patch(v, true);\n }\n get borderWidth() {\n return this.borderWidthTop;\n }\n get borderWidthTop() {\n return this._borderTop.h;\n }\n get borderWidthRight() {\n return this._borderRight.w;\n }\n get borderWidthBottom() {\n return this._borderBottom.h;\n }\n get borderWidthLeft() {\n return this._borderLeft.w;\n }\n set borderWidth(v) {\n this.borderWidthTop = v;\n this.borderWidthRight = v;\n this.borderWidthBottom = v;\n this.borderWidthLeft = v;\n }\n set borderWidthTop(v) {\n this._borderTop.h = v;\n this._borderTop.visible = v > 0;\n }\n set borderWidthRight(v) {\n this._borderRight.w = v;\n this._borderRight.visible = v > 0;\n }\n set borderWidthBottom(v) {\n this._borderBottom.h = v;\n this._borderBottom.visible = v > 0;\n }\n set borderWidthLeft(v) {\n this._borderLeft.w = v;\n this._borderLeft.visible = v > 0;\n }\n get colorBorder() {\n return this.colorBorderTop;\n }\n get colorBorderTop() {\n return this._borderTop.color;\n }\n get colorBorderRight() {\n return this._borderRight.color;\n }\n get colorBorderBottom() {\n return this._borderBottom.color;\n }\n get colorBorderLeft() {\n return this._borderLeft.color;\n }\n set colorBorder(v) {\n this.colorBorderTop = v;\n this.colorBorderRight = v;\n this.colorBorderBottom = v;\n this.colorBorderLeft = v;\n }\n set colorBorderTop(v) {\n this._borderTop.color = v;\n }\n set colorBorderRight(v) {\n this._borderRight.color = v;\n }\n set colorBorderBottom(v) {\n this._borderBottom.color = v;\n }\n set colorBorderLeft(v) {\n this._borderLeft.color = v;\n }\n get borderTop() {\n return this._borderTop;\n }\n set borderTop(settings) {\n this.borderTop.patch(settings);\n }\n get borderRight() {\n return this._borderRight;\n }\n set borderRight(settings) {\n this.borderRight.patch(settings);\n }\n get borderBottom() {\n return this._borderBottom;\n }\n set borderBottom(settings) {\n this.borderBottom.patch(settings);\n }\n get borderLeft() {\n return this._borderLeft;\n }\n set borderLeft(settings) {\n this.borderLeft.patch(settings);\n }\n set borders(settings) {\n this.borderTop = settings;\n this.borderLeft = settings;\n this.borderBottom = settings;\n this.borderRight = settings;\n }\n}\nclass WebGLGrayscaleShader extends DefaultShader$1 {\n constructor(context) {\n super(context);\n this._amount = 1;\n }\n static getC2d() {\n return C2dGrayscaleShader;\n }\n set amount(v) {\n this._amount = v;\n this.redraw();\n }\n get amount() {\n return this._amount;\n }\n useDefault() {\n return this._amount === 0;\n }\n setupUniforms(operation) {\n super.setupUniforms(operation);\n this._setUniform(\"amount\", this._amount, this.gl.uniform1f);\n }\n}\nWebGLGrayscaleShader.fragmentShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n varying vec2 vTextureCoord;\n varying vec4 vColor;\n uniform sampler2D uSampler;\n uniform float amount;\n void main(void){\n vec4 color = texture2D(uSampler, vTextureCoord) * vColor;\n float grayness = 0.2 * color.r + 0.6 * color.g + 0.2 * color.b;\n gl_FragColor = vec4(amount * vec3(grayness, grayness, grayness) + (1.0 - amount) * color.rgb, color.a);\n }\n`;\nclass C2dGrayscaleShader extends DefaultShader2 {\n constructor(context) {\n super(context);\n this._amount = 1;\n }\n static getWebGL() {\n return WebGLGrayscaleShader;\n }\n set amount(v) {\n this._amount = v;\n this.redraw();\n }\n get amount() {\n return this._amount;\n }\n useDefault() {\n return this._amount === 0;\n }\n _beforeDrawEl({ target }) {\n target.ctx.filter = \"grayscale(\" + this._amount + \")\";\n }\n _afterDrawEl({ target }) {\n target.ctx.filter = \"none\";\n }\n}\nclass DitheringShader extends DefaultShader$1 {\n constructor(ctx) {\n super(ctx);\n this._noiseTexture = new NoiseTexture(ctx.stage);\n this._graining = 1 / 256;\n this._random = false;\n }\n set graining(v) {\n this._graining = v;\n this.redraw();\n }\n set random(v) {\n this._random = v;\n this.redraw();\n }\n setExtraAttribsInBuffer(operation) {\n this._noiseTexture.load();\n let offset = operation.extraAttribsDataByteOffset / 4;\n let floats = operation.quads.floats;\n let length = operation.length;\n for (let i = 0; i < length; i++) {\n let brx = operation.getElementWidth(i) / this._noiseTexture.getRenderWidth();\n let bry = operation.getElementHeight(i) / this._noiseTexture.getRenderHeight();\n let ulx = 0;\n let uly = 0;\n if (this._random) {\n ulx = Math.random();\n uly = Math.random();\n brx += ulx;\n bry += uly;\n if (Math.random() < 0.5) {\n const t = ulx;\n ulx = brx;\n brx = t;\n }\n if (Math.random() < 0.5) {\n const t = uly;\n uly = bry;\n bry = t;\n }\n }\n floats[offset] = ulx;\n floats[offset + 1] = uly;\n floats[offset + 2] = brx;\n floats[offset + 3] = uly;\n floats[offset + 4] = brx;\n floats[offset + 5] = bry;\n floats[offset + 6] = ulx;\n floats[offset + 7] = bry;\n offset += 8;\n }\n }\n beforeDraw(operation) {\n let gl = this.gl;\n gl.vertexAttribPointer(this._attrib(\"aNoiseTextureCoord\"), 2, gl.FLOAT, false, 8, this.getVertexAttribPointerOffset(operation));\n let glTexture = this._noiseTexture.source.nativeTexture;\n gl.activeTexture(gl.TEXTURE1);\n gl.bindTexture(gl.TEXTURE_2D, glTexture);\n gl.activeTexture(gl.TEXTURE0);\n }\n getExtraAttribBytesPerVertex() {\n return 8;\n }\n setupUniforms(operation) {\n super.setupUniforms(operation);\n this._setUniform(\"uNoiseSampler\", 1, this.gl.uniform1i);\n this._setUniform(\"graining\", 2 * this._graining, this.gl.uniform1f);\n }\n enableAttribs() {\n super.enableAttribs();\n let gl = this.gl;\n gl.enableVertexAttribArray(this._attrib(\"aNoiseTextureCoord\"));\n }\n disableAttribs() {\n super.disableAttribs();\n let gl = this.gl;\n gl.disableVertexAttribArray(this._attrib(\"aNoiseTextureCoord\"));\n }\n useDefault() {\n return this._graining === 0;\n }\n afterDraw(operation) {\n if (this._random) {\n this.redraw();\n }\n }\n}\nDitheringShader.vertexShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n attribute vec2 aVertexPosition;\n attribute vec2 aTextureCoord;\n attribute vec2 aNoiseTextureCoord;\n attribute vec4 aColor;\n uniform vec2 projection;\n varying vec2 vTextureCoord;\n varying vec2 vNoiseTextureCoord;\n varying vec4 vColor;\n void main(void){\n gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n vNoiseTextureCoord = aNoiseTextureCoord;\n vColor = aColor;\n gl_Position.y = -sign(projection.y) * gl_Position.y;\n }\n`;\nDitheringShader.fragmentShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n varying vec2 vTextureCoord;\n varying vec2 vNoiseTextureCoord;\n varying vec4 vColor;\n uniform sampler2D uSampler;\n uniform sampler2D uNoiseSampler;\n uniform float graining;\n void main(void){\n vec4 noise = texture2D(uNoiseSampler, vNoiseTextureCoord);\n vec4 color = texture2D(uSampler, vTextureCoord);\n gl_FragColor = (color * vColor) + graining * (noise.r - 0.5);\n }\n`;\nclass CircularPushShader extends DefaultShader$1 {\n constructor(ctx) {\n super(ctx);\n this._inputValue = 0;\n this._maxDerivative = 0.01;\n this._normalizedValue = 0;\n this._offset = 0;\n this._amount = 0.1;\n this._aspectRatio = 1;\n this._offsetX = 0;\n this._offsetY = 0;\n this.buckets = 100;\n }\n get aspectRatio() {\n return this._aspectRatio;\n }\n set aspectRatio(v) {\n this._aspectRatio = v;\n this.redraw();\n }\n get offsetX() {\n return this._offsetX;\n }\n set offsetX(v) {\n this._offsetX = v;\n this.redraw();\n }\n get offsetY() {\n return this._offsetY;\n }\n set offsetY(v) {\n this._offsetY = v;\n this.redraw();\n }\n set amount(v) {\n this._amount = v;\n this.redraw();\n }\n get amount() {\n return this._amount;\n }\n set inputValue(v) {\n this._inputValue = v;\n }\n get inputValue() {\n return this._inputValue;\n }\n set maxDerivative(v) {\n this._maxDerivative = v;\n }\n get maxDerivative() {\n return this._maxDerivative;\n }\n set buckets(v) {\n if (v > 100) {\n console.warn(\"[Lightning] CircularPushShader: supports max 100 buckets\");\n v = 100;\n }\n this._buckets = v;\n this._values = new Uint8Array(this._getValues(v));\n this.redraw();\n }\n get buckets() {\n return this._buckets;\n }\n _getValues(n) {\n const v = [];\n for (let i = 0; i < n; i++) {\n v.push(this._inputValue);\n }\n return v;\n }\n progress(o) {\n this._offset += o * this._buckets;\n const full = Math.floor(this._offset);\n this._offset -= full;\n this._shiftBuckets(full);\n this.redraw();\n }\n _shiftBuckets(n) {\n for (let i = this._buckets - 1; i >= 0; i--) {\n const targetIndex = i - n;\n if (targetIndex < 0) {\n this._normalizedValue = Math.min(this._normalizedValue + this._maxDerivative, Math.max(this._normalizedValue - this._maxDerivative, this._inputValue));\n this._values[i] = 255 * this._normalizedValue;\n } else {\n this._values[i] = this._values[targetIndex];\n }\n }\n }\n set offset(v) {\n this._offset = v;\n this.redraw();\n }\n setupUniforms(operation) {\n super.setupUniforms(operation);\n this._setUniform(\"aspectRatio\", this._aspectRatio, this.gl.uniform1f);\n this._setUniform(\"offsetX\", this._offsetX, this.gl.uniform1f);\n this._setUniform(\"offsetY\", this._offsetY, this.gl.uniform1f);\n this._setUniform(\"amount\", this._amount, this.gl.uniform1f);\n this._setUniform(\"offset\", this._offset, this.gl.uniform1f);\n this._setUniform(\"buckets\", this._buckets, this.gl.uniform1f);\n this._setUniform(\"uValueSampler\", 1, this.gl.uniform1i);\n }\n useDefault() {\n return this._amount === 0;\n }\n beforeDraw(operation) {\n const gl = this.gl;\n gl.activeTexture(gl.TEXTURE1);\n if (!this._valuesTexture) {\n this._valuesTexture = gl.createTexture();\n gl.bindTexture(gl.TEXTURE_2D, this._valuesTexture);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);\n if (Utils$1.isNode) {\n gl.pixelStorei(gl.UNPACK_FLIP_BLUE_RED, false);\n }\n gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, false);\n } else {\n gl.bindTexture(gl.TEXTURE_2D, this._valuesTexture);\n }\n gl.texImage2D(gl.TEXTURE_2D, 0, gl.ALPHA, this._buckets, 1, 0, gl.ALPHA, gl.UNSIGNED_BYTE, this._values);\n gl.activeTexture(gl.TEXTURE0);\n }\n cleanup() {\n if (this._valuesTexture) {\n this.gl.deleteTexture(this._valuesTexture);\n }\n }\n}\nCircularPushShader.vertexShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n attribute vec2 aVertexPosition;\n attribute vec2 aTextureCoord;\n attribute vec4 aColor;\n uniform vec2 projection;\n uniform float offsetX;\n uniform float offsetY;\n uniform float aspectRatio;\n varying vec2 vTextureCoord;\n varying vec2 vPos;\n varying vec4 vColor;\n void main(void){\n gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n vPos = vTextureCoord * 2.0 - 1.0;\n vPos.y = vPos.y * aspectRatio;\n vPos.y = vPos.y + offsetY;\n vPos.x = vPos.x + offsetX;\n vColor = aColor;\n gl_Position.y = -sign(projection.y) * gl_Position.y;\n }\n`;\nCircularPushShader.fragmentShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n varying vec2 vTextureCoord;\n varying vec4 vColor;\n varying vec2 vPos;\n uniform float amount;\n uniform float offset;\n uniform float values[100];\n uniform float buckets;\n uniform sampler2D uSampler;\n uniform sampler2D uValueSampler;\n void main(void){\n float l = length(vPos);\n float m = (l * buckets * 0.678 - offset) / buckets;\n float f = texture2D(uValueSampler, vec2(m, 0.0)).a * amount;\n vec2 unit = vPos / l;\n gl_FragColor = texture2D(uSampler, vTextureCoord - f * unit) * vColor;\n }\n`;\nclass InversionShader extends DefaultShader$1 {\n constructor(context) {\n super(context);\n this._amount = 1;\n }\n set amount(v) {\n this._amount = v;\n this.redraw();\n }\n get amount() {\n return this._amount;\n }\n useDefault() {\n return this._amount === 0;\n }\n setupUniforms(operation) {\n super.setupUniforms(operation);\n this._setUniform(\"amount\", this._amount, this.gl.uniform1f);\n }\n}\nInversionShader.fragmentShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n varying vec2 vTextureCoord;\n varying vec4 vColor;\n uniform sampler2D uSampler;\n uniform float amount;\n void main(void){\n vec4 color = texture2D(uSampler, vTextureCoord);\n color.rgb = color.rgb * (1.0 - amount) + amount * (1.0 * color.a - color.rgb); \n gl_FragColor = color * vColor;\n }\n`;\nclass OutlineShader extends DefaultShader$1 {\n constructor(ctx) {\n super(ctx);\n this._width = 5;\n this._col = 4294967295;\n this._color = [1, 1, 1, 1];\n }\n set width(v) {\n this._width = v;\n this.redraw();\n }\n get color() {\n return this._col;\n }\n set color(v) {\n if (this._col !== v) {\n const col = StageUtils.getRgbaComponentsNormalized(v);\n col[0] = col[0] * col[3];\n col[1] = col[1] * col[3];\n col[2] = col[2] * col[3];\n this._color = col;\n this.redraw();\n this._col = v;\n }\n }\n useDefault() {\n return this._width === 0 || this._col[3] === 0;\n }\n setupUniforms(operation) {\n super.setupUniforms(operation);\n let gl = this.gl;\n this._setUniform(\"color\", new Float32Array(this._color), gl.uniform4fv);\n }\n enableAttribs() {\n super.enableAttribs();\n this.gl.enableVertexAttribArray(this._attrib(\"aCorner\"));\n }\n disableAttribs() {\n super.disableAttribs();\n this.gl.disableVertexAttribArray(this._attrib(\"aCorner\"));\n }\n setExtraAttribsInBuffer(operation) {\n let offset = operation.extraAttribsDataByteOffset / 4;\n let floats = operation.quads.floats;\n let length = operation.length;\n for (let i = 0; i < length; i++) {\n const elementCore = operation.getElementCore(i);\n const ddw = this._width / elementCore.w;\n const dw = ddw / (1 - 2 * ddw);\n const ddh = this._width / elementCore.h;\n const dh = ddh / (1 - 2 * ddh);\n floats[offset] = -dw;\n floats[offset + 1] = -dh;\n floats[offset + 2] = 1 + dw;\n floats[offset + 3] = -dh;\n floats[offset + 4] = 1 + dw;\n floats[offset + 5] = 1 + dh;\n floats[offset + 6] = -dw;\n floats[offset + 7] = 1 + dh;\n offset += 8;\n }\n }\n beforeDraw(operation) {\n let gl = this.gl;\n gl.vertexAttribPointer(this._attrib(\"aCorner\"), 2, gl.FLOAT, false, 8, this.getVertexAttribPointerOffset(operation));\n }\n getExtraAttribBytesPerVertex() {\n return 8;\n }\n}\nOutlineShader.vertexShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n attribute vec2 aVertexPosition;\n attribute vec2 aTextureCoord;\n attribute vec4 aColor;\n attribute vec2 aCorner;\n uniform vec2 projection;\n varying vec2 vTextureCoord;\n varying vec2 vCorner;\n varying vec4 vColor;\n void main(void){\n gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n vCorner = aCorner;\n vColor = aColor;\n gl_Position.y = -sign(projection.y) * gl_Position.y;\n }\n`;\nOutlineShader.fragmentShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n varying vec2 vTextureCoord;\n varying vec4 vColor;\n varying vec2 vCorner;\n uniform vec4 color;\n uniform sampler2D uSampler;\n void main(void){\n vec2 m = min(vCorner, 1.0 - vCorner);\n float value = step(0.0, min(m.x, m.y));\n gl_FragColor = mix(color, texture2D(uSampler, vTextureCoord) * vColor, value);\n }\n`;\nclass PixelateShader extends DefaultShader$1 {\n constructor(ctx) {\n super(ctx);\n this._size = new Float32Array([4, 4]);\n }\n get x() {\n return this._size[0];\n }\n set x(v) {\n this._size[0] = v;\n this.redraw();\n }\n get y() {\n return this._size[1];\n }\n set y(v) {\n this._size[1] = v;\n this.redraw();\n }\n get size() {\n return this._size[0];\n }\n set size(v) {\n this._size[0] = v;\n this._size[1] = v;\n this.redraw();\n }\n useDefault() {\n return this._size[0] === 0 && this._size[1] === 0;\n }\n static getWebGLImpl() {\n return WebGLPixelateShaderImpl;\n }\n setupUniforms(operation) {\n super.setupUniforms(operation);\n let gl = this.gl;\n this._setUniform(\"size\", new Float32Array(this._size), gl.uniform2fv);\n }\n getExtraAttribBytesPerVertex() {\n return 8;\n }\n enableAttribs() {\n super.enableAttribs();\n this.gl.enableVertexAttribArray(this._attrib(\"aTextureRes\"));\n }\n disableAttribs() {\n super.disableAttribs();\n this.gl.disableVertexAttribArray(this._attrib(\"aTextureRes\"));\n }\n setExtraAttribsInBuffer(operation) {\n let offset = operation.extraAttribsDataByteOffset / 4;\n let floats = operation.quads.floats;\n let length = operation.length;\n for (let i = 0; i < length; i++) {\n let w = operation.quads.getTextureWidth(operation.index + i);\n let h = operation.quads.getTextureHeight(operation.index + i);\n floats[offset] = w;\n floats[offset + 1] = h;\n floats[offset + 2] = w;\n floats[offset + 3] = h;\n floats[offset + 4] = w;\n floats[offset + 5] = h;\n floats[offset + 6] = w;\n floats[offset + 7] = h;\n offset += 8;\n }\n }\n beforeDraw(operation) {\n let gl = this.gl;\n gl.vertexAttribPointer(this._attrib(\"aTextureRes\"), 2, gl.FLOAT, false, this.getExtraAttribBytesPerVertex(), this.getVertexAttribPointerOffset(operation));\n }\n}\nPixelateShader.vertexShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n attribute vec2 aVertexPosition;\n attribute vec2 aTextureCoord;\n attribute vec4 aColor;\n attribute vec2 aTextureRes;\n uniform vec2 projection;\n varying vec2 vTextureCoord;\n varying vec4 vColor;\n varying vec2 vTextureRes;\n void main(void){\n gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n vColor = aColor;\n vTextureRes = aTextureRes;\n gl_Position.y = -sign(projection.y) * gl_Position.y;\n }\n`;\nPixelateShader.fragmentShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n varying vec2 vTextureCoord;\n varying vec4 vColor;\n varying vec2 vTextureRes;\n\n uniform vec2 size;\n uniform sampler2D uSampler;\n \n vec2 mapCoord( vec2 coord )\n {\n coord *= vTextureRes.xy;\n return coord;\n }\n \n vec2 unmapCoord( vec2 coord )\n {\n coord /= vTextureRes.xy;\n return coord;\n }\n \n vec2 pixelate(vec2 coord, vec2 size)\n {\n return floor( coord / size ) * size;\n }\n \n void main(void)\n {\n vec2 coord = mapCoord(vTextureCoord);\n coord = pixelate(coord, size);\n coord = unmapCoord(coord);\n gl_FragColor = texture2D(uSampler, coord) * vColor;\n }\n`;\nclass RadialFilterShader extends DefaultShader$1 {\n constructor(context) {\n super(context);\n this._radius = 0;\n this._cutoff = 1;\n }\n set radius(v) {\n this._radius = v;\n this.redraw();\n }\n get radius() {\n return this._radius;\n }\n set cutoff(v) {\n this._cutoff = v;\n this.redraw();\n }\n get cutoff() {\n return this._cutoff;\n }\n useDefault() {\n return this._radius === 0;\n }\n setupUniforms(operation) {\n super.setupUniforms(operation);\n this._setUniform(\"radius\", 2 * (this._radius - 0.5) / operation.getRenderWidth(), this.gl.uniform1f);\n this._setUniform(\"cutoff\", 0.5 * operation.getRenderWidth() / this._cutoff, this.gl.uniform1f);\n }\n}\nRadialFilterShader.vertexShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n attribute vec2 aVertexPosition;\n attribute vec2 aTextureCoord;\n attribute vec4 aColor;\n uniform vec2 projection;\n varying vec2 pos;\n varying vec2 vTextureCoord;\n varying vec4 vColor;\n void main(void){\n gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n vColor = aColor;\n gl_Position.y = -sign(projection.y) * gl_Position.y;\n pos = gl_Position.xy;\n }\n`;\nRadialFilterShader.fragmentShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n varying vec2 vTextureCoord;\n varying vec2 pos;\n varying vec4 vColor;\n uniform sampler2D uSampler;\n uniform float radius;\n uniform float cutoff;\n void main(void){\n vec4 color = texture2D(uSampler, vTextureCoord);\n float f = max(0.0, min(1.0, 1.0 - (length(pos) - radius) * cutoff));\n gl_FragColor = texture2D(uSampler, vTextureCoord) * vColor * f;\n }\n`;\nclass RoundedRectangleShader extends DefaultShader$1 {\n constructor(context) {\n super(context);\n this._blend = 0;\n this._radius = [1, 1, 1, 1];\n this._stroke = 0;\n this._fc = 16777215;\n this._fillColor = this._getNormalizedColor(4294967295);\n this._strokeColor = this._getNormalizedColor(16777215);\n }\n set blend(p) {\n this._blend = Math.min(Math.max(p, 0), 1);\n }\n set radius(v) {\n if (Array.isArray(v)) {\n if (v.length === 2) {\n this._radius = [v[0], v[1], v[0], v[1]];\n } else if (v.length === 3) {\n this._radius = [v[0], v[1], v[2], this._radius[3]];\n } else if (v.length === 4) {\n this._radius = v;\n } else {\n this._radius = [v[0], v[0], v[0], v[0]];\n }\n } else {\n this._radius = [v, v, v, v];\n }\n this.redraw();\n }\n get radius() {\n return this._radius;\n }\n set topLeft(num) {\n this._radius[0] = num;\n this.redraw();\n }\n get topLeft() {\n return this._radius[0];\n }\n set topRight(num) {\n this._radius[1] = num;\n this.redraw();\n }\n get topRight() {\n return this._radius[1];\n }\n set bottomRight(num) {\n this._radius[2] = num;\n this.redraw();\n }\n get bottomRight() {\n return this._radius[2];\n }\n set bottomLeft(num) {\n this._radius[3] = num;\n this.redraw();\n }\n get bottomLeft() {\n return this._radius[4];\n }\n set strokeColor(argb) {\n this._sc = argb;\n this._strokeColor = this._getNormalizedColor(argb);\n this.redraw();\n }\n get strokeColor() {\n return this._sc;\n }\n set fillColor(argb) {\n this._fc = argb;\n this._fillColor = this._getNormalizedColor(argb);\n this.redraw();\n }\n get fillColor() {\n return this._fc;\n }\n set stroke(num) {\n this._stroke = num;\n this.redraw();\n }\n get stroke() {\n return this._stroke;\n }\n _getNormalizedColor(color) {\n const col = StageUtils.getRgbaComponentsNormalized(color);\n col[0] *= col[3];\n col[1] *= col[3];\n col[2] *= col[3];\n return new Float32Array(col);\n }\n setupUniforms(operation) {\n super.setupUniforms(operation);\n const owner = operation.shaderOwner;\n const renderPrecision = this.ctx.stage.getRenderPrecision();\n const _radius = this._radius.map((r) => (r + 0.5) * renderPrecision);\n this._setUniform(\"radius\", new Float32Array(_radius), this.gl.uniform4fv);\n this._setUniform(\"alpha\", operation.getElementCore(0).renderContext.alpha, this.gl.uniform1f);\n this._setUniform(\"blend\", this._blend, this.gl.uniform1f);\n this._setUniform(\"strokeColor\", this._strokeColor, this.gl.uniform4fv);\n this._setUniform(\"fillColor\", this._fillColor, this.gl.uniform4fv);\n this._setUniform(\"stroke\", this._stroke * renderPrecision, this.gl.uniform1f);\n this._setUniform(\"resolution\", new Float32Array([owner._w * renderPrecision, owner._h * renderPrecision]), this.gl.uniform2fv);\n }\n}\nRoundedRectangleShader.vertexShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n attribute vec2 aVertexPosition;\n attribute vec2 aTextureCoord;\n\n attribute vec4 aColor;\n uniform vec2 projection;\n varying vec2 vTextureCoord;\n varying vec4 vColor;\n\n void main(void){\n gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n vColor = aColor;\n gl_Position.y = -sign(projection.y) * gl_Position.y;\n }\n`;\nRoundedRectangleShader.fragmentShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n\n #define PI 3.14159265359\n\n varying vec2 vTextureCoord;\n varying vec4 vColor;\n\n uniform sampler2D uSampler;\n uniform vec2 resolution;\n uniform vec4 radius;\n uniform float stroke;\n uniform vec4 strokeColor;\n uniform vec4 fillColor;\n uniform float alpha;\n uniform float fill;\n uniform float blend;\n \n float boxDist(vec2 p, vec2 size, float radius){\n size -= vec2(radius);\n vec2 d = abs(p) - size;\n return min(max(d.x, d.y), 0.0) + length(max(d, 0.0)) - radius;\n }\n \n float fillMask(float dist){\n return clamp(-dist, 0.0, 1.0);\n }\n \n float innerBorderMask(float dist, float width){\n float alpha1 = clamp(dist + width, 0.0, 1.0);\n float alpha2 = clamp(dist, 0.0, 1.0);\n return alpha1 - alpha2;\n }\n\n void main() {\n vec2 halfRes = 0.5 * resolution.xy;\n float r = 0.0;\n if (vTextureCoord.x < 0.5 && vTextureCoord.y < 0.5) {\n r = radius[0];\n } else if (vTextureCoord.x >= 0.5 && vTextureCoord.y < 0.5) {\n r = radius[1];\n } else if (vTextureCoord.x >= 0.5 && vTextureCoord.y >= 0.5) {\n r = radius[2];\n } else {\n r = radius[3];\n }\n \n float b = boxDist(vTextureCoord.xy * resolution - halfRes, halfRes - 0.005, r);\n vec4 tex = texture2D(uSampler, vTextureCoord) * vColor;\n vec4 blend = mix(vec4(1.0) * alpha, tex, blend); \n vec4 layer1 = mix(vec4(0.0), tex * fillColor, fillMask(b));\n gl_FragColor = mix(layer1, blend * strokeColor, innerBorderMask(b, stroke));\n }\n`;\nclass FadeOutShader extends DefaultShader$1 {\n constructor(context) {\n super(context);\n this._fade = [0, 0, 0, 0];\n }\n set top(num) {\n this._fade[0] = num;\n this.redraw();\n }\n get top() {\n return this._fade[0];\n }\n set right(num) {\n this._fade[1] = num;\n this.redraw();\n }\n get right() {\n return this._fade[1];\n }\n set bottom(num) {\n this._fade[2] = num;\n this.redraw();\n }\n get bottom() {\n return this._fade[2];\n }\n set left(num) {\n this._fade[3] = num;\n this.redraw();\n }\n get left() {\n return this._fade[3];\n }\n set fade(v) {\n if (Array.isArray(v)) {\n if (v.length === 2) {\n this._fade = [v[0], v[1], v[0], v[1]];\n } else if (v.length === 3) {\n this._fade = [v[0], v[1], v[2], this._fade[3]];\n } else if (v.length === 4) {\n this._fade = v;\n } else {\n this._fade = [v[0], v[0], v[0], v[0]];\n }\n } else {\n this._fade = [v, v, v, v];\n }\n this.redraw();\n }\n get fade() {\n return this._fade;\n }\n setupUniforms(operation) {\n super.setupUniforms(operation);\n const owner = operation.shaderOwner;\n const renderPrecision = this.ctx.stage.getRenderPrecision();\n const fade = this._fade.map((f) => f * renderPrecision);\n this._setUniform(\"fade\", new Float32Array(fade), this.gl.uniform4fv);\n this._setUniform(\"resolution\", new Float32Array([owner._w * renderPrecision, owner._h * renderPrecision]), this.gl.uniform2fv);\n }\n}\nFadeOutShader.fragmentShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n varying vec2 vTextureCoord;\n varying vec4 vColor;\n uniform sampler2D uSampler;\n uniform vec2 resolution;\n uniform vec4 fade;\n \n void main() {\n vec4 color = texture2D(uSampler, vTextureCoord) * vColor;\n vec2 halfRes = 0.5 * resolution.xy;\n vec2 point = vTextureCoord.xy * resolution.xy;\n \n vec2 pos1;\n vec2 pos2;\n vec2 d;\n float c;\n float t = 0.0;\n \n if(fade[0] > 0.0) {\n pos1 = vec2(point.x, point.y);\n pos2 = vec2(point.x, point.y + fade[0]);\n d = pos2 - pos1;\n c = dot(pos1, d) / dot(d, d);\n t = smoothstep(0.0, 1.0, clamp(c, 0.0, 1.0));\n color = mix(vec4(0.0), color, t);\n }\n \n if(fade[1] > 0.0) {\n vec2 pos1 = vec2(point.x - resolution.x - fade[1], vTextureCoord.y);\n vec2 pos2 = vec2(point.x - resolution.x, vTextureCoord.y);\n d = pos1 - pos2;\n c = dot(pos2, d) / dot(d, d);\n t = smoothstep(0.0, 1.0, clamp(c, 0.0, 1.0));\n color = mix(vec4(0.0), color, t);\n }\n \n if(fade[2] > 0.0) {\n vec2 pos1 = vec2(vTextureCoord.x, point.y - resolution.y - fade[2]);\n vec2 pos2 = vec2(vTextureCoord.x, point.y - resolution.y);\n d = pos1 - pos2;\n c = dot(pos2, d) / dot(d, d);\n t = smoothstep(0.0, 1.0, clamp(c, 0.0, 1.0));\n color = mix(vec4(0.0), color, t);\n }\n \n if(fade[3] > 0.0) {\n pos1 = vec2(point.x, point.y);\n pos2 = vec2(point.x + fade[3], point.y);\n d = pos2 - pos1;\n c = dot(pos1, d) / dot(d, d);\n t = smoothstep(0.0, 1.0, clamp(c, 0.0, 1.0));\n color = mix(vec4(0.0), color, t);\n }\n \n gl_FragColor = color;\n }\n`;\nclass VignetteShader extends DefaultShader$1 {\n constructor(context) {\n super(context);\n this._magnitude = 1.3;\n this._intensity = 0.7;\n this._pivot = [0.5, 0.5];\n }\n setupUniforms(operation) {\n super.setupUniforms(operation);\n this._setUniform(\"magnitude\", this._magnitude, this.gl.uniform1f);\n this._setUniform(\"intensity\", this._intensity, this.gl.uniform1f);\n this._setUniform(\"pivot\", new Float32Array(this._pivot), this.gl.uniform2fv);\n this.redraw();\n }\n set pivot(v) {\n if (Array.isArray(v)) {\n this._pivot = v;\n } else {\n this._pivot = [v, v];\n }\n this.redraw();\n }\n get pivotX() {\n return this._pivot[0];\n }\n set pivotX(v) {\n this._pivot[0] = v;\n this.redraw();\n }\n get pivotY() {\n return this._pivot[1];\n }\n set pivotY(v) {\n this._pivot[1] = v;\n this.redraw();\n }\n get intensity() {\n return this._intensity;\n }\n set intensity(v) {\n this._intensity = v;\n this.redraw();\n }\n get magnitude() {\n return this._magnitude;\n }\n set magnitude(v) {\n this._magnitude = v;\n this.redraw();\n }\n}\nVignetteShader.vertexShaderSource = DefaultShader$1.vertexShaderSource;\nVignetteShader.fragmentShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n varying vec2 vTextureCoord;\n varying vec4 vColor;\n uniform sampler2D uSampler;\n\n uniform float magnitude;\n uniform float intensity;\n uniform vec2 pivot;\n\n void main() {\n vec2 uv = vTextureCoord.xy - pivot + vec2(0.5);\n uv.x = clamp(uv.x, 0.0, 1.0);\n uv.y = clamp(uv.y, 0.0, 1.0);\n \n uv *= 1.00 - uv.yx;\n float vig = uv.x * uv.y * 25.0 * intensity;\n vig = pow(vig, 0.45 * magnitude);\n vec4 fragColor = vec4(vig) * vColor;\n gl_FragColor = texture2D(uSampler, vTextureCoord) * fragColor;\n\n }\n`;\nclass SpinnerShader extends DefaultShader$1 {\n constructor(ctx) {\n super(ctx);\n this._radius = 100;\n this._width = 50;\n this._period = 1;\n this._angle = 0.5;\n this._smooth = 5e-3;\n this._color = 4294967295;\n this._backgroundColor = 4278190080;\n this._time = Date.now();\n }\n set radius(v) {\n this._radius = v;\n this.redraw();\n }\n set width(v) {\n this._width = v;\n this.redraw();\n }\n set period(v) {\n this._period = v;\n this.redraw();\n }\n set angle(v) {\n this._angle = v;\n this.redraw();\n }\n set smooth(v) {\n this._smooth = v;\n this.redraw();\n }\n set color(v) {\n this._color = v;\n this.redraw();\n }\n set backgroundColor(v) {\n this._backgroundColor = v;\n this.redraw();\n }\n setupUniforms(operation) {\n super.setupUniforms(operation);\n const owner = operation.shaderOwner;\n this._setUniform(\"iTime\", Date.now() - this._time, this.gl.uniform1f);\n const renderPrecision = this.ctx.stage.getRenderPrecision();\n this._setUniform(\"radius\", this._radius * renderPrecision, this.gl.uniform1f);\n this._setUniform(\"width\", this._width * renderPrecision, this.gl.uniform1f);\n this._setUniform(\"period\", this._period, this.gl.uniform1f);\n this._setUniform(\"angle\", this._angle, this.gl.uniform1f);\n this._setUniform(\"smooth\", this._smooth, this.gl.uniform1f);\n this._setUniform(\"color\", new Float32Array(StageUtils.getRgbaComponentsNormalized(this._color)), this.gl.uniform4fv);\n this._setUniform(\"backgroundColor\", new Float32Array(StageUtils.getRgbaComponentsNormalized(this._backgroundColor)), this.gl.uniform4fv);\n this._setUniform(\"resolution\", new Float32Array([owner._w * renderPrecision, owner._h * renderPrecision]), this.gl.uniform2fv);\n this.redraw();\n }\n}\nSpinnerShader.vertexShaderSource = DefaultShader$1.vertexShaderSource;\nSpinnerShader.fragmentShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n varying vec2 vTextureCoord;\n varying vec4 vColor;\n uniform sampler2D uSampler;\n\n uniform float iTime;\n uniform float radius;\n uniform float width;\n uniform float period;\n uniform float angle;\n uniform float smooth;\n uniform vec2 resolution;\n\n uniform vec4 color;\n uniform vec4 backgroundColor;\n\n float ratio = resolution.y / resolution.x;\n\n vec2 transpose_pos(vec2 pos) {\n if (ratio < 1.) {\n float diff = 0.5 - pos.x;\n pos.x = 0.5 - diff / ratio;\n } else {\n float diff = 0.5 - pos.y;\n pos.y = 0.5 - diff * ratio;\n }\n return pos;\n }\n\n float get_angle(vec2 pos) {\n pos = transpose_pos(pos);\n float a = atan(pos.y - 0.5, pos.x - 0.5);\n a = (1.0+a/3.14159)/2.0;\n \n return a;\n }\n\n float dist(vec2 pos1, vec2 pos2) {\n pos1 = transpose_pos(pos1);\n return distance(pos1, pos2);\n }\n\n void main()\n {\n vec2 fragCoord = vTextureCoord;\n vec4 fragColor = vColor;\n \n vec2 st = vTextureCoord;\n float pct = dist(st, vec2(0.5));\n\n float a = get_angle(st);\n float t = iTime / 1000.0 / period;\n\n float inner = max((radius - width) / resolution.x, (radius - width) / resolution.y);\n float outer = max(radius / resolution.x, radius / resolution.y);\n\n float x1 = mod(t, 1.0);\n float x2 = mod(t + angle, 1.0);\n\n if (x1 < x2) {\n if (a > x1 && a < x2) {\n float val = (1.0 - (x2 - a) / angle) * smoothstep(0.0, 3. * smooth, (x2 - a));\n fragColor = mix(backgroundColor, color, val);\n } else {\n fragColor = backgroundColor;\n }\n } else {\n if (a < x2) {\n float val = (1.0 - (x2 - a) / angle) * smoothstep(0.0, 3. * smooth, (x2 - a));\n fragColor = mix(backgroundColor, color, val);\n } else if (a > x1) {\n float val = (1.0 - (1.0 + x2 - a) / angle) * smoothstep(0.0, 3. * smooth, (1.0 + x2 - a));\n fragColor = mix(backgroundColor, color, val);\n } else {\n fragColor = backgroundColor;\n }\n }\n\n float s = smoothstep(inner, inner + smooth + 0.00001, pct) * (1.0 - smoothstep(outer, outer + smooth + 0.00001, pct));\n gl_FragColor = texture2D(uSampler, fragCoord) * vColor * (1. - s * fragColor.a) + fragColor * s;\n }\n`;\nclass HoleShader extends DefaultShader$1 {\n constructor(context) {\n super(context);\n this._x = 0;\n this._y = 0;\n this._w = 0;\n this._h = 0;\n this._radius = 0;\n }\n get x() {\n return this._x;\n }\n set x(v) {\n this._x = v;\n this.redraw();\n }\n get y() {\n return this._y;\n }\n set y(v) {\n this._y = v;\n this.redraw();\n }\n get w() {\n return this._w;\n }\n set w(v) {\n this._w = v;\n this.redraw();\n }\n get h() {\n return this._h;\n }\n set h(v) {\n this._h = v;\n this.redraw();\n }\n get radius() {\n return this._radius;\n }\n set radius(v) {\n this._radius = v;\n this.redraw();\n }\n setupUniforms(operation) {\n super.setupUniforms(operation);\n const owner = operation.shaderOwner;\n const renderPrecision = this.ctx.stage.getRenderPrecision();\n this._setUniform(\"x\", this._x * renderPrecision, this.gl.uniform1f);\n this._setUniform(\"y\", this._y * renderPrecision, this.gl.uniform1f);\n this._setUniform(\"w\", this._w * renderPrecision, this.gl.uniform1f);\n this._setUniform(\"h\", this._h * renderPrecision, this.gl.uniform1f);\n this._setUniform(\"radius\", (this._radius + 0.5) * renderPrecision, this.gl.uniform1f);\n this._setUniform(\"resolution\", new Float32Array([owner._w * renderPrecision, owner._h * renderPrecision]), this.gl.uniform2fv);\n }\n useDefault() {\n return this._x === 0 && this._y === 0 && this._w === 0 && this._h === 0;\n }\n}\nHoleShader.vertexShaderSource = DefaultShader$1.vertexShaderSource;\nHoleShader.fragmentShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n varying vec2 vTextureCoord;\n varying vec4 vColor;\n uniform sampler2D uSampler;\n uniform float x;\n uniform float y;\n uniform float w;\n uniform float h;\n uniform vec2 resolution;\n uniform float radius;\n\n float roundBox(vec2 p, vec2 b, float r) {\n float d = length(max(abs(p)-b+r, 0.1))-r;\n return smoothstep(1.0, 0.0, d);\n }\n\n void main(void){\n vec4 color = texture2D(uSampler, vTextureCoord);\n vec2 pos = vTextureCoord.xy * resolution - vec2(x, y) - vec2(w, h) / 2.0;\n vec2 size = vec2(w, h) / 2.0;\n float b = roundBox(pos, size, radius);\n gl_FragColor = mix(color, vec4(0.0), b) * vColor;\n }\n`;\nclass RadialGradientShader extends DefaultShader$1 {\n constructor(context) {\n super(context);\n this._pivot = [0, 0];\n this._ic = 4294967295;\n this._normalizedIC = this._getNormalizedColor(this._ic);\n this._oc = 16777215;\n this._normalizedOC = this._getNormalizedColor(this._oc);\n this._radius = 0;\n }\n set radiusX(v) {\n this.radius = v;\n }\n get radiusX() {\n return this._radius;\n }\n set radiusY(v) {\n this._radiusY = v;\n this.redraw();\n }\n get radiusY() {\n return this._radiusY;\n }\n set radius(v) {\n this._radius = v;\n this.redraw();\n }\n set innerColor(argb) {\n this._ic = argb;\n this._normalizedIC = this._getNormalizedColor(argb);\n this.redraw();\n }\n get innerColor() {\n return this._ic;\n }\n set outerColor(argb) {\n this._oc = argb;\n this._normalizedOC = this._getNormalizedColor(argb);\n this.redraw();\n }\n set color(argb) {\n this.innerColor = argb;\n }\n get color() {\n return this.innerColor;\n }\n get outerColor() {\n return this._ic;\n }\n set x(f) {\n this._x = f;\n this.redraw();\n }\n set y(f) {\n this._y = f;\n this.redraw();\n }\n set pivot(v) {\n if (Array.isArray(v) && v.length === 2) {\n this._pivot = v;\n } else if (Array.isArray(v)) {\n this._pivot = [v[0], v[1] || v[0]];\n } else {\n this._pivot = [v, v];\n }\n this.redraw();\n }\n get pivot() {\n return this._pivot[0];\n }\n set pivotY(f) {\n this._pivot[1] = f;\n this.redraw();\n }\n get pivotY() {\n return this._pivot[1];\n }\n set pivotX(f) {\n this._pivot[0] = f;\n this.redraw();\n }\n get pivotX() {\n return this._pivot[0];\n }\n _getNormalizedColor(color) {\n const col = StageUtils.getRgbaComponentsNormalized(color);\n col[0] *= col[3];\n col[1] *= col[3];\n col[2] *= col[3];\n return new Float32Array(col);\n }\n setupUniforms(operation) {\n super.setupUniforms(operation);\n const owner = operation.shaderOwner;\n if (this._x) {\n this._pivot[0] = this._x / owner.w;\n }\n if (this._y) {\n this._pivot[1] = this._y / owner.h;\n }\n if (this._radius === 0) {\n this._radius = owner.w * 0.5;\n }\n this._setUniform(\"innerColor\", this._normalizedIC, this.gl.uniform4fv);\n this._setUniform(\"fill\", StageUtils.getRgbaComponentsNormalized(this._oc)[3], this.gl.uniform1f);\n this._setUniform(\"outerColor\", this._normalizedOC, this.gl.uniform4fv);\n this._setUniform(\"pivot\", new Float32Array(this._pivot), this.gl.uniform2fv);\n this._setUniform(\"resolution\", new Float32Array([owner._w, owner._h]), this.gl.uniform2fv);\n this._setUniform(\"alpha\", operation.getElementCore(0).renderContext.alpha, this.gl.uniform1f);\n this._setUniform(\"radius\", this._radius, this.gl.uniform1f);\n this._setUniform(\"radiusY\", this._radiusY || this._radius, this.gl.uniform1f);\n }\n}\nRadialGradientShader.fragmentShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n \n #define PI 3.14159265359\n \n varying vec2 vTextureCoord;\n varying vec4 vColor;\n uniform sampler2D uSampler;\n uniform vec2 resolution;\n uniform vec2 pivot;\n uniform vec4 innerColor;\n uniform vec4 outerColor;\n uniform float radius;\n uniform float radiusY;\n uniform float alpha;\n uniform float fill;\n uniform float aspectRatio;\n \n void main() {\n vec2 point = vTextureCoord.xy * resolution;\n vec2 projection = vec2(pivot.x * resolution.x, pivot.y * resolution.y);\n float d = length((point - projection) / vec2(radius * 2.0, radiusY * 2.0));\n vec4 color = mix(texture2D(uSampler, vTextureCoord) * vColor, outerColor * alpha, fill);\n gl_FragColor = mix(innerColor * alpha, color, smoothstep(0.0, 1.0, d));\n }\n`;\nclass Light3dShader extends DefaultShader$1 {\n constructor(ctx) {\n super(ctx);\n this._strength = 0.5;\n this._ambient = 0.5;\n this._fudge = 0.4;\n this._rx = 0;\n this._ry = 0;\n this._z = 0;\n this._pivotX = NaN;\n this._pivotY = NaN;\n this._pivotZ = 0;\n this._lightY = 0;\n this._lightZ = 0;\n }\n setupUniforms(operation) {\n super.setupUniforms(operation);\n let vr = operation.shaderOwner;\n let element = vr.element;\n let pivotX = isNaN(this._pivotX) ? element.pivotX * vr.w : this._pivotX;\n let pivotY = isNaN(this._pivotY) ? element.pivotY * vr.h : this._pivotY;\n let coords = vr.getRenderTextureCoords(pivotX, pivotY);\n let rz = -Math.atan2(vr._renderContext.tc, vr._renderContext.ta);\n let gl = this.gl;\n this._setUniform(\"pivot\", new Float32Array([coords[0], coords[1], this._pivotZ]), gl.uniform3fv);\n this._setUniform(\"rot\", new Float32Array([this._rx, this._ry, rz]), gl.uniform3fv);\n this._setUniform(\"z\", this._z, gl.uniform1f);\n this._setUniform(\"lightY\", this.lightY, gl.uniform1f);\n this._setUniform(\"lightZ\", this.lightZ, gl.uniform1f);\n this._setUniform(\"strength\", this._strength, gl.uniform1f);\n this._setUniform(\"ambient\", this._ambient, gl.uniform1f);\n this._setUniform(\"fudge\", this._fudge, gl.uniform1f);\n }\n set strength(v) {\n this._strength = v;\n this.redraw();\n }\n get strength() {\n return this._strength;\n }\n set ambient(v) {\n this._ambient = v;\n this.redraw();\n }\n get ambient() {\n return this._ambient;\n }\n set fudge(v) {\n this._fudge = v;\n this.redraw();\n }\n get fudge() {\n return this._fudge;\n }\n get rx() {\n return this._rx;\n }\n set rx(v) {\n this._rx = v;\n this.redraw();\n }\n get ry() {\n return this._ry;\n }\n set ry(v) {\n this._ry = v;\n this.redraw();\n }\n get z() {\n return this._z;\n }\n set z(v) {\n this._z = v;\n this.redraw();\n }\n get pivotX() {\n return this._pivotX;\n }\n set pivotX(v) {\n this._pivotX = v + 1;\n this.redraw();\n }\n get pivotY() {\n return this._pivotY;\n }\n set pivotY(v) {\n this._pivotY = v + 1;\n this.redraw();\n }\n get lightY() {\n return this._lightY;\n }\n set lightY(v) {\n this._lightY = v;\n this.redraw();\n }\n get pivotZ() {\n return this._pivotZ;\n }\n set pivotZ(v) {\n this._pivotZ = v;\n this.redraw();\n }\n get lightZ() {\n return this._lightZ;\n }\n set lightZ(v) {\n this._lightZ = v;\n this.redraw();\n }\n useDefault() {\n return this._rx === 0 && this._ry === 0 && this._z === 0 && this._strength === 0 && this._ambient === 1;\n }\n}\nLight3dShader.vertexShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n attribute vec2 aVertexPosition;\n attribute vec2 aTextureCoord;\n attribute vec4 aColor;\n uniform vec2 projection;\n varying vec2 vTextureCoord;\n varying vec4 vColor;\n\n uniform float fudge;\n uniform float strength;\n uniform float ambient;\n uniform float z;\n uniform float lightY;\n uniform float lightZ;\n uniform vec3 pivot;\n uniform vec3 rot;\n varying vec3 pos;\n\n void main(void) {\n pos = vec3(aVertexPosition.xy, z);\n \n pos -= pivot;\n \n // Undo XY rotation\n mat2 iRotXy = mat2( cos(rot.z), sin(rot.z), \n -sin(rot.z), cos(rot.z));\n pos.xy = iRotXy * pos.xy;\n \n // Perform 3d rotations\n gl_Position.x = cos(rot.x) * pos.x - sin(rot.x) * pos.z;\n gl_Position.y = pos.y;\n gl_Position.z = sin(rot.x) * pos.x + cos(rot.x) * pos.z;\n \n pos.x = gl_Position.x;\n pos.y = cos(rot.y) * gl_Position.y - sin(rot.y) * gl_Position.z;\n pos.z = sin(rot.y) * gl_Position.y + cos(rot.y) * gl_Position.z;\n \n // Redo XY rotation\n iRotXy[0][1] = -iRotXy[0][1];\n iRotXy[1][0] = -iRotXy[1][0];\n pos.xy = iRotXy * pos.xy; \n\n // Undo translate to pivot position\n pos.xyz += pivot;\n\n pos = vec3(pos.x * projection.x - 1.0, pos.y * -abs(projection.y) + 1.0, pos.z * projection.x);\n \n // Set depth perspective\n float perspective = 1.0 + fudge * pos.z;\n\n pos.z += lightZ * projection.x;\n\n // Map coords to gl coordinate space.\n // Set z to 0 because we don't want to perform z-clipping\n gl_Position = vec4(pos.xy, 0.0, perspective);\n\n // Correct light source position.\n pos.y += lightY * abs(projection.y);\n\n vTextureCoord = aTextureCoord;\n vColor = aColor;\n \n gl_Position.y = -sign(projection.y) * gl_Position.y;\n }\n`;\nLight3dShader.fragmentShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n varying vec2 vTextureCoord;\n varying vec4 vColor;\n varying vec3 pos;\n uniform sampler2D uSampler;\n uniform float ambient;\n uniform float strength;\n void main(void){\n vec4 rgba = texture2D(uSampler, vTextureCoord);\n float d = length(pos);\n float n = 1.0 / max(0.1, d);\n rgba.rgb = rgba.rgb * (strength * n + ambient);\n gl_FragColor = rgba * vColor;\n }\n`;\nclass PerspectiveShader extends DefaultShader$1 {\n constructor(ctx) {\n super(ctx);\n this._fudge = 0.2;\n this._rx = 0;\n this._ry = 0;\n this._z = 1;\n }\n setupUniforms(operation) {\n super.setupUniforms(operation);\n const vr = operation.shaderOwner;\n const element = vr.element;\n const pivotX = element.pivotX * vr.w;\n const pivotY = element.pivotY * vr.h;\n const coords = vr.getRenderTextureCoords(pivotX, pivotY);\n const rz = -Math.atan2(vr._renderContext.tc, vr._renderContext.ta);\n const gl = this.gl;\n this._setUniform(\"pivot\", new Float32Array([coords[0], coords[1], 0]), gl.uniform3fv);\n this._setUniform(\"rot\", new Float32Array([this._rx, this._ry, rz]), gl.uniform3fv);\n this._setUniform(\"z\", this._z, gl.uniform1f);\n this._setUniform(\"fudge\", this._fudge, gl.uniform1f);\n }\n set fudge(v) {\n this._fudge = v;\n this.redraw();\n }\n get fudge() {\n return this._fudge;\n }\n get rx() {\n return this._rx;\n }\n set rx(v) {\n this._rx = v;\n this.redraw();\n }\n get ry() {\n return this._ry;\n }\n set ry(v) {\n this._ry = v;\n this.redraw();\n }\n get z() {\n return this._z;\n }\n set z(v) {\n this._z = v;\n this.redraw();\n }\n useDefault() {\n return this._rx === 0 && this._ry === 0 && this._z === 0;\n }\n}\nPerspectiveShader.vertexShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n attribute vec2 aVertexPosition;\n attribute vec2 aTextureCoord;\n attribute vec4 aColor;\n uniform vec2 projection;\n varying vec2 vTextureCoord;\n varying vec4 vColor;\n\n uniform float z;\n uniform vec3 pivot;\n uniform vec3 rot;\n varying vec3 pos;\n\n void main(void) {\n pos = vec3(aVertexPosition.xy, z);\n \n pos -= pivot;\n \n // Undo XY rotation\n mat2 iRotXy = mat2( cos(rot.z), sin(rot.z), \n -sin(rot.z), cos(rot.z));\n pos.xy = iRotXy * pos.xy;\n \n // Perform 3d rotations\n gl_Position.x = cos(rot.x) * pos.x - sin(rot.x) * pos.z;\n gl_Position.y = pos.y;\n gl_Position.z = sin(rot.x) * pos.x + cos(rot.x) * pos.z;\n \n pos.x = gl_Position.x;\n pos.y = cos(rot.y) * gl_Position.y - sin(rot.y) * gl_Position.z;\n pos.z = sin(rot.y) * gl_Position.y + cos(rot.y) * gl_Position.z;\n \n // Redo XY rotation\n iRotXy[0][1] = -iRotXy[0][1];\n iRotXy[1][0] = -iRotXy[1][0];\n pos.xy = iRotXy * pos.xy; \n\n // Undo translate to pivot position\n pos.xyz += pivot;\n\n pos = vec3(pos.x * projection.x - 1.0, pos.y * -abs(projection.y) + 1.0, pos.z * projection.x);\n \n // Map coords to gl coordinate space.\n // Set z to 0 because we don't want to perform z-clipping\n gl_Position = vec4(pos.xy, 0.0, z);\n\n vTextureCoord = aTextureCoord;\n vColor = aColor;\n \n gl_Position.y = -sign(projection.y) * gl_Position.y;\n }\n`;\nPerspectiveShader.fragmentShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n varying vec2 vTextureCoord;\n varying vec4 vColor;\n uniform sampler2D uSampler;\n\n uniform vec3 rot;\n uniform float fudge;\n\n void main(void) {\n vec2 coords = vTextureCoord;\n\n coords.xy -= vec2(0.5);\n coords.y = coords.y + (sign(rot[0]) * 0.5 - coords.x) * sin(rot[0]) * fudge * coords.y;\n coords.x = coords.x + (sign(rot[1]) * 0.5 - coords.y) * sin(rot[1]) * fudge * coords.x;\n coords.xy += vec2(0.5);\n\n if (coords.x < 0.0 || coords.x > 1.0 || coords.y < 0.0 || coords.y > 1.0) {\n gl_FragColor = vec4(0.0);\n } else {\n gl_FragColor = texture2D(uSampler, coords) * vColor;\n }\n }\n`;\nclass MagnifierShader extends DefaultShader$1 {\n constructor(context) {\n super(context);\n this._x = 0;\n this._y = 0;\n this._w = 0;\n this._h = 0;\n this._radius = 0;\n this._magnification = 0.6;\n }\n get x() {\n return this._x;\n }\n set x(v) {\n this._x = v;\n this.redraw();\n }\n get y() {\n return this._y;\n }\n set y(v) {\n this._y = v;\n this.redraw();\n }\n get w() {\n return this._w;\n }\n set w(v) {\n this._w = v;\n this.redraw();\n }\n get h() {\n return this._h;\n }\n set h(v) {\n this._h = v;\n this.redraw();\n }\n get magnification() {\n return this._magnification;\n }\n set magnification(v) {\n this._magnification = v;\n this.redraw();\n }\n get radius() {\n return this._radius;\n }\n set radius(v) {\n this._radius = v;\n this.redraw();\n }\n setupUniforms(operation) {\n super.setupUniforms(operation);\n const owner = operation.shaderOwner;\n const renderPrecision = this.ctx.stage.getRenderPrecision();\n this._setUniform(\"x\", this._x * renderPrecision, this.gl.uniform1f);\n this._setUniform(\"y\", this._y * renderPrecision, this.gl.uniform1f);\n this._setUniform(\"w\", this._w * renderPrecision, this.gl.uniform1f);\n this._setUniform(\"h\", this._h * renderPrecision, this.gl.uniform1f);\n this._setUniform(\"magnification\", this._magnification, this.gl.uniform1f);\n this._setUniform(\n \"radius\",\n (this._radius + 0.5) * renderPrecision,\n this.gl.uniform1f\n );\n this._setUniform(\n \"resolution\",\n new Float32Array([\n owner._w * renderPrecision,\n owner._h * renderPrecision\n ]),\n this.gl.uniform2fv\n );\n }\n useDefault() {\n return this._w === 0 && this._h === 0;\n }\n}\nMagnifierShader.vertexShaderSource = DefaultShader$1.vertexShaderSource;\nMagnifierShader.fragmentShaderSource = `\n\t #ifdef GL_ES\n\t\t# ifdef GL_FRAGMENT_PRECISION_HIGH\n\t\tprecision highp float;\n\t\t# else\n\t\tprecision lowp float;\n\t\t# endif\n\t #endif\n\n\t varying vec2 vTextureCoord;\n\t varying vec4 vColor;\n\t uniform sampler2D uSampler;\n\t uniform float x;\n\t uniform float y;\n\t uniform float w;\n\t uniform float h;\n\t uniform vec2 resolution;\n\t uniform float radius;\n\t uniform float magnification;\n \n\t float roundBox(vec2 p, vec2 b, float r) {\n\t\t float d = length(max(abs(p)-b+r, 0.1))-r;\n\t\t return smoothstep(1.0, 0.0, d);\n\t }\n\n\t float inside(vec2 v) {\n\t\tvec2 s = step(vec2(0.0, 0.0), v) - step(vec2(1.0, 1.0), v);\n\t\treturn s.x * s.y; \n }\n \n\t void main(void) {\n\t\tvec4 color = texture2D(uSampler, vTextureCoord);\n\t\tvec2 pos = vTextureCoord.xy * resolution - vec2(x, y) - vec2(w, h) / 2.0;\n\t\tvec2 size = vec2(w, h) / 2.0;\n\t\tfloat b = roundBox(pos, size, radius);\n\t\tvec2 pos2 = (vTextureCoord.xy * magnification * resolution + vec2(x, y) * magnification) / resolution;\n\t\tgl_FragColor = mix(color, texture2D(uSampler, pos2) * inside(pos2), b) * vColor;\n\t }\n `;\nclass SpinnerShader2 extends DefaultShader$1 {\n constructor(context) {\n super(context);\n this._period = 1;\n this._stroke = 0;\n this._showDot = true;\n this._clockwise = true;\n this._bc = 4278190080;\n this._normalizedBC = this._getNormalizedColor(this._bc);\n this._c = 4294967295;\n this._normalizedC = this._getNormalizedColor(this._c);\n }\n set radius(v) {\n if (v === 0) {\n v = 1;\n }\n this._radius = v;\n }\n set stroke(value) {\n this._stroke = Math.abs(value);\n }\n get stroke() {\n return this._stroke;\n }\n set color(argb) {\n this._c = argb;\n this._normalizedC = this._getNormalizedColor(argb);\n }\n get color() {\n return this._c;\n }\n set backgroundColor(argb) {\n this._bc = argb;\n this._normalizedBC = this._getNormalizedColor(argb);\n }\n get backgroundColor() {\n return this._sc;\n }\n set showDot(bool) {\n this._showDot = bool;\n }\n get showDot() {\n return this._showDot;\n }\n set clockwise(bool) {\n this._clockwise = bool;\n }\n get clockwise() {\n return this._clockwise;\n }\n set period(v) {\n this._period = v;\n }\n get period() {\n return this._period;\n }\n _getNormalizedColor(color) {\n const col = StageUtils.getRgbaComponentsNormalized(color);\n col[0] *= col[3];\n col[1] *= col[3];\n col[2] *= col[3];\n return new Float32Array(col);\n }\n setupUniforms(operation) {\n super.setupUniforms(operation);\n const owner = operation.shaderOwner;\n const radius = this._radius || owner._w / 2;\n if (this._stroke === 0) {\n this._stroke = radius * 0.33;\n }\n this._setUniform(\"resolution\", new Float32Array([owner._w, owner._h]), this.gl.uniform2fv);\n this._setUniform(\"color\", this._normalizedC, this.gl.uniform4fv);\n this._setUniform(\"backgroundColor\", this._normalizedBC, this.gl.uniform4fv);\n this._setUniform(\"stroke\", this._stroke, this.gl.uniform1f);\n this._setUniform(\"radius\", radius, this.gl.uniform1f);\n this._setUniform(\"direction\", this._clockwise ? -1 : 1, this.gl.uniform1f);\n this._setUniform(\"showDot\", !!this._showDot, this.gl.uniform1f);\n this._setUniform(\"time\", Date.now() - SpinnerShader2.spinSync, this.gl.uniform1f);\n this._setUniform(\"period\", this._period, this.gl.uniform1f);\n this._setUniform(\"alpha\", operation.getElementCore(0).renderContext.alpha, this.gl.uniform1f);\n if (this._sc !== this._bc || this._stroke !== radius * 0.5) {\n this.redraw();\n }\n }\n}\nSpinnerShader2.spinSync = Date.now();\nSpinnerShader2.fragmentShaderSource = `\n #ifdef GL_ES\n # ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n # else\n precision lowp float;\n # endif\n #endif\n \n #define PI 3.14159265359\n \n varying vec2 vTextureCoord;\n varying vec4 vColor;\n \n uniform sampler2D uSampler;\n uniform vec2 resolution;\n uniform vec4 color;\n uniform vec4 backgroundColor;\n uniform float direction;\n uniform float radius;\n uniform float time;\n uniform float stroke;\n uniform float showDot;\n uniform float period;\n uniform float alpha;\n \n float circleDist(vec2 p, float radius){\n return length(p) - radius;\n }\n \n float fillMask(float dist){\n return clamp(-dist, 0.0, 1.0);\n }\n \n void main() {\n vec2 halfRes = 0.5 * resolution.xy;\n vec2 center = vTextureCoord.xy * resolution - halfRes;\n \n float c = max(-circleDist(center, radius - stroke), circleDist(center, radius));\n float rot = -(time / 1000.0 / period) * 6.0 * direction;\n center *= mat2(cos(rot), sin(rot), -sin(rot), cos(rot));\n \n float a = direction * atan(center.x, center.y) * PI * 0.05 + 0.45;\n \n float strokeRad = stroke * 0.5;\n a = mix(a, max(a, fillMask(circleDist(vec2(center.x, center.y + (radius - strokeRad)), strokeRad))), showDot);\n vec4 base = mix(vec4(0.0), backgroundColor * alpha, fillMask(c));\n gl_FragColor = mix(base, color * alpha, fillMask(c) * a);\n }\n`;\nconst lightning = {\n Application,\n Component,\n Base,\n Utils: Utils$1,\n StageUtils,\n Element,\n Tools,\n Stage,\n ElementCore,\n ElementTexturizer,\n Texture,\n EventEmitter,\n shaders: {\n Grayscale: WebGLGrayscaleShader,\n BoxBlur: BoxBlurShader,\n Dithering: DitheringShader,\n CircularPush: CircularPushShader,\n Inversion: InversionShader,\n LinearBlur: LinearBlurShader,\n Outline: OutlineShader,\n Pixelate: PixelateShader,\n RadialFilter: RadialFilterShader,\n RoundedRectangle: RoundedRectangleShader,\n Spinner2: SpinnerShader2,\n FadeOut: FadeOutShader,\n Hole: HoleShader,\n Vignette: VignetteShader,\n Spinner: SpinnerShader,\n RadialGradient: RadialGradientShader,\n Light3d: Light3dShader,\n Perspective: PerspectiveShader,\n Magnifier: MagnifierShader,\n WebGLShader,\n WebGLDefaultShader: DefaultShader$1,\n C2dShader,\n C2dDefaultShader: DefaultShader2,\n c2d: {\n Grayscale: C2dGrayscaleShader,\n Blur: BlurShader\n }\n },\n textures: {\n RectangleTexture,\n NoiseTexture,\n TextTexture,\n ImageTexture,\n HtmlTexture,\n StaticTexture,\n StaticCanvasTexture,\n SourceTexture\n },\n components: {\n FastBlurComponent,\n BloomComponent,\n SmoothScaleComponent,\n BorderComponent,\n ListComponent\n },\n tools: {\n ObjMerger,\n ObjectListProxy,\n ObjectListWrapper\n }\n};\nif (Utils$1.isWeb) {\n window.lng = lightning;\n}\nexport {\n lightning as default\n};\n//# sourceMappingURL=lightning.esm.js.map\n","var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __commonJS=(cb,mod)=>function(){return mod||(0, cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports};var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0});},__copyProps=(to,from,except,desc)=>{if(from&&typeof from==\"object\"||typeof from==\"function\")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,\"default\",{value:mod,enumerable:!0}):target,mod));\n\nexport { __commonJS, __export, __toESM };\n","import './chunk-H6MOWX77.mjs';\nimport { global } from '@storybook/global';\n\nvar excludeTags=Object.entries(global.TAGS_OPTIONS??{}).reduce((acc,entry)=>{let[tag,option]=entry;return option.excludeFromDocsStories&&(acc[tag]=!0),acc},{}),parameters={docs:{renderer:async()=>{let{DocsRenderer}=await import('./DocsRenderer-CFRXHY34.mjs');return new DocsRenderer},stories:{filter:story=>(story.tags||[]).filter(tag=>excludeTags[tag]).length===0&&!story.parameters.docs?.disable}}};\n\nexport { parameters };\n","const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nexport default {\n randomUUID\n};","// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nlet getRandomValues;\nconst rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\n\nexport function unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];\n}\n\nfunction stringify(arr, offset = 0) {\n const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\n\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return unsafeStringify(rnds);\n}\n\nexport default v4;","import { addons } from 'storybook/internal/preview-api';\nimport { ImplicitActionsDuringRendering } from 'storybook/internal/preview-errors';\nimport { global } from '@storybook/global';\nimport { v4 } from 'uuid';\n\nvar ADDON_ID=\"storybook/actions\",EVENT_ID=`${ADDON_ID}/action-event`;var config={depth:10,clearOnStoryChange:!0,limit:50};var findProto=(obj,callback)=>{let proto=Object.getPrototypeOf(obj);return !proto||callback(proto)?proto:findProto(proto,callback)},isReactSyntheticEvent=e=>!!(typeof e==\"object\"&&e&&findProto(e,proto=>/^Synthetic(?:Base)?Event$/.test(proto.constructor.name))&&typeof e.persist==\"function\"),serializeArg=a=>{if(isReactSyntheticEvent(a)){let e=Object.create(a.constructor.prototype,Object.getOwnPropertyDescriptors(a));e.persist();let viewDescriptor=Object.getOwnPropertyDescriptor(e,\"view\"),view=viewDescriptor?.value;return typeof view==\"object\"&&view?.constructor.name===\"Window\"&&Object.defineProperty(e,\"view\",{...viewDescriptor,value:Object.create(view.constructor.prototype)}),e}return a},generateId=()=>typeof crypto==\"object\"&&typeof crypto.getRandomValues==\"function\"?v4():Date.now().toString(36)+Math.random().toString(36).substring(2);function action(name,options={}){let actionOptions={...config,...options},handler=function(...args){if(options.implicit){let storyRenderer=(\"__STORYBOOK_PREVIEW__\"in global?global.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(render=>render.phase===\"playing\"||render.phase===\"rendering\");if(storyRenderer){let deprecated=!window?.FEATURES?.disallowImplicitActionsInRenderV8,error=new ImplicitActionsDuringRendering({phase:storyRenderer.phase,name,deprecated});if(deprecated)console.warn(error);else throw error}}let channel=addons.getChannel(),id=generateId(),minDepth=5,serializedArgs=args.map(serializeArg),normalizedArgs=args.length>1?serializedArgs:serializedArgs[0],actionDisplayToEmit={id,count:0,data:{name,args:normalizedArgs},options:{...actionOptions,maxDepth:minDepth+(actionOptions.depth||3),allowFunction:actionOptions.allowFunction||!1}};channel.emit(EVENT_ID,actionDisplayToEmit);};return handler.isAction=!0,handler.implicit=options.implicit,handler}var isInInitialArgs=(name,initialArgs)=>typeof initialArgs[name]>\"u\"&&!(name in initialArgs),inferActionsFromArgTypesRegex=context=>{let{initialArgs,argTypes,id,parameters:{actions}}=context;if(!actions||actions.disable||!actions.argTypesRegex||!argTypes)return {};let argTypesRegex=new RegExp(actions.argTypesRegex);return Object.entries(argTypes).filter(([name])=>!!argTypesRegex.test(name)).reduce((acc,[name,argType])=>(isInInitialArgs(name,initialArgs)&&(acc[name]=action(name,{implicit:!0,id})),acc),{})},addActionsFromArgTypes=context=>{let{initialArgs,argTypes,parameters:{actions}}=context;return actions?.disable||!argTypes?{}:Object.entries(argTypes).filter(([name,argType])=>!!argType.action).reduce((acc,[name,argType])=>(isInInitialArgs(name,initialArgs)&&(acc[name]=action(typeof argType.action==\"string\"?argType.action:name)),acc),{})};var argsEnhancers=[addActionsFromArgTypes,inferActionsFromArgTypesRegex];var subscribed=!1,logActionsWhenMockCalled=context=>{let{parameters:{actions}}=context;if(!actions?.disable&&!subscribed&&\"__STORYBOOK_TEST_ON_MOCK_CALL__\"in global&&typeof global.__STORYBOOK_TEST_ON_MOCK_CALL__==\"function\"){let onMockCall=global.__STORYBOOK_TEST_ON_MOCK_CALL__;onMockCall((mock,args)=>{let name=mock.getMockName();name!==\"spy\"&&(!/^next\\/.*::/.test(name)||[\"next/router::useRouter()\",\"next/navigation::useRouter()\",\"next/navigation::redirect\",\"next/cache::\",\"next/headers::cookies().set\",\"next/headers::cookies().delete\",\"next/headers::headers().set\",\"next/headers::headers().delete\"].some(prefix=>name.startsWith(prefix)))&&action(name)(args);}),subscribed=!0;}},loaders=[logActionsWhenMockCalled];\n\nexport { argsEnhancers, loaders };\n","export * from '@storybook/addon-actions/preview';\n","import { STORY_CHANGED } from 'storybook/internal/core-events';\nimport { addons } from 'storybook/internal/preview-api';\nimport { global } from '@storybook/global';\n\nvar ADDON_ID=\"storybook/highlight\",HIGHLIGHT_STYLE_ID=\"storybookHighlight\",HIGHLIGHT=`${ADDON_ID}/add`,RESET_HIGHLIGHT=`${ADDON_ID}/reset`;var{document}=global,highlightStyle=(color=\"#FF4785\",style=\"dashed\")=>`\n outline: 2px ${style} ${color};\n outline-offset: 2px;\n box-shadow: 0 0 0 6px rgba(255,255,255,0.6);\n`,channel=addons.getChannel(),highlight=infos=>{let id=HIGHLIGHT_STYLE_ID;resetHighlight();let elements=Array.from(new Set(infos.elements)),sheet=document.createElement(\"style\");sheet.setAttribute(\"id\",id),sheet.innerHTML=elements.map(target=>`${target}{\n ${highlightStyle(infos.color,infos.style)}\n }`).join(\" \"),document.head.appendChild(sheet);},resetHighlight=()=>{let id=HIGHLIGHT_STYLE_ID,sheetToBeRemoved=document.getElementById(id);sheetToBeRemoved&&sheetToBeRemoved.parentNode?.removeChild(sheetToBeRemoved);};channel.on(STORY_CHANGED,resetHighlight);channel.on(RESET_HIGHLIGHT,resetHighlight);channel.on(HIGHLIGHT,highlight);\n","export * from '@storybook/addon-highlight/preview';\n","var ii = Object.create;\nvar he = Object.defineProperty;\nvar si = Object.getOwnPropertyDescriptor;\nvar ui = Object.getOwnPropertyNames;\nvar pi = Object.getPrototypeOf, ci = Object.prototype.hasOwnProperty;\nvar t = (e, r) => he(e, \"name\", { value: r, configurable: !0 });\nvar i = (e, r) => () => (r || e((r = { exports: {} }).exports, r), r.exports);\nvar li = (e, r, n, o) => {\n if (r && typeof r == \"object\" || typeof r == \"function\")\n for (let a of ui(r))\n !ci.call(e, a) && a !== n && he(e, a, { get: () => r[a], enumerable: !(o = si(r, a)) || o.enumerable });\n return e;\n};\nvar fi = (e, r, n) => (n = e != null ? ii(pi(e)) : {}, li(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n r || !e || !e.__esModule ? he(n, \"default\", { value: e, enumerable: !0 }) : n,\n e\n));\n\n// ../node_modules/lodash/_freeGlobal.js\nvar Te = i((wg, rr) => {\n var hi = typeof global == \"object\" && global && global.Object === Object && global;\n rr.exports = hi;\n});\n\n// ../node_modules/lodash/_root.js\nvar D = i((Ag, tr) => {\n var Ti = Te(), xi = typeof self == \"object\" && self && self.Object === Object && self, bi = Ti || xi || Function(\"return this\")();\n tr.exports = bi;\n});\n\n// ../node_modules/lodash/_Symbol.js\nvar B = i((Eg, nr) => {\n var vi = D(), Di = vi.Symbol;\n nr.exports = Di;\n});\n\n// ../node_modules/lodash/_getRawTag.js\nvar sr = i((jg, ir) => {\n var or = B(), ar = Object.prototype, Pi = ar.hasOwnProperty, qi = ar.toString, z = or ? or.toStringTag : void 0;\n function Si(e) {\n var r = Pi.call(e, z), n = e[z];\n try {\n e[z] = void 0;\n var o = !0;\n } catch {\n }\n var a = qi.call(e);\n return o && (r ? e[z] = n : delete e[z]), a;\n }\n t(Si, \"getRawTag\");\n ir.exports = Si;\n});\n\n// ../node_modules/lodash/_objectToString.js\nvar pr = i((Ig, ur) => {\n var _i = Object.prototype, Oi = _i.toString;\n function wi(e) {\n return Oi.call(e);\n }\n t(wi, \"objectToString\");\n ur.exports = wi;\n});\n\n// ../node_modules/lodash/_baseGetTag.js\nvar j = i((Ng, fr) => {\n var cr = B(), Ai = sr(), Ei = pr(), ji = \"[object Null]\", Ci = \"[object Undefined]\", lr = cr ? cr.toStringTag : void 0;\n function Ii(e) {\n return e == null ? e === void 0 ? Ci : ji : lr && lr in Object(e) ? Ai(e) : Ei(e);\n }\n t(Ii, \"baseGetTag\");\n fr.exports = Ii;\n});\n\n// ../node_modules/lodash/isObject.js\nvar re = i((Lg, mr) => {\n function Fi(e) {\n var r = typeof e;\n return e != null && (r == \"object\" || r == \"function\");\n }\n t(Fi, \"isObject\");\n mr.exports = Fi;\n});\n\n// ../node_modules/lodash/isFunction.js\nvar xe = i((Jg, gr) => {\n var Ni = j(), Ri = re(), Li = \"[object AsyncFunction]\", Mi = \"[object Function]\", Ji = \"[object GeneratorFunction]\", Ui = \"[object Proxy]\";\n function Gi(e) {\n if (!Ri(e))\n return !1;\n var r = Ni(e);\n return r == Mi || r == Ji || r == Li || r == Ui;\n }\n t(Gi, \"isFunction\");\n gr.exports = Gi;\n});\n\n// ../node_modules/lodash/_coreJsData.js\nvar dr = i((Gg, yr) => {\n var Vi = D(), Bi = Vi[\"__core-js_shared__\"];\n yr.exports = Bi;\n});\n\n// ../node_modules/lodash/_isMasked.js\nvar xr = i((Vg, Tr) => {\n var be = dr(), hr = function() {\n var e = /[^.]+$/.exec(be && be.keys && be.keys.IE_PROTO || \"\");\n return e ? \"Symbol(src)_1.\" + e : \"\";\n }();\n function zi(e) {\n return !!hr && hr in e;\n }\n t(zi, \"isMasked\");\n Tr.exports = zi;\n});\n\n// ../node_modules/lodash/_toSource.js\nvar ve = i((zg, br) => {\n var ki = Function.prototype, Hi = ki.toString;\n function Ki(e) {\n if (e != null) {\n try {\n return Hi.call(e);\n } catch {\n }\n try {\n return e + \"\";\n } catch {\n }\n }\n return \"\";\n }\n t(Ki, \"toSource\");\n br.exports = Ki;\n});\n\n// ../node_modules/lodash/_baseIsNative.js\nvar Dr = i((Hg, vr) => {\n var $i = xe(), Wi = xr(), Yi = re(), Xi = ve(), Qi = /[\\\\^$.*+?()[\\]{}|]/g, Zi = /^\\[object .+?Constructor\\]$/, es = Function.prototype, rs = Object.\n prototype, ts = es.toString, ns = rs.hasOwnProperty, os = RegExp(\n \"^\" + ts.call(ns).replace(Qi, \"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, \"$1.*?\") + \"$\"\n );\n function as(e) {\n if (!Yi(e) || Wi(e))\n return !1;\n var r = $i(e) ? os : Zi;\n return r.test(Xi(e));\n }\n t(as, \"baseIsNative\");\n vr.exports = as;\n});\n\n// ../node_modules/lodash/_getValue.js\nvar qr = i(($g, Pr) => {\n function is(e, r) {\n return e?.[r];\n }\n t(is, \"getValue\");\n Pr.exports = is;\n});\n\n// ../node_modules/lodash/_getNative.js\nvar S = i((Yg, Sr) => {\n var ss = Dr(), us = qr();\n function ps(e, r) {\n var n = us(e, r);\n return ss(n) ? n : void 0;\n }\n t(ps, \"getNative\");\n Sr.exports = ps;\n});\n\n// ../node_modules/lodash/_defineProperty.js\nvar Or = i((Qg, _r) => {\n var cs = S(), ls = function() {\n try {\n var e = cs(Object, \"defineProperty\");\n return e({}, \"\", {}), e;\n } catch {\n }\n }();\n _r.exports = ls;\n});\n\n// ../node_modules/lodash/_baseAssignValue.js\nvar Er = i((Zg, Ar) => {\n var wr = Or();\n function fs(e, r, n) {\n r == \"__proto__\" && wr ? wr(e, r, {\n configurable: !0,\n enumerable: !0,\n value: n,\n writable: !0\n }) : e[r] = n;\n }\n t(fs, \"baseAssignValue\");\n Ar.exports = fs;\n});\n\n// ../node_modules/lodash/_createBaseFor.js\nvar Cr = i((ry, jr) => {\n function ms(e) {\n return function(r, n, o) {\n for (var a = -1, s = Object(r), u = o(r), p = u.length; p--; ) {\n var c = u[e ? p : ++a];\n if (n(s[c], c, s) === !1)\n break;\n }\n return r;\n };\n }\n t(ms, \"createBaseFor\");\n jr.exports = ms;\n});\n\n// ../node_modules/lodash/_baseFor.js\nvar Fr = i((ny, Ir) => {\n var gs = Cr(), ys = gs();\n Ir.exports = ys;\n});\n\n// ../node_modules/lodash/_baseTimes.js\nvar Rr = i((oy, Nr) => {\n function ds(e, r) {\n for (var n = -1, o = Array(e); ++n < e; )\n o[n] = r(n);\n return o;\n }\n t(ds, \"baseTimes\");\n Nr.exports = ds;\n});\n\n// ../node_modules/lodash/isObjectLike.js\nvar C = i((iy, Lr) => {\n function hs(e) {\n return e != null && typeof e == \"object\";\n }\n t(hs, \"isObjectLike\");\n Lr.exports = hs;\n});\n\n// ../node_modules/lodash/_baseIsArguments.js\nvar Jr = i((uy, Mr) => {\n var Ts = j(), xs = C(), bs = \"[object Arguments]\";\n function vs(e) {\n return xs(e) && Ts(e) == bs;\n }\n t(vs, \"baseIsArguments\");\n Mr.exports = vs;\n});\n\n// ../node_modules/lodash/isArguments.js\nvar De = i((cy, Vr) => {\n var Ur = Jr(), Ds = C(), Gr = Object.prototype, Ps = Gr.hasOwnProperty, qs = Gr.propertyIsEnumerable, Ss = Ur(/* @__PURE__ */ function() {\n return arguments;\n }()) ? Ur : function(e) {\n return Ds(e) && Ps.call(e, \"callee\") && !qs.call(e, \"callee\");\n };\n Vr.exports = Ss;\n});\n\n// ../node_modules/lodash/isArray.js\nvar P = i((ly, Br) => {\n var _s = Array.isArray;\n Br.exports = _s;\n});\n\n// ../node_modules/lodash/stubFalse.js\nvar kr = i((fy, zr) => {\n function Os() {\n return !1;\n }\n t(Os, \"stubFalse\");\n zr.exports = Os;\n});\n\n// ../node_modules/lodash/isBuffer.js\nvar Pe = i((k, I) => {\n var ws = D(), As = kr(), $r = typeof k == \"object\" && k && !k.nodeType && k, Hr = $r && typeof I == \"object\" && I && !I.nodeType && I, Es = Hr &&\n Hr.exports === $r, Kr = Es ? ws.Buffer : void 0, js = Kr ? Kr.isBuffer : void 0, Cs = js || As;\n I.exports = Cs;\n});\n\n// ../node_modules/lodash/_isIndex.js\nvar qe = i((gy, Wr) => {\n var Is = 9007199254740991, Fs = /^(?:0|[1-9]\\d*)$/;\n function Ns(e, r) {\n var n = typeof e;\n return r = r ?? Is, !!r && (n == \"number\" || n != \"symbol\" && Fs.test(e)) && e > -1 && e % 1 == 0 && e < r;\n }\n t(Ns, \"isIndex\");\n Wr.exports = Ns;\n});\n\n// ../node_modules/lodash/isLength.js\nvar te = i((dy, Yr) => {\n var Rs = 9007199254740991;\n function Ls(e) {\n return typeof e == \"number\" && e > -1 && e % 1 == 0 && e <= Rs;\n }\n t(Ls, \"isLength\");\n Yr.exports = Ls;\n});\n\n// ../node_modules/lodash/_baseIsTypedArray.js\nvar Qr = i((Ty, Xr) => {\n var Ms = j(), Js = te(), Us = C(), Gs = \"[object Arguments]\", Vs = \"[object Array]\", Bs = \"[object Boolean]\", zs = \"[object Date]\", ks = \"\\\n[object Error]\", Hs = \"[object Function]\", Ks = \"[object Map]\", $s = \"[object Number]\", Ws = \"[object Object]\", Ys = \"[object RegExp]\", Xs = \"\\\n[object Set]\", Qs = \"[object String]\", Zs = \"[object WeakMap]\", eu = \"[object ArrayBuffer]\", ru = \"[object DataView]\", tu = \"[object Float32\\\nArray]\", nu = \"[object Float64Array]\", ou = \"[object Int8Array]\", au = \"[object Int16Array]\", iu = \"[object Int32Array]\", su = \"[object Uint\\\n8Array]\", uu = \"[object Uint8ClampedArray]\", pu = \"[object Uint16Array]\", cu = \"[object Uint32Array]\", m = {};\n m[tu] = m[nu] = m[ou] = m[au] = m[iu] = m[su] = m[uu] = m[pu] = m[cu] = !0;\n m[Gs] = m[Vs] = m[eu] = m[Bs] = m[ru] = m[zs] = m[ks] = m[Hs] = m[Ks] = m[$s] = m[Ws] = m[Ys] = m[Xs] = m[Qs] = m[Zs] = !1;\n function lu(e) {\n return Us(e) && Js(e.length) && !!m[Ms(e)];\n }\n t(lu, \"baseIsTypedArray\");\n Xr.exports = lu;\n});\n\n// ../node_modules/lodash/_baseUnary.js\nvar et = i((by, Zr) => {\n function fu(e) {\n return function(r) {\n return e(r);\n };\n }\n t(fu, \"baseUnary\");\n Zr.exports = fu;\n});\n\n// ../node_modules/lodash/_nodeUtil.js\nvar tt = i((H, F) => {\n var mu = Te(), rt = typeof H == \"object\" && H && !H.nodeType && H, K = rt && typeof F == \"object\" && F && !F.nodeType && F, gu = K && K.exports ===\n rt, Se = gu && mu.process, yu = function() {\n try {\n var e = K && K.require && K.require(\"util\").types;\n return e || Se && Se.binding && Se.binding(\"util\");\n } catch {\n }\n }();\n F.exports = yu;\n});\n\n// ../node_modules/lodash/isTypedArray.js\nvar _e = i((Dy, at) => {\n var du = Qr(), hu = et(), nt = tt(), ot = nt && nt.isTypedArray, Tu = ot ? hu(ot) : du;\n at.exports = Tu;\n});\n\n// ../node_modules/lodash/_arrayLikeKeys.js\nvar st = i((Py, it) => {\n var xu = Rr(), bu = De(), vu = P(), Du = Pe(), Pu = qe(), qu = _e(), Su = Object.prototype, _u = Su.hasOwnProperty;\n function Ou(e, r) {\n var n = vu(e), o = !n && bu(e), a = !n && !o && Du(e), s = !n && !o && !a && qu(e), u = n || o || a || s, p = u ? xu(e.length, String) :\n [], c = p.length;\n for (var l in e)\n (r || _u.call(e, l)) && !(u && // Safari 9 has enumerable `arguments.length` in strict mode.\n (l == \"length\" || // Node.js 0.10 has enumerable non-index properties on buffers.\n a && (l == \"offset\" || l == \"parent\") || // PhantomJS 2 has enumerable non-index properties on typed arrays.\n s && (l == \"buffer\" || l == \"byteLength\" || l == \"byteOffset\") || // Skip index properties.\n Pu(l, c))) && p.push(l);\n return p;\n }\n t(Ou, \"arrayLikeKeys\");\n it.exports = Ou;\n});\n\n// ../node_modules/lodash/_isPrototype.js\nvar pt = i((Sy, ut) => {\n var wu = Object.prototype;\n function Au(e) {\n var r = e && e.constructor, n = typeof r == \"function\" && r.prototype || wu;\n return e === n;\n }\n t(Au, \"isPrototype\");\n ut.exports = Au;\n});\n\n// ../node_modules/lodash/_overArg.js\nvar lt = i((Oy, ct) => {\n function Eu(e, r) {\n return function(n) {\n return e(r(n));\n };\n }\n t(Eu, \"overArg\");\n ct.exports = Eu;\n});\n\n// ../node_modules/lodash/_nativeKeys.js\nvar mt = i((Ay, ft) => {\n var ju = lt(), Cu = ju(Object.keys, Object);\n ft.exports = Cu;\n});\n\n// ../node_modules/lodash/_baseKeys.js\nvar yt = i((Ey, gt) => {\n var Iu = pt(), Fu = mt(), Nu = Object.prototype, Ru = Nu.hasOwnProperty;\n function Lu(e) {\n if (!Iu(e))\n return Fu(e);\n var r = [];\n for (var n in Object(e))\n Ru.call(e, n) && n != \"constructor\" && r.push(n);\n return r;\n }\n t(Lu, \"baseKeys\");\n gt.exports = Lu;\n});\n\n// ../node_modules/lodash/isArrayLike.js\nvar ht = i((Cy, dt) => {\n var Mu = xe(), Ju = te();\n function Uu(e) {\n return e != null && Ju(e.length) && !Mu(e);\n }\n t(Uu, \"isArrayLike\");\n dt.exports = Uu;\n});\n\n// ../node_modules/lodash/keys.js\nvar ne = i((Fy, Tt) => {\n var Gu = st(), Vu = yt(), Bu = ht();\n function zu(e) {\n return Bu(e) ? Gu(e) : Vu(e);\n }\n t(zu, \"keys\");\n Tt.exports = zu;\n});\n\n// ../node_modules/lodash/_baseForOwn.js\nvar bt = i((Ry, xt) => {\n var ku = Fr(), Hu = ne();\n function Ku(e, r) {\n return e && ku(e, r, Hu);\n }\n t(Ku, \"baseForOwn\");\n xt.exports = Ku;\n});\n\n// ../node_modules/lodash/_listCacheClear.js\nvar Dt = i((My, vt) => {\n function $u() {\n this.__data__ = [], this.size = 0;\n }\n t($u, \"listCacheClear\");\n vt.exports = $u;\n});\n\n// ../node_modules/lodash/eq.js\nvar Oe = i((Uy, Pt) => {\n function Wu(e, r) {\n return e === r || e !== e && r !== r;\n }\n t(Wu, \"eq\");\n Pt.exports = Wu;\n});\n\n// ../node_modules/lodash/_assocIndexOf.js\nvar $ = i((Vy, qt) => {\n var Yu = Oe();\n function Xu(e, r) {\n for (var n = e.length; n--; )\n if (Yu(e[n][0], r))\n return n;\n return -1;\n }\n t(Xu, \"assocIndexOf\");\n qt.exports = Xu;\n});\n\n// ../node_modules/lodash/_listCacheDelete.js\nvar _t = i((zy, St) => {\n var Qu = $(), Zu = Array.prototype, ep = Zu.splice;\n function rp(e) {\n var r = this.__data__, n = Qu(r, e);\n if (n < 0)\n return !1;\n var o = r.length - 1;\n return n == o ? r.pop() : ep.call(r, n, 1), --this.size, !0;\n }\n t(rp, \"listCacheDelete\");\n St.exports = rp;\n});\n\n// ../node_modules/lodash/_listCacheGet.js\nvar wt = i((Hy, Ot) => {\n var tp = $();\n function np(e) {\n var r = this.__data__, n = tp(r, e);\n return n < 0 ? void 0 : r[n][1];\n }\n t(np, \"listCacheGet\");\n Ot.exports = np;\n});\n\n// ../node_modules/lodash/_listCacheHas.js\nvar Et = i(($y, At) => {\n var op = $();\n function ap(e) {\n return op(this.__data__, e) > -1;\n }\n t(ap, \"listCacheHas\");\n At.exports = ap;\n});\n\n// ../node_modules/lodash/_listCacheSet.js\nvar Ct = i((Yy, jt) => {\n var ip = $();\n function sp(e, r) {\n var n = this.__data__, o = ip(n, e);\n return o < 0 ? (++this.size, n.push([e, r])) : n[o][1] = r, this;\n }\n t(sp, \"listCacheSet\");\n jt.exports = sp;\n});\n\n// ../node_modules/lodash/_ListCache.js\nvar W = i((Qy, It) => {\n var up = Dt(), pp = _t(), cp = wt(), lp = Et(), fp = Ct();\n function N(e) {\n var r = -1, n = e == null ? 0 : e.length;\n for (this.clear(); ++r < n; ) {\n var o = e[r];\n this.set(o[0], o[1]);\n }\n }\n t(N, \"ListCache\");\n N.prototype.clear = up;\n N.prototype.delete = pp;\n N.prototype.get = cp;\n N.prototype.has = lp;\n N.prototype.set = fp;\n It.exports = N;\n});\n\n// ../node_modules/lodash/_stackClear.js\nvar Nt = i((ed, Ft) => {\n var mp = W();\n function gp() {\n this.__data__ = new mp(), this.size = 0;\n }\n t(gp, \"stackClear\");\n Ft.exports = gp;\n});\n\n// ../node_modules/lodash/_stackDelete.js\nvar Lt = i((td, Rt) => {\n function yp(e) {\n var r = this.__data__, n = r.delete(e);\n return this.size = r.size, n;\n }\n t(yp, \"stackDelete\");\n Rt.exports = yp;\n});\n\n// ../node_modules/lodash/_stackGet.js\nvar Jt = i((od, Mt) => {\n function dp(e) {\n return this.__data__.get(e);\n }\n t(dp, \"stackGet\");\n Mt.exports = dp;\n});\n\n// ../node_modules/lodash/_stackHas.js\nvar Gt = i((id, Ut) => {\n function hp(e) {\n return this.__data__.has(e);\n }\n t(hp, \"stackHas\");\n Ut.exports = hp;\n});\n\n// ../node_modules/lodash/_Map.js\nvar oe = i((ud, Vt) => {\n var Tp = S(), xp = D(), bp = Tp(xp, \"Map\");\n Vt.exports = bp;\n});\n\n// ../node_modules/lodash/_nativeCreate.js\nvar Y = i((pd, Bt) => {\n var vp = S(), Dp = vp(Object, \"create\");\n Bt.exports = Dp;\n});\n\n// ../node_modules/lodash/_hashClear.js\nvar Ht = i((cd, kt) => {\n var zt = Y();\n function Pp() {\n this.__data__ = zt ? zt(null) : {}, this.size = 0;\n }\n t(Pp, \"hashClear\");\n kt.exports = Pp;\n});\n\n// ../node_modules/lodash/_hashDelete.js\nvar $t = i((fd, Kt) => {\n function qp(e) {\n var r = this.has(e) && delete this.__data__[e];\n return this.size -= r ? 1 : 0, r;\n }\n t(qp, \"hashDelete\");\n Kt.exports = qp;\n});\n\n// ../node_modules/lodash/_hashGet.js\nvar Yt = i((gd, Wt) => {\n var Sp = Y(), _p = \"__lodash_hash_undefined__\", Op = Object.prototype, wp = Op.hasOwnProperty;\n function Ap(e) {\n var r = this.__data__;\n if (Sp) {\n var n = r[e];\n return n === _p ? void 0 : n;\n }\n return wp.call(r, e) ? r[e] : void 0;\n }\n t(Ap, \"hashGet\");\n Wt.exports = Ap;\n});\n\n// ../node_modules/lodash/_hashHas.js\nvar Qt = i((dd, Xt) => {\n var Ep = Y(), jp = Object.prototype, Cp = jp.hasOwnProperty;\n function Ip(e) {\n var r = this.__data__;\n return Ep ? r[e] !== void 0 : Cp.call(r, e);\n }\n t(Ip, \"hashHas\");\n Xt.exports = Ip;\n});\n\n// ../node_modules/lodash/_hashSet.js\nvar en = i((Td, Zt) => {\n var Fp = Y(), Np = \"__lodash_hash_undefined__\";\n function Rp(e, r) {\n var n = this.__data__;\n return this.size += this.has(e) ? 0 : 1, n[e] = Fp && r === void 0 ? Np : r, this;\n }\n t(Rp, \"hashSet\");\n Zt.exports = Rp;\n});\n\n// ../node_modules/lodash/_Hash.js\nvar tn = i((bd, rn) => {\n var Lp = Ht(), Mp = $t(), Jp = Yt(), Up = Qt(), Gp = en();\n function R(e) {\n var r = -1, n = e == null ? 0 : e.length;\n for (this.clear(); ++r < n; ) {\n var o = e[r];\n this.set(o[0], o[1]);\n }\n }\n t(R, \"Hash\");\n R.prototype.clear = Lp;\n R.prototype.delete = Mp;\n R.prototype.get = Jp;\n R.prototype.has = Up;\n R.prototype.set = Gp;\n rn.exports = R;\n});\n\n// ../node_modules/lodash/_mapCacheClear.js\nvar an = i((Dd, on) => {\n var nn = tn(), Vp = W(), Bp = oe();\n function zp() {\n this.size = 0, this.__data__ = {\n hash: new nn(),\n map: new (Bp || Vp)(),\n string: new nn()\n };\n }\n t(zp, \"mapCacheClear\");\n on.exports = zp;\n});\n\n// ../node_modules/lodash/_isKeyable.js\nvar un = i((qd, sn) => {\n function kp(e) {\n var r = typeof e;\n return r == \"string\" || r == \"number\" || r == \"symbol\" || r == \"boolean\" ? e !== \"__proto__\" : e === null;\n }\n t(kp, \"isKeyable\");\n sn.exports = kp;\n});\n\n// ../node_modules/lodash/_getMapData.js\nvar X = i((_d, pn) => {\n var Hp = un();\n function Kp(e, r) {\n var n = e.__data__;\n return Hp(r) ? n[typeof r == \"string\" ? \"string\" : \"hash\"] : n.map;\n }\n t(Kp, \"getMapData\");\n pn.exports = Kp;\n});\n\n// ../node_modules/lodash/_mapCacheDelete.js\nvar ln = i((wd, cn) => {\n var $p = X();\n function Wp(e) {\n var r = $p(this, e).delete(e);\n return this.size -= r ? 1 : 0, r;\n }\n t(Wp, \"mapCacheDelete\");\n cn.exports = Wp;\n});\n\n// ../node_modules/lodash/_mapCacheGet.js\nvar mn = i((Ed, fn) => {\n var Yp = X();\n function Xp(e) {\n return Yp(this, e).get(e);\n }\n t(Xp, \"mapCacheGet\");\n fn.exports = Xp;\n});\n\n// ../node_modules/lodash/_mapCacheHas.js\nvar yn = i((Cd, gn) => {\n var Qp = X();\n function Zp(e) {\n return Qp(this, e).has(e);\n }\n t(Zp, \"mapCacheHas\");\n gn.exports = Zp;\n});\n\n// ../node_modules/lodash/_mapCacheSet.js\nvar hn = i((Fd, dn) => {\n var ec = X();\n function rc(e, r) {\n var n = ec(this, e), o = n.size;\n return n.set(e, r), this.size += n.size == o ? 0 : 1, this;\n }\n t(rc, \"mapCacheSet\");\n dn.exports = rc;\n});\n\n// ../node_modules/lodash/_MapCache.js\nvar ae = i((Rd, Tn) => {\n var tc = an(), nc = ln(), oc = mn(), ac = yn(), ic = hn();\n function L(e) {\n var r = -1, n = e == null ? 0 : e.length;\n for (this.clear(); ++r < n; ) {\n var o = e[r];\n this.set(o[0], o[1]);\n }\n }\n t(L, \"MapCache\");\n L.prototype.clear = tc;\n L.prototype.delete = nc;\n L.prototype.get = oc;\n L.prototype.has = ac;\n L.prototype.set = ic;\n Tn.exports = L;\n});\n\n// ../node_modules/lodash/_stackSet.js\nvar bn = i((Md, xn) => {\n var sc = W(), uc = oe(), pc = ae(), cc = 200;\n function lc(e, r) {\n var n = this.__data__;\n if (n instanceof sc) {\n var o = n.__data__;\n if (!uc || o.length < cc - 1)\n return o.push([e, r]), this.size = ++n.size, this;\n n = this.__data__ = new pc(o);\n }\n return n.set(e, r), this.size = n.size, this;\n }\n t(lc, \"stackSet\");\n xn.exports = lc;\n});\n\n// ../node_modules/lodash/_Stack.js\nvar we = i((Ud, vn) => {\n var fc = W(), mc = Nt(), gc = Lt(), yc = Jt(), dc = Gt(), hc = bn();\n function M(e) {\n var r = this.__data__ = new fc(e);\n this.size = r.size;\n }\n t(M, \"Stack\");\n M.prototype.clear = mc;\n M.prototype.delete = gc;\n M.prototype.get = yc;\n M.prototype.has = dc;\n M.prototype.set = hc;\n vn.exports = M;\n});\n\n// ../node_modules/lodash/_setCacheAdd.js\nvar Pn = i((Vd, Dn) => {\n var Tc = \"__lodash_hash_undefined__\";\n function xc(e) {\n return this.__data__.set(e, Tc), this;\n }\n t(xc, \"setCacheAdd\");\n Dn.exports = xc;\n});\n\n// ../node_modules/lodash/_setCacheHas.js\nvar Sn = i((zd, qn) => {\n function bc(e) {\n return this.__data__.has(e);\n }\n t(bc, \"setCacheHas\");\n qn.exports = bc;\n});\n\n// ../node_modules/lodash/_SetCache.js\nvar On = i((Hd, _n) => {\n var vc = ae(), Dc = Pn(), Pc = Sn();\n function ie(e) {\n var r = -1, n = e == null ? 0 : e.length;\n for (this.__data__ = new vc(); ++r < n; )\n this.add(e[r]);\n }\n t(ie, \"SetCache\");\n ie.prototype.add = ie.prototype.push = Dc;\n ie.prototype.has = Pc;\n _n.exports = ie;\n});\n\n// ../node_modules/lodash/_arraySome.js\nvar An = i(($d, wn) => {\n function qc(e, r) {\n for (var n = -1, o = e == null ? 0 : e.length; ++n < o; )\n if (r(e[n], n, e))\n return !0;\n return !1;\n }\n t(qc, \"arraySome\");\n wn.exports = qc;\n});\n\n// ../node_modules/lodash/_cacheHas.js\nvar jn = i((Yd, En) => {\n function Sc(e, r) {\n return e.has(r);\n }\n t(Sc, \"cacheHas\");\n En.exports = Sc;\n});\n\n// ../node_modules/lodash/_equalArrays.js\nvar Ae = i((Qd, Cn) => {\n var _c = On(), Oc = An(), wc = jn(), Ac = 1, Ec = 2;\n function jc(e, r, n, o, a, s) {\n var u = n & Ac, p = e.length, c = r.length;\n if (p != c && !(u && c > p))\n return !1;\n var l = s.get(e), f = s.get(r);\n if (l && f)\n return l == r && f == e;\n var d = -1, g = !0, x = n & Ec ? new _c() : void 0;\n for (s.set(e, r), s.set(r, e); ++d < p; ) {\n var h = e[d], T = r[d];\n if (o)\n var v = u ? o(T, h, d, r, e, s) : o(h, T, d, e, r, s);\n if (v !== void 0) {\n if (v)\n continue;\n g = !1;\n break;\n }\n if (x) {\n if (!Oc(r, function(O, w) {\n if (!wc(x, w) && (h === O || a(h, O, n, o, s)))\n return x.push(w);\n })) {\n g = !1;\n break;\n }\n } else if (!(h === T || a(h, T, n, o, s))) {\n g = !1;\n break;\n }\n }\n return s.delete(e), s.delete(r), g;\n }\n t(jc, \"equalArrays\");\n Cn.exports = jc;\n});\n\n// ../node_modules/lodash/_Uint8Array.js\nvar Fn = i((eh, In) => {\n var Cc = D(), Ic = Cc.Uint8Array;\n In.exports = Ic;\n});\n\n// ../node_modules/lodash/_mapToArray.js\nvar Rn = i((rh, Nn) => {\n function Fc(e) {\n var r = -1, n = Array(e.size);\n return e.forEach(function(o, a) {\n n[++r] = [a, o];\n }), n;\n }\n t(Fc, \"mapToArray\");\n Nn.exports = Fc;\n});\n\n// ../node_modules/lodash/_setToArray.js\nvar Mn = i((nh, Ln) => {\n function Nc(e) {\n var r = -1, n = Array(e.size);\n return e.forEach(function(o) {\n n[++r] = o;\n }), n;\n }\n t(Nc, \"setToArray\");\n Ln.exports = Nc;\n});\n\n// ../node_modules/lodash/_equalByTag.js\nvar Bn = i((ah, Vn) => {\n var Jn = B(), Un = Fn(), Rc = Oe(), Lc = Ae(), Mc = Rn(), Jc = Mn(), Uc = 1, Gc = 2, Vc = \"[object Boolean]\", Bc = \"[object Date]\", zc = \"\\\n[object Error]\", kc = \"[object Map]\", Hc = \"[object Number]\", Kc = \"[object RegExp]\", $c = \"[object Set]\", Wc = \"[object String]\", Yc = \"[ob\\\nject Symbol]\", Xc = \"[object ArrayBuffer]\", Qc = \"[object DataView]\", Gn = Jn ? Jn.prototype : void 0, Ee = Gn ? Gn.valueOf : void 0;\n function Zc(e, r, n, o, a, s, u) {\n switch (n) {\n case Qc:\n if (e.byteLength != r.byteLength || e.byteOffset != r.byteOffset)\n return !1;\n e = e.buffer, r = r.buffer;\n case Xc:\n return !(e.byteLength != r.byteLength || !s(new Un(e), new Un(r)));\n case Vc:\n case Bc:\n case Hc:\n return Rc(+e, +r);\n case zc:\n return e.name == r.name && e.message == r.message;\n case Kc:\n case Wc:\n return e == r + \"\";\n case kc:\n var p = Mc;\n case $c:\n var c = o & Uc;\n if (p || (p = Jc), e.size != r.size && !c)\n return !1;\n var l = u.get(e);\n if (l)\n return l == r;\n o |= Gc, u.set(e, r);\n var f = Lc(p(e), p(r), o, a, s, u);\n return u.delete(e), f;\n case Yc:\n if (Ee)\n return Ee.call(e) == Ee.call(r);\n }\n return !1;\n }\n t(Zc, \"equalByTag\");\n Vn.exports = Zc;\n});\n\n// ../node_modules/lodash/_arrayPush.js\nvar kn = i((sh, zn) => {\n function el(e, r) {\n for (var n = -1, o = r.length, a = e.length; ++n < o; )\n e[a + n] = r[n];\n return e;\n }\n t(el, \"arrayPush\");\n zn.exports = el;\n});\n\n// ../node_modules/lodash/_baseGetAllKeys.js\nvar Kn = i((ph, Hn) => {\n var rl = kn(), tl = P();\n function nl(e, r, n) {\n var o = r(e);\n return tl(e) ? o : rl(o, n(e));\n }\n t(nl, \"baseGetAllKeys\");\n Hn.exports = nl;\n});\n\n// ../node_modules/lodash/_arrayFilter.js\nvar Wn = i((lh, $n) => {\n function ol(e, r) {\n for (var n = -1, o = e == null ? 0 : e.length, a = 0, s = []; ++n < o; ) {\n var u = e[n];\n r(u, n, e) && (s[a++] = u);\n }\n return s;\n }\n t(ol, \"arrayFilter\");\n $n.exports = ol;\n});\n\n// ../node_modules/lodash/stubArray.js\nvar Xn = i((mh, Yn) => {\n function al() {\n return [];\n }\n t(al, \"stubArray\");\n Yn.exports = al;\n});\n\n// ../node_modules/lodash/_getSymbols.js\nvar eo = i((yh, Zn) => {\n var il = Wn(), sl = Xn(), ul = Object.prototype, pl = ul.propertyIsEnumerable, Qn = Object.getOwnPropertySymbols, cl = Qn ? function(e) {\n return e == null ? [] : (e = Object(e), il(Qn(e), function(r) {\n return pl.call(e, r);\n }));\n } : sl;\n Zn.exports = cl;\n});\n\n// ../node_modules/lodash/_getAllKeys.js\nvar to = i((dh, ro) => {\n var ll = Kn(), fl = eo(), ml = ne();\n function gl(e) {\n return ll(e, ml, fl);\n }\n t(gl, \"getAllKeys\");\n ro.exports = gl;\n});\n\n// ../node_modules/lodash/_equalObjects.js\nvar ao = i((Th, oo) => {\n var no = to(), yl = 1, dl = Object.prototype, hl = dl.hasOwnProperty;\n function Tl(e, r, n, o, a, s) {\n var u = n & yl, p = no(e), c = p.length, l = no(r), f = l.length;\n if (c != f && !u)\n return !1;\n for (var d = c; d--; ) {\n var g = p[d];\n if (!(u ? g in r : hl.call(r, g)))\n return !1;\n }\n var x = s.get(e), h = s.get(r);\n if (x && h)\n return x == r && h == e;\n var T = !0;\n s.set(e, r), s.set(r, e);\n for (var v = u; ++d < c; ) {\n g = p[d];\n var O = e[g], w = r[g];\n if (o)\n var er = u ? o(w, O, g, r, e, s) : o(O, w, g, e, r, s);\n if (!(er === void 0 ? O === w || a(O, w, n, o, s) : er)) {\n T = !1;\n break;\n }\n v || (v = g == \"constructor\");\n }\n if (T && !v) {\n var Z = e.constructor, ee = r.constructor;\n Z != ee && \"constructor\" in e && \"constructor\" in r && !(typeof Z == \"function\" && Z instanceof Z && typeof ee == \"function\" && ee instanceof\n ee) && (T = !1);\n }\n return s.delete(e), s.delete(r), T;\n }\n t(Tl, \"equalObjects\");\n oo.exports = Tl;\n});\n\n// ../node_modules/lodash/_DataView.js\nvar so = i((bh, io) => {\n var xl = S(), bl = D(), vl = xl(bl, \"DataView\");\n io.exports = vl;\n});\n\n// ../node_modules/lodash/_Promise.js\nvar po = i((vh, uo) => {\n var Dl = S(), Pl = D(), ql = Dl(Pl, \"Promise\");\n uo.exports = ql;\n});\n\n// ../node_modules/lodash/_Set.js\nvar lo = i((Dh, co) => {\n var Sl = S(), _l = D(), Ol = Sl(_l, \"Set\");\n co.exports = Ol;\n});\n\n// ../node_modules/lodash/_WeakMap.js\nvar mo = i((Ph, fo) => {\n var wl = S(), Al = D(), El = wl(Al, \"WeakMap\");\n fo.exports = El;\n});\n\n// ../node_modules/lodash/_getTag.js\nvar Do = i((qh, vo) => {\n var je = so(), Ce = oe(), Ie = po(), Fe = lo(), Ne = mo(), bo = j(), J = ve(), go = \"[object Map]\", jl = \"[object Object]\", yo = \"[object \\\nPromise]\", ho = \"[object Set]\", To = \"[object WeakMap]\", xo = \"[object DataView]\", Cl = J(je), Il = J(Ce), Fl = J(Ie), Nl = J(Fe), Rl = J(Ne),\n A = bo;\n (je && A(new je(new ArrayBuffer(1))) != xo || Ce && A(new Ce()) != go || Ie && A(Ie.resolve()) != yo || Fe && A(new Fe()) != ho || Ne && A(\n new Ne()) != To) && (A = /* @__PURE__ */ t(function(e) {\n var r = bo(e), n = r == jl ? e.constructor : void 0, o = n ? J(n) : \"\";\n if (o)\n switch (o) {\n case Cl:\n return xo;\n case Il:\n return go;\n case Fl:\n return yo;\n case Nl:\n return ho;\n case Rl:\n return To;\n }\n return r;\n }, \"getTag\"));\n vo.exports = A;\n});\n\n// ../node_modules/lodash/_baseIsEqualDeep.js\nvar Eo = i((_h, Ao) => {\n var Re = we(), Ll = Ae(), Ml = Bn(), Jl = ao(), Po = Do(), qo = P(), So = Pe(), Ul = _e(), Gl = 1, _o = \"[object Arguments]\", Oo = \"[objec\\\nt Array]\", se = \"[object Object]\", Vl = Object.prototype, wo = Vl.hasOwnProperty;\n function Bl(e, r, n, o, a, s) {\n var u = qo(e), p = qo(r), c = u ? Oo : Po(e), l = p ? Oo : Po(r);\n c = c == _o ? se : c, l = l == _o ? se : l;\n var f = c == se, d = l == se, g = c == l;\n if (g && So(e)) {\n if (!So(r))\n return !1;\n u = !0, f = !1;\n }\n if (g && !f)\n return s || (s = new Re()), u || Ul(e) ? Ll(e, r, n, o, a, s) : Ml(e, r, c, n, o, a, s);\n if (!(n & Gl)) {\n var x = f && wo.call(e, \"__wrapped__\"), h = d && wo.call(r, \"__wrapped__\");\n if (x || h) {\n var T = x ? e.value() : e, v = h ? r.value() : r;\n return s || (s = new Re()), a(T, v, n, o, s);\n }\n }\n return g ? (s || (s = new Re()), Jl(e, r, n, o, a, s)) : !1;\n }\n t(Bl, \"baseIsEqualDeep\");\n Ao.exports = Bl;\n});\n\n// ../node_modules/lodash/_baseIsEqual.js\nvar Le = i((wh, Io) => {\n var zl = Eo(), jo = C();\n function Co(e, r, n, o, a) {\n return e === r ? !0 : e == null || r == null || !jo(e) && !jo(r) ? e !== e && r !== r : zl(e, r, n, o, Co, a);\n }\n t(Co, \"baseIsEqual\");\n Io.exports = Co;\n});\n\n// ../node_modules/lodash/_baseIsMatch.js\nvar No = i((Eh, Fo) => {\n var kl = we(), Hl = Le(), Kl = 1, $l = 2;\n function Wl(e, r, n, o) {\n var a = n.length, s = a, u = !o;\n if (e == null)\n return !s;\n for (e = Object(e); a--; ) {\n var p = n[a];\n if (u && p[2] ? p[1] !== e[p[0]] : !(p[0] in e))\n return !1;\n }\n for (; ++a < s; ) {\n p = n[a];\n var c = p[0], l = e[c], f = p[1];\n if (u && p[2]) {\n if (l === void 0 && !(c in e))\n return !1;\n } else {\n var d = new kl();\n if (o)\n var g = o(l, f, c, e, r, d);\n if (!(g === void 0 ? Hl(f, l, Kl | $l, o, d) : g))\n return !1;\n }\n }\n return !0;\n }\n t(Wl, \"baseIsMatch\");\n Fo.exports = Wl;\n});\n\n// ../node_modules/lodash/_isStrictComparable.js\nvar Me = i((Ch, Ro) => {\n var Yl = re();\n function Xl(e) {\n return e === e && !Yl(e);\n }\n t(Xl, \"isStrictComparable\");\n Ro.exports = Xl;\n});\n\n// ../node_modules/lodash/_getMatchData.js\nvar Mo = i((Fh, Lo) => {\n var Ql = Me(), Zl = ne();\n function ef(e) {\n for (var r = Zl(e), n = r.length; n--; ) {\n var o = r[n], a = e[o];\n r[n] = [o, a, Ql(a)];\n }\n return r;\n }\n t(ef, \"getMatchData\");\n Lo.exports = ef;\n});\n\n// ../node_modules/lodash/_matchesStrictComparable.js\nvar Je = i((Rh, Jo) => {\n function rf(e, r) {\n return function(n) {\n return n == null ? !1 : n[e] === r && (r !== void 0 || e in Object(n));\n };\n }\n t(rf, \"matchesStrictComparable\");\n Jo.exports = rf;\n});\n\n// ../node_modules/lodash/_baseMatches.js\nvar Go = i((Mh, Uo) => {\n var tf = No(), nf = Mo(), of = Je();\n function af(e) {\n var r = nf(e);\n return r.length == 1 && r[0][2] ? of(r[0][0], r[0][1]) : function(n) {\n return n === e || tf(n, e, r);\n };\n }\n t(af, \"baseMatches\");\n Uo.exports = af;\n});\n\n// ../node_modules/lodash/isSymbol.js\nvar ue = i((Uh, Vo) => {\n var sf = j(), uf = C(), pf = \"[object Symbol]\";\n function cf(e) {\n return typeof e == \"symbol\" || uf(e) && sf(e) == pf;\n }\n t(cf, \"isSymbol\");\n Vo.exports = cf;\n});\n\n// ../node_modules/lodash/_isKey.js\nvar pe = i((Vh, Bo) => {\n var lf = P(), ff = ue(), mf = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/, gf = /^\\w*$/;\n function yf(e, r) {\n if (lf(e))\n return !1;\n var n = typeof e;\n return n == \"number\" || n == \"symbol\" || n == \"boolean\" || e == null || ff(e) ? !0 : gf.test(e) || !mf.test(e) || r != null && e in Object(\n r);\n }\n t(yf, \"isKey\");\n Bo.exports = yf;\n});\n\n// ../node_modules/lodash/memoize.js\nvar Ho = i((zh, ko) => {\n var zo = ae(), df = \"Expected a function\";\n function Ue(e, r) {\n if (typeof e != \"function\" || r != null && typeof r != \"function\")\n throw new TypeError(df);\n var n = /* @__PURE__ */ t(function() {\n var o = arguments, a = r ? r.apply(this, o) : o[0], s = n.cache;\n if (s.has(a))\n return s.get(a);\n var u = e.apply(this, o);\n return n.cache = s.set(a, u) || s, u;\n }, \"memoized\");\n return n.cache = new (Ue.Cache || zo)(), n;\n }\n t(Ue, \"memoize\");\n Ue.Cache = zo;\n ko.exports = Ue;\n});\n\n// ../node_modules/lodash/_memoizeCapped.js\nvar $o = i((Hh, Ko) => {\n var hf = Ho(), Tf = 500;\n function xf(e) {\n var r = hf(e, function(o) {\n return n.size === Tf && n.clear(), o;\n }), n = r.cache;\n return r;\n }\n t(xf, \"memoizeCapped\");\n Ko.exports = xf;\n});\n\n// ../node_modules/lodash/_stringToPath.js\nvar Yo = i(($h, Wo) => {\n var bf = $o(), vf = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g, Df = /\\\\(\\\\)?/g, Pf = bf(\n function(e) {\n var r = [];\n return e.charCodeAt(0) === 46 && r.push(\"\"), e.replace(vf, function(n, o, a, s) {\n r.push(a ? s.replace(Df, \"$1\") : o || n);\n }), r;\n });\n Wo.exports = Pf;\n});\n\n// ../node_modules/lodash/_arrayMap.js\nvar Qo = i((Wh, Xo) => {\n function qf(e, r) {\n for (var n = -1, o = e == null ? 0 : e.length, a = Array(o); ++n < o; )\n a[n] = r(e[n], n, e);\n return a;\n }\n t(qf, \"arrayMap\");\n Xo.exports = qf;\n});\n\n// ../node_modules/lodash/_baseToString.js\nvar oa = i((Xh, na) => {\n var Zo = B(), Sf = Qo(), _f = P(), Of = ue(), wf = 1 / 0, ea = Zo ? Zo.prototype : void 0, ra = ea ? ea.toString : void 0;\n function ta(e) {\n if (typeof e == \"string\")\n return e;\n if (_f(e))\n return Sf(e, ta) + \"\";\n if (Of(e))\n return ra ? ra.call(e) : \"\";\n var r = e + \"\";\n return r == \"0\" && 1 / e == -wf ? \"-0\" : r;\n }\n t(ta, \"baseToString\");\n na.exports = ta;\n});\n\n// ../node_modules/lodash/toString.js\nvar ia = i((Zh, aa) => {\n var Af = oa();\n function Ef(e) {\n return e == null ? \"\" : Af(e);\n }\n t(Ef, \"toString\");\n aa.exports = Ef;\n});\n\n// ../node_modules/lodash/_castPath.js\nvar Ge = i((rT, sa) => {\n var jf = P(), Cf = pe(), If = Yo(), Ff = ia();\n function Nf(e, r) {\n return jf(e) ? e : Cf(e, r) ? [e] : If(Ff(e));\n }\n t(Nf, \"castPath\");\n sa.exports = Nf;\n});\n\n// ../node_modules/lodash/_toKey.js\nvar Q = i((nT, ua) => {\n var Rf = ue(), Lf = 1 / 0;\n function Mf(e) {\n if (typeof e == \"string\" || Rf(e))\n return e;\n var r = e + \"\";\n return r == \"0\" && 1 / e == -Lf ? \"-0\" : r;\n }\n t(Mf, \"toKey\");\n ua.exports = Mf;\n});\n\n// ../node_modules/lodash/_baseGet.js\nvar Ve = i((aT, pa) => {\n var Jf = Ge(), Uf = Q();\n function Gf(e, r) {\n r = Jf(r, e);\n for (var n = 0, o = r.length; e != null && n < o; )\n e = e[Uf(r[n++])];\n return n && n == o ? e : void 0;\n }\n t(Gf, \"baseGet\");\n pa.exports = Gf;\n});\n\n// ../node_modules/lodash/get.js\nvar la = i((sT, ca) => {\n var Vf = Ve();\n function Bf(e, r, n) {\n var o = e == null ? void 0 : Vf(e, r);\n return o === void 0 ? n : o;\n }\n t(Bf, \"get\");\n ca.exports = Bf;\n});\n\n// ../node_modules/lodash/_baseHasIn.js\nvar ma = i((pT, fa) => {\n function zf(e, r) {\n return e != null && r in Object(e);\n }\n t(zf, \"baseHasIn\");\n fa.exports = zf;\n});\n\n// ../node_modules/lodash/_hasPath.js\nvar ya = i((lT, ga) => {\n var kf = Ge(), Hf = De(), Kf = P(), $f = qe(), Wf = te(), Yf = Q();\n function Xf(e, r, n) {\n r = kf(r, e);\n for (var o = -1, a = r.length, s = !1; ++o < a; ) {\n var u = Yf(r[o]);\n if (!(s = e != null && n(e, u)))\n break;\n e = e[u];\n }\n return s || ++o != a ? s : (a = e == null ? 0 : e.length, !!a && Wf(a) && $f(u, a) && (Kf(e) || Hf(e)));\n }\n t(Xf, \"hasPath\");\n ga.exports = Xf;\n});\n\n// ../node_modules/lodash/hasIn.js\nvar ha = i((mT, da) => {\n var Qf = ma(), Zf = ya();\n function em(e, r) {\n return e != null && Zf(e, r, Qf);\n }\n t(em, \"hasIn\");\n da.exports = em;\n});\n\n// ../node_modules/lodash/_baseMatchesProperty.js\nvar xa = i((yT, Ta) => {\n var rm = Le(), tm = la(), nm = ha(), om = pe(), am = Me(), im = Je(), sm = Q(), um = 1, pm = 2;\n function cm(e, r) {\n return om(e) && am(r) ? im(sm(e), r) : function(n) {\n var o = tm(n, e);\n return o === void 0 && o === r ? nm(n, e) : rm(r, o, um | pm);\n };\n }\n t(cm, \"baseMatchesProperty\");\n Ta.exports = cm;\n});\n\n// ../node_modules/lodash/identity.js\nvar va = i((hT, ba) => {\n function lm(e) {\n return e;\n }\n t(lm, \"identity\");\n ba.exports = lm;\n});\n\n// ../node_modules/lodash/_baseProperty.js\nvar Pa = i((xT, Da) => {\n function fm(e) {\n return function(r) {\n return r?.[e];\n };\n }\n t(fm, \"baseProperty\");\n Da.exports = fm;\n});\n\n// ../node_modules/lodash/_basePropertyDeep.js\nvar Sa = i((vT, qa) => {\n var mm = Ve();\n function gm(e) {\n return function(r) {\n return mm(r, e);\n };\n }\n t(gm, \"basePropertyDeep\");\n qa.exports = gm;\n});\n\n// ../node_modules/lodash/property.js\nvar Oa = i((PT, _a) => {\n var ym = Pa(), dm = Sa(), hm = pe(), Tm = Q();\n function xm(e) {\n return hm(e) ? ym(Tm(e)) : dm(e);\n }\n t(xm, \"property\");\n _a.exports = xm;\n});\n\n// ../node_modules/lodash/_baseIteratee.js\nvar Aa = i((ST, wa) => {\n var bm = Go(), vm = xa(), Dm = va(), Pm = P(), qm = Oa();\n function Sm(e) {\n return typeof e == \"function\" ? e : e == null ? Dm : typeof e == \"object\" ? Pm(e) ? vm(e[0], e[1]) : bm(e) : qm(e);\n }\n t(Sm, \"baseIteratee\");\n wa.exports = Sm;\n});\n\n// ../node_modules/lodash/mapValues.js\nvar ja = i((OT, Ea) => {\n var _m = Er(), Om = bt(), wm = Aa();\n function Am(e, r) {\n var n = {};\n return r = wm(r, 3), Om(e, function(o, a, s) {\n _m(n, a, r(o, a, s));\n }), n;\n }\n t(Am, \"mapValues\");\n Ea.exports = Am;\n});\n\n// src/docs-tools/argTypes/convert/flow/convert.ts\nimport { UnknownArgTypesError as mi } from \"@storybook/core/preview-errors\";\nvar gi = /* @__PURE__ */ t((e) => e.name === \"literal\", \"isLiteral\"), yi = /* @__PURE__ */ t((e) => e.value.replace(/['|\"]/g, \"\"), \"toEnumOp\\\ntion\"), di = /* @__PURE__ */ t((e) => {\n switch (e.type) {\n case \"function\":\n return { name: \"function\" };\n case \"object\":\n let r = {};\n return e.signature.properties.forEach((n) => {\n r[n.key] = E(n.value);\n }), {\n name: \"object\",\n value: r\n };\n default:\n throw new mi({ type: e, language: \"Flow\" });\n }\n}, \"convertSig\"), E = /* @__PURE__ */ t((e) => {\n let { name: r, raw: n } = e, o = {};\n switch (typeof n < \"u\" && (o.raw = n), e.name) {\n case \"literal\":\n return { ...o, name: \"other\", value: e.value };\n case \"string\":\n case \"number\":\n case \"symbol\":\n case \"boolean\":\n return { ...o, name: r };\n case \"Array\":\n return { ...o, name: \"array\", value: e.elements.map(E) };\n case \"signature\":\n return { ...o, ...di(e) };\n case \"union\":\n return e.elements?.every(gi) ? { ...o, name: \"enum\", value: e.elements?.map(yi) } : { ...o, name: r, value: e.elements?.map(E) };\n case \"intersection\":\n return { ...o, name: r, value: e.elements?.map(E) };\n default:\n return { ...o, name: \"other\", value: r };\n }\n}, \"convert\");\n\n// src/docs-tools/argTypes/convert/proptypes/convert.ts\nvar Ia = fi(ja(), 1);\n\n// src/docs-tools/argTypes/convert/utils.ts\nvar Ca = /^['\"]|['\"]$/g, Em = /* @__PURE__ */ t((e) => e.replace(Ca, \"\"), \"trimQuotes\"), jm = /* @__PURE__ */ t((e) => Ca.test(e), \"includes\\\nQuotes\"), ce = /* @__PURE__ */ t((e) => {\n let r = Em(e);\n return jm(e) || Number.isNaN(Number(r)) ? r : Number(r);\n}, \"parseLiteral\");\n\n// src/docs-tools/argTypes/convert/proptypes/convert.ts\nvar Cm = /^\\(.*\\) => /, U = /* @__PURE__ */ t((e) => {\n let { name: r, raw: n, computed: o, value: a } = e, s = {};\n switch (typeof n < \"u\" && (s.raw = n), r) {\n case \"enum\": {\n let p = o ? a : a.map((c) => ce(c.value));\n return { ...s, name: r, value: p };\n }\n case \"string\":\n case \"number\":\n case \"symbol\":\n return { ...s, name: r };\n case \"func\":\n return { ...s, name: \"function\" };\n case \"bool\":\n case \"boolean\":\n return { ...s, name: \"boolean\" };\n case \"arrayOf\":\n case \"array\":\n return { ...s, name: \"array\", value: a && U(a) };\n case \"object\":\n return { ...s, name: r };\n case \"objectOf\":\n return { ...s, name: r, value: U(a) };\n case \"shape\":\n case \"exact\":\n let u = (0, Ia.default)(a, (p) => U(p));\n return { ...s, name: \"object\", value: u };\n case \"union\":\n return { ...s, name: \"union\", value: a.map((p) => U(p)) };\n case \"instanceOf\":\n case \"element\":\n case \"elementType\":\n default: {\n if (r?.indexOf(\"|\") > 0)\n try {\n let l = r.split(\"|\").map((f) => JSON.parse(f));\n return { ...s, name: \"enum\", value: l };\n } catch {\n }\n let p = a ? `${r}(${a})` : r, c = Cm.test(r) ? \"function\" : \"other\";\n return { ...s, name: c, value: p };\n }\n }\n}, \"convert\");\n\n// src/docs-tools/argTypes/convert/typescript/convert.ts\nimport { UnknownArgTypesError as Im } from \"@storybook/core/preview-errors\";\nvar Fm = /* @__PURE__ */ t((e) => {\n switch (e.type) {\n case \"function\":\n return { name: \"function\" };\n case \"object\":\n let r = {};\n return e.signature.properties.forEach((n) => {\n r[n.key] = G(n.value);\n }), {\n name: \"object\",\n value: r\n };\n default:\n throw new Im({ type: e, language: \"Typescript\" });\n }\n}, \"convertSig\"), G = /* @__PURE__ */ t((e) => {\n let { name: r, raw: n } = e, o = {};\n switch (typeof n < \"u\" && (o.raw = n), e.name) {\n case \"string\":\n case \"number\":\n case \"symbol\":\n case \"boolean\":\n return { ...o, name: r };\n case \"Array\":\n return { ...o, name: \"array\", value: e.elements.map(G) };\n case \"signature\":\n return { ...o, ...Fm(e) };\n case \"union\":\n let a;\n return e.elements?.every((s) => s.name === \"literal\") ? a = {\n ...o,\n name: \"enum\",\n // @ts-expect-error fix types\n value: e.elements?.map((s) => ce(s.value))\n } : a = { ...o, name: r, value: e.elements?.map(G) }, a;\n case \"intersection\":\n return { ...o, name: r, value: e.elements?.map(G) };\n default:\n return { ...o, name: \"other\", value: r };\n }\n}, \"convert\");\n\n// src/docs-tools/argTypes/convert/index.ts\nvar le = /* @__PURE__ */ t((e) => {\n let { type: r, tsType: n, flowType: o } = e;\n try {\n if (r != null)\n return U(r);\n if (n != null)\n return G(n);\n if (o != null)\n return E(o);\n } catch (a) {\n console.error(a);\n }\n return null;\n}, \"convert\");\n\n// src/docs-tools/argTypes/docgen/types.ts\nvar Nm = /* @__PURE__ */ ((a) => (a.JAVASCRIPT = \"JavaScript\", a.FLOW = \"Flow\", a.TYPESCRIPT = \"TypeScript\", a.UNKNOWN = \"Unknown\", a))(Nm ||\n{});\n\n// src/docs-tools/argTypes/docgen/utils/defaultValue.ts\nvar Rm = [\"null\", \"undefined\"];\nfunction V(e) {\n return Rm.some((r) => r === e);\n}\nt(V, \"isDefaultValueBlacklisted\");\n\n// src/docs-tools/argTypes/docgen/utils/string.ts\nvar Fa = /* @__PURE__ */ t((e) => {\n if (!e)\n return \"\";\n if (typeof e == \"string\")\n return e;\n throw new Error(`Description: expected string, got: ${JSON.stringify(e)}`);\n}, \"str\");\n\n// src/docs-tools/argTypes/docgen/utils/docgenInfo.ts\nfunction Na(e) {\n return !!e.__docgenInfo;\n}\nt(Na, \"hasDocgen\");\nfunction Ra(e) {\n return e != null && Object.keys(e).length > 0;\n}\nt(Ra, \"isValidDocgenSection\");\nfunction La(e, r) {\n return Na(e) ? e.__docgenInfo[r] : null;\n}\nt(La, \"getDocgenSection\");\nfunction Ma(e) {\n return Na(e) ? Fa(e.__docgenInfo.description) : \"\";\n}\nt(Ma, \"getDocgenDescription\");\n\n// ../node_modules/comment-parser/es6/primitives.js\nvar b;\n(function(e) {\n e.start = \"/**\", e.nostart = \"/***\", e.delim = \"*\", e.end = \"*/\";\n})(b = b || (b = {}));\n\n// ../node_modules/comment-parser/es6/util.js\nfunction Be(e) {\n return /^\\s+$/.test(e);\n}\nt(Be, \"isSpace\");\nfunction Ja(e) {\n let r = e.match(/\\r+$/);\n return r == null ? [\"\", e] : [e.slice(-r[0].length), e.slice(0, -r[0].length)];\n}\nt(Ja, \"splitCR\");\nfunction q(e) {\n let r = e.match(/^\\s+/);\n return r == null ? [\"\", e] : [e.slice(0, r[0].length), e.slice(r[0].length)];\n}\nt(q, \"splitSpace\");\nfunction Ua(e) {\n return e.split(/\\n/);\n}\nt(Ua, \"splitLines\");\nfunction Ga(e = {}) {\n return Object.assign({ tag: \"\", name: \"\", type: \"\", optional: !1, description: \"\", problems: [], source: [] }, e);\n}\nt(Ga, \"seedSpec\");\nfunction ze(e = {}) {\n return Object.assign({ start: \"\", delimiter: \"\", postDelimiter: \"\", tag: \"\", postTag: \"\", name: \"\", postName: \"\", type: \"\", postType: \"\", description: \"\",\n end: \"\", lineEnd: \"\" }, e);\n}\nt(ze, \"seedTokens\");\n\n// ../node_modules/comment-parser/es6/parser/block-parser.js\nvar Lm = /^@\\S+/;\nfunction ke({ fence: e = \"```\" } = {}) {\n let r = Mm(e), n = /* @__PURE__ */ t((o, a) => r(o) ? !a : a, \"toggleFence\");\n return /* @__PURE__ */ t(function(a) {\n let s = [[]], u = !1;\n for (let p of a)\n Lm.test(p.tokens.description) && !u ? s.push([p]) : s[s.length - 1].push(p), u = n(p.tokens.description, u);\n return s;\n }, \"parseBlock\");\n}\nt(ke, \"getParser\");\nfunction Mm(e) {\n return typeof e == \"string\" ? (r) => r.split(e).length % 2 === 0 : e;\n}\nt(Mm, \"getFencer\");\n\n// ../node_modules/comment-parser/es6/parser/source-parser.js\nfunction He({ startLine: e = 0, markers: r = b } = {}) {\n let n = null, o = e;\n return /* @__PURE__ */ t(function(s) {\n let u = s, p = ze();\n if ([p.lineEnd, u] = Ja(u), [p.start, u] = q(u), n === null && u.startsWith(r.start) && !u.startsWith(r.nostart) && (n = [], p.delimiter =\n u.slice(0, r.start.length), u = u.slice(r.start.length), [p.postDelimiter, u] = q(u)), n === null)\n return o++, null;\n let c = u.trimRight().endsWith(r.end);\n if (p.delimiter === \"\" && u.startsWith(r.delim) && !u.startsWith(r.end) && (p.delimiter = r.delim, u = u.slice(r.delim.length), [p.postDelimiter,\n u] = q(u)), c) {\n let l = u.trimRight();\n p.end = u.slice(l.length - r.end.length), u = l.slice(0, -r.end.length);\n }\n if (p.description = u, n.push({ number: o, source: s, tokens: p }), o++, c) {\n let l = n.slice();\n return n = null, l;\n }\n return null;\n }, \"parseSource\");\n}\nt(He, \"getParser\");\n\n// ../node_modules/comment-parser/es6/parser/spec-parser.js\nfunction Ke({ tokenizers: e }) {\n return /* @__PURE__ */ t(function(n) {\n var o;\n let a = Ga({ source: n });\n for (let s of e)\n if (a = s(a), !((o = a.problems[a.problems.length - 1]) === null || o === void 0) && o.critical)\n break;\n return a;\n }, \"parseSpec\");\n}\nt(Ke, \"getParser\");\n\n// ../node_modules/comment-parser/es6/parser/tokenizers/tag.js\nfunction fe() {\n return (e) => {\n let { tokens: r } = e.source[0], n = r.description.match(/\\s*(@(\\S+))(\\s*)/);\n return n === null ? (e.problems.push({\n code: \"spec:tag:prefix\",\n message: 'tag should start with \"@\" symbol',\n line: e.source[0].number,\n critical: !0\n }), e) : (r.tag = n[1], r.postTag = n[3], r.description = r.description.slice(n[0].length), e.tag = n[2], e);\n };\n}\nt(fe, \"tagTokenizer\");\n\n// ../node_modules/comment-parser/es6/parser/tokenizers/type.js\nfunction me(e = \"compact\") {\n let r = Um(e);\n return (n) => {\n let o = 0, a = [];\n for (let [p, { tokens: c }] of n.source.entries()) {\n let l = \"\";\n if (p === 0 && c.description[0] !== \"{\")\n return n;\n for (let f of c.description)\n if (f === \"{\" && o++, f === \"}\" && o--, l += f, o === 0)\n break;\n if (a.push([c, l]), o === 0)\n break;\n }\n if (o !== 0)\n return n.problems.push({\n code: \"spec:type:unpaired-curlies\",\n message: \"unpaired curlies\",\n line: n.source[0].number,\n critical: !0\n }), n;\n let s = [], u = a[0][0].postDelimiter.length;\n for (let [p, [c, l]] of a.entries())\n c.type = l, p > 0 && (c.type = c.postDelimiter.slice(u) + l, c.postDelimiter = c.postDelimiter.slice(0, u)), [c.postType, c.description] =\n q(c.description.slice(l.length)), s.push(c.type);\n return s[0] = s[0].slice(1), s[s.length - 1] = s[s.length - 1].slice(0, -1), n.type = r(s), n;\n };\n}\nt(me, \"typeTokenizer\");\nvar Jm = /* @__PURE__ */ t((e) => e.trim(), \"trim\");\nfunction Um(e) {\n return e === \"compact\" ? (r) => r.map(Jm).join(\"\") : e === \"preserve\" ? (r) => r.join(`\n`) : e;\n}\nt(Um, \"getJoiner\");\n\n// ../node_modules/comment-parser/es6/parser/tokenizers/name.js\nvar Gm = /* @__PURE__ */ t((e) => e && e.startsWith('\"') && e.endsWith('\"'), \"isQuoted\");\nfunction ge() {\n let e = /* @__PURE__ */ t((r, { tokens: n }, o) => n.type === \"\" ? r : o, \"typeEnd\");\n return (r) => {\n let { tokens: n } = r.source[r.source.reduce(e, 0)], o = n.description.trimLeft(), a = o.split('\"');\n if (a.length > 1 && a[0] === \"\" && a.length % 2 === 1)\n return r.name = a[1], n.name = `\"${a[1]}\"`, [n.postName, n.description] = q(o.slice(n.name.length)), r;\n let s = 0, u = \"\", p = !1, c;\n for (let f of o) {\n if (s === 0 && Be(f))\n break;\n f === \"[\" && s++, f === \"]\" && s--, u += f;\n }\n if (s !== 0)\n return r.problems.push({\n code: \"spec:name:unpaired-brackets\",\n message: \"unpaired brackets\",\n line: r.source[0].number,\n critical: !0\n }), r;\n let l = u;\n if (u[0] === \"[\" && u[u.length - 1] === \"]\") {\n p = !0, u = u.slice(1, -1);\n let f = u.split(\"=\");\n if (u = f[0].trim(), f[1] !== void 0 && (c = f.slice(1).join(\"=\").trim()), u === \"\")\n return r.problems.push({\n code: \"spec:name:empty-name\",\n message: \"empty name\",\n line: r.source[0].number,\n critical: !0\n }), r;\n if (c === \"\")\n return r.problems.push({\n code: \"spec:name:empty-default\",\n message: \"empty default value\",\n line: r.source[0].number,\n critical: !0\n }), r;\n if (!Gm(c) && /=(?!>)/.test(c))\n return r.problems.push({\n code: \"spec:name:invalid-default\",\n message: \"invalid default value syntax\",\n line: r.source[0].number,\n critical: !0\n }), r;\n }\n return r.optional = p, r.name = u, n.name = l, c !== void 0 && (r.default = c), [n.postName, n.description] = q(o.slice(n.name.length)),\n r;\n };\n}\nt(ge, \"nameTokenizer\");\n\n// ../node_modules/comment-parser/es6/parser/tokenizers/description.js\nfunction ye(e = \"compact\", r = b) {\n let n = $e(e);\n return (o) => (o.description = n(o.source, r), o);\n}\nt(ye, \"descriptionTokenizer\");\nfunction $e(e) {\n return e === \"compact\" ? Vm : e === \"preserve\" ? km : e;\n}\nt($e, \"getJoiner\");\nfunction Vm(e, r = b) {\n return e.map(({ tokens: { description: n } }) => n.trim()).filter((n) => n !== \"\").join(\" \");\n}\nt(Vm, \"compactJoiner\");\nvar Bm = /* @__PURE__ */ t((e, { tokens: r }, n) => r.type === \"\" ? e : n, \"lineNo\"), zm = /* @__PURE__ */ t(({ tokens: e }) => (e.delimiter ===\n\"\" ? e.start : e.postDelimiter.slice(1)) + e.description, \"getDescription\");\nfunction km(e, r = b) {\n if (e.length === 0)\n return \"\";\n e[0].tokens.description === \"\" && e[0].tokens.delimiter === r.start && (e = e.slice(1));\n let n = e[e.length - 1];\n return n !== void 0 && n.tokens.description === \"\" && n.tokens.end.endsWith(r.end) && (e = e.slice(0, -1)), e = e.slice(e.reduce(Bm, 0)), e.\n map(zm).join(`\n`);\n}\nt(km, \"preserveJoiner\");\n\n// ../node_modules/comment-parser/es6/parser/index.js\nfunction We({ startLine: e = 0, fence: r = \"```\", spacing: n = \"compact\", markers: o = b, tokenizers: a = [\n fe(),\n me(n),\n ge(),\n ye(n)\n] } = {}) {\n if (e < 0 || e % 1 > 0)\n throw new Error(\"Invalid startLine\");\n let s = He({ startLine: e, markers: o }), u = ke({ fence: r }), p = Ke({ tokenizers: a }), c = $e(n);\n return function(l) {\n let f = [];\n for (let d of Ua(l)) {\n let g = s(d);\n if (g === null)\n continue;\n let x = u(g), h = x.slice(1).map(p);\n f.push({\n description: c(x[0], o),\n tags: h,\n source: g,\n problems: h.reduce((T, v) => T.concat(v.problems), [])\n });\n }\n return f;\n };\n}\nt(We, \"getParser\");\n\n// ../node_modules/comment-parser/es6/stringifier/index.js\nfunction Hm(e) {\n return e.start + e.delimiter + e.postDelimiter + e.tag + e.postTag + e.type + e.postType + e.name + e.postName + e.description + e.end + e.\n lineEnd;\n}\nt(Hm, \"join\");\nfunction Ye() {\n return (e) => e.source.map(({ tokens: r }) => Hm(r)).join(`\n`);\n}\nt(Ye, \"getStringifier\");\n\n// ../node_modules/comment-parser/es6/stringifier/inspect.js\nvar Km = {\n line: 0,\n start: 0,\n delimiter: 0,\n postDelimiter: 0,\n tag: 0,\n postTag: 0,\n name: 0,\n postName: 0,\n type: 0,\n postType: 0,\n description: 0,\n end: 0,\n lineEnd: 0\n};\nvar Hx = Object.keys(Km);\n\n// ../node_modules/comment-parser/es6/index.js\nfunction Va(e, r = {}) {\n return We(r)(e);\n}\nt(Va, \"parse\");\nvar mb = Ye();\n\n// src/docs-tools/argTypes/jsdocParser.ts\nimport {\n parse as $m,\n stringifyRules as Wm,\n transform as Ym\n} from \"jsdoc-type-pratt-parser\";\nfunction Xm(e) {\n return e != null && e.includes(\"@\");\n}\nt(Xm, \"containsJsDoc\");\nfunction Qm(e) {\n let o = `/**\n` + (e ?? \"\").split(`\n`).map((s) => ` * ${s}`).join(`\n`) + `\n*/`, a = Va(o, {\n spacing: \"preserve\"\n });\n if (!a || a.length === 0)\n throw new Error(\"Cannot parse JSDoc tags.\");\n return a[0];\n}\nt(Qm, \"parse\");\nvar Zm = {\n tags: [\"param\", \"arg\", \"argument\", \"returns\", \"ignore\", \"deprecated\"]\n}, Ba = /* @__PURE__ */ t((e, r = Zm) => {\n if (!Xm(e))\n return {\n includesJsDoc: !1,\n ignore: !1\n };\n let n = Qm(e), o = eg(n, r.tags);\n return o.ignore ? {\n includesJsDoc: !0,\n ignore: !0\n } : {\n includesJsDoc: !0,\n ignore: !1,\n // Always use the parsed description to ensure JSDoc is removed from the description.\n description: n.description.trim(),\n extractedTags: o\n };\n}, \"parseJsDoc\");\nfunction eg(e, r) {\n let n = {\n params: null,\n deprecated: null,\n returns: null,\n ignore: !1\n };\n for (let o of e.tags)\n if (!(r !== void 0 && !r.includes(o.tag)))\n if (o.tag === \"ignore\") {\n n.ignore = !0;\n break;\n } else\n switch (o.tag) {\n case \"param\":\n case \"arg\":\n case \"argument\": {\n let a = tg(o);\n a != null && (n.params == null && (n.params = []), n.params.push(a));\n break;\n }\n case \"deprecated\": {\n let a = ng(o);\n a != null && (n.deprecated = a);\n break;\n }\n case \"returns\": {\n let a = og(o);\n a != null && (n.returns = a);\n break;\n }\n default:\n break;\n }\n return n;\n}\nt(eg, \"extractJsDocTags\");\nfunction rg(e) {\n return e.replace(/[\\.-]$/, \"\");\n}\nt(rg, \"normaliseParamName\");\nfunction tg(e) {\n if (!e.name || e.name === \"-\")\n return null;\n let r = Ha(e.type);\n return {\n name: e.name,\n type: r,\n description: ka(e.description),\n getPrettyName: /* @__PURE__ */ t(() => rg(e.name), \"getPrettyName\"),\n getTypeName: /* @__PURE__ */ t(() => r ? Ka(r) : null, \"getTypeName\")\n };\n}\nt(tg, \"extractParam\");\nfunction ng(e) {\n return e.name ? za(e.name, e.description) : null;\n}\nt(ng, \"extractDeprecated\");\nfunction za(e, r) {\n let n = e === \"\" ? r : `${e} ${r}`;\n return ka(n);\n}\nt(za, \"joinNameAndDescription\");\nfunction ka(e) {\n let r = e.replace(/^- /g, \"\").trim();\n return r === \"\" ? null : r;\n}\nt(ka, \"normaliseDescription\");\nfunction og(e) {\n let r = Ha(e.type);\n return r ? {\n type: r,\n description: za(e.name, e.description),\n getTypeName: /* @__PURE__ */ t(() => Ka(r), \"getTypeName\")\n } : null;\n}\nt(og, \"extractReturns\");\nvar _ = Wm(), ag = _.JsdocTypeObject;\n_.JsdocTypeAny = () => \"any\";\n_.JsdocTypeObject = (e, r) => `(${ag(e, r)})`;\n_.JsdocTypeOptional = (e, r) => r(e.element);\n_.JsdocTypeNullable = (e, r) => r(e.element);\n_.JsdocTypeNotNullable = (e, r) => r(e.element);\n_.JsdocTypeUnion = (e, r) => e.elements.map(r).join(\"|\");\nfunction Ha(e) {\n try {\n return $m(e, \"typescript\");\n } catch {\n return null;\n }\n}\nt(Ha, \"extractType\");\nfunction Ka(e) {\n return Ym(_, e);\n}\nt(Ka, \"extractTypeName\");\n\n// src/docs-tools/argTypes/utils.ts\nvar Db = 90, Pb = 50;\nfunction Qe(e) {\n return e.length > 90;\n}\nt(Qe, \"isTooLongForTypeSummary\");\nfunction $a(e) {\n return e.length > 50;\n}\nt($a, \"isTooLongForDefaultValueSummary\");\nfunction y(e, r) {\n return e === r ? { summary: e } : { summary: e, detail: r };\n}\nt(y, \"createSummaryValue\");\nvar qb = /* @__PURE__ */ t((e) => e.replace(/\\\\r\\\\n/g, \"\\\\n\"), \"normalizeNewlines\");\n\n// src/docs-tools/argTypes/docgen/flow/createDefaultValue.ts\nfunction Wa(e, r) {\n if (e != null) {\n let { value: n } = e;\n if (!V(n))\n return $a(n) ? y(r?.name, n) : y(n);\n }\n return null;\n}\nt(Wa, \"createDefaultValue\");\n\n// src/docs-tools/argTypes/docgen/flow/createType.ts\nfunction Ya({ name: e, value: r, elements: n, raw: o }) {\n return r ?? (n != null ? n.map(Ya).join(\" | \") : o ?? e);\n}\nt(Ya, \"generateUnionElement\");\nfunction ig({ name: e, raw: r, elements: n }) {\n return n != null ? y(n.map(Ya).join(\" | \")) : r != null ? y(r.replace(/^\\|\\s*/, \"\")) : y(e);\n}\nt(ig, \"generateUnion\");\nfunction sg({ type: e, raw: r }) {\n return r != null ? y(r) : y(e);\n}\nt(sg, \"generateFuncSignature\");\nfunction ug({ type: e, raw: r }) {\n return r != null ? Qe(r) ? y(e, r) : y(r) : y(e);\n}\nt(ug, \"generateObjectSignature\");\nfunction pg(e) {\n let { type: r } = e;\n return r === \"object\" ? ug(e) : sg(e);\n}\nt(pg, \"generateSignature\");\nfunction cg({ name: e, raw: r }) {\n return r != null ? Qe(r) ? y(e, r) : y(r) : y(e);\n}\nt(cg, \"generateDefault\");\nfunction Xa(e) {\n if (e == null)\n return null;\n switch (e.name) {\n case \"union\":\n return ig(e);\n case \"signature\":\n return pg(e);\n default:\n return cg(e);\n }\n}\nt(Xa, \"createType\");\n\n// src/docs-tools/argTypes/docgen/flow/createPropDef.ts\nvar Qa = /* @__PURE__ */ t((e, r) => {\n let { flowType: n, description: o, required: a, defaultValue: s } = r;\n return {\n name: e,\n type: Xa(n),\n required: a,\n description: o,\n defaultValue: Wa(s ?? null, n ?? null)\n };\n}, \"createFlowPropDef\");\n\n// src/docs-tools/argTypes/docgen/typeScript/createDefaultValue.ts\nfunction Za({ defaultValue: e }) {\n if (e != null) {\n let { value: r } = e;\n if (!V(r))\n return y(r);\n }\n return null;\n}\nt(Za, \"createDefaultValue\");\n\n// src/docs-tools/argTypes/docgen/typeScript/createType.ts\nfunction ei({ tsType: e, required: r }) {\n if (e == null)\n return null;\n let n = e.name;\n return r || (n = n.replace(\" | undefined\", \"\")), y(\n [\"Array\", \"Record\", \"signature\"].includes(e.name) ? e.raw : n\n );\n}\nt(ei, \"createType\");\n\n// src/docs-tools/argTypes/docgen/typeScript/createPropDef.ts\nvar ri = /* @__PURE__ */ t((e, r) => {\n let { description: n, required: o } = r;\n return {\n name: e,\n type: ei(r),\n required: o,\n description: n,\n defaultValue: Za(r)\n };\n}, \"createTsPropDef\");\n\n// src/docs-tools/argTypes/docgen/createPropDef.ts\nfunction lg(e) {\n return e != null ? y(e.name) : null;\n}\nt(lg, \"createType\");\nfunction fg(e) {\n let { computed: r, func: n } = e;\n return typeof r > \"u\" && typeof n > \"u\";\n}\nt(fg, \"isReactDocgenTypescript\");\nfunction mg(e) {\n return e ? e.name === \"string\" ? !0 : e.name === \"enum\" ? Array.isArray(e.value) && e.value.every(\n ({ value: r }) => typeof r == \"string\" && r[0] === '\"' && r[r.length - 1] === '\"'\n ) : !1 : !1;\n}\nt(mg, \"isStringValued\");\nfunction gg(e, r) {\n if (e != null) {\n let { value: n } = e;\n if (!V(n))\n return fg(e) && mg(r) ? y(JSON.stringify(n)) : y(n);\n }\n return null;\n}\nt(gg, \"createDefaultValue\");\nfunction ti(e, r, n) {\n let { description: o, required: a, defaultValue: s } = n;\n return {\n name: e,\n type: lg(r),\n required: a,\n description: o,\n defaultValue: gg(s, r)\n };\n}\nt(ti, \"createBasicPropDef\");\nfunction de(e, r) {\n if (r?.includesJsDoc) {\n let { description: n, extractedTags: o } = r;\n n != null && (e.description = r.description);\n let a = {\n ...o,\n params: o?.params?.map(\n (s) => ({\n name: s.getPrettyName(),\n description: s.description\n })\n )\n };\n Object.values(a).filter(Boolean).length > 0 && (e.jsDocTags = a);\n }\n return e;\n}\nt(de, \"applyJsDocResult\");\nvar yg = /* @__PURE__ */ t((e, r, n) => {\n let o = ti(e, r.type, r);\n return o.sbType = le(r), de(o, n);\n}, \"javaScriptFactory\"), dg = /* @__PURE__ */ t((e, r, n) => {\n let o = ri(e, r);\n return o.sbType = le(r), de(o, n);\n}, \"tsFactory\"), hg = /* @__PURE__ */ t((e, r, n) => {\n let o = Qa(e, r);\n return o.sbType = le(r), de(o, n);\n}, \"flowFactory\"), Tg = /* @__PURE__ */ t((e, r, n) => {\n let o = ti(e, { name: \"unknown\" }, r);\n return de(o, n);\n}, \"unknownFactory\"), Ze = /* @__PURE__ */ t((e) => {\n switch (e) {\n case \"JavaScript\":\n return yg;\n case \"TypeScript\":\n return dg;\n case \"Flow\":\n return hg;\n default:\n return Tg;\n }\n}, \"getPropDefFactory\");\n\n// src/docs-tools/argTypes/docgen/extractDocgenProps.ts\nvar ni = /* @__PURE__ */ t((e) => e.type != null ? \"JavaScript\" : e.flowType != null ? \"Flow\" : e.tsType != null ? \"TypeScript\" : \"Unknown\",\n\"getTypeSystem\"), xg = /* @__PURE__ */ t((e) => {\n let r = ni(e[0]), n = Ze(r);\n return e.map((o) => {\n let a = o;\n return o.type?.elements && (a = {\n ...o,\n type: {\n ...o.type,\n value: o.type.elements\n }\n }), oi(a.name, a, r, n);\n });\n}, \"extractComponentSectionArray\"), bg = /* @__PURE__ */ t((e) => {\n let r = Object.keys(e), n = ni(e[r[0]]), o = Ze(n);\n return r.map((a) => {\n let s = e[a];\n return s != null ? oi(a, s, n, o) : null;\n }).filter(Boolean);\n}, \"extractComponentSectionObject\"), av = /* @__PURE__ */ t((e, r) => {\n let n = La(e, r);\n return Ra(n) ? Array.isArray(n) ? xg(n) : bg(n) : [];\n}, \"extractComponentProps\");\nfunction oi(e, r, n, o) {\n let a = Ba(r.description);\n return a.includesJsDoc && a.ignore ? null : {\n propDef: o(e, r, a),\n jsDocTags: a.extractedTags,\n docgenInfo: r,\n typeSystem: n\n };\n}\nt(oi, \"extractProp\");\nfunction iv(e) {\n return e != null ? Ma(e) : \"\";\n}\nt(iv, \"extractComponentDescription\");\n\n// src/docs-tools/argTypes/enhanceArgTypes.ts\nimport { combineParameters as vg } from \"@storybook/core/preview-api\";\nvar cv = /* @__PURE__ */ t((e) => {\n let {\n component: r,\n argTypes: n,\n parameters: { docs: o = {} }\n } = e, { extractArgTypes: a } = o, s = a && r ? a(r) : {};\n return s ? vg(s, n) : n;\n}, \"enhanceArgTypes\");\n\n// src/docs-tools/shared.ts\nvar ai = \"storybook/docs\", mv = `${ai}/panel`, gv = \"docs\", yv = `${ai}/snippet-rendered`, Dg = /* @__PURE__ */ ((o) => (o.AUTO = \"auto\", o.\nCODE = \"code\", o.DYNAMIC = \"dynamic\", o))(Dg || {});\n\n// src/docs-tools/hasDocsOrControls.ts\nvar Pg = /(addons\\/|addon-|addon-essentials\\/)(docs|controls)/, hv = /* @__PURE__ */ t((e) => e.presetsList?.some((r) => Pg.test(r.name)), \"\\\nhasDocsOrControls\");\nexport {\n ai as ADDON_ID,\n Pb as MAX_DEFAULT_VALUE_SUMMARY_LENGTH,\n Db as MAX_TYPE_SUMMARY_LENGTH,\n mv as PANEL_ID,\n gv as PARAM_KEY,\n yv as SNIPPET_RENDERED,\n Dg as SourceType,\n Nm as TypeSystem,\n le as convert,\n y as createSummaryValue,\n cv as enhanceArgTypes,\n iv as extractComponentDescription,\n av as extractComponentProps,\n xg as extractComponentSectionArray,\n bg as extractComponentSectionObject,\n Ma as getDocgenDescription,\n La as getDocgenSection,\n Na as hasDocgen,\n hv as hasDocsOrControls,\n V as isDefaultValueBlacklisted,\n $a as isTooLongForDefaultValueSummary,\n Qe as isTooLongForTypeSummary,\n Ra as isValidDocgenSection,\n qb as normalizeNewlines,\n Ba as parseJsDoc,\n Fa as str\n};\n","var Bn = Object.create;\nvar or = Object.defineProperty;\nvar $n = Object.getOwnPropertyDescriptor;\nvar Hn = Object.getOwnPropertyNames;\nvar Vn = Object.getPrototypeOf, Un = Object.prototype.hasOwnProperty;\nvar a = (e, r) => or(e, \"name\", { value: r, configurable: !0 }), Ee = /* @__PURE__ */ ((e) => typeof require < \"u\" ? require : typeof Proxy <\n\"u\" ? new Proxy(e, {\n get: (r, t) => (typeof require < \"u\" ? require : r)[t]\n}) : e)(function(e) {\n if (typeof require < \"u\") return require.apply(this, arguments);\n throw Error('Dynamic require of \"' + e + '\" is not supported');\n});\nvar Le = (e, r) => () => (r || e((r = { exports: {} }).exports, r), r.exports);\nvar Wn = (e, r, t, n) => {\n if (r && typeof r == \"object\" || typeof r == \"function\")\n for (let o of Hn(r))\n !Un.call(e, o) && o !== t && or(e, o, { get: () => r[o], enumerable: !(n = $n(r, o)) || n.enumerable });\n return e;\n};\nvar ir = (e, r, t) => (t = e != null ? Bn(Vn(e)) : {}, Wn(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n r || !e || !e.__esModule ? or(t, \"default\", { value: e, enumerable: !0 }) : t,\n e\n));\n\n// ../node_modules/react-is/cjs/react-is.development.js\nvar ct = Le((R) => {\n \"use strict\";\n (function() {\n \"use strict\";\n var e = typeof Symbol == \"function\" && Symbol.for, r = e ? Symbol.for(\"react.element\") : 60103, t = e ? Symbol.for(\"react.portal\") : 60106,\n n = e ? Symbol.for(\"react.fragment\") : 60107, o = e ? Symbol.for(\"react.strict_mode\") : 60108, i = e ? Symbol.for(\"react.profiler\") : 60114,\n s = e ? Symbol.for(\"react.provider\") : 60109, u = e ? Symbol.for(\"react.context\") : 60110, c = e ? Symbol.for(\"react.async_mode\") : 60111,\n d = e ? Symbol.for(\"react.concurrent_mode\") : 60111, f = e ? Symbol.for(\"react.forward_ref\") : 60112, l = e ? Symbol.for(\"react.suspense\") :\n 60113, p = e ? Symbol.for(\"react.suspense_list\") : 60120, v = e ? Symbol.for(\"react.memo\") : 60115, h = e ? Symbol.for(\"react.lazy\") : 60116,\n m = e ? Symbol.for(\"react.block\") : 60121, y = e ? Symbol.for(\"react.fundamental\") : 60117, x = e ? Symbol.for(\"react.responder\") : 60118,\n E = e ? Symbol.for(\"react.scope\") : 60119;\n function A(b) {\n return typeof b == \"string\" || typeof b == \"function\" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n b === n || b === d || b === i || b === o || b === l || b === p || typeof b == \"object\" && b !== null && (b.$$typeof === h || b.$$typeof ===\n v || b.$$typeof === s || b.$$typeof === u || b.$$typeof === f || b.$$typeof === y || b.$$typeof === x || b.$$typeof === E || b.$$typeof ===\n m);\n }\n a(A, \"isValidElementType\");\n function T(b) {\n if (typeof b == \"object\" && b !== null) {\n var ar = b.$$typeof;\n switch (ar) {\n case r:\n var Pe = b.type;\n switch (Pe) {\n case c:\n case d:\n case n:\n case i:\n case o:\n case l:\n return Pe;\n default:\n var Br = Pe && Pe.$$typeof;\n switch (Br) {\n case u:\n case f:\n case h:\n case v:\n case s:\n return Br;\n default:\n return ar;\n }\n }\n case t:\n return ar;\n }\n }\n }\n a(T, \"typeOf\");\n var C = c, N = d, S = u, xe = s, W = r, G = f, er = n, rr = h, tr = v, nr = t, Tn = i, Cn = o, Rn = l, jr = !1;\n function An(b) {\n return jr || (jr = !0, console.warn(\"The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update you\\\nr code to use ReactIs.isConcurrentMode() instead. It has the exact same API.\")), Dr(b) || T(b) === c;\n }\n a(An, \"isAsyncMode\");\n function Dr(b) {\n return T(b) === d;\n }\n a(Dr, \"isConcurrentMode\");\n function _n(b) {\n return T(b) === u;\n }\n a(_n, \"isContextConsumer\");\n function Fn(b) {\n return T(b) === s;\n }\n a(Fn, \"isContextProvider\");\n function Nn(b) {\n return typeof b == \"object\" && b !== null && b.$$typeof === r;\n }\n a(Nn, \"isElement\");\n function In(b) {\n return T(b) === f;\n }\n a(In, \"isForwardRef\");\n function kn(b) {\n return T(b) === n;\n }\n a(kn, \"isFragment\");\n function Pn(b) {\n return T(b) === h;\n }\n a(Pn, \"isLazy\");\n function Ln(b) {\n return T(b) === v;\n }\n a(Ln, \"isMemo\");\n function zn(b) {\n return T(b) === t;\n }\n a(zn, \"isPortal\");\n function Mn(b) {\n return T(b) === i;\n }\n a(Mn, \"isProfiler\");\n function jn(b) {\n return T(b) === o;\n }\n a(jn, \"isStrictMode\");\n function Dn(b) {\n return T(b) === l;\n }\n a(Dn, \"isSuspense\"), R.AsyncMode = C, R.ConcurrentMode = N, R.ContextConsumer = S, R.ContextProvider = xe, R.Element = W, R.ForwardRef =\n G, R.Fragment = er, R.Lazy = rr, R.Memo = tr, R.Portal = nr, R.Profiler = Tn, R.StrictMode = Cn, R.Suspense = Rn, R.isAsyncMode = An, R.\n isConcurrentMode = Dr, R.isContextConsumer = _n, R.isContextProvider = Fn, R.isElement = Nn, R.isForwardRef = In, R.isFragment = kn, R.isLazy =\n Pn, R.isMemo = Ln, R.isPortal = zn, R.isProfiler = Mn, R.isStrictMode = jn, R.isSuspense = Dn, R.isValidElementType = A, R.typeOf = T;\n })();\n});\n\n// ../node_modules/react-is/index.js\nvar lt = Le((xi, ft) => {\n \"use strict\";\n ft.exports = ct();\n});\n\n// ../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js\nvar mr = Le((Ei, bt) => {\n \"use strict\";\n var dr = lt(), ua = {\n childContextTypes: !0,\n contextType: !0,\n contextTypes: !0,\n defaultProps: !0,\n displayName: !0,\n getDefaultProps: !0,\n getDerivedStateFromError: !0,\n getDerivedStateFromProps: !0,\n mixins: !0,\n propTypes: !0,\n type: !0\n }, ca = {\n name: !0,\n length: !0,\n prototype: !0,\n caller: !0,\n callee: !0,\n arguments: !0,\n arity: !0\n }, fa = {\n $$typeof: !0,\n render: !0,\n defaultProps: !0,\n displayName: !0,\n propTypes: !0\n }, ht = {\n $$typeof: !0,\n compare: !0,\n defaultProps: !0,\n displayName: !0,\n propTypes: !0,\n type: !0\n }, pr = {};\n pr[dr.ForwardRef] = fa;\n pr[dr.Memo] = ht;\n function dt(e) {\n return dr.isMemo(e) ? ht : pr[e.$$typeof] || ua;\n }\n a(dt, \"getStatics\");\n var la = Object.defineProperty, da = Object.getOwnPropertyNames, pt = Object.getOwnPropertySymbols, pa = Object.getOwnPropertyDescriptor, ma = Object.\n getPrototypeOf, mt = Object.prototype;\n function gt(e, r, t) {\n if (typeof r != \"string\") {\n if (mt) {\n var n = ma(r);\n n && n !== mt && gt(e, n, t);\n }\n var o = da(r);\n pt && (o = o.concat(pt(r)));\n for (var i = dt(e), s = dt(r), u = 0; u < o.length; ++u) {\n var c = o[u];\n if (!ca[c] && !(t && t[c]) && !(s && s[c]) && !(i && i[c])) {\n var d = pa(r, c);\n try {\n la(e, c, d);\n } catch {\n }\n }\n }\n }\n return e;\n }\n a(gt, \"hoistNonReactStatics\");\n bt.exports = gt;\n});\n\n// ../node_modules/memoizerific/memoizerific.js\nvar ln = Le((fn, Ir) => {\n (function(e) {\n if (typeof fn == \"object\" && typeof Ir < \"u\")\n Ir.exports = e();\n else if (typeof define == \"function\" && define.amd)\n define([], e);\n else {\n var r;\n typeof window < \"u\" ? r = window : typeof global < \"u\" ? r = global : typeof self < \"u\" ? r = self : r = this, r.memoizerific = e();\n }\n })(function() {\n var e, r, t;\n return (/* @__PURE__ */ a(function n(o, i, s) {\n function u(f, l) {\n if (!i[f]) {\n if (!o[f]) {\n var p = typeof Ee == \"function\" && Ee;\n if (!l && p) return p(f, !0);\n if (c) return c(f, !0);\n var v = new Error(\"Cannot find module '\" + f + \"'\");\n throw v.code = \"MODULE_NOT_FOUND\", v;\n }\n var h = i[f] = { exports: {} };\n o[f][0].call(h.exports, function(m) {\n var y = o[f][1][m];\n return u(y || m);\n }, h, h.exports, n, o, i, s);\n }\n return i[f].exports;\n }\n a(u, \"s\");\n for (var c = typeof Ee == \"function\" && Ee, d = 0; d < s.length; d++) u(s[d]);\n return u;\n }, \"e\"))({ 1: [function(n, o, i) {\n o.exports = function(s) {\n if (typeof Map != \"function\" || s) {\n var u = n(\"./similar\");\n return new u();\n } else\n return /* @__PURE__ */ new Map();\n };\n }, { \"./similar\": 2 }], 2: [function(n, o, i) {\n function s() {\n return this.list = [], this.lastItem = void 0, this.size = 0, this;\n }\n a(s, \"Similar\"), s.prototype.get = function(u) {\n var c;\n if (this.lastItem && this.isEqual(this.lastItem.key, u))\n return this.lastItem.val;\n if (c = this.indexOf(u), c >= 0)\n return this.lastItem = this.list[c], this.list[c].val;\n }, s.prototype.set = function(u, c) {\n var d;\n return this.lastItem && this.isEqual(this.lastItem.key, u) ? (this.lastItem.val = c, this) : (d = this.indexOf(u), d >= 0 ? (this.lastItem =\n this.list[d], this.list[d].val = c, this) : (this.lastItem = { key: u, val: c }, this.list.push(this.lastItem), this.size++, this));\n }, s.prototype.delete = function(u) {\n var c;\n if (this.lastItem && this.isEqual(this.lastItem.key, u) && (this.lastItem = void 0), c = this.indexOf(u), c >= 0)\n return this.size--, this.list.splice(c, 1)[0];\n }, s.prototype.has = function(u) {\n var c;\n return this.lastItem && this.isEqual(this.lastItem.key, u) ? !0 : (c = this.indexOf(u), c >= 0 ? (this.lastItem = this.list[c], !0) :\n !1);\n }, s.prototype.forEach = function(u, c) {\n var d;\n for (d = 0; d < this.size; d++)\n u.call(c || this, this.list[d].val, this.list[d].key, this);\n }, s.prototype.indexOf = function(u) {\n var c;\n for (c = 0; c < this.size; c++)\n if (this.isEqual(this.list[c].key, u))\n return c;\n return -1;\n }, s.prototype.isEqual = function(u, c) {\n return u === c || u !== u && c !== c;\n }, o.exports = s;\n }, {}], 3: [function(n, o, i) {\n var s = n(\"map-or-similar\");\n o.exports = function(f) {\n var l = new s(!1), p = [];\n return function(v) {\n var h = /* @__PURE__ */ a(function() {\n var m = l, y, x, E = arguments.length - 1, A = Array(E + 1), T = !0, C;\n if ((h.numArgs || h.numArgs === 0) && h.numArgs !== E + 1)\n throw new Error(\"Memoizerific functions should always be called with the same number of arguments\");\n for (C = 0; C < E; C++) {\n if (A[C] = {\n cacheItem: m,\n arg: arguments[C]\n }, m.has(arguments[C])) {\n m = m.get(arguments[C]);\n continue;\n }\n T = !1, y = new s(!1), m.set(arguments[C], y), m = y;\n }\n return T && (m.has(arguments[E]) ? x = m.get(arguments[E]) : T = !1), T || (x = v.apply(null, arguments), m.set(arguments[E], x)),\n f > 0 && (A[E] = {\n cacheItem: m,\n arg: arguments[E]\n }, T ? u(p, A) : p.push(A), p.length > f && c(p.shift())), h.wasMemoized = T, h.numArgs = E + 1, x;\n }, \"memoizerific\");\n return h.limit = f, h.wasMemoized = !1, h.cache = l, h.lru = p, h;\n };\n };\n function u(f, l) {\n var p = f.length, v = l.length, h, m, y;\n for (m = 0; m < p; m++) {\n for (h = !0, y = 0; y < v; y++)\n if (!d(f[m][y].arg, l[y].arg)) {\n h = !1;\n break;\n }\n if (h)\n break;\n }\n f.push(f.splice(m, 1)[0]);\n }\n a(u, \"moveToMostRecentLru\");\n function c(f) {\n var l = f.length, p = f[l - 1], v, h;\n for (p.cacheItem.delete(p.arg), h = l - 2; h >= 0 && (p = f[h], v = p.cacheItem.get(p.arg), !v || !v.size); h--)\n p.cacheItem.delete(p.arg);\n }\n a(c, \"removeCachedResult\");\n function d(f, l) {\n return f === l || f !== f && l !== l;\n }\n a(d, \"isEqual\");\n }, { \"map-or-similar\": 1 }] }, {}, [3])(3);\n });\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/extends.js\nfunction j() {\n return j = Object.assign ? Object.assign.bind() : function(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = arguments[r];\n for (var n in t) ({}).hasOwnProperty.call(t, n) && (e[n] = t[n]);\n }\n return e;\n }, j.apply(null, arguments);\n}\na(j, \"_extends\");\n\n// ../node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js\nimport * as Z from \"react\";\n\n// ../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js\nfunction ze(e) {\n var r = /* @__PURE__ */ Object.create(null);\n return function(t) {\n return r[t] === void 0 && (r[t] = e(t)), r[t];\n };\n}\na(ze, \"memoize\");\n\n// ../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js\nvar Yn = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,\nsr = /* @__PURE__ */ ze(\n function(e) {\n return Yn.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;\n }\n /* Z+1 */\n);\n\n// ../node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.js\nimport * as I from \"react\";\nimport { useContext as Lt, forwardRef as xa } from \"react\";\n\n// ../node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js\nfunction Gn(e) {\n if (e.sheet)\n return e.sheet;\n for (var r = 0; r < document.styleSheets.length; r++)\n if (document.styleSheets[r].ownerNode === e)\n return document.styleSheets[r];\n}\na(Gn, \"sheetForTag\");\nfunction qn(e) {\n var r = document.createElement(\"style\");\n return r.setAttribute(\"data-emotion\", e.key), e.nonce !== void 0 && r.setAttribute(\"nonce\", e.nonce), r.appendChild(document.createTextNode(\n \"\")), r.setAttribute(\"data-s\", \"\"), r;\n}\na(qn, \"createStyleElement\");\nvar $r = /* @__PURE__ */ function() {\n function e(t) {\n var n = this;\n this._insertTag = function(o) {\n var i;\n n.tags.length === 0 ? n.insertionPoint ? i = n.insertionPoint.nextSibling : n.prepend ? i = n.container.firstChild : i = n.before : i =\n n.tags[n.tags.length - 1].nextSibling, n.container.insertBefore(o, i), n.tags.push(o);\n }, this.isSpeedy = t.speedy === void 0 ? !1 : t.speedy, this.tags = [], this.ctr = 0, this.nonce = t.nonce, this.key = t.key, this.container =\n t.container, this.prepend = t.prepend, this.insertionPoint = t.insertionPoint, this.before = null;\n }\n a(e, \"StyleSheet\");\n var r = e.prototype;\n return r.hydrate = /* @__PURE__ */ a(function(n) {\n n.forEach(this._insertTag);\n }, \"hydrate\"), r.insert = /* @__PURE__ */ a(function(n) {\n this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(qn(this));\n var o = this.tags[this.tags.length - 1], i = n.charCodeAt(0) === 64 && n.charCodeAt(1) === 105;\n if (i && this._alreadyInsertedOrderInsensitiveRule && console.error(`You're attempting to insert the following rule:\n` + n + \"\\n\\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure\\\n that `@import` rules are before all other rules.\"), this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule ||\n !i, this.isSpeedy) {\n var s = Gn(o);\n try {\n s.insertRule(n, s.cssRules.length);\n } catch (u) {\n /:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.\n test(n) || console.error('There was a problem inserting the following rule: \"' + n + '\"', u);\n }\n } else\n o.appendChild(document.createTextNode(n));\n this.ctr++;\n }, \"insert\"), r.flush = /* @__PURE__ */ a(function() {\n this.tags.forEach(function(n) {\n return n.parentNode && n.parentNode.removeChild(n);\n }), this.tags = [], this.ctr = 0, this._alreadyInsertedOrderInsensitiveRule = !1;\n }, \"flush\"), e;\n}();\n\n// ../node_modules/stylis/src/Enum.js\nvar k = \"-ms-\", we = \"-moz-\", O = \"-webkit-\", ae = \"comm\", oe = \"rule\", ie = \"decl\";\nvar Hr = \"@import\";\nvar Me = \"@keyframes\";\nvar Vr = \"@layer\";\n\n// ../node_modules/stylis/src/Utility.js\nvar Ur = Math.abs, X = String.fromCharCode, Wr = Object.assign;\nfunction Yr(e, r) {\n return _(e, 0) ^ 45 ? (((r << 2 ^ _(e, 0)) << 2 ^ _(e, 1)) << 2 ^ _(e, 2)) << 2 ^ _(e, 3) : 0;\n}\na(Yr, \"hash\");\nfunction je(e) {\n return e.trim();\n}\na(je, \"trim\");\nfunction ur(e, r) {\n return (e = r.exec(e)) ? e[0] : e;\n}\na(ur, \"match\");\nfunction w(e, r, t) {\n return e.replace(r, t);\n}\na(w, \"replace\");\nfunction Se(e, r) {\n return e.indexOf(r);\n}\na(Se, \"indexof\");\nfunction _(e, r) {\n return e.charCodeAt(r) | 0;\n}\na(_, \"charat\");\nfunction q(e, r, t) {\n return e.slice(r, t);\n}\na(q, \"substr\");\nfunction P(e) {\n return e.length;\n}\na(P, \"strlen\");\nfunction se(e) {\n return e.length;\n}\na(se, \"sizeof\");\nfunction ue(e, r) {\n return r.push(e), e;\n}\na(ue, \"append\");\nfunction cr(e, r) {\n return e.map(r).join(\"\");\n}\na(cr, \"combine\");\n\n// ../node_modules/stylis/src/Tokenizer.js\nvar De = 1, ce = 1, Gr = 0, L = 0, F = 0, le = \"\";\nfunction Oe(e, r, t, n, o, i, s) {\n return { value: e, root: r, parent: t, type: n, props: o, children: i, line: De, column: ce, length: s, return: \"\" };\n}\na(Oe, \"node\");\nfunction de(e, r) {\n return Wr(Oe(\"\", null, null, \"\", null, null, 0), e, { length: -e.length }, r);\n}\na(de, \"copy\");\nfunction qr() {\n return F;\n}\na(qr, \"char\");\nfunction Jr() {\n return F = L > 0 ? _(le, --L) : 0, ce--, F === 10 && (ce = 1, De--), F;\n}\na(Jr, \"prev\");\nfunction z() {\n return F = L < Gr ? _(le, L++) : 0, ce++, F === 10 && (ce = 1, De++), F;\n}\na(z, \"next\");\nfunction D() {\n return _(le, L);\n}\na(D, \"peek\");\nfunction Te() {\n return L;\n}\na(Te, \"caret\");\nfunction pe(e, r) {\n return q(le, e, r);\n}\na(pe, \"slice\");\nfunction fe(e) {\n switch (e) {\n case 0:\n case 9:\n case 10:\n case 13:\n case 32:\n return 5;\n case 33:\n case 43:\n case 44:\n case 47:\n case 62:\n case 64:\n case 126:\n case 59:\n case 123:\n case 125:\n return 4;\n case 58:\n return 3;\n case 34:\n case 39:\n case 40:\n case 91:\n return 2;\n case 41:\n case 93:\n return 1;\n }\n return 0;\n}\na(fe, \"token\");\nfunction Be(e) {\n return De = ce = 1, Gr = P(le = e), L = 0, [];\n}\na(Be, \"alloc\");\nfunction $e(e) {\n return le = \"\", e;\n}\na($e, \"dealloc\");\nfunction me(e) {\n return je(pe(L - 1, fr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));\n}\na(me, \"delimit\");\nfunction Zr(e) {\n for (; (F = D()) && F < 33; )\n z();\n return fe(e) > 2 || fe(F) > 3 ? \"\" : \" \";\n}\na(Zr, \"whitespace\");\nfunction Kr(e, r) {\n for (; --r && z() && !(F < 48 || F > 102 || F > 57 && F < 65 || F > 70 && F < 97); )\n ;\n return pe(e, Te() + (r < 6 && D() == 32 && z() == 32));\n}\na(Kr, \"escaping\");\nfunction fr(e) {\n for (; z(); )\n switch (F) {\n case e:\n return L;\n case 34:\n case 39:\n e !== 34 && e !== 39 && fr(F);\n break;\n case 40:\n e === 41 && fr(e);\n break;\n case 92:\n z();\n break;\n }\n return L;\n}\na(fr, \"delimiter\");\nfunction Xr(e, r) {\n for (; z() && e + F !== 57; )\n if (e + F === 84 && D() === 47)\n break;\n return \"/*\" + pe(r, L - 1) + \"*\" + X(e === 47 ? e : z());\n}\na(Xr, \"commenter\");\nfunction Qr(e) {\n for (; !fe(D()); )\n z();\n return pe(e, L);\n}\na(Qr, \"identifier\");\n\n// ../node_modules/stylis/src/Parser.js\nfunction tt(e) {\n return $e(He(\"\", null, null, null, [\"\"], e = Be(e), 0, [0], e));\n}\na(tt, \"compile\");\nfunction He(e, r, t, n, o, i, s, u, c) {\n for (var d = 0, f = 0, l = s, p = 0, v = 0, h = 0, m = 1, y = 1, x = 1, E = 0, A = \"\", T = o, C = i, N = n, S = A; y; )\n switch (h = E, E = z()) {\n case 40:\n if (h != 108 && _(S, l - 1) == 58) {\n Se(S += w(me(E), \"&\", \"&\\f\"), \"&\\f\") != -1 && (x = -1);\n break;\n }\n case 34:\n case 39:\n case 91:\n S += me(E);\n break;\n case 9:\n case 10:\n case 13:\n case 32:\n S += Zr(h);\n break;\n case 92:\n S += Kr(Te() - 1, 7);\n continue;\n case 47:\n switch (D()) {\n case 42:\n case 47:\n ue(Jn(Xr(z(), Te()), r, t), c);\n break;\n default:\n S += \"/\";\n }\n break;\n case 123 * m:\n u[d++] = P(S) * x;\n case 125 * m:\n case 59:\n case 0:\n switch (E) {\n case 0:\n case 125:\n y = 0;\n case 59 + f:\n x == -1 && (S = w(S, /\\f/g, \"\")), v > 0 && P(S) - l && ue(v > 32 ? rt(S + \";\", n, t, l - 1) : rt(w(S, \" \", \"\") + \";\", n, t, l - 2),\n c);\n break;\n case 59:\n S += \";\";\n default:\n if (ue(N = et(S, r, t, d, f, o, u, A, T = [], C = [], l), i), E === 123)\n if (f === 0)\n He(S, r, N, N, T, i, l, u, C);\n else\n switch (p === 99 && _(S, 3) === 110 ? 100 : p) {\n case 100:\n case 108:\n case 109:\n case 115:\n He(e, N, N, n && ue(et(e, N, N, 0, 0, o, u, A, o, T = [], l), C), o, C, l, u, n ? T : C);\n break;\n default:\n He(S, N, N, N, [\"\"], C, 0, u, C);\n }\n }\n d = f = v = 0, m = x = 1, A = S = \"\", l = s;\n break;\n case 58:\n l = 1 + P(S), v = h;\n default:\n if (m < 1) {\n if (E == 123)\n --m;\n else if (E == 125 && m++ == 0 && Jr() == 125)\n continue;\n }\n switch (S += X(E), E * m) {\n case 38:\n x = f > 0 ? 1 : (S += \"\\f\", -1);\n break;\n case 44:\n u[d++] = (P(S) - 1) * x, x = 1;\n break;\n case 64:\n D() === 45 && (S += me(z())), p = D(), f = l = P(A = S += Qr(Te())), E++;\n break;\n case 45:\n h === 45 && P(S) == 2 && (m = 0);\n }\n }\n return i;\n}\na(He, \"parse\");\nfunction et(e, r, t, n, o, i, s, u, c, d, f) {\n for (var l = o - 1, p = o === 0 ? i : [\"\"], v = se(p), h = 0, m = 0, y = 0; h < n; ++h)\n for (var x = 0, E = q(e, l + 1, l = Ur(m = s[h])), A = e; x < v; ++x)\n (A = je(m > 0 ? p[x] + \" \" + E : w(E, /&\\f/g, p[x]))) && (c[y++] = A);\n return Oe(e, r, t, o === 0 ? oe : u, c, d, f);\n}\na(et, \"ruleset\");\nfunction Jn(e, r, t) {\n return Oe(e, r, t, ae, X(qr()), q(e, 2, -2), 0);\n}\na(Jn, \"comment\");\nfunction rt(e, r, t, n) {\n return Oe(e, r, t, ie, q(e, 0, n), q(e, n + 1, -1), n);\n}\na(rt, \"declaration\");\n\n// ../node_modules/stylis/src/Serializer.js\nfunction Q(e, r) {\n for (var t = \"\", n = se(e), o = 0; o < n; o++)\n t += r(e[o], o, e, r) || \"\";\n return t;\n}\na(Q, \"serialize\");\nfunction nt(e, r, t, n) {\n switch (e.type) {\n case Vr:\n if (e.children.length) break;\n case Hr:\n case ie:\n return e.return = e.return || e.value;\n case ae:\n return \"\";\n case Me:\n return e.return = e.value + \"{\" + Q(e.children, n) + \"}\";\n case oe:\n e.value = e.props.join(\",\");\n }\n return P(t = Q(e.children, n)) ? e.return = e.value + \"{\" + t + \"}\" : \"\";\n}\na(nt, \"stringify\");\n\n// ../node_modules/stylis/src/Middleware.js\nfunction at(e) {\n var r = se(e);\n return function(t, n, o, i) {\n for (var s = \"\", u = 0; u < r; u++)\n s += e[u](t, n, o, i) || \"\";\n return s;\n };\n}\na(at, \"middleware\");\n\n// ../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js\nvar lr = /* @__PURE__ */ a(function(r) {\n var t = /* @__PURE__ */ new WeakMap();\n return function(n) {\n if (t.has(n))\n return t.get(n);\n var o = r(n);\n return t.set(n, o), o;\n };\n}, \"weakMemoize\");\n\n// ../node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js\nvar Zn = /* @__PURE__ */ a(function(r, t, n) {\n for (var o = 0, i = 0; o = i, i = D(), o === 38 && i === 12 && (t[n] = 1), !fe(i); )\n z();\n return pe(r, L);\n}, \"identifierWithPointTracking\"), Kn = /* @__PURE__ */ a(function(r, t) {\n var n = -1, o = 44;\n do\n switch (fe(o)) {\n case 0:\n o === 38 && D() === 12 && (t[n] = 1), r[n] += Zn(L - 1, t, n);\n break;\n case 2:\n r[n] += me(o);\n break;\n case 4:\n if (o === 44) {\n r[++n] = D() === 58 ? \"&\\f\" : \"\", t[n] = r[n].length;\n break;\n }\n default:\n r[n] += X(o);\n }\n while (o = z());\n return r;\n}, \"toRules\"), Xn = /* @__PURE__ */ a(function(r, t) {\n return $e(Kn(Be(r), t));\n}, \"getRules\"), ot = /* @__PURE__ */ new WeakMap(), Qn = /* @__PURE__ */ a(function(r) {\n if (!(r.type !== \"rule\" || !r.parent || // positive .length indicates that this rule contains pseudo\n // negative .length indicates that this rule has been already prefixed\n r.length < 1)) {\n for (var t = r.value, n = r.parent, o = r.column === n.column && r.line === n.line; n.type !== \"rule\"; )\n if (n = n.parent, !n) return;\n if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !ot.get(n)) && !o) {\n ot.set(r, !0);\n for (var i = [], s = Xn(t, i), u = n.props, c = 0, d = 0; c < s.length; c++)\n for (var f = 0; f < u.length; f++, d++)\n r.props[d] = i[c] ? s[c].replace(/&\\f/g, u[f]) : u[f] + \" \" + s[c];\n }\n }\n}, \"compat\"), ea = /* @__PURE__ */ a(function(r) {\n if (r.type === \"decl\") {\n var t = r.value;\n // charcode for l\n t.charCodeAt(0) === 108 && // charcode for b\n t.charCodeAt(2) === 98 && (r.return = \"\", r.value = \"\");\n }\n}, \"removeLabel\"), ra = \"emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason\", ta = /* @__PURE__ */ a(\nfunction(r) {\n return r.type === \"comm\" && r.children.indexOf(ra) > -1;\n}, \"isIgnoringComment\"), na = /* @__PURE__ */ a(function(r) {\n return function(t, n, o) {\n if (!(t.type !== \"rule\" || r.compat)) {\n var i = t.value.match(/(:first|:nth|:nth-last)-child/g);\n if (i) {\n for (var s = !!t.parent, u = s ? t.parent.children : (\n // global rule at the root level\n o\n ), c = u.length - 1; c >= 0; c--) {\n var d = u[c];\n if (d.line < t.line)\n break;\n if (d.column < t.column) {\n if (ta(d))\n return;\n break;\n }\n }\n i.forEach(function(f) {\n console.error('The pseudo class \"' + f + '\" is potentially unsafe when doing server-side rendering. Try changing it to \"' + f.split(\n \"-child\")[0] + '-of-type\".');\n });\n }\n }\n };\n}, \"createUnsafeSelectorsAlarm\"), st = /* @__PURE__ */ a(function(r) {\n return r.type.charCodeAt(1) === 105 && r.type.charCodeAt(0) === 64;\n}, \"isImportRule\"), aa = /* @__PURE__ */ a(function(r, t) {\n for (var n = r - 1; n >= 0; n--)\n if (!st(t[n]))\n return !0;\n return !1;\n}, \"isPrependedWithRegularRules\"), it = /* @__PURE__ */ a(function(r) {\n r.type = \"\", r.value = \"\", r.return = \"\", r.children = \"\", r.props = \"\";\n}, \"nullifyElement\"), oa = /* @__PURE__ */ a(function(r, t, n) {\n st(r) && (r.parent ? (console.error(\"`@import` rules can't be nested inside other rules. Please move it to the top level and put it before\\\n regular rules. Keep in mind that they can only be used within global styles.\"), it(r)) : aa(t, n) && (console.error(\"`@import` rules can't \\\nbe after other rules. Please put your `@import` rules before your other rules.\"), it(r)));\n}, \"incorrectImportAlarm\");\nfunction ut(e, r) {\n switch (Yr(e, r)) {\n case 5103:\n return O + \"print-\" + e + e;\n case 5737:\n case 4201:\n case 3177:\n case 3433:\n case 1641:\n case 4457:\n case 2921:\n case 5572:\n case 6356:\n case 5844:\n case 3191:\n case 6645:\n case 3005:\n case 6391:\n case 5879:\n case 5623:\n case 6135:\n case 4599:\n case 4855:\n case 4215:\n case 6389:\n case 5109:\n case 5365:\n case 5621:\n case 3829:\n return O + e + e;\n case 5349:\n case 4246:\n case 4810:\n case 6968:\n case 2756:\n return O + e + we + e + k + e + e;\n case 6828:\n case 4268:\n return O + e + k + e + e;\n case 6165:\n return O + e + k + \"flex-\" + e + e;\n case 5187:\n return O + e + w(e, /(\\w+).+(:[^]+)/, O + \"box-$1$2\" + k + \"flex-$1$2\") + e;\n case 5443:\n return O + e + k + \"flex-item-\" + w(e, /flex-|-self/, \"\") + e;\n case 4675:\n return O + e + k + \"flex-line-pack\" + w(e, /align-content|flex-|-self/, \"\") + e;\n case 5548:\n return O + e + k + w(e, \"shrink\", \"negative\") + e;\n case 5292:\n return O + e + k + w(e, \"basis\", \"preferred-size\") + e;\n case 6060:\n return O + \"box-\" + w(e, \"-grow\", \"\") + O + e + k + w(e, \"grow\", \"positive\") + e;\n case 4554:\n return O + w(e, /([^-])(transform)/g, \"$1\" + O + \"$2\") + e;\n case 6187:\n return w(w(w(e, /(zoom-|grab)/, O + \"$1\"), /(image-set)/, O + \"$1\"), e, \"\") + e;\n case 5495:\n case 3959:\n return w(e, /(image-set\\([^]*)/, O + \"$1$`$1\");\n case 4968:\n return w(w(e, /(.+:)(flex-)?(.*)/, O + \"box-pack:$3\" + k + \"flex-pack:$3\"), /s.+-b[^;]+/, \"justify\") + O + e + e;\n case 4095:\n case 3583:\n case 4068:\n case 2532:\n return w(e, /(.+)-inline(.+)/, O + \"$1$2\") + e;\n case 8116:\n case 7059:\n case 5753:\n case 5535:\n case 5445:\n case 5701:\n case 4933:\n case 4677:\n case 5533:\n case 5789:\n case 5021:\n case 4765:\n if (P(e) - 1 - r > 6) switch (_(e, r + 1)) {\n case 109:\n if (_(e, r + 4) !== 45) break;\n case 102:\n return w(e, /(.+:)(.+)-([^]+)/, \"$1\" + O + \"$2-$3$1\" + we + (_(e, r + 3) == 108 ? \"$3\" : \"$2-$3\")) + e;\n case 115:\n return ~Se(e, \"stretch\") ? ut(w(e, \"stretch\", \"fill-available\"), r) + e : e;\n }\n break;\n case 4949:\n if (_(e, r + 1) !== 115) break;\n case 6444:\n switch (_(e, P(e) - 3 - (~Se(e, \"!important\") && 10))) {\n case 107:\n return w(e, \":\", \":\" + O) + e;\n case 101:\n return w(e, /(.+:)([^;!]+)(;|!.+)?/, \"$1\" + O + (_(e, 14) === 45 ? \"inline-\" : \"\") + \"box$3$1\" + O + \"$2$3$1\" + k + \"$2box$3\") + e;\n }\n break;\n case 5936:\n switch (_(e, r + 11)) {\n case 114:\n return O + e + k + w(e, /[svh]\\w+-[tblr]{2}/, \"tb\") + e;\n case 108:\n return O + e + k + w(e, /[svh]\\w+-[tblr]{2}/, \"tb-rl\") + e;\n case 45:\n return O + e + k + w(e, /[svh]\\w+-[tblr]{2}/, \"lr\") + e;\n }\n return O + e + k + e + e;\n }\n return e;\n}\na(ut, \"prefix\");\nvar ia = /* @__PURE__ */ a(function(r, t, n, o) {\n if (r.length > -1 && !r.return) switch (r.type) {\n case ie:\n r.return = ut(r.value, r.length);\n break;\n case Me:\n return Q([de(r, {\n value: w(r.value, \"@\", \"@\" + O)\n })], o);\n case oe:\n if (r.length) return cr(r.props, function(i) {\n switch (ur(i, /(::plac\\w+|:read-\\w+)/)) {\n case \":read-only\":\n case \":read-write\":\n return Q([de(r, {\n props: [w(i, /:(read-\\w+)/, \":\" + we + \"$1\")]\n })], o);\n case \"::placeholder\":\n return Q([de(r, {\n props: [w(i, /:(plac\\w+)/, \":\" + O + \"input-$1\")]\n }), de(r, {\n props: [w(i, /:(plac\\w+)/, \":\" + we + \"$1\")]\n }), de(r, {\n props: [w(i, /:(plac\\w+)/, k + \"input-$1\")]\n })], o);\n }\n return \"\";\n });\n }\n}, \"prefixer\"), sa = [ia], Ve = /* @__PURE__ */ a(function(r) {\n var t = r.key;\n if (!t)\n throw new Error(`You have to configure \\`key\\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for link\\\ning styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.`);\n if (t === \"css\") {\n var n = document.querySelectorAll(\"style[data-emotion]:not([data-s])\");\n Array.prototype.forEach.call(n, function(m) {\n var y = m.getAttribute(\"data-emotion\");\n y.indexOf(\" \") !== -1 && (document.head.appendChild(m), m.setAttribute(\"data-s\", \"\"));\n });\n }\n var o = r.stylisPlugins || sa;\n if (/[^a-z-]/.test(t))\n throw new Error('Emotion key must only contain lower case alphabetical characters and - but \"' + t + '\" was passed');\n var i = {}, s, u = [];\n s = r.container || document.head, Array.prototype.forEach.call(\n // this means we will ignore elements which don't have a space in them which\n // means that the style elements we're looking at are only Emotion 11 server-rendered style elements\n document.querySelectorAll('style[data-emotion^=\"' + t + ' \"]'),\n function(m) {\n for (var y = m.getAttribute(\"data-emotion\").split(\" \"), x = 1; x < y.length; x++)\n i[y[x]] = !0;\n u.push(m);\n }\n );\n var c, d = [Qn, ea];\n d.push(na({\n get compat() {\n return h.compat;\n }\n }), oa);\n {\n var f, l = [nt, function(m) {\n m.root || (m.return ? f.insert(m.return) : m.value && m.type !== ae && f.insert(m.value + \"{}\"));\n }], p = at(d.concat(o, l)), v = /* @__PURE__ */ a(function(y) {\n return Q(tt(y), p);\n }, \"stylis\");\n c = /* @__PURE__ */ a(function(y, x, E, A) {\n f = E, x.map !== void 0 && (f = {\n insert: /* @__PURE__ */ a(function(C) {\n E.insert(C + x.map);\n }, \"insert\")\n }), v(y ? y + \"{\" + x.styles + \"}\" : x.styles), A && (h.inserted[x.name] = !0);\n }, \"insert\");\n }\n var h = {\n key: t,\n sheet: new $r({\n key: t,\n container: s,\n nonce: r.nonce,\n speedy: r.speedy,\n prepend: r.prepend,\n insertionPoint: r.insertionPoint\n }),\n nonce: r.nonce,\n inserted: i,\n registered: {},\n insert: c\n };\n return h.sheet.hydrate(u), h;\n}, \"createCache\");\n\n// ../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js\nvar vt = ir(mr());\nvar yt = /* @__PURE__ */ a(function(e, r) {\n return (0, vt.default)(e, r);\n}, \"hoistNonReactStatics\");\n\n// ../node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js\nvar ha = !0;\nfunction he(e, r, t) {\n var n = \"\";\n return t.split(\" \").forEach(function(o) {\n e[o] !== void 0 ? r.push(e[o] + \";\") : n += o + \" \";\n }), n;\n}\na(he, \"getRegisteredStyles\");\nvar ee = /* @__PURE__ */ a(function(r, t, n) {\n var o = r.key + \"-\" + t.name;\n // we only need to add the styles to the registered cache if the\n // class name could be used further down\n // the tree but if it's a string tag, we know it won't\n // so we don't have to add it to registered cache.\n // this improves memory usage since we can avoid storing the whole style string\n (n === !1 || // we need to always store it if we're in compat mode and\n // in node since emotion-server relies on whether a style is in\n // the registered cache to know whether a style is global or not\n // also, note that this check will be dead code eliminated in the browser\n ha === !1) && r.registered[o] === void 0 && (r.registered[o] = t.styles);\n}, \"registerStyles\"), re = /* @__PURE__ */ a(function(r, t, n) {\n ee(r, t, n);\n var o = r.key + \"-\" + t.name;\n if (r.inserted[t.name] === void 0) {\n var i = t;\n do\n r.insert(t === i ? \".\" + o : \"\", i, r.sheet, !0), i = i.next;\n while (i !== void 0);\n }\n}, \"insertStyles\");\n\n// ../node_modules/@emotion/hash/dist/emotion-hash.esm.js\nfunction xt(e) {\n for (var r = 0, t, n = 0, o = e.length; o >= 4; ++n, o -= 4)\n t = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, t = /* Math.imul(k, m): */\n (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), t ^= /* k >>> r: */\n t >>> 24, r = /* Math.imul(k, m): */\n (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */\n (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);\n switch (o) {\n case 3:\n r ^= (e.charCodeAt(n + 2) & 255) << 16;\n case 2:\n r ^= (e.charCodeAt(n + 1) & 255) << 8;\n case 1:\n r ^= e.charCodeAt(n) & 255, r = /* Math.imul(h, m): */\n (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);\n }\n return r ^= r >>> 13, r = /* Math.imul(h, m): */\n (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), ((r ^ r >>> 15) >>> 0).toString(36);\n}\na(xt, \"murmur2\");\n\n// ../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js\nvar Et = {\n animationIterationCount: 1,\n aspectRatio: 1,\n borderImageOutset: 1,\n borderImageSlice: 1,\n borderImageWidth: 1,\n boxFlex: 1,\n boxFlexGroup: 1,\n boxOrdinalGroup: 1,\n columnCount: 1,\n columns: 1,\n flex: 1,\n flexGrow: 1,\n flexPositive: 1,\n flexShrink: 1,\n flexNegative: 1,\n flexOrder: 1,\n gridRow: 1,\n gridRowEnd: 1,\n gridRowSpan: 1,\n gridRowStart: 1,\n gridColumn: 1,\n gridColumnEnd: 1,\n gridColumnSpan: 1,\n gridColumnStart: 1,\n msGridRow: 1,\n msGridRowSpan: 1,\n msGridColumn: 1,\n msGridColumnSpan: 1,\n fontWeight: 1,\n lineHeight: 1,\n opacity: 1,\n order: 1,\n orphans: 1,\n tabSize: 1,\n widows: 1,\n zIndex: 1,\n zoom: 1,\n WebkitLineClamp: 1,\n // SVG-related properties\n fillOpacity: 1,\n floodOpacity: 1,\n stopOpacity: 1,\n strokeDasharray: 1,\n strokeDashoffset: 1,\n strokeMiterlimit: 1,\n strokeOpacity: 1,\n strokeWidth: 1\n};\n\n// ../node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js\nvar wt = `You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\\\00d7';\" should bec\\\nome \"content: '\\\\\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, ga = \"You \\\nhave passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).\", ba = /[A-Z]|^ms/g,\nFt = /_EMO_([^_]+?)_([^]*?)_EMO_/g, br = /* @__PURE__ */ a(function(r) {\n return r.charCodeAt(1) === 45;\n}, \"isCustomProperty\"), St = /* @__PURE__ */ a(function(r) {\n return r != null && typeof r != \"boolean\";\n}, \"isProcessableValue\"), hr = /* @__PURE__ */ ze(function(e) {\n return br(e) ? e : e.replace(ba, \"-$&\").toLowerCase();\n}), Ue = /* @__PURE__ */ a(function(r, t) {\n switch (r) {\n case \"animation\":\n case \"animationName\":\n if (typeof t == \"string\")\n return t.replace(Ft, function(n, o, i) {\n return $ = {\n name: o,\n styles: i,\n next: $\n }, o;\n });\n }\n return Et[r] !== 1 && !br(r) && typeof t == \"number\" && t !== 0 ? t + \"px\" : t;\n}, \"processStyleValue\");\nOt = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\\(|(no-)?(open|close)-quote/, Tt = [\"normal\", \"none\", \"\\\ninitial\", \"inherit\", \"unset\"], Ct = Ue, Rt = /^-ms-/, At = /-(.)/g, gr = {}, Ue = /* @__PURE__ */ a(function(r, t) {\n if (r === \"content\" && (typeof t != \"string\" || Tt.indexOf(t) === -1 && !Ot.test(t) && (t.charAt(0) !== t.charAt(t.length - 1) || t.charAt(\n 0) !== '\"' && t.charAt(0) !== \"'\")))\n throw new Error(\"You seem to be using a value for 'content' without quotes, try replacing it with `content: '\\\"\" + t + \"\\\"'`\");\n var n = Ct(r, t);\n return n !== \"\" && !br(r) && r.indexOf(\"-\") !== -1 && gr[r] === void 0 && (gr[r] = !0, console.error(\"Using kebab-case for css properties \\\nin objects is not supported. Did you mean \" + r.replace(Rt, \"ms-\").replace(At, function(o, i) {\n return i.toUpperCase();\n }) + \"?\")), n;\n}, \"processStyleValue\");\nvar Ot, Tt, Ct, Rt, At, gr, Nt = \"Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or\\\n another Emotion-aware compiler transform.\";\nfunction Ce(e, r, t) {\n if (t == null)\n return \"\";\n if (t.__emotion_styles !== void 0) {\n if (t.toString() === \"NO_COMPONENT_SELECTOR\")\n throw new Error(Nt);\n return t;\n }\n switch (typeof t) {\n case \"boolean\":\n return \"\";\n case \"object\": {\n if (t.anim === 1)\n return $ = {\n name: t.name,\n styles: t.styles,\n next: $\n }, t.name;\n if (t.styles !== void 0) {\n var n = t.next;\n if (n !== void 0)\n for (; n !== void 0; )\n $ = {\n name: n.name,\n styles: n.styles,\n next: $\n }, n = n.next;\n var o = t.styles + \";\";\n return t.map !== void 0 && (o += t.map), o;\n }\n return va(e, r, t);\n }\n case \"function\": {\n if (e !== void 0) {\n var i = $, s = t(e);\n return $ = i, Ce(e, r, s);\n } else console.error(\"Functions that are interpolated in css calls will be stringified.\\nIf you want to have a css call based on props,\\\n create a function that returns a css call like this\\nlet dynamicStyle = (props) => css`color: ${props.color}`\\nIt can be called directly with\\\n props or interpolated in a styled call like this\\nlet SomeComponent = styled('div')`${dynamicStyle}`\");\n break;\n }\n case \"string\":\n var u = [], c = t.replace(Ft, function(f, l, p) {\n var v = \"animation\" + u.length;\n return u.push(\"const \" + v + \" = keyframes`\" + p.replace(/^@keyframes animation-\\w+/, \"\") + \"`\"), \"${\" + v + \"}\";\n });\n u.length && console.error(\"`keyframes` output got interpolated into plain string, please wrap it with `css`.\\n\\nInstead of doing this:\\n\\n\" +\n [].concat(u, [\"`\" + c + \"`\"]).join(`\n`) + `\n\nYou should wrap it with \\`css\\` like this:\n\n` + (\"css`\" + c + \"`\"));\n break;\n }\n if (r == null)\n return t;\n var d = r[t];\n return d !== void 0 ? d : t;\n}\na(Ce, \"handleInterpolation\");\nfunction va(e, r, t) {\n var n = \"\";\n if (Array.isArray(t))\n for (var o = 0; o < t.length; o++)\n n += Ce(e, r, t[o]) + \";\";\n else\n for (var i in t) {\n var s = t[i];\n if (typeof s != \"object\")\n r != null && r[s] !== void 0 ? n += i + \"{\" + r[s] + \"}\" : St(s) && (n += hr(i) + \":\" + Ue(i, s) + \";\");\n else {\n if (i === \"NO_COMPONENT_SELECTOR\")\n throw new Error(Nt);\n if (Array.isArray(s) && typeof s[0] == \"string\" && (r == null || r[s[0]] === void 0))\n for (var u = 0; u < s.length; u++)\n St(s[u]) && (n += hr(i) + \":\" + Ue(i, s[u]) + \";\");\n else {\n var c = Ce(e, r, s);\n switch (i) {\n case \"animation\":\n case \"animationName\": {\n n += hr(i) + \":\" + c + \";\";\n break;\n }\n default:\n i === \"undefined\" && console.error(ga), n += i + \"{\" + c + \"}\";\n }\n }\n }\n }\n return n;\n}\na(va, \"createStringFromObject\");\nvar _t = /label:\\s*([^\\s;\\n{]+)\\s*(;|$)/g, It;\nIt = /\\/\\*#\\ssourceMappingURL=data:application\\/json;\\S+\\s+\\*\\//g;\nvar $, Y = /* @__PURE__ */ a(function(r, t, n) {\n if (r.length === 1 && typeof r[0] == \"object\" && r[0] !== null && r[0].styles !== void 0)\n return r[0];\n var o = !0, i = \"\";\n $ = void 0;\n var s = r[0];\n s == null || s.raw === void 0 ? (o = !1, i += Ce(n, t, s)) : (s[0] === void 0 && console.error(wt), i += s[0]);\n for (var u = 1; u < r.length; u++)\n i += Ce(n, t, r[u]), o && (s[u] === void 0 && console.error(wt), i += s[u]);\n var c;\n i = i.replace(It, function(p) {\n return c = p, \"\";\n }), _t.lastIndex = 0;\n for (var d = \"\", f; (f = _t.exec(i)) !== null; )\n d += \"-\" + // $FlowFixMe we know it's not null\n f[1];\n var l = xt(i) + d;\n return {\n name: l,\n styles: i,\n map: c,\n next: $,\n toString: /* @__PURE__ */ a(function() {\n return \"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `\\\nclassName` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).\";\n }, \"toString\")\n };\n}, \"serializeStyles\");\n\n// ../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js\nimport * as Re from \"react\";\nvar ya = /* @__PURE__ */ a(function(r) {\n return r();\n}, \"syncFallback\"), kt = Re.useInsertionEffect ? Re.useInsertionEffect : !1, ge = kt || ya, vr = kt || Re.useLayoutEffect;\n\n// ../node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.js\nvar Er = !0, We = {}.hasOwnProperty, Ae = /* @__PURE__ */ I.createContext(\n // we're doing this to avoid preconstruct's dead code elimination in this one case\n // because this module is primarily intended for the browser and node\n // but it's also required in react native and similar environments sometimes\n // and we could have a special build just for that\n // but this is much easier and the native packages\n // might use a different theme context in the future anyway\n typeof HTMLElement < \"u\" ? /* @__PURE__ */ Ve({\n key: \"css\"\n }) : null\n);\nAe.displayName = \"EmotionCacheContext\";\nvar zt = Ae.Provider;\nvar J = /* @__PURE__ */ a(function(r) {\n return /* @__PURE__ */ xa(function(t, n) {\n var o = Lt(Ae);\n return r(t, o, n);\n });\n}, \"withEmotionCache\");\nEr || (J = /* @__PURE__ */ a(function(r) {\n return function(t) {\n var n = Lt(Ae);\n return n === null ? (n = Ve({\n key: \"css\"\n }), /* @__PURE__ */ I.createElement(Ae.Provider, {\n value: n\n }, r(t, n))) : r(t, n);\n };\n}, \"withEmotionCache\"));\nvar B = /* @__PURE__ */ I.createContext({});\nB.displayName = \"EmotionThemeContext\";\nvar Mt = /* @__PURE__ */ a(function() {\n return I.useContext(B);\n}, \"useTheme\"), Ea = /* @__PURE__ */ a(function(r, t) {\n if (typeof t == \"function\") {\n var n = t(r);\n if (n == null || typeof n != \"object\" || Array.isArray(n))\n throw new Error(\"[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!\");\n return n;\n }\n if (t == null || typeof t != \"object\" || Array.isArray(t))\n throw new Error(\"[ThemeProvider] Please make your theme prop a plain object\");\n return j({}, r, t);\n}, \"getTheme\"), wa = /* @__PURE__ */ lr(function(e) {\n return lr(function(r) {\n return Ea(e, r);\n });\n}), jt = /* @__PURE__ */ a(function(r) {\n var t = I.useContext(B);\n return r.theme !== t && (t = wa(t)(r.theme)), /* @__PURE__ */ I.createElement(B.Provider, {\n value: t\n }, r.children);\n}, \"ThemeProvider\");\nfunction Dt(e) {\n var r = e.displayName || e.name || \"Component\", t = /* @__PURE__ */ a(function(i, s) {\n var u = I.useContext(B);\n return /* @__PURE__ */ I.createElement(e, j({\n theme: u,\n ref: s\n }, i));\n }, \"render\"), n = /* @__PURE__ */ I.forwardRef(t);\n return n.displayName = \"WithTheme(\" + r + \")\", yt(n, e);\n}\na(Dt, \"withTheme\");\nvar Pt = /* @__PURE__ */ a(function(r) {\n var t = r.split(\".\");\n return t[t.length - 1];\n}, \"getLastPart\"), Sa = /* @__PURE__ */ a(function(r) {\n var t = /^\\s+at\\s+([A-Za-z0-9$.]+)\\s/.exec(r);\n if (t || (t = /^([A-Za-z0-9$.]+)@/.exec(r), t)) return Pt(t[1]);\n}, \"getFunctionNameFromStackTraceLine\"), Oa = /* @__PURE__ */ new Set([\"renderWithHooks\", \"processChild\", \"finishClassComponent\", \"renderToS\\\ntring\"]), Ta = /* @__PURE__ */ a(function(r) {\n return r.replace(/\\$/g, \"-\");\n}, \"sanitizeIdentifier\"), Ca = /* @__PURE__ */ a(function(r) {\n if (r)\n for (var t = r.split(`\n`), n = 0; n < t.length; n++) {\n var o = Sa(t[n]);\n if (o) {\n if (Oa.has(o)) break;\n if (/^[A-Z]/.test(o)) return Ta(o);\n }\n }\n}, \"getLabelFromStackTrace\"), yr = \"__EMOTION_TYPE_PLEASE_DO_NOT_USE__\", xr = \"__EMOTION_LABEL_PLEASE_DO_NOT_USE__\", Bt = /* @__PURE__ */ a(\nfunction(r, t) {\n if (typeof t.css == \"string\" && // check if there is a css declaration\n t.css.indexOf(\":\") !== -1)\n throw new Error(\"Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: c\\\nss`\" + t.css + \"`\");\n var n = {};\n for (var o in t)\n We.call(t, o) && (n[o] = t[o]);\n if (n[yr] = r, t.css && (typeof t.css != \"object\" || typeof t.css.name != \"string\" || t.css.name.indexOf(\"-\") === -1)) {\n var i = Ca(new Error().stack);\n i && (n[xr] = i);\n }\n return n;\n}, \"createEmotionProps\"), Ra = /* @__PURE__ */ a(function(r) {\n var t = r.cache, n = r.serialized, o = r.isStringTag;\n return ee(t, n, o), ge(function() {\n return re(t, n, o);\n }), null;\n}, \"Insertion\"), $t = /* @__PURE__ */ J(function(e, r, t) {\n var n = e.css;\n typeof n == \"string\" && r.registered[n] !== void 0 && (n = r.registered[n]);\n var o = e[yr], i = [n], s = \"\";\n typeof e.className == \"string\" ? s = he(r.registered, i, e.className) : e.className != null && (s = e.className + \" \");\n var u = Y(i, void 0, I.useContext(B));\n if (u.name.indexOf(\"-\") === -1) {\n var c = e[xr];\n c && (u = Y([u, \"label:\" + c + \";\"]));\n }\n s += r.key + \"-\" + u.name;\n var d = {};\n for (var f in e)\n We.call(e, f) && f !== \"css\" && f !== yr && f !== xr && (d[f] = e[f]);\n return d.ref = t, d.className = s, /* @__PURE__ */ I.createElement(I.Fragment, null, /* @__PURE__ */ I.createElement(Ra, {\n cache: r,\n serialized: u,\n isStringTag: typeof o == \"string\"\n }), /* @__PURE__ */ I.createElement(o, d));\n});\n$t.displayName = \"EmotionCssPropInternal\";\nvar Ht = $t;\n\n// ../node_modules/@emotion/react/dist/emotion-react.browser.esm.js\nimport * as M from \"react\";\nvar rs = ir(mr());\nvar Aa = {\n name: \"@emotion/react\",\n version: \"11.11.4\",\n main: \"dist/emotion-react.cjs.js\",\n module: \"dist/emotion-react.esm.js\",\n browser: {\n \"./dist/emotion-react.esm.js\": \"./dist/emotion-react.browser.esm.js\"\n },\n exports: {\n \".\": {\n module: {\n worker: \"./dist/emotion-react.worker.esm.js\",\n browser: \"./dist/emotion-react.browser.esm.js\",\n default: \"./dist/emotion-react.esm.js\"\n },\n import: \"./dist/emotion-react.cjs.mjs\",\n default: \"./dist/emotion-react.cjs.js\"\n },\n \"./jsx-runtime\": {\n module: {\n worker: \"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js\",\n browser: \"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js\",\n default: \"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js\"\n },\n import: \"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs\",\n default: \"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js\"\n },\n \"./_isolated-hnrs\": {\n module: {\n worker: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js\",\n browser: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js\",\n default: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js\"\n },\n import: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs\",\n default: \"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js\"\n },\n \"./jsx-dev-runtime\": {\n module: {\n worker: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js\",\n browser: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js\",\n default: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js\"\n },\n import: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs\",\n default: \"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js\"\n },\n \"./package.json\": \"./package.json\",\n \"./types/css-prop\": \"./types/css-prop.d.ts\",\n \"./macro\": {\n types: {\n import: \"./macro.d.mts\",\n default: \"./macro.d.ts\"\n },\n default: \"./macro.js\"\n }\n },\n types: \"types/index.d.ts\",\n files: [\n \"src\",\n \"dist\",\n \"jsx-runtime\",\n \"jsx-dev-runtime\",\n \"_isolated-hnrs\",\n \"types/*.d.ts\",\n \"macro.*\"\n ],\n sideEffects: !1,\n author: \"Emotion Contributors\",\n license: \"MIT\",\n scripts: {\n \"test:typescript\": \"dtslint types\"\n },\n dependencies: {\n \"@babel/runtime\": \"^7.18.3\",\n \"@emotion/babel-plugin\": \"^11.11.0\",\n \"@emotion/cache\": \"^11.11.0\",\n \"@emotion/serialize\": \"^1.1.3\",\n \"@emotion/use-insertion-effect-with-fallbacks\": \"^1.0.1\",\n \"@emotion/utils\": \"^1.2.1\",\n \"@emotion/weak-memoize\": \"^0.3.1\",\n \"hoist-non-react-statics\": \"^3.3.1\"\n },\n peerDependencies: {\n react: \">=16.8.0\"\n },\n peerDependenciesMeta: {\n \"@types/react\": {\n optional: !0\n }\n },\n devDependencies: {\n \"@definitelytyped/dtslint\": \"0.0.112\",\n \"@emotion/css\": \"11.11.2\",\n \"@emotion/css-prettifier\": \"1.1.3\",\n \"@emotion/server\": \"11.11.0\",\n \"@emotion/styled\": \"11.11.0\",\n \"html-tag-names\": \"^1.1.2\",\n react: \"16.14.0\",\n \"svg-tag-names\": \"^1.1.1\",\n typescript: \"^4.5.5\"\n },\n repository: \"https://github.com/emotion-js/emotion/tree/main/packages/react\",\n publishConfig: {\n access: \"public\"\n },\n \"umd:main\": \"dist/emotion-react.umd.min.js\",\n preconstruct: {\n entrypoints: [\n \"./index.js\",\n \"./jsx-runtime.js\",\n \"./jsx-dev-runtime.js\",\n \"./_isolated-hnrs.js\"\n ],\n umdName: \"emotionReact\",\n exports: {\n envConditions: [\n \"browser\",\n \"worker\"\n ],\n extra: {\n \"./types/css-prop\": \"./types/css-prop.d.ts\",\n \"./macro\": {\n types: {\n import: \"./macro.d.mts\",\n default: \"./macro.d.ts\"\n },\n default: \"./macro.js\"\n }\n }\n }\n }\n}, _a = /* @__PURE__ */ a(function(r, t) {\n var n = arguments;\n if (t == null || !We.call(t, \"css\"))\n return M.createElement.apply(void 0, n);\n var o = n.length, i = new Array(o);\n i[0] = Ht, i[1] = Bt(r, t);\n for (var s = 2; s < o; s++)\n i[s] = n[s];\n return M.createElement.apply(null, i);\n}, \"jsx\"), Vt = !1, Wt = /* @__PURE__ */ J(function(e, r) {\n !Vt && // check for className as well since the user is\n // probably using the custom createElement which\n // means it will be turned into a className prop\n // $FlowFixMe I don't really want to add it to the type since it shouldn't be used\n (e.className || e.css) && (console.error(\"It looks like you're using the css prop on Global, did you mean to use the styles prop instead?\"),\n Vt = !0);\n var t = e.styles, n = Y([t], void 0, M.useContext(B));\n if (!Er) {\n for (var o, i = n.name, s = n.styles, u = n.next; u !== void 0; )\n i += \" \" + u.name, s += u.styles, u = u.next;\n var c = r.compat === !0, d = r.insert(\"\", {\n name: i,\n styles: s\n }, r.sheet, c);\n return c ? null : /* @__PURE__ */ M.createElement(\"style\", (o = {}, o[\"data-emotion\"] = r.key + \"-global \" + i, o.dangerouslySetInnerHTML =\n {\n __html: d\n }, o.nonce = r.sheet.nonce, o));\n }\n var f = M.useRef();\n return vr(function() {\n var l = r.key + \"-global\", p = new r.sheet.constructor({\n key: l,\n nonce: r.sheet.nonce,\n container: r.sheet.container,\n speedy: r.sheet.isSpeedy\n }), v = !1, h = document.querySelector('style[data-emotion=\"' + l + \" \" + n.name + '\"]');\n return r.sheet.tags.length && (p.before = r.sheet.tags[0]), h !== null && (v = !0, h.setAttribute(\"data-emotion\", l), p.hydrate([h])), f.\n current = [p, v], function() {\n p.flush();\n };\n }, [r]), vr(function() {\n var l = f.current, p = l[0], v = l[1];\n if (v) {\n l[1] = !1;\n return;\n }\n if (n.next !== void 0 && re(r, n.next, !0), p.tags.length) {\n var h = p.tags[p.tags.length - 1].nextElementSibling;\n p.before = h, p.flush();\n }\n r.insert(\"\", n, p, !1);\n }, [r, n.name]), null;\n});\nWt.displayName = \"EmotionGlobal\";\nfunction _e() {\n for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)\n r[t] = arguments[t];\n return Y(r);\n}\na(_e, \"css\");\nvar be = /* @__PURE__ */ a(function() {\n var r = _e.apply(void 0, arguments), t = \"animation-\" + r.name;\n return {\n name: t,\n styles: \"@keyframes \" + t + \"{\" + r.styles + \"}\",\n anim: 1,\n toString: /* @__PURE__ */ a(function() {\n return \"_EMO_\" + this.name + \"_\" + this.styles + \"_EMO_\";\n }, \"toString\")\n };\n}, \"keyframes\"), Fa = /* @__PURE__ */ a(function e(r) {\n for (var t = r.length, n = 0, o = \"\"; n < t; n++) {\n var i = r[n];\n if (i != null) {\n var s = void 0;\n switch (typeof i) {\n case \"boolean\":\n break;\n case \"object\": {\n if (Array.isArray(i))\n s = e(i);\n else {\n i.styles !== void 0 && i.name !== void 0 && console.error(\"You have passed styles created with `css` from `@emotion/react` packa\\\nge to the `cx`.\\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `cs\\\ns` received from component.\"), s = \"\";\n for (var u in i)\n i[u] && u && (s && (s += \" \"), s += u);\n }\n break;\n }\n default:\n s = i;\n }\n s && (o && (o += \" \"), o += s);\n }\n }\n return o;\n}, \"classnames\");\nfunction Na(e, r, t) {\n var n = [], o = he(e, n, t);\n return n.length < 2 ? t : o + r(n);\n}\na(Na, \"merge\");\nvar Ia = /* @__PURE__ */ a(function(r) {\n var t = r.cache, n = r.serializedArr;\n return ge(function() {\n for (var o = 0; o < n.length; o++)\n re(t, n[o], !1);\n }), null;\n}, \"Insertion\"), Yt = /* @__PURE__ */ J(function(e, r) {\n var t = !1, n = [], o = /* @__PURE__ */ a(function() {\n if (t)\n throw new Error(\"css can only be used during render\");\n for (var d = arguments.length, f = new Array(d), l = 0; l < d; l++)\n f[l] = arguments[l];\n var p = Y(f, r.registered);\n return n.push(p), ee(r, p, !1), r.key + \"-\" + p.name;\n }, \"css\"), i = /* @__PURE__ */ a(function() {\n if (t)\n throw new Error(\"cx can only be used during render\");\n for (var d = arguments.length, f = new Array(d), l = 0; l < d; l++)\n f[l] = arguments[l];\n return Na(r.registered, o, Fa(f));\n }, \"cx\"), s = {\n css: o,\n cx: i,\n theme: M.useContext(B)\n }, u = e.children(s);\n return t = !0, /* @__PURE__ */ M.createElement(M.Fragment, null, /* @__PURE__ */ M.createElement(Ia, {\n cache: r,\n serializedArr: n\n }), u);\n});\nYt.displayName = \"EmotionClassNames\";\nwr = !0, Ut = typeof jest < \"u\" || typeof vi < \"u\", wr && !Ut && (Sr = // $FlowIgnore\ntypeof globalThis < \"u\" ? globalThis : wr ? window : global, Or = \"__EMOTION_REACT_\" + Aa.version.split(\".\")[0] + \"__\", Sr[Or] && console.warn(\n\"You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versio\\\nns are used, or if multiple builds of the same version are used.\"), Sr[Or] = !0);\nvar wr, Ut, Sr, Or;\n\n// ../node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js\nvar ka = sr, Pa = /* @__PURE__ */ a(function(r) {\n return r !== \"theme\";\n}, \"testOmitPropsOnComponent\"), Gt = /* @__PURE__ */ a(function(r) {\n return typeof r == \"string\" && // 96 is one less than the char code\n // for \"a\" so this is checking that\n // it's a lowercase character\n r.charCodeAt(0) > 96 ? ka : Pa;\n}, \"getDefaultShouldForwardProp\"), qt = /* @__PURE__ */ a(function(r, t, n) {\n var o;\n if (t) {\n var i = t.shouldForwardProp;\n o = r.__emotion_forwardProp && i ? function(s) {\n return r.__emotion_forwardProp(s) && i(s);\n } : i;\n }\n return typeof o != \"function\" && n && (o = r.__emotion_forwardProp), o;\n}, \"composeShouldForwardProps\"), Jt = `You have illegal escape sequence in your template literal, most likely inside content's property valu\\\ne.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\\\00d7';\" should bec\\\nome \"content: '\\\\\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, La = /* @__PURE__ */ a(\nfunction(r) {\n var t = r.cache, n = r.serialized, o = r.isStringTag;\n return ee(t, n, o), ge(function() {\n return re(t, n, o);\n }), null;\n}, \"Insertion\"), Zt = /* @__PURE__ */ a(function e(r, t) {\n if (r === void 0)\n throw new Error(`You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.`);\n var n = r.__emotion_real === r, o = n && r.__emotion_base || r, i, s;\n t !== void 0 && (i = t.label, s = t.target);\n var u = qt(r, t, n), c = u || Gt(o), d = !c(\"as\");\n return function() {\n var f = arguments, l = n && r.__emotion_styles !== void 0 ? r.__emotion_styles.slice(0) : [];\n if (i !== void 0 && l.push(\"label:\" + i + \";\"), f[0] == null || f[0].raw === void 0)\n l.push.apply(l, f);\n else {\n f[0][0] === void 0 && console.error(Jt), l.push(f[0][0]);\n for (var p = f.length, v = 1; v < p; v++)\n f[0][v] === void 0 && console.error(Jt), l.push(f[v], f[0][v]);\n }\n var h = J(function(m, y, x) {\n var E = d && m.as || o, A = \"\", T = [], C = m;\n if (m.theme == null) {\n C = {};\n for (var N in m)\n C[N] = m[N];\n C.theme = Z.useContext(B);\n }\n typeof m.className == \"string\" ? A = he(y.registered, T, m.className) : m.className != null && (A = m.className + \" \");\n var S = Y(l.concat(T), y.registered, C);\n A += y.key + \"-\" + S.name, s !== void 0 && (A += \" \" + s);\n var xe = d && u === void 0 ? Gt(E) : c, W = {};\n for (var G in m)\n d && G === \"as\" || // $FlowFixMe\n xe(G) && (W[G] = m[G]);\n return W.className = A, W.ref = x, /* @__PURE__ */ Z.createElement(Z.Fragment, null, /* @__PURE__ */ Z.createElement(La, {\n cache: y,\n serialized: S,\n isStringTag: typeof E == \"string\"\n }), /* @__PURE__ */ Z.createElement(E, W));\n });\n return h.displayName = i !== void 0 ? i : \"Styled(\" + (typeof o == \"string\" ? o : o.displayName || o.name || \"Component\") + \")\", h.defaultProps =\n r.defaultProps, h.__emotion_real = h, h.__emotion_base = o, h.__emotion_styles = l, h.__emotion_forwardProp = u, Object.defineProperty(h,\n \"toString\", {\n value: /* @__PURE__ */ a(function() {\n return s === void 0 ? \"NO_COMPONENT_SELECTOR\" : \".\" + s;\n }, \"value\")\n }), h.withComponent = function(m, y) {\n return e(m, j({}, t, y, {\n shouldForwardProp: qt(h, y, !0)\n })).apply(void 0, l);\n }, h;\n };\n}, \"createStyled\");\n\n// ../node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js\nimport \"react\";\nvar za = [\n \"a\",\n \"abbr\",\n \"address\",\n \"area\",\n \"article\",\n \"aside\",\n \"audio\",\n \"b\",\n \"base\",\n \"bdi\",\n \"bdo\",\n \"big\",\n \"blockquote\",\n \"body\",\n \"br\",\n \"button\",\n \"canvas\",\n \"caption\",\n \"cite\",\n \"code\",\n \"col\",\n \"colgroup\",\n \"data\",\n \"datalist\",\n \"dd\",\n \"del\",\n \"details\",\n \"dfn\",\n \"dialog\",\n \"div\",\n \"dl\",\n \"dt\",\n \"em\",\n \"embed\",\n \"fieldset\",\n \"figcaption\",\n \"figure\",\n \"footer\",\n \"form\",\n \"h1\",\n \"h2\",\n \"h3\",\n \"h4\",\n \"h5\",\n \"h6\",\n \"head\",\n \"header\",\n \"hgroup\",\n \"hr\",\n \"html\",\n \"i\",\n \"iframe\",\n \"img\",\n \"input\",\n \"ins\",\n \"kbd\",\n \"keygen\",\n \"label\",\n \"legend\",\n \"li\",\n \"link\",\n \"main\",\n \"map\",\n \"mark\",\n \"marquee\",\n \"menu\",\n \"menuitem\",\n \"meta\",\n \"meter\",\n \"nav\",\n \"noscript\",\n \"object\",\n \"ol\",\n \"optgroup\",\n \"option\",\n \"output\",\n \"p\",\n \"param\",\n \"picture\",\n \"pre\",\n \"progress\",\n \"q\",\n \"rp\",\n \"rt\",\n \"ruby\",\n \"s\",\n \"samp\",\n \"script\",\n \"section\",\n \"select\",\n \"small\",\n \"source\",\n \"span\",\n \"strong\",\n \"style\",\n \"sub\",\n \"summary\",\n \"sup\",\n \"table\",\n \"tbody\",\n \"td\",\n \"textarea\",\n \"tfoot\",\n \"th\",\n \"thead\",\n \"time\",\n \"title\",\n \"tr\",\n \"track\",\n \"u\",\n \"ul\",\n \"var\",\n \"video\",\n \"wbr\",\n // SVG\n \"circle\",\n \"clipPath\",\n \"defs\",\n \"ellipse\",\n \"foreignObject\",\n \"g\",\n \"image\",\n \"line\",\n \"linearGradient\",\n \"mask\",\n \"path\",\n \"pattern\",\n \"polygon\",\n \"polyline\",\n \"radialGradient\",\n \"rect\",\n \"stop\",\n \"svg\",\n \"text\",\n \"tspan\"\n], Tr = Zt.bind();\nza.forEach(function(e) {\n Tr[e] = Tr(e);\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js\nfunction Kt(e) {\n if (e === void 0) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return e;\n}\na(Kt, \"_assertThisInitialized\");\n\n// ../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js\nfunction K(e, r) {\n return K = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) {\n return t.__proto__ = n, t;\n }, K(e, r);\n}\na(K, \"_setPrototypeOf\");\n\n// ../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js\nfunction Xt(e, r) {\n e.prototype = Object.create(r.prototype), e.prototype.constructor = e, K(e, r);\n}\na(Xt, \"_inheritsLoose\");\n\n// ../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js\nfunction Ye(e) {\n return Ye = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {\n return r.__proto__ || Object.getPrototypeOf(r);\n }, Ye(e);\n}\na(Ye, \"_getPrototypeOf\");\n\n// ../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js\nfunction Qt(e) {\n try {\n return Function.toString.call(e).indexOf(\"[native code]\") !== -1;\n } catch {\n return typeof e == \"function\";\n }\n}\na(Qt, \"_isNativeFunction\");\n\n// ../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js\nfunction Cr() {\n try {\n var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {\n }));\n } catch {\n }\n return (Cr = /* @__PURE__ */ a(function() {\n return !!e;\n }, \"_isNativeReflectConstruct\"))();\n}\na(Cr, \"_isNativeReflectConstruct\");\n\n// ../node_modules/@babel/runtime/helpers/esm/construct.js\nfunction en(e, r, t) {\n if (Cr()) return Reflect.construct.apply(null, arguments);\n var n = [null];\n n.push.apply(n, r);\n var o = new (e.bind.apply(e, n))();\n return t && K(o, t.prototype), o;\n}\na(en, \"_construct\");\n\n// ../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js\nfunction Ge(e) {\n var r = typeof Map == \"function\" ? /* @__PURE__ */ new Map() : void 0;\n return Ge = /* @__PURE__ */ a(function(n) {\n if (n === null || !Qt(n)) return n;\n if (typeof n != \"function\") throw new TypeError(\"Super expression must either be null or a function\");\n if (r !== void 0) {\n if (r.has(n)) return r.get(n);\n r.set(n, o);\n }\n function o() {\n return en(n, arguments, Ye(this).constructor);\n }\n return a(o, \"Wrapper\"), o.prototype = Object.create(n.prototype, {\n constructor: {\n value: o,\n enumerable: !1,\n writable: !0,\n configurable: !0\n }\n }), K(o, n);\n }, \"_wrapNativeSuper\"), Ge(e);\n}\na(Ge, \"_wrapNativeSuper\");\n\n// ../node_modules/polished/dist/polished.esm.js\nvar Ma = {\n 1: `Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0\\\n.4, lightness: 0.75 }).\n\n`,\n 2: `Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, satura\\\ntion: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n`,\n 3: `Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n`,\n 4: `Couldn't generate valid rgb string from %s, it returned %s.\n\n`,\n 5: `Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n`,\n 6: `Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, bl\\\nue: 100 }).\n\n`,\n 7: `Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: \\\n205, blue: 100, alpha: 0.75 }).\n\n`,\n 8: `Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n`,\n 9: `Please provide a number of steps to the modularScale helper.\n\n`,\n 10: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n`,\n 11: `Invalid value passed as base to modularScale, expected number or em string but got \"%s\"\n\n`,\n 12: `Expected a string ending in \"px\" or a number passed as the first argument to %s(), got \"%s\" instead.\n\n`,\n 13: `Expected a string ending in \"px\" or a number passed as the second argument to %s(), got \"%s\" instead.\n\n`,\n 14: `Passed invalid pixel value (\"%s\") to %s(), please pass a value like \"12px\" or 12.\n\n`,\n 15: `Passed invalid base value (\"%s\") to %s(), please pass a value like \"12px\" or 12.\n\n`,\n 16: `You must provide a template to this method.\n\n`,\n 17: `You passed an unsupported selector state to this method.\n\n`,\n 18: `minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n`,\n 19: `fromSize and toSize must be provided as stringified numbers with the same units.\n\n`,\n 20: `expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n`,\n 21: \"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\\n\\n\",\n 22: \"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\\n\\n\",\n 23: `fontFace expects a name of a font-family.\n\n`,\n 24: `fontFace expects either the path to the font file(s) or a name of a local copy.\n\n`,\n 25: `fontFace expects localFonts to be an array.\n\n`,\n 26: `fontFace expects fileFormats to be an array.\n\n`,\n 27: `radialGradient requries at least 2 color-stops to properly render.\n\n`,\n 28: `Please supply a filename to retinaImage() as the first argument.\n\n`,\n 29: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n`,\n 30: \"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\\n\\n\",\n 31: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n`,\n 32: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\n\n`,\n 33: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n`,\n 34: `borderRadius expects a radius value as a string or number as the second argument.\n\n`,\n 35: `borderRadius expects one of \"top\", \"bottom\", \"left\" or \"right\" as the first argument.\n\n`,\n 36: `Property must be a string value.\n\n`,\n 37: `Syntax Error at %s.\n\n`,\n 38: `Formula contains a function that needs parentheses at %s.\n\n`,\n 39: `Formula is missing closing parenthesis at %s.\n\n`,\n 40: `Formula has too many closing parentheses at %s.\n\n`,\n 41: `All values in a formula must have the same unit or be unitless.\n\n`,\n 42: `Please provide a number of steps to the modularScale helper.\n\n`,\n 43: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n`,\n 44: `Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n`,\n 45: `Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n`,\n 46: `Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n`,\n 47: `minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n`,\n 48: `fromSize and toSize must be provided as stringified numbers with the same units.\n\n`,\n 49: `Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n`,\n 50: `Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n`,\n 51: `Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n`,\n 52: `fontFace expects either the path to the font file(s) or a name of a local copy.\n\n`,\n 53: `fontFace expects localFonts to be an array.\n\n`,\n 54: `fontFace expects fileFormats to be an array.\n\n`,\n 55: `fontFace expects a name of a font-family.\n\n`,\n 56: `linearGradient requries at least 2 color-stops to properly render.\n\n`,\n 57: `radialGradient requries at least 2 color-stops to properly render.\n\n`,\n 58: `Please supply a filename to retinaImage() as the first argument.\n\n`,\n 59: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n`,\n 60: \"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\\n\\n\",\n 61: `Property must be a string value.\n\n`,\n 62: `borderRadius expects a radius value as a string or number as the second argument.\n\n`,\n 63: `borderRadius expects one of \"top\", \"bottom\", \"left\" or \"right\" as the first argument.\n\n`,\n 64: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n`,\n 65: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\\\nTo pass a single animatio\\\nn please supply them in simple values, e.g. animation('rotate', '2s').\n\n`,\n 66: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n`,\n 67: `You must provide a template to this method.\n\n`,\n 68: `You passed an unsupported selector state to this method.\n\n`,\n 69: `Expected a string ending in \"px\" or a number passed as the first argument to %s(), got %s instead.\n\n`,\n 70: `Expected a string ending in \"px\" or a number passed as the second argument to %s(), got %s instead.\n\n`,\n 71: `Passed invalid pixel value %s to %s(), please pass a value like \"12px\" or 12.\n\n`,\n 72: `Passed invalid base value %s to %s(), please pass a value like \"12px\" or 12.\n\n`,\n 73: `Please provide a valid CSS variable.\n\n`,\n 74: `CSS variable not found and no default was provided.\n\n`,\n 75: `important requires a valid style object, got a %s instead.\n\n`,\n 76: `fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n\n`,\n 77: `remToPx expects a value in \"rem\" but you provided it in \"%s\".\n\n`,\n 78: `base must be set in \"px\" or \"%\" but you set it in \"%s\".\n`\n};\nfunction ja() {\n for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)\n r[t] = arguments[t];\n var n = r[0], o = [], i;\n for (i = 1; i < r.length; i += 1)\n o.push(r[i]);\n return o.forEach(function(s) {\n n = n.replace(/%[a-z]/, s);\n }), n;\n}\na(ja, \"format\");\nvar V = /* @__PURE__ */ function(e) {\n Xt(r, e);\n function r(t) {\n for (var n, o = arguments.length, i = new Array(o > 1 ? o - 1 : 0), s = 1; s < o; s++)\n i[s - 1] = arguments[s];\n return n = e.call(this, ja.apply(void 0, [Ma[t]].concat(i))) || this, Kt(n);\n }\n return a(r, \"PolishedError\"), r;\n}(/* @__PURE__ */ Ge(Error));\nfunction Rr(e) {\n return Math.round(e * 255);\n}\na(Rr, \"colorToInt\");\nfunction Da(e, r, t) {\n return Rr(e) + \",\" + Rr(r) + \",\" + Rr(t);\n}\na(Da, \"convertToInt\");\nfunction Fe(e, r, t, n) {\n if (n === void 0 && (n = Da), r === 0)\n return n(t, t, t);\n var o = (e % 360 + 360) % 360 / 60, i = (1 - Math.abs(2 * t - 1)) * r, s = i * (1 - Math.abs(o % 2 - 1)), u = 0, c = 0, d = 0;\n o >= 0 && o < 1 ? (u = i, c = s) : o >= 1 && o < 2 ? (u = s, c = i) : o >= 2 && o < 3 ? (c = i, d = s) : o >= 3 && o < 4 ? (c = s, d = i) :\n o >= 4 && o < 5 ? (u = s, d = i) : o >= 5 && o < 6 && (u = i, d = s);\n var f = t - i / 2, l = u + f, p = c + f, v = d + f;\n return n(l, p, v);\n}\na(Fe, \"hslToRgb\");\nvar rn = {\n aliceblue: \"f0f8ff\",\n antiquewhite: \"faebd7\",\n aqua: \"00ffff\",\n aquamarine: \"7fffd4\",\n azure: \"f0ffff\",\n beige: \"f5f5dc\",\n bisque: \"ffe4c4\",\n black: \"000\",\n blanchedalmond: \"ffebcd\",\n blue: \"0000ff\",\n blueviolet: \"8a2be2\",\n brown: \"a52a2a\",\n burlywood: \"deb887\",\n cadetblue: \"5f9ea0\",\n chartreuse: \"7fff00\",\n chocolate: \"d2691e\",\n coral: \"ff7f50\",\n cornflowerblue: \"6495ed\",\n cornsilk: \"fff8dc\",\n crimson: \"dc143c\",\n cyan: \"00ffff\",\n darkblue: \"00008b\",\n darkcyan: \"008b8b\",\n darkgoldenrod: \"b8860b\",\n darkgray: \"a9a9a9\",\n darkgreen: \"006400\",\n darkgrey: \"a9a9a9\",\n darkkhaki: \"bdb76b\",\n darkmagenta: \"8b008b\",\n darkolivegreen: \"556b2f\",\n darkorange: \"ff8c00\",\n darkorchid: \"9932cc\",\n darkred: \"8b0000\",\n darksalmon: \"e9967a\",\n darkseagreen: \"8fbc8f\",\n darkslateblue: \"483d8b\",\n darkslategray: \"2f4f4f\",\n darkslategrey: \"2f4f4f\",\n darkturquoise: \"00ced1\",\n darkviolet: \"9400d3\",\n deeppink: \"ff1493\",\n deepskyblue: \"00bfff\",\n dimgray: \"696969\",\n dimgrey: \"696969\",\n dodgerblue: \"1e90ff\",\n firebrick: \"b22222\",\n floralwhite: \"fffaf0\",\n forestgreen: \"228b22\",\n fuchsia: \"ff00ff\",\n gainsboro: \"dcdcdc\",\n ghostwhite: \"f8f8ff\",\n gold: \"ffd700\",\n goldenrod: \"daa520\",\n gray: \"808080\",\n green: \"008000\",\n greenyellow: \"adff2f\",\n grey: \"808080\",\n honeydew: \"f0fff0\",\n hotpink: \"ff69b4\",\n indianred: \"cd5c5c\",\n indigo: \"4b0082\",\n ivory: \"fffff0\",\n khaki: \"f0e68c\",\n lavender: \"e6e6fa\",\n lavenderblush: \"fff0f5\",\n lawngreen: \"7cfc00\",\n lemonchiffon: \"fffacd\",\n lightblue: \"add8e6\",\n lightcoral: \"f08080\",\n lightcyan: \"e0ffff\",\n lightgoldenrodyellow: \"fafad2\",\n lightgray: \"d3d3d3\",\n lightgreen: \"90ee90\",\n lightgrey: \"d3d3d3\",\n lightpink: \"ffb6c1\",\n lightsalmon: \"ffa07a\",\n lightseagreen: \"20b2aa\",\n lightskyblue: \"87cefa\",\n lightslategray: \"789\",\n lightslategrey: \"789\",\n lightsteelblue: \"b0c4de\",\n lightyellow: \"ffffe0\",\n lime: \"0f0\",\n limegreen: \"32cd32\",\n linen: \"faf0e6\",\n magenta: \"f0f\",\n maroon: \"800000\",\n mediumaquamarine: \"66cdaa\",\n mediumblue: \"0000cd\",\n mediumorchid: \"ba55d3\",\n mediumpurple: \"9370db\",\n mediumseagreen: \"3cb371\",\n mediumslateblue: \"7b68ee\",\n mediumspringgreen: \"00fa9a\",\n mediumturquoise: \"48d1cc\",\n mediumvioletred: \"c71585\",\n midnightblue: \"191970\",\n mintcream: \"f5fffa\",\n mistyrose: \"ffe4e1\",\n moccasin: \"ffe4b5\",\n navajowhite: \"ffdead\",\n navy: \"000080\",\n oldlace: \"fdf5e6\",\n olive: \"808000\",\n olivedrab: \"6b8e23\",\n orange: \"ffa500\",\n orangered: \"ff4500\",\n orchid: \"da70d6\",\n palegoldenrod: \"eee8aa\",\n palegreen: \"98fb98\",\n paleturquoise: \"afeeee\",\n palevioletred: \"db7093\",\n papayawhip: \"ffefd5\",\n peachpuff: \"ffdab9\",\n peru: \"cd853f\",\n pink: \"ffc0cb\",\n plum: \"dda0dd\",\n powderblue: \"b0e0e6\",\n purple: \"800080\",\n rebeccapurple: \"639\",\n red: \"f00\",\n rosybrown: \"bc8f8f\",\n royalblue: \"4169e1\",\n saddlebrown: \"8b4513\",\n salmon: \"fa8072\",\n sandybrown: \"f4a460\",\n seagreen: \"2e8b57\",\n seashell: \"fff5ee\",\n sienna: \"a0522d\",\n silver: \"c0c0c0\",\n skyblue: \"87ceeb\",\n slateblue: \"6a5acd\",\n slategray: \"708090\",\n slategrey: \"708090\",\n snow: \"fffafa\",\n springgreen: \"00ff7f\",\n steelblue: \"4682b4\",\n tan: \"d2b48c\",\n teal: \"008080\",\n thistle: \"d8bfd8\",\n tomato: \"ff6347\",\n turquoise: \"40e0d0\",\n violet: \"ee82ee\",\n wheat: \"f5deb3\",\n white: \"fff\",\n whitesmoke: \"f5f5f5\",\n yellow: \"ff0\",\n yellowgreen: \"9acd32\"\n};\nfunction Ba(e) {\n if (typeof e != \"string\") return e;\n var r = e.toLowerCase();\n return rn[r] ? \"#\" + rn[r] : e;\n}\na(Ba, \"nameToHex\");\nvar $a = /^#[a-fA-F0-9]{6}$/, Ha = /^#[a-fA-F0-9]{8}$/, Va = /^#[a-fA-F0-9]{3}$/, Ua = /^#[a-fA-F0-9]{4}$/, Ar = /^rgb\\(\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*\\)$/i,\nWa = /^rgb(?:a)?\\(\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*(?:,|\\/)\\s*([-+]?\\d*[.]?\\d+[%]?)\\s*\\)$/i, Ya = /^hsl\\(\\s*(\\d{0,3}[.]?[0-9]+(?:deg)?)\\s*(?:,)?\\s*(\\d{1,3}[.]?[0-9]?)%\\s*(?:,)?\\s*(\\d{1,3}[.]?[0-9]?)%\\s*\\)$/i,\nGa = /^hsl(?:a)?\\(\\s*(\\d{0,3}[.]?[0-9]+(?:deg)?)\\s*(?:,)?\\s*(\\d{1,3}[.]?[0-9]?)%\\s*(?:,)?\\s*(\\d{1,3}[.]?[0-9]?)%\\s*(?:,|\\/)\\s*([-+]?\\d*[.]?\\d+[%]?)\\s*\\)$/i;\nfunction Je(e) {\n if (typeof e != \"string\")\n throw new V(3);\n var r = Ba(e);\n if (r.match($a))\n return {\n red: parseInt(\"\" + r[1] + r[2], 16),\n green: parseInt(\"\" + r[3] + r[4], 16),\n blue: parseInt(\"\" + r[5] + r[6], 16)\n };\n if (r.match(Ha)) {\n var t = parseFloat((parseInt(\"\" + r[7] + r[8], 16) / 255).toFixed(2));\n return {\n red: parseInt(\"\" + r[1] + r[2], 16),\n green: parseInt(\"\" + r[3] + r[4], 16),\n blue: parseInt(\"\" + r[5] + r[6], 16),\n alpha: t\n };\n }\n if (r.match(Va))\n return {\n red: parseInt(\"\" + r[1] + r[1], 16),\n green: parseInt(\"\" + r[2] + r[2], 16),\n blue: parseInt(\"\" + r[3] + r[3], 16)\n };\n if (r.match(Ua)) {\n var n = parseFloat((parseInt(\"\" + r[4] + r[4], 16) / 255).toFixed(2));\n return {\n red: parseInt(\"\" + r[1] + r[1], 16),\n green: parseInt(\"\" + r[2] + r[2], 16),\n blue: parseInt(\"\" + r[3] + r[3], 16),\n alpha: n\n };\n }\n var o = Ar.exec(r);\n if (o)\n return {\n red: parseInt(\"\" + o[1], 10),\n green: parseInt(\"\" + o[2], 10),\n blue: parseInt(\"\" + o[3], 10)\n };\n var i = Wa.exec(r.substring(0, 50));\n if (i)\n return {\n red: parseInt(\"\" + i[1], 10),\n green: parseInt(\"\" + i[2], 10),\n blue: parseInt(\"\" + i[3], 10),\n alpha: parseFloat(\"\" + i[4]) > 1 ? parseFloat(\"\" + i[4]) / 100 : parseFloat(\"\" + i[4])\n };\n var s = Ya.exec(r);\n if (s) {\n var u = parseInt(\"\" + s[1], 10), c = parseInt(\"\" + s[2], 10) / 100, d = parseInt(\"\" + s[3], 10) / 100, f = \"rgb(\" + Fe(u, c, d) + \")\", l = Ar.\n exec(f);\n if (!l)\n throw new V(4, r, f);\n return {\n red: parseInt(\"\" + l[1], 10),\n green: parseInt(\"\" + l[2], 10),\n blue: parseInt(\"\" + l[3], 10)\n };\n }\n var p = Ga.exec(r.substring(0, 50));\n if (p) {\n var v = parseInt(\"\" + p[1], 10), h = parseInt(\"\" + p[2], 10) / 100, m = parseInt(\"\" + p[3], 10) / 100, y = \"rgb(\" + Fe(v, h, m) + \")\", x = Ar.\n exec(y);\n if (!x)\n throw new V(4, r, y);\n return {\n red: parseInt(\"\" + x[1], 10),\n green: parseInt(\"\" + x[2], 10),\n blue: parseInt(\"\" + x[3], 10),\n alpha: parseFloat(\"\" + p[4]) > 1 ? parseFloat(\"\" + p[4]) / 100 : parseFloat(\"\" + p[4])\n };\n }\n throw new V(5);\n}\na(Je, \"parseToRgb\");\nfunction qa(e) {\n var r = e.red / 255, t = e.green / 255, n = e.blue / 255, o = Math.max(r, t, n), i = Math.min(r, t, n), s = (o + i) / 2;\n if (o === i)\n return e.alpha !== void 0 ? {\n hue: 0,\n saturation: 0,\n lightness: s,\n alpha: e.alpha\n } : {\n hue: 0,\n saturation: 0,\n lightness: s\n };\n var u, c = o - i, d = s > 0.5 ? c / (2 - o - i) : c / (o + i);\n switch (o) {\n case r:\n u = (t - n) / c + (t < n ? 6 : 0);\n break;\n case t:\n u = (n - r) / c + 2;\n break;\n default:\n u = (r - t) / c + 4;\n break;\n }\n return u *= 60, e.alpha !== void 0 ? {\n hue: u,\n saturation: d,\n lightness: s,\n alpha: e.alpha\n } : {\n hue: u,\n saturation: d,\n lightness: s\n };\n}\na(qa, \"rgbToHsl\");\nfunction tn(e) {\n return qa(Je(e));\n}\na(tn, \"parseToHsl\");\nvar Ja = /* @__PURE__ */ a(function(r) {\n return r.length === 7 && r[1] === r[2] && r[3] === r[4] && r[5] === r[6] ? \"#\" + r[1] + r[3] + r[5] : r;\n}, \"reduceHexValue\"), Fr = Ja;\nfunction te(e) {\n var r = e.toString(16);\n return r.length === 1 ? \"0\" + r : r;\n}\na(te, \"numberToHex\");\nfunction _r(e) {\n return te(Math.round(e * 255));\n}\na(_r, \"colorToHex\");\nfunction Za(e, r, t) {\n return Fr(\"#\" + _r(e) + _r(r) + _r(t));\n}\na(Za, \"convertToHex\");\nfunction qe(e, r, t) {\n return Fe(e, r, t, Za);\n}\na(qe, \"hslToHex\");\nfunction Ka(e, r, t) {\n if (typeof e == \"number\" && typeof r == \"number\" && typeof t == \"number\")\n return qe(e, r, t);\n if (typeof e == \"object\" && r === void 0 && t === void 0)\n return qe(e.hue, e.saturation, e.lightness);\n throw new V(1);\n}\na(Ka, \"hsl\");\nfunction Xa(e, r, t, n) {\n if (typeof e == \"number\" && typeof r == \"number\" && typeof t == \"number\" && typeof n == \"number\")\n return n >= 1 ? qe(e, r, t) : \"rgba(\" + Fe(e, r, t) + \",\" + n + \")\";\n if (typeof e == \"object\" && r === void 0 && t === void 0 && n === void 0)\n return e.alpha >= 1 ? qe(e.hue, e.saturation, e.lightness) : \"rgba(\" + Fe(e.hue, e.saturation, e.lightness) + \",\" + e.alpha + \")\";\n throw new V(2);\n}\na(Xa, \"hsla\");\nfunction Nr(e, r, t) {\n if (typeof e == \"number\" && typeof r == \"number\" && typeof t == \"number\")\n return Fr(\"#\" + te(e) + te(r) + te(t));\n if (typeof e == \"object\" && r === void 0 && t === void 0)\n return Fr(\"#\" + te(e.red) + te(e.green) + te(e.blue));\n throw new V(6);\n}\na(Nr, \"rgb\");\nfunction ve(e, r, t, n) {\n if (typeof e == \"string\" && typeof r == \"number\") {\n var o = Je(e);\n return \"rgba(\" + o.red + \",\" + o.green + \",\" + o.blue + \",\" + r + \")\";\n } else {\n if (typeof e == \"number\" && typeof r == \"number\" && typeof t == \"number\" && typeof n == \"number\")\n return n >= 1 ? Nr(e, r, t) : \"rgba(\" + e + \",\" + r + \",\" + t + \",\" + n + \")\";\n if (typeof e == \"object\" && r === void 0 && t === void 0 && n === void 0)\n return e.alpha >= 1 ? Nr(e.red, e.green, e.blue) : \"rgba(\" + e.red + \",\" + e.green + \",\" + e.blue + \",\" + e.alpha + \")\";\n }\n throw new V(7);\n}\na(ve, \"rgba\");\nvar Qa = /* @__PURE__ */ a(function(r) {\n return typeof r.red == \"number\" && typeof r.green == \"number\" && typeof r.blue == \"number\" && (typeof r.alpha != \"number\" || typeof r.alpha >\n \"u\");\n}, \"isRgb\"), eo = /* @__PURE__ */ a(function(r) {\n return typeof r.red == \"number\" && typeof r.green == \"number\" && typeof r.blue == \"number\" && typeof r.alpha == \"number\";\n}, \"isRgba\"), ro = /* @__PURE__ */ a(function(r) {\n return typeof r.hue == \"number\" && typeof r.saturation == \"number\" && typeof r.lightness == \"number\" && (typeof r.alpha != \"number\" || typeof r.\n alpha > \"u\");\n}, \"isHsl\"), to = /* @__PURE__ */ a(function(r) {\n return typeof r.hue == \"number\" && typeof r.saturation == \"number\" && typeof r.lightness == \"number\" && typeof r.alpha == \"number\";\n}, \"isHsla\");\nfunction nn(e) {\n if (typeof e != \"object\") throw new V(8);\n if (eo(e)) return ve(e);\n if (Qa(e)) return Nr(e);\n if (to(e)) return Xa(e);\n if (ro(e)) return Ka(e);\n throw new V(8);\n}\na(nn, \"toColorString\");\nfunction an(e, r, t) {\n return /* @__PURE__ */ a(function() {\n var o = t.concat(Array.prototype.slice.call(arguments));\n return o.length >= r ? e.apply(this, o) : an(e, r, o);\n }, \"fn\");\n}\na(an, \"curried\");\nfunction Ze(e) {\n return an(e, e.length, []);\n}\na(Ze, \"curry\");\nfunction Ke(e, r, t) {\n return Math.max(e, Math.min(r, t));\n}\na(Ke, \"guard\");\nfunction no(e, r) {\n if (r === \"transparent\") return r;\n var t = tn(r);\n return nn(j({}, t, {\n lightness: Ke(0, 1, t.lightness - parseFloat(e))\n }));\n}\na(no, \"darken\");\nvar ao = /* @__PURE__ */ Ze(no), on = ao;\nfunction oo(e, r) {\n if (r === \"transparent\") return r;\n var t = tn(r);\n return nn(j({}, t, {\n lightness: Ke(0, 1, t.lightness + parseFloat(e))\n }));\n}\na(oo, \"lighten\");\nvar io = /* @__PURE__ */ Ze(oo), sn = io;\nfunction so(e, r) {\n if (r === \"transparent\") return r;\n var t = Je(r), n = typeof t.alpha == \"number\" ? t.alpha : 1, o = j({}, t, {\n alpha: Ke(0, 1, (n * 100 + parseFloat(e) * 100) / 100)\n });\n return ve(o);\n}\na(so, \"opacify\");\nvar uo = /* @__PURE__ */ Ze(so), un = uo;\nfunction co(e, r) {\n if (r === \"transparent\") return r;\n var t = Je(r), n = typeof t.alpha == \"number\" ? t.alpha : 1, o = j({}, t, {\n alpha: Ke(0, 1, +(n * 100 - parseFloat(e) * 100).toFixed(2) / 100)\n });\n return ve(o);\n}\na(co, \"transparentize\");\nvar fo = /* @__PURE__ */ Ze(co), cn = fo;\n\n// src/theming/base.ts\nvar g = {\n // Official color palette\n primary: \"#FF4785\",\n // coral\n secondary: \"#029CFD\",\n // ocean\n tertiary: \"#FAFBFC\",\n ancillary: \"#22a699\",\n // Complimentary\n orange: \"#FC521F\",\n gold: \"#FFAE00\",\n green: \"#66BF3C\",\n seafoam: \"#37D5D3\",\n purple: \"#6F2CAC\",\n ultraviolet: \"#2A0481\",\n // Monochrome\n lightest: \"#FFFFFF\",\n lighter: \"#F7FAFC\",\n light: \"#EEF3F6\",\n mediumlight: \"#ECF4F9\",\n medium: \"#D9E8F2\",\n mediumdark: \"#73828C\",\n dark: \"#5C6870\",\n darker: \"#454E54\",\n darkest: \"#2E3438\",\n // For borders\n border: \"hsla(203, 50%, 30%, 0.15)\",\n // Status\n positive: \"#66BF3C\",\n negative: \"#FF4400\",\n warning: \"#E69D00\",\n critical: \"#FFFFFF\",\n // Text\n defaultText: \"#2E3438\",\n inverseText: \"#FFFFFF\",\n positiveText: \"#448028\",\n negativeText: \"#D43900\",\n warningText: \"#A15C20\"\n}, U = {\n app: \"#F6F9FC\",\n bar: g.lightest,\n content: g.lightest,\n preview: g.lightest,\n gridCellSize: 10,\n hoverable: cn(0.9, g.secondary),\n // hover state for items in a list\n // Notification, error, and warning backgrounds\n positive: \"#E1FFD4\",\n negative: \"#FEDED2\",\n warning: \"#FFF5CF\",\n critical: \"#FF4400\"\n}, H = {\n fonts: {\n base: [\n '\"Nunito Sans\"',\n \"-apple-system\",\n '\".SFNSText-Regular\"',\n '\"San Francisco\"',\n \"BlinkMacSystemFont\",\n '\"Segoe UI\"',\n '\"Helvetica Neue\"',\n \"Helvetica\",\n \"Arial\",\n \"sans-serif\"\n ].join(\", \"),\n mono: [\n \"ui-monospace\",\n \"Menlo\",\n \"Monaco\",\n '\"Roboto Mono\"',\n '\"Oxygen Mono\"',\n '\"Ubuntu Monospace\"',\n '\"Source Code Pro\"',\n '\"Droid Sans Mono\"',\n '\"Courier New\"',\n \"monospace\"\n ].join(\", \")\n },\n weight: {\n regular: 400,\n bold: 700\n },\n size: {\n s1: 12,\n s2: 14,\n s3: 16,\n m1: 20,\n m2: 24,\n m3: 28,\n l1: 32,\n l2: 40,\n l3: 48,\n code: 90\n }\n};\n\n// src/theming/global.ts\nvar kr = ir(ln(), 1), dn = (0, kr.default)(1)(\n ({ typography: e }) => ({\n body: {\n fontFamily: e.fonts.base,\n fontSize: e.size.s3,\n margin: 0,\n WebkitFontSmoothing: \"antialiased\",\n MozOsxFontSmoothing: \"grayscale\",\n WebkitTapHighlightColor: \"rgba(0, 0, 0, 0)\",\n WebkitOverflowScrolling: \"touch\"\n },\n \"*\": {\n boxSizing: \"border-box\"\n },\n \"h1, h2, h3, h4, h5, h6\": {\n fontWeight: e.weight.regular,\n margin: 0,\n padding: 0\n },\n \"button, input, textarea, select\": {\n fontFamily: \"inherit\",\n fontSize: \"inherit\",\n boxSizing: \"border-box\"\n },\n sub: {\n fontSize: \"0.8em\",\n bottom: \"-0.2em\"\n },\n sup: {\n fontSize: \"0.8em\",\n top: \"-0.2em\"\n },\n \"b, strong\": {\n fontWeight: e.weight.bold\n },\n hr: {\n border: \"none\",\n borderTop: \"1px solid silver\",\n clear: \"both\",\n marginBottom: \"1.25rem\"\n },\n code: {\n fontFamily: e.fonts.mono,\n WebkitFontSmoothing: \"antialiased\",\n MozOsxFontSmoothing: \"grayscale\",\n display: \"inline-block\",\n paddingLeft: 2,\n paddingRight: 2,\n verticalAlign: \"baseline\",\n color: \"inherit\"\n },\n pre: {\n fontFamily: e.fonts.mono,\n WebkitFontSmoothing: \"antialiased\",\n MozOsxFontSmoothing: \"grayscale\",\n lineHeight: \"18px\",\n padding: \"11px 1rem\",\n whiteSpace: \"pre-wrap\",\n color: \"inherit\",\n borderRadius: 3,\n margin: \"1rem 0\"\n }\n })\n), lo = (0, kr.default)(1)(({\n color: e,\n background: r,\n typography: t\n}) => {\n let n = dn({ typography: t });\n return {\n ...n,\n body: {\n ...n.body,\n color: e.defaultText,\n background: r.app,\n overflow: \"hidden\"\n },\n hr: {\n ...n.hr,\n borderTop: `1px solid ${e.border}`\n }\n };\n});\n\n// src/theming/themes/dark.ts\nvar po = {\n base: \"dark\",\n // Storybook-specific color palette\n colorPrimary: \"#FF4785\",\n // coral\n colorSecondary: \"#029CFD\",\n // ocean\n // UI\n appBg: \"#222425\",\n appContentBg: \"#1B1C1D\",\n appPreviewBg: g.lightest,\n appBorderColor: \"rgba(255,255,255,.1)\",\n appBorderRadius: 4,\n // Fonts\n fontBase: H.fonts.base,\n fontCode: H.fonts.mono,\n // Text colors\n textColor: \"#C9CDCF\",\n textInverseColor: \"#222425\",\n textMutedColor: \"#798186\",\n // Toolbar default and active colors\n barTextColor: g.mediumdark,\n barHoverColor: g.secondary,\n barSelectedColor: g.secondary,\n barBg: \"#292C2E\",\n // Form colors\n buttonBg: \"#222425\",\n buttonBorder: \"rgba(255,255,255,.1)\",\n booleanBg: \"#222425\",\n booleanSelectedBg: \"#2E3438\",\n inputBg: \"#1B1C1D\",\n inputBorder: \"rgba(255,255,255,.1)\",\n inputTextColor: g.lightest,\n inputBorderRadius: 4\n}, pn = po;\n\n// src/theming/themes/light.ts\nvar mo = {\n base: \"light\",\n // Storybook-specific color palette\n colorPrimary: \"#FF4785\",\n // coral\n colorSecondary: \"#029CFD\",\n // ocean\n // UI\n appBg: U.app,\n appContentBg: g.lightest,\n appPreviewBg: g.lightest,\n appBorderColor: g.border,\n appBorderRadius: 4,\n // Fonts\n fontBase: H.fonts.base,\n fontCode: H.fonts.mono,\n // Text colors\n textColor: g.darkest,\n textInverseColor: g.lightest,\n textMutedColor: g.dark,\n // Toolbar default and active colors\n barTextColor: g.mediumdark,\n barHoverColor: g.secondary,\n barSelectedColor: g.secondary,\n barBg: g.lightest,\n // Form colors\n buttonBg: U.app,\n buttonBorder: g.medium,\n booleanBg: g.mediumlight,\n booleanSelectedBg: g.lightest,\n inputBg: g.lightest,\n inputBorder: g.border,\n inputTextColor: g.darkest,\n inputBorderRadius: 4\n}, ye = mo;\n\n// ../node_modules/@storybook/global/dist/index.mjs\nvar mn = (() => {\n let e;\n return typeof window < \"u\" ? e = window : typeof globalThis < \"u\" ? e = globalThis : typeof global < \"u\" ? e = global : typeof self < \"u\" ?\n e = self : e = {}, e;\n})();\n\n// src/theming/utils.ts\nimport { logger as ho } from \"@storybook/core/client-logger\";\nvar { window: Pr } = mn, hn = /* @__PURE__ */ a((e) => ({ color: e }), \"mkColor\"), go = /* @__PURE__ */ a((e) => typeof e != \"string\" ? (ho.\nwarn(\n `Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`\n), !1) : !0, \"isColorString\"), bo = /* @__PURE__ */ a((e) => !/(gradient|var|calc)/.test(e), \"isValidColorForPolished\"), vo = /* @__PURE__ */ a(\n(e, r) => e === \"darken\" ? ve(`${on(1, r)}`, 0.95) : e === \"lighten\" ? ve(`${sn(1, r)}`, 0.95) : r, \"applyPolished\"), gn = /* @__PURE__ */ a(\n(e) => (r) => {\n if (!go(r) || !bo(r))\n return r;\n try {\n return vo(e, r);\n } catch {\n return r;\n }\n}, \"colorFactory\"), yo = gn(\"lighten\"), xo = gn(\"darken\"), Xe = /* @__PURE__ */ a(() => !Pr || !Pr.matchMedia ? \"light\" : Pr.matchMedia(\"(pr\\\nefers-color-scheme: dark)\").matches ? \"dark\" : \"light\", \"getPreferredColorScheme\");\n\n// src/theming/create.ts\nvar Ne = {\n light: ye,\n dark: pn,\n normal: ye\n}, Lr = Xe(), bu = /* @__PURE__ */ a((e = { base: Lr }, r) => {\n let t = {\n ...Ne[Lr],\n ...Ne[e.base] || {},\n ...e,\n base: Ne[e.base] ? e.base : Lr\n };\n return {\n ...r,\n ...t,\n barSelectedColor: e.barSelectedColor || t.colorSecondary\n };\n}, \"create\");\n\n// src/theming/animation.ts\nvar bn = {\n rubber: \"cubic-bezier(0.175, 0.885, 0.335, 1.05)\"\n}, Eo = be`\n\tfrom {\n\t\ttransform: rotate(0deg);\n\t}\n\tto {\n\t\ttransform: rotate(360deg);\n\t}\n`, vn = be`\n 0%, 100% { opacity: 1; }\n 50% { opacity: .4; }\n`, wo = be`\n 0% { transform: translateY(1px); }\n 25% { transform: translateY(0px); }\n 50% { transform: translateY(-3px); }\n 100% { transform: translateY(1px); }\n`, So = be`\n 0%, 100% { transform:translate3d(0,0,0); }\n 12.5%, 62.5% { transform:translate3d(-4px,0,0); }\n 37.5%, 87.5% { transform: translate3d(4px,0,0); }\n`, Oo = _e`\n animation: ${vn} 1.5s ease-in-out infinite;\n color: transparent;\n cursor: progress;\n`, To = _e`\n transition: all 150ms ease-out;\n transform: translate3d(0, 0, 0);\n\n &:hover {\n transform: translate3d(0, -2px, 0);\n }\n\n &:active {\n transform: translate3d(0, 0, 0);\n }\n`, yn = {\n rotate360: Eo,\n glow: vn,\n float: wo,\n jiggle: So,\n inlineGlow: Oo,\n hoverable: To\n};\n\n// src/theming/modules/syntax.ts\nvar xn = {\n BASE_FONT_FAMILY: \"Menlo, monospace\",\n BASE_FONT_SIZE: \"11px\",\n BASE_LINE_HEIGHT: 1.2,\n BASE_BACKGROUND_COLOR: \"rgb(36, 36, 36)\",\n BASE_COLOR: \"rgb(213, 213, 213)\",\n OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES: 10,\n OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES: 5,\n OBJECT_NAME_COLOR: \"rgb(227, 110, 236)\",\n OBJECT_VALUE_NULL_COLOR: \"rgb(127, 127, 127)\",\n OBJECT_VALUE_UNDEFINED_COLOR: \"rgb(127, 127, 127)\",\n OBJECT_VALUE_REGEXP_COLOR: \"rgb(233, 63, 59)\",\n OBJECT_VALUE_STRING_COLOR: \"rgb(233, 63, 59)\",\n OBJECT_VALUE_SYMBOL_COLOR: \"rgb(233, 63, 59)\",\n OBJECT_VALUE_NUMBER_COLOR: \"hsl(252, 100%, 75%)\",\n OBJECT_VALUE_BOOLEAN_COLOR: \"hsl(252, 100%, 75%)\",\n OBJECT_VALUE_FUNCTION_PREFIX_COLOR: \"rgb(85, 106, 242)\",\n HTML_TAG_COLOR: \"rgb(93, 176, 215)\",\n HTML_TAGNAME_COLOR: \"rgb(93, 176, 215)\",\n HTML_TAGNAME_TEXT_TRANSFORM: \"lowercase\",\n HTML_ATTRIBUTE_NAME_COLOR: \"rgb(155, 187, 220)\",\n HTML_ATTRIBUTE_VALUE_COLOR: \"rgb(242, 151, 102)\",\n HTML_COMMENT_COLOR: \"rgb(137, 137, 137)\",\n HTML_DOCTYPE_COLOR: \"rgb(192, 192, 192)\",\n ARROW_COLOR: \"rgb(145, 145, 145)\",\n ARROW_MARGIN_RIGHT: 3,\n ARROW_FONT_SIZE: 12,\n ARROW_ANIMATION_DURATION: \"0\",\n TREENODE_FONT_FAMILY: \"Menlo, monospace\",\n TREENODE_FONT_SIZE: \"11px\",\n TREENODE_LINE_HEIGHT: 1.2,\n TREENODE_PADDING_LEFT: 12,\n TABLE_BORDER_COLOR: \"rgb(85, 85, 85)\",\n TABLE_TH_BACKGROUND_COLOR: \"rgb(44, 44, 44)\",\n TABLE_TH_HOVER_COLOR: \"rgb(48, 48, 48)\",\n TABLE_SORT_ICON_COLOR: \"black\",\n // 'rgb(48, 57, 66)',\n TABLE_DATA_BACKGROUND_IMAGE: \"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(\\\n51, 139, 255, 0.0980392))\",\n TABLE_DATA_BACKGROUND_SIZE: \"128px 32px\"\n}, En = {\n BASE_FONT_FAMILY: \"Menlo, monospace\",\n BASE_FONT_SIZE: \"11px\",\n BASE_LINE_HEIGHT: 1.2,\n BASE_BACKGROUND_COLOR: \"white\",\n BASE_COLOR: \"black\",\n OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES: 10,\n OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES: 5,\n OBJECT_NAME_COLOR: \"rgb(136, 19, 145)\",\n OBJECT_VALUE_NULL_COLOR: \"rgb(128, 128, 128)\",\n OBJECT_VALUE_UNDEFINED_COLOR: \"rgb(128, 128, 128)\",\n OBJECT_VALUE_REGEXP_COLOR: \"rgb(196, 26, 22)\",\n OBJECT_VALUE_STRING_COLOR: \"rgb(196, 26, 22)\",\n OBJECT_VALUE_SYMBOL_COLOR: \"rgb(196, 26, 22)\",\n OBJECT_VALUE_NUMBER_COLOR: \"rgb(28, 0, 207)\",\n OBJECT_VALUE_BOOLEAN_COLOR: \"rgb(28, 0, 207)\",\n OBJECT_VALUE_FUNCTION_PREFIX_COLOR: \"rgb(13, 34, 170)\",\n HTML_TAG_COLOR: \"rgb(168, 148, 166)\",\n HTML_TAGNAME_COLOR: \"rgb(136, 18, 128)\",\n HTML_TAGNAME_TEXT_TRANSFORM: \"lowercase\",\n HTML_ATTRIBUTE_NAME_COLOR: \"rgb(153, 69, 0)\",\n HTML_ATTRIBUTE_VALUE_COLOR: \"rgb(26, 26, 166)\",\n HTML_COMMENT_COLOR: \"rgb(35, 110, 37)\",\n HTML_DOCTYPE_COLOR: \"rgb(192, 192, 192)\",\n ARROW_COLOR: \"#6e6e6e\",\n ARROW_MARGIN_RIGHT: 3,\n ARROW_FONT_SIZE: 12,\n ARROW_ANIMATION_DURATION: \"0\",\n TREENODE_FONT_FAMILY: \"Menlo, monospace\",\n TREENODE_FONT_SIZE: \"11px\",\n TREENODE_LINE_HEIGHT: 1.2,\n TREENODE_PADDING_LEFT: 12,\n TABLE_BORDER_COLOR: \"#aaa\",\n TABLE_TH_BACKGROUND_COLOR: \"#eee\",\n TABLE_TH_HOVER_COLOR: \"hsla(0, 0%, 90%, 1)\",\n TABLE_SORT_ICON_COLOR: \"#6e6e6e\",\n TABLE_DATA_BACKGROUND_IMAGE: \"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))\",\n TABLE_DATA_BACKGROUND_SIZE: \"128px 32px\"\n}, Co = /* @__PURE__ */ a((e) => Object.entries(e).reduce((r, [t, n]) => ({ ...r, [t]: hn(n) }), {}), \"convertColors\"), wn = /* @__PURE__ */ a(\n({ colors: e, mono: r }) => {\n let t = Co(e);\n return {\n token: {\n fontFamily: r,\n WebkitFontSmoothing: \"antialiased\",\n \"&.tag\": t.red3,\n \"&.comment\": { ...t.green1, fontStyle: \"italic\" },\n \"&.prolog\": { ...t.green1, fontStyle: \"italic\" },\n \"&.doctype\": { ...t.green1, fontStyle: \"italic\" },\n \"&.cdata\": { ...t.green1, fontStyle: \"italic\" },\n \"&.string\": t.red1,\n \"&.url\": t.cyan1,\n \"&.symbol\": t.cyan1,\n \"&.number\": t.cyan1,\n \"&.boolean\": t.cyan1,\n \"&.variable\": t.cyan1,\n \"&.constant\": t.cyan1,\n \"&.inserted\": t.cyan1,\n \"&.atrule\": t.blue1,\n \"&.keyword\": t.blue1,\n \"&.attr-value\": t.blue1,\n \"&.punctuation\": t.gray1,\n \"&.operator\": t.gray1,\n \"&.function\": t.gray1,\n \"&.deleted\": t.red2,\n \"&.important\": {\n fontWeight: \"bold\"\n },\n \"&.bold\": {\n fontWeight: \"bold\"\n },\n \"&.italic\": {\n fontStyle: \"italic\"\n },\n \"&.class-name\": t.cyan2,\n \"&.selector\": t.red3,\n \"&.attr-name\": t.red4,\n \"&.property\": t.red4,\n \"&.regex\": t.red4,\n \"&.entity\": t.red4,\n \"&.directive.tag .tag\": {\n background: \"#ffff00\",\n ...t.gray1\n }\n },\n \"language-json .token.boolean\": t.blue1,\n \"language-json .token.number\": t.blue1,\n \"language-json .token.property\": t.cyan2,\n namespace: {\n opacity: 0.7\n }\n };\n}, \"create\");\n\n// src/theming/convert.ts\nvar Ro = {\n green1: \"#008000\",\n red1: \"#A31515\",\n red2: \"#9a050f\",\n red3: \"#800000\",\n red4: \"#ff0000\",\n gray1: \"#393A34\",\n cyan1: \"#36acaa\",\n cyan2: \"#2B91AF\",\n blue1: \"#0000ff\",\n blue2: \"#00009f\"\n}, Ao = {\n green1: \"#7C7C7C\",\n red1: \"#92C379\",\n red2: \"#9a050f\",\n red3: \"#A8FF60\",\n red4: \"#96CBFE\",\n gray1: \"#EDEDED\",\n cyan1: \"#C6C5FE\",\n cyan2: \"#FFFFB6\",\n blue1: \"#B474DD\",\n blue2: \"#00009f\"\n}, _o = /* @__PURE__ */ a((e) => ({\n // Changeable colors\n primary: e.colorPrimary,\n secondary: e.colorSecondary,\n tertiary: g.tertiary,\n ancillary: g.ancillary,\n // Complimentary\n orange: g.orange,\n gold: g.gold,\n green: g.green,\n seafoam: g.seafoam,\n purple: g.purple,\n ultraviolet: g.ultraviolet,\n // Monochrome\n lightest: g.lightest,\n lighter: g.lighter,\n light: g.light,\n mediumlight: g.mediumlight,\n medium: g.medium,\n mediumdark: g.mediumdark,\n dark: g.dark,\n darker: g.darker,\n darkest: g.darkest,\n // For borders\n border: g.border,\n // Status\n positive: g.positive,\n negative: g.negative,\n warning: g.warning,\n critical: g.critical,\n defaultText: e.textColor || g.darkest,\n inverseText: e.textInverseColor || g.lightest,\n positiveText: g.positiveText,\n negativeText: g.negativeText,\n warningText: g.warningText\n}), \"createColors\"), zr = /* @__PURE__ */ a((e = Ne[Xe()]) => {\n let {\n base: r,\n colorPrimary: t,\n colorSecondary: n,\n appBg: o,\n appContentBg: i,\n appPreviewBg: s,\n appBorderColor: u,\n appBorderRadius: c,\n fontBase: d,\n fontCode: f,\n textColor: l,\n textInverseColor: p,\n barTextColor: v,\n barHoverColor: h,\n barSelectedColor: m,\n barBg: y,\n buttonBg: x,\n buttonBorder: E,\n booleanBg: A,\n booleanSelectedBg: T,\n inputBg: C,\n inputBorder: N,\n inputTextColor: S,\n inputBorderRadius: xe,\n brandTitle: W,\n brandUrl: G,\n brandImage: er,\n brandTarget: rr,\n gridCellSize: tr,\n ...nr\n } = e;\n return {\n ...nr,\n base: r,\n color: _o(e),\n background: {\n app: o,\n bar: y,\n content: i,\n preview: s,\n gridCellSize: tr || U.gridCellSize,\n hoverable: U.hoverable,\n positive: U.positive,\n negative: U.negative,\n warning: U.warning,\n critical: U.critical\n },\n typography: {\n fonts: {\n base: d,\n mono: f\n },\n weight: H.weight,\n size: H.size\n },\n animation: yn,\n easing: bn,\n input: {\n background: C,\n border: N,\n borderRadius: xe,\n color: S\n },\n button: {\n background: x || C,\n border: E || N\n },\n boolean: {\n background: A || N,\n selectedBackground: T || C\n },\n // UI\n layoutMargin: 10,\n appBorderColor: u,\n appBorderRadius: c,\n // Toolbar default/active colors\n barTextColor: v,\n barHoverColor: h || n,\n barSelectedColor: m || n,\n barBg: y,\n // Brand logo/text\n brand: {\n title: W,\n url: G,\n image: er || (W ? null : void 0),\n target: rr\n },\n code: wn({\n colors: r === \"light\" ? Ro : Ao,\n mono: f\n }),\n // Addon actions theme\n // API example https://github.com/storybookjs/react-inspector/blob/master/src/styles/themes/chromeLight.tsx\n addonActionsTheme: {\n ...r === \"light\" ? En : xn,\n BASE_FONT_FAMILY: f,\n BASE_FONT_SIZE: H.size.s2 - 1,\n BASE_LINE_HEIGHT: \"18px\",\n BASE_BACKGROUND_COLOR: \"transparent\",\n BASE_COLOR: l,\n ARROW_COLOR: un(0.2, u),\n ARROW_MARGIN_RIGHT: 4,\n ARROW_FONT_SIZE: 8,\n TREENODE_FONT_FAMILY: f,\n TREENODE_FONT_SIZE: H.size.s2 - 1,\n TREENODE_LINE_HEIGHT: \"18px\",\n TREENODE_PADDING_LEFT: 12\n }\n };\n}, \"convert\");\n\n// src/theming/ensure.ts\nimport { logger as Po } from \"@storybook/core/client-logger\";\n\n// ../node_modules/deep-object-diff/mjs/utils.js\nvar Mr = /* @__PURE__ */ a((e) => Object.keys(e).length === 0, \"isEmpty\"), ne = /* @__PURE__ */ a((e) => e != null && typeof e == \"object\", \"\\\nisObject\"), Ie = /* @__PURE__ */ a((e, ...r) => Object.prototype.hasOwnProperty.call(e, ...r), \"hasOwnProperty\");\nvar ke = /* @__PURE__ */ a(() => /* @__PURE__ */ Object.create(null), \"makeObjectWithoutPrototype\");\n\n// ../node_modules/deep-object-diff/mjs/deleted.js\nvar Sn = /* @__PURE__ */ a((e, r) => e === r || !ne(e) || !ne(r) ? {} : Object.keys(e).reduce((t, n) => {\n if (Ie(r, n)) {\n let o = Sn(e[n], r[n]);\n return ne(o) && Mr(o) || (t[n] = o), t;\n }\n return t[n] = void 0, t;\n}, ke()), \"deletedDiff\"), Qe = Sn;\n\n// ../node_modules/ts-dedent/esm/index.js\nfunction On(e) {\n for (var r = [], t = 1; t < arguments.length; t++)\n r[t - 1] = arguments[t];\n var n = Array.from(typeof e == \"string\" ? [e] : e);\n n[n.length - 1] = n[n.length - 1].replace(/\\r?\\n([\\t ]*)$/, \"\");\n var o = n.reduce(function(u, c) {\n var d = c.match(/\\n([\\t ]+|(?!\\s).)/g);\n return d ? u.concat(d.map(function(f) {\n var l, p;\n return (p = (l = f.match(/[\\t ]/g)) === null || l === void 0 ? void 0 : l.length) !== null && p !== void 0 ? p : 0;\n })) : u;\n }, []);\n if (o.length) {\n var i = new RegExp(`\n[\t ]{` + Math.min.apply(Math, o) + \"}\", \"g\");\n n = n.map(function(u) {\n return u.replace(i, `\n`);\n });\n }\n n[0] = n[0].replace(/^\\r?\\n/, \"\");\n var s = n[0];\n return r.forEach(function(u, c) {\n var d = s.match(/(?:^|\\n)( *)$/), f = d ? d[1] : \"\", l = u;\n typeof u == \"string\" && u.includes(`\n`) && (l = String(u).split(`\n`).map(function(p, v) {\n return v === 0 ? p : \"\" + f + p;\n }).join(`\n`)), s += l + n[c + 1];\n }), s;\n}\na(On, \"dedent\");\n\n// src/theming/ensure.ts\nvar pc = /* @__PURE__ */ a((e) => {\n if (!e)\n return zr(ye);\n let r = Qe(ye, e);\n return Object.keys(r).length && Po.warn(\n On`\n Your theme is missing properties, you should update your theme!\n\n theme-data missing:\n `,\n r\n ), zr(e);\n}, \"ensure\");\n\n// src/theming/index.ts\nvar gc = \"/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */\";\nexport {\n zt as CacheProvider,\n Yt as ClassNames,\n Wt as Global,\n jt as ThemeProvider,\n U as background,\n g as color,\n zr as convert,\n bu as create,\n Ve as createCache,\n lo as createGlobal,\n dn as createReset,\n _e as css,\n xo as darken,\n pc as ensure,\n gc as ignoreSsrWarning,\n sr as isPropValid,\n _a as jsx,\n be as keyframes,\n yo as lighten,\n Tr as styled,\n Ne as themes,\n H as typography,\n Mt as useTheme,\n Dt as withTheme\n};\n","var __defProp=Object.defineProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0});};\n\nexport { __export };\n","import './chunk-CEH6MNVV.mjs';\nimport { SourceType, enhanceArgTypes, SNIPPET_RENDERED } from 'storybook/internal/docs-tools';\nimport { useEffect, addons } from 'storybook/internal/preview-api';\n\nfunction skipSourceRender(context){let sourceParams=context?.parameters.docs?.source,isArgsStory=context?.parameters.__isArgsStory;return sourceParams?.type===SourceType.DYNAMIC?!1:!isArgsStory||sourceParams?.code||sourceParams?.type===SourceType.CODE}var sourceDecorator=(storyFn,context)=>{let story=storyFn(),renderedForSource=context?.parameters.docs?.source?.excludeDecorators?context.originalStoryFn(context.args,context):story,source;return skipSourceRender(context)||(typeof renderedForSource==\"string\"?source=renderedForSource:renderedForSource instanceof Element&&(source=renderedForSource.outerHTML)),useEffect(()=>{let{id,unmappedArgs}=context;source&&addons.getChannel().emit(SNIPPET_RENDERED,{id,args:unmappedArgs,source});}),story};var decorators=[sourceDecorator],parameters={docs:{story:{inline:!0},source:{type:SourceType.DYNAMIC,language:\"html\",code:void 0,excludeDecorators:void 0}}},argTypesEnhancers=[enhanceArgTypes];\n\nexport { argTypesEnhancers, decorators, parameters };\n","import { __export } from './chunk-CEH6MNVV.mjs';\nimport { simulatePageLoad, simulateDOMContentLoaded } from 'storybook/internal/preview-api';\nimport { global } from '@storybook/global';\nimport { dedent } from 'ts-dedent';\n\nvar entry_preview_exports={};__export(entry_preview_exports,{parameters:()=>parameters,render:()=>render,renderToCanvas:()=>renderToCanvas});var {Node}=global,render=(args,context)=>{let{id,component:Component}=context;if(typeof Component==\"string\"){let output=Component;return Object.keys(args).forEach(key=>{output=output.replace(`{{${key}}}`,args[key]);}),output}if(Component instanceof HTMLElement){let output=Component.cloneNode(!0);return Object.keys(args).forEach(key=>{output.setAttribute(key,typeof args[key]==\"string\"?args[key]:JSON.stringify(args[key]));}),output}if(typeof Component==\"function\")return Component(args,context);throw console.warn(dedent`\n Storybook's HTML renderer only supports rendering DOM elements and strings.\n Received: ${Component}\n `),new Error(`Unable to render story ${id}`)};function renderToCanvas({storyFn,kind,name,showMain,showError,forceRemount},canvasElement){let element=storyFn();if(showMain(),typeof element==\"string\")canvasElement.innerHTML=element,simulatePageLoad(canvasElement);else if(element instanceof Node){if(canvasElement.firstChild===element&&forceRemount===!1)return;canvasElement.innerHTML=\"\",canvasElement.appendChild(element),simulateDOMContentLoaded();}else showError({title:`Expecting an HTML snippet or DOM node from the story: \"${name}\" of \"${kind}\".`,description:dedent`\n Did you forget to return the HTML snippet from the story?\n Use \"() => \" or when defining the story.\n `});}var parameters={renderer:\"html\"};\n\nexport { entry_preview_exports, parameters, render, renderToCanvas };\n","export { parameters, render, renderToCanvas } from './chunk-EVBQXENU.mjs';\nimport './chunk-CEH6MNVV.mjs';\n","(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\n typeof define === 'function' && define.amd ? define(['exports'], factory) :\n (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jtpp = {}));\n})(this, (function (exports) { 'use strict';\n\n function tokenToString(token) {\n if (token.text !== undefined && token.text !== '') {\n return `'${token.type}' with value '${token.text}'`;\n }\n else {\n return `'${token.type}'`;\n }\n }\n class NoParsletFoundError extends Error {\n constructor(token) {\n super(`No parslet found for token: ${tokenToString(token)}`);\n this.token = token;\n Object.setPrototypeOf(this, NoParsletFoundError.prototype);\n }\n getToken() {\n return this.token;\n }\n }\n class EarlyEndOfParseError extends Error {\n constructor(token) {\n super(`The parsing ended early. The next token was: ${tokenToString(token)}`);\n this.token = token;\n Object.setPrototypeOf(this, EarlyEndOfParseError.prototype);\n }\n getToken() {\n return this.token;\n }\n }\n class UnexpectedTypeError extends Error {\n constructor(result, message) {\n let error = `Unexpected type: '${result.type}'.`;\n if (message !== undefined) {\n error += ` Message: ${message}`;\n }\n super(error);\n Object.setPrototypeOf(this, UnexpectedTypeError.prototype);\n }\n }\n // export class UnexpectedTokenError extends Error {\n // private expected: Token\n // private found: Token\n //\n // constructor (expected: Token, found: Token) {\n // super(`The parsing ended early. The next token was: ${tokenToString(token)}`)\n //\n // this.token = token\n //\n // Object.setPrototypeOf(this, EarlyEndOfParseError.prototype)\n // }\n //\n // getToken() {\n // return this.token\n // }\n // }\n\n function makePunctuationRule(type) {\n return text => {\n if (text.startsWith(type)) {\n return { type, text: type };\n }\n else {\n return null;\n }\n };\n }\n function getQuoted(text) {\n let position = 0;\n let char;\n const mark = text[0];\n let escaped = false;\n if (mark !== '\\'' && mark !== '\"') {\n return null;\n }\n while (position < text.length) {\n position++;\n char = text[position];\n if (!escaped && char === mark) {\n position++;\n break;\n }\n escaped = !escaped && char === '\\\\';\n }\n if (char !== mark) {\n throw new Error('Unterminated String');\n }\n return text.slice(0, position);\n }\n const identifierStartRegex = /[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}/u;\n // A hyphen is not technically allowed, but to keep it liberal for now,\n // adding it here\n const identifierContinueRegex = /[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}/u;\n function getIdentifier(text) {\n let char = text[0];\n if (!identifierStartRegex.test(char)) {\n return null;\n }\n let position = 1;\n do {\n char = text[position];\n if (!identifierContinueRegex.test(char)) {\n break;\n }\n position++;\n } while (position < text.length);\n return text.slice(0, position);\n }\n // we are a bit more liberal than TypeScript here and allow `NaN`, `Infinity` and `-Infinity`\n const numberRegex = /^(NaN|-?((\\d*\\.\\d+|\\d+)([Ee][+-]?\\d+)?|Infinity))/;\n function getNumber(text) {\n var _a, _b;\n return (_b = (_a = numberRegex.exec(text)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : null;\n }\n const identifierRule = text => {\n const value = getIdentifier(text);\n if (value == null) {\n return null;\n }\n return {\n type: 'Identifier',\n text: value\n };\n };\n function makeKeyWordRule(type) {\n return text => {\n if (!text.startsWith(type)) {\n return null;\n }\n const prepends = text[type.length];\n if (prepends !== undefined && identifierContinueRegex.test(prepends)) {\n return null;\n }\n return {\n type,\n text: type\n };\n };\n }\n const stringValueRule = text => {\n const value = getQuoted(text);\n if (value == null) {\n return null;\n }\n return {\n type: 'StringValue',\n text: value\n };\n };\n const eofRule = text => {\n if (text.length > 0) {\n return null;\n }\n return {\n type: 'EOF',\n text: ''\n };\n };\n const numberRule = text => {\n const value = getNumber(text);\n if (value === null) {\n return null;\n }\n return {\n type: 'Number',\n text: value\n };\n };\n const rules = [\n eofRule,\n makePunctuationRule('=>'),\n makePunctuationRule('('),\n makePunctuationRule(')'),\n makePunctuationRule('{'),\n makePunctuationRule('}'),\n makePunctuationRule('['),\n makePunctuationRule(']'),\n makePunctuationRule('|'),\n makePunctuationRule('&'),\n makePunctuationRule('<'),\n makePunctuationRule('>'),\n makePunctuationRule(','),\n makePunctuationRule(';'),\n makePunctuationRule('*'),\n makePunctuationRule('?'),\n makePunctuationRule('!'),\n makePunctuationRule('='),\n makePunctuationRule(':'),\n makePunctuationRule('...'),\n makePunctuationRule('.'),\n makePunctuationRule('#'),\n makePunctuationRule('~'),\n makePunctuationRule('/'),\n makePunctuationRule('@'),\n makeKeyWordRule('undefined'),\n makeKeyWordRule('null'),\n makeKeyWordRule('function'),\n makeKeyWordRule('this'),\n makeKeyWordRule('new'),\n makeKeyWordRule('module'),\n makeKeyWordRule('event'),\n makeKeyWordRule('external'),\n makeKeyWordRule('typeof'),\n makeKeyWordRule('keyof'),\n makeKeyWordRule('readonly'),\n makeKeyWordRule('import'),\n makeKeyWordRule('is'),\n makeKeyWordRule('in'),\n makeKeyWordRule('asserts'),\n numberRule,\n identifierRule,\n stringValueRule\n ];\n const breakingWhitespaceRegex = /^\\s*\\n\\s*/;\n class Lexer {\n static create(text) {\n const current = this.read(text);\n text = current.text;\n const next = this.read(text);\n text = next.text;\n return new Lexer(text, undefined, current.token, next.token);\n }\n constructor(text, previous, current, next) {\n this.text = '';\n this.text = text;\n this.previous = previous;\n this.current = current;\n this.next = next;\n }\n static read(text, startOfLine = false) {\n startOfLine = startOfLine || breakingWhitespaceRegex.test(text);\n text = text.trim();\n for (const rule of rules) {\n const partial = rule(text);\n if (partial !== null) {\n const token = Object.assign(Object.assign({}, partial), { startOfLine });\n text = text.slice(token.text.length);\n return { text, token };\n }\n }\n throw new Error('Unexpected Token ' + text);\n }\n advance() {\n const next = Lexer.read(this.text);\n return new Lexer(next.text, this.current, this.next, next.token);\n }\n }\n\n /**\n * Throws an error if the provided result is not a {@link RootResult}\n */\n function assertRootResult(result) {\n if (result === undefined) {\n throw new Error('Unexpected undefined');\n }\n if (result.type === 'JsdocTypeKeyValue' || result.type === 'JsdocTypeParameterList' ||\n result.type === 'JsdocTypeProperty' || result.type === 'JsdocTypeReadonlyProperty' ||\n result.type === 'JsdocTypeObjectField' || result.type === 'JsdocTypeJsdocObjectField' ||\n result.type === 'JsdocTypeIndexSignature' || result.type === 'JsdocTypeMappedType') {\n throw new UnexpectedTypeError(result);\n }\n return result;\n }\n function assertPlainKeyValueOrRootResult(result) {\n if (result.type === 'JsdocTypeKeyValue') {\n return assertPlainKeyValueResult(result);\n }\n return assertRootResult(result);\n }\n function assertPlainKeyValueOrNameResult(result) {\n if (result.type === 'JsdocTypeName') {\n return result;\n }\n return assertPlainKeyValueResult(result);\n }\n function assertPlainKeyValueResult(result) {\n if (result.type !== 'JsdocTypeKeyValue') {\n throw new UnexpectedTypeError(result);\n }\n return result;\n }\n function assertNumberOrVariadicNameResult(result) {\n var _a;\n if (result.type === 'JsdocTypeVariadic') {\n if (((_a = result.element) === null || _a === void 0 ? void 0 : _a.type) === 'JsdocTypeName') {\n return result;\n }\n throw new UnexpectedTypeError(result);\n }\n if (result.type !== 'JsdocTypeNumber' && result.type !== 'JsdocTypeName') {\n throw new UnexpectedTypeError(result);\n }\n return result;\n }\n function isSquaredProperty(result) {\n return result.type === 'JsdocTypeIndexSignature' || result.type === 'JsdocTypeMappedType';\n }\n\n // higher precedence = higher importance\n var Precedence;\n (function (Precedence) {\n Precedence[Precedence[\"ALL\"] = 0] = \"ALL\";\n Precedence[Precedence[\"PARAMETER_LIST\"] = 1] = \"PARAMETER_LIST\";\n Precedence[Precedence[\"OBJECT\"] = 2] = \"OBJECT\";\n Precedence[Precedence[\"KEY_VALUE\"] = 3] = \"KEY_VALUE\";\n Precedence[Precedence[\"INDEX_BRACKETS\"] = 4] = \"INDEX_BRACKETS\";\n Precedence[Precedence[\"UNION\"] = 5] = \"UNION\";\n Precedence[Precedence[\"INTERSECTION\"] = 6] = \"INTERSECTION\";\n Precedence[Precedence[\"PREFIX\"] = 7] = \"PREFIX\";\n Precedence[Precedence[\"INFIX\"] = 8] = \"INFIX\";\n Precedence[Precedence[\"TUPLE\"] = 9] = \"TUPLE\";\n Precedence[Precedence[\"SYMBOL\"] = 10] = \"SYMBOL\";\n Precedence[Precedence[\"OPTIONAL\"] = 11] = \"OPTIONAL\";\n Precedence[Precedence[\"NULLABLE\"] = 12] = \"NULLABLE\";\n Precedence[Precedence[\"KEY_OF_TYPE_OF\"] = 13] = \"KEY_OF_TYPE_OF\";\n Precedence[Precedence[\"FUNCTION\"] = 14] = \"FUNCTION\";\n Precedence[Precedence[\"ARROW\"] = 15] = \"ARROW\";\n Precedence[Precedence[\"ARRAY_BRACKETS\"] = 16] = \"ARRAY_BRACKETS\";\n Precedence[Precedence[\"GENERIC\"] = 17] = \"GENERIC\";\n Precedence[Precedence[\"NAME_PATH\"] = 18] = \"NAME_PATH\";\n Precedence[Precedence[\"PARENTHESIS\"] = 19] = \"PARENTHESIS\";\n Precedence[Precedence[\"SPECIAL_TYPES\"] = 20] = \"SPECIAL_TYPES\";\n })(Precedence || (Precedence = {}));\n\n class Parser {\n constructor(grammar, textOrLexer, baseParser) {\n this.grammar = grammar;\n if (typeof textOrLexer === 'string') {\n this._lexer = Lexer.create(textOrLexer);\n }\n else {\n this._lexer = textOrLexer;\n }\n this.baseParser = baseParser;\n }\n get lexer() {\n return this._lexer;\n }\n /**\n * Parses a given string and throws an error if the parse ended before the end of the string.\n */\n parse() {\n const result = this.parseType(Precedence.ALL);\n if (this.lexer.current.type !== 'EOF') {\n throw new EarlyEndOfParseError(this.lexer.current);\n }\n return result;\n }\n /**\n * Parses with the current lexer and asserts that the result is a {@link RootResult}.\n */\n parseType(precedence) {\n return assertRootResult(this.parseIntermediateType(precedence));\n }\n /**\n * The main parsing function. First it tries to parse the current state in the prefix step, and then it continues\n * to parse the state in the infix step.\n */\n parseIntermediateType(precedence) {\n const result = this.tryParslets(null, precedence);\n if (result === null) {\n throw new NoParsletFoundError(this.lexer.current);\n }\n return this.parseInfixIntermediateType(result, precedence);\n }\n /**\n * In the infix parsing step the parser continues to parse the current state with all parslets until none returns\n * a result.\n */\n parseInfixIntermediateType(left, precedence) {\n let result = this.tryParslets(left, precedence);\n while (result !== null) {\n left = result;\n result = this.tryParslets(left, precedence);\n }\n return left;\n }\n /**\n * Tries to parse the current state with all parslets in the grammar and returns the first non null result.\n */\n tryParslets(left, precedence) {\n for (const parslet of this.grammar) {\n const result = parslet(this, precedence, left);\n if (result !== null) {\n return result;\n }\n }\n return null;\n }\n /**\n * If the given type equals the current type of the {@link Lexer} advance the lexer. Return true if the lexer was\n * advanced.\n */\n consume(types) {\n if (!Array.isArray(types)) {\n types = [types];\n }\n if (types.includes(this.lexer.current.type)) {\n this._lexer = this.lexer.advance();\n return true;\n }\n else {\n return false;\n }\n }\n acceptLexerState(parser) {\n this._lexer = parser.lexer;\n }\n }\n\n function isQuestionMarkUnknownType(next) {\n return next === 'EOF' || next === '|' || next === ',' || next === ')' || next === '>';\n }\n\n const nullableParslet = (parser, precedence, left) => {\n const type = parser.lexer.current.type;\n const next = parser.lexer.next.type;\n const accept = ((left == null) && type === '?' && !isQuestionMarkUnknownType(next)) ||\n ((left != null) && type === '?');\n if (!accept) {\n return null;\n }\n parser.consume('?');\n if (left == null) {\n return {\n type: 'JsdocTypeNullable',\n element: parser.parseType(Precedence.NULLABLE),\n meta: {\n position: 'prefix'\n }\n };\n }\n else {\n return {\n type: 'JsdocTypeNullable',\n element: assertRootResult(left),\n meta: {\n position: 'suffix'\n }\n };\n }\n };\n\n function composeParslet(options) {\n const parslet = (parser, curPrecedence, left) => {\n const type = parser.lexer.current.type;\n const next = parser.lexer.next.type;\n if (left === null) {\n if ('parsePrefix' in options) {\n if (options.accept(type, next)) {\n return options.parsePrefix(parser);\n }\n }\n }\n else {\n if ('parseInfix' in options) {\n if (options.precedence > curPrecedence && options.accept(type, next)) {\n return options.parseInfix(parser, left);\n }\n }\n }\n return null;\n };\n // for debugging\n Object.defineProperty(parslet, 'name', {\n value: options.name\n });\n return parslet;\n }\n\n const optionalParslet = composeParslet({\n name: 'optionalParslet',\n accept: type => type === '=',\n precedence: Precedence.OPTIONAL,\n parsePrefix: parser => {\n parser.consume('=');\n return {\n type: 'JsdocTypeOptional',\n element: parser.parseType(Precedence.OPTIONAL),\n meta: {\n position: 'prefix'\n }\n };\n },\n parseInfix: (parser, left) => {\n parser.consume('=');\n return {\n type: 'JsdocTypeOptional',\n element: assertRootResult(left),\n meta: {\n position: 'suffix'\n }\n };\n }\n });\n\n const numberParslet = composeParslet({\n name: 'numberParslet',\n accept: type => type === 'Number',\n parsePrefix: parser => {\n const value = parseFloat(parser.lexer.current.text);\n parser.consume('Number');\n return {\n type: 'JsdocTypeNumber',\n value\n };\n }\n });\n\n const parenthesisParslet = composeParslet({\n name: 'parenthesisParslet',\n accept: type => type === '(',\n parsePrefix: parser => {\n parser.consume('(');\n if (parser.consume(')')) {\n return {\n type: 'JsdocTypeParameterList',\n elements: []\n };\n }\n const result = parser.parseIntermediateType(Precedence.ALL);\n if (!parser.consume(')')) {\n throw new Error('Unterminated parenthesis');\n }\n if (result.type === 'JsdocTypeParameterList') {\n return result;\n }\n else if (result.type === 'JsdocTypeKeyValue') {\n return {\n type: 'JsdocTypeParameterList',\n elements: [result]\n };\n }\n return {\n type: 'JsdocTypeParenthesis',\n element: assertRootResult(result)\n };\n }\n });\n\n const specialTypesParslet = composeParslet({\n name: 'specialTypesParslet',\n accept: (type, next) => (type === '?' && isQuestionMarkUnknownType(next)) ||\n type === 'null' || type === 'undefined' || type === '*',\n parsePrefix: parser => {\n if (parser.consume('null')) {\n return {\n type: 'JsdocTypeNull'\n };\n }\n if (parser.consume('undefined')) {\n return {\n type: 'JsdocTypeUndefined'\n };\n }\n if (parser.consume('*')) {\n return {\n type: 'JsdocTypeAny'\n };\n }\n if (parser.consume('?')) {\n return {\n type: 'JsdocTypeUnknown'\n };\n }\n throw new Error('Unacceptable token: ' + parser.lexer.current.text);\n }\n });\n\n const notNullableParslet = composeParslet({\n name: 'notNullableParslet',\n accept: type => type === '!',\n precedence: Precedence.NULLABLE,\n parsePrefix: parser => {\n parser.consume('!');\n return {\n type: 'JsdocTypeNotNullable',\n element: parser.parseType(Precedence.NULLABLE),\n meta: {\n position: 'prefix'\n }\n };\n },\n parseInfix: (parser, left) => {\n parser.consume('!');\n return {\n type: 'JsdocTypeNotNullable',\n element: assertRootResult(left),\n meta: {\n position: 'suffix'\n }\n };\n }\n });\n\n function createParameterListParslet({ allowTrailingComma }) {\n return composeParslet({\n name: 'parameterListParslet',\n accept: type => type === ',',\n precedence: Precedence.PARAMETER_LIST,\n parseInfix: (parser, left) => {\n const elements = [\n assertPlainKeyValueOrRootResult(left)\n ];\n parser.consume(',');\n do {\n try {\n const next = parser.parseIntermediateType(Precedence.PARAMETER_LIST);\n elements.push(assertPlainKeyValueOrRootResult(next));\n }\n catch (e) {\n if (allowTrailingComma && e instanceof NoParsletFoundError) {\n break;\n }\n else {\n throw e;\n }\n }\n } while (parser.consume(','));\n if (elements.length > 0 && elements.slice(0, -1).some(e => e.type === 'JsdocTypeVariadic')) {\n throw new Error('Only the last parameter may be a rest parameter');\n }\n return {\n type: 'JsdocTypeParameterList',\n elements\n };\n }\n });\n }\n\n const genericParslet = composeParslet({\n name: 'genericParslet',\n accept: (type, next) => type === '<' || (type === '.' && next === '<'),\n precedence: Precedence.GENERIC,\n parseInfix: (parser, left) => {\n const dot = parser.consume('.');\n parser.consume('<');\n const objects = [];\n do {\n objects.push(parser.parseType(Precedence.PARAMETER_LIST));\n } while (parser.consume(','));\n if (!parser.consume('>')) {\n throw new Error('Unterminated generic parameter list');\n }\n return {\n type: 'JsdocTypeGeneric',\n left: assertRootResult(left),\n elements: objects,\n meta: {\n brackets: 'angle',\n dot\n }\n };\n }\n });\n\n const unionParslet = composeParslet({\n name: 'unionParslet',\n accept: type => type === '|',\n precedence: Precedence.UNION,\n parseInfix: (parser, left) => {\n parser.consume('|');\n const elements = [];\n do {\n elements.push(parser.parseType(Precedence.UNION));\n } while (parser.consume('|'));\n return {\n type: 'JsdocTypeUnion',\n elements: [assertRootResult(left), ...elements]\n };\n }\n });\n\n const baseGrammar = [\n nullableParslet,\n optionalParslet,\n numberParslet,\n parenthesisParslet,\n specialTypesParslet,\n notNullableParslet,\n createParameterListParslet({\n allowTrailingComma: true\n }),\n genericParslet,\n unionParslet,\n optionalParslet\n ];\n\n function createNamePathParslet({ allowSquareBracketsOnAnyType, allowJsdocNamePaths, pathGrammar }) {\n return function namePathParslet(parser, precedence, left) {\n if ((left == null) || precedence >= Precedence.NAME_PATH) {\n return null;\n }\n const type = parser.lexer.current.type;\n const next = parser.lexer.next.type;\n const accept = (type === '.' && next !== '<') ||\n (type === '[' && (allowSquareBracketsOnAnyType || left.type === 'JsdocTypeName')) ||\n (allowJsdocNamePaths && (type === '~' || type === '#'));\n if (!accept) {\n return null;\n }\n let pathType;\n let brackets = false;\n if (parser.consume('.')) {\n pathType = 'property';\n }\n else if (parser.consume('[')) {\n pathType = 'property-brackets';\n brackets = true;\n }\n else if (parser.consume('~')) {\n pathType = 'inner';\n }\n else {\n parser.consume('#');\n pathType = 'instance';\n }\n const pathParser = pathGrammar !== null\n ? new Parser(pathGrammar, parser.lexer, parser)\n : parser;\n const parsed = pathParser.parseIntermediateType(Precedence.NAME_PATH);\n parser.acceptLexerState(pathParser);\n let right;\n switch (parsed.type) {\n case 'JsdocTypeName':\n right = {\n type: 'JsdocTypeProperty',\n value: parsed.value,\n meta: {\n quote: undefined\n }\n };\n break;\n case 'JsdocTypeNumber':\n right = {\n type: 'JsdocTypeProperty',\n value: parsed.value.toString(10),\n meta: {\n quote: undefined\n }\n };\n break;\n case 'JsdocTypeStringValue':\n right = {\n type: 'JsdocTypeProperty',\n value: parsed.value,\n meta: {\n quote: parsed.meta.quote\n }\n };\n break;\n case 'JsdocTypeSpecialNamePath':\n if (parsed.specialType === 'event') {\n right = parsed;\n }\n else {\n throw new UnexpectedTypeError(parsed, 'Type \\'JsdocTypeSpecialNamePath\\' is only allowed with specialType \\'event\\'');\n }\n break;\n default:\n throw new UnexpectedTypeError(parsed, 'Expecting \\'JsdocTypeName\\', \\'JsdocTypeNumber\\', \\'JsdocStringValue\\' or \\'JsdocTypeSpecialNamePath\\'');\n }\n if (brackets && !parser.consume(']')) {\n const token = parser.lexer.current;\n throw new Error(`Unterminated square brackets. Next token is '${token.type}' ` +\n `with text '${token.text}'`);\n }\n return {\n type: 'JsdocTypeNamePath',\n left: assertRootResult(left),\n right,\n pathType\n };\n };\n }\n\n function createNameParslet({ allowedAdditionalTokens }) {\n return composeParslet({\n name: 'nameParslet',\n accept: type => type === 'Identifier' || type === 'this' || type === 'new' || allowedAdditionalTokens.includes(type),\n parsePrefix: parser => {\n const { type, text } = parser.lexer.current;\n parser.consume(type);\n return {\n type: 'JsdocTypeName',\n value: text\n };\n }\n });\n }\n\n const stringValueParslet = composeParslet({\n name: 'stringValueParslet',\n accept: type => type === 'StringValue',\n parsePrefix: parser => {\n const text = parser.lexer.current.text;\n parser.consume('StringValue');\n return {\n type: 'JsdocTypeStringValue',\n value: text.slice(1, -1),\n meta: {\n quote: text[0] === '\\'' ? 'single' : 'double'\n }\n };\n }\n });\n\n function createSpecialNamePathParslet({ pathGrammar, allowedTypes }) {\n return composeParslet({\n name: 'specialNamePathParslet',\n accept: type => allowedTypes.includes(type),\n parsePrefix: parser => {\n const type = parser.lexer.current.type;\n parser.consume(type);\n if (!parser.consume(':')) {\n return {\n type: 'JsdocTypeName',\n value: type\n };\n }\n let result;\n let token = parser.lexer.current;\n if (parser.consume('StringValue')) {\n result = {\n type: 'JsdocTypeSpecialNamePath',\n value: token.text.slice(1, -1),\n specialType: type,\n meta: {\n quote: token.text[0] === '\\'' ? 'single' : 'double'\n }\n };\n }\n else {\n let value = '';\n const allowed = ['Identifier', '@', '/'];\n while (allowed.some(type => parser.consume(type))) {\n value += token.text;\n token = parser.lexer.current;\n }\n result = {\n type: 'JsdocTypeSpecialNamePath',\n value,\n specialType: type,\n meta: {\n quote: undefined\n }\n };\n }\n const moduleParser = new Parser(pathGrammar, parser.lexer, parser);\n const moduleResult = moduleParser.parseInfixIntermediateType(result, Precedence.ALL);\n parser.acceptLexerState(moduleParser);\n return assertRootResult(moduleResult);\n }\n });\n }\n\n const basePathGrammar = [\n createNameParslet({\n allowedAdditionalTokens: ['external', 'module']\n }),\n stringValueParslet,\n numberParslet,\n createNamePathParslet({\n allowSquareBracketsOnAnyType: false,\n allowJsdocNamePaths: true,\n pathGrammar: null\n })\n ];\n const pathGrammar = [\n ...basePathGrammar,\n createSpecialNamePathParslet({\n allowedTypes: ['event'],\n pathGrammar: basePathGrammar\n })\n ];\n\n function getParameters(value) {\n let parameters;\n if (value.type === 'JsdocTypeParameterList') {\n parameters = value.elements;\n }\n else if (value.type === 'JsdocTypeParenthesis') {\n parameters = [value.element];\n }\n else {\n throw new UnexpectedTypeError(value);\n }\n return parameters.map(p => assertPlainKeyValueOrRootResult(p));\n }\n function getUnnamedParameters(value) {\n const parameters = getParameters(value);\n if (parameters.some(p => p.type === 'JsdocTypeKeyValue')) {\n throw new Error('No parameter should be named');\n }\n return parameters;\n }\n function createFunctionParslet({ allowNamedParameters, allowNoReturnType, allowWithoutParenthesis, allowNewAsFunctionKeyword }) {\n return composeParslet({\n name: 'functionParslet',\n accept: (type, next) => type === 'function' || (allowNewAsFunctionKeyword && type === 'new' && next === '('),\n parsePrefix: parser => {\n const newKeyword = parser.consume('new');\n parser.consume('function');\n const hasParenthesis = parser.lexer.current.type === '(';\n if (!hasParenthesis) {\n if (!allowWithoutParenthesis) {\n throw new Error('function is missing parameter list');\n }\n return {\n type: 'JsdocTypeName',\n value: 'function'\n };\n }\n let result = {\n type: 'JsdocTypeFunction',\n parameters: [],\n arrow: false,\n constructor: newKeyword,\n parenthesis: hasParenthesis\n };\n const value = parser.parseIntermediateType(Precedence.FUNCTION);\n if (allowNamedParameters === undefined) {\n result.parameters = getUnnamedParameters(value);\n }\n else if (newKeyword && value.type === 'JsdocTypeFunction' && value.arrow) {\n result = value;\n result.constructor = true;\n return result;\n }\n else {\n result.parameters = getParameters(value);\n for (const p of result.parameters) {\n if (p.type === 'JsdocTypeKeyValue' && (!allowNamedParameters.includes(p.key))) {\n throw new Error(`only allowed named parameters are ${allowNamedParameters.join(', ')} but got ${p.type}`);\n }\n }\n }\n if (parser.consume(':')) {\n result.returnType = parser.parseType(Precedence.PREFIX);\n }\n else {\n if (!allowNoReturnType) {\n throw new Error('function is missing return type');\n }\n }\n return result;\n }\n });\n }\n\n function createVariadicParslet({ allowPostfix, allowEnclosingBrackets }) {\n return composeParslet({\n name: 'variadicParslet',\n accept: type => type === '...',\n precedence: Precedence.PREFIX,\n parsePrefix: parser => {\n parser.consume('...');\n const brackets = allowEnclosingBrackets && parser.consume('[');\n try {\n const element = parser.parseType(Precedence.PREFIX);\n if (brackets && !parser.consume(']')) {\n throw new Error('Unterminated variadic type. Missing \\']\\'');\n }\n return {\n type: 'JsdocTypeVariadic',\n element: assertRootResult(element),\n meta: {\n position: 'prefix',\n squareBrackets: brackets\n }\n };\n }\n catch (e) {\n if (e instanceof NoParsletFoundError) {\n if (brackets) {\n throw new Error('Empty square brackets for variadic are not allowed.');\n }\n return {\n type: 'JsdocTypeVariadic',\n meta: {\n position: undefined,\n squareBrackets: false\n }\n };\n }\n else {\n throw e;\n }\n }\n },\n parseInfix: allowPostfix\n ? (parser, left) => {\n parser.consume('...');\n return {\n type: 'JsdocTypeVariadic',\n element: assertRootResult(left),\n meta: {\n position: 'suffix',\n squareBrackets: false\n }\n };\n }\n : undefined\n });\n }\n\n const symbolParslet = composeParslet({\n name: 'symbolParslet',\n accept: type => type === '(',\n precedence: Precedence.SYMBOL,\n parseInfix: (parser, left) => {\n if (left.type !== 'JsdocTypeName') {\n throw new Error('Symbol expects a name on the left side. (Reacting on \\'(\\')');\n }\n parser.consume('(');\n const result = {\n type: 'JsdocTypeSymbol',\n value: left.value\n };\n if (!parser.consume(')')) {\n const next = parser.parseIntermediateType(Precedence.SYMBOL);\n result.element = assertNumberOrVariadicNameResult(next);\n if (!parser.consume(')')) {\n throw new Error('Symbol does not end after value');\n }\n }\n return result;\n }\n });\n\n const arrayBracketsParslet = composeParslet({\n name: 'arrayBracketsParslet',\n precedence: Precedence.ARRAY_BRACKETS,\n accept: (type, next) => type === '[' && next === ']',\n parseInfix: (parser, left) => {\n parser.consume('[');\n parser.consume(']');\n return {\n type: 'JsdocTypeGeneric',\n left: {\n type: 'JsdocTypeName',\n value: 'Array'\n },\n elements: [\n assertRootResult(left)\n ],\n meta: {\n brackets: 'square',\n dot: false\n }\n };\n }\n });\n\n function createObjectParslet({ objectFieldGrammar, allowKeyTypes }) {\n return composeParslet({\n name: 'objectParslet',\n accept: type => type === '{',\n parsePrefix: parser => {\n parser.consume('{');\n const result = {\n type: 'JsdocTypeObject',\n meta: {\n separator: 'comma'\n },\n elements: []\n };\n if (!parser.consume('}')) {\n let separator;\n const fieldParser = new Parser(objectFieldGrammar, parser.lexer, parser);\n while (true) {\n fieldParser.acceptLexerState(parser);\n let field = fieldParser.parseIntermediateType(Precedence.OBJECT);\n parser.acceptLexerState(fieldParser);\n if (field === undefined && allowKeyTypes) {\n field = parser.parseIntermediateType(Precedence.OBJECT);\n }\n let optional = false;\n if (field.type === 'JsdocTypeNullable') {\n optional = true;\n field = field.element;\n }\n if (field.type === 'JsdocTypeNumber' || field.type === 'JsdocTypeName' || field.type === 'JsdocTypeStringValue') {\n let quote;\n if (field.type === 'JsdocTypeStringValue') {\n quote = field.meta.quote;\n }\n result.elements.push({\n type: 'JsdocTypeObjectField',\n key: field.value.toString(),\n right: undefined,\n optional,\n readonly: false,\n meta: {\n quote\n }\n });\n }\n else if (field.type === 'JsdocTypeObjectField' || field.type === 'JsdocTypeJsdocObjectField') {\n result.elements.push(field);\n }\n else {\n throw new UnexpectedTypeError(field);\n }\n if (parser.lexer.current.startOfLine) {\n separator = 'linebreak';\n }\n else if (parser.consume(',')) {\n separator = 'comma';\n }\n else if (parser.consume(';')) {\n separator = 'semicolon';\n }\n else {\n break;\n }\n const type = parser.lexer.current.type;\n if (type === '}') {\n break;\n }\n }\n result.meta.separator = separator !== null && separator !== void 0 ? separator : 'comma'; // TODO: use undefined here\n if (!parser.consume('}')) {\n throw new Error('Unterminated record type. Missing \\'}\\'');\n }\n }\n return result;\n }\n });\n }\n\n function createObjectFieldParslet({ allowSquaredProperties, allowKeyTypes, allowReadonly, allowOptional }) {\n return composeParslet({\n name: 'objectFieldParslet',\n precedence: Precedence.KEY_VALUE,\n accept: type => type === ':',\n parseInfix: (parser, left) => {\n var _a;\n let optional = false;\n let readonlyProperty = false;\n if (allowOptional && left.type === 'JsdocTypeNullable') {\n optional = true;\n left = left.element;\n }\n if (allowReadonly && left.type === 'JsdocTypeReadonlyProperty') {\n readonlyProperty = true;\n left = left.element;\n }\n // object parslet uses a special grammar and for the value we want to switch back to the parent\n const parentParser = (_a = parser.baseParser) !== null && _a !== void 0 ? _a : parser;\n parentParser.acceptLexerState(parser);\n if (left.type === 'JsdocTypeNumber' || left.type === 'JsdocTypeName' || left.type === 'JsdocTypeStringValue' ||\n isSquaredProperty(left)) {\n if (isSquaredProperty(left) && !allowSquaredProperties) {\n throw new UnexpectedTypeError(left);\n }\n parentParser.consume(':');\n let quote;\n if (left.type === 'JsdocTypeStringValue') {\n quote = left.meta.quote;\n }\n const right = parentParser.parseType(Precedence.KEY_VALUE);\n parser.acceptLexerState(parentParser);\n return {\n type: 'JsdocTypeObjectField',\n key: isSquaredProperty(left) ? left : left.value.toString(),\n right,\n optional,\n readonly: readonlyProperty,\n meta: {\n quote\n }\n };\n }\n else {\n if (!allowKeyTypes) {\n throw new UnexpectedTypeError(left);\n }\n parentParser.consume(':');\n const right = parentParser.parseType(Precedence.KEY_VALUE);\n parser.acceptLexerState(parentParser);\n return {\n type: 'JsdocTypeJsdocObjectField',\n left: assertRootResult(left),\n right\n };\n }\n }\n });\n }\n\n function createKeyValueParslet({ allowOptional, allowVariadic }) {\n return composeParslet({\n name: 'keyValueParslet',\n precedence: Precedence.KEY_VALUE,\n accept: type => type === ':',\n parseInfix: (parser, left) => {\n let optional = false;\n let variadic = false;\n if (allowOptional && left.type === 'JsdocTypeNullable') {\n optional = true;\n left = left.element;\n }\n if (allowVariadic && left.type === 'JsdocTypeVariadic' && left.element !== undefined) {\n variadic = true;\n left = left.element;\n }\n if (left.type !== 'JsdocTypeName') {\n throw new UnexpectedTypeError(left);\n }\n parser.consume(':');\n const right = parser.parseType(Precedence.KEY_VALUE);\n return {\n type: 'JsdocTypeKeyValue',\n key: left.value,\n right,\n optional,\n variadic\n };\n }\n });\n }\n\n const jsdocBaseGrammar = [\n ...baseGrammar,\n createFunctionParslet({\n allowWithoutParenthesis: true,\n allowNamedParameters: ['this', 'new'],\n allowNoReturnType: true,\n allowNewAsFunctionKeyword: false\n }),\n stringValueParslet,\n createSpecialNamePathParslet({\n allowedTypes: ['module', 'external', 'event'],\n pathGrammar\n }),\n createVariadicParslet({\n allowEnclosingBrackets: true,\n allowPostfix: true\n }),\n createNameParslet({\n allowedAdditionalTokens: ['keyof']\n }),\n symbolParslet,\n arrayBracketsParslet,\n createNamePathParslet({\n allowSquareBracketsOnAnyType: false,\n allowJsdocNamePaths: true,\n pathGrammar\n })\n ];\n const jsdocGrammar = [\n ...jsdocBaseGrammar,\n createObjectParslet({\n // jsdoc syntax allows full types as keys, so we need to pull in the full grammar here\n // we leave out the object type deliberately\n objectFieldGrammar: [\n createNameParslet({\n allowedAdditionalTokens: ['module', 'in']\n }),\n createObjectFieldParslet({\n allowSquaredProperties: false,\n allowKeyTypes: true,\n allowOptional: false,\n allowReadonly: false\n }),\n ...jsdocBaseGrammar\n ],\n allowKeyTypes: true\n }),\n createKeyValueParslet({\n allowOptional: true,\n allowVariadic: true\n })\n ];\n\n const typeOfParslet = composeParslet({\n name: 'typeOfParslet',\n accept: type => type === 'typeof',\n parsePrefix: parser => {\n parser.consume('typeof');\n return {\n type: 'JsdocTypeTypeof',\n element: assertRootResult(parser.parseType(Precedence.KEY_OF_TYPE_OF))\n };\n }\n });\n\n const objectFieldGrammar$1 = [\n createNameParslet({\n allowedAdditionalTokens: ['module', 'keyof', 'event', 'external', 'in']\n }),\n nullableParslet,\n optionalParslet,\n stringValueParslet,\n numberParslet,\n createObjectFieldParslet({\n allowSquaredProperties: false,\n allowKeyTypes: false,\n allowOptional: false,\n allowReadonly: false\n })\n ];\n const closureGrammar = [\n ...baseGrammar,\n createObjectParslet({\n allowKeyTypes: false,\n objectFieldGrammar: objectFieldGrammar$1\n }),\n createNameParslet({\n allowedAdditionalTokens: ['event', 'external', 'in']\n }),\n typeOfParslet,\n createFunctionParslet({\n allowWithoutParenthesis: false,\n allowNamedParameters: ['this', 'new'],\n allowNoReturnType: true,\n allowNewAsFunctionKeyword: false\n }),\n createVariadicParslet({\n allowEnclosingBrackets: false,\n allowPostfix: false\n }),\n // additional name parslet is needed for some special cases\n createNameParslet({\n allowedAdditionalTokens: ['keyof']\n }),\n createSpecialNamePathParslet({\n allowedTypes: ['module'],\n pathGrammar\n }),\n createNamePathParslet({\n allowSquareBracketsOnAnyType: false,\n allowJsdocNamePaths: true,\n pathGrammar\n }),\n createKeyValueParslet({\n allowOptional: false,\n allowVariadic: false\n }),\n symbolParslet\n ];\n\n const assertsParslet = composeParslet({\n name: 'assertsParslet',\n accept: type => type === 'asserts',\n parsePrefix: (parser) => {\n parser.consume('asserts');\n const left = parser.parseIntermediateType(Precedence.SYMBOL);\n if (left.type !== 'JsdocTypeName') {\n throw new UnexpectedTypeError(left, 'A typescript asserts always has to have a name on the left side.');\n }\n parser.consume('is');\n return {\n type: 'JsdocTypeAsserts',\n left,\n right: assertRootResult(parser.parseIntermediateType(Precedence.INFIX))\n };\n }\n });\n\n function createTupleParslet({ allowQuestionMark }) {\n return composeParslet({\n name: 'tupleParslet',\n accept: type => type === '[',\n parsePrefix: parser => {\n parser.consume('[');\n const result = {\n type: 'JsdocTypeTuple',\n elements: []\n };\n if (parser.consume(']')) {\n return result;\n }\n const typeList = parser.parseIntermediateType(Precedence.ALL);\n if (typeList.type === 'JsdocTypeParameterList') {\n if (typeList.elements[0].type === 'JsdocTypeKeyValue') {\n result.elements = typeList.elements.map(assertPlainKeyValueResult);\n }\n else {\n result.elements = typeList.elements.map(assertRootResult);\n }\n }\n else {\n if (typeList.type === 'JsdocTypeKeyValue') {\n result.elements = [assertPlainKeyValueResult(typeList)];\n }\n else {\n result.elements = [assertRootResult(typeList)];\n }\n }\n if (!parser.consume(']')) {\n throw new Error('Unterminated \\'[\\'');\n }\n if (!allowQuestionMark && result.elements.some((e) => e.type === 'JsdocTypeUnknown')) {\n throw new Error('Question mark in tuple not allowed');\n }\n return result;\n }\n });\n }\n\n const keyOfParslet = composeParslet({\n name: 'keyOfParslet',\n accept: type => type === 'keyof',\n parsePrefix: parser => {\n parser.consume('keyof');\n return {\n type: 'JsdocTypeKeyof',\n element: assertRootResult(parser.parseType(Precedence.KEY_OF_TYPE_OF))\n };\n }\n });\n\n const importParslet = composeParslet({\n name: 'importParslet',\n accept: type => type === 'import',\n parsePrefix: parser => {\n parser.consume('import');\n if (!parser.consume('(')) {\n throw new Error('Missing parenthesis after import keyword');\n }\n const path = parser.parseType(Precedence.PREFIX);\n if (path.type !== 'JsdocTypeStringValue') {\n throw new Error('Only string values are allowed as paths for imports');\n }\n if (!parser.consume(')')) {\n throw new Error('Missing closing parenthesis after import keyword');\n }\n return {\n type: 'JsdocTypeImport',\n element: path\n };\n }\n });\n\n const readonlyPropertyParslet = composeParslet({\n name: 'readonlyPropertyParslet',\n accept: type => type === 'readonly',\n parsePrefix: parser => {\n parser.consume('readonly');\n return {\n type: 'JsdocTypeReadonlyProperty',\n element: parser.parseType(Precedence.KEY_VALUE)\n };\n }\n });\n\n const arrowFunctionParslet = composeParslet({\n name: 'arrowFunctionParslet',\n precedence: Precedence.ARROW,\n accept: type => type === '=>',\n parseInfix: (parser, left) => {\n parser.consume('=>');\n return {\n type: 'JsdocTypeFunction',\n parameters: getParameters(left).map(assertPlainKeyValueOrNameResult),\n arrow: true,\n constructor: false,\n parenthesis: true,\n returnType: parser.parseType(Precedence.OBJECT)\n };\n }\n });\n\n const intersectionParslet = composeParslet({\n name: 'intersectionParslet',\n accept: type => type === '&',\n precedence: Precedence.INTERSECTION,\n parseInfix: (parser, left) => {\n parser.consume('&');\n const elements = [];\n do {\n elements.push(parser.parseType(Precedence.INTERSECTION));\n } while (parser.consume('&'));\n return {\n type: 'JsdocTypeIntersection',\n elements: [assertRootResult(left), ...elements]\n };\n }\n });\n\n const predicateParslet = composeParslet({\n name: 'predicateParslet',\n precedence: Precedence.INFIX,\n accept: type => type === 'is',\n parseInfix: (parser, left) => {\n if (left.type !== 'JsdocTypeName') {\n throw new UnexpectedTypeError(left, 'A typescript predicate always has to have a name on the left side.');\n }\n parser.consume('is');\n return {\n type: 'JsdocTypePredicate',\n left,\n right: assertRootResult(parser.parseIntermediateType(Precedence.INFIX))\n };\n }\n });\n\n const objectSquaredPropertyParslet = composeParslet({\n name: 'objectSquareBracketPropertyParslet',\n accept: type => type === '[',\n parsePrefix: parser => {\n if (parser.baseParser === undefined) {\n throw new Error('Only allowed inside object grammar');\n }\n parser.consume('[');\n const key = parser.lexer.current.text;\n parser.consume('Identifier');\n let result;\n if (parser.consume(':')) {\n const parentParser = parser.baseParser;\n parentParser.acceptLexerState(parser);\n result = {\n type: 'JsdocTypeIndexSignature',\n key,\n right: parentParser.parseType(Precedence.INDEX_BRACKETS)\n };\n parser.acceptLexerState(parentParser);\n }\n else if (parser.consume('in')) {\n const parentParser = parser.baseParser;\n parentParser.acceptLexerState(parser);\n result = {\n type: 'JsdocTypeMappedType',\n key,\n right: parentParser.parseType(Precedence.ARRAY_BRACKETS)\n };\n parser.acceptLexerState(parentParser);\n }\n else {\n throw new Error('Missing \\':\\' or \\'in\\' inside square bracketed property.');\n }\n if (!parser.consume(']')) {\n throw new Error('Unterminated square brackets');\n }\n return result;\n }\n });\n\n const objectFieldGrammar = [\n readonlyPropertyParslet,\n createNameParslet({\n allowedAdditionalTokens: ['module', 'event', 'keyof', 'event', 'external', 'in']\n }),\n nullableParslet,\n optionalParslet,\n stringValueParslet,\n numberParslet,\n createObjectFieldParslet({\n allowSquaredProperties: true,\n allowKeyTypes: false,\n allowOptional: true,\n allowReadonly: true\n }),\n objectSquaredPropertyParslet\n ];\n const typescriptGrammar = [\n ...baseGrammar,\n createObjectParslet({\n allowKeyTypes: false,\n objectFieldGrammar\n }),\n typeOfParslet,\n keyOfParslet,\n importParslet,\n stringValueParslet,\n createFunctionParslet({\n allowWithoutParenthesis: true,\n allowNoReturnType: false,\n allowNamedParameters: ['this', 'new', 'args'],\n allowNewAsFunctionKeyword: true\n }),\n createTupleParslet({\n allowQuestionMark: false\n }),\n createVariadicParslet({\n allowEnclosingBrackets: false,\n allowPostfix: false\n }),\n assertsParslet,\n createNameParslet({\n allowedAdditionalTokens: ['event', 'external', 'in']\n }),\n createSpecialNamePathParslet({\n allowedTypes: ['module'],\n pathGrammar\n }),\n arrayBracketsParslet,\n arrowFunctionParslet,\n createNamePathParslet({\n allowSquareBracketsOnAnyType: true,\n allowJsdocNamePaths: false,\n pathGrammar\n }),\n intersectionParslet,\n predicateParslet,\n createKeyValueParslet({\n allowVariadic: true,\n allowOptional: true\n })\n ];\n\n /**\n * This function parses the given expression in the given mode and produces a {@link RootResult}.\n * @param expression\n * @param mode\n */\n function parse(expression, mode) {\n switch (mode) {\n case 'closure':\n return (new Parser(closureGrammar, expression)).parse();\n case 'jsdoc':\n return (new Parser(jsdocGrammar, expression)).parse();\n case 'typescript':\n return (new Parser(typescriptGrammar, expression)).parse();\n }\n }\n /**\n * This function tries to parse the given expression in multiple modes and returns the first successful\n * {@link RootResult}. By default it tries `'typescript'`, `'closure'` and `'jsdoc'` in this order. If\n * no mode was successful it throws the error that was produced by the last parsing attempt.\n * @param expression\n * @param modes\n */\n function tryParse(expression, modes = ['typescript', 'closure', 'jsdoc']) {\n let error;\n for (const mode of modes) {\n try {\n return parse(expression, mode);\n }\n catch (e) {\n error = e;\n }\n }\n throw error;\n }\n\n function transform(rules, parseResult) {\n const rule = rules[parseResult.type];\n if (rule === undefined) {\n throw new Error(`In this set of transform rules exists no rule for type ${parseResult.type}.`);\n }\n return rule(parseResult, aParseResult => transform(rules, aParseResult));\n }\n function notAvailableTransform(parseResult) {\n throw new Error('This transform is not available. Are you trying the correct parsing mode?');\n }\n function extractSpecialParams(source) {\n const result = {\n params: []\n };\n for (const param of source.parameters) {\n if (param.type === 'JsdocTypeKeyValue') {\n if (param.key === 'this') {\n result.this = param.right;\n }\n else if (param.key === 'new') {\n result.new = param.right;\n }\n else {\n result.params.push(param);\n }\n }\n else {\n result.params.push(param);\n }\n }\n return result;\n }\n\n function applyPosition(position, target, value) {\n return position === 'prefix' ? value + target : target + value;\n }\n function quote(value, quote) {\n switch (quote) {\n case 'double':\n return `\"${value}\"`;\n case 'single':\n return `'${value}'`;\n case undefined:\n return value;\n }\n }\n function stringifyRules() {\n return {\n JsdocTypeParenthesis: (result, transform) => `(${result.element !== undefined ? transform(result.element) : ''})`,\n JsdocTypeKeyof: (result, transform) => `keyof ${transform(result.element)}`,\n JsdocTypeFunction: (result, transform) => {\n if (!result.arrow) {\n let stringified = result.constructor ? 'new' : 'function';\n if (!result.parenthesis) {\n return stringified;\n }\n stringified += `(${result.parameters.map(transform).join(', ')})`;\n if (result.returnType !== undefined) {\n stringified += `: ${transform(result.returnType)}`;\n }\n return stringified;\n }\n else {\n if (result.returnType === undefined) {\n throw new Error('Arrow function needs a return type.');\n }\n let stringified = `(${result.parameters.map(transform).join(', ')}) => ${transform(result.returnType)}`;\n if (result.constructor) {\n stringified = 'new ' + stringified;\n }\n return stringified;\n }\n },\n JsdocTypeName: result => result.value,\n JsdocTypeTuple: (result, transform) => `[${result.elements.map(transform).join(', ')}]`,\n JsdocTypeVariadic: (result, transform) => result.meta.position === undefined\n ? '...'\n : applyPosition(result.meta.position, transform(result.element), '...'),\n JsdocTypeNamePath: (result, transform) => {\n const left = transform(result.left);\n const right = transform(result.right);\n switch (result.pathType) {\n case 'inner':\n return `${left}~${right}`;\n case 'instance':\n return `${left}#${right}`;\n case 'property':\n return `${left}.${right}`;\n case 'property-brackets':\n return `${left}[${right}]`;\n }\n },\n JsdocTypeStringValue: result => quote(result.value, result.meta.quote),\n JsdocTypeAny: () => '*',\n JsdocTypeGeneric: (result, transform) => {\n if (result.meta.brackets === 'square') {\n const element = result.elements[0];\n const transformed = transform(element);\n if (element.type === 'JsdocTypeUnion' || element.type === 'JsdocTypeIntersection') {\n return `(${transformed})[]`;\n }\n else {\n return `${transformed}[]`;\n }\n }\n else {\n return `${transform(result.left)}${result.meta.dot ? '.' : ''}<${result.elements.map(transform).join(', ')}>`;\n }\n },\n JsdocTypeImport: (result, transform) => `import(${transform(result.element)})`,\n JsdocTypeObjectField: (result, transform) => {\n let text = '';\n if (result.readonly) {\n text += 'readonly ';\n }\n if (typeof result.key === 'string') {\n text += quote(result.key, result.meta.quote);\n }\n else {\n text += transform(result.key);\n }\n if (result.optional) {\n text += '?';\n }\n if (result.right === undefined) {\n return text;\n }\n else {\n return text + `: ${transform(result.right)}`;\n }\n },\n JsdocTypeJsdocObjectField: (result, transform) => {\n return `${transform(result.left)}: ${transform(result.right)}`;\n },\n JsdocTypeKeyValue: (result, transform) => {\n let text = result.key;\n if (result.optional) {\n text += '?';\n }\n if (result.variadic) {\n text = '...' + text;\n }\n if (result.right === undefined) {\n return text;\n }\n else {\n return text + `: ${transform(result.right)}`;\n }\n },\n JsdocTypeSpecialNamePath: result => `${result.specialType}:${quote(result.value, result.meta.quote)}`,\n JsdocTypeNotNullable: (result, transform) => applyPosition(result.meta.position, transform(result.element), '!'),\n JsdocTypeNull: () => 'null',\n JsdocTypeNullable: (result, transform) => applyPosition(result.meta.position, transform(result.element), '?'),\n JsdocTypeNumber: result => result.value.toString(),\n JsdocTypeObject: (result, transform) => `{${result.elements.map(transform).join((result.meta.separator === 'comma' ? ',' : ';') + ' ')}}`,\n JsdocTypeOptional: (result, transform) => applyPosition(result.meta.position, transform(result.element), '='),\n JsdocTypeSymbol: (result, transform) => `${result.value}(${result.element !== undefined ? transform(result.element) : ''})`,\n JsdocTypeTypeof: (result, transform) => `typeof ${transform(result.element)}`,\n JsdocTypeUndefined: () => 'undefined',\n JsdocTypeUnion: (result, transform) => result.elements.map(transform).join(' | '),\n JsdocTypeUnknown: () => '?',\n JsdocTypeIntersection: (result, transform) => result.elements.map(transform).join(' & '),\n JsdocTypeProperty: result => quote(result.value, result.meta.quote),\n JsdocTypePredicate: (result, transform) => `${transform(result.left)} is ${transform(result.right)}`,\n JsdocTypeIndexSignature: (result, transform) => `[${result.key}: ${transform(result.right)}]`,\n JsdocTypeMappedType: (result, transform) => `[${result.key} in ${transform(result.right)}]`,\n JsdocTypeAsserts: (result, transform) => `asserts ${transform(result.left)} is ${transform(result.right)}`\n };\n }\n const storedStringifyRules = stringifyRules();\n function stringify(result) {\n return transform(storedStringifyRules, result);\n }\n\n const reservedWords = [\n 'null',\n 'true',\n 'false',\n 'break',\n 'case',\n 'catch',\n 'class',\n 'const',\n 'continue',\n 'debugger',\n 'default',\n 'delete',\n 'do',\n 'else',\n 'export',\n 'extends',\n 'finally',\n 'for',\n 'function',\n 'if',\n 'import',\n 'in',\n 'instanceof',\n 'new',\n 'return',\n 'super',\n 'switch',\n 'this',\n 'throw',\n 'try',\n 'typeof',\n 'var',\n 'void',\n 'while',\n 'with',\n 'yield'\n ];\n function makeName(value) {\n const result = {\n type: 'NameExpression',\n name: value\n };\n if (reservedWords.includes(value)) {\n result.reservedWord = true;\n }\n return result;\n }\n const catharsisTransformRules = {\n JsdocTypeOptional: (result, transform) => {\n const transformed = transform(result.element);\n transformed.optional = true;\n return transformed;\n },\n JsdocTypeNullable: (result, transform) => {\n const transformed = transform(result.element);\n transformed.nullable = true;\n return transformed;\n },\n JsdocTypeNotNullable: (result, transform) => {\n const transformed = transform(result.element);\n transformed.nullable = false;\n return transformed;\n },\n JsdocTypeVariadic: (result, transform) => {\n if (result.element === undefined) {\n throw new Error('dots without value are not allowed in catharsis mode');\n }\n const transformed = transform(result.element);\n transformed.repeatable = true;\n return transformed;\n },\n JsdocTypeAny: () => ({\n type: 'AllLiteral'\n }),\n JsdocTypeNull: () => ({\n type: 'NullLiteral'\n }),\n JsdocTypeStringValue: result => makeName(quote(result.value, result.meta.quote)),\n JsdocTypeUndefined: () => ({\n type: 'UndefinedLiteral'\n }),\n JsdocTypeUnknown: () => ({\n type: 'UnknownLiteral'\n }),\n JsdocTypeFunction: (result, transform) => {\n const params = extractSpecialParams(result);\n const transformed = {\n type: 'FunctionType',\n params: params.params.map(transform)\n };\n if (params.this !== undefined) {\n transformed.this = transform(params.this);\n }\n if (params.new !== undefined) {\n transformed.new = transform(params.new);\n }\n if (result.returnType !== undefined) {\n transformed.result = transform(result.returnType);\n }\n return transformed;\n },\n JsdocTypeGeneric: (result, transform) => ({\n type: 'TypeApplication',\n applications: result.elements.map(o => transform(o)),\n expression: transform(result.left)\n }),\n JsdocTypeSpecialNamePath: result => makeName(result.specialType + ':' + quote(result.value, result.meta.quote)),\n JsdocTypeName: result => {\n if (result.value !== 'function') {\n return makeName(result.value);\n }\n else {\n return {\n type: 'FunctionType',\n params: []\n };\n }\n },\n JsdocTypeNumber: result => makeName(result.value.toString()),\n JsdocTypeObject: (result, transform) => {\n const transformed = {\n type: 'RecordType',\n fields: []\n };\n for (const field of result.elements) {\n if (field.type !== 'JsdocTypeObjectField' && field.type !== 'JsdocTypeJsdocObjectField') {\n transformed.fields.push({\n type: 'FieldType',\n key: transform(field),\n value: undefined\n });\n }\n else {\n transformed.fields.push(transform(field));\n }\n }\n return transformed;\n },\n JsdocTypeObjectField: (result, transform) => {\n if (typeof result.key !== 'string') {\n throw new Error('Index signatures and mapped types are not supported');\n }\n return {\n type: 'FieldType',\n key: makeName(quote(result.key, result.meta.quote)),\n value: result.right === undefined ? undefined : transform(result.right)\n };\n },\n JsdocTypeJsdocObjectField: (result, transform) => ({\n type: 'FieldType',\n key: transform(result.left),\n value: transform(result.right)\n }),\n JsdocTypeUnion: (result, transform) => ({\n type: 'TypeUnion',\n elements: result.elements.map(e => transform(e))\n }),\n JsdocTypeKeyValue: (result, transform) => {\n return {\n type: 'FieldType',\n key: makeName(result.key),\n value: result.right === undefined ? undefined : transform(result.right)\n };\n },\n JsdocTypeNamePath: (result, transform) => {\n const leftResult = transform(result.left);\n let rightValue;\n if (result.right.type === 'JsdocTypeSpecialNamePath') {\n rightValue = transform(result.right).name;\n }\n else {\n rightValue = quote(result.right.value, result.right.meta.quote);\n }\n const joiner = result.pathType === 'inner' ? '~' : result.pathType === 'instance' ? '#' : '.';\n return makeName(`${leftResult.name}${joiner}${rightValue}`);\n },\n JsdocTypeSymbol: result => {\n let value = '';\n let element = result.element;\n let trailingDots = false;\n if ((element === null || element === void 0 ? void 0 : element.type) === 'JsdocTypeVariadic') {\n if (element.meta.position === 'prefix') {\n value = '...';\n }\n else {\n trailingDots = true;\n }\n element = element.element;\n }\n if ((element === null || element === void 0 ? void 0 : element.type) === 'JsdocTypeName') {\n value += element.value;\n }\n else if ((element === null || element === void 0 ? void 0 : element.type) === 'JsdocTypeNumber') {\n value += element.value.toString();\n }\n if (trailingDots) {\n value += '...';\n }\n return makeName(`${result.value}(${value})`);\n },\n JsdocTypeParenthesis: (result, transform) => transform(assertRootResult(result.element)),\n JsdocTypeMappedType: notAvailableTransform,\n JsdocTypeIndexSignature: notAvailableTransform,\n JsdocTypeImport: notAvailableTransform,\n JsdocTypeKeyof: notAvailableTransform,\n JsdocTypeTuple: notAvailableTransform,\n JsdocTypeTypeof: notAvailableTransform,\n JsdocTypeIntersection: notAvailableTransform,\n JsdocTypeProperty: notAvailableTransform,\n JsdocTypePredicate: notAvailableTransform,\n JsdocTypeAsserts: notAvailableTransform\n };\n function catharsisTransform(result) {\n return transform(catharsisTransformRules, result);\n }\n\n function getQuoteStyle(quote) {\n switch (quote) {\n case undefined:\n return 'none';\n case 'single':\n return 'single';\n case 'double':\n return 'double';\n }\n }\n function getMemberType(type) {\n switch (type) {\n case 'inner':\n return 'INNER_MEMBER';\n case 'instance':\n return 'INSTANCE_MEMBER';\n case 'property':\n return 'MEMBER';\n case 'property-brackets':\n return 'MEMBER';\n }\n }\n function nestResults(type, results) {\n if (results.length === 2) {\n return {\n type,\n left: results[0],\n right: results[1]\n };\n }\n else {\n return {\n type,\n left: results[0],\n right: nestResults(type, results.slice(1))\n };\n }\n }\n const jtpRules = {\n JsdocTypeOptional: (result, transform) => ({\n type: 'OPTIONAL',\n value: transform(result.element),\n meta: {\n syntax: result.meta.position === 'prefix' ? 'PREFIX_EQUAL_SIGN' : 'SUFFIX_EQUALS_SIGN'\n }\n }),\n JsdocTypeNullable: (result, transform) => ({\n type: 'NULLABLE',\n value: transform(result.element),\n meta: {\n syntax: result.meta.position === 'prefix' ? 'PREFIX_QUESTION_MARK' : 'SUFFIX_QUESTION_MARK'\n }\n }),\n JsdocTypeNotNullable: (result, transform) => ({\n type: 'NOT_NULLABLE',\n value: transform(result.element),\n meta: {\n syntax: result.meta.position === 'prefix' ? 'PREFIX_BANG' : 'SUFFIX_BANG'\n }\n }),\n JsdocTypeVariadic: (result, transform) => {\n const transformed = {\n type: 'VARIADIC',\n meta: {\n syntax: result.meta.position === 'prefix'\n ? 'PREFIX_DOTS'\n : result.meta.position === 'suffix' ? 'SUFFIX_DOTS' : 'ONLY_DOTS'\n }\n };\n if (result.element !== undefined) {\n transformed.value = transform(result.element);\n }\n return transformed;\n },\n JsdocTypeName: result => ({\n type: 'NAME',\n name: result.value\n }),\n JsdocTypeTypeof: (result, transform) => ({\n type: 'TYPE_QUERY',\n name: transform(result.element)\n }),\n JsdocTypeTuple: (result, transform) => ({\n type: 'TUPLE',\n entries: result.elements.map(transform)\n }),\n JsdocTypeKeyof: (result, transform) => ({\n type: 'KEY_QUERY',\n value: transform(result.element)\n }),\n JsdocTypeImport: result => ({\n type: 'IMPORT',\n path: {\n type: 'STRING_VALUE',\n quoteStyle: getQuoteStyle(result.element.meta.quote),\n string: result.element.value\n }\n }),\n JsdocTypeUndefined: () => ({\n type: 'NAME',\n name: 'undefined'\n }),\n JsdocTypeAny: () => ({\n type: 'ANY'\n }),\n JsdocTypeFunction: (result, transform) => {\n const specialParams = extractSpecialParams(result);\n const transformed = {\n type: result.arrow ? 'ARROW' : 'FUNCTION',\n params: specialParams.params.map(param => {\n if (param.type === 'JsdocTypeKeyValue') {\n if (param.right === undefined) {\n throw new Error('Function parameter without \\':\\' is not expected to be \\'KEY_VALUE\\'');\n }\n return {\n type: 'NAMED_PARAMETER',\n name: param.key,\n typeName: transform(param.right)\n };\n }\n else {\n return transform(param);\n }\n }),\n new: null,\n returns: null\n };\n if (specialParams.this !== undefined) {\n transformed.this = transform(specialParams.this);\n }\n else if (!result.arrow) {\n transformed.this = null;\n }\n if (specialParams.new !== undefined) {\n transformed.new = transform(specialParams.new);\n }\n if (result.returnType !== undefined) {\n transformed.returns = transform(result.returnType);\n }\n return transformed;\n },\n JsdocTypeGeneric: (result, transform) => {\n const transformed = {\n type: 'GENERIC',\n subject: transform(result.left),\n objects: result.elements.map(transform),\n meta: {\n syntax: result.meta.brackets === 'square' ? 'SQUARE_BRACKET' : result.meta.dot ? 'ANGLE_BRACKET_WITH_DOT' : 'ANGLE_BRACKET'\n }\n };\n if (result.meta.brackets === 'square' && result.elements[0].type === 'JsdocTypeFunction' && !result.elements[0].parenthesis) {\n transformed.objects[0] = {\n type: 'NAME',\n name: 'function'\n };\n }\n return transformed;\n },\n JsdocTypeObjectField: (result, transform) => {\n if (typeof result.key !== 'string') {\n throw new Error('Index signatures and mapped types are not supported');\n }\n if (result.right === undefined) {\n return {\n type: 'RECORD_ENTRY',\n key: result.key,\n quoteStyle: getQuoteStyle(result.meta.quote),\n value: null,\n readonly: false\n };\n }\n let right = transform(result.right);\n if (result.optional) {\n right = {\n type: 'OPTIONAL',\n value: right,\n meta: {\n syntax: 'SUFFIX_KEY_QUESTION_MARK'\n }\n };\n }\n return {\n type: 'RECORD_ENTRY',\n key: result.key.toString(),\n quoteStyle: getQuoteStyle(result.meta.quote),\n value: right,\n readonly: false\n };\n },\n JsdocTypeJsdocObjectField: () => {\n throw new Error('Keys may not be typed in jsdoctypeparser.');\n },\n JsdocTypeKeyValue: (result, transform) => {\n if (result.right === undefined) {\n return {\n type: 'RECORD_ENTRY',\n key: result.key,\n quoteStyle: 'none',\n value: null,\n readonly: false\n };\n }\n let right = transform(result.right);\n if (result.optional) {\n right = {\n type: 'OPTIONAL',\n value: right,\n meta: {\n syntax: 'SUFFIX_KEY_QUESTION_MARK'\n }\n };\n }\n return {\n type: 'RECORD_ENTRY',\n key: result.key,\n quoteStyle: 'none',\n value: right,\n readonly: false\n };\n },\n JsdocTypeObject: (result, transform) => {\n const entries = [];\n for (const field of result.elements) {\n if (field.type === 'JsdocTypeObjectField' || field.type === 'JsdocTypeJsdocObjectField') {\n entries.push(transform(field));\n }\n }\n return {\n type: 'RECORD',\n entries\n };\n },\n JsdocTypeSpecialNamePath: result => {\n if (result.specialType !== 'module') {\n throw new Error(`jsdoctypeparser does not support type ${result.specialType} at this point.`);\n }\n return {\n type: 'MODULE',\n value: {\n type: 'FILE_PATH',\n quoteStyle: getQuoteStyle(result.meta.quote),\n path: result.value\n }\n };\n },\n JsdocTypeNamePath: (result, transform) => {\n let hasEventPrefix = false;\n let name;\n let quoteStyle;\n if (result.right.type === 'JsdocTypeSpecialNamePath' && result.right.specialType === 'event') {\n hasEventPrefix = true;\n name = result.right.value;\n quoteStyle = getQuoteStyle(result.right.meta.quote);\n }\n else {\n name = result.right.value;\n quoteStyle = getQuoteStyle(result.right.meta.quote);\n }\n const transformed = {\n type: getMemberType(result.pathType),\n owner: transform(result.left),\n name,\n quoteStyle,\n hasEventPrefix\n };\n if (transformed.owner.type === 'MODULE') {\n const tModule = transformed.owner;\n transformed.owner = transformed.owner.value;\n tModule.value = transformed;\n return tModule;\n }\n else {\n return transformed;\n }\n },\n JsdocTypeUnion: (result, transform) => nestResults('UNION', result.elements.map(transform)),\n JsdocTypeParenthesis: (result, transform) => ({\n type: 'PARENTHESIS',\n value: transform(assertRootResult(result.element))\n }),\n JsdocTypeNull: () => ({\n type: 'NAME',\n name: 'null'\n }),\n JsdocTypeUnknown: () => ({\n type: 'UNKNOWN'\n }),\n JsdocTypeStringValue: result => ({\n type: 'STRING_VALUE',\n quoteStyle: getQuoteStyle(result.meta.quote),\n string: result.value\n }),\n JsdocTypeIntersection: (result, transform) => nestResults('INTERSECTION', result.elements.map(transform)),\n JsdocTypeNumber: result => ({\n type: 'NUMBER_VALUE',\n number: result.value.toString()\n }),\n JsdocTypeSymbol: notAvailableTransform,\n JsdocTypeProperty: notAvailableTransform,\n JsdocTypePredicate: notAvailableTransform,\n JsdocTypeMappedType: notAvailableTransform,\n JsdocTypeIndexSignature: notAvailableTransform,\n JsdocTypeAsserts: notAvailableTransform\n };\n function jtpTransform(result) {\n return transform(jtpRules, result);\n }\n\n function identityTransformRules() {\n return {\n JsdocTypeIntersection: (result, transform) => ({\n type: 'JsdocTypeIntersection',\n elements: result.elements.map(transform)\n }),\n JsdocTypeGeneric: (result, transform) => ({\n type: 'JsdocTypeGeneric',\n left: transform(result.left),\n elements: result.elements.map(transform),\n meta: {\n dot: result.meta.dot,\n brackets: result.meta.brackets\n }\n }),\n JsdocTypeNullable: result => result,\n JsdocTypeUnion: (result, transform) => ({\n type: 'JsdocTypeUnion',\n elements: result.elements.map(transform)\n }),\n JsdocTypeUnknown: result => result,\n JsdocTypeUndefined: result => result,\n JsdocTypeTypeof: (result, transform) => ({\n type: 'JsdocTypeTypeof',\n element: transform(result.element)\n }),\n JsdocTypeSymbol: (result, transform) => {\n const transformed = {\n type: 'JsdocTypeSymbol',\n value: result.value\n };\n if (result.element !== undefined) {\n transformed.element = transform(result.element);\n }\n return transformed;\n },\n JsdocTypeOptional: (result, transform) => ({\n type: 'JsdocTypeOptional',\n element: transform(result.element),\n meta: {\n position: result.meta.position\n }\n }),\n JsdocTypeObject: (result, transform) => ({\n type: 'JsdocTypeObject',\n meta: {\n separator: 'comma'\n },\n elements: result.elements.map(transform)\n }),\n JsdocTypeNumber: result => result,\n JsdocTypeNull: result => result,\n JsdocTypeNotNullable: (result, transform) => ({\n type: 'JsdocTypeNotNullable',\n element: transform(result.element),\n meta: {\n position: result.meta.position\n }\n }),\n JsdocTypeSpecialNamePath: result => result,\n JsdocTypeObjectField: (result, transform) => ({\n type: 'JsdocTypeObjectField',\n key: result.key,\n right: result.right === undefined ? undefined : transform(result.right),\n optional: result.optional,\n readonly: result.readonly,\n meta: result.meta\n }),\n JsdocTypeJsdocObjectField: (result, transform) => ({\n type: 'JsdocTypeJsdocObjectField',\n left: transform(result.left),\n right: transform(result.right)\n }),\n JsdocTypeKeyValue: (result, transform) => {\n return {\n type: 'JsdocTypeKeyValue',\n key: result.key,\n right: result.right === undefined ? undefined : transform(result.right),\n optional: result.optional,\n variadic: result.variadic\n };\n },\n JsdocTypeImport: (result, transform) => ({\n type: 'JsdocTypeImport',\n element: transform(result.element)\n }),\n JsdocTypeAny: result => result,\n JsdocTypeStringValue: result => result,\n JsdocTypeNamePath: result => result,\n JsdocTypeVariadic: (result, transform) => {\n const transformed = {\n type: 'JsdocTypeVariadic',\n meta: {\n position: result.meta.position,\n squareBrackets: result.meta.squareBrackets\n }\n };\n if (result.element !== undefined) {\n transformed.element = transform(result.element);\n }\n return transformed;\n },\n JsdocTypeTuple: (result, transform) => ({\n type: 'JsdocTypeTuple',\n elements: result.elements.map(transform)\n }),\n JsdocTypeName: result => result,\n JsdocTypeFunction: (result, transform) => {\n const transformed = {\n type: 'JsdocTypeFunction',\n arrow: result.arrow,\n parameters: result.parameters.map(transform),\n constructor: result.constructor,\n parenthesis: result.parenthesis\n };\n if (result.returnType !== undefined) {\n transformed.returnType = transform(result.returnType);\n }\n return transformed;\n },\n JsdocTypeKeyof: (result, transform) => ({\n type: 'JsdocTypeKeyof',\n element: transform(result.element)\n }),\n JsdocTypeParenthesis: (result, transform) => ({\n type: 'JsdocTypeParenthesis',\n element: transform(result.element)\n }),\n JsdocTypeProperty: result => result,\n JsdocTypePredicate: (result, transform) => ({\n type: 'JsdocTypePredicate',\n left: transform(result.left),\n right: transform(result.right)\n }),\n JsdocTypeIndexSignature: (result, transform) => ({\n type: 'JsdocTypeIndexSignature',\n key: result.key,\n right: transform(result.right)\n }),\n JsdocTypeMappedType: (result, transform) => ({\n type: 'JsdocTypeMappedType',\n key: result.key,\n right: transform(result.right)\n }),\n JsdocTypeAsserts: (result, transform) => ({\n type: 'JsdocTypeAsserts',\n left: transform(result.left),\n right: transform(result.right)\n })\n };\n }\n\n const visitorKeys = {\n JsdocTypeAny: [],\n JsdocTypeFunction: ['parameters', 'returnType'],\n JsdocTypeGeneric: ['left', 'elements'],\n JsdocTypeImport: [],\n JsdocTypeIndexSignature: ['right'],\n JsdocTypeIntersection: ['elements'],\n JsdocTypeKeyof: ['element'],\n JsdocTypeKeyValue: ['right'],\n JsdocTypeMappedType: ['right'],\n JsdocTypeName: [],\n JsdocTypeNamePath: ['left', 'right'],\n JsdocTypeNotNullable: ['element'],\n JsdocTypeNull: [],\n JsdocTypeNullable: ['element'],\n JsdocTypeNumber: [],\n JsdocTypeObject: ['elements'],\n JsdocTypeObjectField: ['right'],\n JsdocTypeJsdocObjectField: ['left', 'right'],\n JsdocTypeOptional: ['element'],\n JsdocTypeParenthesis: ['element'],\n JsdocTypeSpecialNamePath: [],\n JsdocTypeStringValue: [],\n JsdocTypeSymbol: ['element'],\n JsdocTypeTuple: ['elements'],\n JsdocTypeTypeof: ['element'],\n JsdocTypeUndefined: [],\n JsdocTypeUnion: ['elements'],\n JsdocTypeUnknown: [],\n JsdocTypeVariadic: ['element'],\n JsdocTypeProperty: [],\n JsdocTypePredicate: ['left', 'right'],\n JsdocTypeAsserts: ['left', 'right']\n };\n\n function _traverse(node, parentNode, property, onEnter, onLeave) {\n onEnter === null || onEnter === void 0 ? void 0 : onEnter(node, parentNode, property);\n const keysToVisit = visitorKeys[node.type];\n for (const key of keysToVisit) {\n const value = node[key];\n if (value !== undefined) {\n if (Array.isArray(value)) {\n for (const element of value) {\n _traverse(element, node, key, onEnter, onLeave);\n }\n }\n else {\n _traverse(value, node, key, onEnter, onLeave);\n }\n }\n }\n onLeave === null || onLeave === void 0 ? void 0 : onLeave(node, parentNode, property);\n }\n /**\n * A function to traverse an AST. It traverses it depth first.\n * @param node the node to start traversing at.\n * @param onEnter node visitor function that will be called on entering the node. This corresponds to preorder traversing.\n * @param onLeave node visitor function that will be called on leaving the node. This corresponds to postorder traversing.\n */\n function traverse(node, onEnter, onLeave) {\n _traverse(node, undefined, undefined, onEnter, onLeave);\n }\n\n exports.catharsisTransform = catharsisTransform;\n exports.identityTransformRules = identityTransformRules;\n exports.jtpTransform = jtpTransform;\n exports.parse = parse;\n exports.stringify = stringify;\n exports.stringifyRules = stringifyRules;\n exports.transform = transform;\n exports.traverse = traverse;\n exports.tryParse = tryParse;\n exports.visitorKeys = visitorKeys;\n\n}));\n","/**\n * @license React\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var l=Symbol.for(\"react.element\"),n=Symbol.for(\"react.portal\"),p=Symbol.for(\"react.fragment\"),q=Symbol.for(\"react.strict_mode\"),r=Symbol.for(\"react.profiler\"),t=Symbol.for(\"react.provider\"),u=Symbol.for(\"react.context\"),v=Symbol.for(\"react.forward_ref\"),w=Symbol.for(\"react.suspense\"),x=Symbol.for(\"react.memo\"),y=Symbol.for(\"react.lazy\"),z=Symbol.iterator;function A(a){if(null===a||\"object\"!==typeof a)return null;a=z&&a[z]||a[\"@@iterator\"];return\"function\"===typeof a?a:null}\nvar B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}E.prototype.isReactComponent={};\nE.prototype.setState=function(a,b){if(\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a)throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,a,b,\"setState\")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}var H=G.prototype=new F;\nH.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};\nfunction M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=\"\"+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1 { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ AddingItems: () => (/* binding */ AddingItems), -/* harmony export */ CenteredInParent: () => (/* binding */ CenteredInParent), -/* harmony export */ ExpandableWidth: () => (/* binding */ ExpandableWidth), -/* harmony export */ FocusHeightChange: () => (/* binding */ FocusHeightChange), -/* harmony export */ LazyScrollIndexes: () => (/* binding */ LazyScrollIndexes), -/* harmony export */ LazyUpCount: () => (/* binding */ LazyUpCount), -/* harmony export */ Plinko: () => (/* binding */ Plinko), -/* harmony export */ RemovingItems: () => (/* binding */ RemovingItems), -/* harmony export */ Row: () => (/* binding */ Row), -/* harmony export */ SkipFocus: () => (/* binding */ SkipFocus), -/* harmony export */ VaryingItemWidth: () => (/* binding */ VaryingItemWidth), -/* harmony export */ __namedExportsOrder: () => (/* binding */ __namedExportsOrder), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("../../@lightningjs/ui-components/src/utils/index.js"); -/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Row/Row.js"); -/* harmony import */ var _Column__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Column/Column.js"); -/* harmony import */ var _globals_context_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("../../@lightningjs/ui-components/src/globals/context/index.js"); -/* harmony import */ var _docs_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../@lightningjs/ui-components/src/docs/utils.js"); -/* harmony import */ var _docs_story_components__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("../../@lightningjs/ui-components/src/docs/story-components/SignalButton.js"); -/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Button/Button.js"); -function _typeof(o) { - "@babel/helpers - typeof"; - - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { - return typeof o; - } : function (o) { - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; - }, _typeof(o); -} -function _toConsumableArray(arr) { - return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); -} -function _nonIterableSpread() { - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} -function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return _arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); -} -function _iterableToArray(iter) { - if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); -} -function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) return _arrayLikeToArray(arr); -} -function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; - return arr2; -} -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); - } -} -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { - writable: false - }); - return Constructor; -} -function _get() { - if (typeof Reflect !== "undefined" && Reflect.get) { - _get = Reflect.get.bind(); - } else { - _get = function _get(target, property, receiver) { - var base = _superPropBase(target, property); - if (!base) return; - var desc = Object.getOwnPropertyDescriptor(base, property); - if (desc.get) { - return desc.get.call(arguments.length < 3 ? target : receiver); - } - return desc.value; - }; - } - return _get.apply(this, arguments); -} -function _superPropBase(object, property) { - while (!Object.prototype.hasOwnProperty.call(object, property)) { - object = _getPrototypeOf(object); - if (object === null) break; - } - return object; -} -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { - writable: false - }); - if (superClass) _setPrototypeOf(subClass, superClass); -} -function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); -} -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); - }; -} -function _possibleConstructorReturn(self, call) { - if (call && (_typeof(call) === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { - throw new TypeError("Derived constructors may only return object or undefined"); - } - return _assertThisInitialized(self); -} -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - return self; -} -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; - } -} -function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); -} -function ownKeys(e, r) { - var t = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(e); - r && (o = o.filter(function (r) { - return Object.getOwnPropertyDescriptor(e, r).enumerable; - })), t.push.apply(t, o); - } - return t; -} -function _objectSpread(e) { - for (var r = 1; r < arguments.length; r++) { - var t = null != arguments[r] ? arguments[r] : {}; - r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { - _defineProperty(e, r, t[r]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); - }); - } - return e; -} -function _defineProperty(obj, key, value) { - key = _toPropertyKey(key); - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} -function _toPropertyKey(t) { - var i = _toPrimitive(t, "string"); - return "symbol" == _typeof(i) ? i : String(i); -} -function _toPrimitive(t, r) { - if ("object" != _typeof(t) || !t) return t; - var e = t[Symbol.toPrimitive]; - if (void 0 !== e) { - var i = e.call(t, r || "default"); - if ("object" != _typeof(i)) return i; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return ("string" === r ? String : Number)(t); -} -/* eslint-disable */ -// @ts-nocheck -// @ts-expect-error (Converted from ts-ignore) -var __STORY__ = "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport { getWidthByUpCount } from '../../utils';\nimport { default as RowComponent } from '.';\nimport Column from '../Column';\nimport context from '../../globals/context/index';\nimport { createModeControl } from '../../docs/utils';\nimport { SignalButton } from '../../docs/story-components';\nimport Button from '../Button';\n\nexport default {\n title: 'Components/Row',\n parameters: {\n remountAll: true\n }\n};\n\n/**\n * Shared Args and Arg Types for Stories\n */\nconst sharedArgs = {\n alwaysScroll: false,\n lazyScroll: false,\n neverScroll: false,\n scrollIndex: 0,\n waitForDimensions: false,\n mode: 'focused'\n};\n\nconst sharedArgTypes = {\n ...createModeControl({ summaryValue: 'focused' }),\n scrollIndex: {\n control: { type: 'number', min: 0 },\n description:\n 'Item index at which scrolling begins, provided the sum of item widths is greater than the width of the Row',\n table: { defaultValue: { summary: 0 } }\n },\n alwaysScroll: {\n control: 'boolean',\n description:\n 'Determines whether the row will stop scrolling as it nears the right to prevent white space',\n table: { defaultValue: { summary: false } }\n },\n neverScroll: {\n control: 'boolean',\n description:\n 'If true, the row will never scroll, unless alwaysScroll is set to true, and if false, the row will apply normal scrolling logic',\n table: { defaultValue: { summary: false } }\n },\n lazyScroll: {\n control: 'boolean',\n description:\n 'Will only scroll the row if the item is off screen and alwaysScroll and neverScroll are both false',\n table: { defaultValue: { summary: false } }\n },\n waitForDimensions: {\n control: 'boolean',\n description:\n \"If true, the Row will wait for all child elements' w and h to be set before displaying the Row\",\n table: { defaultValue: { summary: false } }\n }\n};\n\n// creates an array of buttons to be used in Stories\nconst createItems = (buttonType, length, isVariedWidth = false) => {\n return Array.from({ length }).map((_, i) => ({\n type: buttonType,\n title: `Button ${i + 1}`,\n ...(isVariedWidth\n ? {\n fixed: true,\n w: 200 + Math.floor(Math.random() * 100)\n }\n : {})\n }));\n};\n\nclass ExpandingButton extends Button {\n _construct() {\n super._construct();\n this.fixed = true;\n this.w = 250;\n }\n _focus() {\n super._focus();\n this.smooth = { w: 350 };\n }\n\n _unfocus() {\n super._unfocus();\n this.smooth = { w: 250 };\n }\n}\n\nclass ExpandingHeightButton extends Button {\n _focus() {\n super._focus();\n this.smooth = { h: 150 };\n this.fireAncestors('$itemChanged');\n }\n\n _unfocus() {\n super._unfocus();\n this.smooth = { h: 75 };\n }\n}\n\nclass Title extends lng.Component {\n static _template() {\n return {\n Label: {\n x: 75,\n y: 22,\n mount: 0.5,\n color: 0xffffffff,\n text: { fontSize: 20 }\n }\n };\n }\n\n _init() {\n this.tag('Label').on('txLoaded', () => {\n this.w = this.tag('Label').renderWidth;\n this.h = this.tag('Label').renderHeight;\n this.fireAncestors('$itemChanged');\n });\n }\n\n set titleText(titleText) {\n this.tag('Label').text = titleText;\n }\n}\n\n/**\n * Stories for various versions of the component\n */\n\nexport const Row = args =>\n class Row extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1),\n items: createItems(Button, 12),\n waitForDimensions: args.waitForDimensions\n }\n };\n }\n };\n\nRow.args = sharedArgs;\nRow.argTypes = sharedArgTypes;\n\nexport const FocusHeightChange = () =>\n class FocusHeightChange extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1),\n items: Array.apply(null, { length: 5 }).map(() => ({\n type: ExpandingHeightButton,\n title: 'Button',\n w: 150,\n h: 75\n }))\n }\n };\n }\n };\n\nexport const VaryingItemWidth = () =>\n class VaryingItemWidth extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1),\n items: createItems(Button, 10, {\n fixed: true,\n w: 200 + Math.floor(Math.random() * 100)\n })\n }\n };\n }\n };\n\nexport const ExpandableWidth = () =>\n class ExpandableWidth extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1),\n items: createItems(ExpandingButton, 6)\n }\n };\n }\n };\n\nexport const CenteredInParent = () =>\n class CenteredInParent extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n autoResizeHeight: true,\n w: getWidthByUpCount(context.theme, 1),\n items: [\n {\n type: Column,\n autoResizeWidth: true,\n autoResizeHeight: true,\n items: createItems(Button, 3)\n },\n {\n type: Column,\n autoResizeWidth: true,\n autoResizeHeight: true,\n centerInParent: true,\n items: createItems(Button, 1)\n }\n ]\n }\n };\n }\n };\nCenteredInParent.parameters = {\n storyDetails:\n 'This Row has 2 Columns as items. The second Column with 1 Button as an item has the centerInParent property enabled so it is vertically centered in the Row.'\n};\n\nexport const Plinko = () => {\n return class Plinko extends lng.Component {\n static _template() {\n const skipFocusButtons = createItems(Button, 3);\n skipFocusButtons[1].skipFocus = true;\n skipFocusButtons[1].title = 'Skip Focus';\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1),\n autoResizeHeight: true,\n plinko: true,\n items: [\n {\n type: Column,\n autoResizeWidth: true,\n items: createItems(Button, 3)\n },\n {\n type: Column,\n autoResizeWidth: true,\n items: skipFocusButtons\n },\n {\n type: Column,\n autoResizeWidth: true,\n items: createItems(Button, 3)\n },\n {\n type: Column,\n autoResizeWidth: true,\n items: createItems(Button, 3)\n }\n ]\n }\n };\n }\n };\n};\n\nexport const SkipFocus = args =>\n class SkipFocus extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1),\n wrapSelected: args.wrapSelected,\n items: [\n ...Array.apply(null, { length: 13 }).map((_, i) => {\n if (i % 4 === 0)\n return {\n type: Title,\n titleText: 'Skip Focus Text',\n skipFocus: true\n };\n return { type: Button, title: 'Button' };\n }),\n {\n type: Title,\n titleText: 'Skip Focus Text',\n skipFocus: true\n }\n ]\n }\n };\n }\n };\n\nSkipFocus.args = {\n wrapSelected: false\n};\n\nSkipFocus.argTypes = {\n wrapSelected: {\n control: 'boolean',\n description:\n 'Enables wrapping behavior, so selectNext() selects the first item if the current item is the last on the list and vice versa',\n table: { defaultValue: { summary: false } }\n }\n};\n\nexport const LazyScrollIndexes = ({\n startLazyScrollIndex,\n stopLazyScrollIndex,\n waitForDimensions\n}) =>\n class LazyScrollIndexes extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1),\n items: Array.apply(null, { length: 12 }).map((_, i) => ({\n type: Button,\n title: `Button ${i + 1} ${\n i === startLazyScrollIndex ? '(start lazy scroll)' : ''\n } ${i === stopLazyScrollIndex ? '(stop lazy scroll)' : ''}`\n })),\n startLazyScrollIndex,\n stopLazyScrollIndex,\n waitForDimensions: waitForDimensions\n }\n };\n }\n };\nLazyScrollIndexes.args = {\n ...sharedArgs,\n lazyScroll: true,\n startLazyScrollIndex: 1,\n stopLazyScrollIndex: 10\n};\nLazyScrollIndexes.argTypes = {\n ...sharedArgTypes,\n startLazyScrollIndex: {\n control: 'number',\n description:\n 'Index of item in items, and items thereafter, at which lazy scrolling should occur at',\n table: { defaultValue: { summary: 0 } }\n },\n stopLazyScrollIndex: {\n control: 'number',\n description:\n 'Index of item in items, and items preceding, at which lazy scrolling should occur',\n table: { defaultValue: { summary: 0 } }\n }\n};\nLazyScrollIndexes.parameters = {\n storyDetails:\n 'Items before the item at startLazyScrollIndex and after the item at stopLazyScrollIndex will use alwaysScroll. Items at and between startLazyScrollIndex and stopLazyScrollIndex will use lazyScroll.'\n};\n\nexport const AddingItems = args =>\n class AddingItems extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1), // x offset from preview.js * 2\n lazyUpCount: args.lazyUpCount,\n lazyUpCountBuffer: args.lazyUpCountBuffer,\n waitForDimensions: args.waitForDimensions,\n signals: {\n append: 'appendButton',\n appendAt: 'appendButtonAt',\n prepend: 'prependButton'\n },\n items: [\n {\n type: SignalButton,\n title: 'Prepend 1 Button (prependItems)',\n signalName: 'prepend',\n passSignals: { prepend: true }\n },\n {\n type: SignalButton,\n title: 'Append 1 Button at index 1 (appendItemsAt)',\n signalName: 'appendAt',\n passSignals: { appendAt: true }\n },\n {\n type: SignalButton,\n title: 'Append 1 Button to the Row (appendItems)',\n signalName: 'append',\n passSignals: { append: true }\n }\n ]\n }\n };\n }\n\n prependButton() {\n this.tag('Row').prependItems([\n {\n type: Button,\n title: 'Prepended Button'\n }\n ]);\n }\n\n appendButtonAt() {\n this.tag('Row').appendItemsAt(\n [\n {\n type: Button,\n title: 'Appended Button at index 1'\n }\n ],\n 1\n );\n }\n\n appendButton() {\n this.tag('Row').appendItems([\n {\n type: Button,\n title: 'Appended Button'\n }\n ]);\n }\n };\nAddingItems.args = {\n ...sharedArgs,\n lazyUpCountBuffer: 2\n};\nAddingItems.argTypes = {\n ...sharedArgTypes,\n lazyUpCount: {\n control: 'number',\n description:\n 'Used to calculate the number of items to display on the first render, see [Docs](?path=/docs/components-navigationmanager--docs#properties) for more details.
**NOTE: changing this value requires refreshing the story to see its effect.**',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n lazyUpCountBuffer: {\n control: 'number',\n description:\n 'Used to calculate the number of items to display on the first render, see [Docs](?path=/docs/components-navigationmanager--docs#properties) for more details.
**NOTE: changing this value requires refreshing the story to see its effect.**',\n table: {\n defaultValue: { summary: 2 }\n }\n }\n};\nAddingItems.parameters = {\n storyDetails:\n 'The 3 buttons initially rendered in this story are configured to invoke 1 of the 3 methods available to add items to a Row (the name of the method used is in parenthesis on the button). Press enter on any of those 3 buttons to invoke that method and add a button to the Row.'\n};\n\nexport const LazyUpCount = args =>\n class LazyUpCount extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1), // x offset from preview.js * 2\n lazyUpCount: args.lazyUpCount,\n lazyUpCountBuffer: args.lazyUpCountBuffer,\n items: createItems(Button, 12),\n waitForDimensions: args.waitForDimensions\n }\n };\n }\n };\nLazyUpCount.args = {\n ...sharedArgs,\n lazyUpCount: 5,\n lazyUpCountBuffer: 2\n};\nLazyUpCount.argTypes = {\n ...sharedArgTypes,\n lazyUpCount: {\n control: 'number',\n description:\n 'Used to calculate the number of items to display on the first render, see [Docs](?path=/docs/components-navigationmanager--docs#properties) for more details.
**NOTE: changing this value requires refreshing the story to see its effect.**',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n lazyUpCountBuffer: {\n control: 'number',\n description:\n 'Used to calculate the number of items to display on the first render, see [Docs](?path=/docs/components-navigationmanager--docs#properties) for more details.
**NOTE: changing this value requires refreshing the story to see its effect.**',\n table: {\n defaultValue: { summary: 2 }\n }\n }\n};\nLazyUpCount.parameters = {\n storyDetails:\n 'There are 12 items passed to this Row. The number of items that are initially rendered equals the sum of the lazyUpCount and the lazyUpCountBuffer properties. Each time the next item is selected, an additional item is added to the end of the Row until all 12 items have been rendered.'\n};\n\nexport const RemovingItems = args =>\n class RemovingItems extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1), // x offset from preview.js * 2\n waitForDimensions: args.waitForDimensions,\n signals: {\n removeAt: 'removeButton'\n },\n items: [\n ...createItems(Button, 2),\n {\n type: SignalButton,\n title: 'Press Enter on this button to remove it (removeItemAt)',\n signalName: 'removeAt',\n passSignals: { removeAt: true }\n }\n ]\n }\n };\n }\n\n removeButton() {\n this.tag('Row').removeItemAt(2);\n }\n };\nRemovingItems.args = {\n ...sharedArgs\n};\nRemovingItems.argTypes = {\n ...sharedArgTypes\n};\nRemovingItems.parameters = {\n storyDetails:\n 'The third button in this row is configured to invoke removeItemAt to remove that button. Focus on that button and press Enter to invoke that method and remove the button from the row.'\n};\n"; -// @ts-expect-error (Converted from ts-ignore) -var __LOCATIONS_MAP__ = { - "Row": { - "startLoc": { - "col": 19, - "line": 155 - }, - "endLoc": { - "col": 3, - "line": 167 - }, - "startBody": { - "col": 19, - "line": 155 - }, - "endBody": { - "col": 3, - "line": 167 - } - }, - "FocusHeightChange": { - "startLoc": { - "col": 33, - "line": 172 - }, - "endLoc": { - "col": 3, - "line": 188 - }, - "startBody": { - "col": 33, - "line": 172 - }, - "endBody": { - "col": 3, - "line": 188 - } - }, - "VaryingItemWidth": { - "startLoc": { - "col": 32, - "line": 190 - }, - "endLoc": { - "col": 3, - "line": 204 - }, - "startBody": { - "col": 32, - "line": 190 - }, - "endBody": { - "col": 3, - "line": 204 - } - }, - "ExpandableWidth": { - "startLoc": { - "col": 31, - "line": 206 - }, - "endLoc": { - "col": 3, - "line": 217 - }, - "startBody": { - "col": 31, - "line": 206 - }, - "endBody": { - "col": 3, - "line": 217 - } - }, - "CenteredInParent": { - "startLoc": { - "col": 32, - "line": 219 - }, - "endLoc": { - "col": 3, - "line": 245 - }, - "startBody": { - "col": 32, - "line": 219 - }, - "endBody": { - "col": 3, - "line": 245 - } - }, - "Plinko": { - "startLoc": { - "col": 22, - "line": 251 - }, - "endLoc": { - "col": 1, - "line": 289 - }, - "startBody": { - "col": 22, - "line": 251 - }, - "endBody": { - "col": 1, - "line": 289 - } - }, - "SkipFocus": { - "startLoc": { - "col": 25, - "line": 291 - }, - "endLoc": { - "col": 3, - "line": 318 - }, - "startBody": { - "col": 25, - "line": 291 - }, - "endBody": { - "col": 3, - "line": 318 - } - }, - "LazyScrollIndexes": { - "startLoc": { - "col": 33, - "line": 333 - }, - "endLoc": { - "col": 3, - "line": 356 - }, - "startBody": { - "col": 33, - "line": 333 - }, - "endBody": { - "col": 3, - "line": 356 - } - }, - "AddingItems": { - "startLoc": { - "col": 27, - "line": 383 - }, - "endLoc": { - "col": 3, - "line": 451 - }, - "startBody": { - "col": 27, - "line": 383 - }, - "endBody": { - "col": 3, - "line": 451 - } - }, - "LazyUpCount": { - "startLoc": { - "col": 27, - "line": 480 - }, - "endLoc": { - "col": 3, - "line": 494 - }, - "startBody": { - "col": 27, - "line": 480 - }, - "endBody": { - "col": 3, - "line": 494 - } - }, - "RemovingItems": { - "startLoc": { - "col": 29, - "line": 524 - }, - "endLoc": { - "col": 3, - "line": 551 - }, - "startBody": { - "col": 29, - "line": 524 - }, - "endBody": { - "col": 3, - "line": 551 - } - } -}; - -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - - - - - - - - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ - title: 'Components/Row', - parameters: { - "storySource": { - "source": "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport { getWidthByUpCount } from '../../utils';\nimport { default as RowComponent } from '.';\nimport Column from '../Column';\nimport context from '../../globals/context/index';\nimport { createModeControl } from '../../docs/utils';\nimport { SignalButton } from '../../docs/story-components';\nimport Button from '../Button';\n\nexport default {\n title: 'Components/Row',\n parameters: {\n remountAll: true\n }\n};\n\n/**\n * Shared Args and Arg Types for Stories\n */\nconst sharedArgs = {\n alwaysScroll: false,\n lazyScroll: false,\n neverScroll: false,\n scrollIndex: 0,\n waitForDimensions: false,\n mode: 'focused'\n};\n\nconst sharedArgTypes = {\n ...createModeControl({ summaryValue: 'focused' }),\n scrollIndex: {\n control: { type: 'number', min: 0 },\n description:\n 'Item index at which scrolling begins, provided the sum of item widths is greater than the width of the Row',\n table: { defaultValue: { summary: 0 } }\n },\n alwaysScroll: {\n control: 'boolean',\n description:\n 'Determines whether the row will stop scrolling as it nears the right to prevent white space',\n table: { defaultValue: { summary: false } }\n },\n neverScroll: {\n control: 'boolean',\n description:\n 'If true, the row will never scroll, unless alwaysScroll is set to true, and if false, the row will apply normal scrolling logic',\n table: { defaultValue: { summary: false } }\n },\n lazyScroll: {\n control: 'boolean',\n description:\n 'Will only scroll the row if the item is off screen and alwaysScroll and neverScroll are both false',\n table: { defaultValue: { summary: false } }\n },\n waitForDimensions: {\n control: 'boolean',\n description:\n \"If true, the Row will wait for all child elements' w and h to be set before displaying the Row\",\n table: { defaultValue: { summary: false } }\n }\n};\n\n// creates an array of buttons to be used in Stories\nconst createItems = (buttonType, length, isVariedWidth = false) => {\n return Array.from({ length }).map((_, i) => ({\n type: buttonType,\n title: `Button ${i + 1}`,\n ...(isVariedWidth\n ? {\n fixed: true,\n w: 200 + Math.floor(Math.random() * 100)\n }\n : {})\n }));\n};\n\nclass ExpandingButton extends Button {\n _construct() {\n super._construct();\n this.fixed = true;\n this.w = 250;\n }\n _focus() {\n super._focus();\n this.smooth = { w: 350 };\n }\n\n _unfocus() {\n super._unfocus();\n this.smooth = { w: 250 };\n }\n}\n\nclass ExpandingHeightButton extends Button {\n _focus() {\n super._focus();\n this.smooth = { h: 150 };\n this.fireAncestors('$itemChanged');\n }\n\n _unfocus() {\n super._unfocus();\n this.smooth = { h: 75 };\n }\n}\n\nclass Title extends lng.Component {\n static _template() {\n return {\n Label: {\n x: 75,\n y: 22,\n mount: 0.5,\n color: 0xffffffff,\n text: { fontSize: 20 }\n }\n };\n }\n\n _init() {\n this.tag('Label').on('txLoaded', () => {\n this.w = this.tag('Label').renderWidth;\n this.h = this.tag('Label').renderHeight;\n this.fireAncestors('$itemChanged');\n });\n }\n\n set titleText(titleText) {\n this.tag('Label').text = titleText;\n }\n}\n\n/**\n * Stories for various versions of the component\n */\n\nexport const Row = args =>\n class Row extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1),\n items: createItems(Button, 12),\n waitForDimensions: args.waitForDimensions\n }\n };\n }\n };\n\nRow.args = sharedArgs;\nRow.argTypes = sharedArgTypes;\n\nexport const FocusHeightChange = () =>\n class FocusHeightChange extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1),\n items: Array.apply(null, { length: 5 }).map(() => ({\n type: ExpandingHeightButton,\n title: 'Button',\n w: 150,\n h: 75\n }))\n }\n };\n }\n };\n\nexport const VaryingItemWidth = () =>\n class VaryingItemWidth extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1),\n items: createItems(Button, 10, {\n fixed: true,\n w: 200 + Math.floor(Math.random() * 100)\n })\n }\n };\n }\n };\n\nexport const ExpandableWidth = () =>\n class ExpandableWidth extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1),\n items: createItems(ExpandingButton, 6)\n }\n };\n }\n };\n\nexport const CenteredInParent = () =>\n class CenteredInParent extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n autoResizeHeight: true,\n w: getWidthByUpCount(context.theme, 1),\n items: [\n {\n type: Column,\n autoResizeWidth: true,\n autoResizeHeight: true,\n items: createItems(Button, 3)\n },\n {\n type: Column,\n autoResizeWidth: true,\n autoResizeHeight: true,\n centerInParent: true,\n items: createItems(Button, 1)\n }\n ]\n }\n };\n }\n };\nCenteredInParent.parameters = {\n storyDetails:\n 'This Row has 2 Columns as items. The second Column with 1 Button as an item has the centerInParent property enabled so it is vertically centered in the Row.'\n};\n\nexport const Plinko = () => {\n return class Plinko extends lng.Component {\n static _template() {\n const skipFocusButtons = createItems(Button, 3);\n skipFocusButtons[1].skipFocus = true;\n skipFocusButtons[1].title = 'Skip Focus';\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1),\n autoResizeHeight: true,\n plinko: true,\n items: [\n {\n type: Column,\n autoResizeWidth: true,\n items: createItems(Button, 3)\n },\n {\n type: Column,\n autoResizeWidth: true,\n items: skipFocusButtons\n },\n {\n type: Column,\n autoResizeWidth: true,\n items: createItems(Button, 3)\n },\n {\n type: Column,\n autoResizeWidth: true,\n items: createItems(Button, 3)\n }\n ]\n }\n };\n }\n };\n};\n\nexport const SkipFocus = args =>\n class SkipFocus extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1),\n wrapSelected: args.wrapSelected,\n items: [\n ...Array.apply(null, { length: 13 }).map((_, i) => {\n if (i % 4 === 0)\n return {\n type: Title,\n titleText: 'Skip Focus Text',\n skipFocus: true\n };\n return { type: Button, title: 'Button' };\n }),\n {\n type: Title,\n titleText: 'Skip Focus Text',\n skipFocus: true\n }\n ]\n }\n };\n }\n };\n\nSkipFocus.args = {\n wrapSelected: false\n};\n\nSkipFocus.argTypes = {\n wrapSelected: {\n control: 'boolean',\n description:\n 'Enables wrapping behavior, so selectNext() selects the first item if the current item is the last on the list and vice versa',\n table: { defaultValue: { summary: false } }\n }\n};\n\nexport const LazyScrollIndexes = ({\n startLazyScrollIndex,\n stopLazyScrollIndex,\n waitForDimensions\n}) =>\n class LazyScrollIndexes extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1),\n items: Array.apply(null, { length: 12 }).map((_, i) => ({\n type: Button,\n title: `Button ${i + 1} ${\n i === startLazyScrollIndex ? '(start lazy scroll)' : ''\n } ${i === stopLazyScrollIndex ? '(stop lazy scroll)' : ''}`\n })),\n startLazyScrollIndex,\n stopLazyScrollIndex,\n waitForDimensions: waitForDimensions\n }\n };\n }\n };\nLazyScrollIndexes.args = {\n ...sharedArgs,\n lazyScroll: true,\n startLazyScrollIndex: 1,\n stopLazyScrollIndex: 10\n};\nLazyScrollIndexes.argTypes = {\n ...sharedArgTypes,\n startLazyScrollIndex: {\n control: 'number',\n description:\n 'Index of item in items, and items thereafter, at which lazy scrolling should occur at',\n table: { defaultValue: { summary: 0 } }\n },\n stopLazyScrollIndex: {\n control: 'number',\n description:\n 'Index of item in items, and items preceding, at which lazy scrolling should occur',\n table: { defaultValue: { summary: 0 } }\n }\n};\nLazyScrollIndexes.parameters = {\n storyDetails:\n 'Items before the item at startLazyScrollIndex and after the item at stopLazyScrollIndex will use alwaysScroll. Items at and between startLazyScrollIndex and stopLazyScrollIndex will use lazyScroll.'\n};\n\nexport const AddingItems = args =>\n class AddingItems extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1), // x offset from preview.js * 2\n lazyUpCount: args.lazyUpCount,\n lazyUpCountBuffer: args.lazyUpCountBuffer,\n waitForDimensions: args.waitForDimensions,\n signals: {\n append: 'appendButton',\n appendAt: 'appendButtonAt',\n prepend: 'prependButton'\n },\n items: [\n {\n type: SignalButton,\n title: 'Prepend 1 Button (prependItems)',\n signalName: 'prepend',\n passSignals: { prepend: true }\n },\n {\n type: SignalButton,\n title: 'Append 1 Button at index 1 (appendItemsAt)',\n signalName: 'appendAt',\n passSignals: { appendAt: true }\n },\n {\n type: SignalButton,\n title: 'Append 1 Button to the Row (appendItems)',\n signalName: 'append',\n passSignals: { append: true }\n }\n ]\n }\n };\n }\n\n prependButton() {\n this.tag('Row').prependItems([\n {\n type: Button,\n title: 'Prepended Button'\n }\n ]);\n }\n\n appendButtonAt() {\n this.tag('Row').appendItemsAt(\n [\n {\n type: Button,\n title: 'Appended Button at index 1'\n }\n ],\n 1\n );\n }\n\n appendButton() {\n this.tag('Row').appendItems([\n {\n type: Button,\n title: 'Appended Button'\n }\n ]);\n }\n };\nAddingItems.args = {\n ...sharedArgs,\n lazyUpCountBuffer: 2\n};\nAddingItems.argTypes = {\n ...sharedArgTypes,\n lazyUpCount: {\n control: 'number',\n description:\n 'Used to calculate the number of items to display on the first render, see [Docs](?path=/docs/components-navigationmanager--docs#properties) for more details.
**NOTE: changing this value requires refreshing the story to see its effect.**',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n lazyUpCountBuffer: {\n control: 'number',\n description:\n 'Used to calculate the number of items to display on the first render, see [Docs](?path=/docs/components-navigationmanager--docs#properties) for more details.
**NOTE: changing this value requires refreshing the story to see its effect.**',\n table: {\n defaultValue: { summary: 2 }\n }\n }\n};\nAddingItems.parameters = {\n storyDetails:\n 'The 3 buttons initially rendered in this story are configured to invoke 1 of the 3 methods available to add items to a Row (the name of the method used is in parenthesis on the button). Press enter on any of those 3 buttons to invoke that method and add a button to the Row.'\n};\n\nexport const LazyUpCount = args =>\n class LazyUpCount extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1), // x offset from preview.js * 2\n lazyUpCount: args.lazyUpCount,\n lazyUpCountBuffer: args.lazyUpCountBuffer,\n items: createItems(Button, 12),\n waitForDimensions: args.waitForDimensions\n }\n };\n }\n };\nLazyUpCount.args = {\n ...sharedArgs,\n lazyUpCount: 5,\n lazyUpCountBuffer: 2\n};\nLazyUpCount.argTypes = {\n ...sharedArgTypes,\n lazyUpCount: {\n control: 'number',\n description:\n 'Used to calculate the number of items to display on the first render, see [Docs](?path=/docs/components-navigationmanager--docs#properties) for more details.
**NOTE: changing this value requires refreshing the story to see its effect.**',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n lazyUpCountBuffer: {\n control: 'number',\n description:\n 'Used to calculate the number of items to display on the first render, see [Docs](?path=/docs/components-navigationmanager--docs#properties) for more details.
**NOTE: changing this value requires refreshing the story to see its effect.**',\n table: {\n defaultValue: { summary: 2 }\n }\n }\n};\nLazyUpCount.parameters = {\n storyDetails:\n 'There are 12 items passed to this Row. The number of items that are initially rendered equals the sum of the lazyUpCount and the lazyUpCountBuffer properties. Each time the next item is selected, an additional item is added to the end of the Row until all 12 items have been rendered.'\n};\n\nexport const RemovingItems = args =>\n class RemovingItems extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1), // x offset from preview.js * 2\n waitForDimensions: args.waitForDimensions,\n signals: {\n removeAt: 'removeButton'\n },\n items: [\n ...createItems(Button, 2),\n {\n type: SignalButton,\n title: 'Press Enter on this button to remove it (removeItemAt)',\n signalName: 'removeAt',\n passSignals: { removeAt: true }\n }\n ]\n }\n };\n }\n\n removeButton() {\n this.tag('Row').removeItemAt(2);\n }\n };\nRemovingItems.args = {\n ...sharedArgs\n};\nRemovingItems.argTypes = {\n ...sharedArgTypes\n};\nRemovingItems.parameters = {\n storyDetails:\n 'The third button in this row is configured to invoke removeItemAt to remove that button. Focus on that button and press Enter to invoke that method and remove the button from the row.'\n};\n", - "locationsMap": { - "row": { - "startLoc": { - "col": 19, - "line": 155 - }, - "endLoc": { - "col": 3, - "line": 167 - }, - "startBody": { - "col": 19, - "line": 155 - }, - "endBody": { - "col": 3, - "line": 167 - } - }, - "focus-height-change": { - "startLoc": { - "col": 33, - "line": 172 - }, - "endLoc": { - "col": 3, - "line": 188 - }, - "startBody": { - "col": 33, - "line": 172 - }, - "endBody": { - "col": 3, - "line": 188 - } - }, - "varying-item-width": { - "startLoc": { - "col": 32, - "line": 190 - }, - "endLoc": { - "col": 3, - "line": 204 - }, - "startBody": { - "col": 32, - "line": 190 - }, - "endBody": { - "col": 3, - "line": 204 - } - }, - "expandable-width": { - "startLoc": { - "col": 31, - "line": 206 - }, - "endLoc": { - "col": 3, - "line": 217 - }, - "startBody": { - "col": 31, - "line": 206 - }, - "endBody": { - "col": 3, - "line": 217 - } - }, - "centered-in-parent": { - "startLoc": { - "col": 32, - "line": 219 - }, - "endLoc": { - "col": 3, - "line": 245 - }, - "startBody": { - "col": 32, - "line": 219 - }, - "endBody": { - "col": 3, - "line": 245 - } - }, - "plinko": { - "startLoc": { - "col": 22, - "line": 251 - }, - "endLoc": { - "col": 1, - "line": 289 - }, - "startBody": { - "col": 22, - "line": 251 - }, - "endBody": { - "col": 1, - "line": 289 - } - }, - "skip-focus": { - "startLoc": { - "col": 25, - "line": 291 - }, - "endLoc": { - "col": 3, - "line": 318 - }, - "startBody": { - "col": 25, - "line": 291 - }, - "endBody": { - "col": 3, - "line": 318 - } - }, - "lazy-scroll-indexes": { - "startLoc": { - "col": 33, - "line": 333 - }, - "endLoc": { - "col": 3, - "line": 356 - }, - "startBody": { - "col": 33, - "line": 333 - }, - "endBody": { - "col": 3, - "line": 356 - } - }, - "adding-items": { - "startLoc": { - "col": 27, - "line": 383 - }, - "endLoc": { - "col": 3, - "line": 451 - }, - "startBody": { - "col": 27, - "line": 383 - }, - "endBody": { - "col": 3, - "line": 451 - } - }, - "lazy-up-count": { - "startLoc": { - "col": 27, - "line": 480 - }, - "endLoc": { - "col": 3, - "line": 494 - }, - "startBody": { - "col": 27, - "line": 480 - }, - "endBody": { - "col": 3, - "line": 494 - } - }, - "removing-items": { - "startLoc": { - "col": 29, - "line": 524 - }, - "endLoc": { - "col": 3, - "line": 551 - }, - "startBody": { - "col": 29, - "line": 524 - }, - "endBody": { - "col": 3, - "line": 551 - } - } - } - }, - remountAll: true - } -}); - -/** - * Shared Args and Arg Types for Stories - */ -var sharedArgs = { - alwaysScroll: false, - lazyScroll: false, - neverScroll: false, - scrollIndex: 0, - waitForDimensions: false, - mode: 'focused' -}; -var sharedArgTypes = _objectSpread(_objectSpread({}, (0,_docs_utils__WEBPACK_IMPORTED_MODULE_1__/* .createModeControl */ .Pg)({ - summaryValue: 'focused' -})), {}, { - scrollIndex: { - control: { - type: 'number', - min: 0 - }, - description: 'Item index at which scrolling begins, provided the sum of item widths is greater than the width of the Row', - table: { - defaultValue: { - summary: 0 - } - } - }, - alwaysScroll: { - control: 'boolean', - description: 'Determines whether the row will stop scrolling as it nears the right to prevent white space', - table: { - defaultValue: { - summary: false - } - } - }, - neverScroll: { - control: 'boolean', - description: 'If true, the row will never scroll, unless alwaysScroll is set to true, and if false, the row will apply normal scrolling logic', - table: { - defaultValue: { - summary: false - } - } - }, - lazyScroll: { - control: 'boolean', - description: 'Will only scroll the row if the item is off screen and alwaysScroll and neverScroll are both false', - table: { - defaultValue: { - summary: false - } - } - }, - waitForDimensions: { - control: 'boolean', - description: "If true, the Row will wait for all child elements' w and h to be set before displaying the Row", - table: { - defaultValue: { - summary: false - } - } - } -}); - -// creates an array of buttons to be used in Stories -var createItems = function createItems(buttonType, length) { - var isVariedWidth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; - return Array.from({ - length: length - }).map(function (_, i) { - return _objectSpread({ - type: buttonType, - title: "Button ".concat(i + 1) - }, isVariedWidth ? { - fixed: true, - w: 200 + Math.floor(Math.random() * 100) - } : {}); - }); -}; -var ExpandingButton = /*#__PURE__*/function (_Button) { - _inherits(ExpandingButton, _Button); - var _super = _createSuper(ExpandingButton); - function ExpandingButton() { - _classCallCheck(this, ExpandingButton); - return _super.apply(this, arguments); - } - _createClass(ExpandingButton, [{ - key: "_construct", - value: function _construct() { - _get(_getPrototypeOf(ExpandingButton.prototype), "_construct", this).call(this); - this.fixed = true; - this.w = 250; - } - }, { - key: "_focus", - value: function _focus() { - _get(_getPrototypeOf(ExpandingButton.prototype), "_focus", this).call(this); - this.smooth = { - w: 350 - }; - } - }, { - key: "_unfocus", - value: function _unfocus() { - _get(_getPrototypeOf(ExpandingButton.prototype), "_unfocus", this).call(this); - this.smooth = { - w: 250 - }; - } - }]); - return ExpandingButton; -}(_Button__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A); -var ExpandingHeightButton = /*#__PURE__*/function (_Button2) { - _inherits(ExpandingHeightButton, _Button2); - var _super2 = _createSuper(ExpandingHeightButton); - function ExpandingHeightButton() { - _classCallCheck(this, ExpandingHeightButton); - return _super2.apply(this, arguments); - } - _createClass(ExpandingHeightButton, [{ - key: "_focus", - value: function _focus() { - _get(_getPrototypeOf(ExpandingHeightButton.prototype), "_focus", this).call(this); - this.smooth = { - h: 150 - }; - this.fireAncestors('$itemChanged'); - } - }, { - key: "_unfocus", - value: function _unfocus() { - _get(_getPrototypeOf(ExpandingHeightButton.prototype), "_unfocus", this).call(this); - this.smooth = { - h: 75 - }; - } - }]); - return ExpandingHeightButton; -}(_Button__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A); -var Title = /*#__PURE__*/function (_lng$Component) { - _inherits(Title, _lng$Component); - var _super3 = _createSuper(Title); - function Title() { - _classCallCheck(this, Title); - return _super3.apply(this, arguments); - } - _createClass(Title, [{ - key: "_init", - value: function _init() { - var _this = this; - this.tag('Label').on('txLoaded', function () { - _this.w = _this.tag('Label').renderWidth; - _this.h = _this.tag('Label').renderHeight; - _this.fireAncestors('$itemChanged'); - }); - } - }, { - key: "titleText", - set: function set(titleText) { - this.tag('Label').text = titleText; - } - }], [{ - key: "_template", - value: function _template() { - return { - Label: { - x: 75, - y: 22, - mount: 0.5, - color: 0xffffffff, - text: { - fontSize: 20 - } - } - }; - } - }]); - return Title; -}(_lightningjs_core__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.Component); -/** - * Stories for various versions of the component - */ -var Row = function Row(args) { - return /*#__PURE__*/function (_lng$Component2) { - _inherits(Row, _lng$Component2); - var _super4 = _createSuper(Row); - function Row() { - _classCallCheck(this, Row); - return _super4.apply(this, arguments); - } - _createClass(Row, null, [{ - key: "_template", - value: function _template() { - return { - Row: { - type: ___WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A, - w: (0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .getWidthByUpCount */ .cN)(_globals_context_index__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A.theme, 1), - items: createItems(_Button__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A, 12), - waitForDimensions: args.waitForDimensions - } - }; - } - }]); - return Row; - }(_lightningjs_core__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.Component); -}; -; -Row.args = sharedArgs; -Row.argTypes = sharedArgTypes; -var FocusHeightChange = function FocusHeightChange() { - return /*#__PURE__*/function (_lng$Component3) { - _inherits(FocusHeightChange, _lng$Component3); - var _super5 = _createSuper(FocusHeightChange); - function FocusHeightChange() { - _classCallCheck(this, FocusHeightChange); - return _super5.apply(this, arguments); - } - _createClass(FocusHeightChange, null, [{ - key: "_template", - value: function _template() { - return { - Row: { - type: ___WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A, - w: (0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .getWidthByUpCount */ .cN)(_globals_context_index__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A.theme, 1), - items: Array.apply(null, { - length: 5 - }).map(function () { - return { - type: ExpandingHeightButton, - title: 'Button', - w: 150, - h: 75 - }; - }) - } - }; - } - }]); - return FocusHeightChange; - }(_lightningjs_core__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.Component); -}; -; -var VaryingItemWidth = function VaryingItemWidth() { - return /*#__PURE__*/function (_lng$Component4) { - _inherits(VaryingItemWidth, _lng$Component4); - var _super6 = _createSuper(VaryingItemWidth); - function VaryingItemWidth() { - _classCallCheck(this, VaryingItemWidth); - return _super6.apply(this, arguments); - } - _createClass(VaryingItemWidth, null, [{ - key: "_template", - value: function _template() { - return { - Row: { - type: ___WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A, - w: (0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .getWidthByUpCount */ .cN)(_globals_context_index__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A.theme, 1), - items: createItems(_Button__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A, 10, { - fixed: true, - w: 200 + Math.floor(Math.random() * 100) - }) - } - }; - } - }]); - return VaryingItemWidth; - }(_lightningjs_core__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.Component); -}; -; -var ExpandableWidth = function ExpandableWidth() { - return /*#__PURE__*/function (_lng$Component5) { - _inherits(ExpandableWidth, _lng$Component5); - var _super7 = _createSuper(ExpandableWidth); - function ExpandableWidth() { - _classCallCheck(this, ExpandableWidth); - return _super7.apply(this, arguments); - } - _createClass(ExpandableWidth, null, [{ - key: "_template", - value: function _template() { - return { - Row: { - type: ___WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A, - w: (0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .getWidthByUpCount */ .cN)(_globals_context_index__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A.theme, 1), - items: createItems(ExpandingButton, 6) - } - }; - } - }]); - return ExpandableWidth; - }(_lightningjs_core__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.Component); -}; -; -var CenteredInParent = function CenteredInParent() { - return /*#__PURE__*/function (_lng$Component6) { - _inherits(CenteredInParent, _lng$Component6); - var _super8 = _createSuper(CenteredInParent); - function CenteredInParent() { - _classCallCheck(this, CenteredInParent); - return _super8.apply(this, arguments); - } - _createClass(CenteredInParent, null, [{ - key: "_template", - value: function _template() { - return { - Row: { - type: ___WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A, - autoResizeHeight: true, - w: (0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .getWidthByUpCount */ .cN)(_globals_context_index__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A.theme, 1), - items: [{ - type: _Column__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A, - autoResizeWidth: true, - autoResizeHeight: true, - items: createItems(_Button__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A, 3) - }, { - type: _Column__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A, - autoResizeWidth: true, - autoResizeHeight: true, - centerInParent: true, - items: createItems(_Button__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A, 1) - }] - } - }; - } - }]); - return CenteredInParent; - }(_lightningjs_core__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.Component); -}; -; -CenteredInParent.parameters = { - storyDetails: 'This Row has 2 Columns as items. The second Column with 1 Button as an item has the centerInParent property enabled so it is vertically centered in the Row.' -}; -var Plinko = function Plinko() { - return /*#__PURE__*/function (_lng$Component7) { - _inherits(Plinko, _lng$Component7); - var _super9 = _createSuper(Plinko); - function Plinko() { - _classCallCheck(this, Plinko); - return _super9.apply(this, arguments); - } - _createClass(Plinko, null, [{ - key: "_template", - value: function _template() { - var skipFocusButtons = createItems(_Button__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A, 3); - skipFocusButtons[1].skipFocus = true; - skipFocusButtons[1].title = 'Skip Focus'; - return { - Row: { - type: ___WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A, - w: (0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .getWidthByUpCount */ .cN)(_globals_context_index__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A.theme, 1), - autoResizeHeight: true, - plinko: true, - items: [{ - type: _Column__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A, - autoResizeWidth: true, - items: createItems(_Button__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A, 3) - }, { - type: _Column__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A, - autoResizeWidth: true, - items: skipFocusButtons - }, { - type: _Column__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A, - autoResizeWidth: true, - items: createItems(_Button__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A, 3) - }, { - type: _Column__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A, - autoResizeWidth: true, - items: createItems(_Button__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A, 3) - }] - } - }; - } - }]); - return Plinko; - }(_lightningjs_core__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.Component); -}; -; -var SkipFocus = function SkipFocus(args) { - return /*#__PURE__*/function (_lng$Component8) { - _inherits(SkipFocus, _lng$Component8); - var _super10 = _createSuper(SkipFocus); - function SkipFocus() { - _classCallCheck(this, SkipFocus); - return _super10.apply(this, arguments); - } - _createClass(SkipFocus, null, [{ - key: "_template", - value: function _template() { - return { - Row: { - type: ___WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A, - w: (0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .getWidthByUpCount */ .cN)(_globals_context_index__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A.theme, 1), - wrapSelected: args.wrapSelected, - items: [].concat(_toConsumableArray(Array.apply(null, { - length: 13 - }).map(function (_, i) { - if (i % 4 === 0) return { - type: Title, - titleText: 'Skip Focus Text', - skipFocus: true - }; - return { - type: _Button__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A, - title: 'Button' - }; - })), [{ - type: Title, - titleText: 'Skip Focus Text', - skipFocus: true - }]) - } - }; - } - }]); - return SkipFocus; - }(_lightningjs_core__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.Component); -}; -; -SkipFocus.args = { - wrapSelected: false -}; -SkipFocus.argTypes = { - wrapSelected: { - control: 'boolean', - description: 'Enables wrapping behavior, so selectNext() selects the first item if the current item is the last on the list and vice versa', - table: { - defaultValue: { - summary: false - } - } - } -}; -var LazyScrollIndexes = function LazyScrollIndexes(_ref) { - var startLazyScrollIndex = _ref.startLazyScrollIndex, - stopLazyScrollIndex = _ref.stopLazyScrollIndex, - waitForDimensions = _ref.waitForDimensions; - return /*#__PURE__*/function (_lng$Component9) { - _inherits(LazyScrollIndexes, _lng$Component9); - var _super11 = _createSuper(LazyScrollIndexes); - function LazyScrollIndexes() { - _classCallCheck(this, LazyScrollIndexes); - return _super11.apply(this, arguments); - } - _createClass(LazyScrollIndexes, null, [{ - key: "_template", - value: function _template() { - return { - Row: { - type: ___WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A, - w: (0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .getWidthByUpCount */ .cN)(_globals_context_index__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A.theme, 1), - items: Array.apply(null, { - length: 12 - }).map(function (_, i) { - return { - type: _Button__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A, - title: "Button ".concat(i + 1, " ").concat(i === startLazyScrollIndex ? '(start lazy scroll)' : '', " ").concat(i === stopLazyScrollIndex ? '(stop lazy scroll)' : '') - }; - }), - startLazyScrollIndex: startLazyScrollIndex, - stopLazyScrollIndex: stopLazyScrollIndex, - waitForDimensions: waitForDimensions - } - }; - } - }]); - return LazyScrollIndexes; - }(_lightningjs_core__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.Component); -}; -; -LazyScrollIndexes.args = _objectSpread(_objectSpread({}, sharedArgs), {}, { - lazyScroll: true, - startLazyScrollIndex: 1, - stopLazyScrollIndex: 10 -}); -LazyScrollIndexes.argTypes = _objectSpread(_objectSpread({}, sharedArgTypes), {}, { - startLazyScrollIndex: { - control: 'number', - description: 'Index of item in items, and items thereafter, at which lazy scrolling should occur at', - table: { - defaultValue: { - summary: 0 - } - } - }, - stopLazyScrollIndex: { - control: 'number', - description: 'Index of item in items, and items preceding, at which lazy scrolling should occur', - table: { - defaultValue: { - summary: 0 - } - } - } -}); -LazyScrollIndexes.parameters = { - storyDetails: 'Items before the item at startLazyScrollIndex and after the item at stopLazyScrollIndex will use alwaysScroll. Items at and between startLazyScrollIndex and stopLazyScrollIndex will use lazyScroll.' -}; -var AddingItems = function AddingItems(args) { - return /*#__PURE__*/function (_lng$Component10) { - _inherits(AddingItems, _lng$Component10); - var _super12 = _createSuper(AddingItems); - function AddingItems() { - _classCallCheck(this, AddingItems); - return _super12.apply(this, arguments); - } - _createClass(AddingItems, [{ - key: "prependButton", - value: function prependButton() { - this.tag('Row').prependItems([{ - type: _Button__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A, - title: 'Prepended Button' - }]); - } - }, { - key: "appendButtonAt", - value: function appendButtonAt() { - this.tag('Row').appendItemsAt([{ - type: _Button__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A, - title: 'Appended Button at index 1' - }], 1); - } - }, { - key: "appendButton", - value: function appendButton() { - this.tag('Row').appendItems([{ - type: _Button__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A, - title: 'Appended Button' - }]); - } - }], [{ - key: "_template", - value: function _template() { - return { - Row: { - type: ___WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A, - w: (0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .getWidthByUpCount */ .cN)(_globals_context_index__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A.theme, 1), - // x offset from preview.js * 2 - lazyUpCount: args.lazyUpCount, - lazyUpCountBuffer: args.lazyUpCountBuffer, - waitForDimensions: args.waitForDimensions, - signals: { - append: 'appendButton', - appendAt: 'appendButtonAt', - prepend: 'prependButton' - }, - items: [{ - type: _docs_story_components__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A, - title: 'Prepend 1 Button (prependItems)', - signalName: 'prepend', - passSignals: { - prepend: true - } - }, { - type: _docs_story_components__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A, - title: 'Append 1 Button at index 1 (appendItemsAt)', - signalName: 'appendAt', - passSignals: { - appendAt: true - } - }, { - type: _docs_story_components__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A, - title: 'Append 1 Button to the Row (appendItems)', - signalName: 'append', - passSignals: { - append: true - } - }] - } - }; - } - }]); - return AddingItems; - }(_lightningjs_core__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.Component); -}; -; -AddingItems.args = _objectSpread(_objectSpread({}, sharedArgs), {}, { - lazyUpCountBuffer: 2 -}); -AddingItems.argTypes = _objectSpread(_objectSpread({}, sharedArgTypes), {}, { - lazyUpCount: { - control: 'number', - description: 'Used to calculate the number of items to display on the first render, see [Docs](?path=/docs/components-navigationmanager--docs#properties) for more details.
**NOTE: changing this value requires refreshing the story to see its effect.**', - table: { - defaultValue: { - summary: 'undefined' - } - } - }, - lazyUpCountBuffer: { - control: 'number', - description: 'Used to calculate the number of items to display on the first render, see [Docs](?path=/docs/components-navigationmanager--docs#properties) for more details.
**NOTE: changing this value requires refreshing the story to see its effect.**', - table: { - defaultValue: { - summary: 2 - } - } - } -}); -AddingItems.parameters = { - storyDetails: 'The 3 buttons initially rendered in this story are configured to invoke 1 of the 3 methods available to add items to a Row (the name of the method used is in parenthesis on the button). Press enter on any of those 3 buttons to invoke that method and add a button to the Row.' -}; -var LazyUpCount = function LazyUpCount(args) { - return /*#__PURE__*/function (_lng$Component11) { - _inherits(LazyUpCount, _lng$Component11); - var _super13 = _createSuper(LazyUpCount); - function LazyUpCount() { - _classCallCheck(this, LazyUpCount); - return _super13.apply(this, arguments); - } - _createClass(LazyUpCount, null, [{ - key: "_template", - value: function _template() { - return { - Row: { - type: ___WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A, - w: (0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .getWidthByUpCount */ .cN)(_globals_context_index__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A.theme, 1), - // x offset from preview.js * 2 - lazyUpCount: args.lazyUpCount, - lazyUpCountBuffer: args.lazyUpCountBuffer, - items: createItems(_Button__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A, 12), - waitForDimensions: args.waitForDimensions - } - }; - } - }]); - return LazyUpCount; - }(_lightningjs_core__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.Component); -}; -; -LazyUpCount.args = _objectSpread(_objectSpread({}, sharedArgs), {}, { - lazyUpCount: 5, - lazyUpCountBuffer: 2 -}); -LazyUpCount.argTypes = _objectSpread(_objectSpread({}, sharedArgTypes), {}, { - lazyUpCount: { - control: 'number', - description: 'Used to calculate the number of items to display on the first render, see [Docs](?path=/docs/components-navigationmanager--docs#properties) for more details.
**NOTE: changing this value requires refreshing the story to see its effect.**', - table: { - defaultValue: { - summary: 'undefined' - } - } - }, - lazyUpCountBuffer: { - control: 'number', - description: 'Used to calculate the number of items to display on the first render, see [Docs](?path=/docs/components-navigationmanager--docs#properties) for more details.
**NOTE: changing this value requires refreshing the story to see its effect.**', - table: { - defaultValue: { - summary: 2 - } - } - } -}); -LazyUpCount.parameters = { - storyDetails: 'There are 12 items passed to this Row. The number of items that are initially rendered equals the sum of the lazyUpCount and the lazyUpCountBuffer properties. Each time the next item is selected, an additional item is added to the end of the Row until all 12 items have been rendered.' -}; -var RemovingItems = function RemovingItems(args) { - return /*#__PURE__*/function (_lng$Component12) { - _inherits(RemovingItems, _lng$Component12); - var _super14 = _createSuper(RemovingItems); - function RemovingItems() { - _classCallCheck(this, RemovingItems); - return _super14.apply(this, arguments); - } - _createClass(RemovingItems, [{ - key: "removeButton", - value: function removeButton() { - this.tag('Row').removeItemAt(2); - } - }], [{ - key: "_template", - value: function _template() { - return { - Row: { - type: ___WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A, - w: (0,_utils__WEBPACK_IMPORTED_MODULE_4__/* .getWidthByUpCount */ .cN)(_globals_context_index__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A.theme, 1), - // x offset from preview.js * 2 - waitForDimensions: args.waitForDimensions, - signals: { - removeAt: 'removeButton' - }, - items: [].concat(_toConsumableArray(createItems(_Button__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A, 2)), [{ - type: _docs_story_components__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A, - title: 'Press Enter on this button to remove it (removeItemAt)', - signalName: 'removeAt', - passSignals: { - removeAt: true - } - }]) - } - }; - } - }]); - return RemovingItems; - }(_lightningjs_core__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.Component); -}; -RemovingItems.args = _objectSpread({}, sharedArgs); -RemovingItems.argTypes = _objectSpread({}, sharedArgTypes); -RemovingItems.parameters = { - storyDetails: 'The third button in this row is configured to invoke removeItemAt to remove that button. Focus on that button and press Enter to invoke that method and remove the button from the row.' -}; -Row.parameters = { - ...Row.parameters, - docs: { - ...Row.parameters?.docs, - source: { - originalSource: "args => class Row extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1),\n items: createItems(Button, 12),\n waitForDimensions: args.waitForDimensions\n }\n };\n }\n}", - ...Row.parameters?.docs?.source - }, - description: { - story: "Stories for various versions of the component", - ...Row.parameters?.docs?.description - } - } -}; -FocusHeightChange.parameters = { - ...FocusHeightChange.parameters, - docs: { - ...FocusHeightChange.parameters?.docs, - source: { - originalSource: "() => class FocusHeightChange extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1),\n items: Array.apply(null, {\n length: 5\n }).map(() => ({\n type: ExpandingHeightButton,\n title: 'Button',\n w: 150,\n h: 75\n }))\n }\n };\n }\n}", - ...FocusHeightChange.parameters?.docs?.source - } - } -}; -VaryingItemWidth.parameters = { - ...VaryingItemWidth.parameters, - docs: { - ...VaryingItemWidth.parameters?.docs, - source: { - originalSource: "() => class VaryingItemWidth extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1),\n items: createItems(Button, 10, {\n fixed: true,\n w: 200 + Math.floor(Math.random() * 100)\n })\n }\n };\n }\n}", - ...VaryingItemWidth.parameters?.docs?.source - } - } -}; -ExpandableWidth.parameters = { - ...ExpandableWidth.parameters, - docs: { - ...ExpandableWidth.parameters?.docs, - source: { - originalSource: "() => class ExpandableWidth extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1),\n items: createItems(ExpandingButton, 6)\n }\n };\n }\n}", - ...ExpandableWidth.parameters?.docs?.source - } - } -}; -CenteredInParent.parameters = { - ...CenteredInParent.parameters, - docs: { - ...CenteredInParent.parameters?.docs, - source: { - originalSource: "() => class CenteredInParent extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n autoResizeHeight: true,\n w: getWidthByUpCount(context.theme, 1),\n items: [{\n type: Column,\n autoResizeWidth: true,\n autoResizeHeight: true,\n items: createItems(Button, 3)\n }, {\n type: Column,\n autoResizeWidth: true,\n autoResizeHeight: true,\n centerInParent: true,\n items: createItems(Button, 1)\n }]\n }\n };\n }\n}", - ...CenteredInParent.parameters?.docs?.source - } - } -}; -Plinko.parameters = { - ...Plinko.parameters, - docs: { - ...Plinko.parameters?.docs, - source: { - originalSource: "() => {\n return class Plinko extends lng.Component {\n static _template() {\n const skipFocusButtons = createItems(Button, 3);\n skipFocusButtons[1].skipFocus = true;\n skipFocusButtons[1].title = 'Skip Focus';\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1),\n autoResizeHeight: true,\n plinko: true,\n items: [{\n type: Column,\n autoResizeWidth: true,\n items: createItems(Button, 3)\n }, {\n type: Column,\n autoResizeWidth: true,\n items: skipFocusButtons\n }, {\n type: Column,\n autoResizeWidth: true,\n items: createItems(Button, 3)\n }, {\n type: Column,\n autoResizeWidth: true,\n items: createItems(Button, 3)\n }]\n }\n };\n }\n };\n}", - ...Plinko.parameters?.docs?.source - } - } -}; -SkipFocus.parameters = { - ...SkipFocus.parameters, - docs: { - ...SkipFocus.parameters?.docs, - source: { - originalSource: "args => class SkipFocus extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1),\n wrapSelected: args.wrapSelected,\n items: [...Array.apply(null, {\n length: 13\n }).map((_, i) => {\n if (i % 4 === 0) return {\n type: Title,\n titleText: 'Skip Focus Text',\n skipFocus: true\n };\n return {\n type: Button,\n title: 'Button'\n };\n }), {\n type: Title,\n titleText: 'Skip Focus Text',\n skipFocus: true\n }]\n }\n };\n }\n}", - ...SkipFocus.parameters?.docs?.source - } - } -}; -LazyScrollIndexes.parameters = { - ...LazyScrollIndexes.parameters, - docs: { - ...LazyScrollIndexes.parameters?.docs, - source: { - originalSource: "({\n startLazyScrollIndex,\n stopLazyScrollIndex,\n waitForDimensions\n}) => class LazyScrollIndexes extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1),\n items: Array.apply(null, {\n length: 12\n }).map((_, i) => ({\n type: Button,\n title: `Button ${i + 1} ${i === startLazyScrollIndex ? '(start lazy scroll)' : ''} ${i === stopLazyScrollIndex ? '(stop lazy scroll)' : ''}`\n })),\n startLazyScrollIndex,\n stopLazyScrollIndex,\n waitForDimensions: waitForDimensions\n }\n };\n }\n}", - ...LazyScrollIndexes.parameters?.docs?.source - } - } -}; -AddingItems.parameters = { - ...AddingItems.parameters, - docs: { - ...AddingItems.parameters?.docs, - source: { - originalSource: "args => class AddingItems extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1),\n // x offset from preview.js * 2\n lazyUpCount: args.lazyUpCount,\n lazyUpCountBuffer: args.lazyUpCountBuffer,\n waitForDimensions: args.waitForDimensions,\n signals: {\n append: 'appendButton',\n appendAt: 'appendButtonAt',\n prepend: 'prependButton'\n },\n items: [{\n type: SignalButton,\n title: 'Prepend 1 Button (prependItems)',\n signalName: 'prepend',\n passSignals: {\n prepend: true\n }\n }, {\n type: SignalButton,\n title: 'Append 1 Button at index 1 (appendItemsAt)',\n signalName: 'appendAt',\n passSignals: {\n appendAt: true\n }\n }, {\n type: SignalButton,\n title: 'Append 1 Button to the Row (appendItems)',\n signalName: 'append',\n passSignals: {\n append: true\n }\n }]\n }\n };\n }\n prependButton() {\n this.tag('Row').prependItems([{\n type: Button,\n title: 'Prepended Button'\n }]);\n }\n appendButtonAt() {\n this.tag('Row').appendItemsAt([{\n type: Button,\n title: 'Appended Button at index 1'\n }], 1);\n }\n appendButton() {\n this.tag('Row').appendItems([{\n type: Button,\n title: 'Appended Button'\n }]);\n }\n}", - ...AddingItems.parameters?.docs?.source - } - } -}; -LazyUpCount.parameters = { - ...LazyUpCount.parameters, - docs: { - ...LazyUpCount.parameters?.docs, - source: { - originalSource: "args => class LazyUpCount extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1),\n // x offset from preview.js * 2\n lazyUpCount: args.lazyUpCount,\n lazyUpCountBuffer: args.lazyUpCountBuffer,\n items: createItems(Button, 12),\n waitForDimensions: args.waitForDimensions\n }\n };\n }\n}", - ...LazyUpCount.parameters?.docs?.source - } - } -}; -RemovingItems.parameters = { - ...RemovingItems.parameters, - docs: { - ...RemovingItems.parameters?.docs, - source: { - originalSource: "args => class RemovingItems extends lng.Component {\n static _template() {\n return {\n Row: {\n type: RowComponent,\n w: getWidthByUpCount(context.theme, 1),\n // x offset from preview.js * 2\n waitForDimensions: args.waitForDimensions,\n signals: {\n removeAt: 'removeButton'\n },\n items: [...createItems(Button, 2), {\n type: SignalButton,\n title: 'Press Enter on this button to remove it (removeItemAt)',\n signalName: 'removeAt',\n passSignals: {\n removeAt: true\n }\n }]\n }\n };\n }\n removeButton() {\n this.tag('Row').removeItemAt(2);\n }\n}", - ...RemovingItems.parameters?.docs?.source - } - } -};;const __namedExportsOrder = ["Row","FocusHeightChange","VaryingItemWidth","ExpandableWidth","CenteredInParent","Plinko","SkipFocus","LazyScrollIndexes","AddingItems","LazyUpCount","RemovingItems"]; - -/***/ }), - -/***/ "../../@lightningjs/ui-components/src/docs/story-components/SignalButton.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ A: () => (/* binding */ SignalButton) -/* harmony export */ }); -/* harmony import */ var _components_Button_Button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Button/Button.js"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } - -var SignalButton = /*#__PURE__*/function (_Button) { - _inherits(SignalButton, _Button); - var _super = _createSuper(SignalButton); - function SignalButton() { - _classCallCheck(this, SignalButton); - return _super.apply(this, arguments); - } - _createClass(SignalButton, [{ - key: "onEnter", - value: function onEnter() { - this.signal(this.signalName); - } - }, { - key: "signalName", - get: function get() { - return this._signalName; - }, - set: function set(signalName) { - this._signalName = signalName; - } - }]); - return SignalButton; -}(_components_Button_Button__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A); - - -/***/ }), - -/***/ "../../@lightningjs/ui-components/src/docs/utils.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Pg: () => (/* binding */ createModeControl), -/* harmony export */ cY: () => (/* binding */ DocsLink), -/* harmony export */ jb: () => (/* binding */ generateSubStory) -/* harmony export */ }); -/* unused harmony exports nestedArgs, nestedArgTypes, prevValues, nestedArgActions, Item, ObjectFormat, GenericType */ -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/react/index.js"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } -function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - -// eslint-disable-next-line no-unused-vars - - - -// creates Mode control on stories -var createModeControl = function createModeControl() { - var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, - options = _ref.options, - summaryValue = _ref.summaryValue; - return { - mode: { - control: 'radio', - options: options && Array.isArray(options) ? ['unfocused'].concat(_toConsumableArray(options)) : ['unfocused', 'focused', 'disabled'], - description: 'Sets the visual mode for the component', - table: { - defaultValue: { - summary: summaryValue - } - }, - type: { - name: 'string', - required: true - } - } - }; -}; - -/** - * @param {object} config Parameters for generating nested args: { argsObj, targetProp, include, overrides } - */ -function nestedArgs(config) { - var argsObj = config.argsObj, - targetProp = config.targetProp, - include = config.include, - overrides = config.overrides; - return Object.keys(argsObj).reduce(function (acc, curr) { - if (!include.includes(curr)) return acc; - return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, targetProp + '_' + curr, overrides.args && overrides.args[curr] || argsObj[curr])); - }, {}); -} - -/** - * @param {object} config Parameters for generating nested arg types: { argsObj, targetProp, include, overrides } - */ -function nestedArgTypes(config) { - var argTypesObj = config.argTypesObj, - targetProp = config.targetProp, - include = config.include, - overrides = config.overrides; - return Object.keys(argTypesObj).reduce(function (acc, curr) { - if (!include.includes(curr)) return acc; - return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, targetProp + '_' + curr, _objectSpread(_objectSpread(_objectSpread({ - // Namespaced to avoid conflicts - name: curr - }, argTypesObj[curr]), overrides[curr]), {}, { - table: _objectSpread(_objectSpread(_objectSpread({}, argTypesObj[curr].table || {}), overrides[curr] && overrides[curr].table), {}, { - category: targetProp - }) - }))); - }, {}); -} -var prevValues = {}; - -/** - * @param {object} config Parameters for generating nested arg actions: { componentName, argsTypeObj, targetProp, include, overrides } - */ -function nestedArgActions(config) { - var componentName = config.componentName, - argTypesObj = config.argTypesObj, - targetProp = config.targetProp, - include = config.include, - overrides = config.overrides; - return Object.keys(argTypesObj).reduce(function (acc, curr) { - if (!include.includes(curr)) return acc; - return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, targetProp + '_' + curr, function (value, component) { - component.tag(componentName).patch(_defineProperty({}, targetProp, _objectSpread(_objectSpread({}, prevValues[targetProp]), {}, _defineProperty({}, curr.replace(targetProp + '_', ''), value === 'none' ? undefined : overrides && overrides[curr] || value)))); - // Allow patching to work with nested objects - if (!prevValues[targetProp]) { - prevValues[targetProp] = {}; - } - prevValues[targetProp][curr.replace(targetProp + '_', '')] = value === 'none' ? undefined : overrides && overrides[curr] || value; - })); - }, {}); -} - -/** - * @param {object} config Parameters for generating story: { componentName, baseStory, subStory, targetProperty, include, options } - */ -function generateSubStory(config) { - config.baseStory.args = _objectSpread(_objectSpread({}, config.baseStory.args), nestedArgs({ - argsObj: config.subStory.args || {}, - targetProp: config.targetProperty, - include: config.include, - overrides: config.overrides && config.overrides.args || {} - })); - config.baseStory.argTypes = _objectSpread(_objectSpread({}, config.baseStory.argTypes), nestedArgTypes({ - argTypesObj: config.subStory.argTypes || {}, - targetProp: config.targetProperty, - include: config.include, - overrides: config.overrides && config.overrides.argTypes || {} - })); - if (!(config.baseStory && config.baseStory.parameters && config.baseStory.parameters.argActions)) { - config.baseStory.parameters = { - argActions: {} - }; - } - config.baseStory.parameters.argActions = _objectSpread(_objectSpread({}, config.baseStory.parameters.argActions), nestedArgActions({ - componentName: config.componentName, - argTypesObj: config.subStory.argTypes || {}, - targetProp: config.targetProperty, - include: config.include, - overrides: config.overrides && config.overrides.argActions || {} - })); -} - -// used to create links to Lightning docs given an id -var DocsLink = function DocsLink(_ref2) { - var children = _ref2.children, - id = _ref2.id; - var docsmap = { - lng: { - _base: 'https://rdkcentral.github.io/Lightning/docs', - Component: '/components/overview', - Text: '/textures/text', - Transition: '/transitions/attributes' - } - }; - var _id$split = id.split('.'), - _id$split2 = _slicedToArray(_id$split, 2), - source = _id$split2[0], - path = _id$split2[1]; - var href = docsmap[source]._base + docsmap[source][path]; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("a", { - href: href, - target: "_blank" - }, children || id); -}; -var Item = function Item(_ref3) { - var children = _ref3.children; - return children; -}; - -/** - * Creates formatted object for markdown prop tables - * see Column and Row stories - * @param {object} props - * @param {object} props.type - TS-style generic/utility type - */ -var ObjectFormat = function ObjectFormat(_ref4) { - var object = _ref4.object; - return ['{', /*#__PURE__*/React.createElement("br", null), ' '].concat(_toConsumableArray(utils.flatten(Object.entries(object).map(function (_ref5) { - var _ref6 = _slicedToArray(_ref5, 2), - k = _ref6[0], - v = _ref6[1]; - return [/*#__PURE__*/React.createElement("span", null, "\xA0\xA0"), "".concat(k, ": "), v, ',', /*#__PURE__*/React.createElement("br", null)]; - }))), ['}']).map(function (x, i) { - return /*#__PURE__*/React.createElement(Item, { - key: i - }, x); - }); -}; - -/** - * Formats TS-style generic types - * See Columns and Row stories - * @param {object} props - * @param {object} props.children - component children - * @param {string} props.type - Name of generic type - */ -var GenericType = function GenericType(_ref7) { - var children = _ref7.children, - type = _ref7.type; - return [type, '<', children, '>'].map(function (x, i) { - return /*#__PURE__*/React.createElement(Item, { - key: i - }, x); - }); -}; - -/***/ }) - -}]); -//# sourceMappingURL=231.52f9935b.iframe.bundle.js.map \ No newline at end of file diff --git a/231.52f9935b.iframe.bundle.js.map b/231.52f9935b.iframe.bundle.js.map deleted file mode 100644 index 5b908289e..000000000 --- a/231.52f9935b.iframe.bundle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"231.52f9935b.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;AC56CA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA;AACA;AAAA;AAAA;AAAA;AAKA;AACA;AAAA;AAJA;AACA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAKA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAGA;AACA;AAAA;AAGA;AAGA;AAAA;AACA;AAGA;AACA;AAEA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAGA;AASA;AACA;AACA;AACA;AACA;AAIA;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAGA;AAGA;AACA;AACA;AACA;AACA;AAGA;AAOA;AACA;AACA;AACA;AAEA;AAGA;AACA;AACA;AACA;AACA;AACA;AAEA;;AAEA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAIA;AAEA;AAAA;AAAA;AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAKA;AAAA;AAAA;AAAA;AAMA;AAGA;AAAA;AAAA;AAAA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AACA","sources":["webpack://lightning-ui-docs/","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/docs/story-components/SignalButton.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/docs/utils.js"],"sourcesContent":[null,"import Button from '../../components/Button/Button';\n\nexport default class SignalButton extends Button {\n onEnter() {\n this.signal(this.signalName);\n }\n set signalName(signalName) {\n this._signalName = signalName;\n }\n get signalName() {\n return this._signalName;\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// eslint-disable-next-line no-unused-vars\nimport React from 'react';\nimport utils from '../utils';\n\n// creates Mode control on stories\nexport const createModeControl = ({ options, summaryValue } = {}) => {\n return {\n mode: {\n control: 'radio',\n options:\n options && Array.isArray(options)\n ? ['unfocused', ...options]\n : ['unfocused', 'focused', 'disabled'],\n description: 'Sets the visual mode for the component',\n table: {\n defaultValue: { summary: summaryValue }\n },\n type: { name: 'string', required: true }\n }\n };\n};\n\n/**\n * @param {object} config Parameters for generating nested args: { argsObj, targetProp, include, overrides }\n */\nexport function nestedArgs(config) {\n const { argsObj, targetProp, include, overrides } = config;\n return Object.keys(argsObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]:\n (overrides.args && overrides.args[curr]) || argsObj[curr]\n };\n }, {});\n}\n\n/**\n * @param {object} config Parameters for generating nested arg types: { argsObj, targetProp, include, overrides }\n */\nexport function nestedArgTypes(config) {\n const { argTypesObj, targetProp, include, overrides } = config;\n return Object.keys(argTypesObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]: {\n // Namespaced to avoid conflicts\n name: curr,\n ...argTypesObj[curr],\n ...overrides[curr],\n table: {\n ...(argTypesObj[curr].table || {}),\n ...(overrides[curr] && overrides[curr].table),\n category: targetProp\n }\n }\n };\n }, {});\n}\n\nexport const prevValues = {};\n\n/**\n * @param {object} config Parameters for generating nested arg actions: { componentName, argsTypeObj, targetProp, include, overrides }\n */\nexport function nestedArgActions(config) {\n const { componentName, argTypesObj, targetProp, include, overrides } = config;\n return Object.keys(argTypesObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]: (value, component) => {\n component.tag(componentName).patch({\n [targetProp]: {\n ...prevValues[targetProp],\n [curr.replace(targetProp + '_', '')]:\n value === 'none'\n ? undefined\n : (overrides && overrides[curr]) || value // There are issues with merging objects here\n }\n });\n // Allow patching to work with nested objects\n if (!prevValues[targetProp]) {\n prevValues[targetProp] = {};\n }\n prevValues[targetProp][curr.replace(targetProp + '_', '')] =\n value === 'none'\n ? undefined\n : (overrides && overrides[curr]) || value;\n }\n };\n }, {});\n}\n\n/**\n * @param {object} config Parameters for generating story: { componentName, baseStory, subStory, targetProperty, include, options }\n */\nexport function generateSubStory(config) {\n config.baseStory.args = {\n ...config.baseStory.args,\n ...nestedArgs({\n argsObj: config.subStory.args || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.args) || {}\n })\n };\n\n config.baseStory.argTypes = {\n ...config.baseStory.argTypes,\n ...nestedArgTypes({\n argTypesObj: config.subStory.argTypes || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.argTypes) || {}\n })\n };\n\n if (\n !(\n config.baseStory &&\n config.baseStory.parameters &&\n config.baseStory.parameters.argActions\n )\n ) {\n config.baseStory.parameters = {\n argActions: {}\n };\n }\n\n config.baseStory.parameters.argActions = {\n ...config.baseStory.parameters.argActions,\n ...nestedArgActions({\n componentName: config.componentName,\n argTypesObj: config.subStory.argTypes || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.argActions) || {}\n })\n };\n}\n\n// used to create links to Lightning docs given an id\nexport const DocsLink = ({ children, id }) => {\n const docsmap = {\n lng: {\n _base: 'https://rdkcentral.github.io/Lightning/docs',\n Component: '/components/overview',\n Text: '/textures/text',\n Transition: '/transitions/attributes'\n }\n };\n const [source, path] = id.split('.');\n const href = docsmap[source]._base + docsmap[source][path];\n return (\n \n {children || id}\n \n );\n};\n\nexport const Item = ({ children }) => children;\n\n/**\n * Creates formatted object for markdown prop tables\n * see Column and Row stories\n * @param {object} props\n * @param {object} props.type - TS-style generic/utility type\n */\nexport const ObjectFormat = ({ object }) => {\n return [\n '{',\n
,\n ' ',\n ...utils.flatten(\n Object.entries(object).map(([k, v]) => [\n   ,\n `${k}: `,\n v,\n ',',\n
\n ])\n ),\n '}'\n ].map((x, i) => {x});\n};\n\n/**\n * Formats TS-style generic types\n * See Columns and Row stories\n * @param {object} props\n * @param {object} props.children - component children\n * @param {string} props.type - Name of generic type\n */\nexport const GenericType = ({ children, type }) => {\n return [type, '<', children, '>'].map((x, i) => {x});\n};\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/9215.80fe1651.iframe.bundle.js b/2363.03cd08dc.iframe.bundle.js similarity index 51% rename from 9215.80fe1651.iframe.bundle.js rename to 2363.03cd08dc.iframe.bundle.js index b1315843b..463396c6b 100644 --- a/9215.80fe1651.iframe.bundle.js +++ b/2363.03cd08dc.iframe.bundle.js @@ -1,427 +1,5 @@ "use strict"; -(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[9215],{ - -/***/ "../../@lightningjs/ui-components/src/components/Input/Input.stories.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Input: () => (/* binding */ Input), -/* harmony export */ __namedExportsOrder: () => (/* binding */ __namedExportsOrder), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); -/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Input/Input.js"); -/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Icon/Icon.js"); -/* harmony import */ var _docs_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("../../@lightningjs/ui-components/src/docs/utils.js"); -/* harmony import */ var _assets_images_ic_lightning_white_32_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("../../@lightningjs/ui-components/src/assets/images/ic_lightning_white_32.png"); -/* harmony import */ var _assets_images_ic_eye_white_48_png__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("../../@lightningjs/ui-components/src/assets/images/ic_eye_white_48.png"); -/* harmony import */ var _assets_images_ic_eyeHide_white_48_png__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("../../@lightningjs/ui-components/src/assets/images/ic_eyeHide_white_48.png"); -function _typeof(o) { - "@babel/helpers - typeof"; - - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { - return typeof o; - } : function (o) { - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; - }, _typeof(o); -} -function ownKeys(e, r) { - var t = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(e); - r && (o = o.filter(function (r) { - return Object.getOwnPropertyDescriptor(e, r).enumerable; - })), t.push.apply(t, o); - } - return t; -} -function _objectSpread(e) { - for (var r = 1; r < arguments.length; r++) { - var t = null != arguments[r] ? arguments[r] : {}; - r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { - _defineProperty(e, r, t[r]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); - }); - } - return e; -} -function _defineProperty(obj, key, value) { - key = _toPropertyKey(key); - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); - } -} -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { - writable: false - }); - return Constructor; -} -function _toPropertyKey(t) { - var i = _toPrimitive(t, "string"); - return "symbol" == _typeof(i) ? i : String(i); -} -function _toPrimitive(t, r) { - if ("object" != _typeof(t) || !t) return t; - var e = t[Symbol.toPrimitive]; - if (void 0 !== e) { - var i = e.call(t, r || "default"); - if ("object" != _typeof(i)) return i; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return ("string" === r ? String : Number)(t); -} -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { - writable: false - }); - if (superClass) _setPrototypeOf(subClass, superClass); -} -function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); -} -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); - }; -} -function _possibleConstructorReturn(self, call) { - if (call && (_typeof(call) === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { - throw new TypeError("Derived constructors may only return object or undefined"); - } - return _assertThisInitialized(self); -} -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - return self; -} -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; - } -} -function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); -} -/* eslint-disable */ -// @ts-nocheck -// @ts-expect-error (Converted from ts-ignore) -var __STORY__ = "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport { default as InputComponent } from '.';\nimport Icon from '../Icon';\nimport { createModeControl } from '../../docs/utils';\nimport lightning from '../../assets/images/ic_lightning_white_32.png';\nimport eye from '../../assets/images/ic_eye_white_48.png';\nimport eyeHide from '../../assets/images/ic_eyeHide_white_48.png';\n\nexport default {\n title: 'Components/Input'\n};\n\nfunction getComponentArray(comps) {\n let arr = [];\n switch (comps) {\n case 'icon':\n arr = [{ type: Icon, icon: lightning }];\n break;\n case 'eye':\n arr = [{ type: Icon, icon: eye, w: 30, h: 30 }];\n break;\n case 'eyeHide':\n arr = [{ type: Icon, icon: eyeHide, w: 30, h: 30 }];\n break;\n }\n return arr;\n}\n\nexport const Input = () =>\n class Input extends lng.Component {\n static _template() {\n return {\n Input: {\n type: InputComponent\n }\n };\n }\n\n _handleKey(event) {\n const { key } = event;\n if (key.length === 1) {\n this.tag('Input').insert(key);\n }\n if (key === 'Backspace') {\n this.tag('Input').backspace();\n }\n }\n };\n\nconst sharedArgs = {\n eyebrow: 'Eyebrow',\n helpText: 'Help Text',\n listening: false,\n password: false,\n mask: '•',\n prefix: null,\n suffix: null,\n mode: 'focused'\n};\nconst sharedArgTypes = {\n ...createModeControl({ summaryValue: sharedArgs.mode }),\n eyebrow: {\n control: 'text',\n description: 'Text on the top of the button ',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n helpText: {\n control: 'text',\n description: 'Text on the bottom of the button ',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n password: {\n control: 'boolean',\n description: 'When true the content will be masked to the user',\n table: {\n defaultValue: { summary: false }\n }\n },\n mask: {\n control: 'text',\n description: 'Character to use as a mask when password is true',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n listening: {\n control: 'boolean',\n description:\n 'When true cursor will be visible only in focused and unfocused mode and can edit the canvas',\n table: {\n defaultValue: { summary: false }\n }\n },\n prefix: {\n control: 'radio',\n options: [null, 'icon'],\n description: 'Lightning components to be placed to the left of the title',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n suffix: {\n control: 'radio',\n options: [null, 'icon', 'eye', 'eyeHide'],\n description: 'Lightning components to be placed to the right of the title',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n }\n};\n\nconst sharedArgActions = {\n listening: (isListening, component) => {\n component.tag('Input').listening = isListening;\n },\n password: (isPassword, component) => {\n component.tag('Input').password = isPassword;\n },\n prefix: (prefix, component) => {\n if (prefix == null) {\n component.tag('Input').prefix = [];\n } else {\n component.tag('Input').prefix = getComponentArray(prefix);\n }\n },\n suffix: (suffix, component) => {\n if (suffix == null) {\n component.tag('Input').suffix = [];\n } else {\n component.tag('Input').suffix = getComponentArray(suffix);\n }\n }\n};\nInput.args = sharedArgs;\nInput.argTypes = sharedArgTypes;\nInput.parameters = { argActions: sharedArgActions };\n"; -// @ts-expect-error (Converted from ts-ignore) -var __LOCATIONS_MAP__ = { - "Input": { - "startLoc": { - "col": 21, - "line": 47 - }, - "endLoc": { - "col": 3, - "line": 66 - }, - "startBody": { - "col": 21, - "line": 47 - }, - "endBody": { - "col": 3, - "line": 66 - } - } -}; - -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - - - - - - - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ - parameters: { - "storySource": { - "source": "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport { default as InputComponent } from '.';\nimport Icon from '../Icon';\nimport { createModeControl } from '../../docs/utils';\nimport lightning from '../../assets/images/ic_lightning_white_32.png';\nimport eye from '../../assets/images/ic_eye_white_48.png';\nimport eyeHide from '../../assets/images/ic_eyeHide_white_48.png';\n\nexport default {\n title: 'Components/Input'\n};\n\nfunction getComponentArray(comps) {\n let arr = [];\n switch (comps) {\n case 'icon':\n arr = [{ type: Icon, icon: lightning }];\n break;\n case 'eye':\n arr = [{ type: Icon, icon: eye, w: 30, h: 30 }];\n break;\n case 'eyeHide':\n arr = [{ type: Icon, icon: eyeHide, w: 30, h: 30 }];\n break;\n }\n return arr;\n}\n\nexport const Input = () =>\n class Input extends lng.Component {\n static _template() {\n return {\n Input: {\n type: InputComponent\n }\n };\n }\n\n _handleKey(event) {\n const { key } = event;\n if (key.length === 1) {\n this.tag('Input').insert(key);\n }\n if (key === 'Backspace') {\n this.tag('Input').backspace();\n }\n }\n };\n\nconst sharedArgs = {\n eyebrow: 'Eyebrow',\n helpText: 'Help Text',\n listening: false,\n password: false,\n mask: '•',\n prefix: null,\n suffix: null,\n mode: 'focused'\n};\nconst sharedArgTypes = {\n ...createModeControl({ summaryValue: sharedArgs.mode }),\n eyebrow: {\n control: 'text',\n description: 'Text on the top of the button ',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n helpText: {\n control: 'text',\n description: 'Text on the bottom of the button ',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n password: {\n control: 'boolean',\n description: 'When true the content will be masked to the user',\n table: {\n defaultValue: { summary: false }\n }\n },\n mask: {\n control: 'text',\n description: 'Character to use as a mask when password is true',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n listening: {\n control: 'boolean',\n description:\n 'When true cursor will be visible only in focused and unfocused mode and can edit the canvas',\n table: {\n defaultValue: { summary: false }\n }\n },\n prefix: {\n control: 'radio',\n options: [null, 'icon'],\n description: 'Lightning components to be placed to the left of the title',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n suffix: {\n control: 'radio',\n options: [null, 'icon', 'eye', 'eyeHide'],\n description: 'Lightning components to be placed to the right of the title',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n }\n};\n\nconst sharedArgActions = {\n listening: (isListening, component) => {\n component.tag('Input').listening = isListening;\n },\n password: (isPassword, component) => {\n component.tag('Input').password = isPassword;\n },\n prefix: (prefix, component) => {\n if (prefix == null) {\n component.tag('Input').prefix = [];\n } else {\n component.tag('Input').prefix = getComponentArray(prefix);\n }\n },\n suffix: (suffix, component) => {\n if (suffix == null) {\n component.tag('Input').suffix = [];\n } else {\n component.tag('Input').suffix = getComponentArray(suffix);\n }\n }\n};\nInput.args = sharedArgs;\nInput.argTypes = sharedArgTypes;\nInput.parameters = { argActions: sharedArgActions };\n", - "locationsMap": { - "input": { - "startLoc": { - "col": 21, - "line": 47 - }, - "endLoc": { - "col": 3, - "line": 66 - }, - "startBody": { - "col": 21, - "line": 47 - }, - "endBody": { - "col": 3, - "line": 66 - } - } - } - } - }, - title: 'Components/Input' -}); -function getComponentArray(comps) { - var arr = []; - switch (comps) { - case 'icon': - arr = [{ - type: _Icon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A, - icon: _assets_images_ic_lightning_white_32_png__WEBPACK_IMPORTED_MODULE_2__ - }]; - break; - case 'eye': - arr = [{ - type: _Icon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A, - icon: _assets_images_ic_eye_white_48_png__WEBPACK_IMPORTED_MODULE_3__, - w: 30, - h: 30 - }]; - break; - case 'eyeHide': - arr = [{ - type: _Icon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A, - icon: _assets_images_ic_eyeHide_white_48_png__WEBPACK_IMPORTED_MODULE_4__, - w: 30, - h: 30 - }]; - break; - } - return arr; -} -var Input = function Input() { - return /*#__PURE__*/function (_lng$Component) { - _inherits(Input, _lng$Component); - var _super = _createSuper(Input); - function Input() { - _classCallCheck(this, Input); - return _super.apply(this, arguments); - } - _createClass(Input, [{ - key: "_handleKey", - value: function _handleKey(event) { - var key = event.key; - if (key.length === 1) { - this.tag('Input').insert(key); - } - if (key === 'Backspace') { - this.tag('Input').backspace(); - } - } - }], [{ - key: "_template", - value: function _template() { - return { - Input: { - type: ___WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A - } - }; - } - }]); - return Input; - }(_lightningjs_core__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.Component); -}; -var sharedArgs = { - eyebrow: 'Eyebrow', - helpText: 'Help Text', - listening: false, - password: false, - mask: '•', - prefix: null, - suffix: null, - mode: 'focused' -}; -var sharedArgTypes = _objectSpread(_objectSpread({}, (0,_docs_utils__WEBPACK_IMPORTED_MODULE_6__/* .createModeControl */ .Pg)({ - summaryValue: sharedArgs.mode -})), {}, { - eyebrow: { - control: 'text', - description: 'Text on the top of the button ', - table: { - defaultValue: { - summary: 'undefined' - } - } - }, - helpText: { - control: 'text', - description: 'Text on the bottom of the button ', - table: { - defaultValue: { - summary: 'undefined' - } - } - }, - password: { - control: 'boolean', - description: 'When true the content will be masked to the user', - table: { - defaultValue: { - summary: false - } - } - }, - mask: { - control: 'text', - description: 'Character to use as a mask when password is true', - table: { - defaultValue: { - summary: 'undefined' - } - } - }, - listening: { - control: 'boolean', - description: 'When true cursor will be visible only in focused and unfocused mode and can edit the canvas', - table: { - defaultValue: { - summary: false - } - } - }, - prefix: { - control: 'radio', - options: [null, 'icon'], - description: 'Lightning components to be placed to the left of the title', - table: { - defaultValue: { - summary: 'undefined' - } - } - }, - suffix: { - control: 'radio', - options: [null, 'icon', 'eye', 'eyeHide'], - description: 'Lightning components to be placed to the right of the title', - table: { - defaultValue: { - summary: 'undefined' - } - } - } -}); -var sharedArgActions = { - listening: function listening(isListening, component) { - component.tag('Input').listening = isListening; - }, - password: function password(isPassword, component) { - component.tag('Input').password = isPassword; - }, - prefix: function prefix(_prefix, component) { - if (_prefix == null) { - component.tag('Input').prefix = []; - } else { - component.tag('Input').prefix = getComponentArray(_prefix); - } - }, - suffix: function suffix(_suffix, component) { - if (_suffix == null) { - component.tag('Input').suffix = []; - } else { - component.tag('Input').suffix = getComponentArray(_suffix); - } - } -}; -Input.args = sharedArgs; -Input.argTypes = sharedArgTypes; -Input.parameters = { - argActions: sharedArgActions -}; -Input.parameters = { - ...Input.parameters, - docs: { - ...Input.parameters?.docs, - source: { - originalSource: "() => class Input extends lng.Component {\n static _template() {\n return {\n Input: {\n type: InputComponent\n }\n };\n }\n _handleKey(event) {\n const {\n key\n } = event;\n if (key.length === 1) {\n this.tag('Input').insert(key);\n }\n if (key === 'Backspace') {\n this.tag('Input').backspace();\n }\n }\n}", - ...Input.parameters?.docs?.source - } - } -};;const __namedExportsOrder = ["Input"]; - -/***/ }), +(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[2363],{ /***/ "../../@lightningjs/ui-components/src/components/Input/Input.js": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -447,8 +25,8 @@ var utils = __webpack_require__("../../@lightningjs/ui-components/src/utils/inde function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } +function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** * Copyright 2023 Comcast Cable Communications Management, LLC @@ -540,31 +118,33 @@ var Button = __webpack_require__("../../@lightningjs/ui-components/src/component var TextBox = __webpack_require__("../../@lightningjs/ui-components/src/components/TextBox/TextBox.js"); ;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/Input/Input.js function Input_typeof(o) { "@babel/helpers - typeof"; return Input_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, Input_typeof(o); } -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } +function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } +function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); } +function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); } +function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } function Input_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function Input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? Input_ownKeys(Object(t), !0).forEach(function (r) { Input_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Input_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, Input_toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function set(target, property, value, receiver) { if (typeof Reflect !== "undefined" && Reflect.set) { set = Reflect.set; } else { set = function set(target, property, value, receiver) { var base = _superPropBase(target, property); var desc; if (base) { desc = Object.getOwnPropertyDescriptor(base, property); if (desc.set) { desc.set.call(receiver, value); return true; } else if (!desc.writable) { return false; } } desc = Object.getOwnPropertyDescriptor(receiver, property); if (desc) { if (!desc.writable) { return false; } desc.value = value; Object.defineProperty(receiver, property, desc); } else { Input_defineProperty(receiver, property, value); } return true; }; } return set(target, property, value, receiver); } -function _set(target, property, value, receiver, isStrict) { var s = set(target, property, value, receiver || target); if (!s && isStrict) { throw new TypeError('failed to set property'); } return value; } -function Input_defineProperty(obj, key, value) { key = Input_toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function Input_toPropertyKey(t) { var i = Input_toPrimitive(t, "string"); return "symbol" == Input_typeof(i) ? i : String(i); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, Input_toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } +function _possibleConstructorReturn(t, e) { if (e && ("object" == Input_typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); } +function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _superPropSet(t, e, o, r, p, f) { return _set(_getPrototypeOf(f ? t.prototype : t), e, o, r, p); } +function set(e, r, t, o) { return set = "undefined" != typeof Reflect && Reflect.set ? Reflect.set : function (e, r, t, o) { var f, i = _superPropBase(e, r); if (i) { if ((f = Object.getOwnPropertyDescriptor(i, r)).set) return f.set.call(o, t), !0; if (!f.writable) return !1; } if (f = Object.getOwnPropertyDescriptor(o, r)) { if (!f.writable) return !1; f.value = t, Object.defineProperty(o, r, f); } else Input_defineProperty(o, r, t); return !0; }, set(e, r, t, o); } +function _set(e, r, t, o, f) { if (!set(e, r, t, o || e) && f) throw new TypeError("failed to set property"); return t; } +function Input_defineProperty(e, r, t) { return (r = Input_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } +function Input_toPropertyKey(t) { var i = Input_toPrimitive(t, "string"); return "symbol" == Input_typeof(i) ? i : i + ""; } function Input_toPrimitive(t, r) { if ("object" != Input_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != Input_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); } -function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (Input_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } +function _superPropGet(t, e, o, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), e, o); return 2 & r && "function" == typeof p ? function (t) { return p.apply(o, t); } : p; } +function _get() { return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); } +function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; } +function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } +function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); } +function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } /** * Copyright 2023 Comcast Cable Communications Management, LLC * @@ -587,16 +167,15 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g var Input = /*#__PURE__*/function (_Button) { - _inherits(Input, _Button); - var _super = _createSuper(Input); function Input() { _classCallCheck(this, Input); - return _super.apply(this, arguments); + return _callSuper(this, Input, arguments); } - _createClass(Input, [{ + _inherits(Input, _Button); + return _createClass(Input, [{ key: "_construct", value: function _construct() { - _get(_getPrototypeOf(Input.prototype), "_construct", this).call(this); + _superPropGet(Input, "_construct", this, 3)([]); this._title = ''; this.actualTitle = ''; this.position = this.title ? this.title.length : 0; @@ -607,7 +186,7 @@ var Input = /*#__PURE__*/function (_Button) { }, { key: "$itemChanged", value: function $itemChanged() { - _get(_getPrototypeOf(Input.prototype), "$itemChanged", this).call(this); + _superPropGet(Input, "$itemChanged", this, 3)([]); this._updateTextWrapper(); this._updateHiddenContent(); this._updateCursorPosition(); @@ -627,7 +206,7 @@ var Input = /*#__PURE__*/function (_Button) { key: "_update", value: function _update() { this._updatePassword(); // need to update title masking before rendering the new title - _get(_getPrototypeOf(Input.prototype), "_update", this).call(this); + _superPropGet(Input, "_update", this, 3)([]); this._updateEyebrow(); this._updateHelpText(); this._updateTextWrapper(); @@ -921,7 +500,7 @@ var Input = /*#__PURE__*/function (_Button) { } }, set: function set(announce) { - _set(_getPrototypeOf(Input.prototype), "announce", announce, this, true); + _superPropSet(Input, "announce", announce, this, 1, 1); } }], [{ key: "__componentName", @@ -936,7 +515,7 @@ var Input = /*#__PURE__*/function (_Button) { }, { key: "_template", value: function _template() { - return Input_objectSpread(Input_objectSpread({}, _get(_getPrototypeOf(Input), "_template", this).call(this)), {}, { + return Input_objectSpread(Input_objectSpread({}, _superPropGet(Input, "_template", this, 2)([])), {}, { Eyebrow: { type: TextBox/* default */.A }, @@ -948,14 +527,14 @@ var Input = /*#__PURE__*/function (_Button) { }, { key: "properties", get: function get() { - return [].concat(_toConsumableArray(_get(_getPrototypeOf(Input), "properties", this)), ['actualTitle', 'cursor', 'eyebrow', 'helpText', 'listening', 'mask', 'password', 'position' + return [].concat(_toConsumableArray(_superPropGet(Input, "properties", this)), ['actualTitle', 'cursor', 'eyebrow', 'helpText', 'listening', 'mask', 'password', 'position' // TODO: should maybe remove "fixed" as an editable prop to make sure this is never dynamic ]); } }, { key: "tags", get: function get() { - return [].concat(_toConsumableArray(_get(_getPrototypeOf(Input), "tags", this)), ['Eyebrow', 'HelpText', { + return [].concat(_toConsumableArray(_superPropGet(Input, "tags", this)), ['Eyebrow', 'HelpText', { name: 'Cursor', path: 'Content.Cursor' }, { @@ -964,10 +543,223 @@ var Input = /*#__PURE__*/function (_Button) { }]); } }]); - return Input; }(Button/* default */.A); +/***/ }), + +/***/ "../../@lightningjs/ui-components/src/components/Input/Input.stories.js": +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Input: () => (/* binding */ Input), +/* harmony export */ __namedExportsOrder: () => (/* binding */ __namedExportsOrder), +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ }); +/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); +/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Input/Input.js"); +/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Icon/Icon.js"); +/* harmony import */ var _docs_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("../../@lightningjs/ui-components/src/docs/utils.js"); +/* harmony import */ var _assets_images_ic_lightning_white_32_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("../../@lightningjs/ui-components/src/assets/images/ic_lightning_white_32.png"); +/* harmony import */ var _assets_images_ic_eye_white_48_png__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("../../@lightningjs/ui-components/src/assets/images/ic_eye_white_48.png"); +/* harmony import */ var _assets_images_ic_eyeHide_white_48_png__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("../../@lightningjs/ui-components/src/assets/images/ic_eyeHide_white_48.png"); +/** + * Copyright 2023 Comcast Cable Communications Management, LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + + + + + + + + +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ + title: 'Components/Input' +}); +function getComponentArray(comps) { + let arr = []; + switch (comps) { + case 'icon': + arr = [{ + type: _Icon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A, + icon: _assets_images_ic_lightning_white_32_png__WEBPACK_IMPORTED_MODULE_2__ + }]; + break; + case 'eye': + arr = [{ + type: _Icon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A, + icon: _assets_images_ic_eye_white_48_png__WEBPACK_IMPORTED_MODULE_3__, + w: 30, + h: 30 + }]; + break; + case 'eyeHide': + arr = [{ + type: _Icon__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A, + icon: _assets_images_ic_eyeHide_white_48_png__WEBPACK_IMPORTED_MODULE_4__, + w: 30, + h: 30 + }]; + break; + } + return arr; +} +const Input = () => class Input extends _lightningjs_core__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.Component { + static _template() { + return { + Input: { + type: ___WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A + } + }; + } + _handleKey(event) { + const { + key + } = event; + if (key.length === 1) { + this.tag('Input').insert(key); + } + if (key === 'Backspace') { + this.tag('Input').backspace(); + } + } +}; +const sharedArgs = { + eyebrow: 'Eyebrow', + helpText: 'Help Text', + listening: false, + password: false, + mask: '•', + prefix: null, + suffix: null, + mode: 'focused' +}; +const sharedArgTypes = { + ...(0,_docs_utils__WEBPACK_IMPORTED_MODULE_6__/* .createModeControl */ .Pg)({ + summaryValue: sharedArgs.mode + }), + eyebrow: { + control: 'text', + description: 'Text on the top of the button ', + table: { + defaultValue: { + summary: 'undefined' + } + } + }, + helpText: { + control: 'text', + description: 'Text on the bottom of the button ', + table: { + defaultValue: { + summary: 'undefined' + } + } + }, + password: { + control: 'boolean', + description: 'When true the content will be masked to the user', + table: { + defaultValue: { + summary: false + } + } + }, + mask: { + control: 'text', + description: 'Character to use as a mask when password is true', + table: { + defaultValue: { + summary: 'undefined' + } + } + }, + listening: { + control: 'boolean', + description: 'When true cursor will be visible only in focused and unfocused mode and can edit the canvas', + table: { + defaultValue: { + summary: false + } + } + }, + prefix: { + control: 'radio', + options: [null, 'icon'], + description: 'Lightning components to be placed to the left of the title', + table: { + defaultValue: { + summary: 'undefined' + } + } + }, + suffix: { + control: 'radio', + options: [null, 'icon', 'eye', 'eyeHide'], + description: 'Lightning components to be placed to the right of the title', + table: { + defaultValue: { + summary: 'undefined' + } + } + } +}; +const sharedArgActions = { + listening: (isListening, component) => { + component.tag('Input').listening = isListening; + }, + password: (isPassword, component) => { + component.tag('Input').password = isPassword; + }, + prefix: (prefix, component) => { + if (prefix == null) { + component.tag('Input').prefix = []; + } else { + component.tag('Input').prefix = getComponentArray(prefix); + } + }, + suffix: (suffix, component) => { + if (suffix == null) { + component.tag('Input').suffix = []; + } else { + component.tag('Input').suffix = getComponentArray(suffix); + } + } +}; +Input.args = sharedArgs; +Input.argTypes = sharedArgTypes; +Input.parameters = { + argActions: sharedArgActions +}; +; +const __namedExportsOrder = ["Input"]; +Input.parameters = { + ...Input.parameters, + docs: { + ...Input.parameters?.docs, + source: { + originalSource: "() => class Input extends lng.Component {\n static _template() {\n return {\n Input: {\n type: InputComponent\n }\n };\n }\n _handleKey(event) {\n const {\n key\n } = event;\n if (key.length === 1) {\n this.tag('Input').insert(key);\n }\n if (key === 'Backspace') {\n this.tag('Input').backspace();\n }\n }\n}", + ...Input.parameters?.docs?.source + } + } +}; + /***/ }), /***/ "../../@lightningjs/ui-components/src/assets/images/ic_eyeHide_white_48.png": @@ -992,4 +784,4 @@ module.exports = __webpack_require__.p + "static/media/ic_lightning_white_32.06a /***/ }) }]); -//# sourceMappingURL=9215.80fe1651.iframe.bundle.js.map \ No newline at end of file +//# sourceMappingURL=2363.03cd08dc.iframe.bundle.js.map \ No newline at end of file diff --git a/2363.03cd08dc.iframe.bundle.js.map b/2363.03cd08dc.iframe.bundle.js.map new file mode 100644 index 000000000..b24fc6601 --- /dev/null +++ b/2363.03cd08dc.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"2363.03cd08dc.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAEA;AAEA;AACA;AAAA;AAEA;AAEA;AACA;AAAA;AAEA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAyCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAEA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AAAA;AAGA;AAGA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAAA;AAAA;AAAA;AAEA;AAIA;AACA;AAAA;AAAA;AACA;AACA;AAEA;AACA;AAAA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AAGA;AAAA;AAAA;AAAA;AAGA;AACA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AASA;AACA;AAAA;AAPA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAOA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAIA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAOA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAjBA;AACA;AAAA;AAAA;AAAA;AAlUA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AAAA;AAAA;AAAA;AAEA;AAEA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAEA;AAAA;AAAA;AAAA;AAGA;AAUA;AAAA;AAEA;AAAA;AAAA;AAAA;AAGA;AAIA;AAAA;AAAA;AACA;AAAA;AAAA;AAEA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sources":["webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Input/Input.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Input/Input.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Input/Input.stories.js"],"sourcesContent":["/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { getWidthByUpCount } from '../../utils';\n\nexport const base = theme => ({\n cursorStyle: {\n textColor: theme.color.textNeutral,\n blink: true,\n width: theme.spacer.xs,\n height: theme.spacer.xxl\n },\n eyebrowTextStyle: {\n ...theme.typography.caption1,\n maxLines: 1,\n textColor: theme.color.textNeutral\n },\n textStyle: {\n ...theme.typography.body1,\n maxLines: 1,\n textColor: theme.color.textNeutral\n },\n helpTextStyle: {\n ...theme.typography.caption1,\n maxLines: 1,\n textColor: theme.color.textNeutralSecondary\n },\n minWidth: getWidthByUpCount(theme, 4),\n paddingX: theme.spacer.xl,\n paddingY: theme.spacer.xl,\n backgroundColor: theme.color.interactiveNeutral\n});\n\nexport const mode = theme => ({\n disabled: {\n eyebrowTextStyle: { textColor: theme.color.textNeutralDisabled },\n helpTextStyle: { textColor: theme.color.textNeutralDisabled }\n },\n focused: {\n cursorStyle: { textColor: theme.color.textInverse },\n eyebrowTextStyle: { textColor: theme.color.textNeutral },\n helpTextStyle: { textColor: theme.color.textNeutralSecondary }\n }\n});\n\nexport const tone = theme => ({\n inverse: {\n mode: {\n focused: {\n eyebrowTextStyle: { textColor: theme.color.textNeutral },\n helpTextStyle: { textColor: theme.color.textNeutral }\n }\n }\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport * as styles from './Input.styles';\nimport Button from '../Button';\nimport TextBox from '../TextBox';\n\nexport default class Input extends Button {\n static get __componentName() {\n return 'Input';\n }\n static get __themeStyle() {\n return styles;\n }\n static _template() {\n return {\n ...super._template(),\n Eyebrow: { type: TextBox },\n HelpText: { type: TextBox }\n };\n }\n\n static get properties() {\n return [\n ...super.properties,\n 'actualTitle',\n 'cursor',\n 'eyebrow',\n 'helpText',\n 'listening',\n 'mask',\n 'password',\n 'position'\n // TODO: should maybe remove \"fixed\" as an editable prop to make sure this is never dynamic\n ];\n }\n\n static get tags() {\n return [\n ...super.tags,\n 'Eyebrow',\n 'HelpText',\n { name: 'Cursor', path: 'Content.Cursor' },\n { name: 'HiddenContent', path: 'Content.HiddenContent' }\n ];\n }\n\n _construct() {\n super._construct();\n this._title = '';\n this.actualTitle = '';\n this.position = this.title ? this.title.length : 0;\n this._justify = 'left';\n this._fixed = true;\n this.w = this.style.minWidth;\n }\n\n $itemChanged() {\n super.$itemChanged();\n this._updateTextWrapper();\n this._updateHiddenContent();\n this._updateCursorPosition();\n this._updateTitleScrollPosition();\n }\n\n _onTitleTextBoxChanged() {\n this._updateHiddenContent();\n }\n\n _onHiddenTextBoxChanged() {\n this._updateCursorPosition();\n }\n\n _update() {\n this._updatePassword(); // need to update title masking before rendering the new title\n super._update();\n\n this._updateEyebrow();\n this._updateHelpText();\n\n this._updateTextWrapper();\n this._updateHiddenContent();\n\n this._updateCursor();\n this._updateCursorListening();\n this._updateCursorBlink();\n this._updateCursorPosition();\n\n this._updateTitleScrollPosition();\n }\n\n _updatePassword() {\n this.title = this.password\n ? this.mask.repeat(this.actualTitle.length)\n : this.actualTitle;\n }\n\n _updateTruncation() {\n // do not add word wrap\n if (this._Title) {\n this._Title.patch({\n style: { textStyle: { ...this.style.textStyle, wordWrap: false } }\n });\n }\n }\n\n _updateEyebrow() {\n this._Eyebrow.patch({\n content: this.eyebrow,\n style: { textStyle: this.style.eyebrowTextStyle },\n mountY: 1,\n x: this.style.paddingX,\n y: this.y - this.style.paddingY\n });\n }\n\n _updateHelpText() {\n this._HelpText.patch({\n content: this.helpText,\n style: { textStyle: this.style.helpTextStyle },\n x: this.style.paddingX,\n y: this.y + this.innerH + this.style.paddingY\n });\n }\n\n _updateTextWrapper() {\n this._TextWrapper.clipping = true;\n this._TextWrapper.w = this._visibleContentWidth;\n if (this._Title) {\n this._TextWrapper.h = this._Title.h;\n }\n }\n\n _updateHiddenContent() {\n /**\n * Hidden value is used for measuring where the cursor should\n * be positioned when a user changes the cursor position. Since\n * the text is one texture we don't know the exact position of each\n * individual character, so we render a substring version of the text\n * to determine the render width and position the cursor based on that number\n */\n if (!this._HiddenContent) {\n this._Content.patch({\n HiddenContent: {\n type: TextBox,\n mountY: 0.5,\n y: h => h / 2,\n signals: {\n textBoxChanged: '_onHiddenTextBoxChanged'\n }\n }\n });\n }\n\n const { title: value = '', position, password, mask } = this;\n\n const textBeforeCursor = password\n ? mask.repeat(value.length).substring(0, position)\n : value.substring(0, position);\n\n this._HiddenContent.patch({\n style: { textStyle: this.style.textStyle },\n content: textBeforeCursor\n });\n\n this._HiddenContent._Text &&\n this._HiddenContent._Text.patch({ alpha: 0.001 });\n }\n\n _updateCursor() {\n if (this.style.cursorStyle && this.style.cursorStyle.blink) {\n if (!this._Cursor) {\n this._Content.patch({\n Cursor: {\n rect: true,\n mountY: 0.5\n }\n });\n this.cursorBlink = this._Cursor.animation({\n duration: 1.5,\n repeat: -1,\n actions: [{ p: 'alpha', v: { 0: 0, 0.5: 1, 1: 0 } }]\n });\n }\n this._Cursor.patch(this.style.cursorStyle);\n }\n }\n\n _updateCursorListening() {\n if (!this._isDisabledMode) {\n if (this.cursorBlink && !this.cursorBlink.isPlaying()) {\n this.cursorBlink.start();\n }\n } else {\n if (this.cursorBlink)\n this.isCursorActive\n ? this.cursorBlink.start()\n : this.cursorBlink.stop();\n }\n this._Cursor.smooth = {\n color: this.style.cursorStyle.textColor\n };\n }\n\n _updateCursorBlink() {\n if (this.cursorBlink) {\n if (this.isCursorActive) {\n this.cursorBlink.start();\n } else {\n this.cursorBlink.stop();\n this._Cursor.patch({ alpha: 0.001 });\n }\n }\n }\n\n _updateCursorPosition() {\n this._Cursor.x =\n this._titleX +\n (this._isOverflow ? this._TextWrapper.w : this._HiddenContent.w);\n }\n\n _updateTitleScrollPosition() {\n if (this._Title) {\n this._Title.x = this._isOverflow\n ? this._visibleContentWidth - this._HiddenContent.w\n : 0;\n if (this._HiddenContent && this._TextWrapper) {\n this._HiddenContent.x = this._TextWrapper.x + this._Title.x;\n }\n }\n }\n\n get _suffixX() {\n const suffixX = this._hasPrefix\n ? this.w - this._paddingLeft - this._paddingRight - this._prefixW\n : this.w - this._paddingLeft - this._paddingRight - this.style.paddingX;\n return suffixX > 0 ? suffixX : 0;\n }\n\n get isCursorActive() {\n return this.listening && (this._isFocusedMode || this._isUnfocusedMode);\n }\n\n get _isOverflow() {\n return this._HiddenContent.w > this._visibleContentWidth;\n }\n\n get _visibleContentWidth() {\n return this._fixedWordWrapWidth;\n }\n\n set value(value) {\n this.title = this.actualTitle = value;\n this.position = 0;\n this._updatePassword();\n }\n\n get value() {\n return this.actualTitle;\n }\n\n clear() {\n if (this.isCursorActive) {\n this.title = this.actualTitle = '';\n this.position = 0;\n }\n }\n\n insert(content) {\n if (this.isCursorActive) {\n this.actualTitle =\n this.actualTitle.slice(0, this.position) +\n content +\n this.actualTitle.slice(this.position);\n this._updatePassword();\n this.position += content.length;\n }\n }\n\n backspace() {\n if (this.isCursorActive && this.position > 0) {\n this.actualTitle =\n this.actualTitle.slice(0, this.position - 1) +\n this.actualTitle.slice(this.position);\n this._updatePassword();\n this.position--;\n }\n }\n\n _handleLeft() {\n if (this._isDisabledMode) {\n return false;\n }\n this.moveLeft();\n if (typeof this.onLeft === 'function') {\n return this.onLeft(this);\n }\n return true;\n }\n\n _handleRight() {\n if (this._isDisabledMode) {\n return false;\n }\n this.moveRight();\n if (typeof this.onRight === 'function') {\n return this.onRight(this);\n }\n return true;\n }\n\n moveLeft() {\n const { position } = this;\n if (position >= 0) {\n this.position--;\n return true;\n }\n return false;\n }\n\n moveRight() {\n const { position, title } = this;\n if (position < title.length) {\n this.position++;\n return true;\n }\n return false;\n }\n\n set announce(announce) {\n super.announce = announce;\n }\n\n get announce() {\n if (this._announce) {\n return this._announce;\n }\n\n // TODO - Localization?\n // Do we need a locale file with\n // component translations?\n // need to check with Accessibility on what order this should read out in\n if (this.password) {\n return [this.eyebrow, this.helpText];\n } else {\n return [this.eyebrow, 'Input: ' + this.title, this.helpText];\n }\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport { default as InputComponent } from '.';\nimport Icon from '../Icon';\nimport { createModeControl } from '../../docs/utils';\nimport lightning from '../../assets/images/ic_lightning_white_32.png';\nimport eye from '../../assets/images/ic_eye_white_48.png';\nimport eyeHide from '../../assets/images/ic_eyeHide_white_48.png';\n\nexport default {\n title: 'Components/Input'\n};\n\nfunction getComponentArray(comps) {\n let arr = [];\n switch (comps) {\n case 'icon':\n arr = [{ type: Icon, icon: lightning }];\n break;\n case 'eye':\n arr = [{ type: Icon, icon: eye, w: 30, h: 30 }];\n break;\n case 'eyeHide':\n arr = [{ type: Icon, icon: eyeHide, w: 30, h: 30 }];\n break;\n }\n return arr;\n}\n\nexport const Input = () =>\n class Input extends lng.Component {\n static _template() {\n return {\n Input: {\n type: InputComponent\n }\n };\n }\n\n _handleKey(event) {\n const { key } = event;\n if (key.length === 1) {\n this.tag('Input').insert(key);\n }\n if (key === 'Backspace') {\n this.tag('Input').backspace();\n }\n }\n };\n\nconst sharedArgs = {\n eyebrow: 'Eyebrow',\n helpText: 'Help Text',\n listening: false,\n password: false,\n mask: '•',\n prefix: null,\n suffix: null,\n mode: 'focused'\n};\nconst sharedArgTypes = {\n ...createModeControl({ summaryValue: sharedArgs.mode }),\n eyebrow: {\n control: 'text',\n description: 'Text on the top of the button ',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n helpText: {\n control: 'text',\n description: 'Text on the bottom of the button ',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n password: {\n control: 'boolean',\n description: 'When true the content will be masked to the user',\n table: {\n defaultValue: { summary: false }\n }\n },\n mask: {\n control: 'text',\n description: 'Character to use as a mask when password is true',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n listening: {\n control: 'boolean',\n description:\n 'When true cursor will be visible only in focused and unfocused mode and can edit the canvas',\n table: {\n defaultValue: { summary: false }\n }\n },\n prefix: {\n control: 'radio',\n options: [null, 'icon'],\n description: 'Lightning components to be placed to the left of the title',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n suffix: {\n control: 'radio',\n options: [null, 'icon', 'eye', 'eyeHide'],\n description: 'Lightning components to be placed to the right of the title',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n }\n};\n\nconst sharedArgActions = {\n listening: (isListening, component) => {\n component.tag('Input').listening = isListening;\n },\n password: (isPassword, component) => {\n component.tag('Input').password = isPassword;\n },\n prefix: (prefix, component) => {\n if (prefix == null) {\n component.tag('Input').prefix = [];\n } else {\n component.tag('Input').prefix = getComponentArray(prefix);\n }\n },\n suffix: (suffix, component) => {\n if (suffix == null) {\n component.tag('Input').suffix = [];\n } else {\n component.tag('Input').suffix = getComponentArray(suffix);\n }\n }\n};\nInput.args = sharedArgs;\nInput.argTypes = sharedArgTypes;\nInput.parameters = { argActions: sharedArgActions };\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/2383.8ecd88b0.iframe.bundle.js b/2383.8ecd88b0.iframe.bundle.js deleted file mode 100644 index ba4762e51..000000000 --- a/2383.8ecd88b0.iframe.bundle.js +++ /dev/null @@ -1,419 +0,0 @@ -"use strict"; -(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[2383],{ - -/***/ "../../@lightningjs/ui-components/src/mixins/withEditItems/withEditItems.stories.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - __namedExportsOrder: () => (/* binding */ __namedExportsOrder), - "default": () => (/* binding */ withEditItems_stories), - withEditItems: () => (/* binding */ withEditItems) -}); - -// EXTERNAL MODULE: ../../../node_modules/@lightningjs/core/dist/lightning.esm.js -var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Button/Button.js + 1 modules -var Button = __webpack_require__("../../@lightningjs/ui-components/src/components/Button/Button.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/TextBox/TextBox.js + 1 modules -var TextBox = __webpack_require__("../../@lightningjs/ui-components/src/components/TextBox/TextBox.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Row/Row.js + 1 modules -var Row = __webpack_require__("../../@lightningjs/ui-components/src/components/Row/Row.js"); -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/mixins/withEditItems/index.js -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { 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" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function set(target, property, value, receiver) { if (typeof Reflect !== "undefined" && Reflect.set) { set = Reflect.set; } else { set = function set(target, property, value, receiver) { var base = _superPropBase(target, property); var desc; if (base) { desc = Object.getOwnPropertyDescriptor(base, property); if (desc.set) { desc.set.call(receiver, value); return true; } else if (!desc.writable) { return false; } } desc = Object.getOwnPropertyDescriptor(receiver, property); if (desc) { if (!desc.writable) { return false; } desc.value = value; Object.defineProperty(receiver, property, desc); } else { _defineProperty(receiver, property, value); } return true; }; } return set(target, property, value, receiver); } -function _set(target, property, value, receiver, isStrict) { var s = set(target, property, value, receiver || target); if (!s && isStrict) { throw new TypeError('failed to set property'); } return value; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); } -function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - -/* harmony default export */ function mixins_withEditItems(Base) { - return /*#__PURE__*/function (_Base) { - _inherits(_class, _Base); - var _super = _createSuper(_class); - function _class() { - _classCallCheck(this, _class); - return _super.apply(this, arguments); - } - _createClass(_class, [{ - key: "_init", - value: function _init() { - _get(_getPrototypeOf(_class.prototype), "_init", this).call(this); - this.isEditing = false; - } - }, { - key: "toggleEdit", - value: function toggleEdit() { - this.isEditing = !this.isEditing; - } - }, { - key: "_swapItemArrayPos", - value: function _swapItemArrayPos(array, current, previous) { - var _ref = [array[previous], array[current]]; - array[current] = _ref[0]; - array[previous] = _ref[1]; - _set(_getPrototypeOf(_class.prototype), "selectedIndex", current, this, true); - } - }, { - key: "_unfocus", - value: function _unfocus() { - this.isEditing = false; - _get(_getPrototypeOf(_class.prototype), "_unfocus", this).call(this); - } - }, { - key: "selectedIndex", - get: function get() { - return this._selectedIndex; - }, - set: function set(index) { - var _this = this; - if (!this.isEditing) { - _set(_getPrototypeOf(_class.prototype), "selectedIndex", index, this, true); - return; - } - if (this.selectedIndex >= this.items.length - 1 && index > this.selectedIndex) { - return; - } - var currentItem = this.selected; - this.prevSelected = currentItem; - var nextItem = this.items[index]; - var previousIndex = this.selectedIndex; - var oldPosX = currentItem.transition('x') ? currentItem.transition('x').targetValue : currentItem.x; - var oldPosY = currentItem.transition('y') ? currentItem.transition('y').targetValue : currentItem.y; - var newPosX = nextItem.transition('x') ? nextItem.transition('x').targetValue : nextItem.x; - var newPosY = nextItem.transition('y') ? nextItem.transition('y').targetValue : nextItem.y; - this._swapItemArrayPos(this.items, index, previousIndex); - - // self invoking async function that waits for setSmooth calls to complete before triggering - // render and signaling selected changed event. - // This allows time for items to be in their final position before the row component check world context - // to identify items off screen to trigger scrolling - _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { - return _regeneratorRuntime().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - _context.next = 2; - return currentItem.setSmooth('x', newPosX); - case 2: - _context.next = 4; - return currentItem.setSmooth('y', newPosY); - case 4: - _context.next = 6; - return nextItem.setSmooth('x', oldPosX); - case 6: - _context.next = 8; - return nextItem.setSmooth('y', oldPosY); - case 8: - if (!_this.Items.children.length || !_this.Items.children[index] || !_this.Items.children[index].skipFocus) { - if (_this.selected) { - _this._selectedIndex = index; - _this._render(_this.selected, _this.prevSelected); - _this.signal('selectedChange', _this.selected, _this.prevSelected); - } - // Don't call refocus until after a new render in case of a situation like Plinko nav - // where we don't want to focus the previously selected item and need to get the new one first - _this._refocus(); - } - case 9: - case "end": - return _context.stop(); - } - }, _callee); - }))(); - } - }]); - return _class; - }(Base); -} -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Row/Row.stories.js -var Row_stories = __webpack_require__("../../@lightningjs/ui-components/src/components/Row/Row.stories.js"); -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/mixins/withEditItems/withEditItems.stories.js -function withEditItems_stories_typeof(o) { - "@babel/helpers - typeof"; - - return withEditItems_stories_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { - return typeof o; - } : function (o) { - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; - }, withEditItems_stories_typeof(o); -} -function withEditItems_stories_classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} -function withEditItems_stories_defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, withEditItems_stories_toPropertyKey(descriptor.key), descriptor); - } -} -function withEditItems_stories_createClass(Constructor, protoProps, staticProps) { - if (protoProps) withEditItems_stories_defineProperties(Constructor.prototype, protoProps); - if (staticProps) withEditItems_stories_defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { - writable: false - }); - return Constructor; -} -function withEditItems_stories_toPropertyKey(t) { - var i = withEditItems_stories_toPrimitive(t, "string"); - return "symbol" == withEditItems_stories_typeof(i) ? i : String(i); -} -function withEditItems_stories_toPrimitive(t, r) { - if ("object" != withEditItems_stories_typeof(t) || !t) return t; - var e = t[Symbol.toPrimitive]; - if (void 0 !== e) { - var i = e.call(t, r || "default"); - if ("object" != withEditItems_stories_typeof(i)) return i; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return ("string" === r ? String : Number)(t); -} -function withEditItems_stories_inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { - writable: false - }); - if (superClass) withEditItems_stories_setPrototypeOf(subClass, superClass); -} -function withEditItems_stories_setPrototypeOf(o, p) { - withEditItems_stories_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return withEditItems_stories_setPrototypeOf(o, p); -} -function withEditItems_stories_createSuper(Derived) { - var hasNativeReflectConstruct = withEditItems_stories_isNativeReflectConstruct(); - return function _createSuperInternal() { - var Super = withEditItems_stories_getPrototypeOf(Derived), - result; - if (hasNativeReflectConstruct) { - var NewTarget = withEditItems_stories_getPrototypeOf(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); - } - return withEditItems_stories_possibleConstructorReturn(this, result); - }; -} -function withEditItems_stories_possibleConstructorReturn(self, call) { - if (call && (withEditItems_stories_typeof(call) === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { - throw new TypeError("Derived constructors may only return object or undefined"); - } - return withEditItems_stories_assertThisInitialized(self); -} -function withEditItems_stories_assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - return self; -} -function withEditItems_stories_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; - } -} -function withEditItems_stories_getPrototypeOf(o) { - withEditItems_stories_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return withEditItems_stories_getPrototypeOf(o); -} -/* eslint-disable */ -// @ts-nocheck -// @ts-expect-error (Converted from ts-ignore) -var __STORY__ = "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport Button from '../../components/Button/Button';\nimport TextBox from '../../components/TextBox/TextBox';\nimport Row from '../../components/Row/Row';\nimport { default as withEditItemsMixin } from '.';\n\n/**\n * Shared Args and Arg Types from Row\n */\nimport * as RowProps from '../../components/Row/Row.stories';\nexport default {\n title: 'Utilities/withEditItems',\n parameters: {\n remountAll: true\n }\n};\n\nexport const withEditItems = () =>\n class withEditItems extends lng.Component {\n static _template() {\n return {\n RowComponent: {\n type: withEditItemsMixin(Row),\n y: 300,\n items: Array.apply(null, { length: 6 }).map((_, i) => ({\n type: Button,\n title: `Button ${i + 1}`,\n w: 150\n }))\n },\n TextBox: {\n type: TextBox,\n content:\n 'Press enter to toggle edit mode. \\nWhen in edit mode, use left/right arrows to move items \\nPress enter again to exit edit mode'\n }\n };\n }\n\n _handleEnter() {\n this.tag('RowComponent').toggleEdit();\n }\n };\nwithEditItems.args = RowProps.Row.args;\nwithEditItems.argTypes = RowProps.Row.argTypes;\n\nwithEditItems.storyName = 'withEditItems';\n"; -// @ts-expect-error (Converted from ts-ignore) -var __LOCATIONS_MAP__ = { - "withEditItems": { - "startLoc": { - "col": 29, - "line": 36 - }, - "endLoc": { - "col": 3, - "line": 60 - }, - "startBody": { - "col": 29, - "line": 36 - }, - "endBody": { - "col": 3, - "line": 60 - } - } -}; - -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - - - - - - -/** - * Shared Args and Arg Types from Row - */ - -/* harmony default export */ const withEditItems_stories = ({ - title: 'Utilities/withEditItems', - parameters: { - "storySource": { - "source": "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport Button from '../../components/Button/Button';\nimport TextBox from '../../components/TextBox/TextBox';\nimport Row from '../../components/Row/Row';\nimport { default as withEditItemsMixin } from '.';\n\n/**\n * Shared Args and Arg Types from Row\n */\nimport * as RowProps from '../../components/Row/Row.stories';\nexport default {\n title: 'Utilities/withEditItems',\n parameters: {\n remountAll: true\n }\n};\n\nexport const withEditItems = () =>\n class withEditItems extends lng.Component {\n static _template() {\n return {\n RowComponent: {\n type: withEditItemsMixin(Row),\n y: 300,\n items: Array.apply(null, { length: 6 }).map((_, i) => ({\n type: Button,\n title: `Button ${i + 1}`,\n w: 150\n }))\n },\n TextBox: {\n type: TextBox,\n content:\n 'Press enter to toggle edit mode. \\nWhen in edit mode, use left/right arrows to move items \\nPress enter again to exit edit mode'\n }\n };\n }\n\n _handleEnter() {\n this.tag('RowComponent').toggleEdit();\n }\n };\nwithEditItems.args = RowProps.Row.args;\nwithEditItems.argTypes = RowProps.Row.argTypes;\n\nwithEditItems.storyName = 'withEditItems';\n", - "locationsMap": { - "with-edit-items": { - "startLoc": { - "col": 29, - "line": 36 - }, - "endLoc": { - "col": 3, - "line": 60 - }, - "startBody": { - "col": 29, - "line": 36 - }, - "endBody": { - "col": 3, - "line": 60 - } - } - } - }, - remountAll: true - } -}); -var withEditItems = function withEditItems() { - return /*#__PURE__*/function (_lng$Component) { - withEditItems_stories_inherits(withEditItems, _lng$Component); - var _super = withEditItems_stories_createSuper(withEditItems); - function withEditItems() { - withEditItems_stories_classCallCheck(this, withEditItems); - return _super.apply(this, arguments); - } - withEditItems_stories_createClass(withEditItems, [{ - key: "_handleEnter", - value: function _handleEnter() { - this.tag('RowComponent').toggleEdit(); - } - }], [{ - key: "_template", - value: function _template() { - return { - RowComponent: { - type: mixins_withEditItems(Row/* default */.A), - y: 300, - items: Array.apply(null, { - length: 6 - }).map(function (_, i) { - return { - type: Button/* default */.A, - title: "Button ".concat(i + 1), - w: 150 - }; - }) - }, - TextBox: { - type: TextBox/* default */.A, - content: 'Press enter to toggle edit mode. \nWhen in edit mode, use left/right arrows to move items \nPress enter again to exit edit mode' - } - }; - } - }]); - return withEditItems; - }(lightning_esm/* default */.A.Component); -}; -withEditItems.args = Row_stories.Row.args; -withEditItems.argTypes = Row_stories.Row.argTypes; -withEditItems.storyName = 'withEditItems'; -withEditItems.parameters = { - ...withEditItems.parameters, - docs: { - ...withEditItems.parameters?.docs, - source: { - originalSource: "() => class withEditItems extends lng.Component {\n static _template() {\n return {\n RowComponent: {\n type: withEditItemsMixin(Row),\n y: 300,\n items: Array.apply(null, {\n length: 6\n }).map((_, i) => ({\n type: Button,\n title: `Button ${i + 1}`,\n w: 150\n }))\n },\n TextBox: {\n type: TextBox,\n content: 'Press enter to toggle edit mode. \\nWhen in edit mode, use left/right arrows to move items \\nPress enter again to exit edit mode'\n }\n };\n }\n _handleEnter() {\n this.tag('RowComponent').toggleEdit();\n }\n}", - ...withEditItems.parameters?.docs?.source - } - } -};;const __namedExportsOrder = ["withEditItems"]; - -/***/ }) - -}]); -//# sourceMappingURL=2383.8ecd88b0.iframe.bundle.js.map \ No newline at end of file diff --git a/270.df5d3112.iframe.bundle.js b/270.df5d3112.iframe.bundle.js deleted file mode 100644 index 65eb14802..000000000 --- a/270.df5d3112.iframe.bundle.js +++ /dev/null @@ -1,459 +0,0 @@ -"use strict"; -(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[270],{ - -/***/ "../../@lightningjs/ui-components/src/components/Card/CardSection.stories.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - CardSection: () => (/* binding */ CardSection), - __namedExportsOrder: () => (/* binding */ __namedExportsOrder), - "default": () => (/* binding */ CardSection_stories) -}); - -// NAMESPACE OBJECT: ../../@lightningjs/ui-components/src/components/Card/CardSection.styles.js -var CardSection_styles_namespaceObject = {}; -__webpack_require__.r(CardSection_styles_namespaceObject); -__webpack_require__.d(CardSection_styles_namespaceObject, { - base: () => (base) -}); - -// EXTERNAL MODULE: ../../../node_modules/@lightningjs/core/dist/lightning.esm.js -var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Card/Card.js + 1 modules -var Card = __webpack_require__("../../@lightningjs/ui-components/src/components/Card/Card.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Icon/Icon.js + 1 modules -var Icon = __webpack_require__("../../@lightningjs/ui-components/src/components/Icon/Icon.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/utils/index.js -var utils = __webpack_require__("../../@lightningjs/ui-components/src/utils/index.js"); -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/Card/CardSection.styles.js -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - -var base = function base(theme) { - return { - height: theme.spacer.xxl * 5, - iconWidth: theme.spacer.xxl, - iconHeight: theme.spacer.xxl, - width: utils/* default.getWidthByColumnSpan */.Ay.getWidthByColumnSpan(theme, 3) - }; -}; -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/Card/CardSection.js -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } -function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); } -function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - - - -var CardSection_CardSection = /*#__PURE__*/function (_Card) { - _inherits(CardSection, _Card); - var _super = _createSuper(CardSection); - function CardSection() { - _classCallCheck(this, CardSection); - return _super.apply(this, arguments); - } - _createClass(CardSection, [{ - key: "_update", - value: function _update() { - _get(_getPrototypeOf(CardSection.prototype), "_update", this).call(this); - this._updateIcon(); - } - }, { - key: "_updateIcon", - value: function _updateIcon() { - var _this$style = this.style, - iconWidth = _this$style.iconWidth, - iconHeight = _this$style.iconHeight; - var iconObject = { - w: iconWidth, - h: iconHeight, - icon: this.iconSrc, - x: this.w - iconWidth - this.style.paddingHorizontal, - y: (this._Title.style.textStyle.lineHeight - iconHeight) / 2 + this.style.paddingVertical - }; - if (!this._Icon) { - iconObject.type = Icon/* default */.A; - } - this.patch({ - Icon: iconObject - }); - } - }, { - key: "_calculateTextWidth", - value: function _calculateTextWidth() { - var textWidth = this.w - this.style.paddingHorizontal * 2; - return this.iconSrc ? textWidth - this.iconWidth : textWidth; - } - }], [{ - key: "__componentName", - get: function get() { - return 'CardSection'; - } - }, { - key: "__themeStyle", - get: function get() { - return CardSection_styles_namespaceObject; - } - }, { - key: "tags", - get: function get() { - return [].concat(_toConsumableArray(_get(_getPrototypeOf(CardSection), "tags", this)), ['Icon']); - } - }, { - key: "properties", - get: function get() { - return [].concat(_toConsumableArray(_get(_getPrototypeOf(CardSection), "properties", this)), ['iconWidth', 'iconHeight', 'iconSrc']); - } - }]); - return CardSection; -}(Card/* default */.A); - -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/assets/images/ic_check_circle_outline_inverse_24.png -const ic_check_circle_outline_inverse_24_namespaceObject = __webpack_require__.p + "static/media/ic_check_circle_outline_inverse_24.fa707615.png"; -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/docs/utils.js -var docs_utils = __webpack_require__("../../@lightningjs/ui-components/src/docs/utils.js"); -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/Card/CardSection.stories.js -function CardSection_stories_typeof(o) { - "@babel/helpers - typeof"; - - return CardSection_stories_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { - return typeof o; - } : function (o) { - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; - }, CardSection_stories_typeof(o); -} -function ownKeys(e, r) { - var t = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(e); - r && (o = o.filter(function (r) { - return Object.getOwnPropertyDescriptor(e, r).enumerable; - })), t.push.apply(t, o); - } - return t; -} -function _objectSpread(e) { - for (var r = 1; r < arguments.length; r++) { - var t = null != arguments[r] ? arguments[r] : {}; - r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { - _defineProperty(e, r, t[r]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); - }); - } - return e; -} -function _defineProperty(obj, key, value) { - key = CardSection_stories_toPropertyKey(key); - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} -function CardSection_stories_classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} -function CardSection_stories_defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, CardSection_stories_toPropertyKey(descriptor.key), descriptor); - } -} -function CardSection_stories_createClass(Constructor, protoProps, staticProps) { - if (protoProps) CardSection_stories_defineProperties(Constructor.prototype, protoProps); - if (staticProps) CardSection_stories_defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { - writable: false - }); - return Constructor; -} -function CardSection_stories_toPropertyKey(t) { - var i = CardSection_stories_toPrimitive(t, "string"); - return "symbol" == CardSection_stories_typeof(i) ? i : String(i); -} -function CardSection_stories_toPrimitive(t, r) { - if ("object" != CardSection_stories_typeof(t) || !t) return t; - var e = t[Symbol.toPrimitive]; - if (void 0 !== e) { - var i = e.call(t, r || "default"); - if ("object" != CardSection_stories_typeof(i)) return i; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return ("string" === r ? String : Number)(t); -} -function CardSection_stories_inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { - writable: false - }); - if (superClass) CardSection_stories_setPrototypeOf(subClass, superClass); -} -function CardSection_stories_setPrototypeOf(o, p) { - CardSection_stories_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return CardSection_stories_setPrototypeOf(o, p); -} -function CardSection_stories_createSuper(Derived) { - var hasNativeReflectConstruct = CardSection_stories_isNativeReflectConstruct(); - return function _createSuperInternal() { - var Super = CardSection_stories_getPrototypeOf(Derived), - result; - if (hasNativeReflectConstruct) { - var NewTarget = CardSection_stories_getPrototypeOf(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); - } - return CardSection_stories_possibleConstructorReturn(this, result); - }; -} -function CardSection_stories_possibleConstructorReturn(self, call) { - if (call && (CardSection_stories_typeof(call) === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { - throw new TypeError("Derived constructors may only return object or undefined"); - } - return CardSection_stories_assertThisInitialized(self); -} -function CardSection_stories_assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - return self; -} -function CardSection_stories_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; - } -} -function CardSection_stories_getPrototypeOf(o) { - CardSection_stories_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return CardSection_stories_getPrototypeOf(o); -} -/* eslint-disable */ -// @ts-nocheck -// @ts-expect-error (Converted from ts-ignore) -var __STORY__ = "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport { default as CardSectionComponent } from './CardSection';\nimport sectionIcon from '../../assets/images/ic_check_circle_outline_inverse_24.png';\nimport { createModeControl } from '../../docs/utils';\n\nexport default {\n title: 'Components/Card/CardSection'\n};\n\nexport const CardSection = () =>\n class CardSection extends lng.Component {\n static _template() {\n return {\n Card: {\n type: CardSectionComponent\n }\n };\n }\n };\n\nCardSection.args = {\n iconSrc: sectionIcon,\n title: 'Section',\n mode: 'focused'\n};\n\nCardSection.argTypes = {\n ...createModeControl({ summaryValue: CardSection.args.mode }),\n iconSrc: {\n control: 'select',\n options: [sectionIcon, 'null'],\n description: 'Icon source',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n title: {\n control: 'text',\n description: 'Title text',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n }\n};\n\nCardSection.storyName = 'CardSection';\n"; -// @ts-expect-error (Converted from ts-ignore) -var __LOCATIONS_MAP__ = { - "CardSection": { - "startLoc": { - "col": 27, - "line": 28 - }, - "endLoc": { - "col": 3, - "line": 37 - }, - "startBody": { - "col": 27, - "line": 28 - }, - "endBody": { - "col": 3, - "line": 37 - } - } -}; - -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - - - - -/* harmony default export */ const CardSection_stories = ({ - parameters: { - "storySource": { - "source": "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport { default as CardSectionComponent } from './CardSection';\nimport sectionIcon from '../../assets/images/ic_check_circle_outline_inverse_24.png';\nimport { createModeControl } from '../../docs/utils';\n\nexport default {\n title: 'Components/Card/CardSection'\n};\n\nexport const CardSection = () =>\n class CardSection extends lng.Component {\n static _template() {\n return {\n Card: {\n type: CardSectionComponent\n }\n };\n }\n };\n\nCardSection.args = {\n iconSrc: sectionIcon,\n title: 'Section',\n mode: 'focused'\n};\n\nCardSection.argTypes = {\n ...createModeControl({ summaryValue: CardSection.args.mode }),\n iconSrc: {\n control: 'select',\n options: [sectionIcon, 'null'],\n description: 'Icon source',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n title: {\n control: 'text',\n description: 'Title text',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n }\n};\n\nCardSection.storyName = 'CardSection';\n", - "locationsMap": { - "card-section": { - "startLoc": { - "col": 27, - "line": 28 - }, - "endLoc": { - "col": 3, - "line": 37 - }, - "startBody": { - "col": 27, - "line": 28 - }, - "endBody": { - "col": 3, - "line": 37 - } - } - } - } - }, - title: 'Components/Card/CardSection' -}); -var CardSection = function CardSection() { - return /*#__PURE__*/function (_lng$Component) { - CardSection_stories_inherits(CardSection, _lng$Component); - var _super = CardSection_stories_createSuper(CardSection); - function CardSection() { - CardSection_stories_classCallCheck(this, CardSection); - return _super.apply(this, arguments); - } - CardSection_stories_createClass(CardSection, null, [{ - key: "_template", - value: function _template() { - return { - Card: { - type: CardSection_CardSection - } - }; - } - }]); - return CardSection; - }(lightning_esm/* default */.A.Component); -}; -CardSection.args = { - iconSrc: ic_check_circle_outline_inverse_24_namespaceObject, - title: 'Section', - mode: 'focused' -}; -CardSection.argTypes = _objectSpread(_objectSpread({}, (0,docs_utils/* createModeControl */.Pg)({ - summaryValue: CardSection.args.mode -})), {}, { - iconSrc: { - control: 'select', - options: [ic_check_circle_outline_inverse_24_namespaceObject, 'null'], - description: 'Icon source', - table: { - defaultValue: { - summary: 'undefined' - } - } - }, - title: { - control: 'text', - description: 'Title text', - table: { - defaultValue: { - summary: 'undefined' - } - } - } -}); -CardSection.storyName = 'CardSection'; -CardSection.parameters = { - ...CardSection.parameters, - docs: { - ...CardSection.parameters?.docs, - source: { - originalSource: "() => class CardSection extends lng.Component {\n static _template() {\n return {\n Card: {\n type: CardSectionComponent\n }\n };\n }\n}", - ...CardSection.parameters?.docs?.source - } - } -};;const __namedExportsOrder = ["CardSection"]; - -/***/ }) - -}]); -//# sourceMappingURL=270.df5d3112.iframe.bundle.js.map \ No newline at end of file diff --git a/270.df5d3112.iframe.bundle.js.map b/270.df5d3112.iframe.bundle.js.map deleted file mode 100644 index 1d1712815..000000000 --- a/270.df5d3112.iframe.bundle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"270.df5d3112.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAkBA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAxCA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;;;;;;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Card/CardSection.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Card/CardSection.js","webpack://lightning-ui-docs/"],"sourcesContent":["/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport utils from '../../utils';\n\nexport const base = theme => ({\n height: theme.spacer.xxl * 5,\n iconWidth: theme.spacer.xxl,\n iconHeight: theme.spacer.xxl,\n width: utils.getWidthByColumnSpan(theme, 3)\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport Card from './Card';\nimport Icon from '../Icon';\nimport * as styles from './CardSection.styles';\n\nexport default class CardSection extends Card {\n static get __componentName() {\n return 'CardSection';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static get tags() {\n return [...super.tags, 'Icon'];\n }\n\n static get properties() {\n return [...super.properties, 'iconWidth', 'iconHeight', 'iconSrc'];\n }\n\n _update() {\n super._update();\n this._updateIcon();\n }\n\n _updateIcon() {\n const { iconWidth, iconHeight } = this.style;\n const iconObject = {\n w: iconWidth,\n h: iconHeight,\n icon: this.iconSrc,\n x: this.w - iconWidth - this.style.paddingHorizontal,\n y:\n (this._Title.style.textStyle.lineHeight - iconHeight) / 2 +\n this.style.paddingVertical\n };\n if (!this._Icon) {\n iconObject.type = Icon;\n }\n this.patch({ Icon: iconObject });\n }\n\n _calculateTextWidth() {\n const textWidth = this.w - this.style.paddingHorizontal * 2;\n return this.iconSrc ? textWidth - this.iconWidth : textWidth;\n }\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/3054.713cdc47.iframe.bundle.js b/3054.713cdc47.iframe.bundle.js deleted file mode 100644 index ceb539736..000000000 --- a/3054.713cdc47.iframe.bundle.js +++ /dev/null @@ -1,1400 +0,0 @@ -"use strict"; -(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[3054],{ - -/***/ "../../@lightningjs/ui-components/src/components/TabBar/TabBar.stories.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - Basic: () => (/* binding */ Basic), - CustomTabs: () => (/* binding */ CustomTabs), - MultipleRows: () => (/* binding */ MultipleRows), - __namedExportsOrder: () => (/* binding */ __namedExportsOrder), - "default": () => (/* binding */ TabBar_stories) -}); - -// NAMESPACE OBJECT: ../../@lightningjs/ui-components/src/components/TabBar/TabBar.styles.js -var TabBar_styles_namespaceObject = {}; -__webpack_require__.r(TabBar_styles_namespaceObject); -__webpack_require__.d(TabBar_styles_namespaceObject, { - base: () => (base) -}); - -// EXTERNAL MODULE: ../../../node_modules/@lightningjs/core/dist/lightning.esm.js -var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Base/Base.js + 2 modules -var Base = __webpack_require__("../../@lightningjs/ui-components/src/components/Base/Base.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Tile/Tile.js + 1 modules -var Tile = __webpack_require__("../../@lightningjs/ui-components/src/components/Tile/Tile.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Button/Button.js + 1 modules -var Button = __webpack_require__("../../@lightningjs/ui-components/src/components/Button/Button.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Button/ButtonSmall.js + 1 modules -var ButtonSmall = __webpack_require__("../../@lightningjs/ui-components/src/components/Button/ButtonSmall.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Icon/Icon.js + 1 modules -var Icon = __webpack_require__("../../@lightningjs/ui-components/src/components/Icon/Icon.js"); -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/assets/images/view_all.png -const view_all_namespaceObject = __webpack_require__.p + "static/media/view_all.17ad8284.png"; -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/docs/utils.js -var utils = __webpack_require__("../../@lightningjs/ui-components/src/docs/utils.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/assets/images/ic_lightning_white_32.png -var ic_lightning_white_32 = __webpack_require__("../../@lightningjs/ui-components/src/assets/images/ic_lightning_white_32.png"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Row/Row.js + 1 modules -var Row = __webpack_require__("../../@lightningjs/ui-components/src/components/Row/Row.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Column/Column.js + 1 modules -var Column = __webpack_require__("../../@lightningjs/ui-components/src/components/Column/Column.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/globals/context/index.js + 6 modules -var context = __webpack_require__("../../@lightningjs/ui-components/src/globals/context/index.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/TabBar/Tab.js + 1 modules -var Tab = __webpack_require__("../../@lightningjs/ui-components/src/components/TabBar/Tab.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/utils/index.js -var src_utils = __webpack_require__("../../@lightningjs/ui-components/src/utils/index.js"); -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/TabBar/ContentSwitcher.js -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); } -function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - - -var ContentSwitcher = /*#__PURE__*/function (_Base) { - _inherits(ContentSwitcher, _Base); - var _super = _createSuper(ContentSwitcher); - function ContentSwitcher() { - _classCallCheck(this, ContentSwitcher); - return _super.apply(this, arguments); - } - _createClass(ContentSwitcher, [{ - key: "_construct", - value: function _construct() { - _get(_getPrototypeOf(ContentSwitcher.prototype), "_construct", this).call(this); - this._selectedIndex = 0; - this._contentItems = []; - } - }, { - key: "_update", - value: function _update() { - _get(_getPrototypeOf(ContentSwitcher.prototype), "_update", this).call(this); - this._updateSelected(); - } - }, { - key: "_updateSelected", - value: function _updateSelected() { - var _this = this; - if (this._preveSelectedIndex !== this.selectedIndex) { - if (this._preveSelectedIndex !== undefined) { - var prevContent = this.tag("Content".concat(this._preveSelectedIndex)); - prevContent.smooth = { - alpha: 0 - }; - if (this._hasContent) { - prevContent._getTransition('alpha').once('finish', function () { - _this._fadeInContent(); - }); - } else if (this.selectedIndex !== undefined) { - this._fadeInContent(); - } - } else if (this._hasContent) { - this._fadeInContent(); - } - this._preveSelectedIndex = this.selectedIndex; - } - } - }, { - key: "_fadeInContent", - value: function _fadeInContent() { - var _this2 = this; - this._selectedContent.smooth = { - alpha: 1 - }; - this._selectedContent._getTransition('alpha').once('finish', function () { - _this2.h = _this2._selectedContent.h; - _this2.signal('contentHeightChange', _this2.h); - }); - } - }, { - key: "_updateContent", - value: function _updateContent() { - var _this3 = this; - var allContent = this.contentItems.reduce(function (acc, item, idx) { - var component; - var tagName = "Content".concat(idx); - if (typeof item === 'function') { - var componentLoader = item(); - if (componentLoader.then) { - // update template async after component has loaded - _this3._loadAsyncComponent(componentLoader, idx); - } else { - component = componentLoader; - } - } else { - component = item; - } - if (component) { - acc[tagName] = _objectSpread(_objectSpread({}, component), {}, { - alpha: 0 - }); - } - return acc; - }, {}); - this.patch(allContent); - } - }, { - key: "_loadAsyncComponent", - value: function _loadAsyncComponent(componentLoader, idx) { - var _this4 = this; - componentLoader.then(function (component) { - var tagName = "Content".concat(idx); - _this4.patch(_defineProperty({}, tagName, _objectSpread(_objectSpread({}, component), {}, { - alpha: 0 - }))); - }); - } - }, { - key: "contentItems", - get: function get() { - return this._contentItems; - }, - set: function set(contentItems) { - if (!(0,src_utils/* stringifyCompare */.du)(contentItems, this._contentItems)) { - this._contentItems = contentItems; - this._updateContent(); - } - } - }, { - key: "_hasContent", - get: function get() { - return this._selectedContent && this._selectedContent.children.length > 0; - } - }, { - key: "_selectedContent", - get: function get() { - return this.tag("Content".concat(this.selectedIndex)); - } - }, { - key: "_getFocused", - value: function _getFocused() { - if (this._hasContent) { - return this._selectedContent; - } - } - }], [{ - key: "__componentName", - get: function get() { - return 'ContentSwitcher'; - } - }, { - key: "properties", - get: function get() { - return ['selectedIndex']; - } - }]); - return ContentSwitcher; -}(Base/* default */.A); - -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/TabBar/TabBar.styles.js -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - -var base = function base(theme) { - return { - tabSpacing: theme.spacer.lg, - tabsMarginBottom: theme.spacer.xxl - }; -}; -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/TabBar/TabBar.js -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } -function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function TabBar_typeof(o) { "@babel/helpers - typeof"; return TabBar_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, TabBar_typeof(o); } -function TabBar_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function TabBar_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, TabBar_toPropertyKey(descriptor.key), descriptor); } } -function TabBar_createClass(Constructor, protoProps, staticProps) { if (protoProps) TabBar_defineProperties(Constructor.prototype, protoProps); if (staticProps) TabBar_defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function TabBar_toPropertyKey(t) { var i = TabBar_toPrimitive(t, "string"); return "symbol" == TabBar_typeof(i) ? i : String(i); } -function TabBar_toPrimitive(t, r) { if ("object" != TabBar_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != TabBar_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function TabBar_get() { if (typeof Reflect !== "undefined" && Reflect.get) { TabBar_get = Reflect.get.bind(); } else { TabBar_get = function _get(target, property, receiver) { var base = TabBar_superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return TabBar_get.apply(this, arguments); } -function TabBar_superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = TabBar_getPrototypeOf(object); if (object === null) break; } return object; } -function TabBar_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) TabBar_setPrototypeOf(subClass, superClass); } -function TabBar_setPrototypeOf(o, p) { TabBar_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return TabBar_setPrototypeOf(o, p); } -function TabBar_createSuper(Derived) { var hasNativeReflectConstruct = TabBar_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = TabBar_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = TabBar_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return TabBar_possibleConstructorReturn(this, result); }; } -function TabBar_possibleConstructorReturn(self, call) { if (call && (TabBar_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return TabBar_assertThisInitialized(self); } -function TabBar_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -function TabBar_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; } } -function TabBar_getPrototypeOf(o) { TabBar_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return TabBar_getPrototypeOf(o); } -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - - - - -var TabBar = /*#__PURE__*/function (_Base) { - TabBar_inherits(TabBar, _Base); - var _super = TabBar_createSuper(TabBar); - function TabBar() { - TabBar_classCallCheck(this, TabBar); - return _super.apply(this, arguments); - } - TabBar_createClass(TabBar, [{ - key: "_construct", - value: function _construct() { - TabBar_get(TabBar_getPrototypeOf(TabBar.prototype), "_construct", this).call(this); - this._tabContent = []; - this._isTabsFocused = true; - } - }, { - key: "_selectedTabChange", - value: function _selectedTabChange(selected, prevSelected) { - this.fireAncestors('$tabChanged', selected, prevSelected, this); - if (TabBar_typeof(this._tabContent) === 'object' && typeof this._tabContent.then === 'function') { - return this._tabContent.then(this.queueRequestUpdate); - } - return this.queueRequestUpdate(); - } - }, { - key: "_update", - value: function _update() { - this._updateTabsLayout(); - this._updateTabs(); - this._updateTabContent(); - this._updateTabBarHeight(); - } - }, { - key: "_updateTabsLayout", - value: function _updateTabsLayout() { - var _this = this; - var defaultLayout = { - style: { - itemSpacing: this.style.tabSpacing - } - }; - var tabsRowPatch = Row/* default */.A.properties.reduce(function (patchObj, prop) { - if (_this[prop] != undefined) { - patchObj[prop] = _this[prop]; - } - return patchObj; - }, defaultLayout); - this._Tabs.patch(tabsRowPatch); - } - }, { - key: "_updateTabs", - value: function _updateTabs() { - var _this2 = this; - this._Tabs.wrapSelected = this.wrapSelected; - this._Tabs.items.forEach(function (tab) { - var isSelectedTab = tab === _this2._Tabs.selected; - if (_this2._isUnfocusedMode) { - tab.mode = isSelectedTab && _this2.retainSelection ? 'selected' : 'unfocused'; - } else if (_this2._isFocusedMode) { - if (_this2._isTabsFocused) { - tab.mode = isSelectedTab ? 'focused' : 'unfocused'; - } else { - tab.mode = isSelectedTab ? 'selected' : 'unfocused'; - } - } - }); - if (this.alphaSelectedTab) { - this._updateTabAlphas(); - } - } - }, { - key: "_updateTabAlphas", - value: function _updateTabAlphas() { - var _this3 = this; - if (this._isTabsFocused) { - this._Tabs.items.forEach(function (tab) { - tab.patch({ - alpha: 1 - }); - }); - } else { - this._Tabs.items.forEach(function (tab) { - tab.patch({ - alpha: tab === _this3._Tabs.selected ? 1 : 0.3 - }); - }); - } - } - }, { - key: "_updateTabContent", - value: function _updateTabContent() { - var margin = this.style.tabsMarginBottom; - this._TabContent.patch({ - y: this._Tabs.h + margin, - contentItems: this._tabContent, - selectedIndex: this._isFocusedMode ? this._Tabs.selectedIndex : undefined - }); - } - }, { - key: "$itemChanged", - value: function $itemChanged() { - // triggered when the Tabs Row resizes - // update the height of TabBar using the latest h value from Tabs - this._updateTabBarHeight(); - this._updateTabContent(); - } - }, { - key: "_updateTabBarHeight", - value: function _updateTabBarHeight() { - var h; - if (this.collapse) { - h = this._isFocusedMode && this._tabContent.filter(function (content) { - return Object.keys(content).length; - }).length ? this._expandedHeight : this._collapsedHeight; - } else { - h = this._expandedHeight; - } - this._TabContent.smooth = { - alpha: !this.collapse || this._isFocusedMode ? 1 : 0.001 - }; - if (this.h !== h) { - this.h = h; - this.fireAncestors('$itemChanged'); - } - } - }, { - key: "selectTabs", - value: function selectTabs() { - if (!this._isTabsFocused) { - this._isTabsFocused = true; - this._updateTabs(); - this._updateTabBarHeight(); - } - } - }, { - key: "resetTabs", - value: function resetTabs() { - this._Tabs.selectedIndex = 0; - } - }, { - key: "_handleDown", - value: function _handleDown() { - if (this._isTabsFocused && this._TabContent._hasContent) { - this._isTabsFocused = false; - this._updateTabs(); - this._updateTabBarHeight(); - } - return false; - } - }, { - key: "_handleUp", - value: function _handleUp() { - this.selectTabs(); - return false; - } - }, { - key: "_setTabs", - value: function _setTabs(tabs) { - this._tabContent = []; - this._tabContent = tabs.map(function (tab) { - return tab.tabContent || {}; - }); - this._Tabs.items = tabs; - return tabs; - } - }, { - key: "_getTabs", - value: function _getTabs() { - return this._Tabs.items; - } - }, { - key: "selected", - get: function get() { - return this._Tabs.selected; - } - }, { - key: "selectedIndex", - get: function get() { - return this._Tabs.selectedIndex; - }, - set: function set(index) { - this._Tabs.selectedIndex = index; - } - }, { - key: "_collapsedHeight", - get: function get() { - return this._Tabs.h; - } - }, { - key: "_expandedHeight", - get: function get() { - return this._Tabs.h + this.style.tabsMarginBottom + this._TabContent.h; - } - }, { - key: "_getFocused", - value: function _getFocused() { - return this._isTabsFocused ? this._Tabs : this._TabContent; - } - }, { - key: "_unfocus", - value: function _unfocus() { - TabBar_get(TabBar_getPrototypeOf(TabBar.prototype), "_unfocus", this).call(this); - if (this.reset) { - this.resetTabs(); - } - } - }], [{ - key: "_template", - value: function _template() { - return { - Tabs: { - type: Row/* default */.A, - autoResizeHeight: true, - signals: { - selectedChange: '_selectedTabChange' - } - }, - TabContent: { - type: ContentSwitcher, - signals: { - contentHeightChange: '_updateTabBarHeight' - } - } - }; - } - }, { - key: "__themeStyle", - get: function get() { - return TabBar_styles_namespaceObject; - } - }, { - key: "__componentName", - get: function get() { - return 'TabBar'; - } - }, { - key: "properties", - get: function get() { - return ['alphaSelectedTab', 'collapse', 'reset', 'tabs', 'retainSelection'].concat(_toConsumableArray(Row/* default */.A.properties)); - } - }, { - key: "tags", - get: function get() { - return ['Tabs', 'TabContent']; - } - }]); - return TabBar; -}(Base/* default */.A); - -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/TabBar/TabBar.stories.js -function TabBar_stories_typeof(o) { - "@babel/helpers - typeof"; - - return TabBar_stories_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { - return typeof o; - } : function (o) { - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; - }, TabBar_stories_typeof(o); -} -function TabBar_stories_classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} -function TabBar_stories_defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, TabBar_stories_toPropertyKey(descriptor.key), descriptor); - } -} -function TabBar_stories_createClass(Constructor, protoProps, staticProps) { - if (protoProps) TabBar_stories_defineProperties(Constructor.prototype, protoProps); - if (staticProps) TabBar_stories_defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { - writable: false - }); - return Constructor; -} -function TabBar_stories_get() { - if (typeof Reflect !== "undefined" && Reflect.get) { - TabBar_stories_get = Reflect.get.bind(); - } else { - TabBar_stories_get = function _get(target, property, receiver) { - var base = TabBar_stories_superPropBase(target, property); - if (!base) return; - var desc = Object.getOwnPropertyDescriptor(base, property); - if (desc.get) { - return desc.get.call(arguments.length < 3 ? target : receiver); - } - return desc.value; - }; - } - return TabBar_stories_get.apply(this, arguments); -} -function TabBar_stories_superPropBase(object, property) { - while (!Object.prototype.hasOwnProperty.call(object, property)) { - object = TabBar_stories_getPrototypeOf(object); - if (object === null) break; - } - return object; -} -function TabBar_stories_inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { - writable: false - }); - if (superClass) TabBar_stories_setPrototypeOf(subClass, superClass); -} -function TabBar_stories_setPrototypeOf(o, p) { - TabBar_stories_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return TabBar_stories_setPrototypeOf(o, p); -} -function TabBar_stories_createSuper(Derived) { - var hasNativeReflectConstruct = TabBar_stories_isNativeReflectConstruct(); - return function _createSuperInternal() { - var Super = TabBar_stories_getPrototypeOf(Derived), - result; - if (hasNativeReflectConstruct) { - var NewTarget = TabBar_stories_getPrototypeOf(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); - } - return TabBar_stories_possibleConstructorReturn(this, result); - }; -} -function TabBar_stories_possibleConstructorReturn(self, call) { - if (call && (TabBar_stories_typeof(call) === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { - throw new TypeError("Derived constructors may only return object or undefined"); - } - return TabBar_stories_assertThisInitialized(self); -} -function TabBar_stories_assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - return self; -} -function TabBar_stories_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; - } -} -function TabBar_stories_getPrototypeOf(o) { - TabBar_stories_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return TabBar_stories_getPrototypeOf(o); -} -function TabBar_stories_ownKeys(e, r) { - var t = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(e); - r && (o = o.filter(function (r) { - return Object.getOwnPropertyDescriptor(e, r).enumerable; - })), t.push.apply(t, o); - } - return t; -} -function TabBar_stories_objectSpread(e) { - for (var r = 1; r < arguments.length; r++) { - var t = null != arguments[r] ? arguments[r] : {}; - r % 2 ? TabBar_stories_ownKeys(Object(t), !0).forEach(function (r) { - TabBar_stories_defineProperty(e, r, t[r]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : TabBar_stories_ownKeys(Object(t)).forEach(function (r) { - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); - }); - } - return e; -} -function TabBar_stories_defineProperty(obj, key, value) { - key = TabBar_stories_toPropertyKey(key); - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} -function TabBar_stories_toPropertyKey(t) { - var i = TabBar_stories_toPrimitive(t, "string"); - return "symbol" == TabBar_stories_typeof(i) ? i : String(i); -} -function TabBar_stories_toPrimitive(t, r) { - if ("object" != TabBar_stories_typeof(t) || !t) return t; - var e = t[Symbol.toPrimitive]; - if (void 0 !== e) { - var i = e.call(t, r || "default"); - if ("object" != TabBar_stories_typeof(i)) return i; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return ("string" === r ? String : Number)(t); -} -/* eslint-disable */ -// @ts-nocheck -// @ts-expect-error (Converted from ts-ignore) -var __STORY__ = "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport Base from '../Base';\nimport Tile from '../Tile';\nimport Button from '../Button';\nimport ButtonSmall from '../Button/ButtonSmall';\nimport Icon from '../Icon';\nimport viewAllIcon from '../../assets/images/view_all.png';\nimport { createModeControl } from '../../docs/utils';\nimport lightningIcon from '../../assets/images/ic_lightning_white_32.png';\nimport Row from '../Row';\nimport Column from '../Column';\nimport context from '../../globals/context/index';\nimport Tab from './Tab';\nimport TabBarComponent from '.';\n\nexport default {\n title: 'Components/TabBar',\n args: {\n collapse: false,\n alphaSelectedTab: false,\n wrapSelected: false,\n mode: 'focused'\n },\n argTypes: {\n ...createModeControl({ summaryValue: 'focused' }),\n alphaSelectedTab: {\n control: 'boolean',\n description:\n 'When true, a lower alpha will be applied to unselected tabs when focus is delegated to the tab content',\n table: { defaultValue: { summary: false } }\n },\n collapse: {\n control: 'boolean',\n description:\n 'When true, the height of the TabBar will only reflect the height of the Tabs when unfocused or no tab content is available',\n table: { defaultValue: { summary: false } }\n },\n wrapSelected: {\n control: 'boolean',\n description:\n 'Enables wrapping behavior, so selectNext selects the first item if the current item is the last on the list and vice versa',\n table: { defaultValue: { summary: false } }\n }\n }\n};\n\nclass CustomButton extends ButtonSmall {\n _focus() {\n super._focus();\n this.patch({\n w: 175,\n title: 'View All'\n });\n this.fireAncestors('$itemChanged');\n }\n _unfocus() {\n super._unfocus();\n this.patch({\n w: 72,\n title: ''\n });\n this.fireAncestors('$itemChanged');\n }\n}\n\nconst createTiles = imgSrcs => {\n return imgSrcs.map(src => ({\n type: Tile,\n w: 410,\n h: 230,\n artwork: { src }\n }));\n};\nconst tilesA = createTiles([\n 'https://image.tmdb.org/t/p/w500/zHdQ6yaqDf3OQO5uhr0auAgwK6O.jpg',\n 'https://image.tmdb.org/t/p/w500/frwl2zBNAl5ZbFDJGoJv0mYo0rF.jpg',\n 'https://image.tmdb.org/t/p/w500/jauI01vUIkPA0xVsamGj0Gs1nNL.jpg',\n 'https://image.tmdb.org/t/p/w500/sQBS8MYXN9CZWV3gEDcL95G1KpA.jpg',\n 'https://image.tmdb.org/t/p/w500/m0iEEib19yHzyD8hLh09qkIWbwz.jpg'\n]);\nconst tilesB = tilesA.slice().reverse();\n\nconst createColumn = titles => {\n return {\n type: Column,\n h: 300,\n w: 410,\n style: { itemSpacing: 16 },\n neverScroll: true,\n items: titles.map(title => ({\n w: 410,\n type: Button,\n title\n }))\n };\n};\nconst col1 = createColumn(['Item 1', 'Item 2', 'Item 3']);\nconst col2 = createColumn(['Async Item 1', 'Async Item 2', 'Async Item 3']);\n\nconst rowFunction = () => ({\n type: Row,\n items: tilesB,\n autoResizeHeight: true,\n alwaysScroll: true\n});\n\nconst colPromise = () => {\n return new Promise(resolve => {\n setTimeout(() => {\n resolve(col2);\n }, 2000);\n });\n};\n\nexport const Basic = () =>\n class Basic extends lng.Component {\n static _template() {\n return {\n TabBar: {\n type: TabBarComponent,\n w: 1920 - 160,\n tabs: [\n {\n type: Tab,\n title: 'No Content Tab'\n },\n {\n type: Tab,\n title: 'Tab 1',\n tabContent: {\n type: Row,\n items: tilesA,\n autoResizeHeight: true,\n lazyScroll: true\n }\n },\n {\n type: Tab,\n title: 'Tab 2',\n tabContent: col1\n },\n {\n type: Tab,\n title: 'Tab 3',\n tabContent: rowFunction\n },\n {\n type: Tab,\n title: 'Tab 4',\n tabContent: colPromise\n }\n ]\n }\n };\n }\n };\n\nclass CustomTile extends Tile {\n static _template() {\n return {\n ...super._template(),\n SoftFocus: {}\n };\n }\n _update() {\n super._update();\n this._updateSoftFocus();\n }\n\n _updateSoftFocus() {\n const { color, spacer } = context.theme;\n if (this.mode === 'selected') {\n this.tag('SoftFocus').patch({\n rect: true,\n color: color.interactiveNeutralFocus,\n h: spacer.xs,\n w: spacer.xxxl + spacer.xxl + spacer.xs,\n mountX: 0.5,\n mountY: 1,\n y: this.h + spacer.lg + spacer.xs,\n x: this.w / 2\n });\n } else {\n this.tag('SoftFocus').patch({ h: 0, w: 0 });\n }\n }\n}\n\nconst tileProps = {\n w: 100,\n h: 100,\n radius: 50,\n imgRadius: 50,\n artwork: { icon: lightningIcon }\n};\n\nexport const CustomTabs = () =>\n class CustomTabs extends lng.Component {\n static _template() {\n return {\n TabBar: {\n type: TabBarComponent,\n w: 1920 - 160,\n tabs: [\n {\n type: CustomButton,\n fixed: true,\n prefix: [{ type: Icon, icon: viewAllIcon, w: 20, h: 20 }],\n centerInParent: true,\n backgroundType: 'fill'\n },\n {\n type: CustomTile,\n ...tileProps,\n tabContent: {\n type: Row,\n items: tilesA,\n autoResizeHeight: true,\n lazyScroll: true\n }\n },\n {\n type: CustomTile,\n ...tileProps,\n tabContent: col1\n },\n {\n type: CustomTile,\n ...tileProps,\n tabContent: rowFunction\n },\n {\n type: CustomTile,\n ...tileProps,\n tabContent: colPromise\n }\n ]\n }\n };\n }\n };\nCustomTabs.args = {\n alphaSelectedTab: false\n};\nCustomTabs.argTypes = {};\n\nclass ColumnContainer extends Base {\n static get __componentName() {\n return 'ColumnContainer';\n }\n static get tags() {\n return [\n 'ClippingOffsetContainer',\n { name: 'Column', path: 'ClippingOffsetContainer.Column' }\n ];\n }\n static _template() {\n return {\n ClippingOffsetContainer: {\n w: 1920 - 160,\n h: 600,\n clipping: true,\n y: context.theme.layout.gutterY * -1,\n x: 40 * -1,\n Column: {\n type: Column,\n y: context.theme.layout.gutterY,\n x: 40,\n items: [\n {\n type: Row,\n items: tilesA,\n autoResizeHeight: true\n },\n {\n type: Row,\n\n items: tilesA,\n autoResizeHeight: true\n },\n {\n type: Row,\n\n items: tilesA,\n autoResizeHeight: true\n },\n {\n type: Row,\n\n items: tilesA,\n autoResizeHeight: true\n }\n ]\n }\n }\n };\n }\n _getFocused() {\n return this._Column;\n }\n}\n\nexport const MultipleRows = () =>\n class MultipleRows extends lng.Component {\n static _template() {\n return {\n TabBar: {\n type: TabBarComponent,\n autoResizeWidth: true,\n tabs: [\n {\n type: Tab,\n title: 'No Content Tab'\n },\n {\n type: Tab,\n title: 'Multiple Rows',\n tabContent: {\n type: ColumnContainer\n }\n },\n {\n type: Tab,\n title: 'Tab 2',\n tabContent: col1\n }\n ]\n }\n };\n }\n };\n\nMultipleRows.args = {};\nMultipleRows.parameters = {\n storyDetails:\n 'This is an example of adding multiple rows in the tab content column. A ColumnContainer was created to allow for clipping needed for scrolling'\n};\nMultipleRows.argTypes = {};\n"; -// @ts-expect-error (Converted from ts-ignore) -var __LOCATIONS_MAP__ = { - "Basic": { - "startLoc": { - "col": 21, - "line": 133 - }, - "endLoc": { - "col": 3, - "line": 174 - }, - "startBody": { - "col": 21, - "line": 133 - }, - "endBody": { - "col": 3, - "line": 174 - } - }, - "CustomTabs": { - "startLoc": { - "col": 26, - "line": 215 - }, - "endLoc": { - "col": 3, - "line": 259 - }, - "startBody": { - "col": 26, - "line": 215 - }, - "endBody": { - "col": 3, - "line": 259 - } - }, - "MultipleRows": { - "startLoc": { - "col": 28, - "line": 321 - }, - "endLoc": { - "col": 3, - "line": 349 - }, - "startBody": { - "col": 28, - "line": 321 - }, - "endBody": { - "col": 3, - "line": 349 - } - } -}; - -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - - - - - - - - - - - - - - -/* harmony default export */ const TabBar_stories = ({ - parameters: { - "storySource": { - "source": "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport Base from '../Base';\nimport Tile from '../Tile';\nimport Button from '../Button';\nimport ButtonSmall from '../Button/ButtonSmall';\nimport Icon from '../Icon';\nimport viewAllIcon from '../../assets/images/view_all.png';\nimport { createModeControl } from '../../docs/utils';\nimport lightningIcon from '../../assets/images/ic_lightning_white_32.png';\nimport Row from '../Row';\nimport Column from '../Column';\nimport context from '../../globals/context/index';\nimport Tab from './Tab';\nimport TabBarComponent from '.';\n\nexport default {\n title: 'Components/TabBar',\n args: {\n collapse: false,\n alphaSelectedTab: false,\n wrapSelected: false,\n mode: 'focused'\n },\n argTypes: {\n ...createModeControl({ summaryValue: 'focused' }),\n alphaSelectedTab: {\n control: 'boolean',\n description:\n 'When true, a lower alpha will be applied to unselected tabs when focus is delegated to the tab content',\n table: { defaultValue: { summary: false } }\n },\n collapse: {\n control: 'boolean',\n description:\n 'When true, the height of the TabBar will only reflect the height of the Tabs when unfocused or no tab content is available',\n table: { defaultValue: { summary: false } }\n },\n wrapSelected: {\n control: 'boolean',\n description:\n 'Enables wrapping behavior, so selectNext selects the first item if the current item is the last on the list and vice versa',\n table: { defaultValue: { summary: false } }\n }\n }\n};\n\nclass CustomButton extends ButtonSmall {\n _focus() {\n super._focus();\n this.patch({\n w: 175,\n title: 'View All'\n });\n this.fireAncestors('$itemChanged');\n }\n _unfocus() {\n super._unfocus();\n this.patch({\n w: 72,\n title: ''\n });\n this.fireAncestors('$itemChanged');\n }\n}\n\nconst createTiles = imgSrcs => {\n return imgSrcs.map(src => ({\n type: Tile,\n w: 410,\n h: 230,\n artwork: { src }\n }));\n};\nconst tilesA = createTiles([\n 'https://image.tmdb.org/t/p/w500/zHdQ6yaqDf3OQO5uhr0auAgwK6O.jpg',\n 'https://image.tmdb.org/t/p/w500/frwl2zBNAl5ZbFDJGoJv0mYo0rF.jpg',\n 'https://image.tmdb.org/t/p/w500/jauI01vUIkPA0xVsamGj0Gs1nNL.jpg',\n 'https://image.tmdb.org/t/p/w500/sQBS8MYXN9CZWV3gEDcL95G1KpA.jpg',\n 'https://image.tmdb.org/t/p/w500/m0iEEib19yHzyD8hLh09qkIWbwz.jpg'\n]);\nconst tilesB = tilesA.slice().reverse();\n\nconst createColumn = titles => {\n return {\n type: Column,\n h: 300,\n w: 410,\n style: { itemSpacing: 16 },\n neverScroll: true,\n items: titles.map(title => ({\n w: 410,\n type: Button,\n title\n }))\n };\n};\nconst col1 = createColumn(['Item 1', 'Item 2', 'Item 3']);\nconst col2 = createColumn(['Async Item 1', 'Async Item 2', 'Async Item 3']);\n\nconst rowFunction = () => ({\n type: Row,\n items: tilesB,\n autoResizeHeight: true,\n alwaysScroll: true\n});\n\nconst colPromise = () => {\n return new Promise(resolve => {\n setTimeout(() => {\n resolve(col2);\n }, 2000);\n });\n};\n\nexport const Basic = () =>\n class Basic extends lng.Component {\n static _template() {\n return {\n TabBar: {\n type: TabBarComponent,\n w: 1920 - 160,\n tabs: [\n {\n type: Tab,\n title: 'No Content Tab'\n },\n {\n type: Tab,\n title: 'Tab 1',\n tabContent: {\n type: Row,\n items: tilesA,\n autoResizeHeight: true,\n lazyScroll: true\n }\n },\n {\n type: Tab,\n title: 'Tab 2',\n tabContent: col1\n },\n {\n type: Tab,\n title: 'Tab 3',\n tabContent: rowFunction\n },\n {\n type: Tab,\n title: 'Tab 4',\n tabContent: colPromise\n }\n ]\n }\n };\n }\n };\n\nclass CustomTile extends Tile {\n static _template() {\n return {\n ...super._template(),\n SoftFocus: {}\n };\n }\n _update() {\n super._update();\n this._updateSoftFocus();\n }\n\n _updateSoftFocus() {\n const { color, spacer } = context.theme;\n if (this.mode === 'selected') {\n this.tag('SoftFocus').patch({\n rect: true,\n color: color.interactiveNeutralFocus,\n h: spacer.xs,\n w: spacer.xxxl + spacer.xxl + spacer.xs,\n mountX: 0.5,\n mountY: 1,\n y: this.h + spacer.lg + spacer.xs,\n x: this.w / 2\n });\n } else {\n this.tag('SoftFocus').patch({ h: 0, w: 0 });\n }\n }\n}\n\nconst tileProps = {\n w: 100,\n h: 100,\n radius: 50,\n imgRadius: 50,\n artwork: { icon: lightningIcon }\n};\n\nexport const CustomTabs = () =>\n class CustomTabs extends lng.Component {\n static _template() {\n return {\n TabBar: {\n type: TabBarComponent,\n w: 1920 - 160,\n tabs: [\n {\n type: CustomButton,\n fixed: true,\n prefix: [{ type: Icon, icon: viewAllIcon, w: 20, h: 20 }],\n centerInParent: true,\n backgroundType: 'fill'\n },\n {\n type: CustomTile,\n ...tileProps,\n tabContent: {\n type: Row,\n items: tilesA,\n autoResizeHeight: true,\n lazyScroll: true\n }\n },\n {\n type: CustomTile,\n ...tileProps,\n tabContent: col1\n },\n {\n type: CustomTile,\n ...tileProps,\n tabContent: rowFunction\n },\n {\n type: CustomTile,\n ...tileProps,\n tabContent: colPromise\n }\n ]\n }\n };\n }\n };\nCustomTabs.args = {\n alphaSelectedTab: false\n};\nCustomTabs.argTypes = {};\n\nclass ColumnContainer extends Base {\n static get __componentName() {\n return 'ColumnContainer';\n }\n static get tags() {\n return [\n 'ClippingOffsetContainer',\n { name: 'Column', path: 'ClippingOffsetContainer.Column' }\n ];\n }\n static _template() {\n return {\n ClippingOffsetContainer: {\n w: 1920 - 160,\n h: 600,\n clipping: true,\n y: context.theme.layout.gutterY * -1,\n x: 40 * -1,\n Column: {\n type: Column,\n y: context.theme.layout.gutterY,\n x: 40,\n items: [\n {\n type: Row,\n items: tilesA,\n autoResizeHeight: true\n },\n {\n type: Row,\n\n items: tilesA,\n autoResizeHeight: true\n },\n {\n type: Row,\n\n items: tilesA,\n autoResizeHeight: true\n },\n {\n type: Row,\n\n items: tilesA,\n autoResizeHeight: true\n }\n ]\n }\n }\n };\n }\n _getFocused() {\n return this._Column;\n }\n}\n\nexport const MultipleRows = () =>\n class MultipleRows extends lng.Component {\n static _template() {\n return {\n TabBar: {\n type: TabBarComponent,\n autoResizeWidth: true,\n tabs: [\n {\n type: Tab,\n title: 'No Content Tab'\n },\n {\n type: Tab,\n title: 'Multiple Rows',\n tabContent: {\n type: ColumnContainer\n }\n },\n {\n type: Tab,\n title: 'Tab 2',\n tabContent: col1\n }\n ]\n }\n };\n }\n };\n\nMultipleRows.args = {};\nMultipleRows.parameters = {\n storyDetails:\n 'This is an example of adding multiple rows in the tab content column. A ColumnContainer was created to allow for clipping needed for scrolling'\n};\nMultipleRows.argTypes = {};\n", - "locationsMap": { - "basic": { - "startLoc": { - "col": 21, - "line": 133 - }, - "endLoc": { - "col": 3, - "line": 174 - }, - "startBody": { - "col": 21, - "line": 133 - }, - "endBody": { - "col": 3, - "line": 174 - } - }, - "custom-tabs": { - "startLoc": { - "col": 26, - "line": 215 - }, - "endLoc": { - "col": 3, - "line": 259 - }, - "startBody": { - "col": 26, - "line": 215 - }, - "endBody": { - "col": 3, - "line": 259 - } - }, - "multiple-rows": { - "startLoc": { - "col": 28, - "line": 321 - }, - "endLoc": { - "col": 3, - "line": 349 - }, - "startBody": { - "col": 28, - "line": 321 - }, - "endBody": { - "col": 3, - "line": 349 - } - } - } - } - }, - title: 'Components/TabBar', - args: { - collapse: false, - alphaSelectedTab: false, - wrapSelected: false, - mode: 'focused' - }, - argTypes: TabBar_stories_objectSpread(TabBar_stories_objectSpread({}, (0,utils/* createModeControl */.Pg)({ - summaryValue: 'focused' - })), {}, { - alphaSelectedTab: { - control: 'boolean', - description: 'When true, a lower alpha will be applied to unselected tabs when focus is delegated to the tab content', - table: { - defaultValue: { - summary: false - } - } - }, - collapse: { - control: 'boolean', - description: 'When true, the height of the TabBar will only reflect the height of the Tabs when unfocused or no tab content is available', - table: { - defaultValue: { - summary: false - } - } - }, - wrapSelected: { - control: 'boolean', - description: 'Enables wrapping behavior, so selectNext selects the first item if the current item is the last on the list and vice versa', - table: { - defaultValue: { - summary: false - } - } - } - }) -}); -var CustomButton = /*#__PURE__*/function (_ButtonSmall) { - TabBar_stories_inherits(CustomButton, _ButtonSmall); - var _super = TabBar_stories_createSuper(CustomButton); - function CustomButton() { - TabBar_stories_classCallCheck(this, CustomButton); - return _super.apply(this, arguments); - } - TabBar_stories_createClass(CustomButton, [{ - key: "_focus", - value: function _focus() { - TabBar_stories_get(TabBar_stories_getPrototypeOf(CustomButton.prototype), "_focus", this).call(this); - this.patch({ - w: 175, - title: 'View All' - }); - this.fireAncestors('$itemChanged'); - } - }, { - key: "_unfocus", - value: function _unfocus() { - TabBar_stories_get(TabBar_stories_getPrototypeOf(CustomButton.prototype), "_unfocus", this).call(this); - this.patch({ - w: 72, - title: '' - }); - this.fireAncestors('$itemChanged'); - } - }]); - return CustomButton; -}(ButtonSmall/* default */.A); -var createTiles = function createTiles(imgSrcs) { - return imgSrcs.map(function (src) { - return { - type: Tile/* default */.A, - w: 410, - h: 230, - artwork: { - src: src - } - }; - }); -}; -var tilesA = createTiles(['https://image.tmdb.org/t/p/w500/zHdQ6yaqDf3OQO5uhr0auAgwK6O.jpg', 'https://image.tmdb.org/t/p/w500/frwl2zBNAl5ZbFDJGoJv0mYo0rF.jpg', 'https://image.tmdb.org/t/p/w500/jauI01vUIkPA0xVsamGj0Gs1nNL.jpg', 'https://image.tmdb.org/t/p/w500/sQBS8MYXN9CZWV3gEDcL95G1KpA.jpg', 'https://image.tmdb.org/t/p/w500/m0iEEib19yHzyD8hLh09qkIWbwz.jpg']); -var tilesB = tilesA.slice().reverse(); -var createColumn = function createColumn(titles) { - return { - type: Column/* default */.A, - h: 300, - w: 410, - style: { - itemSpacing: 16 - }, - neverScroll: true, - items: titles.map(function (title) { - return { - w: 410, - type: Button/* default */.A, - title: title - }; - }) - }; -}; -var col1 = createColumn(['Item 1', 'Item 2', 'Item 3']); -var col2 = createColumn(['Async Item 1', 'Async Item 2', 'Async Item 3']); -var rowFunction = function rowFunction() { - return { - type: Row/* default */.A, - items: tilesB, - autoResizeHeight: true, - alwaysScroll: true - }; -}; -var colPromise = function colPromise() { - return new Promise(function (resolve) { - setTimeout(function () { - resolve(col2); - }, 2000); - }); -}; -var Basic = function Basic() { - return /*#__PURE__*/function (_lng$Component) { - TabBar_stories_inherits(Basic, _lng$Component); - var _super2 = TabBar_stories_createSuper(Basic); - function Basic() { - TabBar_stories_classCallCheck(this, Basic); - return _super2.apply(this, arguments); - } - TabBar_stories_createClass(Basic, null, [{ - key: "_template", - value: function _template() { - return { - TabBar: { - type: TabBar, - w: 1920 - 160, - tabs: [{ - type: Tab/* default */.A, - title: 'No Content Tab' - }, { - type: Tab/* default */.A, - title: 'Tab 1', - tabContent: { - type: Row/* default */.A, - items: tilesA, - autoResizeHeight: true, - lazyScroll: true - } - }, { - type: Tab/* default */.A, - title: 'Tab 2', - tabContent: col1 - }, { - type: Tab/* default */.A, - title: 'Tab 3', - tabContent: rowFunction - }, { - type: Tab/* default */.A, - title: 'Tab 4', - tabContent: colPromise - }] - } - }; - } - }]); - return Basic; - }(lightning_esm/* default */.A.Component); -}; -; -var CustomTile = /*#__PURE__*/function (_Tile) { - TabBar_stories_inherits(CustomTile, _Tile); - var _super3 = TabBar_stories_createSuper(CustomTile); - function CustomTile() { - TabBar_stories_classCallCheck(this, CustomTile); - return _super3.apply(this, arguments); - } - TabBar_stories_createClass(CustomTile, [{ - key: "_update", - value: function _update() { - TabBar_stories_get(TabBar_stories_getPrototypeOf(CustomTile.prototype), "_update", this).call(this); - this._updateSoftFocus(); - } - }, { - key: "_updateSoftFocus", - value: function _updateSoftFocus() { - var _context$theme = context/* default */.A.theme, - color = _context$theme.color, - spacer = _context$theme.spacer; - if (this.mode === 'selected') { - this.tag('SoftFocus').patch({ - rect: true, - color: color.interactiveNeutralFocus, - h: spacer.xs, - w: spacer.xxxl + spacer.xxl + spacer.xs, - mountX: 0.5, - mountY: 1, - y: this.h + spacer.lg + spacer.xs, - x: this.w / 2 - }); - } else { - this.tag('SoftFocus').patch({ - h: 0, - w: 0 - }); - } - } - }], [{ - key: "_template", - value: function _template() { - return TabBar_stories_objectSpread(TabBar_stories_objectSpread({}, TabBar_stories_get(TabBar_stories_getPrototypeOf(CustomTile), "_template", this).call(this)), {}, { - SoftFocus: {} - }); - } - }]); - return CustomTile; -}(Tile/* default */.A); -var tileProps = { - w: 100, - h: 100, - radius: 50, - imgRadius: 50, - artwork: { - icon: ic_lightning_white_32 - } -}; -var CustomTabs = function CustomTabs() { - return /*#__PURE__*/function (_lng$Component2) { - TabBar_stories_inherits(CustomTabs, _lng$Component2); - var _super4 = TabBar_stories_createSuper(CustomTabs); - function CustomTabs() { - TabBar_stories_classCallCheck(this, CustomTabs); - return _super4.apply(this, arguments); - } - TabBar_stories_createClass(CustomTabs, null, [{ - key: "_template", - value: function _template() { - return { - TabBar: { - type: TabBar, - w: 1920 - 160, - tabs: [{ - type: CustomButton, - fixed: true, - prefix: [{ - type: Icon/* default */.A, - icon: view_all_namespaceObject, - w: 20, - h: 20 - }], - centerInParent: true, - backgroundType: 'fill' - }, TabBar_stories_objectSpread(TabBar_stories_objectSpread({ - type: CustomTile - }, tileProps), {}, { - tabContent: { - type: Row/* default */.A, - items: tilesA, - autoResizeHeight: true, - lazyScroll: true - } - }), TabBar_stories_objectSpread(TabBar_stories_objectSpread({ - type: CustomTile - }, tileProps), {}, { - tabContent: col1 - }), TabBar_stories_objectSpread(TabBar_stories_objectSpread({ - type: CustomTile - }, tileProps), {}, { - tabContent: rowFunction - }), TabBar_stories_objectSpread(TabBar_stories_objectSpread({ - type: CustomTile - }, tileProps), {}, { - tabContent: colPromise - })] - } - }; - } - }]); - return CustomTabs; - }(lightning_esm/* default */.A.Component); -}; -; -CustomTabs.args = { - alphaSelectedTab: false -}; -CustomTabs.argTypes = {}; -var ColumnContainer = /*#__PURE__*/function (_Base) { - TabBar_stories_inherits(ColumnContainer, _Base); - var _super5 = TabBar_stories_createSuper(ColumnContainer); - function ColumnContainer() { - TabBar_stories_classCallCheck(this, ColumnContainer); - return _super5.apply(this, arguments); - } - TabBar_stories_createClass(ColumnContainer, [{ - key: "_getFocused", - value: function _getFocused() { - return this._Column; - } - }], [{ - key: "__componentName", - get: function get() { - return 'ColumnContainer'; - } - }, { - key: "tags", - get: function get() { - return ['ClippingOffsetContainer', { - name: 'Column', - path: 'ClippingOffsetContainer.Column' - }]; - } - }, { - key: "_template", - value: function _template() { - return { - ClippingOffsetContainer: { - w: 1920 - 160, - h: 600, - clipping: true, - y: context/* default */.A.theme.layout.gutterY * -1, - x: 40 * -1, - Column: { - type: Column/* default */.A, - y: context/* default */.A.theme.layout.gutterY, - x: 40, - items: [{ - type: Row/* default */.A, - items: tilesA, - autoResizeHeight: true - }, { - type: Row/* default */.A, - items: tilesA, - autoResizeHeight: true - }, { - type: Row/* default */.A, - items: tilesA, - autoResizeHeight: true - }, { - type: Row/* default */.A, - items: tilesA, - autoResizeHeight: true - }] - } - } - }; - } - }]); - return ColumnContainer; -}(Base/* default */.A); -var MultipleRows = function MultipleRows() { - return /*#__PURE__*/function (_lng$Component3) { - TabBar_stories_inherits(MultipleRows, _lng$Component3); - var _super6 = TabBar_stories_createSuper(MultipleRows); - function MultipleRows() { - TabBar_stories_classCallCheck(this, MultipleRows); - return _super6.apply(this, arguments); - } - TabBar_stories_createClass(MultipleRows, null, [{ - key: "_template", - value: function _template() { - return { - TabBar: { - type: TabBar, - autoResizeWidth: true, - tabs: [{ - type: Tab/* default */.A, - title: 'No Content Tab' - }, { - type: Tab/* default */.A, - title: 'Multiple Rows', - tabContent: { - type: ColumnContainer - } - }, { - type: Tab/* default */.A, - title: 'Tab 2', - tabContent: col1 - }] - } - }; - } - }]); - return MultipleRows; - }(lightning_esm/* default */.A.Component); -}; -MultipleRows.args = {}; -MultipleRows.parameters = { - storyDetails: 'This is an example of adding multiple rows in the tab content column. A ColumnContainer was created to allow for clipping needed for scrolling' -}; -MultipleRows.argTypes = {}; -Basic.parameters = { - ...Basic.parameters, - docs: { - ...Basic.parameters?.docs, - source: { - originalSource: "() => class Basic extends lng.Component {\n static _template() {\n return {\n TabBar: {\n type: TabBarComponent,\n w: 1920 - 160,\n tabs: [{\n type: Tab,\n title: 'No Content Tab'\n }, {\n type: Tab,\n title: 'Tab 1',\n tabContent: {\n type: Row,\n items: tilesA,\n autoResizeHeight: true,\n lazyScroll: true\n }\n }, {\n type: Tab,\n title: 'Tab 2',\n tabContent: col1\n }, {\n type: Tab,\n title: 'Tab 3',\n tabContent: rowFunction\n }, {\n type: Tab,\n title: 'Tab 4',\n tabContent: colPromise\n }]\n }\n };\n }\n}", - ...Basic.parameters?.docs?.source - } - } -}; -CustomTabs.parameters = { - ...CustomTabs.parameters, - docs: { - ...CustomTabs.parameters?.docs, - source: { - originalSource: "() => class CustomTabs extends lng.Component {\n static _template() {\n return {\n TabBar: {\n type: TabBarComponent,\n w: 1920 - 160,\n tabs: [{\n type: CustomButton,\n fixed: true,\n prefix: [{\n type: Icon,\n icon: viewAllIcon,\n w: 20,\n h: 20\n }],\n centerInParent: true,\n backgroundType: 'fill'\n }, {\n type: CustomTile,\n ...tileProps,\n tabContent: {\n type: Row,\n items: tilesA,\n autoResizeHeight: true,\n lazyScroll: true\n }\n }, {\n type: CustomTile,\n ...tileProps,\n tabContent: col1\n }, {\n type: CustomTile,\n ...tileProps,\n tabContent: rowFunction\n }, {\n type: CustomTile,\n ...tileProps,\n tabContent: colPromise\n }]\n }\n };\n }\n}", - ...CustomTabs.parameters?.docs?.source - } - } -}; -MultipleRows.parameters = { - ...MultipleRows.parameters, - docs: { - ...MultipleRows.parameters?.docs, - source: { - originalSource: "() => class MultipleRows extends lng.Component {\n static _template() {\n return {\n TabBar: {\n type: TabBarComponent,\n autoResizeWidth: true,\n tabs: [{\n type: Tab,\n title: 'No Content Tab'\n }, {\n type: Tab,\n title: 'Multiple Rows',\n tabContent: {\n type: ColumnContainer\n }\n }, {\n type: Tab,\n title: 'Tab 2',\n tabContent: col1\n }]\n }\n };\n }\n}", - ...MultipleRows.parameters?.docs?.source - } - } -};;const __namedExportsOrder = ["Basic","CustomTabs","MultipleRows"]; - -/***/ }), - -/***/ "../../@lightningjs/ui-components/src/components/Button/ButtonSmall.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - A: () => (/* binding */ ButtonSmall) -}); - -// NAMESPACE OBJECT: ../../@lightningjs/ui-components/src/components/Button/ButtonSmall.styles.js -var ButtonSmall_styles_namespaceObject = {}; -__webpack_require__.r(ButtonSmall_styles_namespaceObject); -__webpack_require__.d(ButtonSmall_styles_namespaceObject, { - base: () => (base) -}); - -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Button/Button.js + 1 modules -var Button = __webpack_require__("../../@lightningjs/ui-components/src/components/Button/Button.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/utils/index.js -var utils = __webpack_require__("../../@lightningjs/ui-components/src/utils/index.js"); -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/Button/ButtonSmall.styles.js -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - -var base = function base(theme) { - return { - minWidth: (0,utils/* getWidthByColumnSpan */._l)(theme, 1), - paddingX: theme.spacer.xxl, - paddingXNoTitle: theme.spacer.lg, - paddingY: theme.spacer.lg, - textStyle: theme.typography.button2 - }; -}; -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/Button/ButtonSmall.js -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - - -var ButtonSmall = /*#__PURE__*/function (_Button) { - _inherits(ButtonSmall, _Button); - var _super = _createSuper(ButtonSmall); - function ButtonSmall() { - _classCallCheck(this, ButtonSmall); - return _super.apply(this, arguments); - } - _createClass(ButtonSmall, null, [{ - key: "__componentName", - get: function get() { - return 'ButtonSmall'; - } - }, { - key: "__themeStyle", - get: function get() { - return ButtonSmall_styles_namespaceObject; - } - }]); - return ButtonSmall; -}(Button/* default */.A); - - -/***/ }) - -}]); -//# sourceMappingURL=3054.713cdc47.iframe.bundle.js.map \ No newline at end of file diff --git a/3054.713cdc47.iframe.bundle.js.map b/3054.713cdc47.iframe.bundle.js.map deleted file mode 100644 index fead9bf7f..000000000 --- a/3054.713cdc47.iframe.bundle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"3054.713cdc47.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AAAA;AAEA;AAEA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AAUA;AACA;AAAA;AARA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAOA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAxGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAAA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2CA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAIA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAEA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAtNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAQA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;;;AC/DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;ACtuBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA","sources":["webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/TabBar/ContentSwitcher.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/TabBar/TabBar.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/TabBar/TabBar.js","webpack://lightning-ui-docs/","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Button/ButtonSmall.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Button/ButtonSmall.js"],"sourcesContent":["/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport Base from '../Base';\nimport { stringifyCompare } from '../../utils';\n\nexport default class ContentSwitcher extends Base {\n static get __componentName() {\n return 'ContentSwitcher';\n }\n\n static get properties() {\n return ['selectedIndex'];\n }\n\n _construct() {\n super._construct();\n this._selectedIndex = 0;\n this._contentItems = [];\n }\n\n _update() {\n super._update();\n this._updateSelected();\n }\n\n _updateSelected() {\n if (this._preveSelectedIndex !== this.selectedIndex) {\n if (this._preveSelectedIndex !== undefined) {\n const prevContent = this.tag(`Content${this._preveSelectedIndex}`);\n prevContent.smooth = { alpha: 0 };\n if (this._hasContent) {\n prevContent._getTransition('alpha').once('finish', () => {\n this._fadeInContent();\n });\n } else if (this.selectedIndex !== undefined) {\n this._fadeInContent();\n }\n } else if (this._hasContent) {\n this._fadeInContent();\n }\n this._preveSelectedIndex = this.selectedIndex;\n }\n }\n\n _fadeInContent() {\n this._selectedContent.smooth = { alpha: 1 };\n this._selectedContent._getTransition('alpha').once('finish', () => {\n this.h = this._selectedContent.h;\n this.signal('contentHeightChange', this.h);\n });\n }\n\n _updateContent() {\n const allContent = this.contentItems.reduce((acc, item, idx) => {\n let component;\n const tagName = `Content${idx}`;\n\n if (typeof item === 'function') {\n const componentLoader = item();\n if (componentLoader.then) {\n // update template async after component has loaded\n this._loadAsyncComponent(componentLoader, idx);\n } else {\n component = componentLoader;\n }\n } else {\n component = item;\n }\n\n if (component) {\n acc[tagName] = {\n ...component,\n alpha: 0\n };\n }\n\n return acc;\n }, {});\n this.patch(allContent);\n }\n\n _loadAsyncComponent(componentLoader, idx) {\n componentLoader.then(component => {\n const tagName = `Content${idx}`;\n this.patch({ [tagName]: { ...component, alpha: 0 } });\n });\n }\n\n set contentItems(contentItems) {\n if (!stringifyCompare(contentItems, this._contentItems)) {\n this._contentItems = contentItems;\n this._updateContent();\n }\n }\n\n get contentItems() {\n return this._contentItems;\n }\n\n get _hasContent() {\n return this._selectedContent && this._selectedContent.children.length > 0;\n }\n\n get _selectedContent() {\n return this.tag(`Content${this.selectedIndex}`);\n }\n\n _getFocused() {\n if (this._hasContent) {\n return this._selectedContent;\n }\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => ({\n tabSpacing: theme.spacer.lg,\n tabsMarginBottom: theme.spacer.xxl\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport Base from '../Base';\nimport Row from '../Row';\nimport ContentSwitcher from './ContentSwitcher';\nimport * as styles from './TabBar.styles';\n\nexport default class TabBar extends Base {\n static _template() {\n return {\n Tabs: {\n type: Row,\n autoResizeHeight: true,\n signals: {\n selectedChange: '_selectedTabChange'\n }\n },\n TabContent: {\n type: ContentSwitcher,\n signals: {\n contentHeightChange: '_updateTabBarHeight'\n }\n }\n };\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static get __componentName() {\n return 'TabBar';\n }\n\n static get properties() {\n return [\n 'alphaSelectedTab',\n 'collapse',\n 'reset',\n 'tabs',\n 'retainSelection',\n ...Row.properties\n ];\n }\n\n static get tags() {\n return ['Tabs', 'TabContent'];\n }\n\n _construct() {\n super._construct();\n this._tabContent = [];\n this._isTabsFocused = true;\n }\n\n _selectedTabChange(selected, prevSelected) {\n this.fireAncestors('$tabChanged', selected, prevSelected, this);\n if (\n typeof this._tabContent === 'object' &&\n typeof this._tabContent.then === 'function'\n ) {\n return this._tabContent.then(this.queueRequestUpdate);\n }\n return this.queueRequestUpdate();\n }\n\n _update() {\n this._updateTabsLayout();\n this._updateTabs();\n this._updateTabContent();\n this._updateTabBarHeight();\n }\n\n _updateTabsLayout() {\n const defaultLayout = {\n style: {\n itemSpacing: this.style.tabSpacing\n }\n };\n const tabsRowPatch = Row.properties.reduce((patchObj, prop) => {\n if (this[prop] != undefined) {\n patchObj[prop] = this[prop];\n }\n return patchObj;\n }, defaultLayout);\n\n this._Tabs.patch(tabsRowPatch);\n }\n\n _updateTabs() {\n this._Tabs.wrapSelected = this.wrapSelected;\n this._Tabs.items.forEach(tab => {\n const isSelectedTab = tab === this._Tabs.selected;\n if (this._isUnfocusedMode) {\n tab.mode =\n isSelectedTab && this.retainSelection ? 'selected' : 'unfocused';\n } else if (this._isFocusedMode) {\n if (this._isTabsFocused) {\n tab.mode = isSelectedTab ? 'focused' : 'unfocused';\n } else {\n tab.mode = isSelectedTab ? 'selected' : 'unfocused';\n }\n }\n });\n if (this.alphaSelectedTab) {\n this._updateTabAlphas();\n }\n }\n\n _updateTabAlphas() {\n if (this._isTabsFocused) {\n this._Tabs.items.forEach(tab => {\n tab.patch({ alpha: 1 });\n });\n } else {\n this._Tabs.items.forEach(tab => {\n tab.patch({ alpha: tab === this._Tabs.selected ? 1 : 0.3 });\n });\n }\n }\n\n _updateTabContent() {\n const margin = this.style.tabsMarginBottom;\n this._TabContent.patch({\n y: this._Tabs.h + margin,\n contentItems: this._tabContent,\n selectedIndex: this._isFocusedMode ? this._Tabs.selectedIndex : undefined\n });\n }\n\n $itemChanged() {\n // triggered when the Tabs Row resizes\n // update the height of TabBar using the latest h value from Tabs\n this._updateTabBarHeight();\n this._updateTabContent();\n }\n\n _updateTabBarHeight() {\n let h;\n if (this.collapse) {\n h =\n this._isFocusedMode &&\n this._tabContent.filter(content => Object.keys(content).length).length\n ? this._expandedHeight\n : this._collapsedHeight;\n } else {\n h = this._expandedHeight;\n }\n this._TabContent.smooth = {\n alpha: !this.collapse || this._isFocusedMode ? 1 : 0.001\n };\n if (this.h !== h) {\n this.h = h;\n this.fireAncestors('$itemChanged');\n }\n }\n\n selectTabs() {\n if (!this._isTabsFocused) {\n this._isTabsFocused = true;\n this._updateTabs();\n this._updateTabBarHeight();\n }\n }\n\n resetTabs() {\n this._Tabs.selectedIndex = 0;\n }\n\n _handleDown() {\n if (this._isTabsFocused && this._TabContent._hasContent) {\n this._isTabsFocused = false;\n this._updateTabs();\n this._updateTabBarHeight();\n }\n return false;\n }\n\n _handleUp() {\n this.selectTabs();\n return false;\n }\n\n _setTabs(tabs) {\n this._tabContent = [];\n this._tabContent = tabs.map(tab => tab.tabContent || {});\n this._Tabs.items = tabs;\n return tabs;\n }\n\n _getTabs() {\n return this._Tabs.items;\n }\n\n get selected() {\n return this._Tabs.selected;\n }\n\n get selectedIndex() {\n return this._Tabs.selectedIndex;\n }\n\n set selectedIndex(index) {\n this._Tabs.selectedIndex = index;\n }\n\n get _collapsedHeight() {\n return this._Tabs.h;\n }\n\n get _expandedHeight() {\n return this._Tabs.h + this.style.tabsMarginBottom + this._TabContent.h;\n }\n\n _getFocused() {\n return this._isTabsFocused ? this._Tabs : this._TabContent;\n }\n\n _unfocus() {\n super._unfocus();\n if (this.reset) {\n this.resetTabs();\n }\n }\n}\n",null,"/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { getWidthByColumnSpan } from '../../utils';\n\nexport const base = theme => ({\n minWidth: getWidthByColumnSpan(theme, 1),\n paddingX: theme.spacer.xxl,\n paddingXNoTitle: theme.spacer.lg,\n paddingY: theme.spacer.lg,\n textStyle: theme.typography.button2\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport Button from './Button';\nimport * as styles from './ButtonSmall.styles';\n\nexport default class ButtonSmall extends Button {\n static get __componentName() {\n return 'ButtonSmall';\n }\n\n static get __themeStyle() {\n return styles;\n }\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/7328.7d3bfbe2.iframe.bundle.js b/3069.911ef580.iframe.bundle.js similarity index 70% rename from 7328.7d3bfbe2.iframe.bundle.js rename to 3069.911ef580.iframe.bundle.js index d34954530..873c309c1 100644 --- a/7328.7d3bfbe2.iframe.bundle.js +++ b/3069.911ef580.iframe.bundle.js @@ -1,5 +1,5 @@ "use strict"; -(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[7328],{ +(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[3069,6115,4827,287],{ /***/ "../../@lightningjs/ui-components/src/components/Key/Key.js": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -61,31 +61,33 @@ var base = function base(theme) { var Icon = __webpack_require__("../../@lightningjs/ui-components/src/components/Icon/Icon.js"); ;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/Key/Key.js function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } +function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } +function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); } +function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); } +function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function set(target, property, value, receiver) { if (typeof Reflect !== "undefined" && Reflect.set) { set = Reflect.set; } else { set = function set(target, property, value, receiver) { var base = _superPropBase(target, property); var desc; if (base) { desc = Object.getOwnPropertyDescriptor(base, property); if (desc.set) { desc.set.call(receiver, value); return true; } else if (!desc.writable) { return false; } } desc = Object.getOwnPropertyDescriptor(receiver, property); if (desc) { if (!desc.writable) { return false; } desc.value = value; Object.defineProperty(receiver, property, desc); } else { _defineProperty(receiver, property, value); } return true; }; } return set(target, property, value, receiver); } -function _set(target, property, value, receiver, isStrict) { var s = set(target, property, value, receiver || target); if (!s && isStrict) { throw new TypeError('failed to set property'); } return value; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } +function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); } +function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _superPropSet(t, e, o, r, p, f) { return _set(_getPrototypeOf(f ? t.prototype : t), e, o, r, p); } +function set(e, r, t, o) { return set = "undefined" != typeof Reflect && Reflect.set ? Reflect.set : function (e, r, t, o) { var f, i = _superPropBase(e, r); if (i) { if ((f = Object.getOwnPropertyDescriptor(i, r)).set) return f.set.call(o, t), !0; if (!f.writable) return !1; } if (f = Object.getOwnPropertyDescriptor(o, r)) { if (!f.writable) return !1; f.value = t, Object.defineProperty(o, r, f); } else _defineProperty(o, r, t); return !0; }, set(e, r, t, o); } +function _set(e, r, t, o, f) { if (!set(e, r, t, o || e) && f) throw new TypeError("failed to set property"); return t; } +function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); } -function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } +function _superPropGet(t, e, o, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), e, o); return 2 & r && "function" == typeof p ? function (t) { return p.apply(o, t); } : p; } +function _get() { return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); } +function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; } +function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } +function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); } +function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } /** * Copyright 2023 Comcast Cable Communications Management, LLC * @@ -150,16 +152,15 @@ function getNato(title) { return title; } var Key = /*#__PURE__*/function (_Button) { - _inherits(Key, _Button); - var _super = _createSuper(Key); function Key() { _classCallCheck(this, Key); - return _super.apply(this, arguments); + return _callSuper(this, Key, arguments); } - _createClass(Key, [{ + _inherits(Key, _Button); + return _createClass(Key, [{ key: "_construct", value: function _construct() { - _get(_getPrototypeOf(Key.prototype), "_construct", this).call(this); + _superPropGet(Key, "_construct", this, 3)([]); this._size = 'sm'; this._keySpacing = 0; } @@ -167,7 +168,7 @@ var Key = /*#__PURE__*/function (_Button) { key: "_update", value: function _update() { this._updatePrefixStyle(); - _get(_getPrototypeOf(Key.prototype), "_update", this).call(this); + _superPropGet(Key, "_update", this, 3)([]); } }, { key: "_calcDynamicWidth", @@ -221,7 +222,7 @@ var Key = /*#__PURE__*/function (_Button) { return getNato(this.title) + ', button'; }, set: function set(announce) { - _set(_getPrototypeOf(Key.prototype), "announce", announce, this, true); + _superPropSet(Key, "announce", announce, this, 1, 1); } }, { key: "_handleEnter", @@ -252,7 +253,7 @@ var Key = /*#__PURE__*/function (_Button) { }, { key: "properties", get: function get() { - return [].concat(_toConsumableArray(_get(_getPrototypeOf(Key), "properties", this)), ['icon', 'size', 'toggle', 'keySpacing']); + return [].concat(_toConsumableArray(_superPropGet(Key, "properties", this)), ['icon', 'size', 'toggle', 'keySpacing']); } }, { key: "aliasStyles", @@ -266,7 +267,6 @@ var Key = /*#__PURE__*/function (_Button) { }]; } }]); - return Key; }(Button/* default */.A); @@ -283,21 +283,21 @@ var Key = /*#__PURE__*/function (_Button) { /* unused harmony exports nestedArgs, nestedArgTypes, prevValues, nestedArgActions, Item, ObjectFormat, GenericType */ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/react/index.js"); function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } +function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); } function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } +function _arrayWithHoles(r) { if (Array.isArray(r)) return r; } function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } +function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } +function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } +function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); } +function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); } +function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } /** * Copyright 2023 Comcast Cable Communications Management, LLC * @@ -498,4 +498,4 @@ var GenericType = function GenericType(_ref7) { /***/ }) }]); -//# sourceMappingURL=7328.7d3bfbe2.iframe.bundle.js.map \ No newline at end of file +//# sourceMappingURL=3069.911ef580.iframe.bundle.js.map \ No newline at end of file diff --git a/3069.911ef580.iframe.bundle.js.map b/3069.911ef580.iframe.bundle.js.map new file mode 100644 index 000000000..474b8fe4a --- /dev/null +++ b/3069.911ef580.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"3069.911ef580.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AAEA;AAAA;AAAA;AACA;AAAA;AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAqBA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AAGA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AAAA;AAOA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AAAA;AAbA;AACA;AAAA;AAAA;AAAA;AAeA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AAAA;AA5FA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAEA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACjFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAKA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAGA;AACA;AAAA;AAGA;AAGA;AAAA;AACA;AAGA;AACA;AAEA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAGA;AASA;AACA;AACA;AACA;AACA;AAIA;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAGA;AAGA;AACA;AACA;AACA;AACA;AAGA;AAOA;AACA;AACA;AACA;AAEA;AAGA;AACA;AACA;AACA;AACA;AACA;AAEA;;AAEA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAIA;AAEA;AAAA;AAAA;AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAKA;AAAA;AAAA;AAAA;AAMA;AAGA;AAAA;AAAA;AAAA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AACA","sources":["webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Key/Key.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Key/Key.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/docs/utils.js"],"sourcesContent":["/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => {\n const textStyle = theme.typography.headline2;\n return {\n height: theme.spacer.md * 9,\n minWidth: theme.spacer.md * 7,\n paddingX: theme.spacer.md,\n textStyle,\n sizes: {\n sm: 1,\n md: 2,\n lg: 3,\n xl: 4,\n xxl: 5\n },\n baseWidth: theme.spacer.md * 7,\n iconWidth: textStyle.lineHeight,\n iconHeight: textStyle.lineHeight\n };\n};\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport Button from '../Button';\nimport * as styles from './Key.styles';\nimport Icon from '../Icon';\n\nconst isUpperCase = string => /^[A-Z]$/.test(string);\nconst isAlphaChar = string => /^[A-Za-z]$/.test(string);\n\n// TODO: Post theming when we address language/locale issues this could be a configurable object\nconst alphaNato = {\n a: 'alpha',\n b: 'bravo',\n c: 'charlie',\n d: 'delta',\n e: 'echo',\n f: 'foxtrot',\n g: 'golf',\n h: 'hotel',\n i: 'india',\n j: 'juliett',\n k: 'kilo',\n l: 'lima',\n m: 'mike',\n n: 'november',\n o: 'oscar',\n p: 'papa',\n q: 'quebec',\n r: 'romeo',\n s: 'sierra',\n t: 'tango',\n u: 'uniform',\n v: 'victor',\n w: 'whiskey',\n x: 'x-ray',\n y: 'yankee',\n z: 'zulu'\n};\n\nfunction getNato(title) {\n if (isAlphaChar(title)) {\n return `${title}, ${alphaNato[title.toLowerCase()]}`;\n }\n\n return title;\n}\n\nexport default class Key extends Button {\n static get __componentName() {\n return 'Key';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static get properties() {\n return [...super.properties, 'icon', 'size', 'toggle', 'keySpacing'];\n }\n\n static get aliasStyles() {\n return [\n { prev: 'iconH', curr: 'iconHeight' },\n { prev: 'iconW', curr: 'iconWidth' }\n ];\n }\n\n _construct() {\n super._construct();\n this._size = 'sm';\n this._keySpacing = 0;\n }\n\n _update() {\n this._updatePrefixStyle();\n super._update();\n }\n\n _calcDynamicWidth() {\n const sizeMultiplier = this.style.sizes[this.size || 'sm'];\n const baseSize = this.style.baseWidth * sizeMultiplier;\n const padding = this.keySpacing * (sizeMultiplier - 1);\n return baseSize + padding;\n }\n\n _updatePrefixStyle() {\n if (this._prefix && this.icon) {\n this._updatePrefixObj(this.icon, { style: this.style.iconStyle });\n }\n }\n\n _updatePrefixObj(icon, props = {}) {\n this._prefix = {\n type: Icon,\n icon,\n w: this.style.iconWidth,\n h: this.style.iconHeight,\n ...props\n };\n }\n\n _setIcon(icon) {\n if (icon) {\n this._updatePrefixObj(icon, { style: this.style.iconStyle });\n } else {\n this._prefix = icon;\n }\n\n return icon;\n }\n\n set announce(announce) {\n super.announce = announce;\n }\n\n get announce() {\n if (this._announce) {\n return this._announce;\n }\n\n if (isUpperCase(this.title)) {\n return `Capital ${getNato(this.title)}, button`;\n }\n\n return getNato(this.title) + ', button';\n }\n\n _handleEnter() {\n if (typeof this.onEnter === 'function') {\n return this.onEnter(this);\n } else {\n if (this.toggle) {\n this.fireAncestors('$toggleKeyboard', this.toggle);\n }\n this.fireAncestors('$onSoftKey', {\n key: this.keyId || this.title,\n toggle: this.toggle\n });\n }\n\n return false;\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// eslint-disable-next-line no-unused-vars\nimport React from 'react';\nimport utils from '../utils';\n\n// creates Mode control on stories\nexport const createModeControl = ({ options, summaryValue } = {}) => {\n return {\n mode: {\n control: 'radio',\n options:\n options && Array.isArray(options)\n ? ['unfocused', ...options]\n : ['unfocused', 'focused', 'disabled'],\n description: 'Sets the visual mode for the component',\n table: {\n defaultValue: { summary: summaryValue }\n },\n type: { name: 'string', required: true }\n }\n };\n};\n\n/**\n * @param {object} config Parameters for generating nested args: { argsObj, targetProp, include, overrides }\n */\nexport function nestedArgs(config) {\n const { argsObj, targetProp, include, overrides } = config;\n return Object.keys(argsObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]:\n (overrides.args && overrides.args[curr]) || argsObj[curr]\n };\n }, {});\n}\n\n/**\n * @param {object} config Parameters for generating nested arg types: { argsObj, targetProp, include, overrides }\n */\nexport function nestedArgTypes(config) {\n const { argTypesObj, targetProp, include, overrides } = config;\n return Object.keys(argTypesObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]: {\n // Namespaced to avoid conflicts\n name: curr,\n ...argTypesObj[curr],\n ...overrides[curr],\n table: {\n ...(argTypesObj[curr].table || {}),\n ...(overrides[curr] && overrides[curr].table),\n category: targetProp\n }\n }\n };\n }, {});\n}\n\nexport const prevValues = {};\n\n/**\n * @param {object} config Parameters for generating nested arg actions: { componentName, argsTypeObj, targetProp, include, overrides }\n */\nexport function nestedArgActions(config) {\n const { componentName, argTypesObj, targetProp, include, overrides } = config;\n return Object.keys(argTypesObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]: (value, component) => {\n component.tag(componentName).patch({\n [targetProp]: {\n ...prevValues[targetProp],\n [curr.replace(targetProp + '_', '')]:\n value === 'none'\n ? undefined\n : (overrides && overrides[curr]) || value // There are issues with merging objects here\n }\n });\n // Allow patching to work with nested objects\n if (!prevValues[targetProp]) {\n prevValues[targetProp] = {};\n }\n prevValues[targetProp][curr.replace(targetProp + '_', '')] =\n value === 'none'\n ? undefined\n : (overrides && overrides[curr]) || value;\n }\n };\n }, {});\n}\n\n/**\n * @param {object} config Parameters for generating story: { componentName, baseStory, subStory, targetProperty, include, options }\n */\nexport function generateSubStory(config) {\n config.baseStory.args = {\n ...config.baseStory.args,\n ...nestedArgs({\n argsObj: config.subStory.args || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.args) || {}\n })\n };\n\n config.baseStory.argTypes = {\n ...config.baseStory.argTypes,\n ...nestedArgTypes({\n argTypesObj: config.subStory.argTypes || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.argTypes) || {}\n })\n };\n\n if (\n !(\n config.baseStory &&\n config.baseStory.parameters &&\n config.baseStory.parameters.argActions\n )\n ) {\n config.baseStory.parameters = {\n argActions: {}\n };\n }\n\n config.baseStory.parameters.argActions = {\n ...config.baseStory.parameters.argActions,\n ...nestedArgActions({\n componentName: config.componentName,\n argTypesObj: config.subStory.argTypes || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.argActions) || {}\n })\n };\n}\n\n// used to create links to Lightning docs given an id\nexport const DocsLink = ({ children, id }) => {\n const docsmap = {\n lng: {\n _base: 'https://rdkcentral.github.io/Lightning/docs',\n Component: '/components/overview',\n Text: '/textures/text',\n Transition: '/transitions/attributes'\n }\n };\n const [source, path] = id.split('.');\n const href = docsmap[source]._base + docsmap[source][path];\n return (\n \n {children || id}\n \n );\n};\n\nexport const Item = ({ children }) => children;\n\n/**\n * Creates formatted object for markdown prop tables\n * see Column and Row stories\n * @param {object} props\n * @param {object} props.type - TS-style generic/utility type\n */\nexport const ObjectFormat = ({ object }) => {\n return [\n '{',\n
,\n ' ',\n ...utils.flatten(\n Object.entries(object).map(([k, v]) => [\n   ,\n `${k}: `,\n v,\n ',',\n
\n ])\n ),\n '}'\n ].map((x, i) => {x});\n};\n\n/**\n * Formats TS-style generic types\n * See Columns and Row stories\n * @param {object} props\n * @param {object} props.children - component children\n * @param {string} props.type - Name of generic type\n */\nexport const GenericType = ({ children, type }) => {\n return [type, '<', children, '>'].map((x, i) => {x});\n};\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/3181.b675dc4b.iframe.bundle.js.map b/3181.b675dc4b.iframe.bundle.js.map deleted file mode 100644 index 0b81fd8aa..000000000 --- a/3181.b675dc4b.iframe.bundle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"3181.b675dc4b.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;AChOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AASA;AACA;AAAA;AAAA;AAAA;AA7BA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAKA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAGA;AACA;AAAA;AAGA;AAGA;AAAA;AACA;AAGA;AACA;AAEA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAGA;AASA;AACA;AACA;AACA;AACA;AAIA;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAGA;AAGA;AACA;AACA;AACA;AACA;AAGA;AAOA;AACA;AACA;AACA;AAEA;AAGA;AACA;AACA;AACA;AACA;AACA;AAEA;;AAEA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAIA;AAEA;AAAA;AAAA;AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAKA;AAAA;AAAA;AAAA;AAMA;AAGA;AAAA;AAAA;AAAA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AACA","sources":["webpack://lightning-ui-docs/","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Knob/Knob.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Knob/Knob.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/docs/utils.js"],"sourcesContent":[null,"/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => {\n const size = theme.spacer.lg;\n return {\n width: size,\n height: size,\n radius: size / 2\n };\n};\n\nexport const tone = theme => ({\n neutral: {\n circleColor: theme.color.interactiveNeutralFocus,\n mode: {\n disabled: {\n circleColor: theme.color.fillNeutralDisabled\n }\n }\n },\n inverse: {\n circleColor: theme.color.interactiveInverseFocus,\n mode: {\n disabled: {\n circleColor: theme.color.fillInverseDisabled\n }\n }\n },\n brand: {\n circleColor: theme.color.interactiveBrandFocus,\n mode: {\n disabled: {\n circleColor: theme.color.fillInverseDisabled\n }\n }\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { getMaxRoundRadius } from '../../utils';\nimport Base from '../Base';\nimport * as styles from './Knob.styles';\nimport lng from '@lightningjs/core';\n\nexport default class Knob extends Base {\n static get __componentName() {\n return 'Knob';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static _template() {\n return {\n mount: 0.5\n };\n }\n\n _update() {\n this._updateCircleLayout();\n }\n\n _updateCircleLayout() {\n this.patch({\n texture: lng.Tools.getRoundRect(\n this.w,\n this.h,\n getMaxRoundRadius(this.style.radius, this.w, this.h),\n null,\n null,\n true,\n this.style.circleColor\n )\n });\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// eslint-disable-next-line no-unused-vars\nimport React from 'react';\nimport utils from '../utils';\n\n// creates Mode control on stories\nexport const createModeControl = ({ options, summaryValue } = {}) => {\n return {\n mode: {\n control: 'radio',\n options:\n options && Array.isArray(options)\n ? ['unfocused', ...options]\n : ['unfocused', 'focused', 'disabled'],\n description: 'Sets the visual mode for the component',\n table: {\n defaultValue: { summary: summaryValue }\n },\n type: { name: 'string', required: true }\n }\n };\n};\n\n/**\n * @param {object} config Parameters for generating nested args: { argsObj, targetProp, include, overrides }\n */\nexport function nestedArgs(config) {\n const { argsObj, targetProp, include, overrides } = config;\n return Object.keys(argsObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]:\n (overrides.args && overrides.args[curr]) || argsObj[curr]\n };\n }, {});\n}\n\n/**\n * @param {object} config Parameters for generating nested arg types: { argsObj, targetProp, include, overrides }\n */\nexport function nestedArgTypes(config) {\n const { argTypesObj, targetProp, include, overrides } = config;\n return Object.keys(argTypesObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]: {\n // Namespaced to avoid conflicts\n name: curr,\n ...argTypesObj[curr],\n ...overrides[curr],\n table: {\n ...(argTypesObj[curr].table || {}),\n ...(overrides[curr] && overrides[curr].table),\n category: targetProp\n }\n }\n };\n }, {});\n}\n\nexport const prevValues = {};\n\n/**\n * @param {object} config Parameters for generating nested arg actions: { componentName, argsTypeObj, targetProp, include, overrides }\n */\nexport function nestedArgActions(config) {\n const { componentName, argTypesObj, targetProp, include, overrides } = config;\n return Object.keys(argTypesObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]: (value, component) => {\n component.tag(componentName).patch({\n [targetProp]: {\n ...prevValues[targetProp],\n [curr.replace(targetProp + '_', '')]:\n value === 'none'\n ? undefined\n : (overrides && overrides[curr]) || value // There are issues with merging objects here\n }\n });\n // Allow patching to work with nested objects\n if (!prevValues[targetProp]) {\n prevValues[targetProp] = {};\n }\n prevValues[targetProp][curr.replace(targetProp + '_', '')] =\n value === 'none'\n ? undefined\n : (overrides && overrides[curr]) || value;\n }\n };\n }, {});\n}\n\n/**\n * @param {object} config Parameters for generating story: { componentName, baseStory, subStory, targetProperty, include, options }\n */\nexport function generateSubStory(config) {\n config.baseStory.args = {\n ...config.baseStory.args,\n ...nestedArgs({\n argsObj: config.subStory.args || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.args) || {}\n })\n };\n\n config.baseStory.argTypes = {\n ...config.baseStory.argTypes,\n ...nestedArgTypes({\n argTypesObj: config.subStory.argTypes || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.argTypes) || {}\n })\n };\n\n if (\n !(\n config.baseStory &&\n config.baseStory.parameters &&\n config.baseStory.parameters.argActions\n )\n ) {\n config.baseStory.parameters = {\n argActions: {}\n };\n }\n\n config.baseStory.parameters.argActions = {\n ...config.baseStory.parameters.argActions,\n ...nestedArgActions({\n componentName: config.componentName,\n argTypesObj: config.subStory.argTypes || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.argActions) || {}\n })\n };\n}\n\n// used to create links to Lightning docs given an id\nexport const DocsLink = ({ children, id }) => {\n const docsmap = {\n lng: {\n _base: 'https://rdkcentral.github.io/Lightning/docs',\n Component: '/components/overview',\n Text: '/textures/text',\n Transition: '/transitions/attributes'\n }\n };\n const [source, path] = id.split('.');\n const href = docsmap[source]._base + docsmap[source][path];\n return (\n \n {children || id}\n \n );\n};\n\nexport const Item = ({ children }) => children;\n\n/**\n * Creates formatted object for markdown prop tables\n * see Column and Row stories\n * @param {object} props\n * @param {object} props.type - TS-style generic/utility type\n */\nexport const ObjectFormat = ({ object }) => {\n return [\n '{',\n
,\n ' ',\n ...utils.flatten(\n Object.entries(object).map(([k, v]) => [\n   ,\n `${k}: `,\n v,\n ',',\n
\n ])\n ),\n '}'\n ].map((x, i) => {x});\n};\n\n/**\n * Formats TS-style generic types\n * See Columns and Row stories\n * @param {object} props\n * @param {object} props.children - component children\n * @param {string} props.type - Name of generic type\n */\nexport const GenericType = ({ children, type }) => {\n return [type, '<', children, '>'].map((x, i) => {x});\n};\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/3245.ab02e54a.iframe.bundle.js b/3245.ab02e54a.iframe.bundle.js new file mode 100644 index 000000000..21a39c1eb --- /dev/null +++ b/3245.ab02e54a.iframe.bundle.js @@ -0,0 +1,1057 @@ +"use strict"; +(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[3245,3375],{ + +/***/ "../../@lightningjs/ui-components/src/components/ProgressBar/ProgressBar.js": +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + A: () => (/* binding */ ProgressBar) +}); + +// NAMESPACE OBJECT: ../../@lightningjs/ui-components/src/components/ProgressBar/ProgressBar.styles.js +var ProgressBar_styles_namespaceObject = {}; +__webpack_require__.r(ProgressBar_styles_namespaceObject); +__webpack_require__.d(ProgressBar_styles_namespaceObject, { + base: () => (base), + tone: () => (tone) +}); + +// EXTERNAL MODULE: ../../../node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); +// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Base/Base.js + 2 modules +var Base = __webpack_require__("../../@lightningjs/ui-components/src/components/Base/Base.js"); +;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/ProgressBar/ProgressBar.styles.js +/** + * Copyright 2023 Comcast Cable Communications Management, LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + +var base = function base(theme) { + return { + height: theme.spacer.md, + animation: theme.animation.utility, + radius: theme.radius.xs + }; +}; +var tone = function tone(theme) { + return { + neutral: { + barColor: theme.color.fillNeutralTertiary, + progressColor: theme.color.fillNeutral + }, + inverse: { + barColor: theme.color.fillInverseTertiary, + progressColor: theme.color.fillInverse + }, + brand: { + barColor: theme.color.fillNeutralTertiary, + progressColor: theme.color.fillBrand + } + }; +}; +// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/utils/index.js +var utils = __webpack_require__("../../@lightningjs/ui-components/src/utils/index.js"); +;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/ProgressBar/ProgressBar.js +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } +function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); } +function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _superPropSet(t, e, o, r, p, f) { return _set(_getPrototypeOf(f ? t.prototype : t), e, o, r, p); } +function set(e, r, t, o) { return set = "undefined" != typeof Reflect && Reflect.set ? Reflect.set : function (e, r, t, o) { var f, i = _superPropBase(e, r); if (i) { if ((f = Object.getOwnPropertyDescriptor(i, r)).set) return f.set.call(o, t), !0; if (!f.writable) return !1; } if (f = Object.getOwnPropertyDescriptor(o, r)) { if (!f.writable) return !1; f.value = t, Object.defineProperty(o, r, f); } else _defineProperty(o, r, t); return !0; }, set(e, r, t, o); } +function _set(e, r, t, o, f) { if (!set(e, r, t, o || e) && f) throw new TypeError("failed to set property"); return t; } +function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } +function _superPropGet(t, e, o, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), e, o); return 2 & r && "function" == typeof p ? function (t) { return p.apply(o, t); } : p; } +function _get() { return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); } +function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; } +function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } +function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); } +function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } +/** + * Copyright 2023 Comcast Cable Communications Management, LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + + + + + +var ProgressBar = /*#__PURE__*/function (_Base) { + function ProgressBar() { + _classCallCheck(this, ProgressBar); + return _callSuper(this, ProgressBar, arguments); + } + _inherits(ProgressBar, _Base); + return _createClass(ProgressBar, [{ + key: "_construct", + value: function _construct() { + _superPropGet(ProgressBar, "_construct", this, 1) && _superPropGet(ProgressBar, "_construct", this, 3)([]); + this._progress = 0; + } + }, { + key: "_update", + value: function _update() { + this._updateTextures(); + this._updateProgress(); + if (this._progressChanged) { + this.fireAncestors('$announce', this.announce); + this._progressChanged = false; + } + } + }, { + key: "_updateTextures", + value: function _updateTextures() { + var w = this._getProgressWidth(); + var radius = (0,utils/* getMaxRoundRadius */.XG)(this.style.radius, this.w - 2, this.h); + this._Bar.texture = lightning_esm/* default */.A.Tools.getRoundRect( + // getRoundRect adds 2 to the width + this.w - 2, this.h, radius, 0, 0, true, this.style.barColor); + this._Progress.texture = lightning_esm/* default */.A.Tools.getRoundRect(w + 1, this.h, radius, 0, 0, true, this.style.progressColor); + } + }, { + key: "_updateProgress", + value: function _updateProgress() { + var w = this._getProgressWidth(); + this._Progress.smooth = { + w: [w, this.style.animation], + alpha: Number(w > 0) + }; + } + }, { + key: "_setProgress", + value: function _setProgress(progress) { + this._progressChanged = progress !== this._progress; + return progress; + } + }, { + key: "announce", + get: function get() { + if (this._announce !== undefined && this._announce !== null) { + return this._announce; + } + var progress = this.progress; + if (progress > 1) { + progress = 1; + } else if (progress < 0) { + progress = 0; + } + return "".concat(Math.round(progress * 100), "%"); + }, + set: function set(announce) { + _superPropSet(ProgressBar, "announce", announce, this, 1, 1); + } + }, { + key: "_getProgressWidth", + value: function _getProgressWidth() { + var p = this.w * this._progress; + var w = p <= 0 ? 0 : Math.min(p, this.w); + return w; + } + }], [{ + key: "_template", + value: function _template() { + return { + Bar: { + zIndex: 1 + }, + Progress: { + alpha: 0, + zIndex: 2 + } + }; + } + }, { + key: "__themeStyle", + get: function get() { + return ProgressBar_styles_namespaceObject; + } + }, { + key: "__componentName", + get: function get() { + return 'ProgressBar'; + } + }, { + key: "properties", + get: function get() { + return ['progress']; + } + }, { + key: "tags", + get: function get() { + return ['Bar', 'Progress']; + } + }]); +}(Base/* default */.A); + + +/***/ }), + +/***/ "../../@lightningjs/ui-components/src/components/ListItem/ListItemSlider.stories.js": +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +// ESM COMPAT FLAG +__webpack_require__.r(__webpack_exports__); + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + ListItemSlider: () => (/* binding */ ListItemSlider), + __namedExportsOrder: () => (/* binding */ __namedExportsOrder), + "default": () => (/* binding */ ListItemSlider_stories) +}); + +// NAMESPACE OBJECT: ../../@lightningjs/ui-components/src/components/ListItem/NestedSlider.styles.js +var NestedSlider_styles_namespaceObject = {}; +__webpack_require__.r(NestedSlider_styles_namespaceObject); +__webpack_require__.d(NestedSlider_styles_namespaceObject, { + base: () => (base), + mode: () => (mode), + tone: () => (tone) +}); + +// NAMESPACE OBJECT: ../../@lightningjs/ui-components/src/components/ListItem/ListItemSlider.styles.js +var ListItemSlider_styles_namespaceObject = {}; +__webpack_require__.r(ListItemSlider_styles_namespaceObject); +__webpack_require__.d(ListItemSlider_styles_namespaceObject, { + base: () => (ListItemSlider_styles_base), + mode: () => (ListItemSlider_styles_mode), + tone: () => (ListItemSlider_styles_tone) +}); + +// EXTERNAL MODULE: ../../../node_modules/@lightningjs/core/dist/lightning.esm.js +var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); +;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/ListItem/NestedSlider.styles.js +/** + * Copyright 2023 Comcast Cable Communications Management, LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + +var base = function base() { + return { + showArrows: false, + showKnob: false + }; +}; +var mode = function mode() { + return { + focused: { + showArrows: true + } + }; +}; +var tone = function tone(theme) { + return { + neutral: { + mode: { + focused: { + arrowColor: theme.color.fillInverse, + progressBar: { + barColor: theme.color.fillInverseTertiary, + progressColor: theme.color.fillInverse + } + } + } + }, + inverse: { + mode: { + focused: { + arrowColor: theme.color.fillNeutral, + progressBar: { + barColor: theme.color.fillNeutralTertiary, + progressColor: theme.color.fillNeutral + } + } + } + }, + brand: { + mode: { + focused: { + arrowColor: theme.color.fillInverse, + progressBar: { + barColor: theme.color.fillBrandTertiary, + progressColor: theme.color.fillBrand + } + } + } + } + }; +}; +// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Slider/Slider.js + 1 modules +var Slider = __webpack_require__("../../@lightningjs/ui-components/src/components/Slider/Slider.js"); +;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/ListItem/NestedSlider.js +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } +function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } +function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); } +function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } +function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); } +function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } +/** + * Copyright 2023 Comcast Cable Communications Management, LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + + + +var NestedSlider = /*#__PURE__*/function (_Slider) { + function NestedSlider() { + _classCallCheck(this, NestedSlider); + return _callSuper(this, NestedSlider, arguments); + } + _inherits(NestedSlider, _Slider); + return _createClass(NestedSlider, null, [{ + key: "__componentName", + get: function get() { + return 'NestedSlider'; + } + }, { + key: "__themeStyle", + get: function get() { + return NestedSlider_styles_namespaceObject; + } + }]); +}(Slider/* default */.A); + +// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/ListItem/ListItem.js + 1 modules +var ListItem = __webpack_require__("../../@lightningjs/ui-components/src/components/ListItem/ListItem.js"); +;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/ListItem/ListItemSlider.styles.js +function ListItemSlider_styles_typeof(o) { "@babel/helpers - typeof"; return ListItemSlider_styles_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, ListItemSlider_styles_typeof(o); } +function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } +function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } +function _defineProperty(e, r, t) { return (r = ListItemSlider_styles_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } +function ListItemSlider_styles_toPropertyKey(t) { var i = ListItemSlider_styles_toPrimitive(t, "string"); return "symbol" == ListItemSlider_styles_typeof(i) ? i : i + ""; } +function ListItemSlider_styles_toPrimitive(t, r) { if ("object" != ListItemSlider_styles_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != ListItemSlider_styles_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } +/** + * Copyright 2023 Comcast Cable Communications Management, LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + +var ListItemSlider_styles_base = function base(theme) { + return { + paddingY: theme.spacer.md + theme.spacer.xs, + valueTextStyle: _objectSpread(_objectSpread({}, theme.typography.headline3), {}, { + maxLines: 1, + textColor: theme.color.textNeutralSecondary + }) + }; +}; +var ListItemSlider_styles_mode = function mode(theme) { + return { + disabled: { + valueTextStyle: { + textColor: theme.color.textNeutralDisabled + } + }, + focused: { + valueTextStyle: { + textColor: theme.color.textInverseSecondary + } + } + }; +}; +var ListItemSlider_styles_tone = function tone(theme) { + return { + neutral: { + mode: { + focused: { + valueTextStyle: { + textColor: theme.color.textInverseSecondary + } + } + } + }, + inverse: { + mode: { + focused: { + valueTextStyle: { + textColor: theme.color.textNeutralSecondary + } + } + } + }, + brand: { + mode: { + focused: { + valueTextStyle: { + textColor: theme.color.textInverseSecondary + } + } + } + } + }; +}; +// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/TextBox/TextBox.js + 1 modules +var TextBox = __webpack_require__("../../@lightningjs/ui-components/src/components/TextBox/TextBox.js"); +;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/ListItem/ListItemSlider.js +function ListItemSlider_typeof(o) { "@babel/helpers - typeof"; return ListItemSlider_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, ListItemSlider_typeof(o); } +function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); } +function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } +function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); } +function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); } +function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } +function ListItemSlider_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } +function ListItemSlider_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ListItemSlider_ownKeys(Object(t), !0).forEach(function (r) { ListItemSlider_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ListItemSlider_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } +function ListItemSlider_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function ListItemSlider_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, ListItemSlider_toPropertyKey(o.key), o); } } +function ListItemSlider_createClass(e, r, t) { return r && ListItemSlider_defineProperties(e.prototype, r), t && ListItemSlider_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function ListItemSlider_callSuper(t, o, e) { return o = ListItemSlider_getPrototypeOf(o), ListItemSlider_possibleConstructorReturn(t, ListItemSlider_isNativeReflectConstruct() ? Reflect.construct(o, e || [], ListItemSlider_getPrototypeOf(t).constructor) : o.apply(t, e)); } +function ListItemSlider_possibleConstructorReturn(t, e) { if (e && ("object" == ListItemSlider_typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return ListItemSlider_assertThisInitialized(t); } +function ListItemSlider_assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } +function ListItemSlider_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (ListItemSlider_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _superPropSet(t, e, o, r, p, f) { return _set(ListItemSlider_getPrototypeOf(f ? t.prototype : t), e, o, r, p); } +function set(e, r, t, o) { return set = "undefined" != typeof Reflect && Reflect.set ? Reflect.set : function (e, r, t, o) { var f, i = _superPropBase(e, r); if (i) { if ((f = Object.getOwnPropertyDescriptor(i, r)).set) return f.set.call(o, t), !0; if (!f.writable) return !1; } if (f = Object.getOwnPropertyDescriptor(o, r)) { if (!f.writable) return !1; f.value = t, Object.defineProperty(o, r, f); } else ListItemSlider_defineProperty(o, r, t); return !0; }, set(e, r, t, o); } +function _set(e, r, t, o, f) { if (!set(e, r, t, o || e) && f) throw new TypeError("failed to set property"); return t; } +function ListItemSlider_defineProperty(e, r, t) { return (r = ListItemSlider_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } +function ListItemSlider_toPropertyKey(t) { var i = ListItemSlider_toPrimitive(t, "string"); return "symbol" == ListItemSlider_typeof(i) ? i : i + ""; } +function ListItemSlider_toPrimitive(t, r) { if ("object" != ListItemSlider_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != ListItemSlider_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } +function _superPropGet(t, e, o, r) { var p = _get(ListItemSlider_getPrototypeOf(1 & r ? t.prototype : t), e, o); return 2 & r && "function" == typeof p ? function (t) { return p.apply(o, t); } : p; } +function _get() { return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); } +function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = ListItemSlider_getPrototypeOf(t));); return t; } +function ListItemSlider_getPrototypeOf(t) { return ListItemSlider_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, ListItemSlider_getPrototypeOf(t); } +function ListItemSlider_inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && ListItemSlider_setPrototypeOf(t, e); } +function ListItemSlider_setPrototypeOf(t, e) { return ListItemSlider_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, ListItemSlider_setPrototypeOf(t, e); } +/** + * Copyright 2023 Comcast Cable Communications Management, LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + + + + + +var ListItemSlider_ListItemSlider = /*#__PURE__*/function (_ListItem) { + function ListItemSlider() { + ListItemSlider_classCallCheck(this, ListItemSlider); + return ListItemSlider_callSuper(this, ListItemSlider, arguments); + } + ListItemSlider_inherits(ListItemSlider, _ListItem); + return ListItemSlider_createClass(ListItemSlider, [{ + key: "_construct", + value: function _construct() { + _superPropGet(ListItemSlider, "_construct", this, 3)([]); + this.value = 50; + this.max = 100; + this.min = 0; + } + }, { + key: "_update", + value: function _update() { + _superPropGet(ListItemSlider, "_update", this, 3)([]); + this._updateSliderPosition(); + this._updateValue(); + } + }, { + key: "_onTextBoxChanged", + value: function _onTextBoxChanged() { + _superPropGet(ListItemSlider, "_onTextBoxChanged", this, 3)([]); + this._TextWrapper.h = Math.max(this._Title ? this._Title.h : 0, this._Value ? this._Value.h : 0); + } + }, { + key: "_updateValue", + value: function _updateValue() { + if (this._hasValue) { + var valuePatch = { + content: this.value.toString(), + style: { + textStyle: ListItemSlider_objectSpread({}, this.style.valueTextStyle) + }, + mountX: 1, + x: this.w - this._paddingX + }; + if (!this._Value) { + valuePatch = ListItemSlider_objectSpread({ + type: TextBox/* default */.A, + signals: { + textBoxChanged: '_onTextBoxChanged' + } + }, valuePatch); + } + this._TextWrapper.patch({ + Value: valuePatch + }); + } else { + this._TextWrapper.patch({ + Value: undefined + }); + } + } + }, { + key: "_updateSliderPosition", + value: function _updateSliderPosition() { + var w = this.w - this._paddingLeft - this._paddingRight; + var sliderProps = ListItemSlider_objectSpread(ListItemSlider_objectSpread({ + mode: this.mode, + tone: this.tone, + w: w, + x: w / 2, + visible: !this._collapse, + alpha: this.style.alpha + }, this.slider), {}, { + value: this.value, + max: this.max, + min: this.min + }); + this._Slider.patch(sliderProps); + } + }, { + key: "_hasValue", + get: function get() { + return this.value != undefined || this.value != null; + } + }, { + key: "_fixedWordWrapWidth", + get: function get() { + var titleWrapWidth = this.w - this._paddingLeft - this._paddingRight - this._paddingX; + return titleWrapWidth; + } + }, { + key: "_onSliderChanged", + value: function _onSliderChanged(value) { + this.value = value; + this._updateValue(); + this.signal('onSliderChange', value, this); + } + }, { + key: "_handleLeft", + value: function _handleLeft() { + if (typeof this.onLeft === 'function') { + return this.onLeft(this); + } else if (this._Slider && !this._isDisabledMode) { + return this._Slider._handleLeft(); + } + return false; + } + }, { + key: "_handleRight", + value: function _handleRight() { + if (typeof this.onRight === 'function') { + return this.onRight(this); + } else if (this._Slider && !this._isDisabledMode) { + return this._Slider._handleRight(); + } + return false; + } + }, { + key: "announce", + get: function get() { + if (this._announce) { + return this._announce; + } + return this.title + this.value + ', List Item Slider'; + }, + set: function set(announce) { + _superPropSet(ListItemSlider, "announce", announce, this, 1, 1); + } + }], [{ + key: "__componentName", + get: function get() { + return 'ListItemSlider'; + } + }, { + key: "__themeStyle", + get: function get() { + return ListItemSlider_styles_namespaceObject; + } + }, { + key: "_template", + value: function _template() { + var template = _superPropGet(ListItemSlider, "_template", this); + return ListItemSlider_objectSpread(ListItemSlider_objectSpread({}, template()), {}, { + Content: ListItemSlider_objectSpread(ListItemSlider_objectSpread({}, template().Content), {}, { + flex: { + direction: 'column' + }, + TextWrapper: ListItemSlider_objectSpread(ListItemSlider_objectSpread({}, template().Content.TextWrapper), {}, { + mountY: 0, + flex: undefined + }), + Slider: { + type: NestedSlider, + mountX: 0.5, + signals: { + onChange: '_onSliderChanged' + } + } + }) + }); + } + }, { + key: "properties", + get: function get() { + return [].concat(_toConsumableArray(_superPropGet(ListItemSlider, "properties", this)), ['slider', 'value', 'max', 'min']); + } + }, { + key: "aliasStyles", + get: function get() { + return [{ + prev: 'titlePadding', + curr: 'contentSpacing' + }]; + } + }, { + key: "tags", + get: function get() { + return [].concat(_toConsumableArray(_superPropGet(ListItemSlider, "tags", this)), [{ + name: 'Slider', + path: 'Content.Slider' + }, { + name: 'Value', + path: 'Content.TextWrapper.Value' + }]); + } + }]); +}(ListItem/* default */.A); + +// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/docs/utils.js +var utils = __webpack_require__("../../@lightningjs/ui-components/src/docs/utils.js"); +// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Slider/Slider.stories.js +var Slider_stories = __webpack_require__("../../@lightningjs/ui-components/src/components/Slider/Slider.stories.js"); +;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/ListItem/ListItemSlider.stories.js +/** + * Copyright 2023 Comcast Cable Communications Management, LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + + + + + +// TODO: Re-implement after figuring out how to in Storybook 8; worked in 7. +// import { useArgs } from '@storybook/manager-api'; + +/** + * A ListItem component with slider functionality + */ + +/* harmony default export */ const ListItemSlider_stories = ({ + title: 'Components/ListItem/ListItemSlider', + parameters: { + docs: { + description: { + component: "A ListItem component with slider functionality" + } + } + } +}); +const ListItemSlider = () => { + // const [{ value }, updateArgs] = useArgs(); + return class ListItemSlider extends lightning_esm/* default */.A.Component { + static _template() { + return { + ListItemSlider: { + type: ListItemSlider_ListItemSlider + // value: value, + // signals: { + // onSliderChange: true + // } + } + }; + } + // update arg control when value changes + // onSliderChange(value) { + // updateArgs({ value }); + // } + }; +}; +ListItemSlider.storyName = 'ListItemSlider'; +ListItemSlider.args = { + title: 'List Item', + value: 50, + shouldCollapse: false, + mode: 'focused', + max: 100, + min: 0 +}; +ListItemSlider.argTypes = { + ...(0,utils/* createModeControl */.Pg)({ + summaryValue: 'focused' + }), + title: { + control: 'text', + description: 'Title text', + table: { + defaultValue: { + summary: 'undefined' + }, + type: { + summary: 'string' + } + } + }, + value: { + control: 'number', + description: 'Current slider value', + table: { + defaultValue: { + summary: 'undefined' + }, + type: { + summary: 'number' + } + } + }, + shouldCollapse: { + control: 'boolean', + description: 'When in unfocused or disabled mode, if shouldCollapse property is true it will collapse the slider (when focused, it will always be expanded)', + table: { + defaultValue: { + summary: false + }, + type: { + summary: 'boolean' + } + } + }, + max: { + control: 'number', + description: 'Upper bound of value', + table: { + defaultValue: { + summary: 100 + }, + type: { + summary: 'number' + } + } + }, + min: { + control: 'number', + description: 'Lower bound of value', + table: { + defaultValue: { + summary: 0 + }, + type: { + summary: 'number' + } + } + } +}; +ListItemSlider.argActions = { + shouldCollapse: (shouldCollapse, component) => { + component.tag('ListItemSlider').shouldCollapse = shouldCollapse; + } +}; +(0,utils/* generateSubStory */.jb)({ + componentName: 'ListItemSlider', + baseStory: ListItemSlider, + subStory: Slider_stories.Basic, + targetProperty: 'slider', + include: ['step'] +}); +; +const __namedExportsOrder = ["ListItemSlider"]; +ListItemSlider.parameters = { + ...ListItemSlider.parameters, + docs: { + ...ListItemSlider.parameters?.docs, + source: { + originalSource: "() => {\n // const [{ value }, updateArgs] = useArgs();\n return class ListItemSlider extends lng.Component {\n static _template() {\n return {\n ListItemSlider: {\n type: ListItemSliderComponent\n // value: value,\n // signals: {\n // onSliderChange: true\n // }\n }\n };\n }\n // update arg control when value changes\n // onSliderChange(value) {\n // updateArgs({ value });\n // }\n };\n}", + ...ListItemSlider.parameters?.docs?.source + } + } +}; + +/***/ }), + +/***/ "../../@lightningjs/ui-components/src/components/Slider/Slider.stories.js": +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Basic: () => (/* binding */ Basic), +/* harmony export */ SignalHandling: () => (/* binding */ SignalHandling), +/* harmony export */ __namedExportsOrder: () => (/* binding */ __namedExportsOrder), +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) +/* harmony export */ }); +/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); +/* harmony import */ var _docs_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("../../@lightningjs/ui-components/src/docs/utils.js"); +/* harmony import */ var _TextBox__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("../../@lightningjs/ui-components/src/components/TextBox/TextBox.js"); +/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Slider/Slider.js"); +/** + * Copyright 2023 Comcast Cable Communications Management, LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + + + + + +// TODO: Re-implement after figuring out how to in Storybook 8; worked in 7. +// import { useArgs } from '@storybook/manager-api'; + +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ + title: 'Components/Slider/Slider' +}); +const Basic = () => { + // const [{ value }, updateArgs] = useArgs(); + return class Basic extends _lightningjs_core__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.Component { + static _template() { + return { + Slider: { + type: ___WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A + // value: value, + // signals: { + // onChange: true + // } + } + }; + } + // update arg control when value changes + // onChange(value) { + // updateArgs({ value }); + // } + }; +}; +Basic.args = { + min: 0, + max: 100, + value: 50, + step: 1, + vertical: false, + mode: 'focused' +}; +Basic.argTypes = { + ...(0,_docs_utils__WEBPACK_IMPORTED_MODULE_2__/* .createModeControl */ .Pg)({ + summaryValue: 'focused' + }), + min: { + control: 'number', + description: 'Lower bound of value', + table: { + defaultValue: { + summary: 0 + }, + type: { + summary: 'number' + } + } + }, + max: { + control: 'number', + description: 'Upper bound of value', + table: { + defaultValue: { + summary: 100 + }, + type: { + summary: 'number' + } + } + }, + value: { + control: 'number', + description: 'Current value', + table: { + defaultValue: { + summary: '0 or min' + }, + type: { + summary: 'number' + } + } + }, + step: { + control: 'number', + description: '+/- value on change', + table: { + defaultValue: { + summary: 1 + }, + type: { + summary: 'number' + } + } + }, + vertical: { + control: 'boolean', + description: 'If true, the slider is displayed vertically', + table: { + defaultValue: { + summary: false + }, + type: { + summary: 'boolean' + } + } + } +}; +const SignalHandling = () => class SignalHandling extends _lightningjs_core__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.Component { + static _template() { + return { + flex: { + direction: 'column' + }, + Slider: { + type: ___WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A, + step: 10, + y: 15, + w: 328, + signals: { + onChange: true + } + }, + Text: { + y: 60, + type: _TextBox__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A, + content: 'Value: 0' + } + }; + } + onChange(value) { + this.tag('Text').content = `Value: ${value}`; + } +}; +SignalHandling.args = { + mode: 'focused' +}; +SignalHandling.argTypes = (0,_docs_utils__WEBPACK_IMPORTED_MODULE_2__/* .createModeControl */ .Pg)({ + summaryValue: 'focused' +}); +SignalHandling.parameters = { + storyDetails: 'When the onChange signal is emitted from the Slider the number in the TextBox is updated with the Slider value.' +}; +; +const __namedExportsOrder = ["Basic", "SignalHandling"]; +Basic.parameters = { + ...Basic.parameters, + docs: { + ...Basic.parameters?.docs, + source: { + originalSource: "() => {\n // const [{ value }, updateArgs] = useArgs();\n return class Basic extends lng.Component {\n static _template() {\n return {\n Slider: {\n type: Slider\n // value: value,\n // signals: {\n // onChange: true\n // }\n }\n };\n }\n // update arg control when value changes\n // onChange(value) {\n // updateArgs({ value });\n // }\n };\n}", + ...Basic.parameters?.docs?.source + } + } +}; +SignalHandling.parameters = { + ...SignalHandling.parameters, + docs: { + ...SignalHandling.parameters?.docs, + source: { + originalSource: "() => class SignalHandling extends lng.Component {\n static _template() {\n return {\n flex: {\n direction: 'column'\n },\n Slider: {\n type: Slider,\n step: 10,\n y: 15,\n w: 328,\n signals: {\n onChange: true\n }\n },\n Text: {\n y: 60,\n type: TextBox,\n content: 'Value: 0'\n }\n };\n }\n onChange(value) {\n this.tag('Text').content = `Value: ${value}`;\n }\n}", + ...SignalHandling.parameters?.docs?.source + } + } +}; + +/***/ }) + +}]); +//# sourceMappingURL=3245.ab02e54a.iframe.bundle.js.map \ No newline at end of file diff --git a/3245.ab02e54a.iframe.bundle.js.map b/3245.ab02e54a.iframe.bundle.js.map new file mode 100644 index 000000000..ec9aae0bd --- /dev/null +++ b/3245.ab02e54a.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"3245.ab02e54a.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAyBA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AAEA;AAEA;AACA;AACA;AASA;AASA;AAAA;AAAA;AAAA;AAGA;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAOA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAfA;AACA;AAAA;AAAA;AAAA;AAiBA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAnGA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;;;;;;;;;;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAAA;AACA;AACA;AAEA;AACA;AAAA;AAEA;AAAA;AAEA;AAAA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiDA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAIA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAGA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AACA;AACA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAEA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAOA;AACA;AACA;AAEA;AACA;AAAA;AATA;AACA;AAAA;AAAA;AAAA;AAhJA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAEA;AAEA;AAAA;AAAA;AACA;AAEA;AACA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAEA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAGA;AAEA;AAAA;AAAA;AACA;AAAA;AAAA;AAEA;AAAA;AAAA;;;;;;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;;AC1HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAEA;AAEA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAAA;AAEA;AACA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sources":["webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/ProgressBar/ProgressBar.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/ProgressBar/ProgressBar.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/ListItem/NestedSlider.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/ListItem/NestedSlider.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/ListItem/ListItemSlider.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/ListItem/ListItemSlider.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/ListItem/ListItemSlider.stories.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Slider/Slider.stories.js"],"sourcesContent":["/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => ({\n height: theme.spacer.md,\n animation: theme.animation.utility,\n radius: theme.radius.xs\n});\n\nexport const tone = theme => ({\n neutral: {\n barColor: theme.color.fillNeutralTertiary,\n progressColor: theme.color.fillNeutral\n },\n inverse: {\n barColor: theme.color.fillInverseTertiary,\n progressColor: theme.color.fillInverse\n },\n brand: {\n barColor: theme.color.fillNeutralTertiary,\n progressColor: theme.color.fillBrand\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport Base from '../Base';\nimport * as styles from './ProgressBar.styles';\nimport { getMaxRoundRadius } from '../../utils';\n\nexport default class ProgressBar extends Base {\n static _template() {\n return {\n Bar: { zIndex: 1 },\n Progress: { alpha: 0, zIndex: 2 }\n };\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static get __componentName() {\n return 'ProgressBar';\n }\n\n static get properties() {\n return ['progress'];\n }\n\n static get tags() {\n return ['Bar', 'Progress'];\n }\n\n _construct() {\n super._construct && super._construct();\n this._progress = 0;\n }\n\n _update() {\n this._updateTextures();\n this._updateProgress();\n if (this._progressChanged) {\n this.fireAncestors('$announce', this.announce);\n this._progressChanged = false;\n }\n }\n\n _updateTextures() {\n const w = this._getProgressWidth();\n\n const radius = getMaxRoundRadius(this.style.radius, this.w - 2, this.h);\n\n this._Bar.texture = lng.Tools.getRoundRect(\n // getRoundRect adds 2 to the width\n this.w - 2,\n this.h,\n radius,\n 0,\n 0,\n true,\n this.style.barColor\n );\n\n this._Progress.texture = lng.Tools.getRoundRect(\n w + 1,\n this.h,\n radius,\n 0,\n 0,\n true,\n this.style.progressColor\n );\n }\n\n _updateProgress() {\n const w = this._getProgressWidth();\n\n this._Progress.smooth = {\n w: [w, this.style.animation],\n alpha: Number(w > 0)\n };\n }\n\n _setProgress(progress) {\n this._progressChanged = progress !== this._progress;\n return progress;\n }\n\n set announce(announce) {\n super.announce = announce;\n }\n\n get announce() {\n if (this._announce !== undefined && this._announce !== null) {\n return this._announce;\n }\n\n let progress = this.progress;\n if (progress > 1) {\n progress = 1;\n } else if (progress < 0) {\n progress = 0;\n }\n return `${Math.round(progress * 100)}%`;\n }\n\n _getProgressWidth() {\n const p = this.w * this._progress;\n const w = p <= 0 ? 0 : Math.min(p, this.w);\n return w;\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = () => {\n return {\n showArrows: false,\n showKnob: false\n };\n};\n\nexport const mode = () => ({\n focused: {\n showArrows: true\n }\n});\n\nexport const tone = theme => ({\n neutral: {\n mode: {\n focused: {\n arrowColor: theme.color.fillInverse,\n progressBar: {\n barColor: theme.color.fillInverseTertiary,\n progressColor: theme.color.fillInverse\n }\n }\n }\n },\n inverse: {\n mode: {\n focused: {\n arrowColor: theme.color.fillNeutral,\n progressBar: {\n barColor: theme.color.fillNeutralTertiary,\n progressColor: theme.color.fillNeutral\n }\n }\n }\n },\n brand: {\n mode: {\n focused: {\n arrowColor: theme.color.fillInverse,\n progressBar: {\n barColor: theme.color.fillBrandTertiary,\n progressColor: theme.color.fillBrand\n }\n }\n }\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport * as styles from './NestedSlider.styles';\nimport Slider from '../Slider';\n\nexport default class NestedSlider extends Slider {\n static get __componentName() {\n return 'NestedSlider';\n }\n\n static get __themeStyle() {\n return styles;\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => ({\n paddingY: theme.spacer.md + theme.spacer.xs,\n valueTextStyle: {\n ...theme.typography.headline3,\n maxLines: 1,\n textColor: theme.color.textNeutralSecondary\n }\n});\n\nexport const mode = theme => ({\n disabled: {\n valueTextStyle: { textColor: theme.color.textNeutralDisabled }\n },\n focused: {\n valueTextStyle: { textColor: theme.color.textInverseSecondary }\n }\n});\n\nexport const tone = theme => ({\n neutral: {\n mode: {\n focused: {\n valueTextStyle: { textColor: theme.color.textInverseSecondary }\n }\n }\n },\n inverse: {\n mode: {\n focused: {\n valueTextStyle: { textColor: theme.color.textNeutralSecondary }\n }\n }\n },\n brand: {\n mode: {\n focused: {\n valueTextStyle: { textColor: theme.color.textInverseSecondary }\n }\n }\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport NestedSlider from './NestedSlider';\nimport ListItem from './ListItem';\nimport * as styles from './ListItemSlider.styles';\nimport TextBox from '../TextBox';\n\nexport default class ListItemSlider extends ListItem {\n static get __componentName() {\n return 'ListItemSlider';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static _template() {\n const template = super._template;\n return {\n ...template(),\n Content: {\n ...template().Content,\n flex: { direction: 'column' },\n TextWrapper: {\n ...template().Content.TextWrapper,\n mountY: 0,\n flex: undefined\n },\n Slider: {\n type: NestedSlider,\n mountX: 0.5,\n signals: {\n onChange: '_onSliderChanged'\n }\n }\n }\n };\n }\n\n static get properties() {\n return [...super.properties, 'slider', 'value', 'max', 'min'];\n }\n\n static get aliasStyles() {\n return [{ prev: 'titlePadding', curr: 'contentSpacing' }];\n }\n\n static get tags() {\n return [\n ...super.tags,\n { name: 'Slider', path: 'Content.Slider' },\n { name: 'Value', path: 'Content.TextWrapper.Value' }\n ];\n }\n\n _construct() {\n super._construct();\n this.value = 50;\n this.max = 100;\n this.min = 0;\n }\n\n _update() {\n super._update();\n this._updateSliderPosition();\n this._updateValue();\n }\n\n _onTextBoxChanged() {\n super._onTextBoxChanged();\n this._TextWrapper.h = Math.max(\n this._Title ? this._Title.h : 0,\n this._Value ? this._Value.h : 0\n );\n }\n\n _updateValue() {\n if (this._hasValue) {\n let valuePatch = {\n content: this.value.toString(),\n style: { textStyle: { ...this.style.valueTextStyle } },\n mountX: 1,\n x: this.w - this._paddingX\n };\n if (!this._Value) {\n valuePatch = {\n type: TextBox,\n signals: {\n textBoxChanged: '_onTextBoxChanged'\n },\n ...valuePatch\n };\n }\n this._TextWrapper.patch({ Value: valuePatch });\n } else {\n this._TextWrapper.patch({ Value: undefined });\n }\n }\n\n _updateSliderPosition() {\n const w = this.w - this._paddingLeft - this._paddingRight;\n const sliderProps = {\n mode: this.mode,\n tone: this.tone,\n w,\n x: w / 2,\n visible: !this._collapse,\n alpha: this.style.alpha,\n ...this.slider,\n value: this.value,\n max: this.max,\n min: this.min\n };\n\n this._Slider.patch(sliderProps);\n }\n\n get _hasValue() {\n return this.value != undefined || this.value != null;\n }\n\n get _fixedWordWrapWidth() {\n const titleWrapWidth =\n this.w - this._paddingLeft - this._paddingRight - this._paddingX;\n return titleWrapWidth;\n }\n\n _onSliderChanged(value) {\n this.value = value;\n this._updateValue();\n this.signal('onSliderChange', value, this);\n }\n\n _handleLeft() {\n if (typeof this.onLeft === 'function') {\n return this.onLeft(this);\n } else if (this._Slider && !this._isDisabledMode) {\n return this._Slider._handleLeft();\n }\n return false;\n }\n\n _handleRight() {\n if (typeof this.onRight === 'function') {\n return this.onRight(this);\n } else if (this._Slider && !this._isDisabledMode) {\n return this._Slider._handleRight();\n }\n return false;\n }\n\n set announce(announce) {\n super.announce = announce;\n }\n\n get announce() {\n if (this._announce) {\n return this._announce;\n }\n\n return this.title + this.value + ', List Item Slider';\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport { default as ListItemSliderComponent } from './ListItemSlider';\nimport { createModeControl, generateSubStory } from '../../docs/utils';\nimport { Basic as SliderStory } from '../Slider/Slider.stories';\n// TODO: Re-implement after figuring out how to in Storybook 8; worked in 7.\n// import { useArgs } from '@storybook/manager-api';\n\n/**\n * A ListItem component with slider functionality\n */\n\nexport default {\n title: 'Components/ListItem/ListItemSlider'\n};\n\nexport const ListItemSlider = () => {\n // const [{ value }, updateArgs] = useArgs();\n return class ListItemSlider extends lng.Component {\n static _template() {\n return {\n ListItemSlider: {\n type: ListItemSliderComponent\n // value: value,\n // signals: {\n // onSliderChange: true\n // }\n }\n };\n }\n // update arg control when value changes\n // onSliderChange(value) {\n // updateArgs({ value });\n // }\n };\n};\n\nListItemSlider.storyName = 'ListItemSlider';\n\nListItemSlider.args = {\n title: 'List Item',\n value: 50,\n shouldCollapse: false,\n mode: 'focused',\n max: 100,\n min: 0\n};\n\nListItemSlider.argTypes = {\n ...createModeControl({ summaryValue: 'focused' }),\n title: {\n control: 'text',\n description: 'Title text',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n value: {\n control: 'number',\n description: 'Current slider value',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'number' }\n }\n },\n shouldCollapse: {\n control: 'boolean',\n description:\n 'When in unfocused or disabled mode, if shouldCollapse property is true it will collapse the slider (when focused, it will always be expanded)',\n table: {\n defaultValue: { summary: false },\n type: { summary: 'boolean' }\n }\n },\n max: {\n control: 'number',\n description: 'Upper bound of value',\n table: {\n defaultValue: { summary: 100 },\n type: { summary: 'number' }\n }\n },\n min: {\n control: 'number',\n description: 'Lower bound of value',\n table: {\n defaultValue: { summary: 0 },\n type: { summary: 'number' }\n }\n }\n};\n\nListItemSlider.argActions = {\n shouldCollapse: (shouldCollapse, component) => {\n component.tag('ListItemSlider').shouldCollapse = shouldCollapse;\n }\n};\n\ngenerateSubStory({\n componentName: 'ListItemSlider',\n baseStory: ListItemSlider,\n subStory: SliderStory,\n targetProperty: 'slider',\n include: ['step']\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport { createModeControl } from '../../docs/utils';\nimport TextBox from '../TextBox';\nimport Slider from '.';\n// TODO: Re-implement after figuring out how to in Storybook 8; worked in 7.\n// import { useArgs } from '@storybook/manager-api';\n\nexport default {\n title: 'Components/Slider/Slider'\n};\n\nexport const Basic = () => {\n // const [{ value }, updateArgs] = useArgs();\n return class Basic extends lng.Component {\n static _template() {\n return {\n Slider: {\n type: Slider\n // value: value,\n // signals: {\n // onChange: true\n // }\n }\n };\n }\n // update arg control when value changes\n // onChange(value) {\n // updateArgs({ value });\n // }\n };\n};\n\nBasic.args = {\n min: 0,\n max: 100,\n value: 50,\n step: 1,\n vertical: false,\n mode: 'focused'\n};\n\nBasic.argTypes = {\n ...createModeControl({ summaryValue: 'focused' }),\n min: {\n control: 'number',\n description: 'Lower bound of value',\n table: { defaultValue: { summary: 0 }, type: { summary: 'number' } }\n },\n max: {\n control: 'number',\n description: 'Upper bound of value',\n table: { defaultValue: { summary: 100 }, type: { summary: 'number' } }\n },\n value: {\n control: 'number',\n description: 'Current value',\n table: {\n defaultValue: { summary: '0 or min' },\n type: { summary: 'number' }\n }\n },\n step: {\n control: 'number',\n description: '+/- value on change',\n table: { defaultValue: { summary: 1 }, type: { summary: 'number' } }\n },\n vertical: {\n control: 'boolean',\n description: 'If true, the slider is displayed vertically',\n table: { defaultValue: { summary: false }, type: { summary: 'boolean' } }\n }\n};\n\nexport const SignalHandling = () =>\n class SignalHandling extends lng.Component {\n static _template() {\n return {\n flex: { direction: 'column' },\n Slider: {\n type: Slider,\n step: 10,\n y: 15,\n w: 328,\n signals: {\n onChange: true\n }\n },\n Text: {\n y: 60,\n type: TextBox,\n content: 'Value: 0'\n }\n };\n }\n\n onChange(value) {\n this.tag('Text').content = `Value: ${value}`;\n }\n };\nSignalHandling.args = {\n mode: 'focused'\n};\n\nSignalHandling.argTypes = createModeControl({ summaryValue: 'focused' });\n\nSignalHandling.parameters = {\n storyDetails:\n 'When the onChange signal is emitted from the Slider the number in the TextBox is updated with the Slider value.'\n};\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/3378.abb6134d.iframe.bundle.js b/3378.abb6134d.iframe.bundle.js deleted file mode 100644 index 5eb4b5487..000000000 --- a/3378.abb6134d.iframe.bundle.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[3378],{ - -/***/ "../../../node_modules/@storybook/components/dist/syntaxhighlighter-V7JZZA35.mjs": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ SyntaxHighlighter: () => (/* reexport safe */ _chunk_ELLS3HSY_mjs__WEBPACK_IMPORTED_MODULE_0__.bF), -/* harmony export */ createCopyToClipboardFunction: () => (/* reexport safe */ _chunk_ELLS3HSY_mjs__WEBPACK_IMPORTED_MODULE_0__.zH), -/* harmony export */ "default": () => (/* reexport safe */ _chunk_ELLS3HSY_mjs__WEBPACK_IMPORTED_MODULE_0__.L0) -/* harmony export */ }); -/* harmony import */ var _chunk_ELLS3HSY_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/@storybook/components/dist/chunk-ELLS3HSY.mjs"); - - - - - - - - - - - - - - - - - - -/***/ }) - -}]); -//# sourceMappingURL=3378.abb6134d.iframe.bundle.js.map \ No newline at end of file diff --git a/3378.abb6134d.iframe.bundle.js.map b/3378.abb6134d.iframe.bundle.js.map deleted file mode 100644 index 7d7703e55..000000000 --- a/3378.abb6134d.iframe.bundle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"3378.abb6134d.iframe.bundle.js","mappings":";;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://lightning-ui-docs/../../../node_modules/@storybook/components/dist/syntaxhighlighter-V7JZZA35.mjs"],"sourcesContent":["export { SyntaxHighlighter, createCopyToClipboardFunction, syntaxhighlighter_default as default } from './chunk-ELLS3HSY.mjs';\nimport './chunk-MUPK3MH6.mjs';\nimport './chunk-ISRAU5IP.mjs';\nimport './chunk-YU6L2YXV.mjs';\nimport './chunk-VSDH24NK.mjs';\nimport './chunk-BNQCH2A2.mjs';\nimport './chunk-UDRSICRZ.mjs';\nimport './chunk-J6EJ35VB.mjs';\nimport './chunk-HNGDCMHD.mjs';\nimport './chunk-4Y2S2TEP.mjs';\nimport './chunk-CW4JFC2I.mjs';\nimport './chunk-7PYIL73X.mjs';\nimport './chunk-SWV57YYC.mjs';\nimport './chunk-MNLJ4LIX.mjs';\nimport './chunk-DHRX2IL7.mjs';\nimport './chunk-JRLSWQMA.mjs';\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/3623.a4207740.iframe.bundle.js.map b/3623.a4207740.iframe.bundle.js.map deleted file mode 100644 index f6475a152..000000000 --- a/3623.a4207740.iframe.bundle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"3623.a4207740.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAkBA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;;AAEA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;;AAEA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAAA;AAAA;AAAA;AAEA;AACA;;AAEA;AAAA;AAAA;AAAA;AAEA;AACA;;AAEA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAGA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAGA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AA5KA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;;;;;;;;;;;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Button/ButtonSmall.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Button/ButtonSmall.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Control/Control.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Control/Control.styles.js"],"sourcesContent":["/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { getWidthByColumnSpan } from '../../utils';\n\nexport const base = theme => ({\n minWidth: getWidthByColumnSpan(theme, 1),\n paddingX: theme.spacer.xxl,\n paddingXNoTitle: theme.spacer.lg,\n paddingY: theme.spacer.lg,\n textStyle: theme.typography.button2\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport Button from './Button';\nimport * as styles from './ButtonSmall.styles';\n\nexport default class ButtonSmall extends Button {\n static get __componentName() {\n return 'ButtonSmall';\n }\n\n static get __themeStyle() {\n return styles;\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { ButtonSmall } from '../Button';\nimport Icon from '../Icon';\nimport * as styles from './Control.styles';\n\nexport default class Control extends ButtonSmall {\n static get __componentName() {\n return 'Control';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static get properties() {\n return [...super.properties, 'icon', 'logo', 'shouldCollapse'];\n }\n\n static get aliasStyles() {\n return [{ prev: 'titlePadding', curr: 'contentSpacing' }];\n }\n\n _update() {\n // ordering this way to make sure that this._Title is defined so the title visibility can be set properly when _updateCollapseStatus is called\n this._updatePrefixStyle();\n super._updateTitle();\n this._updateCollapseStatus();\n super._update();\n }\n\n _updateCollapseStatus() {\n if (this._Title) {\n this._Title.visible = !this._collapse;\n }\n }\n\n // if user provides styling of either logo or icon, apply the style to the respected element\n _updatePrefixStyle() {\n if (this._prefix) {\n // checking logo first since it takes precedence\n if (this.logo) {\n this._updatePrefixObj(this.logo, {\n style: { color: undefined, ...this.style.logoStyle }\n });\n } else if (this.icon) {\n this._updatePrefixObj(this.icon, { style: this.style.iconStyle });\n }\n }\n }\n\n // optimization\n // sets Title's x and mountX values\n _patchTitle(x, mountX) {\n this._Title.patch({\n x,\n mountX\n });\n }\n\n _updateContentPosition() {\n if (this._prefix && this._Title) {\n // placing prefix always to the left if title is present\n // justification should only apply to title in this case\n this._Content.patch({\n mountX: 0,\n x: this._paddingLeft\n });\n\n switch (this._justify) {\n case 'left':\n this._patchTitle(0, 0);\n break;\n case 'right':\n if (this.w < this._Prefix.w + this._Title.w) {\n this._patchTitle(0, 0);\n } else {\n const leftOverSpace =\n this.w -\n (this._paddingLeft +\n this._paddingRight +\n this._Prefix.w +\n this.style.contentSpacing);\n\n this._patchTitle(leftOverSpace, 1);\n }\n break;\n case 'center':\n default:\n if (this.fixed) {\n // if the component width is less than the prefix and title then we go to the default padding on left and right of title\n if (this.w < this._Prefix.w + this._Title.w) {\n this._patchTitle(0, 0);\n } else {\n const middle =\n (this.w -\n (this._paddingLeft + this._Prefix.w + this._paddingRight)) /\n 2;\n this._patchTitle(middle, 0.5);\n }\n } else if (this._Prefix !== undefined) {\n const middle =\n (this.w -\n (this._paddingLeft +\n this._Prefix.w +\n this.style.contentSpacing +\n this._paddingRight)) /\n 2;\n this._patchTitle(middle, 0.5);\n }\n break;\n }\n } else {\n super._updateContentPosition();\n this._Title && this._patchTitle(0, 0); // RESET Title back to original position\n }\n }\n\n // does nothing if a prefix property is passed in for Control\n _setPrefix() {\n return;\n }\n\n // does nothing if a suffix property is passed in for Control\n _setSuffix() {\n return;\n }\n\n // optimization\n // turning prefix property setter into a function since functionality is repeated\n _updatePrefixObj(icon, props = {}) {\n this._prefix = {\n type: Icon,\n icon,\n ...props\n };\n }\n\n _setIcon(icon) {\n if (!this.logo) {\n // if icon is defined then set it otherwise set prefix to be undefined\n if (icon) {\n this._updatePrefixObj(icon, { style: this.style.iconStyle });\n } else {\n this._prefix = icon;\n }\n }\n return icon;\n }\n\n _setLogo(logo) {\n if (logo) {\n this._updatePrefixObj(logo, {\n style: { color: undefined, ...this.style.logoStyle }\n });\n // if logo is set to undefined but an icon is provided, display the icon\n } else if (this.icon) {\n this._updatePrefixObj(this.icon, { style: this.style.iconStyle });\n } else {\n this._prefix = logo;\n }\n return logo;\n }\n\n get _paddingLeft() {\n return this.logo ? this.style.paddingXNoTitle : this.style.paddingX;\n }\n\n get _paddingRight() {\n return this.logo && (!this._hasTitle || this._collapse)\n ? this.style.paddingXNoTitle\n : this.style.paddingX;\n }\n\n get _collapse() {\n return this.shouldCollapse && !this._isFocusedMode;\n }\n\n get _announceComponentName() {\n return Control.__componentName;\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => {\n const paddingX = theme.spacer.lg;\n const radius = theme.radius.xl;\n const logoRadius = Math.max(radius - paddingX / 2, 0);\n\n return {\n height: theme.spacer.md * 8,\n iconStyle: {\n radius: radius,\n width: theme.spacer.xxxl,\n height: theme.spacer.xxxl\n },\n logoStyle: {\n radius: logoRadius,\n width: theme.spacer.md * 7,\n height: theme.spacer.md * 6\n },\n minWidth: theme.spacer.md * 9,\n paddingX,\n paddingXNoTitle: theme.spacer.md,\n prefixPadding: theme.spacer.md,\n radius,\n contentSpacing: theme.spacer.md\n };\n};\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/3646.70ddbfcb.iframe.bundle.js.map b/3646.70ddbfcb.iframe.bundle.js.map deleted file mode 100644 index 4ffa48298..000000000 --- a/3646.70ddbfcb.iframe.bundle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"3646.70ddbfcb.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AASA;AACA;AAAA;AAAA;AAAA;AA7BA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC9DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAwEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AAKA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AAGA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAEA;AAEA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAGA;AAAA;AAAA;AAAA;AAGA;AAGA;AAGA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAOA;AACA;AACA;AACA;AACA;AAAA;AARA;AACA;AAAA;AAAA;AAAA;AAtUA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAGA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AAAA;AAAA;AA6QA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC5YA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAKA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAGA;AACA;AAAA;AAGA;AAGA;AAAA;AACA;AAGA;AACA;AAEA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAGA;AASA;AACA;AACA;AACA;AACA;AAIA;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAGA;AAGA;AACA;AACA;AACA;AACA;AAGA;AAOA;AACA;AACA;AACA;AAEA;AAGA;AACA;AACA;AACA;AACA;AACA;AAEA;;AAEA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAIA;AAEA;AAAA;AAAA;AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAKA;AAAA;AAAA;AAAA;AAMA;AAGA;AAAA;AAAA;AAAA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AACA","sources":["webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Knob/Knob.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Knob/Knob.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Slider/Slider.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Slider/Slider.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/docs/utils.js"],"sourcesContent":["/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => {\n const size = theme.spacer.lg;\n return {\n width: size,\n height: size,\n radius: size / 2\n };\n};\n\nexport const tone = theme => ({\n neutral: {\n circleColor: theme.color.interactiveNeutralFocus,\n mode: {\n disabled: {\n circleColor: theme.color.fillNeutralDisabled\n }\n }\n },\n inverse: {\n circleColor: theme.color.interactiveInverseFocus,\n mode: {\n disabled: {\n circleColor: theme.color.fillInverseDisabled\n }\n }\n },\n brand: {\n circleColor: theme.color.interactiveBrandFocus,\n mode: {\n disabled: {\n circleColor: theme.color.fillInverseDisabled\n }\n }\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { getMaxRoundRadius } from '../../utils';\nimport Base from '../Base';\nimport * as styles from './Knob.styles';\nimport lng from '@lightningjs/core';\n\nexport default class Knob extends Base {\n static get __componentName() {\n return 'Knob';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static _template() {\n return {\n mount: 0.5\n };\n }\n\n _update() {\n this._updateCircleLayout();\n }\n\n _updateCircleLayout() {\n this.patch({\n texture: lng.Tools.getRoundRect(\n this.w,\n this.h,\n getMaxRoundRadius(this.style.radius, this.w, this.h),\n null,\n null,\n true,\n this.style.circleColor\n )\n });\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { getWidthByColumnSpan } from '../../utils';\n\nexport const base = theme => {\n const size = theme.spacer.lg;\n return {\n arrowAlphaValue: theme.alpha.primary,\n arrowAlphaValueLimit: theme.alpha.secondary,\n arrowHeight: theme.spacer.xxl,\n arrowSpacing: theme.spacer.md,\n arrowWidth: theme.spacer.xxl,\n arrowColor: theme.color.fillNeutral,\n containerHeight: theme.spacer.lg + theme.spacer.xs,\n iconLeftSrc: theme.asset.arrowLeft,\n iconRightSrc: theme.asset.arrowRight,\n minWidth: getWidthByColumnSpan(theme, 2),\n progressBar: {},\n width: size,\n height: size,\n radius: size / 2,\n showArrows: true,\n showKnob: true,\n circleAnimation: {}\n };\n};\n\nexport const mode = () => ({\n disabled: {\n arrowAlphaValue: 0\n }\n});\n\nexport const tone = theme => ({\n neutral: {\n arrowColor: theme.color.fillNeutral,\n circleColor: theme.color.interactiveNeutralFocus\n },\n inverse: {\n arrowColor: theme.color.fillInverse,\n circleColor: theme.color.interactiveInverseFocus\n },\n brand: {\n arrowColor: theme.color.fillNeutral,\n circleColor: theme.color.interactiveNeutralFocus\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport Base from '../Base';\nimport * as styles from './Slider.styles';\nimport ProgressBar from '../ProgressBar';\nimport Icon from '../Icon';\nimport Knob from '../Knob';\nimport { degreesToRadians } from '../../utils';\n\nexport default class Slider extends Base {\n static get __componentName() {\n return 'Slider';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static _template() {\n return {\n Container: {\n mountY: 0.5,\n y: h => h / 2,\n Bar: {\n mountY: 0.5,\n SliderBar: {\n type: ProgressBar,\n progress: 0.5,\n mountY: 0.5,\n announce: ''\n },\n Circle: {\n type: Knob,\n zIndex: 5 // places circle knob on top of sliderBar\n }\n },\n LeftArrow: {\n type: Icon,\n mountY: 0.5,\n y: h => h / 2\n },\n RightArrow: {\n type: Icon,\n mountY: 0.5,\n y: h => h / 2\n }\n }\n };\n }\n\n static get properties() {\n return ['max', 'min', 'step', 'value', 'vertical'];\n }\n\n static get tags() {\n return [\n 'Container',\n {\n name: 'Bar',\n path: 'Container.Bar'\n },\n {\n name: 'SliderBar',\n path: 'Container.Bar.SliderBar'\n },\n {\n name: 'Circle',\n path: 'Container.Bar.Circle'\n },\n {\n name: 'LeftArrow',\n path: 'Container.LeftArrow'\n },\n {\n name: 'RightArrow',\n path: 'Container.RightArrow'\n }\n ];\n }\n\n _construct() {\n super._construct();\n this._min = 0;\n this._max = 100;\n this._step = 1;\n this._value = 0;\n this._vertical = false;\n }\n\n _update() {\n this._updateDirection();\n this._updateSliderLayout();\n this._updatePositions();\n this._updateArrowAlpha();\n this._updateArrows();\n if (this._valueChanged) {\n this.signal('onChange', this.value, this);\n this.fireAncestors('$announce', this.announce);\n this._valueChanged = false;\n }\n this._checkAndSignalSizeChange();\n }\n\n _handleLeft() {\n if (this._isDisabledMode) {\n return false;\n }\n this._decrementValue();\n if (typeof this.onLeft === 'function') {\n return this.onLeft(this);\n }\n return true;\n }\n\n _handleRight() {\n if (this._isDisabledMode) {\n return false;\n }\n this._incrementValue();\n if (typeof this.onRight === 'function') {\n return this.onRight(this);\n }\n return true;\n }\n\n _updateDirection() {\n this.patch({\n pivotX: 0,\n rotation: this.vertical ? degreesToRadians(90) : 0,\n mountY: this.vertical ? 0.5 : 0\n });\n }\n\n _updateSliderLayout() {\n const w = this.w || this.style.minWidth;\n this._Container.patch({\n h: this.style.containerHeight,\n w,\n Bar: {\n x: this._calculatedSliderX,\n SliderBar: {\n y: this.style.containerHeight / 2,\n w: this._calculatedSliderWidth,\n style: {\n duration: 0,\n ...this.style.progressBar\n }\n }\n }\n });\n this.h = Math.max(this.style.containerHeight, this.style.arrowHeight);\n }\n\n _checkAndSignalSizeChange() {\n if (\n this.h !== this.prevH ||\n this._Container.w !== this.prevW ||\n this.rotation !== this.prevRotation\n ) {\n this.signal('onSizeChange', this);\n }\n this.prevH = this.h;\n this.prevW = this._Container.w;\n this.prevRotation = this.rotation;\n }\n\n _updatePositions() {\n this._updateSliderProgress();\n this._updateCirclePosition();\n }\n\n _updateSliderProgress() {\n let progress =\n this.value < this.min ? this.min / this.max : this.value / this.max;\n\n if (this.value > this.max || this.value - this.step > this.max) {\n progress = this._calculatedSliderWidth;\n } else if (this.min < 0 || this.max < 0) {\n progress = (this.value - this.min) / (this.max - this.min);\n }\n\n this._SliderBar.progress = progress;\n }\n\n _updateCirclePosition() {\n let xCirclePosition;\n if (this.value < this.min || this.value + this.step < this.min) {\n xCirclePosition = (this.min / this.max) * this._calculatedSliderWidth;\n } else if (this.value > this.max || this.value - this.step > this.max) {\n xCirclePosition = this._calculatedSliderWidth;\n } else {\n if (this.min < 0 || this.max < 0) {\n xCirclePosition =\n ((this.value - this.min) / (this.max - this.min)) *\n this._calculatedSliderWidth;\n } else {\n xCirclePosition = (this.value / this.max) * this._calculatedSliderWidth;\n }\n }\n\n if (this._Circle) {\n this._Circle.patch({\n mode: this.mode,\n style: {\n radius: this.style.radius,\n w: this.style.w,\n h: this.style.h,\n circleColor: this.style.circleColor\n },\n y: this._SliderBar.y + 1,\n alpha: this._isFocusedMode && this.style.showKnob ? 1 : 0\n });\n if (\n this.style.circleAnimation &&\n Object.keys(this.style.circleAnimation).length\n ) {\n this._Circle.smooth = {\n x: [xCirclePosition, this.style.circleAnimation]\n };\n } else {\n this._Circle.x = xCirclePosition;\n }\n }\n }\n\n _updateArrowAlpha() {\n // fade arrows at min/max\n let leftAlpha;\n let rightAlpha;\n\n // ensure arrows are always rendered, otherwise color changes might not apply right away\n const offAlpha = 0.001;\n const alpha = this.style.showArrows ? this.style.arrowAlphaValue : offAlpha;\n const alphaLimit = this.style.showArrows\n ? this.style.arrowAlphaValueLimit\n : offAlpha;\n\n leftAlpha = rightAlpha = alpha;\n if (!this._isDisabledMode && this.value <= this.min) {\n leftAlpha = alphaLimit;\n rightAlpha = alpha;\n } else if (!this._isDisabledMode && this.value >= this.max) {\n leftAlpha = alpha;\n rightAlpha = alphaLimit;\n }\n\n this._LeftArrow.smooth = { alpha: leftAlpha };\n this._RightArrow.smooth = { alpha: rightAlpha };\n }\n\n _updateArrows() {\n const arrowProps = {\n w: this.style.arrowWidth,\n h: this.style.arrowHeight,\n style: {\n color: this.style.arrowColor\n }\n };\n this._LeftArrow.patch({\n ...arrowProps,\n icon: this.style.iconLeftSrc\n });\n this._RightArrow.patch({\n ...arrowProps,\n icon: this.style.iconRightSrc\n });\n\n this._RightArrow.smooth = {\n x: this.style.arrowSpacing + this._calculatedSliderWidth + this._Bar.x\n };\n }\n\n _decrementValue() {\n const value = this.value - this.step;\n this.value = value >= this.min ? value : this.min;\n this._updatePositions();\n }\n\n _incrementValue() {\n const value = this.value + this.step;\n this.value = value <= this.max ? value : this.max;\n this._updatePositions();\n }\n\n _handleUp() {\n return false;\n }\n\n _handleDown() {\n return false;\n }\n\n get _calculatedSliderX() {\n return this.style.showArrows\n ? this.style.arrowSpacing + this.style.arrowWidth\n : 0;\n }\n\n get _calculatedSliderWidth() {\n const totalArrowSize = this.style.showArrows\n ? this.style.arrowSpacing * 2 + this.style.arrowWidth * 2\n : 0;\n return this.w < totalArrowSize + this._circleW\n ? this.style.minWidth - totalArrowSize\n : this.w - totalArrowSize;\n }\n\n get _circleW() {\n return this._Circle ? this._Circle.w : 0;\n }\n\n _setVertical(vertical) {\n this._setState(vertical ? 'VerticalSlider' : '');\n return vertical;\n }\n\n _setValue(value) {\n this._valueChanged = value !== this._value;\n return value;\n }\n\n _setMin(min) {\n const value = this.value;\n this.value = min > value ? min : value;\n this._valueChanged = value !== this.value;\n return min;\n }\n\n _setMax(max) {\n const value = this.value;\n this.value = max < value ? max : value;\n this._valueChanged = value !== this.value;\n return max;\n }\n\n set announce(announce) {\n super.announce = announce;\n }\n\n get announce() {\n if (this._announce !== undefined && this._announce !== null) {\n return this._announce;\n }\n return this.value.toString();\n }\n\n static _states() {\n return [\n class VerticalSlider extends this {\n _handleLeft() {\n return false;\n }\n\n _handleRight() {\n return false;\n }\n\n _handleUp() {\n if (this._isDisabledMode) {\n return false;\n }\n this._decrementValue();\n if (typeof this.onUp === 'function') {\n return this.onUp(this);\n }\n return true;\n }\n\n _handleDown() {\n if (this._isDisabledMode) {\n return false;\n }\n this._incrementValue();\n if (typeof this.onDown === 'function') {\n return this.onDown(this);\n }\n return true;\n }\n }\n ];\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// eslint-disable-next-line no-unused-vars\nimport React from 'react';\nimport utils from '../utils';\n\n// creates Mode control on stories\nexport const createModeControl = ({ options, summaryValue } = {}) => {\n return {\n mode: {\n control: 'radio',\n options:\n options && Array.isArray(options)\n ? ['unfocused', ...options]\n : ['unfocused', 'focused', 'disabled'],\n description: 'Sets the visual mode for the component',\n table: {\n defaultValue: { summary: summaryValue }\n },\n type: { name: 'string', required: true }\n }\n };\n};\n\n/**\n * @param {object} config Parameters for generating nested args: { argsObj, targetProp, include, overrides }\n */\nexport function nestedArgs(config) {\n const { argsObj, targetProp, include, overrides } = config;\n return Object.keys(argsObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]:\n (overrides.args && overrides.args[curr]) || argsObj[curr]\n };\n }, {});\n}\n\n/**\n * @param {object} config Parameters for generating nested arg types: { argsObj, targetProp, include, overrides }\n */\nexport function nestedArgTypes(config) {\n const { argTypesObj, targetProp, include, overrides } = config;\n return Object.keys(argTypesObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]: {\n // Namespaced to avoid conflicts\n name: curr,\n ...argTypesObj[curr],\n ...overrides[curr],\n table: {\n ...(argTypesObj[curr].table || {}),\n ...(overrides[curr] && overrides[curr].table),\n category: targetProp\n }\n }\n };\n }, {});\n}\n\nexport const prevValues = {};\n\n/**\n * @param {object} config Parameters for generating nested arg actions: { componentName, argsTypeObj, targetProp, include, overrides }\n */\nexport function nestedArgActions(config) {\n const { componentName, argTypesObj, targetProp, include, overrides } = config;\n return Object.keys(argTypesObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]: (value, component) => {\n component.tag(componentName).patch({\n [targetProp]: {\n ...prevValues[targetProp],\n [curr.replace(targetProp + '_', '')]:\n value === 'none'\n ? undefined\n : (overrides && overrides[curr]) || value // There are issues with merging objects here\n }\n });\n // Allow patching to work with nested objects\n if (!prevValues[targetProp]) {\n prevValues[targetProp] = {};\n }\n prevValues[targetProp][curr.replace(targetProp + '_', '')] =\n value === 'none'\n ? undefined\n : (overrides && overrides[curr]) || value;\n }\n };\n }, {});\n}\n\n/**\n * @param {object} config Parameters for generating story: { componentName, baseStory, subStory, targetProperty, include, options }\n */\nexport function generateSubStory(config) {\n config.baseStory.args = {\n ...config.baseStory.args,\n ...nestedArgs({\n argsObj: config.subStory.args || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.args) || {}\n })\n };\n\n config.baseStory.argTypes = {\n ...config.baseStory.argTypes,\n ...nestedArgTypes({\n argTypesObj: config.subStory.argTypes || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.argTypes) || {}\n })\n };\n\n if (\n !(\n config.baseStory &&\n config.baseStory.parameters &&\n config.baseStory.parameters.argActions\n )\n ) {\n config.baseStory.parameters = {\n argActions: {}\n };\n }\n\n config.baseStory.parameters.argActions = {\n ...config.baseStory.parameters.argActions,\n ...nestedArgActions({\n componentName: config.componentName,\n argTypesObj: config.subStory.argTypes || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.argActions) || {}\n })\n };\n}\n\n// used to create links to Lightning docs given an id\nexport const DocsLink = ({ children, id }) => {\n const docsmap = {\n lng: {\n _base: 'https://rdkcentral.github.io/Lightning/docs',\n Component: '/components/overview',\n Text: '/textures/text',\n Transition: '/transitions/attributes'\n }\n };\n const [source, path] = id.split('.');\n const href = docsmap[source]._base + docsmap[source][path];\n return (\n \n {children || id}\n \n );\n};\n\nexport const Item = ({ children }) => children;\n\n/**\n * Creates formatted object for markdown prop tables\n * see Column and Row stories\n * @param {object} props\n * @param {object} props.type - TS-style generic/utility type\n */\nexport const ObjectFormat = ({ object }) => {\n return [\n '{',\n
,\n ' ',\n ...utils.flatten(\n Object.entries(object).map(([k, v]) => [\n   ,\n `${k}: `,\n v,\n ',',\n
\n ])\n ),\n '}'\n ].map((x, i) => {x});\n};\n\n/**\n * Formats TS-style generic types\n * See Columns and Row stories\n * @param {object} props\n * @param {object} props.children - component children\n * @param {string} props.type - Name of generic type\n */\nexport const GenericType = ({ children, type }) => {\n return [type, '<', children, '>'].map((x, i) => {x});\n};\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/3871.74f5a7a9.iframe.bundle.js.map b/3871.74f5a7a9.iframe.bundle.js.map deleted file mode 100644 index a47641dec..000000000 --- a/3871.74f5a7a9.iframe.bundle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"3871.74f5a7a9.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;ACrOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAwBA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAOA;AACA;AAAA;AAAA;AAAA;AAGA;AAIA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAtDA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAKA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAGA;AACA;AAAA;AAGA;AAGA;AAAA;AACA;AAGA;AACA;AAEA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAGA;AASA;AACA;AACA;AACA;AACA;AAIA;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAGA;AAGA;AACA;AACA;AACA;AACA;AAGA;AAOA;AACA;AACA;AACA;AAEA;AAGA;AACA;AACA;AACA;AACA;AACA;AAEA;;AAEA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAIA;AAEA;AAAA;AAAA;AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAKA;AAAA;AAAA;AAAA;AAMA;AAGA;AAAA;AAAA;AAAA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AACA","sources":["webpack://lightning-ui-docs/","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Surface/Surface.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Surface/Surface.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/docs/utils.js"],"sourcesContent":[null,"/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => ({\n backgroundColor: theme.color.interactiveNeutral,\n radius: theme.radius.md,\n animation: {}\n});\n\nexport const tone = theme => ({\n inverse: {\n backgroundColor: theme.color.interactiveInverse\n }\n});\n\nexport const mode = theme => ({\n focused: {\n backgroundColor: theme.color.interactiveNeutralFocus,\n tone: {\n inverse: {\n backgroundColor: theme.color.interactiveInverseFocus\n }\n }\n },\n disabled: {\n backgroundColor: theme.color.fillNeutralDisabled\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { getMaxRoundRadius } from '../../utils';\nimport Base from '../Base';\nimport * as styles from './Surface.styles';\nimport lng from '@lightningjs/core';\n\nexport default class Surface extends Base {\n static _template() {\n return {\n Background: {}\n };\n }\n\n static get __componentName() {\n return 'Surface';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static get properties() {\n return [];\n }\n\n static get tags() {\n return ['Background'];\n }\n\n get innerH() {\n return this.h;\n }\n\n get innerW() {\n return this.w;\n }\n\n _update() {\n this._updateLayout();\n this._updateScale();\n }\n\n _updateLayout() {\n this._Background.patch({\n texture: lng.Tools.getRoundRect(\n this.innerW - 2, // Reference the underscored values here in cause the h or w getters need to be overwritten for alignment - see Tile\n this.innerH - 2,\n getMaxRoundRadius(this.style.radius, this.w, this.h),\n 0,\n null,\n true,\n this.style.backgroundColor\n )\n });\n }\n\n _updateScale() {\n const scale = this._isFocusedMode\n ? this.getFocusScale(this.w, this.h)\n : this.getUnfocusScale(this.w, this.h);\n\n this.applySmooth(this, { scale }, { scale: [scale, this.style.animation] });\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// eslint-disable-next-line no-unused-vars\nimport React from 'react';\nimport utils from '../utils';\n\n// creates Mode control on stories\nexport const createModeControl = ({ options, summaryValue } = {}) => {\n return {\n mode: {\n control: 'radio',\n options:\n options && Array.isArray(options)\n ? ['unfocused', ...options]\n : ['unfocused', 'focused', 'disabled'],\n description: 'Sets the visual mode for the component',\n table: {\n defaultValue: { summary: summaryValue }\n },\n type: { name: 'string', required: true }\n }\n };\n};\n\n/**\n * @param {object} config Parameters for generating nested args: { argsObj, targetProp, include, overrides }\n */\nexport function nestedArgs(config) {\n const { argsObj, targetProp, include, overrides } = config;\n return Object.keys(argsObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]:\n (overrides.args && overrides.args[curr]) || argsObj[curr]\n };\n }, {});\n}\n\n/**\n * @param {object} config Parameters for generating nested arg types: { argsObj, targetProp, include, overrides }\n */\nexport function nestedArgTypes(config) {\n const { argTypesObj, targetProp, include, overrides } = config;\n return Object.keys(argTypesObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]: {\n // Namespaced to avoid conflicts\n name: curr,\n ...argTypesObj[curr],\n ...overrides[curr],\n table: {\n ...(argTypesObj[curr].table || {}),\n ...(overrides[curr] && overrides[curr].table),\n category: targetProp\n }\n }\n };\n }, {});\n}\n\nexport const prevValues = {};\n\n/**\n * @param {object} config Parameters for generating nested arg actions: { componentName, argsTypeObj, targetProp, include, overrides }\n */\nexport function nestedArgActions(config) {\n const { componentName, argTypesObj, targetProp, include, overrides } = config;\n return Object.keys(argTypesObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]: (value, component) => {\n component.tag(componentName).patch({\n [targetProp]: {\n ...prevValues[targetProp],\n [curr.replace(targetProp + '_', '')]:\n value === 'none'\n ? undefined\n : (overrides && overrides[curr]) || value // There are issues with merging objects here\n }\n });\n // Allow patching to work with nested objects\n if (!prevValues[targetProp]) {\n prevValues[targetProp] = {};\n }\n prevValues[targetProp][curr.replace(targetProp + '_', '')] =\n value === 'none'\n ? undefined\n : (overrides && overrides[curr]) || value;\n }\n };\n }, {});\n}\n\n/**\n * @param {object} config Parameters for generating story: { componentName, baseStory, subStory, targetProperty, include, options }\n */\nexport function generateSubStory(config) {\n config.baseStory.args = {\n ...config.baseStory.args,\n ...nestedArgs({\n argsObj: config.subStory.args || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.args) || {}\n })\n };\n\n config.baseStory.argTypes = {\n ...config.baseStory.argTypes,\n ...nestedArgTypes({\n argTypesObj: config.subStory.argTypes || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.argTypes) || {}\n })\n };\n\n if (\n !(\n config.baseStory &&\n config.baseStory.parameters &&\n config.baseStory.parameters.argActions\n )\n ) {\n config.baseStory.parameters = {\n argActions: {}\n };\n }\n\n config.baseStory.parameters.argActions = {\n ...config.baseStory.parameters.argActions,\n ...nestedArgActions({\n componentName: config.componentName,\n argTypesObj: config.subStory.argTypes || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.argActions) || {}\n })\n };\n}\n\n// used to create links to Lightning docs given an id\nexport const DocsLink = ({ children, id }) => {\n const docsmap = {\n lng: {\n _base: 'https://rdkcentral.github.io/Lightning/docs',\n Component: '/components/overview',\n Text: '/textures/text',\n Transition: '/transitions/attributes'\n }\n };\n const [source, path] = id.split('.');\n const href = docsmap[source]._base + docsmap[source][path];\n return (\n \n {children || id}\n \n );\n};\n\nexport const Item = ({ children }) => children;\n\n/**\n * Creates formatted object for markdown prop tables\n * see Column and Row stories\n * @param {object} props\n * @param {object} props.type - TS-style generic/utility type\n */\nexport const ObjectFormat = ({ object }) => {\n return [\n '{',\n
,\n ' ',\n ...utils.flatten(\n Object.entries(object).map(([k, v]) => [\n   ,\n `${k}: `,\n v,\n ',',\n
\n ])\n ),\n '}'\n ].map((x, i) => {x});\n};\n\n/**\n * Formats TS-style generic types\n * See Columns and Row stories\n * @param {object} props\n * @param {object} props.children - component children\n * @param {string} props.type - Name of generic type\n */\nexport const GenericType = ({ children, type }) => {\n return [type, '<', children, '>'].map((x, i) => {x});\n};\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/6138.7aa8a25a.iframe.bundle.js b/3878.8aedeb0c.iframe.bundle.js similarity index 68% rename from 6138.7aa8a25a.iframe.bundle.js rename to 3878.8aedeb0c.iframe.bundle.js index 2dbe90c9b..5aa73b23a 100644 --- a/6138.7aa8a25a.iframe.bundle.js +++ b/3878.8aedeb0c.iframe.bundle.js @@ -1,5 +1,5 @@ "use strict"; -(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[6138],{ +(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[3878,6115,4827,287],{ /***/ "../../@lightningjs/ui-components/src/components/Card/Card.js": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -24,8 +24,8 @@ var utils = __webpack_require__("../../@lightningjs/ui-components/src/utils/inde function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } +function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** * Copyright 2023 Comcast Cable Communications Management, LLC @@ -88,31 +88,33 @@ var TextBox = __webpack_require__("../../@lightningjs/ui-components/src/componen var Surface = __webpack_require__("../../@lightningjs/ui-components/src/components/Surface/Surface.js"); ;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/Card/Card.js function Card_typeof(o) { "@babel/helpers - typeof"; return Card_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, Card_typeof(o); } -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } +function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } +function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); } +function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); } +function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } function Card_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function Card_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? Card_ownKeys(Object(t), !0).forEach(function (r) { Card_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Card_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, Card_toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function set(target, property, value, receiver) { if (typeof Reflect !== "undefined" && Reflect.set) { set = Reflect.set; } else { set = function set(target, property, value, receiver) { var base = _superPropBase(target, property); var desc; if (base) { desc = Object.getOwnPropertyDescriptor(base, property); if (desc.set) { desc.set.call(receiver, value); return true; } else if (!desc.writable) { return false; } } desc = Object.getOwnPropertyDescriptor(receiver, property); if (desc) { if (!desc.writable) { return false; } desc.value = value; Object.defineProperty(receiver, property, desc); } else { Card_defineProperty(receiver, property, value); } return true; }; } return set(target, property, value, receiver); } -function _set(target, property, value, receiver, isStrict) { var s = set(target, property, value, receiver || target); if (!s && isStrict) { throw new TypeError('failed to set property'); } return value; } -function Card_defineProperty(obj, key, value) { key = Card_toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function Card_toPropertyKey(t) { var i = Card_toPrimitive(t, "string"); return "symbol" == Card_typeof(i) ? i : String(i); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, Card_toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } +function _possibleConstructorReturn(t, e) { if (e && ("object" == Card_typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); } +function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _superPropSet(t, e, o, r, p, f) { return _set(_getPrototypeOf(f ? t.prototype : t), e, o, r, p); } +function set(e, r, t, o) { return set = "undefined" != typeof Reflect && Reflect.set ? Reflect.set : function (e, r, t, o) { var f, i = _superPropBase(e, r); if (i) { if ((f = Object.getOwnPropertyDescriptor(i, r)).set) return f.set.call(o, t), !0; if (!f.writable) return !1; } if (f = Object.getOwnPropertyDescriptor(o, r)) { if (!f.writable) return !1; f.value = t, Object.defineProperty(o, r, f); } else Card_defineProperty(o, r, t); return !0; }, set(e, r, t, o); } +function _set(e, r, t, o, f) { if (!set(e, r, t, o || e) && f) throw new TypeError("failed to set property"); return t; } +function Card_defineProperty(e, r, t) { return (r = Card_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } +function Card_toPropertyKey(t) { var i = Card_toPrimitive(t, "string"); return "symbol" == Card_typeof(i) ? i : i + ""; } function Card_toPrimitive(t, r) { if ("object" != Card_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != Card_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); } -function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (Card_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } +function _superPropGet(t, e, o, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), e, o); return 2 & r && "function" == typeof p ? function (t) { return p.apply(o, t); } : p; } +function _get() { return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); } +function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; } +function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } +function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); } +function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } /** * Copyright 2023 Comcast Cable Communications Management, LLC * @@ -135,16 +137,15 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g var Card = /*#__PURE__*/function (_Surface) { - _inherits(Card, _Surface); - var _super = _createSuper(Card); function Card() { _classCallCheck(this, Card); - return _super.apply(this, arguments); + return _callSuper(this, Card, arguments); } - _createClass(Card, [{ + _inherits(Card, _Surface); + return _createClass(Card, [{ key: "_update", value: function _update() { - _get(_getPrototypeOf(Card.prototype), "_update", this).call(this); + _superPropGet(Card, "_update", this, 3)([]); this._updateTitle(); this._updatePositions(); } @@ -182,7 +183,7 @@ var Card = /*#__PURE__*/function (_Surface) { return this._announce || this._Title && this._Title.announce; }, set: function set(announce) { - _set(_getPrototypeOf(Card.prototype), "announce", announce, this, true); + _superPropSet(Card, "announce", announce, this, 1, 1); } }], [{ key: "__componentName", @@ -197,17 +198,17 @@ var Card = /*#__PURE__*/function (_Surface) { }, { key: "properties", get: function get() { - return [].concat(_toConsumableArray(_get(_getPrototypeOf(Card), "properties", this)), ['title']); + return [].concat(_toConsumableArray(_superPropGet(Card, "properties", this)), ['title']); } }, { key: "tags", get: function get() { - return [].concat(_toConsumableArray(_get(_getPrototypeOf(Card), "tags", this)), ['Title']); + return [].concat(_toConsumableArray(_superPropGet(Card, "tags", this)), ['Title']); } }, { key: "_template", value: function _template() { - return Card_objectSpread(Card_objectSpread({}, _get(_getPrototypeOf(Card), "_template", this).call(this)), {}, { + return Card_objectSpread(Card_objectSpread({}, _superPropGet(Card, "_template", this, 2)([])), {}, { Title: { type: TextBox/* default */.A, signals: { @@ -217,7 +218,6 @@ var Card = /*#__PURE__*/function (_Surface) { }); } }]); - return Card; }(Surface/* default */.A); @@ -297,18 +297,18 @@ var mode = function mode(theme) { var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); ;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/Surface/Surface.js function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } +function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } +function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); } +function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } +function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); } +function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } /** * Copyright 2023 Comcast Cable Communications Management, LLC * @@ -332,13 +332,12 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g var Surface = /*#__PURE__*/function (_Base) { - _inherits(Surface, _Base); - var _super = _createSuper(Surface); function Surface() { _classCallCheck(this, Surface); - return _super.apply(this, arguments); + return _callSuper(this, Surface, arguments); } - _createClass(Surface, [{ + _inherits(Surface, _Base); + return _createClass(Surface, [{ key: "innerH", get: function get() { return this.h; @@ -401,7 +400,6 @@ var Surface = /*#__PURE__*/function (_Base) { return ['Background']; } }]); - return Surface; }(Base/* default */.A); @@ -418,21 +416,21 @@ var Surface = /*#__PURE__*/function (_Base) { /* unused harmony exports nestedArgs, nestedArgTypes, prevValues, nestedArgActions, Item, ObjectFormat, GenericType */ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/react/index.js"); function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } +function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); } function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } +function _arrayWithHoles(r) { if (Array.isArray(r)) return r; } function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } +function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } +function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } +function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); } +function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); } +function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } /** * Copyright 2023 Comcast Cable Communications Management, LLC * @@ -633,4 +631,4 @@ var GenericType = function GenericType(_ref7) { /***/ }) }]); -//# sourceMappingURL=6138.7aa8a25a.iframe.bundle.js.map \ No newline at end of file +//# sourceMappingURL=3878.8aedeb0c.iframe.bundle.js.map \ No newline at end of file diff --git a/3878.8aedeb0c.iframe.bundle.js.map b/3878.8aedeb0c.iframe.bundle.js.map new file mode 100644 index 000000000..8fca21b5a --- /dev/null +++ b/3878.8aedeb0c.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"3878.8aedeb0c.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;AAEA;AACA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACnDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA8BA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAEA;AAAA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAOA;AACA;AAAA;AALA;AACA;AAAA;AAAA;AAAA;AA5DA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAwBA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAOA;AACA;AAAA;AAAA;AAAA;AAGA;AAIA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAtDA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAKA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAGA;AACA;AAAA;AAGA;AAGA;AAAA;AACA;AAGA;AACA;AAEA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAGA;AASA;AACA;AACA;AACA;AACA;AAIA;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAGA;AAGA;AACA;AACA;AACA;AACA;AAGA;AAOA;AACA;AACA;AACA;AAEA;AAGA;AACA;AACA;AACA;AACA;AACA;AAEA;;AAEA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAIA;AAEA;AAAA;AAAA;AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAKA;AAAA;AAAA;AAAA;AAMA;AAGA;AAAA;AAAA;AAAA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AACA","sources":["webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Card/Card.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Card/Card.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Surface/Surface.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Surface/Surface.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/docs/utils.js"],"sourcesContent":["/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport utils from '../../utils';\n\nexport const base = theme => ({\n height: theme.spacer.xxl * 12,\n paddingHorizontal: theme.spacer.xl,\n paddingVertical: theme.spacer.xl,\n radius: theme.radius.md,\n titleTextStyle: {\n ...theme.typography.headline1,\n wordWrap: true,\n maxLines: 2,\n textColor: theme.color.textNeutral\n },\n width: utils.getWidthByUpCount(theme, 6)\n});\n\nexport const mode = theme => ({\n focused: {\n tone: {\n neutral: {\n backgroundColor: theme.color.interactiveNeutralFocusSoft\n },\n inverse: {\n backgroundColor: theme.color.interactiveInverseFocusSoft\n },\n brand: {\n backgroundColor: theme.color.interactiveBrandFocusSoft\n }\n }\n },\n disabled: {\n titleTextStyle: { textColor: theme.color.textNeutralDisabled }\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport * as styles from './Card.styles';\nimport TextBox from '../TextBox';\nimport Surface from '../Surface';\n\nexport default class Card extends Surface {\n static get __componentName() {\n return 'Card';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static get properties() {\n return [...super.properties, 'title'];\n }\n\n static get tags() {\n return [...super.tags, 'Title'];\n }\n\n static _template() {\n return {\n ...super._template(),\n Title: {\n type: TextBox,\n signals: {\n textBoxChanged: '_updatePositions'\n }\n }\n };\n }\n\n _update() {\n super._update();\n this._updateTitle();\n this._updatePositions();\n }\n\n _updatePositions() {\n this._updateTitlePosition();\n }\n\n _updateTitle() {\n this._Title.patch({\n content: this.title,\n style: {\n textStyle: {\n ...this.style.titleTextStyle,\n wordWrapWidth: this._calculateTextWidth()\n }\n }\n });\n }\n\n _calculateTextWidth() {\n return this.w - this.style.paddingHorizontal * 2;\n }\n\n _updateTitlePosition() {\n this._Title.x = this.style.paddingHorizontal;\n this._Title.y = this.style.paddingVertical;\n }\n\n set announce(announce) {\n super.announce = announce;\n }\n\n get announce() {\n return this._announce || (this._Title && this._Title.announce);\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => ({\n backgroundColor: theme.color.interactiveNeutral,\n radius: theme.radius.md,\n animation: {}\n});\n\nexport const tone = theme => ({\n inverse: {\n backgroundColor: theme.color.interactiveInverse\n }\n});\n\nexport const mode = theme => ({\n focused: {\n backgroundColor: theme.color.interactiveNeutralFocus,\n tone: {\n inverse: {\n backgroundColor: theme.color.interactiveInverseFocus\n }\n }\n },\n disabled: {\n backgroundColor: theme.color.fillNeutralDisabled\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { getMaxRoundRadius } from '../../utils';\nimport Base from '../Base';\nimport * as styles from './Surface.styles';\nimport lng from '@lightningjs/core';\n\nexport default class Surface extends Base {\n static _template() {\n return {\n Background: {}\n };\n }\n\n static get __componentName() {\n return 'Surface';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static get properties() {\n return [];\n }\n\n static get tags() {\n return ['Background'];\n }\n\n get innerH() {\n return this.h;\n }\n\n get innerW() {\n return this.w;\n }\n\n _update() {\n this._updateLayout();\n this._updateScale();\n }\n\n _updateLayout() {\n this._Background.patch({\n texture: lng.Tools.getRoundRect(\n this.innerW - 2, // Reference the underscored values here in cause the h or w getters need to be overwritten for alignment - see Tile\n this.innerH - 2,\n getMaxRoundRadius(this.style.radius, this.w, this.h),\n 0,\n null,\n true,\n this.style.backgroundColor\n )\n });\n }\n\n _updateScale() {\n const scale = this._isFocusedMode\n ? this.getFocusScale(this.w, this.h)\n : this.getUnfocusScale(this.w, this.h);\n\n this.applySmooth(this, { scale }, { scale: [scale, this.style.animation] });\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// eslint-disable-next-line no-unused-vars\nimport React from 'react';\nimport utils from '../utils';\n\n// creates Mode control on stories\nexport const createModeControl = ({ options, summaryValue } = {}) => {\n return {\n mode: {\n control: 'radio',\n options:\n options && Array.isArray(options)\n ? ['unfocused', ...options]\n : ['unfocused', 'focused', 'disabled'],\n description: 'Sets the visual mode for the component',\n table: {\n defaultValue: { summary: summaryValue }\n },\n type: { name: 'string', required: true }\n }\n };\n};\n\n/**\n * @param {object} config Parameters for generating nested args: { argsObj, targetProp, include, overrides }\n */\nexport function nestedArgs(config) {\n const { argsObj, targetProp, include, overrides } = config;\n return Object.keys(argsObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]:\n (overrides.args && overrides.args[curr]) || argsObj[curr]\n };\n }, {});\n}\n\n/**\n * @param {object} config Parameters for generating nested arg types: { argsObj, targetProp, include, overrides }\n */\nexport function nestedArgTypes(config) {\n const { argTypesObj, targetProp, include, overrides } = config;\n return Object.keys(argTypesObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]: {\n // Namespaced to avoid conflicts\n name: curr,\n ...argTypesObj[curr],\n ...overrides[curr],\n table: {\n ...(argTypesObj[curr].table || {}),\n ...(overrides[curr] && overrides[curr].table),\n category: targetProp\n }\n }\n };\n }, {});\n}\n\nexport const prevValues = {};\n\n/**\n * @param {object} config Parameters for generating nested arg actions: { componentName, argsTypeObj, targetProp, include, overrides }\n */\nexport function nestedArgActions(config) {\n const { componentName, argTypesObj, targetProp, include, overrides } = config;\n return Object.keys(argTypesObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]: (value, component) => {\n component.tag(componentName).patch({\n [targetProp]: {\n ...prevValues[targetProp],\n [curr.replace(targetProp + '_', '')]:\n value === 'none'\n ? undefined\n : (overrides && overrides[curr]) || value // There are issues with merging objects here\n }\n });\n // Allow patching to work with nested objects\n if (!prevValues[targetProp]) {\n prevValues[targetProp] = {};\n }\n prevValues[targetProp][curr.replace(targetProp + '_', '')] =\n value === 'none'\n ? undefined\n : (overrides && overrides[curr]) || value;\n }\n };\n }, {});\n}\n\n/**\n * @param {object} config Parameters for generating story: { componentName, baseStory, subStory, targetProperty, include, options }\n */\nexport function generateSubStory(config) {\n config.baseStory.args = {\n ...config.baseStory.args,\n ...nestedArgs({\n argsObj: config.subStory.args || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.args) || {}\n })\n };\n\n config.baseStory.argTypes = {\n ...config.baseStory.argTypes,\n ...nestedArgTypes({\n argTypesObj: config.subStory.argTypes || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.argTypes) || {}\n })\n };\n\n if (\n !(\n config.baseStory &&\n config.baseStory.parameters &&\n config.baseStory.parameters.argActions\n )\n ) {\n config.baseStory.parameters = {\n argActions: {}\n };\n }\n\n config.baseStory.parameters.argActions = {\n ...config.baseStory.parameters.argActions,\n ...nestedArgActions({\n componentName: config.componentName,\n argTypesObj: config.subStory.argTypes || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.argActions) || {}\n })\n };\n}\n\n// used to create links to Lightning docs given an id\nexport const DocsLink = ({ children, id }) => {\n const docsmap = {\n lng: {\n _base: 'https://rdkcentral.github.io/Lightning/docs',\n Component: '/components/overview',\n Text: '/textures/text',\n Transition: '/transitions/attributes'\n }\n };\n const [source, path] = id.split('.');\n const href = docsmap[source]._base + docsmap[source][path];\n return (\n \n {children || id}\n \n );\n};\n\nexport const Item = ({ children }) => children;\n\n/**\n * Creates formatted object for markdown prop tables\n * see Column and Row stories\n * @param {object} props\n * @param {object} props.type - TS-style generic/utility type\n */\nexport const ObjectFormat = ({ object }) => {\n return [\n '{',\n
,\n ' ',\n ...utils.flatten(\n Object.entries(object).map(([k, v]) => [\n   ,\n `${k}: `,\n v,\n ',',\n
\n ])\n ),\n '}'\n ].map((x, i) => {x});\n};\n\n/**\n * Formats TS-style generic types\n * See Columns and Row stories\n * @param {object} props\n * @param {object} props.children - component children\n * @param {string} props.type - Name of generic type\n */\nexport const GenericType = ({ children, type }) => {\n return [type, '<', children, '>'].map((x, i) => {x});\n};\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/3646.70ddbfcb.iframe.bundle.js b/4042.a5126342.iframe.bundle.js similarity index 76% rename from 3646.70ddbfcb.iframe.bundle.js rename to 4042.a5126342.iframe.bundle.js index 63d98ae1c..1fc0c3d99 100644 --- a/3646.70ddbfcb.iframe.bundle.js +++ b/4042.a5126342.iframe.bundle.js @@ -1,5 +1,5 @@ "use strict"; -(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[3646],{ +(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[4042,6115,4827,287],{ /***/ "../../@lightningjs/ui-components/src/components/Knob/Knob.js": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -81,18 +81,18 @@ var tone = function tone(theme) { var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); ;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/Knob/Knob.js function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } +function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } +function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); } +function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } +function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); } +function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } /** * Copyright 2023 Comcast Cable Communications Management, LLC * @@ -116,13 +116,12 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g var Knob = /*#__PURE__*/function (_Base) { - _inherits(Knob, _Base); - var _super = _createSuper(Knob); function Knob() { _classCallCheck(this, Knob); - return _super.apply(this, arguments); + return _callSuper(this, Knob, arguments); } - _createClass(Knob, [{ + _inherits(Knob, _Base); + return _createClass(Knob, [{ key: "_update", value: function _update() { this._updateCircleLayout(); @@ -152,7 +151,6 @@ var Knob = /*#__PURE__*/function (_Base) { }; } }]); - return Knob; }(Base/* default */.A); @@ -255,23 +253,25 @@ var Knob = __webpack_require__("../../@lightningjs/ui-components/src/components/ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function set(target, property, value, receiver) { if (typeof Reflect !== "undefined" && Reflect.set) { set = Reflect.set; } else { set = function set(target, property, value, receiver) { var base = _superPropBase(target, property); var desc; if (base) { desc = Object.getOwnPropertyDescriptor(base, property); if (desc.set) { desc.set.call(receiver, value); return true; } else if (!desc.writable) { return false; } } desc = Object.getOwnPropertyDescriptor(receiver, property); if (desc) { if (!desc.writable) { return false; } desc.value = value; Object.defineProperty(receiver, property, desc); } else { _defineProperty(receiver, property, value); } return true; }; } return set(target, property, value, receiver); } -function _set(target, property, value, receiver, isStrict) { var s = set(target, property, value, receiver || target); if (!s && isStrict) { throw new TypeError('failed to set property'); } return value; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } +function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); } +function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _superPropSet(t, e, o, r, p, f) { return _set(_getPrototypeOf(f ? t.prototype : t), e, o, r, p); } +function set(e, r, t, o) { return set = "undefined" != typeof Reflect && Reflect.set ? Reflect.set : function (e, r, t, o) { var f, i = _superPropBase(e, r); if (i) { if ((f = Object.getOwnPropertyDescriptor(i, r)).set) return f.set.call(o, t), !0; if (!f.writable) return !1; } if (f = Object.getOwnPropertyDescriptor(o, r)) { if (!f.writable) return !1; f.value = t, Object.defineProperty(o, r, f); } else _defineProperty(o, r, t); return !0; }, set(e, r, t, o); } +function _set(e, r, t, o, f) { if (!set(e, r, t, o || e) && f) throw new TypeError("failed to set property"); return t; } +function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); } -function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } +function _superPropGet(t, e, o, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), e, o); return 2 & r && "function" == typeof p ? function (t) { return p.apply(o, t); } : p; } +function _get() { return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); } +function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; } +function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } +function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); } +function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } /** * Copyright 2023 Comcast Cable Communications Management, LLC * @@ -297,16 +297,15 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g var Slider = /*#__PURE__*/function (_Base) { - _inherits(Slider, _Base); - var _super = _createSuper(Slider); function Slider() { _classCallCheck(this, Slider); - return _super.apply(this, arguments); + return _callSuper(this, Slider, arguments); } - _createClass(Slider, [{ + _inherits(Slider, _Base); + return _createClass(Slider, [{ key: "_construct", value: function _construct() { - _get(_getPrototypeOf(Slider.prototype), "_construct", this).call(this); + _superPropGet(Slider, "_construct", this, 3)([]); this._min = 0; this._max = 100; this._step = 1; @@ -567,7 +566,7 @@ var Slider = /*#__PURE__*/function (_Base) { return this.value.toString(); }, set: function set(announce) { - _set(_getPrototypeOf(Slider.prototype), "announce", announce, this, true); + _superPropSet(Slider, "announce", announce, this, 1, 1); } }], [{ key: "__componentName", @@ -647,13 +646,12 @@ var Slider = /*#__PURE__*/function (_Base) { key: "_states", value: function _states() { return [/*#__PURE__*/function (_this) { - _inherits(VerticalSlider, _this); - var _super2 = _createSuper(VerticalSlider); function VerticalSlider() { _classCallCheck(this, VerticalSlider); - return _super2.apply(this, arguments); + return _callSuper(this, VerticalSlider, arguments); } - _createClass(VerticalSlider, [{ + _inherits(VerticalSlider, _this); + return _createClass(VerticalSlider, [{ key: "_handleLeft", value: function _handleLeft() { return false; @@ -688,11 +686,9 @@ var Slider = /*#__PURE__*/function (_Base) { return true; } }]); - return VerticalSlider; }(this)]; } }]); - return Slider; }(Base/* default */.A); @@ -709,21 +705,21 @@ var Slider = /*#__PURE__*/function (_Base) { /* unused harmony exports nestedArgs, nestedArgTypes, prevValues, nestedArgActions, Item, ObjectFormat, GenericType */ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/react/index.js"); function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } +function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); } function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } +function _arrayWithHoles(r) { if (Array.isArray(r)) return r; } function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } +function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } +function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } +function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); } +function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); } +function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } /** * Copyright 2023 Comcast Cable Communications Management, LLC * @@ -924,4 +920,4 @@ var GenericType = function GenericType(_ref7) { /***/ }) }]); -//# sourceMappingURL=3646.70ddbfcb.iframe.bundle.js.map \ No newline at end of file +//# sourceMappingURL=4042.a5126342.iframe.bundle.js.map \ No newline at end of file diff --git a/4042.a5126342.iframe.bundle.js.map b/4042.a5126342.iframe.bundle.js.map new file mode 100644 index 000000000..77744b255 --- /dev/null +++ b/4042.a5126342.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"4042.a5126342.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AASA;AACA;AAAA;AAAA;AAAA;AA7BA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC9DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAwEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AAKA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AAGA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAEA;AAEA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAGA;AAAA;AAAA;AAAA;AAGA;AAGA;AAGA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAOA;AACA;AACA;AACA;AACA;AAAA;AARA;AACA;AAAA;AAAA;AAAA;AAtUA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAGA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AAAA;AAAA;AA6QA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAGA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC5YA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAKA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAGA;AACA;AAAA;AAGA;AAGA;AAAA;AACA;AAGA;AACA;AAEA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAGA;AASA;AACA;AACA;AACA;AACA;AAIA;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAGA;AAGA;AACA;AACA;AACA;AACA;AAGA;AAOA;AACA;AACA;AACA;AAEA;AAGA;AACA;AACA;AACA;AACA;AACA;AAEA;;AAEA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAIA;AAEA;AAAA;AAAA;AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAKA;AAAA;AAAA;AAAA;AAMA;AAGA;AAAA;AAAA;AAAA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AACA","sources":["webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Knob/Knob.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Knob/Knob.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Slider/Slider.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Slider/Slider.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/docs/utils.js"],"sourcesContent":["/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => {\n const size = theme.spacer.lg;\n return {\n width: size,\n height: size,\n radius: size / 2\n };\n};\n\nexport const tone = theme => ({\n neutral: {\n circleColor: theme.color.interactiveNeutralFocus,\n mode: {\n disabled: {\n circleColor: theme.color.fillNeutralDisabled\n }\n }\n },\n inverse: {\n circleColor: theme.color.interactiveInverseFocus,\n mode: {\n disabled: {\n circleColor: theme.color.fillInverseDisabled\n }\n }\n },\n brand: {\n circleColor: theme.color.interactiveBrandFocus,\n mode: {\n disabled: {\n circleColor: theme.color.fillInverseDisabled\n }\n }\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { getMaxRoundRadius } from '../../utils';\nimport Base from '../Base';\nimport * as styles from './Knob.styles';\nimport lng from '@lightningjs/core';\n\nexport default class Knob extends Base {\n static get __componentName() {\n return 'Knob';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static _template() {\n return {\n mount: 0.5\n };\n }\n\n _update() {\n this._updateCircleLayout();\n }\n\n _updateCircleLayout() {\n this.patch({\n texture: lng.Tools.getRoundRect(\n this.w,\n this.h,\n getMaxRoundRadius(this.style.radius, this.w, this.h),\n null,\n null,\n true,\n this.style.circleColor\n )\n });\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { getWidthByColumnSpan } from '../../utils';\n\nexport const base = theme => {\n const size = theme.spacer.lg;\n return {\n arrowAlphaValue: theme.alpha.primary,\n arrowAlphaValueLimit: theme.alpha.secondary,\n arrowHeight: theme.spacer.xxl,\n arrowSpacing: theme.spacer.md,\n arrowWidth: theme.spacer.xxl,\n arrowColor: theme.color.fillNeutral,\n containerHeight: theme.spacer.lg + theme.spacer.xs,\n iconLeftSrc: theme.asset.arrowLeft,\n iconRightSrc: theme.asset.arrowRight,\n minWidth: getWidthByColumnSpan(theme, 2),\n progressBar: {},\n width: size,\n height: size,\n radius: size / 2,\n showArrows: true,\n showKnob: true,\n circleAnimation: {}\n };\n};\n\nexport const mode = () => ({\n disabled: {\n arrowAlphaValue: 0\n }\n});\n\nexport const tone = theme => ({\n neutral: {\n arrowColor: theme.color.fillNeutral,\n circleColor: theme.color.interactiveNeutralFocus\n },\n inverse: {\n arrowColor: theme.color.fillInverse,\n circleColor: theme.color.interactiveInverseFocus\n },\n brand: {\n arrowColor: theme.color.fillNeutral,\n circleColor: theme.color.interactiveNeutralFocus\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport Base from '../Base';\nimport * as styles from './Slider.styles';\nimport ProgressBar from '../ProgressBar';\nimport Icon from '../Icon';\nimport Knob from '../Knob';\nimport { degreesToRadians } from '../../utils';\n\nexport default class Slider extends Base {\n static get __componentName() {\n return 'Slider';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static _template() {\n return {\n Container: {\n mountY: 0.5,\n y: h => h / 2,\n Bar: {\n mountY: 0.5,\n SliderBar: {\n type: ProgressBar,\n progress: 0.5,\n mountY: 0.5,\n announce: ''\n },\n Circle: {\n type: Knob,\n zIndex: 5 // places circle knob on top of sliderBar\n }\n },\n LeftArrow: {\n type: Icon,\n mountY: 0.5,\n y: h => h / 2\n },\n RightArrow: {\n type: Icon,\n mountY: 0.5,\n y: h => h / 2\n }\n }\n };\n }\n\n static get properties() {\n return ['max', 'min', 'step', 'value', 'vertical'];\n }\n\n static get tags() {\n return [\n 'Container',\n {\n name: 'Bar',\n path: 'Container.Bar'\n },\n {\n name: 'SliderBar',\n path: 'Container.Bar.SliderBar'\n },\n {\n name: 'Circle',\n path: 'Container.Bar.Circle'\n },\n {\n name: 'LeftArrow',\n path: 'Container.LeftArrow'\n },\n {\n name: 'RightArrow',\n path: 'Container.RightArrow'\n }\n ];\n }\n\n _construct() {\n super._construct();\n this._min = 0;\n this._max = 100;\n this._step = 1;\n this._value = 0;\n this._vertical = false;\n }\n\n _update() {\n this._updateDirection();\n this._updateSliderLayout();\n this._updatePositions();\n this._updateArrowAlpha();\n this._updateArrows();\n if (this._valueChanged) {\n this.signal('onChange', this.value, this);\n this.fireAncestors('$announce', this.announce);\n this._valueChanged = false;\n }\n this._checkAndSignalSizeChange();\n }\n\n _handleLeft() {\n if (this._isDisabledMode) {\n return false;\n }\n this._decrementValue();\n if (typeof this.onLeft === 'function') {\n return this.onLeft(this);\n }\n return true;\n }\n\n _handleRight() {\n if (this._isDisabledMode) {\n return false;\n }\n this._incrementValue();\n if (typeof this.onRight === 'function') {\n return this.onRight(this);\n }\n return true;\n }\n\n _updateDirection() {\n this.patch({\n pivotX: 0,\n rotation: this.vertical ? degreesToRadians(90) : 0,\n mountY: this.vertical ? 0.5 : 0\n });\n }\n\n _updateSliderLayout() {\n const w = this.w || this.style.minWidth;\n this._Container.patch({\n h: this.style.containerHeight,\n w,\n Bar: {\n x: this._calculatedSliderX,\n SliderBar: {\n y: this.style.containerHeight / 2,\n w: this._calculatedSliderWidth,\n style: {\n duration: 0,\n ...this.style.progressBar\n }\n }\n }\n });\n this.h = Math.max(this.style.containerHeight, this.style.arrowHeight);\n }\n\n _checkAndSignalSizeChange() {\n if (\n this.h !== this.prevH ||\n this._Container.w !== this.prevW ||\n this.rotation !== this.prevRotation\n ) {\n this.signal('onSizeChange', this);\n }\n this.prevH = this.h;\n this.prevW = this._Container.w;\n this.prevRotation = this.rotation;\n }\n\n _updatePositions() {\n this._updateSliderProgress();\n this._updateCirclePosition();\n }\n\n _updateSliderProgress() {\n let progress =\n this.value < this.min ? this.min / this.max : this.value / this.max;\n\n if (this.value > this.max || this.value - this.step > this.max) {\n progress = this._calculatedSliderWidth;\n } else if (this.min < 0 || this.max < 0) {\n progress = (this.value - this.min) / (this.max - this.min);\n }\n\n this._SliderBar.progress = progress;\n }\n\n _updateCirclePosition() {\n let xCirclePosition;\n if (this.value < this.min || this.value + this.step < this.min) {\n xCirclePosition = (this.min / this.max) * this._calculatedSliderWidth;\n } else if (this.value > this.max || this.value - this.step > this.max) {\n xCirclePosition = this._calculatedSliderWidth;\n } else {\n if (this.min < 0 || this.max < 0) {\n xCirclePosition =\n ((this.value - this.min) / (this.max - this.min)) *\n this._calculatedSliderWidth;\n } else {\n xCirclePosition = (this.value / this.max) * this._calculatedSliderWidth;\n }\n }\n\n if (this._Circle) {\n this._Circle.patch({\n mode: this.mode,\n style: {\n radius: this.style.radius,\n w: this.style.w,\n h: this.style.h,\n circleColor: this.style.circleColor\n },\n y: this._SliderBar.y + 1,\n alpha: this._isFocusedMode && this.style.showKnob ? 1 : 0\n });\n if (\n this.style.circleAnimation &&\n Object.keys(this.style.circleAnimation).length\n ) {\n this._Circle.smooth = {\n x: [xCirclePosition, this.style.circleAnimation]\n };\n } else {\n this._Circle.x = xCirclePosition;\n }\n }\n }\n\n _updateArrowAlpha() {\n // fade arrows at min/max\n let leftAlpha;\n let rightAlpha;\n\n // ensure arrows are always rendered, otherwise color changes might not apply right away\n const offAlpha = 0.001;\n const alpha = this.style.showArrows ? this.style.arrowAlphaValue : offAlpha;\n const alphaLimit = this.style.showArrows\n ? this.style.arrowAlphaValueLimit\n : offAlpha;\n\n leftAlpha = rightAlpha = alpha;\n if (!this._isDisabledMode && this.value <= this.min) {\n leftAlpha = alphaLimit;\n rightAlpha = alpha;\n } else if (!this._isDisabledMode && this.value >= this.max) {\n leftAlpha = alpha;\n rightAlpha = alphaLimit;\n }\n\n this._LeftArrow.smooth = { alpha: leftAlpha };\n this._RightArrow.smooth = { alpha: rightAlpha };\n }\n\n _updateArrows() {\n const arrowProps = {\n w: this.style.arrowWidth,\n h: this.style.arrowHeight,\n style: {\n color: this.style.arrowColor\n }\n };\n this._LeftArrow.patch({\n ...arrowProps,\n icon: this.style.iconLeftSrc\n });\n this._RightArrow.patch({\n ...arrowProps,\n icon: this.style.iconRightSrc\n });\n\n this._RightArrow.smooth = {\n x: this.style.arrowSpacing + this._calculatedSliderWidth + this._Bar.x\n };\n }\n\n _decrementValue() {\n const value = this.value - this.step;\n this.value = value >= this.min ? value : this.min;\n this._updatePositions();\n }\n\n _incrementValue() {\n const value = this.value + this.step;\n this.value = value <= this.max ? value : this.max;\n this._updatePositions();\n }\n\n _handleUp() {\n return false;\n }\n\n _handleDown() {\n return false;\n }\n\n get _calculatedSliderX() {\n return this.style.showArrows\n ? this.style.arrowSpacing + this.style.arrowWidth\n : 0;\n }\n\n get _calculatedSliderWidth() {\n const totalArrowSize = this.style.showArrows\n ? this.style.arrowSpacing * 2 + this.style.arrowWidth * 2\n : 0;\n return this.w < totalArrowSize + this._circleW\n ? this.style.minWidth - totalArrowSize\n : this.w - totalArrowSize;\n }\n\n get _circleW() {\n return this._Circle ? this._Circle.w : 0;\n }\n\n _setVertical(vertical) {\n this._setState(vertical ? 'VerticalSlider' : '');\n return vertical;\n }\n\n _setValue(value) {\n this._valueChanged = value !== this._value;\n return value;\n }\n\n _setMin(min) {\n const value = this.value;\n this.value = min > value ? min : value;\n this._valueChanged = value !== this.value;\n return min;\n }\n\n _setMax(max) {\n const value = this.value;\n this.value = max < value ? max : value;\n this._valueChanged = value !== this.value;\n return max;\n }\n\n set announce(announce) {\n super.announce = announce;\n }\n\n get announce() {\n if (this._announce !== undefined && this._announce !== null) {\n return this._announce;\n }\n return this.value.toString();\n }\n\n static _states() {\n return [\n class VerticalSlider extends this {\n _handleLeft() {\n return false;\n }\n\n _handleRight() {\n return false;\n }\n\n _handleUp() {\n if (this._isDisabledMode) {\n return false;\n }\n this._decrementValue();\n if (typeof this.onUp === 'function') {\n return this.onUp(this);\n }\n return true;\n }\n\n _handleDown() {\n if (this._isDisabledMode) {\n return false;\n }\n this._incrementValue();\n if (typeof this.onDown === 'function') {\n return this.onDown(this);\n }\n return true;\n }\n }\n ];\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// eslint-disable-next-line no-unused-vars\nimport React from 'react';\nimport utils from '../utils';\n\n// creates Mode control on stories\nexport const createModeControl = ({ options, summaryValue } = {}) => {\n return {\n mode: {\n control: 'radio',\n options:\n options && Array.isArray(options)\n ? ['unfocused', ...options]\n : ['unfocused', 'focused', 'disabled'],\n description: 'Sets the visual mode for the component',\n table: {\n defaultValue: { summary: summaryValue }\n },\n type: { name: 'string', required: true }\n }\n };\n};\n\n/**\n * @param {object} config Parameters for generating nested args: { argsObj, targetProp, include, overrides }\n */\nexport function nestedArgs(config) {\n const { argsObj, targetProp, include, overrides } = config;\n return Object.keys(argsObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]:\n (overrides.args && overrides.args[curr]) || argsObj[curr]\n };\n }, {});\n}\n\n/**\n * @param {object} config Parameters for generating nested arg types: { argsObj, targetProp, include, overrides }\n */\nexport function nestedArgTypes(config) {\n const { argTypesObj, targetProp, include, overrides } = config;\n return Object.keys(argTypesObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]: {\n // Namespaced to avoid conflicts\n name: curr,\n ...argTypesObj[curr],\n ...overrides[curr],\n table: {\n ...(argTypesObj[curr].table || {}),\n ...(overrides[curr] && overrides[curr].table),\n category: targetProp\n }\n }\n };\n }, {});\n}\n\nexport const prevValues = {};\n\n/**\n * @param {object} config Parameters for generating nested arg actions: { componentName, argsTypeObj, targetProp, include, overrides }\n */\nexport function nestedArgActions(config) {\n const { componentName, argTypesObj, targetProp, include, overrides } = config;\n return Object.keys(argTypesObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]: (value, component) => {\n component.tag(componentName).patch({\n [targetProp]: {\n ...prevValues[targetProp],\n [curr.replace(targetProp + '_', '')]:\n value === 'none'\n ? undefined\n : (overrides && overrides[curr]) || value // There are issues with merging objects here\n }\n });\n // Allow patching to work with nested objects\n if (!prevValues[targetProp]) {\n prevValues[targetProp] = {};\n }\n prevValues[targetProp][curr.replace(targetProp + '_', '')] =\n value === 'none'\n ? undefined\n : (overrides && overrides[curr]) || value;\n }\n };\n }, {});\n}\n\n/**\n * @param {object} config Parameters for generating story: { componentName, baseStory, subStory, targetProperty, include, options }\n */\nexport function generateSubStory(config) {\n config.baseStory.args = {\n ...config.baseStory.args,\n ...nestedArgs({\n argsObj: config.subStory.args || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.args) || {}\n })\n };\n\n config.baseStory.argTypes = {\n ...config.baseStory.argTypes,\n ...nestedArgTypes({\n argTypesObj: config.subStory.argTypes || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.argTypes) || {}\n })\n };\n\n if (\n !(\n config.baseStory &&\n config.baseStory.parameters &&\n config.baseStory.parameters.argActions\n )\n ) {\n config.baseStory.parameters = {\n argActions: {}\n };\n }\n\n config.baseStory.parameters.argActions = {\n ...config.baseStory.parameters.argActions,\n ...nestedArgActions({\n componentName: config.componentName,\n argTypesObj: config.subStory.argTypes || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.argActions) || {}\n })\n };\n}\n\n// used to create links to Lightning docs given an id\nexport const DocsLink = ({ children, id }) => {\n const docsmap = {\n lng: {\n _base: 'https://rdkcentral.github.io/Lightning/docs',\n Component: '/components/overview',\n Text: '/textures/text',\n Transition: '/transitions/attributes'\n }\n };\n const [source, path] = id.split('.');\n const href = docsmap[source]._base + docsmap[source][path];\n return (\n \n {children || id}\n \n );\n};\n\nexport const Item = ({ children }) => children;\n\n/**\n * Creates formatted object for markdown prop tables\n * see Column and Row stories\n * @param {object} props\n * @param {object} props.type - TS-style generic/utility type\n */\nexport const ObjectFormat = ({ object }) => {\n return [\n '{',\n
,\n ' ',\n ...utils.flatten(\n Object.entries(object).map(([k, v]) => [\n   ,\n `${k}: `,\n v,\n ',',\n
\n ])\n ),\n '}'\n ].map((x, i) => {x});\n};\n\n/**\n * Formats TS-style generic types\n * See Columns and Row stories\n * @param {object} props\n * @param {object} props.children - component children\n * @param {string} props.type - Name of generic type\n */\nexport const GenericType = ({ children, type }) => {\n return [type, '<', children, '>'].map((x, i) => {x});\n};\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/4243.a90f9f30.iframe.bundle.js.map b/4243.a90f9f30.iframe.bundle.js.map deleted file mode 100644 index 2b0d0303f..000000000 --- a/4243.a90f9f30.iframe.bundle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"4243.a90f9f30.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACpWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAKA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAGA;AACA;AAAA;AAGA;AAGA;AAAA;AACA;AAGA;AACA;AAEA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAGA;AASA;AACA;AACA;AACA;AACA;AAIA;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAGA;AAGA;AACA;AACA;AACA;AACA;AAGA;AAOA;AACA;AACA;AACA;AAEA;AAGA;AACA;AACA;AACA;AACA;AACA;AAEA;;AAEA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAIA;AAEA;AAAA;AAAA;AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAKA;AAAA;AAAA;AAAA;AAMA;AAGA;AAAA;AAAA;AAAA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AACA","sources":["webpack://lightning-ui-docs/","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/docs/utils.js"],"sourcesContent":[null,"/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// eslint-disable-next-line no-unused-vars\nimport React from 'react';\nimport utils from '../utils';\n\n// creates Mode control on stories\nexport const createModeControl = ({ options, summaryValue } = {}) => {\n return {\n mode: {\n control: 'radio',\n options:\n options && Array.isArray(options)\n ? ['unfocused', ...options]\n : ['unfocused', 'focused', 'disabled'],\n description: 'Sets the visual mode for the component',\n table: {\n defaultValue: { summary: summaryValue }\n },\n type: { name: 'string', required: true }\n }\n };\n};\n\n/**\n * @param {object} config Parameters for generating nested args: { argsObj, targetProp, include, overrides }\n */\nexport function nestedArgs(config) {\n const { argsObj, targetProp, include, overrides } = config;\n return Object.keys(argsObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]:\n (overrides.args && overrides.args[curr]) || argsObj[curr]\n };\n }, {});\n}\n\n/**\n * @param {object} config Parameters for generating nested arg types: { argsObj, targetProp, include, overrides }\n */\nexport function nestedArgTypes(config) {\n const { argTypesObj, targetProp, include, overrides } = config;\n return Object.keys(argTypesObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]: {\n // Namespaced to avoid conflicts\n name: curr,\n ...argTypesObj[curr],\n ...overrides[curr],\n table: {\n ...(argTypesObj[curr].table || {}),\n ...(overrides[curr] && overrides[curr].table),\n category: targetProp\n }\n }\n };\n }, {});\n}\n\nexport const prevValues = {};\n\n/**\n * @param {object} config Parameters for generating nested arg actions: { componentName, argsTypeObj, targetProp, include, overrides }\n */\nexport function nestedArgActions(config) {\n const { componentName, argTypesObj, targetProp, include, overrides } = config;\n return Object.keys(argTypesObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]: (value, component) => {\n component.tag(componentName).patch({\n [targetProp]: {\n ...prevValues[targetProp],\n [curr.replace(targetProp + '_', '')]:\n value === 'none'\n ? undefined\n : (overrides && overrides[curr]) || value // There are issues with merging objects here\n }\n });\n // Allow patching to work with nested objects\n if (!prevValues[targetProp]) {\n prevValues[targetProp] = {};\n }\n prevValues[targetProp][curr.replace(targetProp + '_', '')] =\n value === 'none'\n ? undefined\n : (overrides && overrides[curr]) || value;\n }\n };\n }, {});\n}\n\n/**\n * @param {object} config Parameters for generating story: { componentName, baseStory, subStory, targetProperty, include, options }\n */\nexport function generateSubStory(config) {\n config.baseStory.args = {\n ...config.baseStory.args,\n ...nestedArgs({\n argsObj: config.subStory.args || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.args) || {}\n })\n };\n\n config.baseStory.argTypes = {\n ...config.baseStory.argTypes,\n ...nestedArgTypes({\n argTypesObj: config.subStory.argTypes || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.argTypes) || {}\n })\n };\n\n if (\n !(\n config.baseStory &&\n config.baseStory.parameters &&\n config.baseStory.parameters.argActions\n )\n ) {\n config.baseStory.parameters = {\n argActions: {}\n };\n }\n\n config.baseStory.parameters.argActions = {\n ...config.baseStory.parameters.argActions,\n ...nestedArgActions({\n componentName: config.componentName,\n argTypesObj: config.subStory.argTypes || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.argActions) || {}\n })\n };\n}\n\n// used to create links to Lightning docs given an id\nexport const DocsLink = ({ children, id }) => {\n const docsmap = {\n lng: {\n _base: 'https://rdkcentral.github.io/Lightning/docs',\n Component: '/components/overview',\n Text: '/textures/text',\n Transition: '/transitions/attributes'\n }\n };\n const [source, path] = id.split('.');\n const href = docsmap[source]._base + docsmap[source][path];\n return (\n \n {children || id}\n \n );\n};\n\nexport const Item = ({ children }) => children;\n\n/**\n * Creates formatted object for markdown prop tables\n * see Column and Row stories\n * @param {object} props\n * @param {object} props.type - TS-style generic/utility type\n */\nexport const ObjectFormat = ({ object }) => {\n return [\n '{',\n
,\n ' ',\n ...utils.flatten(\n Object.entries(object).map(([k, v]) => [\n   ,\n `${k}: `,\n v,\n ',',\n
\n ])\n ),\n '}'\n ].map((x, i) => {x});\n};\n\n/**\n * Formats TS-style generic types\n * See Columns and Row stories\n * @param {object} props\n * @param {object} props.children - component children\n * @param {string} props.type - Name of generic type\n */\nexport const GenericType = ({ children, type }) => {\n return [type, '<', children, '>'].map((x, i) => {x});\n};\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/4247.44958bf2.iframe.bundle.js b/4247.44958bf2.iframe.bundle.js deleted file mode 100644 index e80560467..000000000 --- a/4247.44958bf2.iframe.bundle.js +++ /dev/null @@ -1,1186 +0,0 @@ -"use strict"; -(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[4247],{ - -/***/ "../../@lightningjs/ui-components/src/components/MetadataCardContent/MetadataCardContent.stories.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ MetadataCardContent: () => (/* binding */ MetadataCardContent), -/* harmony export */ __namedExportsOrder: () => (/* binding */ __namedExportsOrder), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); -/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../@lightningjs/ui-components/src/components/MetadataCardContent/MetadataCardContent.js"); -/* harmony import */ var _assets_images_Xfinity_Provider_Logo_Square_png__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("../../@lightningjs/ui-components/src/assets/images/Xfinity-Provider-Logo-Square.png"); -/* harmony import */ var _docs_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("../../@lightningjs/ui-components/src/docs/utils.js"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("../../@lightningjs/ui-components/src/utils/index.js"); -/* harmony import */ var _assets_images_ic_lightning_white_32_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("../../@lightningjs/ui-components/src/assets/images/ic_lightning_white_32.png"); -function _typeof(o) { - "@babel/helpers - typeof"; - - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { - return typeof o; - } : function (o) { - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; - }, _typeof(o); -} -function ownKeys(e, r) { - var t = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(e); - r && (o = o.filter(function (r) { - return Object.getOwnPropertyDescriptor(e, r).enumerable; - })), t.push.apply(t, o); - } - return t; -} -function _objectSpread(e) { - for (var r = 1; r < arguments.length; r++) { - var t = null != arguments[r] ? arguments[r] : {}; - r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { - _defineProperty(e, r, t[r]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); - }); - } - return e; -} -function _defineProperty(obj, key, value) { - key = _toPropertyKey(key); - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); - } -} -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { - writable: false - }); - return Constructor; -} -function _toPropertyKey(t) { - var i = _toPrimitive(t, "string"); - return "symbol" == _typeof(i) ? i : String(i); -} -function _toPrimitive(t, r) { - if ("object" != _typeof(t) || !t) return t; - var e = t[Symbol.toPrimitive]; - if (void 0 !== e) { - var i = e.call(t, r || "default"); - if ("object" != _typeof(i)) return i; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return ("string" === r ? String : Number)(t); -} -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { - writable: false - }); - if (superClass) _setPrototypeOf(subClass, superClass); -} -function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); -} -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); - }; -} -function _possibleConstructorReturn(self, call) { - if (call && (_typeof(call) === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { - throw new TypeError("Derived constructors may only return object or undefined"); - } - return _assertThisInitialized(self); -} -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - return self; -} -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; - } -} -function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); -} -/* eslint-disable */ -// @ts-nocheck -// @ts-expect-error (Converted from ts-ignore) -var __STORY__ = "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport { default as MetadataCardContentComponent } from '.';\nimport xfinityProviderLogoSquare from '../../assets/images/Xfinity-Provider-Logo-Square.png';\nimport { createModeControl } from '../../docs/utils';\nimport { getHexColor } from '../../utils';\nimport lightningbolt from '../../assets/images/ic_lightning_white_32.png';\n\nexport default {\n title: 'Components/MetadataCardContent'\n};\n\nexport const MetadataCardContent = () =>\n class MetadataCardContent extends lng.Component {\n static _template() {\n return {\n MetadataCardContent: {\n type: MetadataCardContentComponent\n }\n };\n }\n };\n\nMetadataCardContent.storyName = 'MetadataCardContent';\n\n// used to show example of longer text in description\nconst descriptionSample =\n 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.';\n\nMetadataCardContent.args = {\n w: 600,\n h: 300,\n title: 'Title',\n subtitle: 'Subtitle',\n description: descriptionSample,\n descriptionDetails: [\n '94%',\n {\n icon: lightningbolt,\n style: { color: getHexColor('00ff00') },\n title: 'Green Lightning Bolt'\n },\n '86%',\n {\n icon: 'https://upload.wikimedia.org/wikipedia/commons/b/b6/Tomato-Torrent-Icon.png',\n title: 'Rotten Tomatoes rating'\n }\n ],\n details: 'Details',\n visibleCount: 3,\n mode: 'unfocused'\n};\n\nMetadataCardContent.argTypes = {\n ...createModeControl({ summaryValue: MetadataCardContent.args.mode }),\n w: {\n control: 'number',\n description: 'Width of component',\n table: {\n defaultValue: { summary: 0 },\n type: { summary: 'number' }\n }\n },\n h: {\n control: 'number',\n description: 'Height of component',\n table: {\n defaultValue: { summary: 0 },\n type: { summary: 'number' }\n }\n },\n title: {\n control: 'text',\n description: 'Title text',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n subtitle: {\n control: 'text',\n description: 'Subtitle text below title',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n description: {\n control: 'text',\n description: 'Description text below subtitle',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n descriptionDetails: {\n control: 'object',\n description: 'Description details directly below the description text',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n details: {\n control: 'text',\n description: 'Details text at bottom left of componentDetails text',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n visibleCount: {\n control: { type: 'range', min: 1, max: 10, step: 1 },\n description: 'Number of visible providers',\n table: {\n defaultValue: { summary: 1 },\n type: { summary: 'number' }\n }\n }\n};\n\nMetadataCardContent.parameters = {\n argActions: {\n visibleCount(visibleCount, component) {\n component.tag('MetadataCardContent').provider = {\n visibleCount: visibleCount,\n providers: Array(10).fill({\n icon: xfinityProviderLogoSquare,\n announce: 'xFinity',\n visibleCount: 3\n })\n };\n }\n }\n};\n"; -// @ts-expect-error (Converted from ts-ignore) -var __LOCATIONS_MAP__ = { - "MetadataCardContent": { - "startLoc": { - "col": 35, - "line": 30 - }, - "endLoc": { - "col": 3, - "line": 39 - }, - "startBody": { - "col": 35, - "line": 30 - }, - "endBody": { - "col": 3, - "line": 39 - } - } -}; - -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - - - - - - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ - parameters: { - "storySource": { - "source": "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport { default as MetadataCardContentComponent } from '.';\nimport xfinityProviderLogoSquare from '../../assets/images/Xfinity-Provider-Logo-Square.png';\nimport { createModeControl } from '../../docs/utils';\nimport { getHexColor } from '../../utils';\nimport lightningbolt from '../../assets/images/ic_lightning_white_32.png';\n\nexport default {\n title: 'Components/MetadataCardContent'\n};\n\nexport const MetadataCardContent = () =>\n class MetadataCardContent extends lng.Component {\n static _template() {\n return {\n MetadataCardContent: {\n type: MetadataCardContentComponent\n }\n };\n }\n };\n\nMetadataCardContent.storyName = 'MetadataCardContent';\n\n// used to show example of longer text in description\nconst descriptionSample =\n 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.';\n\nMetadataCardContent.args = {\n w: 600,\n h: 300,\n title: 'Title',\n subtitle: 'Subtitle',\n description: descriptionSample,\n descriptionDetails: [\n '94%',\n {\n icon: lightningbolt,\n style: { color: getHexColor('00ff00') },\n title: 'Green Lightning Bolt'\n },\n '86%',\n {\n icon: 'https://upload.wikimedia.org/wikipedia/commons/b/b6/Tomato-Torrent-Icon.png',\n title: 'Rotten Tomatoes rating'\n }\n ],\n details: 'Details',\n visibleCount: 3,\n mode: 'unfocused'\n};\n\nMetadataCardContent.argTypes = {\n ...createModeControl({ summaryValue: MetadataCardContent.args.mode }),\n w: {\n control: 'number',\n description: 'Width of component',\n table: {\n defaultValue: { summary: 0 },\n type: { summary: 'number' }\n }\n },\n h: {\n control: 'number',\n description: 'Height of component',\n table: {\n defaultValue: { summary: 0 },\n type: { summary: 'number' }\n }\n },\n title: {\n control: 'text',\n description: 'Title text',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n subtitle: {\n control: 'text',\n description: 'Subtitle text below title',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n description: {\n control: 'text',\n description: 'Description text below subtitle',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n descriptionDetails: {\n control: 'object',\n description: 'Description details directly below the description text',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n details: {\n control: 'text',\n description: 'Details text at bottom left of componentDetails text',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n visibleCount: {\n control: { type: 'range', min: 1, max: 10, step: 1 },\n description: 'Number of visible providers',\n table: {\n defaultValue: { summary: 1 },\n type: { summary: 'number' }\n }\n }\n};\n\nMetadataCardContent.parameters = {\n argActions: {\n visibleCount(visibleCount, component) {\n component.tag('MetadataCardContent').provider = {\n visibleCount: visibleCount,\n providers: Array(10).fill({\n icon: xfinityProviderLogoSquare,\n announce: 'xFinity',\n visibleCount: 3\n })\n };\n }\n }\n};\n", - "locationsMap": { - "metadata-card-content": { - "startLoc": { - "col": 35, - "line": 30 - }, - "endLoc": { - "col": 3, - "line": 39 - }, - "startBody": { - "col": 35, - "line": 30 - }, - "endBody": { - "col": 3, - "line": 39 - } - } - } - } - }, - title: 'Components/MetadataCardContent' -}); -var MetadataCardContent = function MetadataCardContent() { - return /*#__PURE__*/function (_lng$Component) { - _inherits(MetadataCardContent, _lng$Component); - var _super = _createSuper(MetadataCardContent); - function MetadataCardContent() { - _classCallCheck(this, MetadataCardContent); - return _super.apply(this, arguments); - } - _createClass(MetadataCardContent, null, [{ - key: "_template", - value: function _template() { - return { - MetadataCardContent: { - type: ___WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A - } - }; - } - }]); - return MetadataCardContent; - }(_lightningjs_core__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.Component); -}; -MetadataCardContent.storyName = 'MetadataCardContent'; - -// used to show example of longer text in description -var descriptionSample = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'; -MetadataCardContent.args = { - w: 600, - h: 300, - title: 'Title', - subtitle: 'Subtitle', - description: descriptionSample, - descriptionDetails: ['94%', { - icon: _assets_images_ic_lightning_white_32_png__WEBPACK_IMPORTED_MODULE_2__, - style: { - color: (0,_utils__WEBPACK_IMPORTED_MODULE_3__/* .getHexColor */ .H2)('00ff00') - }, - title: 'Green Lightning Bolt' - }, '86%', { - icon: 'https://upload.wikimedia.org/wikipedia/commons/b/b6/Tomato-Torrent-Icon.png', - title: 'Rotten Tomatoes rating' - }], - details: 'Details', - visibleCount: 3, - mode: 'unfocused' -}; -MetadataCardContent.argTypes = _objectSpread(_objectSpread({}, (0,_docs_utils__WEBPACK_IMPORTED_MODULE_4__/* .createModeControl */ .Pg)({ - summaryValue: MetadataCardContent.args.mode -})), {}, { - w: { - control: 'number', - description: 'Width of component', - table: { - defaultValue: { - summary: 0 - }, - type: { - summary: 'number' - } - } - }, - h: { - control: 'number', - description: 'Height of component', - table: { - defaultValue: { - summary: 0 - }, - type: { - summary: 'number' - } - } - }, - title: { - control: 'text', - description: 'Title text', - table: { - defaultValue: { - summary: 'undefined' - }, - type: { - summary: 'string' - } - } - }, - subtitle: { - control: 'text', - description: 'Subtitle text below title', - table: { - defaultValue: { - summary: 'undefined' - }, - type: { - summary: 'string' - } - } - }, - description: { - control: 'text', - description: 'Description text below subtitle', - table: { - defaultValue: { - summary: 'undefined' - }, - type: { - summary: 'string' - } - } - }, - descriptionDetails: { - control: 'object', - description: 'Description details directly below the description text', - table: { - defaultValue: { - summary: 'undefined' - }, - type: { - summary: 'string' - } - } - }, - details: { - control: 'text', - description: 'Details text at bottom left of componentDetails text', - table: { - defaultValue: { - summary: 'undefined' - }, - type: { - summary: 'string' - } - } - }, - visibleCount: { - control: { - type: 'range', - min: 1, - max: 10, - step: 1 - }, - description: 'Number of visible providers', - table: { - defaultValue: { - summary: 1 - }, - type: { - summary: 'number' - } - } - } -}); -MetadataCardContent.parameters = { - argActions: { - visibleCount: function visibleCount(_visibleCount, component) { - component.tag('MetadataCardContent').provider = { - visibleCount: _visibleCount, - providers: Array(10).fill({ - icon: _assets_images_Xfinity_Provider_Logo_Square_png__WEBPACK_IMPORTED_MODULE_5__, - announce: 'xFinity', - visibleCount: 3 - }) - }; - } - } -}; -MetadataCardContent.parameters = { - ...MetadataCardContent.parameters, - docs: { - ...MetadataCardContent.parameters?.docs, - source: { - originalSource: "() => class MetadataCardContent extends lng.Component {\n static _template() {\n return {\n MetadataCardContent: {\n type: MetadataCardContentComponent\n }\n };\n }\n}", - ...MetadataCardContent.parameters?.docs?.source - } - } -};;const __namedExportsOrder = ["MetadataCardContent"]; - -/***/ }), - -/***/ "../../@lightningjs/ui-components/src/components/MetadataCardContent/MetadataCardContent.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - A: () => (/* binding */ MetadataCardContent) -}); - -// NAMESPACE OBJECT: ../../@lightningjs/ui-components/src/components/MetadataCardContent/MetadataCardContent.styles.js -var MetadataCardContent_styles_namespaceObject = {}; -__webpack_require__.r(MetadataCardContent_styles_namespaceObject); -__webpack_require__.d(MetadataCardContent_styles_namespaceObject, { - base: () => (base), - tone: () => (tone) -}); - -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/MetadataBase/MetadataBase.js + 2 modules -var MetadataBase = __webpack_require__("../../@lightningjs/ui-components/src/components/MetadataBase/MetadataBase.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/TextBox/TextBox.js + 1 modules -var TextBox = __webpack_require__("../../@lightningjs/ui-components/src/components/TextBox/TextBox.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Provider/Provider.js + 1 modules -var Provider = __webpack_require__("../../@lightningjs/ui-components/src/components/Provider/Provider.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/shaders/FadeShader.js -var FadeShader = __webpack_require__("../../@lightningjs/ui-components/src/shaders/FadeShader.js"); -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/MetadataCardContent/MetadataCardContent.styles.js -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - -var base = function base(theme) { - return { - detailsTextStyle: theme.typography.body3, - descriptionTextStyle: { - maxLines: 3 - }, - descriptionDetailsStyle: { - paddingY: 5 - }, - fadeWidth: theme.spacer.md * theme.spacer.md, - provider: { - itemSize: theme.spacer.xxxl + theme.spacer.md - } - }; -}; -var tone = function tone(theme) { - return { - neutral: { - detailsTextStyle: { - textColor: theme.color.textNeutral - }, - mode: { - disabled: { - detailsTextStyle: { - textColor: theme.color.textNeutralDisabled - } - } - } - }, - inverse: { - detailsTextStyle: { - textColor: theme.color.textInverse - }, - mode: { - disabled: { - detailsTextStyle: { - textColor: theme.color.textNeutralDisabled - } - } - } - }, - brand: { - detailsTextStyle: { - textColor: theme.color.textNeutral - }, - mode: { - disabled: { - detailsTextStyle: { - textColor: theme.color.textNeutralDisabled - } - } - } - } - }; -}; -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/MetadataCardContent/MetadataCardContent.js -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { 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" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; } -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function set(target, property, value, receiver) { if (typeof Reflect !== "undefined" && Reflect.set) { set = Reflect.set; } else { set = function set(target, property, value, receiver) { var base = _superPropBase(target, property); var desc; if (base) { desc = Object.getOwnPropertyDescriptor(base, property); if (desc.set) { desc.set.call(receiver, value); return true; } else if (!desc.writable) { return false; } } desc = Object.getOwnPropertyDescriptor(receiver, property); if (desc) { if (!desc.writable) { return false; } desc.value = value; Object.defineProperty(receiver, property, desc); } else { _defineProperty(receiver, property, value); } return true; }; } return set(target, property, value, receiver); } -function _set(target, property, value, receiver, isStrict) { var s = set(target, property, value, receiver || target); if (!s && isStrict) { throw new TypeError('failed to set property'); } return value; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - - - - - -var MetadataCardContent = /*#__PURE__*/function (_MetadataBase) { - _inherits(MetadataCardContent, _MetadataBase); - var _super = _createSuper(MetadataCardContent); - function MetadataCardContent() { - _classCallCheck(this, MetadataCardContent); - return _super.apply(this, arguments); - } - _createClass(MetadataCardContent, [{ - key: "_setDetails", - value: function _setDetails(details) { - var _this = this; - if (details) { - this._detailsPromise = new Promise(function (resolve) { - _this._detailsPromiseResolver = resolve; - }); - } else { - this._detailsPromise = undefined; - } - return details; - } - }, { - key: "_setProvider", - value: function _setProvider(provider) { - var _this2 = this; - if (provider) { - this._providerPromise = new Promise(function (resolve) { - _this2._providerPromiseResolver = resolve; - }); - } else { - this._providerPromise = undefined; - } - return provider; - } - }, { - key: "_update", - value: function () { - var _update2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { - return _regeneratorRuntime().wrap(function _callee$(_context) { - while (1) switch (_context.prev = _context.next) { - case 0: - this._updateLines(); - this._updateProvider(); - _context.next = 4; - return Promise.all([this._detailsPromise, this._providerPromise].filter(Boolean)); - case 4: - this._updatePositions(); - case 5: - case "end": - return _context.stop(); - } - }, _callee, this); - })); - function _update() { - return _update2.apply(this, arguments); - } - return _update; - }() - }, { - key: "_updateLines", - value: function _updateLines() { - this._Text.w = this.w; - this._updateTitle(); - this._updateSubtitle(); - this._updateDescription(); - this._updateDescriptionDetails(); - this._updateDetails(); - } - }, { - key: "_updateSubtitle", - value: function _updateSubtitle() { - if (!this.subtitle && !this._Subtitle) { - return; - } - if (!this._Subtitle) { - this._Text.childList.addAt({ - ref: 'Subtitle', - type: TextBox/* default */.A - }); - } - this._Subtitle.patch({ - content: this.subtitle, - style: { - textStyle: _objectSpread(_objectSpread({}, this.style.subtitleTextStyle), {}, { - maxLines: 1, - wordWrap: true, - wordWrapWidth: this._Text.w - }) - } - }); - } - }, { - key: "_updateDescription", - value: function _updateDescription() { - this._Description.patch({ - content: this.description, - style: { - textStyle: _objectSpread(_objectSpread({}, this.style.descriptionTextStyle), {}, { - wordWrap: true, - wordWrapWidth: this._Text.w - }) - } - }); - } - }, { - key: "_updateDescriptionDetails", - value: function _updateDescriptionDetails() { - this._DescriptionDetails.patch({ - content: this.descriptionDetails, - style: { - textStyle: _objectSpread(_objectSpread({}, this.style.descriptionDetailsTextStyle), {}, { - maxLines: 1, - wordWrap: true, - wordWrapWidth: this._Text.w - }) - }, - y: this.style.descriptionDetailsStyle.paddingY - }); - } - }, { - key: "_updateDetails", - value: function _updateDetails() { - var maxWidth = this._detailsMaxW; - this._Details.patch({ - content: this.details, - style: { - textStyle: _objectSpread(_objectSpread({}, this.style.detailsTextStyle), {}, { - wordWrap: true, - maxLines: 1, - // sets default for details - wordWrapWidth: maxWidth + this.style.fadeWidth / 2 - }) - } - }); - if (this._Details.finalW > maxWidth) { - this._DetailsFader.patch({ - w: maxWidth + this.style.fadeWidth / 2, - shader: { - type: FadeShader/* default */.A, - positionLeft: 0, - positionRight: this.style.fadeWidth - } - }); - } else { - this._DetailsFader.shader = undefined; - } - } - }, { - key: "_resolveDetails", - value: function _resolveDetails() { - this._detailsPromiseResolver && this._detailsPromiseResolver(); - this._updatePositions(); - } - }, { - key: "_updateProvider", - value: function _updateProvider() { - if (this.provider) { - this._Provider.patch(_objectSpread(_objectSpread({ - mode: this.mode - }, this.provider), {}, { - style: this.style.provider - })); - } - } - }, { - key: "_resolveProvider", - value: function _resolveProvider() { - this._providerPromiseResolver && this._providerPromiseResolver(); - this._updatePositions(); - this._updateDetails(); - } - }, { - key: "_updatePositions", - value: function _updatePositions() { - this._Text.h = this._textH; - this._Text.w = this._textW; - this._DetailsWrapper.w = this._textW; - this._DetailsWrapper.h = Math.max(this._providerH, this._Details.h); - this._DetailsWrapper.y = this.h - this._DetailsWrapper.h; - this._Details.y = this._DetailsWrapper.h / 2; - this._Provider.x = this._DetailsWrapper.w - this._providerW; - this._Provider.y = this._DetailsWrapper.h - this._providerH; - } - }, { - key: "_textW", - get: function get() { - return this.w; - } - }, { - key: "_textH", - get: function get() { - return this.h - this._providerH; - } - }, { - key: "_providerW", - get: function get() { - return this._Provider.w; - } - }, { - key: "_providerH", - get: function get() { - return this._Provider._Row._Items.h; - } - }, { - key: "_detailsMaxW", - get: function get() { - return this.w - this._providerW - this.style.fadeWidth / 2; - } - }, { - key: "announce", - get: function get() { - return this._announce || [this._Title && this._Title.announce, this._Subtitle && this._Subtitle.announce, this._Description && this._Description.announce, this._DescriptionDetails && this._DescriptionDetails.announce, this._Details && this._Details.announce, this._Provider && this._Provider.announce]; - }, - set: function set(announce) { - _set(_getPrototypeOf(MetadataCardContent.prototype), "announce", announce, this, true); - } - }], [{ - key: "__componentName", - get: function get() { - return 'MetadataCardContent'; - } - }, { - key: "__themeStyle", - get: function get() { - return MetadataCardContent_styles_namespaceObject; - } - }, { - key: "_template", - value: function _template() { - return { - Text: { - flex: { - direction: 'column', - justifyContent: 'flex-start' - }, - Title: { - type: TextBox/* default */.A - }, - Subtitle: { - type: TextBox/* default */.A - }, - Description: { - type: TextBox/* default */.A - }, - DescriptionDetails: { - type: TextBox/* default */.A - } - }, - DetailsWrapper: { - DetailsFader: { - Details: { - mountY: 0.5, - type: TextBox/* default */.A, - signals: { - textBoxChanged: '_resolveDetails' - } - } - }, - Provider: { - mount: 1, - type: Provider/* default */.A, - signals: { - providerChanged: '_resolveProvider' - } - } - } - }; - } - }, { - key: "properties", - get: function get() { - return ['description', 'descriptionDetails', 'details', 'provider', 'subtitle', 'title']; - } - }, { - key: "tags", - get: function get() { - return ['Text', { - name: 'Title', - path: 'Text.Title' - }, { - name: 'Subtitle', - path: 'Text.Subtitle' - }, { - name: 'Description', - path: 'Text.Description' - }, { - name: 'DescriptionDetails', - path: 'Text.DescriptionDetails' - }, 'DetailsWrapper', { - name: 'DetailsFader', - path: 'DetailsWrapper.DetailsFader' - }, { - name: 'Details', - path: 'DetailsWrapper.DetailsFader.Details' - }, { - name: 'Provider', - path: 'DetailsWrapper.Provider' - }]; - } - }]); - return MetadataCardContent; -}(MetadataBase/* default */.A); - - -/***/ }), - -/***/ "../../@lightningjs/ui-components/src/components/Provider/Provider.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - A: () => (/* binding */ Provider) -}); - -// NAMESPACE OBJECT: ../../@lightningjs/ui-components/src/components/Provider/Provider.styles.js -var Provider_styles_namespaceObject = {}; -__webpack_require__.r(Provider_styles_namespaceObject); -__webpack_require__.d(Provider_styles_namespaceObject, { - base: () => (base), - mode: () => (mode), - tone: () => (tone) -}); - -// EXTERNAL MODULE: ../../../node_modules/@lightningjs/core/dist/lightning.esm.js -var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Base/Base.js + 2 modules -var Base = __webpack_require__("../../@lightningjs/ui-components/src/components/Base/Base.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Row/Row.js + 1 modules -var Row = __webpack_require__("../../@lightningjs/ui-components/src/components/Row/Row.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Icon/Icon.js + 1 modules -var Icon = __webpack_require__("../../@lightningjs/ui-components/src/components/Icon/Icon.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/TextBox/TextBox.js + 1 modules -var TextBox = __webpack_require__("../../@lightningjs/ui-components/src/components/TextBox/TextBox.js"); -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/Provider/Provider.styles.js -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - -function base(theme) { - return { - alpha: theme.alpha.primary, - counterTextStyle: theme.typography.headline3, - itemSize: theme.layout.gutterX * 2, - itemSpacing: theme.spacer.md, - radius: theme.radius.sm - }; -} -var mode = function mode(theme) { - return { - disabled: { - alpha: theme.alpha.inactive - } - }; -}; -var tone = function tone(theme) { - return { - neutral: { - counterBackgroundColor: theme.color.fillInverseSecondary - }, - inverse: { - counterBackgroundColor: theme.color.fillNeutralSecondary - }, - brand: { - counterBackgroundColor: theme.color.fillInverseSecondary - } - }; -}; -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/utils/index.js -var utils = __webpack_require__("../../@lightningjs/ui-components/src/utils/index.js"); -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/Provider/Provider.js -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function set(target, property, value, receiver) { if (typeof Reflect !== "undefined" && Reflect.set) { set = Reflect.set; } else { set = function set(target, property, value, receiver) { var base = _superPropBase(target, property); var desc; if (base) { desc = Object.getOwnPropertyDescriptor(base, property); if (desc.set) { desc.set.call(receiver, value); return true; } else if (!desc.writable) { return false; } } desc = Object.getOwnPropertyDescriptor(receiver, property); if (desc) { if (!desc.writable) { return false; } desc.value = value; Object.defineProperty(receiver, property, desc); } else { _defineProperty(receiver, property, value); } return true; }; } return set(target, property, value, receiver); } -function _set(target, property, value, receiver, isStrict) { var s = set(target, property, value, receiver || target); if (!s && isStrict) { throw new TypeError('failed to set property'); } return value; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); } -function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - - - - - - - -var Provider = /*#__PURE__*/function (_Base) { - _inherits(Provider, _Base); - var _super = _createSuper(Provider); - function Provider() { - _classCallCheck(this, Provider); - return _super.apply(this, arguments); - } - _createClass(Provider, [{ - key: "providersHidden", - get: function get() { - return this.providers.length - this._visibleCount; - } - }, { - key: "_construct", - value: function _construct() { - this._providers = []; - _get(_getPrototypeOf(Provider.prototype), "_construct", this).call(this); - } - }, { - key: "_update", - value: function _update() { - this._updateProviders(); - this._updateCounter(); - } - }, { - key: "_updateProviders", - value: function _updateProviders() { - var _this = this; - var providerList = []; - this.providers.slice(0, this.visibleCount).forEach(function (provider) { - // Create a starting point for each provider icon. - - var patch = { - centerInParent: true, - radius: _this.disableRadius ? 0 : (0,utils/* getMaxRoundRadius */.XG)(_this.style.radius, _this.style.itemSize, _this.style.itemSize), - alpha: _this.style.alpha, - style: provider.style || {} - }; - if ( - // If the provider is a pre-configured Icon, allow it to override the default behavior. - provider.type === Icon/* default */.A && provider.icon && provider.w && provider.h) { - // Maintain the ratio of the source icon while enforcing the height specified in the styles. - var ratio = provider.w / provider.h; - patch = _objectSpread(_objectSpread({ - type: Icon/* default */.A, - icon: provider.icon - }, provider), {}, { - w: _this.style.itemSize * ratio, - h: _this.style.itemSize - }, patch); - } else { - // If the provider is just a string, create the rest of the Icon. - patch = _objectSpread({ - type: Icon/* default */.A, - w: _this.style.itemSize, - h: _this.style.itemSize - }, patch); - if (_typeof(provider) === 'object') { - patch = _objectSpread(_objectSpread({}, patch), provider); - } else { - patch.icon = provider; - } - } - providerList.push(patch); - }); - this._Row.patch({ - style: { - itemSpacing: this.style.itemSpacing - }, - items: providerList, - h: this.style.itemSize - }); - } - }, { - key: "_updateCounter", - value: function _updateCounter() { - if (this.providers.length > this.visibleCount) { - var remaining = this.providersHidden; - var counter = { - announce: "+".concat(remaining), - alpha: this.style.alpha, - w: this.style.itemSize, - h: this.style.itemSize, - centerInParent: true, - Background: { - w: this.style.itemSize, - h: this.style.itemSize, - texture: lightning_esm/* default */.A.Tools.getRoundRect(this.style.itemSize, this.style.itemSize, (0,utils/* getMaxRoundRadius */.XG)(this.style.radius, this.style.itemSize, this.style.itemSize), 0, null, true, this.style.counterBackgroundColor) - }, - Text: { - type: TextBox/* default */.A, - mountX: 0.5, - mountY: 0.5, - x: this.style.itemSize / 2, - y: this.style.itemSize / 2, - content: this.counterText || "+".concat(remaining), - style: { - textStyle: this.style.counterTextStyle - } - } - }; - this._Row.appendItems([counter]); - } - } - }, { - key: "$itemChanged", - value: function $itemChanged() { - this.signal('providerChanged'); - } - }, { - key: "_getVisibleCount", - value: function _getVisibleCount() { - var min = 1; - var max = this.providers.length; - var visibleCount = Math.min(Math.max(min, this._visibleCount), max); - if (this._visibleCount < min) { - console.warn("Warning: The specified visible count (".concat(this._visibleCount, ") is less than the minimum value (").concat(min, "). Setting it to ").concat(min, ".")); - } - if (this._visibleCount > max) { - console.warn("Warning: The specified visible count (".concat(this._visibleCount, ") is greater than the maximum value (").concat(max, "). Setting it to ").concat(max, ".")); - } - return visibleCount; - } - }, { - key: "w", - get: function get() { - return this._Row.w; - } - }, { - key: "announce", - get: function get() { - return this._announce || this._Row.items && this._Row.items.length && this._Row.items.map(function (item) { - return item.announce; - }); - }, - set: function set(announce) { - _set(_getPrototypeOf(Provider.prototype), "announce", announce, this, true); - } - }], [{ - key: "__componentName", - get: function get() { - return 'Provider'; - } - }, { - key: "__themeStyle", - get: function get() { - return Provider_styles_namespaceObject; - } - }, { - key: "_template", - value: function _template() { - return { - Row: { - type: Row/* default */.A, - autoResizeWidth: true - } - }; - } - }, { - key: "properties", - get: function get() { - return ['disableRadius', 'counterText', 'providers', 'visibleCount']; - } - }, { - key: "tags", - get: function get() { - return ['Row']; - } - }]); - return Provider; -}(Base/* default */.A); - - -/***/ }), - -/***/ "../../@lightningjs/ui-components/src/assets/images/Xfinity-Provider-Logo-Square.png": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -module.exports = __webpack_require__.p + "static/media/Xfinity-Provider-Logo-Square.d3aaa87c.png"; - -/***/ }), - -/***/ "../../@lightningjs/ui-components/src/assets/images/ic_lightning_white_32.png": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -module.exports = __webpack_require__.p + "static/media/ic_lightning_white_32.06aecfeb.png"; - -/***/ }) - -}]); -//# sourceMappingURL=4247.44958bf2.iframe.bundle.js.map \ No newline at end of file diff --git a/4247.44958bf2.iframe.bundle.js.map b/4247.44958bf2.iframe.bundle.js.map deleted file mode 100644 index 86015402e..000000000 --- a/4247.44958bf2.iframe.bundle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"4247.44958bf2.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC/YA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAAA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAAA;;;;;ACpDA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AADA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA6FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAEA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAEA;AACA;AACA;AAAA;AAEA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AACA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAEA;AAAA;AAEA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAEA;AACA;AACA;AAEA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAOA;AAUA;AAAA;AAdA;AACA;AAAA;AAAA;AAAA;AA5QA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AAQA;AAAA;AAAA;AAAA;AAGA;AAGA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAGA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACnHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2BA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AAOA;AACA;AACA;AAEA;AACA;AACA;AAKA;AACA;AACA;AACA;AACA;AAAA;AAEA;AACA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAaA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAOA;AAIA;AAAA;AAEA;AAAA;AAVA;AACA;AAAA;AAAA;AAAA;AArKA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA","sources":["webpack://lightning-ui-docs/","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/MetadataCardContent/MetadataCardContent.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/MetadataCardContent/MetadataCardContent.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Provider/Provider.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Provider/Provider.js"],"sourcesContent":[null,"/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => ({\n detailsTextStyle: theme.typography.body3,\n descriptionTextStyle: { maxLines: 3 },\n descriptionDetailsStyle: { paddingY: 5 },\n fadeWidth: theme.spacer.md * theme.spacer.md,\n provider: {\n itemSize: theme.spacer.xxxl + theme.spacer.md\n }\n});\n\nexport const tone = theme => ({\n neutral: {\n detailsTextStyle: { textColor: theme.color.textNeutral },\n mode: {\n disabled: {\n detailsTextStyle: { textColor: theme.color.textNeutralDisabled }\n }\n }\n },\n inverse: {\n detailsTextStyle: { textColor: theme.color.textInverse },\n mode: {\n disabled: {\n detailsTextStyle: { textColor: theme.color.textNeutralDisabled }\n }\n }\n },\n brand: {\n detailsTextStyle: { textColor: theme.color.textNeutral },\n mode: {\n disabled: {\n detailsTextStyle: { textColor: theme.color.textNeutralDisabled }\n }\n }\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport MetadataBase from '../MetadataBase';\nimport TextBox from '../TextBox';\nimport Provider from '../Provider';\nimport FadeShader from '../../shaders/FadeShader';\nimport * as styles from './MetadataCardContent.styles';\n\nexport default class MetadataCardContent extends MetadataBase {\n static get __componentName() {\n return 'MetadataCardContent';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static _template() {\n return {\n Text: {\n flex: { direction: 'column', justifyContent: 'flex-start' },\n Title: {\n type: TextBox\n },\n Subtitle: {\n type: TextBox\n },\n Description: {\n type: TextBox\n },\n DescriptionDetails: {\n type: TextBox\n }\n },\n DetailsWrapper: {\n DetailsFader: {\n Details: {\n mountY: 0.5,\n type: TextBox,\n signals: {\n textBoxChanged: '_resolveDetails'\n }\n }\n },\n Provider: {\n mount: 1,\n type: Provider,\n signals: {\n providerChanged: '_resolveProvider'\n }\n }\n }\n };\n }\n\n static get properties() {\n return [\n 'description',\n 'descriptionDetails',\n 'details',\n 'provider',\n 'subtitle',\n 'title'\n ];\n }\n\n static get tags() {\n return [\n 'Text',\n {\n name: 'Title',\n path: 'Text.Title'\n },\n {\n name: 'Subtitle',\n path: 'Text.Subtitle'\n },\n {\n name: 'Description',\n path: 'Text.Description'\n },\n {\n name: 'DescriptionDetails',\n path: 'Text.DescriptionDetails'\n },\n 'DetailsWrapper',\n {\n name: 'DetailsFader',\n path: 'DetailsWrapper.DetailsFader'\n },\n {\n name: 'Details',\n path: 'DetailsWrapper.DetailsFader.Details'\n },\n {\n name: 'Provider',\n path: 'DetailsWrapper.Provider'\n }\n ];\n }\n\n _setDetails(details) {\n if (details) {\n this._detailsPromise = new Promise(resolve => {\n this._detailsPromiseResolver = resolve;\n });\n } else {\n this._detailsPromise = undefined;\n }\n return details;\n }\n\n _setProvider(provider) {\n if (provider) {\n this._providerPromise = new Promise(resolve => {\n this._providerPromiseResolver = resolve;\n });\n } else {\n this._providerPromise = undefined;\n }\n return provider;\n }\n\n async _update() {\n this._updateLines();\n this._updateProvider();\n await Promise.all(\n [this._detailsPromise, this._providerPromise].filter(Boolean)\n );\n this._updatePositions();\n }\n\n _updateLines() {\n this._Text.w = this.w;\n this._updateTitle();\n this._updateSubtitle();\n this._updateDescription();\n this._updateDescriptionDetails();\n this._updateDetails();\n }\n\n _updateSubtitle() {\n if (!this.subtitle && !this._Subtitle) {\n return;\n }\n\n if (!this._Subtitle) {\n this._Text.childList.addAt({\n ref: 'Subtitle',\n type: TextBox\n });\n }\n\n this._Subtitle.patch({\n content: this.subtitle,\n style: {\n textStyle: {\n ...this.style.subtitleTextStyle,\n maxLines: 1,\n wordWrap: true,\n wordWrapWidth: this._Text.w\n }\n }\n });\n }\n\n _updateDescription() {\n this._Description.patch({\n content: this.description,\n style: {\n textStyle: {\n ...this.style.descriptionTextStyle,\n wordWrap: true,\n wordWrapWidth: this._Text.w\n }\n }\n });\n }\n\n _updateDescriptionDetails() {\n this._DescriptionDetails.patch({\n content: this.descriptionDetails,\n style: {\n textStyle: {\n ...this.style.descriptionDetailsTextStyle,\n maxLines: 1,\n wordWrap: true,\n wordWrapWidth: this._Text.w\n }\n },\n y: this.style.descriptionDetailsStyle.paddingY\n });\n }\n\n _updateDetails() {\n const maxWidth = this._detailsMaxW;\n this._Details.patch({\n content: this.details,\n style: {\n textStyle: {\n ...this.style.detailsTextStyle,\n wordWrap: true,\n maxLines: 1, // sets default for details\n wordWrapWidth: maxWidth + this.style.fadeWidth / 2\n }\n }\n });\n if (this._Details.finalW > maxWidth) {\n this._DetailsFader.patch({\n w: maxWidth + this.style.fadeWidth / 2,\n shader: {\n type: FadeShader,\n positionLeft: 0,\n positionRight: this.style.fadeWidth\n }\n });\n } else {\n this._DetailsFader.shader = undefined;\n }\n }\n\n _resolveDetails() {\n this._detailsPromiseResolver && this._detailsPromiseResolver();\n this._updatePositions();\n }\n\n _updateProvider() {\n if (this.provider) {\n this._Provider.patch({\n mode: this.mode,\n ...this.provider,\n style: this.style.provider\n });\n }\n }\n\n _resolveProvider() {\n this._providerPromiseResolver && this._providerPromiseResolver();\n this._updatePositions();\n this._updateDetails();\n }\n\n _updatePositions() {\n this._Text.h = this._textH;\n this._Text.w = this._textW;\n\n this._DetailsWrapper.w = this._textW;\n this._DetailsWrapper.h = Math.max(this._providerH, this._Details.h);\n this._DetailsWrapper.y = this.h - this._DetailsWrapper.h;\n\n this._Details.y = this._DetailsWrapper.h / 2;\n\n this._Provider.x = this._DetailsWrapper.w - this._providerW;\n this._Provider.y = this._DetailsWrapper.h - this._providerH;\n }\n\n get _textW() {\n return this.w;\n }\n\n get _textH() {\n return this.h - this._providerH;\n }\n\n get _providerW() {\n return this._Provider.w;\n }\n\n get _providerH() {\n return this._Provider._Row._Items.h;\n }\n\n get _detailsMaxW() {\n return this.w - this._providerW - this.style.fadeWidth / 2;\n }\n\n set announce(announce) {\n super.announce = announce;\n }\n\n get announce() {\n return (\n this._announce || [\n this._Title && this._Title.announce,\n this._Subtitle && this._Subtitle.announce,\n this._Description && this._Description.announce,\n this._DescriptionDetails && this._DescriptionDetails.announce,\n this._Details && this._Details.announce,\n this._Provider && this._Provider.announce\n ]\n );\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport function base(theme) {\n return {\n alpha: theme.alpha.primary,\n counterTextStyle: theme.typography.headline3,\n itemSize: theme.layout.gutterX * 2,\n itemSpacing: theme.spacer.md,\n radius: theme.radius.sm\n };\n}\n\nexport const mode = theme => ({\n disabled: {\n alpha: theme.alpha.inactive\n }\n});\n\nexport const tone = theme => ({\n neutral: {\n counterBackgroundColor: theme.color.fillInverseSecondary\n },\n inverse: {\n counterBackgroundColor: theme.color.fillNeutralSecondary\n },\n brand: {\n counterBackgroundColor: theme.color.fillInverseSecondary\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport Base from '../Base';\nimport Row from '../Row';\nimport Icon from '../Icon';\nimport TextBox from '../TextBox';\nimport * as styles from './Provider.styles';\nimport { getMaxRoundRadius } from '../../utils';\n\nexport default class Provider extends Base {\n static get __componentName() {\n return 'Provider';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static _template() {\n return {\n Row: {\n type: Row,\n autoResizeWidth: true\n }\n };\n }\n\n static get properties() {\n return ['disableRadius', 'counterText', 'providers', 'visibleCount'];\n }\n\n static get tags() {\n return ['Row'];\n }\n\n get providersHidden() {\n return this.providers.length - this._visibleCount;\n }\n\n _construct() {\n this._providers = [];\n super._construct();\n }\n\n _update() {\n this._updateProviders();\n this._updateCounter();\n }\n\n _updateProviders() {\n const providerList = [];\n this.providers.slice(0, this.visibleCount).forEach(provider => {\n // Create a starting point for each provider icon.\n\n let patch = {\n centerInParent: true,\n radius: this.disableRadius\n ? 0\n : getMaxRoundRadius(\n this.style.radius,\n this.style.itemSize,\n this.style.itemSize\n ),\n alpha: this.style.alpha,\n style: provider.style || {}\n };\n\n if (\n // If the provider is a pre-configured Icon, allow it to override the default behavior.\n provider.type === Icon &&\n provider.icon &&\n provider.w &&\n provider.h\n ) {\n // Maintain the ratio of the source icon while enforcing the height specified in the styles.\n const ratio = provider.w / provider.h;\n patch = {\n type: Icon,\n icon: provider.icon,\n ...provider,\n w: this.style.itemSize * ratio,\n h: this.style.itemSize,\n ...patch\n };\n } else {\n // If the provider is just a string, create the rest of the Icon.\n patch = {\n type: Icon,\n w: this.style.itemSize,\n h: this.style.itemSize,\n ...patch\n };\n if (typeof provider === 'object') {\n patch = { ...patch, ...provider };\n } else {\n patch.icon = provider;\n }\n }\n providerList.push(patch);\n });\n this._Row.patch({\n style: {\n itemSpacing: this.style.itemSpacing\n },\n items: providerList,\n h: this.style.itemSize\n });\n }\n\n _updateCounter() {\n if (this.providers.length > this.visibleCount) {\n const remaining = this.providersHidden;\n const counter = {\n announce: `+${remaining}`,\n alpha: this.style.alpha,\n w: this.style.itemSize,\n h: this.style.itemSize,\n centerInParent: true,\n Background: {\n w: this.style.itemSize,\n h: this.style.itemSize,\n texture: lng.Tools.getRoundRect(\n this.style.itemSize,\n this.style.itemSize,\n getMaxRoundRadius(\n this.style.radius,\n this.style.itemSize,\n this.style.itemSize\n ),\n 0,\n null,\n true,\n this.style.counterBackgroundColor\n )\n },\n Text: {\n type: TextBox,\n mountX: 0.5,\n mountY: 0.5,\n x: this.style.itemSize / 2,\n y: this.style.itemSize / 2,\n content: this.counterText || `+${remaining}`,\n style: { textStyle: this.style.counterTextStyle }\n }\n };\n this._Row.appendItems([counter]);\n }\n }\n\n $itemChanged() {\n this.signal('providerChanged');\n }\n\n _getVisibleCount() {\n const min = 1;\n const max = this.providers.length;\n const visibleCount = Math.min(Math.max(min, this._visibleCount), max);\n if (this._visibleCount < min) {\n console.warn(\n `Warning: The specified visible count (${this._visibleCount}) is less than the minimum value (${min}). Setting it to ${min}.`\n );\n }\n if (this._visibleCount > max) {\n console.warn(\n `Warning: The specified visible count (${this._visibleCount}) is greater than the maximum value (${max}). Setting it to ${max}.`\n );\n }\n return visibleCount;\n }\n\n get w() {\n return this._Row.w;\n }\n\n set announce(announce) {\n super.announce = announce;\n }\n\n get announce() {\n return (\n this._announce ||\n (this._Row.items &&\n this._Row.items.length &&\n this._Row.items.map(item => item.announce))\n );\n }\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/4253.8070280b.iframe.bundle.js b/4253.8070280b.iframe.bundle.js deleted file mode 100644 index 1f7dcb01a..000000000 --- a/4253.8070280b.iframe.bundle.js +++ /dev/null @@ -1,564 +0,0 @@ -"use strict"; -(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[4253],{ - -/***/ "../../@lightningjs/ui-components/src/components/TitleRow/TitleRow.stories.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ TitleRow: () => (/* binding */ TitleRow), -/* harmony export */ __namedExportsOrder: () => (/* binding */ __namedExportsOrder), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); -/* harmony import */ var _Row_Row_stories__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Row/Row.stories.js"); -/* harmony import */ var _Tile__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Tile/Tile.js"); -/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("../../@lightningjs/ui-components/src/components/TitleRow/TitleRow.js"); -function _typeof(o) { - "@babel/helpers - typeof"; - - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { - return typeof o; - } : function (o) { - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; - }, _typeof(o); -} -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); - } -} -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { - writable: false - }); - return Constructor; -} -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { - writable: false - }); - if (superClass) _setPrototypeOf(subClass, superClass); -} -function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); -} -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); - }; -} -function _possibleConstructorReturn(self, call) { - if (call && (_typeof(call) === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { - throw new TypeError("Derived constructors may only return object or undefined"); - } - return _assertThisInitialized(self); -} -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - return self; -} -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; - } -} -function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); -} -function ownKeys(e, r) { - var t = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(e); - r && (o = o.filter(function (r) { - return Object.getOwnPropertyDescriptor(e, r).enumerable; - })), t.push.apply(t, o); - } - return t; -} -function _objectSpread(e) { - for (var r = 1; r < arguments.length; r++) { - var t = null != arguments[r] ? arguments[r] : {}; - r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { - _defineProperty(e, r, t[r]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); - }); - } - return e; -} -function _defineProperty(obj, key, value) { - key = _toPropertyKey(key); - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} -function _toPropertyKey(t) { - var i = _toPrimitive(t, "string"); - return "symbol" == _typeof(i) ? i : String(i); -} -function _toPrimitive(t, r) { - if ("object" != _typeof(t) || !t) return t; - var e = t[Symbol.toPrimitive]; - if (void 0 !== e) { - var i = e.call(t, r || "default"); - if ("object" != _typeof(i)) return i; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return ("string" === r ? String : Number)(t); -} -/* eslint-disable */ -// @ts-nocheck -// @ts-expect-error (Converted from ts-ignore) -var __STORY__ = "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport { Row as RowBasic } from '../Row/Row.stories';\nimport Tile from '../Tile';\nimport { default as TitleRowComponent } from '.';\n\n// add remount to all Row argTypes individually since Row uses remountAll\n// TitleRow title prop can be updated without requiring a remount\nconst rowArgTypes = Object.keys(RowBasic.argTypes).reduce((acc, key) => {\n acc[key] = {\n ...RowBasic.argTypes[key],\n remount: key !== 'mode'\n };\n return acc;\n}, {});\n\nexport default {\n title: 'Components/TitleRow',\n\n args: {\n title: 'Row Title',\n ...RowBasic.args\n },\n argTypes: {\n title: {\n control: 'text',\n description: 'title text to be displayed above the row',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n ...rowArgTypes\n }\n};\n\nconst createItems = length => {\n return Array.from({ length }).map((_, index) => ({\n type: Tile,\n itemLayout: {\n ratioX: 16,\n ratioY: 9,\n upCount: 4\n },\n announce: 'Tile',\n announceContext: `${index + 1} of ${length}`\n }));\n};\n\nexport const TitleRow = () =>\n class TitleRow extends lng.Component {\n static _template() {\n return {\n TitleRow: {\n type: TitleRowComponent,\n items: createItems(12)\n }\n };\n }\n\n _getFocused() {\n return this.tag('TitleRow');\n }\n };\n\nTitleRow.storyName = 'TitleRow';\n"; -// @ts-expect-error (Converted from ts-ignore) -var __LOCATIONS_MAP__ = { - "TitleRow": { - "startLoc": { - "col": 24, - "line": 66 - }, - "endLoc": { - "col": 3, - "line": 80 - }, - "startBody": { - "col": 24, - "line": 66 - }, - "endBody": { - "col": 3, - "line": 80 - } - } -}; - -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - - - - - -// add remount to all Row argTypes individually since Row uses remountAll -// TitleRow title prop can be updated without requiring a remount -var rowArgTypes = Object.keys(_Row_Row_stories__WEBPACK_IMPORTED_MODULE_1__.Row.argTypes).reduce(function (acc, key) { - acc[key] = _objectSpread(_objectSpread({}, _Row_Row_stories__WEBPACK_IMPORTED_MODULE_1__.Row.argTypes[key]), {}, { - remount: key !== 'mode' - }); - return acc; -}, {}); -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ - parameters: { - "storySource": { - "source": "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport { Row as RowBasic } from '../Row/Row.stories';\nimport Tile from '../Tile';\nimport { default as TitleRowComponent } from '.';\n\n// add remount to all Row argTypes individually since Row uses remountAll\n// TitleRow title prop can be updated without requiring a remount\nconst rowArgTypes = Object.keys(RowBasic.argTypes).reduce((acc, key) => {\n acc[key] = {\n ...RowBasic.argTypes[key],\n remount: key !== 'mode'\n };\n return acc;\n}, {});\n\nexport default {\n title: 'Components/TitleRow',\n\n args: {\n title: 'Row Title',\n ...RowBasic.args\n },\n argTypes: {\n title: {\n control: 'text',\n description: 'title text to be displayed above the row',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n ...rowArgTypes\n }\n};\n\nconst createItems = length => {\n return Array.from({ length }).map((_, index) => ({\n type: Tile,\n itemLayout: {\n ratioX: 16,\n ratioY: 9,\n upCount: 4\n },\n announce: 'Tile',\n announceContext: `${index + 1} of ${length}`\n }));\n};\n\nexport const TitleRow = () =>\n class TitleRow extends lng.Component {\n static _template() {\n return {\n TitleRow: {\n type: TitleRowComponent,\n items: createItems(12)\n }\n };\n }\n\n _getFocused() {\n return this.tag('TitleRow');\n }\n };\n\nTitleRow.storyName = 'TitleRow';\n", - "locationsMap": { - "title-row": { - "startLoc": { - "col": 24, - "line": 66 - }, - "endLoc": { - "col": 3, - "line": 80 - }, - "startBody": { - "col": 24, - "line": 66 - }, - "endBody": { - "col": 3, - "line": 80 - } - } - } - } - }, - title: 'Components/TitleRow', - args: _objectSpread({ - title: 'Row Title' - }, _Row_Row_stories__WEBPACK_IMPORTED_MODULE_1__.Row.args), - argTypes: _objectSpread({ - title: { - control: 'text', - description: 'title text to be displayed above the row', - table: { - defaultValue: { - summary: 'undefined' - } - } - } - }, rowArgTypes) -}); -var createItems = function createItems(length) { - return Array.from({ - length: length - }).map(function (_, index) { - return { - type: _Tile__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A, - itemLayout: { - ratioX: 16, - ratioY: 9, - upCount: 4 - }, - announce: 'Tile', - announceContext: "".concat(index + 1, " of ").concat(length) - }; - }); -}; -var TitleRow = function TitleRow() { - return /*#__PURE__*/function (_lng$Component) { - _inherits(TitleRow, _lng$Component); - var _super = _createSuper(TitleRow); - function TitleRow() { - _classCallCheck(this, TitleRow); - return _super.apply(this, arguments); - } - _createClass(TitleRow, [{ - key: "_getFocused", - value: function _getFocused() { - return this.tag('TitleRow'); - } - }], [{ - key: "_template", - value: function _template() { - return { - TitleRow: { - type: ___WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A, - items: createItems(12) - } - }; - } - }]); - return TitleRow; - }(_lightningjs_core__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.Component); -}; -TitleRow.storyName = 'TitleRow'; -TitleRow.parameters = { - ...TitleRow.parameters, - docs: { - ...TitleRow.parameters?.docs, - source: { - originalSource: "() => class TitleRow extends lng.Component {\n static _template() {\n return {\n TitleRow: {\n type: TitleRowComponent,\n items: createItems(12)\n }\n };\n }\n _getFocused() {\n return this.tag('TitleRow');\n }\n}", - ...TitleRow.parameters?.docs?.source - } - } -};;const __namedExportsOrder = ["TitleRow"]; - -/***/ }), - -/***/ "../../@lightningjs/ui-components/src/components/TitleRow/TitleRow.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - A: () => (/* binding */ TitleRow) -}); - -// NAMESPACE OBJECT: ../../@lightningjs/ui-components/src/components/TitleRow/TitleRow.styles.js -var TitleRow_styles_namespaceObject = {}; -__webpack_require__.r(TitleRow_styles_namespaceObject); -__webpack_require__.d(TitleRow_styles_namespaceObject, { - base: () => (base), - tone: () => (tone) -}); - -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/TextBox/TextBox.js + 1 modules -var TextBox = __webpack_require__("../../@lightningjs/ui-components/src/components/TextBox/TextBox.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Row/Row.js + 1 modules -var Row = __webpack_require__("../../@lightningjs/ui-components/src/components/Row/Row.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/utils/index.js -var utils = __webpack_require__("../../@lightningjs/ui-components/src/utils/index.js"); -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/TitleRow/TitleRow.styles.js -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - -var base = function base(theme) { - return { - width: (0,utils/* getWidthByUpCount */.cN)(theme, 1), - titleMarginBottom: theme.spacer.lg, - titleMarginLeft: theme.layout.gutterX, - titleTextStyle: _objectSpread(_objectSpread({}, theme.typography.headline1), {}, { - textColor: theme.color.textNeutral - }) - }; -}; -var tone = function tone(theme) { - return { - neutral: { - titleTextStyle: { - textColor: theme.color.textNeutral - } - }, - inverse: { - titleTextStyle: { - textColor: theme.color.textInverse - } - }, - brand: { - titleTextStyle: { - textColor: theme.color.textNeutral - } - } - }; -}; -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/TitleRow/TitleRow.js -function TitleRow_typeof(o) { "@babel/helpers - typeof"; return TitleRow_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, TitleRow_typeof(o); } -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } -function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function TitleRow_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function TitleRow_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? TitleRow_ownKeys(Object(t), !0).forEach(function (r) { TitleRow_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : TitleRow_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, TitleRow_toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function set(target, property, value, receiver) { if (typeof Reflect !== "undefined" && Reflect.set) { set = Reflect.set; } else { set = function set(target, property, value, receiver) { var base = _superPropBase(target, property); var desc; if (base) { desc = Object.getOwnPropertyDescriptor(base, property); if (desc.set) { desc.set.call(receiver, value); return true; } else if (!desc.writable) { return false; } } desc = Object.getOwnPropertyDescriptor(receiver, property); if (desc) { if (!desc.writable) { return false; } desc.value = value; Object.defineProperty(receiver, property, desc); } else { TitleRow_defineProperty(receiver, property, value); } return true; }; } return set(target, property, value, receiver); } -function _set(target, property, value, receiver, isStrict) { var s = set(target, property, value, receiver || target); if (!s && isStrict) { throw new TypeError('failed to set property'); } return value; } -function TitleRow_defineProperty(obj, key, value) { key = TitleRow_toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function TitleRow_toPropertyKey(t) { var i = TitleRow_toPrimitive(t, "string"); return "symbol" == TitleRow_typeof(i) ? i : String(i); } -function TitleRow_toPrimitive(t, r) { if ("object" != TitleRow_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != TitleRow_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); } -function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (TitleRow_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - - - -var TitleRow = /*#__PURE__*/function (_Row) { - _inherits(TitleRow, _Row); - var _super = _createSuper(TitleRow); - function TitleRow() { - _classCallCheck(this, TitleRow); - return _super.apply(this, arguments); - } - _createClass(TitleRow, [{ - key: "_titleLoaded", - value: function _titleLoaded() { - this._updateRow(); - } - }, { - key: "_construct", - value: function _construct() { - _get(_getPrototypeOf(TitleRow.prototype), "_construct", this).call(this); - this._autoResizeHeight = true; - } - }, { - key: "_update", - value: function _update() { - _get(_getPrototypeOf(TitleRow.prototype), "_update", this).call(this); - this._updateTitle(); - this._updateRow(); - } - }, { - key: "_autoResize", - value: function _autoResize() { - this.w = this.w || this.style.w; - this.h = this.autoResizeHeight ? this.Items.y + this.Items.h : this.h; - } - }, { - key: "_updateTitle", - value: function _updateTitle() { - if (!this.title) { - if (this._Title) { - this.patch({ - Title: undefined - }); - } - return; - } - var titlePatch = { - x: this.style.titleMarginLeft, - content: this.title, - style: { - textStyle: this.style.titleTextStyle - } - }; - if (!this._Title) { - titlePatch = TitleRow_objectSpread(TitleRow_objectSpread({}, this._titleFirstLoadProps), titlePatch); - } - this.patch({ - Title: titlePatch - }); - } - }, { - key: "_titleFirstLoadProps", - get: function get() { - return { - type: TextBox/* default */.A, - signals: { - textBoxChanged: '_titleLoaded' - } - }; - } - }, { - key: "_updateRow", - value: function _updateRow() { - this.applySmooth(this.Items, { - y: this.title ? this._Title.finalH + this.style.titleMarginBottom : 0 - }); - } - }, { - key: "announce", - get: function get() { - return this._announce || this._Title && this._Title.announce; - }, - set: function set(announce) { - _set(_getPrototypeOf(TitleRow.prototype), "announce", announce, this, true); - } - }], [{ - key: "__componentName", - get: function get() { - return 'TitleRow'; - } - }, { - key: "__themeStyle", - get: function get() { - return TitleRow_styles_namespaceObject; - } - }, { - key: "properties", - get: function get() { - return [].concat(_toConsumableArray(_get(_getPrototypeOf(TitleRow), "properties", this)), ['title']); - } - }, { - key: "tags", - get: function get() { - return [].concat(_toConsumableArray(_get(_getPrototypeOf(TitleRow), "tags", this)), ['Title']); - } - }, { - key: "aliasStyles", - get: function get() { - return [{ - prev: 'rowMarginTop', - curr: 'titleMarginBottom' - }]; - } - }]); - return TitleRow; -}(Row/* default */.A); - - -/***/ }) - -}]); -//# sourceMappingURL=4253.8070280b.iframe.bundle.js.map \ No newline at end of file diff --git a/4253.8070280b.iframe.bundle.js.map b/4253.8070280b.iframe.bundle.js.map deleted file mode 100644 index cfcf08828..000000000 --- a/4253.8070280b.iframe.bundle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"4253.8070280b.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC5SA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAEA;AAAA;AAEA;AAAA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AAEA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAsBA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAIA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAOA;AACA;AAAA;AALA;AACA;AAAA;AAAA;AAAA;AA9EA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA","sources":["webpack://lightning-ui-docs/","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/TitleRow/TitleRow.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/TitleRow/TitleRow.js"],"sourcesContent":[null,"/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { getWidthByUpCount } from '../../utils';\n\nexport const base = theme => ({\n width: getWidthByUpCount(theme, 1),\n titleMarginBottom: theme.spacer.lg,\n titleMarginLeft: theme.layout.gutterX,\n titleTextStyle: {\n ...theme.typography.headline1,\n textColor: theme.color.textNeutral\n }\n});\n\nexport const tone = theme => ({\n neutral: {\n titleTextStyle: { textColor: theme.color.textNeutral }\n },\n inverse: {\n titleTextStyle: { textColor: theme.color.textInverse }\n },\n brand: {\n titleTextStyle: { textColor: theme.color.textNeutral }\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport TextBox from '../TextBox';\nimport Row from '../Row';\n\nimport * as styles from './TitleRow.styles';\n\nexport default class TitleRow extends Row {\n static get __componentName() {\n return 'TitleRow';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static get properties() {\n return [...super.properties, 'title'];\n }\n\n static get tags() {\n return [...super.tags, 'Title'];\n }\n\n static get aliasStyles() {\n return [{ prev: 'rowMarginTop', curr: 'titleMarginBottom' }];\n }\n\n _titleLoaded() {\n this._updateRow();\n }\n\n _construct() {\n super._construct();\n this._autoResizeHeight = true;\n }\n\n _update() {\n super._update();\n this._updateTitle();\n this._updateRow();\n }\n\n _autoResize() {\n this.w = this.w || this.style.w;\n this.h = this.autoResizeHeight ? this.Items.y + this.Items.h : this.h;\n }\n\n _updateTitle() {\n if (!this.title) {\n if (this._Title) {\n this.patch({ Title: undefined });\n }\n return;\n }\n\n let titlePatch = {\n x: this.style.titleMarginLeft,\n content: this.title,\n style: { textStyle: this.style.titleTextStyle }\n };\n if (!this._Title) {\n titlePatch = {\n ...this._titleFirstLoadProps,\n ...titlePatch\n };\n }\n this.patch({ Title: titlePatch });\n }\n\n get _titleFirstLoadProps() {\n return {\n type: TextBox,\n signals: {\n textBoxChanged: '_titleLoaded'\n }\n };\n }\n\n _updateRow() {\n this.applySmooth(this.Items, {\n y: this.title ? this._Title.finalH + this.style.titleMarginBottom : 0\n });\n }\n\n set announce(announce) {\n super.announce = announce;\n }\n\n get announce() {\n return this._announce || (this._Title && this._Title.announce);\n }\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/129.eb265bbe.iframe.bundle.js b/451.45b2e1e7.iframe.bundle.js similarity index 60% rename from 129.eb265bbe.iframe.bundle.js rename to 451.45b2e1e7.iframe.bundle.js index b7707956b..a33c26ed1 100644 --- a/129.eb265bbe.iframe.bundle.js +++ b/451.45b2e1e7.iframe.bundle.js @@ -1,19 +1,21 @@ -(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[129],{ +(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[451],{ -/***/ "../../../node_modules/@storybook/addon-docs/dist/DocsRenderer-NNNQARDV.mjs": +/***/ "../../../node_modules/@storybook/addon-docs/dist/DocsRenderer-CFRXHY34.mjs": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; /* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ DocsRenderer: () => (/* reexport safe */ _chunk_HLWAVYOI_mjs__WEBPACK_IMPORTED_MODULE_0__.f) +/* harmony export */ DocsRenderer: () => (/* reexport safe */ _chunk_NUUEMKO5_mjs__WEBPACK_IMPORTED_MODULE_0__.f) /* harmony export */ }); -/* harmony import */ var _chunk_HLWAVYOI_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/@storybook/addon-docs/dist/chunk-HLWAVYOI.mjs"); +/* harmony import */ var _chunk_NUUEMKO5_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/@storybook/addon-docs/dist/chunk-NUUEMKO5.mjs"); +/* harmony import */ var _chunk_H6MOWX77_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../../node_modules/@storybook/addon-docs/dist/chunk-H6MOWX77.mjs"); + /***/ }), -/***/ "../../../node_modules/@storybook/addon-docs/dist/chunk-HLWAVYOI.mjs": +/***/ "../../../node_modules/@storybook/addon-docs/dist/chunk-NUUEMKO5.mjs": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use strict"; @@ -27,19 +29,19 @@ __webpack_require__.d(__webpack_exports__, { // EXTERNAL MODULE: ../../../node_modules/react/index.js var react = __webpack_require__("../../../node_modules/react/index.js"); +// EXTERNAL MODULE: ../../../node_modules/@storybook/blocks/dist/index.mjs + 11 modules +var dist = __webpack_require__("../../../node_modules/@storybook/blocks/dist/index.mjs"); // EXTERNAL MODULE: ../../../node_modules/react-dom/client.js var client = __webpack_require__("../../../node_modules/react-dom/client.js"); ;// CONCATENATED MODULE: ../../../node_modules/@storybook/react-dom-shim/dist/react-18.mjs -var nodes=new Map,WithCallback=({callback,children})=>{let once=(0,react.useRef)();return (0,react.useLayoutEffect)(()=>{once.current!==callback&&(once.current=callback,callback());},[callback]),children},renderElement=async(node,el)=>{let root=await getReactRoot(el);return new Promise(resolve=>{root.render(react.createElement(WithCallback,{callback:()=>resolve(null)},node));})},unmountElement=(el,shouldUseNewRootApi)=>{let root=nodes.get(el);root&&(root.unmount(),nodes.delete(el));},getReactRoot=async el=>{let root=nodes.get(el);return root||(root=client.createRoot(el),nodes.set(el,root)),root}; +var nodes=new Map;function getIsReactActEnvironment(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var WithCallback=({callback,children})=>{let once=react.useRef();return react.useLayoutEffect(()=>{once.current!==callback&&(once.current=callback,callback());},[callback]),children};typeof Promise.withResolvers>"u"&&(Promise.withResolvers=()=>{let resolve=null,reject=null;return {promise:new Promise((res,rej)=>{resolve=res,reject=rej;}),resolve,reject}});var renderElement=async(node,el,rootOptions)=>{let root=await getReactRoot(el,rootOptions);if(getIsReactActEnvironment()){root.render(node);return}let{promise,resolve}=Promise.withResolvers();return root.render(react.createElement(WithCallback,{callback:resolve},node)),promise},unmountElement=(el,shouldUseNewRootApi)=>{let root=nodes.get(el);root&&(root.unmount(),nodes.delete(el));},getReactRoot=async(el,rootOptions)=>{let root=nodes.get(el);return root||(root=client/* createRoot */.H(el,rootOptions),nodes.set(el,root)),root}; -// EXTERNAL MODULE: ../../../node_modules/@storybook/blocks/dist/index.mjs + 11 modules -var dist = __webpack_require__("../../../node_modules/@storybook/blocks/dist/index.mjs"); -;// CONCATENATED MODULE: ../../../node_modules/@storybook/addon-docs/dist/chunk-HLWAVYOI.mjs +;// CONCATENATED MODULE: ../../../node_modules/@storybook/addon-docs/dist/chunk-NUUEMKO5.mjs @@ -49,6 +51,21 @@ var defaultComponents={code:dist/* CodeOrSourceMdx */.XA,a:dist/* AnchorMdx */.z +/***/ }), + +/***/ "../../../node_modules/@storybook/core/dist/components sync recursive": +/***/ ((module) => { + +function webpackEmptyContext(req) { + var e = new Error("Cannot find module '" + req + "'"); + e.code = 'MODULE_NOT_FOUND'; + throw e; +} +webpackEmptyContext.keys = () => ([]); +webpackEmptyContext.resolve = webpackEmptyContext; +webpackEmptyContext.id = "../../../node_modules/@storybook/core/dist/components sync recursive"; +module.exports = webpackEmptyContext; + /***/ }), /***/ "../../../node_modules/memoizerific sync recursive": @@ -70,16 +87,17 @@ module.exports = webpackEmptyContext; /***/ ((__unused_webpack_module, exports, __webpack_require__) => { "use strict"; +var __webpack_unused_export__; var m = __webpack_require__("../../../node_modules/react-dom/index.js"); if (true) { - exports.createRoot = m.createRoot; - exports.hydrateRoot = m.hydrateRoot; + exports.H = m.createRoot; + __webpack_unused_export__ = m.hydrateRoot; } else { var i; } /***/ }) }]); -//# sourceMappingURL=129.eb265bbe.iframe.bundle.js.map \ No newline at end of file +//# sourceMappingURL=451.45b2e1e7.iframe.bundle.js.map \ No newline at end of file diff --git a/451.45b2e1e7.iframe.bundle.js.map b/451.45b2e1e7.iframe.bundle.js.map new file mode 100644 index 000000000..c455a1d28 --- /dev/null +++ b/451.45b2e1e7.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"451.45b2e1e7.iframe.bundle.js","mappings":";;;;;;;;;;;AAAA;AACA;;;;;;;;;;;;;;;;;;;;;;;;ACDA;AACA;AACA;AACA;AACA;AACA;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://lightning-ui-docs/../../../node_modules/@storybook/addon-docs/dist/DocsRenderer-CFRXHY34.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/react-dom-shim/dist/react-18.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/addon-docs/dist/chunk-NUUEMKO5.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/core/dist/components/ sync","webpack://lightning-ui-docs/../../../node_modules/memoizerific/ sync","webpack://lightning-ui-docs/../../../node_modules/react-dom/client.js"],"sourcesContent":["export { DocsRenderer, defaultComponents } from './chunk-NUUEMKO5.mjs';\nimport './chunk-H6MOWX77.mjs';\n","import * as React from 'react';\nimport * as ReactDOM from 'react-dom/client';\n\nvar nodes=new Map;function getIsReactActEnvironment(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var WithCallback=({callback,children})=>{let once=React.useRef();return React.useLayoutEffect(()=>{once.current!==callback&&(once.current=callback,callback());},[callback]),children};typeof Promise.withResolvers>\"u\"&&(Promise.withResolvers=()=>{let resolve=null,reject=null;return {promise:new Promise((res,rej)=>{resolve=res,reject=rej;}),resolve,reject}});var renderElement=async(node,el,rootOptions)=>{let root=await getReactRoot(el,rootOptions);if(getIsReactActEnvironment()){root.render(node);return}let{promise,resolve}=Promise.withResolvers();return root.render(React.createElement(WithCallback,{callback:resolve},node)),promise},unmountElement=(el,shouldUseNewRootApi)=>{let root=nodes.get(el);root&&(root.unmount(),nodes.delete(el));},getReactRoot=async(el,rootOptions)=>{let root=nodes.get(el);return root||(root=ReactDOM.createRoot(el,rootOptions),nodes.set(el,root)),root};\n\nexport { renderElement, unmountElement };\n","import React, { Component } from 'react';\nimport { CodeOrSourceMdx, AnchorMdx, HeadersMdx, Docs } from '@storybook/blocks';\nimport { renderElement, unmountElement } from '@storybook/react-dom-shim';\n\nvar defaultComponents={code:CodeOrSourceMdx,a:AnchorMdx,...HeadersMdx},ErrorBoundary=class extends Component{constructor(){super(...arguments);this.state={hasError:!1};}static getDerivedStateFromError(){return {hasError:!0}}componentDidCatch(err){let{showException}=this.props;showException(err);}render(){let{hasError}=this.state,{children}=this.props;return hasError?null:React.createElement(React.Fragment,null,children)}},DocsRenderer=class{constructor(){this.render=async(context,docsParameter,element)=>{let components={...defaultComponents,...docsParameter?.components},TDocs=Docs;return new Promise((resolve,reject)=>{import('@mdx-js/react').then(({MDXProvider})=>renderElement(React.createElement(ErrorBoundary,{showException:reject,key:Math.random()},React.createElement(MDXProvider,{components},React.createElement(TDocs,{context,docsParameter}))),element)).then(()=>resolve());})},this.unmount=element=>{unmountElement(element);};}};\n\nexport { DocsRenderer, defaultComponents };\n","function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = \"../../../node_modules/@storybook/core/dist/components sync recursive\";\nmodule.exports = webpackEmptyContext;","function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = () => ([]);\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = \"../../../node_modules/memoizerific sync recursive\";\nmodule.exports = webpackEmptyContext;","'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/4917.28d0fb56.iframe.bundle.js b/4917.28d0fb56.iframe.bundle.js deleted file mode 100644 index 56d3e0a58..000000000 --- a/4917.28d0fb56.iframe.bundle.js +++ /dev/null @@ -1,668 +0,0 @@ -"use strict"; -(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[4917],{ - -/***/ "../../@lightningjs/ui-components/src/components/MetadataCard/MetadataCard.stories.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - MetadataCard: () => (/* binding */ MetadataCard), - __namedExportsOrder: () => (/* binding */ __namedExportsOrder), - "default": () => (/* binding */ MetadataCard_stories) -}); - -// EXTERNAL MODULE: ../../../node_modules/@lightningjs/core/dist/lightning.esm.js -var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/assets/images/ic_lightning_white_32.png -var ic_lightning_white_32 = __webpack_require__("../../@lightningjs/ui-components/src/assets/images/ic_lightning_white_32.png"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/assets/images/circle.svg -var circle = __webpack_require__("../../@lightningjs/ui-components/src/assets/images/circle.svg"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/utils/index.js -var utils = __webpack_require__("../../@lightningjs/ui-components/src/utils/index.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/docs/utils.js -var docs_utils = __webpack_require__("../../@lightningjs/ui-components/src/docs/utils.js"); -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/MetadataBase/MetadataBase.js + 2 modules -var MetadataBase = __webpack_require__("../../@lightningjs/ui-components/src/components/MetadataBase/MetadataBase.js"); -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/MetadataCard/MetadataCard.js -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - -var MetadataCard_MetadataCard = /*#__PURE__*/function (_MetadataBase) { - _inherits(MetadataCard, _MetadataBase); - var _super = _createSuper(MetadataCard); - function MetadataCard() { - _classCallCheck(this, MetadataCard); - return _super.apply(this, arguments); - } - _createClass(MetadataCard, null, [{ - key: "__componentName", - get: function get() { - return 'MetadataCard'; - } - }]); - return MetadataCard; -}(MetadataBase/* default */.A); - -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/MetadataCard/MetadataCard.stories.js -function MetadataCard_stories_typeof(o) { - "@babel/helpers - typeof"; - - return MetadataCard_stories_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { - return typeof o; - } : function (o) { - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; - }, MetadataCard_stories_typeof(o); -} -function ownKeys(e, r) { - var t = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(e); - r && (o = o.filter(function (r) { - return Object.getOwnPropertyDescriptor(e, r).enumerable; - })), t.push.apply(t, o); - } - return t; -} -function _objectSpread(e) { - for (var r = 1; r < arguments.length; r++) { - var t = null != arguments[r] ? arguments[r] : {}; - r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { - _defineProperty(e, r, t[r]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); - }); - } - return e; -} -function _defineProperty(obj, key, value) { - key = MetadataCard_stories_toPropertyKey(key); - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} -function MetadataCard_stories_classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} -function MetadataCard_stories_defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, MetadataCard_stories_toPropertyKey(descriptor.key), descriptor); - } -} -function MetadataCard_stories_createClass(Constructor, protoProps, staticProps) { - if (protoProps) MetadataCard_stories_defineProperties(Constructor.prototype, protoProps); - if (staticProps) MetadataCard_stories_defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { - writable: false - }); - return Constructor; -} -function MetadataCard_stories_toPropertyKey(t) { - var i = MetadataCard_stories_toPrimitive(t, "string"); - return "symbol" == MetadataCard_stories_typeof(i) ? i : String(i); -} -function MetadataCard_stories_toPrimitive(t, r) { - if ("object" != MetadataCard_stories_typeof(t) || !t) return t; - var e = t[Symbol.toPrimitive]; - if (void 0 !== e) { - var i = e.call(t, r || "default"); - if ("object" != MetadataCard_stories_typeof(i)) return i; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return ("string" === r ? String : Number)(t); -} -function MetadataCard_stories_inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { - writable: false - }); - if (superClass) MetadataCard_stories_setPrototypeOf(subClass, superClass); -} -function MetadataCard_stories_setPrototypeOf(o, p) { - MetadataCard_stories_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return MetadataCard_stories_setPrototypeOf(o, p); -} -function MetadataCard_stories_createSuper(Derived) { - var hasNativeReflectConstruct = MetadataCard_stories_isNativeReflectConstruct(); - return function _createSuperInternal() { - var Super = MetadataCard_stories_getPrototypeOf(Derived), - result; - if (hasNativeReflectConstruct) { - var NewTarget = MetadataCard_stories_getPrototypeOf(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); - } - return MetadataCard_stories_possibleConstructorReturn(this, result); - }; -} -function MetadataCard_stories_possibleConstructorReturn(self, call) { - if (call && (MetadataCard_stories_typeof(call) === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { - throw new TypeError("Derived constructors may only return object or undefined"); - } - return MetadataCard_stories_assertThisInitialized(self); -} -function MetadataCard_stories_assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - return self; -} -function MetadataCard_stories_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; - } -} -function MetadataCard_stories_getPrototypeOf(o) { - MetadataCard_stories_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return MetadataCard_stories_getPrototypeOf(o); -} -/* eslint-disable */ -// @ts-nocheck -// @ts-expect-error (Converted from ts-ignore) -var __STORY__ = "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport lightningbolt from '../../assets/images/ic_lightning_white_32.png';\nimport circle from '../../assets/images/circle.svg';\nimport utils from '../../utils';\nimport { createModeControl } from '../../docs/utils';\nimport { default as MetadataCardComponent } from '.';\n\nexport default {\n title: 'Components/MetadataCard'\n};\n\nexport const MetadataCard = () =>\n class MetadataCard extends lng.Component {\n static _template() {\n return {\n MetadataCard: {\n type: MetadataCardComponent\n }\n };\n }\n };\n\nMetadataCard.storyName = 'MetadataCard';\nMetadataCard.args = {\n w: 400,\n title: 'Title',\n details: [\n '94%',\n {\n icon: lightningbolt,\n style: { color: utils.getHexColor('00ff00') },\n title: 'Green Lightning Bolt'\n },\n '86%',\n {\n icon: 'http://myriad.merlin.comcast.com/select/logo?entityId=8527084350383982239&width=32&height=&ratio=1x1&trim=false',\n title: 'Rotten Tomatoes rating'\n }\n ],\n description: 'Description',\n logo: circle,\n logoTitle: 'Logo title',\n logoPosition: 'right',\n mode: 'unfocused'\n};\n\nMetadataCard.argTypes = {\n ...createModeControl({ summaryValue: MetadataCard.args.mode }),\n w: {\n control: 'number',\n description: 'Width of component',\n table: {\n defaultValue: { summary: 400 }\n }\n },\n title: {\n control: 'text',\n description: 'Title text',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n details: {\n control: 'text',\n description: 'Details content',\n table: {\n defaultValue: {\n summary: 'undefined'\n }\n }\n },\n description: {\n control: 'text',\n description: 'Description text',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n logo: {\n options: ['none', circle],\n control: 'select',\n description: 'Image to use for logo',\n table: {\n defaultValue: { summary: 'none' }\n }\n },\n logoTitle: {\n control: 'text',\n description: 'Title to use for logo in announcer',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n logoPosition: {\n options: ['right', 'left'],\n control: 'select',\n description: 'Position logo on the left/right side',\n table: {\n defaultValue: { summary: 'right' }\n }\n }\n};\n"; -// @ts-expect-error (Converted from ts-ignore) -var __LOCATIONS_MAP__ = { - "MetadataCard": { - "startLoc": { - "col": 28, - "line": 30 - }, - "endLoc": { - "col": 3, - "line": 39 - }, - "startBody": { - "col": 28, - "line": 30 - }, - "endBody": { - "col": 3, - "line": 39 - } - } -}; - -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - - - - - - -/* harmony default export */ const MetadataCard_stories = ({ - parameters: { - "storySource": { - "source": "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport lightningbolt from '../../assets/images/ic_lightning_white_32.png';\nimport circle from '../../assets/images/circle.svg';\nimport utils from '../../utils';\nimport { createModeControl } from '../../docs/utils';\nimport { default as MetadataCardComponent } from '.';\n\nexport default {\n title: 'Components/MetadataCard'\n};\n\nexport const MetadataCard = () =>\n class MetadataCard extends lng.Component {\n static _template() {\n return {\n MetadataCard: {\n type: MetadataCardComponent\n }\n };\n }\n };\n\nMetadataCard.storyName = 'MetadataCard';\nMetadataCard.args = {\n w: 400,\n title: 'Title',\n details: [\n '94%',\n {\n icon: lightningbolt,\n style: { color: utils.getHexColor('00ff00') },\n title: 'Green Lightning Bolt'\n },\n '86%',\n {\n icon: 'http://myriad.merlin.comcast.com/select/logo?entityId=8527084350383982239&width=32&height=&ratio=1x1&trim=false',\n title: 'Rotten Tomatoes rating'\n }\n ],\n description: 'Description',\n logo: circle,\n logoTitle: 'Logo title',\n logoPosition: 'right',\n mode: 'unfocused'\n};\n\nMetadataCard.argTypes = {\n ...createModeControl({ summaryValue: MetadataCard.args.mode }),\n w: {\n control: 'number',\n description: 'Width of component',\n table: {\n defaultValue: { summary: 400 }\n }\n },\n title: {\n control: 'text',\n description: 'Title text',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n details: {\n control: 'text',\n description: 'Details content',\n table: {\n defaultValue: {\n summary: 'undefined'\n }\n }\n },\n description: {\n control: 'text',\n description: 'Description text',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n logo: {\n options: ['none', circle],\n control: 'select',\n description: 'Image to use for logo',\n table: {\n defaultValue: { summary: 'none' }\n }\n },\n logoTitle: {\n control: 'text',\n description: 'Title to use for logo in announcer',\n table: {\n defaultValue: { summary: 'undefined' }\n }\n },\n logoPosition: {\n options: ['right', 'left'],\n control: 'select',\n description: 'Position logo on the left/right side',\n table: {\n defaultValue: { summary: 'right' }\n }\n }\n};\n", - "locationsMap": { - "metadata-card": { - "startLoc": { - "col": 28, - "line": 30 - }, - "endLoc": { - "col": 3, - "line": 39 - }, - "startBody": { - "col": 28, - "line": 30 - }, - "endBody": { - "col": 3, - "line": 39 - } - } - } - } - }, - title: 'Components/MetadataCard' -}); -var MetadataCard = function MetadataCard() { - return /*#__PURE__*/function (_lng$Component) { - MetadataCard_stories_inherits(MetadataCard, _lng$Component); - var _super = MetadataCard_stories_createSuper(MetadataCard); - function MetadataCard() { - MetadataCard_stories_classCallCheck(this, MetadataCard); - return _super.apply(this, arguments); - } - MetadataCard_stories_createClass(MetadataCard, null, [{ - key: "_template", - value: function _template() { - return { - MetadataCard: { - type: MetadataCard_MetadataCard - } - }; - } - }]); - return MetadataCard; - }(lightning_esm/* default */.A.Component); -}; -MetadataCard.storyName = 'MetadataCard'; -MetadataCard.args = { - w: 400, - title: 'Title', - details: ['94%', { - icon: ic_lightning_white_32, - style: { - color: utils/* default.getHexColor */.Ay.getHexColor('00ff00') - }, - title: 'Green Lightning Bolt' - }, '86%', { - icon: 'http://myriad.merlin.comcast.com/select/logo?entityId=8527084350383982239&width=32&height=&ratio=1x1&trim=false', - title: 'Rotten Tomatoes rating' - }], - description: 'Description', - logo: circle, - logoTitle: 'Logo title', - logoPosition: 'right', - mode: 'unfocused' -}; -MetadataCard.argTypes = _objectSpread(_objectSpread({}, (0,docs_utils/* createModeControl */.Pg)({ - summaryValue: MetadataCard.args.mode -})), {}, { - w: { - control: 'number', - description: 'Width of component', - table: { - defaultValue: { - summary: 400 - } - } - }, - title: { - control: 'text', - description: 'Title text', - table: { - defaultValue: { - summary: 'undefined' - } - } - }, - details: { - control: 'text', - description: 'Details content', - table: { - defaultValue: { - summary: 'undefined' - } - } - }, - description: { - control: 'text', - description: 'Description text', - table: { - defaultValue: { - summary: 'undefined' - } - } - }, - logo: { - options: ['none', circle], - control: 'select', - description: 'Image to use for logo', - table: { - defaultValue: { - summary: 'none' - } - } - }, - logoTitle: { - control: 'text', - description: 'Title to use for logo in announcer', - table: { - defaultValue: { - summary: 'undefined' - } - } - }, - logoPosition: { - options: ['right', 'left'], - control: 'select', - description: 'Position logo on the left/right side', - table: { - defaultValue: { - summary: 'right' - } - } - } -}); -MetadataCard.parameters = { - ...MetadataCard.parameters, - docs: { - ...MetadataCard.parameters?.docs, - source: { - originalSource: "() => class MetadataCard extends lng.Component {\n static _template() {\n return {\n MetadataCard: {\n type: MetadataCardComponent\n }\n };\n }\n}", - ...MetadataCard.parameters?.docs?.source - } - } -};;const __namedExportsOrder = ["MetadataCard"]; - -/***/ }), - -/***/ "../../@lightningjs/ui-components/src/docs/utils.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Pg: () => (/* binding */ createModeControl), -/* harmony export */ cY: () => (/* binding */ DocsLink), -/* harmony export */ jb: () => (/* binding */ generateSubStory) -/* harmony export */ }); -/* unused harmony exports nestedArgs, nestedArgTypes, prevValues, nestedArgActions, Item, ObjectFormat, GenericType */ -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/react/index.js"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } -function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - -// eslint-disable-next-line no-unused-vars - - - -// creates Mode control on stories -var createModeControl = function createModeControl() { - var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, - options = _ref.options, - summaryValue = _ref.summaryValue; - return { - mode: { - control: 'radio', - options: options && Array.isArray(options) ? ['unfocused'].concat(_toConsumableArray(options)) : ['unfocused', 'focused', 'disabled'], - description: 'Sets the visual mode for the component', - table: { - defaultValue: { - summary: summaryValue - } - }, - type: { - name: 'string', - required: true - } - } - }; -}; - -/** - * @param {object} config Parameters for generating nested args: { argsObj, targetProp, include, overrides } - */ -function nestedArgs(config) { - var argsObj = config.argsObj, - targetProp = config.targetProp, - include = config.include, - overrides = config.overrides; - return Object.keys(argsObj).reduce(function (acc, curr) { - if (!include.includes(curr)) return acc; - return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, targetProp + '_' + curr, overrides.args && overrides.args[curr] || argsObj[curr])); - }, {}); -} - -/** - * @param {object} config Parameters for generating nested arg types: { argsObj, targetProp, include, overrides } - */ -function nestedArgTypes(config) { - var argTypesObj = config.argTypesObj, - targetProp = config.targetProp, - include = config.include, - overrides = config.overrides; - return Object.keys(argTypesObj).reduce(function (acc, curr) { - if (!include.includes(curr)) return acc; - return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, targetProp + '_' + curr, _objectSpread(_objectSpread(_objectSpread({ - // Namespaced to avoid conflicts - name: curr - }, argTypesObj[curr]), overrides[curr]), {}, { - table: _objectSpread(_objectSpread(_objectSpread({}, argTypesObj[curr].table || {}), overrides[curr] && overrides[curr].table), {}, { - category: targetProp - }) - }))); - }, {}); -} -var prevValues = {}; - -/** - * @param {object} config Parameters for generating nested arg actions: { componentName, argsTypeObj, targetProp, include, overrides } - */ -function nestedArgActions(config) { - var componentName = config.componentName, - argTypesObj = config.argTypesObj, - targetProp = config.targetProp, - include = config.include, - overrides = config.overrides; - return Object.keys(argTypesObj).reduce(function (acc, curr) { - if (!include.includes(curr)) return acc; - return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, targetProp + '_' + curr, function (value, component) { - component.tag(componentName).patch(_defineProperty({}, targetProp, _objectSpread(_objectSpread({}, prevValues[targetProp]), {}, _defineProperty({}, curr.replace(targetProp + '_', ''), value === 'none' ? undefined : overrides && overrides[curr] || value)))); - // Allow patching to work with nested objects - if (!prevValues[targetProp]) { - prevValues[targetProp] = {}; - } - prevValues[targetProp][curr.replace(targetProp + '_', '')] = value === 'none' ? undefined : overrides && overrides[curr] || value; - })); - }, {}); -} - -/** - * @param {object} config Parameters for generating story: { componentName, baseStory, subStory, targetProperty, include, options } - */ -function generateSubStory(config) { - config.baseStory.args = _objectSpread(_objectSpread({}, config.baseStory.args), nestedArgs({ - argsObj: config.subStory.args || {}, - targetProp: config.targetProperty, - include: config.include, - overrides: config.overrides && config.overrides.args || {} - })); - config.baseStory.argTypes = _objectSpread(_objectSpread({}, config.baseStory.argTypes), nestedArgTypes({ - argTypesObj: config.subStory.argTypes || {}, - targetProp: config.targetProperty, - include: config.include, - overrides: config.overrides && config.overrides.argTypes || {} - })); - if (!(config.baseStory && config.baseStory.parameters && config.baseStory.parameters.argActions)) { - config.baseStory.parameters = { - argActions: {} - }; - } - config.baseStory.parameters.argActions = _objectSpread(_objectSpread({}, config.baseStory.parameters.argActions), nestedArgActions({ - componentName: config.componentName, - argTypesObj: config.subStory.argTypes || {}, - targetProp: config.targetProperty, - include: config.include, - overrides: config.overrides && config.overrides.argActions || {} - })); -} - -// used to create links to Lightning docs given an id -var DocsLink = function DocsLink(_ref2) { - var children = _ref2.children, - id = _ref2.id; - var docsmap = { - lng: { - _base: 'https://rdkcentral.github.io/Lightning/docs', - Component: '/components/overview', - Text: '/textures/text', - Transition: '/transitions/attributes' - } - }; - var _id$split = id.split('.'), - _id$split2 = _slicedToArray(_id$split, 2), - source = _id$split2[0], - path = _id$split2[1]; - var href = docsmap[source]._base + docsmap[source][path]; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("a", { - href: href, - target: "_blank" - }, children || id); -}; -var Item = function Item(_ref3) { - var children = _ref3.children; - return children; -}; - -/** - * Creates formatted object for markdown prop tables - * see Column and Row stories - * @param {object} props - * @param {object} props.type - TS-style generic/utility type - */ -var ObjectFormat = function ObjectFormat(_ref4) { - var object = _ref4.object; - return ['{', /*#__PURE__*/React.createElement("br", null), ' '].concat(_toConsumableArray(utils.flatten(Object.entries(object).map(function (_ref5) { - var _ref6 = _slicedToArray(_ref5, 2), - k = _ref6[0], - v = _ref6[1]; - return [/*#__PURE__*/React.createElement("span", null, "\xA0\xA0"), "".concat(k, ": "), v, ',', /*#__PURE__*/React.createElement("br", null)]; - }))), ['}']).map(function (x, i) { - return /*#__PURE__*/React.createElement(Item, { - key: i - }, x); - }); -}; - -/** - * Formats TS-style generic types - * See Columns and Row stories - * @param {object} props - * @param {object} props.children - component children - * @param {string} props.type - Name of generic type - */ -var GenericType = function GenericType(_ref7) { - var children = _ref7.children, - type = _ref7.type; - return [type, '<', children, '>'].map(function (x, i) { - return /*#__PURE__*/React.createElement(Item, { - key: i - }, x); - }); -}; - -/***/ }), - -/***/ "../../@lightningjs/ui-components/src/assets/images/circle.svg": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -module.exports = __webpack_require__.p + "static/media/circle.6029db37.svg"; - -/***/ }), - -/***/ "../../@lightningjs/ui-components/src/assets/images/ic_lightning_white_32.png": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -module.exports = __webpack_require__.p + "static/media/ic_lightning_white_32.06aecfeb.png"; - -/***/ }) - -}]); -//# sourceMappingURL=4917.28d0fb56.iframe.bundle.js.map \ No newline at end of file diff --git a/4917.28d0fb56.iframe.bundle.js.map b/4917.28d0fb56.iframe.bundle.js.map deleted file mode 100644 index b5e17aaf8..000000000 --- a/4917.28d0fb56.iframe.bundle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"4917.28d0fb56.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA;AACA;AAAA;AAAA;AAAA;;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACzVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAKA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAGA;AACA;AAAA;AAGA;AAGA;AAAA;AACA;AAGA;AACA;AAEA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAGA;AASA;AACA;AACA;AACA;AACA;AAIA;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAGA;AAGA;AACA;AACA;AACA;AACA;AAGA;AAOA;AACA;AACA;AACA;AAEA;AAGA;AACA;AACA;AACA;AACA;AACA;AAEA;;AAEA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAIA;AAEA;AAAA;AAAA;AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAKA;AAAA;AAAA;AAAA;AAMA;AAGA;AAAA;AAAA;AAAA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AACA","sources":["webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/MetadataCard/MetadataCard.js","webpack://lightning-ui-docs/","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/docs/utils.js"],"sourcesContent":["/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport MetadataBase from '../MetadataBase';\n\nexport default class MetadataCard extends MetadataBase {\n static get __componentName() {\n return 'MetadataCard';\n }\n}\n",null,"/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// eslint-disable-next-line no-unused-vars\nimport React from 'react';\nimport utils from '../utils';\n\n// creates Mode control on stories\nexport const createModeControl = ({ options, summaryValue } = {}) => {\n return {\n mode: {\n control: 'radio',\n options:\n options && Array.isArray(options)\n ? ['unfocused', ...options]\n : ['unfocused', 'focused', 'disabled'],\n description: 'Sets the visual mode for the component',\n table: {\n defaultValue: { summary: summaryValue }\n },\n type: { name: 'string', required: true }\n }\n };\n};\n\n/**\n * @param {object} config Parameters for generating nested args: { argsObj, targetProp, include, overrides }\n */\nexport function nestedArgs(config) {\n const { argsObj, targetProp, include, overrides } = config;\n return Object.keys(argsObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]:\n (overrides.args && overrides.args[curr]) || argsObj[curr]\n };\n }, {});\n}\n\n/**\n * @param {object} config Parameters for generating nested arg types: { argsObj, targetProp, include, overrides }\n */\nexport function nestedArgTypes(config) {\n const { argTypesObj, targetProp, include, overrides } = config;\n return Object.keys(argTypesObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]: {\n // Namespaced to avoid conflicts\n name: curr,\n ...argTypesObj[curr],\n ...overrides[curr],\n table: {\n ...(argTypesObj[curr].table || {}),\n ...(overrides[curr] && overrides[curr].table),\n category: targetProp\n }\n }\n };\n }, {});\n}\n\nexport const prevValues = {};\n\n/**\n * @param {object} config Parameters for generating nested arg actions: { componentName, argsTypeObj, targetProp, include, overrides }\n */\nexport function nestedArgActions(config) {\n const { componentName, argTypesObj, targetProp, include, overrides } = config;\n return Object.keys(argTypesObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]: (value, component) => {\n component.tag(componentName).patch({\n [targetProp]: {\n ...prevValues[targetProp],\n [curr.replace(targetProp + '_', '')]:\n value === 'none'\n ? undefined\n : (overrides && overrides[curr]) || value // There are issues with merging objects here\n }\n });\n // Allow patching to work with nested objects\n if (!prevValues[targetProp]) {\n prevValues[targetProp] = {};\n }\n prevValues[targetProp][curr.replace(targetProp + '_', '')] =\n value === 'none'\n ? undefined\n : (overrides && overrides[curr]) || value;\n }\n };\n }, {});\n}\n\n/**\n * @param {object} config Parameters for generating story: { componentName, baseStory, subStory, targetProperty, include, options }\n */\nexport function generateSubStory(config) {\n config.baseStory.args = {\n ...config.baseStory.args,\n ...nestedArgs({\n argsObj: config.subStory.args || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.args) || {}\n })\n };\n\n config.baseStory.argTypes = {\n ...config.baseStory.argTypes,\n ...nestedArgTypes({\n argTypesObj: config.subStory.argTypes || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.argTypes) || {}\n })\n };\n\n if (\n !(\n config.baseStory &&\n config.baseStory.parameters &&\n config.baseStory.parameters.argActions\n )\n ) {\n config.baseStory.parameters = {\n argActions: {}\n };\n }\n\n config.baseStory.parameters.argActions = {\n ...config.baseStory.parameters.argActions,\n ...nestedArgActions({\n componentName: config.componentName,\n argTypesObj: config.subStory.argTypes || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.argActions) || {}\n })\n };\n}\n\n// used to create links to Lightning docs given an id\nexport const DocsLink = ({ children, id }) => {\n const docsmap = {\n lng: {\n _base: 'https://rdkcentral.github.io/Lightning/docs',\n Component: '/components/overview',\n Text: '/textures/text',\n Transition: '/transitions/attributes'\n }\n };\n const [source, path] = id.split('.');\n const href = docsmap[source]._base + docsmap[source][path];\n return (\n \n {children || id}\n \n );\n};\n\nexport const Item = ({ children }) => children;\n\n/**\n * Creates formatted object for markdown prop tables\n * see Column and Row stories\n * @param {object} props\n * @param {object} props.type - TS-style generic/utility type\n */\nexport const ObjectFormat = ({ object }) => {\n return [\n '{',\n
,\n ' ',\n ...utils.flatten(\n Object.entries(object).map(([k, v]) => [\n   ,\n `${k}: `,\n v,\n ',',\n
\n ])\n ),\n '}'\n ].map((x, i) => {x});\n};\n\n/**\n * Formats TS-style generic types\n * See Columns and Row stories\n * @param {object} props\n * @param {object} props.children - component children\n * @param {string} props.type - Name of generic type\n */\nexport const GenericType = ({ children, type }) => {\n return [type, '<', children, '>'].map((x, i) => {x});\n};\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/5063.f57969fd.iframe.bundle.js b/5063.f57969fd.iframe.bundle.js deleted file mode 100644 index aed817d5d..000000000 --- a/5063.f57969fd.iframe.bundle.js +++ /dev/null @@ -1,555 +0,0 @@ -"use strict"; -(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[5063],{ - -/***/ "../../@lightningjs/ui-components/src/components/Radio/Radio.stories.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Radio: () => (/* binding */ Radio), -/* harmony export */ __namedExportsOrder: () => (/* binding */ __namedExportsOrder), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); -/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Radio/Radio.js"); -/* harmony import */ var _docs_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("../../@lightningjs/ui-components/src/docs/utils.js"); -function _typeof(o) { - "@babel/helpers - typeof"; - - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { - return typeof o; - } : function (o) { - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; - }, _typeof(o); -} -function ownKeys(e, r) { - var t = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(e); - r && (o = o.filter(function (r) { - return Object.getOwnPropertyDescriptor(e, r).enumerable; - })), t.push.apply(t, o); - } - return t; -} -function _objectSpread(e) { - for (var r = 1; r < arguments.length; r++) { - var t = null != arguments[r] ? arguments[r] : {}; - r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { - _defineProperty(e, r, t[r]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); - }); - } - return e; -} -function _defineProperty(obj, key, value) { - key = _toPropertyKey(key); - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); - } -} -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { - writable: false - }); - return Constructor; -} -function _toPropertyKey(t) { - var i = _toPrimitive(t, "string"); - return "symbol" == _typeof(i) ? i : String(i); -} -function _toPrimitive(t, r) { - if ("object" != _typeof(t) || !t) return t; - var e = t[Symbol.toPrimitive]; - if (void 0 !== e) { - var i = e.call(t, r || "default"); - if ("object" != _typeof(i)) return i; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return ("string" === r ? String : Number)(t); -} -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { - writable: false - }); - if (superClass) _setPrototypeOf(subClass, superClass); -} -function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); -} -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); - }; -} -function _possibleConstructorReturn(self, call) { - if (call && (_typeof(call) === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { - throw new TypeError("Derived constructors may only return object or undefined"); - } - return _assertThisInitialized(self); -} -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - return self; -} -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; - } -} -function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); -} -/* eslint-disable */ -// @ts-nocheck -// @ts-expect-error (Converted from ts-ignore) -var __STORY__ = "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport { default as RadioComponent } from '.';\nimport { createModeControl } from '../../docs/utils';\n\nexport default {\n title: 'Components/Radio/Radio'\n};\n\nexport const Radio = () =>\n class Radio extends lng.Component {\n static _template() {\n return {\n Radio: {\n type: RadioComponent\n }\n };\n }\n };\nRadio.args = { checked: false, mode: 'unfocused' };\nRadio.argTypes = {\n ...createModeControl({ summaryValue: 'unfocused' }),\n checked: {\n control: 'boolean',\n description: 'Toggles checked between on and off',\n table: { defaultValue: { summary: false } }\n }\n};\n"; -// @ts-expect-error (Converted from ts-ignore) -var __LOCATIONS_MAP__ = { - "Radio": { - "startLoc": { - "col": 21, - "line": 27 - }, - "endLoc": { - "col": 3, - "line": 36 - }, - "startBody": { - "col": 21, - "line": 27 - }, - "endBody": { - "col": 3, - "line": 36 - } - } -}; - -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - - - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ - parameters: { - "storySource": { - "source": "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport { default as RadioComponent } from '.';\nimport { createModeControl } from '../../docs/utils';\n\nexport default {\n title: 'Components/Radio/Radio'\n};\n\nexport const Radio = () =>\n class Radio extends lng.Component {\n static _template() {\n return {\n Radio: {\n type: RadioComponent\n }\n };\n }\n };\nRadio.args = { checked: false, mode: 'unfocused' };\nRadio.argTypes = {\n ...createModeControl({ summaryValue: 'unfocused' }),\n checked: {\n control: 'boolean',\n description: 'Toggles checked between on and off',\n table: { defaultValue: { summary: false } }\n }\n};\n", - "locationsMap": { - "radio": { - "startLoc": { - "col": 21, - "line": 27 - }, - "endLoc": { - "col": 3, - "line": 36 - }, - "startBody": { - "col": 21, - "line": 27 - }, - "endBody": { - "col": 3, - "line": 36 - } - } - } - } - }, - title: 'Components/Radio/Radio' -}); -var Radio = function Radio() { - return /*#__PURE__*/function (_lng$Component) { - _inherits(Radio, _lng$Component); - var _super = _createSuper(Radio); - function Radio() { - _classCallCheck(this, Radio); - return _super.apply(this, arguments); - } - _createClass(Radio, null, [{ - key: "_template", - value: function _template() { - return { - Radio: { - type: ___WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A - } - }; - } - }]); - return Radio; - }(_lightningjs_core__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.Component); -}; -Radio.args = { - checked: false, - mode: 'unfocused' -}; -Radio.argTypes = _objectSpread(_objectSpread({}, (0,_docs_utils__WEBPACK_IMPORTED_MODULE_2__/* .createModeControl */ .Pg)({ - summaryValue: 'unfocused' -})), {}, { - checked: { - control: 'boolean', - description: 'Toggles checked between on and off', - table: { - defaultValue: { - summary: false - } - } - } -}); -Radio.parameters = { - ...Radio.parameters, - docs: { - ...Radio.parameters?.docs, - source: { - originalSource: "() => class Radio extends lng.Component {\n static _template() {\n return {\n Radio: {\n type: RadioComponent\n }\n };\n }\n}", - ...Radio.parameters?.docs?.source - } - } -};;const __namedExportsOrder = ["Radio"]; - -/***/ }), - -/***/ "../../@lightningjs/ui-components/src/components/Radio/Radio.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - A: () => (/* binding */ Radio) -}); - -// NAMESPACE OBJECT: ../../@lightningjs/ui-components/src/components/Radio/Radio.styles.js -var Radio_styles_namespaceObject = {}; -__webpack_require__.r(Radio_styles_namespaceObject); -__webpack_require__.d(Radio_styles_namespaceObject, { - base: () => (base), - mode: () => (mode), - tone: () => (tone) -}); - -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/components/Base/Base.js + 2 modules -var Base = __webpack_require__("../../@lightningjs/ui-components/src/components/Base/Base.js"); -// EXTERNAL MODULE: ../../../node_modules/@lightningjs/core/dist/lightning.esm.js -var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/Radio/Radio.styles.js -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - -var base = function base(theme) { - var size = theme.spacer.xxl; - return { - alpha: theme.alpha.primary, - width: size, - height: size, - knobHeight: size / 2, - knobWidth: size / 2, - radius: size / 2, - strokeWidth: theme.stroke.sm - }; -}; -var tone = function tone(theme) { - return { - neutral: { - backgroundColor: theme.color.fillInverseSecondary, - backgroundColorChecked: theme.color.fillNeutral, - knobColor: theme.color.fillInverse, - strokeColor: theme.color.strokeNeutralSecondary - }, - inverse: { - backgroundColor: theme.color.fillNeutralSecondary, - backgroundColorChecked: theme.color.fillInverse, - knobColor: theme.color.fillNeutral, - strokeColor: theme.color.strokeInverseSecondary - }, - brand: { - backgroundColor: theme.color.fillNeutralSecondary, - backgroundColorChecked: theme.color.fillBrand, - knobColor: theme.color.fillInverse, - strokeColor: theme.color.strokeNeutralSecondary - } - }; -}; -var mode = function mode(theme) { - return { - disabled: { - alpha: theme.alpha.inactive - } - }; -}; -// EXTERNAL MODULE: ../../@lightningjs/ui-components/src/utils/index.js -var utils = __webpack_require__("../../@lightningjs/ui-components/src/utils/index.js"); -;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/Radio/Radio.js -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function set(target, property, value, receiver) { if (typeof Reflect !== "undefined" && Reflect.set) { set = Reflect.set; } else { set = function set(target, property, value, receiver) { var base = _superPropBase(target, property); var desc; if (base) { desc = Object.getOwnPropertyDescriptor(base, property); if (desc.set) { desc.set.call(receiver, value); return true; } else if (!desc.writable) { return false; } } desc = Object.getOwnPropertyDescriptor(receiver, property); if (desc) { if (!desc.writable) { return false; } desc.value = value; Object.defineProperty(receiver, property, desc); } else { _defineProperty(receiver, property, value); } return true; }; } return set(target, property, value, receiver); } -function _set(target, property, value, receiver, isStrict) { var s = set(target, property, value, receiver || target); if (!s && isStrict) { throw new TypeError('failed to set property'); } return value; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - - - - -var Radio = /*#__PURE__*/function (_Base) { - _inherits(Radio, _Base); - var _super = _createSuper(Radio); - function Radio() { - _classCallCheck(this, Radio); - return _super.apply(this, arguments); - } - _createClass(Radio, [{ - key: "_update", - value: function _update() { - this._updateBody(); - this._updateStroke(); - this._updateKnob(); - if (this._checkedChanged) { - this.fireAncestors('$announce', this.announce); - this._checkedChanged = false; - } - this._updateOpacity(); - } - }, { - key: "_updateBody", - value: function _updateBody() { - var bodyColor = this.checked ? this.style.backgroundColorChecked : this.style.backgroundColor; - var width = this.w - this.style.strokeWidth * 2 - 2; - var height = this.h - this.style.strokeWidth * 2 - 2; - this._Body.patch({ - texture: lightning_esm/* default */.A.Tools.getRoundRect( - // Compensating for the extra 2 pixels getRoundRect adds - width, height, (0,utils/* getMaxRoundRadius */.XG)(this.style.radius, width, height, this.style.strokeWidth * 2 - 2), null, null, true, bodyColor) - }); - } - }, { - key: "_updateStroke", - value: function _updateStroke() { - this._Stroke.patch({ - // Compensating for the extra 2 pixels getRoundRect adds - texture: lightning_esm/* default */.A.Tools.getRoundRect(this.w - 2, this.h - 2, (0,utils/* getMaxRoundRadius */.XG)(this.style.radius, this.w, this.h), this.style.strokeWidth, this.style.strokeColor, false) - }); - } - }, { - key: "_updateKnob", - value: function _updateKnob() { - this._Knob.patch({ - texture: lightning_esm/* default */.A.Tools.getRoundRect(this.style.knobWidth, this.style.knobHeight, this.style.knobWidth / 2, null, null, true, this.style.knobColor) - }); - this.applySmooth(this._Knob, { - alpha: this.checked ? 1 : 0 - }); - } - }, { - key: "_updateOpacity", - value: function _updateOpacity() { - this.applySmooth(this, { - alpha: this.style.alpha - }); - } - }, { - key: "_setChecked", - value: function _setChecked(checked) { - this._checkedChanged = checked !== this._checked; - return checked; - } - }, { - key: "toggle", - value: function toggle() { - if (!this._isDisabledMode) { - this.checked = !this.checked; - } - return this; - } - }, { - key: "_handleEnter", - value: function _handleEnter() { - if (typeof this.onEnter === 'function') { - return this.onEnter(this); - } else { - this.toggle(); - } - return false; - } - }, { - key: "announce", - get: function get() { - return this._announce || (this.checked ? 'Checked' : 'Unchecked'); - }, - set: function set(announce) { - _set(_getPrototypeOf(Radio.prototype), "announce", announce, this, true); - } - }], [{ - key: "__componentName", - get: function get() { - return 'Radio'; - } - }, { - key: "__themeStyle", - get: function get() { - return Radio_styles_namespaceObject; - } - }, { - key: "_template", - value: function _template() { - var center = { - mount: 0.5, - x: function x(w) { - return w / 2; - }, - y: function y(h) { - return h / 2; - } - }; - return { - Body: _objectSpread(_objectSpread({ - rtt: true - }, center), {}, { - Knob: _objectSpread(_objectSpread({}, center), {}, { - alpha: 0 - }) - }), - Stroke: center - }; - } - }, { - key: "tags", - get: function get() { - return ['Knob', 'Body', 'Stroke']; - } - }, { - key: "properties", - get: function get() { - return ['checked']; - } - }]); - return Radio; -}(Base/* default */.A); - - -/***/ }) - -}]); -//# sourceMappingURL=5063.f57969fd.iframe.bundle.js.map \ No newline at end of file diff --git a/5063.f57969fd.iframe.bundle.js.map b/5063.f57969fd.iframe.bundle.js.map deleted file mode 100644 index ed934a586..000000000 --- a/5063.f57969fd.iframe.bundle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"5063.f57969fd.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;AC9QA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;ACtDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AAIA;AACA;AAEA;AACA;AACA;AACA;AAaA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAQA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AASA;AAEA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAOA;AACA;AAAA;AALA;AACA;AAAA;AAAA;AAAA;AA9HA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAEA;AAEA;AAAA;AACA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AAAA;AAAA;AAAA","sources":["webpack://lightning-ui-docs/","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Radio/Radio.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Radio/Radio.js"],"sourcesContent":[null,"/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => {\n const size = theme.spacer.xxl;\n return {\n alpha: theme.alpha.primary,\n width: size,\n height: size,\n knobHeight: size / 2,\n knobWidth: size / 2,\n radius: size / 2,\n strokeWidth: theme.stroke.sm\n };\n};\n\nexport const tone = theme => ({\n neutral: {\n backgroundColor: theme.color.fillInverseSecondary,\n backgroundColorChecked: theme.color.fillNeutral,\n knobColor: theme.color.fillInverse,\n strokeColor: theme.color.strokeNeutralSecondary\n },\n inverse: {\n backgroundColor: theme.color.fillNeutralSecondary,\n backgroundColorChecked: theme.color.fillInverse,\n knobColor: theme.color.fillNeutral,\n strokeColor: theme.color.strokeInverseSecondary\n },\n brand: {\n backgroundColor: theme.color.fillNeutralSecondary,\n backgroundColorChecked: theme.color.fillBrand,\n knobColor: theme.color.fillInverse,\n strokeColor: theme.color.strokeNeutralSecondary\n }\n});\n\nexport const mode = theme => ({\n disabled: { alpha: theme.alpha.inactive }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport Base from '../Base';\nimport lng from '@lightningjs/core';\nimport * as styles from './Radio.styles';\nimport { getMaxRoundRadius } from '../../utils';\n\nexport default class Radio extends Base {\n static get __componentName() {\n return 'Radio';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static _template() {\n const center = { mount: 0.5, x: w => w / 2, y: h => h / 2 };\n return {\n Body: {\n rtt: true, // ensures the background color doesn't bleed into the knob when disabled\n ...center,\n Knob: {\n ...center,\n alpha: 0\n }\n },\n Stroke: center\n };\n }\n\n static get tags() {\n return ['Knob', 'Body', 'Stroke'];\n }\n static get properties() {\n return ['checked'];\n }\n\n _update() {\n this._updateBody();\n this._updateStroke();\n this._updateKnob();\n if (this._checkedChanged) {\n this.fireAncestors('$announce', this.announce);\n this._checkedChanged = false;\n }\n this._updateOpacity();\n }\n\n _updateBody() {\n const bodyColor = this.checked\n ? this.style.backgroundColorChecked\n : this.style.backgroundColor;\n\n const width = this.w - this.style.strokeWidth * 2 - 2;\n const height = this.h - this.style.strokeWidth * 2 - 2;\n\n this._Body.patch({\n texture: lng.Tools.getRoundRect(\n // Compensating for the extra 2 pixels getRoundRect adds\n width,\n height,\n getMaxRoundRadius(\n this.style.radius,\n width,\n height,\n this.style.strokeWidth * 2 - 2\n ),\n null,\n null,\n true,\n bodyColor\n )\n });\n }\n\n _updateStroke() {\n this._Stroke.patch({\n // Compensating for the extra 2 pixels getRoundRect adds\n texture: lng.Tools.getRoundRect(\n this.w - 2,\n this.h - 2,\n getMaxRoundRadius(this.style.radius, this.w, this.h),\n this.style.strokeWidth,\n this.style.strokeColor,\n false\n )\n });\n }\n\n _updateKnob() {\n this._Knob.patch({\n texture: lng.Tools.getRoundRect(\n this.style.knobWidth,\n this.style.knobHeight,\n this.style.knobWidth / 2,\n null,\n null,\n true,\n this.style.knobColor\n )\n });\n\n this.applySmooth(this._Knob, {\n alpha: this.checked ? 1 : 0\n });\n }\n\n _updateOpacity() {\n this.applySmooth(this, { alpha: this.style.alpha });\n }\n\n _setChecked(checked) {\n this._checkedChanged = checked !== this._checked;\n return checked;\n }\n\n toggle() {\n if (!this._isDisabledMode) {\n this.checked = !this.checked;\n }\n return this;\n }\n\n _handleEnter() {\n if (typeof this.onEnter === 'function') {\n return this.onEnter(this);\n } else {\n this.toggle();\n }\n return false;\n }\n\n set announce(announce) {\n super.announce = announce;\n }\n\n get announce() {\n return this._announce || (this.checked ? 'Checked' : 'Unchecked');\n }\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/21.cdd051ec.iframe.bundle.js b/5316.5e571007.iframe.bundle.js similarity index 55% rename from 21.cdd051ec.iframe.bundle.js rename to 5316.5e571007.iframe.bundle.js index 9b72129d1..5f6839517 100644 --- a/21.cdd051ec.iframe.bundle.js +++ b/5316.5e571007.iframe.bundle.js @@ -1,5 +1,230 @@ "use strict"; -(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[21],{ +(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[5316,6115,4827,287],{ + +/***/ "../../@lightningjs/ui-components/src/docs/utils.js": +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ Pg: () => (/* binding */ createModeControl), +/* harmony export */ cY: () => (/* binding */ DocsLink), +/* harmony export */ jb: () => (/* binding */ generateSubStory) +/* harmony export */ }); +/* unused harmony exports nestedArgs, nestedArgTypes, prevValues, nestedArgActions, Item, ObjectFormat, GenericType */ +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/react/index.js"); +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); } +function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } +function _arrayWithHoles(r) { if (Array.isArray(r)) return r; } +function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } +function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } +function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } +function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); } +function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } +function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); } +function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); } +function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } +/** + * Copyright 2023 Comcast Cable Communications Management, LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */ + +// eslint-disable-next-line no-unused-vars + + + +// creates Mode control on stories +var createModeControl = function createModeControl() { + var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, + options = _ref.options, + summaryValue = _ref.summaryValue; + return { + mode: { + control: 'radio', + options: options && Array.isArray(options) ? ['unfocused'].concat(_toConsumableArray(options)) : ['unfocused', 'focused', 'disabled'], + description: 'Sets the visual mode for the component', + table: { + defaultValue: { + summary: summaryValue + } + }, + type: { + name: 'string', + required: true + } + } + }; +}; + +/** + * @param {object} config Parameters for generating nested args: { argsObj, targetProp, include, overrides } + */ +function nestedArgs(config) { + var argsObj = config.argsObj, + targetProp = config.targetProp, + include = config.include, + overrides = config.overrides; + return Object.keys(argsObj).reduce(function (acc, curr) { + if (!include.includes(curr)) return acc; + return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, targetProp + '_' + curr, overrides.args && overrides.args[curr] || argsObj[curr])); + }, {}); +} + +/** + * @param {object} config Parameters for generating nested arg types: { argsObj, targetProp, include, overrides } + */ +function nestedArgTypes(config) { + var argTypesObj = config.argTypesObj, + targetProp = config.targetProp, + include = config.include, + overrides = config.overrides; + return Object.keys(argTypesObj).reduce(function (acc, curr) { + if (!include.includes(curr)) return acc; + return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, targetProp + '_' + curr, _objectSpread(_objectSpread(_objectSpread({ + // Namespaced to avoid conflicts + name: curr + }, argTypesObj[curr]), overrides[curr]), {}, { + table: _objectSpread(_objectSpread(_objectSpread({}, argTypesObj[curr].table || {}), overrides[curr] && overrides[curr].table), {}, { + category: targetProp + }) + }))); + }, {}); +} +var prevValues = {}; + +/** + * @param {object} config Parameters for generating nested arg actions: { componentName, argsTypeObj, targetProp, include, overrides } + */ +function nestedArgActions(config) { + var componentName = config.componentName, + argTypesObj = config.argTypesObj, + targetProp = config.targetProp, + include = config.include, + overrides = config.overrides; + return Object.keys(argTypesObj).reduce(function (acc, curr) { + if (!include.includes(curr)) return acc; + return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, targetProp + '_' + curr, function (value, component) { + component.tag(componentName).patch(_defineProperty({}, targetProp, _objectSpread(_objectSpread({}, prevValues[targetProp]), {}, _defineProperty({}, curr.replace(targetProp + '_', ''), value === 'none' ? undefined : overrides && overrides[curr] || value)))); + // Allow patching to work with nested objects + if (!prevValues[targetProp]) { + prevValues[targetProp] = {}; + } + prevValues[targetProp][curr.replace(targetProp + '_', '')] = value === 'none' ? undefined : overrides && overrides[curr] || value; + })); + }, {}); +} + +/** + * @param {object} config Parameters for generating story: { componentName, baseStory, subStory, targetProperty, include, options } + */ +function generateSubStory(config) { + config.baseStory.args = _objectSpread(_objectSpread({}, config.baseStory.args), nestedArgs({ + argsObj: config.subStory.args || {}, + targetProp: config.targetProperty, + include: config.include, + overrides: config.overrides && config.overrides.args || {} + })); + config.baseStory.argTypes = _objectSpread(_objectSpread({}, config.baseStory.argTypes), nestedArgTypes({ + argTypesObj: config.subStory.argTypes || {}, + targetProp: config.targetProperty, + include: config.include, + overrides: config.overrides && config.overrides.argTypes || {} + })); + if (!(config.baseStory && config.baseStory.parameters && config.baseStory.parameters.argActions)) { + config.baseStory.parameters = { + argActions: {} + }; + } + config.baseStory.parameters.argActions = _objectSpread(_objectSpread({}, config.baseStory.parameters.argActions), nestedArgActions({ + componentName: config.componentName, + argTypesObj: config.subStory.argTypes || {}, + targetProp: config.targetProperty, + include: config.include, + overrides: config.overrides && config.overrides.argActions || {} + })); +} + +// used to create links to Lightning docs given an id +var DocsLink = function DocsLink(_ref2) { + var children = _ref2.children, + id = _ref2.id; + var docsmap = { + lng: { + _base: 'https://rdkcentral.github.io/Lightning/docs', + Component: '/components/overview', + Text: '/textures/text', + Transition: '/transitions/attributes' + } + }; + var _id$split = id.split('.'), + _id$split2 = _slicedToArray(_id$split, 2), + source = _id$split2[0], + path = _id$split2[1]; + var href = docsmap[source]._base + docsmap[source][path]; + return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("a", { + href: href, + target: "_blank" + }, children || id); +}; +var Item = function Item(_ref3) { + var children = _ref3.children; + return children; +}; + +/** + * Creates formatted object for markdown prop tables + * see Column and Row stories + * @param {object} props + * @param {object} props.type - TS-style generic/utility type + */ +var ObjectFormat = function ObjectFormat(_ref4) { + var object = _ref4.object; + return ['{', /*#__PURE__*/React.createElement("br", null), ' '].concat(_toConsumableArray(utils.flatten(Object.entries(object).map(function (_ref5) { + var _ref6 = _slicedToArray(_ref5, 2), + k = _ref6[0], + v = _ref6[1]; + return [/*#__PURE__*/React.createElement("span", null, "\xA0\xA0"), "".concat(k, ": "), v, ',', /*#__PURE__*/React.createElement("br", null)]; + }))), ['}']).map(function (x, i) { + return /*#__PURE__*/React.createElement(Item, { + key: i + }, x); + }); +}; + +/** + * Formats TS-style generic types + * See Columns and Row stories + * @param {object} props + * @param {object} props.children - component children + * @param {string} props.type - Name of generic type + */ +var GenericType = function GenericType(_ref7) { + var children = _ref7.children, + type = _ref7.type; + return [type, '<', children, '>'].map(function (x, i) { + return /*#__PURE__*/React.createElement(Item, { + key: i + }, x); + }); +}; + +/***/ }), /***/ "../../@lightningjs/ui-components/src/components/ListItem/ListItemPicker.stories.js": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -88,31 +313,33 @@ var Icon = __webpack_require__("../../@lightningjs/ui-components/src/components/ var Row = __webpack_require__("../../@lightningjs/ui-components/src/components/Row/Row.js"); ;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/ListItem/ListItemPicker.js function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } +function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } +function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); } +function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); } +function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function set(target, property, value, receiver) { if (typeof Reflect !== "undefined" && Reflect.set) { set = Reflect.set; } else { set = function set(target, property, value, receiver) { var base = _superPropBase(target, property); var desc; if (base) { desc = Object.getOwnPropertyDescriptor(base, property); if (desc.set) { desc.set.call(receiver, value); return true; } else if (!desc.writable) { return false; } } desc = Object.getOwnPropertyDescriptor(receiver, property); if (desc) { if (!desc.writable) { return false; } desc.value = value; Object.defineProperty(receiver, property, desc); } else { _defineProperty(receiver, property, value); } return true; }; } return set(target, property, value, receiver); } -function _set(target, property, value, receiver, isStrict) { var s = set(target, property, value, receiver || target); if (!s && isStrict) { throw new TypeError('failed to set property'); } return value; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } +function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); } +function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _superPropSet(t, e, o, r, p, f) { return _set(_getPrototypeOf(f ? t.prototype : t), e, o, r, p); } +function set(e, r, t, o) { return set = "undefined" != typeof Reflect && Reflect.set ? Reflect.set : function (e, r, t, o) { var f, i = _superPropBase(e, r); if (i) { if ((f = Object.getOwnPropertyDescriptor(i, r)).set) return f.set.call(o, t), !0; if (!f.writable) return !1; } if (f = Object.getOwnPropertyDescriptor(o, r)) { if (!f.writable) return !1; f.value = t, Object.defineProperty(o, r, f); } else _defineProperty(o, r, t); return !0; }, set(e, r, t, o); } +function _set(e, r, t, o, f) { if (!set(e, r, t, o || e) && f) throw new TypeError("failed to set property"); return t; } +function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); } -function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } +function _superPropGet(t, e, o, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), e, o); return 2 & r && "function" == typeof p ? function (t) { return p.apply(o, t); } : p; } +function _get() { return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); } +function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; } +function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } +function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); } +function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } /** * Copyright 2023 Comcast Cable Communications Management, LLC * @@ -137,29 +364,28 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g var ListItemPicker_ListItemPicker = /*#__PURE__*/function (_ListItem) { - _inherits(ListItemPicker, _ListItem); - var _super = _createSuper(ListItemPicker); function ListItemPicker() { _classCallCheck(this, ListItemPicker); - return _super.apply(this, arguments); + return _callSuper(this, ListItemPicker, arguments); } - _createClass(ListItemPicker, [{ + _inherits(ListItemPicker, _ListItem); + return _createClass(ListItemPicker, [{ key: "_onTextBoxChanged", value: function _onTextBoxChanged() { - _get(_getPrototypeOf(ListItemPicker.prototype), "_onTextBoxChanged", this).call(this); + _superPropGet(ListItemPicker, "_onTextBoxChanged", this, 3)([]); this._alignPicker(); } }, { key: "_construct", value: function _construct() { - _get(_getPrototypeOf(ListItemPicker.prototype), "_construct", this).call(this); + _superPropGet(ListItemPicker, "_construct", this, 3)([]); this._options = []; this._selectedIndex = 0; } }, { key: "_update", value: function _update() { - _get(_getPrototypeOf(ListItemPicker.prototype), "_update", this).call(this); + _superPropGet(ListItemPicker, "_update", this, 3)([]); this._updatePicker(); this._updateArrows(); this._updateArrowsAlpha(); @@ -339,7 +565,7 @@ var ListItemPicker_ListItemPicker = /*#__PURE__*/function (_ListItem) { return this.title + this.options[this.selectedIndex] + ', List Item'; }, set: function set(announce) { - _set(_getPrototypeOf(ListItemPicker.prototype), "announce", announce, this, true); + _superPropSet(ListItemPicker, "announce", announce, this, 1, 1); } }], [{ key: "__componentName", @@ -354,12 +580,12 @@ var ListItemPicker_ListItemPicker = /*#__PURE__*/function (_ListItem) { }, { key: "properties", get: function get() { - return [].concat(_toConsumableArray(_get(_getPrototypeOf(ListItemPicker), "properties", this)), ['options', 'selectedIndex']); + return [].concat(_toConsumableArray(_superPropGet(ListItemPicker, "properties", this)), ['options', 'selectedIndex']); } }, { key: "tags", get: function get() { - return [].concat(_toConsumableArray(_get(_getPrototypeOf(ListItemPicker), "tags", this)), ['LeftArrow', 'RightArrow', { + return [].concat(_toConsumableArray(_superPropGet(ListItemPicker, "tags", this)), ['LeftArrow', 'RightArrow', { name: 'Picker', path: 'Content.TextWrapper.Picker' }]); @@ -373,186 +599,11 @@ var ListItemPicker_ListItemPicker = /*#__PURE__*/function (_ListItem) { }]; } }]); - return ListItemPicker; }(ListItem/* default */.A); // EXTERNAL MODULE: ../../@lightningjs/ui-components/src/docs/utils.js var utils = __webpack_require__("../../@lightningjs/ui-components/src/docs/utils.js"); ;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/ListItem/ListItemPicker.stories.js -function ListItemPicker_stories_typeof(o) { - "@babel/helpers - typeof"; - - return ListItemPicker_stories_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { - return typeof o; - } : function (o) { - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; - }, ListItemPicker_stories_typeof(o); -} -function ListItemPicker_stories_ownKeys(e, r) { - var t = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(e); - r && (o = o.filter(function (r) { - return Object.getOwnPropertyDescriptor(e, r).enumerable; - })), t.push.apply(t, o); - } - return t; -} -function ListItemPicker_stories_objectSpread(e) { - for (var r = 1; r < arguments.length; r++) { - var t = null != arguments[r] ? arguments[r] : {}; - r % 2 ? ListItemPicker_stories_ownKeys(Object(t), !0).forEach(function (r) { - ListItemPicker_stories_defineProperty(e, r, t[r]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ListItemPicker_stories_ownKeys(Object(t)).forEach(function (r) { - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); - }); - } - return e; -} -function ListItemPicker_stories_defineProperty(obj, key, value) { - key = ListItemPicker_stories_toPropertyKey(key); - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} -function ListItemPicker_stories_classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} -function ListItemPicker_stories_defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, ListItemPicker_stories_toPropertyKey(descriptor.key), descriptor); - } -} -function ListItemPicker_stories_createClass(Constructor, protoProps, staticProps) { - if (protoProps) ListItemPicker_stories_defineProperties(Constructor.prototype, protoProps); - if (staticProps) ListItemPicker_stories_defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { - writable: false - }); - return Constructor; -} -function ListItemPicker_stories_toPropertyKey(t) { - var i = ListItemPicker_stories_toPrimitive(t, "string"); - return "symbol" == ListItemPicker_stories_typeof(i) ? i : String(i); -} -function ListItemPicker_stories_toPrimitive(t, r) { - if ("object" != ListItemPicker_stories_typeof(t) || !t) return t; - var e = t[Symbol.toPrimitive]; - if (void 0 !== e) { - var i = e.call(t, r || "default"); - if ("object" != ListItemPicker_stories_typeof(i)) return i; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return ("string" === r ? String : Number)(t); -} -function ListItemPicker_stories_inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { - writable: false - }); - if (superClass) ListItemPicker_stories_setPrototypeOf(subClass, superClass); -} -function ListItemPicker_stories_setPrototypeOf(o, p) { - ListItemPicker_stories_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return ListItemPicker_stories_setPrototypeOf(o, p); -} -function ListItemPicker_stories_createSuper(Derived) { - var hasNativeReflectConstruct = ListItemPicker_stories_isNativeReflectConstruct(); - return function _createSuperInternal() { - var Super = ListItemPicker_stories_getPrototypeOf(Derived), - result; - if (hasNativeReflectConstruct) { - var NewTarget = ListItemPicker_stories_getPrototypeOf(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); - } - return ListItemPicker_stories_possibleConstructorReturn(this, result); - }; -} -function ListItemPicker_stories_possibleConstructorReturn(self, call) { - if (call && (ListItemPicker_stories_typeof(call) === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { - throw new TypeError("Derived constructors may only return object or undefined"); - } - return ListItemPicker_stories_assertThisInitialized(self); -} -function ListItemPicker_stories_assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - return self; -} -function ListItemPicker_stories_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; - } -} -function ListItemPicker_stories_getPrototypeOf(o) { - ListItemPicker_stories_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return ListItemPicker_stories_getPrototypeOf(o); -} -/* eslint-disable */ -// @ts-nocheck -// @ts-expect-error (Converted from ts-ignore) -var __STORY__ = "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport { default as ListItemPickerComponent } from './ListItemPicker';\nimport { createModeControl } from '../../docs/utils';\n\nexport default {\n title: 'Components/ListItem/ListItemPicker'\n};\n\nexport const ListItemPicker = args =>\n class ListItemPicker extends lng.Component {\n static _template() {\n return {\n ListItemPicker: {\n type: ListItemPickerComponent,\n options: args.options\n }\n };\n }\n };\n\nListItemPicker.storyName = 'ListItemPicker';\n\nListItemPicker.args = {\n title: 'List Item',\n options: ['Description1', 'Description2', 'Description3'],\n shouldCollapse: false,\n mode: 'focused'\n};\n\nListItemPicker.argTypes = {\n ...createModeControl({ summaryValue: ListItemPicker.args.mode }),\n title: {\n control: 'text',\n description: 'Title text',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n shouldCollapse: {\n control: 'boolean',\n description:\n 'When in unfocused or disabled mode,if this flag is true the description will collapse (when focused, it will always be expanded)',\n table: {\n defaultValue: { summary: false },\n type: { summary: 'boolean' }\n }\n },\n options: {\n control: 'object',\n description: 'List of selectable options',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'object' }\n }\n }\n};\n"; -// @ts-expect-error (Converted from ts-ignore) -var __LOCATIONS_MAP__ = { - "ListItemPicker": { - "startLoc": { - "col": 30, - "line": 27 - }, - "endLoc": { - "col": 3, - "line": 37 - }, - "startBody": { - "col": 30, - "line": 27 - }, - "endBody": { - "col": 3, - "line": 37 - } - } -}; - /** * Copyright 2023 Comcast Cable Communications Management, LLC * @@ -575,54 +626,17 @@ var __LOCATIONS_MAP__ = { /* harmony default export */ const ListItemPicker_stories = ({ - parameters: { - "storySource": { - "source": "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport { default as ListItemPickerComponent } from './ListItemPicker';\nimport { createModeControl } from '../../docs/utils';\n\nexport default {\n title: 'Components/ListItem/ListItemPicker'\n};\n\nexport const ListItemPicker = args =>\n class ListItemPicker extends lng.Component {\n static _template() {\n return {\n ListItemPicker: {\n type: ListItemPickerComponent,\n options: args.options\n }\n };\n }\n };\n\nListItemPicker.storyName = 'ListItemPicker';\n\nListItemPicker.args = {\n title: 'List Item',\n options: ['Description1', 'Description2', 'Description3'],\n shouldCollapse: false,\n mode: 'focused'\n};\n\nListItemPicker.argTypes = {\n ...createModeControl({ summaryValue: ListItemPicker.args.mode }),\n title: {\n control: 'text',\n description: 'Title text',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n shouldCollapse: {\n control: 'boolean',\n description:\n 'When in unfocused or disabled mode,if this flag is true the description will collapse (when focused, it will always be expanded)',\n table: {\n defaultValue: { summary: false },\n type: { summary: 'boolean' }\n }\n },\n options: {\n control: 'object',\n description: 'List of selectable options',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'object' }\n }\n }\n};\n", - "locationsMap": { - "list-item-picker": { - "startLoc": { - "col": 30, - "line": 27 - }, - "endLoc": { - "col": 3, - "line": 37 - }, - "startBody": { - "col": 30, - "line": 27 - }, - "endBody": { - "col": 3, - "line": 37 - } - } - } - } - }, title: 'Components/ListItem/ListItemPicker' }); -var ListItemPicker = function ListItemPicker(args) { - return /*#__PURE__*/function (_lng$Component) { - ListItemPicker_stories_inherits(ListItemPicker, _lng$Component); - var _super = ListItemPicker_stories_createSuper(ListItemPicker); - function ListItemPicker() { - ListItemPicker_stories_classCallCheck(this, ListItemPicker); - return _super.apply(this, arguments); - } - ListItemPicker_stories_createClass(ListItemPicker, null, [{ - key: "_template", - value: function _template() { - return { - ListItemPicker: { - type: ListItemPicker_ListItemPicker, - options: args.options - } - }; +const ListItemPicker = args => class ListItemPicker extends lightning_esm/* default */.A.Component { + static _template() { + return { + ListItemPicker: { + type: ListItemPicker_ListItemPicker, + options: args.options } - }]); - return ListItemPicker; - }(lightning_esm/* default */.A.Component); + }; + } }; ListItemPicker.storyName = 'ListItemPicker'; ListItemPicker.args = { @@ -631,9 +645,10 @@ ListItemPicker.args = { shouldCollapse: false, mode: 'focused' }; -ListItemPicker.argTypes = ListItemPicker_stories_objectSpread(ListItemPicker_stories_objectSpread({}, (0,utils/* createModeControl */.Pg)({ - summaryValue: ListItemPicker.args.mode -})), {}, { +ListItemPicker.argTypes = { + ...(0,utils/* createModeControl */.Pg)({ + summaryValue: ListItemPicker.args.mode + }), title: { control: 'text', description: 'Title text', @@ -670,7 +685,9 @@ ListItemPicker.argTypes = ListItemPicker_stories_objectSpread(ListItemPicker_sto } } } -}); +}; +; +const __namedExportsOrder = ["ListItemPicker"]; ListItemPicker.parameters = { ...ListItemPicker.parameters, docs: { @@ -680,234 +697,9 @@ ListItemPicker.parameters = { ...ListItemPicker.parameters?.docs?.source } } -};;const __namedExportsOrder = ["ListItemPicker"]; - -/***/ }), - -/***/ "../../@lightningjs/ui-components/src/docs/utils.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Pg: () => (/* binding */ createModeControl), -/* harmony export */ cY: () => (/* binding */ DocsLink), -/* harmony export */ jb: () => (/* binding */ generateSubStory) -/* harmony export */ }); -/* unused harmony exports nestedArgs, nestedArgTypes, prevValues, nestedArgActions, Item, ObjectFormat, GenericType */ -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/react/index.js"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } -function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } } -function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } -function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - -// eslint-disable-next-line no-unused-vars - - - -// creates Mode control on stories -var createModeControl = function createModeControl() { - var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, - options = _ref.options, - summaryValue = _ref.summaryValue; - return { - mode: { - control: 'radio', - options: options && Array.isArray(options) ? ['unfocused'].concat(_toConsumableArray(options)) : ['unfocused', 'focused', 'disabled'], - description: 'Sets the visual mode for the component', - table: { - defaultValue: { - summary: summaryValue - } - }, - type: { - name: 'string', - required: true - } - } - }; -}; - -/** - * @param {object} config Parameters for generating nested args: { argsObj, targetProp, include, overrides } - */ -function nestedArgs(config) { - var argsObj = config.argsObj, - targetProp = config.targetProp, - include = config.include, - overrides = config.overrides; - return Object.keys(argsObj).reduce(function (acc, curr) { - if (!include.includes(curr)) return acc; - return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, targetProp + '_' + curr, overrides.args && overrides.args[curr] || argsObj[curr])); - }, {}); -} - -/** - * @param {object} config Parameters for generating nested arg types: { argsObj, targetProp, include, overrides } - */ -function nestedArgTypes(config) { - var argTypesObj = config.argTypesObj, - targetProp = config.targetProp, - include = config.include, - overrides = config.overrides; - return Object.keys(argTypesObj).reduce(function (acc, curr) { - if (!include.includes(curr)) return acc; - return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, targetProp + '_' + curr, _objectSpread(_objectSpread(_objectSpread({ - // Namespaced to avoid conflicts - name: curr - }, argTypesObj[curr]), overrides[curr]), {}, { - table: _objectSpread(_objectSpread(_objectSpread({}, argTypesObj[curr].table || {}), overrides[curr] && overrides[curr].table), {}, { - category: targetProp - }) - }))); - }, {}); -} -var prevValues = {}; - -/** - * @param {object} config Parameters for generating nested arg actions: { componentName, argsTypeObj, targetProp, include, overrides } - */ -function nestedArgActions(config) { - var componentName = config.componentName, - argTypesObj = config.argTypesObj, - targetProp = config.targetProp, - include = config.include, - overrides = config.overrides; - return Object.keys(argTypesObj).reduce(function (acc, curr) { - if (!include.includes(curr)) return acc; - return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, targetProp + '_' + curr, function (value, component) { - component.tag(componentName).patch(_defineProperty({}, targetProp, _objectSpread(_objectSpread({}, prevValues[targetProp]), {}, _defineProperty({}, curr.replace(targetProp + '_', ''), value === 'none' ? undefined : overrides && overrides[curr] || value)))); - // Allow patching to work with nested objects - if (!prevValues[targetProp]) { - prevValues[targetProp] = {}; - } - prevValues[targetProp][curr.replace(targetProp + '_', '')] = value === 'none' ? undefined : overrides && overrides[curr] || value; - })); - }, {}); -} - -/** - * @param {object} config Parameters for generating story: { componentName, baseStory, subStory, targetProperty, include, options } - */ -function generateSubStory(config) { - config.baseStory.args = _objectSpread(_objectSpread({}, config.baseStory.args), nestedArgs({ - argsObj: config.subStory.args || {}, - targetProp: config.targetProperty, - include: config.include, - overrides: config.overrides && config.overrides.args || {} - })); - config.baseStory.argTypes = _objectSpread(_objectSpread({}, config.baseStory.argTypes), nestedArgTypes({ - argTypesObj: config.subStory.argTypes || {}, - targetProp: config.targetProperty, - include: config.include, - overrides: config.overrides && config.overrides.argTypes || {} - })); - if (!(config.baseStory && config.baseStory.parameters && config.baseStory.parameters.argActions)) { - config.baseStory.parameters = { - argActions: {} - }; - } - config.baseStory.parameters.argActions = _objectSpread(_objectSpread({}, config.baseStory.parameters.argActions), nestedArgActions({ - componentName: config.componentName, - argTypesObj: config.subStory.argTypes || {}, - targetProp: config.targetProperty, - include: config.include, - overrides: config.overrides && config.overrides.argActions || {} - })); -} - -// used to create links to Lightning docs given an id -var DocsLink = function DocsLink(_ref2) { - var children = _ref2.children, - id = _ref2.id; - var docsmap = { - lng: { - _base: 'https://rdkcentral.github.io/Lightning/docs', - Component: '/components/overview', - Text: '/textures/text', - Transition: '/transitions/attributes' - } - }; - var _id$split = id.split('.'), - _id$split2 = _slicedToArray(_id$split, 2), - source = _id$split2[0], - path = _id$split2[1]; - var href = docsmap[source]._base + docsmap[source][path]; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("a", { - href: href, - target: "_blank" - }, children || id); -}; -var Item = function Item(_ref3) { - var children = _ref3.children; - return children; -}; - -/** - * Creates formatted object for markdown prop tables - * see Column and Row stories - * @param {object} props - * @param {object} props.type - TS-style generic/utility type - */ -var ObjectFormat = function ObjectFormat(_ref4) { - var object = _ref4.object; - return ['{', /*#__PURE__*/React.createElement("br", null), ' '].concat(_toConsumableArray(utils.flatten(Object.entries(object).map(function (_ref5) { - var _ref6 = _slicedToArray(_ref5, 2), - k = _ref6[0], - v = _ref6[1]; - return [/*#__PURE__*/React.createElement("span", null, "\xA0\xA0"), "".concat(k, ": "), v, ',', /*#__PURE__*/React.createElement("br", null)]; - }))), ['}']).map(function (x, i) { - return /*#__PURE__*/React.createElement(Item, { - key: i - }, x); - }); -}; - -/** - * Formats TS-style generic types - * See Columns and Row stories - * @param {object} props - * @param {object} props.children - component children - * @param {string} props.type - Name of generic type - */ -var GenericType = function GenericType(_ref7) { - var children = _ref7.children, - type = _ref7.type; - return [type, '<', children, '>'].map(function (x, i) { - return /*#__PURE__*/React.createElement(Item, { - key: i - }, x); - }); }; /***/ }) }]); -//# sourceMappingURL=21.cdd051ec.iframe.bundle.js.map \ No newline at end of file +//# sourceMappingURL=5316.5e571007.iframe.bundle.js.map \ No newline at end of file diff --git a/5316.5e571007.iframe.bundle.js.map b/5316.5e571007.iframe.bundle.js.map new file mode 100644 index 000000000..c927383f1 --- /dev/null +++ b/5316.5e571007.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"5316.5e571007.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAKA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAGA;AACA;AAAA;AAGA;AAGA;AAAA;AACA;AAGA;AACA;AAEA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAGA;AASA;AACA;AACA;AACA;AACA;AAIA;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAGA;AAGA;AACA;AACA;AACA;AACA;AAGA;AAOA;AACA;AACA;AACA;AAEA;AAGA;AACA;AACA;AACA;AACA;AACA;AAEA;;AAEA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAIA;AAEA;AAAA;AAAA;AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAKA;AAAA;AAAA;AAAA;AAMA;AAGA;AAAA;AAAA;AAAA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACvNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2BA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AAIA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AAKA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAOA;AACA;AACA;AACA;AACA;AAAA;AARA;AACA;AAAA;AAAA;AAAA;AA9MA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAIA;AAAA;AAAA;AAEA;AAAA;AAAA;AAAA;AAGA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;;;;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AAEA;AACA;AAAA;AAGA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sources":["webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/docs/utils.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/ListItem/ListItemPicker.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/ListItem/ListItemPicker.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/ListItem/ListItemPicker.stories.js"],"sourcesContent":["/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// eslint-disable-next-line no-unused-vars\nimport React from 'react';\nimport utils from '../utils';\n\n// creates Mode control on stories\nexport const createModeControl = ({ options, summaryValue } = {}) => {\n return {\n mode: {\n control: 'radio',\n options:\n options && Array.isArray(options)\n ? ['unfocused', ...options]\n : ['unfocused', 'focused', 'disabled'],\n description: 'Sets the visual mode for the component',\n table: {\n defaultValue: { summary: summaryValue }\n },\n type: { name: 'string', required: true }\n }\n };\n};\n\n/**\n * @param {object} config Parameters for generating nested args: { argsObj, targetProp, include, overrides }\n */\nexport function nestedArgs(config) {\n const { argsObj, targetProp, include, overrides } = config;\n return Object.keys(argsObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]:\n (overrides.args && overrides.args[curr]) || argsObj[curr]\n };\n }, {});\n}\n\n/**\n * @param {object} config Parameters for generating nested arg types: { argsObj, targetProp, include, overrides }\n */\nexport function nestedArgTypes(config) {\n const { argTypesObj, targetProp, include, overrides } = config;\n return Object.keys(argTypesObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]: {\n // Namespaced to avoid conflicts\n name: curr,\n ...argTypesObj[curr],\n ...overrides[curr],\n table: {\n ...(argTypesObj[curr].table || {}),\n ...(overrides[curr] && overrides[curr].table),\n category: targetProp\n }\n }\n };\n }, {});\n}\n\nexport const prevValues = {};\n\n/**\n * @param {object} config Parameters for generating nested arg actions: { componentName, argsTypeObj, targetProp, include, overrides }\n */\nexport function nestedArgActions(config) {\n const { componentName, argTypesObj, targetProp, include, overrides } = config;\n return Object.keys(argTypesObj).reduce((acc, curr) => {\n if (!include.includes(curr)) return acc;\n return {\n ...acc,\n [targetProp + '_' + curr]: (value, component) => {\n component.tag(componentName).patch({\n [targetProp]: {\n ...prevValues[targetProp],\n [curr.replace(targetProp + '_', '')]:\n value === 'none'\n ? undefined\n : (overrides && overrides[curr]) || value // There are issues with merging objects here\n }\n });\n // Allow patching to work with nested objects\n if (!prevValues[targetProp]) {\n prevValues[targetProp] = {};\n }\n prevValues[targetProp][curr.replace(targetProp + '_', '')] =\n value === 'none'\n ? undefined\n : (overrides && overrides[curr]) || value;\n }\n };\n }, {});\n}\n\n/**\n * @param {object} config Parameters for generating story: { componentName, baseStory, subStory, targetProperty, include, options }\n */\nexport function generateSubStory(config) {\n config.baseStory.args = {\n ...config.baseStory.args,\n ...nestedArgs({\n argsObj: config.subStory.args || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.args) || {}\n })\n };\n\n config.baseStory.argTypes = {\n ...config.baseStory.argTypes,\n ...nestedArgTypes({\n argTypesObj: config.subStory.argTypes || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.argTypes) || {}\n })\n };\n\n if (\n !(\n config.baseStory &&\n config.baseStory.parameters &&\n config.baseStory.parameters.argActions\n )\n ) {\n config.baseStory.parameters = {\n argActions: {}\n };\n }\n\n config.baseStory.parameters.argActions = {\n ...config.baseStory.parameters.argActions,\n ...nestedArgActions({\n componentName: config.componentName,\n argTypesObj: config.subStory.argTypes || {},\n targetProp: config.targetProperty,\n include: config.include,\n overrides: (config.overrides && config.overrides.argActions) || {}\n })\n };\n}\n\n// used to create links to Lightning docs given an id\nexport const DocsLink = ({ children, id }) => {\n const docsmap = {\n lng: {\n _base: 'https://rdkcentral.github.io/Lightning/docs',\n Component: '/components/overview',\n Text: '/textures/text',\n Transition: '/transitions/attributes'\n }\n };\n const [source, path] = id.split('.');\n const href = docsmap[source]._base + docsmap[source][path];\n return (\n \n {children || id}\n \n );\n};\n\nexport const Item = ({ children }) => children;\n\n/**\n * Creates formatted object for markdown prop tables\n * see Column and Row stories\n * @param {object} props\n * @param {object} props.type - TS-style generic/utility type\n */\nexport const ObjectFormat = ({ object }) => {\n return [\n '{',\n
,\n ' ',\n ...utils.flatten(\n Object.entries(object).map(([k, v]) => [\n   ,\n `${k}: `,\n v,\n ',',\n
\n ])\n ),\n '}'\n ].map((x, i) => {x});\n};\n\n/**\n * Formats TS-style generic types\n * See Columns and Row stories\n * @param {object} props\n * @param {object} props.children - component children\n * @param {string} props.type - Name of generic type\n */\nexport const GenericType = ({ children, type }) => {\n return [type, '<', children, '>'].map((x, i) => {x});\n};\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => ({\n arrowAlphaValue: theme.alpha.primary,\n arrowAlphaValueLimit: theme.alpha.secondary,\n arrowWidth: theme.spacer.xxl,\n arrowHeight: theme.spacer.xxl,\n iconLeftSrc: theme.asset.arrowLeft,\n iconRightSrc: theme.asset.arrowRight\n});\n\nexport const tone = theme => ({\n neutral: {\n mode: {\n focused: {\n arrowColor: theme.color.fillInverse\n }\n }\n },\n inverse: {\n mode: {\n focused: {\n arrowColor: theme.color.fillNeutral\n }\n }\n },\n brand: {\n mode: {\n focused: {\n arrowColor: theme.color.fillInverse\n }\n }\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport ListItem from './ListItem';\nimport * as styles from './ListItemPicker.styles';\nimport Marquee from '../Marquee';\nimport Icon from '../Icon';\nimport Row from '../Row';\n\nexport default class ListItemPicker extends ListItem {\n static get __componentName() {\n return 'ListItemPicker';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static get properties() {\n return [...super.properties, 'options', 'selectedIndex'];\n }\n\n static get tags() {\n return [\n ...super.tags,\n 'LeftArrow',\n 'RightArrow',\n { name: 'Picker', path: 'Content.TextWrapper.Picker' }\n ];\n }\n\n static get aliasStyles() {\n return [{ prev: 'titlePadding', curr: 'contentSpacing' }];\n }\n\n _onTextBoxChanged() {\n super._onTextBoxChanged();\n this._alignPicker();\n }\n\n _construct() {\n super._construct();\n this._options = [];\n this._selectedIndex = 0;\n }\n\n _update() {\n super._update();\n this._updatePicker();\n this._updateArrows();\n this._updateArrowsAlpha();\n this._updateAlignment();\n }\n\n _updateAlignment() {\n if (this._isFocusedMode) {\n this.patch({ justify: 'center' });\n } else {\n this.patch({ justify: 'left' });\n }\n }\n\n _updateArrows() {\n if (!this._isFocusedMode) {\n const offAlpha = 0.001;\n if (this._LeftArrow) {\n this._LeftArrow.alpha = offAlpha;\n }\n if (this._RightArrow) {\n this._RightArrow.alpha = offAlpha;\n }\n return;\n }\n\n const arrowProps = {\n w: this.style.arrowWidth,\n h: this.style.arrowHeight,\n style: {\n color: this.style.arrowColor\n },\n alpha: this.style.arrowAlphaValue\n };\n if (!this._LeftArrow) {\n this.patch({\n LeftArrow: {\n type: Icon,\n mountY: 0.5,\n y: h => h / 2\n }\n });\n }\n this._LeftArrow.patch({\n ...arrowProps,\n icon: this.style.iconLeftSrc\n });\n this._LeftArrow.smooth = {\n x: this.style.paddingX\n };\n\n if (!this._RightArrow) {\n this.patch({\n RightArrow: {\n type: Icon,\n mountY: 0.5,\n mountX: 1,\n y: h => h / 2\n }\n });\n }\n this._RightArrow.patch({\n ...arrowProps,\n icon: this.style.iconRightSrc\n });\n\n this._RightArrow.smooth = {\n x: this.w - this.style.paddingX\n };\n }\n\n _updatePicker() {\n const w = this.w - this._paddingX - this.style.arrowWidth * 2;\n\n if (!this._Picker) {\n this._TextWrapper.patch({\n Picker: {\n type: Row,\n clipping: true,\n alwaysScroll: true,\n signals: {\n selectedChange: '_updateArrowsAlpha'\n }\n }\n });\n }\n this._Picker.patch({\n visible: !this._collapse,\n h: this.style.descriptionTextStyle.lineHeight,\n w,\n items: this.options.map(option => ({\n type: Marquee,\n h: this.style.descriptionTextStyle.lineHeight,\n w,\n centerAlign: this._isFocusedMode,\n title: {\n ...this.style.descriptionTextStyle,\n text: option\n }\n })),\n // We need to reset the selected index to ensure it does not get reset to zero when patching items.\n selectedIndex: this.selectedIndex\n });\n this._alignPicker();\n }\n\n _alignPicker() {\n this._Picker.patch({\n mountX: this._isFocusedMode ? 0.5 : 0,\n x: this._isFocusedMode ? this._Title.w / 2 : 0\n });\n }\n\n _updateArrowsAlpha() {\n if (this._Picker) {\n this._selectedIndex = this._Picker.selectedIndex;\n }\n const alpha = this._isFocusedMode ? this.style.arrowAlphaValue : 0;\n if (this._RightArrow) {\n this._RightArrow.alpha =\n this.selectedIndex === this.options.length - 1 && this._isFocusedMode\n ? this.style.arrowAlphaValueLimit\n : alpha;\n }\n if (this._LeftArrow) {\n this._LeftArrow.alpha =\n this.selectedIndex === 0 && this._isFocusedMode\n ? this.style.arrowAlphaValueLimit\n : alpha;\n }\n this.fireAncestors('$announce', this.announce);\n }\n\n get _fixedWordWrapWidth() {\n const wordWrapWidthFocused =\n this.w -\n this._paddingX -\n this.style.arrowWidth * 2 -\n 2 * this.style.contentSpacing;\n const wordWrapWidth = this.w - this._paddingLeft - this._paddingRight;\n return this._isFocusedMode ? wordWrapWidthFocused : wordWrapWidth;\n }\n\n get _collapse() {\n return this.shouldCollapse && !this._isFocusedMode;\n }\n\n get selectedOption() {\n return this._Picker.selected;\n }\n\n _handleLeft() {\n if (typeof this.onLeft === 'function') {\n return this.onLeft(this);\n }\n this._Picker.selectPrevious();\n return true;\n }\n\n _handleRight() {\n if (typeof this.onRight === 'function') {\n return this.onRight(this);\n }\n this._Picker.selectNext();\n return true;\n }\n\n set announce(announce) {\n super.announce = announce;\n }\n\n get announce() {\n if (this._announce) {\n return this._announce;\n }\n return this.title + this.options[this.selectedIndex] + ', List Item';\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport { default as ListItemPickerComponent } from './ListItemPicker';\nimport { createModeControl } from '../../docs/utils';\n\nexport default {\n title: 'Components/ListItem/ListItemPicker'\n};\n\nexport const ListItemPicker = args =>\n class ListItemPicker extends lng.Component {\n static _template() {\n return {\n ListItemPicker: {\n type: ListItemPickerComponent,\n options: args.options\n }\n };\n }\n };\n\nListItemPicker.storyName = 'ListItemPicker';\n\nListItemPicker.args = {\n title: 'List Item',\n options: ['Description1', 'Description2', 'Description3'],\n shouldCollapse: false,\n mode: 'focused'\n};\n\nListItemPicker.argTypes = {\n ...createModeControl({ summaryValue: ListItemPicker.args.mode }),\n title: {\n control: 'text',\n description: 'Title text',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n shouldCollapse: {\n control: 'boolean',\n description:\n 'When in unfocused or disabled mode,if this flag is true the description will collapse (when focused, it will always be expanded)',\n table: {\n defaultValue: { summary: false },\n type: { summary: 'boolean' }\n }\n },\n options: {\n control: 'object',\n description: 'List of selectable options',\n table: {\n defaultValue: { summary: 'undefined' },\n type: { summary: 'object' }\n }\n }\n};\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/8995.406facf6.iframe.bundle.js b/5338.865bde80.iframe.bundle.js similarity index 74% rename from 8995.406facf6.iframe.bundle.js rename to 5338.865bde80.iframe.bundle.js index 8dfcb1efe..4ee5dc8e0 100644 --- a/8995.406facf6.iframe.bundle.js +++ b/5338.865bde80.iframe.bundle.js @@ -1,5 +1,5 @@ "use strict"; -(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[8995],{ +(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[5338],{ /***/ "../../@lightningjs/ui-components/src/components/Button/Button.js": /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { @@ -24,8 +24,8 @@ var utils = __webpack_require__("../../@lightningjs/ui-components/src/utils/inde function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } +function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** * Copyright 2023 Comcast Cable Communications Management, LLC @@ -99,31 +99,33 @@ var Surface = __webpack_require__("../../@lightningjs/ui-components/src/componen var TextBox = __webpack_require__("../../@lightningjs/ui-components/src/components/TextBox/TextBox.js"); ;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/Button/Button.js function Button_typeof(o) { "@babel/helpers - typeof"; return Button_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, Button_typeof(o); } -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } +function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); } function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } +function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); } +function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); } +function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } function Button_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function Button_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? Button_ownKeys(Object(t), !0).forEach(function (r) { Button_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Button_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, Button_toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function set(target, property, value, receiver) { if (typeof Reflect !== "undefined" && Reflect.set) { set = Reflect.set; } else { set = function set(target, property, value, receiver) { var base = _superPropBase(target, property); var desc; if (base) { desc = Object.getOwnPropertyDescriptor(base, property); if (desc.set) { desc.set.call(receiver, value); return true; } else if (!desc.writable) { return false; } } desc = Object.getOwnPropertyDescriptor(receiver, property); if (desc) { if (!desc.writable) { return false; } desc.value = value; Object.defineProperty(receiver, property, desc); } else { Button_defineProperty(receiver, property, value); } return true; }; } return set(target, property, value, receiver); } -function _set(target, property, value, receiver, isStrict) { var s = set(target, property, value, receiver || target); if (!s && isStrict) { throw new TypeError('failed to set property'); } return value; } -function Button_defineProperty(obj, key, value) { key = Button_toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function Button_toPropertyKey(t) { var i = Button_toPrimitive(t, "string"); return "symbol" == Button_typeof(i) ? i : String(i); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, Button_toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } +function _possibleConstructorReturn(t, e) { if (e && ("object" == Button_typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); } +function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _superPropSet(t, e, o, r, p, f) { return _set(_getPrototypeOf(f ? t.prototype : t), e, o, r, p); } +function set(e, r, t, o) { return set = "undefined" != typeof Reflect && Reflect.set ? Reflect.set : function (e, r, t, o) { var f, i = _superPropBase(e, r); if (i) { if ((f = Object.getOwnPropertyDescriptor(i, r)).set) return f.set.call(o, t), !0; if (!f.writable) return !1; } if (f = Object.getOwnPropertyDescriptor(o, r)) { if (!f.writable) return !1; f.value = t, Object.defineProperty(o, r, f); } else Button_defineProperty(o, r, t); return !0; }, set(e, r, t, o); } +function _set(e, r, t, o, f) { if (!set(e, r, t, o || e) && f) throw new TypeError("failed to set property"); return t; } +function Button_defineProperty(e, r, t) { return (r = Button_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } +function Button_toPropertyKey(t) { var i = Button_toPrimitive(t, "string"); return "symbol" == Button_typeof(i) ? i : i + ""; } function Button_toPrimitive(t, r) { if ("object" != Button_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != Button_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); } -function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (Button_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } +function _superPropGet(t, e, o, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), e, o); return 2 & r && "function" == typeof p ? function (t) { return p.apply(o, t); } : p; } +function _get() { return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); } +function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; } +function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } +function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); } +function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } /** * Copyright 2023 Comcast Cable Communications Management, LLC * @@ -153,13 +155,12 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g * Generic Button Component that handles setting text icon and checkbox */ var Button = /*#__PURE__*/function (_Surface) { - _inherits(Button, _Surface); - var _super = _createSuper(Button); function Button() { _classCallCheck(this, Button); - return _super.apply(this, arguments); + return _callSuper(this, Button, arguments); } - _createClass(Button, [{ + _inherits(Button, _Surface); + return _createClass(Button, [{ key: "_update", value: function _update() { this._updatePrefix(); @@ -176,7 +177,7 @@ var Button = /*#__PURE__*/function (_Surface) { this._updateSurfaceDimensions(); this._updateContentPosition(); // delaying the super._update call so we update the surface sizing after the button has finished updating - _get(_getPrototypeOf(Button.prototype), "_update", this).call(this); + _superPropGet(Button, "_update", this, 3)([]); } }, { key: "$itemChanged", @@ -584,7 +585,7 @@ var Button = /*#__PURE__*/function (_Surface) { return announce; }, set: function set(announce) { - _set(_getPrototypeOf(Button.prototype), "announce", announce, this, true); + _superPropSet(Button, "announce", announce, this, 1, 1); } }, { key: "_announceComponentName", @@ -632,7 +633,7 @@ var Button = /*#__PURE__*/function (_Surface) { }, { key: "tags", get: function get() { - return [].concat(_toConsumableArray(_get(_getPrototypeOf(Button), "tags", this)), ['Content', { + return [].concat(_toConsumableArray(_superPropGet(Button, "tags", this)), ['Content', { name: 'TextWrapper', path: 'Content.TextWrapper' }, { @@ -649,7 +650,7 @@ var Button = /*#__PURE__*/function (_Surface) { }, { key: "_template", value: function _template() { - return Button_objectSpread(Button_objectSpread({}, _get(_getPrototypeOf(Button), "_template", this).call(this)), {}, { + return Button_objectSpread(Button_objectSpread({}, _superPropGet(Button, "_template", this, 2)([])), {}, { Content: { mount: 0.5, x: function x(w) { @@ -663,7 +664,6 @@ var Button = /*#__PURE__*/function (_Surface) { }); } }]); - return Button; }(Surface/* default */.A); @@ -743,18 +743,18 @@ var mode = function mode(theme) { var lightning_esm = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); ;// CONCATENATED MODULE: ../../@lightningjs/ui-components/src/components/Surface/Surface.js function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } +function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } +function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); } +function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } +function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } +function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); } +function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } /** * Copyright 2023 Comcast Cable Communications Management, LLC * @@ -778,13 +778,12 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g var Surface = /*#__PURE__*/function (_Base) { - _inherits(Surface, _Base); - var _super = _createSuper(Surface); function Surface() { _classCallCheck(this, Surface); - return _super.apply(this, arguments); + return _callSuper(this, Surface, arguments); } - _createClass(Surface, [{ + _inherits(Surface, _Base); + return _createClass(Surface, [{ key: "innerH", get: function get() { return this.h; @@ -847,11 +846,10 @@ var Surface = /*#__PURE__*/function (_Base) { return ['Background']; } }]); - return Surface; }(Base/* default */.A); /***/ }) }]); -//# sourceMappingURL=8995.406facf6.iframe.bundle.js.map \ No newline at end of file +//# sourceMappingURL=5338.865bde80.iframe.bundle.js.map \ No newline at end of file diff --git a/5338.865bde80.iframe.bundle.js.map b/5338.865bde80.iframe.bundle.js.map new file mode 100644 index 000000000..68f30218b --- /dev/null +++ b/5338.865bde80.iframe.bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"5338.865bde80.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAEA;AACA;AAAA;AAEA;AAAA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAJA;AAKA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAyCA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAEA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAMA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AAAA;AAGA;AACA;AAAA;AAEA;AAAA;AAEA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAMA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AALA;AAAA;AAAA;AAOA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAOA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAEA;AACA;AAAA;AAxBA;AACA;AAAA;AAAA;AAAA;AA0BA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAzbA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAGA;AAGA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAEA;AAAA;AAAA;AAAA;AAGA;AAEA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AClEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAwBA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAOA;AACA;AAAA;AAAA;AAAA;AAGA;AAIA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAtDA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA","sources":["webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Button/Button.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Button/Button.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Surface/Surface.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Surface/Surface.js"],"sourcesContent":["/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { getWidthByColumnSpan } from '../../utils';\n\nexport const base = theme => ({\n width: 0,\n justify: 'center',\n minWidth: getWidthByColumnSpan(theme, 3),\n paddingX: theme.spacer.xxxl,\n paddingXNoTitle: theme.spacer.xl,\n paddingY: theme.spacer.xl,\n radius: theme.radius.sm,\n contentSpacing: theme.spacer.md,\n itemSpacing: theme.spacer.md,\n textStyle: {\n ...theme.typography.button1,\n maxLines: 1,\n textColor: theme.color.textNeutral\n },\n contentColor: theme.color.fillNeutral\n});\n\nexport const mode = theme => ({\n focused: {\n textStyle: { textColor: theme.color.textInverse },\n contentColor: theme.color.fillInverse,\n tone: {\n inverse: {\n textStyle: { textColor: theme.color.textNeutral },\n contentColor: theme.color.fillNeutral\n },\n brand: {\n contentColor: theme.color.fillNeutral\n }\n }\n },\n disabled: {\n textStyle: { textColor: theme.color.textNeutralDisabled },\n contentColor: theme.color.fillNeutralDisabled\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport * as styles from './Button.styles';\nimport Row from '../Row';\nimport Surface from '../Surface';\nimport TextBox from '../TextBox'; // There seams to be some issue with the circular dependency here\n\n/**\n * Button Component\n *\n * Generic Button Component that handles setting text icon and checkbox\n */\nexport default class Button extends Surface {\n static get __componentName() {\n return 'Button';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static get properties() {\n return ['fixed', 'justify', 'prefix', 'suffix', 'title'];\n }\n\n static get aliasStyles() {\n return [{ prev: 'titlePadding', curr: 'contentSpacing' }];\n }\n\n static get tags() {\n return [\n ...super.tags,\n 'Content',\n { name: 'TextWrapper', path: 'Content.TextWrapper' },\n { name: 'Title', path: 'Content.TextWrapper.Title' },\n { name: 'Prefix', path: 'Content.Prefix' },\n { name: 'Suffix', path: 'Content.Suffix' }\n ];\n }\n\n static _template() {\n return {\n ...super._template(),\n Content: {\n mount: 0.5,\n x: w => w / 2,\n y: h => h / 2,\n zIndex: 2 // ensure content (title) is rendered above Surface Background\n }\n };\n }\n\n _update() {\n this._updatePrefix();\n this._updateTitle();\n this._updateSuffix();\n this._updateAllPositioning();\n this._updateTruncation();\n }\n\n _updateAllPositioning() {\n this._updatePositions();\n this._updateContentDimensions();\n this._updateSurfaceDimensions();\n this._updateContentPosition();\n // delaying the super._update call so we update the surface sizing after the button has finished updating\n super._update();\n }\n\n $itemChanged() {\n this._updateAllPositioning();\n this._updateTruncation();\n }\n\n _onTitleTextBoxChanged() {\n this._updateAllPositioning();\n }\n\n _updatePositions() {\n if (this._hasPrefix && this._Prefix !== undefined) {\n this._Prefix.x = this._prefixX;\n }\n if (this._hasTitle) {\n this._TextWrapper.x = this._titleX;\n }\n if (this._hasSuffix && this._Suffix !== undefined) {\n this._Suffix.x = this._suffixX;\n }\n }\n\n _updatePrefix() {\n const prefixString = JSON.stringify(this.prefix);\n if (this.prefix) {\n let prefixPatch = {\n style: {\n itemSpacing: this.style.itemSpacing\n }\n };\n if (!this._Prefix) {\n prefixPatch = {\n ...this._rowProps,\n ...prefixPatch\n };\n }\n this._Content.patch({ Prefix: prefixPatch });\n this._updatePrefixSuffixStyles('prefix');\n } else {\n this._Content.patch({ Prefix: undefined });\n }\n this._prevPrefix = prefixString;\n }\n\n _updatePrefixSuffixStyles(type = 'prefix') {\n /**\n * Repatching all items re-renders all the components in the Prefix/Suffix Rows.\n * This can cause items to shift while their layout in the Row is re-calculated if\n * any of the items do not have width or height on their initial render (ex. an Icon\n * does not have width and height until after its texture loads).\n * If the contents of the Prefix/Suffix are the same components and this update was triggered\n * from something else (ex. a change in mode), only update the styles applied to the\n * items in the Prefix (ex. updating the color to the value appropriate to the new mode).\n */\n const map = {\n prefix: {\n tag: this._Prefix,\n prop: this.prefix,\n prevProp: this._prevPrefix\n },\n suffix: {\n tag: this._Suffix,\n prop: this.suffix,\n prevProp: this._prevSuffix\n }\n };\n const { tag, prop } = map[type];\n let { prevProp } = map[type];\n const propString = JSON.stringify(prop);\n\n if (propString !== prevProp) {\n prevProp = propString;\n tag.items = this._addButtonProps(prop);\n } else {\n tag.Items.children.forEach((item, idx) => {\n item.color = Array.isArray(prop) ? prop[idx].color : prop.color;\n item.style = {\n ...item.style,\n color: this.style.contentColor\n };\n });\n }\n }\n\n _updateTitle() {\n if (this._hasTitle) {\n let titlePatch = {\n content: this.title,\n style: { textStyle: this.style.textStyle }\n };\n if (!this._Title) {\n titlePatch = {\n type: TextBox,\n mountY: 0.5,\n y: h => h / 2,\n signals: {\n textBoxChanged: '_onTitleTextBoxChanged'\n },\n ...titlePatch\n };\n }\n this._Content.patch({\n TextWrapper: {\n mountY: 0.5,\n Title: titlePatch\n }\n });\n } else {\n this._Content.patch({ TextWrapper: { Title: undefined } });\n }\n }\n\n _updateSuffix() {\n if (this.suffix) {\n let suffixPatch = {\n style: {\n itemSpacing: this.style.itemSpacing\n }\n };\n if (!this._Suffix) {\n suffixPatch = {\n ...this._rowProps,\n ...suffixPatch\n };\n }\n this._Content.patch({ Suffix: suffixPatch });\n this._updatePrefixSuffixStyles('suffix');\n } else {\n this._Content.patch({ Suffix: undefined });\n }\n }\n\n _updateTruncation() {\n /**\n * needs to run before rest of content updates to prevent a bug causing text\n * to sometimes truncate and then un-truncate(with no width change) when\n * toggling fixed after toggling focus\n */\n if (this._Title) {\n this._Title.patch({\n style: {\n textStyle: {\n ...this.style.textStyle,\n wordWrap: this.fixed,\n wordWrapWidth: this.fixed ? this._fixedWordWrapWidth : 0\n }\n }\n });\n }\n }\n\n _updateContentDimensions() {\n const contentDimensionsPatch = {};\n const y = this.h / 2;\n\n // reference transition targets to ensure we aren't checking against intermittent values\n if (this._Content.transition('w').targetValue !== this._contentW) {\n this._Content.w = this._contentW;\n }\n\n if (this._Content.y !== y) {\n contentDimensionsPatch.y = y;\n }\n\n if (Object.keys(contentDimensionsPatch).length > 0) {\n this._Content.patch(contentDimensionsPatch);\n }\n }\n\n _updateContentPosition() {\n this._Content.patch(this._contentProps);\n }\n\n _updateSurfaceDimensions() {\n let newWidth = this.w;\n if (this.fixed) {\n newWidth = this._w;\n } else {\n newWidth = this._calcDynamicWidth();\n }\n\n if (newWidth !== this.w) {\n this.w = newWidth;\n }\n\n // In order to ensure the \"hSetByUser\" flag is not set to true,\n // skip over \"set h\" by directly updating \"_h\"\n // Using the \"get h\" return statement does not force an update to the inspector,\n // whereas this will ensure the \"height\" attribute is updated\n if (!this._hSetByUser && !this.style.h) {\n this._h = this.style.textStyle.lineHeight + this.style.paddingY * 2;\n }\n\n // TODO breaks row resizing if this is wrapped in the width conditional above\n this.fireAncestors('$itemChanged');\n }\n\n _calcDynamicWidth() {\n // if no title, ignore minWidth and use prefix/suffix width\n // when the title is collapsed, width should be the same as if there is no title\n return (!this._hasTitle && (this._hasPrefix || this._hasSuffix)) ||\n (this._Title &&\n !this._Title.visible &&\n (this._hasPrefix || this._hasSuffix))\n ? this._contentW + this._paddingX\n : Math.max(this._contentW + this._paddingX, this.style.minWidth);\n }\n\n _addButtonProps(arr) {\n const items = Array.isArray(arr) ? arr : [arr];\n return items.map(item => ({\n ...this._buttonProps,\n ...item,\n style: {\n color: this.style.contentColor,\n ...item.style\n }\n }));\n }\n\n _getJustify() {\n return !!this._justify ? this._justify : this.style.justify;\n }\n\n get _contentProps() {\n let mountX;\n let x;\n\n switch (this.justify) {\n case 'left':\n mountX = 0;\n x = this._paddingLeft;\n break;\n case 'right':\n mountX = 1;\n x = this.w - this._paddingRight;\n break;\n case 'center':\n default:\n mountX = 0.5;\n x = this.w / 2;\n break;\n }\n return { mountX, x };\n }\n\n get _buttonProps() {\n return {\n centerInParent: true,\n mode: this.mode\n };\n }\n\n get _hasPrefix() {\n return !!(this.prefix && Object.keys(this.prefix).length);\n }\n\n get _prefixW() {\n return this._hasPrefix && this._Prefix !== undefined ? this._Prefix.w : 0;\n }\n\n get _prefixX() {\n return 0;\n }\n\n get _hasTitle() {\n return !!this.title;\n }\n\n get _titleW() {\n // get the pre-calculated text width of the title to solve some race condition bugs\n if (\n this._hasTitle &&\n this._Title &&\n this._Title._Text &&\n this._Title.visible\n ) {\n return this._Title.w;\n }\n return 0;\n }\n\n get _titleX() {\n return this._hasPrefix ? this._prefixW + this.style.contentSpacing : 0;\n }\n\n get _hasSuffix() {\n return !!(this.suffix && Object.keys(this.suffix).length);\n }\n\n get _suffixW() {\n return this._hasSuffix && this._Suffix !== undefined ? this._Suffix.w : 0;\n }\n\n get _suffixX() {\n if (this._hasTitle) {\n return this._titleW + this._TextWrapper.x + this.style.contentSpacing;\n } else if (this._hasPrefix) {\n return this._prefixW + this.style.itemSpacing;\n }\n return 0;\n }\n\n get _contentW() {\n if (this._hasSuffix) {\n return this._suffixX + this._suffixW;\n } else if (this._hasTitle && this._Title && this._Title.visible) {\n return this._titleX + this._titleW;\n } else if (this._hasPrefix) {\n return this._prefixX + this._prefixW;\n }\n return 0;\n }\n\n get _rowProps() {\n return {\n type: Row,\n mountY: 0.5,\n autoResizeHeight: true,\n autoResizeWidth: true\n };\n }\n\n get _totalTitlePaddingX() {\n let totalTitlePadding = 0;\n if (this._hasPrefix) {\n totalTitlePadding += this.style.contentSpacing;\n }\n if (this._hasSuffix) {\n totalTitlePadding += this.style.contentSpacing;\n }\n return totalTitlePadding;\n }\n\n /**\n * Button w must be >= nonTextSpace + smallest possible width of truncated\n * text(width of the first set of characters before a space + width of TextBox.maxLinesSuffix).\n * Disregarding this results in the contents of the button being a greater width than the\n * fixed w of the Button(w/o decreasing _paddingX or _totalTitlePadding).\n */\n get _fixedWordWrapWidth() {\n const { w, _paddingX, _prefixW, _suffixW, _totalTitlePaddingX } = this;\n const nonTextSpace = _paddingX + _prefixW + _suffixW + _totalTitlePaddingX;\n return Math.max(1, w - nonTextSpace);\n }\n\n set announce(announce) {\n super.announce = announce;\n }\n\n get announce() {\n if (this._announce) {\n return this._announce;\n }\n\n // TODO - Localization?\n // Do we need a locale file with\n // component translations?\n const announce = [];\n if (this.title) {\n announce.push(this.title);\n }\n announce.push(this._announceComponentName);\n if (this._hasPrefix && this._Prefix.items.length) {\n announce.push(...this._Prefix.items.map(item => item.announce));\n }\n if (this._hasSuffix && this._Suffix.items.length) {\n announce.push(...this._Suffix.items.map(item => item.announce));\n }\n\n return announce;\n }\n\n get _announceComponentName() {\n return Button.__componentName;\n }\n\n get _paddingX() {\n return this._paddingLeft + this._paddingRight;\n }\n\n get _paddingLeft() {\n return this._hasTitle ? this.style.paddingX : this.style.paddingXNoTitle;\n }\n\n get _paddingRight() {\n return this._hasTitle ? this.style.paddingX : this.style.paddingXNoTitle;\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => ({\n backgroundColor: theme.color.interactiveNeutral,\n radius: theme.radius.md,\n animation: {}\n});\n\nexport const tone = theme => ({\n inverse: {\n backgroundColor: theme.color.interactiveInverse\n }\n});\n\nexport const mode = theme => ({\n focused: {\n backgroundColor: theme.color.interactiveNeutralFocus,\n tone: {\n inverse: {\n backgroundColor: theme.color.interactiveInverseFocus\n }\n }\n },\n disabled: {\n backgroundColor: theme.color.fillNeutralDisabled\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { getMaxRoundRadius } from '../../utils';\nimport Base from '../Base';\nimport * as styles from './Surface.styles';\nimport lng from '@lightningjs/core';\n\nexport default class Surface extends Base {\n static _template() {\n return {\n Background: {}\n };\n }\n\n static get __componentName() {\n return 'Surface';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static get properties() {\n return [];\n }\n\n static get tags() {\n return ['Background'];\n }\n\n get innerH() {\n return this.h;\n }\n\n get innerW() {\n return this.w;\n }\n\n _update() {\n this._updateLayout();\n this._updateScale();\n }\n\n _updateLayout() {\n this._Background.patch({\n texture: lng.Tools.getRoundRect(\n this.innerW - 2, // Reference the underscored values here in cause the h or w getters need to be overwritten for alignment - see Tile\n this.innerH - 2,\n getMaxRoundRadius(this.style.radius, this.w, this.h),\n 0,\n null,\n true,\n this.style.backgroundColor\n )\n });\n }\n\n _updateScale() {\n const scale = this._isFocusedMode\n ? this.getFocusScale(this.w, this.h)\n : this.getUnfocusScale(this.w, this.h);\n\n this.applySmooth(this, { scale }, { scale: [scale, this.style.animation] });\n }\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/5377.d1540950.iframe.bundle.js.map b/5377.d1540950.iframe.bundle.js.map deleted file mode 100644 index 38580a790..000000000 --- a/5377.d1540950.iframe.bundle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"5377.d1540950.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA4CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AAAA;AAGA;AAIA;AACA;AAEA;AACA;AACA;AACA;AAaA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAOA;AACA;AAAA;AAAA;AAAA;AAGA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAOA;AACA;AAAA;AALA;AACA;AAAA;AAAA;AAAA;AAvIA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAEA;AACA;AAAA;AAEA;AAAA;AACA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAEA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAAA;AACA;AAMA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA6BA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAEA;AAAA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAEA;AAGA;AAEA;AACA;AACA;AACA;AAQA;AACA;AACA;AAAA;AAAA;AAAA;AAOA;AACA;AAAA;AALA;AACA;AAAA;AAAA;AAAA;AAzEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAAA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAOA;AAQA;AAAA;AAZA;AACA;AAAA;AAAA;AAAA;AAcA;AACA;AAMA;AAEA;AACA;AAAA;AAAA;AAAA;AA1DA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAyBA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AAEA;AAEA;AACA;AACA;AASA;AASA;AAAA;AAAA;AAAA;AAGA;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAAA;AAAA;AAAA;AAOA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAfA;AACA;AAAA;AAAA;AAAA;AAiBA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAnGA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AACA;AACA;AACA;AACA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA+EA;AAQA;AAAA;AAlBA;AACA;AACA;AACA;;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAcA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AAGA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AAQA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAIA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AAIA;AAMA;AACA;AAEA;;AAEA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AAGA;AAAA;AAAA;AAAA;AAGA;AACA;;AAEA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AACA;AAAA;AAGA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;;AAEA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AAAA;AAGA;AACA;AACA;AACA;AAAA;AAEA;AACA;AACA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AAIA;;AAEA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAEA;AACA;AACA;AAAA;AAEA;AACA;AACA;AACA;AACA;AAEA;AAEA;AAKA;AAGA;;AAEA;;AAEA;AAAA;AAAA;AAAA;AAEA;AAGA;AAAA;AAAA;AAAA;AAGA;AACA;AAMA;AAMA;AACA;;AAEA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AAAA;AAGA;AACA;AACA;AAEA;AACA;AAAA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAOA;AAAA;AAAA;AAAA;AAEA;AAAA;AACA;AACA;AAOA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AAAA;AAGA;AACA;AACA;AAEA;AACA;AACA;AACA;AAAA;AAEA;AAEA;AACA;AACA;AAEA;AAAA;AAAA;AAEA;AACA;AACA;AACA;;AAEA;AACA;AAIA;AAMA;AACA;AAEA;AACA;AAAA;AAAA;AAAA;AAEA;AAAA;AAAA;AACA;AACA;;AAEA;;AAEA;AAAA;AAAA;AAAA;AAEA;AAQA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAMA;AAMA;AACA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAGA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AAAA;AAGA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAIA;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AAEA;AAMA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AAAA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAlnBA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAGA;AAaA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAEA;AAAA;AAAA;AAAA;AAGA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAGA;AAKA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAEA;AAAA;AAAA;AAAA","sources":["webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Checkbox/Checkbox.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Checkbox/Checkbox.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Label/Label.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Label/Label.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/MetadataTile/MetadataTile.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/MetadataTile/MetadataTile.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/ProgressBar/ProgressBar.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/ProgressBar/ProgressBar.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Tile/Tile.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/Tile/Tile.js"],"sourcesContent":["/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => {\n const strokeWidth = theme.stroke.sm;\n const size = theme.spacer.xxl;\n return {\n alpha: theme.alpha.primary,\n width: size,\n height: size,\n iconWidth: theme.spacer.lg,\n iconHeight: theme.spacer.lg,\n icon: theme.asset.check,\n radius: theme.radius.xs,\n strokeWidth\n };\n};\n\nexport const tone = theme => ({\n neutral: {\n strokeColor: theme.color.strokeNeutralSecondary,\n checkColor: theme.color.fillInverse,\n backgroundColor: theme.color.fillInverseSecondary,\n backgroundColorChecked: theme.color.fillNeutral\n },\n inverse: {\n strokeColor: theme.color.strokeInverseSecondary,\n checkColor: theme.color.fillNeutral,\n backgroundColor: theme.color.fillNeutralSecondary,\n backgroundColorChecked: theme.color.fillInverse\n },\n brand: {\n strokeColor: theme.color.strokeNeutralSecondary,\n checkColor: theme.color.fillInverse,\n backgroundColor: theme.color.fillNeutralSecondary,\n backgroundColorChecked: theme.color.fillBrand\n }\n});\n\nexport const mode = theme => ({\n disabled: { alpha: theme.alpha.inactive }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport Icon from '../Icon';\nimport Base from '../Base';\nimport * as styles from './Checkbox.styles';\nimport { getMaxRoundRadius } from '../../utils';\n\nexport default class Checkbox extends Base {\n static get __componentName() {\n return 'Checkbox';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static _template() {\n const center = { mount: 0.5, x: w => w / 2, y: h => h / 2 };\n return {\n Body: {\n rtt: true, // ensures the background color doesn't bleed into the checkbox icon when disabled\n ...center,\n Check: {\n type: Icon,\n ...center,\n alpha: 0\n }\n },\n Stroke: center\n };\n }\n\n static get tags() {\n return ['Check', 'Body', 'Stroke'];\n }\n\n static get properties() {\n return ['checked'];\n }\n\n static get aliasStyles() {\n return [\n { prev: 'checkSrc', curr: 'icon' },\n { prev: 'checkH', curr: 'iconHeight' },\n { prev: 'checkW', curr: 'iconWidth' },\n { prev: 'checkHeight', curr: 'iconHeight' },\n { prev: 'checkWidth', curr: 'iconWidth' }\n ];\n }\n\n _update() {\n this._updateBody();\n this._updateStroke();\n this._updateCheck();\n if (this._checkedChanged) {\n this.fireAncestors('$announce', this.announce);\n this._checkedChanged = false;\n }\n this._updateOpacity();\n }\n\n _updateCheck() {\n this._Check.patch({\n w: this.style.iconWidth,\n h: this.style.iconHeight,\n icon: this.style.icon,\n style: { color: this.style.checkColor }\n });\n\n const alphaPatch = {\n alpha: this.checked ? 1 : 0\n };\n\n this.applySmooth(this._Check, alphaPatch);\n }\n\n _updateBody() {\n const bodyColor = this.checked\n ? this.style.backgroundColorChecked\n : this.style.backgroundColor;\n\n const width = this.w - this.style.strokeWidth * 2 - 2;\n const height = this.h - this.style.strokeWidth * 2 - 2;\n\n this._Body.patch({\n texture: lng.Tools.getRoundRect(\n // Compensating for the extra 2 pixels getRoundRect adds\n width,\n height,\n getMaxRoundRadius(\n this.style.radius,\n width,\n height,\n this.style.strokeWidth * 2 - 2\n ),\n 0,\n null,\n true,\n bodyColor\n )\n });\n }\n\n _updateStroke() {\n this._Stroke.patch({\n texture: lng.Tools.getRoundRect(\n // Compensating for the extra 2 pixels getRoundRect adds\n this.w - 2,\n this.h - 2,\n getMaxRoundRadius(this.style.radius, this.w - 2, this.h - 2),\n this.style.strokeWidth,\n this.style.strokeColor,\n false\n )\n });\n }\n\n _updateOpacity() {\n this.applySmooth(this, { alpha: this.style.alpha });\n }\n\n _setChecked(checked) {\n this._checkedChanged = checked !== this._checked;\n return checked;\n }\n\n toggle() {\n if (!this._isDisabledMode) {\n this.checked = !this.checked;\n }\n return this;\n }\n\n _handleEnter() {\n if (typeof this.onEnter === 'function') {\n return this.onEnter(this);\n } else {\n this.toggle();\n }\n return false;\n }\n\n set announce(announce) {\n super.announce = announce;\n }\n\n get announce() {\n return this._announce || (this.checked ? 'Checked' : 'Unchecked');\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => ({\n radius: [\n theme.radius.md,\n theme.radius.md,\n theme.radius.md,\n theme.radius.none\n ],\n paddingX: theme.spacer.lg,\n paddingY: theme.spacer.md,\n offsetY: theme.spacer.xxs,\n textStyle: theme.typography.caption1\n});\n\nexport const tone = theme => ({\n neutral: {\n textStyle: { textColor: theme.color.textInverse },\n backgroundColor: theme.color.fillNeutral\n },\n inverse: {\n textStyle: { textColor: theme.color.textNeutral },\n backgroundColor: theme.color.fillInverse\n },\n brand: {\n textStyle: { textColor: theme.color.textNeutral },\n backgroundColor: theme.color.fillBrand\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport Base from '../Base';\nimport * as styles from './Label.styles';\n\nexport default class Label extends Base {\n static _template() {\n return {\n Background: {},\n Text: {\n mountY: 0.5,\n mountX: 0.5,\n text: {}\n }\n };\n }\n\n static get __componentName() {\n return 'Label';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static get properties() {\n return ['title'];\n }\n\n static get tags() {\n return ['Background', 'Text'];\n }\n\n _init() {\n this._Text.on('txLoaded', this._updateBackground.bind(this));\n super._init();\n }\n\n _update() {\n this._updateBackground();\n this._updateText();\n }\n\n _updateText() {\n if (this._Text) {\n this._Text.patch({\n text: {\n ...this.style.textStyle,\n text: this.title\n }\n });\n }\n }\n\n _updateBackground() {\n this._Text.x = this.w / 2;\n this._Text.y = this.h / 2 + this.style.offsetY;\n\n this.h = !this.title\n ? 0\n : this._Text.renderHeight + 2 * this.style.paddingY;\n this.w = !this.title ? 0 : this._Text.renderWidth + 2 * this.style.paddingX;\n\n this._Background.patch({\n texture: lng.Tools.getRoundRect(\n // Compensating for the extra two pixels getRoundRect adds.\n this.w - 2,\n this.h - 2,\n this.style.radius,\n 0,\n null,\n true,\n this.style.backgroundColor\n )\n });\n this.signal('loadedLabel', this);\n }\n\n set announce(announce) {\n super.announce = announce;\n }\n\n get announce() {\n return this._announce || (this._Text && this._Text.text.text);\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => ({\n titleTextStyle: theme.typography.headline3,\n descriptionTextStyle: theme.typography.body3\n});\n\nexport const tone = theme => ({\n neutral: {\n detailsTextStyle: { textColor: theme.color.textNeutralSecondary },\n descriptionTextStyle: { textColor: theme.color.textNeutral },\n mode: {\n disabled: {\n detailsTextStyle: { textColor: theme.color.textNeutralDisabled },\n descriptionTextStyle: {\n textColor: theme.color.textNeutralDisabled\n }\n }\n }\n },\n inverse: {\n detailsTextStyle: { textColor: theme.color.textInverseSecondary },\n descriptionTextStyle: { textColor: theme.color.textInverse },\n mode: {\n disabled: {\n detailsTextStyle: { textColor: theme.color.textNeutralDisabled },\n descriptionTextStyle: {\n textColor: theme.color.textNeutralDisabled\n }\n }\n }\n },\n brand: {\n detailsTextStyle: { textColor: theme.color.textNeutralSecondary },\n descriptionTextStyle: { textColor: theme.color.textNeutral },\n mode: {\n disabled: {\n detailsTextStyle: { textColor: theme.color.textNeutralDisabled },\n descriptionTextStyle: {\n textColor: theme.color.textNeutralDisabled\n }\n }\n }\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport MetadataBase from '../MetadataBase';\nimport * as styles from './MetadataTile.styles';\n\nexport default class MetadataTile extends MetadataBase {\n static get __componentName() {\n return 'MetadataTile';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n _updateDetails() {\n if (!this.details && !this._Details) {\n return;\n }\n if (this.description && this._Details) {\n this._Details.patch({ content: '' });\n this._Details.alpha = 0;\n this._Details.visible = false;\n } else {\n super._updateDetails();\n }\n }\n\n _updateDetailsLayout({ h }) {\n if (!this.details && !this._Details) {\n return;\n }\n if (this._Details && !this.description) {\n this._DetailsWrapper.h = h;\n this._DetailsWrapper.alpha = this.style.alpha;\n } else {\n this._DetailsWrapper.h = 0;\n }\n }\n\n set announce(announce) {\n super.announce = announce;\n }\n\n get announce() {\n return (\n this._announce || [\n this._Title && this._Title.announce,\n (this._Details && this._Details.announce) ||\n (this._Description && this._Description.announce),\n this.logoTitle\n ]\n );\n }\n\n _textH() {\n const titleH = (this.title && this._Title && this._Title.h) || 0;\n const detailsH =\n (this.details &&\n this._Details &&\n this._Details.visible &&\n this._DetailsWrapper.h) ||\n 0;\n const descriptionH =\n (this.description && this._Description && this._Description.h) || 0;\n return titleH + detailsH + descriptionH;\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => ({\n height: theme.spacer.md,\n animation: theme.animation.utility,\n radius: theme.radius.xs\n});\n\nexport const tone = theme => ({\n neutral: {\n barColor: theme.color.fillNeutralTertiary,\n progressColor: theme.color.fillNeutral\n },\n inverse: {\n barColor: theme.color.fillInverseTertiary,\n progressColor: theme.color.fillInverse\n },\n brand: {\n barColor: theme.color.fillNeutralTertiary,\n progressColor: theme.color.fillBrand\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport Base from '../Base';\nimport * as styles from './ProgressBar.styles';\nimport { getMaxRoundRadius } from '../../utils';\n\nexport default class ProgressBar extends Base {\n static _template() {\n return {\n Bar: { zIndex: 1 },\n Progress: { alpha: 0, zIndex: 2 }\n };\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static get __componentName() {\n return 'ProgressBar';\n }\n\n static get properties() {\n return ['progress'];\n }\n\n static get tags() {\n return ['Bar', 'Progress'];\n }\n\n _construct() {\n super._construct && super._construct();\n this._progress = 0;\n }\n\n _update() {\n this._updateTextures();\n this._updateProgress();\n if (this._progressChanged) {\n this.fireAncestors('$announce', this.announce);\n this._progressChanged = false;\n }\n }\n\n _updateTextures() {\n const w = this._getProgressWidth();\n\n const radius = getMaxRoundRadius(this.style.radius, this.w - 2, this.h);\n\n this._Bar.texture = lng.Tools.getRoundRect(\n // getRoundRect adds 2 to the width\n this.w - 2,\n this.h,\n radius,\n 0,\n 0,\n true,\n this.style.barColor\n );\n\n this._Progress.texture = lng.Tools.getRoundRect(\n w + 1,\n this.h,\n radius,\n 0,\n 0,\n true,\n this.style.progressColor\n );\n }\n\n _updateProgress() {\n const w = this._getProgressWidth();\n\n this._Progress.smooth = {\n w: [w, this.style.animation],\n alpha: Number(w > 0)\n };\n }\n\n _setProgress(progress) {\n this._progressChanged = progress !== this._progress;\n return progress;\n }\n\n set announce(announce) {\n super.announce = announce;\n }\n\n get announce() {\n if (this._announce !== undefined && this._announce !== null) {\n return this._announce;\n }\n\n let progress = this.progress;\n if (progress > 1) {\n progress = 1;\n } else if (progress < 0) {\n progress = 0;\n }\n return `${Math.round(progress * 100)}%`;\n }\n\n _getProgressWidth() {\n const p = this.w * this._progress;\n const w = p <= 0 ? 0 : Math.min(p, this.w);\n return w;\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const base = theme => ({\n animationEntrance: theme.animation.standardEntrance,\n animationExit: theme.animation.standardExit,\n logoWidth: theme.spacer.lg * 5,\n logoHeight: theme.spacer.xxl + theme.spacer.md,\n metadataLocation: 'standard',\n paddingX: theme.spacer.xl,\n paddingY: theme.spacer.lg,\n paddingYProgress: theme.spacer.xl,\n paddingYBetweenContent: theme.spacer.md,\n radius: theme.radius.md,\n alpha: theme.alpha.primary\n});\n\nexport const tone = theme => ({\n neutral: {\n mode: {\n focused: {\n backgroundColor: theme.color.interactiveNeutralFocusSoft\n }\n }\n },\n inverse: {\n mode: {\n focused: {\n backgroundColor: theme.color.interactiveInverseFocusSoft\n }\n }\n },\n brand: {\n mode: {\n focused: {\n backgroundColor: theme.color.interactiveBrandFocusSoft\n }\n }\n }\n});\n\nexport const mode = theme => ({\n disabled: {\n alpha: theme.alpha.inactive\n }\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport Artwork from '../Artwork';\nimport Badge from '../Badge';\nimport Checkbox from '../Checkbox';\nimport Label from '../Label';\nimport MetadataTile from '../MetadataTile';\nimport ProgressBar from '../ProgressBar';\nimport * as styles from './Tile.styles';\nimport Surface from '../Surface';\nimport Icon from '../Icon';\n\nexport default class Tile extends Surface {\n static get __componentName() {\n return 'Tile';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static _template() {\n return {\n ...super._template(), // Make sure surface elements are patched\n Tile: {\n Artwork: {\n type: Artwork,\n signals: {\n imageLoaded: '_imageLoaded'\n },\n mount: 0.5\n },\n Content: {\n mount: 0.5\n }\n }\n };\n }\n\n static get properties() {\n return [\n 'artwork',\n 'badge',\n 'checkbox',\n 'circle',\n 'label',\n 'logo',\n 'metadata',\n 'metadataLocation',\n 'persistentMetadata',\n 'progressBar',\n 'src'\n ];\n }\n\n static get aliasStyles() {\n return [\n { prev: 'iconHeight', curr: 'logoHeight' },\n { prev: 'iconWidth', curr: 'logoWidth' }\n ];\n }\n\n static get aliasProperties() {\n return [{ prev: 'iconSrc', curr: 'logo' }];\n }\n\n static get tags() {\n return [\n ...super.tags,\n 'Artwork',\n 'Content',\n 'Tile',\n { name: 'Badge', path: 'Content.Badge' },\n { name: 'Checkbox', path: 'Content.Checkbox' },\n { name: 'Logo', path: 'Content.Logo' },\n { name: 'Metadata', path: 'Content.Metadata' },\n { name: 'ProgressBar', path: 'Content.ProgressBar' },\n { name: 'Label', path: 'Content.Label' }\n ];\n }\n\n /**\n * When metadata is displayed below the Tile we need a way to tell the containing columns that it exists\n * in order for it to layout properly. This approach will not however show up in the DOM inspector\n */\n\n set announce(announce) {\n super.announce = announce;\n }\n\n get announce() {\n return (\n this._announce || [\n this._Metadata && this._Metadata.announce,\n this._Badge && this._Badge.announce,\n this._Label && this._Label.announce,\n this._ProgressBar && this._ProgressBar.announce\n ]\n );\n }\n\n _update() {\n super._update();\n this._updateTileColor();\n this._updateContent();\n this._updateArtwork();\n this._updateBadge();\n this._updateLabel();\n this._updateCheckbox();\n this._updateProgressBar();\n this._updateMetadata();\n this._updateLogo();\n }\n\n /* ------------------------------ Tile ------------------------------ */\n\n _getRenderHeight() {\n // if there is Metadata below the Tile, override _getRenderHeight\n // in order to return the fully calculated height,\n // not the height stored in \"_h\" for just the tile image\n return !this._isInsetMetadata\n ? this._h + (this._Metadata?.h + this.style.paddingY || 0)\n : super._getRenderHeight();\n }\n\n get innerH() {\n return this._h; // Ensure that surface respects the correct height when metadata is displayed below\n }\n\n get _shouldShowGradient() {\n return Boolean(\n ((this._isInsetMetadata &&\n this._hasMetadata &&\n this._shouldShowMetadata) ||\n this.progressBar?.progress > 0 ||\n this._shouldShowLogo) &&\n !this._isCircleLayout\n );\n }\n\n get _isCircleLayout() {\n return Boolean(this._itemLayout && this._itemLayout.circle);\n }\n\n get _foregroundDefaultWidth() {\n return parseFloat(this._w / this._h).toFixed(2) ===\n parseFloat(16 / 9).toFixed(2)\n ? this.innerW * 0.5\n : this.innerW * 0.75;\n }\n\n _updateTileColor() {\n this._Tile.alpha = this.style.alpha;\n }\n\n _updateContent() {\n const itemContainerPatch = {\n h: this._h,\n w: this._w,\n x: this._w / 2,\n y: this._h / 2\n };\n\n // Make sure container animates with same values as badge, label, and metadata\n this.applySmooth(\n this._Content,\n itemContainerPatch,\n Object.keys(itemContainerPatch).reduce((acc, prop) => {\n acc[prop] = [\n itemContainerPatch[prop],\n this._isFocusedMode\n ? this.style.animationEntrance\n : this.style.animationExit\n ];\n return acc;\n }, {})\n );\n }\n\n /* ------------------------------ Logo ------------------------------ */\n\n _updateLogo() {\n if (!this.logo) {\n this.patch({ Logo: undefined });\n return;\n }\n const logoObject = {\n w: this.style.logoWidth,\n h: this.style.logoHeight,\n icon: this.logo,\n alpha: this._shouldShowLogo ? this.style.alpha : 0.001,\n x: this.style.paddingX,\n y: this._calculateLogoYPosition()\n };\n if (!this._Logo) {\n this.patch({\n Logo: {\n type: Icon,\n mountY: 1,\n ...logoObject\n }\n });\n } else {\n this.applySmooth(this._Logo, logoObject);\n }\n }\n\n _calculateLogoYPosition() {\n if (this._isInsetMetadata && this._Metadata) {\n return this._metadataY - this._Metadata.h;\n }\n return this._progressBarY\n ? this._progressBarY - this.style.paddingYBetweenContent\n : this._h - this.style.paddingY;\n }\n\n get _shouldShowLogo() {\n return this.logo && (this.persistentMetadata || this._isFocusedMode);\n }\n\n /* ------------------------------ Artwork ------------------------------ */\n\n _updateArtwork() {\n // ensure a nested artwork src takes precedence over the class's src setter,\n // but that if src is undefined in both the setter and artwork object,\n // we don't incorrectly pass \"src: undefined\" to the Artwork component)\n this._Artwork.patch({\n mode: this.mode,\n h: this._h,\n w: this._w,\n x: this._w / 2,\n y: this._h / 2,\n src: this.src,\n ...(this.artwork || {}),\n style: {\n radius: this.style?.radius,\n ...this.artwork?.style\n },\n gradient: this._shouldShowGradient,\n shouldScale: this._isFocusedMode\n });\n }\n\n _getSrc() {\n return (this.artwork && this.artwork.src) || this._src;\n }\n\n _imageLoaded() {\n this._Background.alpha = 0; // Since the image is loaded the surface does not need to be shown\n }\n\n /* ------------------------------ Badge ------------------------------ */\n\n _updateBadge() {\n // Remove Badge if no longer required\n if (!this.badge?.title || this._isCircleLayout) {\n if (this._Badge) {\n this._Content.patch({\n Badge: undefined\n });\n }\n return;\n }\n\n const badgePatch = {\n ...this.badge,\n mode: this.mode,\n x: this.style.paddingX,\n y: this.style.paddingY,\n alpha: this._shouldShowBadgeLabel ? 1 : 0.001\n };\n\n if (!this._Badge) {\n this._Content.patch({\n Badge: {\n type: Badge,\n ...badgePatch,\n signals: {\n loadedBadge: '_updateBadge'\n }\n }\n });\n return;\n } else {\n this._Badge.patch(badgePatch);\n }\n this.applySmooth(this._Badge, badgePatch, {\n ...badgePatch,\n ...this._badgeLabelTransitions // Badge and Label should animate in with the same values\n });\n }\n\n /* ------------------------------ Label ------------------------------ */\n\n _updateLabel() {\n if (!this.label?.title || this._isCircleLayout) {\n if (this._Label) {\n this._Content.patch({\n Label: undefined\n });\n }\n return;\n }\n const labelPatch = {\n ...this.label,\n mode: this.mode,\n x: this._w - this.style.paddingX,\n y: this.style.paddingY,\n alpha: this._shouldShowBadgeLabel ? 1 : 0.001\n };\n\n if (!this._Label) {\n this._Content.patch({\n Label: {\n type: Label,\n mountX: 1,\n ...labelPatch,\n signals: {\n loadedLabel: '_updateLabel'\n }\n }\n });\n return;\n } else {\n this._Label.patch(labelPatch);\n }\n\n this.applySmooth(this._Label, labelPatch, {\n ...labelPatch,\n x: [\n labelPatch.x,\n this._shouldShowBadgeLabel\n ? this.style.animationEntrance\n : this.style.animationExit\n ],\n ...this._badgeLabelTransitions\n });\n }\n\n /* ------------------------------ Badge & Label ------------------------------ */\n\n // Badge and Label should animate in with the same values\n get _shouldShowBadgeLabel() {\n return (\n this.persistentMetadata || (this._isFocusedMode && !this._isCircleLayout)\n );\n }\n\n get _badgeLabelTransitions() {\n return {\n y: [\n this._shouldShowBadgeLabel ? this.style.paddingY : 0,\n this._shouldShowBadgeLabel\n ? this.style.animationEntrance\n : this.style.animationExit\n ],\n alpha: [\n this._shouldShowBadgeLabel ? 1 : 0.001,\n this._shouldShowBadgeLabel\n ? this.style.animationEntrance\n : this.style.animationExit\n ]\n };\n }\n\n /* ------------------------------ Checkbox ------------------------------ */\n\n _updateCheckbox() {\n // Remove Checkbox if no longer required\n if (\n !(typeof this.checkbox?.checked === 'boolean' && this.checkbox.checked) ||\n this._isCircleLayout\n ) {\n if (this._Checkbox) {\n this._Content.patch({\n Checkbox: undefined\n });\n }\n return;\n }\n\n const checkboxPatch = {\n ...this.checkbox,\n mode: this.mode,\n x: this._w - this.style.paddingX,\n y: this._h - this.style.paddingY\n };\n\n if (!this._Checkbox) {\n this._Content.patch({\n Checkbox: {\n ...checkboxPatch,\n type: Checkbox,\n mount: 1\n }\n });\n return;\n }\n\n this.applySmooth(this._Checkbox, checkboxPatch);\n }\n /* ------------------------------ Progress Bar ------------------------------ */\n\n get _progressBarY() {\n // this accessor gets used to determine where to position the metadata, so\n // if there is a ProgressBar that is not being alpha-ed out\n // (because of the progress being set to 0),\n // use the y position of the ProgressBar\n // if the ProgressBar is currently animating into place, use the future value\n // otherwise, return 0\n return (\n (this._ProgressBar &&\n this._ProgressBar._getTransition('alpha')._targetValue !== 0\n ? this._ProgressBar._getTransition('y')._targetValue ||\n this._ProgressBar.y\n : 0) || 0\n );\n }\n\n _updateProgressBar() {\n // Remove ProgressBar if no longer required\n if (\n !(\n typeof this.progressBar?.progress === 'number' &&\n this.progressBar.progress\n ) ||\n this._isCircleLayout\n ) {\n if (this._ProgressBar) {\n if (this.shouldSmooth) {\n this._ProgressBar._getTransition('alpha').once('finish', () => {\n this._removeProgressBar();\n });\n this._ProgressBar.smooth = { alpha: 0 };\n } else {\n this._removeProgressBar();\n }\n }\n return;\n }\n\n if (this.progressBar.progress > 0) {\n const progressPatch = {\n ...this.progressBar,\n mode: this.mode,\n w: this._w - this.style.paddingX * 2,\n x: this._w / 2,\n y: this._h - this.style.paddingYProgress\n };\n\n if (!this._ProgressBar) {\n this._Content.patch({\n ProgressBar: {\n ...progressPatch,\n type: ProgressBar,\n mountX: 0.5,\n mountY: 1,\n alpha: this._hasMetadata && this.shouldSmooth ? 0.001 : 1\n }\n });\n\n if (this.shouldSmooth) {\n this._ProgressBar.smooth = {\n alpha: [\n 1,\n { delay: this.style.animationEntrance.duration } // Wait for metadata to animate in\n ]\n };\n }\n return;\n }\n\n // TODO: See if we need to add animation to every property individually or can set parent\n this.applySmooth(\n this._ProgressBar,\n progressPatch,\n Object.keys(progressPatch).reduce((acc, prop) => {\n acc[prop] = [\n progressPatch[prop],\n this._isFocusedMode\n ? this.style.animationEntrance\n : this.style.animationExit\n ];\n return acc;\n }, {})\n );\n }\n }\n _removeProgressBar() {\n this._Content.patch({ ProgressBar: undefined });\n this._updateMetadata();\n }\n\n /* ------------------------------ Metadata ------------------------------ */\n\n // all the logic on whether the metaData should show\n get _shouldShowMetadata() {\n return (\n this._hasMetadata &&\n ((this.persistentMetadata && !this._isInsetMetadata) ||\n (this._isFocusedMode && !this._isInsetMetadata) ||\n ((this.persistentMetadata || this._isFocusedMode) &&\n this._isInsetMetadata &&\n !this._isCircleLayout))\n );\n }\n\n get _isInsetMetadata() {\n return this.metadataLocation === 'inset';\n }\n\n get _metadataTransitions() {\n return {\n y: [\n this._metadataY,\n this._shouldShowMetadata\n ? this.style.animationEntrance\n : this.style.animationExit\n ],\n alpha: [\n this._metadataAlpha,\n this._shouldShowMetadata\n ? this.style.animationEntrance\n : this.style.animationExit\n ]\n };\n }\n\n get _hasMetadata() {\n return MetadataTile.properties.some(\n prop => this.metadata && this.metadata[prop]\n );\n }\n\n get _metadataY() {\n if (this._shouldShowMetadata) {\n if (this._isInsetMetadata) {\n return this._progressBarY\n ? this._progressBarY - this.style.paddingYBetweenContent\n : this._h - this.style.paddingY;\n }\n }\n return this._h + this.style.paddingY;\n }\n\n get _metadataAlpha() {\n return this._shouldShowMetadata ? 1 : 0.001;\n }\n\n get _metadataPatch() {\n return {\n alpha: this._metadataAlpha,\n w: this._w - this.style.paddingX * 2,\n x: this._w / 2,\n y: this._metadataY\n };\n }\n\n get _nonSmoothingMetadataPatch() {\n return {\n mode: this.mode,\n mountX: 0.5,\n mountY: this._isInsetMetadata ? 1 : 0,\n marquee: this._isFocusedMode,\n ...(this.metadata || {})\n };\n }\n\n _getMetadataLocation() {\n return this._metadataLocation ?? this.style.metadataLocation;\n }\n\n _updateMetadata() {\n if (!this._hasMetadata) {\n this._Content.patch({ Metadata: undefined });\n return;\n }\n\n if (!this._Metadata && this._hasMetadata) {\n // Patch in Metadata for the first time\n this._Content.patch({\n Metadata: {\n type: MetadataTile,\n signals: {\n updateComponentDimensions: '_metadataLoaded'\n },\n ...this._nonSmoothingMetadataPatch,\n ...this._metadataPatch\n }\n });\n\n return;\n }\n this._Metadata.patch(this._nonSmoothingMetadataPatch);\n this._animateMetadata();\n }\n\n _animateMetadata() {\n if (!this._Metadata) {\n return;\n }\n\n this.applySmooth(\n this._Metadata,\n this._metadataPatch,\n this._metadataTransitions\n );\n\n if (!this._isFocusedMode) {\n this._resetMarqueeAnimation();\n }\n }\n\n _metadataLoaded() {\n this._animateMetadata();\n this._updateLogo();\n\n // if the metadata height has changed, the height of the entire Tile has changed\n // and the inspector must be updated via _getRenderHeight()\n this._updateDimensions();\n\n // Send event to columns/rows that the height has been updated since metadata will be displayed below the Tile\n if (!this._isInsetMetadata) {\n this.fireAncestors('$itemChanged');\n }\n }\n\n /* ------------------------------ Marquee ------------------------------ */\n\n _resetMarqueeAnimation() {\n const alphaTransition = this._Metadata._getTransition('alpha');\n if (alphaTransition) {\n alphaTransition.on('finish', () => {\n if (this._Metadata) {\n this._Metadata.resetMarquee();\n }\n });\n } else {\n this._Metadata.resetMarquee();\n }\n }\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/5415.87dcf755.iframe.bundle.js b/5415.87dcf755.iframe.bundle.js deleted file mode 100644 index 276781238..000000000 --- a/5415.87dcf755.iframe.bundle.js +++ /dev/null @@ -1,785 +0,0 @@ -"use strict"; -(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[5415],{ - -/***/ "../../@lightningjs/ui-components/src/components/CardContent/CardContent.stories.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ CardContent: () => (/* binding */ CardContent), -/* harmony export */ __namedExportsOrder: () => (/* binding */ __namedExportsOrder), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _lightningjs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/@lightningjs/core/dist/lightning.esm.js"); -/* harmony import */ var _assets_images_tile_image_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("../../@lightningjs/ui-components/src/assets/images/tile-image.png"); -/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../@lightningjs/ui-components/src/components/CardContent/CardContent.js"); -/* harmony import */ var _MetadataCardContent_MetadataCardContent_stories__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("../../@lightningjs/ui-components/src/components/MetadataCardContent/MetadataCardContent.stories.js"); -/* harmony import */ var _docs_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("../../@lightningjs/ui-components/src/docs/utils.js"); -/* harmony import */ var _docs_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("../../@lightningjs/ui-components/src/docs/constants.js"); -function _typeof(o) { - "@babel/helpers - typeof"; - - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { - return typeof o; - } : function (o) { - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; - }, _typeof(o); -} -function ownKeys(e, r) { - var t = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var o = Object.getOwnPropertySymbols(e); - r && (o = o.filter(function (r) { - return Object.getOwnPropertyDescriptor(e, r).enumerable; - })), t.push.apply(t, o); - } - return t; -} -function _objectSpread(e) { - for (var r = 1; r < arguments.length; r++) { - var t = null != arguments[r] ? arguments[r] : {}; - r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { - _defineProperty(e, r, t[r]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); - }); - } - return e; -} -function _defineProperty(obj, key, value) { - key = _toPropertyKey(key); - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); - } -} -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { - writable: false - }); - return Constructor; -} -function _toPropertyKey(t) { - var i = _toPrimitive(t, "string"); - return "symbol" == _typeof(i) ? i : String(i); -} -function _toPrimitive(t, r) { - if ("object" != _typeof(t) || !t) return t; - var e = t[Symbol.toPrimitive]; - if (void 0 !== e) { - var i = e.call(t, r || "default"); - if ("object" != _typeof(i)) return i; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return ("string" === r ? String : Number)(t); -} -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { - writable: false - }); - if (superClass) _setPrototypeOf(subClass, superClass); -} -function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); -} -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); - }; -} -function _possibleConstructorReturn(self, call) { - if (call && (_typeof(call) === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { - throw new TypeError("Derived constructors may only return object or undefined"); - } - return _assertThisInitialized(self); -} -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - return self; -} -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; - } -} -function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); -} -/* eslint-disable */ -// @ts-nocheck -// @ts-expect-error (Converted from ts-ignore) -var __STORY__ = "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport tileImage from '../../assets/images/tile-image.png';\nimport CardContentComponent from '.';\nimport { MetadataCardContent as MetadataStory } from '../MetadataCardContent/MetadataCardContent.stories';\nimport { createModeControl, generateSubStory } from '../../docs/utils';\nimport { controlDescriptions } from '../../docs/constants';\n\n/**\n * Formats a Card with one part Tile and one part Metadata.\n */\nexport default {\n title: 'Components/CardContent/CardContent'\n};\n\nexport const CardContent = args =>\n class CardContent extends lng.Component {\n static _template() {\n return {\n CardContent: {\n type: CardContentComponent,\n src: tileImage,\n shouldCollapse: args.shouldCollapse,\n orientation: 'horizontal'\n }\n };\n }\n };\n\nconst tileCategory = 'Tile';\nCardContent.tileProps = {\n argActions: tagName => ({\n badge: (badgeTitle, component) => {\n component.tag(tagName).tile = {\n ...component.tag(tagName).tile,\n badge: { title: badgeTitle }\n };\n },\n label: (labelTitle, component) => {\n component.tag(tagName).tile = {\n ...component.tag(tagName).tile,\n label: {\n title: labelTitle,\n table: { defaultValue: { summary: 'undefined' } }\n }\n };\n },\n progress: (progress, component) => {\n component.tag(tagName).tile = {\n ...component.tag(tagName).tile,\n progressBar: { progress }\n };\n }\n })\n};\nCardContent.storyName = 'CardContent';\n\nCardContent.args = {\n shouldCollapse: false,\n badge: 'HD',\n label: 'Live',\n progress: 0.5,\n mode: 'focused'\n};\n\nCardContent.argTypes = {\n ...createModeControl({ summaryValue: CardContent.args.mode }),\n shouldCollapse: {\n control: 'boolean',\n description: controlDescriptions.shouldCollapse,\n table: {\n defaultValue: { summary: false },\n type: { summary: 'boolean' }\n }\n },\n badge: {\n name: 'title',\n control: 'text',\n description: 'Badge text',\n table: {\n category: tileCategory,\n subcategory: 'Badge',\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n label: {\n name: 'title',\n control: 'text',\n description: 'Text to display in the foreground of the label',\n table: {\n category: tileCategory,\n subcategory: 'Label',\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n progress: {\n control: {\n type: 'range',\n min: 0,\n max: 1,\n step: 0.01\n },\n description: 'percentage of the current progress from 0 to 1',\n table: {\n category: tileCategory,\n subcategory: 'ProgressBar',\n defaultValue: { summary: 0 },\n type: { summary: 'number' }\n }\n }\n};\n\nCardContent.parameters = {\n argActions: CardContent.tileProps.argActions('CardContent')\n};\ngenerateSubStory({\n componentName: 'CardContent',\n baseStory: CardContent,\n subStory: MetadataStory,\n targetProperty: 'metadata',\n include: ['title', 'description', 'details', 'visible']\n});\n"; -// @ts-expect-error (Converted from ts-ignore) -var __LOCATIONS_MAP__ = { - "CardContent": { - "startLoc": { - "col": 27, - "line": 33 - }, - "endLoc": { - "col": 3, - "line": 45 - }, - "startBody": { - "col": 27, - "line": 33 - }, - "endBody": { - "col": 3, - "line": 45 - } - } -}; - -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - - - - - - - -/** - * Formats a Card with one part Tile and one part Metadata. - */ -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ - parameters: { - "storySource": { - "source": "/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport lng from '@lightningjs/core';\nimport tileImage from '../../assets/images/tile-image.png';\nimport CardContentComponent from '.';\nimport { MetadataCardContent as MetadataStory } from '../MetadataCardContent/MetadataCardContent.stories';\nimport { createModeControl, generateSubStory } from '../../docs/utils';\nimport { controlDescriptions } from '../../docs/constants';\n\n/**\n * Formats a Card with one part Tile and one part Metadata.\n */\nexport default {\n title: 'Components/CardContent/CardContent'\n};\n\nexport const CardContent = args =>\n class CardContent extends lng.Component {\n static _template() {\n return {\n CardContent: {\n type: CardContentComponent,\n src: tileImage,\n shouldCollapse: args.shouldCollapse,\n orientation: 'horizontal'\n }\n };\n }\n };\n\nconst tileCategory = 'Tile';\nCardContent.tileProps = {\n argActions: tagName => ({\n badge: (badgeTitle, component) => {\n component.tag(tagName).tile = {\n ...component.tag(tagName).tile,\n badge: { title: badgeTitle }\n };\n },\n label: (labelTitle, component) => {\n component.tag(tagName).tile = {\n ...component.tag(tagName).tile,\n label: {\n title: labelTitle,\n table: { defaultValue: { summary: 'undefined' } }\n }\n };\n },\n progress: (progress, component) => {\n component.tag(tagName).tile = {\n ...component.tag(tagName).tile,\n progressBar: { progress }\n };\n }\n })\n};\nCardContent.storyName = 'CardContent';\n\nCardContent.args = {\n shouldCollapse: false,\n badge: 'HD',\n label: 'Live',\n progress: 0.5,\n mode: 'focused'\n};\n\nCardContent.argTypes = {\n ...createModeControl({ summaryValue: CardContent.args.mode }),\n shouldCollapse: {\n control: 'boolean',\n description: controlDescriptions.shouldCollapse,\n table: {\n defaultValue: { summary: false },\n type: { summary: 'boolean' }\n }\n },\n badge: {\n name: 'title',\n control: 'text',\n description: 'Badge text',\n table: {\n category: tileCategory,\n subcategory: 'Badge',\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n label: {\n name: 'title',\n control: 'text',\n description: 'Text to display in the foreground of the label',\n table: {\n category: tileCategory,\n subcategory: 'Label',\n defaultValue: { summary: 'undefined' },\n type: { summary: 'string' }\n }\n },\n progress: {\n control: {\n type: 'range',\n min: 0,\n max: 1,\n step: 0.01\n },\n description: 'percentage of the current progress from 0 to 1',\n table: {\n category: tileCategory,\n subcategory: 'ProgressBar',\n defaultValue: { summary: 0 },\n type: { summary: 'number' }\n }\n }\n};\n\nCardContent.parameters = {\n argActions: CardContent.tileProps.argActions('CardContent')\n};\ngenerateSubStory({\n componentName: 'CardContent',\n baseStory: CardContent,\n subStory: MetadataStory,\n targetProperty: 'metadata',\n include: ['title', 'description', 'details', 'visible']\n});\n", - "locationsMap": { - "card-content": { - "startLoc": { - "col": 27, - "line": 33 - }, - "endLoc": { - "col": 3, - "line": 45 - }, - "startBody": { - "col": 27, - "line": 33 - }, - "endBody": { - "col": 3, - "line": 45 - } - } - } - }, - docs: { - description: { - component: "Formats a Card with one part Tile and one part Metadata." - } - } - }, - title: 'Components/CardContent/CardContent' -}); -var CardContent = function CardContent(args) { - return /*#__PURE__*/function (_lng$Component) { - _inherits(CardContent, _lng$Component); - var _super = _createSuper(CardContent); - function CardContent() { - _classCallCheck(this, CardContent); - return _super.apply(this, arguments); - } - _createClass(CardContent, null, [{ - key: "_template", - value: function _template() { - return { - CardContent: { - type: ___WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A, - src: _assets_images_tile_image_png__WEBPACK_IMPORTED_MODULE_2__, - shouldCollapse: args.shouldCollapse, - orientation: 'horizontal' - } - }; - } - }]); - return CardContent; - }(_lightningjs_core__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A.Component); -}; -var tileCategory = 'Tile'; -CardContent.tileProps = { - argActions: function argActions(tagName) { - return { - badge: function badge(badgeTitle, component) { - component.tag(tagName).tile = _objectSpread(_objectSpread({}, component.tag(tagName).tile), {}, { - badge: { - title: badgeTitle - } - }); - }, - label: function label(labelTitle, component) { - component.tag(tagName).tile = _objectSpread(_objectSpread({}, component.tag(tagName).tile), {}, { - label: { - title: labelTitle, - table: { - defaultValue: { - summary: 'undefined' - } - } - } - }); - }, - progress: function progress(_progress, component) { - component.tag(tagName).tile = _objectSpread(_objectSpread({}, component.tag(tagName).tile), {}, { - progressBar: { - progress: _progress - } - }); - } - }; - } -}; -CardContent.storyName = 'CardContent'; -CardContent.args = { - shouldCollapse: false, - badge: 'HD', - label: 'Live', - progress: 0.5, - mode: 'focused' -}; -CardContent.argTypes = _objectSpread(_objectSpread({}, (0,_docs_utils__WEBPACK_IMPORTED_MODULE_3__/* .createModeControl */ .Pg)({ - summaryValue: CardContent.args.mode -})), {}, { - shouldCollapse: { - control: 'boolean', - description: _docs_constants__WEBPACK_IMPORTED_MODULE_4__/* .controlDescriptions */ .Hx.shouldCollapse, - table: { - defaultValue: { - summary: false - }, - type: { - summary: 'boolean' - } - } - }, - badge: { - name: 'title', - control: 'text', - description: 'Badge text', - table: { - category: tileCategory, - subcategory: 'Badge', - defaultValue: { - summary: 'undefined' - }, - type: { - summary: 'string' - } - } - }, - label: { - name: 'title', - control: 'text', - description: 'Text to display in the foreground of the label', - table: { - category: tileCategory, - subcategory: 'Label', - defaultValue: { - summary: 'undefined' - }, - type: { - summary: 'string' - } - } - }, - progress: { - control: { - type: 'range', - min: 0, - max: 1, - step: 0.01 - }, - description: 'percentage of the current progress from 0 to 1', - table: { - category: tileCategory, - subcategory: 'ProgressBar', - defaultValue: { - summary: 0 - }, - type: { - summary: 'number' - } - } - } -}); -CardContent.parameters = { - argActions: CardContent.tileProps.argActions('CardContent') -}; -(0,_docs_utils__WEBPACK_IMPORTED_MODULE_3__/* .generateSubStory */ .jb)({ - componentName: 'CardContent', - baseStory: CardContent, - subStory: _MetadataCardContent_MetadataCardContent_stories__WEBPACK_IMPORTED_MODULE_5__.MetadataCardContent, - targetProperty: 'metadata', - include: ['title', 'description', 'details', 'visible'] -}); -CardContent.parameters = { - ...CardContent.parameters, - docs: { - ...CardContent.parameters?.docs, - source: { - originalSource: "args => class CardContent extends lng.Component {\n static _template() {\n return {\n CardContent: {\n type: CardContentComponent,\n src: tileImage,\n shouldCollapse: args.shouldCollapse,\n orientation: 'horizontal'\n }\n };\n }\n}", - ...CardContent.parameters?.docs?.source - } - } -};;const __namedExportsOrder = ["CardContent"]; - -/***/ }), - -/***/ "../../@lightningjs/ui-components/src/components/CardContent/CardContent.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ A: () => (/* binding */ CardContent) -/* harmony export */ }); -/* harmony import */ var _Card__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Card/Card.js"); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../@lightningjs/ui-components/src/utils/index.js"); -/* harmony import */ var _Tile__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("../../@lightningjs/ui-components/src/components/Tile/Tile.js"); -/* harmony import */ var _MetadataCardContent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../@lightningjs/ui-components/src/components/MetadataCardContent/MetadataCardContent.js"); -/* harmony import */ var _CardContent_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("../../@lightningjs/ui-components/src/components/CardContent/CardContent.styles.js"); -function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } -function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } -function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } -function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } -function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function set(target, property, value, receiver) { if (typeof Reflect !== "undefined" && Reflect.set) { set = Reflect.set; } else { set = function set(target, property, value, receiver) { var base = _superPropBase(target, property); var desc; if (base) { desc = Object.getOwnPropertyDescriptor(base, property); if (desc.set) { desc.set.call(receiver, value); return true; } else if (!desc.writable) { return false; } } desc = Object.getOwnPropertyDescriptor(receiver, property); if (desc) { if (!desc.writable) { return false; } desc.value = value; Object.defineProperty(receiver, property, desc); } else { _defineProperty(receiver, property, value); } return true; }; } return set(target, property, value, receiver); } -function _set(target, property, value, receiver, isStrict) { var s = set(target, property, value, receiver || target); if (!s && isStrict) { throw new TypeError('failed to set property'); } return value; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } -function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } -function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); } -function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; } -function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } -function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } -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); }; } -function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } -function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } -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; } } -function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - - - - - -var CardContent = /*#__PURE__*/function (_Card) { - _inherits(CardContent, _Card); - var _super = _createSuper(CardContent); - function CardContent() { - _classCallCheck(this, CardContent); - return _super.apply(this, arguments); - } - _createClass(CardContent, [{ - key: "_update", - value: function _update() { - this._updateSize(); - this._updateTile(); - this._updateMetadata(); - _get(_getPrototypeOf(CardContent.prototype), "_update", this).call(this); - } - }, { - key: "_updateTitle", - value: function _updateTitle() {} - }, { - key: "_updateTitlePosition", - value: function _updateTitlePosition() {} - }, { - key: "_updateTile", - value: function _updateTile() { - var _tile; - var w = this.style.imageSize.w; - var h = this.style.expandedHeight; - var radius = Array.isArray(this.style.radius) && this.style.radius.length === 4 ? this.style.radius : Array(4).fill(this.style.radius); - var tileRadius = radius; - if (!this._collapse) { - tileRadius = this._orientation === 'horizontal' ? [radius[0], 0, 0, radius[3]] : [radius[0], radius[1], 0, 0]; - } - if (this._orientation !== 'horizontal') { - w = this.style.expandedWidth; - h = this.style.imageSize.h; - } - - // ensure a nested tile artwork src takes precedence over the class's src setter, - // but that if src is undefined in both the setter and tile artwork object, - // we don't incorrectly pass "src: undefined" to the Tile component (and in turn, Artwork) - var tile = this.tile; - if (this.src) { - tile = _utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"].clone */ .Ay.clone({ - src: this.src - }, this.tile); - } - this._Tile.patch(_objectSpread(_objectSpread({ - w: w, - h: h - }, tile), {}, { - style: _objectSpread(_objectSpread({}, ((_tile = tile) === null || _tile === void 0 ? void 0 : _tile.style) || {}), {}, { - radius: tileRadius - }), - persistentMetadata: true, - alpha: this._shouldShowTile ? 1 : 0 - })); - } - }, { - key: "_updateMetadata", - value: function _updateMetadata() { - var metadataPatch = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, this.metadata), this._metadataPosition), this._metadataDimensions), {}, { - mode: this.mode, - alpha: this._shouldShowMetadata ? 1 : 0, - style: this.style.metadata - }); - if (this.style.marqueeOnFocus) { - metadataPatch.marquee = this._isFocusedMode; - } - if (!this._Metadata) { - metadataPatch.type = _MetadataCardContent__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A; - } - this.patch({ - Metadata: metadataPatch - }); - } - }, { - key: "_updateSize", - value: function _updateSize() { - var w = this.style.expandedWidth; - var h = this.style.expandedHeight; - if (this._collapse) { - if (this._orientation === 'horizontal') { - w = this._collapseW; - } else { - h = this._collapseH; - } - } - this.w = w; - this.h = h; - } - }, { - key: "_getSrc", - value: function _getSrc() { - return this.tile && (this.tile.artwork && this.tile.artwork.src || this.tile.src) || this._src; - } - }, { - key: "_metadataDimensions", - get: function get() { - var paddingHorizontal = this.style.paddingHorizontal * 2; - var paddingVertical = this.style.paddingVertical * 2; - var w = this.style.expandedWidth - this.style.imageSize.w - paddingHorizontal; - var h = this.style.expandedHeight - paddingVertical; - if (this.orientation !== 'horizontal') { - w = this.style.expandedWidth - paddingHorizontal; - h = this.style.expandedHeight - this.style.imageSize.h - paddingVertical; - } - return { - w: w, - h: h - }; - } - }, { - key: "_metadataPosition", - get: function get() { - var paddingHorizontal = this.style.paddingHorizontal; - var paddingVertical = this.style.paddingVertical; - var x = paddingHorizontal + (this._collapse ? 0 : this.style.imageSize.w); - var y = paddingVertical; - if (this.orientation !== 'horizontal') { - x = paddingHorizontal; - y = paddingVertical + (this._collapse ? 0 : this.style.imageSize.h); - } - return { - x: x, - y: y - }; - } - }, { - key: "_shouldShowMetadata", - get: function get() { - return !this._collapse || this.collapseToMetadata; - } - }, { - key: "_shouldShowTile", - get: function get() { - return !this._collapse || this._collapse && !this.collapseToMetadata; - } - }, { - key: "_collapse", - get: function get() { - return this.shouldCollapse && !this._isFocusedMode; - } - }, { - key: "_collapseW", - get: function get() { - return this.collapseToMetadata ? this.style.expandedWidth - this.style.imageSize.w : this.style.imageSize.w; - } - }, { - key: "_collapseH", - get: function get() { - return this.collapseToMetadata ? this.style.expandedHeight - this.style.imageSize.h : this.style.imageSize.h; - } - }, { - key: "announce", - get: function get() { - return this._announce || [this._Metadata && this._Metadata.announce, this._Tile && this._Tile.announce]; - }, - set: function set(announce) { - _set(_getPrototypeOf(CardContent.prototype), "announce", announce, this, true); - } - }], [{ - key: "__componentName", - get: function get() { - return 'CardContent'; - } - }, { - key: "__themeStyle", - get: function get() { - return _CardContent_styles__WEBPACK_IMPORTED_MODULE_2__; - } - }, { - key: "_template", - value: function _template() { - return _objectSpread(_objectSpread({}, _get(_getPrototypeOf(CardContent), "_template", this).call(this)), {}, { - Tile: { - type: _Tile__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A - } - }); - } - }, { - key: "properties", - get: function get() { - return [].concat(_toConsumableArray(_get(_getPrototypeOf(CardContent), "properties", this)), ['tile', 'metadata', 'orientation', 'collapseToMetadata', 'shouldCollapse', 'src']); - } - }, { - key: "tags", - get: function get() { - return [].concat(_toConsumableArray(_get(_getPrototypeOf(CardContent), "tags", this)), ['Metadata', 'Tile']); - } - }, { - key: "aliasStyles", - get: function get() { - return [{ - prev: 'expandedW', - curr: 'expandedWidth' - }, { - prev: 'expandedH', - curr: 'expandedHeight' - }]; - } - }]); - return CardContent; -}(_Card__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A); - - -/***/ }), - -/***/ "../../@lightningjs/ui-components/src/components/CardContent/CardContent.styles.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ base: () => (/* binding */ base) -/* harmony export */ }); -/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../@lightningjs/ui-components/src/utils/index.js"); -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - - -var base = function base(theme) { - return { - expandedWidth: _utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"].getWidthByUpCount */ .Ay.getWidthByUpCount(theme, 2), - expandedHeight: _utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"].getDimensions */ .Ay.getDimensions(theme, { - ratioX: 16, - ratioY: 9, - upCount: 4 - }).h, - imageSize: { - width: _utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"].getDimensions */ .Ay.getDimensions(theme, { - ratioX: 16, - ratioY: 9, - upCount: 4 - }).w, - height: _utils__WEBPACK_IMPORTED_MODULE_0__/* ["default"].getDimensions */ .Ay.getDimensions(theme, { - ratioX: 16, - ratioY: 9, - upCount: 4 - }).h - }, - metadata: { - descriptionTextStyle: { - maxLines: 2 - } - }, - paddingVertical: theme.spacer.md * 1.5 - }; -}; - -/***/ }), - -/***/ "../../@lightningjs/ui-components/src/docs/constants.js": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Hx: () => (/* binding */ controlDescriptions) -/* harmony export */ }); -/* unused harmony exports CATEGORIES, storySortOrder */ -/** - * Copyright 2023 Comcast Cable Communications Management, LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */ - -var CATEGORIES = { - 0: 'Docs', - 2: 'Collections', - 4: 'Utilities', - 8: 'Components', - 16: 'Patterns', - 32: 'Templates' -}; - -/** Storybook config constants should go in this file */ - -var storySortOrder = [CATEGORIES[0], ['Introduction', 'Read Me', 'Base', 'Contributing', 'Lightning Resources', 'Lightning Community Guide', 'Theming', ['Overview', 'Component Config', 'Tones', 'Modes', 'Extensions', 'Subtheming', 'Use in Storybook', 'Theme Properties', 'Hierarchy', 'Tutorial'], 'Unit Testing', ['Overview', 'Test Renderer', 'Test Utils', ['makeCreateComponent', '*']]], CATEGORIES[2], CATEGORIES[4], CATEGORIES[8], CATEGORIES[16], CATEGORIES[32]]; -var controlDescriptions = { - collapseToMetadata: 'When in unfocused or disabled mode, if shouldCollapse property is true it will collapse the image to metadata (when focused, it will always be expanded)', - shouldCollapse: 'When in unfocused or disabled mode, if this flag is true metadata will collapse (when focused, it will always be expanded)', - fixed: 'Stops the width from being calculated dynamically based on content and will instead use the`w` property' -}; - -/***/ }), - -/***/ "../../@lightningjs/ui-components/src/assets/images/tile-image.png": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -module.exports = __webpack_require__.p + "static/media/tile-image.56dce1e0.png"; - -/***/ }) - -}]); -//# sourceMappingURL=5415.87dcf755.iframe.bundle.js.map \ No newline at end of file diff --git a/5415.87dcf755.iframe.bundle.js.map b/5415.87dcf755.iframe.bundle.js.map deleted file mode 100644 index ff688a3b3..000000000 --- a/5415.87dcf755.iframe.bundle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"5415.87dcf755.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AChYA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAwCA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAEA;AAAA;AAAA;AAEA;AAAA;AAAA;AAEA;AACA;AACA;AACA;AAKA;AAEA;AACA;AAIA;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AAAA;AAEA;AAEA;AAAA;AAEA;AACA;AAAA;AAEA;AAAA;AAAA;AAAA;AAGA;AAIA;AACA;AACA;AAAA;AAGA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAGA;AAKA;AAAA;AAAA;AAAA;AAGA;AACA;AAEA;AAEA;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAEA;AACA;AAEA;AACA;AACA;AACA;AAEA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAGA;AAAA;AAAA;AAAA;AAGA;AAGA;AAAA;AAAA;AAAA;AAOA;AAMA;AAAA;AAVA;AACA;AAAA;AAAA;AAAA;AA9LA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AAEA;AAAA;AAAA;AAAA;AAEA;AAAA;AAAA;AAAA;AAGA;AASA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AAAA;AAGA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAEA;AAAA;AAAA;AAAA;;;;;;;;;;;;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AAEA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAAA;;;;;;;;;;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AAgCA;AACA;AAEA;AAEA;AAEA","sources":["webpack://lightning-ui-docs/","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/CardContent/CardContent.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/components/CardContent/CardContent.styles.js","webpack://lightning-ui-docs/../../@lightningjs/ui-components/src/docs/constants.js"],"sourcesContent":[null,"/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport Card from '../Card';\nimport utils from '../../utils';\nimport Tile from '../Tile';\nimport MetadataCardContent from '../MetadataCardContent';\nimport * as styles from './CardContent.styles';\n\nexport default class CardContent extends Card {\n static get __componentName() {\n return 'CardContent';\n }\n\n static get __themeStyle() {\n return styles;\n }\n\n static _template() {\n return {\n ...super._template(),\n Tile: { type: Tile }\n };\n }\n\n static get properties() {\n return [\n ...super.properties,\n 'tile',\n 'metadata',\n 'orientation',\n 'collapseToMetadata',\n 'shouldCollapse',\n 'src'\n ];\n }\n\n static get tags() {\n return [...super.tags, 'Metadata', 'Tile'];\n }\n\n static get aliasStyles() {\n return [\n { prev: 'expandedW', curr: 'expandedWidth' },\n { prev: 'expandedH', curr: 'expandedHeight' }\n ];\n }\n\n _update() {\n this._updateSize();\n this._updateTile();\n this._updateMetadata();\n super._update();\n }\n\n _updateTitle() {}\n\n _updateTitlePosition() {}\n\n _updateTile() {\n let w = this.style.imageSize.w;\n let h = this.style.expandedHeight;\n const radius =\n Array.isArray(this.style.radius) && this.style.radius.length === 4\n ? this.style.radius\n : Array(4).fill(this.style.radius);\n\n let tileRadius = radius;\n\n if (!this._collapse) {\n tileRadius =\n this._orientation === 'horizontal'\n ? [radius[0], 0, 0, radius[3]]\n : [radius[0], radius[1], 0, 0];\n }\n\n if (this._orientation !== 'horizontal') {\n w = this.style.expandedWidth;\n h = this.style.imageSize.h;\n }\n\n // ensure a nested tile artwork src takes precedence over the class's src setter,\n // but that if src is undefined in both the setter and tile artwork object,\n // we don't incorrectly pass \"src: undefined\" to the Tile component (and in turn, Artwork)\n let tile = this.tile;\n if (this.src) {\n tile = utils.clone({ src: this.src }, this.tile);\n }\n\n this._Tile.patch({\n w,\n h,\n ...tile,\n style: {\n ...(tile?.style || {}),\n radius: tileRadius\n },\n persistentMetadata: true,\n alpha: this._shouldShowTile ? 1 : 0\n });\n }\n\n _updateMetadata() {\n const metadataPatch = {\n ...this.metadata,\n ...this._metadataPosition,\n ...this._metadataDimensions,\n mode: this.mode,\n alpha: this._shouldShowMetadata ? 1 : 0,\n style: this.style.metadata\n };\n\n if (this.style.marqueeOnFocus) {\n metadataPatch.marquee = this._isFocusedMode;\n }\n\n if (!this._Metadata) {\n metadataPatch.type = MetadataCardContent;\n }\n\n this.patch({ Metadata: metadataPatch });\n }\n\n _updateSize() {\n let w = this.style.expandedWidth;\n let h = this.style.expandedHeight;\n if (this._collapse) {\n if (this._orientation === 'horizontal') {\n w = this._collapseW;\n } else {\n h = this._collapseH;\n }\n }\n this.w = w;\n this.h = h;\n }\n\n _getSrc() {\n return (\n (this.tile &&\n ((this.tile.artwork && this.tile.artwork.src) || this.tile.src)) ||\n this._src\n );\n }\n\n get _metadataDimensions() {\n const paddingHorizontal = this.style.paddingHorizontal * 2;\n const paddingVertical = this.style.paddingVertical * 2;\n\n let w =\n this.style.expandedWidth - this.style.imageSize.w - paddingHorizontal;\n let h = this.style.expandedHeight - paddingVertical;\n\n if (this.orientation !== 'horizontal') {\n w = this.style.expandedWidth - paddingHorizontal;\n h = this.style.expandedHeight - this.style.imageSize.h - paddingVertical;\n }\n return { w, h };\n }\n\n get _metadataPosition() {\n const paddingHorizontal = this.style.paddingHorizontal;\n const paddingVertical = this.style.paddingVertical;\n\n let x = paddingHorizontal + (this._collapse ? 0 : this.style.imageSize.w);\n let y = paddingVertical;\n\n if (this.orientation !== 'horizontal') {\n x = paddingHorizontal;\n y = paddingVertical + (this._collapse ? 0 : this.style.imageSize.h);\n }\n\n return { x, y };\n }\n\n get _shouldShowMetadata() {\n return !this._collapse || this.collapseToMetadata;\n }\n\n get _shouldShowTile() {\n return !this._collapse || (this._collapse && !this.collapseToMetadata);\n }\n\n get _collapse() {\n return this.shouldCollapse && !this._isFocusedMode;\n }\n\n get _collapseW() {\n return this.collapseToMetadata\n ? this.style.expandedWidth - this.style.imageSize.w\n : this.style.imageSize.w;\n }\n\n get _collapseH() {\n return this.collapseToMetadata\n ? this.style.expandedHeight - this.style.imageSize.h\n : this.style.imageSize.h;\n }\n\n set announce(announce) {\n super.announce = announce;\n }\n\n get announce() {\n return (\n this._announce || [\n this._Metadata && this._Metadata.announce,\n this._Tile && this._Tile.announce\n ]\n );\n }\n}\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport utils from '../../utils';\n\nexport const base = theme => ({\n expandedWidth: utils.getWidthByUpCount(theme, 2),\n expandedHeight: utils.getDimensions(theme, {\n ratioX: 16,\n ratioY: 9,\n upCount: 4\n }).h,\n imageSize: {\n width: utils.getDimensions(theme, { ratioX: 16, ratioY: 9, upCount: 4 }).w,\n height: utils.getDimensions(theme, { ratioX: 16, ratioY: 9, upCount: 4 }).h\n },\n metadata: { descriptionTextStyle: { maxLines: 2 } },\n paddingVertical: theme.spacer.md * 1.5\n});\n","/**\n * Copyright 2023 Comcast Cable Communications Management, LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport const CATEGORIES = {\n 0: 'Docs',\n 2: 'Collections',\n 4: 'Utilities',\n 8: 'Components',\n 16: 'Patterns',\n 32: 'Templates'\n};\n\n/** Storybook config constants should go in this file */\n\nexport const storySortOrder = [\n CATEGORIES[0],\n [\n 'Introduction',\n 'Read Me',\n 'Base',\n 'Contributing',\n 'Lightning Resources',\n 'Lightning Community Guide',\n 'Theming',\n [\n 'Overview',\n 'Component Config',\n 'Tones',\n 'Modes',\n 'Extensions',\n 'Subtheming',\n 'Use in Storybook',\n 'Theme Properties',\n 'Hierarchy',\n 'Tutorial'\n ],\n 'Unit Testing',\n ['Overview', 'Test Renderer', 'Test Utils', ['makeCreateComponent', '*']]\n ],\n CATEGORIES[2],\n CATEGORIES[4],\n CATEGORIES[8],\n CATEGORIES[16],\n CATEGORIES[32]\n];\n\nexport const controlDescriptions = {\n collapseToMetadata:\n 'When in unfocused or disabled mode, if shouldCollapse property is true it will collapse the image to metadata (when focused, it will always be expanded)',\n shouldCollapse:\n 'When in unfocused or disabled mode, if this flag is true metadata will collapse (when focused, it will always be expanded)',\n fixed:\n 'Stops the width from being calculated dynamically based on content and will instead use the`w` property'\n};\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/5600.cfa105c1.iframe.bundle.js b/5600.cfa105c1.iframe.bundle.js deleted file mode 100644 index 1387e7d68..000000000 --- a/5600.cfa105c1.iframe.bundle.js +++ /dev/null @@ -1,10207 +0,0 @@ -(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[5600,9134,5278,1977,11,4759,1661,9725,1655,1323,7987,3153,3375,7771,8197,2877,9861,9459,3597],{ - -/***/ "../../../node_modules/@storybook/blocks/dist/chunk-GWAJ4KRU.mjs": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Y: () => (/* binding */ getControlSetterButtonId), -/* harmony export */ Z: () => (/* binding */ getControlId) -/* harmony export */ }); -var getControlId=value=>`control-${value.replace(/\s+/g,"-")}`,getControlSetterButtonId=value=>`set-${value.replace(/\s+/g,"-")}`; - - - - -/***/ }), - -/***/ "../../../node_modules/@storybook/blocks/dist/index.mjs": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - zE: () => (/* binding */ AnchorMdx), - ov: () => (/* binding */ ArgTypes), - Hl: () => (/* binding */ Canvas), - XA: () => (/* binding */ CodeOrSourceMdx), - VY: () => (/* binding */ DescriptionContainer), - kQ: () => (/* binding */ Docs), - Sw: () => (/* binding */ HeadersMdx), - oz: () => (/* binding */ Markdown2), - W8: () => (/* binding */ Meta), - hE: () => (/* binding */ Title3) -}); - -// UNUSED EXPORTS: AddContext, Anchor, ArgsTable, BooleanControl, ColorControl, ColorItem, ColorPalette, ComponentsTable, Controls, DateControl, DescriptionType, DocsContainer, DocsContext, DocsPage, DocsStory, ExternalDocs, ExternalDocsContainer, FilesControl, HeaderMdx, Heading, IconGallery, IconItem, NumberControl, ObjectControl, OptionsControl, PRIMARY_STORY, Primary, PureArgsTable, RangeControl, Source, SourceContainer, SourceContext, SourceState, Stories, Story, StoryTable, Subheading, Subtitle, TextControl, Typeset, UNKNOWN_ARGS_HASH, Unstyled, Wrapper, anchorBlockIdFromId, argsHash, assertIsFn, extractComponentArgTypes, extractTitle, format, formatDate, formatTime, getComponent, getStoryId, getStoryProps, parse, parseDate, parseTime, useOf, useSourceProps - -// EXTERNAL MODULE: ../../../node_modules/@storybook/blocks/dist/chunk-GWAJ4KRU.mjs -var chunk_GWAJ4KRU = __webpack_require__("../../../node_modules/@storybook/blocks/dist/chunk-GWAJ4KRU.mjs"); -// EXTERNAL MODULE: ../../../node_modules/@storybook/theming/dist/index.mjs + 1 modules -var dist = __webpack_require__("../../../node_modules/@storybook/theming/dist/index.mjs"); -// EXTERNAL MODULE: ../../../node_modules/@storybook/theming/dist/chunk-ZGA76URP.mjs -var chunk_ZGA76URP = __webpack_require__("../../../node_modules/@storybook/theming/dist/chunk-ZGA76URP.mjs"); -// EXTERNAL MODULE: ../../../node_modules/react/index.js -var react = __webpack_require__("../../../node_modules/react/index.js"); -// EXTERNAL MODULE: ../../../node_modules/@storybook/components/dist/index.mjs + 1 modules -var components_dist = __webpack_require__("../../../node_modules/@storybook/components/dist/index.mjs"); -// EXTERNAL MODULE: ../../../node_modules/@storybook/components/dist/chunk-ELLS3HSY.mjs + 14 modules -var chunk_ELLS3HSY = __webpack_require__("../../../node_modules/@storybook/components/dist/chunk-ELLS3HSY.mjs"); -;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/extends.js -function extends_extends() { - extends_extends = Object.assign ? Object.assign.bind() : function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - return target; - }; - return extends_extends.apply(this, arguments); -} -;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - return self; -} -;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js -function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); -} -;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js - -function _inheritsLoose(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf(subClass, superClass); -} -;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js -function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); -} -;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js -function _isNativeFunction(fn) { - try { - return Function.toString.call(fn).indexOf("[native code]") !== -1; - } catch (e) { - return typeof fn === "function"; - } -} -;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js -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; - } -} -;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/construct.js - - -function _construct(Parent, args, Class) { - if (_isNativeReflectConstruct()) { - _construct = Reflect.construct.bind(); - } else { - _construct = function _construct(Parent, args, Class) { - var a = [null]; - a.push.apply(a, args); - var Constructor = Function.bind.apply(Parent, a); - var instance = new Constructor(); - if (Class) _setPrototypeOf(instance, Class.prototype); - return instance; - }; - } - return _construct.apply(null, arguments); -} -;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js - - - - -function _wrapNativeSuper(Class) { - var _cache = typeof Map === "function" ? new Map() : undefined; - _wrapNativeSuper = function _wrapNativeSuper(Class) { - if (Class === null || !_isNativeFunction(Class)) return Class; - if (typeof Class !== "function") { - throw new TypeError("Super expression must either be null or a function"); - } - if (typeof _cache !== "undefined") { - if (_cache.has(Class)) return _cache.get(Class); - _cache.set(Class, Wrapper); - } - function Wrapper() { - return _construct(Class, arguments, _getPrototypeOf(this).constructor); - } - Wrapper.prototype = Object.create(Class.prototype, { - constructor: { - value: Wrapper, - enumerable: false, - writable: true, - configurable: true - } - }); - return _setPrototypeOf(Wrapper, Class); - }; - return _wrapNativeSuper(Class); -} -;// CONCATENATED MODULE: ../../../node_modules/polished/dist/polished.esm.js - - - - - - -function last() { - var _ref; - - return _ref = arguments.length - 1, _ref < 0 || arguments.length <= _ref ? undefined : arguments[_ref]; -} - -function negation(a) { - return -a; -} - -function addition(a, b) { - return a + b; -} - -function subtraction(a, b) { - return a - b; -} - -function multiplication(a, b) { - return a * b; -} - -function division(a, b) { - return a / b; -} - -function max() { - return Math.max.apply(Math, arguments); -} - -function min() { - return Math.min.apply(Math, arguments); -} - -function comma() { - return Array.of.apply(Array, arguments); -} - -var defaultSymbols = { - symbols: { - '*': { - infix: { - symbol: '*', - f: multiplication, - notation: 'infix', - precedence: 4, - rightToLeft: 0, - argCount: 2 - }, - symbol: '*', - regSymbol: '\\*' - }, - '/': { - infix: { - symbol: '/', - f: division, - notation: 'infix', - precedence: 4, - rightToLeft: 0, - argCount: 2 - }, - symbol: '/', - regSymbol: '/' - }, - '+': { - infix: { - symbol: '+', - f: addition, - notation: 'infix', - precedence: 2, - rightToLeft: 0, - argCount: 2 - }, - prefix: { - symbol: '+', - f: last, - notation: 'prefix', - precedence: 3, - rightToLeft: 0, - argCount: 1 - }, - symbol: '+', - regSymbol: '\\+' - }, - '-': { - infix: { - symbol: '-', - f: subtraction, - notation: 'infix', - precedence: 2, - rightToLeft: 0, - argCount: 2 - }, - prefix: { - symbol: '-', - f: negation, - notation: 'prefix', - precedence: 3, - rightToLeft: 0, - argCount: 1 - }, - symbol: '-', - regSymbol: '-' - }, - ',': { - infix: { - symbol: ',', - f: comma, - notation: 'infix', - precedence: 1, - rightToLeft: 0, - argCount: 2 - }, - symbol: ',', - regSymbol: ',' - }, - '(': { - prefix: { - symbol: '(', - f: last, - notation: 'prefix', - precedence: 0, - rightToLeft: 0, - argCount: 1 - }, - symbol: '(', - regSymbol: '\\(' - }, - ')': { - postfix: { - symbol: ')', - f: undefined, - notation: 'postfix', - precedence: 0, - rightToLeft: 0, - argCount: 1 - }, - symbol: ')', - regSymbol: '\\)' - }, - min: { - func: { - symbol: 'min', - f: min, - notation: 'func', - precedence: 0, - rightToLeft: 0, - argCount: 1 - }, - symbol: 'min', - regSymbol: 'min\\b' - }, - max: { - func: { - symbol: 'max', - f: max, - notation: 'func', - precedence: 0, - rightToLeft: 0, - argCount: 1 - }, - symbol: 'max', - regSymbol: 'max\\b' - } - } -}; -var defaultSymbolMap = (/* unused pure expression or super */ null && (defaultSymbols)); - -// based on https://github.com/styled-components/styled-components/blob/fcf6f3804c57a14dd7984dfab7bc06ee2edca044/src/utils/error.js - -/** - * Parse errors.md and turn it into a simple hash of code: message - * @private - */ -var ERRORS = { - "1": "Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n", - "2": "Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n", - "3": "Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n", - "4": "Couldn't generate valid rgb string from %s, it returned %s.\n\n", - "5": "Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n", - "6": "Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).\n\n", - "7": "Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).\n\n", - "8": "Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n", - "9": "Please provide a number of steps to the modularScale helper.\n\n", - "10": "Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n", - "11": "Invalid value passed as base to modularScale, expected number or em string but got \"%s\"\n\n", - "12": "Expected a string ending in \"px\" or a number passed as the first argument to %s(), got \"%s\" instead.\n\n", - "13": "Expected a string ending in \"px\" or a number passed as the second argument to %s(), got \"%s\" instead.\n\n", - "14": "Passed invalid pixel value (\"%s\") to %s(), please pass a value like \"12px\" or 12.\n\n", - "15": "Passed invalid base value (\"%s\") to %s(), please pass a value like \"12px\" or 12.\n\n", - "16": "You must provide a template to this method.\n\n", - "17": "You passed an unsupported selector state to this method.\n\n", - "18": "minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n", - "19": "fromSize and toSize must be provided as stringified numbers with the same units.\n\n", - "20": "expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n", - "21": "expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n", - "22": "expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n", - "23": "fontFace expects a name of a font-family.\n\n", - "24": "fontFace expects either the path to the font file(s) or a name of a local copy.\n\n", - "25": "fontFace expects localFonts to be an array.\n\n", - "26": "fontFace expects fileFormats to be an array.\n\n", - "27": "radialGradient requries at least 2 color-stops to properly render.\n\n", - "28": "Please supply a filename to retinaImage() as the first argument.\n\n", - "29": "Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n", - "30": "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n", - "31": "The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n", - "32": "To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\n\n", - "33": "The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n", - "34": "borderRadius expects a radius value as a string or number as the second argument.\n\n", - "35": "borderRadius expects one of \"top\", \"bottom\", \"left\" or \"right\" as the first argument.\n\n", - "36": "Property must be a string value.\n\n", - "37": "Syntax Error at %s.\n\n", - "38": "Formula contains a function that needs parentheses at %s.\n\n", - "39": "Formula is missing closing parenthesis at %s.\n\n", - "40": "Formula has too many closing parentheses at %s.\n\n", - "41": "All values in a formula must have the same unit or be unitless.\n\n", - "42": "Please provide a number of steps to the modularScale helper.\n\n", - "43": "Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n", - "44": "Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n", - "45": "Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n", - "46": "Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n", - "47": "minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n", - "48": "fromSize and toSize must be provided as stringified numbers with the same units.\n\n", - "49": "Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n", - "50": "Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n", - "51": "Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n", - "52": "fontFace expects either the path to the font file(s) or a name of a local copy.\n\n", - "53": "fontFace expects localFonts to be an array.\n\n", - "54": "fontFace expects fileFormats to be an array.\n\n", - "55": "fontFace expects a name of a font-family.\n\n", - "56": "linearGradient requries at least 2 color-stops to properly render.\n\n", - "57": "radialGradient requries at least 2 color-stops to properly render.\n\n", - "58": "Please supply a filename to retinaImage() as the first argument.\n\n", - "59": "Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n", - "60": "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n", - "61": "Property must be a string value.\n\n", - "62": "borderRadius expects a radius value as a string or number as the second argument.\n\n", - "63": "borderRadius expects one of \"top\", \"bottom\", \"left\" or \"right\" as the first argument.\n\n", - "64": "The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n", - "65": "To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').\n\n", - "66": "The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n", - "67": "You must provide a template to this method.\n\n", - "68": "You passed an unsupported selector state to this method.\n\n", - "69": "Expected a string ending in \"px\" or a number passed as the first argument to %s(), got %s instead.\n\n", - "70": "Expected a string ending in \"px\" or a number passed as the second argument to %s(), got %s instead.\n\n", - "71": "Passed invalid pixel value %s to %s(), please pass a value like \"12px\" or 12.\n\n", - "72": "Passed invalid base value %s to %s(), please pass a value like \"12px\" or 12.\n\n", - "73": "Please provide a valid CSS variable.\n\n", - "74": "CSS variable not found and no default was provided.\n\n", - "75": "important requires a valid style object, got a %s instead.\n\n", - "76": "fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n\n", - "77": "remToPx expects a value in \"rem\" but you provided it in \"%s\".\n\n", - "78": "base must be set in \"px\" or \"%\" but you set it in \"%s\".\n" -}; -/** - * super basic version of sprintf - * @private - */ - -function format() { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - var a = args[0]; - var b = []; - var c; - - for (c = 1; c < args.length; c += 1) { - b.push(args[c]); - } - - b.forEach(function (d) { - a = a.replace(/%[a-z]/, d); - }); - return a; -} -/** - * Create an error file out of errors.md for development and a simple web link to the full errors - * in production mode. - * @private - */ - - -var PolishedError = /*#__PURE__*/function (_Error) { - _inheritsLoose(PolishedError, _Error); - - function PolishedError(code) { - var _this; - - if (true) { - _this = _Error.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#" + code + " for more information.") || this; - } else { var _len2, args, _key2; } - - return _assertThisInitialized(_this); - } - - return PolishedError; -}( /*#__PURE__*/_wrapNativeSuper(Error)); - -var unitRegExp = /((?!\w)a|na|hc|mc|dg|me[r]?|xe|ni(?![a-zA-Z])|mm|cp|tp|xp|q(?!s)|hv|xamv|nimv|wv|sm|s(?!\D|$)|ged|darg?|nrut)/g; // Merges additional math functionality into the defaults. - -function mergeSymbolMaps(additionalSymbols) { - var symbolMap = {}; - symbolMap.symbols = additionalSymbols ? _extends({}, defaultSymbolMap.symbols, additionalSymbols.symbols) : _extends({}, defaultSymbolMap.symbols); - return symbolMap; -} - -function exec(operators, values) { - var _ref; - - var op = operators.pop(); - values.push(op.f.apply(op, (_ref = []).concat.apply(_ref, values.splice(-op.argCount)))); - return op.precedence; -} - -function calculate(expression, additionalSymbols) { - var symbolMap = mergeSymbolMaps(additionalSymbols); - var match; - var operators = [symbolMap.symbols['('].prefix]; - var values = []; - var pattern = new RegExp( // Pattern for numbers - "\\d+(?:\\.\\d+)?|" + // ...and patterns for individual operators/function names - Object.keys(symbolMap.symbols).map(function (key) { - return symbolMap.symbols[key]; - }) // longer symbols should be listed first - // $FlowFixMe - .sort(function (a, b) { - return b.symbol.length - a.symbol.length; - }) // $FlowFixMe - .map(function (val) { - return val.regSymbol; - }).join('|') + "|(\\S)", 'g'); - pattern.lastIndex = 0; // Reset regular expression object - - var afterValue = false; - - do { - match = pattern.exec(expression); - - var _ref2 = match || [')', undefined], - token = _ref2[0], - bad = _ref2[1]; - - var notNumber = symbolMap.symbols[token]; - var notNewValue = notNumber && !notNumber.prefix && !notNumber.func; - var notAfterValue = !notNumber || !notNumber.postfix && !notNumber.infix; // Check for syntax errors: - - if (bad || (afterValue ? notAfterValue : notNewValue)) { - throw new PolishedError(37, match ? match.index : expression.length, expression); - } - - if (afterValue) { - // We either have an infix or postfix operator (they should be mutually exclusive) - var curr = notNumber.postfix || notNumber.infix; - - do { - var prev = operators[operators.length - 1]; - if ((curr.precedence - prev.precedence || prev.rightToLeft) > 0) break; // Apply previous operator, since it has precedence over current one - } while (exec(operators, values)); // Exit loop after executing an opening parenthesis or function - - - afterValue = curr.notation === 'postfix'; - - if (curr.symbol !== ')') { - operators.push(curr); // Postfix always has precedence over any operator that follows after it - - if (afterValue) exec(operators, values); - } - } else if (notNumber) { - // prefix operator or function - operators.push(notNumber.prefix || notNumber.func); - - if (notNumber.func) { - // Require an opening parenthesis - match = pattern.exec(expression); - - if (!match || match[0] !== '(') { - throw new PolishedError(38, match ? match.index : expression.length, expression); - } - } - } else { - // number - values.push(+token); - afterValue = true; - } - } while (match && operators.length); - - if (operators.length) { - throw new PolishedError(39, match ? match.index : expression.length, expression); - } else if (match) { - throw new PolishedError(40, match ? match.index : expression.length, expression); - } else { - return values.pop(); - } -} - -function reverseString(str) { - return str.split('').reverse().join(''); -} -/** - * Helper for doing math with CSS Units. Accepts a formula as a string. All values in the formula must have the same unit (or be unitless). Supports complex formulas utliziing addition, subtraction, multiplication, division, square root, powers, factorial, min, max, as well as parentheses for order of operation. - * - *In cases where you need to do calculations with mixed units where one unit is a [relative length unit](https://developer.mozilla.org/en-US/docs/Web/CSS/length#Relative_length_units), you will want to use [CSS Calc](https://developer.mozilla.org/en-US/docs/Web/CSS/calc). - * - * *warning* While we've done everything possible to ensure math safely evalutes formulas expressed as strings, you should always use extreme caution when passing `math` user provided values. - * @example - * // Styles as object usage - * const styles = { - * fontSize: math('12rem + 8rem'), - * fontSize: math('(12px + 2px) * 3'), - * fontSize: math('3px^2 + sqrt(4)'), - * } - * - * // styled-components usage - * const div = styled.div` - * fontSize: ${math('12rem + 8rem')}; - * fontSize: ${math('(12px + 2px) * 3')}; - * fontSize: ${math('3px^2 + sqrt(4)')}; - * ` - * - * // CSS as JS Output - * - * div: { - * fontSize: '20rem', - * fontSize: '42px', - * fontSize: '11px', - * } - */ - - -function math(formula, additionalSymbols) { - var reversedFormula = reverseString(formula); - var formulaMatch = reversedFormula.match(unitRegExp); // Check that all units are the same - - if (formulaMatch && !formulaMatch.every(function (unit) { - return unit === formulaMatch[0]; - })) { - throw new PolishedError(41); - } - - var cleanFormula = reverseString(reversedFormula.replace(unitRegExp, '')); - return "" + calculate(cleanFormula, additionalSymbols) + (formulaMatch ? reverseString(formulaMatch[0]) : ''); -} - -var cssVariableRegex = /--[\S]*/g; -/** - * Fetches the value of a passed CSS Variable in the :root scope, or otherwise returns a defaultValue if provided. - * - * @example - * // Styles as object usage - * const styles = { - * 'background': cssVar('--background-color'), - * } - * - * // styled-components usage - * const div = styled.div` - * background: ${cssVar('--background-color')}; - * ` - * - * // CSS in JS Output - * - * element { - * 'background': 'red' - * } - */ - -function cssVar(cssVariable, defaultValue) { - if (!cssVariable || !cssVariable.match(cssVariableRegex)) { - throw new PolishedError(73); - } - - var variableValue; - /* eslint-disable */ - - /* istanbul ignore next */ - - if (typeof document !== 'undefined' && document.documentElement !== null) { - variableValue = getComputedStyle(document.documentElement).getPropertyValue(cssVariable); - } - /* eslint-enable */ - - - if (variableValue) { - return variableValue.trim(); - } else if (defaultValue) { - return defaultValue; - } - - throw new PolishedError(74); -} - -// @private -function capitalizeString(string) { - return string.charAt(0).toUpperCase() + string.slice(1); -} - -var positionMap$1 = (/* unused pure expression or super */ null && (['Top', 'Right', 'Bottom', 'Left'])); - -function generateProperty(property, position) { - if (!property) return position.toLowerCase(); - var splitProperty = property.split('-'); - - if (splitProperty.length > 1) { - splitProperty.splice(1, 0, position); - return splitProperty.reduce(function (acc, val) { - return "" + acc + capitalizeString(val); - }); - } - - var joinedProperty = property.replace(/([a-z])([A-Z])/g, "$1" + position + "$2"); - return property === joinedProperty ? "" + property + position : joinedProperty; -} - -function generateStyles(property, valuesWithDefaults) { - var styles = {}; - - for (var i = 0; i < valuesWithDefaults.length; i += 1) { - if (valuesWithDefaults[i] || valuesWithDefaults[i] === 0) { - styles[generateProperty(property, positionMap$1[i])] = valuesWithDefaults[i]; - } - } - - return styles; -} -/** - * Enables shorthand for direction-based properties. It accepts a property (hyphenated or camelCased) and up to four values that map to top, right, bottom, and left, respectively. You can optionally pass an empty string to get only the directional values as properties. You can also optionally pass a null argument for a directional value to ignore it. - * @example - * // Styles as object usage - * const styles = { - * ...directionalProperty('padding', '12px', '24px', '36px', '48px') - * } - * - * // styled-components usage - * const div = styled.div` - * ${directionalProperty('padding', '12px', '24px', '36px', '48px')} - * ` - * - * // CSS as JS Output - * - * div { - * 'paddingTop': '12px', - * 'paddingRight': '24px', - * 'paddingBottom': '36px', - * 'paddingLeft': '48px' - * } - */ - - -function directionalProperty(property) { - for (var _len = arguments.length, values = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - values[_key - 1] = arguments[_key]; - } - - // prettier-ignore - var firstValue = values[0], - _values$ = values[1], - secondValue = _values$ === void 0 ? firstValue : _values$, - _values$2 = values[2], - thirdValue = _values$2 === void 0 ? firstValue : _values$2, - _values$3 = values[3], - fourthValue = _values$3 === void 0 ? secondValue : _values$3; - var valuesWithDefaults = [firstValue, secondValue, thirdValue, fourthValue]; - return generateStyles(property, valuesWithDefaults); -} - -/** - * Check if a string ends with something - * @private - */ -function endsWith(string, suffix) { - return string.substr(-suffix.length) === suffix; -} - -var cssRegex$1 = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/; -/** - * Returns a given CSS value minus its unit of measure. - * - * @example - * // Styles as object usage - * const styles = { - * '--dimension': stripUnit('100px') - * } - * - * // styled-components usage - * const div = styled.div` - * --dimension: ${stripUnit('100px')}; - * ` - * - * // CSS in JS Output - * - * element { - * '--dimension': 100 - * } - */ - -function stripUnit(value) { - if (typeof value !== 'string') return value; - var matchedValue = value.match(cssRegex$1); - return matchedValue ? parseFloat(value) : value; -} - -/** - * Factory function that creates pixel-to-x converters - * @private - */ - -var pxtoFactory = function pxtoFactory(to) { - return function (pxval, base) { - if (base === void 0) { - base = '16px'; - } - - var newPxval = pxval; - var newBase = base; - - if (typeof pxval === 'string') { - if (!endsWith(pxval, 'px')) { - throw new PolishedError(69, to, pxval); - } - - newPxval = stripUnit(pxval); - } - - if (typeof base === 'string') { - if (!endsWith(base, 'px')) { - throw new PolishedError(70, to, base); - } - - newBase = stripUnit(base); - } - - if (typeof newPxval === 'string') { - throw new PolishedError(71, pxval, to); - } - - if (typeof newBase === 'string') { - throw new PolishedError(72, base, to); - } - - return "" + newPxval / newBase + to; - }; -}; - -var pixelsto = (/* unused pure expression or super */ null && (pxtoFactory)); - -/** - * Convert pixel value to ems. The default base value is 16px, but can be changed by passing a - * second argument to the function. - * @function - * @param {string|number} pxval - * @param {string|number} [base='16px'] - * @example - * // Styles as object usage - * const styles = { - * 'height': em('16px') - * } - * - * // styled-components usage - * const div = styled.div` - * height: ${em('16px')} - * ` - * - * // CSS in JS Output - * - * element { - * 'height': '1em' - * } - */ - -var em = /*#__PURE__*/(/* unused pure expression or super */ null && (pixelsto('em'))); -var em$1 = (/* unused pure expression or super */ null && (em)); - -var cssRegex = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/; -/** - * Returns a given CSS value and its unit as elements of an array. - * - * @example - * // Styles as object usage - * const styles = { - * '--dimension': getValueAndUnit('100px')[0], - * '--unit': getValueAndUnit('100px')[1], - * } - * - * // styled-components usage - * const div = styled.div` - * --dimension: ${getValueAndUnit('100px')[0]}; - * --unit: ${getValueAndUnit('100px')[1]}; - * ` - * - * // CSS in JS Output - * - * element { - * '--dimension': 100, - * '--unit': 'px', - * } - */ - -function getValueAndUnit(value) { - if (typeof value !== 'string') return [value, '']; - var matchedValue = value.match(cssRegex); - if (matchedValue) return [parseFloat(value), matchedValue[2]]; - return [value, undefined]; -} - -/** - * Helper for targeting rules in a style block generated by polished modules that need !important-level specificity. Can optionally specify a rule (or rules) to target specific rules. - * - * @example - * // Styles as object usage - * const styles = { - * ...important(cover()) - * } - * - * // styled-components usage - * const div = styled.div` - * ${important(cover())} - * ` - * - * // CSS as JS Output - * - * div: { - * 'position': 'absolute !important', - * 'top': '0 !important', - * 'right: '0 !important', - * 'bottom': '0 !important', - * 'left: '0 !important' - * } - */ - -function important(styleBlock, rules) { - if (typeof styleBlock !== 'object' || styleBlock === null) { - throw new PolishedError(75, typeof styleBlock); - } - - var newStyleBlock = {}; - Object.keys(styleBlock).forEach(function (key) { - if (typeof styleBlock[key] === 'object' && styleBlock[key] !== null) { - newStyleBlock[key] = important(styleBlock[key], rules); - } else if (!rules || rules && (rules === key || rules.indexOf(key) >= 0)) { - newStyleBlock[key] = styleBlock[key] + " !important"; - } else { - newStyleBlock[key] = styleBlock[key]; - } - }); - return newStyleBlock; -} - -var ratioNames = { - minorSecond: 1.067, - majorSecond: 1.125, - minorThird: 1.2, - majorThird: 1.25, - perfectFourth: 1.333, - augFourth: 1.414, - perfectFifth: 1.5, - minorSixth: 1.6, - goldenSection: 1.618, - majorSixth: 1.667, - minorSeventh: 1.778, - majorSeventh: 1.875, - octave: 2, - majorTenth: 2.5, - majorEleventh: 2.667, - majorTwelfth: 3, - doubleOctave: 4 -}; - -function getRatio(ratioName) { - return ratioNames[ratioName]; -} -/** - * Establish consistent measurements and spacial relationships throughout your projects by incrementing an em or rem value up or down a defined scale. We provide a list of commonly used scales as pre-defined variables. - * @example - * // Styles as object usage - * const styles = { - * // Increment two steps up the default scale - * 'fontSize': modularScale(2) - * } - * - * // styled-components usage - * const div = styled.div` - * // Increment two steps up the default scale - * fontSize: ${modularScale(2)} - * ` - * - * // CSS in JS Output - * - * element { - * 'fontSize': '1.77689em' - * } - */ - - -function modularScale(steps, base, ratio) { - if (base === void 0) { - base = '1em'; - } - - if (ratio === void 0) { - ratio = 1.333; - } - - if (typeof steps !== 'number') { - throw new PolishedError(42); - } - - if (typeof ratio === 'string' && !ratioNames[ratio]) { - throw new PolishedError(43); - } - - var _ref = typeof base === 'string' ? getValueAndUnit(base) : [base, ''], - realBase = _ref[0], - unit = _ref[1]; - - var realRatio = typeof ratio === 'string' ? getRatio(ratio) : ratio; - - if (typeof realBase === 'string') { - throw new PolishedError(44, base); - } - - return "" + realBase * Math.pow(realRatio, steps) + (unit || ''); -} - -/** - * Convert pixel value to rems. The default base value is 16px, but can be changed by passing a - * second argument to the function. - * @function - * @param {string|number} pxval - * @param {string|number} [base='16px'] - * @example - * // Styles as object usage - * const styles = { - * 'height': rem('16px') - * } - * - * // styled-components usage - * const div = styled.div` - * height: ${rem('16px')} - * ` - * - * // CSS in JS Output - * - * element { - * 'height': '1rem' - * } - */ - -var rem = /*#__PURE__*/(/* unused pure expression or super */ null && (pixelsto('rem'))); -var rem$1 = (/* unused pure expression or super */ null && (rem)); - -var defaultFontSize = 16; - -function convertBase(base) { - var deconstructedValue = getValueAndUnit(base); - - if (deconstructedValue[1] === 'px') { - return parseFloat(base); - } - - if (deconstructedValue[1] === '%') { - return parseFloat(base) / 100 * defaultFontSize; - } - - throw new PolishedError(78, deconstructedValue[1]); -} - -function getBaseFromDoc() { - /* eslint-disable */ - - /* istanbul ignore next */ - if (typeof document !== 'undefined' && document.documentElement !== null) { - var rootFontSize = getComputedStyle(document.documentElement).fontSize; - return rootFontSize ? convertBase(rootFontSize) : defaultFontSize; - } - /* eslint-enable */ - - /* istanbul ignore next */ - - - return defaultFontSize; -} -/** - * Convert rem values to px. By default, the base value is pulled from the font-size property on the root element (if it is set in % or px). It defaults to 16px if not found on the root. You can also override the base value by providing your own base in % or px. - * @example - * // Styles as object usage - * const styles = { - * 'height': remToPx('1.6rem') - * 'height': remToPx('1.6rem', '10px') - * } - * - * // styled-components usage - * const div = styled.div` - * height: ${remToPx('1.6rem')} - * height: ${remToPx('1.6rem', '10px')} - * ` - * - * // CSS in JS Output - * - * element { - * 'height': '25.6px', - * 'height': '16px', - * } - */ - - -function remToPx(value, base) { - var deconstructedValue = getValueAndUnit(value); - - if (deconstructedValue[1] !== 'rem' && deconstructedValue[1] !== '') { - throw new PolishedError(77, deconstructedValue[1]); - } - - var newBase = base ? convertBase(base) : getBaseFromDoc(); - return deconstructedValue[0] * newBase + "px"; -} - -var functionsMap$3 = { - back: 'cubic-bezier(0.600, -0.280, 0.735, 0.045)', - circ: 'cubic-bezier(0.600, 0.040, 0.980, 0.335)', - cubic: 'cubic-bezier(0.550, 0.055, 0.675, 0.190)', - expo: 'cubic-bezier(0.950, 0.050, 0.795, 0.035)', - quad: 'cubic-bezier(0.550, 0.085, 0.680, 0.530)', - quart: 'cubic-bezier(0.895, 0.030, 0.685, 0.220)', - quint: 'cubic-bezier(0.755, 0.050, 0.855, 0.060)', - sine: 'cubic-bezier(0.470, 0.000, 0.745, 0.715)' -}; -/** - * String to represent common easing functions as demonstrated here: (github.com/jaukia/easie). - * - * @example - * // Styles as object usage - * const styles = { - * 'transitionTimingFunction': easeIn('quad') - * } - * - * // styled-components usage - * const div = styled.div` - * transitionTimingFunction: ${easeIn('quad')}; - * ` - * - * // CSS as JS Output - * - * 'div': { - * 'transitionTimingFunction': 'cubic-bezier(0.550, 0.085, 0.680, 0.530)', - * } - */ - -function easeIn(functionName) { - return functionsMap$3[functionName.toLowerCase().trim()]; -} - -var functionsMap$2 = { - back: 'cubic-bezier(0.680, -0.550, 0.265, 1.550)', - circ: 'cubic-bezier(0.785, 0.135, 0.150, 0.860)', - cubic: 'cubic-bezier(0.645, 0.045, 0.355, 1.000)', - expo: 'cubic-bezier(1.000, 0.000, 0.000, 1.000)', - quad: 'cubic-bezier(0.455, 0.030, 0.515, 0.955)', - quart: 'cubic-bezier(0.770, 0.000, 0.175, 1.000)', - quint: 'cubic-bezier(0.860, 0.000, 0.070, 1.000)', - sine: 'cubic-bezier(0.445, 0.050, 0.550, 0.950)' -}; -/** - * String to represent common easing functions as demonstrated here: (github.com/jaukia/easie). - * - * @example - * // Styles as object usage - * const styles = { - * 'transitionTimingFunction': easeInOut('quad') - * } - * - * // styled-components usage - * const div = styled.div` - * transitionTimingFunction: ${easeInOut('quad')}; - * ` - * - * // CSS as JS Output - * - * 'div': { - * 'transitionTimingFunction': 'cubic-bezier(0.455, 0.030, 0.515, 0.955)', - * } - */ - -function easeInOut(functionName) { - return functionsMap$2[functionName.toLowerCase().trim()]; -} - -var functionsMap$1 = { - back: 'cubic-bezier(0.175, 0.885, 0.320, 1.275)', - cubic: 'cubic-bezier(0.215, 0.610, 0.355, 1.000)', - circ: 'cubic-bezier(0.075, 0.820, 0.165, 1.000)', - expo: 'cubic-bezier(0.190, 1.000, 0.220, 1.000)', - quad: 'cubic-bezier(0.250, 0.460, 0.450, 0.940)', - quart: 'cubic-bezier(0.165, 0.840, 0.440, 1.000)', - quint: 'cubic-bezier(0.230, 1.000, 0.320, 1.000)', - sine: 'cubic-bezier(0.390, 0.575, 0.565, 1.000)' -}; -/** - * String to represent common easing functions as demonstrated here: (github.com/jaukia/easie). - * - * @example - * // Styles as object usage - * const styles = { - * 'transitionTimingFunction': easeOut('quad') - * } - * - * // styled-components usage - * const div = styled.div` - * transitionTimingFunction: ${easeOut('quad')}; - * ` - * - * // CSS as JS Output - * - * 'div': { - * 'transitionTimingFunction': 'cubic-bezier(0.250, 0.460, 0.450, 0.940)', - * } - */ - -function easeOut(functionName) { - return functionsMap$1[functionName.toLowerCase().trim()]; -} - -/** - * Returns a CSS calc formula for linear interpolation of a property between two values. Accepts optional minScreen (defaults to '320px') and maxScreen (defaults to '1200px'). - * - * @example - * // Styles as object usage - * const styles = { - * fontSize: between('20px', '100px', '400px', '1000px'), - * fontSize: between('20px', '100px') - * } - * - * // styled-components usage - * const div = styled.div` - * fontSize: ${between('20px', '100px', '400px', '1000px')}; - * fontSize: ${between('20px', '100px')} - * ` - * - * // CSS as JS Output - * - * h1: { - * 'fontSize': 'calc(-33.33333333333334px + 13.333333333333334vw)', - * 'fontSize': 'calc(-9.090909090909093px + 9.090909090909092vw)' - * } - */ - -function between(fromSize, toSize, minScreen, maxScreen) { - if (minScreen === void 0) { - minScreen = '320px'; - } - - if (maxScreen === void 0) { - maxScreen = '1200px'; - } - - var _getValueAndUnit = getValueAndUnit(fromSize), - unitlessFromSize = _getValueAndUnit[0], - fromSizeUnit = _getValueAndUnit[1]; - - var _getValueAndUnit2 = getValueAndUnit(toSize), - unitlessToSize = _getValueAndUnit2[0], - toSizeUnit = _getValueAndUnit2[1]; - - var _getValueAndUnit3 = getValueAndUnit(minScreen), - unitlessMinScreen = _getValueAndUnit3[0], - minScreenUnit = _getValueAndUnit3[1]; - - var _getValueAndUnit4 = getValueAndUnit(maxScreen), - unitlessMaxScreen = _getValueAndUnit4[0], - maxScreenUnit = _getValueAndUnit4[1]; - - if (typeof unitlessMinScreen !== 'number' || typeof unitlessMaxScreen !== 'number' || !minScreenUnit || !maxScreenUnit || minScreenUnit !== maxScreenUnit) { - throw new PolishedError(47); - } - - if (typeof unitlessFromSize !== 'number' || typeof unitlessToSize !== 'number' || fromSizeUnit !== toSizeUnit) { - throw new PolishedError(48); - } - - if (fromSizeUnit !== minScreenUnit || toSizeUnit !== maxScreenUnit) { - throw new PolishedError(76); - } - - var slope = (unitlessFromSize - unitlessToSize) / (unitlessMinScreen - unitlessMaxScreen); - var base = unitlessToSize - slope * unitlessMaxScreen; - return "calc(" + base.toFixed(2) + (fromSizeUnit || '') + " + " + (100 * slope).toFixed(2) + "vw)"; -} - -/** - * CSS to contain a float (credit to CSSMojo). - * - * @example - * // Styles as object usage - * const styles = { - * ...clearFix(), - * } - * - * // styled-components usage - * const div = styled.div` - * ${clearFix()} - * ` - * - * // CSS as JS Output - * - * '&::after': { - * 'clear': 'both', - * 'content': '""', - * 'display': 'table' - * } - */ -function clearFix(parent) { - var _ref; - - if (parent === void 0) { - parent = '&'; - } - - var pseudoSelector = parent + "::after"; - return _ref = {}, _ref[pseudoSelector] = { - clear: 'both', - content: '""', - display: 'table' - }, _ref; -} - -/** - * CSS to fully cover an area. Can optionally be passed an offset to act as a "padding". - * - * @example - * // Styles as object usage - * const styles = { - * ...cover() - * } - * - * // styled-components usage - * const div = styled.div` - * ${cover()} - * ` - * - * // CSS as JS Output - * - * div: { - * 'position': 'absolute', - * 'top': '0', - * 'right: '0', - * 'bottom': '0', - * 'left: '0' - * } - */ -function cover(offset) { - if (offset === void 0) { - offset = 0; - } - - return { - position: 'absolute', - top: offset, - right: offset, - bottom: offset, - left: offset - }; -} - -/** - * CSS to represent truncated text with an ellipsis. You can optionally pass a max-width and number of lines before truncating. - * - * @example - * // Styles as object usage - * const styles = { - * ...ellipsis('250px') - * } - * - * // styled-components usage - * const div = styled.div` - * ${ellipsis('250px')} - * ` - * - * // CSS as JS Output - * - * div: { - * 'display': 'inline-block', - * 'maxWidth': '250px', - * 'overflow': 'hidden', - * 'textOverflow': 'ellipsis', - * 'whiteSpace': 'nowrap', - * 'wordWrap': 'normal' - * } - */ -function ellipsis(width, lines) { - if (lines === void 0) { - lines = 1; - } - - var styles = { - display: 'inline-block', - maxWidth: width || '100%', - overflow: 'hidden', - textOverflow: 'ellipsis', - whiteSpace: 'nowrap', - wordWrap: 'normal' - }; - return lines > 1 ? _extends({}, styles, { - WebkitBoxOrient: 'vertical', - WebkitLineClamp: lines, - display: '-webkit-box', - whiteSpace: 'normal' - }) : styles; -} - -function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } - -function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } - -function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } - -/** - * Returns a set of media queries that resizes a property (or set of properties) between a provided fromSize and toSize. Accepts optional minScreen (defaults to '320px') and maxScreen (defaults to '1200px') to constrain the interpolation. - * - * @example - * // Styles as object usage - * const styles = { - * ...fluidRange( - * { - * prop: 'padding', - * fromSize: '20px', - * toSize: '100px', - * }, - * '400px', - * '1000px', - * ) - * } - * - * // styled-components usage - * const div = styled.div` - * ${fluidRange( - * { - * prop: 'padding', - * fromSize: '20px', - * toSize: '100px', - * }, - * '400px', - * '1000px', - * )} - * ` - * - * // CSS as JS Output - * - * div: { - * "@media (min-width: 1000px)": Object { - * "padding": "100px", - * }, - * "@media (min-width: 400px)": Object { - * "padding": "calc(-33.33333333333334px + 13.333333333333334vw)", - * }, - * "padding": "20px", - * } - */ -function fluidRange(cssProp, minScreen, maxScreen) { - if (minScreen === void 0) { - minScreen = '320px'; - } - - if (maxScreen === void 0) { - maxScreen = '1200px'; - } - - if (!Array.isArray(cssProp) && typeof cssProp !== 'object' || cssProp === null) { - throw new PolishedError(49); - } - - if (Array.isArray(cssProp)) { - var mediaQueries = {}; - var fallbacks = {}; - - for (var _iterator = _createForOfIteratorHelperLoose(cssProp), _step; !(_step = _iterator()).done;) { - var _extends2, _extends3; - - var obj = _step.value; - - if (!obj.prop || !obj.fromSize || !obj.toSize) { - throw new PolishedError(50); - } - - fallbacks[obj.prop] = obj.fromSize; - mediaQueries["@media (min-width: " + minScreen + ")"] = _extends({}, mediaQueries["@media (min-width: " + minScreen + ")"], (_extends2 = {}, _extends2[obj.prop] = between(obj.fromSize, obj.toSize, minScreen, maxScreen), _extends2)); - mediaQueries["@media (min-width: " + maxScreen + ")"] = _extends({}, mediaQueries["@media (min-width: " + maxScreen + ")"], (_extends3 = {}, _extends3[obj.prop] = obj.toSize, _extends3)); - } - - return _extends({}, fallbacks, mediaQueries); - } else { - var _ref, _ref2, _ref3; - - if (!cssProp.prop || !cssProp.fromSize || !cssProp.toSize) { - throw new PolishedError(51); - } - - return _ref3 = {}, _ref3[cssProp.prop] = cssProp.fromSize, _ref3["@media (min-width: " + minScreen + ")"] = (_ref = {}, _ref[cssProp.prop] = between(cssProp.fromSize, cssProp.toSize, minScreen, maxScreen), _ref), _ref3["@media (min-width: " + maxScreen + ")"] = (_ref2 = {}, _ref2[cssProp.prop] = cssProp.toSize, _ref2), _ref3; - } -} - -var dataURIRegex = /^\s*data:([a-z]+\/[a-z-]+(;[a-z-]+=[a-z-]+)?)?(;charset=[a-z0-9-]+)?(;base64)?,[a-z0-9!$&',()*+,;=\-._~:@/?%\s]*\s*$/i; -var formatHintMap = { - woff: 'woff', - woff2: 'woff2', - ttf: 'truetype', - otf: 'opentype', - eot: 'embedded-opentype', - svg: 'svg', - svgz: 'svg' -}; - -function generateFormatHint(format, formatHint) { - if (!formatHint) return ''; - return " format(\"" + formatHintMap[format] + "\")"; -} - -function isDataURI(fontFilePath) { - return !!fontFilePath.replace(/\s+/g, ' ').match(dataURIRegex); -} - -function generateFileReferences(fontFilePath, fileFormats, formatHint) { - if (isDataURI(fontFilePath)) { - return "url(\"" + fontFilePath + "\")" + generateFormatHint(fileFormats[0], formatHint); - } - - var fileFontReferences = fileFormats.map(function (format) { - return "url(\"" + fontFilePath + "." + format + "\")" + generateFormatHint(format, formatHint); - }); - return fileFontReferences.join(', '); -} - -function generateLocalReferences(localFonts) { - var localFontReferences = localFonts.map(function (font) { - return "local(\"" + font + "\")"; - }); - return localFontReferences.join(', '); -} - -function generateSources(fontFilePath, localFonts, fileFormats, formatHint) { - var fontReferences = []; - if (localFonts) fontReferences.push(generateLocalReferences(localFonts)); - - if (fontFilePath) { - fontReferences.push(generateFileReferences(fontFilePath, fileFormats, formatHint)); - } - - return fontReferences.join(', '); -} -/** - * CSS for a @font-face declaration. Defaults to check for local copies of the font on the user's machine. You can disable this by passing `null` to localFonts. - * - * @example - * // Styles as object basic usage - * const styles = { - * ...fontFace({ - * 'fontFamily': 'Sans-Pro', - * 'fontFilePath': 'path/to/file' - * }) - * } - * - * // styled-components basic usage - * const GlobalStyle = createGlobalStyle`${ - * fontFace({ - * 'fontFamily': 'Sans-Pro', - * 'fontFilePath': 'path/to/file' - * } - * )}` - * - * // CSS as JS Output - * - * '@font-face': { - * 'fontFamily': 'Sans-Pro', - * 'src': 'url("path/to/file.eot"), url("path/to/file.woff2"), url("path/to/file.woff"), url("path/to/file.ttf"), url("path/to/file.svg")', - * } - */ - - -function fontFace(_ref) { - var fontFamily = _ref.fontFamily, - fontFilePath = _ref.fontFilePath, - fontStretch = _ref.fontStretch, - fontStyle = _ref.fontStyle, - fontVariant = _ref.fontVariant, - fontWeight = _ref.fontWeight, - _ref$fileFormats = _ref.fileFormats, - fileFormats = _ref$fileFormats === void 0 ? ['eot', 'woff2', 'woff', 'ttf', 'svg'] : _ref$fileFormats, - _ref$formatHint = _ref.formatHint, - formatHint = _ref$formatHint === void 0 ? false : _ref$formatHint, - _ref$localFonts = _ref.localFonts, - localFonts = _ref$localFonts === void 0 ? [fontFamily] : _ref$localFonts, - unicodeRange = _ref.unicodeRange, - fontDisplay = _ref.fontDisplay, - fontVariationSettings = _ref.fontVariationSettings, - fontFeatureSettings = _ref.fontFeatureSettings; - // Error Handling - if (!fontFamily) throw new PolishedError(55); - - if (!fontFilePath && !localFonts) { - throw new PolishedError(52); - } - - if (localFonts && !Array.isArray(localFonts)) { - throw new PolishedError(53); - } - - if (!Array.isArray(fileFormats)) { - throw new PolishedError(54); - } - - var fontFaceDeclaration = { - '@font-face': { - fontFamily: fontFamily, - src: generateSources(fontFilePath, localFonts, fileFormats, formatHint), - unicodeRange: unicodeRange, - fontStretch: fontStretch, - fontStyle: fontStyle, - fontVariant: fontVariant, - fontWeight: fontWeight, - fontDisplay: fontDisplay, - fontVariationSettings: fontVariationSettings, - fontFeatureSettings: fontFeatureSettings - } - }; // Removes undefined fields for cleaner css object. - - return JSON.parse(JSON.stringify(fontFaceDeclaration)); -} - -/** - * CSS to hide text to show a background image in a SEO-friendly way. - * - * @example - * // Styles as object usage - * const styles = { - * 'backgroundImage': 'url(logo.png)', - * ...hideText(), - * } - * - * // styled-components usage - * const div = styled.div` - * backgroundImage: url(logo.png); - * ${hideText()}; - * ` - * - * // CSS as JS Output - * - * 'div': { - * 'backgroundImage': 'url(logo.png)', - * 'textIndent': '101%', - * 'overflow': 'hidden', - * 'whiteSpace': 'nowrap', - * } - */ -function hideText() { - return { - textIndent: '101%', - overflow: 'hidden', - whiteSpace: 'nowrap' - }; -} - -/** - * CSS to hide content visually but remain accessible to screen readers. - * from [HTML5 Boilerplate](https://github.com/h5bp/html5-boilerplate/blob/9a176f57af1cfe8ec70300da4621fb9b07e5fa31/src/css/main.css#L121) - * - * @example - * // Styles as object usage - * const styles = { - * ...hideVisually(), - * } - * - * // styled-components usage - * const div = styled.div` - * ${hideVisually()}; - * ` - * - * // CSS as JS Output - * - * 'div': { - * 'border': '0', - * 'clip': 'rect(0 0 0 0)', - * 'height': '1px', - * 'margin': '-1px', - * 'overflow': 'hidden', - * 'padding': '0', - * 'position': 'absolute', - * 'whiteSpace': 'nowrap', - * 'width': '1px', - * } - */ -function hideVisually() { - return { - border: '0', - clip: 'rect(0 0 0 0)', - height: '1px', - margin: '-1px', - overflow: 'hidden', - padding: '0', - position: 'absolute', - whiteSpace: 'nowrap', - width: '1px' - }; -} - -/** - * Generates a media query to target HiDPI devices. - * - * @example - * // Styles as object usage - * const styles = { - * [hiDPI(1.5)]: { - * width: 200px; - * } - * } - * - * // styled-components usage - * const div = styled.div` - * ${hiDPI(1.5)} { - * width: 200px; - * } - * ` - * - * // CSS as JS Output - * - * '@media only screen and (-webkit-min-device-pixel-ratio: 1.5), - * only screen and (min--moz-device-pixel-ratio: 1.5), - * only screen and (-o-min-device-pixel-ratio: 1.5/1), - * only screen and (min-resolution: 144dpi), - * only screen and (min-resolution: 1.5dppx)': { - * 'width': '200px', - * } - */ -function hiDPI(ratio) { - if (ratio === void 0) { - ratio = 1.3; - } - - return "\n @media only screen and (-webkit-min-device-pixel-ratio: " + ratio + "),\n only screen and (min--moz-device-pixel-ratio: " + ratio + "),\n only screen and (-o-min-device-pixel-ratio: " + ratio + "/1),\n only screen and (min-resolution: " + Math.round(ratio * 96) + "dpi),\n only screen and (min-resolution: " + ratio + "dppx)\n "; -} - -function constructGradientValue(literals) { - var template = ''; - - for (var _len = arguments.length, substitutions = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - substitutions[_key - 1] = arguments[_key]; - } - - for (var i = 0; i < literals.length; i += 1) { - template += literals[i]; - - if (i === substitutions.length - 1 && substitutions[i]) { - var definedValues = substitutions.filter(function (substitute) { - return !!substitute; - }); // Adds leading coma if properties preceed color-stops - - if (definedValues.length > 1) { - template = template.slice(0, -1); - template += ", " + substitutions[i]; // No trailing space if color-stops is the only param provided - } else if (definedValues.length === 1) { - template += "" + substitutions[i]; - } - } else if (substitutions[i]) { - template += substitutions[i] + " "; - } - } - - return template.trim(); -} - -var _templateObject$1; - -/** - * CSS for declaring a linear gradient, including a fallback background-color. The fallback is either the first color-stop or an explicitly passed fallback color. - * - * @example - * // Styles as object usage - * const styles = { - * ...linearGradient({ - colorStops: ['#00FFFF 0%', 'rgba(0, 0, 255, 0) 50%', '#0000FF 95%'], - toDirection: 'to top right', - fallback: '#FFF', - }) - * } - * - * // styled-components usage - * const div = styled.div` - * ${linearGradient({ - colorStops: ['#00FFFF 0%', 'rgba(0, 0, 255, 0) 50%', '#0000FF 95%'], - toDirection: 'to top right', - fallback: '#FFF', - })} - *` - * - * // CSS as JS Output - * - * div: { - * 'backgroundColor': '#FFF', - * 'backgroundImage': 'linear-gradient(to top right, #00FFFF 0%, rgba(0, 0, 255, 0) 50%, #0000FF 95%)', - * } - */ -function linearGradient(_ref) { - var colorStops = _ref.colorStops, - fallback = _ref.fallback, - _ref$toDirection = _ref.toDirection, - toDirection = _ref$toDirection === void 0 ? '' : _ref$toDirection; - - if (!colorStops || colorStops.length < 2) { - throw new PolishedError(56); - } - - return { - backgroundColor: fallback || colorStops[0].replace(/,\s+/g, ',').split(' ')[0].replace(/,(?=\S)/g, ', '), - backgroundImage: constructGradientValue(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["linear-gradient(", "", ")"])), toDirection, colorStops.join(', ').replace(/,(?=\S)/g, ', ')) - }; -} - -/** - * CSS to normalize abnormalities across browsers (normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css) - * - * @example - * // Styles as object usage - * const styles = { - * ...normalize(), - * } - * - * // styled-components usage - * const GlobalStyle = createGlobalStyle`${normalize()}` - * - * // CSS as JS Output - * - * html { - * lineHeight: 1.15, - * textSizeAdjust: 100%, - * } ... - */ -function normalize() { - var _ref; - - return [(_ref = { - html: { - lineHeight: '1.15', - textSizeAdjust: '100%' - }, - body: { - margin: '0' - }, - main: { - display: 'block' - }, - h1: { - fontSize: '2em', - margin: '0.67em 0' - }, - hr: { - boxSizing: 'content-box', - height: '0', - overflow: 'visible' - }, - pre: { - fontFamily: 'monospace, monospace', - fontSize: '1em' - }, - a: { - backgroundColor: 'transparent' - }, - 'abbr[title]': { - borderBottom: 'none', - textDecoration: 'underline' - } - }, _ref["b,\n strong"] = { - fontWeight: 'bolder' - }, _ref["code,\n kbd,\n samp"] = { - fontFamily: 'monospace, monospace', - fontSize: '1em' - }, _ref.small = { - fontSize: '80%' - }, _ref["sub,\n sup"] = { - fontSize: '75%', - lineHeight: '0', - position: 'relative', - verticalAlign: 'baseline' - }, _ref.sub = { - bottom: '-0.25em' - }, _ref.sup = { - top: '-0.5em' - }, _ref.img = { - borderStyle: 'none' - }, _ref["button,\n input,\n optgroup,\n select,\n textarea"] = { - fontFamily: 'inherit', - fontSize: '100%', - lineHeight: '1.15', - margin: '0' - }, _ref["button,\n input"] = { - overflow: 'visible' - }, _ref["button,\n select"] = { - textTransform: 'none' - }, _ref["button,\n html [type=\"button\"],\n [type=\"reset\"],\n [type=\"submit\"]"] = { - WebkitAppearance: 'button' - }, _ref["button::-moz-focus-inner,\n [type=\"button\"]::-moz-focus-inner,\n [type=\"reset\"]::-moz-focus-inner,\n [type=\"submit\"]::-moz-focus-inner"] = { - borderStyle: 'none', - padding: '0' - }, _ref["button:-moz-focusring,\n [type=\"button\"]:-moz-focusring,\n [type=\"reset\"]:-moz-focusring,\n [type=\"submit\"]:-moz-focusring"] = { - outline: '1px dotted ButtonText' - }, _ref.fieldset = { - padding: '0.35em 0.625em 0.75em' - }, _ref.legend = { - boxSizing: 'border-box', - color: 'inherit', - display: 'table', - maxWidth: '100%', - padding: '0', - whiteSpace: 'normal' - }, _ref.progress = { - verticalAlign: 'baseline' - }, _ref.textarea = { - overflow: 'auto' - }, _ref["[type=\"checkbox\"],\n [type=\"radio\"]"] = { - boxSizing: 'border-box', - padding: '0' - }, _ref["[type=\"number\"]::-webkit-inner-spin-button,\n [type=\"number\"]::-webkit-outer-spin-button"] = { - height: 'auto' - }, _ref['[type="search"]'] = { - WebkitAppearance: 'textfield', - outlineOffset: '-2px' - }, _ref['[type="search"]::-webkit-search-decoration'] = { - WebkitAppearance: 'none' - }, _ref['::-webkit-file-upload-button'] = { - WebkitAppearance: 'button', - font: 'inherit' - }, _ref.details = { - display: 'block' - }, _ref.summary = { - display: 'list-item' - }, _ref.template = { - display: 'none' - }, _ref['[hidden]'] = { - display: 'none' - }, _ref), { - 'abbr[title]': { - textDecoration: 'underline dotted' - } - }]; -} - -var _templateObject; - -/** - * CSS for declaring a radial gradient, including a fallback background-color. The fallback is either the first color-stop or an explicitly passed fallback color. - * - * @example - * // Styles as object usage - * const styles = { - * ...radialGradient({ - * colorStops: ['#00FFFF 0%', 'rgba(0, 0, 255, 0) 50%', '#0000FF 95%'], - * extent: 'farthest-corner at 45px 45px', - * position: 'center', - * shape: 'ellipse', - * }) - * } - * - * // styled-components usage - * const div = styled.div` - * ${radialGradient({ - * colorStops: ['#00FFFF 0%', 'rgba(0, 0, 255, 0) 50%', '#0000FF 95%'], - * extent: 'farthest-corner at 45px 45px', - * position: 'center', - * shape: 'ellipse', - * })} - *` - * - * // CSS as JS Output - * - * div: { - * 'backgroundColor': '#00FFFF', - * 'backgroundImage': 'radial-gradient(center ellipse farthest-corner at 45px 45px, #00FFFF 0%, rgba(0, 0, 255, 0) 50%, #0000FF 95%)', - * } - */ -function radialGradient(_ref) { - var colorStops = _ref.colorStops, - _ref$extent = _ref.extent, - extent = _ref$extent === void 0 ? '' : _ref$extent, - fallback = _ref.fallback, - _ref$position = _ref.position, - position = _ref$position === void 0 ? '' : _ref$position, - _ref$shape = _ref.shape, - shape = _ref$shape === void 0 ? '' : _ref$shape; - - if (!colorStops || colorStops.length < 2) { - throw new PolishedError(57); - } - - return { - backgroundColor: fallback || colorStops[0].split(' ')[0], - backgroundImage: constructGradientValue(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["radial-gradient(", "", "", "", ")"])), position, shape, extent, colorStops.join(', ')) - }; -} - -/** - * A helper to generate a retina background image and non-retina - * background image. The retina background image will output to a HiDPI media query. The mixin uses - * a _2x.png filename suffix by default. - * - * @example - * // Styles as object usage - * const styles = { - * ...retinaImage('my-img') - * } - * - * // styled-components usage - * const div = styled.div` - * ${retinaImage('my-img')} - * ` - * - * // CSS as JS Output - * div { - * backgroundImage: 'url(my-img.png)', - * '@media only screen and (-webkit-min-device-pixel-ratio: 1.3), - * only screen and (min--moz-device-pixel-ratio: 1.3), - * only screen and (-o-min-device-pixel-ratio: 1.3/1), - * only screen and (min-resolution: 144dpi), - * only screen and (min-resolution: 1.5dppx)': { - * backgroundImage: 'url(my-img_2x.png)', - * } - * } - */ -function retinaImage(filename, backgroundSize, extension, retinaFilename, retinaSuffix) { - var _ref; - - if (extension === void 0) { - extension = 'png'; - } - - if (retinaSuffix === void 0) { - retinaSuffix = '_2x'; - } - - if (!filename) { - throw new PolishedError(58); - } // Replace the dot at the beginning of the passed extension if one exists - - - var ext = extension.replace(/^\./, ''); - var rFilename = retinaFilename ? retinaFilename + "." + ext : "" + filename + retinaSuffix + "." + ext; - return _ref = { - backgroundImage: "url(" + filename + "." + ext + ")" - }, _ref[hiDPI()] = _extends({ - backgroundImage: "url(" + rFilename + ")" - }, backgroundSize ? { - backgroundSize: backgroundSize - } : {}), _ref; -} - -/* eslint-disable key-spacing */ -var functionsMap = { - easeInBack: 'cubic-bezier(0.600, -0.280, 0.735, 0.045)', - easeInCirc: 'cubic-bezier(0.600, 0.040, 0.980, 0.335)', - easeInCubic: 'cubic-bezier(0.550, 0.055, 0.675, 0.190)', - easeInExpo: 'cubic-bezier(0.950, 0.050, 0.795, 0.035)', - easeInQuad: 'cubic-bezier(0.550, 0.085, 0.680, 0.530)', - easeInQuart: 'cubic-bezier(0.895, 0.030, 0.685, 0.220)', - easeInQuint: 'cubic-bezier(0.755, 0.050, 0.855, 0.060)', - easeInSine: 'cubic-bezier(0.470, 0.000, 0.745, 0.715)', - easeOutBack: 'cubic-bezier(0.175, 0.885, 0.320, 1.275)', - easeOutCubic: 'cubic-bezier(0.215, 0.610, 0.355, 1.000)', - easeOutCirc: 'cubic-bezier(0.075, 0.820, 0.165, 1.000)', - easeOutExpo: 'cubic-bezier(0.190, 1.000, 0.220, 1.000)', - easeOutQuad: 'cubic-bezier(0.250, 0.460, 0.450, 0.940)', - easeOutQuart: 'cubic-bezier(0.165, 0.840, 0.440, 1.000)', - easeOutQuint: 'cubic-bezier(0.230, 1.000, 0.320, 1.000)', - easeOutSine: 'cubic-bezier(0.390, 0.575, 0.565, 1.000)', - easeInOutBack: 'cubic-bezier(0.680, -0.550, 0.265, 1.550)', - easeInOutCirc: 'cubic-bezier(0.785, 0.135, 0.150, 0.860)', - easeInOutCubic: 'cubic-bezier(0.645, 0.045, 0.355, 1.000)', - easeInOutExpo: 'cubic-bezier(1.000, 0.000, 0.000, 1.000)', - easeInOutQuad: 'cubic-bezier(0.455, 0.030, 0.515, 0.955)', - easeInOutQuart: 'cubic-bezier(0.770, 0.000, 0.175, 1.000)', - easeInOutQuint: 'cubic-bezier(0.860, 0.000, 0.070, 1.000)', - easeInOutSine: 'cubic-bezier(0.445, 0.050, 0.550, 0.950)' -}; -/* eslint-enable key-spacing */ - -function getTimingFunction(functionName) { - return functionsMap[functionName]; -} -/** - * String to represent common easing functions as demonstrated here: (github.com/jaukia/easie). - * - * @deprecated - This will be deprecated in v5 in favor of `easeIn`, `easeOut`, `easeInOut`. - * - * @example - * // Styles as object usage - * const styles = { - * 'transitionTimingFunction': timingFunctions('easeInQuad') - * } - * - * // styled-components usage - * const div = styled.div` - * transitionTimingFunction: ${timingFunctions('easeInQuad')}; - * ` - * - * // CSS as JS Output - * - * 'div': { - * 'transitionTimingFunction': 'cubic-bezier(0.550, 0.085, 0.680, 0.530)', - * } - */ - - -function timingFunctions(timingFunction) { - return getTimingFunction(timingFunction); -} - -var getBorderWidth = function getBorderWidth(pointingDirection, height, width) { - var fullWidth = "" + width[0] + (width[1] || ''); - var halfWidth = "" + width[0] / 2 + (width[1] || ''); - var fullHeight = "" + height[0] + (height[1] || ''); - var halfHeight = "" + height[0] / 2 + (height[1] || ''); - - switch (pointingDirection) { - case 'top': - return "0 " + halfWidth + " " + fullHeight + " " + halfWidth; - - case 'topLeft': - return fullWidth + " " + fullHeight + " 0 0"; - - case 'left': - return halfHeight + " " + fullWidth + " " + halfHeight + " 0"; - - case 'bottomLeft': - return fullWidth + " 0 0 " + fullHeight; - - case 'bottom': - return fullHeight + " " + halfWidth + " 0 " + halfWidth; - - case 'bottomRight': - return "0 0 " + fullWidth + " " + fullHeight; - - case 'right': - return halfHeight + " 0 " + halfHeight + " " + fullWidth; - - case 'topRight': - default: - return "0 " + fullWidth + " " + fullHeight + " 0"; - } -}; - -var getBorderColor = function getBorderColor(pointingDirection, foregroundColor) { - switch (pointingDirection) { - case 'top': - case 'bottomRight': - return { - borderBottomColor: foregroundColor - }; - - case 'right': - case 'bottomLeft': - return { - borderLeftColor: foregroundColor - }; - - case 'bottom': - case 'topLeft': - return { - borderTopColor: foregroundColor - }; - - case 'left': - case 'topRight': - return { - borderRightColor: foregroundColor - }; - - default: - throw new PolishedError(59); - } -}; -/** - * CSS to represent triangle with any pointing direction with an optional background color. - * - * @example - * // Styles as object usage - * - * const styles = { - * ...triangle({ pointingDirection: 'right', width: '100px', height: '100px', foregroundColor: 'red' }) - * } - * - * - * // styled-components usage - * const div = styled.div` - * ${triangle({ pointingDirection: 'right', width: '100px', height: '100px', foregroundColor: 'red' })} - * - * - * // CSS as JS Output - * - * div: { - * 'borderColor': 'transparent transparent transparent red', - * 'borderStyle': 'solid', - * 'borderWidth': '50px 0 50px 100px', - * 'height': '0', - * 'width': '0', - * } - */ - - -function triangle(_ref) { - var pointingDirection = _ref.pointingDirection, - height = _ref.height, - width = _ref.width, - foregroundColor = _ref.foregroundColor, - _ref$backgroundColor = _ref.backgroundColor, - backgroundColor = _ref$backgroundColor === void 0 ? 'transparent' : _ref$backgroundColor; - var widthAndUnit = getValueAndUnit(width); - var heightAndUnit = getValueAndUnit(height); - - if (isNaN(heightAndUnit[0]) || isNaN(widthAndUnit[0])) { - throw new PolishedError(60); - } - - return _extends({ - width: '0', - height: '0', - borderColor: backgroundColor - }, getBorderColor(pointingDirection, foregroundColor), { - borderStyle: 'solid', - borderWidth: getBorderWidth(pointingDirection, heightAndUnit, widthAndUnit) - }); -} - -/** - * Provides an easy way to change the `wordWrap` property. - * - * @example - * // Styles as object usage - * const styles = { - * ...wordWrap('break-word') - * } - * - * // styled-components usage - * const div = styled.div` - * ${wordWrap('break-word')} - * ` - * - * // CSS as JS Output - * - * const styles = { - * overflowWrap: 'break-word', - * wordWrap: 'break-word', - * wordBreak: 'break-all', - * } - */ -function wordWrap(wrap) { - if (wrap === void 0) { - wrap = 'break-word'; - } - - var wordBreak = wrap === 'break-word' ? 'break-all' : wrap; - return { - overflowWrap: wrap, - wordWrap: wrap, - wordBreak: wordBreak - }; -} - -function colorToInt(color) { - return Math.round(color * 255); -} - -function convertToInt(red, green, blue) { - return colorToInt(red) + "," + colorToInt(green) + "," + colorToInt(blue); -} - -function hslToRgb(hue, saturation, lightness, convert) { - if (convert === void 0) { - convert = convertToInt; - } - - if (saturation === 0) { - // achromatic - return convert(lightness, lightness, lightness); - } // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV - - - var huePrime = (hue % 360 + 360) % 360 / 60; - var chroma = (1 - Math.abs(2 * lightness - 1)) * saturation; - var secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1)); - var red = 0; - var green = 0; - var blue = 0; - - if (huePrime >= 0 && huePrime < 1) { - red = chroma; - green = secondComponent; - } else if (huePrime >= 1 && huePrime < 2) { - red = secondComponent; - green = chroma; - } else if (huePrime >= 2 && huePrime < 3) { - green = chroma; - blue = secondComponent; - } else if (huePrime >= 3 && huePrime < 4) { - green = secondComponent; - blue = chroma; - } else if (huePrime >= 4 && huePrime < 5) { - red = secondComponent; - blue = chroma; - } else if (huePrime >= 5 && huePrime < 6) { - red = chroma; - blue = secondComponent; - } - - var lightnessModification = lightness - chroma / 2; - var finalRed = red + lightnessModification; - var finalGreen = green + lightnessModification; - var finalBlue = blue + lightnessModification; - return convert(finalRed, finalGreen, finalBlue); -} - -var namedColorMap = { - aliceblue: 'f0f8ff', - antiquewhite: 'faebd7', - aqua: '00ffff', - aquamarine: '7fffd4', - azure: 'f0ffff', - beige: 'f5f5dc', - bisque: 'ffe4c4', - black: '000', - blanchedalmond: 'ffebcd', - blue: '0000ff', - blueviolet: '8a2be2', - brown: 'a52a2a', - burlywood: 'deb887', - cadetblue: '5f9ea0', - chartreuse: '7fff00', - chocolate: 'd2691e', - coral: 'ff7f50', - cornflowerblue: '6495ed', - cornsilk: 'fff8dc', - crimson: 'dc143c', - cyan: '00ffff', - darkblue: '00008b', - darkcyan: '008b8b', - darkgoldenrod: 'b8860b', - darkgray: 'a9a9a9', - darkgreen: '006400', - darkgrey: 'a9a9a9', - darkkhaki: 'bdb76b', - darkmagenta: '8b008b', - darkolivegreen: '556b2f', - darkorange: 'ff8c00', - darkorchid: '9932cc', - darkred: '8b0000', - darksalmon: 'e9967a', - darkseagreen: '8fbc8f', - darkslateblue: '483d8b', - darkslategray: '2f4f4f', - darkslategrey: '2f4f4f', - darkturquoise: '00ced1', - darkviolet: '9400d3', - deeppink: 'ff1493', - deepskyblue: '00bfff', - dimgray: '696969', - dimgrey: '696969', - dodgerblue: '1e90ff', - firebrick: 'b22222', - floralwhite: 'fffaf0', - forestgreen: '228b22', - fuchsia: 'ff00ff', - gainsboro: 'dcdcdc', - ghostwhite: 'f8f8ff', - gold: 'ffd700', - goldenrod: 'daa520', - gray: '808080', - green: '008000', - greenyellow: 'adff2f', - grey: '808080', - honeydew: 'f0fff0', - hotpink: 'ff69b4', - indianred: 'cd5c5c', - indigo: '4b0082', - ivory: 'fffff0', - khaki: 'f0e68c', - lavender: 'e6e6fa', - lavenderblush: 'fff0f5', - lawngreen: '7cfc00', - lemonchiffon: 'fffacd', - lightblue: 'add8e6', - lightcoral: 'f08080', - lightcyan: 'e0ffff', - lightgoldenrodyellow: 'fafad2', - lightgray: 'd3d3d3', - lightgreen: '90ee90', - lightgrey: 'd3d3d3', - lightpink: 'ffb6c1', - lightsalmon: 'ffa07a', - lightseagreen: '20b2aa', - lightskyblue: '87cefa', - lightslategray: '789', - lightslategrey: '789', - lightsteelblue: 'b0c4de', - lightyellow: 'ffffe0', - lime: '0f0', - limegreen: '32cd32', - linen: 'faf0e6', - magenta: 'f0f', - maroon: '800000', - mediumaquamarine: '66cdaa', - mediumblue: '0000cd', - mediumorchid: 'ba55d3', - mediumpurple: '9370db', - mediumseagreen: '3cb371', - mediumslateblue: '7b68ee', - mediumspringgreen: '00fa9a', - mediumturquoise: '48d1cc', - mediumvioletred: 'c71585', - midnightblue: '191970', - mintcream: 'f5fffa', - mistyrose: 'ffe4e1', - moccasin: 'ffe4b5', - navajowhite: 'ffdead', - navy: '000080', - oldlace: 'fdf5e6', - olive: '808000', - olivedrab: '6b8e23', - orange: 'ffa500', - orangered: 'ff4500', - orchid: 'da70d6', - palegoldenrod: 'eee8aa', - palegreen: '98fb98', - paleturquoise: 'afeeee', - palevioletred: 'db7093', - papayawhip: 'ffefd5', - peachpuff: 'ffdab9', - peru: 'cd853f', - pink: 'ffc0cb', - plum: 'dda0dd', - powderblue: 'b0e0e6', - purple: '800080', - rebeccapurple: '639', - red: 'f00', - rosybrown: 'bc8f8f', - royalblue: '4169e1', - saddlebrown: '8b4513', - salmon: 'fa8072', - sandybrown: 'f4a460', - seagreen: '2e8b57', - seashell: 'fff5ee', - sienna: 'a0522d', - silver: 'c0c0c0', - skyblue: '87ceeb', - slateblue: '6a5acd', - slategray: '708090', - slategrey: '708090', - snow: 'fffafa', - springgreen: '00ff7f', - steelblue: '4682b4', - tan: 'd2b48c', - teal: '008080', - thistle: 'd8bfd8', - tomato: 'ff6347', - turquoise: '40e0d0', - violet: 'ee82ee', - wheat: 'f5deb3', - white: 'fff', - whitesmoke: 'f5f5f5', - yellow: 'ff0', - yellowgreen: '9acd32' -}; -/** - * Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color. - * @private - */ - -function nameToHex(color) { - if (typeof color !== 'string') return color; - var normalizedColorName = color.toLowerCase(); - return namedColorMap[normalizedColorName] ? "#" + namedColorMap[normalizedColorName] : color; -} - -var hexRegex = /^#[a-fA-F0-9]{6}$/; -var hexRgbaRegex = /^#[a-fA-F0-9]{8}$/; -var reducedHexRegex = /^#[a-fA-F0-9]{3}$/; -var reducedRgbaHexRegex = /^#[a-fA-F0-9]{4}$/; -var rgbRegex = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i; -var rgbaRegex = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i; -var hslRegex = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i; -var hslaRegex = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i; -/** - * Returns an RgbColor or RgbaColor object. This utility function is only useful - * if want to extract a color component. With the color util `toColorString` you - * can convert a RgbColor or RgbaColor object back to a string. - * - * @example - * // Assigns `{ red: 255, green: 0, blue: 0 }` to color1 - * const color1 = parseToRgb('rgb(255, 0, 0)'); - * // Assigns `{ red: 92, green: 102, blue: 112, alpha: 0.75 }` to color2 - * const color2 = parseToRgb('hsla(210, 10%, 40%, 0.75)'); - */ - -function parseToRgb(color) { - if (typeof color !== 'string') { - throw new PolishedError(3); - } - - var normalizedColor = nameToHex(color); - - if (normalizedColor.match(hexRegex)) { - return { - red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16), - green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16), - blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16) - }; - } - - if (normalizedColor.match(hexRgbaRegex)) { - var alpha = parseFloat((parseInt("" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2)); - return { - red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16), - green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16), - blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16), - alpha: alpha - }; - } - - if (normalizedColor.match(reducedHexRegex)) { - return { - red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16), - green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16), - blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16) - }; - } - - if (normalizedColor.match(reducedRgbaHexRegex)) { - var _alpha = parseFloat((parseInt("" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2)); - - return { - red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16), - green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16), - blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16), - alpha: _alpha - }; - } - - var rgbMatched = rgbRegex.exec(normalizedColor); - - if (rgbMatched) { - return { - red: parseInt("" + rgbMatched[1], 10), - green: parseInt("" + rgbMatched[2], 10), - blue: parseInt("" + rgbMatched[3], 10) - }; - } - - var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50)); - - if (rgbaMatched) { - return { - red: parseInt("" + rgbaMatched[1], 10), - green: parseInt("" + rgbaMatched[2], 10), - blue: parseInt("" + rgbaMatched[3], 10), - alpha: parseFloat("" + rgbaMatched[4]) > 1 ? parseFloat("" + rgbaMatched[4]) / 100 : parseFloat("" + rgbaMatched[4]) - }; - } - - var hslMatched = hslRegex.exec(normalizedColor); - - if (hslMatched) { - var hue = parseInt("" + hslMatched[1], 10); - var saturation = parseInt("" + hslMatched[2], 10) / 100; - var lightness = parseInt("" + hslMatched[3], 10) / 100; - var rgbColorString = "rgb(" + hslToRgb(hue, saturation, lightness) + ")"; - var hslRgbMatched = rgbRegex.exec(rgbColorString); - - if (!hslRgbMatched) { - throw new PolishedError(4, normalizedColor, rgbColorString); - } - - return { - red: parseInt("" + hslRgbMatched[1], 10), - green: parseInt("" + hslRgbMatched[2], 10), - blue: parseInt("" + hslRgbMatched[3], 10) - }; - } - - var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50)); - - if (hslaMatched) { - var _hue = parseInt("" + hslaMatched[1], 10); - - var _saturation = parseInt("" + hslaMatched[2], 10) / 100; - - var _lightness = parseInt("" + hslaMatched[3], 10) / 100; - - var _rgbColorString = "rgb(" + hslToRgb(_hue, _saturation, _lightness) + ")"; - - var _hslRgbMatched = rgbRegex.exec(_rgbColorString); - - if (!_hslRgbMatched) { - throw new PolishedError(4, normalizedColor, _rgbColorString); - } - - return { - red: parseInt("" + _hslRgbMatched[1], 10), - green: parseInt("" + _hslRgbMatched[2], 10), - blue: parseInt("" + _hslRgbMatched[3], 10), - alpha: parseFloat("" + hslaMatched[4]) > 1 ? parseFloat("" + hslaMatched[4]) / 100 : parseFloat("" + hslaMatched[4]) - }; - } - - throw new PolishedError(5); -} - -function rgbToHsl(color) { - // make sure rgb are contained in a set of [0, 255] - var red = color.red / 255; - var green = color.green / 255; - var blue = color.blue / 255; - var max = Math.max(red, green, blue); - var min = Math.min(red, green, blue); - var lightness = (max + min) / 2; - - if (max === min) { - // achromatic - if (color.alpha !== undefined) { - return { - hue: 0, - saturation: 0, - lightness: lightness, - alpha: color.alpha - }; - } else { - return { - hue: 0, - saturation: 0, - lightness: lightness - }; - } - } - - var hue; - var delta = max - min; - var saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min); - - switch (max) { - case red: - hue = (green - blue) / delta + (green < blue ? 6 : 0); - break; - - case green: - hue = (blue - red) / delta + 2; - break; - - default: - // blue case - hue = (red - green) / delta + 4; - break; - } - - hue *= 60; - - if (color.alpha !== undefined) { - return { - hue: hue, - saturation: saturation, - lightness: lightness, - alpha: color.alpha - }; - } - - return { - hue: hue, - saturation: saturation, - lightness: lightness - }; -} - -/** - * Returns an HslColor or HslaColor object. This utility function is only useful - * if want to extract a color component. With the color util `toColorString` you - * can convert a HslColor or HslaColor object back to a string. - * - * @example - * // Assigns `{ hue: 0, saturation: 1, lightness: 0.5 }` to color1 - * const color1 = parseToHsl('rgb(255, 0, 0)'); - * // Assigns `{ hue: 128, saturation: 1, lightness: 0.5, alpha: 0.75 }` to color2 - * const color2 = parseToHsl('hsla(128, 100%, 50%, 0.75)'); - */ -function parseToHsl(color) { - // Note: At a later stage we can optimize this function as right now a hsl - // color would be parsed converted to rgb values and converted back to hsl. - return rgbToHsl(parseToRgb(color)); -} - -/** - * Reduces hex values if possible e.g. #ff8866 to #f86 - * @private - */ -var reduceHexValue = function reduceHexValue(value) { - if (value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6]) { - return "#" + value[1] + value[3] + value[5]; - } - - return value; -}; - -var reduceHexValue$1 = reduceHexValue; - -function numberToHex(value) { - var hex = value.toString(16); - return hex.length === 1 ? "0" + hex : hex; -} - -function colorToHex(color) { - return numberToHex(Math.round(color * 255)); -} - -function convertToHex(red, green, blue) { - return reduceHexValue$1("#" + colorToHex(red) + colorToHex(green) + colorToHex(blue)); -} - -function hslToHex(hue, saturation, lightness) { - return hslToRgb(hue, saturation, lightness, convertToHex); -} - -/** - * Returns a string value for the color. The returned result is the smallest possible hex notation. - * - * @example - * // Styles as object usage - * const styles = { - * background: hsl(359, 0.75, 0.4), - * background: hsl({ hue: 360, saturation: 0.75, lightness: 0.4 }), - * } - * - * // styled-components usage - * const div = styled.div` - * background: ${hsl(359, 0.75, 0.4)}; - * background: ${hsl({ hue: 360, saturation: 0.75, lightness: 0.4 })}; - * ` - * - * // CSS in JS Output - * - * element { - * background: "#b3191c"; - * background: "#b3191c"; - * } - */ -function hsl(value, saturation, lightness) { - if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number') { - return hslToHex(value, saturation, lightness); - } else if (typeof value === 'object' && saturation === undefined && lightness === undefined) { - return hslToHex(value.hue, value.saturation, value.lightness); - } - - throw new PolishedError(1); -} - -/** - * Returns a string value for the color. The returned result is the smallest possible rgba or hex notation. - * - * @example - * // Styles as object usage - * const styles = { - * background: hsla(359, 0.75, 0.4, 0.7), - * background: hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 }), - * background: hsla(359, 0.75, 0.4, 1), - * } - * - * // styled-components usage - * const div = styled.div` - * background: ${hsla(359, 0.75, 0.4, 0.7)}; - * background: ${hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 })}; - * background: ${hsla(359, 0.75, 0.4, 1)}; - * ` - * - * // CSS in JS Output - * - * element { - * background: "rgba(179,25,28,0.7)"; - * background: "rgba(179,25,28,0.7)"; - * background: "#b3191c"; - * } - */ -function hsla(value, saturation, lightness, alpha) { - if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number' && typeof alpha === 'number') { - return alpha >= 1 ? hslToHex(value, saturation, lightness) : "rgba(" + hslToRgb(value, saturation, lightness) + "," + alpha + ")"; - } else if (typeof value === 'object' && saturation === undefined && lightness === undefined && alpha === undefined) { - return value.alpha >= 1 ? hslToHex(value.hue, value.saturation, value.lightness) : "rgba(" + hslToRgb(value.hue, value.saturation, value.lightness) + "," + value.alpha + ")"; - } - - throw new PolishedError(2); -} - -/** - * Returns a string value for the color. The returned result is the smallest possible hex notation. - * - * @example - * // Styles as object usage - * const styles = { - * background: rgb(255, 205, 100), - * background: rgb({ red: 255, green: 205, blue: 100 }), - * } - * - * // styled-components usage - * const div = styled.div` - * background: ${rgb(255, 205, 100)}; - * background: ${rgb({ red: 255, green: 205, blue: 100 })}; - * ` - * - * // CSS in JS Output - * - * element { - * background: "#ffcd64"; - * background: "#ffcd64"; - * } - */ -function rgb(value, green, blue) { - if (typeof value === 'number' && typeof green === 'number' && typeof blue === 'number') { - return reduceHexValue$1("#" + numberToHex(value) + numberToHex(green) + numberToHex(blue)); - } else if (typeof value === 'object' && green === undefined && blue === undefined) { - return reduceHexValue$1("#" + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue)); - } - - throw new PolishedError(6); -} - -/** - * Returns a string value for the color. The returned result is the smallest possible rgba or hex notation. - * - * Can also be used to fade a color by passing a hex value or named CSS color along with an alpha value. - * - * @example - * // Styles as object usage - * const styles = { - * background: rgba(255, 205, 100, 0.7), - * background: rgba({ red: 255, green: 205, blue: 100, alpha: 0.7 }), - * background: rgba(255, 205, 100, 1), - * background: rgba('#ffffff', 0.4), - * background: rgba('black', 0.7), - * } - * - * // styled-components usage - * const div = styled.div` - * background: ${rgba(255, 205, 100, 0.7)}; - * background: ${rgba({ red: 255, green: 205, blue: 100, alpha: 0.7 })}; - * background: ${rgba(255, 205, 100, 1)}; - * background: ${rgba('#ffffff', 0.4)}; - * background: ${rgba('black', 0.7)}; - * ` - * - * // CSS in JS Output - * - * element { - * background: "rgba(255,205,100,0.7)"; - * background: "rgba(255,205,100,0.7)"; - * background: "#ffcd64"; - * background: "rgba(255,255,255,0.4)"; - * background: "rgba(0,0,0,0.7)"; - * } - */ -function rgba(firstValue, secondValue, thirdValue, fourthValue) { - if (typeof firstValue === 'string' && typeof secondValue === 'number') { - var rgbValue = parseToRgb(firstValue); - return "rgba(" + rgbValue.red + "," + rgbValue.green + "," + rgbValue.blue + "," + secondValue + ")"; - } else if (typeof firstValue === 'number' && typeof secondValue === 'number' && typeof thirdValue === 'number' && typeof fourthValue === 'number') { - return fourthValue >= 1 ? rgb(firstValue, secondValue, thirdValue) : "rgba(" + firstValue + "," + secondValue + "," + thirdValue + "," + fourthValue + ")"; - } else if (typeof firstValue === 'object' && secondValue === undefined && thirdValue === undefined && fourthValue === undefined) { - return firstValue.alpha >= 1 ? rgb(firstValue.red, firstValue.green, firstValue.blue) : "rgba(" + firstValue.red + "," + firstValue.green + "," + firstValue.blue + "," + firstValue.alpha + ")"; - } - - throw new PolishedError(7); -} - -var isRgb = function isRgb(color) { - return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && (typeof color.alpha !== 'number' || typeof color.alpha === 'undefined'); -}; - -var isRgba = function isRgba(color) { - return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && typeof color.alpha === 'number'; -}; - -var isHsl = function isHsl(color) { - return typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number' && (typeof color.alpha !== 'number' || typeof color.alpha === 'undefined'); -}; - -var isHsla = function isHsla(color) { - return typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number' && typeof color.alpha === 'number'; -}; -/** - * Converts a RgbColor, RgbaColor, HslColor or HslaColor object to a color string. - * This util is useful in case you only know on runtime which color object is - * used. Otherwise we recommend to rely on `rgb`, `rgba`, `hsl` or `hsla`. - * - * @example - * // Styles as object usage - * const styles = { - * background: toColorString({ red: 255, green: 205, blue: 100 }), - * background: toColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 }), - * background: toColorString({ hue: 240, saturation: 1, lightness: 0.5 }), - * background: toColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 }), - * } - * - * // styled-components usage - * const div = styled.div` - * background: ${toColorString({ red: 255, green: 205, blue: 100 })}; - * background: ${toColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 })}; - * background: ${toColorString({ hue: 240, saturation: 1, lightness: 0.5 })}; - * background: ${toColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 })}; - * ` - * - * // CSS in JS Output - * element { - * background: "#ffcd64"; - * background: "rgba(255,205,100,0.72)"; - * background: "#00f"; - * background: "rgba(179,25,25,0.72)"; - * } - */ - - -function toColorString(color) { - if (typeof color !== 'object') throw new PolishedError(8); - if (isRgba(color)) return rgba(color); - if (isRgb(color)) return rgb(color); - if (isHsla(color)) return hsla(color); - if (isHsl(color)) return hsl(color); - throw new PolishedError(8); -} - -// Type definitions taken from https://github.com/gcanti/flow-static-land/blob/master/src/Fun.js -// eslint-disable-next-line no-unused-vars -// eslint-disable-next-line no-unused-vars -// eslint-disable-next-line no-redeclare -function curried(f, length, acc) { - return function fn() { - // eslint-disable-next-line prefer-rest-params - var combined = acc.concat(Array.prototype.slice.call(arguments)); - return combined.length >= length ? f.apply(this, combined) : curried(f, length, combined); - }; -} // eslint-disable-next-line no-redeclare - - -function curry(f) { - // eslint-disable-line no-redeclare - return curried(f, f.length, []); -} - -/** - * Changes the hue of the color. Hue is a number between 0 to 360. The first - * argument for adjustHue is the amount of degrees the color is rotated around - * the color wheel, always producing a positive hue value. - * - * @example - * // Styles as object usage - * const styles = { - * background: adjustHue(180, '#448'), - * background: adjustHue('180', 'rgba(101,100,205,0.7)'), - * } - * - * // styled-components usage - * const div = styled.div` - * background: ${adjustHue(180, '#448')}; - * background: ${adjustHue('180', 'rgba(101,100,205,0.7)')}; - * ` - * - * // CSS in JS Output - * element { - * background: "#888844"; - * background: "rgba(136,136,68,0.7)"; - * } - */ - -function adjustHue(degree, color) { - if (color === 'transparent') return color; - var hslColor = parseToHsl(color); - return toColorString(_extends({}, hslColor, { - hue: hslColor.hue + parseFloat(degree) - })); -} // prettier-ignore - - -var curriedAdjustHue = /*#__PURE__*/(/* unused pure expression or super */ null && (curry -/* :: */ -(adjustHue))); -var curriedAdjustHue$1 = (/* unused pure expression or super */ null && (curriedAdjustHue)); - -/** - * Returns the complement of the provided color. This is identical to adjustHue(180, ). - * - * @example - * // Styles as object usage - * const styles = { - * background: complement('#448'), - * background: complement('rgba(204,205,100,0.7)'), - * } - * - * // styled-components usage - * const div = styled.div` - * background: ${complement('#448')}; - * background: ${complement('rgba(204,205,100,0.7)')}; - * ` - * - * // CSS in JS Output - * element { - * background: "#884"; - * background: "rgba(153,153,153,0.7)"; - * } - */ - -function complement(color) { - if (color === 'transparent') return color; - var hslColor = parseToHsl(color); - return toColorString(_extends({}, hslColor, { - hue: (hslColor.hue + 180) % 360 - })); -} - -function guard(lowerBoundary, upperBoundary, value) { - return Math.max(lowerBoundary, Math.min(upperBoundary, value)); -} - -/** - * Returns a string value for the darkened color. - * - * @example - * // Styles as object usage - * const styles = { - * background: darken(0.2, '#FFCD64'), - * background: darken('0.2', 'rgba(255,205,100,0.7)'), - * } - * - * // styled-components usage - * const div = styled.div` - * background: ${darken(0.2, '#FFCD64')}; - * background: ${darken('0.2', 'rgba(255,205,100,0.7)')}; - * ` - * - * // CSS in JS Output - * - * element { - * background: "#ffbd31"; - * background: "rgba(255,189,49,0.7)"; - * } - */ - -function darken(amount, color) { - if (color === 'transparent') return color; - var hslColor = parseToHsl(color); - return toColorString(extends_extends({}, hslColor, { - lightness: guard(0, 1, hslColor.lightness - parseFloat(amount)) - })); -} // prettier-ignore - - -var curriedDarken = /*#__PURE__*/curry -/* :: */ -(darken); -var curriedDarken$1 = curriedDarken; - -/** - * Decreases the intensity of a color. Its range is between 0 to 1. The first - * argument of the desaturate function is the amount by how much the color - * intensity should be decreased. - * - * @example - * // Styles as object usage - * const styles = { - * background: desaturate(0.2, '#CCCD64'), - * background: desaturate('0.2', 'rgba(204,205,100,0.7)'), - * } - * - * // styled-components usage - * const div = styled.div` - * background: ${desaturate(0.2, '#CCCD64')}; - * background: ${desaturate('0.2', 'rgba(204,205,100,0.7)')}; - * ` - * - * // CSS in JS Output - * element { - * background: "#b8b979"; - * background: "rgba(184,185,121,0.7)"; - * } - */ - -function desaturate(amount, color) { - if (color === 'transparent') return color; - var hslColor = parseToHsl(color); - return toColorString(_extends({}, hslColor, { - saturation: guard(0, 1, hslColor.saturation - parseFloat(amount)) - })); -} // prettier-ignore - - -var curriedDesaturate = /*#__PURE__*/(/* unused pure expression or super */ null && (curry -/* :: */ -(desaturate))); -var curriedDesaturate$1 = (/* unused pure expression or super */ null && (curriedDesaturate)); - -/** - * Returns a number (float) representing the luminance of a color. - * - * @example - * // Styles as object usage - * const styles = { - * background: getLuminance('#CCCD64') >= getLuminance('#0000ff') ? '#CCCD64' : '#0000ff', - * background: getLuminance('rgba(58, 133, 255, 1)') >= getLuminance('rgba(255, 57, 149, 1)') ? - * 'rgba(58, 133, 255, 1)' : - * 'rgba(255, 57, 149, 1)', - * } - * - * // styled-components usage - * const div = styled.div` - * background: ${getLuminance('#CCCD64') >= getLuminance('#0000ff') ? '#CCCD64' : '#0000ff'}; - * background: ${getLuminance('rgba(58, 133, 255, 1)') >= getLuminance('rgba(255, 57, 149, 1)') ? - * 'rgba(58, 133, 255, 1)' : - * 'rgba(255, 57, 149, 1)'}; - * - * // CSS in JS Output - * - * div { - * background: "#CCCD64"; - * background: "rgba(58, 133, 255, 1)"; - * } - */ - -function getLuminance(color) { - if (color === 'transparent') return 0; - var rgbColor = parseToRgb(color); - - var _Object$keys$map = Object.keys(rgbColor).map(function (key) { - var channel = rgbColor[key] / 255; - return channel <= 0.03928 ? channel / 12.92 : Math.pow((channel + 0.055) / 1.055, 2.4); - }), - r = _Object$keys$map[0], - g = _Object$keys$map[1], - b = _Object$keys$map[2]; - - return parseFloat((0.2126 * r + 0.7152 * g + 0.0722 * b).toFixed(3)); -} - -/** - * Returns the contrast ratio between two colors based on - * [W3's recommended equation for calculating contrast](http://www.w3.org/TR/WCAG20/#contrast-ratiodef). - * - * @example - * const contrastRatio = getContrast('#444', '#fff'); - */ - -function getContrast(color1, color2) { - var luminance1 = getLuminance(color1); - var luminance2 = getLuminance(color2); - return parseFloat((luminance1 > luminance2 ? (luminance1 + 0.05) / (luminance2 + 0.05) : (luminance2 + 0.05) / (luminance1 + 0.05)).toFixed(2)); -} - -/** - * Converts the color to a grayscale, by reducing its saturation to 0. - * - * @example - * // Styles as object usage - * const styles = { - * background: grayscale('#CCCD64'), - * background: grayscale('rgba(204,205,100,0.7)'), - * } - * - * // styled-components usage - * const div = styled.div` - * background: ${grayscale('#CCCD64')}; - * background: ${grayscale('rgba(204,205,100,0.7)')}; - * ` - * - * // CSS in JS Output - * element { - * background: "#999"; - * background: "rgba(153,153,153,0.7)"; - * } - */ - -function grayscale(color) { - if (color === 'transparent') return color; - return toColorString(_extends({}, parseToHsl(color), { - saturation: 0 - })); -} - -/** - * Converts a HslColor or HslaColor object to a color string. - * This util is useful in case you only know on runtime which color object is - * used. Otherwise we recommend to rely on `hsl` or `hsla`. - * - * @example - * // Styles as object usage - * const styles = { - * background: hslToColorString({ hue: 240, saturation: 1, lightness: 0.5 }), - * background: hslToColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 }), - * } - * - * // styled-components usage - * const div = styled.div` - * background: ${hslToColorString({ hue: 240, saturation: 1, lightness: 0.5 })}; - * background: ${hslToColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 })}; - * ` - * - * // CSS in JS Output - * element { - * background: "#00f"; - * background: "rgba(179,25,25,0.72)"; - * } - */ -function hslToColorString(color) { - if (typeof color === 'object' && typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number') { - if (color.alpha && typeof color.alpha === 'number') { - return hsla({ - hue: color.hue, - saturation: color.saturation, - lightness: color.lightness, - alpha: color.alpha - }); - } - - return hsl({ - hue: color.hue, - saturation: color.saturation, - lightness: color.lightness - }); - } - - throw new PolishedError(45); -} - -/** - * Inverts the red, green and blue values of a color. - * - * @example - * // Styles as object usage - * const styles = { - * background: invert('#CCCD64'), - * background: invert('rgba(101,100,205,0.7)'), - * } - * - * // styled-components usage - * const div = styled.div` - * background: ${invert('#CCCD64')}; - * background: ${invert('rgba(101,100,205,0.7)')}; - * ` - * - * // CSS in JS Output - * - * element { - * background: "#33329b"; - * background: "rgba(154,155,50,0.7)"; - * } - */ - -function invert(color) { - if (color === 'transparent') return color; // parse color string to rgb - - var value = parseToRgb(color); - return toColorString(_extends({}, value, { - red: 255 - value.red, - green: 255 - value.green, - blue: 255 - value.blue - })); -} - -/** - * Returns a string value for the lightened color. - * - * @example - * // Styles as object usage - * const styles = { - * background: lighten(0.2, '#CCCD64'), - * background: lighten('0.2', 'rgba(204,205,100,0.7)'), - * } - * - * // styled-components usage - * const div = styled.div` - * background: ${lighten(0.2, '#FFCD64')}; - * background: ${lighten('0.2', 'rgba(204,205,100,0.7)')}; - * ` - * - * // CSS in JS Output - * - * element { - * background: "#e5e6b1"; - * background: "rgba(229,230,177,0.7)"; - * } - */ - -function lighten(amount, color) { - if (color === 'transparent') return color; - var hslColor = parseToHsl(color); - return toColorString(extends_extends({}, hslColor, { - lightness: guard(0, 1, hslColor.lightness + parseFloat(amount)) - })); -} // prettier-ignore - - -var curriedLighten = /*#__PURE__*/curry -/* :: */ -(lighten); -var curriedLighten$1 = curriedLighten; - -/** - * Determines which contrast guidelines have been met for two colors. - * Based on the [contrast calculations recommended by W3](https://www.w3.org/WAI/WCAG21/Understanding/contrast-enhanced.html). - * - * @example - * const scores = meetsContrastGuidelines('#444', '#fff'); - */ -function meetsContrastGuidelines(color1, color2) { - var contrastRatio = getContrast(color1, color2); - return { - AA: contrastRatio >= 4.5, - AALarge: contrastRatio >= 3, - AAA: contrastRatio >= 7, - AAALarge: contrastRatio >= 4.5 - }; -} - -/** - * Mixes the two provided colors together by calculating the average of each of the RGB components weighted to the first color by the provided weight. - * - * @example - * // Styles as object usage - * const styles = { - * background: mix(0.5, '#f00', '#00f') - * background: mix(0.25, '#f00', '#00f') - * background: mix('0.5', 'rgba(255, 0, 0, 0.5)', '#00f') - * } - * - * // styled-components usage - * const div = styled.div` - * background: ${mix(0.5, '#f00', '#00f')}; - * background: ${mix(0.25, '#f00', '#00f')}; - * background: ${mix('0.5', 'rgba(255, 0, 0, 0.5)', '#00f')}; - * ` - * - * // CSS in JS Output - * - * element { - * background: "#7f007f"; - * background: "#3f00bf"; - * background: "rgba(63, 0, 191, 0.75)"; - * } - */ - -function mix(weight, color, otherColor) { - if (color === 'transparent') return otherColor; - if (otherColor === 'transparent') return color; - if (weight === 0) return otherColor; - var parsedColor1 = parseToRgb(color); - - var color1 = _extends({}, parsedColor1, { - alpha: typeof parsedColor1.alpha === 'number' ? parsedColor1.alpha : 1 - }); - - var parsedColor2 = parseToRgb(otherColor); - - var color2 = _extends({}, parsedColor2, { - alpha: typeof parsedColor2.alpha === 'number' ? parsedColor2.alpha : 1 - }); // The formula is copied from the original Sass implementation: - // http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method - - - var alphaDelta = color1.alpha - color2.alpha; - var x = parseFloat(weight) * 2 - 1; - var y = x * alphaDelta === -1 ? x : x + alphaDelta; - var z = 1 + x * alphaDelta; - var weight1 = (y / z + 1) / 2.0; - var weight2 = 1 - weight1; - var mixedColor = { - red: Math.floor(color1.red * weight1 + color2.red * weight2), - green: Math.floor(color1.green * weight1 + color2.green * weight2), - blue: Math.floor(color1.blue * weight1 + color2.blue * weight2), - alpha: color1.alpha * parseFloat(weight) + color2.alpha * (1 - parseFloat(weight)) - }; - return rgba(mixedColor); -} // prettier-ignore - - -var curriedMix = /*#__PURE__*/(/* unused pure expression or super */ null && (curry -/* :: */ -(mix))); -var mix$1 = (/* unused pure expression or super */ null && (curriedMix)); - -/** - * Increases the opacity of a color. Its range for the amount is between 0 to 1. - * - * - * @example - * // Styles as object usage - * const styles = { - * background: opacify(0.1, 'rgba(255, 255, 255, 0.9)'); - * background: opacify(0.2, 'hsla(0, 0%, 100%, 0.5)'), - * background: opacify('0.5', 'rgba(255, 0, 0, 0.2)'), - * } - * - * // styled-components usage - * const div = styled.div` - * background: ${opacify(0.1, 'rgba(255, 255, 255, 0.9)')}; - * background: ${opacify(0.2, 'hsla(0, 0%, 100%, 0.5)')}, - * background: ${opacify('0.5', 'rgba(255, 0, 0, 0.2)')}, - * ` - * - * // CSS in JS Output - * - * element { - * background: "#fff"; - * background: "rgba(255,255,255,0.7)"; - * background: "rgba(255,0,0,0.7)"; - * } - */ - -function opacify(amount, color) { - if (color === 'transparent') return color; - var parsedColor = parseToRgb(color); - var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1; - - var colorWithAlpha = extends_extends({}, parsedColor, { - alpha: guard(0, 1, (alpha * 100 + parseFloat(amount) * 100) / 100) - }); - - return rgba(colorWithAlpha); -} // prettier-ignore - - -var curriedOpacify = /*#__PURE__*/curry -/* :: */ -(opacify); -var curriedOpacify$1 = curriedOpacify; - -var defaultReturnIfLightColor = '#000'; -var defaultReturnIfDarkColor = '#fff'; -/** - * Returns black or white (or optional passed colors) for best - * contrast depending on the luminosity of the given color. - * When passing custom return colors, strict mode ensures that the - * return color always meets or exceeds WCAG level AA or greater. If this test - * fails, the default return color (black or white) is returned in place of the - * custom return color. You can optionally turn off strict mode. - * - * Follows [W3C specs for readability](https://www.w3.org/TR/WCAG20-TECHS/G18.html). - * - * @example - * // Styles as object usage - * const styles = { - * color: readableColor('#000'), - * color: readableColor('black', '#001', '#ff8'), - * color: readableColor('white', '#001', '#ff8'), - * color: readableColor('red', '#333', '#ddd', true) - * } - * - * // styled-components usage - * const div = styled.div` - * color: ${readableColor('#000')}; - * color: ${readableColor('black', '#001', '#ff8')}; - * color: ${readableColor('white', '#001', '#ff8')}; - * color: ${readableColor('red', '#333', '#ddd', true)}; - * ` - * - * // CSS in JS Output - * element { - * color: "#fff"; - * color: "#ff8"; - * color: "#001"; - * color: "#000"; - * } - */ - -function readableColor(color, returnIfLightColor, returnIfDarkColor, strict) { - if (returnIfLightColor === void 0) { - returnIfLightColor = defaultReturnIfLightColor; - } - - if (returnIfDarkColor === void 0) { - returnIfDarkColor = defaultReturnIfDarkColor; - } - - if (strict === void 0) { - strict = true; - } - - var isColorLight = getLuminance(color) > 0.179; - var preferredReturnColor = isColorLight ? returnIfLightColor : returnIfDarkColor; - - if (!strict || getContrast(color, preferredReturnColor) >= 4.5) { - return preferredReturnColor; - } - - return isColorLight ? defaultReturnIfLightColor : defaultReturnIfDarkColor; -} - -/** - * Converts a RgbColor or RgbaColor object to a color string. - * This util is useful in case you only know on runtime which color object is - * used. Otherwise we recommend to rely on `rgb` or `rgba`. - * - * @example - * // Styles as object usage - * const styles = { - * background: rgbToColorString({ red: 255, green: 205, blue: 100 }), - * background: rgbToColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 }), - * } - * - * // styled-components usage - * const div = styled.div` - * background: ${rgbToColorString({ red: 255, green: 205, blue: 100 })}; - * background: ${rgbToColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 })}; - * ` - * - * // CSS in JS Output - * element { - * background: "#ffcd64"; - * background: "rgba(255,205,100,0.72)"; - * } - */ -function rgbToColorString(color) { - if (typeof color === 'object' && typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number') { - if (typeof color.alpha === 'number') { - return rgba({ - red: color.red, - green: color.green, - blue: color.blue, - alpha: color.alpha - }); - } - - return rgb({ - red: color.red, - green: color.green, - blue: color.blue - }); - } - - throw new PolishedError(46); -} - -/** - * Increases the intensity of a color. Its range is between 0 to 1. The first - * argument of the saturate function is the amount by how much the color - * intensity should be increased. - * - * @example - * // Styles as object usage - * const styles = { - * background: saturate(0.2, '#CCCD64'), - * background: saturate('0.2', 'rgba(204,205,100,0.7)'), - * } - * - * // styled-components usage - * const div = styled.div` - * background: ${saturate(0.2, '#FFCD64')}; - * background: ${saturate('0.2', 'rgba(204,205,100,0.7)')}; - * ` - * - * // CSS in JS Output - * - * element { - * background: "#e0e250"; - * background: "rgba(224,226,80,0.7)"; - * } - */ - -function saturate(amount, color) { - if (color === 'transparent') return color; - var hslColor = parseToHsl(color); - return toColorString(_extends({}, hslColor, { - saturation: guard(0, 1, hslColor.saturation + parseFloat(amount)) - })); -} // prettier-ignore - - -var curriedSaturate = /*#__PURE__*/(/* unused pure expression or super */ null && (curry -/* :: */ -(saturate))); -var curriedSaturate$1 = (/* unused pure expression or super */ null && (curriedSaturate)); - -/** - * Sets the hue of a color to the provided value. The hue range can be - * from 0 and 359. - * - * @example - * // Styles as object usage - * const styles = { - * background: setHue(42, '#CCCD64'), - * background: setHue('244', 'rgba(204,205,100,0.7)'), - * } - * - * // styled-components usage - * const div = styled.div` - * background: ${setHue(42, '#CCCD64')}; - * background: ${setHue('244', 'rgba(204,205,100,0.7)')}; - * ` - * - * // CSS in JS Output - * element { - * background: "#cdae64"; - * background: "rgba(107,100,205,0.7)"; - * } - */ - -function setHue(hue, color) { - if (color === 'transparent') return color; - return toColorString(_extends({}, parseToHsl(color), { - hue: parseFloat(hue) - })); -} // prettier-ignore - - -var curriedSetHue = /*#__PURE__*/(/* unused pure expression or super */ null && (curry -/* :: */ -(setHue))); -var curriedSetHue$1 = (/* unused pure expression or super */ null && (curriedSetHue)); - -/** - * Sets the lightness of a color to the provided value. The lightness range can be - * from 0 and 1. - * - * @example - * // Styles as object usage - * const styles = { - * background: setLightness(0.2, '#CCCD64'), - * background: setLightness('0.75', 'rgba(204,205,100,0.7)'), - * } - * - * // styled-components usage - * const div = styled.div` - * background: ${setLightness(0.2, '#CCCD64')}; - * background: ${setLightness('0.75', 'rgba(204,205,100,0.7)')}; - * ` - * - * // CSS in JS Output - * element { - * background: "#4d4d19"; - * background: "rgba(223,224,159,0.7)"; - * } - */ - -function setLightness(lightness, color) { - if (color === 'transparent') return color; - return toColorString(_extends({}, parseToHsl(color), { - lightness: parseFloat(lightness) - })); -} // prettier-ignore - - -var curriedSetLightness = /*#__PURE__*/(/* unused pure expression or super */ null && (curry -/* :: */ -(setLightness))); -var curriedSetLightness$1 = (/* unused pure expression or super */ null && (curriedSetLightness)); - -/** - * Sets the saturation of a color to the provided value. The saturation range can be - * from 0 and 1. - * - * @example - * // Styles as object usage - * const styles = { - * background: setSaturation(0.2, '#CCCD64'), - * background: setSaturation('0.75', 'rgba(204,205,100,0.7)'), - * } - * - * // styled-components usage - * const div = styled.div` - * background: ${setSaturation(0.2, '#CCCD64')}; - * background: ${setSaturation('0.75', 'rgba(204,205,100,0.7)')}; - * ` - * - * // CSS in JS Output - * element { - * background: "#adad84"; - * background: "rgba(228,229,76,0.7)"; - * } - */ - -function setSaturation(saturation, color) { - if (color === 'transparent') return color; - return toColorString(_extends({}, parseToHsl(color), { - saturation: parseFloat(saturation) - })); -} // prettier-ignore - - -var curriedSetSaturation = /*#__PURE__*/(/* unused pure expression or super */ null && (curry -/* :: */ -(setSaturation))); -var curriedSetSaturation$1 = (/* unused pure expression or super */ null && (curriedSetSaturation)); - -/** - * Shades a color by mixing it with black. `shade` can produce - * hue shifts, where as `darken` manipulates the luminance channel and therefore - * doesn't produce hue shifts. - * - * @example - * // Styles as object usage - * const styles = { - * background: shade(0.25, '#00f') - * } - * - * // styled-components usage - * const div = styled.div` - * background: ${shade(0.25, '#00f')}; - * ` - * - * // CSS in JS Output - * - * element { - * background: "#00003f"; - * } - */ - -function shade(percentage, color) { - if (color === 'transparent') return color; - return mix$1(parseFloat(percentage), 'rgb(0, 0, 0)', color); -} // prettier-ignore - - -var curriedShade = /*#__PURE__*/(/* unused pure expression or super */ null && (curry -/* :: */ -(shade))); -var curriedShade$1 = (/* unused pure expression or super */ null && (curriedShade)); - -/** - * Tints a color by mixing it with white. `tint` can produce - * hue shifts, where as `lighten` manipulates the luminance channel and therefore - * doesn't produce hue shifts. - * - * @example - * // Styles as object usage - * const styles = { - * background: tint(0.25, '#00f') - * } - * - * // styled-components usage - * const div = styled.div` - * background: ${tint(0.25, '#00f')}; - * ` - * - * // CSS in JS Output - * - * element { - * background: "#bfbfff"; - * } - */ - -function tint(percentage, color) { - if (color === 'transparent') return color; - return mix$1(parseFloat(percentage), 'rgb(255, 255, 255)', color); -} // prettier-ignore - - -var curriedTint = /*#__PURE__*/(/* unused pure expression or super */ null && (curry -/* :: */ -(tint))); -var curriedTint$1 = (/* unused pure expression or super */ null && (curriedTint)); - -/** - * Decreases the opacity of a color. Its range for the amount is between 0 to 1. - * - * - * @example - * // Styles as object usage - * const styles = { - * background: transparentize(0.1, '#fff'), - * background: transparentize(0.2, 'hsl(0, 0%, 100%)'), - * background: transparentize('0.5', 'rgba(255, 0, 0, 0.8)'), - * } - * - * // styled-components usage - * const div = styled.div` - * background: ${transparentize(0.1, '#fff')}; - * background: ${transparentize(0.2, 'hsl(0, 0%, 100%)')}; - * background: ${transparentize('0.5', 'rgba(255, 0, 0, 0.8)')}; - * ` - * - * // CSS in JS Output - * - * element { - * background: "rgba(255,255,255,0.9)"; - * background: "rgba(255,255,255,0.8)"; - * background: "rgba(255,0,0,0.3)"; - * } - */ - -function transparentize(amount, color) { - if (color === 'transparent') return color; - var parsedColor = parseToRgb(color); - var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1; - - var colorWithAlpha = extends_extends({}, parsedColor, { - alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100) - }); - - return rgba(colorWithAlpha); -} // prettier-ignore - - -var curriedTransparentize = /*#__PURE__*/curry -/* :: */ -(transparentize); -var curriedTransparentize$1 = curriedTransparentize; - -/** - * Shorthand for easily setting the animation property. Allows either multiple arrays with animations - * or a single animation spread over the arguments. - * @example - * // Styles as object usage - * const styles = { - * ...animation(['rotate', '1s', 'ease-in-out'], ['colorchange', '2s']) - * } - * - * // styled-components usage - * const div = styled.div` - * ${animation(['rotate', '1s', 'ease-in-out'], ['colorchange', '2s'])} - * ` - * - * // CSS as JS Output - * - * div { - * 'animation': 'rotate 1s ease-in-out, colorchange 2s' - * } - * @example - * // Styles as object usage - * const styles = { - * ...animation('rotate', '1s', 'ease-in-out') - * } - * - * // styled-components usage - * const div = styled.div` - * ${animation('rotate', '1s', 'ease-in-out')} - * ` - * - * // CSS as JS Output - * - * div { - * 'animation': 'rotate 1s ease-in-out' - * } - */ -function animation() { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - // Allow single or multiple animations passed - var multiMode = Array.isArray(args[0]); - - if (!multiMode && args.length > 8) { - throw new PolishedError(64); - } - - var code = args.map(function (arg) { - if (multiMode && !Array.isArray(arg) || !multiMode && Array.isArray(arg)) { - throw new PolishedError(65); - } - - if (Array.isArray(arg) && arg.length > 8) { - throw new PolishedError(66); - } - - return Array.isArray(arg) ? arg.join(' ') : arg; - }).join(', '); - return { - animation: code - }; -} - -/** - * Shorthand that accepts any number of backgroundImage values as parameters for creating a single background statement. - * @example - * // Styles as object usage - * const styles = { - * ...backgroundImages('url("/image/background.jpg")', 'linear-gradient(red, green)') - * } - * - * // styled-components usage - * const div = styled.div` - * ${backgroundImages('url("/image/background.jpg")', 'linear-gradient(red, green)')} - * ` - * - * // CSS as JS Output - * - * div { - * 'backgroundImage': 'url("/image/background.jpg"), linear-gradient(red, green)' - * } - */ -function backgroundImages() { - for (var _len = arguments.length, properties = new Array(_len), _key = 0; _key < _len; _key++) { - properties[_key] = arguments[_key]; - } - - return { - backgroundImage: properties.join(', ') - }; -} - -/** - * Shorthand that accepts any number of background values as parameters for creating a single background statement. - * @example - * // Styles as object usage - * const styles = { - * ...backgrounds('url("/image/background.jpg")', 'linear-gradient(red, green)', 'center no-repeat') - * } - * - * // styled-components usage - * const div = styled.div` - * ${backgrounds('url("/image/background.jpg")', 'linear-gradient(red, green)', 'center no-repeat')} - * ` - * - * // CSS as JS Output - * - * div { - * 'background': 'url("/image/background.jpg"), linear-gradient(red, green), center no-repeat' - * } - */ -function backgrounds() { - for (var _len = arguments.length, properties = new Array(_len), _key = 0; _key < _len; _key++) { - properties[_key] = arguments[_key]; - } - - return { - background: properties.join(', ') - }; -} - -var sideMap = (/* unused pure expression or super */ null && (['top', 'right', 'bottom', 'left'])); -/** - * Shorthand for the border property that splits out individual properties for use with tools like Fela and Styletron. A side keyword can optionally be passed to target only one side's border properties. - * - * @example - * // Styles as object usage - * const styles = { - * ...border('1px', 'solid', 'red') - * } - * - * // styled-components usage - * const div = styled.div` - * ${border('1px', 'solid', 'red')} - * ` - * - * // CSS as JS Output - * - * div { - * 'borderColor': 'red', - * 'borderStyle': 'solid', - * 'borderWidth': `1px`, - * } - * - * // Styles as object usage - * const styles = { - * ...border('top', '1px', 'solid', 'red') - * } - * - * // styled-components usage - * const div = styled.div` - * ${border('top', '1px', 'solid', 'red')} - * ` - * - * // CSS as JS Output - * - * div { - * 'borderTopColor': 'red', - * 'borderTopStyle': 'solid', - * 'borderTopWidth': `1px`, - * } - */ - -function border(sideKeyword) { - for (var _len = arguments.length, values = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - values[_key - 1] = arguments[_key]; - } - - if (typeof sideKeyword === 'string' && sideMap.indexOf(sideKeyword) >= 0) { - var _ref; - - return _ref = {}, _ref["border" + capitalizeString(sideKeyword) + "Width"] = values[0], _ref["border" + capitalizeString(sideKeyword) + "Style"] = values[1], _ref["border" + capitalizeString(sideKeyword) + "Color"] = values[2], _ref; - } else { - values.unshift(sideKeyword); - return { - borderWidth: values[0], - borderStyle: values[1], - borderColor: values[2] - }; - } -} - -/** - * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions. - * @example - * // Styles as object usage - * const styles = { - * ...borderColor('red', 'green', 'blue', 'yellow') - * } - * - * // styled-components usage - * const div = styled.div` - * ${borderColor('red', 'green', 'blue', 'yellow')} - * ` - * - * // CSS as JS Output - * - * div { - * 'borderTopColor': 'red', - * 'borderRightColor': 'green', - * 'borderBottomColor': 'blue', - * 'borderLeftColor': 'yellow' - * } - */ -function borderColor() { - for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) { - values[_key] = arguments[_key]; - } - - return directionalProperty.apply(void 0, ['borderColor'].concat(values)); -} - -/** - * Shorthand that accepts a value for side and a value for radius and applies the radius value to both corners of the side. - * @example - * // Styles as object usage - * const styles = { - * ...borderRadius('top', '5px') - * } - * - * // styled-components usage - * const div = styled.div` - * ${borderRadius('top', '5px')} - * ` - * - * // CSS as JS Output - * - * div { - * 'borderTopRightRadius': '5px', - * 'borderTopLeftRadius': '5px', - * } - */ -function borderRadius(side, radius) { - var uppercaseSide = capitalizeString(side); - - if (!radius && radius !== 0) { - throw new PolishedError(62); - } - - if (uppercaseSide === 'Top' || uppercaseSide === 'Bottom') { - var _ref; - - return _ref = {}, _ref["border" + uppercaseSide + "RightRadius"] = radius, _ref["border" + uppercaseSide + "LeftRadius"] = radius, _ref; - } - - if (uppercaseSide === 'Left' || uppercaseSide === 'Right') { - var _ref2; - - return _ref2 = {}, _ref2["borderTop" + uppercaseSide + "Radius"] = radius, _ref2["borderBottom" + uppercaseSide + "Radius"] = radius, _ref2; - } - - throw new PolishedError(63); -} - -/** - * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions. - * @example - * // Styles as object usage - * const styles = { - * ...borderStyle('solid', 'dashed', 'dotted', 'double') - * } - * - * // styled-components usage - * const div = styled.div` - * ${borderStyle('solid', 'dashed', 'dotted', 'double')} - * ` - * - * // CSS as JS Output - * - * div { - * 'borderTopStyle': 'solid', - * 'borderRightStyle': 'dashed', - * 'borderBottomStyle': 'dotted', - * 'borderLeftStyle': 'double' - * } - */ -function borderStyle() { - for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) { - values[_key] = arguments[_key]; - } - - return directionalProperty.apply(void 0, ['borderStyle'].concat(values)); -} - -/** - * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions. - * @example - * // Styles as object usage - * const styles = { - * ...borderWidth('12px', '24px', '36px', '48px') - * } - * - * // styled-components usage - * const div = styled.div` - * ${borderWidth('12px', '24px', '36px', '48px')} - * ` - * - * // CSS as JS Output - * - * div { - * 'borderTopWidth': '12px', - * 'borderRightWidth': '24px', - * 'borderBottomWidth': '36px', - * 'borderLeftWidth': '48px' - * } - */ -function borderWidth() { - for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) { - values[_key] = arguments[_key]; - } - - return directionalProperty.apply(void 0, ['borderWidth'].concat(values)); -} - -function generateSelectors(template, state) { - var stateSuffix = state ? ":" + state : ''; - return template(stateSuffix); -} -/** - * Function helper that adds an array of states to a template of selectors. Used in textInputs and buttons. - * @private - */ - - -function statefulSelectors(states, template, stateMap) { - if (!template) throw new PolishedError(67); - if (states.length === 0) return generateSelectors(template, null); - var selectors = []; - - for (var i = 0; i < states.length; i += 1) { - if (stateMap && stateMap.indexOf(states[i]) < 0) { - throw new PolishedError(68); - } - - selectors.push(generateSelectors(template, states[i])); - } - - selectors = selectors.join(','); - return selectors; -} - -var stateMap$1 = (/* unused pure expression or super */ null && ([undefined, null, 'active', 'focus', 'hover'])); - -function template$1(state) { - return "button" + state + ",\n input[type=\"button\"]" + state + ",\n input[type=\"reset\"]" + state + ",\n input[type=\"submit\"]" + state; -} -/** - * Populates selectors that target all buttons. You can pass optional states to append to the selectors. - * @example - * // Styles as object usage - * const styles = { - * [buttons('active')]: { - * 'border': 'none' - * } - * } - * - * // styled-components usage - * const div = styled.div` - * > ${buttons('active')} { - * border: none; - * } - * ` - * - * // CSS in JS Output - * - * 'button:active, - * 'input[type="button"]:active, - * 'input[type=\"reset\"]:active, - * 'input[type=\"submit\"]:active: { - * 'border': 'none' - * } - */ - - -function buttons() { - for (var _len = arguments.length, states = new Array(_len), _key = 0; _key < _len; _key++) { - states[_key] = arguments[_key]; - } - - return statefulSelectors(states, template$1, stateMap$1); -} - -/** - * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions. - * @example - * // Styles as object usage - * const styles = { - * ...margin('12px', '24px', '36px', '48px') - * } - * - * // styled-components usage - * const div = styled.div` - * ${margin('12px', '24px', '36px', '48px')} - * ` - * - * // CSS as JS Output - * - * div { - * 'marginTop': '12px', - * 'marginRight': '24px', - * 'marginBottom': '36px', - * 'marginLeft': '48px' - * } - */ -function margin() { - for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) { - values[_key] = arguments[_key]; - } - - return directionalProperty.apply(void 0, ['margin'].concat(values)); -} - -/** - * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions. - * @example - * // Styles as object usage - * const styles = { - * ...padding('12px', '24px', '36px', '48px') - * } - * - * // styled-components usage - * const div = styled.div` - * ${padding('12px', '24px', '36px', '48px')} - * ` - * - * // CSS as JS Output - * - * div { - * 'paddingTop': '12px', - * 'paddingRight': '24px', - * 'paddingBottom': '36px', - * 'paddingLeft': '48px' - * } - */ -function padding() { - for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) { - values[_key] = arguments[_key]; - } - - return directionalProperty.apply(void 0, ['padding'].concat(values)); -} - -var positionMap = (/* unused pure expression or super */ null && (['absolute', 'fixed', 'relative', 'static', 'sticky'])); -/** - * Shorthand accepts up to five values, including null to skip a value, and maps them to their respective directions. The first value can optionally be a position keyword. - * @example - * // Styles as object usage - * const styles = { - * ...position('12px', '24px', '36px', '48px') - * } - * - * // styled-components usage - * const div = styled.div` - * ${position('12px', '24px', '36px', '48px')} - * ` - * - * // CSS as JS Output - * - * div { - * 'top': '12px', - * 'right': '24px', - * 'bottom': '36px', - * 'left': '48px' - * } - * - * // Styles as object usage - * const styles = { - * ...position('absolute', '12px', '24px', '36px', '48px') - * } - * - * // styled-components usage - * const div = styled.div` - * ${position('absolute', '12px', '24px', '36px', '48px')} - * ` - * - * // CSS as JS Output - * - * div { - * 'position': 'absolute', - * 'top': '12px', - * 'right': '24px', - * 'bottom': '36px', - * 'left': '48px' - * } - */ - -function position(firstValue) { - for (var _len = arguments.length, values = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - values[_key - 1] = arguments[_key]; - } - - if (positionMap.indexOf(firstValue) >= 0 && firstValue) { - return _extends({}, directionalProperty.apply(void 0, [''].concat(values)), { - position: firstValue - }); - } else { - return directionalProperty.apply(void 0, ['', firstValue].concat(values)); - } -} - -/** - * Shorthand to set the height and width properties in a single statement. - * @example - * // Styles as object usage - * const styles = { - * ...size('300px', '250px') - * } - * - * // styled-components usage - * const div = styled.div` - * ${size('300px', '250px')} - * ` - * - * // CSS as JS Output - * - * div { - * 'height': '300px', - * 'width': '250px', - * } - */ -function size(height, width) { - if (width === void 0) { - width = height; - } - - return { - height: height, - width: width - }; -} - -var stateMap = (/* unused pure expression or super */ null && ([undefined, null, 'active', 'focus', 'hover'])); - -function template(state) { - return "input[type=\"color\"]" + state + ",\n input[type=\"date\"]" + state + ",\n input[type=\"datetime\"]" + state + ",\n input[type=\"datetime-local\"]" + state + ",\n input[type=\"email\"]" + state + ",\n input[type=\"month\"]" + state + ",\n input[type=\"number\"]" + state + ",\n input[type=\"password\"]" + state + ",\n input[type=\"search\"]" + state + ",\n input[type=\"tel\"]" + state + ",\n input[type=\"text\"]" + state + ",\n input[type=\"time\"]" + state + ",\n input[type=\"url\"]" + state + ",\n input[type=\"week\"]" + state + ",\n input:not([type])" + state + ",\n textarea" + state; -} -/** - * Populates selectors that target all text inputs. You can pass optional states to append to the selectors. - * @example - * // Styles as object usage - * const styles = { - * [textInputs('active')]: { - * 'border': 'none' - * } - * } - * - * // styled-components usage - * const div = styled.div` - * > ${textInputs('active')} { - * border: none; - * } - * ` - * - * // CSS in JS Output - * - * 'input[type="color"]:active, - * input[type="date"]:active, - * input[type="datetime"]:active, - * input[type="datetime-local"]:active, - * input[type="email"]:active, - * input[type="month"]:active, - * input[type="number"]:active, - * input[type="password"]:active, - * input[type="search"]:active, - * input[type="tel"]:active, - * input[type="text"]:active, - * input[type="time"]:active, - * input[type="url"]:active, - * input[type="week"]:active, - * input:not([type]):active, - * textarea:active': { - * 'border': 'none' - * } - */ - - -function textInputs() { - for (var _len = arguments.length, states = new Array(_len), _key = 0; _key < _len; _key++) { - states[_key] = arguments[_key]; - } - - return statefulSelectors(states, template, stateMap); -} - -/** - * Accepts any number of transition values as parameters for creating a single transition statement. You may also pass an array of properties as the first parameter that you would like to apply the same transition values to (second parameter). - * @example - * // Styles as object usage - * const styles = { - * ...transitions('opacity 1.0s ease-in 0s', 'width 2.0s ease-in 2s'), - * ...transitions(['color', 'background-color'], '2.0s ease-in 2s') - * } - * - * // styled-components usage - * const div = styled.div` - * ${transitions('opacity 1.0s ease-in 0s', 'width 2.0s ease-in 2s')}; - * ${transitions(['color', 'background-color'], '2.0s ease-in 2s'),}; - * ` - * - * // CSS as JS Output - * - * div { - * 'transition': 'opacity 1.0s ease-in 0s, width 2.0s ease-in 2s' - * 'transition': 'color 2.0s ease-in 2s, background-color 2.0s ease-in 2s', - * } - */ - -function transitions() { - for (var _len = arguments.length, properties = new Array(_len), _key = 0; _key < _len; _key++) { - properties[_key] = arguments[_key]; - } - - if (Array.isArray(properties[0]) && properties.length === 2) { - var value = properties[1]; - - if (typeof value !== 'string') { - throw new PolishedError(61); - } - - var transitionsString = properties[0].map(function (property) { - return property + " " + value; - }).join(', '); - return { - transition: transitionsString - }; - } else { - return { - transition: properties.join(', ') - }; - } -} - - - -// EXTERNAL MODULE: external "__STORYBOOK_MODULE_GLOBAL__" -var external_STORYBOOK_MODULE_GLOBAL_ = __webpack_require__("@storybook/global"); -// EXTERNAL MODULE: ../../../node_modules/lodash/pickBy.js -var pickBy = __webpack_require__("../../../node_modules/lodash/pickBy.js"); -var pickBy_default = /*#__PURE__*/__webpack_require__.n(pickBy); -// EXTERNAL MODULE: ../../../node_modules/@storybook/csf/dist/index.mjs -var csf_dist = __webpack_require__("../../../node_modules/@storybook/csf/dist/index.mjs"); -// EXTERNAL MODULE: external "__STORYBOOK_MODULE_CLIENT_LOGGER__" -var external_STORYBOOK_MODULE_CLIENT_LOGGER_ = __webpack_require__("@storybook/client-logger"); -;// CONCATENATED MODULE: ../../../node_modules/markdown-to-jsx/dist/index.modern.js -function n(){return n=Object.assign?Object.assign.bind():function(t){for(var n=1;n(t[n.toLowerCase()]=n,t),{for:"htmlFor"}),o={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},c=["style","script"],a=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,_=/mailto:/i,u=/\n{2,}$/,i=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,s=/^ *> ?/gm,l=/^ {2,}\n/,f=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,d=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,p=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,m=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,g=/^(?:\n *)*\n/,y=/\r\n?/g,h=/^\[\^([^\]]+)](:.*)\n/,k=/^\[\^([^\]]+)]/,x=/\f/g,b=/^\s*?\[(x|\s)\]/,$=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,v=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,S=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,z=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,w=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,A=/^)/,E=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,L=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,M=/^\{.*\}$/,O=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,I=/^<([^ >]+@[^ >]+)>/,j=/^<([^ >]+:\/[^ >]+)>/,B=/-([a-z])?/gi,R=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,T=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,C=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,D=/^\[([^\]]*)\] ?\[([^\]]*)\]/,F=/(\[|\])/g,N=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,P=/\t/g,Z=/^ *\| */,G=/(^ *\||\| *$)/g,H=/ *$/,q=/^ *:-+: *$/,U=/^ *:-+ *$/,V=/^ *-+: *$/,W=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,Q=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,X=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,J=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,K=/^\\([^0-9A-Za-z\s])/,Y=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,tt=/^\n+/,nt=/^([ \t]*)/,et=/\\([^\\])/g,rt=/ *\n+$/,ot=/(?:^|\n)( *)$/,ct="(?:\\d+\\.)",at="(?:[*+-])";function _t(t){return"( *)("+(1===t?ct:at)+") +"}const ut=_t(1),it=_t(2);function st(t){return new RegExp("^"+(1===t?ut:it))}const lt=st(1),ft=st(2);function dt(t){return new RegExp("^"+(1===t?ut:it)+"[^\\n]*(?:\\n(?!\\1"+(1===t?ct:at)+" )[^\\n]*)*(\\n|$)","gm")}const pt=dt(1),mt=dt(2);function gt(t){const n=1===t?ct:at;return new RegExp("^( *)("+n+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+n+" (?!"+n+" ))\\n*|\\s*\\n*$)")}const yt=gt(1),ht=gt(2);function kt(t,n){const e=1===n,r=e?yt:ht,o=e?pt:mt,c=e?lt:ft;return{t(t,n,e){const o=ot.exec(e);return o&&(n.o||!n._&&!n.u)?r.exec(t=o[1]+t):null},i:Ht.HIGH,l(t,n,r){const a=e?+t[2]:void 0,_=t[0].replace(u,"\n").match(o);let i=!1;return{p:_.map(function(t,e){const o=c.exec(t)[0].length,a=new RegExp("^ {1,"+o+"}","gm"),u=t.replace(a,"").replace(c,""),s=e===_.length-1,l=-1!==u.indexOf("\n\n")||s&&i;i=l;const f=r._,d=r.o;let p;r.o=!0,l?(r._=!1,p=u.replace(rt,"\n\n")):(r._=!0,p=u.replace(rt,""));const m=n(p,r);return r._=f,r.o=d,m}),m:e,g:a}},h:(n,e,r)=>t(n.m?"ol":"ul",{key:r.k,start:n.g},n.p.map(function(n,o){return t("li",{key:o},e(n,r))}))}}const xt=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,bt=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,$t=[i,d,p,$,S,v,A,R,pt,yt,mt,ht],vt=[...$t,/^[^\n]+(?: \n|\n{2,})/,z,L];function St(t){return t.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function zt(t){return V.test(t)?"right":q.test(t)?"center":U.test(t)?"left":null}function wt(t,n,e){const r=e.$;e.$=!0;const o=n(t.trim(),e);e.$=r;let c=[[]];return o.forEach(function(t,n){"tableSeparator"===t.type?0!==n&&n!==o.length-1&&c.push([]):("text"!==t.type||null!=o[n+1]&&"tableSeparator"!==o[n+1].type||(t.v=t.v.replace(H,"")),c[c.length-1].push(t))}),c}function At(t,n,e){e._=!0;const r=wt(t[1],n,e),o=t[2].replace(G,"").split("|").map(zt),c=function(t,n,e){return t.trim().split("\n").map(function(t){return wt(t,n,e)})}(t[3],n,e);return e._=!1,{S:o,A:c,L:r,type:"table"}}function Et(t,n){return null==t.S[n]?{}:{textAlign:t.S[n]}}function Lt(t){return function(n,e){return e._?t.exec(n):null}}function Mt(t){return function(n,e){return e._||e.u?t.exec(n):null}}function Ot(t){return function(n,e){return e._||e.u?null:t.exec(n)}}function It(t){return function(n){return t.exec(n)}}function jt(t,n,e){if(n._||n.u)return null;if(e&&!e.endsWith("\n"))return null;let r="";t.split("\n").every(t=>!$t.some(n=>n.test(t))&&(r+=t+"\n",t.trim()));const o=r.trimEnd();return""==o?null:[r,o]}function Bt(t){try{if(decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch(t){return null}return t}function Rt(t){return t.replace(et,"$1")}function Tt(t,n,e){const r=e._||!1,o=e.u||!1;e._=!0,e.u=!0;const c=t(n,e);return e._=r,e.u=o,c}function Ct(t,n,e){const r=e._||!1,o=e.u||!1;e._=!1,e.u=!0;const c=t(n,e);return e._=r,e.u=o,c}function Dt(t,n,e){return e._=!1,t(n,e)}const Ft=(t,n,e)=>({v:Tt(n,t[1],e)});function Nt(){return{}}function Pt(){return null}function Zt(...t){return t.filter(Boolean).join(" ")}function Gt(t,n,e){let r=t;const o=n.split(".");for(;o.length&&(r=r[o[0]],void 0!==r);)o.shift();return r||e}var Ht;function qt(e,u={}){u.overrides=u.overrides||{},u.slugify=u.slugify||St,u.namedCodesToUnicode=u.namedCodesToUnicode?n({},o,u.namedCodesToUnicode):o;const G=u.createElement||react.createElement;function H(t,e,...r){const o=Gt(u.overrides,`${t}.props`,{});return G(function(t,n){const e=Gt(n,t);return e?"function"==typeof e||"object"==typeof e&&"render"in e?e:Gt(n,`${t}.component`,t):t}(t,u.overrides),n({},e,o,{className:Zt(null==e?void 0:e.className,o.className)||void 0}),...r)}function q(n){let e=!1;u.forceInline?e=!0:u.forceBlock||(e=!1===N.test(n));const r=ct(ot(e?n:`${n.trimEnd().replace(tt,"")}\n\n`,{_:e}));for(;"string"==typeof r[r.length-1]&&!r[r.length-1].trim();)r.pop();if(null===u.wrapper)return r;const o=u.wrapper||(e?"span":"div");let c;if(r.length>1||u.forceWrapper)c=r;else{if(1===r.length)return c=r[0],"string"==typeof c?H("span",{key:"outer"},c):c;c=null}return react.createElement(o,{key:"outer"},c)}function U(n){const e=n.match(a);return e?e.reduce(function(n,e,o){const c=e.indexOf("=");if(-1!==c){const a=function(t){return-1!==t.indexOf("-")&&null===t.match(E)&&(t=t.replace(B,function(t,n){return n.toUpperCase()})),t}(e.slice(0,c)).trim(),_=function(t){const n=t[0];return('"'===n||"'"===n)&&t.length>=2&&t[t.length-1]===n?t.slice(1,-1):t}(e.slice(c+1).trim()),u=r[a]||a,i=n[u]=function(t,n){return"style"===t?n.split(/;\s?/).reduce(function(t,n){const e=n.slice(0,n.indexOf(":"));return t[e.replace(/(-[a-z])/g,t=>t[1].toUpperCase())]=n.slice(e.length+1).trim(),t},{}):"href"===t?Bt(n):(n.match(M)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(a,_);"string"==typeof i&&(z.test(i)||L.test(i))&&(n[u]=react.cloneElement(q(i.trim()),{key:o}))}else"style"!==e&&(n[r[e]||e]=!0);return n},{}):null}const V=[],et={},rt={blockQuote:{t:Ot(i),i:Ht.HIGH,l:(t,n,e)=>({v:n(t[0].replace(s,""),e)}),h:(t,n,e)=>H("blockquote",{key:e.k},n(t.v,e))},breakLine:{t:It(l),i:Ht.HIGH,l:Nt,h:(t,n,e)=>H("br",{key:e.k})},breakThematic:{t:Ot(f),i:Ht.HIGH,l:Nt,h:(t,n,e)=>H("hr",{key:e.k})},codeBlock:{t:Ot(p),i:Ht.MAX,l:t=>({v:t[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(t,e,r)=>H("pre",{key:r.k},H("code",n({},t.O,{className:t.M?`lang-${t.M}`:""}),t.v))},codeFenced:{t:Ot(d),i:Ht.MAX,l:t=>({O:U(t[3]||""),v:t[4],M:t[2]||void 0,type:"codeBlock"})},codeInline:{t:Mt(m),i:Ht.LOW,l:t=>({v:t[2]}),h:(t,n,e)=>H("code",{key:e.k},t.v)},footnote:{t:Ot(h),i:Ht.MAX,l:t=>(V.push({I:t[2],j:t[1]}),{}),h:Pt},footnoteReference:{t:Lt(k),i:Ht.HIGH,l:t=>({v:t[1],B:`#${u.slugify(t[1])}`}),h:(t,n,e)=>H("a",{key:e.k,href:Bt(t.B)},H("sup",{key:e.k},t.v))},gfmTask:{t:Lt(b),i:Ht.HIGH,l:t=>({R:"x"===t[1].toLowerCase()}),h:(t,n,e)=>H("input",{checked:t.R,key:e.k,readOnly:!0,type:"checkbox"})},heading:{t:Ot(u.enforceAtxHeadings?v:$),i:Ht.HIGH,l:(t,n,e)=>({v:Tt(n,t[2],e),T:u.slugify(t[2]),C:t[1].length}),h:(t,n,e)=>H(`h${t.C}`,{id:t.T,key:e.k},n(t.v,e))},headingSetext:{t:Ot(S),i:Ht.MAX,l:(t,n,e)=>({v:Tt(n,t[1],e),C:"="===t[2]?1:2,type:"heading"})},htmlComment:{t:It(A),i:Ht.HIGH,l:()=>({}),h:Pt},image:{t:Mt(bt),i:Ht.HIGH,l:t=>({D:t[1],B:Rt(t[2]),F:t[3]}),h:(t,n,e)=>H("img",{key:e.k,alt:t.D||void 0,title:t.F||void 0,src:Bt(t.B)})},link:{t:Lt(xt),i:Ht.LOW,l:(t,n,e)=>({v:Ct(n,t[1],e),B:Rt(t[2]),F:t[3]}),h:(t,n,e)=>H("a",{key:e.k,href:Bt(t.B),title:t.F},n(t.v,e))},linkAngleBraceStyleDetector:{t:Lt(j),i:Ht.MAX,l:t=>({v:[{v:t[1],type:"text"}],B:t[1],type:"link"})},linkBareUrlDetector:{t:(t,n)=>n.N?null:Lt(O)(t,n),i:Ht.MAX,l:t=>({v:[{v:t[1],type:"text"}],B:t[1],F:void 0,type:"link"})},linkMailtoDetector:{t:Lt(I),i:Ht.MAX,l(t){let n=t[1],e=t[1];return _.test(e)||(e="mailto:"+e),{v:[{v:n.replace("mailto:",""),type:"text"}],B:e,type:"link"}}},orderedList:kt(H,1),unorderedList:kt(H,2),newlineCoalescer:{t:Ot(g),i:Ht.LOW,l:Nt,h:()=>"\n"},paragraph:{t:jt,i:Ht.LOW,l:Ft,h:(t,n,e)=>H("p",{key:e.k},n(t.v,e))},ref:{t:Lt(T),i:Ht.MAX,l:t=>(et[t[1]]={B:t[2],F:t[4]},{}),h:Pt},refImage:{t:Mt(C),i:Ht.MAX,l:t=>({D:t[1]||void 0,P:t[2]}),h:(t,n,e)=>H("img",{key:e.k,alt:t.D,src:Bt(et[t.P].B),title:et[t.P].F})},refLink:{t:Lt(D),i:Ht.MAX,l:(t,n,e)=>({v:n(t[1],e),Z:n(t[0].replace(F,"\\$1"),e),P:t[2]}),h:(t,n,e)=>et[t.P]?H("a",{key:e.k,href:Bt(et[t.P].B),title:et[t.P].F},n(t.v,e)):H("span",{key:e.k},n(t.Z,e))},table:{t:Ot(R),i:Ht.HIGH,l:At,h:(t,n,e)=>H("table",{key:e.k},H("thead",null,H("tr",null,t.L.map(function(r,o){return H("th",{key:o,style:Et(t,o)},n(r,e))}))),H("tbody",null,t.A.map(function(r,o){return H("tr",{key:o},r.map(function(r,o){return H("td",{key:o,style:Et(t,o)},n(r,e))}))})))},tableSeparator:{t:function(t,n){return n.$?(n._=!0,Z.exec(t)):null},i:Ht.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:It(Y),i:Ht.MIN,l:t=>({v:t[0].replace(w,(t,n)=>u.namedCodesToUnicode[n]?u.namedCodesToUnicode[n]:t)}),h:t=>t.v},textBolded:{t:Mt(W),i:Ht.MED,l:(t,n,e)=>({v:n(t[2],e)}),h:(t,n,e)=>H("strong",{key:e.k},n(t.v,e))},textEmphasized:{t:Mt(Q),i:Ht.LOW,l:(t,n,e)=>({v:n(t[2],e)}),h:(t,n,e)=>H("em",{key:e.k},n(t.v,e))},textEscaped:{t:Mt(K),i:Ht.HIGH,l:t=>({v:t[1],type:"text"})},textMarked:{t:Mt(X),i:Ht.LOW,l:Ft,h:(t,n,e)=>H("mark",{key:e.k},n(t.v,e))},textStrikethroughed:{t:Mt(J),i:Ht.LOW,l:Ft,h:(t,n,e)=>H("del",{key:e.k},n(t.v,e))}};!0!==u.disableParsingRawHTML&&(rt.htmlBlock={t:It(z),i:Ht.HIGH,l(t,n,e){const[,r]=t[3].match(nt),o=new RegExp(`^${r}`,"gm"),a=t[3].replace(o,""),_=(u=a,vt.some(t=>t.test(u))?Dt:Tt);var u;const i=t[1].toLowerCase(),s=-1!==c.indexOf(i);e.N=e.N||"a"===i;const l=s?t[3]:_(n,a,e);return e.N=!1,{O:U(t[2]),v:l,G:s,H:s?i:t[1]}},h:(t,e,r)=>H(t.H,n({key:r.k},t.O),t.G?t.v:e(t.v,r))},rt.htmlSelfClosing={t:It(L),i:Ht.HIGH,l:t=>({O:U(t[2]||""),H:t[1]}),h:(t,e,r)=>H(t.H,n({},t.O,{key:r.k}))});const ot=function(t){let n=Object.keys(t);function e(r,o){let c=[],a="";for(;r;){let _=0;for(;_{let{children:r,options:o}=n,c=function(t,n){if(null==t)return{};var e,r,o={},c=Object.keys(t);for(r=0;r=0||(o[e]=t[e]);return o}(n,e);return react.cloneElement(qt(r,o),c)}); -//# sourceMappingURL=index.modern.js.map - -// EXTERNAL MODULE: ../../../node_modules/memoizerific/memoizerific.js -var memoizerific = __webpack_require__("../../../node_modules/memoizerific/memoizerific.js"); -var memoizerific_default = /*#__PURE__*/__webpack_require__.n(memoizerific); -// EXTERNAL MODULE: ../../../node_modules/lodash/uniq.js -var uniq = __webpack_require__("../../../node_modules/lodash/uniq.js"); -var uniq_default = /*#__PURE__*/__webpack_require__.n(uniq); -// EXTERNAL MODULE: ../../../node_modules/lodash/cloneDeep.js -var cloneDeep = __webpack_require__("../../../node_modules/lodash/cloneDeep.js"); -var cloneDeep_default = /*#__PURE__*/__webpack_require__.n(cloneDeep); -// EXTERNAL MODULE: external "__STORYBOOK_MODULE_PREVIEW_API__" -var external_STORYBOOK_MODULE_PREVIEW_API_ = __webpack_require__("@storybook/preview-api"); -// EXTERNAL MODULE: ../../../node_modules/lodash/mapValues.js -var mapValues = __webpack_require__("../../../node_modules/lodash/mapValues.js"); -var mapValues_default = /*#__PURE__*/__webpack_require__.n(mapValues); -// EXTERNAL MODULE: external "__STORYBOOK_MODULE_CORE_EVENTS__" -var external_STORYBOOK_MODULE_CORE_EVENTS_ = __webpack_require__("@storybook/core-events"); -// EXTERNAL MODULE: ../../../node_modules/ts-dedent/esm/index.js -var esm = __webpack_require__("../../../node_modules/ts-dedent/esm/index.js"); -// EXTERNAL MODULE: ../../../node_modules/@storybook/docs-tools/dist/index.mjs -var docs_tools_dist = __webpack_require__("../../../node_modules/@storybook/docs-tools/dist/index.mjs"); -// EXTERNAL MODULE: ../../../node_modules/telejson/dist/index.mjs -var telejson_dist = __webpack_require__("../../../node_modules/telejson/dist/index.mjs"); -// EXTERNAL MODULE: ../../../node_modules/tocbot/src/js/index.js -var js = __webpack_require__("../../../node_modules/tocbot/src/js/index.js"); -// EXTERNAL MODULE: external "__STORYBOOK_MODULE_CHANNELS__" -var external_STORYBOOK_MODULE_CHANNELS_ = __webpack_require__("@storybook/channels"); -;// CONCATENATED MODULE: ../../../node_modules/@storybook/blocks/dist/index.mjs - - - - - - - - - - - - - - - - - - - - - - -var Wrapper=dist/* styled */.I4.div(components_dist/* withReset */.YV,({theme})=>({backgroundColor:theme.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:theme.appBorderRadius,border:`1px dashed ${theme.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:curriedTransparentize$1(.3,theme.color.defaultText),fontSize:theme.typography.size.s2})),EmptyBlock=props=>react.createElement(Wrapper,{...props,className:"docblock-emptyblock sb-unstyled"});var StyledSyntaxHighlighter=(0,dist/* styled */.I4)(components_dist/* SyntaxHighlighter */.bF)(({theme})=>({fontSize:`${theme.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:theme.appBorderRadius,boxShadow:theme.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}}));var SourceSkeletonWrapper=dist/* styled */.I4.div(({theme})=>({background:theme.background.content,borderRadius:theme.appBorderRadius,border:`1px solid ${theme.appBorderColor}`,boxShadow:theme.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),SourceSkeletonPlaceholder=dist/* styled */.I4.div(({theme})=>({animation:`${theme.animation.glow} 1.5s ease-in-out infinite`,background:theme.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${dist/* ignoreSsrWarning */.v_}`]:{margin:0}})),SourceSkeleton=()=>react.createElement(SourceSkeletonWrapper,null,react.createElement(SourceSkeletonPlaceholder,null),react.createElement(SourceSkeletonPlaceholder,{style:{width:"80%"}}),react.createElement(SourceSkeletonPlaceholder,{style:{width:"30%"}}),react.createElement(SourceSkeletonPlaceholder,{style:{width:"80%"}})),Source=({isLoading,error,language,code,dark,format:format2,...rest})=>{if(isLoading)return react.createElement(SourceSkeleton,null);if(error)return react.createElement(EmptyBlock,null,error);let syntaxHighlighter=react.createElement(StyledSyntaxHighlighter,{bordered:!0,copyable:!0,format:format2,language,className:"docblock-source sb-unstyled",...rest},code);if(typeof dark>"u")return syntaxHighlighter;let overrideTheme=dark?chunk_ZGA76URP/* themes */.Zj.dark:chunk_ZGA76URP/* themes */.Zj.light;return react.createElement(dist/* ThemeProvider */.NP,{theme:(0,dist/* convert */.C6)(overrideTheme)},syntaxHighlighter)};Source.defaultProps={format:!1};var toGlobalSelector=element=>`& :where(${element}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${element}))`,breakpoint=600,Title=dist/* styled */.I4.h1(components_dist/* withReset */.YV,({theme})=>({color:theme.color.defaultText,fontSize:theme.typography.size.m3,fontWeight:theme.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${breakpoint}px)`]:{fontSize:theme.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),Subtitle=dist/* styled */.I4.h2(components_dist/* withReset */.YV,({theme})=>({fontWeight:theme.typography.weight.regular,fontSize:theme.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${breakpoint}px)`]:{fontSize:theme.typography.size.m1,lineHeight:"28px",marginBottom:24},color:curriedTransparentize$1(.25,theme.color.defaultText)})),DocsContent=dist/* styled */.I4.div(({theme})=>{let reset={fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},headers={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:theme.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},code={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:theme.typography.size.s2-1,border:theme.base==="light"?`1px solid ${theme.color.mediumlight}`:`1px solid ${theme.color.darker}`,color:theme.base==="light"?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),backgroundColor:theme.base==="light"?theme.color.lighter:theme.color.border};return {maxWidth:1e3,width:"100%",[toGlobalSelector("a")]:{...reset,fontSize:"inherit",lineHeight:"24px",color:theme.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[toGlobalSelector("blockquote")]:{...reset,margin:"16px 0",borderLeft:`4px solid ${theme.color.medium}`,padding:"0 15px",color:theme.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[toGlobalSelector("div")]:reset,[toGlobalSelector("dl")]:{...reset,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[toGlobalSelector("h1")]:{...reset,...headers,fontSize:`${theme.typography.size.l1}px`,fontWeight:theme.typography.weight.bold},[toGlobalSelector("h2")]:{...reset,...headers,fontSize:`${theme.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${theme.appBorderColor}`},[toGlobalSelector("h3")]:{...reset,...headers,fontSize:`${theme.typography.size.m1}px`,fontWeight:theme.typography.weight.bold},[toGlobalSelector("h4")]:{...reset,...headers,fontSize:`${theme.typography.size.s3}px`},[toGlobalSelector("h5")]:{...reset,...headers,fontSize:`${theme.typography.size.s2}px`},[toGlobalSelector("h6")]:{...reset,...headers,fontSize:`${theme.typography.size.s2}px`,color:theme.color.dark},[toGlobalSelector("hr")]:{border:"0 none",borderTop:`1px solid ${theme.appBorderColor}`,height:4,padding:0},[toGlobalSelector("img")]:{maxWidth:"100%"},[toGlobalSelector("li")]:{...reset,fontSize:theme.typography.size.s2,color:theme.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":code},[toGlobalSelector("ol")]:{...reset,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[toGlobalSelector("p")]:{...reset,margin:"16px 0",fontSize:theme.typography.size.s2,lineHeight:"24px",color:theme.color.defaultText,"& code":code},[toGlobalSelector("pre")]:{...reset,fontFamily:theme.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[toGlobalSelector("span")]:{...reset,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${theme.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:theme.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[toGlobalSelector("table")]:{...reset,margin:"16px 0",fontSize:theme.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${theme.appBorderColor}`,backgroundColor:theme.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:theme.base==="dark"?theme.color.darker:theme.color.lighter},"& tr th":{fontWeight:"bold",color:theme.color.defaultText,border:`1px solid ${theme.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${theme.appBorderColor}`,color:theme.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[toGlobalSelector("ul")]:{...reset,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),DocsWrapper=dist/* styled */.I4.div(({theme})=>({background:theme.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${breakpoint}px)`]:{}})),DocsPageWrapper=({children,toc})=>react.createElement(DocsWrapper,{className:"sbdocs sbdocs-wrapper"},react.createElement(DocsContent,{className:"sbdocs sbdocs-content"},children),toc);var getBlockBackgroundStyle=theme=>({borderRadius:theme.appBorderRadius,background:theme.background.content,boxShadow:theme.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${theme.appBorderColor}`});var Zoom=({zoom,resetZoom})=>react.createElement(react.Fragment,null,react.createElement(components_dist/* IconButton */.K0,{key:"zoomin",onClick:e=>{e.preventDefault(),zoom(.8);},title:"Zoom in"},react.createElement(components_dist/* Icons */.FI,{icon:"zoom"})),react.createElement(components_dist/* IconButton */.K0,{key:"zoomout",onClick:e=>{e.preventDefault(),zoom(1.25);},title:"Zoom out"},react.createElement(components_dist/* Icons */.FI,{icon:"zoomout"})),react.createElement(components_dist/* IconButton */.K0,{key:"zoomreset",onClick:e=>{e.preventDefault(),resetZoom();},title:"Reset zoom"},react.createElement(components_dist/* Icons */.FI,{icon:"zoomreset"}))),Bar=(0,dist/* styled */.I4)(components_dist/* FlexBar */.px)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),Toolbar=({isLoading,storyId,baseUrl,zoom,resetZoom,...rest})=>react.createElement(Bar,{...rest},react.createElement(react.Fragment,{key:"left"},isLoading?[1,2,3].map(key=>react.createElement(components_dist/* IconButtonSkeleton */.Tg,{key})):react.createElement(Zoom,{zoom,resetZoom})));var ZoomContext=(0,react.createContext)({scale:1});var{window:globalWindow}=external_STORYBOOK_MODULE_GLOBAL_.global,IFrame=class extends react.Component{constructor(){super(...arguments);this.iframe=null;}componentDidMount(){let{id}=this.props;this.iframe=globalWindow.document.getElementById(id);}shouldComponentUpdate(nextProps){let{scale}=nextProps;return scale!==this.props.scale&&this.setIframeBodyStyle({width:`${scale*100}%`,height:`${scale*100}%`,transform:`scale(${1/scale})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(style){return Object.assign(this.iframe.contentDocument.body.style,style)}render(){let{id,title,src,allowFullScreen,scale,...rest}=this.props;return react.createElement("iframe",{id,title,src,...allowFullScreen?{allow:"fullscreen"}:{},loading:"lazy",...rest})}};var{PREVIEW_URL}=external_STORYBOOK_MODULE_GLOBAL_.global,BASE_URL=PREVIEW_URL||"iframe.html",storyBlockIdFromId=({story,primary})=>`story--${story.id}${primary?"--primary":""}`,InlineStory=props=>{let storyRef=(0,react.useRef)(),[showLoader,setShowLoader]=(0,react.useState)(!0),[error,setError]=(0,react.useState)(),{story,height,autoplay,forceInitialArgs,renderStoryToElement}=props;return (0,react.useEffect)(()=>{if(!(story&&storyRef.current))return ()=>{};let element=storyRef.current,cleanup=renderStoryToElement(story,element,{showMain:()=>{},showError:({title,description})=>setError(new Error(`${title} - ${description}`)),showException:err=>setError(err)},{autoplay,forceInitialArgs});return setShowLoader(!1),()=>{Promise.resolve().then(()=>cleanup());}},[autoplay,renderStoryToElement,story]),error?react.createElement("pre",null,react.createElement(components_dist/* ErrorFormatter */.Df,{error})):react.createElement(react.Fragment,null,height?react.createElement("style",null,`#${storyBlockIdFromId(props)} { min-height: ${height}; transform: translateZ(0); overflow: auto }`):null,showLoader&&react.createElement(StorySkeleton,null),react.createElement("div",{ref:storyRef,id:`${storyBlockIdFromId(props)}-inner`,"data-name":story.name}))},IFrameStory=({story,height="500px"})=>react.createElement("div",{style:{width:"100%",height}},react.createElement(ZoomContext.Consumer,null,({scale})=>react.createElement(IFrame,{key:"iframe",id:`iframe--${story.id}`,title:story.name,src:(0,components_dist/* getStoryHref */.jZ)(BASE_URL,story.id,{viewMode:"story"}),allowFullScreen:!0,scale,style:{width:"100%",height:"100%",border:"0 none"}}))),Story=props=>{let{inline}=props;return react.createElement("div",{id:storyBlockIdFromId(props),className:"sb-story sb-unstyled","data-story-block":"true"},inline?react.createElement(InlineStory,{...props}):react.createElement(IFrameStory,{...props}))},StorySkeleton=()=>react.createElement(components_dist/* Loader */.aH,null);var ChildrenContainer=dist/* styled */.I4.div(({isColumn,columns,layout})=>({display:isColumn||!columns?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:isColumn?"column":"row","& .innerZoomElementWrapper > *":isColumn?{width:layout!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:layout!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout="padded"})=>layout==="centered"||layout==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout="padded"})=>layout==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns})=>columns&&columns>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${columns} - 20px)`}}:{}),StyledSource=(0,dist/* styled */.I4)(Source)(({theme})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:theme.appBorderRadius,borderBottomRightRadius:theme.appBorderRadius,border:"none",background:theme.base==="light"?"rgba(0, 0, 0, 0.85)":curriedDarken$1(.05,theme.background.content),color:theme.color.lightest,button:{background:theme.base==="light"?"rgba(0, 0, 0, 0.85)":curriedDarken$1(.05,theme.background.content)}})),PreviewContainer=dist/* styled */.I4.div(({theme,withSource,isExpanded})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...getBlockBackgroundStyle(theme),borderBottomLeftRadius:withSource&&isExpanded&&0,borderBottomRightRadius:withSource&&isExpanded&&0,borderBottomWidth:isExpanded&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar})=>withToolbar&&{paddingTop:40}),getSource=(withSource,expanded,setExpanded)=>{switch(!0){case!!(withSource&&withSource.error):return {source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>setExpanded(!1)}};case expanded:return {source:react.createElement(StyledSource,{...withSource,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>setExpanded(!1)}};default:return {source:react.createElement(StyledSource,{...withSource,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>setExpanded(!0)}}}};function getStoryId(children){if(react.Children.count(children)===1){let elt=children;if(elt.props)return elt.props.id}return null}var PositionedToolbar=(0,dist/* styled */.I4)(Toolbar)({position:"absolute",top:0,left:0,right:0,height:40}),Relative=dist/* styled */.I4.div({overflow:"hidden",position:"relative"}),Preview=({isLoading,isColumn,columns,children,withSource,withToolbar=!1,isExpanded=!1,additionalActions,className,layout="padded",...props})=>{let[expanded,setExpanded]=(0,react.useState)(isExpanded),{source,actionItem}=getSource(withSource,expanded,setExpanded),[scale,setScale]=(0,react.useState)(1),previewClasses=[className].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),defaultActionItems=withSource?[actionItem]:[],[additionalActionItems,setAdditionalActionItems]=(0,react.useState)(additionalActions?[...additionalActions]:[]),actionItems=[...defaultActionItems,...additionalActionItems],{window:globalWindow4}=external_STORYBOOK_MODULE_GLOBAL_.global,copyToClipboard=(0,react.useCallback)(async text=>{let{createCopyToClipboardFunction}=await Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, "../../../node_modules/@storybook/components/dist/index.mjs"));createCopyToClipboardFunction();},[]),onCopyCapture=e=>{let selection=globalWindow4.getSelection();selection&&selection.type==="Range"||(e.preventDefault(),additionalActionItems.filter(item=>item.title==="Copied").length===0&©ToClipboard(source.props.code).then(()=>{setAdditionalActionItems([...additionalActionItems,{title:"Copied",onClick:()=>{}}]),globalWindow4.setTimeout(()=>setAdditionalActionItems(additionalActionItems.filter(item=>item.title!=="Copied")),1500);}));};return react.createElement(PreviewContainer,{withSource,withToolbar,...props,className:previewClasses.join(" ")},withToolbar&&react.createElement(PositionedToolbar,{isLoading,border:!0,zoom:z=>setScale(scale*z),resetZoom:()=>setScale(1),storyId:getStoryId(children),baseUrl:"./iframe.html"}),react.createElement(ZoomContext.Provider,{value:{scale}},react.createElement(Relative,{className:"docs-story",onCopyCapture:withSource&&onCopyCapture},react.createElement(ChildrenContainer,{isColumn:isColumn||!Array.isArray(children),columns,layout},react.createElement(components_dist/* Zoom */.GP.Element,{scale},Array.isArray(children)?children.map((child,i)=>react.createElement("div",{key:i},child)):react.createElement("div",null,children))),react.createElement(chunk_ELLS3HSY/* ActionBar */.E7,{actionItems}))),withSource&&expanded&&source)},StyledPreview=(0,dist/* styled */.I4)(Preview)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}})),PreviewSkeleton=()=>react.createElement(StyledPreview,{isLoading:!0,withToolbar:!0},react.createElement(StorySkeleton,null));var Table=dist/* styled */.I4.table(({theme})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:(0,components_dist/* codeCommon */.zb)({theme}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:theme.typography.size.s1}}})),ArgJsDoc=({tags})=>{let params=(tags.params||[]).filter(x=>x.description),hasDisplayableParams=params.length!==0,hasDisplayableDeprecated=tags.deprecated!=null,hasDisplayableReturns=tags.returns!=null&&tags.returns.description!=null;return !hasDisplayableParams&&!hasDisplayableReturns&&!hasDisplayableDeprecated?null:react.createElement(react.Fragment,null,react.createElement(Table,null,react.createElement("tbody",null,hasDisplayableDeprecated&&react.createElement("tr",{key:"deprecated"},react.createElement("td",{colSpan:2},react.createElement("strong",null,"Deprecated"),": ",tags.deprecated)),hasDisplayableParams&¶ms.map(x=>react.createElement("tr",{key:x.name},react.createElement("td",null,react.createElement("code",null,x.name)),react.createElement("td",null,x.description))),hasDisplayableReturns&&react.createElement("tr",{key:"returns"},react.createElement("td",null,react.createElement("code",null,"Returns")),react.createElement("td",null,tags.returns.description)))))};var ITEMS_BEFORE_EXPANSION=8,Summary=dist/* styled */.I4.div(({isExpanded})=>({display:"flex",flexDirection:isExpanded?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),Text=dist/* styled */.I4.span(components_dist/* codeCommon */.zb,({theme,simple=!1})=>({flex:"0 0 auto",fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...simple&&{background:"transparent",border:"0 none",paddingLeft:0}})),ExpandButton=dist/* styled */.I4.button(({theme})=>({fontFamily:theme.typography.fonts.mono,color:theme.color.secondary,marginBottom:"4px",background:"none",border:"none"})),Expandable=dist/* styled */.I4.div(components_dist/* codeCommon */.zb,({theme})=>({fontFamily:theme.typography.fonts.mono,color:theme.color.secondary,fontSize:theme.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),Detail=dist/* styled */.I4.div(({theme,width})=>({width,minWidth:200,maxWidth:800,padding:15,fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),ArrowIcon=(0,dist/* styled */.I4)(components_dist/* Icons */.FI)({height:10,width:10,minWidth:10,marginLeft:4}),EmptyArg=()=>react.createElement("span",null,"-"),ArgText=({text,simple})=>react.createElement(Text,{simple},text),calculateDetailWidth=memoizerific_default()(1e3)(detail=>{let lines=detail.split(/\r?\n/);return `${Math.max(...lines.map(x=>x.length))}ch`}),getSummaryItems=summary=>{if(!summary)return [summary];let summaryItems=summary.split("|").map(value2=>value2.trim());return uniq_default()(summaryItems)},renderSummaryItems=(summaryItems,isExpanded=!0)=>{let items=summaryItems;return isExpanded||(items=summaryItems.slice(0,ITEMS_BEFORE_EXPANSION)),items.map(item=>react.createElement(ArgText,{key:item,text:item===""?'""':item}))},ArgSummary=({value:value2,initialExpandedArgs})=>{let{summary,detail}=value2,[isOpen,setIsOpen]=(0,react.useState)(!1),[isExpanded,setIsExpanded]=(0,react.useState)(initialExpandedArgs||!1);if(summary==null)return null;let summaryAsString=typeof summary.toString=="function"?summary.toString():summary;if(detail==null){if(/[(){}[\]<>]/.test(summaryAsString))return react.createElement(ArgText,{text:summaryAsString});let summaryItems=getSummaryItems(summaryAsString),itemsCount=summaryItems.length;return itemsCount>ITEMS_BEFORE_EXPANSION?react.createElement(Summary,{isExpanded},renderSummaryItems(summaryItems,isExpanded),react.createElement(ExpandButton,{onClick:()=>setIsExpanded(!isExpanded)},isExpanded?"Show less...":`Show ${itemsCount-ITEMS_BEFORE_EXPANSION} more...`)):react.createElement(Summary,null,renderSummaryItems(summaryItems))}return react.createElement(components_dist/* WithTooltipPure */.o4,{closeOnOutsideClick:!0,placement:"bottom",visible:isOpen,onVisibleChange:isVisible=>{setIsOpen(isVisible);},tooltip:react.createElement(Detail,{width:calculateDetailWidth(detail)},react.createElement(components_dist/* SyntaxHighlighter */.bF,{language:"jsx",format:!1},detail))},react.createElement(Expandable,{className:"sbdocs-expandable"},react.createElement("span",null,summaryAsString),react.createElement(ArrowIcon,{icon:isOpen?"arrowup":"arrowdown"})))},ArgValue=({value:value2,initialExpandedArgs})=>value2==null?react.createElement(EmptyArg,null):react.createElement(ArgSummary,{value:value2,initialExpandedArgs});var Label=dist/* styled */.I4.label(({theme})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:theme.boolean.background,borderRadius:"3em",padding:1,input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${theme.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:theme.typography.size.s1,fontWeight:theme.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:curriedTransparentize$1(.5,theme.color.defaultText),background:"transparent","&:hover":{boxShadow:`${curriedOpacify$1(.3,theme.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${curriedOpacify$1(.05,theme.appBorderColor)} 0 0 0 2px inset`,color:curriedOpacify$1(1,theme.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:theme.boolean.selectedBackground,boxShadow:theme.base==="light"?`${curriedOpacify$1(.1,theme.appBorderColor)} 0 0 2px`:`${theme.appBorderColor} 0 0 0 1px`,color:theme.color.defaultText,padding:"7px 15px"}})),parse=value2=>value2==="true",BooleanControl=({name,value:value2,onChange,onBlur,onFocus})=>{let onSetFalse=(0,react.useCallback)(()=>onChange(!1),[onChange]);if(value2===void 0)return react.createElement(components_dist/* Form */.lV.Button,{id:(0,chunk_GWAJ4KRU/* getControlSetterButtonId */.Y)(name),onClick:onSetFalse},"Set boolean");let controlId=(0,chunk_GWAJ4KRU/* getControlId */.Z)(name),parsedValue=typeof value2=="string"?parse(value2):value2;return react.createElement(Label,{htmlFor:controlId,"aria-label":name},react.createElement("input",{id:controlId,type:"checkbox",onChange:e=>onChange(e.target.checked),checked:parsedValue,role:"switch",name,onBlur,onFocus}),react.createElement("span",{"aria-hidden":"true"},"False"),react.createElement("span",{"aria-hidden":"true"},"True"))};var parseDate=value2=>{let[year,month,day]=value2.split("-"),result=new Date;return result.setFullYear(parseInt(year,10),parseInt(month,10)-1,parseInt(day,10)),result},parseTime=value2=>{let[hours,minutes]=value2.split(":"),result=new Date;return result.setHours(parseInt(hours,10)),result.setMinutes(parseInt(minutes,10)),result},formatDate=value2=>{let date=new Date(value2),year=`000${date.getFullYear()}`.slice(-4),month=`0${date.getMonth()+1}`.slice(-2),day=`0${date.getDate()}`.slice(-2);return `${year}-${month}-${day}`},formatTime=value2=>{let date=new Date(value2),hours=`0${date.getHours()}`.slice(-2),minutes=`0${date.getMinutes()}`.slice(-2);return `${hours}:${minutes}`},FlexSpaced=dist/* styled */.I4.div(({theme})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:theme.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),DateControl=({name,value:value2,onChange,onFocus,onBlur})=>{let[valid,setValid]=(0,react.useState)(!0),dateRef=(0,react.useRef)(),timeRef=(0,react.useRef)();(0,react.useEffect)(()=>{valid!==!1&&(dateRef&&dateRef.current&&(dateRef.current.value=formatDate(value2)),timeRef&&timeRef.current&&(timeRef.current.value=formatTime(value2)));},[value2]);let onDateChange=e=>{let parsed=parseDate(e.target.value),result=new Date(value2);result.setFullYear(parsed.getFullYear(),parsed.getMonth(),parsed.getDate());let time=result.getTime();time&&onChange(time),setValid(!!time);},onTimeChange=e=>{let parsed=parseTime(e.target.value),result=new Date(value2);result.setHours(parsed.getHours()),result.setMinutes(parsed.getMinutes());let time=result.getTime();time&&onChange(time),setValid(!!time);},controlId=(0,chunk_GWAJ4KRU/* getControlId */.Z)(name);return react.createElement(FlexSpaced,null,react.createElement(components_dist/* Form */.lV.Input,{type:"date",max:"9999-12-31",ref:dateRef,id:`${controlId}-date`,name:`${controlId}-date`,onChange:onDateChange,onFocus,onBlur}),react.createElement(components_dist/* Form */.lV.Input,{type:"time",id:`${controlId}-time`,name:`${controlId}-time`,ref:timeRef,onChange:onTimeChange,onFocus,onBlur}),valid?null:react.createElement("div",null,"invalid"))};var Wrapper2=dist/* styled */.I4.label({display:"flex"}),parse2=value2=>{let result=parseFloat(value2);return Number.isNaN(result)?void 0:result},dist_format=value2=>value2!=null?String(value2):"",NumberControl=({name,value:value2,onChange,min,max,step,onBlur,onFocus})=>{let[inputValue,setInputValue]=(0,react.useState)(typeof value2=="number"?value2:""),[forceVisible,setForceVisible]=(0,react.useState)(!1),[parseError,setParseError]=(0,react.useState)(null),handleChange=(0,react.useCallback)(event=>{setInputValue(event.target.value);let result=parseFloat(event.target.value);Number.isNaN(result)?setParseError(new Error(`'${event.target.value}' is not a number`)):(onChange(result),setParseError(null));},[onChange,setParseError]),onForceVisible=(0,react.useCallback)(()=>{setInputValue("0"),onChange(0),setForceVisible(!0);},[setForceVisible]),htmlElRef=(0,react.useRef)(null);return (0,react.useEffect)(()=>{forceVisible&&htmlElRef.current&&htmlElRef.current.select();},[forceVisible]),(0,react.useEffect)(()=>{inputValue!==(typeof value2=="number"?value2:"")&&setInputValue(value2);},[value2]),!forceVisible&&value2===void 0?react.createElement(components_dist/* Form */.lV.Button,{id:(0,chunk_GWAJ4KRU/* getControlSetterButtonId */.Y)(name),onClick:onForceVisible},"Set number"):react.createElement(Wrapper2,null,react.createElement(components_dist/* Form */.lV.Input,{ref:htmlElRef,id:(0,chunk_GWAJ4KRU/* getControlId */.Z)(name),type:"number",onChange:handleChange,size:"flex",placeholder:"Edit number...",value:inputValue,valid:parseError?"error":null,autoFocus:forceVisible,name,min,max,step,onFocus,onBlur}))};var selectedKey=(value2,options)=>{let entry=options&&Object.entries(options).find(([_key,val])=>val===value2);return entry?entry[0]:void 0},selectedKeys=(value2,options)=>value2&&options?Object.entries(options).filter(entry=>value2.includes(entry[1])).map(entry=>entry[0]):[],selectedValues=(keys,options)=>keys&&options&&keys.map(key=>options[key]);var Wrapper3=dist/* styled */.I4.div(({isInline})=>isInline?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}}),Text2=dist/* styled */.I4.span({}),Label2=dist/* styled */.I4.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),CheckboxControl=({name,options,value:value2,onChange,isInline})=>{if(!options)return external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn(`Checkbox with no options: ${name}`),react.createElement(react.Fragment,null,"-");let initial=selectedKeys(value2,options),[selected,setSelected]=(0,react.useState)(initial),handleChange=e=>{let option=e.target.value,updated=[...selected];updated.includes(option)?updated.splice(updated.indexOf(option),1):updated.push(option),onChange(selectedValues(updated,options)),setSelected(updated);};(0,react.useEffect)(()=>{setSelected(selectedKeys(value2,options));},[value2]);let controlId=(0,chunk_GWAJ4KRU/* getControlId */.Z)(name);return react.createElement(Wrapper3,{isInline},Object.keys(options).map((key,index)=>{let id=`${controlId}-${index}`;return react.createElement(Label2,{key:id,htmlFor:id},react.createElement("input",{type:"checkbox",id,name:id,value:key,onChange:handleChange,checked:selected?.includes(key)}),react.createElement(Text2,null,key))}))};var Wrapper4=dist/* styled */.I4.div(({isInline})=>isInline?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}}),Text3=dist/* styled */.I4.span({}),Label3=dist/* styled */.I4.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),RadioControl=({name,options,value:value2,onChange,isInline})=>{if(!options)return external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn(`Radio with no options: ${name}`),react.createElement(react.Fragment,null,"-");let selection=selectedKey(value2,options),controlId=(0,chunk_GWAJ4KRU/* getControlId */.Z)(name);return react.createElement(Wrapper4,{isInline},Object.keys(options).map((key,index)=>{let id=`${controlId}-${index}`;return react.createElement(Label3,{key:id,htmlFor:id},react.createElement("input",{type:"radio",id,name:id,value:key,onChange:e=>onChange(options[e.currentTarget.value]),checked:key===selection}),react.createElement(Text3,null,key))}))};var styleResets={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},OptionsSelect=dist/* styled */.I4.select(({theme})=>({...styleResets,boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:theme.input.color||"inherit",background:theme.input.background,borderRadius:theme.input.borderRadius,boxShadow:`${theme.input.border} 0 0 0 1px inset`,fontSize:theme.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${theme.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:theme.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}})),SelectWrapper=dist/* styled */.I4.span(({theme})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:theme.textMutedColor,path:{fill:theme.textMutedColor}}})),NO_SELECTION="Choose option...",SingleSelect=({name,value:value2,options,onChange})=>{let handleChange=e=>{onChange(options[e.currentTarget.value]);},selection=selectedKey(value2,options)||NO_SELECTION,controlId=(0,chunk_GWAJ4KRU/* getControlId */.Z)(name);return react.createElement(SelectWrapper,null,react.createElement(components_dist/* Icons */.FI,{icon:"arrowdown"}),react.createElement(OptionsSelect,{id:controlId,value:selection,onChange:handleChange},react.createElement("option",{key:"no-selection",disabled:!0},NO_SELECTION),Object.keys(options).map(key=>react.createElement("option",{key,value:key},key))))},MultiSelect=({name,value:value2,options,onChange})=>{let handleChange=e=>{let selection2=Array.from(e.currentTarget.options).filter(option=>option.selected).map(option=>option.value);onChange(selectedValues(selection2,options));},selection=selectedKeys(value2,options),controlId=(0,chunk_GWAJ4KRU/* getControlId */.Z)(name);return react.createElement(SelectWrapper,null,react.createElement(OptionsSelect,{id:controlId,multiple:!0,value:selection,onChange:handleChange},Object.keys(options).map(key=>react.createElement("option",{key,value:key},key))))},SelectControl=props=>{let{name,options}=props;return options?props.isMulti?react.createElement(MultiSelect,{...props}):react.createElement(SingleSelect,{...props}):(external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn(`Select with no options: ${name}`),react.createElement(react.Fragment,null,"-"))};var normalizeOptions=(options,labels)=>Array.isArray(options)?options.reduce((acc,item)=>(acc[labels?.[item]||String(item)]=item,acc),{}):options,Controls={check:CheckboxControl,"inline-check":CheckboxControl,radio:RadioControl,"inline-radio":RadioControl,select:SelectControl,"multi-select":SelectControl},OptionsControl=props=>{let{type="select",labels,argType}=props,normalized={...props,options:argType?normalizeOptions(argType.options,labels):{},isInline:type.includes("inline"),isMulti:type.includes("multi")},Control=Controls[type];if(Control)return react.createElement(Control,{...normalized});throw new Error(`Unknown options type: ${type}`)};var VALUE="value",KEY="key";var ERROR="Error",OBJECT="Object",ARRAY="Array",STRING="String",NUMBER="Number",BOOLEAN="Boolean",DATE="Date",NULL="Null",UNDEFINED="Undefined",FUNCTION="Function",SYMBOL="Symbol";var ADD_DELTA_TYPE="ADD_DELTA_TYPE",REMOVE_DELTA_TYPE="REMOVE_DELTA_TYPE",UPDATE_DELTA_TYPE="UPDATE_DELTA_TYPE";function getObjectType(obj){return obj!==null&&typeof obj=="object"&&!Array.isArray(obj)&&typeof obj[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(obj).slice(8,-1)}function isComponentWillChange(oldValue,newValue){let oldType=getObjectType(oldValue),newType=getObjectType(newValue);return (oldType==="Function"||newType==="Function")&&newType!==oldType}var JsonAddValue=class extends react.Component{constructor(props){super(props),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this);}componentDidMount(){let{inputRefKey,inputRefValue}=this.state,{onlyValue}=this.props;inputRefKey&&typeof inputRefKey.focus=="function"&&inputRefKey.focus(),onlyValue&&inputRefValue&&typeof inputRefValue.focus=="function"&&inputRefValue.focus(),document.addEventListener("keydown",this.onKeydown);}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown);}onKeydown(event){event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||((event.code==="Enter"||event.key==="Enter")&&(event.preventDefault(),this.onSubmit()),(event.code==="Escape"||event.key==="Escape")&&(event.preventDefault(),this.props.handleCancel()));}onSubmit(){let{handleAdd,onlyValue,onSubmitValueParser,keyPath,deep}=this.props,{inputRefKey,inputRefValue}=this.state,result={};if(!onlyValue){if(!inputRefKey.value)return;result.key=inputRefKey.value;}result.newValue=onSubmitValueParser(!1,keyPath,deep,result.key,inputRefValue.value),handleAdd(result);}refInputKey(node){this.state.inputRefKey=node;}refInputValue(node){this.state.inputRefValue=node;}render(){let{handleCancel,onlyValue,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep}=this.props,addButtonElementLayout=(0,react.cloneElement)(addButtonElement,{onClick:this.onSubmit}),cancelButtonElementLayout=(0,react.cloneElement)(cancelButtonElement,{onClick:handleCancel}),inputElementValue=inputElementGenerator(VALUE,keyPath,deep),inputElementValueLayout=(0,react.cloneElement)(inputElementValue,{placeholder:"Value",ref:this.refInputValue}),inputElementKeyLayout=null;if(!onlyValue){let inputElementKey=inputElementGenerator(KEY,keyPath,deep);inputElementKeyLayout=(0,react.cloneElement)(inputElementKey,{placeholder:"Key",ref:this.refInputKey});}return react.createElement("span",{className:"rejt-add-value-node"},inputElementKeyLayout,inputElementValueLayout,cancelButtonElementLayout,addButtonElementLayout)}};JsonAddValue.defaultProps={onlyValue:!1,addButtonElement:react.createElement("button",null,"+"),cancelButtonElement:react.createElement("button",null,"c")};var JsonArray=class extends react.Component{constructor(props){super(props);let keyPath=[...props.keyPath,props.name];this.state={data:props.data,name:props.name,keyPath,deep:props.deep,nextDeep:props.deep+1,collapsed:props.isCollapsed(keyPath,props.deep,props.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this);}static getDerivedStateFromProps(props,state){return props.data!==state.data?{data:props.data}:null}onChildUpdate(childKey,childData){let{data,keyPath}=this.state;data[childKey]=childData,this.setState({data});let{onUpdate}=this.props,size=keyPath.length;onUpdate(keyPath[size-1],data);}handleAddMode(){this.setState({addFormVisible:!0});}handleCollapseMode(){this.setState(state=>({collapsed:!state.collapsed}));}handleRemoveItem(index){return ()=>{let{beforeRemoveAction,logger:logger4}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[index];beforeRemoveAction(index,keyPath,deep,oldValue).then(()=>{let deltaUpdateResult={keyPath,deep,key:index,oldValue,type:REMOVE_DELTA_TYPE};data.splice(index,1),this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate(deltaUpdateResult);}).catch(logger4.error);}}handleAddValueAdd({newValue}){let{data,keyPath,nextDeep:deep}=this.state,{beforeAddAction,logger:logger4}=this.props;beforeAddAction(data.length,keyPath,deep,newValue).then(()=>{let newData=[...data,newValue];this.setState({data:newData}),this.handleAddValueCancel();let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],newData),onDeltaUpdate({type:ADD_DELTA_TYPE,keyPath,deep,key:newData.length-1,newValue});}).catch(logger4.error);}handleAddValueCancel(){this.setState({addFormVisible:!1});}handleEditValue({key,value:value2}){return new Promise((resolve,reject)=>{let{beforeUpdateAction}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[key];beforeUpdateAction(key,keyPath,deep,oldValue,value2).then(()=>{data[key]=value2,this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:UPDATE_DELTA_TYPE,keyPath,deep,key,newValue:value2,oldValue}),resolve(void 0);}).catch(reject);})}renderCollapsed(){let{name,data,keyPath,deep}=this.state,{handleRemove,readOnly,getStyle,dataType,minusMenuElement}=this.props,{minus,collapsed}=getStyle(name,data,keyPath,deep,dataType),isReadOnly=readOnly(name,data,keyPath,deep,dataType),removeItemButton=(0,react.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:minus});return react.createElement("span",{className:"rejt-collapsed"},react.createElement("span",{className:"rejt-collapsed-text",style:collapsed,onClick:this.handleCollapseMode},"[...] ",data.length," ",data.length===1?"item":"items"),!isReadOnly&&removeItemButton)}renderNotCollapsed(){let{name,data,keyPath,deep,addFormVisible,nextDeep}=this.state,{isCollapsed,handleRemove,onDeltaUpdate,readOnly,getStyle,dataType,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,{minus,plus,delimiter,ul,addForm}=getStyle(name,data,keyPath,deep,dataType),isReadOnly=readOnly(name,data,keyPath,deep,dataType),addItemButton=(0,react.cloneElement)(plusMenuElement,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:plus}),removeItemButton=(0,react.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:minus}),onlyValue=!0,startObject="[",endObject="]";return react.createElement("span",{className:"rejt-not-collapsed"},react.createElement("span",{className:"rejt-not-collapsed-delimiter",style:delimiter},startObject),!addFormVisible&&addItemButton,react.createElement("ul",{className:"rejt-not-collapsed-list",style:ul},data.map((item,index)=>react.createElement(JsonNode,{key:index,name:index.toString(),data:item,keyPath,deep:nextDeep,isCollapsed,handleRemove:this.handleRemoveItem(index),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}))),!isReadOnly&&addFormVisible&&react.createElement("div",{className:"rejt-add-form",style:addForm},react.createElement(JsonAddValue,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep,onSubmitValueParser})),react.createElement("span",{className:"rejt-not-collapsed-delimiter",style:delimiter},endObject),!isReadOnly&&removeItemButton)}render(){let{name,collapsed,data,keyPath,deep}=this.state,{dataType,getStyle}=this.props,value2=collapsed?this.renderCollapsed():this.renderNotCollapsed(),style=getStyle(name,data,keyPath,deep,dataType);return react.createElement("div",{className:"rejt-array-node"},react.createElement("span",{onClick:this.handleCollapseMode},react.createElement("span",{className:"rejt-name",style:style.name},name," :"," ")),value2)}};JsonArray.defaultProps={keyPath:[],deep:0,minusMenuElement:react.createElement("span",null," - "),plusMenuElement:react.createElement("span",null," + ")};var JsonFunctionValue=class extends react.Component{constructor(props){super(props);let keyPath=[...props.keyPath,props.name];this.state={value:props.value,name:props.name,keyPath,deep:props.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this);}static getDerivedStateFromProps(props,state){return props.value!==state.value?{value:props.value}:null}componentDidUpdate(){let{editEnabled,inputRef,name,value:value2,keyPath,deep}=this.state,{readOnly,dataType}=this.props,readOnlyResult=readOnly(name,value2,keyPath,deep,dataType);editEnabled&&!readOnlyResult&&typeof inputRef.focus=="function"&&inputRef.focus();}componentDidMount(){document.addEventListener("keydown",this.onKeydown);}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown);}onKeydown(event){event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||((event.code==="Enter"||event.key==="Enter")&&(event.preventDefault(),this.handleEdit()),(event.code==="Escape"||event.key==="Escape")&&(event.preventDefault(),this.handleCancelEdit()));}handleEdit(){let{handleUpdateValue,originalValue,logger:logger4,onSubmitValueParser,keyPath}=this.props,{inputRef,name,deep}=this.state;if(!inputRef)return;let newValue=onSubmitValueParser(!0,keyPath,deep,name,inputRef.value);handleUpdateValue({value:newValue,key:name}).then(()=>{isComponentWillChange(originalValue,newValue)||this.handleCancelEdit();}).catch(logger4.error);}handleEditMode(){this.setState({editEnabled:!0});}refInput(node){this.state.inputRef=node;}handleCancelEdit(){this.setState({editEnabled:!1});}render(){let{name,value:value2,editEnabled,keyPath,deep}=this.state,{handleRemove,originalValue,readOnly,dataType,getStyle,editButtonElement,cancelButtonElement,textareaElementGenerator,minusMenuElement,keyPath:comeFromKeyPath}=this.props,style=getStyle(name,originalValue,keyPath,deep,dataType),result=null,minusElement=null,resultOnlyResult=readOnly(name,originalValue,keyPath,deep,dataType);if(editEnabled&&!resultOnlyResult){let textareaElement=textareaElementGenerator(VALUE,comeFromKeyPath,deep,name,originalValue,dataType),editButtonElementLayout=(0,react.cloneElement)(editButtonElement,{onClick:this.handleEdit}),cancelButtonElementLayout=(0,react.cloneElement)(cancelButtonElement,{onClick:this.handleCancelEdit}),textareaElementLayout=(0,react.cloneElement)(textareaElement,{ref:this.refInput,defaultValue:originalValue});result=react.createElement("span",{className:"rejt-edit-form",style:style.editForm},textareaElementLayout," ",cancelButtonElementLayout,editButtonElementLayout),minusElement=null;}else {result=react.createElement("span",{className:"rejt-value",style:style.value,onClick:resultOnlyResult?null:this.handleEditMode},value2);let minusMenuLayout=(0,react.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:style.minus});minusElement=resultOnlyResult?null:minusMenuLayout;}return react.createElement("li",{className:"rejt-function-value-node",style:style.li},react.createElement("span",{className:"rejt-name",style:style.name},name," :"," "),result,minusElement)}};JsonFunctionValue.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:react.createElement("button",null,"e"),cancelButtonElement:react.createElement("button",null,"c"),minusMenuElement:react.createElement("span",null," - ")};var JsonNode=class extends react.Component{constructor(props){super(props),this.state={data:props.data,name:props.name,keyPath:props.keyPath,deep:props.deep};}static getDerivedStateFromProps(props,state){return props.data!==state.data?{data:props.data}:null}render(){let{data,name,keyPath,deep}=this.state,{isCollapsed,handleRemove,handleUpdateValue,onUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,readOnlyTrue=()=>!0,dataType=getObjectType(data);switch(dataType){case ERROR:return react.createElement(JsonObject,{data,name,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly:readOnlyTrue,dataType,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case OBJECT:return react.createElement(JsonObject,{data,name,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly,dataType,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case ARRAY:return react.createElement(JsonArray,{data,name,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly,dataType,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case STRING:return react.createElement(JsonValue,{name,value:`"${data}"`,originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case NUMBER:return react.createElement(JsonValue,{name,value:data,originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case BOOLEAN:return react.createElement(JsonValue,{name,value:data?"true":"false",originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case DATE:return react.createElement(JsonValue,{name,value:data.toISOString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly:readOnlyTrue,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case NULL:return react.createElement(JsonValue,{name,value:"null",originalValue:"null",keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case UNDEFINED:return react.createElement(JsonValue,{name,value:"undefined",originalValue:"undefined",keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case FUNCTION:return react.createElement(JsonFunctionValue,{name,value:data.toString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,textareaElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case SYMBOL:return react.createElement(JsonValue,{name,value:data.toString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly:readOnlyTrue,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});default:return null}}};JsonNode.defaultProps={keyPath:[],deep:0};var JsonObject=class extends react.Component{constructor(props){super(props);let keyPath=props.deep===-1?[]:[...props.keyPath,props.name];this.state={name:props.name,data:props.data,keyPath,deep:props.deep,nextDeep:props.deep+1,collapsed:props.isCollapsed(keyPath,props.deep,props.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this);}static getDerivedStateFromProps(props,state){return props.data!==state.data?{data:props.data}:null}onChildUpdate(childKey,childData){let{data,keyPath}=this.state;data[childKey]=childData,this.setState({data});let{onUpdate}=this.props,size=keyPath.length;onUpdate(keyPath[size-1],data);}handleAddMode(){this.setState({addFormVisible:!0});}handleAddValueCancel(){this.setState({addFormVisible:!1});}handleAddValueAdd({key,newValue}){let{data,keyPath,nextDeep:deep}=this.state,{beforeAddAction,logger:logger4}=this.props;beforeAddAction(key,keyPath,deep,newValue).then(()=>{data[key]=newValue,this.setState({data}),this.handleAddValueCancel();let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:ADD_DELTA_TYPE,keyPath,deep,key,newValue});}).catch(logger4.error);}handleRemoveValue(key){return ()=>{let{beforeRemoveAction,logger:logger4}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[key];beforeRemoveAction(key,keyPath,deep,oldValue).then(()=>{let deltaUpdateResult={keyPath,deep,key,oldValue,type:REMOVE_DELTA_TYPE};delete data[key],this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate(deltaUpdateResult);}).catch(logger4.error);}}handleCollapseMode(){this.setState(state=>({collapsed:!state.collapsed}));}handleEditValue({key,value:value2}){return new Promise((resolve,reject)=>{let{beforeUpdateAction}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[key];beforeUpdateAction(key,keyPath,deep,oldValue,value2).then(()=>{data[key]=value2,this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:UPDATE_DELTA_TYPE,keyPath,deep,key,newValue:value2,oldValue}),resolve();}).catch(reject);})}renderCollapsed(){let{name,keyPath,deep,data}=this.state,{handleRemove,readOnly,dataType,getStyle,minusMenuElement}=this.props,{minus,collapsed}=getStyle(name,data,keyPath,deep,dataType),keyList=Object.getOwnPropertyNames(data),isReadOnly=readOnly(name,data,keyPath,deep,dataType),removeItemButton=(0,react.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:minus});return react.createElement("span",{className:"rejt-collapsed"},react.createElement("span",{className:"rejt-collapsed-text",style:collapsed,onClick:this.handleCollapseMode},"{...}"," ",keyList.length," ",keyList.length===1?"key":"keys"),!isReadOnly&&removeItemButton)}renderNotCollapsed(){let{name,data,keyPath,deep,nextDeep,addFormVisible}=this.state,{isCollapsed,handleRemove,onDeltaUpdate,readOnly,getStyle,dataType,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,{minus,plus,addForm,ul,delimiter}=getStyle(name,data,keyPath,deep,dataType),keyList=Object.getOwnPropertyNames(data),isReadOnly=readOnly(name,data,keyPath,deep,dataType),addItemButton=(0,react.cloneElement)(plusMenuElement,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:plus}),removeItemButton=(0,react.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:minus}),list=keyList.map(key=>react.createElement(JsonNode,{key,name:key,data:data[key],keyPath,deep:nextDeep,isCollapsed,handleRemove:this.handleRemoveValue(key),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser})),startObject="{",endObject="}";return react.createElement("span",{className:"rejt-not-collapsed"},react.createElement("span",{className:"rejt-not-collapsed-delimiter",style:delimiter},startObject),!isReadOnly&&addItemButton,react.createElement("ul",{className:"rejt-not-collapsed-list",style:ul},list),!isReadOnly&&addFormVisible&&react.createElement("div",{className:"rejt-add-form",style:addForm},react.createElement(JsonAddValue,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep,onSubmitValueParser})),react.createElement("span",{className:"rejt-not-collapsed-delimiter",style:delimiter},endObject),!isReadOnly&&removeItemButton)}render(){let{name,collapsed,data,keyPath,deep}=this.state,{getStyle,dataType}=this.props,value2=collapsed?this.renderCollapsed():this.renderNotCollapsed(),style=getStyle(name,data,keyPath,deep,dataType);return react.createElement("div",{className:"rejt-object-node"},react.createElement("span",{onClick:this.handleCollapseMode},react.createElement("span",{className:"rejt-name",style:style.name},name," :"," ")),value2)}};JsonObject.defaultProps={keyPath:[],deep:0,minusMenuElement:react.createElement("span",null," - "),plusMenuElement:react.createElement("span",null," + ")};var JsonValue=class extends react.Component{constructor(props){super(props);let keyPath=[...props.keyPath,props.name];this.state={value:props.value,name:props.name,keyPath,deep:props.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this);}static getDerivedStateFromProps(props,state){return props.value!==state.value?{value:props.value}:null}componentDidUpdate(){let{editEnabled,inputRef,name,value:value2,keyPath,deep}=this.state,{readOnly,dataType}=this.props,isReadOnly=readOnly(name,value2,keyPath,deep,dataType);editEnabled&&!isReadOnly&&typeof inputRef.focus=="function"&&inputRef.focus();}componentDidMount(){document.addEventListener("keydown",this.onKeydown);}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown);}onKeydown(event){event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||((event.code==="Enter"||event.key==="Enter")&&(event.preventDefault(),this.handleEdit()),(event.code==="Escape"||event.key==="Escape")&&(event.preventDefault(),this.handleCancelEdit()));}handleEdit(){let{handleUpdateValue,originalValue,logger:logger4,onSubmitValueParser,keyPath}=this.props,{inputRef,name,deep}=this.state;if(!inputRef)return;let newValue=onSubmitValueParser(!0,keyPath,deep,name,inputRef.value);handleUpdateValue({value:newValue,key:name}).then(()=>{isComponentWillChange(originalValue,newValue)||this.handleCancelEdit();}).catch(logger4.error);}handleEditMode(){this.setState({editEnabled:!0});}refInput(node){this.state.inputRef=node;}handleCancelEdit(){this.setState({editEnabled:!1});}render(){let{name,value:value2,editEnabled,keyPath,deep}=this.state,{handleRemove,originalValue,readOnly,dataType,getStyle,editButtonElement,cancelButtonElement,inputElementGenerator,minusMenuElement,keyPath:comeFromKeyPath}=this.props,style=getStyle(name,originalValue,keyPath,deep,dataType),isReadOnly=readOnly(name,originalValue,keyPath,deep,dataType),isEditing=editEnabled&&!isReadOnly,inputElement=inputElementGenerator(VALUE,comeFromKeyPath,deep,name,originalValue,dataType),editButtonElementLayout=(0,react.cloneElement)(editButtonElement,{onClick:this.handleEdit}),cancelButtonElementLayout=(0,react.cloneElement)(cancelButtonElement,{onClick:this.handleCancelEdit}),inputElementLayout=(0,react.cloneElement)(inputElement,{ref:this.refInput,defaultValue:JSON.stringify(originalValue)}),minusMenuLayout=(0,react.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:style.minus});return react.createElement("li",{className:"rejt-value-node",style:style.li},react.createElement("span",{className:"rejt-name",style:style.name},name," : "),isEditing?react.createElement("span",{className:"rejt-edit-form",style:style.editForm},inputElementLayout," ",cancelButtonElementLayout,editButtonElementLayout):react.createElement("span",{className:"rejt-value",style:style.value,onClick:isReadOnly?null:this.handleEditMode},String(value2)),!isReadOnly&&!isEditing&&minusMenuLayout)}};JsonValue.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:react.createElement("button",null,"e"),cancelButtonElement:react.createElement("button",null,"c"),minusMenuElement:react.createElement("span",null," - ")};var object={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},array={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},value={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}};function parse3(string){let result=string;if(result.indexOf("function")===0)return (0, eval)(`(${result})`);try{result=JSON.parse(string);}catch{}return result}var JsonTree=class extends react.Component{constructor(props){super(props),this.state={data:props.data,rootName:props.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this);}static getDerivedStateFromProps(props,state){return props.data!==state.data||props.rootName!==state.rootName?{data:props.data,rootName:props.rootName}:null}onUpdate(key,data){this.setState({data}),this.props.onFullyUpdate(data);}removeRoot(){this.onUpdate(null,null);}render(){let{data,rootName}=this.state,{isCollapsed,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElement,textareaElement,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser,fallback=null}=this.props,dataType=getObjectType(data),readOnlyFunction=readOnly;getObjectType(readOnly)==="Boolean"&&(readOnlyFunction=()=>readOnly);let inputElementFunction=inputElement;inputElement&&getObjectType(inputElement)!=="Function"&&(inputElementFunction=()=>inputElement);let textareaElementFunction=textareaElement;return textareaElement&&getObjectType(textareaElement)!=="Function"&&(textareaElementFunction=()=>textareaElement),dataType==="Object"||dataType==="Array"?react.createElement("div",{className:"rejt-tree"},react.createElement(JsonNode,{data,name:rootName,deep:-1,isCollapsed,onUpdate:this.onUpdate,onDeltaUpdate,readOnly:readOnlyFunction,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator:inputElementFunction,textareaElementGenerator:textareaElementFunction,minusMenuElement,plusMenuElement,handleRemove:this.removeRoot,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser})):fallback}};JsonTree.defaultProps={rootName:"root",isCollapsed:(keyPath,deep)=>deep!==-1,getStyle:(keyName,data,keyPath,deep,dataType)=>{switch(dataType){case"Object":case"Error":return object;case"Array":return array;default:return value}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(isEditMode,keyPath,deep,name,rawValue)=>parse3(rawValue),inputElement:()=>react.createElement("input",null),textareaElement:()=>react.createElement("textarea",null),fallback:null};var {window:globalWindow2}=external_STORYBOOK_MODULE_GLOBAL_.global,Wrapper5=dist/* styled */.I4.div(({theme})=>({position:"relative",display:"flex",".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:theme.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:theme.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:theme.color.lighter,borderColor:theme.appBorderColor}})),Button=dist/* styled */.I4.button(({theme,primary})=>({border:0,height:20,margin:1,borderRadius:4,background:primary?theme.color.secondary:"transparent",color:primary?theme.color.lightest:theme.color.dark,fontWeight:primary?"bold":"normal",cursor:"pointer",order:primary?"initial":9})),ActionIcon=(0,dist/* styled */.I4)(components_dist/* Icons */.FI)(({theme,icon,disabled})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:disabled?"not-allowed":"pointer",color:theme.textMutedColor,"&:hover":disabled?{}:{color:icon==="subtract"?theme.color.negative:theme.color.ancillary},"svg + &":{marginLeft:0}})),Input=dist/* styled */.I4.input(({theme,placeholder})=>({outline:0,margin:placeholder?1:"1px 0",padding:"3px 4px",color:theme.color.defaultText,background:theme.background.app,border:`1px solid ${theme.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:placeholder==="Key"?80:120,"&:focus":{border:`1px solid ${theme.color.secondary}`}})),RawButton=(0,dist/* styled */.I4)(components_dist/* IconButton */.K0)(({theme})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:theme.background.bar,border:`1px solid ${theme.appBorderColor}`,borderRadius:3,color:theme.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),RawInput=(0,dist/* styled */.I4)(components_dist/* Form */.lV.Textarea)(({theme})=>({flex:1,padding:"7px 6px",fontFamily:theme.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:theme.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),ENTER_EVENT={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},dispatchEnterKey=event=>{event.currentTarget.dispatchEvent(new globalWindow2.KeyboardEvent("keydown",ENTER_EVENT));},selectValue=event=>{event.currentTarget.select();},getCustomStyleFunction=theme=>()=>({name:{color:theme.color.secondary},collapsed:{color:theme.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),ObjectControl=({name,value:value2,onChange})=>{let theme=(0,dist/* useTheme */.DP)(),data=(0,react.useMemo)(()=>value2&&cloneDeep_default()(value2),[value2]),hasData=data!=null,[showRaw,setShowRaw]=(0,react.useState)(!hasData),[parseError,setParseError]=(0,react.useState)(null),updateRaw=(0,react.useCallback)(raw=>{try{raw&&onChange(JSON.parse(raw)),setParseError(void 0);}catch(e){setParseError(e);}},[onChange]),[forceVisible,setForceVisible]=(0,react.useState)(!1),onForceVisible=(0,react.useCallback)(()=>{onChange({}),setForceVisible(!0);},[setForceVisible]),htmlElRef=(0,react.useRef)(null);if((0,react.useEffect)(()=>{forceVisible&&htmlElRef.current&&htmlElRef.current.select();},[forceVisible]),!hasData)return react.createElement(components_dist/* Form */.lV.Button,{id:(0,chunk_GWAJ4KRU/* getControlSetterButtonId */.Y)(name),onClick:onForceVisible},"Set object");let rawJSONForm=react.createElement(RawInput,{ref:htmlElRef,id:(0,chunk_GWAJ4KRU/* getControlId */.Z)(name),name,defaultValue:value2===null?"":JSON.stringify(value2,null,2),onBlur:event=>updateRaw(event.target.value),placeholder:"Edit JSON string...",autoFocus:forceVisible,valid:parseError?"error":null});return react.createElement(Wrapper5,null,["Object","Array"].includes(getObjectType(data))&&react.createElement(RawButton,{href:"#",onClick:e=>{e.preventDefault(),setShowRaw(v=>!v);}},react.createElement(components_dist/* Icons */.FI,{icon:showRaw?"eyeclose":"eye"}),react.createElement("span",null,"RAW")),showRaw?rawJSONForm:react.createElement(JsonTree,{data,rootName:name,onFullyUpdate:onChange,getStyle:getCustomStyleFunction(theme),cancelButtonElement:react.createElement(Button,{type:"button"},"Cancel"),editButtonElement:react.createElement(Button,{type:"submit"},"Save"),addButtonElement:react.createElement(Button,{type:"submit",primary:!0},"Save"),plusMenuElement:react.createElement(ActionIcon,{icon:"add"}),minusMenuElement:react.createElement(ActionIcon,{icon:"subtract"}),inputElement:(_,__,___,key)=>key?react.createElement(Input,{onFocus:selectValue,onBlur:dispatchEnterKey}):react.createElement(Input,null),fallback:rawJSONForm}))};var RangeInput=dist/* styled */.I4.input(({theme,min,max,value:value2})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:theme.base==="light"?`linear-gradient(to right, - ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, - ${curriedDarken$1(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, - ${curriedDarken$1(.02,theme.input.background)} 100%)`:`linear-gradient(to right, - ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, - ${curriedLighten$1(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, - ${curriedLighten$1(.02,theme.input.background)} 100%)`,boxShadow:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${rgba(theme.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${rgba(theme.appBorderColor,.2)}`,cursor:"grab",appearance:"none",background:`${theme.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${curriedDarken$1(.05,theme.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${theme.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:rgba(theme.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:theme.color.secondary,boxShadow:`0 0px 5px 0px ${theme.color.secondary}`}},"&::-moz-range-track":{background:theme.base==="light"?`linear-gradient(to right, - ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, - ${curriedDarken$1(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, - ${curriedDarken$1(.02,theme.input.background)} 100%)`:`linear-gradient(to right, - ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, - ${curriedLighten$1(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, - ${curriedLighten$1(.02,theme.input.background)} 100%)`,boxShadow:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${rgba(theme.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${rgba(theme.appBorderColor,.2)}`,cursor:"grab",background:`${theme.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${curriedDarken$1(.05,theme.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${theme.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:theme.base==="light"?`linear-gradient(to right, - ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, - ${curriedDarken$1(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, - ${curriedDarken$1(.02,theme.input.background)} 100%)`:`linear-gradient(to right, - ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, - ${curriedLighten$1(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, - ${curriedLighten$1(.02,theme.input.background)} 100%)`,boxShadow:`${theme.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${theme.input.background}`,border:`1px solid ${rgba(theme.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),RangeLabel=dist/* styled */.I4.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),RangeCurrentAndMaxLabel=(0,dist/* styled */.I4)(RangeLabel)(({numberOFDecimalsPlaces,max})=>({width:`${numberOFDecimalsPlaces+max.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),RangeWrapper=dist/* styled */.I4.div({display:"flex",alignItems:"center",width:"100%"});function getNumberOfDecimalPlaces(number){let match=number.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return match?Math.max(0,(match[1]?match[1].length:0)-(match[2]?+match[2]:0)):0}var RangeControl=({name,value:value2,onChange,min=0,max=100,step=1,onBlur,onFocus})=>{let handleChange=event=>{onChange(parse2(event.target.value));},hasValue=value2!==void 0,numberOFDecimalsPlaces=(0,react.useMemo)(()=>getNumberOfDecimalPlaces(step),[step]);return react.createElement(RangeWrapper,null,react.createElement(RangeLabel,null,min),react.createElement(RangeInput,{id:(0,chunk_GWAJ4KRU/* getControlId */.Z)(name),type:"range",onChange:handleChange,name,value:value2,min,max,step,onFocus,onBlur}),react.createElement(RangeCurrentAndMaxLabel,{numberOFDecimalsPlaces,max},hasValue?value2.toFixed(numberOFDecimalsPlaces):"--"," / ",max))};var Wrapper6=dist/* styled */.I4.label({display:"flex"}),MaxLength=dist/* styled */.I4.div(({isMaxed})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:isMaxed?"red":void 0})),TextControl=({name,value:value2,onChange,onFocus,onBlur,maxLength})=>{let handleChange=event=>{onChange(event.target.value);},[forceVisible,setForceVisible]=(0,react.useState)(!1),onForceVisible=(0,react.useCallback)(()=>{onChange(""),setForceVisible(!0);},[setForceVisible]);if(value2===void 0)return react.createElement(components_dist/* Form */.lV.Button,{id:(0,chunk_GWAJ4KRU/* getControlSetterButtonId */.Y)(name),onClick:onForceVisible},"Set string");let isValid=typeof value2=="string";return react.createElement(Wrapper6,null,react.createElement(components_dist/* Form */.lV.Textarea,{id:(0,chunk_GWAJ4KRU/* getControlId */.Z)(name),maxLength,onChange:handleChange,size:"flex",placeholder:"Edit string...",autoFocus:forceVisible,valid:isValid?null:"error",name,value:isValid?value2:"",onFocus,onBlur}),maxLength&&react.createElement(MaxLength,{isMaxed:value2?.length===maxLength},value2?.length??0," / ",maxLength))};var FileInput=(0,dist/* styled */.I4)(components_dist/* Form */.lV.Input)({padding:10});function revokeOldUrls(urls){urls.forEach(url=>{url.startsWith("blob:")&&URL.revokeObjectURL(url);});}var FilesControl=({onChange,name,accept="image/*",value:value2})=>{let inputElement=(0,react.useRef)(null);function handleFileChange(e){if(!e.target.files)return;let fileUrls=Array.from(e.target.files).map(file=>URL.createObjectURL(file));onChange(fileUrls),revokeOldUrls(value2);}return (0,react.useEffect)(()=>{value2==null&&inputElement.current&&(inputElement.current.value=null);},[value2,name]),react.createElement(FileInput,{ref:inputElement,id:(0,chunk_GWAJ4KRU/* getControlId */.Z)(name),type:"file",name,multiple:!0,onChange:handleFileChange,accept,size:"flex"})};var LazyColorControl=(0,react.lazy)(()=>__webpack_require__.e(/* import() */ 5611).then(__webpack_require__.bind(__webpack_require__, "../../../node_modules/@storybook/blocks/dist/Color-6VNJS4EI.mjs"))),ColorControl=props=>react.createElement(react.Suspense,{fallback:react.createElement("div",null)},react.createElement(LazyColorControl,{...props}));var Controls2={array:ObjectControl,object:ObjectControl,boolean:BooleanControl,color:ColorControl,date:DateControl,number:NumberControl,check:OptionsControl,"inline-check":OptionsControl,radio:OptionsControl,"inline-radio":OptionsControl,select:OptionsControl,"multi-select":OptionsControl,range:RangeControl,text:TextControl,file:FilesControl},NoControl=()=>react.createElement(react.Fragment,null,"-"),ArgControl=({row,arg,updateArgs,isHovered})=>{let{key,control}=row,[isFocused,setFocused]=(0,react.useState)(!1),[boxedValue,setBoxedValue]=(0,react.useState)({value:arg});(0,react.useEffect)(()=>{isFocused||setBoxedValue({value:arg});},[isFocused,arg]);let onChange=(0,react.useCallback)(argVal=>(setBoxedValue({value:argVal}),updateArgs({[key]:argVal}),argVal),[updateArgs,key]),onBlur=(0,react.useCallback)(()=>setFocused(!1),[]),onFocus=(0,react.useCallback)(()=>setFocused(!0),[]);if(!control||control.disable)return isHovered?react.createElement(components_dist/* Link */.N_,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):react.createElement(NoControl,null);let props={name:key,argType:row,value:boxedValue.value,onChange,onBlur,onFocus},Control=Controls2[control.type]||NoControl;return react.createElement(Control,{...props,...control,controlType:control.type})};var Name=dist/* styled */.I4.span({fontWeight:"bold"}),Required=dist/* styled */.I4.span(({theme})=>({color:theme.color.negative,fontFamily:theme.typography.fonts.mono,cursor:"help"})),Description=dist/* styled */.I4.div(({theme})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:theme.color.secondary}},code:{...(0,components_dist/* codeCommon */.zb)({theme}),fontSize:12,fontFamily:theme.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),Type=dist/* styled */.I4.div(({theme,hasDescription})=>({color:theme.base==="light"?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.2,theme.color.defaultText),marginTop:hasDescription?4:0})),TypeWithJsDoc=dist/* styled */.I4.div(({theme,hasDescription})=>({color:theme.base==="light"?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.2,theme.color.defaultText),marginTop:hasDescription?12:0,marginBottom:12})),StyledTd=dist/* styled */.I4.td(({theme,expandable})=>({paddingLeft:expandable?"40px !important":"20px !important"})),ArgRow=props=>{let[isHovered,setIsHovered]=(0,react.useState)(!1),{row,updateArgs,compact,expandable,initialExpandedArgs}=props,{name,description}=row,table=row.table||{},type=table.type||row.type,defaultValue=table.defaultValue||row.defaultValue,required=row.type?.required,hasDescription=description!=null&&description!=="";return react.createElement("tr",{onMouseEnter:()=>setIsHovered(!0),onMouseLeave:()=>setIsHovered(!1)},react.createElement(StyledTd,{expandable},react.createElement(Name,null,name),required?react.createElement(Required,{title:"Required"},"*"):null),compact?null:react.createElement("td",null,hasDescription&&react.createElement(Description,null,react.createElement(index_modern,null,description)),table.jsDocTags!=null?react.createElement(react.Fragment,null,react.createElement(TypeWithJsDoc,{hasDescription},react.createElement(ArgValue,{value:type,initialExpandedArgs})),react.createElement(ArgJsDoc,{tags:table.jsDocTags})):react.createElement(Type,{hasDescription},react.createElement(ArgValue,{value:type,initialExpandedArgs}))),compact?null:react.createElement("td",null,react.createElement(ArgValue,{value:defaultValue,initialExpandedArgs})),updateArgs?react.createElement("td",null,react.createElement(ArgControl,{...props,isHovered})):null)};var ExpanderIcon=(0,dist/* styled */.I4)(components_dist/* Icons */.FI)(({theme})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:theme.base==="light"?curriedTransparentize$1(.25,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),border:"none",display:"inline-block"})),FlexWrapper=dist/* styled */.I4.span(({theme})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),Section=dist/* styled */.I4.td(({theme})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:theme.typography.weight.bold,fontSize:theme.typography.size.s1-1,color:theme.base==="light"?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText),background:`${theme.background.app} !important`,"& ~ td":{background:`${theme.background.app} !important`}})),Subsection=dist/* styled */.I4.td(({theme})=>({position:"relative",fontWeight:theme.typography.weight.bold,fontSize:theme.typography.size.s2-1,background:theme.background.app})),StyledTd2=dist/* styled */.I4.td(()=>({position:"relative"})),StyledTr=dist/* styled */.I4.tr(({theme})=>({"&:hover > td":{backgroundColor:`${curriedLighten$1(.005,theme.background.app)} !important`,boxShadow:`${theme.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),ClickIntercept=dist/* styled */.I4.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),SectionRow=({level="section",label,children,initialExpanded=!0,colSpan=3})=>{let[expanded,setExpanded]=(0,react.useState)(initialExpanded),Level=level==="subsection"?Subsection:Section,itemCount=children?.length||0,caption=level==="subsection"?`${itemCount} item${itemCount!==1?"s":""}`:"",icon=expanded?"arrowdown":"arrowright",helperText=`${expanded?"Hide":"Show"} ${level==="subsection"?itemCount:label} item${itemCount!==1?"s":""}`;return react.createElement(react.Fragment,null,react.createElement(StyledTr,{title:helperText},react.createElement(Level,{colSpan:1},react.createElement(ClickIntercept,{onClick:e=>setExpanded(!expanded),tabIndex:0},helperText),react.createElement(FlexWrapper,null,react.createElement(ExpanderIcon,{icon}),label)),react.createElement(StyledTd2,{colSpan:colSpan-1},react.createElement(ClickIntercept,{onClick:e=>setExpanded(!expanded),tabIndex:-1,style:{outline:"none"}},helperText),expanded?null:caption)),expanded?children:null)};var Row=dist/* styled */.I4.div(({theme})=>({display:"flex",gap:16,borderBottom:`1px solid ${theme.appBorderColor}`,"&:last-child":{borderBottom:0}})),Column=dist/* styled */.I4.div(({numColumn})=>({display:"flex",flexDirection:"column",flex:numColumn||1,gap:5,padding:"12px 20px"})),SkeletonText=dist/* styled */.I4.div(({theme,width,height})=>({animation:`${theme.animation.glow} 1.5s ease-in-out infinite`,background:theme.appBorderColor,width:width||"100%",height:height||16,borderRadius:3})),columnWidth=[2,4,2,2],Skeleton=()=>react.createElement(react.Fragment,null,react.createElement(Row,null,react.createElement(Column,{numColumn:columnWidth[0]},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{numColumn:columnWidth[1]},react.createElement(SkeletonText,{width:"30%"})),react.createElement(Column,{numColumn:columnWidth[2]},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{numColumn:columnWidth[3]},react.createElement(SkeletonText,{width:"60%"}))),react.createElement(Row,null,react.createElement(Column,{numColumn:columnWidth[0]},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{numColumn:columnWidth[1]},react.createElement(SkeletonText,{width:"80%"}),react.createElement(SkeletonText,{width:"30%"})),react.createElement(Column,{numColumn:columnWidth[2]},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{numColumn:columnWidth[3]},react.createElement(SkeletonText,{width:"60%"}))),react.createElement(Row,null,react.createElement(Column,{numColumn:columnWidth[0]},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{numColumn:columnWidth[1]},react.createElement(SkeletonText,{width:"80%"}),react.createElement(SkeletonText,{width:"30%"})),react.createElement(Column,{numColumn:columnWidth[2]},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{numColumn:columnWidth[3]},react.createElement(SkeletonText,{width:"60%"}))),react.createElement(Row,null,react.createElement(Column,{numColumn:columnWidth[0]},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{numColumn:columnWidth[1]},react.createElement(SkeletonText,{width:"80%"}),react.createElement(SkeletonText,{width:"30%"})),react.createElement(Column,{numColumn:columnWidth[2]},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{numColumn:columnWidth[3]},react.createElement(SkeletonText,{width:"60%"}))));var Wrapper7=dist/* styled */.I4.div(({inAddonPanel,theme})=>({height:inAddonPanel?"100%":"auto",display:"flex",border:inAddonPanel?"none":`1px solid ${theme.appBorderColor}`,borderRadius:inAddonPanel?0:theme.appBorderRadius,padding:inAddonPanel?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:theme.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),Content=dist/* styled */.I4.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),Title2=dist/* styled */.I4.div(({theme})=>({fontWeight:theme.typography.weight.bold,fontSize:theme.typography.size.s2-1,textAlign:"center",color:theme.textColor})),Description2=dist/* styled */.I4.div(({theme})=>({fontWeight:theme.typography.weight.regular,fontSize:theme.typography.size.s2-1,textAlign:"center",color:theme.textMutedColor})),Links=dist/* styled */.I4.div(({theme})=>({display:"flex",fontSize:theme.typography.size.s2-1,gap:25})),Divider=dist/* styled */.I4.div(({theme})=>({width:1,height:16,backgroundColor:theme.appBorderColor})),Empty=({inAddonPanel})=>{let[isLoading,setIsLoading]=(0,react.useState)(!0);return (0,react.useEffect)(()=>{let load=setTimeout(()=>{setIsLoading(!1);},100);return ()=>clearTimeout(load)},[]),isLoading?null:react.createElement(Wrapper7,{inAddonPanel},react.createElement(Content,null,react.createElement(Title2,null,inAddonPanel?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated"),react.createElement(Description2,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically.")),react.createElement(Links,null,inAddonPanel&&react.createElement(react.Fragment,null,react.createElement(components_dist/* Link */.N_,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},react.createElement(components_dist/* Icons */.FI,{icon:"video"})," Watch 5m video"),react.createElement(Divider,null),react.createElement(components_dist/* Link */.N_,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Read docs")),!inAddonPanel&&react.createElement(components_dist/* Link */.N_,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Learn how to set that up")))};var TableWrapper=dist/* styled */.I4.table(({theme,compact,inAddonPanel})=>({"&&":{borderSpacing:0,color:theme.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:theme.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:inAddonPanel?0:25,marginBottom:inAddonPanel?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...compact?null:{width:"35%"}},"td:nth-of-type(3)":{...compact?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...compact?null:{width:"25%"}},th:{color:theme.base==="light"?curriedTransparentize$1(.25,theme.color.defaultText):curriedTransparentize$1(.45,theme.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:inAddonPanel?0:1,marginRight:inAddonPanel?0:1,tbody:{...inAddonPanel?null:{filter:theme.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:theme.background.content,borderTop:`1px solid ${theme.appBorderColor}`},...inAddonPanel?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${theme.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${theme.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${theme.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${theme.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:theme.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:theme.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:theme.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:theme.appBorderRadius}}}}})),StyledIconButton=(0,dist/* styled */.I4)(components_dist/* IconButton */.K0)(({theme})=>({color:theme.barTextColor,margin:"-4px -12px -4px 0"})),ControlHeadingWrapper=dist/* styled */.I4.span({display:"flex",justifyContent:"space-between"});var sortFns={alpha:(a,b)=>a.name.localeCompare(b.name),requiredFirst:(a,b)=>+!!b.type?.required-+!!a.type?.required||a.name.localeCompare(b.name),none:void 0},groupRows=(rows,sort)=>{let sections={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!rows)return sections;Object.entries(rows).forEach(([key,row])=>{let{category,subcategory}=row?.table||{};if(category){let section=sections.sections[category]||{ungrouped:[],subsections:{}};if(!subcategory)section.ungrouped.push({key,...row});else {let subsection=section.subsections[subcategory]||[];subsection.push({key,...row}),section.subsections[subcategory]=subsection;}sections.sections[category]=section;}else if(subcategory){let subsection=sections.ungroupedSubsections[subcategory]||[];subsection.push({key,...row}),sections.ungroupedSubsections[subcategory]=subsection;}else sections.ungrouped.push({key,...row});});let sortFn=sortFns[sort],sortSubsection=record=>sortFn?Object.keys(record).reduce((acc,cur)=>({...acc,[cur]:record[cur].sort(sortFn)}),{}):record;return {ungrouped:sections.ungrouped.sort(sortFn),ungroupedSubsections:sortSubsection(sections.ungroupedSubsections),sections:Object.keys(sections.sections).reduce((acc,cur)=>({...acc,[cur]:{ungrouped:sections.sections[cur].ungrouped.sort(sortFn),subsections:sortSubsection(sections.sections[cur].subsections)}}),{})}},safeIncludeConditionalArg=(row,args,globals)=>{try{return (0,csf_dist/* includeConditionalArg */.hX)(row,args,globals)}catch(err){return external_STORYBOOK_MODULE_CLIENT_LOGGER_.once.warn(err.message),!1}},ArgsTable=props=>{let{updateArgs,resetArgs,compact,inAddonPanel,initialExpandedArgs,sort="none",isLoading}=props;if("error"in props){let{error}=props;return react.createElement(EmptyBlock,null,error,"\xA0",react.createElement(components_dist/* Link */.N_,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},"Read the docs"))}if(isLoading)return react.createElement(Skeleton,null);let{rows,args,globals}="rows"in props&&props,groups=groupRows(pickBy_default()(rows,row=>!row?.table?.disable&&safeIncludeConditionalArg(row,args||{},globals||{})),sort),hasNoUngrouped=groups.ungrouped.length===0,hasNoSections=Object.entries(groups.sections).length===0,hasNoUngroupedSubsections=Object.entries(groups.ungroupedSubsections).length===0;if(hasNoUngrouped&&hasNoSections&&hasNoUngroupedSubsections)return react.createElement(Empty,{inAddonPanel});let colSpan=1;updateArgs&&(colSpan+=1),compact||(colSpan+=2);let expandable=Object.keys(groups.sections).length>0,common={updateArgs,compact,inAddonPanel,initialExpandedArgs};return react.createElement(components_dist/* ResetWrapper */.dL,null,react.createElement(TableWrapper,{compact,inAddonPanel,className:"docblock-argstable sb-unstyled"},react.createElement("thead",{className:"docblock-argstable-head"},react.createElement("tr",null,react.createElement("th",null,react.createElement("span",null,"Name")),compact?null:react.createElement("th",null,react.createElement("span",null,"Description")),compact?null:react.createElement("th",null,react.createElement("span",null,"Default")),updateArgs?react.createElement("th",null,react.createElement(ControlHeadingWrapper,null,"Control"," ",!isLoading&&resetArgs&&react.createElement(StyledIconButton,{onClick:()=>resetArgs(),title:"Reset controls"},react.createElement(components_dist/* Icons */.FI,{icon:"undo","aria-hidden":!0})))):null)),react.createElement("tbody",{className:"docblock-argstable-body"},groups.ungrouped.map(row=>react.createElement(ArgRow,{key:row.key,row,arg:args&&args[row.key],...common})),Object.entries(groups.ungroupedSubsections).map(([subcategory,subsection])=>react.createElement(SectionRow,{key:subcategory,label:subcategory,level:"subsection",colSpan},subsection.map(row=>react.createElement(ArgRow,{key:row.key,row,arg:args&&args[row.key],expandable,...common})))),Object.entries(groups.sections).map(([category,section])=>react.createElement(SectionRow,{key:category,label:category,level:"section",colSpan},section.ungrouped.map(row=>react.createElement(ArgRow,{key:row.key,row,arg:args&&args[row.key],...common})),Object.entries(section.subsections).map(([subcategory,subsection])=>react.createElement(SectionRow,{key:subcategory,label:subcategory,level:"subsection",colSpan},subsection.map(row=>react.createElement(ArgRow,{key:row.key,row,arg:args&&args[row.key],expandable,...common})))))))))};var TabbedArgsTable=({tabs,...props})=>{let entries=Object.entries(tabs);return entries.length===1?react.createElement(ArgsTable,{...entries[0][1],...props}):react.createElement(components_dist/* TabsState */._j,null,entries.map(entry=>{let[label,table]=entry,id=`prop_table_div_${label}`;return react.createElement("div",{key:id,id,title:label},({active})=>active?react.createElement(ArgsTable,{key:`prop_table_${label}`,...table,...props}):null)}))};var Label4=dist/* styled */.I4.div(({theme})=>({marginRight:30,fontSize:`${theme.typography.size.s1}px`,color:theme.base==="light"?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)})),Sample=dist/* styled */.I4.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),TypeSpecimen=dist/* styled */.I4.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}}),Wrapper8=dist/* styled */.I4.div(components_dist/* withReset */.YV,({theme})=>({...getBlockBackgroundStyle(theme),margin:"25px 0 40px",padding:"30px 20px"})),Typeset=({fontFamily,fontSizes,fontWeight,sampleText,...props})=>React17.createElement(Wrapper8,{...props,className:"docblock-typeset sb-unstyled"},fontSizes.map(size=>React17.createElement(TypeSpecimen,{key:size},React17.createElement(Label4,null,size),React17.createElement(Sample,{style:{fontFamily,fontSize:size,fontWeight,lineHeight:1.2}},sampleText||"Was he a beast if music could move him so?"))));var ItemTitle=dist/* styled */.I4.div(({theme})=>({fontWeight:theme.typography.weight.bold,color:theme.color.defaultText})),ItemSubtitle=dist/* styled */.I4.div(({theme})=>({color:theme.base==="light"?curriedTransparentize$1(.2,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)})),ItemDescription=dist/* styled */.I4.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5}),SwatchLabel=dist/* styled */.I4.div(({theme})=>({flex:1,textAlign:"center",fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,lineHeight:1,overflow:"hidden",color:theme.base==="light"?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}})),SwatchLabels=dist/* styled */.I4.div({display:"flex",flexDirection:"row"}),Swatch=dist/* styled */.I4.div(({background})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background,content:'""'}})),SwatchColors=dist/* styled */.I4.div(({theme})=>({...getBlockBackgroundStyle(theme),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"})),SwatchSpecimen=dist/* styled */.I4.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30}),Swatches=dist/* styled */.I4.div({flex:1,display:"flex",flexDirection:"row"}),Item=dist/* styled */.I4.div({display:"flex",alignItems:"flex-start"}),ListName=dist/* styled */.I4.div({flex:"0 0 30%"}),ListSwatches=dist/* styled */.I4.div({flex:1}),ListHeading=dist/* styled */.I4.div(({theme})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:theme.typography.weight.bold,color:theme.base==="light"?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)})),List=dist/* styled */.I4.div(({theme})=>({fontSize:theme.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));function renderSwatch(color,index){return React17.createElement(Swatch,{key:`${color}-${index}`,title:color,background:color})}function renderSwatchLabel(color,index,colorDescription){return React17.createElement(SwatchLabel,{key:`${color}-${index}`,title:color},React17.createElement("div",null,color,colorDescription&&React17.createElement("span",null,colorDescription)))}function renderSwatchSpecimen(colors){return Array.isArray(colors)?React17.createElement(SwatchSpecimen,null,React17.createElement(SwatchColors,null,colors.map((color,index)=>renderSwatch(color,index))),React17.createElement(SwatchLabels,null,colors.map((color,index)=>renderSwatchLabel(color,index)))):React17.createElement(SwatchSpecimen,null,React17.createElement(SwatchColors,null,Object.values(colors).map((color,index)=>renderSwatch(color,index))),React17.createElement(SwatchLabels,null,Object.keys(colors).map((color,index)=>renderSwatchLabel(color,index,colors[color]))))}var ColorItem=({title,subtitle,colors})=>React17.createElement(Item,null,React17.createElement(ItemDescription,null,React17.createElement(ItemTitle,null,title),React17.createElement(ItemSubtitle,null,subtitle)),React17.createElement(Swatches,null,renderSwatchSpecimen(colors))),ColorPalette=({children,...props})=>React17.createElement(ResetWrapper,null,React17.createElement(List,{...props,className:"docblock-colorpalette sb-unstyled"},React17.createElement(ListHeading,null,React17.createElement(ListName,null,"Name"),React17.createElement(ListSwatches,null,"Swatches")),children));var ItemLabel=dist/* styled */.I4.div(({theme})=>({fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s2,color:theme.color.defaultText,marginLeft:10,lineHeight:1.2})),ItemSpecimen=dist/* styled */.I4.div(({theme})=>({...getBlockBackgroundStyle(theme),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}})),Item2=dist/* styled */.I4.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"}),List2=dist/* styled */.I4.div({display:"flex",flexFlow:"row wrap"}),IconItem=({name,children})=>React17.createElement(Item2,null,React17.createElement(ItemSpecimen,null,children),React17.createElement(ItemLabel,null,name)),IconGallery=({children,...props})=>React17.createElement(ResetWrapper,null,React17.createElement(List2,{...props,className:"docblock-icongallery sb-unstyled"},children));var anchorBlockIdFromId=storyId=>`anchor--${storyId}`,Anchor=({storyId,children})=>react.createElement("div",{id:anchorBlockIdFromId(storyId),className:"sb-anchor"},children);external_STORYBOOK_MODULE_GLOBAL_.global&&external_STORYBOOK_MODULE_GLOBAL_.global.__DOCS_CONTEXT__===void 0&&(external_STORYBOOK_MODULE_GLOBAL_.global.__DOCS_CONTEXT__=(0,react.createContext)(null),external_STORYBOOK_MODULE_GLOBAL_.global.__DOCS_CONTEXT__.displayName="DocsContext");var DocsContext=external_STORYBOOK_MODULE_GLOBAL_.global?external_STORYBOOK_MODULE_GLOBAL_.global.__DOCS_CONTEXT__:(0,react.createContext)(null);var useOf=(moduleExportOrType,validTypes)=>(0,react.useContext)(DocsContext).resolveOf(moduleExportOrType,validTypes);function extractComponentArgTypes(component,parameters){let{extractArgTypes}=parameters.docs||{};if(!extractArgTypes)throw new Error("Args unsupported. See Args documentation for your framework.");return extractArgTypes(component)}function getArgTypesFromResolved(resolved,props){if(resolved.type==="component"){let{component,projectAnnotations:{parameters:parameters2}}=resolved;return {argTypes:extractComponentArgTypes(component,parameters2),parameters:parameters2}}if(resolved.type==="meta"){let{preparedMeta:{argTypes:argTypes2,parameters:parameters2}}=resolved;return {argTypes:argTypes2,parameters:parameters2}}let{story:{argTypes,parameters}}=resolved;return {argTypes,parameters}}var ArgTypes=props=>{let{of}=props;if("of"in props&&of===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let resolved=useOf(of||"meta"),{argTypes,parameters}=getArgTypesFromResolved(resolved),argTypesParameters=parameters.docs?.argTypes||{},include=props.include??argTypesParameters.include,exclude=props.exclude??argTypesParameters.exclude,sort=props.sort??argTypesParameters.sort,filteredArgTypes=(0,external_STORYBOOK_MODULE_PREVIEW_API_.filterArgTypes)(argTypes,include,exclude);return react.createElement(ArgsTable,{rows:filteredArgTypes,sort})};var PRIMARY_STORY="^";var titleCase=str2=>str2.split("-").map(part=>part.charAt(0).toUpperCase()+part.slice(1)).join(""),getComponentName=component=>{if(component)return typeof component=="string"?component.includes("-")?titleCase(component):component:component.__docgenInfo&&component.__docgenInfo.displayName?component.__docgenInfo.displayName:component.name};function scrollToElement(element,block="start"){element.scrollIntoView({behavior:"smooth",block,inline:"nearest"});}function useStory(storyId,context){let stories=useStories([storyId],context);return stories&&stories[0]}function useStories(storyIds,context){let[storiesById,setStories]=(0,react.useState)({});return (0,react.useEffect)(()=>{Promise.all(storyIds.map(async storyId=>{let story=await context.loadStory(storyId);setStories(current=>current[storyId]===story?current:{...current,[storyId]:story});}));}),storyIds.map(storyId=>{if(storiesById[storyId])return storiesById[storyId];try{return context.storyById(storyId)}catch{return null}})}var useArgs=(storyId,context)=>{let storyContext=context.getStoryContext(context.storyById()),[args,setArgs]=(0,react.useState)(storyContext.args);(0,react.useEffect)(()=>{let cb=changed=>{changed.storyId===storyId&&setArgs(changed.args);};return context.channel.on(external_STORYBOOK_MODULE_CORE_EVENTS_.STORY_ARGS_UPDATED,cb),()=>context.channel.off(external_STORYBOOK_MODULE_CORE_EVENTS_.STORY_ARGS_UPDATED,cb)},[storyId]);let updateArgs=(0,react.useCallback)(updatedArgs=>context.channel.emit(external_STORYBOOK_MODULE_CORE_EVENTS_.UPDATE_STORY_ARGS,{storyId,updatedArgs}),[storyId]),resetArgs=(0,react.useCallback)(argNames=>context.channel.emit(external_STORYBOOK_MODULE_CORE_EVENTS_.RESET_STORY_ARGS,{storyId,argNames}),[storyId]);return [args,updateArgs,resetArgs]},useGlobals=context=>{let storyContext=context.getStoryContext(context.storyById()),[globals,setGlobals]=(0,react.useState)(storyContext.globals);return (0,react.useEffect)(()=>{let cb=changed=>{setGlobals(changed.globals);};return context.channel.on(external_STORYBOOK_MODULE_CORE_EVENTS_.GLOBALS_UPDATED,cb),()=>context.channel.off(external_STORYBOOK_MODULE_CORE_EVENTS_.GLOBALS_UPDATED,cb)},[]),[globals]},extractComponentArgTypes2=(component,parameters,include,exclude)=>{let{extractArgTypes}=parameters.docs||{};if(!extractArgTypes)throw new Error("Args unsupported. See Args documentation for your framework.");let argTypes=extractArgTypes(component);return argTypes=(0,external_STORYBOOK_MODULE_PREVIEW_API_.filterArgTypes)(argTypes,include,exclude),argTypes},isShortcut=value2=>value2&&[PRIMARY_STORY].includes(value2),getComponent=(props={},component)=>{let{of}=props,{story}=props;if(isShortcut(of)||isShortcut(story))return component||null;if(!of)throw new Error("No component found.");return of},addComponentTabs=(tabs,components2,parameters,include,exclude,sort)=>({...tabs,...mapValues_default()(components2,comp=>({rows:extractComponentArgTypes2(comp,parameters,include,exclude),sort}))}),StoryTable=props=>{let context=(0,react.useContext)(DocsContext),{story:storyName,component,subcomponents,showComponent,include,exclude,sort}=props;try{let storyId;switch(storyName){case PRIMARY_STORY:{storyId=context.storyById().id;break}default:storyId=context.storyIdByName(storyName);}let story=useStory(storyId,context),[args,updateArgs,resetArgs]=useArgs(storyId,context),[globals]=useGlobals(context);if(!story)return react.createElement(ArgsTable,{isLoading:!0,updateArgs,resetArgs});let argTypes=(0,external_STORYBOOK_MODULE_PREVIEW_API_.filterArgTypes)(story.argTypes,include,exclude),mainLabel=getComponentName(component)||"Story",tabs={[mainLabel]:{rows:argTypes,args,globals,updateArgs,resetArgs}},storyHasArgsWithControls=argTypes&&Object.values(argTypes).find(v=>!!v?.control);if(storyHasArgsWithControls||(updateArgs=null,resetArgs=null,tabs={}),component&&(!storyHasArgsWithControls||showComponent)&&(tabs=addComponentTabs(tabs,{[mainLabel]:component},story.parameters,include,exclude)),subcomponents){if(Array.isArray(subcomponents))throw new Error("Unexpected subcomponents array. Expected an object whose keys are tab labels and whose values are components.");tabs=addComponentTabs(tabs,subcomponents,story.parameters,include,exclude);}return react.createElement(TabbedArgsTable,{tabs,sort})}catch(err){return react.createElement(ArgsTable,{error:err.message})}},ComponentsTable=props=>{let{components:components2,include,exclude,sort,parameters}=props,tabs=addComponentTabs({},components2,parameters,include,exclude);return react.createElement(TabbedArgsTable,{tabs,sort})},ArgsTable2=props=>{(0,external_STORYBOOK_MODULE_CLIENT_LOGGER_.deprecate)((0,esm/* default */.A)`The ArgsTable doc block is deprecated. Instead use the ArgTypes doc block for static tables or the Controls doc block for tables with controls. - - Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#argstable-block - `);let context=(0,react.useContext)(DocsContext),parameters,component,subcomponents;try{({parameters,component,subcomponents}=context.storyById());}catch{let{of}=props;if("of"in props&&of===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");({projectAnnotations:{parameters}}=context.resolveOf(of,["component"]));}let{include,exclude,components:components2,sort:sortProp}=props,{story:storyName}=props,sort=sortProp||parameters.controls?.sort,main=getComponent(props,component);if(storyName)return react.createElement(StoryTable,{...props,component:main,subcomponents,sort});if(!components2&&!subcomponents){let mainProps;try{mainProps={rows:extractComponentArgTypes2(main,parameters,include,exclude)};}catch(err){mainProps={error:err.message};}return react.createElement(ArgsTable,{...mainProps,sort})}if(components2)return react.createElement(ComponentsTable,{...props,components:components2,sort,parameters});let mainLabel=getComponentName(main);return react.createElement(ComponentsTable,{...props,components:{[mainLabel]:main,...subcomponents},sort,parameters})};ArgsTable2.defaultProps={of:PRIMARY_STORY};function argsHash(args){return (0,telejson_dist/* stringify */.As)(args)}var SourceContext=(0,react.createContext)({sources:{}}),UNKNOWN_ARGS_HASH="--unknown--",SourceContainer=({children,channel})=>{let[sources,setSources]=(0,react.useState)({});return (0,react.useEffect)(()=>{let handleSnippetRendered=(idOrEvent,inputSource=null,inputFormat=!1)=>{let{id,args=void 0,source,format:format2}=typeof idOrEvent=="string"?{id:idOrEvent,source:inputSource,format:inputFormat}:idOrEvent,hash=args?argsHash(args):UNKNOWN_ARGS_HASH;setSources(current=>({...current,[id]:{...current[id],[hash]:{code:source,format:format2}}}));};return channel.on(docs_tools_dist/* SNIPPET_RENDERED */.Op,handleSnippetRendered),()=>channel.off(docs_tools_dist/* SNIPPET_RENDERED */.Op,handleSnippetRendered)},[]),react.createElement(SourceContext.Provider,{value:{sources}},children)};var SourceState=(SourceState2=>(SourceState2.OPEN="open",SourceState2.CLOSED="closed",SourceState2.NONE="none",SourceState2))(SourceState||{}),getSourceState=stories=>{let states=stories.map(story=>story.parameters.docs?.source?.state).filter(Boolean);return states.length===0?"closed":states[0]},getStorySource=(storyId,args,sourceContext)=>{let{sources}=sourceContext,sourceMap=sources?.[storyId];return sourceMap?.[argsHash(args)]||sourceMap?.[UNKNOWN_ARGS_HASH]||{code:""}},getSnippet=({snippet,storyContext,typeFromProps,transformFromProps})=>{let{__isArgsStory:isArgsStory}=storyContext.parameters,sourceParameters=storyContext.parameters.docs?.source||{},type=typeFromProps||sourceParameters.type||docs_tools_dist/* SourceType */.Y1.AUTO;if(sourceParameters.code!==void 0)return sourceParameters.code;let code=type===docs_tools_dist/* SourceType */.Y1.DYNAMIC||type===docs_tools_dist/* SourceType */.Y1.AUTO&&snippet&&isArgsStory?snippet:sourceParameters.originalSource||"";return sourceParameters.transformSource&&(0,external_STORYBOOK_MODULE_CLIENT_LOGGER_.deprecate)((0,esm/* default */.A)`The \`transformSource\` parameter at \`parameters.docs.source.transformSource\` is deprecated, please use \`parameters.docs.source.transform\` instead. - - Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#source-block - `),storyContext.parameters.docs?.transformSource&&(0,external_STORYBOOK_MODULE_CLIENT_LOGGER_.deprecate)((0,esm/* default */.A)`The \`transformSource\` parameter at \`parameters.docs.transformSource\` is deprecated, please use \`parameters.docs.source.transform\` instead. - - Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#source-block - `),storyContext.parameters.jsx?.transformSource&&(0,external_STORYBOOK_MODULE_CLIENT_LOGGER_.deprecate)((0,esm/* default */.A)`The \`transformSource\` parameter at \`parameters.jsx.transformSource\` is deprecated, please use \`parameters.docs.source.transform\` instead. - - Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#source-block - `),(transformFromProps??sourceParameters.transform??sourceParameters.transformSource??storyContext.parameters.docs?.transformSource??storyContext.parameters.jsx?.transformSource)?.(code,storyContext)||code},useSourceProps=(props,docsContext,sourceContext)=>{let storyIds=props.ids||(props.id?[props.id]:[]),storiesFromIds=useStories(storyIds,docsContext),stories=storiesFromIds,{of}=props;if("of"in props&&of===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(of)stories=[docsContext.resolveOf(of,["story"]).story];else if(stories.length===0)try{stories=[docsContext.storyById()];}catch{}if(!storiesFromIds.every(Boolean))return {error:"Oh no! The source is not available.",state:"none"};let sourceParameters=stories[0]?.parameters?.docs?.source||{},{code}=props,format2=props.format??sourceParameters.format,language=props.language??sourceParameters.language??"jsx",dark=props.dark??sourceParameters.dark??!1;code||(code=stories.map((story,index)=>{if(!story)return "";let storyContext=docsContext.getStoryContext(story),argsForSource=props.__forceInitialArgs?storyContext.initialArgs:storyContext.unmappedArgs,source=getStorySource(story.id,argsForSource,sourceContext);return index===0&&(format2=source.format??story.parameters.docs?.source?.format??!1),getSnippet({snippet:source.code,storyContext:{...storyContext,args:argsForSource},typeFromProps:props.type,transformFromProps:props.transform})}).join(` - -`));let state=getSourceState(stories);return code?{code,format:format2,language,dark,state}:{error:"Oh no! The source is not available.",state}},Source2=props=>{props.id&&deprecate(dedent2`The \`id\` prop on Source is deprecated, please use the \`of\` prop instead to reference a story. - - Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#source-block - `),props.ids&&deprecate(dedent2`The \`ids\` prop on Source is deprecated, please use the \`of\` prop instead to reference a story. - - Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#source-block - `);let sourceContext=useContext(SourceContext),docsContext=useContext(DocsContext),{state,...sourceProps}=useSourceProps(props,docsContext,sourceContext);return React17.createElement(Source,{...sourceProps})};var getStoryId2=(props,context)=>{let{id,of,meta,story}=props;if("of"in props&&of===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(id)return (0,external_STORYBOOK_MODULE_CLIENT_LOGGER_.deprecate)((0,esm/* default */.A)`Referencing stories by \`id\` is deprecated, please use \`of\` instead. - - Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#story-block'`),id;let{name}=props;return name?((0,external_STORYBOOK_MODULE_CLIENT_LOGGER_.deprecate)((0,esm/* default */.A)`Referencing stories by \`name\` is deprecated, please use \`of\` instead. - - Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#story-block'`),context.storyIdByName(name)):(story&&(0,external_STORYBOOK_MODULE_CLIENT_LOGGER_.deprecate)((0,esm/* default */.A)`The \`story\` prop is deprecated, please export your stories from CSF files and reference them with \`of={}\`. - - Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#story-block'`),meta&&context.referenceMeta(meta,!1),context.resolveOf(of||story||"story",["story"]).story.id)},getStoryProps=(props,story,context)=>{let{parameters={}}=story||{},{docs={}}=parameters,storyParameters=docs.story||{};if(docs.disable)return null;let{inlineStories,iframeHeight}=docs;typeof inlineStories<"u"&&(0,external_STORYBOOK_MODULE_CLIENT_LOGGER_.deprecate)((0,esm/* default */.A)`The \`docs.inlineStories\` parameter is deprecated, use \`docs.story.inline\` instead. - - Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#autodocs-changes' - `);let inline=props.inline??storyParameters.inline??inlineStories??!1;if(typeof iframeHeight<"u"&&(0,external_STORYBOOK_MODULE_CLIENT_LOGGER_.deprecate)((0,esm/* default */.A)`The \`docs.iframeHeight\` parameter is deprecated, use \`docs.story.iframeHeight\` instead. - - Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#autodocs-changes' - `),inline){let height2=props.height??storyParameters.height,autoplay=props.autoplay??storyParameters.autoplay??!1;return {story,inline:!0,height:height2,autoplay,forceInitialArgs:!!props.__forceInitialArgs,primary:!!props.__primary,renderStoryToElement:context.renderStoryToElement}}let height=props.height??storyParameters.height??storyParameters.iframeHeight??iframeHeight??"100px";return {story,inline:!1,height,primary:!!props.__primary}},Story2=(props={__forceInitialArgs:!1,__primary:!1})=>{let context=(0,react.useContext)(DocsContext),storyId=getStoryId2(props,context),story=useStory(storyId,context);if(!story)return react.createElement(StorySkeleton,null);let storyProps=getStoryProps(props,story,context);return storyProps?react.createElement(Story,{...storyProps}):null};var useDeprecatedPreviewProps=({withSource,mdxSource,children,layout:layoutProp,...props},docsContext,sourceContext)=>{let storyIds=react.Children.toArray(children).filter(c=>c.props&&(c.props.id||c.props.name||c.props.of)).map(c=>getStoryId2(c.props,docsContext)),stories=useStories(storyIds,docsContext),isLoading=stories.some(s=>!s),sourceProps=useSourceProps({...mdxSource?{code:decodeURI(mdxSource)}:{ids:storyIds},...props.of&&{of:props.of}},docsContext,sourceContext);if(withSource==="none")return {isLoading,previewProps:props};let layout=layoutProp;return react.Children.forEach(children,child=>{layout||(layout=child?.props?.parameters?.layout);}),stories.forEach(story=>{layout||!story||(layout=story?.parameters.layout??story.parameters.docs?.canvas?.layout);}),{isLoading,previewProps:{...props,layout:layout??"padded",withSource:sourceProps,isExpanded:(withSource||sourceProps.state)==="open"}}},Canvas=props=>{let docsContext=(0,react.useContext)(DocsContext),sourceContext=(0,react.useContext)(SourceContext),{children,of,source}=props;if("of"in props&&of===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{isLoading,previewProps}=useDeprecatedPreviewProps(props,docsContext,sourceContext),story,sourceProps,hookError;try{({story}=useOf(of||"story",["story"]));}catch(error){children||(hookError=error);}try{sourceProps=useSourceProps({...source,...of&&{of}},docsContext,sourceContext);}catch(error){children||(hookError=error);}if(hookError)throw hookError;if(props.withSource&&(0,external_STORYBOOK_MODULE_CLIENT_LOGGER_.deprecate)((0,esm/* default */.A)`Setting source state with \`withSource\` is deprecated, please use \`sourceState\` with 'hidden', 'shown' or 'none' instead. - - Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#canvas-block - `),props.mdxSource&&(0,external_STORYBOOK_MODULE_CLIENT_LOGGER_.deprecate)((0,esm/* default */.A)`Setting source code with \`mdxSource\` is deprecated, please use source={{code: '...'}} instead. - - Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#canvas-block - `),(props.isColumn!==void 0||props.columns!==void 0)&&(0,external_STORYBOOK_MODULE_CLIENT_LOGGER_.deprecate)((0,esm/* default */.A)`\`isColumn\` and \`columns\` props are deprecated as the Canvas block now only supports showing a single story. - - Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#canvas-block - `),children)return (0,external_STORYBOOK_MODULE_CLIENT_LOGGER_.deprecate)((0,esm/* default */.A)`Passing children to Canvas is deprecated, please use the \`of\` prop instead to reference a story. - - Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#canvas-block - `),isLoading?react.createElement(PreviewSkeleton,null):react.createElement(Preview,{...previewProps},children);let layout=props.layout??story.parameters.layout??story.parameters.docs?.canvas?.layout??"padded",withToolbar=props.withToolbar??story.parameters.docs?.canvas?.withToolbar??!1,additionalActions=props.additionalActions??story.parameters.docs?.canvas?.additionalActions,sourceState=props.sourceState??story.parameters.docs?.canvas?.sourceState??"hidden",className=props.className??story.parameters.docs?.canvas?.className;return react.createElement(Preview,{withSource:sourceState==="none"?void 0:sourceProps,isExpanded:sourceState==="shown",withToolbar,additionalActions,className,layout},react.createElement(Story2,{of:of||story.moduleExport,meta:props.meta,...props.story}))};var useGlobals2=(story,context)=>{let storyContext=context.getStoryContext(story),[globals,setGlobals]=(0,react.useState)(storyContext.globals);return (0,react.useEffect)(()=>{let onGlobalsUpdated=changed=>{setGlobals(changed.globals);};return context.channel.on(external_STORYBOOK_MODULE_CORE_EVENTS_.GLOBALS_UPDATED,onGlobalsUpdated),()=>context.channel.off(external_STORYBOOK_MODULE_CORE_EVENTS_.GLOBALS_UPDATED,onGlobalsUpdated)},[context.channel]),[globals]};var useArgs2=(story,context)=>{let result=useArgsIfDefined(story,context);if(!result)throw new Error("No result when story was defined");return result},useArgsIfDefined=(story,context)=>{let storyContext=story?context.getStoryContext(story):{args:{}},{id:storyId}=story||{id:"none"},[args,setArgs]=(0,react.useState)(storyContext.args);(0,react.useEffect)(()=>{let onArgsUpdated=changed=>{changed.storyId===storyId&&setArgs(changed.args);};return context.channel.on(external_STORYBOOK_MODULE_CORE_EVENTS_.STORY_ARGS_UPDATED,onArgsUpdated),()=>context.channel.off(external_STORYBOOK_MODULE_CORE_EVENTS_.STORY_ARGS_UPDATED,onArgsUpdated)},[storyId,context.channel]);let updateArgs=(0,react.useCallback)(updatedArgs=>context.channel.emit(external_STORYBOOK_MODULE_CORE_EVENTS_.UPDATE_STORY_ARGS,{storyId,updatedArgs}),[storyId,context.channel]),resetArgs=(0,react.useCallback)(argNames=>context.channel.emit(external_STORYBOOK_MODULE_CORE_EVENTS_.RESET_STORY_ARGS,{storyId,argNames}),[storyId,context.channel]);return story&&[args,updateArgs,resetArgs]};var Controls3=props=>{let{of}=props;if("of"in props&&of===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let context=(0,react.useContext)(DocsContext),{story}=context.resolveOf(of||"story",["story"]),{parameters,argTypes}=story,controlsParameters=parameters.docs?.controls||{},include=props.include??controlsParameters.include,exclude=props.exclude??controlsParameters.exclude,sort=props.sort??controlsParameters.sort,[args,updateArgs,resetArgs]=useArgs2(story,context),[globals]=useGlobals2(story,context),filteredArgTypes=(0,external_STORYBOOK_MODULE_PREVIEW_API_.filterArgTypes)(argTypes,include,exclude);return react.createElement(ArgsTable,{rows:filteredArgTypes,args,globals,updateArgs,resetArgs,sort})};var {document:document2}=external_STORYBOOK_MODULE_GLOBAL_.global,assertIsFn=val=>{if(typeof val!="function")throw new Error(`Expected story function, got: ${val}`);return val},AddContext=props=>{let{children,...rest}=props,parentContext=React17.useContext(DocsContext);return React17.createElement(DocsContext.Provider,{value:{...parentContext,...rest}},children)},CodeOrSourceMdx=({className,children,...rest})=>{if(typeof className!="string"&&(typeof children!="string"||!children.match(/[\n\r]/g)))return react.createElement(components_dist/* Code */.Cy,null,children);let language=className&&className.split("-");return react.createElement(Source,{language:language&&language[1]||"plaintext",format:!1,code:children,...rest})};function dist_navigate(context,url){context.channel.emit(external_STORYBOOK_MODULE_CORE_EVENTS_.NAVIGATE_URL,url);}var dist_A=components_dist/* components */.dK.a,AnchorInPage=({hash,children})=>{let context=(0,react.useContext)(DocsContext);return react.createElement(dist_A,{href:hash,target:"_self",onClick:event=>{let id=hash.substring(1);document2.getElementById(id)&&dist_navigate(context,hash);}},children)},AnchorMdx=props=>{let{href,target,children,...rest}=props,context=(0,react.useContext)(DocsContext);if(href){if(href.startsWith("#"))return react.createElement(AnchorInPage,{hash:href},children);if(target!=="_blank"&&!href.startsWith("https://"))return react.createElement(dist_A,{href,onClick:event=>{event.button===0&&!event.altKey&&!event.ctrlKey&&!event.metaKey&&!event.shiftKey&&(event.preventDefault(),dist_navigate(context,event.currentTarget.getAttribute("href")));},target,...rest},children)}return react.createElement(dist_A,{...props})},SUPPORTED_MDX_HEADERS=["h1","h2","h3","h4","h5","h6"],OcticonHeaders=SUPPORTED_MDX_HEADERS.reduce((acc,headerType)=>({...acc,[headerType]:(0,dist/* styled */.I4)(headerType)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),OcticonAnchor=dist/* styled */.I4.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),HeaderWithOcticonAnchor=({as,id,children,...rest})=>{let context=(0,react.useContext)(DocsContext),OcticonHeader=OcticonHeaders[as],hash=`#${id}`;return react.createElement(OcticonHeader,{id,...rest},react.createElement(OcticonAnchor,{"aria-hidden":"true",href:hash,tabIndex:-1,target:"_self",onClick:event=>{document2.getElementById(id)&&dist_navigate(context,hash);}},react.createElement(components_dist/* Icons */.FI,{icon:"link"})),children)},HeaderMdx=props=>{let{as,id,children,...rest}=props;if(id)return react.createElement(HeaderWithOcticonAnchor,{as,id,...rest},children);let Component4=as,{as:omittedAs,...withoutAs}=props;return react.createElement(Component4,{...(0,components_dist/* nameSpaceClassNames */.mc)(withoutAs,as)})},HeadersMdx=SUPPORTED_MDX_HEADERS.reduce((acc,headerType)=>({...acc,[headerType]:props=>react.createElement(HeaderMdx,{as:headerType,...props})}),{});var Markdown2=props=>{if(!props.children)return null;if(typeof props.children!="string")throw new Error((0,esm/* default */.A)`The Markdown block only accepts children as a single string, but children were of type: '${typeof props.children}' - This is often caused by not wrapping the child in a template string. - - This is invalid: - - # Some heading - A paragraph - - - Instead do: - - {\` - # Some heading - A paragraph - \`} - - `);return react.createElement(index_modern,{...props,options:{forceBlock:!0,overrides:{code:CodeOrSourceMdx,a:AnchorMdx,...HeadersMdx,...props?.options?.overrides},...props?.options}})};var DescriptionType=(DescriptionType2=>(DescriptionType2.INFO="info",DescriptionType2.NOTES="notes",DescriptionType2.DOCGEN="docgen",DescriptionType2.AUTO="auto",DescriptionType2))(DescriptionType||{}),DEPRECATION_MIGRATION_LINK="https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#description-block-parametersnotes-and-parametersinfo",getNotes=notes=>notes&&(typeof notes=="string"?notes:(0,docs_tools_dist/* str */.gx)(notes.markdown)||(0,docs_tools_dist/* str */.gx)(notes.text)),getInfo=info=>info&&(typeof info=="string"?info:(0,docs_tools_dist/* str */.gx)(info.text)),noDescription=component=>null,getDescriptionFromResolvedOf=resolvedOf=>{switch(resolvedOf.type){case"story":return resolvedOf.story.parameters.docs?.description?.story||null;case"meta":{let{parameters,component}=resolvedOf.preparedMeta,metaDescription=parameters.docs?.description?.component;return metaDescription||parameters.docs?.extractComponentDescription?.(component,{component,parameters})||null}case"component":{let{component,projectAnnotations:{parameters}}=resolvedOf;return parameters.docs?.extractComponentDescription?.(component,{component,parameters})||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${resolvedOf.type}`)}},getDescriptionFromDeprecatedProps=({type,markdown,children},{storyById})=>{let{component,parameters}=storyById();if(children||markdown)return children||markdown;let{notes,info,docs}=parameters;(notes||info)&&(0,external_STORYBOOK_MODULE_CLIENT_LOGGER_.deprecate)(`Using 'parameters.notes' or 'parameters.info' properties to describe stories is deprecated. See ${DEPRECATION_MIGRATION_LINK}`);let{extractComponentDescription=noDescription,description}=docs||{},componentDescriptionParameter=description?.component;if(componentDescriptionParameter)return componentDescriptionParameter;switch(type){case"info":return getInfo(info);case"notes":return getNotes(notes);case"docgen":case"auto":default:return extractComponentDescription(component,{component,...parameters})}},DescriptionContainer=props=>{let{of,type,markdown:markdownProp,children}=props;if("of"in props&&of===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let context=(0,react.useContext)(DocsContext),resolvedOf=useOf(of||"meta"),markdown;return type||markdownProp||children?markdown=getDescriptionFromDeprecatedProps(props,context):markdown=getDescriptionFromResolvedOf(resolvedOf),type&&(0,external_STORYBOOK_MODULE_CLIENT_LOGGER_.deprecate)(`Manually specifying description type is deprecated. See ${DEPRECATION_MIGRATION_LINK}`),markdownProp&&(0,external_STORYBOOK_MODULE_CLIENT_LOGGER_.deprecate)(`The 'markdown' prop on the Description block is deprecated. See ${DEPRECATION_MIGRATION_LINK}`),children&&(0,external_STORYBOOK_MODULE_CLIENT_LOGGER_.deprecate)(`The 'children' prop on the Description block is deprecated. See ${DEPRECATION_MIGRATION_LINK}`),markdown?react.createElement(Markdown2,null,markdown):null};var Wrapper9=dist/* styled */.I4.div(({theme})=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),Content2=dist/* styled */.I4.div(({theme})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${theme.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${theme.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${theme.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${theme.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:theme.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:theme.color.secondary,textDecoration:"none"}})),Heading=dist/* styled */.I4.p(({theme})=>({fontWeight:600,fontSize:"0.875em",color:theme.textColor,textTransform:"uppercase",marginBottom:10})),OptionalTitle=({title})=>title===null?null:typeof title=="string"?react.createElement(Heading,null,title):title,TableOfContents=({title,disable,headingSelector,contentsSelector,ignoreSelector,unsafeTocbotOptions})=>((0,react.useEffect)(()=>{let configuration={tocSelector:".toc-wrapper",contentSelector:contentsSelector??".sbdocs-content",headingSelector:headingSelector??"h3",ignoreSelector:ignoreSelector??".skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:()=>!1,...unsafeTocbotOptions},timeout=setTimeout(()=>js.init(configuration),100);return ()=>{clearTimeout(timeout),js.destroy();}},[disable]),react.createElement(react.Fragment,null,react.createElement(Wrapper9,null,disable?null:react.createElement(Content2,null,react.createElement(OptionalTitle,{title:title||null}),react.createElement("div",{className:"toc-wrapper"})))));var {document:document3,window:globalWindow3}=external_STORYBOOK_MODULE_GLOBAL_.global,DocsContainer=({context,theme,children})=>{let toc;try{toc=context.resolveOf("meta",["meta"]).preparedMeta.parameters?.docs?.toc;}catch{toc=context?.projectAnnotations?.parameters?.docs?.toc;}return (0,react.useEffect)(()=>{let url;try{if(url=new URL(globalWindow3.parent.location.toString()),url.hash){let element=document3.getElementById(url.hash.substring(1));element&&setTimeout(()=>{scrollToElement(element);},200);}}catch{}}),react.createElement(DocsContext.Provider,{value:context},react.createElement(SourceContainer,{channel:context.channel},react.createElement(dist/* ThemeProvider */.NP,{theme:(0,dist/* ensure */.D8)(theme)},react.createElement(DocsPageWrapper,{toc:toc?react.createElement(TableOfContents,{className:"sbdocs sbdocs-toc--custom",...toc}):null},children))))};var STORY_KIND_PATH_SEPARATOR=/\s*\/\s*/,extractTitle=title=>{let groups=title.trim().split(STORY_KIND_PATH_SEPARATOR);return groups&&groups[groups.length-1]||title},Title3=({children})=>{let context=(0,react.useContext)(DocsContext),content=children||extractTitle(context.storyById().title);return content?react.createElement(Title,{className:"sbdocs-title sb-unstyled"},content):null};var Subtitle2=({children})=>{let docsContext=(0,react.useContext)(DocsContext),content=children||docsContext.storyById().parameters?.componentSubtitle;return content?react.createElement(Subtitle,{className:"sbdocs-subtitle sb-unstyled"},content):null};var Subheading=({children,disableAnchor})=>{if(disableAnchor||typeof children!="string")return react.createElement(components_dist.H3,null,children);let tagID=children.toLowerCase().replace(/[^a-z0-9]/gi,"-");return react.createElement(HeaderMdx,{as:"h3",id:tagID},children)};var DocsStory=({of,expanded=!0,withToolbar:withToolbarProp=!1,__forceInitialArgs=!1,__primary=!1})=>{let{story}=useOf(of||"story",["story"]),withToolbar=story.parameters.docs?.canvas?.withToolbar??withToolbarProp;return react.createElement(Anchor,{storyId:story.id},expanded&&react.createElement(react.Fragment,null,react.createElement(Subheading,null,story.name),react.createElement(DescriptionContainer,{of})),react.createElement(Canvas,{of,withToolbar,story:{__forceInitialArgs,__primary},source:{__forceInitialArgs}}))};var Primary=props=>{let{name,of}=props;if("of"in props&&of===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let docsContext=(0,react.useContext)(DocsContext),story;if(of&&(story=useOf(of||"meta",["meta"]).csfFile.stories[0]||null),!story){let storyId=name&&docsContext.storyIdByName(name);story=docsContext.storyById(storyId);}return name&&(0,external_STORYBOOK_MODULE_CLIENT_LOGGER_.deprecate)((0,esm/* default */.A)`\`name\` prop is deprecated on the Primary block. - The Primary block should only be used to render the primary story, which is automatically found. - `),story?react.createElement(DocsStory,{of:story.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null};var Heading2=({children,disableAnchor,...props})=>{if(disableAnchor||typeof children!="string")return react.createElement(components_dist.H2,null,children);let tagID=children.toLowerCase().replace(/[^a-z0-9]/gi,"-");return react.createElement(HeaderMdx,{as:"h2",id:tagID,...props},children)};var StyledHeading=(0,dist/* styled */.I4)(Heading2)(({theme})=>({fontSize:`${theme.typography.size.s2-1}px`,fontWeight:theme.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:theme.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}})),Stories=({title="Stories",includePrimary=!0})=>{let{componentStories}=(0,react.useContext)(DocsContext),stories=componentStories().filter(story=>!story.parameters?.docs?.disable);return includePrimary||(stories=stories.slice(1)),!stories||stories.length===0?null:react.createElement(react.Fragment,null,react.createElement(StyledHeading,null,title),stories.map(story=>story&&react.createElement(DocsStory,{key:story.id,of:story.moduleExport,expanded:!0,__forceInitialArgs:!0})))};var DocsPage=()=>{let resolvedOf=useOf("meta",["meta"]),{stories}=resolvedOf.csfFile,isSingleStory=Object.keys(stories).length===1;return react.createElement(react.Fragment,null,react.createElement(Title3,null),react.createElement(Subtitle2,null),react.createElement(DescriptionContainer,{of:"meta"}),isSingleStory?react.createElement(DescriptionContainer,{of:"story"}):null,react.createElement(Primary,null),react.createElement(Controls3,null),isSingleStory?null:react.createElement(Stories,null))};function Docs({context,docsParameter}){let Container=docsParameter.container||DocsContainer,Page=docsParameter.page||DocsPage;return react.createElement(Container,{context,theme:docsParameter.theme},react.createElement(Page,null))}var ExternalDocsContext=class extends external_STORYBOOK_MODULE_PREVIEW_API_.DocsContext{constructor(channel,store,renderStoryToElement,processMetaExports){super(channel,store,renderStoryToElement,[]);this.channel=channel;this.store=store;this.renderStoryToElement=renderStoryToElement;this.processMetaExports=processMetaExports;this.referenceMeta=(metaExports,attach)=>{let csfFile=this.processMetaExports(metaExports);this.referenceCSFFile(csfFile),super.referenceMeta(metaExports,attach);};}};var ConstantMap=class{constructor(prefix){this.prefix=prefix;this.entries=new Map;}get(key){return this.entries.has(key)||this.entries.set(key,`${this.prefix}${this.entries.size}`),this.entries.get(key)}},ExternalPreview=class extends external_STORYBOOK_MODULE_PREVIEW_API_.Preview{constructor(projectAnnotations){super(new external_STORYBOOK_MODULE_CHANNELS_.Channel({}));this.projectAnnotations=projectAnnotations;this.importPaths=new ConstantMap("./importPath/");this.titles=new ConstantMap("title-");this.storyIndex={v:4,entries:{}};this.moduleExportsByImportPath={};this.processMetaExports=metaExports=>{let importPath=this.importPaths.get(metaExports);this.moduleExportsByImportPath[importPath]=metaExports;let title=metaExports.default.title||this.titles.get(metaExports),csfFile=this.storyStore.processCSFFileWithCache(metaExports,importPath,title);return Object.values(csfFile.stories).forEach(({id,name})=>{this.storyIndex.entries[id]={id,importPath,title,name,type:"story"};}),this.onStoriesChanged({storyIndex:this.storyIndex}),csfFile};this.docsContext=()=>new ExternalDocsContext(this.channel,this.storyStore,this.renderStoryToElement.bind(this),this.processMetaExports.bind(this));this.initialize({getStoryIndex:()=>this.storyIndex,importFn:path=>Promise.resolve(this.moduleExportsByImportPath[path]),getProjectAnnotations:()=>(0,external_STORYBOOK_MODULE_PREVIEW_API_.composeConfigs)([{parameters:{docs:{story:{inline:!0}}}},this.projectAnnotations])});}};function usePreview(projectAnnotations){let previewRef=useRef();return previewRef.current||(previewRef.current=new ExternalPreview(projectAnnotations)),previewRef.current}function ExternalDocs({projectAnnotationsList,children}){let projectAnnotations=composeConfigs(projectAnnotationsList),preview2=usePreview(projectAnnotations),docsParameter={...projectAnnotations.parameters?.docs,page:()=>children};return React17.createElement(Docs,{docsParameter,context:preview2.docsContext()})}var preview,ExternalDocsContainer=({projectAnnotations,children})=>(preview||(preview=new ExternalPreview(projectAnnotations)),React17.createElement(DocsContext.Provider,{value:preview.docsContext()},React17.createElement(ThemeProvider,{theme:ensure(themes.light)},children)));var Meta=({of})=>{let context=(0,react.useContext)(DocsContext);of&&context.referenceMeta(of,!0);try{let primary=context.storyById();return react.createElement(Anchor,{storyId:primary.id})}catch{return null}};var Unstyled=props=>React17.createElement("div",{...props,className:"sb-unstyled"});var Wrapper10=({children})=>React17.createElement("div",{style:{fontFamily:"sans-serif"}},children); - - - - -/***/ }), - -/***/ "../../../node_modules/@storybook/components/dist/chunk-ELLS3HSY.mjs": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - E7: () => (/* binding */ ActionBar), - FK: () => (/* binding */ ScrollArea), - bF: () => (/* binding */ SyntaxHighlighter2), - zH: () => (/* binding */ createCopyToClipboardFunction), - L0: () => (/* binding */ syntaxhighlighter_default) -}); - -// EXTERNAL MODULE: ../../../node_modules/@storybook/components/dist/chunk-JRLSWQMA.mjs -var chunk_JRLSWQMA = __webpack_require__("../../../node_modules/@storybook/components/dist/chunk-JRLSWQMA.mjs"); -;// CONCATENATED MODULE: ../../../node_modules/@storybook/components/dist/chunk-MUPK3MH6.mjs - - -var require_markdown=(0,chunk_JRLSWQMA/* __commonJS */.P)({"../../node_modules/refractor/lang/markdown.js"(exports,module){module.exports=markdown;markdown.displayName="markdown";markdown.aliases=["md"];function markdown(Prism){(function(Prism2){var inner=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function createInline(pattern){return pattern=pattern.replace(//g,function(){return inner}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+pattern+")")}var tableCell=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,tableRow=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return tableCell}),tableLine=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;Prism2.languages.markdown=Prism2.languages.extend("markup",{}),Prism2.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:Prism2.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+tableRow+tableLine+"(?:"+tableRow+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+tableRow+tableLine+")(?:"+tableRow+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(tableCell),inside:Prism2.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+tableRow+")"+tableLine+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+tableRow+"$"),inside:{"table-header":{pattern:RegExp(tableCell),alias:"important",inside:Prism2.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:createInline(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:createInline(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:createInline(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:createInline(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(token){["url","bold","italic","strike","code-snippet"].forEach(function(inside){token!==inside&&(Prism2.languages.markdown[token].inside.content.inside[inside]=Prism2.languages.markdown[inside]);});}),Prism2.hooks.add("after-tokenize",function(env){if(env.language!=="markdown"&&env.language!=="md")return;function walkTokens(tokens){if(!(!tokens||typeof tokens=="string"))for(var i=0,l=tokens.length;i",quot:'"'},fromCodePoint=String.fromCodePoint||String.fromCharCode;function textContent(html){var text=html.replace(tagPattern,"");return text=text.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(m,code){if(code=code.toLowerCase(),code[0]==="#"){var value;return code[1]==="x"?value=parseInt(code.slice(2),16):value=Number(code.slice(1)),fromCodePoint(value)}else {var known=KNOWN_ENTITY_NAMES[code];return known||m}}),text}Prism2.languages.md=Prism2.languages.markdown;})(Prism);}}}); - - - -;// CONCATENATED MODULE: ../../../node_modules/@storybook/components/dist/chunk-ISRAU5IP.mjs - - -var require_yaml=(0,chunk_JRLSWQMA/* __commonJS */.P)({"../../node_modules/refractor/lang/yaml.js"(exports,module){module.exports=yaml;yaml.displayName="yaml";yaml.aliases=["yml"];function yaml(Prism){(function(Prism2){var anchorOrAlias=/[*&][^\s[\]{},]+/,tag=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,properties="(?:"+tag.source+"(?:[ ]+"+anchorOrAlias.source+")?|"+anchorOrAlias.source+"(?:[ ]+"+tag.source+")?)",plainKey=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),string=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function createValuePattern(value,flags){flags=(flags||"").replace(/m/g,"")+"m";var pattern=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return properties}).replace(/<>/g,function(){return value});return RegExp(pattern,flags)}Prism2.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return properties})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return properties}).replace(/<>/g,function(){return "(?:"+plainKey+"|"+string+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:createValuePattern(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:createValuePattern(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:createValuePattern(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:createValuePattern(string),lookbehind:!0,greedy:!0},number:{pattern:createValuePattern(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag,important:anchorOrAlias,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},Prism2.languages.yml=Prism2.languages.yaml;})(Prism);}}}); - - - -;// CONCATENATED MODULE: ../../../node_modules/@storybook/components/dist/chunk-VSDH24NK.mjs - - -var require_typescript=(0,chunk_JRLSWQMA/* __commonJS */.P)({"../../node_modules/refractor/lang/typescript.js"(exports,module){module.exports=typescript;typescript.displayName="typescript";typescript.aliases=["ts"];function typescript(Prism){(function(Prism2){Prism2.languages.typescript=Prism2.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),Prism2.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete Prism2.languages.typescript.parameter,delete Prism2.languages.typescript["literal-property"];var typeInside=Prism2.languages.extend("typescript",{});delete typeInside["class-name"],Prism2.languages.typescript["class-name"].inside=typeInside,Prism2.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:typeInside}}}}),Prism2.languages.ts=Prism2.languages.typescript;})(Prism);}}}); - - - -;// CONCATENATED MODULE: ../../../node_modules/@storybook/components/dist/chunk-HNGDCMHD.mjs - - -var require_jsx=(0,chunk_JRLSWQMA/* __commonJS */.P)({"../../node_modules/refractor/lang/jsx.js"(exports,module){module.exports=jsx;jsx.displayName="jsx";jsx.aliases=[];function jsx(Prism){(function(Prism2){var javascript=Prism2.util.clone(Prism2.languages.javascript),space=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,braces=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,spread=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function re(source,flags){return source=source.replace(//g,function(){return space}).replace(//g,function(){return braces}).replace(//g,function(){return spread}),RegExp(source,flags)}spread=re(spread).source,Prism2.languages.jsx=Prism2.languages.extend("markup",javascript),Prism2.languages.jsx.tag.pattern=re(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),Prism2.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,Prism2.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,Prism2.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,Prism2.languages.jsx.tag.inside.comment=javascript.comment,Prism2.languages.insertBefore("inside","attr-name",{spread:{pattern:re(//.source),inside:Prism2.languages.jsx}},Prism2.languages.jsx.tag),Prism2.languages.insertBefore("inside","special-attr",{script:{pattern:re(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:Prism2.languages.jsx}}},Prism2.languages.jsx.tag);var stringifyToken=function(token){return token?typeof token=="string"?token:typeof token.content=="string"?token.content:token.content.map(stringifyToken).join(""):""},walkTokens=function(tokens){for(var openedTags=[],i=0;i0&&openedTags[openedTags.length-1].tagName===stringifyToken(token.content[0].content[1])&&openedTags.pop():token.content[token.content.length-1].content==="/>"||openedTags.push({tagName:stringifyToken(token.content[0].content[1]),openedBraces:0}):openedTags.length>0&&token.type==="punctuation"&&token.content==="{"?openedTags[openedTags.length-1].openedBraces++:openedTags.length>0&&openedTags[openedTags.length-1].openedBraces>0&&token.type==="punctuation"&&token.content==="}"?openedTags[openedTags.length-1].openedBraces--:notTagNorBrace=!0),(notTagNorBrace||typeof token=="string")&&openedTags.length>0&&openedTags[openedTags.length-1].openedBraces===0){var plainText=stringifyToken(token);i0&&(typeof tokens[i-1]=="string"||tokens[i-1].type==="plain-text")&&(plainText=stringifyToken(tokens[i-1])+plainText,tokens.splice(i-1,1),i--),tokens[i]=new Prism2.Token("plain-text",plainText,null,plainText);}token.content&&typeof token.content!="string"&&walkTokens(token.content);}};Prism2.hooks.add("after-tokenize",function(env){env.language!=="jsx"&&env.language!=="tsx"||walkTokens(env.tokens);});})(Prism);}}}); - - - -;// CONCATENATED MODULE: ../../../node_modules/@storybook/components/dist/chunk-YU6L2YXV.mjs - - - - -var require_tsx=(0,chunk_JRLSWQMA/* __commonJS */.P)({"../../node_modules/refractor/lang/tsx.js"(exports,module){var refractorJsx=require_jsx(),refractorTypescript=require_typescript();module.exports=tsx;tsx.displayName="tsx";tsx.aliases=[];function tsx(Prism){Prism.register(refractorJsx),Prism.register(refractorTypescript),function(Prism2){var typescript=Prism2.util.clone(Prism2.languages.typescript);Prism2.languages.tsx=Prism2.languages.extend("jsx",typescript),delete Prism2.languages.tsx.parameter,delete Prism2.languages.tsx["literal-property"];var tag=Prism2.languages.tsx.tag;tag.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+tag.pattern.source+")",tag.pattern.flags),tag.lookbehind=!0;}(Prism);}}}); - - - -;// CONCATENATED MODULE: ../../../node_modules/@storybook/components/dist/chunk-UDRSICRZ.mjs - - -var require_clike=(0,chunk_JRLSWQMA/* __commonJS */.P)({"../../node_modules/refractor/lang/clike.js"(exports,module){module.exports=clike;clike.displayName="clike";clike.aliases=[];function clike(Prism){Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};}}}); - - - -;// CONCATENATED MODULE: ../../../node_modules/@storybook/components/dist/chunk-J6EJ35VB.mjs - - -var require_javascript=(0,chunk_JRLSWQMA/* __commonJS */.P)({"../../node_modules/refractor/lang/javascript.js"(exports,module){module.exports=javascript;javascript.displayName="javascript";javascript.aliases=["js"];function javascript(Prism){Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript;}}}); - - - -;// CONCATENATED MODULE: ../../../node_modules/@storybook/components/dist/chunk-CW4JFC2I.mjs - - -var require_css=(0,chunk_JRLSWQMA/* __commonJS */.P)({"../../node_modules/refractor/lang/css.js"(exports,module){module.exports=css;css.displayName="css";css.aliases=[];function css(Prism){(function(Prism2){var string=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;Prism2.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+string.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+string.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+string.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:string,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},Prism2.languages.css.atrule.inside.rest=Prism2.languages.css;var markup=Prism2.languages.markup;markup&&(markup.tag.addInlined("style","css"),markup.tag.addAttribute("style","css"));})(Prism);}}}); - - - -;// CONCATENATED MODULE: ../../../node_modules/@storybook/components/dist/chunk-DHRX2IL7.mjs - - -var require_markup=(0,chunk_JRLSWQMA/* __commonJS */.P)({"../../node_modules/refractor/lang/markup.js"(exports,module){module.exports=markup;markup.displayName="markup";markup.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function markup(Prism){Prism.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(env){env.type==="entity"&&(env.attributes.title=env.content.value.replace(/&/,"&"));}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(tagName,lang){var includedCdataInside={};includedCdataInside["language-"+lang]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[lang]},includedCdataInside.cdata=/^$/i;var inside={"included-cdata":{pattern://i,inside:includedCdataInside}};inside["language-"+lang]={pattern:/[\s\S]+/,inside:Prism.languages[lang]};var def={};def[tagName]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return tagName}),"i"),lookbehind:!0,greedy:!0,inside},Prism.languages.insertBefore("markup","cdata",def);}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(attrName,lang){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+attrName+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[lang,"language-"+lang],inside:Prism.languages[lang]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}});}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml;}}}); - - - -;// CONCATENATED MODULE: ../../../node_modules/@storybook/components/dist/chunk-BNQCH2A2.mjs - - - - - - -var require_immutable=(0,chunk_JRLSWQMA/* __commonJS */.P)({"../../node_modules/xtend/immutable.js"(exports,module){module.exports=extend;var hasOwnProperty=Object.prototype.hasOwnProperty;function extend(){for(var target={},i=0;i4&&normal.slice(0,4)===data&&valid.test(value)&&(value.charAt(4)==="-"?prop=datasetToProperty(value):value=datasetToAttribute(value),Type=DefinedInfo),new Type(prop,value))}function datasetToProperty(attribute){var value=attribute.slice(5).replace(dash,camelcase);return data+value.charAt(0).toUpperCase()+value.slice(1)}function datasetToAttribute(property){var value=property.slice(4);return dash.test(value)?property:(value=value.replace(cap,kebab),value.charAt(0)!=="-"&&(value="-"+value),data+value)}function kebab($0){return "-"+$0.toLowerCase()}function camelcase($0){return $0.charAt(1).toUpperCase()}}});var require_hast_util_parse_selector=(0,chunk_JRLSWQMA/* __commonJS */.P)({"../../node_modules/hast-util-parse-selector/index.js"(exports,module){module.exports=parse;var search=/[#.]/g;function parse(selector,defaultTagName){for(var value=selector||"",name=defaultTagName||"div",props={},start=0,subvalue,previous,match;start",Iacute:"\xCD",Icirc:"\xCE",Igrave:"\xCC",Iuml:"\xCF",LT:"<",Ntilde:"\xD1",Oacute:"\xD3",Ocirc:"\xD4",Ograve:"\xD2",Oslash:"\xD8",Otilde:"\xD5",Ouml:"\xD6",QUOT:'"',REG:"\xAE",THORN:"\xDE",Uacute:"\xDA",Ucirc:"\xDB",Ugrave:"\xD9",Uuml:"\xDC",Yacute:"\xDD",aacute:"\xE1",acirc:"\xE2",acute:"\xB4",aelig:"\xE6",agrave:"\xE0",amp:"&",aring:"\xE5",atilde:"\xE3",auml:"\xE4",brvbar:"\xA6",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",eacute:"\xE9",ecirc:"\xEA",egrave:"\xE8",eth:"\xF0",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",iacute:"\xED",icirc:"\xEE",iexcl:"\xA1",igrave:"\xEC",iquest:"\xBF",iuml:"\xEF",laquo:"\xAB",lt:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",ntilde:"\xF1",oacute:"\xF3",ocirc:"\xF4",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",oslash:"\xF8",otilde:"\xF5",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',raquo:"\xBB",reg:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",thorn:"\xFE",times:"\xD7",uacute:"\xFA",ucirc:"\xFB",ugrave:"\xF9",uml:"\xA8",uuml:"\xFC",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"};}});var require_character_reference_invalid=(0,chunk_JRLSWQMA/* __commonJS */.P)({"../../node_modules/character-reference-invalid/index.json"(exports,module){module.exports={"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"};}});var require_is_decimal=(0,chunk_JRLSWQMA/* __commonJS */.P)({"../../node_modules/is-decimal/index.js"(exports,module){module.exports=decimal;function decimal(character){var code=typeof character=="string"?character.charCodeAt(0):character;return code>=48&&code<=57}}});var require_is_hexadecimal=(0,chunk_JRLSWQMA/* __commonJS */.P)({"../../node_modules/is-hexadecimal/index.js"(exports,module){module.exports=hexadecimal;function hexadecimal(character){var code=typeof character=="string"?character.charCodeAt(0):character;return code>=97&&code<=102||code>=65&&code<=70||code>=48&&code<=57}}});var require_is_alphabetical=(0,chunk_JRLSWQMA/* __commonJS */.P)({"../../node_modules/is-alphabetical/index.js"(exports,module){module.exports=alphabetical;function alphabetical(character){var code=typeof character=="string"?character.charCodeAt(0):character;return code>=97&&code<=122||code>=65&&code<=90}}});var require_is_alphanumerical=(0,chunk_JRLSWQMA/* __commonJS */.P)({"../../node_modules/is-alphanumerical/index.js"(exports,module){var alphabetical=require_is_alphabetical(),decimal=require_is_decimal();module.exports=alphanumerical;function alphanumerical(character){return alphabetical(character)||decimal(character)}}});var require_character_entities=(0,chunk_JRLSWQMA/* __commonJS */.P)({"../../node_modules/parse-entities/node_modules/character-entities/index.json"(exports,module){module.exports={AEli:"\xC6",AElig:"\xC6",AM:"&",AMP:"&",Aacut:"\xC1",Aacute:"\xC1",Abreve:"\u0102",Acir:"\xC2",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrav:"\xC0",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Arin:"\xC5",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atild:"\xC3",Atilde:"\xC3",Aum:"\xC4",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COP:"\xA9",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedi:"\xC7",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ET:"\xD0",ETH:"\xD0",Eacut:"\xC9",Eacute:"\xC9",Ecaron:"\u011A",Ecir:"\xCA",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrav:"\xC8",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Eum:"\xCB",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",G:">",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacut:"\xCD",Iacute:"\xCD",Icir:"\xCE",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrav:"\xCC",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Ium:"\xCF",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",L:"<",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` -`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntild:"\xD1",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacut:"\xD3",Oacute:"\xD3",Ocir:"\xD4",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograv:"\xD2",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslas:"\xD8",Oslash:"\xD8",Otild:"\xD5",Otilde:"\xD5",Otimes:"\u2A37",Oum:"\xD6",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUO:'"',QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",RE:"\xAE",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THOR:"\xDE",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacut:"\xDA",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucir:"\xDB",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrav:"\xD9",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uum:"\xDC",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacut:"\xDD",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacut:"\xE1",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acir:"\xE2",acirc:"\xE2",acut:"\xB4",acute:"\xB4",acy:"\u0430",aeli:"\xE6",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrav:"\xE0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",am:"&",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",arin:"\xE5",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atild:"\xE3",atilde:"\xE3",aum:"\xE4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvba:"\xA6",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedi:"\xE7",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedi:"\xB8",cedil:"\xB8",cemptyv:"\u29B2",cen:"\xA2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",cop:"\xA9",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curre:"\xA4",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",de:"\xB0",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divid:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacut:"\xE9",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\xEA",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrav:"\xE8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",et:"\xF0",eth:"\xF0",eum:"\xEB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac1:"\xBC",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac3:"\xBE",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",g:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacut:"\xED",iacute:"\xED",ic:"\u2063",icir:"\xEE",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexc:"\xA1",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrav:"\xEC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iques:"\xBF",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",ium:"\xEF",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laqu:"\xAB",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",l:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",mac:"\xAF",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micr:"\xB5",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middo:"\xB7",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbs:"\xA0",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",no:"\xAC",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntild:"\xF1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacut:"\xF3",oacute:"\xF3",oast:"\u229B",ocir:"\xF4",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograv:"\xF2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\xBA",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslas:"\xF8",oslash:"\xF8",osol:"\u2298",otild:"\xF5",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",oum:"\xF6",ouml:"\xF6",ovbar:"\u233D",par:"\xB6",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusm:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",poun:"\xA3",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quo:'"',quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raqu:"\xBB",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",re:"\xAE",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sec:"\xA7",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",sh:"\xAD",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szli:"\xDF",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thor:"\xFE",thorn:"\xFE",tilde:"\u02DC",time:"\xD7",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacut:"\xFA",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucir:"\xFB",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrav:"\xF9",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",um:"\xA8",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uum:"\xFC",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacut:"\xFD",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",ye:"\xA5",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yum:"\xFF",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"};}});var require_decode_entity=(0,chunk_JRLSWQMA/* __commonJS */.P)({"../../node_modules/parse-entities/decode-entity.js"(exports,module){var characterEntities=require_character_entities();module.exports=decodeEntity;var own={}.hasOwnProperty;function decodeEntity(characters){return own.call(characterEntities,characters)?characterEntities[characters]:!1}}});var require_parse_entities=(0,chunk_JRLSWQMA/* __commonJS */.P)({"../../node_modules/parse-entities/index.js"(exports,module){var legacy=require_character_entities_legacy(),invalid=require_character_reference_invalid(),decimal=require_is_decimal(),hexadecimal=require_is_hexadecimal(),alphanumerical=require_is_alphanumerical(),decodeEntity=require_decode_entity();module.exports=parseEntities;var own={}.hasOwnProperty,fromCharCode=String.fromCharCode,noop=Function.prototype,defaults={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},tab=9,lineFeed=10,formFeed=12,space=32,ampersand=38,semicolon=59,lessThan=60,equalsTo=61,numberSign=35,uppercaseX=88,lowercaseX=120,replacementCharacter=65533,name="named",hexa="hexadecimal",deci="decimal",bases={};bases[hexa]=16;bases[deci]=10;var tests={};tests[name]=alphanumerical;tests[deci]=decimal;tests[hexa]=hexadecimal;var namedNotTerminated=1,numericNotTerminated=2,namedEmpty=3,numericEmpty=4,namedUnknown=5,numericDisallowed=6,numericProhibited=7,messages={};messages[namedNotTerminated]="Named character references must be terminated by a semicolon";messages[numericNotTerminated]="Numeric character references must be terminated by a semicolon";messages[namedEmpty]="Named character references cannot be empty";messages[numericEmpty]="Numeric character references cannot be empty";messages[namedUnknown]="Named character references must be known";messages[numericDisallowed]="Numeric character references cannot be disallowed";messages[numericProhibited]="Numeric character references cannot be outside the permissible Unicode range";function parseEntities(value,options){var settings={},option,key;options||(options={});for(key in defaults)option=options[key],settings[key]=option??defaults[key];return (settings.position.indent||settings.position.start)&&(settings.indent=settings.position.indent||[],settings.position=settings.position.start),parse(value,settings)}function parse(value,settings){var additional=settings.additional,nonTerminated=settings.nonTerminated,handleText=settings.text,handleReference=settings.reference,handleWarning=settings.warning,textContext=settings.textContext,referenceContext=settings.referenceContext,warningContext=settings.warningContext,pos=settings.position,indent=settings.indent||[],length=value.length,index=0,lines=-1,column=pos.column||1,line=pos.line||1,queue="",result=[],entityCharacters,namedEntity,terminated,characters,character,reference,following,warning,reason,output,entity,begin,start,type,test,prev,next,diff,end;for(typeof additional=="string"&&(additional=additional.charCodeAt(0)),prev=now(),warning=handleWarning?parseError:noop,index--,length++;++index65535&&(reference-=65536,output+=fromCharCode(reference>>>10|55296),reference=56320|reference&1023),reference=output+fromCharCode(reference))):type!==name&&warning(numericEmpty,diff)),reference?(flush(),prev=now(),index=end-1,column+=end-start+1,result.push(reference),next=now(),next.offset++,handleReference&&handleReference.call(referenceContext,reference,{start:prev,end:next},value.slice(start-1,end)),prev=next):(characters=value.slice(start-1,end),queue+=characters,column+=characters.length,index=end-1);}else character===10&&(line++,lines++,column=0),character===character?(queue+=fromCharCode(character),column++):flush();return result.join("");function now(){return {line,column,offset:index+(pos.offset||0)}}function parseError(code,offset){var position=now();position.column+=offset,position.offset+=offset,handleWarning.call(warningContext,messages[code],position,code);}function flush(){queue&&(result.push(queue),handleText&&handleText.call(textContext,queue,{start:prev,end:now()}),queue="");}}function prohibited(code){return code>=55296&&code<=57343||code>1114111}function disallowed(code){return code>=1&&code<=8||code===11||code>=13&&code<=31||code>=127&&code<=159||code>=64976&&code<=65007||(code&65535)===65535||(code&65535)===65534}}});var require_prism_core=(0,chunk_JRLSWQMA/* __commonJS */.P)({"../../node_modules/refractor/node_modules/prismjs/components/prism-core.js"(exports,module){var _self=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var Prism=function(_self2){var lang=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,uniqueId=0,plainTextGrammar={},_={manual:_self2.Prism&&_self2.Prism.manual,disableWorkerMessageHandler:_self2.Prism&&_self2.Prism.disableWorkerMessageHandler,util:{encode:function encode(tokens){return tokens instanceof Token?new Token(tokens.type,encode(tokens.content),tokens.alias):Array.isArray(tokens)?tokens.map(encode):tokens.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(err){var src=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(err.stack)||[])[1];if(src){var scripts=document.getElementsByTagName("script");for(var i in scripts)if(scripts[i].src==src)return scripts[i]}return null}},isActive:function(element,className,defaultActivation){for(var no="no-"+className;element;){var classList=element.classList;if(classList.contains(className))return !0;if(classList.contains(no))return !1;element=element.parentElement;}return !!defaultActivation}},languages:{plain:plainTextGrammar,plaintext:plainTextGrammar,text:plainTextGrammar,txt:plainTextGrammar,extend:function(id,redef){var lang2=_.util.clone(_.languages[id]);for(var key in redef)lang2[key]=redef[key];return lang2},insertBefore:function(inside,before,insert,root){root=root||_.languages;var grammar=root[inside],ret={};for(var token in grammar)if(grammar.hasOwnProperty(token)){if(token==before)for(var newToken in insert)insert.hasOwnProperty(newToken)&&(ret[newToken]=insert[newToken]);insert.hasOwnProperty(token)||(ret[token]=grammar[token]);}var old=root[inside];return root[inside]=ret,_.languages.DFS(_.languages,function(key,value){value===old&&key!=inside&&(this[key]=ret);}),ret},DFS:function DFS(o,callback,type,visited){visited=visited||{};var objId=_.util.objId;for(var i in o)if(o.hasOwnProperty(i)){callback.call(o,i,o[i],type||i);var property=o[i],propertyType=_.util.type(property);propertyType==="Object"&&!visited[objId(property)]?(visited[objId(property)]=!0,DFS(property,callback,null,visited)):propertyType==="Array"&&!visited[objId(property)]&&(visited[objId(property)]=!0,DFS(property,callback,i,visited));}}},plugins:{},highlightAll:function(async,callback){_.highlightAllUnder(document,async,callback);},highlightAllUnder:function(container,async,callback){var env={callback,container,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};_.hooks.run("before-highlightall",env),env.elements=Array.prototype.slice.apply(env.container.querySelectorAll(env.selector)),_.hooks.run("before-all-elements-highlight",env);for(var i=0,element;element=env.elements[i++];)_.highlightElement(element,async===!0,env.callback);},highlightElement:function(element,async,callback){var language=_.util.getLanguage(element),grammar=_.languages[language];_.util.setLanguage(element,language);var parent=element.parentElement;parent&&parent.nodeName.toLowerCase()==="pre"&&_.util.setLanguage(parent,language);var code=element.textContent,env={element,language,grammar,code};function insertHighlightedCode(highlightedCode){env.highlightedCode=highlightedCode,_.hooks.run("before-insert",env),env.element.innerHTML=env.highlightedCode,_.hooks.run("after-highlight",env),_.hooks.run("complete",env),callback&&callback.call(env.element);}if(_.hooks.run("before-sanity-check",env),parent=env.element.parentElement,parent&&parent.nodeName.toLowerCase()==="pre"&&!parent.hasAttribute("tabindex")&&parent.setAttribute("tabindex","0"),!env.code){_.hooks.run("complete",env),callback&&callback.call(env.element);return}if(_.hooks.run("before-highlight",env),!env.grammar){insertHighlightedCode(_.util.encode(env.code));return}if(async&&_self2.Worker){var worker=new Worker(_.filename);worker.onmessage=function(evt){insertHighlightedCode(evt.data);},worker.postMessage(JSON.stringify({language:env.language,code:env.code,immediateClose:!0}));}else insertHighlightedCode(_.highlight(env.code,env.grammar,env.language));},highlight:function(text,grammar,language){var env={code:text,grammar,language};if(_.hooks.run("before-tokenize",env),!env.grammar)throw new Error('The language "'+env.language+'" has no grammar.');return env.tokens=_.tokenize(env.code,env.grammar),_.hooks.run("after-tokenize",env),Token.stringify(_.util.encode(env.tokens),env.language)},tokenize:function(text,grammar){var rest=grammar.rest;if(rest){for(var token in rest)grammar[token]=rest[token];delete grammar.rest;}var tokenList=new LinkedList;return addAfter(tokenList,tokenList.head,text),matchGrammar(text,tokenList,grammar,tokenList.head,0),toArray(tokenList)},hooks:{all:{},add:function(name,callback){var hooks=_.hooks.all;hooks[name]=hooks[name]||[],hooks[name].push(callback);},run:function(name,env){var callbacks=_.hooks.all[name];if(!(!callbacks||!callbacks.length))for(var i=0,callback;callback=callbacks[i++];)callback(env);}},Token};_self2.Prism=_;function Token(type,content,alias,matchedStr){this.type=type,this.content=content,this.alias=alias,this.length=(matchedStr||"").length|0;}Token.stringify=function stringify(o,language){if(typeof o=="string")return o;if(Array.isArray(o)){var s="";return o.forEach(function(e){s+=stringify(e,language);}),s}var env={type:o.type,content:stringify(o.content,language),tag:"span",classes:["token",o.type],attributes:{},language},aliases=o.alias;aliases&&(Array.isArray(aliases)?Array.prototype.push.apply(env.classes,aliases):env.classes.push(aliases)),_.hooks.run("wrap",env);var attributes="";for(var name in env.attributes)attributes+=" "+name+'="'+(env.attributes[name]||"").replace(/"/g,""")+'"';return "<"+env.tag+' class="'+env.classes.join(" ")+'"'+attributes+">"+env.content+""};function matchPattern(pattern,pos,text,lookbehind){pattern.lastIndex=pos;var match=pattern.exec(text);if(match&&lookbehind&&match[1]){var lookbehindLength=match[1].length;match.index+=lookbehindLength,match[0]=match[0].slice(lookbehindLength);}return match}function matchGrammar(text,tokenList,grammar,startNode,startPos,rematch){for(var token in grammar)if(!(!grammar.hasOwnProperty(token)||!grammar[token])){var patterns=grammar[token];patterns=Array.isArray(patterns)?patterns:[patterns];for(var j=0;j=rematch.reach);pos+=currentNode.value.length,currentNode=currentNode.next){var str=currentNode.value;if(tokenList.length>text.length)return;if(!(str instanceof Token)){var removeCount=1,match;if(greedy){if(match=matchPattern(pattern,pos,text,lookbehind),!match||match.index>=text.length)break;var from=match.index,to=match.index+match[0].length,p=pos;for(p+=currentNode.value.length;from>=p;)currentNode=currentNode.next,p+=currentNode.value.length;if(p-=currentNode.value.length,pos=p,currentNode.value instanceof Token)continue;for(var k=currentNode;k!==tokenList.tail&&(prematch.reach&&(rematch.reach=reach);var removeFrom=currentNode.prev;before&&(removeFrom=addAfter(tokenList,removeFrom,before),pos+=before.length),removeRange(tokenList,removeFrom,removeCount);var wrapped=new Token(token,inside?_.tokenize(matchStr,inside):matchStr,alias,matchStr);if(currentNode=addAfter(tokenList,removeFrom,wrapped),after&&addAfter(tokenList,currentNode,after),removeCount>1){var nestedRematch={cause:token+","+j,reach};matchGrammar(text,tokenList,grammar,currentNode.prev,pos,nestedRematch),rematch&&nestedRematch.reach>rematch.reach&&(rematch.reach=nestedRematch.reach);}}}}}}function LinkedList(){var head={value:null,prev:null,next:null},tail={value:null,prev:head,next:null};head.next=tail,this.head=head,this.tail=tail,this.length=0;}function addAfter(list,node,value){var next=node.next,newNode={value,prev:node,next};return node.next=newNode,next.prev=newNode,list.length++,newNode}function removeRange(list,node,count){for(var next=node.next,i=0;i>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+envVars),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};Prism2.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+envVars),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:insideString},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:commandAfterHeredoc}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:insideString},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:insideString.entity}}],environment:{pattern:RegExp("\\$?"+envVars),alias:"constant"},variable:insideString.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},commandAfterHeredoc.inside=Prism2.languages.bash;for(var toBeCopied=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],inside=insideString.variable[1].inside,i=0;i/g,function(){return /(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),flags)}Prism2.languages.insertBefore("javascript","keyword",{imports:{pattern:withId(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:Prism2.languages.javascript},exports:{pattern:withId(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:Prism2.languages.javascript}}),Prism2.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),Prism2.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),Prism2.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:withId(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var maybeClassNameTokens=["function","function-variable","method","method-variable","property-access"],i=0;i0)){var mutationEnd=findClosingBracket(/^\{$/,/^\}$/);if(mutationEnd===-1)continue;for(var i=currentIndex;i=0&&addAlias(varToken,"variable-input");}}}}});}}}); - - - -// EXTERNAL MODULE: ../../../node_modules/react/index.js -var react = __webpack_require__("../../../node_modules/react/index.js"); -// EXTERNAL MODULE: external "__STORYBOOK_MODULE_CLIENT_LOGGER__" -var external_STORYBOOK_MODULE_CLIENT_LOGGER_ = __webpack_require__("@storybook/client-logger"); -// EXTERNAL MODULE: ../../../node_modules/@storybook/theming/dist/index.mjs + 1 modules -var dist = __webpack_require__("../../../node_modules/@storybook/theming/dist/index.mjs"); -// EXTERNAL MODULE: external "__STORYBOOK_MODULE_GLOBAL__" -var external_STORYBOOK_MODULE_GLOBAL_ = __webpack_require__("@storybook/global"); -// EXTERNAL MODULE: ../../../node_modules/memoizerific/memoizerific.js -var memoizerific = __webpack_require__("../../../node_modules/memoizerific/memoizerific.js"); -var memoizerific_default = /*#__PURE__*/__webpack_require__.n(memoizerific); -// EXTERNAL MODULE: ../../../node_modules/react-dom/index.js -var react_dom = __webpack_require__("../../../node_modules/react-dom/index.js"); -;// CONCATENATED MODULE: ../../../node_modules/@storybook/components/dist/chunk-ELLS3HSY.mjs - - - - - - - - - - - - - - - - - - - - -var import_jsx=(0,chunk_JRLSWQMA/* __toESM */.f)(require_jsx()),jsx_default=import_jsx.default;var import_bash=(0,chunk_JRLSWQMA/* __toESM */.f)(require_bash()),bash_default=import_bash.default;var import_css=(0,chunk_JRLSWQMA/* __toESM */.f)(require_css()),css_default=import_css.default;var import_js_extras=(0,chunk_JRLSWQMA/* __toESM */.f)(require_js_extras()),js_extras_default=import_js_extras.default;var import_json=(0,chunk_JRLSWQMA/* __toESM */.f)(require_json()),json_default=import_json.default;var import_graphql=(0,chunk_JRLSWQMA/* __toESM */.f)(require_graphql()),graphql_default=import_graphql.default;var import_markup=(0,chunk_JRLSWQMA/* __toESM */.f)(require_markup()),markup_default=import_markup.default;var import_markdown=(0,chunk_JRLSWQMA/* __toESM */.f)(require_markdown()),markdown_default=import_markdown.default;var import_yaml=(0,chunk_JRLSWQMA/* __toESM */.f)(require_yaml()),yaml_default=import_yaml.default;var import_tsx=(0,chunk_JRLSWQMA/* __toESM */.f)(require_tsx()),tsx_default=import_tsx.default;var import_typescript=(0,chunk_JRLSWQMA/* __toESM */.f)(require_typescript()),typescript_default=import_typescript.default;function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return {};var target={},sourceKeys=Object.keys(source),key,i;for(i=0;i=0)&&(target[key]=source[key]);return target}function _objectWithoutProperties(source,excluded){if(source==null)return {};var target=_objectWithoutPropertiesLoose(source,excluded),key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key]);}return target}function _arrayLikeToArray(arr,len){(len==null||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=4)return [arr[0],arr[1],arr[2],arr[3],"".concat(arr[0],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[0]),"".concat(arr[1],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[1]),"".concat(arr[2],".").concat(arr[3]),"".concat(arr[3],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[1],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[1],".").concat(arr[3]),"".concat(arr[0],".").concat(arr[2],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[2],".").concat(arr[3]),"".concat(arr[0],".").concat(arr[3],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[3],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[0],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[0],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[2],".").concat(arr[0]),"".concat(arr[1],".").concat(arr[2],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[3],".").concat(arr[0]),"".concat(arr[1],".").concat(arr[3],".").concat(arr[2]),"".concat(arr[2],".").concat(arr[0],".").concat(arr[1]),"".concat(arr[2],".").concat(arr[0],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[1],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[1],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[3],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[3],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[0],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[0],".").concat(arr[2]),"".concat(arr[3],".").concat(arr[1],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[1],".").concat(arr[2]),"".concat(arr[3],".").concat(arr[2],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[2],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[1],".").concat(arr[2],".").concat(arr[3]),"".concat(arr[0],".").concat(arr[1],".").concat(arr[3],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[2],".").concat(arr[1],".").concat(arr[3]),"".concat(arr[0],".").concat(arr[2],".").concat(arr[3],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[3],".").concat(arr[1],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[3],".").concat(arr[2],".").concat(arr[1]),"".concat(arr[1],".").concat(arr[0],".").concat(arr[2],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[0],".").concat(arr[3],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[2],".").concat(arr[0],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[2],".").concat(arr[3],".").concat(arr[0]),"".concat(arr[1],".").concat(arr[3],".").concat(arr[0],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[3],".").concat(arr[2],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[0],".").concat(arr[1],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[0],".").concat(arr[3],".").concat(arr[1]),"".concat(arr[2],".").concat(arr[1],".").concat(arr[0],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[1],".").concat(arr[3],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[3],".").concat(arr[0],".").concat(arr[1]),"".concat(arr[2],".").concat(arr[3],".").concat(arr[1],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[0],".").concat(arr[1],".").concat(arr[2]),"".concat(arr[3],".").concat(arr[0],".").concat(arr[2],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[1],".").concat(arr[0],".").concat(arr[2]),"".concat(arr[3],".").concat(arr[1],".").concat(arr[2],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[2],".").concat(arr[0],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[2],".").concat(arr[1],".").concat(arr[0])]}var classNameCombinations={};function getClassNameCombinations(classNames){if(classNames.length===0||classNames.length===1)return classNames;var key=classNames.join(".");return classNameCombinations[key]||(classNameCombinations[key]=powerSetPermutations(classNames)),classNameCombinations[key]}function createStyleObject(classNames){var elementStyle=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},stylesheet=arguments.length>2?arguments[2]:void 0,nonTokenClassNames=classNames.filter(function(className){return className!=="token"}),classNamesCombinations=getClassNameCombinations(nonTokenClassNames);return classNamesCombinations.reduce(function(styleObject,className){return _objectSpread(_objectSpread({},styleObject),stylesheet[className])},elementStyle)}function createClassNameString(classNames){return classNames.join(" ")}function createChildren(stylesheet,useInlineStyles){var childrenCount=0;return function(children){return childrenCount+=1,children.map(function(child,i){return createElement({node:child,stylesheet,useInlineStyles,key:"code-segment-".concat(childrenCount,"-").concat(i)})})}}function createElement(_ref){var node=_ref.node,stylesheet=_ref.stylesheet,_ref$style=_ref.style,style=_ref$style===void 0?{}:_ref$style,useInlineStyles=_ref.useInlineStyles,key=_ref.key,properties=node.properties,type=node.type,TagName=node.tagName,value=node.value;if(type==="text")return value;if(TagName){var childrenCreator=createChildren(stylesheet,useInlineStyles),props;if(!useInlineStyles)props=_objectSpread(_objectSpread({},properties),{},{className:createClassNameString(properties.className)});else {var allStylesheetSelectors=Object.keys(stylesheet).reduce(function(classes,selector){return selector.split(".").forEach(function(className2){classes.includes(className2)||classes.push(className2);}),classes},[]),startingClassName=properties.className&&properties.className.includes("token")?["token"]:[],className=properties.className&&startingClassName.concat(properties.className.filter(function(className2){return !allStylesheetSelectors.includes(className2)}));props=_objectSpread(_objectSpread({},properties),{},{className:createClassNameString(className)||void 0,style:createStyleObject(properties.className,Object.assign({},properties.style,style),stylesheet)});}var children=childrenCreator(node.children);return react.createElement(TagName,_extends({key},props),children)}}var checkForListedLanguage_default=function(astGenerator,language){var langs=astGenerator.listLanguages();return langs.indexOf(language)!==-1};var _excluded=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function ownKeys2(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}function _objectSpread2(target){for(var i=1;i1&&arguments[1]!==void 0?arguments[1]:[],newTree=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],i=0;i2&&arguments[2]!==void 0?arguments[2]:[];return createLineElement({children:children2,lineNumber:lineNumber2,lineNumberStyle,largestLineNumber,showInlineLineNumbers,lineProps,className,showLineNumbers,wrapLongLines})}function createUnwrappedLine(children2,lineNumber2){if(showLineNumbers&&lineNumber2&&showInlineLineNumbers){var inlineLineNumberStyle=assembleLineNumberStyles(lineNumberStyle,lineNumber2,largestLineNumber);children2.unshift(getInlineLineNumber(lineNumber2,inlineLineNumberStyle));}return children2}function createLine(children2,lineNumber2){var className=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return wrapLines||className.length>0?createWrappedLine(children2,lineNumber2,className):createUnwrappedLine(children2,lineNumber2)}for(var _loop=function(){var node=tree[index],value=node.children[0].value,newLines=getNewLines(value);if(newLines){var splitValue=value.split(` -`);splitValue.forEach(function(text,i){var lineNumber2=showLineNumbers&&newTree.length+startingLineNumber,newChild={type:"text",value:"".concat(text,` -`)};if(i===0){var _children=tree.slice(lastLineBreakIndex+1,index).concat(createLineElement({children:[newChild],className:node.properties.className})),_line=createLine(_children,lineNumber2);newTree.push(_line);}else if(i===splitValue.length-1){var stringChild=tree[index+1]&&tree[index+1].children&&tree[index+1].children[0],lastLineInPreviousSpan={type:"text",value:"".concat(text)};if(stringChild){var newElem=createLineElement({children:[lastLineInPreviousSpan],className:node.properties.className});tree.splice(index+1,0,newElem);}else {var _children2=[lastLineInPreviousSpan],_line2=createLine(_children2,lineNumber2,node.properties.className);newTree.push(_line2);}}else {var _children3=[newChild],_line3=createLine(_children3,lineNumber2,node.properties.className);newTree.push(_line3);}}),lastLineBreakIndex=index;}index++;};index({position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",background:theme.background.content,zIndex:1})),ActionButton=dist/* styled */.I4.button(({theme})=>({margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:theme.color.defaultText,background:theme.background.content,fontSize:12,lineHeight:"16px",fontFamily:theme.typography.fonts.base,fontWeight:theme.typography.weight.bold,borderTop:`1px solid ${theme.appBorderColor}`,borderLeft:`1px solid ${theme.appBorderColor}`,marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:`1px solid ${theme.appBorderColor}`},"& + *":{borderLeft:`1px solid ${theme.appBorderColor}`,borderRadius:0},"&:focus":{boxShadow:`${theme.color.secondary} 0 -3px 0 0 inset`,outline:"0 none"}}),({disabled})=>disabled&&{cursor:"not-allowed",opacity:.5});ActionButton.displayName="ActionButton";var ActionBar=({actionItems,...props})=>react.createElement(Container,{...props},actionItems.map(({title,className,onClick,disabled},index)=>react.createElement(ActionButton,{key:index,className,onClick,disabled},title)));function _extends2(){return _extends2=Object.assign?Object.assign.bind():function(target){for(var i=1;irefs.forEach(ref=>$6ed0406888f73fc4$var$setRef(ref,node))}function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...refs){return (0,react.useCallback)($6ed0406888f73fc4$export$43e446d32b3d21af(...refs),refs)}var $5e63c961fc1ce211$export$8c6ed5c666ac1360=(0,react.forwardRef)((props,forwardedRef)=>{let{children,...slotProps}=props,childrenArray=react.Children.toArray(children),slottable=childrenArray.find($5e63c961fc1ce211$var$isSlottable);if(slottable){let newElement=slottable.props.children,newChildren=childrenArray.map(child=>child===slottable?react.Children.count(newElement)>1?react.Children.only(null):(0,react.isValidElement)(newElement)?newElement.props.children:null:child);return (0,react.createElement)($5e63c961fc1ce211$var$SlotClone,_extends4({},slotProps,{ref:forwardedRef}),(0,react.isValidElement)(newElement)?(0,react.cloneElement)(newElement,void 0,newChildren):null)}return (0,react.createElement)($5e63c961fc1ce211$var$SlotClone,_extends4({},slotProps,{ref:forwardedRef}),children)});$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName="Slot";var $5e63c961fc1ce211$var$SlotClone=(0,react.forwardRef)((props,forwardedRef)=>{let{children,...slotProps}=props;return (0,react.isValidElement)(children)?(0,react.cloneElement)(children,{...$5e63c961fc1ce211$var$mergeProps(slotProps,children.props),ref:forwardedRef?$6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef,children.ref):children.ref}):react.Children.count(children)>1?react.Children.only(null):null});$5e63c961fc1ce211$var$SlotClone.displayName="SlotClone";var $5e63c961fc1ce211$export$d9f1ccf0bdb05d45=({children})=>(0,react.createElement)(react.Fragment,null,children);function $5e63c961fc1ce211$var$isSlottable(child){return (0,react.isValidElement)(child)&&child.type===$5e63c961fc1ce211$export$d9f1ccf0bdb05d45}function $5e63c961fc1ce211$var$mergeProps(slotProps,childProps){let overrideProps={...childProps};for(let propName in childProps){let slotPropValue=slotProps[propName],childPropValue=childProps[propName];/^on[A-Z]/.test(propName)?slotPropValue&&childPropValue?overrideProps[propName]=(...args)=>{childPropValue(...args),slotPropValue(...args);}:slotPropValue&&(overrideProps[propName]=slotPropValue):propName==="style"?overrideProps[propName]={...slotPropValue,...childPropValue}:propName==="className"&&(overrideProps[propName]=[slotPropValue,childPropValue].filter(Boolean).join(" "));}return {...slotProps,...overrideProps}}var $8927f6f2acc4f386$var$NODES=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],$8927f6f2acc4f386$export$250ffa63cdc0d034=$8927f6f2acc4f386$var$NODES.reduce((primitive,node)=>{let Node=(0,react.forwardRef)((props,forwardedRef)=>{let{asChild,...primitiveProps}=props,Comp=asChild?$5e63c961fc1ce211$export$8c6ed5c666ac1360:node;return (0,react.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0;},[]),(0,react.createElement)(Comp,_extends3({},primitiveProps,{ref:forwardedRef}))});return Node.displayName=`Primitive.${node}`,{...primitive,[node]:Node}},{});var $9f79659886946c16$export$e5c5a5f917a5871c=globalThis?.document?react.useLayoutEffect:()=>{};function $fe963b355347cc68$export$3e6543de14f8614f(initialState,machine){return (0,react.useReducer)((state,event)=>{let nextState=machine[state][event];return nextState??state},initialState)}var $921a889cee6df7e8$export$99c2b779aa4e8b8b=props=>{let{present,children}=props,presence=$921a889cee6df7e8$var$usePresence(present),child=typeof children=="function"?children({present:presence.isPresent}):react.Children.only(children),ref=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(presence.ref,child.ref);return typeof children=="function"||presence.isPresent?(0,react.cloneElement)(child,{ref}):null};$921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName="Presence";function $921a889cee6df7e8$var$usePresence(present){let[node1,setNode]=(0,react.useState)(),stylesRef=(0,react.useRef)({}),prevPresentRef=(0,react.useRef)(present),prevAnimationNameRef=(0,react.useRef)("none"),initialState=present?"mounted":"unmounted",[state,send]=$fe963b355347cc68$export$3e6543de14f8614f(initialState,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return (0,react.useEffect)(()=>{let currentAnimationName=$921a889cee6df7e8$var$getAnimationName(stylesRef.current);prevAnimationNameRef.current=state==="mounted"?currentAnimationName:"none";},[state]),$9f79659886946c16$export$e5c5a5f917a5871c(()=>{let styles=stylesRef.current,wasPresent=prevPresentRef.current;if(wasPresent!==present){let prevAnimationName=prevAnimationNameRef.current,currentAnimationName=$921a889cee6df7e8$var$getAnimationName(styles);present?send("MOUNT"):currentAnimationName==="none"||styles?.display==="none"?send("UNMOUNT"):send(wasPresent&&prevAnimationName!==currentAnimationName?"ANIMATION_OUT":"UNMOUNT"),prevPresentRef.current=present;}},[present,send]),$9f79659886946c16$export$e5c5a5f917a5871c(()=>{if(node1){let handleAnimationEnd=event=>{let isCurrentAnimation=$921a889cee6df7e8$var$getAnimationName(stylesRef.current).includes(event.animationName);event.target===node1&&isCurrentAnimation&&(0,react_dom.flushSync)(()=>send("ANIMATION_END"));},handleAnimationStart=event=>{event.target===node1&&(prevAnimationNameRef.current=$921a889cee6df7e8$var$getAnimationName(stylesRef.current));};return node1.addEventListener("animationstart",handleAnimationStart),node1.addEventListener("animationcancel",handleAnimationEnd),node1.addEventListener("animationend",handleAnimationEnd),()=>{node1.removeEventListener("animationstart",handleAnimationStart),node1.removeEventListener("animationcancel",handleAnimationEnd),node1.removeEventListener("animationend",handleAnimationEnd);}}else send("ANIMATION_END");},[node1,send]),{isPresent:["mounted","unmountSuspended"].includes(state),ref:(0,react.useCallback)(node=>{node&&(stylesRef.current=getComputedStyle(node)),setNode(node);},[])}}function $921a889cee6df7e8$var$getAnimationName(styles){return styles?.animationName||"none"}function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName,createContextScopeDeps=[]){let defaultContexts=[];function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName,defaultContext){let BaseContext=(0,react.createContext)(defaultContext),index=defaultContexts.length;defaultContexts=[...defaultContexts,defaultContext];function Provider(props){let{scope,children,...context}=props,Context=scope?.[scopeName][index]||BaseContext,value=(0,react.useMemo)(()=>context,Object.values(context));return (0,react.createElement)(Context.Provider,{value},children)}function useContext$1(consumerName,scope){let Context=scope?.[scopeName][index]||BaseContext,context=(0,react.useContext)(Context);if(context)return context;if(defaultContext!==void 0)return defaultContext;throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``)}return Provider.displayName=rootComponentName+"Provider",[Provider,useContext$1]}let createScope=()=>{let scopeContexts=defaultContexts.map(defaultContext=>(0,react.createContext)(defaultContext));return function(scope){let contexts=scope?.[scopeName]||scopeContexts;return (0,react.useMemo)(()=>({[`__scope${scopeName}`]:{...scope,[scopeName]:contexts}}),[scope,contexts])}};return createScope.scopeName=scopeName,[$c512c27ab02ef895$export$fd42f52fd3ae1109,$c512c27ab02ef895$var$composeContextScopes(createScope,...createContextScopeDeps)]}function $c512c27ab02ef895$var$composeContextScopes(...scopes){let baseScope=scopes[0];if(scopes.length===1)return baseScope;let createScope1=()=>{let scopeHooks=scopes.map(createScope=>({useScope:createScope(),scopeName:createScope.scopeName}));return function(overrideScopes){let nextScopes1=scopeHooks.reduce((nextScopes,{useScope,scopeName})=>{let currentScope=useScope(overrideScopes)[`__scope${scopeName}`];return {...nextScopes,...currentScope}},{});return (0,react.useMemo)(()=>({[`__scope${baseScope.scopeName}`]:nextScopes1}),[nextScopes1])}};return createScope1.scopeName=baseScope.scopeName,createScope1}function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback){let callbackRef=(0,react.useRef)(callback);return (0,react.useEffect)(()=>{callbackRef.current=callback;}),(0,react.useMemo)(()=>(...args)=>{var _callbackRef$current;return (_callbackRef$current=callbackRef.current)===null||_callbackRef$current===void 0?void 0:_callbackRef$current.call(callbackRef,...args)},[])}var $f631663db3294ace$var$DirectionContext=(0,react.createContext)(void 0);function $f631663db3294ace$export$b39126d51d94e6f3(localDir){let globalDir=(0,react.useContext)($f631663db3294ace$var$DirectionContext);return localDir||globalDir||"ltr"}function $ae6933e535247d3d$export$7d15b64cf5a3a4c4(value,[min,max]){return Math.min(max,Math.max(min,value))}function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler,ourEventHandler,{checkForDefaultPrevented=!0}={}){return function(event){if(originalEventHandler?.(event),checkForDefaultPrevented===!1||!event.defaultPrevented)return ourEventHandler?.(event)}}function $6c2e24571c90391f$export$3e6543de14f8614f(initialState,machine){return (0,react.useReducer)((state,event)=>{let nextState=machine[state][event];return nextState??state},initialState)}var $57acba87d6e25586$var$SCROLL_AREA_NAME="ScrollArea",[$57acba87d6e25586$var$createScrollAreaContext,$57acba87d6e25586$export$488468afe3a6f2b1]=$c512c27ab02ef895$export$50c7b4e9d9f19c1($57acba87d6e25586$var$SCROLL_AREA_NAME),[$57acba87d6e25586$var$ScrollAreaProvider,$57acba87d6e25586$var$useScrollAreaContext]=$57acba87d6e25586$var$createScrollAreaContext($57acba87d6e25586$var$SCROLL_AREA_NAME),$57acba87d6e25586$export$ccf8d8d7bbf3c2cc=(0,react.forwardRef)((props,forwardedRef)=>{let{__scopeScrollArea,type="hover",dir,scrollHideDelay=600,...scrollAreaProps}=props,[scrollArea,setScrollArea]=(0,react.useState)(null),[viewport,setViewport]=(0,react.useState)(null),[content,setContent]=(0,react.useState)(null),[scrollbarX,setScrollbarX]=(0,react.useState)(null),[scrollbarY,setScrollbarY]=(0,react.useState)(null),[cornerWidth,setCornerWidth]=(0,react.useState)(0),[cornerHeight,setCornerHeight]=(0,react.useState)(0),[scrollbarXEnabled,setScrollbarXEnabled]=(0,react.useState)(!1),[scrollbarYEnabled,setScrollbarYEnabled]=(0,react.useState)(!1),composedRefs=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,node=>setScrollArea(node)),direction=$f631663db3294ace$export$b39126d51d94e6f3(dir);return (0,react.createElement)($57acba87d6e25586$var$ScrollAreaProvider,{scope:__scopeScrollArea,type,dir:direction,scrollHideDelay,scrollArea,viewport,onViewportChange:setViewport,content,onContentChange:setContent,scrollbarX,onScrollbarXChange:setScrollbarX,scrollbarXEnabled,onScrollbarXEnabledChange:setScrollbarXEnabled,scrollbarY,onScrollbarYChange:setScrollbarY,scrollbarYEnabled,onScrollbarYEnabledChange:setScrollbarYEnabled,onCornerWidthChange:setCornerWidth,onCornerHeightChange:setCornerHeight},(0,react.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends2({dir:direction},scrollAreaProps,{ref:composedRefs,style:{position:"relative","--radix-scroll-area-corner-width":cornerWidth+"px","--radix-scroll-area-corner-height":cornerHeight+"px",...props.style}})))}),$57acba87d6e25586$var$VIEWPORT_NAME="ScrollAreaViewport",$57acba87d6e25586$export$a21cbf9f11fca853=(0,react.forwardRef)((props,forwardedRef)=>{let{__scopeScrollArea,children,...viewportProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$VIEWPORT_NAME,__scopeScrollArea),ref=(0,react.useRef)(null),composedRefs=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,ref,context.onViewportChange);return (0,react.createElement)(react.Fragment,null,(0,react.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),(0,react.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends2({"data-radix-scroll-area-viewport":""},viewportProps,{ref:composedRefs,style:{overflowX:context.scrollbarXEnabled?"scroll":"hidden",overflowY:context.scrollbarYEnabled?"scroll":"hidden",...props.style}}),(0,react.createElement)("div",{ref:context.onContentChange,style:{minWidth:"100%",display:"table"}},children)))}),$57acba87d6e25586$var$SCROLLBAR_NAME="ScrollAreaScrollbar",$57acba87d6e25586$export$2fabd85d0eba3c57=(0,react.forwardRef)((props,forwardedRef)=>{let{forceMount,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,props.__scopeScrollArea),{onScrollbarXEnabledChange,onScrollbarYEnabledChange}=context,isHorizontal=props.orientation==="horizontal";return (0,react.useEffect)(()=>(isHorizontal?onScrollbarXEnabledChange(!0):onScrollbarYEnabledChange(!0),()=>{isHorizontal?onScrollbarXEnabledChange(!1):onScrollbarYEnabledChange(!1);}),[isHorizontal,onScrollbarXEnabledChange,onScrollbarYEnabledChange]),context.type==="hover"?(0,react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarHover,_extends2({},scrollbarProps,{ref:forwardedRef,forceMount})):context.type==="scroll"?(0,react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarScroll,_extends2({},scrollbarProps,{ref:forwardedRef,forceMount})):context.type==="auto"?(0,react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarAuto,_extends2({},scrollbarProps,{ref:forwardedRef,forceMount})):context.type==="always"?(0,react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarVisible,_extends2({},scrollbarProps,{ref:forwardedRef})):null}),$57acba87d6e25586$var$ScrollAreaScrollbarHover=(0,react.forwardRef)((props,forwardedRef)=>{let{forceMount,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,props.__scopeScrollArea),[visible,setVisible]=(0,react.useState)(!1);return (0,react.useEffect)(()=>{let scrollArea=context.scrollArea,hideTimer=0;if(scrollArea){let handlePointerEnter=()=>{window.clearTimeout(hideTimer),setVisible(!0);},handlePointerLeave=()=>{hideTimer=window.setTimeout(()=>setVisible(!1),context.scrollHideDelay);};return scrollArea.addEventListener("pointerenter",handlePointerEnter),scrollArea.addEventListener("pointerleave",handlePointerLeave),()=>{window.clearTimeout(hideTimer),scrollArea.removeEventListener("pointerenter",handlePointerEnter),scrollArea.removeEventListener("pointerleave",handlePointerLeave);}}},[context.scrollArea,context.scrollHideDelay]),(0,react.createElement)($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:forceMount||visible},(0,react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarAuto,_extends2({"data-state":visible?"visible":"hidden"},scrollbarProps,{ref:forwardedRef})))}),$57acba87d6e25586$var$ScrollAreaScrollbarScroll=(0,react.forwardRef)((props,forwardedRef)=>{let{forceMount,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,props.__scopeScrollArea),isHorizontal=props.orientation==="horizontal",debounceScrollEnd=$57acba87d6e25586$var$useDebounceCallback(()=>send("SCROLL_END"),100),[state,send]=$6c2e24571c90391f$export$3e6543de14f8614f("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return (0,react.useEffect)(()=>{if(state==="idle"){let hideTimer=window.setTimeout(()=>send("HIDE"),context.scrollHideDelay);return ()=>window.clearTimeout(hideTimer)}},[state,context.scrollHideDelay,send]),(0,react.useEffect)(()=>{let viewport=context.viewport,scrollDirection=isHorizontal?"scrollLeft":"scrollTop";if(viewport){let prevScrollPos=viewport[scrollDirection],handleScroll=()=>{let scrollPos=viewport[scrollDirection];prevScrollPos!==scrollPos&&(send("SCROLL"),debounceScrollEnd()),prevScrollPos=scrollPos;};return viewport.addEventListener("scroll",handleScroll),()=>viewport.removeEventListener("scroll",handleScroll)}},[context.viewport,isHorizontal,send,debounceScrollEnd]),(0,react.createElement)($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:forceMount||state!=="hidden"},(0,react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarVisible,_extends2({"data-state":state==="hidden"?"hidden":"visible"},scrollbarProps,{ref:forwardedRef,onPointerEnter:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerEnter,()=>send("POINTER_ENTER")),onPointerLeave:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerLeave,()=>send("POINTER_LEAVE"))})))}),$57acba87d6e25586$var$ScrollAreaScrollbarAuto=(0,react.forwardRef)((props,forwardedRef)=>{let context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,props.__scopeScrollArea),{forceMount,...scrollbarProps}=props,[visible,setVisible]=(0,react.useState)(!1),isHorizontal=props.orientation==="horizontal",handleResize=$57acba87d6e25586$var$useDebounceCallback(()=>{if(context.viewport){let isOverflowX=context.viewport.offsetWidth{let{orientation="vertical",...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,props.__scopeScrollArea),thumbRef=(0,react.useRef)(null),pointerOffsetRef=(0,react.useRef)(0),[sizes,setSizes]=(0,react.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),thumbRatio=$57acba87d6e25586$var$getThumbRatio(sizes.viewport,sizes.content),commonProps={...scrollbarProps,sizes,onSizesChange:setSizes,hasThumb:thumbRatio>0&&thumbRatio<1,onThumbChange:thumb=>thumbRef.current=thumb,onThumbPointerUp:()=>pointerOffsetRef.current=0,onThumbPointerDown:pointerPos=>pointerOffsetRef.current=pointerPos};function getScrollPosition(pointerPos,dir){return $57acba87d6e25586$var$getScrollPositionFromPointer(pointerPos,pointerOffsetRef.current,sizes,dir)}return orientation==="horizontal"?(0,react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarX,_extends2({},commonProps,{ref:forwardedRef,onThumbPositionChange:()=>{if(context.viewport&&thumbRef.current){let scrollPos=context.viewport.scrollLeft,offset=$57acba87d6e25586$var$getThumbOffsetFromScroll(scrollPos,sizes,context.dir);thumbRef.current.style.transform=`translate3d(${offset}px, 0, 0)`;}},onWheelScroll:scrollPos=>{context.viewport&&(context.viewport.scrollLeft=scrollPos);},onDragScroll:pointerPos=>{context.viewport&&(context.viewport.scrollLeft=getScrollPosition(pointerPos,context.dir));}})):orientation==="vertical"?(0,react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarY,_extends2({},commonProps,{ref:forwardedRef,onThumbPositionChange:()=>{if(context.viewport&&thumbRef.current){let scrollPos=context.viewport.scrollTop,offset=$57acba87d6e25586$var$getThumbOffsetFromScroll(scrollPos,sizes);thumbRef.current.style.transform=`translate3d(0, ${offset}px, 0)`;}},onWheelScroll:scrollPos=>{context.viewport&&(context.viewport.scrollTop=scrollPos);},onDragScroll:pointerPos=>{context.viewport&&(context.viewport.scrollTop=getScrollPosition(pointerPos));}})):null}),$57acba87d6e25586$var$ScrollAreaScrollbarX=(0,react.forwardRef)((props,forwardedRef)=>{let{sizes,onSizesChange,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,props.__scopeScrollArea),[computedStyle,setComputedStyle]=(0,react.useState)(),ref=(0,react.useRef)(null),composeRefs=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,ref,context.onScrollbarXChange);return (0,react.useEffect)(()=>{ref.current&&setComputedStyle(getComputedStyle(ref.current));},[ref]),(0,react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarImpl,_extends2({"data-orientation":"horizontal"},scrollbarProps,{ref:composeRefs,sizes,style:{bottom:0,left:context.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:context.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":$57acba87d6e25586$var$getThumbSize(sizes)+"px",...props.style},onThumbPointerDown:pointerPos=>props.onThumbPointerDown(pointerPos.x),onDragScroll:pointerPos=>props.onDragScroll(pointerPos.x),onWheelScroll:(event,maxScrollPos)=>{if(context.viewport){let scrollPos=context.viewport.scrollLeft+event.deltaX;props.onWheelScroll(scrollPos),$57acba87d6e25586$var$isScrollingWithinScrollbarBounds(scrollPos,maxScrollPos)&&event.preventDefault();}},onResize:()=>{ref.current&&context.viewport&&computedStyle&&onSizesChange({content:context.viewport.scrollWidth,viewport:context.viewport.offsetWidth,scrollbar:{size:ref.current.clientWidth,paddingStart:$57acba87d6e25586$var$toInt(computedStyle.paddingLeft),paddingEnd:$57acba87d6e25586$var$toInt(computedStyle.paddingRight)}});}}))}),$57acba87d6e25586$var$ScrollAreaScrollbarY=(0,react.forwardRef)((props,forwardedRef)=>{let{sizes,onSizesChange,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,props.__scopeScrollArea),[computedStyle,setComputedStyle]=(0,react.useState)(),ref=(0,react.useRef)(null),composeRefs=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,ref,context.onScrollbarYChange);return (0,react.useEffect)(()=>{ref.current&&setComputedStyle(getComputedStyle(ref.current));},[ref]),(0,react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarImpl,_extends2({"data-orientation":"vertical"},scrollbarProps,{ref:composeRefs,sizes,style:{top:0,right:context.dir==="ltr"?0:void 0,left:context.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":$57acba87d6e25586$var$getThumbSize(sizes)+"px",...props.style},onThumbPointerDown:pointerPos=>props.onThumbPointerDown(pointerPos.y),onDragScroll:pointerPos=>props.onDragScroll(pointerPos.y),onWheelScroll:(event,maxScrollPos)=>{if(context.viewport){let scrollPos=context.viewport.scrollTop+event.deltaY;props.onWheelScroll(scrollPos),$57acba87d6e25586$var$isScrollingWithinScrollbarBounds(scrollPos,maxScrollPos)&&event.preventDefault();}},onResize:()=>{ref.current&&context.viewport&&computedStyle&&onSizesChange({content:context.viewport.scrollHeight,viewport:context.viewport.offsetHeight,scrollbar:{size:ref.current.clientHeight,paddingStart:$57acba87d6e25586$var$toInt(computedStyle.paddingTop),paddingEnd:$57acba87d6e25586$var$toInt(computedStyle.paddingBottom)}});}}))}),[$57acba87d6e25586$var$ScrollbarProvider,$57acba87d6e25586$var$useScrollbarContext]=$57acba87d6e25586$var$createScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME),$57acba87d6e25586$var$ScrollAreaScrollbarImpl=(0,react.forwardRef)((props,forwardedRef)=>{let{__scopeScrollArea,sizes,hasThumb,onThumbChange,onThumbPointerUp,onThumbPointerDown,onThumbPositionChange,onDragScroll,onWheelScroll,onResize,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,__scopeScrollArea),[scrollbar,setScrollbar]=(0,react.useState)(null),composeRefs=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,node=>setScrollbar(node)),rectRef=(0,react.useRef)(null),prevWebkitUserSelectRef=(0,react.useRef)(""),viewport=context.viewport,maxScrollPos=sizes.content-sizes.viewport,handleWheelScroll=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onWheelScroll),handleThumbPositionChange=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onThumbPositionChange),handleResize=$57acba87d6e25586$var$useDebounceCallback(onResize,10);function handleDragScroll(event){if(rectRef.current){let x=event.clientX-rectRef.current.left,y=event.clientY-rectRef.current.top;onDragScroll({x,y});}}return (0,react.useEffect)(()=>{let handleWheel=event=>{let element=event.target;scrollbar?.contains(element)&&handleWheelScroll(event,maxScrollPos);};return document.addEventListener("wheel",handleWheel,{passive:!1}),()=>document.removeEventListener("wheel",handleWheel,{passive:!1})},[viewport,scrollbar,maxScrollPos,handleWheelScroll]),(0,react.useEffect)(handleThumbPositionChange,[sizes,handleThumbPositionChange]),$57acba87d6e25586$var$useResizeObserver(scrollbar,handleResize),$57acba87d6e25586$var$useResizeObserver(context.content,handleResize),(0,react.createElement)($57acba87d6e25586$var$ScrollbarProvider,{scope:__scopeScrollArea,scrollbar,hasThumb,onThumbChange:$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onThumbChange),onThumbPointerUp:$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onThumbPointerUp),onThumbPositionChange:handleThumbPositionChange,onThumbPointerDown:$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onThumbPointerDown)},(0,react.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends2({},scrollbarProps,{ref:composeRefs,style:{position:"absolute",...scrollbarProps.style},onPointerDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDown,event=>{event.button===0&&(event.target.setPointerCapture(event.pointerId),rectRef.current=scrollbar.getBoundingClientRect(),prevWebkitUserSelectRef.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",context.viewport&&(context.viewport.style.scrollBehavior="auto"),handleDragScroll(event));}),onPointerMove:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerMove,handleDragScroll),onPointerUp:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerUp,event=>{let element=event.target;element.hasPointerCapture(event.pointerId)&&element.releasePointerCapture(event.pointerId),document.body.style.webkitUserSelect=prevWebkitUserSelectRef.current,context.viewport&&(context.viewport.style.scrollBehavior=""),rectRef.current=null;})})))}),$57acba87d6e25586$var$THUMB_NAME="ScrollAreaThumb",$57acba87d6e25586$export$9fba1154677d7cd2=(0,react.forwardRef)((props,forwardedRef)=>{let{forceMount,...thumbProps}=props,scrollbarContext=$57acba87d6e25586$var$useScrollbarContext($57acba87d6e25586$var$THUMB_NAME,props.__scopeScrollArea);return (0,react.createElement)($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:forceMount||scrollbarContext.hasThumb},(0,react.createElement)($57acba87d6e25586$var$ScrollAreaThumbImpl,_extends2({ref:forwardedRef},thumbProps)))}),$57acba87d6e25586$var$ScrollAreaThumbImpl=(0,react.forwardRef)((props,forwardedRef)=>{let{__scopeScrollArea,style,...thumbProps}=props,scrollAreaContext=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$THUMB_NAME,__scopeScrollArea),scrollbarContext=$57acba87d6e25586$var$useScrollbarContext($57acba87d6e25586$var$THUMB_NAME,__scopeScrollArea),{onThumbPositionChange}=scrollbarContext,composedRef=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,node=>scrollbarContext.onThumbChange(node)),removeUnlinkedScrollListenerRef=(0,react.useRef)(),debounceScrollEnd=$57acba87d6e25586$var$useDebounceCallback(()=>{removeUnlinkedScrollListenerRef.current&&(removeUnlinkedScrollListenerRef.current(),removeUnlinkedScrollListenerRef.current=void 0);},100);return (0,react.useEffect)(()=>{let viewport=scrollAreaContext.viewport;if(viewport){let handleScroll=()=>{if(debounceScrollEnd(),!removeUnlinkedScrollListenerRef.current){let listener=$57acba87d6e25586$var$addUnlinkedScrollListener(viewport,onThumbPositionChange);removeUnlinkedScrollListenerRef.current=listener,onThumbPositionChange();}};return onThumbPositionChange(),viewport.addEventListener("scroll",handleScroll),()=>viewport.removeEventListener("scroll",handleScroll)}},[scrollAreaContext.viewport,debounceScrollEnd,onThumbPositionChange]),(0,react.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends2({"data-state":scrollbarContext.hasThumb?"visible":"hidden"},thumbProps,{ref:composedRef,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...style},onPointerDownCapture:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDownCapture,event=>{let thumbRect=event.target.getBoundingClientRect(),x=event.clientX-thumbRect.left,y=event.clientY-thumbRect.top;scrollbarContext.onThumbPointerDown({x,y});}),onPointerUp:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerUp,scrollbarContext.onThumbPointerUp)}))}),$57acba87d6e25586$var$CORNER_NAME="ScrollAreaCorner",$57acba87d6e25586$export$56969d565df7cc4b=(0,react.forwardRef)((props,forwardedRef)=>{let context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$CORNER_NAME,props.__scopeScrollArea),hasBothScrollbarsVisible=!!(context.scrollbarX&&context.scrollbarY);return context.type!=="scroll"&&hasBothScrollbarsVisible?(0,react.createElement)($57acba87d6e25586$var$ScrollAreaCornerImpl,_extends2({},props,{ref:forwardedRef})):null}),$57acba87d6e25586$var$ScrollAreaCornerImpl=(0,react.forwardRef)((props,forwardedRef)=>{let{__scopeScrollArea,...cornerProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$CORNER_NAME,__scopeScrollArea),[width1,setWidth]=(0,react.useState)(0),[height1,setHeight]=(0,react.useState)(0),hasSize=!!(width1&&height1);return $57acba87d6e25586$var$useResizeObserver(context.scrollbarX,()=>{var _context$scrollbarX;let height=((_context$scrollbarX=context.scrollbarX)===null||_context$scrollbarX===void 0?void 0:_context$scrollbarX.offsetHeight)||0;context.onCornerHeightChange(height),setHeight(height);}),$57acba87d6e25586$var$useResizeObserver(context.scrollbarY,()=>{var _context$scrollbarY;let width=((_context$scrollbarY=context.scrollbarY)===null||_context$scrollbarY===void 0?void 0:_context$scrollbarY.offsetWidth)||0;context.onCornerWidthChange(width),setWidth(width);}),hasSize?(0,react.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends2({},cornerProps,{ref:forwardedRef,style:{width:width1,height:height1,position:"absolute",right:context.dir==="ltr"?0:void 0,left:context.dir==="rtl"?0:void 0,bottom:0,...props.style}})):null});function $57acba87d6e25586$var$toInt(value){return value?parseInt(value,10):0}function $57acba87d6e25586$var$getThumbRatio(viewportSize,contentSize){let ratio=viewportSize/contentSize;return isNaN(ratio)?0:ratio}function $57acba87d6e25586$var$getThumbSize(sizes){let ratio=$57acba87d6e25586$var$getThumbRatio(sizes.viewport,sizes.content),scrollbarPadding=sizes.scrollbar.paddingStart+sizes.scrollbar.paddingEnd,thumbSize=(sizes.scrollbar.size-scrollbarPadding)*ratio;return Math.max(thumbSize,18)}function $57acba87d6e25586$var$getScrollPositionFromPointer(pointerPos,pointerOffset,sizes,dir="ltr"){let thumbSizePx=$57acba87d6e25586$var$getThumbSize(sizes),thumbCenter=thumbSizePx/2,offset=pointerOffset||thumbCenter,thumbOffsetFromEnd=thumbSizePx-offset,minPointerPos=sizes.scrollbar.paddingStart+offset,maxPointerPos=sizes.scrollbar.size-sizes.scrollbar.paddingEnd-thumbOffsetFromEnd,maxScrollPos=sizes.content-sizes.viewport,scrollRange=dir==="ltr"?[0,maxScrollPos]:[maxScrollPos*-1,0];return $57acba87d6e25586$var$linearScale([minPointerPos,maxPointerPos],scrollRange)(pointerPos)}function $57acba87d6e25586$var$getThumbOffsetFromScroll(scrollPos,sizes,dir="ltr"){let thumbSizePx=$57acba87d6e25586$var$getThumbSize(sizes),scrollbarPadding=sizes.scrollbar.paddingStart+sizes.scrollbar.paddingEnd,scrollbar=sizes.scrollbar.size-scrollbarPadding,maxScrollPos=sizes.content-sizes.viewport,maxThumbPos=scrollbar-thumbSizePx,scrollClampRange=dir==="ltr"?[0,maxScrollPos]:[maxScrollPos*-1,0],scrollWithoutMomentum=$ae6933e535247d3d$export$7d15b64cf5a3a4c4(scrollPos,scrollClampRange);return $57acba87d6e25586$var$linearScale([0,maxScrollPos],[0,maxThumbPos])(scrollWithoutMomentum)}function $57acba87d6e25586$var$linearScale(input,output){return value=>{if(input[0]===input[1]||output[0]===output[1])return output[0];let ratio=(output[1]-output[0])/(input[1]-input[0]);return output[0]+ratio*(value-input[0])}}function $57acba87d6e25586$var$isScrollingWithinScrollbarBounds(scrollPos,maxScrollPos){return scrollPos>0&&scrollPos{})=>{let prevPosition={left:node.scrollLeft,top:node.scrollTop},rAF=0;return function loop(){let position={left:node.scrollLeft,top:node.scrollTop},isHorizontalScroll=prevPosition.left!==position.left,isVerticalScroll=prevPosition.top!==position.top;(isHorizontalScroll||isVerticalScroll)&&handler(),prevPosition=position,rAF=window.requestAnimationFrame(loop);}(),()=>window.cancelAnimationFrame(rAF)};function $57acba87d6e25586$var$useDebounceCallback(callback,delay){let handleCallback=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback),debounceTimerRef=(0,react.useRef)(0);return (0,react.useEffect)(()=>()=>window.clearTimeout(debounceTimerRef.current),[]),(0,react.useCallback)(()=>{window.clearTimeout(debounceTimerRef.current),debounceTimerRef.current=window.setTimeout(handleCallback,delay);},[handleCallback,delay])}function $57acba87d6e25586$var$useResizeObserver(element,onResize){let handleResize=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onResize);$9f79659886946c16$export$e5c5a5f917a5871c(()=>{let rAF=0;if(element){let resizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(rAF),rAF=window.requestAnimationFrame(handleResize);});return resizeObserver.observe(element),()=>{window.cancelAnimationFrame(rAF),resizeObserver.unobserve(element);}}},[element,handleResize]);}var $57acba87d6e25586$export$be92b6f5f03c0fe9=$57acba87d6e25586$export$ccf8d8d7bbf3c2cc,$57acba87d6e25586$export$d5c6c08dc2d3ca7=$57acba87d6e25586$export$a21cbf9f11fca853,$57acba87d6e25586$export$9a4e88b92edfce6b=$57acba87d6e25586$export$2fabd85d0eba3c57,$57acba87d6e25586$export$6521433ed15a34db=$57acba87d6e25586$export$9fba1154677d7cd2,$57acba87d6e25586$export$ac61190d9fc311a9=$57acba87d6e25586$export$56969d565df7cc4b;var ScrollAreaRoot=(0,dist/* styled */.I4)($57acba87d6e25586$export$be92b6f5f03c0fe9)(({scrollbarsize,offset})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${scrollbarsize+offset}px`,"--radix-scroll-area-thumb-width":`${scrollbarsize}px`})),ScrollAreaViewport=(0,dist/* styled */.I4)($57acba87d6e25586$export$d5c6c08dc2d3ca7)({width:"100%",height:"100%"}),ScrollAreaScrollbar=(0,dist/* styled */.I4)($57acba87d6e25586$export$9a4e88b92edfce6b)(({offset,horizontal,vertical})=>({display:"flex",userSelect:"none",touchAction:"none",background:"transparent",transition:"all 0.2s ease-out",borderRadius:"var(--scrollbar-size)",'&[data-orientation="vertical"]':{width:"var(--scrollbar-size)",paddingRight:offset,marginTop:offset,marginBottom:horizontal==="true"&&vertical==="true"?0:offset},'&[data-orientation="horizontal"]':{flexDirection:"column",height:"var(--scrollbar-size)",paddingBottom:offset,marginLeft:offset,marginRight:horizontal==="true"&&vertical==="true"?0:offset}})),ScrollAreaThumb=(0,dist/* styled */.I4)($57acba87d6e25586$export$6521433ed15a34db)(({theme})=>({flex:1,background:theme.textMutedColor,opacity:.5,borderRadius:"var(--scrollbar-size)",position:"relative",transition:"opacity 0.2s ease-out","&:hover":{opacity:.8},"::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",width:"100%",height:"100%",minWidth:44,minHeight:44}})),ScrollArea=({children,horizontal=!1,vertical=!1,offset=2,scrollbarSize=6,className})=>react.createElement(ScrollAreaRoot,{scrollbarsize:scrollbarSize,offset,className},react.createElement(ScrollAreaViewport,null,children),horizontal&&react.createElement(ScrollAreaScrollbar,{orientation:"horizontal",offset,horizontal:horizontal.toString(),vertical:vertical.toString()},react.createElement(ScrollAreaThumb,null)),vertical&&react.createElement(ScrollAreaScrollbar,{orientation:"vertical",offset,horizontal:horizontal.toString(),vertical:vertical.toString()},react.createElement(ScrollAreaThumb,null)),horizontal&&vertical&&react.createElement($57acba87d6e25586$export$ac61190d9fc311a9,null));var{navigator: chunk_ELLS3HSY_navigator,document:document2,window:globalWindow}=external_STORYBOOK_MODULE_GLOBAL_.global;prism_light_default.registerLanguage("jsextra",js_extras_default);prism_light_default.registerLanguage("jsx",jsx_default);prism_light_default.registerLanguage("json",json_default);prism_light_default.registerLanguage("yml",yaml_default);prism_light_default.registerLanguage("md",markdown_default);prism_light_default.registerLanguage("bash",bash_default);prism_light_default.registerLanguage("css",css_default);prism_light_default.registerLanguage("html",markup_default);prism_light_default.registerLanguage("tsx",tsx_default);prism_light_default.registerLanguage("typescript",typescript_default);prism_light_default.registerLanguage("graphql",graphql_default);var themedSyntax=memoizerific_default()(2)(theme=>Object.entries(theme.code||{}).reduce((acc,[key,val])=>({...acc,[`* .${key}`]:val}),{})),copyToClipboard=createCopyToClipboardFunction();function createCopyToClipboardFunction(){return chunk_ELLS3HSY_navigator?.clipboard?text=>chunk_ELLS3HSY_navigator.clipboard.writeText(text):async text=>{let tmp=document2.createElement("TEXTAREA"),focus=document2.activeElement;tmp.value=text,document2.body.appendChild(tmp),tmp.select(),document2.execCommand("copy"),document2.body.removeChild(tmp),focus.focus();}}var Wrapper=dist/* styled */.I4.div(({theme})=>({position:"relative",overflow:"hidden",color:theme.color.defaultText}),({theme,bordered})=>bordered?{border:`1px solid ${theme.appBorderColor}`,borderRadius:theme.borderRadius,background:theme.background.content}:{},({showLineNumbers})=>showLineNumbers?{".react-syntax-highlighter-line-number::before":{content:"attr(data-line-number)"}}:{}),UnstyledScroller=({children,className})=>react.createElement(ScrollArea,{horizontal:!0,vertical:!0,className},children),Scroller=(0,dist/* styled */.I4)(UnstyledScroller)({position:"relative"},({theme})=>themedSyntax(theme)),Pre=dist/* styled */.I4.pre(({theme,padded})=>({display:"flex",justifyContent:"flex-start",margin:0,padding:padded?theme.layoutMargin:0})),Code=dist/* styled */.I4.div(({theme})=>({flex:1,paddingLeft:2,paddingRight:theme.layoutMargin,opacity:1})),processLineNumber=row=>{let children=[...row.children],lineNumberNode=children[0],lineNumber=lineNumberNode.children[0].value,processedLineNumberNode={...lineNumberNode,children:[],properties:{...lineNumberNode.properties,"data-line-number":lineNumber,style:{...lineNumberNode.properties.style,userSelect:"auto"}}};return children[0]=processedLineNumberNode,{...row,children}},defaultRenderer2=({rows,stylesheet,useInlineStyles})=>rows.map((node,i)=>createElement({node:processLineNumber(node),stylesheet,useInlineStyles,key:`code-segement${i}`})),wrapRenderer=(renderer,showLineNumbers)=>showLineNumbers?renderer?({rows,...rest})=>renderer({rows:rows.map(row=>processLineNumber(row)),...rest}):defaultRenderer2:renderer,SyntaxHighlighter2=({children,language="jsx",copyable=!1,bordered=!1,padded=!1,format=!0,formatter=null,className=null,showLineNumbers=!1,...rest})=>{if(typeof children!="string"||!children.trim())return null;let highlightableCode=formatter?formatter(format,children):children.trim(),[copied,setCopied]=(0,react.useState)(!1),onClick=(0,react.useCallback)(e=>{e.preventDefault(),copyToClipboard(highlightableCode).then(()=>{setCopied(!0),globalWindow.setTimeout(()=>setCopied(!1),1500);}).catch(external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.error);},[highlightableCode]),renderer=wrapRenderer(rest.renderer,showLineNumbers);return react.createElement(Wrapper,{bordered,padded,showLineNumbers,className},react.createElement(Scroller,null,react.createElement(prism_light_default,{padded:padded||bordered,language,showLineNumbers,showInlineLineNumbers:showLineNumbers,useInlineStyles:!1,PreTag:Pre,CodeTag:Code,lineNumberContainerStyle:{},...rest,renderer},highlightableCode)),copyable?react.createElement(ActionBar,{actionItems:[{title:copied?"Copied":"Copy",onClick}]}):null)};SyntaxHighlighter2.registerLanguage=(...args)=>prism_light_default.registerLanguage(...args);var syntaxhighlighter_default=SyntaxHighlighter2; - - - - -/***/ }), - -/***/ "../../../node_modules/@storybook/components/dist/chunk-JRLSWQMA.mjs": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ P: () => (/* binding */ __commonJS), -/* harmony export */ f: () => (/* binding */ __toESM) -/* harmony export */ }); -var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __commonJS=(cb,mod)=>function(){return mod||(0, cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)); - - - - -/***/ }), - -/***/ "../../../node_modules/@storybook/components/dist/chunk-NE5YGCQB.mjs": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ o4: () => (/* binding */ WithTooltipPure), -/* harmony export */ qZ: () => (/* binding */ auto), -/* harmony export */ vb: () => (/* binding */ WithToolTipState) -/* harmony export */ }); -/* harmony import */ var _chunk_JRLSWQMA_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("../../../node_modules/@storybook/components/dist/chunk-JRLSWQMA.mjs"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/react/index.js"); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../../node_modules/react-dom/index.js"); -/* harmony import */ var _storybook_theming__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("../../../node_modules/@storybook/theming/dist/index.mjs"); -/* harmony import */ var _storybook_theming__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("../../../node_modules/@storybook/theming/dist/chunk-ZGA76URP.mjs"); -/* harmony import */ var _storybook_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("@storybook/global"); -/* harmony import */ var _storybook_global__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_storybook_global__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var memoizerific__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("../../../node_modules/memoizerific/memoizerific.js"); -/* harmony import */ var memoizerific__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(memoizerific__WEBPACK_IMPORTED_MODULE_3__); - - - - - - - - - -var require_react_fast_compare=(0,_chunk_JRLSWQMA_mjs__WEBPACK_IMPORTED_MODULE_4__/* .__commonJS */ .P)({"../../node_modules/react-fast-compare/index.js"(exports,module){var hasElementType=typeof Element<"u",hasMap=typeof Map=="function",hasSet=typeof Set=="function",hasArrayBuffer=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function equal(a,b){if(a===b)return !0;if(a&&b&&typeof a=="object"&&typeof b=="object"){if(a.constructor!==b.constructor)return !1;var length,i,keys;if(Array.isArray(a)){if(length=a.length,length!=b.length)return !1;for(i=length;i--!==0;)if(!equal(a[i],b[i]))return !1;return !0}var it;if(hasMap&&a instanceof Map&&b instanceof Map){if(a.size!==b.size)return !1;for(it=a.entries();!(i=it.next()).done;)if(!b.has(i.value[0]))return !1;for(it=a.entries();!(i=it.next()).done;)if(!equal(i.value[1],b.get(i.value[0])))return !1;return !0}if(hasSet&&a instanceof Set&&b instanceof Set){if(a.size!==b.size)return !1;for(it=a.entries();!(i=it.next()).done;)if(!b.has(i.value[0]))return !1;return !0}if(hasArrayBuffer&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(b)){if(length=a.length,length!=b.length)return !1;for(i=length;i--!==0;)if(a[i]!==b[i])return !1;return !0}if(a.constructor===RegExp)return a.source===b.source&&a.flags===b.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof b.valueOf=="function")return a.valueOf()===b.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof b.toString=="function")return a.toString()===b.toString();if(keys=Object.keys(a),length=keys.length,length!==Object.keys(b).length)return !1;for(i=length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(b,keys[i]))return !1;if(hasElementType&&a instanceof Element)return !1;for(i=length;i--!==0;)if(!((keys[i]==="_owner"||keys[i]==="__v"||keys[i]==="__o")&&a.$$typeof)&&!equal(a[keys[i]],b[keys[i]]))return !1;return !0}return a!==a&&b!==b}module.exports=function(a,b){try{return equal(a,b)}catch(error){if((error.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw error}};}});function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return {};var target={},sourceKeys=Object.keys(source),key,i;for(i=0;i=0)&&(target[key]=source[key]);return target}function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i"u")return !1;var OwnElement=getWindow(node).ShadowRoot;return node instanceof OwnElement||node instanceof ShadowRoot}function applyStyles(_ref){var state=_ref.state;Object.keys(state.elements).forEach(function(name){var style=state.styles[name]||{},attributes=state.attributes[name]||{},element=state.elements[name];!isHTMLElement(element)||!getNodeName(element)||(Object.assign(element.style,style),Object.keys(attributes).forEach(function(name2){var value=attributes[name2];value===!1?element.removeAttribute(name2):element.setAttribute(name2,value===!0?"":value);}));});}function effect(_ref2){var state=_ref2.state,initialStyles={popper:{position:state.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(state.elements.popper.style,initialStyles.popper),state.styles=initialStyles,state.elements.arrow&&Object.assign(state.elements.arrow.style,initialStyles.arrow),function(){Object.keys(state.elements).forEach(function(name){var element=state.elements[name],attributes=state.attributes[name]||{},styleProperties=Object.keys(state.styles.hasOwnProperty(name)?state.styles[name]:initialStyles[name]),style=styleProperties.reduce(function(style2,property){return style2[property]="",style2},{});!isHTMLElement(element)||!getNodeName(element)||(Object.assign(element.style,style),Object.keys(attributes).forEach(function(attribute){element.removeAttribute(attribute);}));});}}var applyStyles_default={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect,requires:["computeStyles"]};function getBasePlacement(placement){return placement.split("-")[0]}var max=Math.max,min=Math.min,round=Math.round;function getUAString(){var uaData=navigator.userAgentData;return uaData!=null&&uaData.brands&&Array.isArray(uaData.brands)?uaData.brands.map(function(item){return item.brand+"/"+item.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return !/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(element,includeScale,isFixedStrategy){includeScale===void 0&&(includeScale=!1),isFixedStrategy===void 0&&(isFixedStrategy=!1);var clientRect=element.getBoundingClientRect(),scaleX=1,scaleY=1;includeScale&&isHTMLElement(element)&&(scaleX=element.offsetWidth>0&&round(clientRect.width)/element.offsetWidth||1,scaleY=element.offsetHeight>0&&round(clientRect.height)/element.offsetHeight||1);var _ref=isElement(element)?getWindow(element):window,visualViewport=_ref.visualViewport,addVisualOffsets=!isLayoutViewport()&&isFixedStrategy,x=(clientRect.left+(addVisualOffsets&&visualViewport?visualViewport.offsetLeft:0))/scaleX,y=(clientRect.top+(addVisualOffsets&&visualViewport?visualViewport.offsetTop:0))/scaleY,width=clientRect.width/scaleX,height=clientRect.height/scaleY;return {width,height,top:y,right:x+width,bottom:y+height,left:x,x,y}}function getLayoutRect(element){var clientRect=getBoundingClientRect(element),width=element.offsetWidth,height=element.offsetHeight;return Math.abs(clientRect.width-width)<=1&&(width=clientRect.width),Math.abs(clientRect.height-height)<=1&&(height=clientRect.height),{x:element.offsetLeft,y:element.offsetTop,width,height}}function contains(parent,child){var rootNode=child.getRootNode&&child.getRootNode();if(parent.contains(child))return !0;if(rootNode&&isShadowRoot(rootNode)){var next=child;do{if(next&&parent.isSameNode(next))return !0;next=next.parentNode||next.host;}while(next)}return !1}function getComputedStyle(element){return getWindow(element).getComputedStyle(element)}function isTableElement(element){return ["table","td","th"].indexOf(getNodeName(element))>=0}function getDocumentElement(element){return ((isElement(element)?element.ownerDocument:element.document)||window.document).documentElement}function getParentNode(element){return getNodeName(element)==="html"?element:element.assignedSlot||element.parentNode||(isShadowRoot(element)?element.host:null)||getDocumentElement(element)}function getTrueOffsetParent(element){return !isHTMLElement(element)||getComputedStyle(element).position==="fixed"?null:element.offsetParent}function getContainingBlock(element){var isFirefox=/firefox/i.test(getUAString()),isIE=/Trident/i.test(getUAString());if(isIE&&isHTMLElement(element)){var elementCss=getComputedStyle(element);if(elementCss.position==="fixed")return null}var currentNode=getParentNode(element);for(isShadowRoot(currentNode)&&(currentNode=currentNode.host);isHTMLElement(currentNode)&&["html","body"].indexOf(getNodeName(currentNode))<0;){var css=getComputedStyle(currentNode);if(css.transform!=="none"||css.perspective!=="none"||css.contain==="paint"||["transform","perspective"].indexOf(css.willChange)!==-1||isFirefox&&css.willChange==="filter"||isFirefox&&css.filter&&css.filter!=="none")return currentNode;currentNode=currentNode.parentNode;}return null}function getOffsetParent(element){for(var window2=getWindow(element),offsetParent=getTrueOffsetParent(element);offsetParent&&isTableElement(offsetParent)&&getComputedStyle(offsetParent).position==="static";)offsetParent=getTrueOffsetParent(offsetParent);return offsetParent&&(getNodeName(offsetParent)==="html"||getNodeName(offsetParent)==="body"&&getComputedStyle(offsetParent).position==="static")?window2:offsetParent||getContainingBlock(element)||window2}function getMainAxisFromPlacement(placement){return ["top","bottom"].indexOf(placement)>=0?"x":"y"}function within(min2,value,max2){return max(min2,min(value,max2))}function withinMaxClamp(min2,value,max2){var v=within(min2,value,max2);return v>max2?max2:v}function getFreshSideObject(){return {top:0,right:0,bottom:0,left:0}}function mergePaddingObject(paddingObject){return Object.assign({},getFreshSideObject(),paddingObject)}function expandToHashMap(value,keys){return keys.reduce(function(hashMap,key){return hashMap[key]=value,hashMap},{})}var toPaddingObject=function(padding,state){return padding=typeof padding=="function"?padding(Object.assign({},state.rects,{placement:state.placement})):padding,mergePaddingObject(typeof padding!="number"?padding:expandToHashMap(padding,basePlacements))};function arrow(_ref){var _state$modifiersData$,state=_ref.state,name=_ref.name,options=_ref.options,arrowElement=state.elements.arrow,popperOffsets2=state.modifiersData.popperOffsets,basePlacement=getBasePlacement(state.placement),axis=getMainAxisFromPlacement(basePlacement),isVertical=[left,right].indexOf(basePlacement)>=0,len=isVertical?"height":"width";if(!(!arrowElement||!popperOffsets2)){var paddingObject=toPaddingObject(options.padding,state),arrowRect=getLayoutRect(arrowElement),minProp=axis==="y"?top:left,maxProp=axis==="y"?bottom:right,endDiff=state.rects.reference[len]+state.rects.reference[axis]-popperOffsets2[axis]-state.rects.popper[len],startDiff=popperOffsets2[axis]-state.rects.reference[axis],arrowOffsetParent=getOffsetParent(arrowElement),clientSize=arrowOffsetParent?axis==="y"?arrowOffsetParent.clientHeight||0:arrowOffsetParent.clientWidth||0:0,centerToReference=endDiff/2-startDiff/2,min2=paddingObject[minProp],max2=clientSize-arrowRect[len]-paddingObject[maxProp],center=clientSize/2-arrowRect[len]/2+centerToReference,offset2=within(min2,center,max2),axisProp=axis;state.modifiersData[name]=(_state$modifiersData$={},_state$modifiersData$[axisProp]=offset2,_state$modifiersData$.centerOffset=offset2-center,_state$modifiersData$);}}function effect2(_ref2){var state=_ref2.state,options=_ref2.options,_options$element=options.element,arrowElement=_options$element===void 0?"[data-popper-arrow]":_options$element;arrowElement!=null&&(typeof arrowElement=="string"&&(arrowElement=state.elements.popper.querySelector(arrowElement),!arrowElement)||contains(state.elements.popper,arrowElement)&&(state.elements.arrow=arrowElement));}var arrow_default={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect2,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(placement){return placement.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(_ref,win){var x=_ref.x,y=_ref.y,dpr=win.devicePixelRatio||1;return {x:round(x*dpr)/dpr||0,y:round(y*dpr)/dpr||0}}function mapToStyles(_ref2){var _Object$assign2,popper2=_ref2.popper,popperRect=_ref2.popperRect,placement=_ref2.placement,variation=_ref2.variation,offsets=_ref2.offsets,position=_ref2.position,gpuAcceleration=_ref2.gpuAcceleration,adaptive=_ref2.adaptive,roundOffsets=_ref2.roundOffsets,isFixed=_ref2.isFixed,_offsets$x=offsets.x,x=_offsets$x===void 0?0:_offsets$x,_offsets$y=offsets.y,y=_offsets$y===void 0?0:_offsets$y,_ref3=typeof roundOffsets=="function"?roundOffsets({x,y}):{x,y};x=_ref3.x,y=_ref3.y;var hasX=offsets.hasOwnProperty("x"),hasY=offsets.hasOwnProperty("y"),sideX=left,sideY=top,win=window;if(adaptive){var offsetParent=getOffsetParent(popper2),heightProp="clientHeight",widthProp="clientWidth";if(offsetParent===getWindow(popper2)&&(offsetParent=getDocumentElement(popper2),getComputedStyle(offsetParent).position!=="static"&&position==="absolute"&&(heightProp="scrollHeight",widthProp="scrollWidth")),offsetParent=offsetParent,placement===top||(placement===left||placement===right)&&variation===end){sideY=bottom;var offsetY=isFixed&&offsetParent===win&&win.visualViewport?win.visualViewport.height:offsetParent[heightProp];y-=offsetY-popperRect.height,y*=gpuAcceleration?1:-1;}if(placement===left||(placement===top||placement===bottom)&&variation===end){sideX=right;var offsetX=isFixed&&offsetParent===win&&win.visualViewport?win.visualViewport.width:offsetParent[widthProp];x-=offsetX-popperRect.width,x*=gpuAcceleration?1:-1;}}var commonStyles=Object.assign({position},adaptive&&unsetSides),_ref4=roundOffsets===!0?roundOffsetsByDPR({x,y},getWindow(popper2)):{x,y};if(x=_ref4.x,y=_ref4.y,gpuAcceleration){var _Object$assign;return Object.assign({},commonStyles,(_Object$assign={},_Object$assign[sideY]=hasY?"0":"",_Object$assign[sideX]=hasX?"0":"",_Object$assign.transform=(win.devicePixelRatio||1)<=1?"translate("+x+"px, "+y+"px)":"translate3d("+x+"px, "+y+"px, 0)",_Object$assign))}return Object.assign({},commonStyles,(_Object$assign2={},_Object$assign2[sideY]=hasY?y+"px":"",_Object$assign2[sideX]=hasX?x+"px":"",_Object$assign2.transform="",_Object$assign2))}function computeStyles(_ref5){var state=_ref5.state,options=_ref5.options,_options$gpuAccelerat=options.gpuAcceleration,gpuAcceleration=_options$gpuAccelerat===void 0?!0:_options$gpuAccelerat,_options$adaptive=options.adaptive,adaptive=_options$adaptive===void 0?!0:_options$adaptive,_options$roundOffsets=options.roundOffsets,roundOffsets=_options$roundOffsets===void 0?!0:_options$roundOffsets,commonStyles={placement:getBasePlacement(state.placement),variation:getVariation(state.placement),popper:state.elements.popper,popperRect:state.rects.popper,gpuAcceleration,isFixed:state.options.strategy==="fixed"};state.modifiersData.popperOffsets!=null&&(state.styles.popper=Object.assign({},state.styles.popper,mapToStyles(Object.assign({},commonStyles,{offsets:state.modifiersData.popperOffsets,position:state.options.strategy,adaptive,roundOffsets})))),state.modifiersData.arrow!=null&&(state.styles.arrow=Object.assign({},state.styles.arrow,mapToStyles(Object.assign({},commonStyles,{offsets:state.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets})))),state.attributes.popper=Object.assign({},state.attributes.popper,{"data-popper-placement":state.placement});}var computeStyles_default={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:!0};function effect3(_ref){var state=_ref.state,instance=_ref.instance,options=_ref.options,_options$scroll=options.scroll,scroll=_options$scroll===void 0?!0:_options$scroll,_options$resize=options.resize,resize=_options$resize===void 0?!0:_options$resize,window2=getWindow(state.elements.popper),scrollParents=[].concat(state.scrollParents.reference,state.scrollParents.popper);return scroll&&scrollParents.forEach(function(scrollParent){scrollParent.addEventListener("scroll",instance.update,passive);}),resize&&window2.addEventListener("resize",instance.update,passive),function(){scroll&&scrollParents.forEach(function(scrollParent){scrollParent.removeEventListener("scroll",instance.update,passive);}),resize&&window2.removeEventListener("resize",instance.update,passive);}}var eventListeners_default={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:effect3,data:{}};var hash={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(placement){return placement.replace(/left|right|bottom|top/g,function(matched){return hash[matched]})}var hash2={start:"end",end:"start"};function getOppositeVariationPlacement(placement){return placement.replace(/start|end/g,function(matched){return hash2[matched]})}function getWindowScroll(node){var win=getWindow(node),scrollLeft=win.pageXOffset,scrollTop=win.pageYOffset;return {scrollLeft,scrollTop}}function getWindowScrollBarX(element){return getBoundingClientRect(getDocumentElement(element)).left+getWindowScroll(element).scrollLeft}function getViewportRect(element,strategy){var win=getWindow(element),html=getDocumentElement(element),visualViewport=win.visualViewport,width=html.clientWidth,height=html.clientHeight,x=0,y=0;if(visualViewport){width=visualViewport.width,height=visualViewport.height;var layoutViewport=isLayoutViewport();(layoutViewport||!layoutViewport&&strategy==="fixed")&&(x=visualViewport.offsetLeft,y=visualViewport.offsetTop);}return {width,height,x:x+getWindowScrollBarX(element),y}}function getDocumentRect(element){var _element$ownerDocumen,html=getDocumentElement(element),winScroll=getWindowScroll(element),body=(_element$ownerDocumen=element.ownerDocument)==null?void 0:_element$ownerDocumen.body,width=max(html.scrollWidth,html.clientWidth,body?body.scrollWidth:0,body?body.clientWidth:0),height=max(html.scrollHeight,html.clientHeight,body?body.scrollHeight:0,body?body.clientHeight:0),x=-winScroll.scrollLeft+getWindowScrollBarX(element),y=-winScroll.scrollTop;return getComputedStyle(body||html).direction==="rtl"&&(x+=max(html.clientWidth,body?body.clientWidth:0)-width),{width,height,x,y}}function isScrollParent(element){var _getComputedStyle=getComputedStyle(element),overflow=_getComputedStyle.overflow,overflowX=_getComputedStyle.overflowX,overflowY=_getComputedStyle.overflowY;return /auto|scroll|overlay|hidden/.test(overflow+overflowY+overflowX)}function getScrollParent(node){return ["html","body","#document"].indexOf(getNodeName(node))>=0?node.ownerDocument.body:isHTMLElement(node)&&isScrollParent(node)?node:getScrollParent(getParentNode(node))}function listScrollParents(element,list){var _element$ownerDocumen;list===void 0&&(list=[]);var scrollParent=getScrollParent(element),isBody=scrollParent===((_element$ownerDocumen=element.ownerDocument)==null?void 0:_element$ownerDocumen.body),win=getWindow(scrollParent),target=isBody?[win].concat(win.visualViewport||[],isScrollParent(scrollParent)?scrollParent:[]):scrollParent,updatedList=list.concat(target);return isBody?updatedList:updatedList.concat(listScrollParents(getParentNode(target)))}function rectToClientRect(rect){return Object.assign({},rect,{left:rect.x,top:rect.y,right:rect.x+rect.width,bottom:rect.y+rect.height})}function getInnerBoundingClientRect(element,strategy){var rect=getBoundingClientRect(element,!1,strategy==="fixed");return rect.top=rect.top+element.clientTop,rect.left=rect.left+element.clientLeft,rect.bottom=rect.top+element.clientHeight,rect.right=rect.left+element.clientWidth,rect.width=element.clientWidth,rect.height=element.clientHeight,rect.x=rect.left,rect.y=rect.top,rect}function getClientRectFromMixedType(element,clippingParent,strategy){return clippingParent===viewport?rectToClientRect(getViewportRect(element,strategy)):isElement(clippingParent)?getInnerBoundingClientRect(clippingParent,strategy):rectToClientRect(getDocumentRect(getDocumentElement(element)))}function getClippingParents(element){var clippingParents2=listScrollParents(getParentNode(element)),canEscapeClipping=["absolute","fixed"].indexOf(getComputedStyle(element).position)>=0,clipperElement=canEscapeClipping&&isHTMLElement(element)?getOffsetParent(element):element;return isElement(clipperElement)?clippingParents2.filter(function(clippingParent){return isElement(clippingParent)&&contains(clippingParent,clipperElement)&&getNodeName(clippingParent)!=="body"}):[]}function getClippingRect(element,boundary,rootBoundary,strategy){var mainClippingParents=boundary==="clippingParents"?getClippingParents(element):[].concat(boundary),clippingParents2=[].concat(mainClippingParents,[rootBoundary]),firstClippingParent=clippingParents2[0],clippingRect=clippingParents2.reduce(function(accRect,clippingParent){var rect=getClientRectFromMixedType(element,clippingParent,strategy);return accRect.top=max(rect.top,accRect.top),accRect.right=min(rect.right,accRect.right),accRect.bottom=min(rect.bottom,accRect.bottom),accRect.left=max(rect.left,accRect.left),accRect},getClientRectFromMixedType(element,firstClippingParent,strategy));return clippingRect.width=clippingRect.right-clippingRect.left,clippingRect.height=clippingRect.bottom-clippingRect.top,clippingRect.x=clippingRect.left,clippingRect.y=clippingRect.top,clippingRect}function computeOffsets(_ref){var reference2=_ref.reference,element=_ref.element,placement=_ref.placement,basePlacement=placement?getBasePlacement(placement):null,variation=placement?getVariation(placement):null,commonX=reference2.x+reference2.width/2-element.width/2,commonY=reference2.y+reference2.height/2-element.height/2,offsets;switch(basePlacement){case top:offsets={x:commonX,y:reference2.y-element.height};break;case bottom:offsets={x:commonX,y:reference2.y+reference2.height};break;case right:offsets={x:reference2.x+reference2.width,y:commonY};break;case left:offsets={x:reference2.x-element.width,y:commonY};break;default:offsets={x:reference2.x,y:reference2.y};}var mainAxis=basePlacement?getMainAxisFromPlacement(basePlacement):null;if(mainAxis!=null){var len=mainAxis==="y"?"height":"width";switch(variation){case start:offsets[mainAxis]=offsets[mainAxis]-(reference2[len]/2-element[len]/2);break;case end:offsets[mainAxis]=offsets[mainAxis]+(reference2[len]/2-element[len]/2);break;}}return offsets}function detectOverflow(state,options){options===void 0&&(options={});var _options=options,_options$placement=_options.placement,placement=_options$placement===void 0?state.placement:_options$placement,_options$strategy=_options.strategy,strategy=_options$strategy===void 0?state.strategy:_options$strategy,_options$boundary=_options.boundary,boundary=_options$boundary===void 0?clippingParents:_options$boundary,_options$rootBoundary=_options.rootBoundary,rootBoundary=_options$rootBoundary===void 0?viewport:_options$rootBoundary,_options$elementConte=_options.elementContext,elementContext=_options$elementConte===void 0?popper:_options$elementConte,_options$altBoundary=_options.altBoundary,altBoundary=_options$altBoundary===void 0?!1:_options$altBoundary,_options$padding=_options.padding,padding=_options$padding===void 0?0:_options$padding,paddingObject=mergePaddingObject(typeof padding!="number"?padding:expandToHashMap(padding,basePlacements)),altContext=elementContext===popper?reference:popper,popperRect=state.rects.popper,element=state.elements[altBoundary?altContext:elementContext],clippingClientRect=getClippingRect(isElement(element)?element:element.contextElement||getDocumentElement(state.elements.popper),boundary,rootBoundary,strategy),referenceClientRect=getBoundingClientRect(state.elements.reference),popperOffsets2=computeOffsets({reference:referenceClientRect,element:popperRect,strategy:"absolute",placement}),popperClientRect=rectToClientRect(Object.assign({},popperRect,popperOffsets2)),elementClientRect=elementContext===popper?popperClientRect:referenceClientRect,overflowOffsets={top:clippingClientRect.top-elementClientRect.top+paddingObject.top,bottom:elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom,left:clippingClientRect.left-elementClientRect.left+paddingObject.left,right:elementClientRect.right-clippingClientRect.right+paddingObject.right},offsetData=state.modifiersData.offset;if(elementContext===popper&&offsetData){var offset2=offsetData[placement];Object.keys(overflowOffsets).forEach(function(key){var multiply=[right,bottom].indexOf(key)>=0?1:-1,axis=[top,bottom].indexOf(key)>=0?"y":"x";overflowOffsets[key]+=offset2[axis]*multiply;});}return overflowOffsets}function computeAutoPlacement(state,options){options===void 0&&(options={});var _options=options,placement=_options.placement,boundary=_options.boundary,rootBoundary=_options.rootBoundary,padding=_options.padding,flipVariations=_options.flipVariations,_options$allowedAutoP=_options.allowedAutoPlacements,allowedAutoPlacements=_options$allowedAutoP===void 0?placements:_options$allowedAutoP,variation=getVariation(placement),placements2=variation?flipVariations?variationPlacements:variationPlacements.filter(function(placement2){return getVariation(placement2)===variation}):basePlacements,allowedPlacements=placements2.filter(function(placement2){return allowedAutoPlacements.indexOf(placement2)>=0});allowedPlacements.length===0&&(allowedPlacements=placements2);var overflows=allowedPlacements.reduce(function(acc,placement2){return acc[placement2]=detectOverflow(state,{placement:placement2,boundary,rootBoundary,padding})[getBasePlacement(placement2)],acc},{});return Object.keys(overflows).sort(function(a,b){return overflows[a]-overflows[b]})}function getExpandedFallbackPlacements(placement){if(getBasePlacement(placement)===auto)return [];var oppositePlacement=getOppositePlacement(placement);return [getOppositeVariationPlacement(placement),oppositePlacement,getOppositeVariationPlacement(oppositePlacement)]}function flip(_ref){var state=_ref.state,options=_ref.options,name=_ref.name;if(!state.modifiersData[name]._skip){for(var _options$mainAxis=options.mainAxis,checkMainAxis=_options$mainAxis===void 0?!0:_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=_options$altAxis===void 0?!0:_options$altAxis,specifiedFallbackPlacements=options.fallbackPlacements,padding=options.padding,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,_options$flipVariatio=options.flipVariations,flipVariations=_options$flipVariatio===void 0?!0:_options$flipVariatio,allowedAutoPlacements=options.allowedAutoPlacements,preferredPlacement=state.options.placement,basePlacement=getBasePlacement(preferredPlacement),isBasePlacement=basePlacement===preferredPlacement,fallbackPlacements=specifiedFallbackPlacements||(isBasePlacement||!flipVariations?[getOppositePlacement(preferredPlacement)]:getExpandedFallbackPlacements(preferredPlacement)),placements2=[preferredPlacement].concat(fallbackPlacements).reduce(function(acc,placement2){return acc.concat(getBasePlacement(placement2)===auto?computeAutoPlacement(state,{placement:placement2,boundary,rootBoundary,padding,flipVariations,allowedAutoPlacements}):placement2)},[]),referenceRect=state.rects.reference,popperRect=state.rects.popper,checksMap=new Map,makeFallbackChecks=!0,firstFittingPlacement=placements2[0],i=0;i=0,len=isVertical?"width":"height",overflow=detectOverflow(state,{placement,boundary,rootBoundary,altBoundary,padding}),mainVariationSide=isVertical?isStartVariation?right:left:isStartVariation?bottom:top;referenceRect[len]>popperRect[len]&&(mainVariationSide=getOppositePlacement(mainVariationSide));var altVariationSide=getOppositePlacement(mainVariationSide),checks=[];if(checkMainAxis&&checks.push(overflow[_basePlacement]<=0),checkAltAxis&&checks.push(overflow[mainVariationSide]<=0,overflow[altVariationSide]<=0),checks.every(function(check){return check})){firstFittingPlacement=placement,makeFallbackChecks=!1;break}checksMap.set(placement,checks);}if(makeFallbackChecks)for(var numberOfChecks=flipVariations?3:1,_loop=function(_i2){var fittingPlacement=placements2.find(function(placement2){var checks2=checksMap.get(placement2);if(checks2)return checks2.slice(0,_i2).every(function(check){return check})});if(fittingPlacement)return firstFittingPlacement=fittingPlacement,"break"},_i=numberOfChecks;_i>0;_i--){var _ret=_loop(_i);if(_ret==="break")break}state.placement!==firstFittingPlacement&&(state.modifiersData[name]._skip=!0,state.placement=firstFittingPlacement,state.reset=!0);}}var flip_default={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(overflow,rect,preventedOffsets){return preventedOffsets===void 0&&(preventedOffsets={x:0,y:0}),{top:overflow.top-rect.height-preventedOffsets.y,right:overflow.right-rect.width+preventedOffsets.x,bottom:overflow.bottom-rect.height+preventedOffsets.y,left:overflow.left-rect.width-preventedOffsets.x}}function isAnySideFullyClipped(overflow){return [top,right,bottom,left].some(function(side){return overflow[side]>=0})}function hide(_ref){var state=_ref.state,name=_ref.name,referenceRect=state.rects.reference,popperRect=state.rects.popper,preventedOffsets=state.modifiersData.preventOverflow,referenceOverflow=detectOverflow(state,{elementContext:"reference"}),popperAltOverflow=detectOverflow(state,{altBoundary:!0}),referenceClippingOffsets=getSideOffsets(referenceOverflow,referenceRect),popperEscapeOffsets=getSideOffsets(popperAltOverflow,popperRect,preventedOffsets),isReferenceHidden=isAnySideFullyClipped(referenceClippingOffsets),hasPopperEscaped=isAnySideFullyClipped(popperEscapeOffsets);state.modifiersData[name]={referenceClippingOffsets,popperEscapeOffsets,isReferenceHidden,hasPopperEscaped},state.attributes.popper=Object.assign({},state.attributes.popper,{"data-popper-reference-hidden":isReferenceHidden,"data-popper-escaped":hasPopperEscaped});}var hide_default={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(placement,rects,offset2){var basePlacement=getBasePlacement(placement),invertDistance=[left,top].indexOf(basePlacement)>=0?-1:1,_ref=typeof offset2=="function"?offset2(Object.assign({},rects,{placement})):offset2,skidding=_ref[0],distance=_ref[1];return skidding=skidding||0,distance=(distance||0)*invertDistance,[left,right].indexOf(basePlacement)>=0?{x:distance,y:skidding}:{x:skidding,y:distance}}function offset(_ref2){var state=_ref2.state,options=_ref2.options,name=_ref2.name,_options$offset=options.offset,offset2=_options$offset===void 0?[0,0]:_options$offset,data=placements.reduce(function(acc,placement){return acc[placement]=distanceAndSkiddingToXY(placement,state.rects,offset2),acc},{}),_data$state$placement=data[state.placement],x=_data$state$placement.x,y=_data$state$placement.y;state.modifiersData.popperOffsets!=null&&(state.modifiersData.popperOffsets.x+=x,state.modifiersData.popperOffsets.y+=y),state.modifiersData[name]=data;}var offset_default={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(_ref){var state=_ref.state,name=_ref.name;state.modifiersData[name]=computeOffsets({reference:state.rects.reference,element:state.rects.popper,strategy:"absolute",placement:state.placement});}var popperOffsets_default={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(axis){return axis==="x"?"y":"x"}function preventOverflow(_ref){var state=_ref.state,options=_ref.options,name=_ref.name,_options$mainAxis=options.mainAxis,checkMainAxis=_options$mainAxis===void 0?!0:_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=_options$altAxis===void 0?!1:_options$altAxis,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,padding=options.padding,_options$tether=options.tether,tether=_options$tether===void 0?!0:_options$tether,_options$tetherOffset=options.tetherOffset,tetherOffset=_options$tetherOffset===void 0?0:_options$tetherOffset,overflow=detectOverflow(state,{boundary,rootBoundary,padding,altBoundary}),basePlacement=getBasePlacement(state.placement),variation=getVariation(state.placement),isBasePlacement=!variation,mainAxis=getMainAxisFromPlacement(basePlacement),altAxis=getAltAxis(mainAxis),popperOffsets2=state.modifiersData.popperOffsets,referenceRect=state.rects.reference,popperRect=state.rects.popper,tetherOffsetValue=typeof tetherOffset=="function"?tetherOffset(Object.assign({},state.rects,{placement:state.placement})):tetherOffset,normalizedTetherOffsetValue=typeof tetherOffsetValue=="number"?{mainAxis:tetherOffsetValue,altAxis:tetherOffsetValue}:Object.assign({mainAxis:0,altAxis:0},tetherOffsetValue),offsetModifierState=state.modifiersData.offset?state.modifiersData.offset[state.placement]:null,data={x:0,y:0};if(popperOffsets2){if(checkMainAxis){var _offsetModifierState$,mainSide=mainAxis==="y"?top:left,altSide=mainAxis==="y"?bottom:right,len=mainAxis==="y"?"height":"width",offset2=popperOffsets2[mainAxis],min2=offset2+overflow[mainSide],max2=offset2-overflow[altSide],additive=tether?-popperRect[len]/2:0,minLen=variation===start?referenceRect[len]:popperRect[len],maxLen=variation===start?-popperRect[len]:-referenceRect[len],arrowElement=state.elements.arrow,arrowRect=tether&&arrowElement?getLayoutRect(arrowElement):{width:0,height:0},arrowPaddingObject=state.modifiersData["arrow#persistent"]?state.modifiersData["arrow#persistent"].padding:getFreshSideObject(),arrowPaddingMin=arrowPaddingObject[mainSide],arrowPaddingMax=arrowPaddingObject[altSide],arrowLen=within(0,referenceRect[len],arrowRect[len]),minOffset=isBasePlacement?referenceRect[len]/2-additive-arrowLen-arrowPaddingMin-normalizedTetherOffsetValue.mainAxis:minLen-arrowLen-arrowPaddingMin-normalizedTetherOffsetValue.mainAxis,maxOffset=isBasePlacement?-referenceRect[len]/2+additive+arrowLen+arrowPaddingMax+normalizedTetherOffsetValue.mainAxis:maxLen+arrowLen+arrowPaddingMax+normalizedTetherOffsetValue.mainAxis,arrowOffsetParent=state.elements.arrow&&getOffsetParent(state.elements.arrow),clientOffset=arrowOffsetParent?mainAxis==="y"?arrowOffsetParent.clientTop||0:arrowOffsetParent.clientLeft||0:0,offsetModifierValue=(_offsetModifierState$=offsetModifierState?.[mainAxis])!=null?_offsetModifierState$:0,tetherMin=offset2+minOffset-offsetModifierValue-clientOffset,tetherMax=offset2+maxOffset-offsetModifierValue,preventedOffset=within(tether?min(min2,tetherMin):min2,offset2,tether?max(max2,tetherMax):max2);popperOffsets2[mainAxis]=preventedOffset,data[mainAxis]=preventedOffset-offset2;}if(checkAltAxis){var _offsetModifierState$2,_mainSide=mainAxis==="x"?top:left,_altSide=mainAxis==="x"?bottom:right,_offset=popperOffsets2[altAxis],_len=altAxis==="y"?"height":"width",_min=_offset+overflow[_mainSide],_max=_offset-overflow[_altSide],isOriginSide=[top,left].indexOf(basePlacement)!==-1,_offsetModifierValue=(_offsetModifierState$2=offsetModifierState?.[altAxis])!=null?_offsetModifierState$2:0,_tetherMin=isOriginSide?_min:_offset-referenceRect[_len]-popperRect[_len]-_offsetModifierValue+normalizedTetherOffsetValue.altAxis,_tetherMax=isOriginSide?_offset+referenceRect[_len]+popperRect[_len]-_offsetModifierValue-normalizedTetherOffsetValue.altAxis:_max,_preventedOffset=tether&&isOriginSide?withinMaxClamp(_tetherMin,_offset,_tetherMax):within(tether?_tetherMin:_min,_offset,tether?_tetherMax:_max);popperOffsets2[altAxis]=_preventedOffset,data[altAxis]=_preventedOffset-_offset;}state.modifiersData[name]=data;}}var preventOverflow_default={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(element){return {scrollLeft:element.scrollLeft,scrollTop:element.scrollTop}}function getNodeScroll(node){return node===getWindow(node)||!isHTMLElement(node)?getWindowScroll(node):getHTMLElementScroll(node)}function isElementScaled(element){var rect=element.getBoundingClientRect(),scaleX=round(rect.width)/element.offsetWidth||1,scaleY=round(rect.height)/element.offsetHeight||1;return scaleX!==1||scaleY!==1}function getCompositeRect(elementOrVirtualElement,offsetParent,isFixed){isFixed===void 0&&(isFixed=!1);var isOffsetParentAnElement=isHTMLElement(offsetParent),offsetParentIsScaled=isHTMLElement(offsetParent)&&isElementScaled(offsetParent),documentElement=getDocumentElement(offsetParent),rect=getBoundingClientRect(elementOrVirtualElement,offsetParentIsScaled,isFixed),scroll={scrollLeft:0,scrollTop:0},offsets={x:0,y:0};return (isOffsetParentAnElement||!isOffsetParentAnElement&&!isFixed)&&((getNodeName(offsetParent)!=="body"||isScrollParent(documentElement))&&(scroll=getNodeScroll(offsetParent)),isHTMLElement(offsetParent)?(offsets=getBoundingClientRect(offsetParent,!0),offsets.x+=offsetParent.clientLeft,offsets.y+=offsetParent.clientTop):documentElement&&(offsets.x=getWindowScrollBarX(documentElement))),{x:rect.left+scroll.scrollLeft-offsets.x,y:rect.top+scroll.scrollTop-offsets.y,width:rect.width,height:rect.height}}function order(modifiers){var map=new Map,visited=new Set,result=[];modifiers.forEach(function(modifier){map.set(modifier.name,modifier);});function sort(modifier){visited.add(modifier.name);var requires=[].concat(modifier.requires||[],modifier.requiresIfExists||[]);requires.forEach(function(dep){if(!visited.has(dep)){var depModifier=map.get(dep);depModifier&&sort(depModifier);}}),result.push(modifier);}return modifiers.forEach(function(modifier){visited.has(modifier.name)||sort(modifier);}),result}function orderModifiers(modifiers){var orderedModifiers=order(modifiers);return modifierPhases.reduce(function(acc,phase){return acc.concat(orderedModifiers.filter(function(modifier){return modifier.phase===phase}))},[])}function debounce(fn2){var pending;return function(){return pending||(pending=new Promise(function(resolve){Promise.resolve().then(function(){pending=void 0,resolve(fn2());});})),pending}}function mergeByName(modifiers){var merged=modifiers.reduce(function(merged2,current){var existing=merged2[current.name];return merged2[current.name]=existing?Object.assign({},existing,current,{options:Object.assign({},existing.options,current.options),data:Object.assign({},existing.data,current.data)}):current,merged2},{});return Object.keys(merged).map(function(key){return merged[key]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return !args.some(function(element){return !(element&&typeof element.getBoundingClientRect=="function")})}function popperGenerator(generatorOptions){generatorOptions===void 0&&(generatorOptions={});var _generatorOptions=generatorOptions,_generatorOptions$def=_generatorOptions.defaultModifiers,defaultModifiers2=_generatorOptions$def===void 0?[]:_generatorOptions$def,_generatorOptions$def2=_generatorOptions.defaultOptions,defaultOptions=_generatorOptions$def2===void 0?DEFAULT_OPTIONS:_generatorOptions$def2;return function(reference2,popper2,options){options===void 0&&(options=defaultOptions);var state={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,defaultOptions),modifiersData:{},elements:{reference:reference2,popper:popper2},attributes:{},styles:{}},effectCleanupFns=[],isDestroyed=!1,instance={state,setOptions:function(setOptionsAction){var options2=typeof setOptionsAction=="function"?setOptionsAction(state.options):setOptionsAction;cleanupModifierEffects(),state.options=Object.assign({},defaultOptions,state.options,options2),state.scrollParents={reference:isElement(reference2)?listScrollParents(reference2):reference2.contextElement?listScrollParents(reference2.contextElement):[],popper:listScrollParents(popper2)};var orderedModifiers=orderModifiers(mergeByName([].concat(defaultModifiers2,state.options.modifiers)));return state.orderedModifiers=orderedModifiers.filter(function(m){return m.enabled}),runModifierEffects(),instance.update()},forceUpdate:function(){if(!isDestroyed){var _state$elements=state.elements,reference3=_state$elements.reference,popper3=_state$elements.popper;if(areValidElements(reference3,popper3)){state.rects={reference:getCompositeRect(reference3,getOffsetParent(popper3),state.options.strategy==="fixed"),popper:getLayoutRect(popper3)},state.reset=!1,state.placement=state.options.placement,state.orderedModifiers.forEach(function(modifier){return state.modifiersData[modifier.name]=Object.assign({},modifier.data)});for(var index=0;indexactual.split("-")[0]===requests?value:fallback),ArrowSpacing=8,Arrow=_storybook_theming__WEBPACK_IMPORTED_MODULE_5__/* .styled */ .I4.div({position:"absolute",borderStyle:"solid"},({placement})=>{let x=0,y=0;switch(!0){case(placement.startsWith("left")||placement.startsWith("right")):{y=8;break}case(placement.startsWith("top")||placement.startsWith("bottom")):{x=8;break}}return {transform:`translate3d(${x}px, ${y}px, 0px)`}},({theme,color,placement})=>({bottom:`${match("top",placement,`${ArrowSpacing*-1}px`,"auto")}`,top:`${match("bottom",placement,`${ArrowSpacing*-1}px`,"auto")}`,right:`${match("left",placement,`${ArrowSpacing*-1}px`,"auto")}`,left:`${match("right",placement,`${ArrowSpacing*-1}px`,"auto")}`,borderBottomWidth:`${match("top",placement,"0",ArrowSpacing)}px`,borderTopWidth:`${match("bottom",placement,"0",ArrowSpacing)}px`,borderRightWidth:`${match("left",placement,"0",ArrowSpacing)}px`,borderLeftWidth:`${match("right",placement,"0",ArrowSpacing)}px`,borderTopColor:match("top",placement,theme.color[color]||color||theme.base==="light"?(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_6__/* .lightenColor */ .Zt)(theme.background.app):theme.background.app,"transparent"),borderBottomColor:match("bottom",placement,theme.color[color]||color||theme.base==="light"?(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_6__/* .lightenColor */ .Zt)(theme.background.app):theme.background.app,"transparent"),borderLeftColor:match("left",placement,theme.color[color]||color||theme.base==="light"?(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_6__/* .lightenColor */ .Zt)(theme.background.app):theme.background.app,"transparent"),borderRightColor:match("right",placement,theme.color[color]||color||theme.base==="light"?(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_6__/* .lightenColor */ .Zt)(theme.background.app):theme.background.app,"transparent")})),Wrapper=_storybook_theming__WEBPACK_IMPORTED_MODULE_5__/* .styled */ .I4.div(({hidden})=>({display:hidden?"none":"inline-block",zIndex:2147483647}),({theme,color,hasChrome})=>hasChrome?{background:theme.color[color]||color||theme.base==="light"?(0,_storybook_theming__WEBPACK_IMPORTED_MODULE_6__/* .lightenColor */ .Zt)(theme.background.app):theme.background.app,filter:` - drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) - drop-shadow(0 1px 3px rgba(0,0,0,0.1)) - `,borderRadius:theme.appBorderRadius,fontSize:theme.typography.size.s1}:{}),Tooltip=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(({placement,hasChrome,children,arrowProps,tooltipRef,color,withArrows,...props},ref)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wrapper,{"data-testid":"tooltip",hasChrome,ref,...props,color},hasChrome&&withArrows&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(Arrow,{placement,...arrowProps,color}),children));Tooltip.displayName="Tooltip";Tooltip.defaultProps={color:void 0,tooltipRef:void 0,hasChrome:!0,placement:"top",arrowProps:{}};var {document:document2}=_storybook_global__WEBPACK_IMPORTED_MODULE_2__.global,TargetContainer=_storybook_theming__WEBPACK_IMPORTED_MODULE_5__/* .styled */ .I4.div` - display: inline-block; - cursor: ${props=>props.trigger==="hover"||props.trigger.includes("hover")?"default":"pointer"}; -`,TargetSvgContainer=_storybook_theming__WEBPACK_IMPORTED_MODULE_5__/* .styled */ .I4.g` - cursor: ${props=>props.trigger==="hover"||props.trigger.includes("hover")?"default":"pointer"}; -`,WithTooltipPure=({svg,trigger,closeOnOutsideClick,placement,hasChrome,withArrows,offset:offset2,tooltip,children,closeOnTriggerHidden,mutationObserverOptions,closeOnClick,tooltipShown,onVisibilityChange,defaultVisible,delayHide,visible,interactive,delayShow,modifiers,strategy,followCursor,onVisibleChange,...props})=>{let Container=svg?TargetSvgContainer:TargetContainer,{getArrowProps,getTooltipProps,setTooltipRef,setTriggerRef,visible:isVisible,state}=usePopperTooltip({trigger,placement,defaultVisible:defaultVisible??tooltipShown,delayHide,interactive,closeOnOutsideClick:closeOnOutsideClick??closeOnClick,closeOnTriggerHidden,onVisibleChange:_isVisible=>{onVisibilityChange?.(_isVisible),onVisibleChange?.(_isVisible);},delayShow,followCursor,mutationObserverOptions,visible,offset:offset2},{modifiers,strategy}),tooltipComponent=react__WEBPACK_IMPORTED_MODULE_0__.createElement(Tooltip,{placement:state?.placement,ref:setTooltipRef,hasChrome,arrowProps:getArrowProps(),withArrows,...getTooltipProps()},typeof tooltip=="function"?tooltip({onHide:()=>onVisibleChange(!1)}):tooltip);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Container,{trigger,ref:setTriggerRef,...props},children),isVisible&&react_dom__WEBPACK_IMPORTED_MODULE_1__.createPortal(tooltipComponent,document2.body))};WithTooltipPure.defaultProps={svg:!1,trigger:"click",closeOnOutsideClick:!1,placement:"top",modifiers:[{name:"preventOverflow",options:{padding:8}},{name:"offset",options:{offset:[8,8]}},{name:"arrow",options:{padding:8}}],hasChrome:!0,defaultVisible:!1};var WithToolTipState=({startOpen=!1,onVisibleChange:onChange,...rest})=>{let[tooltipShown,setTooltipShown]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(startOpen),onVisibilityChange=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(visibility=>{onChange&&onChange(visibility)===!1||setTooltipShown(visibility);},[onChange]);return (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{let hide2=()=>onVisibilityChange(!1);document2.addEventListener("keydown",hide2,!1);let iframes=Array.from(document2.getElementsByTagName("iframe")),unbinders=[];return iframes.forEach(iframe=>{let bind=()=>{try{iframe.contentWindow.document&&(iframe.contentWindow.document.addEventListener("click",hide2),unbinders.push(()=>{try{iframe.contentWindow.document.removeEventListener("click",hide2);}catch{}}));}catch{}};bind(),iframe.addEventListener("load",bind),unbinders.push(()=>{iframe.removeEventListener("load",bind);});}),()=>{document2.removeEventListener("keydown",hide2),unbinders.forEach(unbind=>{unbind();});}}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(WithTooltipPure,{...rest,visible:tooltipShown,onVisibleChange:onVisibilityChange})}; - - - - -/***/ }), - -/***/ "../../../node_modules/@storybook/components/dist/index.mjs": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - Cy: () => (/* binding */ Code), - Df: () => (/* binding */ ErrorFormatter), - px: () => (/* binding */ FlexBar), - lV: () => (/* binding */ Form), - H2: () => (/* binding */ H2), - H3: () => (/* binding */ H3), - K0: () => (/* binding */ IconButton), - Tg: () => (/* binding */ IconButtonSkeleton), - FI: () => (/* binding */ Icons), - N_: () => (/* binding */ Link2), - aH: () => (/* binding */ Loader), - dL: () => (/* binding */ ResetWrapper), - bF: () => (/* binding */ SyntaxHighlighter2), - _j: () => (/* binding */ TabsState), - _: () => (/* binding */ TooltipNote), - kR: () => (/* binding */ WithTooltip), - o4: () => (/* binding */ WithTooltipPure), - GP: () => (/* binding */ Zoom), - zb: () => (/* binding */ codeCommon), - dK: () => (/* binding */ components2), - createCopyToClipboardFunction: () => (/* reexport */ chunk_ELLS3HSY/* createCopyToClipboardFunction */.zH), - jZ: () => (/* binding */ getStoryHref), - mc: () => (/* binding */ nameSpaceClassNames), - YV: () => (/* binding */ withReset) -}); - -// UNUSED EXPORTS: A, ActionBar, AddonPanel, Badge, Bar, Blockquote, Button, ClipboardCode, DL, Div, DocumentWrapper, H1, H4, H5, H6, HR, Img, LI, ListItem, OL, P, Placeholder, Pre, ScrollArea, Separator, Spaced, Span, StorybookIcon, StorybookLogo, Symbols, TT, TabBar, TabButton, TabWrapper, Table, Tabs, TooltipLinkList, TooltipMessage, UL, icons, interleaveSeparators, resetComponents - -// EXTERNAL MODULE: ../../../node_modules/@storybook/components/dist/chunk-ELLS3HSY.mjs + 14 modules -var chunk_ELLS3HSY = __webpack_require__("../../../node_modules/@storybook/components/dist/chunk-ELLS3HSY.mjs"); -// EXTERNAL MODULE: ../../../node_modules/@storybook/components/dist/chunk-NE5YGCQB.mjs -var chunk_NE5YGCQB = __webpack_require__("../../../node_modules/@storybook/components/dist/chunk-NE5YGCQB.mjs"); -// EXTERNAL MODULE: ../../../node_modules/react/index.js -var react = __webpack_require__("../../../node_modules/react/index.js"); -// EXTERNAL MODULE: ../../../node_modules/@storybook/theming/dist/index.mjs + 1 modules -var dist = __webpack_require__("../../../node_modules/@storybook/theming/dist/index.mjs"); -// EXTERNAL MODULE: ../../../node_modules/@storybook/theming/dist/chunk-ZGA76URP.mjs -var chunk_ZGA76URP = __webpack_require__("../../../node_modules/@storybook/theming/dist/chunk-ZGA76URP.mjs"); -;// CONCATENATED MODULE: ../../../node_modules/use-resize-observer/dist/bundle.esm.js - - -// This could've been more streamlined with internal state instead of abusing -// refs to such extent, but then composing hooks and components could not opt out of unnecessary renders. -function useResolvedElement(subscriber, refOrElement) { - var lastReportRef = (0,react.useRef)(null); - var refOrElementRef = (0,react.useRef)(null); - refOrElementRef.current = refOrElement; - var cbElementRef = (0,react.useRef)(null); // Calling re-evaluation after each render without using a dep array, - // as the ref object's current value could've changed since the last render. - - (0,react.useEffect)(function () { - evaluateSubscription(); - }); - var evaluateSubscription = (0,react.useCallback)(function () { - var cbElement = cbElementRef.current; - var refOrElement = refOrElementRef.current; // Ugly ternary. But smaller than an if-else block. - - var element = cbElement ? cbElement : refOrElement ? refOrElement instanceof Element ? refOrElement : refOrElement.current : null; - - if (lastReportRef.current && lastReportRef.current.element === element && lastReportRef.current.subscriber === subscriber) { - return; - } - - if (lastReportRef.current && lastReportRef.current.cleanup) { - lastReportRef.current.cleanup(); - } - - lastReportRef.current = { - element: element, - subscriber: subscriber, - // Only calling the subscriber, if there's an actual element to report. - // Setting cleanup to undefined unless a subscriber returns one, as an existing cleanup function would've been just called. - cleanup: element ? subscriber(element) : undefined - }; - }, [subscriber]); // making sure we call the cleanup function on unmount - - (0,react.useEffect)(function () { - return function () { - if (lastReportRef.current && lastReportRef.current.cleanup) { - lastReportRef.current.cleanup(); - lastReportRef.current = null; - } - }; - }, []); - return (0,react.useCallback)(function (element) { - cbElementRef.current = element; - evaluateSubscription(); - }, [evaluateSubscription]); -} - -// We're only using the first element of the size sequences, until future versions of the spec solidify on how -// exactly it'll be used for fragments in multi-column scenarios: -// From the spec: -// > The box size properties are exposed as FrozenArray in order to support elements that have multiple fragments, -// > which occur in multi-column scenarios. However the current definitions of content rect and border box do not -// > mention how those boxes are affected by multi-column layout. In this spec, there will only be a single -// > ResizeObserverSize returned in the FrozenArray, which will correspond to the dimensions of the first column. -// > A future version of this spec will extend the returned FrozenArray to contain the per-fragment size information. -// (https://drafts.csswg.org/resize-observer/#resize-observer-entry-interface) -// -// Also, testing these new box options revealed that in both Chrome and FF everything is returned in the callback, -// regardless of the "box" option. -// The spec states the following on this: -// > This does not have any impact on which box dimensions are returned to the defined callback when the event -// > is fired, it solely defines which box the author wishes to observe layout changes on. -// (https://drafts.csswg.org/resize-observer/#resize-observer-interface) -// I'm not exactly clear on what this means, especially when you consider a later section stating the following: -// > This section is non-normative. An author may desire to observe more than one CSS box. -// > In this case, author will need to use multiple ResizeObservers. -// (https://drafts.csswg.org/resize-observer/#resize-observer-interface) -// Which is clearly not how current browser implementations behave, and seems to contradict the previous quote. -// For this reason I decided to only return the requested size, -// even though it seems we have access to results for all box types. -// This also means that we get to keep the current api, being able to return a simple { width, height } pair, -// regardless of box option. -function extractSize(entry, boxProp, sizeType) { - if (!entry[boxProp]) { - if (boxProp === "contentBoxSize") { - // The dimensions in `contentBoxSize` and `contentRect` are equivalent according to the spec. - // See the 6th step in the description for the RO algorithm: - // https://drafts.csswg.org/resize-observer/#create-and-populate-resizeobserverentry-h - // > Set this.contentRect to logical this.contentBoxSize given target and observedBox of "content-box". - // In real browser implementations of course these objects differ, but the width/height values should be equivalent. - return entry.contentRect[sizeType === "inlineSize" ? "width" : "height"]; - } - - return undefined; - } // A couple bytes smaller than calling Array.isArray() and just as effective here. - - - return entry[boxProp][0] ? entry[boxProp][0][sizeType] : // TS complains about this, because the RO entry type follows the spec and does not reflect Firefox's current - // behaviour of returning objects instead of arrays for `borderBoxSize` and `contentBoxSize`. - // @ts-ignore - entry[boxProp][sizeType]; -} - -function useResizeObserver(opts) { - if (opts === void 0) { - opts = {}; - } - - // Saving the callback as a ref. With this, I don't need to put onResize in the - // effect dep array, and just passing in an anonymous function without memoising - // will not reinstantiate the hook's ResizeObserver. - var onResize = opts.onResize; - var onResizeRef = (0,react.useRef)(undefined); - onResizeRef.current = onResize; - var round = opts.round || Math.round; // Using a single instance throughout the hook's lifetime - - var resizeObserverRef = (0,react.useRef)(); - - var _useState = (0,react.useState)({ - width: undefined, - height: undefined - }), - size = _useState[0], - setSize = _useState[1]; // In certain edge cases the RO might want to report a size change just after - // the component unmounted. - - - var didUnmount = (0,react.useRef)(false); - (0,react.useEffect)(function () { - didUnmount.current = false; - return function () { - didUnmount.current = true; - }; - }, []); // Using a ref to track the previous width / height to avoid unnecessary renders. - - var previous = (0,react.useRef)({ - width: undefined, - height: undefined - }); // This block is kinda like a useEffect, only it's called whenever a new - // element could be resolved based on the ref option. It also has a cleanup - // function. - - var refCallback = useResolvedElement((0,react.useCallback)(function (element) { - // We only use a single Resize Observer instance, and we're instantiating it on demand, only once there's something to observe. - // This instance is also recreated when the `box` option changes, so that a new observation is fired if there was a previously observed element with a different box option. - if (!resizeObserverRef.current || resizeObserverRef.current.box !== opts.box || resizeObserverRef.current.round !== round) { - resizeObserverRef.current = { - box: opts.box, - round: round, - instance: new ResizeObserver(function (entries) { - var entry = entries[0]; - var boxProp = opts.box === "border-box" ? "borderBoxSize" : opts.box === "device-pixel-content-box" ? "devicePixelContentBoxSize" : "contentBoxSize"; - var reportedWidth = extractSize(entry, boxProp, "inlineSize"); - var reportedHeight = extractSize(entry, boxProp, "blockSize"); - var newWidth = reportedWidth ? round(reportedWidth) : undefined; - var newHeight = reportedHeight ? round(reportedHeight) : undefined; - - if (previous.current.width !== newWidth || previous.current.height !== newHeight) { - var newSize = { - width: newWidth, - height: newHeight - }; - previous.current.width = newWidth; - previous.current.height = newHeight; - - if (onResizeRef.current) { - onResizeRef.current(newSize); - } else { - if (!didUnmount.current) { - setSize(newSize); - } - } - } - }) - }; - } - - resizeObserverRef.current.instance.observe(element, { - box: opts.box - }); - return function () { - if (resizeObserverRef.current) { - resizeObserverRef.current.instance.unobserve(element); - } - }; - }, [opts.box, round]), opts.ref); - return (0,react.useMemo)(function () { - return { - ref: refCallback, - width: size.width, - height: size.height - }; - }, [refCallback, size.width, size.height]); -} - - - -// EXTERNAL MODULE: external "__STORYBOOK_MODULE_GLOBAL__" -var external_STORYBOOK_MODULE_GLOBAL_ = __webpack_require__("@storybook/global"); -// EXTERNAL MODULE: ../../../node_modules/memoizerific/memoizerific.js -var memoizerific = __webpack_require__("../../../node_modules/memoizerific/memoizerific.js"); -var memoizerific_default = /*#__PURE__*/__webpack_require__.n(memoizerific); -// EXTERNAL MODULE: ../../../node_modules/@storybook/csf/dist/index.mjs -var csf_dist = __webpack_require__("../../../node_modules/@storybook/csf/dist/index.mjs"); -;// CONCATENATED MODULE: ../../../node_modules/@storybook/components/dist/index.mjs - - - - - - - - - - - - - - - - - - - - - - - - - - -var nameSpaceClassNames=({...props},key)=>{let classes=[props.class,props.className];return delete props.class,props.className=["sbdocs",`sbdocs-${key}`,...classes].filter(Boolean).join(" "),props};function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i"u"||!Reflect.construct||Reflect.construct.sham)return !1;if(typeof Proxy=="function")return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return !1}}function _construct(Parent,args,Class){return _isNativeReflectConstruct()?_construct=Reflect.construct.bind():_construct=function(Parent2,args2,Class2){var a=[null];a.push.apply(a,args2);var Constructor=Function.bind.apply(Parent2,a),instance=new Constructor;return Class2&&_setPrototypeOf(instance,Class2.prototype),instance},_construct.apply(null,arguments)}function _wrapNativeSuper(Class){var _cache=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(Class2){if(Class2===null||!_isNativeFunction(Class2))return Class2;if(typeof Class2!="function")throw new TypeError("Super expression must either be null or a function");if(typeof _cache<"u"){if(_cache.has(Class2))return _cache.get(Class2);_cache.set(Class2,Wrapper3);}function Wrapper3(){return _construct(Class2,arguments,_getPrototypeOf(this).constructor)}return Wrapper3.prototype=Object.create(Class2.prototype,{constructor:{value:Wrapper3,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper3,Class2)},_wrapNativeSuper(Class)}var ERRORS={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }). - -`,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }). - -`,3:`Passed an incorrect argument to a color function, please pass a string representation of a color. - -`,4:`Couldn't generate valid rgb string from %s, it returned %s. - -`,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation. - -`,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }). - -`,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }). - -`,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object. - -`,9:`Please provide a number of steps to the modularScale helper. - -`,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio. - -`,11:`Invalid value passed as base to modularScale, expected number or em string but got "%s" - -`,12:`Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead. - -`,13:`Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead. - -`,14:`Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12. - -`,15:`Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12. - -`,16:`You must provide a template to this method. - -`,17:`You passed an unsupported selector state to this method. - -`,18:`minScreen and maxScreen must be provided as stringified numbers with the same units. - -`,19:`fromSize and toSize must be provided as stringified numbers with the same units. - -`,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize. - -`,21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:`fontFace expects a name of a font-family. - -`,24:`fontFace expects either the path to the font file(s) or a name of a local copy. - -`,25:`fontFace expects localFonts to be an array. - -`,26:`fontFace expects fileFormats to be an array. - -`,27:`radialGradient requries at least 2 color-stops to properly render. - -`,28:`Please supply a filename to retinaImage() as the first argument. - -`,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. - -`,30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation - -`,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s']) -To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s') - -`,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation - -`,34:`borderRadius expects a radius value as a string or number as the second argument. - -`,35:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. - -`,36:`Property must be a string value. - -`,37:`Syntax Error at %s. - -`,38:`Formula contains a function that needs parentheses at %s. - -`,39:`Formula is missing closing parenthesis at %s. - -`,40:`Formula has too many closing parentheses at %s. - -`,41:`All values in a formula must have the same unit or be unitless. - -`,42:`Please provide a number of steps to the modularScale helper. - -`,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio. - -`,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s. - -`,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object. - -`,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object. - -`,47:`minScreen and maxScreen must be provided as stringified numbers with the same units. - -`,48:`fromSize and toSize must be provided as stringified numbers with the same units. - -`,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize. - -`,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize. - -`,51:`Expects the first argument object to have the properties prop, fromSize, and toSize. - -`,52:`fontFace expects either the path to the font file(s) or a name of a local copy. - -`,53:`fontFace expects localFonts to be an array. - -`,54:`fontFace expects fileFormats to be an array. - -`,55:`fontFace expects a name of a font-family. - -`,56:`linearGradient requries at least 2 color-stops to properly render. - -`,57:`radialGradient requries at least 2 color-stops to properly render. - -`,58:`Please supply a filename to retinaImage() as the first argument. - -`,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. - -`,60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:`Property must be a string value. - -`,62:`borderRadius expects a radius value as a string or number as the second argument. - -`,63:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. - -`,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation. - -`,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s'). - -`,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation. - -`,67:`You must provide a template to this method. - -`,68:`You passed an unsupported selector state to this method. - -`,69:`Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead. - -`,70:`Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead. - -`,71:`Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12. - -`,72:`Passed invalid base value %s to %s(), please pass a value like "12px" or 12. - -`,73:`Please provide a valid CSS variable. - -`,74:`CSS variable not found and no default was provided. - -`,75:`important requires a valid style object, got a %s instead. - -`,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen. - -`,77:`remToPx expects a value in "rem" but you provided it in "%s". - -`,78:`base must be set in "px" or "%" but you set it in "%s". -`};function format(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];var a=args[0],b=[],c;for(c=1;c=0&&huePrime<1?(red=chroma,green=secondComponent):huePrime>=1&&huePrime<2?(red=secondComponent,green=chroma):huePrime>=2&&huePrime<3?(green=chroma,blue=secondComponent):huePrime>=3&&huePrime<4?(green=secondComponent,blue=chroma):huePrime>=4&&huePrime<5?(red=secondComponent,blue=chroma):huePrime>=5&&huePrime<6&&(red=chroma,blue=secondComponent);var lightnessModification=lightness-chroma/2,finalRed=red+lightnessModification,finalGreen=green+lightnessModification,finalBlue=blue+lightnessModification;return convert(finalRed,finalGreen,finalBlue)}var namedColorMap={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function nameToHex(color2){if(typeof color2!="string")return color2;var normalizedColorName=color2.toLowerCase();return namedColorMap[normalizedColorName]?"#"+namedColorMap[normalizedColorName]:color2}var hexRegex=/^#[a-fA-F0-9]{6}$/,hexRgbaRegex=/^#[a-fA-F0-9]{8}$/,reducedHexRegex=/^#[a-fA-F0-9]{3}$/,reducedRgbaHexRegex=/^#[a-fA-F0-9]{4}$/,rgbRegex=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,rgbaRegex=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,hslRegex=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,hslaRegex=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function parseToRgb(color2){if(typeof color2!="string")throw new PolishedError(3);var normalizedColor=nameToHex(color2);if(normalizedColor.match(hexRegex))return {red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16)};if(normalizedColor.match(hexRgbaRegex)){var alpha=parseFloat((parseInt(""+normalizedColor[7]+normalizedColor[8],16)/255).toFixed(2));return {red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16),alpha}}if(normalizedColor.match(reducedHexRegex))return {red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16)};if(normalizedColor.match(reducedRgbaHexRegex)){var _alpha=parseFloat((parseInt(""+normalizedColor[4]+normalizedColor[4],16)/255).toFixed(2));return {red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16),alpha:_alpha}}var rgbMatched=rgbRegex.exec(normalizedColor);if(rgbMatched)return {red:parseInt(""+rgbMatched[1],10),green:parseInt(""+rgbMatched[2],10),blue:parseInt(""+rgbMatched[3],10)};var rgbaMatched=rgbaRegex.exec(normalizedColor.substring(0,50));if(rgbaMatched)return {red:parseInt(""+rgbaMatched[1],10),green:parseInt(""+rgbaMatched[2],10),blue:parseInt(""+rgbaMatched[3],10),alpha:parseFloat(""+rgbaMatched[4])>1?parseFloat(""+rgbaMatched[4])/100:parseFloat(""+rgbaMatched[4])};var hslMatched=hslRegex.exec(normalizedColor);if(hslMatched){var hue=parseInt(""+hslMatched[1],10),saturation=parseInt(""+hslMatched[2],10)/100,lightness=parseInt(""+hslMatched[3],10)/100,rgbColorString="rgb("+hslToRgb(hue,saturation,lightness)+")",hslRgbMatched=rgbRegex.exec(rgbColorString);if(!hslRgbMatched)throw new PolishedError(4,normalizedColor,rgbColorString);return {red:parseInt(""+hslRgbMatched[1],10),green:parseInt(""+hslRgbMatched[2],10),blue:parseInt(""+hslRgbMatched[3],10)}}var hslaMatched=hslaRegex.exec(normalizedColor.substring(0,50));if(hslaMatched){var _hue=parseInt(""+hslaMatched[1],10),_saturation=parseInt(""+hslaMatched[2],10)/100,_lightness=parseInt(""+hslaMatched[3],10)/100,_rgbColorString="rgb("+hslToRgb(_hue,_saturation,_lightness)+")",_hslRgbMatched=rgbRegex.exec(_rgbColorString);if(!_hslRgbMatched)throw new PolishedError(4,normalizedColor,_rgbColorString);return {red:parseInt(""+_hslRgbMatched[1],10),green:parseInt(""+_hslRgbMatched[2],10),blue:parseInt(""+_hslRgbMatched[3],10),alpha:parseFloat(""+hslaMatched[4])>1?parseFloat(""+hslaMatched[4])/100:parseFloat(""+hslaMatched[4])}}throw new PolishedError(5)}function rgbToHsl(color2){var red=color2.red/255,green=color2.green/255,blue=color2.blue/255,max=Math.max(red,green,blue),min=Math.min(red,green,blue),lightness=(max+min)/2;if(max===min)return color2.alpha!==void 0?{hue:0,saturation:0,lightness,alpha:color2.alpha}:{hue:0,saturation:0,lightness};var hue,delta=max-min,saturation=lightness>.5?delta/(2-max-min):delta/(max+min);switch(max){case red:hue=(green-blue)/delta+(green=1?hslToHex(value,saturation,lightness):"rgba("+hslToRgb(value,saturation,lightness)+","+alpha+")";if(typeof value=="object"&&saturation===void 0&&lightness===void 0&&alpha===void 0)return value.alpha>=1?hslToHex(value.hue,value.saturation,value.lightness):"rgba("+hslToRgb(value.hue,value.saturation,value.lightness)+","+value.alpha+")";throw new PolishedError(2)}function rgb(value,green,blue){if(typeof value=="number"&&typeof green=="number"&&typeof blue=="number")return reduceHexValue$1("#"+numberToHex(value)+numberToHex(green)+numberToHex(blue));if(typeof value=="object"&&green===void 0&&blue===void 0)return reduceHexValue$1("#"+numberToHex(value.red)+numberToHex(value.green)+numberToHex(value.blue));throw new PolishedError(6)}function rgba(firstValue,secondValue,thirdValue,fourthValue){if(typeof firstValue=="string"&&typeof secondValue=="number"){var rgbValue=parseToRgb(firstValue);return "rgba("+rgbValue.red+","+rgbValue.green+","+rgbValue.blue+","+secondValue+")"}else {if(typeof firstValue=="number"&&typeof secondValue=="number"&&typeof thirdValue=="number"&&typeof fourthValue=="number")return fourthValue>=1?rgb(firstValue,secondValue,thirdValue):"rgba("+firstValue+","+secondValue+","+thirdValue+","+fourthValue+")";if(typeof firstValue=="object"&&secondValue===void 0&&thirdValue===void 0&&fourthValue===void 0)return firstValue.alpha>=1?rgb(firstValue.red,firstValue.green,firstValue.blue):"rgba("+firstValue.red+","+firstValue.green+","+firstValue.blue+","+firstValue.alpha+")"}throw new PolishedError(7)}var isRgb=function(color2){return typeof color2.red=="number"&&typeof color2.green=="number"&&typeof color2.blue=="number"&&(typeof color2.alpha!="number"||typeof color2.alpha>"u")},isRgba=function(color2){return typeof color2.red=="number"&&typeof color2.green=="number"&&typeof color2.blue=="number"&&typeof color2.alpha=="number"},isHsl=function(color2){return typeof color2.hue=="number"&&typeof color2.saturation=="number"&&typeof color2.lightness=="number"&&(typeof color2.alpha!="number"||typeof color2.alpha>"u")},isHsla=function(color2){return typeof color2.hue=="number"&&typeof color2.saturation=="number"&&typeof color2.lightness=="number"&&typeof color2.alpha=="number"};function toColorString(color2){if(typeof color2!="object")throw new PolishedError(8);if(isRgba(color2))return rgba(color2);if(isRgb(color2))return rgb(color2);if(isHsla(color2))return hsla(color2);if(isHsl(color2))return hsl(color2);throw new PolishedError(8)}function curried(f,length,acc){return function(){var combined=acc.concat(Array.prototype.slice.call(arguments));return combined.length>=length?f.apply(this,combined):curried(f,length,combined)}}function curry(f){return curried(f,f.length,[])}function guard(lowerBoundary,upperBoundary,value){return Math.max(lowerBoundary,Math.min(upperBoundary,value))}function darken(amount,color2){if(color2==="transparent")return color2;var hslColor=parseToHsl(color2);return toColorString(_extends({},hslColor,{lightness:guard(0,1,hslColor.lightness-parseFloat(amount))}))}var curriedDarken=curry(darken),curriedDarken$1=curriedDarken;function lighten(amount,color2){if(color2==="transparent")return color2;var hslColor=parseToHsl(color2);return toColorString(_extends({},hslColor,{lightness:guard(0,1,hslColor.lightness+parseFloat(amount))}))}var curriedLighten=curry(lighten),curriedLighten$1=curriedLighten;function transparentize(amount,color2){if(color2==="transparent")return color2;var parsedColor=parseToRgb(color2),alpha=typeof parsedColor.alpha=="number"?parsedColor.alpha:1,colorWithAlpha=_extends({},parsedColor,{alpha:guard(0,1,+(alpha*100-parseFloat(amount)*100).toFixed(2)/100)});return rgba(colorWithAlpha)}var curriedTransparentize=curry(transparentize),curriedTransparentize$1=curriedTransparentize;var headerCommon=({theme})=>({margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:theme.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}),codeCommon=({theme})=>({lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:theme.typography.size.s2-1,border:theme.base==="light"?`1px solid ${theme.color.mediumlight}`:`1px solid ${theme.color.darker}`,color:theme.base==="light"?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),backgroundColor:theme.base==="light"?theme.color.lighter:theme.color.border}),withReset=({theme})=>({fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),withMargin={margin:"16px 0"};var Link=({href:input,children,...props})=>{let isStorybookPath=/^\//.test(input),isAnchorUrl=/^#.*/.test(input),href=isStorybookPath?`./?path=${input}`:input;return react.createElement("a",{href,target:isAnchorUrl?"_self":"_top",...props},children)};var A=(0,dist/* styled */.I4)(Link)(withReset,({theme})=>({fontSize:"inherit",lineHeight:"24px",color:theme.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}}));var Blockquote=dist/* styled */.I4.blockquote(withReset,withMargin,({theme})=>({borderLeft:`4px solid ${theme.color.medium}`,padding:"0 15px",color:theme.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}}));var isReactChildString=child=>typeof child=="string";var isInlineCodeRegex=/[\n\r]/g,DefaultCodeBlock=dist/* styled */.I4.code(({theme})=>({fontFamily:theme.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}),codeCommon),StyledSyntaxHighlighter=(0,dist/* styled */.I4)(chunk_ELLS3HSY/* SyntaxHighlighter */.bF)(({theme})=>({fontFamily:theme.typography.fonts.mono,fontSize:`${theme.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:theme.appBorderRadius,boxShadow:theme.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),Code=({className,children,...props})=>{let language=(className||"").match(/lang-(\S+)/),childrenArray=react.Children.toArray(children);return childrenArray.filter(isReactChildString).some(child=>child.match(isInlineCodeRegex))?react.createElement(StyledSyntaxHighlighter,{bordered:!0,copyable:!0,language:language?.[1]??"plaintext",format:!1,...props},children):react.createElement(DefaultCodeBlock,{...props,className},childrenArray)};var Div=dist/* styled */.I4.div(withReset);var DL=dist/* styled */.I4.dl(withReset,{...withMargin,padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}});var H1=dist/* styled */.I4.h1(withReset,headerCommon,({theme})=>({fontSize:`${theme.typography.size.l1}px`,fontWeight:theme.typography.weight.bold}));var H2=dist/* styled */.I4.h2(withReset,headerCommon,({theme})=>({fontSize:`${theme.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${theme.appBorderColor}`}));var H3=dist/* styled */.I4.h3(withReset,headerCommon,({theme})=>({fontSize:`${theme.typography.size.m1}px`}));var H4=dist/* styled */.I4.h4(withReset,headerCommon,({theme})=>({fontSize:`${theme.typography.size.s3}px`}));var H5=dist/* styled */.I4.h5(withReset,headerCommon,({theme})=>({fontSize:`${theme.typography.size.s2}px`}));var H6=dist/* styled */.I4.h6(withReset,headerCommon,({theme})=>({fontSize:`${theme.typography.size.s2}px`,color:theme.color.dark}));var HR=dist/* styled */.I4.hr(({theme})=>({border:"0 none",borderTop:`1px solid ${theme.appBorderColor}`,height:4,padding:0}));var Img=dist/* styled */.I4.img({maxWidth:"100%"});var LI=dist/* styled */.I4.li(withReset,({theme})=>({fontSize:theme.typography.size.s2,color:theme.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":codeCommon({theme})}));var listCommon={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},OL=dist/* styled */.I4.ol(withReset,withMargin,{...listCommon,listStyle:"decimal"});var P=dist/* styled */.I4.p(withReset,withMargin,({theme})=>({fontSize:theme.typography.size.s2,lineHeight:"24px",color:theme.color.defaultText,"& code":codeCommon({theme})}));var Pre=dist/* styled */.I4.pre(withReset,withMargin,({theme})=>({fontFamily:theme.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}}));var Span=dist/* styled */.I4.span(withReset,({theme})=>({"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${theme.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:theme.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}}));var Table=dist/* styled */.I4.table(withReset,withMargin,({theme})=>({fontSize:theme.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${theme.appBorderColor}`,backgroundColor:theme.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:theme.base==="dark"?theme.color.darker:theme.color.lighter},"& tr th":{fontWeight:"bold",color:theme.color.defaultText,border:`1px solid ${theme.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${theme.appBorderColor}`,color:theme.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}}));var TT=dist/* styled */.I4.title(codeCommon);var listCommon2={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},UL=dist/* styled */.I4.ul(withReset,withMargin,{...listCommon2,listStyle:"disc"});var ResetWrapper=dist/* styled */.I4.div(withReset);var components={h1:props=>react.createElement(H1,{...nameSpaceClassNames(props,"h1")}),h2:props=>react.createElement(H2,{...nameSpaceClassNames(props,"h2")}),h3:props=>react.createElement(H3,{...nameSpaceClassNames(props,"h3")}),h4:props=>react.createElement(H4,{...nameSpaceClassNames(props,"h4")}),h5:props=>react.createElement(H5,{...nameSpaceClassNames(props,"h5")}),h6:props=>react.createElement(H6,{...nameSpaceClassNames(props,"h6")}),pre:props=>react.createElement(Pre,{...nameSpaceClassNames(props,"pre")}),a:props=>react.createElement(A,{...nameSpaceClassNames(props,"a")}),hr:props=>react.createElement(HR,{...nameSpaceClassNames(props,"hr")}),dl:props=>react.createElement(DL,{...nameSpaceClassNames(props,"dl")}),blockquote:props=>react.createElement(Blockquote,{...nameSpaceClassNames(props,"blockquote")}),table:props=>react.createElement(Table,{...nameSpaceClassNames(props,"table")}),img:props=>react.createElement(Img,{...nameSpaceClassNames(props,"img")}),div:props=>react.createElement(Div,{...nameSpaceClassNames(props,"div")}),span:props=>react.createElement(Span,{...nameSpaceClassNames(props,"span")}),li:props=>react.createElement(LI,{...nameSpaceClassNames(props,"li")}),ul:props=>react.createElement(UL,{...nameSpaceClassNames(props,"ul")}),ol:props=>react.createElement(OL,{...nameSpaceClassNames(props,"ol")}),p:props=>react.createElement(P,{...nameSpaceClassNames(props,"p")}),code:props=>react.createElement(Code,{...nameSpaceClassNames(props,"code")}),tt:props=>react.createElement(TT,{...nameSpaceClassNames(props,"tt")}),resetwrapper:props=>react.createElement(ResetWrapper,{...nameSpaceClassNames(props,"resetwrapper")})};var BadgeWrapper=dist/* styled */.I4.div(({theme})=>({display:"inline-block",fontSize:11,lineHeight:"12px",alignSelf:"center",padding:"4px 12px",borderRadius:"3em",fontWeight:theme.typography.weight.bold}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme,status})=>{switch(status){case"critical":return {color:theme.color.critical,background:theme.background.critical};case"negative":return {color:theme.color.negativeText,background:theme.background.negative,boxShadow:theme.base==="light"?`inset 0 0 0 1px ${curriedTransparentize$1(.9,theme.color.negativeText)}`:"none"};case"warning":return {color:theme.color.warningText,background:theme.background.warning,boxShadow:theme.base==="light"?`inset 0 0 0 1px ${curriedTransparentize$1(.9,theme.color.warningText)}`:"none"};case"neutral":return {color:theme.color.dark,background:theme.color.mediumlight,boxShadow:theme.base==="light"?`inset 0 0 0 1px ${curriedTransparentize$1(.9,theme.color.dark)}`:"none"};case"positive":return {color:theme.color.positiveText,background:theme.background.positive,boxShadow:theme.base==="light"?`inset 0 0 0 1px ${curriedTransparentize$1(.9,theme.color.positiveText)}`:"none"};default:return {}}}),Badge=({...props})=>React5__default.createElement(BadgeWrapper,{...props});var icons={user:react.createElement(react.Fragment,null,react.createElement("path",{d:"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0ZM2.67 11.15c.7-1 2.6-1.81 3.2-1.9.22-.04.23-.66.23-.66s-.67-.66-.81-1.55c-.4 0-.63-.94-.24-1.27l-.02-.13c-.06-.6-.28-2.6 1.97-2.6s2.03 2 1.97 2.6l-.02.13c.4.33.15 1.27-.24 1.27-.14.89-.8 1.55-.8 1.55s0 .62.22.66c.6.09 2.5.9 3.2 1.9a6 6 0 1 0-8.66 0Z"})),useralt:react.createElement(react.Fragment,null,react.createElement("path",{d:"M7.27 13.16a11.39 11.39 0 0 0 5.18-1.23v-.25c0-1.57-3.24-3-4.1-3.13-.27-.05-.28-.79-.28-.79s.8-.78.96-1.83c.47 0 .75-1.12.29-1.52.02-.41.6-3.25-2.32-3.25S4.65 4 4.67 4.41c-.46.4-.17 1.52.29 1.52.17 1.05.96 1.83.96 1.83s0 .74-.27.79c-.86.13-4.04 1.53-4.1 3.08a11.44 11.44 0 0 0 5.72 1.53Z"})),useradd:react.createElement(react.Fragment,null,react.createElement("path",{d:"M1.18 11.9c-.4-.17-.8-.36-1.18-.58.06-1.44 3.02-2.74 3.82-2.87.25-.04.26-.73.26-.73s-.74-.73-.9-1.7c-.43 0-.7-1.05-.27-1.42l-.01-.14c-.07-.67-.31-2.88 2.18-2.88 2.48 0 2.24 2.2 2.17 2.88l-.01.14c.43.37.16 1.41-.27 1.41-.16.98-.9 1.71-.9 1.71s.01.69.26.73c.8.13 3.82 1.46 3.82 2.91v.24a10.63 10.63 0 0 1-8.97.3ZM11.5 2.16c.28 0 .5.22.5.5v1.5h1.5a.5.5 0 0 1 0 1H12v1.5a.5.5 0 0 1-1 0v-1.5H9.5a.5.5 0 1 1 0-1H11v-1.5c0-.28.22-.5.5-.5Z"})),users:react.createElement(react.Fragment,null,react.createElement("path",{d:"M9.21 11.62A10.59 10.59 0 0 1 0 11.07c.06-1.35 2.93-2.58 3.7-2.7.25-.03.26-.68.26-.68s-.72-.69-.87-1.6c-.42 0-.68-.99-.26-1.33 0-.03 0-.08-.02-.14-.07-.63-.3-2.71 2.12-2.71 2.41 0 2.18 2.08 2.11 2.71l-.01.14c.42.34.16 1.32-.26 1.32-.16.92-.87 1.6-.87 1.6s0 .66.25.7c.78.11 3.7 1.36 3.7 2.73v.22l-.64.3Z"}),react.createElement("path",{d:"M8.81 8.42a9.64 9.64 0 0 0-.74-.4 5.2 5.2 0 0 1 1.7-.76c.17-.02.17-.47.17-.47s-.49-.47-.6-1.1c-.28 0-.46-.68-.17-.91l-.01-.1c-.05-.43-.2-1.86 1.45-1.86 1.66 0 1.5 1.43 1.45 1.86v.1c.28.23.1.9-.18.9-.11.64-.6 1.11-.6 1.11s0 .45.17.47c.54.08 2.55.94 2.55 1.89v.62a10.6 10.6 0 0 1-3.3.56 2.97 2.97 0 0 0-.58-.88c-.37-.41-.85-.76-1.31-1.03Z"})),profile:react.createElement(react.Fragment,null,react.createElement("path",{d:"M9.1 7.35a5.06 5.06 0 0 1-4.52-.28C4.6 6.4 6.02 5.77 6.4 5.7c.12-.02.12-.35.12-.35s-.35-.34-.43-.81c-.2 0-.33-.5-.12-.67l-.01-.07C5.93 3.48 5.81 2.42 7 2.42S8.07 3.48 8.04 3.8v.07c.2.17.07.67-.13.67-.08.47-.43.81-.43.81s0 .33.12.35c.38.06 1.82.7 1.82 1.4v.1c-.1.06-.2.1-.31.15Zm-5.35 3.9c0-.14.11-.25.25-.25h6a.25.25 0 1 1 0 .5H4a.25.25 0 0 1-.25-.25ZM4 9a.25.25 0 0 0 0 .5h6a.25.25 0 1 0 0-.5H4Z"}),react.createElement("path",{fillRule:"evenodd",d:"M1 .5c0-.28.22-.5.5-.5h11c.28 0 .5.22.5.5v13a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5V.5ZM2 13V1h10v12H2Z"})),facehappy:react.createElement(react.Fragment,null,react.createElement("path",{d:"M3.97 8.75a.5.5 0 0 0-.87.5 4.5 4.5 0 0 0 7.8 0 .5.5 0 1 0-.87-.5 3.5 3.5 0 0 1-6.06 0ZM5.5 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM9.5 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}),react.createElement("path",{fillRule:"evenodd",d:"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-1 0A6 6 0 1 1 1 7a6 6 0 0 1 12 0Z"})),faceneutral:react.createElement(react.Fragment,null,react.createElement("path",{d:"M4.5 9a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1h-5ZM5.5 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM9.5 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}),react.createElement("path",{fillRule:"evenodd",d:"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-1 0A6 6 0 1 1 1 7a6 6 0 0 1 12 0Z"})),facesad:react.createElement(react.Fragment,null,react.createElement("path",{d:"M3.97 10.25a.5.5 0 0 1-.87-.5 4.5 4.5 0 0 1 7.8 0 .5.5 0 1 1-.87.5 3.5 3.5 0 0 0-6.06 0ZM5.5 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM9.5 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}),react.createElement("path",{fillRule:"evenodd",d:"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-1 0A6 6 0 1 1 1 7a6 6 0 0 1 12 0Z"})),accessibility:react.createElement(react.Fragment,null,react.createElement("path",{d:"M3.53 4.84a.5.5 0 0 1 .63-.31l2.05.68a2.5 2.5 0 0 0 1.58 0l2.05-.68a.5.5 0 0 1 .32.94L7.7 6.3a.3.3 0 0 0-.21.29v.24c0 .7.16 1.39.48 2.01l.97 1.95a.5.5 0 1 1-.9.44L7 9.12l-1.05 2.1a.5.5 0 1 1-.9-.44l.97-1.95a4.5 4.5 0 0 0 .48-2.01v-.24a.3.3 0 0 0-.2-.29l-2.46-.82a.5.5 0 0 1-.31-.63Z"}),react.createElement("path",{d:"M7 4.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}),react.createElement("path",{fillRule:"evenodd",d:"M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14Zm0-1A6 6 0 1 0 7 1a6 6 0 0 0 0 12Z"})),accessibilityalt:react.createElement(react.Fragment,null,react.createElement("path",{d:"M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14ZM8 3.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM3.53 4.84a.5.5 0 0 1 .63-.31l2.05.68a2.5 2.5 0 0 0 1.58 0l2.05-.68a.5.5 0 0 1 .32.94L7.7 6.3a.3.3 0 0 0-.21.29v.24c0 .7.16 1.39.48 2.01l.97 1.95a.5.5 0 1 1-.9.44L7 9.12l-1.05 2.1a.5.5 0 1 1-.9-.44l.97-1.95a4.5 4.5 0 0 0 .48-2.01v-.24a.3.3 0 0 0-.2-.29l-2.46-.82a.5.5 0 0 1-.31-.63Z"})),arrowup:react.createElement(react.Fragment,null,react.createElement("path",{d:"m7.35 2.9 5.5 5.5a.5.5 0 0 1-.7.7L7 3.96 1.85 9.1a.5.5 0 1 1-.7-.7l5.5-5.5c.2-.2.5-.2.7 0Z"})),arrowdown:react.createElement(react.Fragment,null,react.createElement("path",{d:"m1.15 5.6 5.5 5.5c.2.2.5.2.7 0l5.5-5.5a.5.5 0 0 0-.7-.7L7 10.04 1.85 4.9a.5.5 0 1 0-.7.7Z"})),arrowleft:react.createElement(react.Fragment,null,react.createElement("path",{d:"M2.76 7.1c.02.09.06.18.14.25l5.5 5.5a.5.5 0 0 0 .7-.7L3.96 7 9.1 1.85a.5.5 0 1 0-.7-.7l-5.5 5.5a.5.5 0 0 0-.14.45Z"})),arrowright:react.createElement(react.Fragment,null,react.createElement("path",{d:"m11.1 7.35-5.5 5.5a.5.5 0 0 1-.7-.7L10.04 7 4.9 1.85a.5.5 0 1 1 .7-.7l5.5 5.5c.2.2.2.5 0 .7Z"})),arrowupalt:react.createElement(react.Fragment,null,react.createElement("path",{d:"M11.85 4.65 7.35.15a.5.5 0 0 0-.7 0l-4.5 4.5a.5.5 0 1 0 .7.7L6.5 1.71V13.5a.5.5 0 0 0 1 0V1.7l3.65 3.65a.5.5 0 0 0 .7-.7Z"})),arrowdownalt:react.createElement(react.Fragment,null,react.createElement("path",{d:"M7.5.5a.5.5 0 0 0-1 0v11.8L2.85 8.64a.5.5 0 1 0-.7.7l4.5 4.5A.5.5 0 0 0 7 14a.5.5 0 0 0 .35-.15l4.5-4.5a.5.5 0 0 0-.7-.7L7.5 12.29V.5Z"})),arrowleftalt:react.createElement(react.Fragment,null,react.createElement("path",{d:"M5.35 2.15c.2.2.2.5 0 .7L1.71 6.5H13.5a.5.5 0 0 1 0 1H1.7l3.65 3.65a.5.5 0 0 1-.7.7l-4.5-4.5a.5.5 0 0 1 0-.7l4.5-4.5c.2-.2.5-.2.7 0Z"})),arrowrightalt:react.createElement(react.Fragment,null,react.createElement("path",{d:"M8.65 2.15c.2-.2.5-.2.7 0l4.5 4.5c.2.2.2.5 0 .7l-4.5 4.5a.5.5 0 0 1-.7-.7l3.64-3.65H.5a.5.5 0 0 1 0-1h11.8L8.64 2.85a.5.5 0 0 1 0-.7Z"})),expandalt:react.createElement(react.Fragment,null,react.createElement("path",{d:"m7.35.15 4 4a.5.5 0 0 1-.7.7L7 1.21 3.35 4.85a.5.5 0 1 1-.7-.7l4-4c.2-.2.5-.2.7 0ZM11.35 9.15c.2.2.2.5 0 .7l-4 4a.5.5 0 0 1-.7 0l-4-4a.5.5 0 1 1 .7-.7L7 12.79l3.65-3.64c.2-.2.5-.2.7 0Z"})),collapse:react.createElement(react.Fragment,null,react.createElement("path",{d:"M3.354.146a.5.5 0 1 0-.708.708l4 4a.5.5 0 0 0 .708 0l4-4a.5.5 0 0 0-.708-.708L7 3.793 3.354.146Zm3.292 9a.5.5 0 0 1 .708 0l4 4a.5.5 0 0 1-.708.708L7 10.207l-3.646 3.647a.5.5 0 0 1-.708-.708l4-4Z"})),expand:react.createElement(react.Fragment,null,react.createElement("path",{d:"M1.5 1h2a.5.5 0 0 1 0 1h-.8l3.15 3.15a.5.5 0 1 1-.7.7L2 2.71v.79a.5.5 0 0 1-1 0v-2c0-.28.22-.5.5-.5ZM10 1.5c0-.28.22-.5.5-.5h2c.28 0 .5.22.5.5v2a.5.5 0 0 1-1 0v-.8L8.85 5.86a.5.5 0 1 1-.7-.7L11.29 2h-.79a.5.5 0 0 1-.5-.5ZM12.5 10c.28 0 .5.22.5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h.8L8.14 8.85a.5.5 0 1 1 .7-.7L12 11.29v-.79c0-.28.22-.5.5-.5ZM2 11.3v-.8a.5.5 0 0 0-1 0v2c0 .28.22.5.5.5h2a.5.5 0 0 0 0-1h-.8l3.15-3.15a.5.5 0 1 0-.7-.7L2 11.29Z"})),unfold:react.createElement(react.Fragment,null,react.createElement("path",{d:"m6.65.15-1.5 1.5a.5.5 0 1 0 .7.7l.65-.64V5a.5.5 0 0 0 1 0V1.7l.65.65a.5.5 0 1 0 .7-.7L7.35.15a.5.5 0 0 0-.7 0Z"}),react.createElement("path",{d:"M1.3 4.04a.5.5 0 0 0-.16.82L3.3 7 1.15 9.15a.5.5 0 0 0 .35.85h3a.5.5 0 0 0 0-1H2.7l1.5-1.5h5.6l2.35 2.35a.5.5 0 0 0 .7-.7L10.71 7l2.14-2.15.11-.54-.1.54A.5.5 0 0 0 13 4.5a.5.5 0 0 0-.14-.35.5.5 0 0 0-.36-.15h-3a.5.5 0 0 0 0 1h1.8L9.8 6.5H4.2L2.7 5h1.8a.5.5 0 0 0 0-1h-3a.5.5 0 0 0-.2.04Z"}),react.createElement("path",{d:"M7 8.5c.28 0 .5.22.5.5v3.3l.65-.65a.5.5 0 0 1 .7.7l-1.5 1.5a.5.5 0 0 1-.7 0l-1.5-1.5a.5.5 0 0 1 .7-.7l.65.64V9c0-.28.22-.5.5-.5ZM9 9.5c0-.28.22-.5.5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5Z"})),transfer:react.createElement(react.Fragment,null,react.createElement("path",{d:"M10.65 2.65c.2-.2.5-.2.7 0l1.5 1.5c.2.2.2.5 0 .7l-1.5 1.5a.5.5 0 0 1-.7-.7l.64-.65H1.5a.5.5 0 0 1 0-1h9.8l-.65-.65a.5.5 0 0 1 0-.7ZM3.35 8.35 2.71 9h9.79a.5.5 0 0 1 0 1H2.7l.65.65a.5.5 0 0 1-.7.7l-1.5-1.5a.5.5 0 0 1 0-.7l1.5-1.5a.5.5 0 1 1 .7.7Z"})),redirect:react.createElement(react.Fragment,null,react.createElement("path",{d:"M1.5 1c.28 0 .5.22.5.5V10a2 2 0 0 0 4 0V4a3 3 0 0 1 6 0v7.8l1.15-1.15a.5.5 0 0 1 .7.7l-2 2a.5.5 0 0 1-.7 0l-2-2a.5.5 0 0 1 .7-.7L11 11.79V4a2 2 0 1 0-4 0v6a3 3 0 0 1-6 0V1.5c0-.28.22-.5.5-.5Z"})),undo:react.createElement(react.Fragment,null,react.createElement("path",{d:"M1.15 3.85a.5.5 0 0 1 0-.7l2-2a.5.5 0 1 1 .7.7L2.71 3H9a4 4 0 0 1 0 8H3a.5.5 0 0 1 0-1h6a3 3 0 1 0 0-6H2.7l1.15 1.15a.5.5 0 1 1-.7.7l-2-2Z"})),reply:react.createElement(react.Fragment,null,react.createElement("path",{d:"M4.35 2.15c.2.2.2.5 0 .7L1.71 5.5H9.5A4.5 4.5 0 0 1 14 10v1.5a.5.5 0 0 1-1 0V10a3.5 3.5 0 0 0-3.5-3.5H1.7l2.65 2.65a.5.5 0 1 1-.7.7l-3.5-3.5a.5.5 0 0 1 0-.7l3.5-3.5c.2-.2.5-.2.7 0Z"})),sync:react.createElement(react.Fragment,null,react.createElement("path",{d:"M5.5 1A.5.5 0 0 0 5 .5H2a.5.5 0 0 0 0 1h1.53a6.5 6.5 0 0 0 2.39 11.91.5.5 0 1 0 .16-.99A5.5 5.5 0 0 1 4.5 2.1V4a.5.5 0 0 0 1 0V1ZM7.5 1a.5.5 0 0 1 .58-.41 6.5 6.5 0 0 1 2.39 11.91H12a.5.5 0 0 1 0 1H9a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 1 0v1.9A5.5 5.5 0 0 0 7.92 1.58.5.5 0 0 1 7.5 1Z"})),upload:react.createElement(react.Fragment,null,react.createElement("path",{d:"M8.65 5.85 7.5 4.71v5.79a.5.5 0 0 1-1 0V4.7L5.35 5.86a.5.5 0 1 1-.7-.7l2-2c.2-.2.5-.2.7 0l2 2a.5.5 0 1 1-.7.7Z"}),react.createElement("path",{fillRule:"evenodd",d:"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-1 0A6 6 0 1 1 1 7a6 6 0 0 1 12 0Z"})),download:react.createElement(react.Fragment,null,react.createElement("path",{d:"M5.35 8.15 6.5 9.29V3.5a.5.5 0 0 1 1 0v5.8l1.15-1.15a.5.5 0 1 1 .7.7l-2 2a.5.5 0 0 1-.7 0l-2-2a.5.5 0 1 1 .7-.7Z"}),react.createElement("path",{fillRule:"evenodd",d:"M0 7a7 7 0 1 1 14 0A7 7 0 0 1 0 7Zm1 0a6 6 0 1 1 12 0A6 6 0 0 1 1 7Z"})),back:react.createElement(react.Fragment,null,react.createElement("path",{d:"M5.85 5.35 4.71 6.5h5.79a.5.5 0 0 1 0 1H4.7l1.15 1.15a.5.5 0 1 1-.7.7l-2-2a.5.5 0 0 1 0-.7l2-2a.5.5 0 1 1 .7.7Z"}),react.createElement("path",{fillRule:"evenodd",d:"M7 0a7 7 0 1 1 0 14A7 7 0 0 1 7 0Zm0 1a6 6 0 1 1 0 12A6 6 0 0 1 7 1Z"})),proceed:react.createElement(react.Fragment,null,react.createElement("path",{d:"M3.5 6.5h5.8L8.14 5.35a.5.5 0 1 1 .7-.7l2 2c.2.2.2.5 0 .7l-2 2a.5.5 0 1 1-.7-.7L9.29 7.5H3.5a.5.5 0 0 1 0-1Z"}),react.createElement("path",{fillRule:"evenodd",d:"M7 14A7 7 0 1 1 7 0a7 7 0 0 1 0 14Zm0-1A6 6 0 1 1 7 1a6 6 0 0 1 0 12Z"})),refresh:react.createElement(react.Fragment,null,react.createElement("path",{d:"M7.1.5H7a6.5 6.5 0 1 0 6.41 7.58.5.5 0 1 0-.99-.16A5.47 5.47 0 0 1 7 12.5a5.5 5.5 0 0 1 0-11 5.5 5.5 0 0 1 4.9 3H10a.5.5 0 0 0 0 1h3a.5.5 0 0 0 .5-.5V2a.5.5 0 0 0-1 0v1.53A6.5 6.5 0 0 0 7.1.5Z"})),globe:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M14 7A7 7 0 1 0 0 7a7 7 0 0 0 14 0Zm-6.53 5.74c-.24.23-.4.26-.47.26-.08 0-.23-.03-.47-.26-.23-.24-.5-.62-.73-1.18A11.57 11.57 0 0 1 5 7.5h4a11.57 11.57 0 0 1-.8 4.06c-.24.56-.5.94-.73 1.18ZM8.99 6.5H5.01c.05-1.62.35-3.04.79-4.06.24-.56.5-.94.73-1.18.24-.23.4-.26.47-.26.08 0 .23.03.47.26.23.24.5.62.73 1.18.44 1.02.74 2.44.8 4.06Zm1 1c-.06 2.18-.56 4.08-1.28 5.25a6 6 0 0 0 4.27-5.25H9.99Zm2.99-1H9.99c-.06-2.18-.56-4.08-1.28-5.25a6 6 0 0 1 4.27 5.25ZM4 6.5c.06-2.18.56-4.08 1.28-5.25A6 6 0 0 0 1.02 6.5h2.99Zm-2.99 1a6 6 0 0 0 4.27 5.25c-.72-1.17-1.22-3.07-1.28-5.25H1.02Z"})),compass:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M10.09 3.4 5.95 5.8a.37.37 0 0 0-.11.09.38.38 0 0 0-.04.05l-2.4 4.15a.37.37 0 0 0 0 .38c.1.18.33.24.5.14l4.15-2.4a.37.37 0 0 0 .15-.15l2.4-4.15a.37.37 0 0 0-.03-.44.37.37 0 0 0-.48-.07ZM4.75 9.25 7.6 7.6 6.4 6.4 4.75 9.25Z"}),react.createElement("path",{fillRule:"evenodd",d:"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-1 0A6 6 0 1 1 1 7a6 6 0 0 1 12 0Z"})),location:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M0 7a7 7 0 1 1 14 0A7 7 0 0 1 0 7Zm6.5 3.5v2.48A6 6 0 0 1 1.02 7.5H3.5a.5.5 0 0 0 0-1H1.02A6 6 0 0 1 6.5 1.02V3.5a.5.5 0 0 0 1 0V1.02a6 6 0 0 1 5.48 5.48H10.5a.5.5 0 0 0 0 1h2.48a6 6 0 0 1-5.48 5.48V10.5a.5.5 0 0 0-1 0Z"})),pin:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M9 5a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM8 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"}),react.createElement("path",{fillRule:"evenodd",d:"M12 5A5 5 0 0 0 2 5c0 2.63 2.27 6.15 4.65 8.64.2.2.5.2.7 0C9.73 11.15 12 7.64 12 5ZM7 1a4 4 0 0 1 4 4c0 1.06-.47 2.42-1.3 3.88A21.23 21.23 0 0 1 7 12.55c-1-1.1-1.97-2.39-2.7-3.67A8.46 8.46 0 0 1 3 5a4 4 0 0 1 4-4Z"})),time:react.createElement(react.Fragment,null,react.createElement("path",{d:"M7 2c.28 0 .5.22.5.5v4H10a.5.5 0 0 1 0 1H7a.5.5 0 0 1-.5-.5V2.5c0-.28.22-.5.5-.5Z"}),react.createElement("path",{fillRule:"evenodd",d:"M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14Zm0-1A6 6 0 1 0 7 1a6 6 0 0 0 0 12Z"})),dashboard:react.createElement(react.Fragment,null,react.createElement("path",{d:"M9.8 4.1a.5.5 0 0 1 .1.7L7.92 7.58A1 1 0 1 1 7.1 7l2-2.8a.5.5 0 0 1 .7-.12Z"}),react.createElement("path",{fillRule:"evenodd",d:"M2.07 12.97a7 7 0 1 1 9.86 0 12.96 12.96 0 0 0-9.86 0Zm9.58-1.18a6 6 0 1 0-9.3 0 13.98 13.98 0 0 1 9.3 0Z"})),timer:react.createElement(react.Fragment,null,react.createElement("path",{d:"M7.5 4.5a.5.5 0 0 0-1 0v2.63a1 1 0 1 0 1 0V4.5Z"}),react.createElement("path",{fillRule:"evenodd",d:"M5.5.5c0-.28.22-.5.5-.5h2a.5.5 0 0 1 0 1h-.5v1.02c1.28.1 2.45.61 3.37 1.4l.78-.77a.5.5 0 0 1 .7.7l-.77.78a6 6 0 1 1-5.08-2.1V1H6a.5.5 0 0 1-.5-.5ZM7 3a5 5 0 1 0 0 10A5 5 0 0 0 7 3Z"})),home:react.createElement(react.Fragment,null,react.createElement("path",{d:"m7.35 1.15 5.5 5.5a.5.5 0 0 1-.7.7L12 7.21v5.29a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5V9H6v3.5a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5V7.2l-.15.15a.5.5 0 1 1-.7-.7l1-1 4.5-4.5c.2-.2.5-.2.7 0ZM3 6.2V12h2V8.5c0-.28.22-.5.5-.5h3c.28 0 .5.22.5.5V12h2V6.2l-4-4-4 4Z"})),admin:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M1.21 4.1a.5.5 0 0 1 .06-.04l5.48-3a.5.5 0 0 1 .5 0l5.48 3a.5.5 0 0 1 .27.39.5.5 0 0 1-.51.55H1.51a.5.5 0 0 1-.3-.9ZM3.46 4h7.08L7 2.07 3.46 4Z"}),react.createElement("path",{d:"M4 6a.5.5 0 1 0-1 0v5a.5.5 0 0 0 1 0V6ZM11 6a.5.5 0 0 0-1 0v5a.5.5 0 0 0 1 0V6ZM5.75 5.5c.28 0 .5.22.5.5v5a.5.5 0 0 1-1 0V6c0-.28.22-.5.5-.5ZM8.75 6a.5.5 0 1 0-1 0v5a.5.5 0 0 0 1 0V6ZM1.5 12.5c0-.27.22-.5.5-.5h10a.5.5 0 0 1 0 1H2a.5.5 0 0 1-.5-.5Z"})),info:react.createElement(react.Fragment,null,react.createElement("path",{d:"M7 5.5c.28 0 .5.22.5.5v4a.5.5 0 0 1-1 0V6c0-.28.22-.5.5-.5ZM7 4.5A.75.75 0 1 0 7 3a.75.75 0 0 0 0 1.5Z"}),react.createElement("path",{fillRule:"evenodd",d:"M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14Zm0-1A6 6 0 1 0 7 1a6 6 0 0 0 0 12Z"})),question:react.createElement(react.Fragment,null,react.createElement("path",{d:"M5.25 5.25A1.75 1.75 0 1 1 7 7a.5.5 0 0 0-.5.5V9a.5.5 0 0 0 1 0V7.95a2.75 2.75 0 1 0-3.25-2.7.5.5 0 0 0 1 0ZM7 11.5A.75.75 0 1 0 7 10a.75.75 0 0 0 0 1.5Z"}),react.createElement("path",{fillRule:"evenodd",d:"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-1 0A6 6 0 1 1 1 7a6 6 0 0 1 12 0Z"})),support:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-3.52 4.9a5.97 5.97 0 0 1-6.96 0l1.45-1.45a3.98 3.98 0 0 0 4.06 0l1.45 1.44Zm-.03-2.87 1.44 1.45a5.97 5.97 0 0 0 0-6.96l-1.44 1.45a3.98 3.98 0 0 1 0 4.06ZM9.03 3.55l1.45-1.44a5.97 5.97 0 0 0-6.96 0l1.45 1.44a3.98 3.98 0 0 1 4.06 0ZM3.55 4.97 2.11 3.52a5.97 5.97 0 0 0 0 6.96l1.44-1.45a3.98 3.98 0 0 1 0-4.06ZM10 7a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})),alert:react.createElement(react.Fragment,null,react.createElement("path",{d:"M7 4.5c.28 0 .5.22.5.5v3.5a.5.5 0 0 1-1 0V5c0-.28.22-.5.5-.5ZM7.75 10.5a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"}),react.createElement("path",{fillRule:"evenodd",d:"M7.2 1.04a.5.5 0 0 1 .24.21l6.49 11a.5.5 0 0 1-.44.75H.51a.5.5 0 0 1-.5-.45.5.5 0 0 1 .06-.31l6.5-10.99a.5.5 0 0 1 .64-.2ZM7 2.48 1.38 12h11.24L7 2.48Z"})),email:react.createElement(react.Fragment,null,react.createElement("path",{d:"M0 2.5c0-.27.22-.5.5-.5h13c.28 0 .5.23.5.5v9a.5.5 0 0 1-.5.5H.5a.5.5 0 0 1-.5-.5v-9Zm1 1.02V11h12V3.52L7.31 7.89a.5.5 0 0 1-.52.07.5.5 0 0 1-.1-.07L1 3.52ZM12.03 3H1.97L7 6.87 12.03 3Z"})),phone:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"m7.76 8.13-.05.05a.2.2 0 0 1-.28.03A6.76 6.76 0 0 1 5.8 6.56a.21.21 0 0 1 .04-.27l.05-.05c.23-.2.54-.47.71-.96.17-.47-.02-1.04-.66-1.94-.26-.38-.72-.96-1.22-1.46-.68-.69-1.2-1-1.65-1a.98.98 0 0 0-.51.13A3.23 3.23 0 0 0 .9 3.42c-.13 1.1.26 2.37 1.17 3.78a16.68 16.68 0 0 0 4.55 4.6 6.57 6.57 0 0 0 3.53 1.32A3.2 3.2 0 0 0 13 11.46c.14-.24.24-.64-.07-1.18a7.8 7.8 0 0 0-1.73-1.8c-.64-.5-1.52-1.12-2.13-1.12a.97.97 0 0 0-.34.06c-.47.17-.74.46-.95.69l-.02.02Zm4.32 2.68a6.8 6.8 0 0 0-1.48-1.54h-.02c-.3-.25-.64-.49-.95-.67a2.7 2.7 0 0 0-.56-.24h-.01c-.23.09-.34.21-.56.45l-.02.02-.04.04a1.2 1.2 0 0 1-1.6.15 7.76 7.76 0 0 1-1.86-1.89l-.01-.01-.02-.02a1.21 1.21 0 0 1 .2-1.53l.06-.06.02-.02c.22-.2.35-.31.43-.53v-.02c0-.02 0-.06-.03-.14a3.7 3.7 0 0 0-.5-.88h-.01V3.9c-.23-.33-.65-.87-1.1-1.32H4c-.31-.32-.55-.5-.72-.6a.6.6 0 0 0-.22-.1h-.03a2.23 2.23 0 0 0-1.15 1.66c-.09.78.18 1.8 1.02 3.1a15.68 15.68 0 0 0 4.27 4.33l.02.01.02.02a5.57 5.57 0 0 0 2.97 1.11 2.2 2.2 0 0 0 1.93-1.14h.01v-.05a.57.57 0 0 0-.05-.12Z"})),link:react.createElement(react.Fragment,null,react.createElement("path",{d:"M11.84 2.16a2.25 2.25 0 0 0-3.18 0l-2.5 2.5c-.88.88-.88 2.3 0 3.18a.5.5 0 0 1-.7.7 3.25 3.25 0 0 1 0-4.59l2.5-2.5a3.25 3.25 0 0 1 4.59 4.6L10.48 8.1c.04-.44.01-.89-.09-1.32l1.45-1.45c.88-.88.88-2.3 0-3.18Z"}),react.createElement("path",{d:"M3.6 7.2c-.1-.42-.12-.87-.08-1.31L1.45 7.95a3.25 3.25 0 1 0 4.6 4.6l2.5-2.5a3.25 3.25 0 0 0 0-4.6.5.5 0 0 0-.7.7c.87.89.87 2.31 0 3.2l-2.5 2.5a2.25 2.25 0 1 1-3.2-3.2l1.46-1.44Z"})),unlink:react.createElement(react.Fragment,null,react.createElement("path",{d:"m1.45 7.95 1.3-1.3.71.7-1.3 1.3a2.25 2.25 0 1 0 3.18 3.2l1.3-1.31.71.7-1.3 1.3a3.25 3.25 0 0 1-4.6-4.59ZM12.55 6.05l-1.3 1.3-.71-.7 1.3-1.3a2.25 2.25 0 1 0-3.18-3.2l-1.3 1.31-.71-.7 1.3-1.3a3.25 3.25 0 0 1 4.6 4.59ZM1.85 1.15a.5.5 0 1 0-.7.7l11 11a.5.5 0 0 0 .7-.7l-11-11Z"})),bell:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M8 1.11a1 1 0 1 0-1.99 0A4.5 4.5 0 0 0 2.5 5.5v3.88l-.94 1.89a.5.5 0 0 0-.06.3.5.5 0 0 0 .51.43h3.58a1.5 1.5 0 1 0 2.82 0H12a.5.5 0 0 0 .45-.73l-.94-1.89V5.5A4.5 4.5 0 0 0 8 1.11ZM2.8 11h8.4l-.5-1H3.3l-.5 1Zm7.7-2V5.5a3.5 3.5 0 1 0-7 0V9h7Zm-4 3.5a.5.5 0 1 1 1 0 .5.5 0 0 1-1 0Z"})),rss:react.createElement(react.Fragment,null,react.createElement("path",{d:"M1.5.5c0-.28.22-.5.5-.5a12 12 0 0 1 12 12 .5.5 0 0 1-1 0A11 11 0 0 0 2 1a.5.5 0 0 1-.5-.5Z"}),react.createElement("path",{d:"M1.5 4.5c0-.28.22-.5.5-.5a8 8 0 0 1 8 8 .5.5 0 0 1-1 0 7 7 0 0 0-7-7 .5.5 0 0 1-.5-.5Z"}),react.createElement("path",{fillRule:"evenodd",d:"M5 11a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm-1 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"})),sharealt:react.createElement(react.Fragment,null,react.createElement("path",{d:"M2 1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7.5a.5.5 0 0 0-1 0V12H2V2h4.5a.5.5 0 0 0 0-1H2Z"}),react.createElement("path",{d:"M7.35 7.36 12 2.7v1.8a.5.5 0 0 0 1 0v-3a.5.5 0 0 0-.5-.5h-3a.5.5 0 1 0 0 1h1.8L6.64 6.64a.5.5 0 1 0 .7.7Z"})),share:react.createElement(react.Fragment,null,react.createElement("path",{d:"M6.65.15c.2-.2.5-.2.7 0l2 2a.5.5 0 1 1-.7.7L7.5 1.72v6.8a.5.5 0 0 1-1 0V1.7L5.35 2.86a.5.5 0 1 1-.7-.71l2-2Z"}),react.createElement("path",{d:"M2 4a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H9.5a.5.5 0 1 0 0 1H12v7H2V5h2.5a.5.5 0 0 0 0-1H2Z"})),circlehollow:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M7 13A6 6 0 1 0 7 1a6 6 0 0 0 0 12Zm0 1A7 7 0 1 0 7 0a7 7 0 0 0 0 14Z"})),circle:react.createElement("path",{d:"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Z"}),bookmarkhollow:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M3.5 0h7c.28 0 .5.22.5.5v13a.5.5 0 0 1-.45.5.46.46 0 0 1-.38-.12L7 11.16l-3.17 2.72a.46.46 0 0 1-.38.12.5.5 0 0 1-.45-.5V.5c0-.28.22-.5.5-.5ZM4 12.41l2.66-2.28a.45.45 0 0 1 .38-.13c.1.01.2.05.29.12l2.67 2.3V1H4v11.41Z"})),bookmark:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M3.5 0h7c.28 0 .5.22.5.5v13a.5.5 0 0 1-.45.5.46.46 0 0 1-.38-.12L7 11.16l-3.17 2.72a.46.46 0 0 1-.38.12.5.5 0 0 1-.45-.5V.5c0-.28.22-.5.5-.5Z"})),hearthollow:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M12.81 1.85 13 2a2.97 2.97 0 0 1 .75 1.17 4.39 4.39 0 0 1 .12 2.51 6.26 6.26 0 0 1-1.65 2.55l-4.78 4.6A.59.59 0 0 1 7 13a.67.67 0 0 1-.44-.17L1.78 8.22a7.84 7.84 0 0 1-1.25-1.6C.37 6.31.24 6 .14 5.67a4.32 4.32 0 0 1 .12-2.51 3.2 3.2 0 0 1 1.95-1.9c.47-.18 1-.27 1.57-.27.3 0 .61.04.91.14.3.09.59.21.86.36s.52.33.77.52c.24.19.47.38.68.58a7.56 7.56 0 0 1 1.46-1.1c.27-.15.55-.27.84-.36.3-.1.6-.14.9-.14.59 0 1.12.09 1.59.26.39.15.73.34 1.02.59ZM1.2 3.53A2.2 2.2 0 0 1 2.57 2.2M1.2 3.53c-.13.33-.2.72-.2 1.18 0 .22.03.45.1.68a3.97 3.97 0 0 0 .79 1.46c.19.23.38.45.59.65l4.51 4.36 4.52-4.35c.2-.2.4-.4.59-.65.18-.23.34-.47.49-.73.13-.23.23-.48.3-.73.08-.23.11-.46.11-.7 0-.45-.07-.84-.2-1.18-.12-.33-.3-.6-.51-.8v-.01c-.22-.2-.5-.38-.85-.51-.34-.13-.75-.2-1.24-.2-.2 0-.4.03-.6.09a4.95 4.95 0 0 0-1.9 1.22l-.68.67-.7-.65a9.97 9.97 0 0 0-.62-.53c-.2-.16-.42-.3-.63-.42h-.01c-.21-.12-.43-.22-.66-.29C4.2 2.03 4 2 3.77 2c-.48 0-.88.07-1.21.2"})),heart:react.createElement(react.Fragment,null,react.createElement("path",{d:"M12.81 1.85 13 2a2.97 2.97 0 0 1 .75 1.17 4.39 4.39 0 0 1 .12 2.51 6.26 6.26 0 0 1-1.65 2.55l-4.78 4.6A.59.59 0 0 1 7 13a.67.67 0 0 1-.44-.17L1.78 8.22a7.84 7.84 0 0 1-1.25-1.6C.37 6.31.24 6 .14 5.67a4.32 4.32 0 0 1 .12-2.51 3.2 3.2 0 0 1 1.95-1.9c.47-.18 1-.27 1.57-.27.3 0 .61.04.91.14.3.09.59.21.86.36s.52.33.77.52c.24.19.47.38.68.58a7.56 7.56 0 0 1 1.46-1.1c.27-.15.55-.27.84-.36.3-.1.6-.14.9-.14.59 0 1.12.09 1.59.26.39.15.73.34 1.02.59Z"})),starhollow:react.createElement(react.Fragment,null,react.createElement("path",{d:"M6.32.78a.75.75 0 0 1 1.36 0l1.63 3.54 3.87.46c.63.07.89.86.42 1.3l-2.86 2.64.76 3.81a.75.75 0 0 1-1.1.8L7 11.43l-3.4 1.9a.75.75 0 0 1-1.1-.8l.76-3.81L.4 6.07a.75.75 0 0 1 .42-1.3l3.87-.45L6.32.78ZM7 1.7 5.54 4.86c-.11.24-.34.4-.6.43l-3.46.42 2.56 2.37c.2.17.28.44.23.7l-.68 3.42 3.04-1.7c.23-.14.5-.14.74 0l3.04 1.7-.68-3.43a.75.75 0 0 1 .23-.7l2.56-2.36-3.47-.42a.75.75 0 0 1-.59-.43L7 1.7Z"})),star:react.createElement(react.Fragment,null,react.createElement("path",{d:"M7.68.78a.75.75 0 0 0-1.36 0L4.69 4.32l-3.87.46a.75.75 0 0 0-.42 1.3l2.86 2.64-.76 3.81a.75.75 0 0 0 1.1.8l3.4-1.9 3.4 1.9a.75.75 0 0 0 1.1-.8l-.76-3.81 2.86-2.65a.75.75 0 0 0-.42-1.3L9.3 4.33 7.68.78Z"})),certificate:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M10 7.85A4.49 4.49 0 0 0 7 0a4.5 4.5 0 0 0-3 7.85V13a.5.5 0 0 0 .5.5.5.5 0 0 0 .35-.15L7 11.21l2.15 2.14A.5.5 0 0 0 10 13V7.85ZM7 8a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm-.35 2.15c.2-.2.5-.2.7 0L9 11.79V8.53a4.48 4.48 0 0 1-4 0v3.26l1.65-1.64Z"})),verified:react.createElement(react.Fragment,null,react.createElement("path",{d:"M6.56 13.12a1 1 0 0 1 .88 0l.98.49a1 1 0 0 0 1.31-.43l.52-.97a1 1 0 0 1 .7-.51l1.08-.2a1 1 0 0 0 .81-1.1l-.15-1.1a1 1 0 0 1 .27-.82l.76-.8a1 1 0 0 0 0-1.37l-.76-.79a1 1 0 0 1-.27-.83l.15-1.08a1 1 0 0 0-.8-1.12l-1.09-.19a1 1 0 0 1-.7-.5L9.73.81A1 1 0 0 0 8.43.4l-1 .49a1 1 0 0 1-.87 0L5.58.39a1 1 0 0 0-1.31.43l-.52.97a1 1 0 0 1-.7.51l-1.08.2a1 1 0 0 0-.81 1.1l.15 1.1a1 1 0 0 1-.27.82l-.76.8a1 1 0 0 0 0 1.37l.76.79a1 1 0 0 1 .27.83l-.15 1.08a1 1 0 0 0 .8 1.12l1.09.19a1 1 0 0 1 .7.5l.52.98a1 1 0 0 0 1.3.43l1-.49Zm4.3-8.47c.19.2.19.5 0 .7l-4.5 4.5a.5.5 0 0 1-.71 0l-2.5-2.5a.5.5 0 1 1 .7-.7L6 8.79l4.15-4.14c.2-.2.5-.2.7 0Z"})),thumbsup:react.createElement(react.Fragment,null,react.createElement("path",{d:"M11 12.02c-.4.37-.91.56-1.56.56h-.88a5.5 5.5 0 0 1-1.3-.16c-.42-.1-.91-.25-1.47-.45-.3-.12-.63-.21-.95-.27H2.88a.84.84 0 0 1-.62-.26.84.84 0 0 1-.26-.61V6.45c0-.24.09-.45.26-.62a.84.84 0 0 1 .62-.25h1.87c.16-.11.47-.47.93-1.06.27-.35.51-.64.74-.88.1-.11.19-.3.24-.58.05-.28.12-.57.2-.87.1-.3.24-.55.43-.74a.87.87 0 0 1 .62-.25c.38 0 .72.07 1.03.22.3.15.54.38.7.7a2.94 2.94 0 0 1 .21 1.58 3 3 0 0 1-.3 1h1.2c.47 0 .88.17 1.23.52s.52.8.52 1.22c0 .29-.04.66-.34 1.12.05.15.07.3.07.47 0 .35-.09.68-.26.98.07.54-.07 1.08-.4 1.51a1.9 1.9 0 0 1-.57 1.5Zm.47-5.33a.96.96 0 0 0 .03-.25.74.74 0 0 0-.23-.51.68.68 0 0 0-.52-.23H7.93l.73-1.45a2 2 0 0 0 .21-.87c0-.44-.07-.7-.13-.82a.53.53 0 0 0-.24-.24 1.3 1.3 0 0 0-.54-.12.99.99 0 0 0-.14.28c-.08.27-.13.52-.18.76-.06.38-.2.77-.48 1.07v.01l-.02.01c-.2.2-.4.46-.67.8l-.61.76c-.15.17-.35.38-.54.51l-.26.18H5v4.13h.02c.38.08.76.18 1.12.32.53.2.98.33 1.35.42.36.09.71.13 1.07.13h.88c.43 0 .68-.11.87-.29a.9.9 0 0 0 .26-.7l-.02-.37.22-.3c.17-.23.25-.5.2-.78l-.04-.33.17-.3a.97.97 0 0 0 .13-.48c0-.09 0-.13-.02-.15l-.15-.46.26-.4c.1-.15.13-.25.15-.33ZM3.5 10.8a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z"})),shield:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M11.76 2.08a.5.5 0 0 1 .24.42v6a.5.5 0 0 1-.17.38l-4.5 3.99a.5.5 0 0 1-.67 0l-4.49-4A.5.5 0 0 1 2 8.5V2.5c0-.18.1-.34.24-.42l.01-.02a2.5 2.5 0 0 1 .3-.16c.22-.1.52-.24.92-.37C4.27 1.26 5.44 1 7 1c1.56 0 2.73.26 3.53.53a6.97 6.97 0 0 1 1.22.53l.01.02ZM3 2.79v5.49l1.07.94 6.59-6.58-.44-.17C9.52 2.24 8.44 2 7 2c-1.44 0-2.52.24-3.22.47-.35.12-.6.24-.78.32Zm4 9.04L4.82 9.9 11 3.71v4.57l-4 3.55Z"})),basket:react.createElement(react.Fragment,null,react.createElement("path",{d:"M10.35 2.85a.5.5 0 1 0-.7-.7l-3 3a.5.5 0 1 0 .7.7l3-3Z"}),react.createElement("path",{d:"M2.09 6H4.5a.5.5 0 0 0 0-1H1.8a.75.75 0 0 0-.74.87l.8 4.88A1.5 1.5 0 0 0 3.36 12h7.3a1.5 1.5 0 0 0 1.48-1.25l.81-4.88A.75.75 0 0 0 12.2 5H10a.5.5 0 0 0 0 1h1.91l-.76 4.58a.5.5 0 0 1-.5.42h-7.3a.5.5 0 0 1-.5-.42L2.1 6Z"}),react.createElement("path",{d:"M4.5 7c.28 0 .5.22.5.5v2a.5.5 0 0 1-1 0v-2c0-.28.22-.5.5-.5ZM10 7.5a.5.5 0 0 0-1 0v2a.5.5 0 0 0 1 0v-2ZM6.5 9.5v-2a.5.5 0 0 1 1 0v2a.5.5 0 0 1-1 0Z"})),beaker:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M4.5 2h.75v3.87l-3.03 5.26c-.48.83.12 1.87 1.08 1.87h7.4c.96 0 1.57-1.04 1.08-1.87L8.75 5.87V2h.75a.5.5 0 0 0 0-1h-5a.5.5 0 0 0 0 1Zm1.75 4V2h1.5v4.13l.07.12 1 1.75H5.18l1.01-1.75.07-.12V6ZM4.6 9l-1.52 2.63c-.1.16.03.37.22.37h7.4c.2 0 .31-.2.22-.37L9.4 9H4.6Z"})),hourglass:react.createElement(react.Fragment,null,react.createElement("path",{d:"M7.5 10.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"}),react.createElement("path",{fillRule:"evenodd",d:"M3.5 1a.5.5 0 0 0-.5.5c0 1.06.14 1.9.68 2.97.34.7.86 1.5 1.6 2.53a16.53 16.53 0 0 0-1.8 2.96A6 6 0 0 0 3 12.49v.01a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5 6 6 0 0 0-.48-2.54c-.34-.8-.9-1.71-1.8-2.96a19.78 19.78 0 0 0 1.6-2.53c.54-1.08.68-1.9.68-2.97a.5.5 0 0 0-.5-.5h-7Zm6.49 11a4.68 4.68 0 0 0-.39-1.65c-.27-.65-.73-1.4-1.5-2.5a133 133 0 0 1-.75 1 .5.5 0 0 1-.56.1.5.5 0 0 1-.2-.16l-.7-.94a14.36 14.36 0 0 0-1.5 2.5A4.68 4.68 0 0 0 4.02 12H10ZM6.3 6.72l.7.94a90.06 90.06 0 0 0 .7-.96c.49-.67.87-1.22 1.17-1.7H5.13A32.67 32.67 0 0 0 6.3 6.72ZM4.56 4h4.88c.36-.73.5-1.31.55-2H4c.04.69.19 1.27.55 2Z"})),flag:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M11.5 1h-9a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 1 0V8h8.5a.5.5 0 0 0 .35-.85L9.21 4.5l2.64-2.65A.5.5 0 0 0 11.5 1ZM8.15 4.15 10.29 2H3v5h7.3L8.14 4.85a.5.5 0 0 1 0-.7Z"})),cloudhollow:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M10 7V6a3 3 0 0 0-5.9-.74l-.18.68-.7.07A2.5 2.5 0 0 0 3.5 11h3.19l.07-.01h.08L7 11h4a2 2 0 1 0 0-4h-1ZM3.12 5.02A3.5 3.5 0 0 0 3.5 12H11a3 3 0 1 0 0-6 4 4 0 0 0-7.88-.98Z"})),cloud:react.createElement("path",{d:"M7 2a4 4 0 0 1 4 4 3 3 0 1 1 0 6H3.5a3.5 3.5 0 0 1-.38-6.98A4 4 0 0 1 7 2Z"}),edit:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"m13.85 2.15-2-2a.5.5 0 0 0-.7 0l-1.5 1.5-9 9a.5.5 0 0 0-.14.26L0 13.39a.5.5 0 0 0 .14.46.5.5 0 0 0 .46.14l2.48-.5a.5.5 0 0 0 .27-.14l9-9 1.5-1.5a.5.5 0 0 0 0-.7ZM12 3.29l.8-.79-1.3-1.3-.8.8L12 3.3Zm-2-.58L1.7 11 3 12.3 11.3 4 10 2.7ZM1.14 12.86l.17-.85.68.68-.85.17Z"})),cog:react.createElement(react.Fragment,null,react.createElement("path",{d:"M5.59 5.59a2 2 0 0 1 3.27 2.14.5.5 0 1 0 .93.37 3 3 0 1 0-1.7 1.7.5.5 0 1 0-.36-.94A2 2 0 0 1 5.6 5.6Z",fill:"#333"}),react.createElement("path",{fillRule:"evenodd",d:"M.94 6.53c.13.12.19.3.18.46 0 .17-.05.34-.18.47L0 8.39c.19.94.55 1.81 1.07 2.58h1.32c.18 0 .34.07.46.2.12.11.2.27.2.45v1.32c.76.51 1.62.88 2.55 1.06l.94-.94a.63.63 0 0 1 .45-.19h.03c.16 0 .33.07.45.19l.94.94a7.1 7.1 0 0 0 2.55-1.06v-1.33c0-.18.07-.35.2-.46.11-.12.27-.2.45-.2h1.33A7.1 7.1 0 0 0 14 8.4l-.95-.94a.64.64 0 0 1-.18-.47c0-.17.06-.34.18-.46l.95-.95a7.1 7.1 0 0 0-1.05-2.52h-1.34a.63.63 0 0 1-.46-.2.64.64 0 0 1-.2-.46V1.06A7.1 7.1 0 0 0 8.42 0l-.94.94a.63.63 0 0 1-.45.19H7a.63.63 0 0 1-.45-.19L5.6 0a7.1 7.1 0 0 0-2.56 1.06v1.33c0 .18-.07.34-.2.46a.63.63 0 0 1-.45.2H1.06A7.1 7.1 0 0 0 0 5.59l.94.94Zm.7 1.63c.33-.32.49-.75.48-1.17 0-.42-.15-.85-.47-1.17l-.54-.54c.12-.43.3-.85.51-1.23h.77c.46 0 .87-.2 1.17-.5.3-.29.48-.7.48-1.16v-.77c.4-.22.81-.39 1.25-.52l.54.55c.33.32.75.48 1.16.48h.03c.42 0 .84-.16 1.16-.48l.54-.54c.44.12.85.3 1.24.5v.8c0 .45.19.87.49 1.16.3.3.7.5 1.16.5h.78c.2.37.38.78.5 1.2l-.54.55c-.33.32-.49.75-.48 1.17 0 .42.15.85.48 1.17l.55.55c-.13.44-.3.85-.52 1.24h-.77c-.45 0-.87.2-1.16.5-.3.29-.5.7-.5 1.16v.77c-.38.21-.8.39-1.23.51l-.54-.54a1.64 1.64 0 0 0-1.16-.48H7c-.41 0-.83.16-1.16.48l-.54.55a6.1 6.1 0 0 1-1.25-.52v-.76c0-.45-.19-.87-.48-1.16-.3-.3-.71-.5-1.17-.5h-.76a6.1 6.1 0 0 1-.53-1.25l.55-.55Z"})),nut:react.createElement(react.Fragment,null,react.createElement("path",{d:"M5.59 8.41a2 2 0 1 1 3.27-.68.5.5 0 1 0 .93.37 3 3 0 1 0-1.7 1.7.5.5 0 0 0-.36-.94 2 2 0 0 1-2.14-.45Z"}),react.createElement("path",{fillRule:"evenodd",d:"M6.5.29a1 1 0 0 1 1 0l5.06 2.92c.31.18.5.51.5.87v5.84a1 1 0 0 1-.5.87L7.5 13.7a1 1 0 0 1-1 0L1.44 10.8a1 1 0 0 1-.5-.87V4.08a1 1 0 0 1 .5-.87L6.5.3Zm.5.86 5.06 2.93v5.84L7 12.85 1.94 9.92V4.08L7 1.15Z"})),wrench:react.createElement(react.Fragment,null,react.createElement("path",{d:"M10.5 1c.44 0 .56.52.25.83l-.8.81c-.2.2-.2.52 0 .72l.69.7c.2.2.52.2.72 0l.8-.81c.32-.31.84-.2.84.25a2.5 2.5 0 0 1-3.41 2.33L2.7 12.7a1 1 0 0 1-1.42-1.42l6.88-6.88A2.5 2.5 0 0 1 10.5 1ZM2 12.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z"})),ellipsis:react.createElement(react.Fragment,null,react.createElement("path",{d:"M4 7a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM13 7a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM7 8.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"})),check:react.createElement(react.Fragment,null,react.createElement("path",{d:"M13.85 3.35a.5.5 0 0 0-.7-.7L5 10.79.85 6.65a.5.5 0 1 0-.7.7l4.5 4.5c.2.2.5.2.7 0l8.5-8.5Z"})),form:react.createElement(react.Fragment,null,react.createElement("path",{d:"M2 1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V6.4a.5.5 0 0 0-1 0V12H2V2h7.5a.5.5 0 0 0 0-1H2Z"}),react.createElement("path",{d:"m6.35 9.86 7.5-7.5a.5.5 0 0 0-.7-.71L6 8.8 3.85 6.65a.5.5 0 1 0-.7.7l2.5 2.5c.2.2.5.2.7 0Z"})),batchdeny:react.createElement(react.Fragment,null,react.createElement("path",{d:"M11.5 2a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1h-2Zm-2.646.646a.5.5 0 0 1 0 .708L5.207 7l3.647 3.646a.5.5 0 0 1-.708.708L4.5 7.707.854 11.354a.5.5 0 0 1-.708-.708L3.793 7 .146 3.354a.5.5 0 1 1 .708-.708L4.5 6.293l3.646-3.647a.5.5 0 0 1 .708 0ZM11 7a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2A.5.5 0 0 1 11 7Zm.5 4a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1h-2Z"})),batchaccept:react.createElement(react.Fragment,null,react.createElement("path",{d:"M11.5 2a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1h-2Zm-2.2.6a.5.5 0 0 1 .1.7l-5.995 7.993a.505.505 0 0 1-.37.206.5.5 0 0 1-.395-.152L.146 8.854a.5.5 0 1 1 .708-.708l2.092 2.093L8.6 2.7a.5.5 0 0 1 .7-.1ZM11 7a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2A.5.5 0 0 1 11 7Zm.5 4a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1h-2Z"})),controls:react.createElement(react.Fragment,null,react.createElement("path",{d:"M10.5 1c.28 0 .5.22.5.5V2h1.5a.5.5 0 0 1 0 1H11v.5a.5.5 0 0 1-1 0V3H1.5a.5.5 0 0 1 0-1H10v-.5c0-.28.22-.5.5-.5ZM1.5 11a.5.5 0 0 0 0 1H10v.5a.5.5 0 0 0 1 0V12h1.5a.5.5 0 0 0 0-1H11v-.5a.5.5 0 0 0-1 0v.5H1.5ZM1 7c0-.28.22-.5.5-.5H3V6a.5.5 0 0 1 1 0v.5h8.5a.5.5 0 0 1 0 1H4V8a.5.5 0 0 1-1 0v-.5H1.5A.5.5 0 0 1 1 7Z"})),plus:react.createElement(react.Fragment,null,react.createElement("path",{d:"M7.5.5a.5.5 0 0 0-1 0v6h-6a.5.5 0 0 0 0 1h6v6a.5.5 0 0 0 1 0v-6h6a.5.5 0 0 0 0-1h-6v-6Z"})),closeAlt:react.createElement(react.Fragment,null,react.createElement("path",{d:"M2.03.97A.75.75 0 0 0 .97 2.03L5.94 7 .97 11.97a.75.75 0 1 0 1.06 1.06L7 8.06l4.97 4.97a.75.75 0 1 0 1.06-1.06L8.06 7l4.97-4.97A.75.75 0 0 0 11.97.97L7 5.94 2.03.97Z"})),cross:react.createElement(react.Fragment,null,react.createElement("path",{d:"M1.85 1.15a.5.5 0 1 0-.7.7L6.29 7l-5.14 5.15a.5.5 0 0 0 .7.7L7 7.71l5.15 5.14a.5.5 0 0 0 .7-.7L7.71 7l5.14-5.15a.5.5 0 0 0-.7-.7L7 6.29 1.85 1.15Z"})),trash:react.createElement(react.Fragment,null,react.createElement("path",{d:"M5.5 4.5c.28 0 .5.22.5.5v5a.5.5 0 0 1-1 0V5c0-.28.22-.5.5-.5ZM9 5a.5.5 0 0 0-1 0v5a.5.5 0 0 0 1 0V5Z"}),react.createElement("path",{fillRule:"evenodd",d:"M4.5.5c0-.28.22-.5.5-.5h4c.28 0 .5.22.5.5V2h3a.5.5 0 0 1 0 1H12v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V3h-.5a.5.5 0 0 1 0-1h3V.5ZM3 3v8a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V3H3Zm2.5-2h3v1h-3V1Z"})),pinalt:react.createElement(react.Fragment,null,react.createElement("path",{d:"M13.44 4.44 9.56.56a1.5 1.5 0 0 0-2.12 0L7 1a1.41 1.41 0 0 0 0 2L5 5H3.66A4 4 0 0 0 .83 6.17l-.48.48a.5.5 0 0 0 0 .7l2.8 2.8-3 3a.5.5 0 0 0 .7.7l3-3 2.8 2.8c.2.2.5.2.7 0l.48-.48A4 4 0 0 0 9 10.34V9l2-2c.55.55 1.45.55 2 0l.44-.44a1.5 1.5 0 0 0 0-2.12ZM11 5.59l-3 3v1.75a3 3 0 0 1-.88 2.12L7 12.6 1.41 7l.13-.12A3 3 0 0 1 3.66 6H5.4l3-3-.7-.7a.41.41 0 0 1 0-.6l.44-.43c.2-.2.5-.2.7 0l3.88 3.88c.2.2.2.5 0 .7l-.44.44a.41.41 0 0 1-.58 0L11 5.6Z"})),unpin:react.createElement(react.Fragment,null,react.createElement("path",{d:"M13.44 4.44 9.56.56a1.5 1.5 0 0 0-2.12 0L7 1a1.41 1.41 0 0 0 0 2L5.7 4.3l.71.7 2-2-.7-.7a.41.41 0 0 1 0-.6l.44-.43c.2-.2.5-.2.7 0l3.88 3.88c.2.2.2.5 0 .7l-.44.44a.41.41 0 0 1-.58 0L11 5.6l-2 2 .7.7L11 7c.55.55 1.45.55 2 0l.44-.44a1.5 1.5 0 0 0 0-2.12ZM.83 6.17A4 4 0 0 1 3.59 5l1 1h-.93a3 3 0 0 0-2.12.88L1.4 7 7 12.59l.12-.13A3 3 0 0 0 8 10.34v-.93l1 1a4 4 0 0 1-1.17 2.76l-.48.48a.5.5 0 0 1-.7 0l-2.8-2.8-3 3a.5.5 0 0 1-.7-.7l3-3-2.8-2.8a.5.5 0 0 1 0-.7l.48-.48Zm1.02-5.02a.5.5 0 1 0-.7.7l11 11a.5.5 0 0 0 .7-.7l-11-11Z"})),add:react.createElement(react.Fragment,null,react.createElement("path",{d:"M7 3c.28 0 .5.22.5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3c0-.28.22-.5.5-.5Z"}),react.createElement("path",{fillRule:"evenodd",d:"M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14Zm0-1A6 6 0 1 0 7 1a6 6 0 0 0 0 12Z"})),subtract:react.createElement(react.Fragment,null,react.createElement("path",{d:"M3.5 6.5a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-7Z"}),react.createElement("path",{fillRule:"evenodd",d:"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-1 0A6 6 0 1 1 1 7a6 6 0 0 1 12 0Z"})),close:react.createElement(react.Fragment,null,react.createElement("path",{d:"M9.85 4.15c.2.2.2.5 0 .7L7.71 7l2.14 2.15a.5.5 0 0 1-.7.7L7 7.71 4.85 9.85a.5.5 0 0 1-.7-.7L6.29 7 4.15 4.85a.5.5 0 1 1 .7-.7L7 6.29l2.15-2.14c.2-.2.5-.2.7 0Z"}),react.createElement("path",{fillRule:"evenodd",d:"M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14Zm0-1A6 6 0 1 0 7 1a6 6 0 0 0 0 12Z"})),delete:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-1 0a6 6 0 0 1-9.87 4.58l8.45-8.45A5.98 5.98 0 0 1 13 7ZM2.42 10.87l8.45-8.45a6 6 0 0 0-8.46 8.46Z"})),passed:react.createElement(react.Fragment,null,react.createElement("path",{d:"M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14Zm3.85-9.35c.2.2.2.5 0 .7l-4.5 4.5a.5.5 0 0 1-.7 0l-2.5-2.5a.5.5 0 1 1 .7-.7L6 8.79l4.15-4.14c.2-.2.5-.2.7 0Z"})),changed:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14ZM3.5 6.5a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-7Z"})),failed:react.createElement(react.Fragment,null,react.createElement("path",{d:"M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14Zm2.85-9.85c.2.2.2.5 0 .7L7.71 7l2.14 2.15a.5.5 0 0 1-.7.7L7 7.71 4.85 9.85a.5.5 0 0 1-.7-.7L6.29 7 4.15 4.85a.5.5 0 1 1 .7-.7L7 6.29l2.15-2.14c.2-.2.5-.2.7 0Z"})),clear:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M5 2h7a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H5a2 2 0 0 1-1.41-.59l-3-3a2 2 0 0 1 0-2.82l3-3A2 2 0 0 1 5 2Zm1.15 3.15c.2-.2.5-.2.7 0L8 6.29l1.15-1.14a.5.5 0 1 1 .7.7L8.71 7l1.14 1.15a.5.5 0 0 1-.7.7L8 7.71 6.85 8.85a.5.5 0 1 1-.7-.7L7.29 7 6.15 5.85a.5.5 0 0 1 0-.7Z"})),comment:react.createElement(react.Fragment,null,react.createElement("path",{d:"M3.5 5a.5.5 0 1 0 0 1h7a.5.5 0 0 0 0-1h-7ZM3 8.5c0-.27.22-.5.5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5Z"}),react.createElement("path",{fillRule:"evenodd",d:"M12.5 12H5.7l-1.85 1.86a.5.5 0 0 1-.35.14.5.5 0 0 1-.5-.5V12H1.5a.5.5 0 0 1-.5-.5v-9c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v9a.5.5 0 0 1-.5.5ZM2 11V3h10v8H2Z"})),commentadd:react.createElement(react.Fragment,null,react.createElement("path",{d:"M7.5 5a.5.5 0 1 0-1 0v1.5H5a.5.5 0 1 0 0 1h1.5V9a.5.5 0 0 0 1 0V7.5H9a.5.5 0 0 0 0-1H7.5V5Z"}),react.createElement("path",{fillRule:"evenodd",d:"M3.7 13.97a.5.5 0 0 1-.7-.46V12H1.5a.5.5 0 0 1-.5-.5v-9c0-.28.22-.5.5-.5h11c.28 0 .5.22.5.5v9a.5.5 0 0 1-.5.5H5.7l-1.85 1.85a.5.5 0 0 1-.16.1ZM2 3v8h10V3H2Z"})),requestchange:react.createElement(react.Fragment,null,react.createElement("path",{d:"M9.85 6.65c.2.2.2.51 0 .7l-2 2a.5.5 0 1 1-.7-.7L8.3 7.5H4.5a.5.5 0 0 1 0-1h3.79L7.15 5.36a.5.5 0 1 1 .7-.71l2 2Z"}),react.createElement("path",{fillRule:"evenodd",d:"M3.7 13.97a.5.5 0 0 1-.7-.46V12H1.5a.5.5 0 0 1-.5-.5v-9c0-.28.22-.5.5-.5h11c.28 0 .5.22.5.5v9a.5.5 0 0 1-.5.5H5.7l-1.85 1.85a.5.5 0 0 1-.16.1ZM2 3v8h10V3H2Z"})),comments:react.createElement(react.Fragment,null,react.createElement("path",{d:"M8.5 7a.5.5 0 0 0 0-1h-5a.5.5 0 1 0 0 1h5ZM9 8.5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1 0-1h5c.28 0 .5.23.5.5Z"}),react.createElement("path",{fillRule:"evenodd",d:"M12 11.5V10h1.5a.5.5 0 0 0 .5-.5v-8a.5.5 0 0 0-.5-.5h-11a.5.5 0 0 0-.5.5V3H.5a.5.5 0 0 0-.5.5v8c0 .28.22.5.5.5H2v1.5a.5.5 0 0 0 .5.5.5.5 0 0 0 .35-.14L4.71 12h6.79a.5.5 0 0 0 .5-.5ZM3 3V2h10v7h-1V3.5a.5.5 0 0 0-.5-.5H3Zm-2 8V4h10v7H1Z"})),lock:react.createElement(react.Fragment,null,react.createElement("path",{d:"M8 8a1 1 0 0 1-.5.87v1.63a.5.5 0 0 1-1 0V8.87A1 1 0 1 1 8 8Z"}),react.createElement("path",{fillRule:"evenodd",d:"M3 4a4 4 0 1 1 8 0v1h1.5c.28 0 .5.23.5.5v8a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-8c0-.27.22-.5.5-.5H3V4Zm7 1V4a3 3 0 1 0-6 0v1h6Zm2 1H2v7h10V6Z"})),unlock:react.createElement(react.Fragment,null,react.createElement("path",{d:"M6.5 8.87a1 1 0 1 1 1 0v1.63a.5.5 0 0 1-1 0V8.87Z"}),react.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 1a3 3 0 0 0-3 3v1h8.5c.28 0 .5.23.5.5v8a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-8c0-.27.22-.5.5-.5H3V4a4 4 0 0 1 7.76-1.38.5.5 0 0 1-.94.34A3 3 0 0 0 7 1ZM2 6h10v7H2V6Z"})),key:react.createElement(react.Fragment,null,react.createElement("path",{d:"M11 4a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"}),react.createElement("path",{fillRule:"evenodd",d:"M7.5 8.53v.97a.5.5 0 0 1-.5.5H5.5v1.5a.5.5 0 0 1-.5.5H3.5v1.5a.5.5 0 0 1-.5.5H.5a.5.5 0 0 1-.5-.5v-2a.5.5 0 0 1 .15-.36l5.12-5.11a4.5 4.5 0 1 1 2.23 2.5ZM6 4.5a3.5 3.5 0 1 1 1.5 2.87c-.29-.2-1-.37-1 .48V9H5a.5.5 0 0 0-.5.5V11H3a.5.5 0 0 0-.5.5V13H1v-1.3l5.2-5.19c.15-.16.18-.4.1-.6A3.47 3.47 0 0 1 6 4.5Z"})),outbox:react.createElement(react.Fragment,null,react.createElement("path",{d:"M7.35.15a.5.5 0 0 0-.7 0l-2 2a.5.5 0 1 0 .7.7L6.5 1.72v6.8a.5.5 0 0 0 1 0V1.7l1.15 1.15a.5.5 0 1 0 .7-.71l-2-2Z"}),react.createElement("path",{d:"M2 7.5a.5.5 0 1 0-1 0v5c0 .28.22.5.5.5h11a.5.5 0 0 0 .5-.5v-5a.5.5 0 0 0-1 0V12H2V7.5Z"})),credit:react.createElement(react.Fragment,null,react.createElement("path",{d:"M2.5 8a.5.5 0 1 0 0 1h3a.5.5 0 0 0 0-1h-3Z"}),react.createElement("path",{fillRule:"evenodd",d:"M0 11.5c0 .28.22.5.5.5h13a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5H.5a.5.5 0 0 0-.5.5v9ZM1 3v1h12V3H1Zm0 8h12V6H1v5Z"})),button:react.createElement(react.Fragment,null,react.createElement("path",{d:"M1 3a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h3.5a.5.5 0 1 0 0-1H1V4h12v5h-1a.5.5 0 0 0 0 1h1a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H1Z"}),react.createElement("path",{d:"M6.45 7a.5.5 0 0 1 .3.08l3.48 2.02a.5.5 0 0 1 0 .87l-1.08.62.75 1.3a.75.75 0 0 1-1.3.75l-.75-1.3-1.07.62a.5.5 0 0 1-.67-.13.5.5 0 0 1-.1-.3L6 7.5a.5.5 0 0 1 .45-.5Z"})),type:react.createElement(react.Fragment,null,react.createElement("path",{d:"M4 1.5c0-.27.22-.5.5-.5h5a.5.5 0 1 1 0 1h-2v10h2a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1h2V2h-2a.5.5 0 0 1-.5-.5Z"}),react.createElement("path",{d:"M0 4.5c0-.27.22-.5.5-.5h4a.5.5 0 1 1 0 1H1v4h3.5a.5.5 0 1 1 0 1h-4a.5.5 0 0 1-.5-.5v-5ZM9.5 4a.5.5 0 1 0 0 1H13v4H9.5a.5.5 0 1 0 0 1h4a.5.5 0 0 0 .5-.5v-5a.5.5 0 0 0-.5-.5h-4Z"})),pointerdefault:react.createElement(react.Fragment,null,react.createElement("path",{d:"M5.94 12.46c.11 0 .2-.06.25-.15l1.58-3.16 2.54 2.54c.04.05.1.07.19.07a.3.3 0 0 0 .2-.07l.8-.8a.27.27 0 0 0 0-.38L8.9 7.9l3.4-1.7c.06-.03.1-.07.12-.11a.22.22 0 0 0 .04-.14.33.33 0 0 0-.06-.16.17.17 0 0 0-.09-.07h-.02L1.91 1.55a.27.27 0 0 0-.35.36l4.15 10.37c.04.09.12.16.23.17Zm-.03 1h-.02a1.28 1.28 0 0 1-1.1-.8L.62 2.29A1.27 1.27 0 0 1 2.3.63l10.35 4.15c.52.18.79.65.81 1.11.04.53-.27.98-.7 1.2l-2.17 1.08L12.2 9.8c.5.5.5 1.3 0 1.8l-.8.8v.01c-.5.46-1.3.48-1.8-.01l-1.56-1.56-.95 1.92c-.23.45-.68.7-1.15.7h-.03Z"})),pointerhand:react.createElement(react.Fragment,null,react.createElement("path",{d:"M11.87 6v-.02c-.03-.27-.23-.48-.47-.5a.5.5 0 0 0-.53.5v1.41c0 .25-.22.47-.47.47a.48.48 0 0 1-.47-.47V5.17a.6.6 0 0 0 0-.05c-.02-.27-.23-.5-.47-.5a.5.5 0 0 0-.52.5v1.65l-.01.1a.49.49 0 0 1-.46.37.48.48 0 0 1-.47-.47V4.62a.6.6 0 0 0 0-.05c-.03-.27-.23-.48-.47-.5a.5.5 0 0 0-.53.5v2.2c0 .25-.22.47-.47.47a.49.49 0 0 1-.47-.47V1.75c-.02-.27-.22-.5-.47-.5a.5.5 0 0 0-.52.5v6.78c0 .25-.22.47-.47.47a.48.48 0 0 1-.47-.47v-.26a.78.78 0 0 0-.06-.31.65.65 0 0 0-.16-.22l-.2-.19A6.37 6.37 0 0 0 3.06 7h-.02c-.43-.34-.62-.25-.69-.2-.26.14-.29.5-.13.74l1.73 2.6v.01h-.01l-.04.02.05-.02s1.21 2.6 3.57 2.6c3.54 0 4.2-1.9 4.31-4.42.04-.6.04-1.19.03-1.78V6Zm.97 2.38c-.06 1.29-.26 2.67-1.08 3.72-.88 1.12-2.29 1.65-4.23 1.65a4.64 4.64 0 0 1-3.4-1.62 6.96 6.96 0 0 1-1.05-1.5v-.02L1.4 8.1A1.6 1.6 0 0 1 1.15 7c.05-.38.26-.8.69-1.04.2-.13.48-.23.85-.19.36.05.68.22.98.45.14.1.27.22.4.33v-4.8A1.5 1.5 0 0 1 5.63.25c.93.04 1.43.86 1.43 1.55v1.33c.17-.05.35-.07.53-.06h.02c.5.04.91.33 1.15.71a1.5 1.5 0 0 1 .74-.16c.66.03 1.12.46 1.32.97a1.5 1.5 0 0 1 .64-.1h.02c.85.06 1.39.8 1.39 1.55v.48c0 .6 0 1.24-.03 1.86Z"})),browser:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M.5 13a.5.5 0 0 1-.5-.5v-11c0-.27.22-.5.5-.5h13c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5H.5Zm.5-1V4h12v8H1Zm1-9.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Zm2 0a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Zm2 0a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"})),tablet:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M3.5 0C2.67 0 2 .68 2 1.5v11c0 .83.67 1.5 1.5 1.5h7c.83 0 1.5-.67 1.5-1.5v-11c0-.82-.67-1.5-1.5-1.5h-7Zm0 1h7c.28 0 .5.23.5.5V11H3V1.5c0-.27.22-.5.5-.5ZM6 12a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1H6Z"})),mobile:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M3 1.5C3 .68 3.67 0 4.5 0h5c.83 0 1.5.68 1.5 1.5v11c0 .83-.67 1.5-1.5 1.5h-5A1.5 1.5 0 0 1 3 12.5v-11ZM4 12V2h6v10H4Z"})),watch:react.createElement(react.Fragment,null,react.createElement("path",{key:"watch",fillRule:"evenodd",d:"M4 .5c0-.27.22-.5.5-.5h5a.5.5 0 0 1 0 1h-5A.5.5 0 0 1 4 .5ZM9.5 3h-5a.5.5 0 0 0-.5.5v7c0 .28.22.5.5.5h5a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.5-.5Zm-5-1C3.67 2 3 2.68 3 3.5v7c0 .83.67 1.5 1.5 1.5h5c.83 0 1.5-.67 1.5-1.5v-7c0-.82-.67-1.5-1.5-1.5h-5ZM7 4c.28 0 .5.23.5.5v2h1a.5.5 0 1 1 0 1H7a.5.5 0 0 1-.5-.5V4.5c0-.27.22-.5.5-.5Zm-2.5 9a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1h-5Z"})),sidebar:react.createElement(react.Fragment,null,react.createElement("path",{d:"M2.5 4.5c0-.27.22-.5.5-.5h1a.5.5 0 1 1 0 1H3a.5.5 0 0 1-.5-.5ZM3 6a.5.5 0 1 0 0 1h1a.5.5 0 0 0 0-1H3Zm-.5 2.5c0-.27.22-.5.5-.5h1a.5.5 0 1 1 0 1H3a.5.5 0 0 1-.5-.5Z"}),react.createElement("path",{fillRule:"evenodd",d:"M1.5 13a.5.5 0 0 1-.5-.5v-11c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11Zm.5-1V2h3v10H2ZM6 2h6v10H6V2Z"})),sidebaralt:react.createElement(react.Fragment,null,react.createElement("path",{d:"M9.5 4.5c0-.27.22-.5.5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5ZM10 6a.5.5 0 1 0 0 1h1a.5.5 0 0 0 0-1h-1Zm-.5 2.5c0-.27.22-.5.5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5Z"}),react.createElement("path",{fillRule:"evenodd",d:"M1.5 13a.5.5 0 0 1-.5-.5v-11c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11Zm.5-1V2h6v10H2ZM9 2h3v10H9V2Z"})),sidebaralttoggle:react.createElement(react.Fragment,null,react.createElement("path",{d:"M11.5 4.5A.5.5 0 0 0 11 4h-1a.5.5 0 1 0 0 1h1a.5.5 0 0 0 .5-.5ZM11 6a.5.5 0 0 1 0 1h-1a.5.5 0 0 1 0-1h1Zm.5 2.5A.5.5 0 0 0 11 8h-1a.5.5 0 1 0 0 1h1a.5.5 0 0 0 .5-.5Z"}),react.createElement("path",{fillRule:"evenodd",d:"M1.5 13a.5.5 0 0 1-.5-.5v-11c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11ZM9 12h3V2H9v10Zm-1 0H2V2h6v4.5H5.2l.66-.65a.5.5 0 1 0-.71-.7l-1.5 1.5a.5.5 0 0 0 0 .7l1.5 1.5a.5.5 0 1 0 .7-.7l-.64-.65H8V12Z"})),sidebartoggle:react.createElement(react.Fragment,null,react.createElement("path",{d:"M2.5 4.5c0-.27.22-.5.5-.5h1a.5.5 0 1 1 0 1H3a.5.5 0 0 1-.5-.5ZM3 6a.5.5 0 1 0 0 1h1a.5.5 0 0 0 0-1H3Zm-.5 2.5c0-.27.22-.5.5-.5h1a.5.5 0 1 1 0 1H3a.5.5 0 0 1-.5-.5Z"}),react.createElement("path",{fillRule:"evenodd",d:"M1.5 13a.5.5 0 0 1-.5-.5v-11c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11Zm.5-1V2h3v10H2Zm4 0V7.5h2.8l-.65.65a.5.5 0 1 0 .7.7l1.5-1.5a.5.5 0 0 0 0-.7l-1.5-1.5a.5.5 0 1 0-.7.7l.64.65H6V2h6v10H6Z"})),bottombar:react.createElement(react.Fragment,null,react.createElement("path",{d:"M3 10.5c0-.27.22-.5.5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5Zm3.5-.5a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1h-1Zm2.5.5c0-.27.22-.5.5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5Z"}),react.createElement("path",{fillRule:"evenodd",d:"M1 1.5c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11ZM2 8V2h10v6H2Zm10 1v3H2V9h10Z"})),bottombartoggle:react.createElement(react.Fragment,null,react.createElement("path",{d:"M3.5 10a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1h-1Zm2.5.5c0-.27.22-.5.5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5Zm3.5-.5a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1h-1Z"}),react.createElement("path",{fillRule:"evenodd",d:"M1 12.5v-11c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5Zm1-.5V9h10v3H2Zm4.5-4H2V2h10v6H7.5V5.21l.65.65a.5.5 0 1 0 .7-.71l-1.5-1.5a.5.5 0 0 0-.7 0l-1.5 1.5a.5.5 0 1 0 .7.7l.65-.64v2.8Z"})),cpu:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M5 5.5c0-.27.22-.5.5-.5h3c.28 0 .5.23.5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3ZM6 8V6h2v2H6Z"}),react.createElement("path",{fillRule:"evenodd",d:"M5.5 0c.28 0 .5.23.5.5V2h2V.5a.5.5 0 0 1 1 0V2h2.5c.28 0 .5.23.5.5V5h1.5a.5.5 0 0 1 0 1H12v2h1.5a.5.5 0 0 1 0 1H12v2.5a.5.5 0 0 1-.5.5H9v1.5a.5.5 0 0 1-1 0V12H6v1.5a.5.5 0 0 1-1 0V12H2.5a.5.5 0 0 1-.5-.5V9H.5a.5.5 0 0 1 0-1H2V6H.5a.5.5 0 0 1 0-1H2V2.5c0-.27.22-.5.5-.5H5V.5c0-.27.22-.5.5-.5ZM11 3H3v8h8V3Z"})),database:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M12 3c0-1.1-2.24-2-5-2s-5 .9-5 2v8c0 .43.26.75.54.98.3.23.68.41 1.12.55.88.3 2.06.47 3.34.47 1.28 0 2.46-.17 3.34-.46.44-.15.83-.33 1.12-.56.28-.23.54-.55.54-.98V3Zm-1.03 0a2.45 2.45 0 0 0-.8-.49A8.88 8.88 0 0 0 7 2c-1.29 0-2.4.21-3.16.51a2.45 2.45 0 0 0-.81.49l.05.05c.13.13.37.28.76.44C4.6 3.79 5.7 4 7 4s2.4-.21 3.16-.51a2.45 2.45 0 0 0 .81-.49ZM11 5.75V4.2A8.9 8.9 0 0 1 7 5a8.98 8.98 0 0 1-4-.8v1.55l.02.04c.02.04.06.09.14.15.17.13.44.27.82.4A10 10 0 0 0 7 6.75a10 10 0 0 0 3.02-.41c.38-.13.65-.27.82-.4a.62.62 0 0 0 .14-.15.15.15 0 0 0 .02-.03v-.01ZM3 7.01c.2.1.42.2.66.28.88.29 2.06.46 3.34.46 1.28 0 2.46-.17 3.34-.46.24-.08.46-.17.66-.28V8.5l-.02.04a.62.62 0 0 1-.14.15c-.17.13-.44.27-.82.4A10 10 0 0 1 7 9.5a10 10 0 0 1-3.02-.41 2.76 2.76 0 0 1-.82-.4.62.62 0 0 1-.14-.15.15.15 0 0 1-.02-.03V7Zm0 2.75V11l.02.04c.02.04.06.09.14.15.17.13.44.27.82.4A10 10 0 0 0 7 12a10 10 0 0 0 3.02-.41c.38-.13.65-.27.82-.4a.62.62 0 0 0 .14-.15.15.15 0 0 0 .02-.03V9.76c-.2.1-.42.2-.66.28-.88.29-2.06.46-3.34.46-1.28 0-2.46-.17-3.34-.46A4.77 4.77 0 0 1 3 9.76Z"})),memory:react.createElement(react.Fragment,null,react.createElement("path",{d:"M5 3a.5.5 0 0 0-1 0v3a.5.5 0 0 0 1 0V3Zm2-.5c.28 0 .5.22.5.5v3a.5.5 0 0 1-1 0V3c0-.28.22-.5.5-.5Zm3 2a.5.5 0 1 0-1 0V6a.5.5 0 0 0 1 0V4.5Z"}),react.createElement("path",{fillRule:"evenodd",d:"M12 3.54a.5.5 0 0 0-.15-.39l-3-3a.5.5 0 0 0-.38-.14H2.5a.5.5 0 0 0-.5.5v13c0 .27.22.5.5.5h9a.5.5 0 0 0 .5-.5V3.53ZM3 1h5.3L11 3.71v5.3H3V1Zm0 9v3h8v-3H3Z"})),structure:react.createElement(react.Fragment,null,react.createElement("path",{d:"M8.16 3.45a1.5 1.5 0 1 0-2.33 0l-4.02 6.58A1.5 1.5 0 1 0 2.91 12h8.18a1.5 1.5 0 1 0 1.1-1.97L8.16 3.45Zm-1.47.52a1.5 1.5 0 0 0 .62 0l4.03 6.58c-.11.14-.2.29-.25.45H2.9a1.5 1.5 0 0 0-.25-.45L6.7 3.97Z"})),box:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"m7.21.05 6.49 2.99a.5.5 0 0 1 .3.47v6.98a.5.5 0 0 1-.3.47l-6.47 2.98a.5.5 0 0 1-.46 0L.3 10.96a.5.5 0 0 1-.3-.47V3.5a.5.5 0 0 1 .3-.47L6.79.05a.5.5 0 0 1 .43 0ZM1 4.28v5.9l5.5 2.54v-5.9L1 4.28Zm6.5 8.44 5.5-2.54v-5.9L7.5 6.82v5.9Zm4.8-9.22L7 5.95 1.7 3.5 7 1.05l5.3 2.45Z"})),power:react.createElement(react.Fragment,null,react.createElement("path",{d:"M7.5.5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0v-6Z"}),react.createElement("path",{d:"M4.27 2.8a.5.5 0 0 0-.54-.83 6 6 0 1 0 6.54 0 .5.5 0 0 0-.54.84 5 5 0 1 1-5.46 0Z"})),photo:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M6.25 4.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm-.5 0a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"}),react.createElement("path",{fillRule:"evenodd",d:"M13 1.5v11a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5ZM2 9.3V2h10v5.3L9.85 5.15a.5.5 0 0 0-.7 0L6.5 7.8 5.35 6.65a.5.5 0 0 0-.7 0L2 9.3Zm7.5-3.1L12 8.7V12H2v-1.3l3-3 3.15 3.15a.5.5 0 0 0 .7-.71L7.21 8.5 9.5 6.21Z"})),component:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M3.5 1A2.5 2.5 0 0 0 1 3.5v7A2.5 2.5 0 0 0 3.5 13h7a2.5 2.5 0 0 0 2.5-2.5v-7A2.5 2.5 0 0 0 10.5 1h-7ZM12 6.5H7.5V2h3c.83 0 1.5.68 1.5 1.5v3Zm0 1v3c0 .83-.67 1.5-1.5 1.5h-3V7.5H12ZM6.5 12V7.5H2v3c0 .83.67 1.5 1.5 1.5h3ZM2 6.5h4.5V2h-3C2.67 2 2 2.68 2 3.5v3Z"})),grid:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M1 1.5c0-.27.22-.5.5-.5H6c.28 0 .5.23.5.5V6a.5.5 0 0 1-.5.5H1.5A.5.5 0 0 1 1 6V1.5Zm1 4V2h3.5v3.5H2Zm5.5-4c0-.27.22-.5.5-.5h4.5c.28 0 .5.23.5.5V6a.5.5 0 0 1-.5.5H8a.5.5 0 0 1-.5-.5V1.5Zm1 4V2H12v3.5H8.5Zm-7 2A.5.5 0 0 0 1 8v4.5c0 .28.22.5.5.5H6a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5H1.5Zm.5 1V12h3.5V8.5H2ZM7.5 8c0-.27.22-.5.5-.5h4.5c.28 0 .5.23.5.5v4.5a.5.5 0 0 1-.5.5H8a.5.5 0 0 1-.5-.5V8Zm1 4V8.5H12V12H8.5Z"})),outline:react.createElement(react.Fragment,null,react.createElement("path",{d:"M2 2v2H1V1.5c0-.27.22-.5.5-.5H4v1H2ZM1 9V5h1v4H1Zm0 1v2.5c0 .28.22.5.5.5H4v-1H2v-2H1Zm9 3h2.5a.5.5 0 0 0 .5-.5V10h-1v2h-2v1Zm2-9h1V1.5a.5.5 0 0 0-.5-.5H10v1h2v2Zm-3 8v1H5v-1h4ZM9 1v1H5V1h4Zm4 8h-1V5h1v4ZM7 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})),photodrag:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M8.25 3.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm-.5 0a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"}),react.createElement("path",{fillRule:"evenodd",d:"M14 7V.5a.5.5 0 0 0-.5-.5h-10a.5.5 0 0 0-.5.5V3H.5a.5.5 0 0 0-.5.5V6h1V4h2v6.5c0 .28.22.5.5.5H10v2H8v1h2.5a.5.5 0 0 0 .5-.5V11h2.5a.5.5 0 0 0 .5-.5V7ZM4 1v5.8l1.65-1.65c.2-.2.5-.2.7 0L7.5 6.3l2.65-2.65c.2-.2.5-.2.7 0L13 5.8V1H4Zm9 6.21-2.5-2.5-2.3 2.3 1.15 1.14a.5.5 0 1 1-.7.7L6 6.22l-2 2v1.8h9V7.2Z"}),react.createElement("path",{d:"M0 10V7h1v3H0Zm0 3.5V11h1v2h2v1H.5a.5.5 0 0 1-.5-.5Zm7 .5H4v-1h3v1Z"})),search:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M9.54 10.2a5.5 5.5 0 1 1 .66-.66c.06.03.11.06.15.1l3 3a.5.5 0 0 1-.7.71l-3-3a.5.5 0 0 1-.1-.14ZM10.5 6a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z"})),zoom:react.createElement(react.Fragment,null,react.createElement("path",{d:"M6 3.5c.28 0 .5.22.5.5v1.5H8a.5.5 0 0 1 0 1H6.5V8a.5.5 0 0 1-1 0V6.5H4a.5.5 0 0 1 0-1h1.5V4c0-.28.22-.5.5-.5Z"}),react.createElement("path",{fillRule:"evenodd",d:"M9.54 10.2a5.5 5.5 0 1 1 .66-.66c.06.03.11.06.15.1l3 3a.5.5 0 0 1-.7.71l-3-3a.5.5 0 0 1-.1-.14ZM10.5 6a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z"})),zoomout:react.createElement(react.Fragment,null,react.createElement("path",{d:"M4 5.5a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1H4Z"}),react.createElement("path",{fillRule:"evenodd",d:"M6 11.5c1.35 0 2.59-.49 3.54-1.3.03.06.06.11.1.15l3 3a.5.5 0 0 0 .71-.7l-3-3a.5.5 0 0 0-.14-.1A5.5 5.5 0 1 0 6 11.5Zm0-1a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z"})),zoomreset:react.createElement(react.Fragment,null,react.createElement("path",{d:"M1.5 2.84V1.5a.5.5 0 0 0-1 0V4c0 .28.22.5.5.5h2.5a.5.5 0 0 0 0-1H2.26a4.5 4.5 0 1 1-.5 4.02.5.5 0 1 0-.94.33 5.5 5.5 0 0 0 8.72 2.36l.1.14 3 3a.5.5 0 0 0 .71-.7l-3-3a.5.5 0 0 0-.14-.1 5.5 5.5 0 1 0-8.7-6.7Z"})),eye:react.createElement(react.Fragment,null,react.createElement("path",{d:"M7 9.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"}),react.createElement("path",{fillRule:"evenodd",d:"m14 7-.2.3c-.13.16-3.06 4.2-6.8 4.2C3.26 11.5.33 7.46.2 7.3L0 7l.2-.3C.34 6.55 3.27 2.5 7 2.5c3.74 0 6.67 4.04 6.8 4.2l.2.3ZM2.9 5.3A13 13 0 0 0 1.24 7 13 13 0 0 0 2.9 8.7c1.14.97 2.58 1.8 4.1 1.8 1.52 0 2.96-.83 4.1-1.8A13 13 0 0 0 12.76 7a13 13 0 0 0-1.66-1.7C9.96 4.33 8.52 3.5 7 3.5c-1.52 0-2.96.83-4.1 1.8Z"})),eyeclose:react.createElement(react.Fragment,null,react.createElement("path",{d:"M1.85 1.15a.5.5 0 1 0-.7.7l11 11a.5.5 0 0 0 .7-.7l-11-11ZM11.1 8.7c-.17.15-.36.3-.55.44l.72.71a13.25 13.25 0 0 0 2.52-2.56L14 7l-.2-.3c-.13-.16-3.06-4.2-6.8-4.2-.89 0-1.73.23-2.5.58l.76.76A4.86 4.86 0 0 1 7 3.5c1.52 0 2.96.83 4.1 1.8A13 13 0 0 1 12.76 7a13 13 0 0 1-1.66 1.7ZM.2 6.7c.08-.09 1.04-1.41 2.53-2.55l.72.71c-.2.14-.38.3-.55.44A13 13 0 0 0 1.24 7 13 13 0 0 0 2.9 8.7c1.14.97 2.58 1.8 4.1 1.8.6 0 1.18-.13 1.74-.34l.77.76c-.78.35-1.62.58-2.51.58C3.26 11.5.33 7.46.2 7.3L0 7l.2-.3Z"}),react.createElement("path",{d:"M4.5 7c0-.32.06-.63.17-.91l3.24 3.24A2.5 2.5 0 0 1 4.5 7Zm4.83.91L6.09 4.67a2.5 2.5 0 0 1 3.24 3.24Z"})),lightning:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M2.52 6.6a.57.57 0 0 0-.17.54c.04.2.19.37.38.41l2.78.73-1.5 5c-.06.24.02.5.22.63a.5.5 0 0 0 .28.09.5.5 0 0 0 .35-.14L11.5 7.4c.14-.13.2-.34.15-.54a.53.53 0 0 0-.38-.4l-2.7-.7L10.79.78c.1-.23.04-.5-.15-.66a.5.5 0 0 0-.65 0L2.52 6.6Zm7.72.63-3.07-.8 1.85-4.14-5.2 4.51 2.94.77-1.27 4.28 4.75-4.62Zm-5.73 6.2.04.02Z"})),lightningoff:react.createElement(react.Fragment,null,react.createElement("path",{d:"M10.14 8.72 11.5 7.4c.14-.13.2-.34.15-.54a.53.53 0 0 0-.38-.4l-2.7-.7L10.79.78c.1-.23.04-.5-.15-.66a.5.5 0 0 0-.65 0L5.46 4.05l.71.7L9.02 2.3 7.38 5.97l.7.7 2.16.56-.8.79.7.7ZM2.52 6.6a.57.57 0 0 0-.17.54c.04.2.19.37.38.41l2.78.73-1.5 5c-.06.24.02.5.22.63a.5.5 0 0 0 .63-.05l3.84-3.74-.7-.7-2.51 2.43 1.13-3.81-.68-.69L3.8 6.8l.85-.73-.71-.7L2.52 6.6Zm-.67-5.45a.5.5 0 1 0-.7.7l11 11a.5.5 0 0 0 .7-.7l-11-11Z"})),contrast:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M3 3H.5a.5.5 0 0 0-.5.5v10c0 .28.22.5.5.5h10a.5.5 0 0 0 .5-.5V11h2.5a.5.5 0 0 0 .5-.5V.5a.5.5 0 0 0-.5-.5h-10a.5.5 0 0 0-.5.5V3Zm1 1v2.3L6.3 4H4ZM3 4v6.5a.5.5 0 0 0 .5.5H10v2H1V4h2Zm1-1h6.5a.5.5 0 0 1 .5.5V10h2V1H4v2Zm6 7V7.71l-2.3 2.3H10Zm0-3.7V4.7L4.7 10h1.6L10 6.3ZM9.3 4H7.7L4 7.71V9.3L9.3 4Z"})),switchalt:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M3 3V.5c0-.27.22-.5.5-.5h10c.28 0 .5.23.5.5v10a.5.5 0 0 1-.5.5H11v2.5a.5.5 0 0 1-.5.5H.5a.5.5 0 0 1-.5-.5v-10c0-.27.22-.5.5-.5H3Zm1 0V1h9v9h-2V3.5a.5.5 0 0 0-.5-.5H4Zm6 8v2H1V4h2v6.5c0 .28.22.5.5.5H10Zm0-1H4V4h6v6Z"})),mirror:react.createElement(react.Fragment,null,react.createElement("path",{d:"M1 1.5c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11ZM2 12h10V2L2 12Z"})),grow:react.createElement(react.Fragment,null,react.createElement("path",{d:"M1.5 1a.5.5 0 1 0 0 1H12v10.5a.5.5 0 0 0 1 0V2a1 1 0 0 0-1-1H1.5Z"}),react.createElement("path",{d:"M1 3.5c0-.27.22-.5.5-.5H10a1 1 0 0 1 1 1v8.5a.5.5 0 0 1-1 0V4H1.5a.5.5 0 0 1-.5-.5Z"}),react.createElement("path",{fillRule:"evenodd",d:"M1.5 5a.5.5 0 0 0-.5.5v7c0 .28.22.5.5.5h7a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.5-.5h-7ZM2 6v6h6V6H2Z"})),paintbrush:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M11.8535.1464a.5.5 0 0 0-.7071 0L2.9827 8.3102a2.2396 2.2396 0 0 0-1.0737.599C.6772 10.141.2402 11.903.0852 12.9978 0 13.5998 0 14.0002 0 14.0002s.4004 0 1.0023-.0853c1.095-.155 2.8569-.5919 4.0887-1.8237.307-.307.5067-.6806.5992-1.0743l8.1633-8.1633a.5.5 0 0 0 0-.7071l-2-2Zm-6.253 9.546L6.543 8.75l-1.293-1.2929-.9424.9424a2.242 2.242 0 0 1 .7835.5097c.23.2302.4.4977.5095.7831ZM7.25 8.0428 12.7929 2.5 11.5 1.2071 5.957 6.75 7.25 8.0429ZM4.3839 9.6163c.4881.4882.4881 1.2796 0 1.7678-.7665.7664-1.832 1.1845-2.7791 1.403a8.6972 8.6972 0 0 1-.49.0982 8.7151 8.7151 0 0 1 .0982-.4899c.2186-.9471.6367-2.0126 1.403-2.779.4882-.4882 1.2797-.4882 1.7679 0Z"})),ruler:react.createElement(react.Fragment,null,react.createElement("path",{d:"M1.5 1c.28 0 .5.23.5.5V2h10v-.5a.5.5 0 0 1 1 0v2a.5.5 0 0 1-1 0V3H2v.5a.5.5 0 0 1-1 0v-2c0-.27.22-.5.5-.5Z"}),react.createElement("path",{fillRule:"evenodd",d:"M1.5 6a.5.5 0 0 0-.5.5v6c0 .28.22.5.5.5h11a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5h-11ZM2 7v5h10V7h-1v2.5a.5.5 0 0 1-1 0V7h-.75v1a.5.5 0 0 1-1 0V7H7.5v2.5a.5.5 0 0 1-1 0V7h-.75v1a.5.5 0 0 1-1 0V7H4v2.5a.5.5 0 0 1-1 0V7H2Z"})),stop:react.createElement(react.Fragment,null,react.createElement("path",{d:"M4.5 4a.5.5 0 0 0-.5.5v5c0 .28.22.5.5.5h5a.5.5 0 0 0 .5-.5v-5a.5.5 0 0 0-.5-.5h-5Z"}),react.createElement("path",{fillRule:"evenodd",d:"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-1 0A6 6 0 1 1 1 7a6 6 0 0 1 12 0Z"})),camera:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M10 7a3 3 0 1 1-6 0 3 3 0 0 1 6 0ZM9 7a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"}),react.createElement("path",{fillRule:"evenodd",d:"M2.5 1a.5.5 0 0 0-.5.5V2H.5a.5.5 0 0 0-.5.5v9c0 .28.22.5.5.5h13a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5H6v-.5a.5.5 0 0 0-.5-.5h-3ZM1 3v8h12V3H1Z"})),video:react.createElement(react.Fragment,null,react.createElement("path",{d:"M2.5 10a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z"}),react.createElement("path",{fillRule:"evenodd",d:"M0 4c0-1.1.9-2 2-2h6a2 2 0 0 1 2 2v.5l3.19-2.4a.5.5 0 0 1 .81.4v9a.5.5 0 0 1-.8.4L10 9.5v.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4Zm9 0v1.5a.5.5 0 0 0 .8.4L13 3.5v7L9.8 8.1a.5.5 0 0 0-.8.4V10a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1Z"})),speaker:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M1 4.50004V9.50004C1 9.77618 1.22386 10 1.5 10H4L7.17075 12.7744C7.49404 13.0573 8 12.8277 8 12.3982V1.60192C8 1.17235 7.49404 0.942757 7.17075 1.22564L4 4.00004H1.5C1.22386 4.00004 1 4.2239 1 4.50004ZM4 9.00004V5.00004H2V9.00004H4ZM4.99804 9.54456C4.99934 9.52989 5 9.51505 5 9.50004V4.50004C5 4.48504 4.99934 4.47019 4.99804 4.45552L7 2.70381V11.2963L4.99804 9.54456Z"}),react.createElement("path",{d:"M10.1498 1.75202C9.88637 1.66927 9.60572 1.81577 9.52297 2.07922C9.44023 2.34267 9.58672 2.62332 9.85017 2.70607C11.6763 3.27963 13 4.98596 13 7.00014C13 9.01433 11.6763 10.7207 9.85017 11.2942C9.58672 11.377 9.44023 11.6576 9.52297 11.9211C9.60572 12.1845 9.88637 12.331 10.1498 12.2483C12.3808 11.5476 14 9.4636 14 7.00014C14 4.53669 12.3808 2.45272 10.1498 1.75202Z"}),react.createElement("path",{d:"M10.2504 3.96861C10.0113 3.83033 9.70547 3.91201 9.5672 4.15105C9.42893 4.39008 9.51061 4.69594 9.74964 4.83421C10.4982 5.26723 11 6.07534 11 7.00006C11 7.92479 10.4982 8.7329 9.74964 9.16591C9.51061 9.30418 9.42893 9.61005 9.5672 9.84908C9.70547 10.0881 10.0113 10.1698 10.2504 10.0315C11.2952 9.42711 12 8.29619 12 7.00006C12 5.70394 11.2952 4.57302 10.2504 3.96861Z"})),play:react.createElement(react.Fragment,null,react.createElement("path",{d:"m12.81 7.43-9.05 5.6A.5.5 0 0 1 3 12.6V1.4c0-.4.43-.63.76-.43l9.05 5.6a.5.5 0 0 1 0 .86Z"})),playback:react.createElement(react.Fragment,null,react.createElement("path",{d:"M11.24 12.04 3.7 7.42a.5.5 0 0 1-.2-.23v4.05a.75.75 0 0 1-1.5 0v-8.5a.75.75 0 0 1 1.5 0V6.8a.5.5 0 0 1 .2-.23l7.54-4.6a.5.5 0 0 1 .76.42v9.22a.5.5 0 0 1-.76.43Z"})),playnext:react.createElement(react.Fragment,null,react.createElement("path",{d:"m2.76 12.04 7.54-4.61a.5.5 0 0 0 .2-.23v4.05a.75.75 0 0 0 1.5 0v-8.5a.75.75 0 0 0-1.5 0V6.8a.5.5 0 0 0-.2-.23l-7.54-4.6a.5.5 0 0 0-.76.42v9.22c0 .39.43.63.76.43Z"})),rewind:react.createElement(react.Fragment,null,react.createElement("path",{d:"M9 2.42v2.32L13.23 2a.5.5 0 0 1 .77.42v9.16a.5.5 0 0 1-.77.42L9 9.26v2.32a.5.5 0 0 1-.77.42L1.5 7.65v3.6a.75.75 0 0 1-1.5 0v-8.5a.75.75 0 0 1 1.5 0v3.6L8.23 2a.5.5 0 0 1 .77.42Z"})),fastforward:react.createElement(react.Fragment,null,react.createElement("path",{d:"M5 2.42v2.32L.77 2a.5.5 0 0 0-.77.42v9.16c0 .4.44.64.77.42L5 9.26v2.32c0 .4.44.64.77.42l6.73-4.35v3.6a.75.75 0 0 0 1.5 0v-8.5a.75.75 0 0 0-1.5 0v3.6L5.77 2a.5.5 0 0 0-.77.42Z"})),stopalt:react.createElement(react.Fragment,null,react.createElement("path",{d:"M1 1.5c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11Z"})),sidebyside:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M1 1.5c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11ZM2 12V2h5v10H2Z"})),stacked:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M12.5 1c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11c0-.27.22-.5.5-.5h11ZM2 2h10v5H2V2Z"})),sun:react.createElement(react.Fragment,null,react.createElement("path",{d:"M7.5.5a.5.5 0 0 0-1 0V2a.5.5 0 0 0 1 0V.5Z"}),react.createElement("path",{fillRule:"evenodd",d:"M7 10a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"}),react.createElement("path",{d:"M7 11.5c.28 0 .5.22.5.5v1.5a.5.5 0 0 1-1 0V12c0-.28.22-.5.5-.5ZM11.5 7c0-.28.22-.5.5-.5h1.5a.5.5 0 0 1 0 1H12a.5.5 0 0 1-.5-.5ZM.5 6.5a.5.5 0 0 0 0 1H2a.5.5 0 0 0 0-1H.5ZM3.82 10.18c.2.2.2.51 0 .7l-1.06 1.07a.5.5 0 1 1-.71-.7l1.06-1.07c.2-.2.51-.2.7 0ZM11.95 2.76a.5.5 0 1 0-.7-.71l-1.07 1.06a.5.5 0 1 0 .7.7l1.07-1.05ZM10.18 10.18c.2-.2.51-.2.7 0l1.07 1.06a.5.5 0 1 1-.7.71l-1.07-1.06a.5.5 0 0 1 0-.7ZM2.76 2.05a.5.5 0 1 0-.71.7l1.06 1.07a.5.5 0 0 0 .7-.7L2.77 2.04Z"})),moon:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M7.78.04a7.03 7.03 0 0 0-4.28.9 7 7 0 1 0 9.87 8.96c.1-.21-.14-.41-.36-.32a4.98 4.98 0 0 1-2 .42A5 5 0 0 1 8.53.65c.2-.12.19-.44-.04-.49a7.04 7.04 0 0 0-.72-.12Zm-1.27.98a6 6 0 0 0 4.98 9.96 6 6 0 1 1-4.98-9.96Z"})),book:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M13 2a2 2 0 0 0-2-2H1.5a.5.5 0 0 0-.5.5v13c0 .28.22.5.5.5H11a2 2 0 0 0 2-2V2ZM3 13h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H7v6a.5.5 0 0 1-.86.36L5.5 6.7l-.65.65A.5.5 0 0 1 4 7V1H3v12ZM5 1v4.8l.15-.15a.5.5 0 0 1 .74.04l.11.1V1H5Z"})),document:react.createElement(react.Fragment,null,react.createElement("path",{d:"M4 5.5c0-.28.22-.5.5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5ZM4.5 7.5a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1h-5ZM4 10.5c0-.28.22-.5.5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5Z"}),react.createElement("path",{fillRule:"evenodd",d:"M1.5 0a.5.5 0 0 0-.5.5v13c0 .28.22.5.5.5h11a.5.5 0 0 0 .5-.5V3.2a.5.5 0 0 0-.15-.35l-2.7-2.7A.5.5 0 0 0 9.79 0H1.5ZM2 1h7.5v2c0 .28.22.5.5.5h2V13H2V1Z"})),copy:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M11.75.07A.5.5 0 0 0 11.5 0h-6a.5.5 0 0 0-.5.5V3H.5a.5.5 0 0 0-.5.5v10c0 .28.22.5.5.5h8a.5.5 0 0 0 .5-.5V11h4.5a.5.5 0 0 0 .5-.5V2.51a.5.5 0 0 0-.15-.36l-2-2a.5.5 0 0 0-.1-.08ZM9 10h4V3h-1.5a.5.5 0 0 1-.5-.5V1H6v2h.5a.5.5 0 0 1 .36.15l1.99 2c.1.09.15.21.15.35v4.51ZM1 4v9h7V6H6.5a.5.5 0 0 1-.5-.5V4H1Z"})),category:react.createElement(react.Fragment,null,react.createElement("path",{d:"M3 1.5c0-.28.22-.5.5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5Zm-1 2c0-.27.22-.5.5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5Z"}),react.createElement("path",{fillRule:"evenodd",d:"M1 5.5c0-.28.22-.5.5-.5h11c.28 0 .5.22.5.5v7a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-7ZM2 12V6h10v6H2Z"})),folder:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M6.59 3.5 5.09 2H1v9h12V3.5H6.59Zm.41-1L5.8 1.3a1 1 0 0 0-.71-.3H.5a.5.5 0 0 0-.5.5v10c0 .28.22.5.5.5h13a.5.5 0 0 0 .5-.5V3a.5.5 0 0 0-.5-.5H7Z"})),print:react.createElement(react.Fragment,null,react.createElement("path",{d:"M4.5 8a.5.5 0 1 0 0 1h5a.5.5 0 0 0 0-1h-5Zm0 2a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1h-5Z"}),react.createElement("path",{fillRule:"evenodd",d:"M2 1.5c0-.27.22-.5.5-.5h8a.5.5 0 0 1 .36.15l.99 1c.1.09.15.21.15.35v1.51h1.5c.28 0 .5.22.5.5v5a.5.5 0 0 1-.5.5H12v2.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V10H.5a.5.5 0 0 1-.5-.5v-5c0-.28.22-.5.5-.5H2V1.5ZM13 9h-1V6.5a.5.5 0 0 0-.5-.5h-9a.5.5 0 0 0-.5.5V9H1V5h12v4Zm-2-6v1H3V2h7v.5c0 .28.22.5.5.5h.5Zm-8 9h8V7H3v5Z"})),graphline:react.createElement(react.Fragment,null,react.createElement("path",{d:"M5.15 6.15c.2-.2.5-.2.7 0L7 7.3l2.15-2.15c.2-.2.5-.2.7 0l1 1a.5.5 0 0 1-.7.7l-.65-.64-2.15 2.15a.5.5 0 0 1-.7 0L5.5 7.2 3.85 8.86a.5.5 0 1 1-.7-.71l2-2Z"}),react.createElement("path",{fillRule:"evenodd",d:"M1.5 1a.5.5 0 0 0-.5.5v11c0 .28.22.5.5.5h11a.5.5 0 0 0 .5-.5v-11a.5.5 0 0 0-.5-.5h-11ZM2 2v10h10V2H2Z"})),calendar:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M3.5 0c.28 0 .5.22.5.5V1h6V.5a.5.5 0 0 1 1 0V1h1.5c.28 0 .5.22.5.5v11a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11c0-.28.22-.5.5-.5H3V.5c0-.28.22-.5.5-.5ZM2 4v2.3h3V4H2Zm0 5.2V6.8h3v2.4H2Zm0 .5V12h3V9.7H2Zm3.5 0V12h3V9.7h-3Zm3.5 0V12h3V9.7H9Zm3-.5H9V6.8h3v2.4Zm-3.5 0h-3V6.8h3v2.4ZM9 4v2.3h3V4H9ZM5.5 6.3h3V4h-3v2.3Z"})),graphbar:react.createElement(react.Fragment,null,react.createElement("path",{d:"M12 2.5a.5.5 0 0 0-1 0v10a.5.5 0 0 0 1 0v-10Zm-3 2a.5.5 0 0 0-1 0v8a.5.5 0 0 0 1 0v-8ZM5.5 7c.28 0 .5.22.5.5v5a.5.5 0 0 1-1 0v-5c0-.28.22-.5.5-.5ZM3 10.5a.5.5 0 0 0-1 0v2a.5.5 0 0 0 1 0v-2Z"})),menu:react.createElement(react.Fragment,null,react.createElement("path",{d:"M13 2a.5.5 0 0 1 0 1H1a.5.5 0 0 1 0-1h12Zm-3 3a.5.5 0 0 1 0 1H1a.5.5 0 0 1 0-1h9Zm1.5 3.5A.5.5 0 0 0 11 8H1a.5.5 0 0 0 0 1h10a.5.5 0 0 0 .5-.5Zm-4 2.5a.5.5 0 0 1 0 1H1a.5.5 0 0 1 0-1h6.5Z"})),menualt:react.createElement(react.Fragment,null,react.createElement("path",{d:"M1 2a.5.5 0 0 0 0 1h12a.5.5 0 0 0 0-1H1Zm3 3a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1H4ZM2.5 8.5c0-.28.22-.5.5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5Zm4 2.5a.5.5 0 0 0 0 1H13a.5.5 0 0 0 0-1H6.5Z"})),filter:react.createElement(react.Fragment,null,react.createElement("path",{d:"M1 2a.5.5 0 0 0 0 1h12a.5.5 0 0 0 0-1H1Zm2 3a.5.5 0 0 0 0 1h8a.5.5 0 0 0 0-1H3Zm1.5 3.5c0-.28.22-.5.5-.5h4a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5Zm2 2.5a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1h-1Z"})),docchart:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M1 1.5C1 1.22386 1.22386 1 1.5 1H12.5C12.7761 1 13 1.22386 13 1.5V12.5C13 12.7761 12.7761 13 12.5 13H1.5C1.22386 13 1 12.7761 1 12.5V1.5ZM2 4V6.2998H5V4H2ZM2 9.2002V6.7998H5V9.2002H2ZM2 9.7002V12H5V9.7002H2ZM5.5 9.7002V12H8.5V9.7002H5.5ZM9 9.7002V12H12V9.7002H9ZM12 9.2002H9V6.7998H12V9.2002ZM8.5 9.2002H5.5V6.7998H8.5V9.2002ZM9 6.2998H12V4H9V6.2998ZM5.5 6.2998H8.5V4H5.5V6.2998Z"})),doclist:react.createElement(react.Fragment,null,react.createElement("path",{d:"M3.5 6.5c0-.28.22-.5.5-.5h6a.5.5 0 0 1 0 1H4a.5.5 0 0 1-.5-.5ZM4 9a.5.5 0 0 0 0 1h6a.5.5 0 0 0 0-1H4Z"}),react.createElement("path",{fillRule:"evenodd",d:"M1 1.5c0-.28.22-.5.5-.5h11c.28 0 .5.22.5.5v11a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11ZM2 4v8h10V4H2Z"})),markup:react.createElement(react.Fragment,null,react.createElement("path",{d:"M8.98 1.63a.5.5 0 0 0-.96-.26l-3 11a.5.5 0 1 0 .96.26l3-11ZM3.32 3.62a.5.5 0 0 1 .06.7L1.15 7l2.23 2.68a.5.5 0 1 1-.76.64l-2.5-3a.5.5 0 0 1 0-.64l2.5-3a.5.5 0 0 1 .7-.06Zm7.36 0a.5.5 0 0 0-.06.7L12.85 7l-2.23 2.68a.5.5 0 0 0 .76.64l2.5-3a.5.5 0 0 0 0-.64l-2.5-3a.5.5 0 0 0-.7-.06Z"})),bold:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M3 2v1.5h1v7H3V12h5a3 3 0 0 0 1.8-5.4A2.74 2.74 0 0 0 8 2H3Zm5 5.5H5.5v3H8a1.5 1.5 0 1 0 0-3Zm-.25-4H5.5V6h2.25a1.25 1.25 0 1 0 0-2.5Z"})),italic:react.createElement("path",{d:"M5 2h6v1H8.5l-2 8H9v1H3v-1h2.5l2-8H5V2Z"}),paperclip:react.createElement(react.Fragment,null,react.createElement("path",{d:"M10.55 2.27a1.5 1.5 0 0 0-2.12 0L2.78 7.92a2.5 2.5 0 0 0 3.53 3.54l3.54-3.54a.5.5 0 1 1 .7.71l-3.53 3.54a3.5 3.5 0 0 1-4.96-4.94v-.01l5.66-5.66h.01a2.5 2.5 0 0 1 3.53 3.53L5.6 10.76a1.5 1.5 0 0 1-2.12-2.12L7.02 5.1a.5.5 0 1 1 .7.7L4.2 9.34a.5.5 0 0 0 .7.7l5.66-5.65a1.5 1.5 0 0 0 0-2.12Z"})),listordered:react.createElement(react.Fragment,null,react.createElement("path",{d:"M5 2.5c0-.28.22-.5.5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5ZM5 7c0-.28.22-.5.5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 5 7Zm.5 4a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-7Zm-3-9H1v1h1v3h1V2.5a.5.5 0 0 0-.5-.5ZM3 8.5v1a.5.5 0 0 1-1 0V9h-.5a.5.5 0 0 1 0-1h1c.28 0 .5.22.5.5Zm-1 2a.5.5 0 0 0-1 0V12h2v-1H2v-.5Z"})),listunordered:react.createElement(react.Fragment,null,react.createElement("path",{d:"M2.75 2.5a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM5.5 2a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-7Zm0 9a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-7ZM2 12.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM5 7c0-.28.22-.5.5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 5 7Zm-3 .75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z"})),paragraph:react.createElement(react.Fragment,null,react.createElement("path",{d:"M6 7a3 3 0 1 1 0-6h5.5a.5.5 0 0 1 0 1H10v10.5a.5.5 0 0 1-1 0V2H7v10.5a.5.5 0 0 1-1 0V7Z"})),markdown:react.createElement(react.Fragment,null,react.createElement("path",{d:"M2 4.5h1.5L5 6.38 6.5 4.5H8v5H6.5V7L5 8.88 3.5 7v2.5H2v-5Zm7.75 0h1.5V7h1.25l-2 2.5-2-2.5h1.25V4.5Z"}),react.createElement("path",{fillRule:"evenodd",d:"M.5 2a.5.5 0 0 0-.5.5v9c0 .28.22.5.5.5h13a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5H.5ZM1 3v8h12V3H1Z"})),repository:react.createElement(react.Fragment,null,react.createElement("path",{d:"M5 2.5C5 2.77614 4.77614 3 4.5 3C4.22386 3 4 2.77614 4 2.5C4 2.22386 4.22386 2 4.5 2C4.77614 2 5 2.22386 5 2.5Z"}),react.createElement("path",{d:"M4.5 5C4.77614 5 5 4.77614 5 4.5C5 4.22386 4.77614 4 4.5 4C4.22386 4 4 4.22386 4 4.5C4 4.77614 4.22386 5 4.5 5Z"}),react.createElement("path",{d:"M5 6.5C5 6.77614 4.77614 7 4.5 7C4.22386 7 4 6.77614 4 6.5C4 6.22386 4.22386 6 4.5 6C4.77614 6 5 6.22386 5 6.5Z"}),react.createElement("path",{fillRule:"evenodd",d:"M11 0C12.1046 0 13 0.895431 13 2V12C13 13.1046 12.1046 14 11 14H1.5C1.22386 14 1 13.7761 1 13.5V0.5C1 0.223857 1.22386 0 1.5 0H11ZM11 1H3V13H11C11.5523 13 12 12.5523 12 12V2C12 1.44772 11.5523 1 11 1Z"})),commit:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M3.03 7.5a4 4 0 0 0 7.94 0h2.53a.5.5 0 0 0 0-1h-2.53a4 4 0 0 0-7.94 0H.5a.5.5 0 0 0 0 1h2.53ZM7 10a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"})),branch:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M6 2.5c0 .65-.42 1.2-1 1.41v4.06A3.36 3.36 0 0 1 7.5 7a2.7 2.7 0 0 0 1.81-.56c.22-.18.38-.4.48-.62a1.5 1.5 0 1 1 1.03.15c-.16.42-.43.87-.86 1.24-.57.47-1.37.79-2.46.79-1.04 0-1.64.42-2 .92-.26.37-.4.8-.47 1.18A1.5 1.5 0 1 1 4 10.09V3.9a1.5 1.5 0 1 1 2-1.4Zm-2 9a.5.5 0 1 1 1 0 .5.5 0 0 1-1 0Zm1-9a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Zm6 2a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"})),pullrequest:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M8.35 1.35 7.71 2h.79A2.5 2.5 0 0 1 11 4.5v5.59a1.5 1.5 0 1 1-1 0V4.5C10 3.67 9.33 3 8.5 3h-.8l.65.65a.5.5 0 1 1-.7.7l-1.5-1.5a.5.5 0 0 1 0-.7l1.5-1.5a.5.5 0 1 1 .7.7ZM11 11.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0ZM4 3.91a1.5 1.5 0 1 0-1 0v6.18a1.5 1.5 0 1 0 1 0V3.9ZM3.5 11a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1Zm0-8a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z"})),merge:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M4.1 3.87a1.5 1.5 0 1 0-1.1.04v6.18a1.5 1.5 0 1 0 1 0V6.4c.26.4.57.77.93 1.08A6.57 6.57 0 0 0 9.08 9a1.5 1.5 0 1 0 0-1 5.57 5.57 0 0 1-3.5-1.25 4.74 4.74 0 0 1-1.47-2.87ZM3.5 11a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1ZM4 2.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Zm7 6a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"})),apple:react.createElement(react.Fragment,null,react.createElement("path",{d:"M11.03 8.1a3.05 3.05 0 0 1-.2-1.74 2.7 2.7 0 0 1 1.4-1.94 3.13 3.13 0 0 0-2.35-1.4c-.84-.08-2.01.56-2.65.57h-.02c-.63 0-1.81-.65-2.64-.57-.42.04-1.75.32-2.55 1.6-.28.44-.5 1.01-.58 1.74a6.36 6.36 0 0 0 .02 1.74 7.5 7.5 0 0 0 1.35 3.33c.7 1.01 1.51 1.6 1.97 1.6.93.02 1.74-.6 2.41-.6l.02.01h.04c.67-.02 1.48.61 2.42.6.45-.02 1.26-.6 1.97-1.6a7.95 7.95 0 0 0 .97-1.86 2.6 2.6 0 0 1-1.58-1.48ZM8.86 2.13c.72-.85.7-2.07.63-2.12-.07-.06-1.25.16-1.99.98a2.78 2.78 0 0 0-.62 2.13c.06.05 1.27-.14 1.98-.99Z"})),linux:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M7 0a3 3 0 0 1 3 3v1.24c.13.13.25.27.36.42l.52.43.2.15c.32.26.7.59 1.09.97A6.28 6.28 0 0 1 14 9.54a.5.5 0 0 1-.35.44c-.31.1-.8.18-1.34.13-.33-.03-.7-.12-1.05-.3-.04.17-.1.34-.17.51a2 2 0 1 1-2.89 2.56 5.5 5.5 0 0 1-2.4 0 2 2 0 1 1-2.9-2.56 5.56 5.56 0 0 1-.16-.51c-.35.18-.72.27-1.05.3a3.4 3.4 0 0 1-1.34-.13.5.5 0 0 1-.35-.44l.01-.14a6.28 6.28 0 0 1 1.82-3.2 13.42 13.42 0 0 1 1.3-1.11c.22-.19.4-.32.5-.43.12-.15.24-.29.37-.42V3a3 3 0 0 1 3-3Zm1 11.9a2 2 0 0 1 2.14-1.9 5.5 5.5 0 0 0 .36-2c0-.51-.1-1.07-.3-1.6l-.03-.02a4.4 4.4 0 0 0-.86-.42 6.71 6.71 0 0 0-1-.31l-.86.64c-.27.2-.63.2-.9 0l-.85-.64a6.72 6.72 0 0 0-1.87.73l-.03.02A4.6 4.6 0 0 0 3.5 8c0 .68.11 1.39.36 2H4a2 2 0 0 1 2 1.9 4.49 4.49 0 0 0 2 0ZM5 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM6.1 4.3a1.5 1.5 0 0 1 1.8 0l.27.2L7 5.38 5.83 4.5l.27-.2ZM8.5 2c.28 0 .5.22.5.5V3a.5.5 0 0 1-1 0v-.5c0-.28.22-.5.5-.5ZM6 2.5a.5.5 0 0 0-1 0V3a.5.5 0 0 0 1 0v-.5Z"})),ubuntu:react.createElement(react.Fragment,null,react.createElement("path",{d:"M12.26 2.07c0 1.14-.89 2.06-1.99 2.06s-1.99-.92-1.99-2.06c0-1.14.9-2.07 2-2.07s1.98.93 1.98 2.07ZM3.98 6.6c0 1.14-.9 2.07-2 2.07C.9 8.67 0 7.74 0 6.6c0-1.14.9-2.07 1.99-2.07 1.1 0 1.99.93 1.99 2.07ZM6.47 11.92a4.76 4.76 0 0 1-3.3-2.62c-.53.25-1.12.33-1.7.22a6.72 6.72 0 0 0 1.84 2.63 6.38 6.38 0 0 0 4.24 1.58c-.37-.5-.57-1.1-.59-1.73a4.77 4.77 0 0 1-.49-.08ZM11.81 11.93c0 1.14-.89 2.07-1.99 2.07s-1.98-.93-1.98-2.07c0-1.14.89-2.06 1.98-2.06 1.1 0 2 .92 2 2.06ZM12.6 11.17a6.93 6.93 0 0 0 .32-7.93A2.95 2.95 0 0 1 11.8 4.6a5.23 5.23 0 0 1-.16 5.03c.47.4.8.94.95 1.54ZM1.99 3.63h-.15A6.48 6.48 0 0 1 8 .24a3.07 3.07 0 0 0-.6 1.68 4.7 4.7 0 0 0-3.9 2.17c-.46-.3-.98-.45-1.51-.45Z"})),windows:react.createElement(react.Fragment,null,react.createElement("path",{d:"M6.5 1H1v5.5h5.5V1ZM13 1H7.5v5.5H13V1ZM7.5 7.5H13V13H7.5V7.5ZM6.5 7.5H1V13h5.5V7.5Z"})),storybook:react.createElement(react.Fragment,null,react.createElement("path",{d:"M2.04.62a.7.7 0 0 0-.66.72l.44 11.56c.01.37.3.66.67.68l9.4.42h.02a.7.7 0 0 0 .7-.7V.66a.7.7 0 0 0-.74-.66l-.77.05.05 1.62a.1.1 0 0 1-.17.08l-.52-.4-.61.46a.1.1 0 0 1-.17-.09L9.75.13l-7.7.49Zm8 4.74c-.24.2-2.09.33-2.09.05.04-1.04-.43-1.09-.69-1.09-.24 0-.66.08-.66.64 0 .57.6.89 1.32 1.27 1.02.53 2.24 1.18 2.24 2.82 0 1.57-1.27 2.43-2.9 2.43-1.67 0-3.14-.68-2.97-3.03.06-.27 2.2-.2 2.2 0-.03.97.19 1.26.75 1.26.43 0 .62-.24.62-.64 0-.6-.63-.95-1.36-1.36-.99-.56-2.15-1.2-2.15-2.7 0-1.5 1.03-2.5 2.86-2.5 1.83 0 2.84.99 2.84 2.85Z"})),azuredevops:react.createElement(react.Fragment,null,react.createElement("path",{d:"m0 5.18 1.31-1.73 4.9-2V.01l4.3 3.15-8.78 1.7v4.8L0 9.16V5.18Zm14-2.6v8.55l-3.36 2.86-5.42-1.79V14L1.73 9.66l8.78 1.05V3.16L14 2.58Z"})),bitbucket:react.createElement(react.Fragment,null,react.createElement("path",{d:"M1 1.52A.41.41 0 0 0 .59 2l1.74 10.6c.05.26.28.46.55.46h8.37c.2 0 .38-.14.42-.34l1.01-6.25H8.81l-.46 2.71H5.68L4.95 5.4h7.91L13.4 2a.41.41 0 0 0-.41-.48H1Z"})),chrome:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M13.02 3.43a.11.11 0 0 1-.1.17H7a3.4 3.4 0 0 0-3.3 2.55.11.11 0 0 1-.21.03L1.52 2.76a.11.11 0 0 1 0-.12 6.97 6.97 0 0 1 9-1.7c1.03.6 1.9 1.47 2.5 2.5ZM7 9.62a2.62 2.62 0 1 1 0-5.24 2.62 2.62 0 0 1 0 5.24Zm1.03.7a.11.11 0 0 0-.12-.04 3.4 3.4 0 0 1-4-1.84L1.1 3.57a.11.11 0 0 0-.2 0 7 7 0 0 0 5.07 10.35c.04 0 .08-.02.1-.05l1.97-3.42a.11.11 0 0 0 0-.13Zm1.43-5.95h3.95c.05 0 .1.03.1.07a6.97 6.97 0 0 1-1.53 7.48A6.96 6.96 0 0 1 7.08 14a.11.11 0 0 1-.1-.17l2.81-4.88h.01a3.38 3.38 0 0 0-.42-4.38.11.11 0 0 1 .08-.2Z"})),chromatic:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M0 7a7 7 0 1 0 14 0A7 7 0 0 0 0 7Zm5.22-3.87a1.97 1.97 0 0 1 3.75.83v1.29L5.61 3.32a2.49 2.49 0 0 0-.4-.19ZM8.7 5.71 5.35 3.78a1.97 1.97 0 0 0-2.6 2.83c.12-.1.24-.18.37-.26l1.51-.87a.27.27 0 0 1 .27 0L7 6.69l1.7-.98Zm-.32 4.97-1.52-.87a.27.27 0 0 1-.13-.23V7.15l-1.7-.97v3.86a1.97 1.97 0 0 0 3.75.83 2.5 2.5 0 0 1-.4-.19Zm.26-.46a1.97 1.97 0 0 0 2.6-2.83c-.11.1-.23.18-.36.26L7.53 9.58l1.11.64Zm-4.1.26h-.17a1.97 1.97 0 0 1-1.9-2.47 2 2 0 0 1 .92-1.2l1.11-.63v3.86c0 .14.01.29.04.44Zm6.79-5.98a1.97 1.97 0 0 0-1.87-.97c.03.14.04.29.04.43v1.75c0 .1-.05.19-.14.23l-2.1 1.22V9.1l3.35-1.93a1.97 1.97 0 0 0 .72-2.68Z"})),componentdriven:react.createElement(react.Fragment,null,react.createElement("path",{d:"M10.85 2.18 8.87.2a.69.69 0 0 0-.97 0L3.09 5.01a.69.69 0 0 0 0 .97l2.46 2.46-2.4 2.4a.69.69 0 0 0 0 .98l1.98 1.98c.27.27.7.27.97 0l4.8-4.81a.69.69 0 0 0 0-.97L8.45 5.56l2.4-2.4a.69.69 0 0 0 0-.98Z"})),discord:react.createElement(react.Fragment,null,react.createElement("path",{d:"M11.85 2.88C10.95 2.48 10 2.18 9 2a7.05 7.05 0 0 0-.4.75 10.66 10.66 0 0 0-3.2 0c-.1-.23-.24-.5-.36-.73A.04.04 0 0 0 4.99 2a11.51 11.51 0 0 0-2.86.9 11.82 11.82 0 0 0-2.05 8 11.6 11.6 0 0 0 3.5 1.77c.01 0 .03 0 .04-.02.27-.36.51-.75.72-1.16a.04.04 0 0 0-.03-.06 7.66 7.66 0 0 1-1.09-.52.04.04 0 0 1 0-.08 5.96 5.96 0 0 0 .26-.17 8.28 8.28 0 0 0 7.08 0l.22.17c.02.02.02.06 0 .08-.36.2-.72.37-1.1.52a.04.04 0 0 0-.02.06c.2.4.45.8.71 1.16.01.02.03.02.05.02a11.57 11.57 0 0 0 3.52-1.8 11.74 11.74 0 0 0-2.09-7.99Zm-7.17 6.4c-.7 0-1.26-.63-1.26-1.41 0-.78.56-1.41 1.26-1.41s1.27.64 1.26 1.4c0 .79-.56 1.42-1.26 1.42Zm4.65 0c-.69 0-1.26-.63-1.26-1.41 0-.78.56-1.41 1.26-1.41s1.27.64 1.26 1.4c0 .79-.55 1.42-1.26 1.42Z"})),facebook:react.createElement(react.Fragment,null,react.createElement("path",{d:"M7.4 14H5.06V7H3.5V4.59h1.56V3.17C5.06 1.2 5.53 0 7.6 0h1.72v2.41H8.25c-.8 0-.85.34-.85.97v1.2h1.93L9.11 7H7.4l-.01 7Z"})),figma:react.createElement(react.Fragment,null,react.createElement("path",{fillRule:"evenodd",d:"M9.2 0H4.8a2.6 2.6 0 0 0-1.4 4.8 2.6 2.6 0 0 0 0 4.4 2.6 2.6 0 1 0 4 2.2V8.89a2.6 2.6 0 1 0 3.2-4.09A2.6 2.6 0 0 0 9.2 0ZM7.4 7A1.8 1.8 0 1 0 11 7a1.8 1.8 0 0 0-3.6 0Zm-.8 2.6H4.8a1.8 1.8 0 1 0 1.8 1.8V9.6ZM4.8 4.4h1.8V.8H4.8a1.8 1.8 0 0 0 0 3.59Zm0 .8a1.8 1.8 0 0 0 0 3.6h1.8V5.2H4.8Zm4.4-.8H7.4V.8h1.8a1.8 1.8 0 1 1 0 3.59Z"})),gdrive:react.createElement(react.Fragment,null,react.createElement("path",{d:"M6.37 8.77 4.33 12.3h6.75l2.04-3.54H6.38Zm6.18-1-3.5-6.08h-4.1l3.51 6.08h4.09ZM4.38 2.7.88 8.77l2.04 3.54 3.5-6.07L4.38 2.7Z"})),github:react.createElement(react.Fragment,null,react.createElement("path",{d:"M7 0a7 7 0 0 0-2.21 13.64c.35.06.48-.15.48-.33L5.26 12c-1.76.32-2.21-.43-2.35-.83-.08-.2-.43-.82-.72-.99-.25-.13-.6-.45-.01-.46.55 0 .94.5 1.07.72.63 1.06 1.64.76 2.04.58.07-.46.25-.77.45-.94-1.56-.18-3.19-.78-3.19-3.46 0-.76.28-1.39.72-1.88-.07-.17-.31-.9.07-1.85 0 0 .59-.19 1.93.71a6.5 6.5 0 0 1 3.5 0c1.34-.9 1.92-.71 1.92-.71.39.96.14 1.68.07 1.85.45.5.72 1.11.72 1.88 0 2.69-1.64 3.28-3.2 3.46.26.22.48.64.48 1.3l-.01 1.92c0 .18.13.4.48.33A7.01 7.01 0 0 0 7 0Z"})),gitlab:react.createElement(react.Fragment,null,react.createElement("path",{d:"M4.53 5.58H1.07l1.49-4.55a.26.26 0 0 1 .48 0l1.49 4.55ZM7 13.15 1.07 5.58l-.75 2.3a.5.5 0 0 0 .18.57l6.5 4.7Zm0 0 6.5-4.7a.5.5 0 0 0 .18-.57l-.75-2.3L7 13.15l2.47-7.57H4.53L7 13.15Zm2.47-7.57h3.46l-1.49-4.55a.26.26 0 0 0-.48 0L9.47 5.58Z"})),google:react.createElement(react.Fragment,null,react.createElement("path",{d:"M10.92 1.1H7.26c-1.64 0-3.19 1.24-3.19 2.68 0 1.47 1.12 2.66 2.8 2.66l.33-.01c-.1.2-.18.44-.18.68 0 .41.22.75.5 1.02h-.64c-2.03 0-3.6 1.3-3.6 2.64 0 1.32 1.72 2.15 3.75 2.15 2.32 0 3.6-1.31 3.6-2.64 0-1.06-.31-1.7-1.28-2.38-.33-.23-.96-.8-.96-1.14 0-.39.1-.58.7-1.04a2.46 2.46 0 0 0 1.03-1.92c0-.92-.4-1.82-1.18-2.11h1.17l.81-.6ZM9.6 10.04c.03.13.05.25.05.38 0 1.07-.7 1.9-2.67 1.9-1.4 0-2.42-.88-2.42-1.95 0-1.05 1.26-1.92 2.66-1.9a3 3 0 0 1 .92.14c.76.53 1.3.83 1.46 1.43ZM7.34 6.07c-.94-.03-1.84-1.06-2-2.3-.17-1.24.47-2.19 1.41-2.16.94.03 1.84 1.03 2 2.26.17 1.24-.47 2.23-1.41 2.2Z"})),graphql:react.createElement(react.Fragment,null,react.createElement("path",{d:"M7.87 11.6a1.17 1.17 0 0 0-1.7-.02l-2.71-1.56.01-.04h7.07l.02.07-2.69 1.56Zm-1.7-9.18.03.03-3.54 6.12h-.04V5.43a1.17 1.17 0 0 0 .84-1.46l2.7-1.56Zm4.38 1.56a1.17 1.17 0 0 0 .84 1.46v3.12l-.04.01-3.54-6.12c.02 0 .03-.02.04-.03l2.7 1.56ZM3.47 9.42a1.17 1.17 0 0 0-.32-.57l3.53-6.12a1.17 1.17 0 0 0 .65 0l3.54 6.12a1.17 1.17 0 0 0-.33.57H3.47Zm8.8-.74c-.1-.05-.21-.1-.32-.12V5.44a1.17 1.17 0 1 0-1.12-1.94l-2.7-1.56a1.17 1.17 0 1 0-2.24 0L3.19 3.5a1.17 1.17 0 1 0-1.13 1.94v3.12a1.17 1.17 0 1 0 1.12 1.94l2.7 1.56a1.17 1.17 0 1 0 2.24-.03l2.69-1.55a1.17 1.17 0 1 0 1.45-1.8Z"})),medium:react.createElement(react.Fragment,null,react.createElement("path",{d:"M0 0v14h14V0H0Zm11.63 3.32-.75.72a.22.22 0 0 0-.08.2v5.33c0 .07.03.14.08.18l.73.72v.16H7.92v-.16l.76-.74c.08-.07.08-.1.08-.21V5.24l-2.11 5.37h-.29L3.9 5.24v3.67c0 .13.05.25.14.34l.99 1.2v.16h-2.8v-.16l.98-1.2a.48.48 0 0 0 .13-.41V4.65c0-.11-.04-.2-.12-.27l-.88-1.06v-.16h2.73l2.1 4.62 1.86-4.62h2.6v.16Z"})),redux:react.createElement(react.Fragment,null,react.createElement("path",{d:"M4.06 9.69c.02.49.42.88.91.88H5a.91.91 0 0 0-.03-1.83h-.03c-.03 0-.08 0-.11.02a5.97 5.97 0 0 1-.85-3.62c.06-.98.39-1.82.96-2.52.47-.6 1.39-.9 2-.92 1.73-.03 2.47 2.12 2.51 2.99.22.04.57.16.82.24-.2-2.64-1.83-4-3.4-4-1.46 0-2.81 1.05-3.35 2.61a6.67 6.67 0 0 0 .65 5.68.74.74 0 0 0-.11.47Zm8.28-2.3a6.62 6.62 0 0 0-5.15-2.25h-.26a.9.9 0 0 0-.8-.49H6.1a.91.91 0 0 0 .03 1.83h.03a.92.92 0 0 0 .8-.56h.3c1.23 0 2.4.36 3.47 1.06.81.54 1.4 1.24 1.72 2.09.28.68.26 1.35-.03 1.92a2.4 2.4 0 0 1-2.23 1.34c-.65 0-1.27-.2-1.6-.34-.18.16-.5.42-.73.58.7.33 1.41.5 2.1.5 1.56 0 2.72-.85 3.16-1.72.47-.94.44-2.57-.78-3.96ZM4.9 12.9a4 4 0 0 1-.98.11c-1.2 0-2.3-.5-2.84-1.32C.38 10.6.13 8.3 2.5 6.58c.05.26.15.62.22.83-.31.23-.8.68-1.11 1.3a2.4 2.4 0 0 0 .13 2.53c.36.54.93.86 1.66.96.9.11 1.8-.05 2.66-.5a5.83 5.83 0 0 0 2.67-2.56.91.91 0 0 1 .62-1.55h.03a.92.92 0 0 1 .1 1.82 6.26 6.26 0 0 1-4.56 3.49Z"})),twitter:react.createElement(react.Fragment,null,react.createElement("path",{d:"M14 2.55c-.51.23-1.07.39-1.65.46.6-.36 1.05-.94 1.26-1.63-.55.34-1.17.58-1.82.72a2.84 2.84 0 0 0-2.1-.93 2.9 2.9 0 0 0-2.8 3.61 8.09 8.09 0 0 1-5.9-3.07 2.99 2.99 0 0 0 .88 3.93 2.8 2.8 0 0 1-1.3-.37v.04c0 1.42 1 2.61 2.3 2.89a2.82 2.82 0 0 1-1.3.05 2.89 2.89 0 0 0 2.7 2.04A5.67 5.67 0 0 1 0 11.51a7.98 7.98 0 0 0 4.4 1.32c5.29 0 8.17-4.48 8.17-8.38v-.38A5.93 5.93 0 0 0 14 2.55Z"})),youtube:react.createElement(react.Fragment,null,react.createElement("path",{d:"M13.99 8.17V5.83a14.95 14.95 0 0 0-.23-2.22c-.09-.38-.27-.7-.55-.96s-.6-.41-.97-.45A51.3 51.3 0 0 0 7 2c-2.34 0-4.09.07-5.24.2A1.78 1.78 0 0 0 .25 3.61 15.26 15.26 0 0 0 0 7v1.16a15.24 15.24 0 0 0 .24 2.22c.09.38.27.7.55.96.27.26.6.41.97.45 1.15.13 2.9.2 5.24.2 2.34 0 4.08-.06 5.24-.2.37-.04.7-.19.97-.45s.45-.58.54-.96a15.26 15.26 0 0 0 .24-2.22Zm-4.23-1.6c.16.1.24.24.24.43 0 .2-.08.33-.24.42l-4 2.5a.44.44 0 0 1-.26.08.54.54 0 0 1-.24-.06A.46.46 0 0 1 5 9.5v-5c0-.2.08-.34.26-.44.17-.1.34-.09.5.02l4 2.5Z"})),vscode:react.createElement(react.Fragment,null,react.createElement("path",{d:"M10.24.04c.13 0 .26.03.38.09L13.5 1.5a.87.87 0 0 1 .5.8v.03-.01 9.39c0 .33-.2.63-.5.78l-2.88 1.38a.87.87 0 0 1-1-.17l-5.5-5.03-2.4 1.83a.58.58 0 0 1-.75-.04l-.77-.7a.58.58 0 0 1 0-.86L2.27 7 .2 5.1a.58.58 0 0 1 0-.86l.77-.7c.21-.2.52-.2.75-.04l2.4 1.83L9.63.3a.87.87 0 0 1 .61-.26Zm.26 3.78L6.32 7l4.18 3.18V3.82Z"}))};var Svg=dist/* styled */.I4.svg` - display: inline-block; - shape-rendering: inherit; - vertical-align: middle; - fill: currentColor; - - path { - fill: currentColor; - } -`,Icons=({icon,useSymbol,...props})=>react.createElement(Svg,{viewBox:"0 0 14 14",width:"14px",height:"14px",...props},useSymbol?react.createElement("use",{xlinkHref:`#icon--${icon}`}):icons[icon]),Symbols=(0,react.memo)(function({icons:keys=Object.keys(icons)}){return react.createElement(Svg,{viewBox:"0 0 14 14",style:{position:"absolute",width:0,height:0},"data-chromatic":"ignore"},keys.map(key=>react.createElement("symbol",{id:`icon--${key}`,key},icons[key])))});var LEFT_BUTTON=0,isPlainLeftClick=e=>e.button===LEFT_BUTTON&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,cancelled=(e,cb)=>{isPlainLeftClick(e)&&(e.preventDefault(),cb(e));},LinkInner=dist/* styled */.I4.span(({withArrow})=>withArrow?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon})=>containsIcon?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),A2=dist/* styled */.I4.a(({theme})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:theme.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:curriedDarken$1(.07,theme.color.secondary),"svg path:not([fill])":{fill:curriedDarken$1(.07,theme.color.secondary)}},"&:active":{color:curriedDarken$1(.1,theme.color.secondary),"svg path:not([fill])":{fill:curriedDarken$1(.1,theme.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:theme.color.secondary}}}),({theme,secondary,tertiary})=>{let colors;return secondary&&(colors=[theme.textMutedColor,theme.color.dark,theme.color.darker]),tertiary&&(colors=[theme.color.dark,theme.color.darkest,theme.textMutedColor]),colors?{color:colors[0],"svg path:not([fill])":{fill:colors[0]},"&:hover":{color:colors[1],"svg path:not([fill])":{fill:colors[1]}},"&:active":{color:colors[2],"svg path:not([fill])":{fill:colors[2]}}}:{}},({nochrome})=>nochrome?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme,inverse})=>inverse?{color:theme.color.lightest,":not([fill])":{fill:theme.color.lightest},"&:hover":{color:theme.color.lighter,"svg path:not([fill])":{fill:theme.color.lighter}},"&:active":{color:theme.color.light,"svg path:not([fill])":{fill:theme.color.light}}}:{},({isButton})=>isButton?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}),Link2=({cancel,children,onClick,withArrow,containsIcon,className,...rest})=>react.createElement(A2,{...rest,onClick:onClick&&cancel?e=>cancelled(e,onClick):onClick,className},react.createElement(LinkInner,{withArrow,containsIcon},children,withArrow&&react.createElement(Icons,{icon:"arrowright"})));Link2.defaultProps={cancel:!0,className:void 0,style:void 0,onClick:void 0,withArrow:!1,containsIcon:!1};var DocumentWrapper=dist/* styled */.I4.div(({theme})=>({fontSize:`${theme.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${theme.typography.size.l1}px`,fontWeight:theme.typography.weight.bold},h2:{fontSize:`${theme.typography.size.m2}px`,borderBottom:`1px solid ${theme.appBorderColor}`},h3:{fontSize:`${theme.typography.size.m1}px`},h4:{fontSize:`${theme.typography.size.s3}px`},h5:{fontSize:`${theme.typography.size.s2}px`},h6:{fontSize:`${theme.typography.size.s2}px`,color:theme.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:theme.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${theme.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${theme.color.medium}`,padding:"0 15px",color:theme.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${theme.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${theme.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${theme.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:theme.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${theme.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:theme.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${theme.color.mediumlight}`,backgroundColor:theme.color.lighter,borderRadius:3,color:theme.base==="dark"&&theme.color.darkest}}));var languages=[],Comp=null,LazySyntaxHighlighter=(0,react.lazy)(async()=>{let{SyntaxHighlighter:SyntaxHighlighter3}=await __webpack_require__.e(/* import() */ 3378).then(__webpack_require__.bind(__webpack_require__, "../../../node_modules/@storybook/components/dist/syntaxhighlighter-V7JZZA35.mjs"));return languages.length>0&&(languages.forEach(args=>{SyntaxHighlighter3.registerLanguage(...args);}),languages=[]),Comp===null&&(Comp=SyntaxHighlighter3),{default:props=>react.createElement(SyntaxHighlighter3,{...props})}}),LazySyntaxHighlighterWithFormatter=(0,react.lazy)(async()=>{let[{SyntaxHighlighter:SyntaxHighlighter3},{formatter}]=await Promise.all([__webpack_require__.e(/* import() */ 3378).then(__webpack_require__.bind(__webpack_require__, "../../../node_modules/@storybook/components/dist/syntaxhighlighter-V7JZZA35.mjs")),__webpack_require__.e(/* import() */ 7637).then(__webpack_require__.bind(__webpack_require__, "../../../node_modules/@storybook/components/dist/formatter-SWP5E3XI.mjs"))]);return languages.length>0&&(languages.forEach(args=>{SyntaxHighlighter3.registerLanguage(...args);}),languages=[]),Comp===null&&(Comp=SyntaxHighlighter3),{default:props=>react.createElement(SyntaxHighlighter3,{...props,formatter})}}),SyntaxHighlighter2=props=>react.createElement(react.Suspense,{fallback:react.createElement("div",null)},props.format!==!1?react.createElement(LazySyntaxHighlighterWithFormatter,{...props}):react.createElement(LazySyntaxHighlighter,{...props}));SyntaxHighlighter2.registerLanguage=(...args)=>{if(Comp!==null){Comp.registerLanguage(...args);return}languages.push(args);};var toNumber=input=>typeof input=="number"?input:Number(input),Container=dist/* styled */.I4.div(({theme,col,row=1})=>col?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:col*theme.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${dist/* ignoreSsrWarning */.v_}`]:{marginLeft:0}}:{"& > *":{marginTop:row*theme.layoutMargin},[`& > *:first-child${dist/* ignoreSsrWarning */.v_}`]:{marginTop:0}},({theme,outer,col,row})=>{switch(!0){case!!(outer&&col):return {marginLeft:outer*theme.layoutMargin,marginRight:outer*theme.layoutMargin};case!!(outer&&row):return {marginTop:outer*theme.layoutMargin,marginBottom:outer*theme.layoutMargin};default:return {}}}),Spaced=({col,row,outer,children,...rest})=>{let outerAmount=toNumber(typeof outer=="number"||!outer?outer:col||row);return React5__default.createElement(Container,{col,row,outer:outerAmount,...rest},children)};var Title=dist/* styled */.I4.div(({theme})=>({fontWeight:theme.typography.weight.bold})),Desc=dist/* styled */.I4.div(),Message=dist/* styled */.I4.div(({theme})=>({padding:30,textAlign:"center",color:theme.color.defaultText,fontSize:theme.typography.size.s2-1})),Placeholder=({children,...props})=>{let[title,desc]=react.Children.toArray(children);return react.createElement(Message,{...props},react.createElement(Title,null,title),desc&&react.createElement(Desc,null,desc))};var ZoomElementWrapper=dist/* styled */.I4.div(({scale=1,elementHeight})=>({height:elementHeight||"auto",transformOrigin:"top left",transform:`scale(${1/scale})`}));function ZoomElement({scale,children}){let componentWrapperRef=(0,react.useRef)(null),[elementHeight,setElementHeight]=(0,react.useState)(0),onResize=(0,react.useCallback)(({height})=>{height&&setElementHeight(height/scale);},[scale]);return (0,react.useEffect)(()=>{componentWrapperRef.current&&setElementHeight(componentWrapperRef.current.getBoundingClientRect().height);},[scale]),useResizeObserver({ref:componentWrapperRef,onResize}),react.createElement(ZoomElementWrapper,{scale,elementHeight},react.createElement("div",{ref:componentWrapperRef,className:"innerZoomElementWrapper"},children))}var ZoomIFrame=class extends react.Component{constructor(){super(...arguments);this.iframe=null;}componentDidMount(){let{iFrameRef}=this.props;this.iframe=iFrameRef.current;}shouldComponentUpdate(nextProps){let{scale,active}=this.props;return scale!==nextProps.scale&&this.setIframeInnerZoom(nextProps.scale),active!==nextProps.active&&this.iframe.setAttribute("data-is-storybook",nextProps.active?"true":"false"),nextProps.children.props.src!==this.props.children.props.src}setIframeInnerZoom(scale){try{Object.assign(this.iframe.contentDocument.body.style,{width:`${scale*100}%`,height:`${scale*100}%`,transform:`scale(${1/scale})`,transformOrigin:"top left"});}catch{this.setIframeZoom(scale);}}setIframeZoom(scale){Object.assign(this.iframe.style,{width:`${scale*100}%`,height:`${scale*100}%`,transform:`scale(${1/scale})`,transformOrigin:"top left"});}render(){let{children}=this.props;return react.createElement(react.Fragment,null,children)}};var Zoom={Element:ZoomElement,IFrame:ZoomIFrame};var {document:document2}=external_STORYBOOK_MODULE_GLOBAL_.global,ErrorName=dist/* styled */.I4.strong(({theme})=>({color:theme.color.orange})),ErrorImportant=dist/* styled */.I4.strong(({theme})=>({color:theme.color.ancillary,textDecoration:"underline"})),ErrorDetail=dist/* styled */.I4.em(({theme})=>({color:theme.textMutedColor})),firstLineRegex=/(Error): (.*)\n/,linesRegexChromium=/at (?:(.*) )?\(?(.+)\)?/,linesRegexFirefox=/([^@]+)?(?:\/<)?@(.+)?/,linesRegexSafari=/([^@]+)?@(.+)?/,ErrorFormatter=({error})=>{if(!error)return react.createElement(react.Fragment,null,"This error has no stack or message");if(!error.stack)return react.createElement(react.Fragment,null,error.message||"This error has no stack or message");let input=error.stack.toString();input&&error.message&&!input.includes(error.message)&&(input=`Error: ${error.message} - -${input}`);let match=input.match(firstLineRegex);if(!match)return react.createElement(react.Fragment,null,input);let[,type,name]=match,rawLines=input.split(/\n/).slice(1),[,...lines]=rawLines.map(line=>{let result=line.match(linesRegexChromium)||line.match(linesRegexFirefox)||line.match(linesRegexSafari);return result?{name:(result[1]||"").replace("/<",""),location:result[2].replace(document2.location.origin,"")}:null}).filter(Boolean);return react.createElement(react.Fragment,null,react.createElement("span",null,type),": ",react.createElement(ErrorName,null,name),react.createElement("br",null),lines.map((l,i)=>l.name?react.createElement(react.Fragment,{key:i}," ","at ",react.createElement(ErrorImportant,null,l.name)," (",react.createElement(ErrorDetail,null,l.location),")",react.createElement("br",null)):react.createElement(react.Fragment,{key:i}," ","at ",react.createElement(ErrorDetail,null,l.location),react.createElement("br",null))))};var ButtonWrapper=dist/* styled */.I4.button(({small,theme})=>({border:0,borderRadius:"3em",cursor:"pointer",display:"inline-block",overflow:"hidden",padding:small?"8px 16px":"13px 20px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:1,margin:0,background:"transparent",fontSize:`${small?theme.typography.size.s1:theme.typography.size.s2-1}px`,fontWeight:theme.typography.weight.bold,lineHeight:"1",svg:{display:"inline-block",height:small?12:14,width:small?12:14,verticalAlign:"top",marginRight:small?4:6,marginTop:small?0:-1,marginBottom:small?0:-1,pointerEvents:"none",path:{fill:"currentColor"}}}),({disabled})=>disabled?{cursor:"not-allowed !important",opacity:.5,"&:hover":{transform:"none"}}:{},({containsIcon,small})=>containsIcon?{svg:{display:"block",margin:0},...small?{padding:10}:{padding:13}}:{},({theme,primary,secondary,gray})=>{let color2;return gray?color2=theme.color.mediumlight:secondary?color2=theme.color.secondary:primary&&(color2=theme.color.primary),color2?{background:color2,color:gray?theme.color.darkest:theme.color.lightest,"&:hover":{background:curriedDarken$1(.05,color2)},"&:active":{boxShadow:"rgba(0, 0, 0, 0.1) 0 0 0 3em inset"},"&:focus":{boxShadow:`${rgba(color2,1)} 0 1px 9px 2px`,outline:"none"},"&:focus:hover":{boxShadow:`${rgba(color2,.2)} 0 8px 18px 0px`}}:{}},({theme,tertiary,inForm,small})=>tertiary?{background:theme.button.background,color:theme.input.color,boxShadow:`${theme.button.border} 0 0 0 1px inset`,borderRadius:theme.input.borderRadius,...inForm&&small?{padding:"10px 16px"}:{},"&:hover":{background:theme.base==="light"?curriedDarken$1(.02,theme.button.background):curriedLighten$1(.03,theme.button.background),...inForm?{}:{boxShadow:"rgba(0,0,0,.2) 0 2px 6px 0, rgba(0,0,0,.1) 0 0 0 1px inset"}},"&:active":{background:theme.button.background},"&:focus":{boxShadow:`${rgba(theme.color.secondary,1)} 0 0 0 1px inset`,outline:"none"}}:{},({theme,outline})=>outline?{boxShadow:`${curriedTransparentize$1(.8,theme.color.defaultText)} 0 0 0 1px inset`,color:curriedTransparentize$1(.3,theme.color.defaultText),background:"transparent","&:hover, &:focus":{boxShadow:`${curriedTransparentize$1(.5,theme.color.defaultText)} 0 0 0 1px inset`,outline:"none"},"&:active":{boxShadow:`${curriedTransparentize$1(.5,theme.color.defaultText)} 0 0 0 2px inset`,color:curriedTransparentize$1(0,theme.color.defaultText)}}:{},({theme,outline,primary})=>{let color2=theme.color.primary;return outline&&primary?{boxShadow:`${color2} 0 0 0 1px inset`,color:color2,"svg path:not([fill])":{fill:color2},"&:hover":{boxShadow:`${color2} 0 0 0 1px inset`,background:"transparent"},"&:active":{background:color2,boxShadow:`${color2} 0 0 0 1px inset`,color:theme.color.tertiary},"&:focus":{boxShadow:`${color2} 0 0 0 1px inset, ${rgba(color2,.4)} 0 1px 9px 2px`,outline:"none"},"&:focus:hover":{boxShadow:`${color2} 0 0 0 1px inset, ${rgba(color2,.2)} 0 8px 18px 0px`}}:{}},({theme,outline,primary,secondary})=>{let color2;return secondary?color2=theme.color.secondary:primary&&(color2=theme.color.primary),outline&&color2?{boxShadow:`${color2} 0 0 0 1px inset`,color:color2,"svg path:not([fill])":{fill:color2},"&:hover":{boxShadow:`${color2} 0 0 0 1px inset`,background:"transparent"},"&:active":{background:color2,boxShadow:`${color2} 0 0 0 1px inset`,color:theme.color.tertiary},"&:focus":{boxShadow:`${color2} 0 0 0 1px inset, ${rgba(color2,.4)} 0 1px 9px 2px`,outline:"none"},"&:focus:hover":{boxShadow:`${color2} 0 0 0 1px inset, ${rgba(color2,.2)} 0 8px 18px 0px`}}:{}}),ButtonLink=ButtonWrapper.withComponent("a"),Button=Object.assign((0,react.forwardRef)(function({isLink,children,...props},ref){return isLink?react.createElement(ButtonLink,{...props,ref},children):react.createElement(ButtonWrapper,{...props,ref},children)}),{defaultProps:{isLink:!1}});var Wrapper=dist/* styled */.I4.label(({theme})=>({display:"flex",borderBottom:`1px solid ${theme.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),Label=dist/* styled */.I4.span(({theme})=>({minWidth:100,fontWeight:theme.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),Field=({label,children,...props})=>react.createElement(Wrapper,{...props},label?react.createElement(Label,null,react.createElement("span",null,label)):null,children);Field.defaultProps={label:void 0};function _extends2(){return _extends2=Object.assign?Object.assign.bind():function(target){for(var i=1;i=0)&&(target[key]=source[key]);return target}var updateRef=function(ref,value){if(typeof ref=="function"){ref(value);return}ref.current=value;},useComposedRef=function(libRef,userRef){var prevUserRef=(0,react.useRef)();return (0,react.useCallback)(function(instance){libRef.current=instance,prevUserRef.current&&updateRef(prevUserRef.current,null),prevUserRef.current=userRef,userRef&&updateRef(userRef,instance);},[userRef])},use_composed_ref_esm_default=useComposedRef;var noop=function(){},_excluded=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],TextareaAutosize=function(_ref,userRef){_ref.cacheMeasurements,_ref.maxRows,_ref.minRows;var _ref$onChange=_ref.onChange,onChange=_ref$onChange===void 0?noop:_ref$onChange;_ref.onHeightChange;var props=_objectWithoutPropertiesLoose(_ref,_excluded);props.value;var libRef=react.useRef(null),ref=use_composed_ref_esm_default(libRef,userRef);return react.useRef(0),react.useRef(),react.createElement("textarea",_extends2({},props,{onChange,ref}))},index=react.forwardRef(TextareaAutosize);var styleResets={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},styles=({theme})=>({...styleResets,transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:theme.input.color||"inherit",background:theme.input.background,boxShadow:`${theme.input.border} 0 0 0 1px inset`,borderRadius:theme.input.borderRadius,fontSize:theme.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${theme.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${theme.color.lightest} inset`},"&::placeholder":{color:theme.textMutedColor,opacity:1}}),sizes=({size})=>{switch(size){case"100%":return {width:"100%"};case"flex":return {flex:1};case"auto":default:return {display:"inline"}}},alignment=({align})=>{switch(align){case"end":return {textAlign:"right"};case"center":return {textAlign:"center"};case"start":default:return {textAlign:"left"}}},validation=({valid,theme})=>{switch(valid){case"valid":return {boxShadow:`${theme.color.positive} 0 0 0 1px inset !important`};case"error":return {boxShadow:`${theme.color.negative} 0 0 0 1px inset !important`};case"warn":return {boxShadow:`${theme.color.warning} 0 0 0 1px inset`};case void 0:case null:default:return {}}},Input=Object.assign((0,dist/* styled */.I4)((0,react.forwardRef)(function({size,valid,align,...props},ref){return react.createElement("input",{...props,ref})}))(styles,sizes,alignment,validation,{minHeight:32}),{displayName:"Input"}),Select=Object.assign((0,dist/* styled */.I4)((0,react.forwardRef)(function({size,valid,align,...props},ref){return react.createElement("select",{...props,ref})}))(styles,sizes,validation,{height:32,userSelect:"none",paddingRight:20,appearance:"menulist"}),{displayName:"Select"}),Textarea=Object.assign((0,dist/* styled */.I4)((0,react.forwardRef)(function({size,valid,align,...props},ref){return react.createElement(index,{...props,ref})}))(styles,sizes,alignment,validation,({height=400})=>({overflow:"visible",maxHeight:height})),{displayName:"Textarea"}),ButtonStyled=(0,dist/* styled */.I4)((0,react.forwardRef)(function({size,valid,align,...props},ref){return react.createElement(Button,{...props,ref})}))(sizes,validation,{userSelect:"none",overflow:"visible",zIndex:2,"&:hover":{transform:"none"}}),Button3=Object.assign((0,react.forwardRef)(function(props,ref){return react.createElement(ButtonStyled,{...props,tertiary:!0,small:!0,inForm:!0,ref})}),{displayName:"Button"});var Form=Object.assign(dist/* styled */.I4.form({boxSizing:"border-box",width:"100%"}),{Field,Input,Select,Textarea,Button:Button3});var LazyWithTooltip=(0,react.lazy)(()=>__webpack_require__.e(/* import() */ 7653).then(__webpack_require__.bind(__webpack_require__, "../../../node_modules/@storybook/components/dist/WithTooltip-V3YHNWJZ.mjs")).then(mod=>({default:mod.WithTooltip}))),WithTooltip=props=>react.createElement(react.Suspense,{fallback:react.createElement("div",null)},react.createElement(LazyWithTooltip,{...props})),LazyWithTooltipPure=(0,react.lazy)(()=>__webpack_require__.e(/* import() */ 7653).then(__webpack_require__.bind(__webpack_require__, "../../../node_modules/@storybook/components/dist/WithTooltip-V3YHNWJZ.mjs")).then(mod=>({default:mod.WithTooltipPure}))),WithTooltipPure=props=>react.createElement(react.Suspense,{fallback:react.createElement("div",null)},react.createElement(LazyWithTooltipPure,{...props}));var Title2=dist/* styled */.I4.div(({theme})=>({fontWeight:theme.typography.weight.bold})),Desc2=dist/* styled */.I4.span(),Links=dist/* styled */.I4.div(({theme})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:theme.typography.weight.bold}})),Message2=dist/* styled */.I4.div(({theme})=>({color:theme.color.defaultText,lineHeight:"18px"})),MessageWrapper=dist/* styled */.I4.div({padding:15,width:280,boxSizing:"border-box"}),TooltipMessage=({title,desc,links})=>react.createElement(MessageWrapper,null,react.createElement(Message2,null,title&&react.createElement(Title2,null,title),desc&&react.createElement(Desc2,null,desc)),links&&react.createElement(Links,null,links.map(({title:linkTitle,...other})=>react.createElement(Link2,{...other,key:linkTitle},linkTitle))));TooltipMessage.defaultProps={title:null,desc:null,links:null};var Note=dist/* styled */.I4.div(({theme})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:theme.typography.weight.bold,color:theme.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:theme.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)",margin:6})),TooltipNote=({note,...props})=>react.createElement(Note,{...props},note);var Title3=(0,dist/* styled */.I4)(({active,loading,disabled,...rest})=>react.createElement("span",{...rest}))(({theme})=>({color:theme.color.defaultText,fontWeight:theme.typography.weight.regular}),({active,theme})=>active?{color:theme.color.secondary,fontWeight:theme.typography.weight.bold}:{},({loading,theme})=>loading?{display:"inline-block",flex:"none",...theme.animation.inlineGlow}:{},({disabled,theme})=>disabled?{color:curriedTransparentize$1(.7,theme.color.defaultText)}:{}),Right=dist/* styled */.I4.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}}),Center=dist/* styled */.I4.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column"},({isIndented})=>isIndented?{marginLeft:24}:{}),CenterText=dist/* styled */.I4.span(({theme})=>({fontSize:"11px",lineHeight:"14px"}),({active,theme})=>active?{color:theme.color.secondary}:{},({theme,disabled})=>disabled?{color:theme.textMutedColor}:{}),Left=dist/* styled */.I4.span(({active,theme})=>active?{"& svg":{opacity:1},"& svg path:not([fill])":{fill:theme.color.secondary}}:{},()=>({display:"flex",maxWidth:14})),Item=dist/* styled */.I4.a(({theme})=>({fontSize:theme.typography.size.s1,transition:"all 150ms ease-out",color:theme.color.dark,textDecoration:"none",cursor:"pointer",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:hover":{background:theme.background.hoverable},"&:hover svg":{opacity:1}}),({disabled})=>disabled?{cursor:"not-allowed"}:{}),getItemProps=memoizerific_default()(100)((onClick,href,LinkWrapper)=>{let result={};return onClick&&Object.assign(result,{onClick}),href&&Object.assign(result,{href}),LinkWrapper&&href&&Object.assign(result,{to:href,as:LinkWrapper}),result}),ListItem=({loading,left,title,center,right,icon,active,disabled,isIndented,href,onClick,LinkWrapper,...rest})=>{let itemProps=getItemProps(onClick,href,LinkWrapper),commonProps={active,disabled},isStorybookIcon=typeof icon=="string"&&icons[icon];return react.createElement(Item,{...commonProps,...rest,...itemProps},icon?react.createElement(Left,{...commonProps},isStorybookIcon?react.createElement(Icons,{icon}):icon):left&&react.createElement(Left,{...commonProps},left),title||center?react.createElement(Center,{isIndented:!left&&!icon&&isIndented},title&&react.createElement(Title3,{...commonProps,loading},title),center&&react.createElement(CenterText,{...commonProps},center)):null,right&&react.createElement(Right,{...commonProps},right))};ListItem.defaultProps={loading:!1,left:null,title:react.createElement("span",null,"Loading state"),center:null,right:null,active:!1,disabled:!1,href:null,LinkWrapper:null,onClick:null};var ListItem_default=ListItem;var List=dist/* styled */.I4.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32},({theme})=>({borderRadius:theme.appBorderRadius})),Item2=props=>{let{LinkWrapper,onClick:onClickFromProps,id,isIndented,...rest}=props,{title,href,active}=rest,onClick=(0,react.useCallback)(event=>{onClickFromProps(event,rest);},[onClickFromProps]),hasOnClick=!!onClickFromProps;return react.createElement(ListItem_default,{title,active,href,id:`list-item-${id}`,LinkWrapper,isIndented,...rest,...hasOnClick?{onClick}:{}})},TooltipLinkList=({links,LinkWrapper})=>{let hasOneLeftElement=links.some(link=>link.left||link.icon);return react.createElement(List,null,links.map(({isGatsby,...p})=>react.createElement(Item2,{key:p.id,LinkWrapper:isGatsby?LinkWrapper:null,isIndented:hasOneLeftElement,...p})))};TooltipLinkList.defaultProps={LinkWrapper:ListItem_default.defaultProps.LinkWrapper};var ButtonOrLink=react.forwardRef(({children,...restProps},ref)=>restProps.href!=null?react.createElement("a",{ref,...restProps},children):react.createElement("button",{ref,type:"button",...restProps},children));ButtonOrLink.displayName="ButtonOrLink";var TabButton=(0,dist/* styled */.I4)(ButtonOrLink,{shouldForwardProp:dist/* isPropValid */.EG})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"}},({theme})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:theme.color.secondary}}),({active,textColor,theme})=>active?{color:textColor||theme.barSelectedColor,borderBottomColor:theme.barSelectedColor}:{color:textColor||theme.barTextColor,borderBottomColor:"transparent"});TabButton.displayName="TabButton";var IconButton=(0,dist/* styled */.I4)(ButtonOrLink,{shouldForwardProp:dist/* isPropValid */.EG})(()=>({alignItems:"center",background:"transparent",border:"none",borderRadius:4,color:"inherit",cursor:"pointer",display:"inline-flex",fontSize:13,fontWeight:"bold",height:28,justifyContent:"center",marginTop:6,padding:"8px 7px","& > svg":{width:14}}),({active,theme})=>active?{backgroundColor:theme.background.hoverable,color:theme.barSelectedColor}:{},({disabled,theme})=>disabled?{opacity:.5,cursor:"not-allowed"}:{"&:hover, &:focus-visible":{background:curriedTransparentize$1(.88,theme.color.secondary),color:theme.barHoverColor},"&:focus-visible":{outline:chunk_NE5YGCQB/* auto */.qZ},"&:focus:not(:focus-visible)":{outline:"none"}});IconButton.displayName="IconButton";var IconPlaceholder=dist/* styled */.I4.div(({theme})=>({width:14,height:14,backgroundColor:theme.appBorderColor,animation:`${theme.animation.glow} 1.5s ease-in-out infinite`})),IconButtonSkeletonWrapper=dist/* styled */.I4.div(()=>({marginTop:6,padding:7,height:28})),IconButtonSkeleton=()=>react.createElement(IconButtonSkeletonWrapper,null,react.createElement(IconPlaceholder,null));var Side=dist/* styled */.I4.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:3},({scrollable})=>scrollable?{flexShrink:0}:{},({left})=>left?{"& > *":{marginLeft:4}}:{},({right})=>right?{marginLeft:30,"& > *":{marginRight:4}}:{});Side.displayName="Side";var UnstyledBar=({children,className,scrollable})=>scrollable?react.createElement(chunk_ELLS3HSY/* ScrollArea */.FK,{vertical:!1,className},children):react.createElement("div",{className},children),Bar=(0,dist/* styled */.I4)(UnstyledBar)(({theme,scrollable=!0})=>({color:theme.barTextColor,width:"100%",height:40,flexShrink:0,overflow:scrollable?"auto":"hidden",overflowY:"hidden"}),({theme,border=!1})=>border?{boxShadow:`${theme.appBorderColor} 0 -1px 0 0 inset`,background:theme.barBg}:{});Bar.displayName="Bar";var BarInner=dist/* styled */.I4.div(({bgColor})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:bgColor||""})),FlexBar=({children,backgroundColor,...rest})=>{let[left,right]=react.Children.toArray(children);return react.createElement(Bar,{...rest},react.createElement(BarInner,{bgColor:backgroundColor},react.createElement(Side,{scrollable:rest.scrollable,left:!0},left),right?react.createElement(Side,{right:!0},right):null))};FlexBar.displayName="FlexBar";var VisuallyHidden=dist/* styled */.I4.div(({active})=>active?{display:"block"}:{display:"none"}),childrenToList=children=>react.Children.toArray(children).map(({props:{title,id,color:color2,children:childrenOfChild}})=>{let content=Array.isArray(childrenOfChild)?childrenOfChild[0]:childrenOfChild;return {title,id,...color2?{color:color2}:{},render:typeof content=="function"?content:({active})=>react.createElement(VisuallyHidden,{active,role:"tabpanel"},content)}});var CollapseIcon=dist/* styled */.I4.span(({theme,isActive})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:isActive?theme.color.secondary:theme.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),AddonButton=(0,dist/* styled */.I4)(TabButton)(({active,theme,preActive})=>` - color: ${preActive||active?theme.color.secondary:theme.color.mediumdark}; - &:hover { - color: ${theme.color.secondary}; - .addon-collapsible-icon { - color: ${theme.color.secondary}; - } - } - `);function useList(list){let tabBarRef=(0,react.useRef)(),addonsRef=(0,react.useRef)(),tabRefs=(0,react.useRef)(new Map),{width:tabBarWidth=1}=useResizeObserver({ref:tabBarRef}),[visibleList,setVisibleList]=(0,react.useState)(list),[invisibleList,setInvisibleList]=(0,react.useState)([]),previousList=(0,react.useRef)(list),AddonTab=(0,react.useCallback)(({menuName,actions})=>{let isAddonsActive=invisibleList.some(({active})=>active),[isTooltipVisible,setTooltipVisible]=(0,react.useState)(!1);return react.createElement(react.Fragment,null,react.createElement(chunk_NE5YGCQB/* WithToolTipState */.vb,{interactive:!0,visible:isTooltipVisible,onVisibleChange:setTooltipVisible,placement:"bottom",delayHide:100,tooltip:react.createElement(TooltipLinkList,{links:invisibleList.map(({title,id,color:color2,active})=>({id,title,color:color2,active,onClick:e=>{e.preventDefault(),actions.onSelect(id);}}))})},react.createElement(AddonButton,{ref:addonsRef,active:isAddonsActive,preActive:isTooltipVisible,style:{visibility:invisibleList.length?"visible":"hidden"},"aria-hidden":!invisibleList.length,className:"tabbutton",type:"button",role:"tab"},menuName,react.createElement(CollapseIcon,{className:"addon-collapsible-icon",isActive:isAddonsActive||isTooltipVisible}))),invisibleList.map(({title,id,color:color2},index2)=>{let indexId=`index-${index2}`;return react.createElement(TabButton,{id:`tabbutton-${(0,csf_dist/* sanitize */.aj)(id)??indexId}`,style:{visibility:"hidden"},"aria-hidden":!0,tabIndex:-1,ref:ref=>{tabRefs.current.set(id,ref);},className:"tabbutton",type:"button",key:id,textColor:color2,role:"tab"},title)}))},[invisibleList]),setTabLists=(0,react.useCallback)(()=>{if(!tabBarRef.current||!addonsRef.current)return;let{x,width}=tabBarRef.current.getBoundingClientRect(),{width:widthAddonsTab}=addonsRef.current.getBoundingClientRect(),rightBorder=invisibleList.length?x+width-widthAddonsTab:x+width,newVisibleList=[],widthSum=0,newInvisibleList=list.filter(item=>{let{id}=item,tabButton=tabRefs.current.get(id),{width:tabWidth=0}=tabButton?.getBoundingClientRect()||{},crossBorder=x+widthSum+tabWidth>rightBorder;return (!crossBorder||!tabButton)&&newVisibleList.push(item),widthSum+=tabWidth,crossBorder});(newVisibleList.length!==visibleList.length||previousList.current!==list)&&(setVisibleList(newVisibleList),setInvisibleList(newInvisibleList),previousList.current=list);},[invisibleList.length,list,visibleList]);return (0,react.useLayoutEffect)(setTabLists,[setTabLists,tabBarWidth]),{tabRefs,addonsRef,tabBarRef,visibleList,invisibleList,AddonTab}}var ignoreSsrWarning2="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",Wrapper2=dist/* styled */.I4.div(({theme,bordered})=>bordered?{backgroundClip:"padding-box",border:`1px solid ${theme.appBorderColor}`,borderRadius:theme.appBorderRadius,overflow:"hidden",boxSizing:"border-box"}:{},({absolute})=>absolute?{width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"}:{display:"block"}),TabBar=dist/* styled */.I4.div({overflow:"hidden","&:first-of-type":{marginLeft:-3},whiteSpace:"nowrap",flexGrow:1});TabBar.displayName="TabBar";var Content=dist/* styled */.I4.div({display:"block",position:"relative"},({theme})=>({fontSize:theme.typography.size.s2-1,background:theme.background.content}),({bordered,theme})=>bordered?{borderRadius:`0 0 ${theme.appBorderRadius-1}px ${theme.appBorderRadius-1}px`}:{},({absolute,bordered})=>absolute?{height:`calc(100% - ${bordered?42:40}px)`,position:"absolute",left:0+(bordered?1:0),right:0+(bordered?1:0),bottom:0+(bordered?1:0),top:40+(bordered?1:0),overflow:"auto",[`& > *:first-child${ignoreSsrWarning2}`]:{position:"absolute",left:0+(bordered?1:0),right:0+(bordered?1:0),bottom:0+(bordered?1:0),top:0+(bordered?1:0),height:`calc(100% - ${bordered?2:0}px)`,overflow:"auto"}}:{}),TabWrapper=({active,render,children})=>React5__default.createElement(VisuallyHidden,{active},render?render():children);var Tabs=(0,react.memo)(({children,selected,actions,absolute,bordered,tools,backgroundColor,id:htmlId,menuName})=>{let idList=childrenToList(children).map(i=>i.id),list=(0,react.useMemo)(()=>childrenToList(children).map((i,index2)=>({...i,active:selected?i.id===selected:index2===0})),[selected,...idList]),{visibleList,tabBarRef,tabRefs,AddonTab}=useList(list);return list.length?react.createElement(Wrapper2,{absolute,bordered,id:htmlId},react.createElement(FlexBar,{scrollable:!1,border:!0,backgroundColor},react.createElement(TabBar,{style:{whiteSpace:"normal"},ref:tabBarRef,role:"tablist"},visibleList.map(({title,id,active,color:color2},index2)=>{let indexId=`index-${index2}`;return react.createElement(TabButton,{id:`tabbutton-${(0,csf_dist/* sanitize */.aj)(id)??indexId}`,ref:ref=>{tabRefs.current.set(id,ref);},className:`tabbutton ${active?"tabbutton-active":""}`,type:"button",key:id,active,textColor:color2,onClick:e=>{e.preventDefault(),actions.onSelect(id);},role:"tab"},typeof title=="function"?react.createElement("title",null):title)}),react.createElement(AddonTab,{menuName,actions})),tools),react.createElement(Content,{id:"panel-tab-content",bordered,absolute},list.map(({id,active,render})=>react.createElement(render,{key:id,active},null)))):react.createElement(Placeholder,null,react.createElement(react.Fragment,{key:"title"},"Nothing found"))});Tabs.displayName="Tabs";Tabs.defaultProps={id:null,children:null,tools:null,selected:null,absolute:!1,bordered:!1,menuName:"Tabs"};var TabsState=class extends react.Component{constructor(props){super(props);this.handlers={onSelect:id=>this.setState({selected:id})};this.state={selected:props.initial};}render(){let{bordered=!1,absolute=!1,children,backgroundColor,menuName}=this.props,{selected}=this.state;return react.createElement(Tabs,{bordered,absolute,selected,backgroundColor,menuName,actions:this.handlers},children)}};TabsState.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:"",menuName:void 0};var Separator=dist/* styled */.I4.span(({theme})=>({width:1,height:20,background:theme.appBorderColor,marginTop:10,marginLeft:6,marginRight:2}),({force})=>force?{}:{"& + &":{display:"none"}});Separator.displayName="Separator";var interleaveSeparators=list=>list.reduce((acc,item,index2)=>item?React5__default.createElement(Fragment,{key:item.id||item.key||`f-${index2}`},acc,index2>0?React5__default.createElement(Separator,{key:`s-${index2}`}):null,item.render()||item):acc,null);var usePrevious=value=>{let ref=useRef();return useEffect(()=>{ref.current=value;},[value]),ref.current},useUpdate=(update,value)=>{let previousValue=usePrevious(value);return update?value:previousValue},AddonPanel=({active,children})=>React5__default.createElement("div",{hidden:!active},useUpdate(active,children));var StorybookLogo=({alt,...props})=>React5__default.createElement("svg",{width:"200px",height:"40px",viewBox:"0 0 200 40",...props,role:"img"},alt?React5__default.createElement("title",null,alt):null,React5__default.createElement("defs",null,React5__default.createElement("path",{d:"M1.2 36.9L0 3.9c0-1.1.8-2 1.9-2.1l28-1.8a2 2 0 0 1 2.2 1.9 2 2 0 0 1 0 .1v36a2 2 0 0 1-2 2 2 2 0 0 1-.1 0L3.2 38.8a2 2 0 0 1-2-2z",id:"a"})),React5__default.createElement("g",{fill:"none",fillRule:"evenodd"},React5__default.createElement("path",{d:"M53.3 31.7c-1.7 0-3.4-.3-5-.7-1.5-.5-2.8-1.1-3.9-2l1.6-3.5c2.2 1.5 4.6 2.3 7.3 2.3 1.5 0 2.5-.2 3.3-.7.7-.5 1.1-1 1.1-1.9 0-.7-.3-1.3-1-1.7s-2-.8-3.7-1.2c-2-.4-3.6-.9-4.8-1.5-1.1-.5-2-1.2-2.6-2-.5-1-.8-2-.8-3.2 0-1.4.4-2.6 1.2-3.6.7-1.1 1.8-2 3.2-2.6 1.3-.6 2.9-.9 4.7-.9 1.6 0 3.1.3 4.6.7 1.5.5 2.7 1.1 3.5 2l-1.6 3.5c-2-1.5-4.2-2.3-6.5-2.3-1.3 0-2.3.2-3 .8-.8.5-1.2 1.1-1.2 2 0 .5.2 1 .5 1.3.2.3.7.6 1.4.9l2.9.8c2.9.6 5 1.4 6.2 2.4a5 5 0 0 1 2 4.2 6 6 0 0 1-2.5 5c-1.7 1.2-4 1.9-7 1.9zm21-3.6l1.4-.1-.2 3.5-1.9.1c-2.4 0-4.1-.5-5.2-1.5-1.1-1-1.6-2.7-1.6-4.8v-6h-3v-3.6h3V11h4.8v4.6h4v3.6h-4v6c0 1.8.9 2.8 2.6 2.8zm11.1 3.5c-1.6 0-3-.3-4.3-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.3-1 1.7 0 3.2.3 4.4 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.4 1zm0-3.6c2.4 0 3.6-1.6 3.6-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.6-1c-2.3 0-3.5 1.4-3.5 4.4 0 3 1.2 4.6 3.5 4.6zm21.7-8.8l-2.7.3c-1.3.2-2.3.5-2.8 1.2-.6.6-.9 1.4-.9 2.5v8.2H96V15.7h4.6v2.6c.8-1.8 2.5-2.8 5-3h1.3l.3 4zm14-3.5h4.8L116.4 37h-4.9l3-6.6-6.4-14.8h5l4 10 4-10zm16-.4c1.4 0 2.6.3 3.6 1 1 .6 1.9 1.6 2.5 2.8.6 1.2.9 2.7.9 4.3 0 1.6-.3 3-1 4.3a6.9 6.9 0 0 1-2.4 2.9c-1 .7-2.2 1-3.6 1-1 0-2-.2-3-.7-.8-.4-1.5-1-2-1.9v2.4h-4.7V8.8h4.8v9c.5-.8 1.2-1.4 2-1.9.9-.4 1.8-.6 3-.6zM135.7 28c1.1 0 2-.4 2.6-1.2.6-.8 1-2 1-3.4 0-1.5-.4-2.5-1-3.3s-1.5-1.1-2.6-1.1-2 .3-2.6 1.1c-.6.8-1 2-1 3.3 0 1.5.4 2.6 1 3.4.6.8 1.5 1.2 2.6 1.2zm18.9 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.3 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm18 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.4 1a7 7 0 0 1 2.9 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm27.4 3.4h-6l-6-7v7h-4.8V8.8h4.9v13.6l5.8-6.7h5.7l-6.6 7.5 7 8.2z",fill:"currentColor"}),React5__default.createElement("mask",{id:"b",fill:"#fff"},React5__default.createElement("use",{xlinkHref:"#a"})),React5__default.createElement("use",{fill:"#FF4785",fillRule:"nonzero",xlinkHref:"#a"}),React5__default.createElement("path",{d:"M23.7 5L24 .2l3.9-.3.1 4.8a.3.3 0 0 1-.5.2L26 3.8l-1.7 1.4a.3.3 0 0 1-.5-.3zm-5 10c0 .9 5.3.5 6 0 0-5.4-2.8-8.2-8-8.2-5.3 0-8.2 2.8-8.2 7.1 0 7.4 10 7.6 10 11.6 0 1.2-.5 1.9-1.8 1.9-1.6 0-2.2-.9-2.1-3.6 0-.6-6.1-.8-6.3 0-.5 6.7 3.7 8.6 8.5 8.6 4.6 0 8.3-2.5 8.3-7 0-7.9-10.2-7.7-10.2-11.6 0-1.6 1.2-1.8 2-1.8.6 0 2 0 1.9 3z",fill:"#FFF",fillRule:"nonzero",mask:"url(#b)"})));var StorybookIcon=({...props})=>React5__default.createElement("svg",{viewBox:"0 0 64 64",...props},React5__default.createElement("title",null,"Storybook icon"),React5__default.createElement("g",{id:"Artboard",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},React5__default.createElement("path",{d:"M8.04798541,58.7875918 L6.07908839,6.32540407 C6.01406344,4.5927838 7.34257463,3.12440831 9.07303814,3.01625434 L53.6958037,0.227331489 C55.457209,0.117243658 56.974354,1.45590096 57.0844418,3.21730626 C57.0885895,3.28366922 57.0906648,3.35014546 57.0906648,3.41663791 L57.0906648,60.5834697 C57.0906648,62.3483119 55.6599776,63.7789992 53.8951354,63.7789992 C53.847325,63.7789992 53.7995207,63.7779262 53.7517585,63.775781 L11.0978899,61.8600599 C9.43669044,61.7854501 8.11034889,60.4492961 8.04798541,58.7875918 Z",id:"path-1",fill:"#FF4785",fillRule:"nonzero"}),React5__default.createElement("path",{d:"M35.9095005,24.1768792 C35.9095005,25.420127 44.2838488,24.8242707 45.4080313,23.9509748 C45.4080313,15.4847538 40.8652557,11.0358878 32.5466666,11.0358878 C24.2280775,11.0358878 19.5673077,15.553972 19.5673077,22.3311017 C19.5673077,34.1346028 35.4965208,34.3605071 35.4965208,40.7987804 C35.4965208,42.606015 34.6115646,43.6790606 32.6646607,43.6790606 C30.127786,43.6790606 29.1248356,42.3834613 29.2428298,37.9783269 C29.2428298,37.0226907 19.5673077,36.7247626 19.2723223,37.9783269 C18.5211693,48.6535354 25.1720308,51.7326752 32.7826549,51.7326752 C40.1572906,51.7326752 45.939005,47.8018145 45.939005,40.6858282 C45.939005,28.035186 29.7738035,28.3740425 29.7738035,22.1051974 C29.7738035,19.5637737 31.6617103,19.2249173 32.7826549,19.2249173 C33.9625966,19.2249173 36.0864917,19.4328883 35.9095005,24.1768792 Z",id:"path9_fill-path",fill:"#FFFFFF",fillRule:"nonzero"}),React5__default.createElement("path",{d:"M44.0461638,0.830433986 L50.1874092,0.446606143 L50.443532,7.7810017 C50.4527198,8.04410717 50.2468789,8.26484453 49.9837734,8.27403237 C49.871115,8.27796649 49.7607078,8.24184808 49.6721567,8.17209069 L47.3089847,6.3104681 L44.5110468,8.43287463 C44.3012992,8.591981 44.0022839,8.55092814 43.8431776,8.34118051 C43.7762017,8.25288717 43.742082,8.14401677 43.7466857,8.03329059 L44.0461638,0.830433986 Z",id:"Path",fill:"#FFFFFF"})));var rotate360=(0,dist/* keyframes */.i7)` - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -`;var LoaderWrapper=dist/* styled */.I4.div(({size=32})=>({borderRadius:"50%",cursor:"progress",display:"inline-block",overflow:"hidden",position:"absolute",transition:"all 200ms ease-out",verticalAlign:"top",top:"50%",left:"50%",marginTop:-(size/2),marginLeft:-(size/2),height:size,width:size,zIndex:4,borderWidth:2,borderStyle:"solid",borderColor:"rgba(97, 97, 97, 0.29)",borderTopColor:"rgb(100,100,100)",animation:`${rotate360} 0.7s linear infinite`,mixBlendMode:"difference"})),ProgressWrapper=dist/* styled */.I4.div({position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),ProgressTrack=dist/* styled */.I4.div(({theme})=>({position:"relative",width:"80%",marginBottom:"0.75rem",maxWidth:300,height:5,borderRadius:5,background:curriedTransparentize$1(.8,theme.color.secondary),overflow:"hidden",cursor:"progress"})),ProgressBar=dist/* styled */.I4.div(({theme})=>({position:"absolute",top:0,left:0,height:"100%",background:theme.color.secondary})),ProgressMessage=dist/* styled */.I4.div(({theme})=>({minHeight:"2em",fontSize:`${theme.typography.size.s1}px`,color:theme.barTextColor})),ErrorIcon=(0,dist/* styled */.I4)(Icons)(({theme})=>({width:20,height:20,marginBottom:"0.5rem",color:theme.textMutedColor})),ellipsis=(0,dist/* keyframes */.i7)` - from { content: "..." } - 33% { content: "." } - 66% { content: ".." } - to { content: "..." } -`,Ellipsis=dist/* styled */.I4.span({"&::after":{content:"'...'",animation:`${ellipsis} 1s linear infinite`,animationDelay:"1s",display:"inline-block",width:"1em",height:"auto"}}),Loader=({progress,error,size,...props})=>{if(error)return react.createElement(ProgressWrapper,{"aria-label":error.toString(),"aria-live":"polite",role:"status",...props},react.createElement(ErrorIcon,{icon:"lightningoff"}),react.createElement(ProgressMessage,null,error.message));if(progress){let{value,modules}=progress,{message}=progress;return modules&&(message+=` ${modules.complete} / ${modules.total} modules`),react.createElement(ProgressWrapper,{"aria-label":"Content is loading...","aria-live":"polite","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":value*100,"aria-valuetext":message,role:"progressbar",...props},react.createElement(ProgressTrack,null,react.createElement(ProgressBar,{style:{width:`${value*100}%`}})),react.createElement(ProgressMessage,null,message,value<1&&react.createElement(Ellipsis,{key:message})))}return react.createElement(LoaderWrapper,{"aria-label":"Content is loading...","aria-live":"polite",role:"status",size,...props})};function parseQuery(queryString){let query={},pairs=queryString.split("&");for(let i=0;i{let[url,paramsStr]=baseUrl.split("?"),params=paramsStr?{...parseQuery(paramsStr),...additionalParams,id:storyId}:{...additionalParams,id:storyId};return `${url}?${Object.entries(params).map(item=>`${item[0]}=${item[1]}`).join("&")}`};var Code2=dist/* styled */.I4.pre` - line-height: 18px; - padding: 11px 1rem; - white-space: pre-wrap; - background: rgba(0, 0, 0, 0.05); - color: ${chunk_ZGA76URP/* color */.yW.darkest}; - border-radius: 3px; - margin: 1rem 0; - width: 100%; - display: block; - overflow: hidden; - font-family: ${chunk_ZGA76URP/* typography */.Il.fonts.mono}; - font-size: ${chunk_ZGA76URP/* typography */.Il.size.s2-1}px; -`,ClipboardCode=({code,...props})=>React5__default.createElement(Code2,{id:"clipboard-code",...props},code);var components2=components,resetComponents={};Object.keys(components).forEach(key=>{resetComponents[key]=(0,react.forwardRef)((props,ref)=>(0,react.createElement)(key,{...props,ref}));}); - - - - -/***/ }), - -/***/ "../../../node_modules/@storybook/csf/dist/index.mjs": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ aj: () => (/* binding */ L), -/* harmony export */ hX: () => (/* binding */ O) -/* harmony export */ }); -/* unused harmony exports isExportStory, parseKind, storyNameFromExport, toId */ -var B=Object.create;var R=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var h=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var I=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var E=(r,e,n,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of C(e))!w.call(r,a)&&a!==n&&R(r,a,{get:()=>e[a],enumerable:!(t=b(e,a))||t.enumerable});return r};var v=(r,e,n)=>(n=r!=null?B(h(r)):{},E(e||!r||!r.__esModule?R(n,"default",{value:r,enumerable:!0}):n,r));var x=I(T=>{Object.defineProperty(T,"__esModule",{value:!0}),T.isEqual=function(){var r=Object.prototype.toString,e=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(t){return Object.keys(t).concat(Object.getOwnPropertySymbols(t))}:Object.keys;return function(t,a){return function i(o,s,p){var y,g,d,A=r.call(o),F=r.call(s);if(o===s)return !0;if(o==null||s==null)return !1;if(p.indexOf(o)>-1&&p.indexOf(s)>-1)return !0;if(p.push(o,s),A!=F||(y=n(o),g=n(s),y.length!=g.length||y.some(function(l){return !i(o[l],s[l],p)})))return !1;switch(A.slice(8,-1)){case"Symbol":return o.valueOf()==s.valueOf();case"Date":case"Number":return +o==+s||+o!=+o&&+s!=+s;case"RegExp":case"Function":case"String":case"Boolean":return ""+o==""+s;case"Set":case"Map":y=o.entries(),g=s.entries();do if(!i((d=y.next()).value,g.next().value,p))return !1;while(!d.done);return !0;case"ArrayBuffer":o=new Uint8Array(o),s=new Uint8Array(s);case"DataView":o=new Uint8Array(o.buffer),s=new Uint8Array(s.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(o.length!=s.length)return !1;for(d=0;d`${n} ${t}${a}`).replace(/([a-z])([A-Z])/g,(e,n,t)=>`${n} ${t}`).replace(/([a-z])([0-9])/gi,(e,n,t)=>`${n} ${t}`).replace(/([0-9])([a-z])/gi,(e,n,t)=>`${n} ${t}`).replace(/(\s|^)(\w)/g,(e,n,t)=>`${n}${t.toUpperCase()}`).replace(/ +/g," ").trim()}var c=v(x()),S=r=>r.map(e=>typeof e<"u").filter(Boolean).length,P=(r,e)=>{let{exists:n,eq:t,neq:a,truthy:i}=r;if(S([n,t,a,i])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:n,eq:t,neq:a})}`);if(typeof t<"u")return (0, c.isEqual)(e,t);if(typeof a<"u")return !(0, c.isEqual)(e,a);if(typeof n<"u"){let s=typeof e<"u";return n?s:!s}return (typeof i>"u"?!0:i)?!!e:!e},O=(r,e,n)=>{if(!r.if)return !0;let{arg:t,global:a}=r.if;if(S([t,a])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:t,global:a})}`);let i=t?e[t]:n[a];return P(r.if,i)};var L=r=>r.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),f=(r,e)=>{let n=L(r);if(n==="")throw new Error(`Invalid ${e} '${r}', must include alphanumeric characters`);return n},N=(r,e)=>`${f(r,"kind")}${e?`--${f(e,"name")}`:""}`,M=r=>u(r);function m(r,e){return Array.isArray(e)?e.includes(r):r.match(e)}function G(r,{includeStories:e,excludeStories:n}){return r!=="__esModule"&&(!e||m(r,e))&&(!n||!m(r,n))}var z=(r,{rootSeparator:e,groupSeparator:n})=>{let[t,a]=r.split(e,2),i=(a||r).split(n).filter(o=>!!o);return {root:a?t:null,groups:i}}; - - - - -/***/ }), - -/***/ "../../../node_modules/@storybook/theming/dist/index.mjs": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - NP: () => (/* binding */ ThemeProvider), - C6: () => (/* binding */ convert), - D8: () => (/* binding */ ensure), - v_: () => (/* binding */ ignoreSsrWarning), - EG: () => (/* binding */ isPropValid), - i7: () => (/* binding */ keyframes), - I4: () => (/* binding */ newStyled), - DP: () => (/* binding */ useTheme) -}); - -// UNUSED EXPORTS: CacheProvider, ClassNames, Global, background, color, create, createCache, createGlobal, createReset, css, darken, jsx, lighten, themes, typography, withTheme - -// EXTERNAL MODULE: ../../../node_modules/@storybook/theming/dist/chunk-ZGA76URP.mjs -var chunk_ZGA76URP = __webpack_require__("../../../node_modules/@storybook/theming/dist/chunk-ZGA76URP.mjs"); -// EXTERNAL MODULE: ../../../node_modules/react/index.js -var react = __webpack_require__("../../../node_modules/react/index.js"); -var react_namespaceObject = /*#__PURE__*/__webpack_require__.t(react, 2); -;// CONCATENATED MODULE: ../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js - - -var syncFallback = function syncFallback(create) { - return create(); -}; - -var useInsertionEffect = react_namespaceObject['useInsertion' + 'Effect'] ? react_namespaceObject['useInsertion' + 'Effect'] : false; -var useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect || syncFallback; -var useInsertionEffectWithLayoutFallback = useInsertionEffect || react.useLayoutEffect; - - - -// EXTERNAL MODULE: ../../../node_modules/memoizerific/memoizerific.js -var memoizerific = __webpack_require__("../../../node_modules/memoizerific/memoizerific.js"); -var memoizerific_default = /*#__PURE__*/__webpack_require__.n(memoizerific); -// EXTERNAL MODULE: external "__STORYBOOK_MODULE_CLIENT_LOGGER__" -var external_STORYBOOK_MODULE_CLIENT_LOGGER_ = __webpack_require__("@storybook/client-logger"); -;// CONCATENATED MODULE: ../../../node_modules/@storybook/theming/dist/index.mjs - - - - - - - - -var require_react_is_development=(0,chunk_ZGA76URP/* __commonJS */.P$)({"../../node_modules/react-is/cjs/react-is.development.js"(exports){(function(){var hasSymbol=typeof Symbol=="function"&&Symbol.for,REACT_ELEMENT_TYPE=hasSymbol?Symbol.for("react.element"):60103,REACT_PORTAL_TYPE=hasSymbol?Symbol.for("react.portal"):60106,REACT_FRAGMENT_TYPE=hasSymbol?Symbol.for("react.fragment"):60107,REACT_STRICT_MODE_TYPE=hasSymbol?Symbol.for("react.strict_mode"):60108,REACT_PROFILER_TYPE=hasSymbol?Symbol.for("react.profiler"):60114,REACT_PROVIDER_TYPE=hasSymbol?Symbol.for("react.provider"):60109,REACT_CONTEXT_TYPE=hasSymbol?Symbol.for("react.context"):60110,REACT_ASYNC_MODE_TYPE=hasSymbol?Symbol.for("react.async_mode"):60111,REACT_CONCURRENT_MODE_TYPE=hasSymbol?Symbol.for("react.concurrent_mode"):60111,REACT_FORWARD_REF_TYPE=hasSymbol?Symbol.for("react.forward_ref"):60112,REACT_SUSPENSE_TYPE=hasSymbol?Symbol.for("react.suspense"):60113,REACT_SUSPENSE_LIST_TYPE=hasSymbol?Symbol.for("react.suspense_list"):60120,REACT_MEMO_TYPE=hasSymbol?Symbol.for("react.memo"):60115,REACT_LAZY_TYPE=hasSymbol?Symbol.for("react.lazy"):60116,REACT_BLOCK_TYPE=hasSymbol?Symbol.for("react.block"):60121,REACT_FUNDAMENTAL_TYPE=hasSymbol?Symbol.for("react.fundamental"):60117,REACT_RESPONDER_TYPE=hasSymbol?Symbol.for("react.responder"):60118,REACT_SCOPE_TYPE=hasSymbol?Symbol.for("react.scope"):60119;function isValidElementType(type){return typeof type=="string"||typeof type=="function"||type===REACT_FRAGMENT_TYPE||type===REACT_CONCURRENT_MODE_TYPE||type===REACT_PROFILER_TYPE||type===REACT_STRICT_MODE_TYPE||type===REACT_SUSPENSE_TYPE||type===REACT_SUSPENSE_LIST_TYPE||typeof type=="object"&&type!==null&&(type.$$typeof===REACT_LAZY_TYPE||type.$$typeof===REACT_MEMO_TYPE||type.$$typeof===REACT_PROVIDER_TYPE||type.$$typeof===REACT_CONTEXT_TYPE||type.$$typeof===REACT_FORWARD_REF_TYPE||type.$$typeof===REACT_FUNDAMENTAL_TYPE||type.$$typeof===REACT_RESPONDER_TYPE||type.$$typeof===REACT_SCOPE_TYPE||type.$$typeof===REACT_BLOCK_TYPE)}function typeOf(object){if(typeof object=="object"&&object!==null){var $$typeof=object.$$typeof;switch($$typeof){case REACT_ELEMENT_TYPE:var type=object.type;switch(type){case REACT_ASYNC_MODE_TYPE:case REACT_CONCURRENT_MODE_TYPE:case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:return type;default:var $$typeofType=type&&type.$$typeof;switch($$typeofType){case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:case REACT_PROVIDER_TYPE:return $$typeofType;default:return $$typeof}}case REACT_PORTAL_TYPE:return $$typeof}}}var AsyncMode=REACT_ASYNC_MODE_TYPE,ConcurrentMode=REACT_CONCURRENT_MODE_TYPE,ContextConsumer=REACT_CONTEXT_TYPE,ContextProvider=REACT_PROVIDER_TYPE,Element=REACT_ELEMENT_TYPE,ForwardRef=REACT_FORWARD_REF_TYPE,Fragment4=REACT_FRAGMENT_TYPE,Lazy=REACT_LAZY_TYPE,Memo=REACT_MEMO_TYPE,Portal=REACT_PORTAL_TYPE,Profiler=REACT_PROFILER_TYPE,StrictMode=REACT_STRICT_MODE_TYPE,Suspense=REACT_SUSPENSE_TYPE,hasWarnedAboutDeprecatedIsAsyncMode=!1;function isAsyncMode(object){return hasWarnedAboutDeprecatedIsAsyncMode||(hasWarnedAboutDeprecatedIsAsyncMode=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),isConcurrentMode(object)||typeOf(object)===REACT_ASYNC_MODE_TYPE}function isConcurrentMode(object){return typeOf(object)===REACT_CONCURRENT_MODE_TYPE}function isContextConsumer(object){return typeOf(object)===REACT_CONTEXT_TYPE}function isContextProvider(object){return typeOf(object)===REACT_PROVIDER_TYPE}function isElement(object){return typeof object=="object"&&object!==null&&object.$$typeof===REACT_ELEMENT_TYPE}function isForwardRef(object){return typeOf(object)===REACT_FORWARD_REF_TYPE}function isFragment(object){return typeOf(object)===REACT_FRAGMENT_TYPE}function isLazy(object){return typeOf(object)===REACT_LAZY_TYPE}function isMemo(object){return typeOf(object)===REACT_MEMO_TYPE}function isPortal(object){return typeOf(object)===REACT_PORTAL_TYPE}function isProfiler(object){return typeOf(object)===REACT_PROFILER_TYPE}function isStrictMode(object){return typeOf(object)===REACT_STRICT_MODE_TYPE}function isSuspense(object){return typeOf(object)===REACT_SUSPENSE_TYPE}exports.AsyncMode=AsyncMode,exports.ConcurrentMode=ConcurrentMode,exports.ContextConsumer=ContextConsumer,exports.ContextProvider=ContextProvider,exports.Element=Element,exports.ForwardRef=ForwardRef,exports.Fragment=Fragment4,exports.Lazy=Lazy,exports.Memo=Memo,exports.Portal=Portal,exports.Profiler=Profiler,exports.StrictMode=StrictMode,exports.Suspense=Suspense,exports.isAsyncMode=isAsyncMode,exports.isConcurrentMode=isConcurrentMode,exports.isContextConsumer=isContextConsumer,exports.isContextProvider=isContextProvider,exports.isElement=isElement,exports.isForwardRef=isForwardRef,exports.isFragment=isFragment,exports.isLazy=isLazy,exports.isMemo=isMemo,exports.isPortal=isPortal,exports.isProfiler=isProfiler,exports.isStrictMode=isStrictMode,exports.isSuspense=isSuspense,exports.isValidElementType=isValidElementType,exports.typeOf=typeOf;})();}});var require_react_is=(0,chunk_ZGA76URP/* __commonJS */.P$)({"../../node_modules/react-is/index.js"(exports,module){module.exports=require_react_is_development();}});var require_hoist_non_react_statics_cjs=(0,chunk_ZGA76URP/* __commonJS */.P$)({"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports,module){var reactIs=require_react_is(),REACT_STATICS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},KNOWN_STATICS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},FORWARD_REF_STATICS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},MEMO_STATICS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TYPE_STATICS={};TYPE_STATICS[reactIs.ForwardRef]=FORWARD_REF_STATICS;TYPE_STATICS[reactIs.Memo]=MEMO_STATICS;function getStatics(component){return reactIs.isMemo(component)?MEMO_STATICS:TYPE_STATICS[component.$$typeof]||REACT_STATICS}var defineProperty=Object.defineProperty,getOwnPropertyNames=Object.getOwnPropertyNames,getOwnPropertySymbols=Object.getOwnPropertySymbols,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,getPrototypeOf=Object.getPrototypeOf,objectPrototype=Object.prototype;function hoistNonReactStatics2(targetComponent,sourceComponent,blacklist){if(typeof sourceComponent!="string"){if(objectPrototype){var inheritedComponent=getPrototypeOf(sourceComponent);inheritedComponent&&inheritedComponent!==objectPrototype&&hoistNonReactStatics2(targetComponent,inheritedComponent,blacklist);}var keys=getOwnPropertyNames(sourceComponent);getOwnPropertySymbols&&(keys=keys.concat(getOwnPropertySymbols(sourceComponent)));for(var targetStatics=getStatics(targetComponent),sourceStatics=getStatics(sourceComponent),i=0;i0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position2||token(character)>3?"":" "}function escaping(index,count){for(;--count&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(index,caret()+(count<6&&peek()==32&&next()==32))}function delimiter(type){for(;next();)switch(character){case type:return position;case 34:case 39:type!==34&&type!==39&&delimiter(character);break;case 40:type===41&&delimiter(type);break;case 92:next();break}return position}function commenter(type,index){for(;next()&&type+character!==47+10;)if(type+character===42+42&&peek()===47)break;return "/*"+slice(index,position-1)+"*"+from(type===47?type:next())}function identifier(index){for(;!token(peek());)next();return slice(index,position)}function compile(value){return dealloc(parse("",null,null,null,[""],value=alloc(value),0,[0],value))}function parse(value,root,parent,rule,rules,rulesets,pseudo,points,declarations){for(var index=0,offset=0,length2=pseudo,atrule=0,property=0,previous=0,variable=1,scanning=1,ampersand=1,character2=0,type="",props=rules,children=rulesets,reference=rule,characters2=type;scanning;)switch(previous=character2,character2=next()){case 40:if(previous!=108&&charat(characters2,length2-1)==58){indexof(characters2+=replace(delimit(character2),"&","&\f"),"&\f")!=-1&&(ampersand=-1);break}case 34:case 39:case 91:characters2+=delimit(character2);break;case 9:case 10:case 13:case 32:characters2+=whitespace(previous);break;case 92:characters2+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),root,parent),declarations);break;default:characters2+="/";}break;case 123*variable:points[index++]=strlen(characters2)*ampersand;case 125*variable:case 59:case 0:switch(character2){case 0:case 125:scanning=0;case 59+offset:ampersand==-1&&(characters2=replace(characters2,/\f/g,"")),property>0&&strlen(characters2)-length2&&append(property>32?declaration(characters2+";",rule,parent,length2-1):declaration(replace(characters2," ","")+";",rule,parent,length2-2),declarations);break;case 59:characters2+=";";default:if(append(reference=ruleset(characters2,root,parent,index,offset,rules,points,type,props=[],children=[],length2),rulesets),character2===123)if(offset===0)parse(characters2,root,reference,reference,props,rulesets,length2,points,children);else switch(atrule===99&&charat(characters2,3)===110?100:atrule){case 100:case 108:case 109:case 115:parse(value,reference,reference,rule&&append(ruleset(value,reference,reference,0,0,rules,points,type,rules,props=[],length2),children),rules,children,length2,points,rule?props:children);break;default:parse(characters2,reference,reference,reference,[""],children,0,points,children);}}index=offset=property=0,variable=ampersand=1,type=characters2="",length2=pseudo;break;case 58:length2=1+strlen(characters2),property=previous;default:if(variable<1){if(character2==123)--variable;else if(character2==125&&variable++==0&&prev()==125)continue}switch(characters2+=from(character2),character2*variable){case 38:ampersand=offset>0?1:(characters2+="\f",-1);break;case 44:points[index++]=(strlen(characters2)-1)*ampersand,ampersand=1;break;case 64:peek()===45&&(characters2+=delimit(next())),atrule=peek(),offset=length2=strlen(type=characters2+=identifier(caret())),character2++;break;case 45:previous===45&&strlen(characters2)==2&&(variable=0);}}return rulesets}function ruleset(value,root,parent,index,offset,rules,points,type,props,children,length2){for(var post=offset-1,rule=offset===0?rules:[""],size=sizeof(rule),i=0,j=0,k=0;i0?rule[x]+" "+y:replace(y,/&\f/g,rule[x])))&&(props[k++]=z);return node(value,root,parent,offset===0?RULESET:type,props,children,length2)}function comment(value,root,parent){return node(value,root,parent,COMMENT,from(dist_char()),substr(value,2,-2),0)}function declaration(value,root,parent,length2){return node(value,root,parent,DECLARATION,substr(value,0,length2),substr(value,length2+1,-1),length2)}function serialize(children,callback){for(var output="",length2=sizeof(children),i=0;i-1},createUnsafeSelectorsAlarm=function(cache){return function(element,index,children){if(!(element.type!=="rule"||cache.compat)){var unsafePseudoClasses=element.value.match(/(:first|:nth|:nth-last)-child/g);if(unsafePseudoClasses){for(var isNested=!!element.parent,commentContainer=isNested?element.parent.children:children,i=commentContainer.length-1;i>=0;i--){var node2=commentContainer[i];if(node2.line=0;i--)if(!isImportRule(children[i]))return !0;return !1},nullifyElement=function(element){element.type="",element.value="",element.return="",element.children="",element.props="";},incorrectImportAlarm=function(element,index,children){isImportRule(element)&&(element.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),nullifyElement(element)):isPrependedWithRegularRules(index,children)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),nullifyElement(element)));};function prefix(value,length2){switch(hash(value,length2)){case 5103:return WEBKIT+"print-"+value+value;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return WEBKIT+value+value;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT+value+MOZ+value+MS+value+value;case 6828:case 4268:return WEBKIT+value+MS+value+value;case 6165:return WEBKIT+value+MS+"flex-"+value+value;case 5187:return WEBKIT+value+replace(value,/(\w+).+(:[^]+)/,WEBKIT+"box-$1$2"+MS+"flex-$1$2")+value;case 5443:return WEBKIT+value+MS+"flex-item-"+replace(value,/flex-|-self/,"")+value;case 4675:return WEBKIT+value+MS+"flex-line-pack"+replace(value,/align-content|flex-|-self/,"")+value;case 5548:return WEBKIT+value+MS+replace(value,"shrink","negative")+value;case 5292:return WEBKIT+value+MS+replace(value,"basis","preferred-size")+value;case 6060:return WEBKIT+"box-"+replace(value,"-grow","")+WEBKIT+value+MS+replace(value,"grow","positive")+value;case 4554:return WEBKIT+replace(value,/([^-])(transform)/g,"$1"+WEBKIT+"$2")+value;case 6187:return replace(replace(replace(value,/(zoom-|grab)/,WEBKIT+"$1"),/(image-set)/,WEBKIT+"$1"),value,"")+value;case 5495:case 3959:return replace(value,/(image-set\([^]*)/,WEBKIT+"$1$`$1");case 4968:return replace(replace(value,/(.+:)(flex-)?(.*)/,WEBKIT+"box-pack:$3"+MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WEBKIT+value+value;case 4095:case 3583:case 4068:case 2532:return replace(value,/(.+)-inline(.+)/,WEBKIT+"$1$2")+value;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(strlen(value)-1-length2>6)switch(charat(value,length2+1)){case 109:if(charat(value,length2+4)!==45)break;case 102:return replace(value,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(value,length2+3)==108?"$3":"$2-$3"))+value;case 115:return ~indexof(value,"stretch")?prefix(replace(value,"stretch","fill-available"),length2)+value:value}break;case 4949:if(charat(value,length2+1)!==115)break;case 6444:switch(charat(value,strlen(value)-3-(~indexof(value,"!important")&&10))){case 107:return replace(value,":",":"+WEBKIT)+value;case 101:return replace(value,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat(value,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+value}break;case 5936:switch(charat(value,length2+11)){case 114:return WEBKIT+value+MS+replace(value,/[svh]\w+-[tblr]{2}/,"tb")+value;case 108:return WEBKIT+value+MS+replace(value,/[svh]\w+-[tblr]{2}/,"tb-rl")+value;case 45:return WEBKIT+value+MS+replace(value,/[svh]\w+-[tblr]{2}/,"lr")+value}return WEBKIT+value+MS+value+value}return value}var prefixer=function(element,index,children,callback){if(element.length>-1&&!element.return)switch(element.type){case DECLARATION:element.return=prefix(element.value,element.length);break;case KEYFRAMES:return serialize([copy(element,{value:replace(element.value,"@","@"+WEBKIT)})],callback);case RULESET:if(element.length)return combine(element.props,function(value){switch(match(value,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(element,{props:[replace(value,/:(read-\w+)/,":"+MOZ+"$1")]})],callback);case"::placeholder":return serialize([copy(element,{props:[replace(value,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(element,{props:[replace(value,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(element,{props:[replace(value,/:(plac\w+)/,MS+"input-$1")]})],callback)}return ""})}},defaultStylisPlugins=[prefixer],createCache=function(options){var key=options.key;if(!key)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache. -If multiple caches share the same key they might "fight" for each other's style elements.`);if(key==="css"){var ssrStyles=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(ssrStyles,function(node2){var dataEmotionAttribute=node2.getAttribute("data-emotion");dataEmotionAttribute.indexOf(" ")!==-1&&(document.head.appendChild(node2),node2.setAttribute("data-s",""));});}var stylisPlugins=options.stylisPlugins||defaultStylisPlugins;if(/[^a-z-]/.test(key))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+key+'" was passed');var inserted={},container,nodesToHydrate=[];container=options.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+key+' "]'),function(node2){for(var attrib=node2.getAttribute("data-emotion").split(" "),i=1;i=4;++i,len-=4)k=str.charCodeAt(i)&255|(str.charCodeAt(++i)&255)<<8|(str.charCodeAt(++i)&255)<<16|(str.charCodeAt(++i)&255)<<24,k=(k&65535)*1540483477+((k>>>16)*59797<<16),k^=k>>>24,h=(k&65535)*1540483477+((k>>>16)*59797<<16)^(h&65535)*1540483477+((h>>>16)*59797<<16);switch(len){case 3:h^=(str.charCodeAt(i+2)&255)<<16;case 2:h^=(str.charCodeAt(i+1)&255)<<8;case 1:h^=str.charCodeAt(i)&255,h=(h&65535)*1540483477+((h>>>16)*59797<<16);}return h^=h>>>13,h=(h&65535)*1540483477+((h>>>16)*59797<<16),((h^h>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ILLEGAL_ESCAPE_SEQUENCE_ERROR=`You have illegal escape sequence in your template literal, most likely inside content's property value. -Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". -You can read more about this here: -https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,UNDEFINED_AS_OBJECT_KEY_ERROR="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(property){return property.charCodeAt(1)===45},isProcessableValue=function(value){return value!=null&&typeof value!="boolean"},processStyleName=memoize(function(styleName){return isCustomProperty(styleName)?styleName:styleName.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(key,value){switch(key){case"animation":case"animationName":if(typeof value=="string")return value.replace(animationRegex,function(match2,p1,p2){return cursor={name:p1,styles:p2,next:cursor},p1})}return unitlessKeys[key]!==1&&!isCustomProperty(key)&&typeof value=="number"&&value!==0?value+"px":value};contentValuePattern=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,contentValues=["normal","none","initial","inherit","unset"],oldProcessStyleValue=processStyleValue,msPattern=/^-ms-/,hyphenPattern=/-(.)/g,hyphenatedCache={},processStyleValue=function(key,value){if(key==="content"&&(typeof value!="string"||contentValues.indexOf(value)===-1&&!contentValuePattern.test(value)&&(value.charAt(0)!==value.charAt(value.length-1)||value.charAt(0)!=='"'&&value.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+value+"\"'`");var processed=oldProcessStyleValue(key,value);return processed!==""&&!isCustomProperty(key)&&key.indexOf("-")!==-1&&hyphenatedCache[key]===void 0&&(hyphenatedCache[key]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+key.replace(msPattern,"ms-").replace(hyphenPattern,function(str,_char){return _char.toUpperCase()})+"?")),processed};var contentValuePattern,contentValues,oldProcessStyleValue,msPattern,hyphenPattern,hyphenatedCache,noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation(mergedProps,registered,interpolation){if(interpolation==null)return "";if(interpolation.__emotion_styles!==void 0){if(interpolation.toString()==="NO_COMPONENT_SELECTOR")throw new Error(noComponentSelectorMessage);return interpolation}switch(typeof interpolation){case"boolean":return "";case"object":{if(interpolation.anim===1)return cursor={name:interpolation.name,styles:interpolation.styles,next:cursor},interpolation.name;if(interpolation.styles!==void 0){var next2=interpolation.next;if(next2!==void 0)for(;next2!==void 0;)cursor={name:next2.name,styles:next2.styles,next:cursor},next2=next2.next;var styles=interpolation.styles+";";return interpolation.map!==void 0&&(styles+=interpolation.map),styles}return createStringFromObject(mergedProps,registered,interpolation)}case"function":{if(mergedProps!==void 0){var previousCursor=cursor,result=interpolation(mergedProps);return cursor=previousCursor,handleInterpolation(mergedProps,registered,result)}else console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":var matched=[],replaced=interpolation.replace(animationRegex,function(match2,p1,p2){var fakeVarName="animation"+matched.length;return matched.push("const "+fakeVarName+" = keyframes`"+p2.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+fakeVarName+"}"});matched.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(matched,["`"+replaced+"`"]).join(` -`)+` - -You should wrap it with \`css\` like this: - -`+("css`"+replaced+"`"));break}if(registered==null)return interpolation;var cached=registered[interpolation];return cached!==void 0?cached:interpolation}function createStringFromObject(mergedProps,registered,obj){var string="";if(Array.isArray(obj))for(var i=0;i ({})}!");return mergedTheme}if(theme==null||typeof theme!="object"||Array.isArray(theme))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return _extends2({},outerTheme,theme)},createCacheWithTheme=weakMemoize(function(outerTheme){return weakMemoize(function(theme){return getTheme(outerTheme,theme)})}),ThemeProvider=function(props){var theme=react.useContext(ThemeContext);return props.theme!==theme&&(theme=createCacheWithTheme(theme)(props.theme)),react.createElement(ThemeContext.Provider,{value:theme},props.children)};function withTheme(Component){var componentName=Component.displayName||Component.name||"Component",render=function(props,ref){var theme=React.useContext(ThemeContext);return React.createElement(Component,_extends2({theme,ref},props))},WithTheme=React.forwardRef(render);return WithTheme.displayName="WithTheme("+componentName+")",hoistNonReactStatics(WithTheme,Component)}var getLastPart=function(functionName){var parts=functionName.split(".");return parts[parts.length-1]},getFunctionNameFromStackTraceLine=function(line2){var match2=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(line2);if(match2||(match2=/^([A-Za-z0-9$.]+)@/.exec(line2),match2))return getLastPart(match2[1])},internalReactFunctionNames=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),sanitizeIdentifier=function(identifier2){return identifier2.replace(/\$/g,"-")},getLabelFromStackTrace=function(stackTrace){if(stackTrace)for(var lines=stackTrace.split(` -`),i=0;i=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.0","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},jsx=function(type,props){var args=arguments;if(props==null||!dist_hasOwnProperty.call(props,"css"))return React.createElement.apply(void 0,args);var argsLength=args.length,createElementArgArray=new Array(argsLength);createElementArgArray[0]=Emotion$1,createElementArgArray[1]=createEmotionProps(type,props);for(var i=2;i component."),toAdd="";for(var k in arg)arg[k]&&k&&(toAdd&&(toAdd+=" "),toAdd+=k);}break}default:toAdd=arg;}toAdd&&(cls&&(cls+=" "),cls+=toAdd);}}return cls};function merge(registered,css2,className){var registeredStyles=[],rawClassName=getRegisteredStyles(registered,registeredStyles,className);return registeredStyles.length<2?className:rawClassName+css2(registeredStyles)}var Insertion3=function(_ref){var cache=_ref.cache,serializedArr=_ref.serializedArr;return useInsertionEffectAlwaysWithSyncFallback(function(){for(var i=0;i96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function(tag,options,isReal){var shouldForwardProp;if(options){var optionsShouldForwardProp=options.shouldForwardProp;shouldForwardProp=tag.__emotion_forwardProp&&optionsShouldForwardProp?function(propName){return tag.__emotion_forwardProp(propName)&&optionsShouldForwardProp(propName)}:optionsShouldForwardProp;}return typeof shouldForwardProp!="function"&&isReal&&(shouldForwardProp=tag.__emotion_forwardProp),shouldForwardProp},ILLEGAL_ESCAPE_SEQUENCE_ERROR2=`You have illegal escape sequence in your template literal, most likely inside content's property value. -Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". -You can read more about this here: -https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Insertion5=function(_ref){var cache=_ref.cache,serialized=_ref.serialized,isStringTag=_ref.isStringTag;return registerStyles(cache,serialized,isStringTag),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(cache,serialized,isStringTag)}),null},createStyled=function createStyled2(tag,options){if(tag===void 0)throw new Error(`You are trying to create a styled element with an undefined component. -You may have forgotten to import it.`);var isReal=tag.__emotion_real===tag,baseTag=isReal&&tag.__emotion_base||tag,identifierName,targetClassName;options!==void 0&&(identifierName=options.label,targetClassName=options.target);var shouldForwardProp=composeShouldForwardProps(tag,options,isReal),defaultShouldForwardProp=shouldForwardProp||getDefaultShouldForwardProp(baseTag),shouldUseAs=!defaultShouldForwardProp("as");return function(){var args=arguments,styles=isReal&&tag.__emotion_styles!==void 0?tag.__emotion_styles.slice(0):[];if(identifierName!==void 0&&styles.push("label:"+identifierName+";"),args[0]==null||args[0].raw===void 0)styles.push.apply(styles,args);else {args[0][0]===void 0&&console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR2),styles.push(args[0][0]);for(var len=args.length,i=1;i({body:{fontFamily:typography2.fonts.base,fontSize:typography2.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:typography2.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:typography2.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:typography2.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:typography2.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}})),createGlobal=memoizerific_default()(1)(({color:color2,background:background2,typography:typography2})=>{let resetStyles=createReset({typography:typography2});return {...resetStyles,body:{...resetStyles.body,color:color2.defaultText,background:background2.app,overflow:"hidden"},hr:{...resetStyles.hr,borderTop:`1px solid ${color2.border}`}}});var easing={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},rotate360=keyframes` - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -`,glow=keyframes` - 0%, 100% { opacity: 1; } - 50% { opacity: .4; } -`,dist_float=keyframes` - 0% { transform: translateY(1px); } - 25% { transform: translateY(0px); } - 50% { transform: translateY(-3px); } - 100% { transform: translateY(1px); } -`,jiggle=keyframes` - 0%, 100% { transform:translate3d(0,0,0); } - 12.5%, 62.5% { transform:translate3d(-4px,0,0); } - 37.5%, 87.5% { transform: translate3d(4px,0,0); } -`,inlineGlow=css` - animation: ${glow} 1.5s ease-in-out infinite; - color: transparent; - cursor: progress; -`,hoverable=css` - transition: all 150ms ease-out; - transform: translate3d(0, 0, 0); - - &:hover { - transform: translate3d(0, -2px, 0); - } - - &:active { - transform: translate3d(0, 0, 0); - } -`,animation={rotate360,glow,float: dist_float,jiggle,inlineGlow,hoverable};var chromeDark={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},chromeLight={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},convertColors=colors=>Object.entries(colors).reduce((acc,[k,v])=>({...acc,[k]:(0,chunk_ZGA76URP/* mkColor */.sd)(v)}),{}),create2=({colors,mono})=>{let colorsObjs=convertColors(colors);return {token:{fontFamily:mono,WebkitFontSmoothing:"antialiased","&.tag":colorsObjs.red3,"&.comment":{...colorsObjs.green1,fontStyle:"italic"},"&.prolog":{...colorsObjs.green1,fontStyle:"italic"},"&.doctype":{...colorsObjs.green1,fontStyle:"italic"},"&.cdata":{...colorsObjs.green1,fontStyle:"italic"},"&.string":colorsObjs.red1,"&.url":colorsObjs.cyan1,"&.symbol":colorsObjs.cyan1,"&.number":colorsObjs.cyan1,"&.boolean":colorsObjs.cyan1,"&.variable":colorsObjs.cyan1,"&.constant":colorsObjs.cyan1,"&.inserted":colorsObjs.cyan1,"&.atrule":colorsObjs.blue1,"&.keyword":colorsObjs.blue1,"&.attr-value":colorsObjs.blue1,"&.punctuation":colorsObjs.gray1,"&.operator":colorsObjs.gray1,"&.function":colorsObjs.gray1,"&.deleted":colorsObjs.red2,"&.important":{fontWeight:"bold"},"&.bold":{fontWeight:"bold"},"&.italic":{fontStyle:"italic"},"&.class-name":colorsObjs.cyan2,"&.selector":colorsObjs.red3,"&.attr-name":colorsObjs.red4,"&.property":colorsObjs.red4,"&.regex":colorsObjs.red4,"&.entity":colorsObjs.red4,"&.directive.tag .tag":{background:"#ffff00",...colorsObjs.gray1}},"language-json .token.boolean":colorsObjs.blue1,"language-json .token.number":colorsObjs.blue1,"language-json .token.property":colorsObjs.cyan2,namespace:{opacity:.7}}};var lightSyntaxColors={green1:"#008000",red1:"#A31515",red2:"#9a050f",red3:"#800000",red4:"#ff0000",gray1:"#393A34",cyan1:"#36acaa",cyan2:"#2B91AF",blue1:"#0000ff",blue2:"#00009f"},darkSyntaxColors={green1:"#7C7C7C",red1:"#92C379",red2:"#9a050f",red3:"#A8FF60",red4:"#96CBFE",gray1:"#EDEDED",cyan1:"#C6C5FE",cyan2:"#FFFFB6",blue1:"#B474DD",blue2:"#00009f"},createColors=vars=>({primary:vars.colorPrimary,secondary:vars.colorSecondary,tertiary:chunk_ZGA76URP/* color */.yW.tertiary,ancillary:chunk_ZGA76URP/* color */.yW.ancillary,orange:chunk_ZGA76URP/* color */.yW.orange,gold:chunk_ZGA76URP/* color */.yW.gold,green:chunk_ZGA76URP/* color */.yW.green,seafoam:chunk_ZGA76URP/* color */.yW.seafoam,purple:chunk_ZGA76URP/* color */.yW.purple,ultraviolet:chunk_ZGA76URP/* color */.yW.ultraviolet,lightest:chunk_ZGA76URP/* color */.yW.lightest,lighter:chunk_ZGA76URP/* color */.yW.lighter,light:chunk_ZGA76URP/* color */.yW.light,mediumlight:chunk_ZGA76URP/* color */.yW.mediumlight,medium:chunk_ZGA76URP/* color */.yW.medium,mediumdark:chunk_ZGA76URP/* color */.yW.mediumdark,dark:chunk_ZGA76URP/* color */.yW.dark,darker:chunk_ZGA76URP/* color */.yW.darker,darkest:chunk_ZGA76URP/* color */.yW.darkest,border:chunk_ZGA76URP/* color */.yW.border,positive:chunk_ZGA76URP/* color */.yW.positive,negative:chunk_ZGA76URP/* color */.yW.negative,warning:chunk_ZGA76URP/* color */.yW.warning,critical:chunk_ZGA76URP/* color */.yW.critical,defaultText:vars.textColor||chunk_ZGA76URP/* color */.yW.darkest,inverseText:vars.textInverseColor||chunk_ZGA76URP/* color */.yW.lightest,positiveText:chunk_ZGA76URP/* color */.yW.positiveText,negativeText:chunk_ZGA76URP/* color */.yW.negativeText,warningText:chunk_ZGA76URP/* color */.yW.warningText}),convert=(inherit=chunk_ZGA76URP/* themes */.Zj[(0,chunk_ZGA76URP/* getPreferredColorScheme */.Oy)()])=>{let{base,colorPrimary,colorSecondary,appBg,appContentBg,appPreviewBg,appBorderColor,appBorderRadius,fontBase,fontCode,textColor,textInverseColor,barTextColor,barHoverColor,barSelectedColor,barBg,buttonBg,buttonBorder,booleanBg,booleanSelectedBg,inputBg,inputBorder,inputTextColor,inputBorderRadius,brandTitle,brandUrl,brandImage,brandTarget,gridCellSize,...rest}=inherit;return {...rest,base,color:createColors(inherit),background:{app:appBg,bar:barBg,content:appContentBg,preview:appPreviewBg,gridCellSize:gridCellSize||chunk_ZGA76URP/* background */.Tp.gridCellSize,hoverable:chunk_ZGA76URP/* background */.Tp.hoverable,positive:chunk_ZGA76URP/* background */.Tp.positive,negative:chunk_ZGA76URP/* background */.Tp.negative,warning:chunk_ZGA76URP/* background */.Tp.warning,critical:chunk_ZGA76URP/* background */.Tp.critical},typography:{fonts:{base:fontBase,mono:fontCode},weight:chunk_ZGA76URP/* typography */.Il.weight,size:chunk_ZGA76URP/* typography */.Il.size},animation,easing,input:{background:inputBg,border:inputBorder,borderRadius:inputBorderRadius,color:inputTextColor},button:{background:buttonBg||inputBg,border:buttonBorder||inputBorder},boolean:{background:booleanBg||inputBorder,selectedBackground:booleanSelectedBg||inputBg},layoutMargin:10,appBorderColor,appBorderRadius,barTextColor,barHoverColor:barHoverColor||colorSecondary,barSelectedColor:barSelectedColor||colorSecondary,barBg,brand:{title:brandTitle,url:brandUrl,image:brandImage||(brandTitle?null:void 0),target:brandTarget},code:create2({colors:base==="light"?lightSyntaxColors:darkSyntaxColors,mono:fontCode}),addonActionsTheme:{...base==="light"?chromeLight:chromeDark,BASE_FONT_FAMILY:fontCode,BASE_FONT_SIZE:chunk_ZGA76URP/* typography */.Il.size.s2-1,BASE_LINE_HEIGHT:"18px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:textColor,ARROW_COLOR:(0,chunk_ZGA76URP/* curriedOpacify$1 */.xH)(.2,appBorderColor),ARROW_MARGIN_RIGHT:4,ARROW_FONT_SIZE:8,TREENODE_FONT_FAMILY:fontCode,TREENODE_FONT_SIZE:chunk_ZGA76URP/* typography */.Il.size.s2-1,TREENODE_LINE_HEIGHT:"18px",TREENODE_PADDING_LEFT:12}}};var isEmpty=o=>Object.keys(o).length===0,isObject=o=>o!=null&&typeof o=="object",hasOwnProperty2=(o,...args)=>Object.prototype.hasOwnProperty.call(o,...args);var makeObjectWithoutPrototype=()=>Object.create(null);var deletedDiff=(lhs,rhs)=>lhs===rhs||!isObject(lhs)||!isObject(rhs)?{}:Object.keys(lhs).reduce((acc,key)=>{if(hasOwnProperty2(rhs,key)){let difference=deletedDiff(lhs[key],rhs[key]);return isObject(difference)&&isEmpty(difference)||(acc[key]=difference),acc}return acc[key]=void 0,acc},makeObjectWithoutPrototype()),deleted_default=deletedDiff;function dedent(templ){for(var values=[],_i=1;_i{if(!input)return convert(chunk_ZGA76URP/* light_default */.RA);let missing=deleted_default(chunk_ZGA76URP/* light_default */.RA,input);return Object.keys(missing).length&&external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn(dedent` - Your theme is missing properties, you should update your theme! - - theme-data missing: - `,missing),convert(input)};var ignoreSsrWarning="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */"; - - - - -/***/ }), - -/***/ "../../../node_modules/lodash/_arrayEach.js": -/***/ ((module) => { - -/** - * A specialized version of `_.forEach` for arrays without support for - * iteratee shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array} Returns `array`. - */ -function arrayEach(array, iteratee) { - var index = -1, - length = array == null ? 0 : array.length; - - while (++index < length) { - if (iteratee(array[index], index, array) === false) { - break; - } - } - return array; -} - -module.exports = arrayEach; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_arrayIncludes.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseIndexOf = __webpack_require__("../../../node_modules/lodash/_baseIndexOf.js"); - -/** - * A specialized version of `_.includes` for arrays without support for - * specifying an index to search from. - * - * @private - * @param {Array} [array] The array to inspect. - * @param {*} target The value to search for. - * @returns {boolean} Returns `true` if `target` is found, else `false`. - */ -function arrayIncludes(array, value) { - var length = array == null ? 0 : array.length; - return !!length && baseIndexOf(array, value, 0) > -1; -} - -module.exports = arrayIncludes; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_arrayIncludesWith.js": -/***/ ((module) => { - -/** - * This function is like `arrayIncludes` except that it accepts a comparator. - * - * @private - * @param {Array} [array] The array to inspect. - * @param {*} target The value to search for. - * @param {Function} comparator The comparator invoked per element. - * @returns {boolean} Returns `true` if `target` is found, else `false`. - */ -function arrayIncludesWith(array, value, comparator) { - var index = -1, - length = array == null ? 0 : array.length; - - while (++index < length) { - if (comparator(value, array[index])) { - return true; - } - } - return false; -} - -module.exports = arrayIncludesWith; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_assignValue.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseAssignValue = __webpack_require__("../../../node_modules/lodash/_baseAssignValue.js"), - eq = __webpack_require__("../../../node_modules/lodash/eq.js"); - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * Assigns `value` to `key` of `object` if the existing value is not equivalent - * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * for equality comparisons. - * - * @private - * @param {Object} object The object to modify. - * @param {string} key The key of the property to assign. - * @param {*} value The value to assign. - */ -function assignValue(object, key, value) { - var objValue = object[key]; - if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || - (value === undefined && !(key in object))) { - baseAssignValue(object, key, value); - } -} - -module.exports = assignValue; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseAssign.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var copyObject = __webpack_require__("../../../node_modules/lodash/_copyObject.js"), - keys = __webpack_require__("../../../node_modules/lodash/keys.js"); - -/** - * The base implementation of `_.assign` without support for multiple sources - * or `customizer` functions. - * - * @private - * @param {Object} object The destination object. - * @param {Object} source The source object. - * @returns {Object} Returns `object`. - */ -function baseAssign(object, source) { - return object && copyObject(source, keys(source), object); -} - -module.exports = baseAssign; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseAssignIn.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var copyObject = __webpack_require__("../../../node_modules/lodash/_copyObject.js"), - keysIn = __webpack_require__("../../../node_modules/lodash/keysIn.js"); - -/** - * The base implementation of `_.assignIn` without support for multiple sources - * or `customizer` functions. - * - * @private - * @param {Object} object The destination object. - * @param {Object} source The source object. - * @returns {Object} Returns `object`. - */ -function baseAssignIn(object, source) { - return object && copyObject(source, keysIn(source), object); -} - -module.exports = baseAssignIn; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseClone.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var Stack = __webpack_require__("../../../node_modules/lodash/_Stack.js"), - arrayEach = __webpack_require__("../../../node_modules/lodash/_arrayEach.js"), - assignValue = __webpack_require__("../../../node_modules/lodash/_assignValue.js"), - baseAssign = __webpack_require__("../../../node_modules/lodash/_baseAssign.js"), - baseAssignIn = __webpack_require__("../../../node_modules/lodash/_baseAssignIn.js"), - cloneBuffer = __webpack_require__("../../../node_modules/lodash/_cloneBuffer.js"), - copyArray = __webpack_require__("../../../node_modules/lodash/_copyArray.js"), - copySymbols = __webpack_require__("../../../node_modules/lodash/_copySymbols.js"), - copySymbolsIn = __webpack_require__("../../../node_modules/lodash/_copySymbolsIn.js"), - getAllKeys = __webpack_require__("../../../node_modules/lodash/_getAllKeys.js"), - getAllKeysIn = __webpack_require__("../../../node_modules/lodash/_getAllKeysIn.js"), - getTag = __webpack_require__("../../../node_modules/lodash/_getTag.js"), - initCloneArray = __webpack_require__("../../../node_modules/lodash/_initCloneArray.js"), - initCloneByTag = __webpack_require__("../../../node_modules/lodash/_initCloneByTag.js"), - initCloneObject = __webpack_require__("../../../node_modules/lodash/_initCloneObject.js"), - isArray = __webpack_require__("../../../node_modules/lodash/isArray.js"), - isBuffer = __webpack_require__("../../../node_modules/lodash/isBuffer.js"), - isMap = __webpack_require__("../../../node_modules/lodash/isMap.js"), - isObject = __webpack_require__("../../../node_modules/lodash/isObject.js"), - isSet = __webpack_require__("../../../node_modules/lodash/isSet.js"), - keys = __webpack_require__("../../../node_modules/lodash/keys.js"), - keysIn = __webpack_require__("../../../node_modules/lodash/keysIn.js"); - -/** Used to compose bitmasks for cloning. */ -var CLONE_DEEP_FLAG = 1, - CLONE_FLAT_FLAG = 2, - CLONE_SYMBOLS_FLAG = 4; - -/** `Object#toString` result references. */ -var argsTag = '[object Arguments]', - arrayTag = '[object Array]', - boolTag = '[object Boolean]', - dateTag = '[object Date]', - errorTag = '[object Error]', - funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - mapTag = '[object Map]', - numberTag = '[object Number]', - objectTag = '[object Object]', - regexpTag = '[object RegExp]', - setTag = '[object Set]', - stringTag = '[object String]', - symbolTag = '[object Symbol]', - weakMapTag = '[object WeakMap]'; - -var arrayBufferTag = '[object ArrayBuffer]', - dataViewTag = '[object DataView]', - float32Tag = '[object Float32Array]', - float64Tag = '[object Float64Array]', - int8Tag = '[object Int8Array]', - int16Tag = '[object Int16Array]', - int32Tag = '[object Int32Array]', - uint8Tag = '[object Uint8Array]', - uint8ClampedTag = '[object Uint8ClampedArray]', - uint16Tag = '[object Uint16Array]', - uint32Tag = '[object Uint32Array]'; - -/** Used to identify `toStringTag` values supported by `_.clone`. */ -var cloneableTags = {}; -cloneableTags[argsTag] = cloneableTags[arrayTag] = -cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = -cloneableTags[boolTag] = cloneableTags[dateTag] = -cloneableTags[float32Tag] = cloneableTags[float64Tag] = -cloneableTags[int8Tag] = cloneableTags[int16Tag] = -cloneableTags[int32Tag] = cloneableTags[mapTag] = -cloneableTags[numberTag] = cloneableTags[objectTag] = -cloneableTags[regexpTag] = cloneableTags[setTag] = -cloneableTags[stringTag] = cloneableTags[symbolTag] = -cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = -cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; -cloneableTags[errorTag] = cloneableTags[funcTag] = -cloneableTags[weakMapTag] = false; - -/** - * The base implementation of `_.clone` and `_.cloneDeep` which tracks - * traversed objects. - * - * @private - * @param {*} value The value to clone. - * @param {boolean} bitmask The bitmask flags. - * 1 - Deep clone - * 2 - Flatten inherited properties - * 4 - Clone symbols - * @param {Function} [customizer] The function to customize cloning. - * @param {string} [key] The key of `value`. - * @param {Object} [object] The parent object of `value`. - * @param {Object} [stack] Tracks traversed objects and their clone counterparts. - * @returns {*} Returns the cloned value. - */ -function baseClone(value, bitmask, customizer, key, object, stack) { - var result, - isDeep = bitmask & CLONE_DEEP_FLAG, - isFlat = bitmask & CLONE_FLAT_FLAG, - isFull = bitmask & CLONE_SYMBOLS_FLAG; - - if (customizer) { - result = object ? customizer(value, key, object, stack) : customizer(value); - } - if (result !== undefined) { - return result; - } - if (!isObject(value)) { - return value; - } - var isArr = isArray(value); - if (isArr) { - result = initCloneArray(value); - if (!isDeep) { - return copyArray(value, result); - } - } else { - var tag = getTag(value), - isFunc = tag == funcTag || tag == genTag; - - if (isBuffer(value)) { - return cloneBuffer(value, isDeep); - } - if (tag == objectTag || tag == argsTag || (isFunc && !object)) { - result = (isFlat || isFunc) ? {} : initCloneObject(value); - if (!isDeep) { - return isFlat - ? copySymbolsIn(value, baseAssignIn(result, value)) - : copySymbols(value, baseAssign(result, value)); - } - } else { - if (!cloneableTags[tag]) { - return object ? value : {}; - } - result = initCloneByTag(value, tag, isDeep); - } - } - // Check for circular references and return its corresponding clone. - stack || (stack = new Stack); - var stacked = stack.get(value); - if (stacked) { - return stacked; - } - stack.set(value, result); - - if (isSet(value)) { - value.forEach(function(subValue) { - result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack)); - }); - } else if (isMap(value)) { - value.forEach(function(subValue, key) { - result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack)); - }); - } - - var keysFunc = isFull - ? (isFlat ? getAllKeysIn : getAllKeys) - : (isFlat ? keysIn : keys); - - var props = isArr ? undefined : keysFunc(value); - arrayEach(props || value, function(subValue, key) { - if (props) { - key = subValue; - subValue = value[key]; - } - // Recursively populate clone (susceptible to call stack limits). - assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack)); - }); - return result; -} - -module.exports = baseClone; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseCreate.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isObject = __webpack_require__("../../../node_modules/lodash/isObject.js"); - -/** Built-in value references. */ -var objectCreate = Object.create; - -/** - * The base implementation of `_.create` without support for assigning - * properties to the created object. - * - * @private - * @param {Object} proto The object to inherit from. - * @returns {Object} Returns the new object. - */ -var baseCreate = (function() { - function object() {} - return function(proto) { - if (!isObject(proto)) { - return {}; - } - if (objectCreate) { - return objectCreate(proto); - } - object.prototype = proto; - var result = new object; - object.prototype = undefined; - return result; - }; -}()); - -module.exports = baseCreate; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseFindIndex.js": -/***/ ((module) => { - -/** - * The base implementation of `_.findIndex` and `_.findLastIndex` without - * support for iteratee shorthands. - * - * @private - * @param {Array} array The array to inspect. - * @param {Function} predicate The function invoked per iteration. - * @param {number} fromIndex The index to search from. - * @param {boolean} [fromRight] Specify iterating from right to left. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function baseFindIndex(array, predicate, fromIndex, fromRight) { - var length = array.length, - index = fromIndex + (fromRight ? 1 : -1); - - while ((fromRight ? index-- : ++index < length)) { - if (predicate(array[index], index, array)) { - return index; - } - } - return -1; -} - -module.exports = baseFindIndex; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseIndexOf.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseFindIndex = __webpack_require__("../../../node_modules/lodash/_baseFindIndex.js"), - baseIsNaN = __webpack_require__("../../../node_modules/lodash/_baseIsNaN.js"), - strictIndexOf = __webpack_require__("../../../node_modules/lodash/_strictIndexOf.js"); - -/** - * The base implementation of `_.indexOf` without `fromIndex` bounds checks. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} value The value to search for. - * @param {number} fromIndex The index to search from. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function baseIndexOf(array, value, fromIndex) { - return value === value - ? strictIndexOf(array, value, fromIndex) - : baseFindIndex(array, baseIsNaN, fromIndex); -} - -module.exports = baseIndexOf; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseIsMap.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getTag = __webpack_require__("../../../node_modules/lodash/_getTag.js"), - isObjectLike = __webpack_require__("../../../node_modules/lodash/isObjectLike.js"); - -/** `Object#toString` result references. */ -var mapTag = '[object Map]'; - -/** - * The base implementation of `_.isMap` without Node.js optimizations. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a map, else `false`. - */ -function baseIsMap(value) { - return isObjectLike(value) && getTag(value) == mapTag; -} - -module.exports = baseIsMap; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseIsNaN.js": -/***/ ((module) => { - -/** - * The base implementation of `_.isNaN` without support for number objects. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. - */ -function baseIsNaN(value) { - return value !== value; -} - -module.exports = baseIsNaN; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseIsSet.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getTag = __webpack_require__("../../../node_modules/lodash/_getTag.js"), - isObjectLike = __webpack_require__("../../../node_modules/lodash/isObjectLike.js"); - -/** `Object#toString` result references. */ -var setTag = '[object Set]'; - -/** - * The base implementation of `_.isSet` without Node.js optimizations. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a set, else `false`. - */ -function baseIsSet(value) { - return isObjectLike(value) && getTag(value) == setTag; -} - -module.exports = baseIsSet; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseKeysIn.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isObject = __webpack_require__("../../../node_modules/lodash/isObject.js"), - isPrototype = __webpack_require__("../../../node_modules/lodash/_isPrototype.js"), - nativeKeysIn = __webpack_require__("../../../node_modules/lodash/_nativeKeysIn.js"); - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names. - */ -function baseKeysIn(object) { - if (!isObject(object)) { - return nativeKeysIn(object); - } - var isProto = isPrototype(object), - result = []; - - for (var key in object) { - if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) { - result.push(key); - } - } - return result; -} - -module.exports = baseKeysIn; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_basePickBy.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseGet = __webpack_require__("../../../node_modules/lodash/_baseGet.js"), - baseSet = __webpack_require__("../../../node_modules/lodash/_baseSet.js"), - castPath = __webpack_require__("../../../node_modules/lodash/_castPath.js"); - -/** - * The base implementation of `_.pickBy` without support for iteratee shorthands. - * - * @private - * @param {Object} object The source object. - * @param {string[]} paths The property paths to pick. - * @param {Function} predicate The function invoked per property. - * @returns {Object} Returns the new object. - */ -function basePickBy(object, paths, predicate) { - var index = -1, - length = paths.length, - result = {}; - - while (++index < length) { - var path = paths[index], - value = baseGet(object, path); - - if (predicate(value, path)) { - baseSet(result, castPath(path, object), value); - } - } - return result; -} - -module.exports = basePickBy; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseSet.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var assignValue = __webpack_require__("../../../node_modules/lodash/_assignValue.js"), - castPath = __webpack_require__("../../../node_modules/lodash/_castPath.js"), - isIndex = __webpack_require__("../../../node_modules/lodash/_isIndex.js"), - isObject = __webpack_require__("../../../node_modules/lodash/isObject.js"), - toKey = __webpack_require__("../../../node_modules/lodash/_toKey.js"); - -/** - * The base implementation of `_.set`. - * - * @private - * @param {Object} object The object to modify. - * @param {Array|string} path The path of the property to set. - * @param {*} value The value to set. - * @param {Function} [customizer] The function to customize path creation. - * @returns {Object} Returns `object`. - */ -function baseSet(object, path, value, customizer) { - if (!isObject(object)) { - return object; - } - path = castPath(path, object); - - var index = -1, - length = path.length, - lastIndex = length - 1, - nested = object; - - while (nested != null && ++index < length) { - var key = toKey(path[index]), - newValue = value; - - if (key === '__proto__' || key === 'constructor' || key === 'prototype') { - return object; - } - - if (index != lastIndex) { - var objValue = nested[key]; - newValue = customizer ? customizer(objValue, key, nested) : undefined; - if (newValue === undefined) { - newValue = isObject(objValue) - ? objValue - : (isIndex(path[index + 1]) ? [] : {}); - } - } - assignValue(nested, key, newValue); - nested = nested[key]; - } - return object; -} - -module.exports = baseSet; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_baseUniq.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var SetCache = __webpack_require__("../../../node_modules/lodash/_SetCache.js"), - arrayIncludes = __webpack_require__("../../../node_modules/lodash/_arrayIncludes.js"), - arrayIncludesWith = __webpack_require__("../../../node_modules/lodash/_arrayIncludesWith.js"), - cacheHas = __webpack_require__("../../../node_modules/lodash/_cacheHas.js"), - createSet = __webpack_require__("../../../node_modules/lodash/_createSet.js"), - setToArray = __webpack_require__("../../../node_modules/lodash/_setToArray.js"); - -/** Used as the size to enable large array optimizations. */ -var LARGE_ARRAY_SIZE = 200; - -/** - * The base implementation of `_.uniqBy` without support for iteratee shorthands. - * - * @private - * @param {Array} array The array to inspect. - * @param {Function} [iteratee] The iteratee invoked per element. - * @param {Function} [comparator] The comparator invoked per element. - * @returns {Array} Returns the new duplicate free array. - */ -function baseUniq(array, iteratee, comparator) { - var index = -1, - includes = arrayIncludes, - length = array.length, - isCommon = true, - result = [], - seen = result; - - if (comparator) { - isCommon = false; - includes = arrayIncludesWith; - } - else if (length >= LARGE_ARRAY_SIZE) { - var set = iteratee ? null : createSet(array); - if (set) { - return setToArray(set); - } - isCommon = false; - includes = cacheHas; - seen = new SetCache; - } - else { - seen = iteratee ? [] : result; - } - outer: - while (++index < length) { - var value = array[index], - computed = iteratee ? iteratee(value) : value; - - value = (comparator || value !== 0) ? value : 0; - if (isCommon && computed === computed) { - var seenIndex = seen.length; - while (seenIndex--) { - if (seen[seenIndex] === computed) { - continue outer; - } - } - if (iteratee) { - seen.push(computed); - } - result.push(value); - } - else if (!includes(seen, computed, comparator)) { - if (seen !== result) { - seen.push(computed); - } - result.push(value); - } - } - return result; -} - -module.exports = baseUniq; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_cloneArrayBuffer.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var Uint8Array = __webpack_require__("../../../node_modules/lodash/_Uint8Array.js"); - -/** - * Creates a clone of `arrayBuffer`. - * - * @private - * @param {ArrayBuffer} arrayBuffer The array buffer to clone. - * @returns {ArrayBuffer} Returns the cloned array buffer. - */ -function cloneArrayBuffer(arrayBuffer) { - var result = new arrayBuffer.constructor(arrayBuffer.byteLength); - new Uint8Array(result).set(new Uint8Array(arrayBuffer)); - return result; -} - -module.exports = cloneArrayBuffer; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_cloneBuffer.js": -/***/ ((module, exports, __webpack_require__) => { - -/* module decorator */ module = __webpack_require__.nmd(module); -var root = __webpack_require__("../../../node_modules/lodash/_root.js"); - -/** Detect free variable `exports`. */ -var freeExports = true && exports && !exports.nodeType && exports; - -/** Detect free variable `module`. */ -var freeModule = freeExports && "object" == 'object' && module && !module.nodeType && module; - -/** Detect the popular CommonJS extension `module.exports`. */ -var moduleExports = freeModule && freeModule.exports === freeExports; - -/** Built-in value references. */ -var Buffer = moduleExports ? root.Buffer : undefined, - allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined; - -/** - * Creates a clone of `buffer`. - * - * @private - * @param {Buffer} buffer The buffer to clone. - * @param {boolean} [isDeep] Specify a deep clone. - * @returns {Buffer} Returns the cloned buffer. - */ -function cloneBuffer(buffer, isDeep) { - if (isDeep) { - return buffer.slice(); - } - var length = buffer.length, - result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); - - buffer.copy(result); - return result; -} - -module.exports = cloneBuffer; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_cloneDataView.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var cloneArrayBuffer = __webpack_require__("../../../node_modules/lodash/_cloneArrayBuffer.js"); - -/** - * Creates a clone of `dataView`. - * - * @private - * @param {Object} dataView The data view to clone. - * @param {boolean} [isDeep] Specify a deep clone. - * @returns {Object} Returns the cloned data view. - */ -function cloneDataView(dataView, isDeep) { - var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; - return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); -} - -module.exports = cloneDataView; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_cloneRegExp.js": -/***/ ((module) => { - -/** Used to match `RegExp` flags from their coerced string values. */ -var reFlags = /\w*$/; - -/** - * Creates a clone of `regexp`. - * - * @private - * @param {Object} regexp The regexp to clone. - * @returns {Object} Returns the cloned regexp. - */ -function cloneRegExp(regexp) { - var result = new regexp.constructor(regexp.source, reFlags.exec(regexp)); - result.lastIndex = regexp.lastIndex; - return result; -} - -module.exports = cloneRegExp; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_cloneSymbol.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var Symbol = __webpack_require__("../../../node_modules/lodash/_Symbol.js"); - -/** Used to convert symbols to primitives and strings. */ -var symbolProto = Symbol ? Symbol.prototype : undefined, - symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; - -/** - * Creates a clone of the `symbol` object. - * - * @private - * @param {Object} symbol The symbol object to clone. - * @returns {Object} Returns the cloned symbol object. - */ -function cloneSymbol(symbol) { - return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {}; -} - -module.exports = cloneSymbol; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_cloneTypedArray.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var cloneArrayBuffer = __webpack_require__("../../../node_modules/lodash/_cloneArrayBuffer.js"); - -/** - * Creates a clone of `typedArray`. - * - * @private - * @param {Object} typedArray The typed array to clone. - * @param {boolean} [isDeep] Specify a deep clone. - * @returns {Object} Returns the cloned typed array. - */ -function cloneTypedArray(typedArray, isDeep) { - var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; - return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); -} - -module.exports = cloneTypedArray; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_copyArray.js": -/***/ ((module) => { - -/** - * Copies the values of `source` to `array`. - * - * @private - * @param {Array} source The array to copy values from. - * @param {Array} [array=[]] The array to copy values to. - * @returns {Array} Returns `array`. - */ -function copyArray(source, array) { - var index = -1, - length = source.length; - - array || (array = Array(length)); - while (++index < length) { - array[index] = source[index]; - } - return array; -} - -module.exports = copyArray; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_copyObject.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var assignValue = __webpack_require__("../../../node_modules/lodash/_assignValue.js"), - baseAssignValue = __webpack_require__("../../../node_modules/lodash/_baseAssignValue.js"); - -/** - * Copies properties of `source` to `object`. - * - * @private - * @param {Object} source The object to copy properties from. - * @param {Array} props The property identifiers to copy. - * @param {Object} [object={}] The object to copy properties to. - * @param {Function} [customizer] The function to customize copied values. - * @returns {Object} Returns `object`. - */ -function copyObject(source, props, object, customizer) { - var isNew = !object; - object || (object = {}); - - var index = -1, - length = props.length; - - while (++index < length) { - var key = props[index]; - - var newValue = customizer - ? customizer(object[key], source[key], key, object, source) - : undefined; - - if (newValue === undefined) { - newValue = source[key]; - } - if (isNew) { - baseAssignValue(object, key, newValue); - } else { - assignValue(object, key, newValue); - } - } - return object; -} - -module.exports = copyObject; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_copySymbols.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var copyObject = __webpack_require__("../../../node_modules/lodash/_copyObject.js"), - getSymbols = __webpack_require__("../../../node_modules/lodash/_getSymbols.js"); - -/** - * Copies own symbols of `source` to `object`. - * - * @private - * @param {Object} source The object to copy symbols from. - * @param {Object} [object={}] The object to copy symbols to. - * @returns {Object} Returns `object`. - */ -function copySymbols(source, object) { - return copyObject(source, getSymbols(source), object); -} - -module.exports = copySymbols; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_copySymbolsIn.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var copyObject = __webpack_require__("../../../node_modules/lodash/_copyObject.js"), - getSymbolsIn = __webpack_require__("../../../node_modules/lodash/_getSymbolsIn.js"); - -/** - * Copies own and inherited symbols of `source` to `object`. - * - * @private - * @param {Object} source The object to copy symbols from. - * @param {Object} [object={}] The object to copy symbols to. - * @returns {Object} Returns `object`. - */ -function copySymbolsIn(source, object) { - return copyObject(source, getSymbolsIn(source), object); -} - -module.exports = copySymbolsIn; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_createSet.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var Set = __webpack_require__("../../../node_modules/lodash/_Set.js"), - noop = __webpack_require__("../../../node_modules/lodash/noop.js"), - setToArray = __webpack_require__("../../../node_modules/lodash/_setToArray.js"); - -/** Used as references for various `Number` constants. */ -var INFINITY = 1 / 0; - -/** - * Creates a set object of `values`. - * - * @private - * @param {Array} values The values to add to the set. - * @returns {Object} Returns the new set. - */ -var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) { - return new Set(values); -}; - -module.exports = createSet; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_getAllKeysIn.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseGetAllKeys = __webpack_require__("../../../node_modules/lodash/_baseGetAllKeys.js"), - getSymbolsIn = __webpack_require__("../../../node_modules/lodash/_getSymbolsIn.js"), - keysIn = __webpack_require__("../../../node_modules/lodash/keysIn.js"); - -/** - * Creates an array of own and inherited enumerable property names and - * symbols of `object`. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names and symbols. - */ -function getAllKeysIn(object) { - return baseGetAllKeys(object, keysIn, getSymbolsIn); -} - -module.exports = getAllKeysIn; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_getPrototype.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var overArg = __webpack_require__("../../../node_modules/lodash/_overArg.js"); - -/** Built-in value references. */ -var getPrototype = overArg(Object.getPrototypeOf, Object); - -module.exports = getPrototype; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_getSymbolsIn.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var arrayPush = __webpack_require__("../../../node_modules/lodash/_arrayPush.js"), - getPrototype = __webpack_require__("../../../node_modules/lodash/_getPrototype.js"), - getSymbols = __webpack_require__("../../../node_modules/lodash/_getSymbols.js"), - stubArray = __webpack_require__("../../../node_modules/lodash/stubArray.js"); - -/* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeGetSymbols = Object.getOwnPropertySymbols; - -/** - * Creates an array of the own and inherited enumerable symbols of `object`. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of symbols. - */ -var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { - var result = []; - while (object) { - arrayPush(result, getSymbols(object)); - object = getPrototype(object); - } - return result; -}; - -module.exports = getSymbolsIn; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_initCloneArray.js": -/***/ ((module) => { - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * Initializes an array clone. - * - * @private - * @param {Array} array The array to clone. - * @returns {Array} Returns the initialized clone. - */ -function initCloneArray(array) { - var length = array.length, - result = new array.constructor(length); - - // Add properties assigned by `RegExp#exec`. - if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) { - result.index = array.index; - result.input = array.input; - } - return result; -} - -module.exports = initCloneArray; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_initCloneByTag.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var cloneArrayBuffer = __webpack_require__("../../../node_modules/lodash/_cloneArrayBuffer.js"), - cloneDataView = __webpack_require__("../../../node_modules/lodash/_cloneDataView.js"), - cloneRegExp = __webpack_require__("../../../node_modules/lodash/_cloneRegExp.js"), - cloneSymbol = __webpack_require__("../../../node_modules/lodash/_cloneSymbol.js"), - cloneTypedArray = __webpack_require__("../../../node_modules/lodash/_cloneTypedArray.js"); - -/** `Object#toString` result references. */ -var boolTag = '[object Boolean]', - dateTag = '[object Date]', - mapTag = '[object Map]', - numberTag = '[object Number]', - regexpTag = '[object RegExp]', - setTag = '[object Set]', - stringTag = '[object String]', - symbolTag = '[object Symbol]'; - -var arrayBufferTag = '[object ArrayBuffer]', - dataViewTag = '[object DataView]', - float32Tag = '[object Float32Array]', - float64Tag = '[object Float64Array]', - int8Tag = '[object Int8Array]', - int16Tag = '[object Int16Array]', - int32Tag = '[object Int32Array]', - uint8Tag = '[object Uint8Array]', - uint8ClampedTag = '[object Uint8ClampedArray]', - uint16Tag = '[object Uint16Array]', - uint32Tag = '[object Uint32Array]'; - -/** - * Initializes an object clone based on its `toStringTag`. - * - * **Note:** This function only supports cloning values with tags of - * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`. - * - * @private - * @param {Object} object The object to clone. - * @param {string} tag The `toStringTag` of the object to clone. - * @param {boolean} [isDeep] Specify a deep clone. - * @returns {Object} Returns the initialized clone. - */ -function initCloneByTag(object, tag, isDeep) { - var Ctor = object.constructor; - switch (tag) { - case arrayBufferTag: - return cloneArrayBuffer(object); - - case boolTag: - case dateTag: - return new Ctor(+object); - - case dataViewTag: - return cloneDataView(object, isDeep); - - case float32Tag: case float64Tag: - case int8Tag: case int16Tag: case int32Tag: - case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag: - return cloneTypedArray(object, isDeep); - - case mapTag: - return new Ctor; - - case numberTag: - case stringTag: - return new Ctor(object); - - case regexpTag: - return cloneRegExp(object); - - case setTag: - return new Ctor; - - case symbolTag: - return cloneSymbol(object); - } -} - -module.exports = initCloneByTag; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_initCloneObject.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseCreate = __webpack_require__("../../../node_modules/lodash/_baseCreate.js"), - getPrototype = __webpack_require__("../../../node_modules/lodash/_getPrototype.js"), - isPrototype = __webpack_require__("../../../node_modules/lodash/_isPrototype.js"); - -/** - * Initializes an object clone. - * - * @private - * @param {Object} object The object to clone. - * @returns {Object} Returns the initialized clone. - */ -function initCloneObject(object) { - return (typeof object.constructor == 'function' && !isPrototype(object)) - ? baseCreate(getPrototype(object)) - : {}; -} - -module.exports = initCloneObject; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_nativeKeysIn.js": -/***/ ((module) => { - -/** - * This function is like - * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) - * except that it includes inherited enumerable properties. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names. - */ -function nativeKeysIn(object) { - var result = []; - if (object != null) { - for (var key in Object(object)) { - result.push(key); - } - } - return result; -} - -module.exports = nativeKeysIn; - - -/***/ }), - -/***/ "../../../node_modules/lodash/_strictIndexOf.js": -/***/ ((module) => { - -/** - * A specialized version of `_.indexOf` which performs strict equality - * comparisons of values, i.e. `===`. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} value The value to search for. - * @param {number} fromIndex The index to search from. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function strictIndexOf(array, value, fromIndex) { - var index = fromIndex - 1, - length = array.length; - - while (++index < length) { - if (array[index] === value) { - return index; - } - } - return -1; -} - -module.exports = strictIndexOf; - - -/***/ }), - -/***/ "../../../node_modules/lodash/cloneDeep.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseClone = __webpack_require__("../../../node_modules/lodash/_baseClone.js"); - -/** Used to compose bitmasks for cloning. */ -var CLONE_DEEP_FLAG = 1, - CLONE_SYMBOLS_FLAG = 4; - -/** - * This method is like `_.clone` except that it recursively clones `value`. - * - * @static - * @memberOf _ - * @since 1.0.0 - * @category Lang - * @param {*} value The value to recursively clone. - * @returns {*} Returns the deep cloned value. - * @see _.clone - * @example - * - * var objects = [{ 'a': 1 }, { 'b': 2 }]; - * - * var deep = _.cloneDeep(objects); - * console.log(deep[0] === objects[0]); - * // => false - */ -function cloneDeep(value) { - return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG); -} - -module.exports = cloneDeep; - - -/***/ }), - -/***/ "../../../node_modules/lodash/isMap.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseIsMap = __webpack_require__("../../../node_modules/lodash/_baseIsMap.js"), - baseUnary = __webpack_require__("../../../node_modules/lodash/_baseUnary.js"), - nodeUtil = __webpack_require__("../../../node_modules/lodash/_nodeUtil.js"); - -/* Node.js helper references. */ -var nodeIsMap = nodeUtil && nodeUtil.isMap; - -/** - * Checks if `value` is classified as a `Map` object. - * - * @static - * @memberOf _ - * @since 4.3.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a map, else `false`. - * @example - * - * _.isMap(new Map); - * // => true - * - * _.isMap(new WeakMap); - * // => false - */ -var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap; - -module.exports = isMap; - - -/***/ }), - -/***/ "../../../node_modules/lodash/isSet.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseIsSet = __webpack_require__("../../../node_modules/lodash/_baseIsSet.js"), - baseUnary = __webpack_require__("../../../node_modules/lodash/_baseUnary.js"), - nodeUtil = __webpack_require__("../../../node_modules/lodash/_nodeUtil.js"); - -/* Node.js helper references. */ -var nodeIsSet = nodeUtil && nodeUtil.isSet; - -/** - * Checks if `value` is classified as a `Set` object. - * - * @static - * @memberOf _ - * @since 4.3.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a set, else `false`. - * @example - * - * _.isSet(new Set); - * // => true - * - * _.isSet(new WeakSet); - * // => false - */ -var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; - -module.exports = isSet; - - -/***/ }), - -/***/ "../../../node_modules/lodash/keysIn.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var arrayLikeKeys = __webpack_require__("../../../node_modules/lodash/_arrayLikeKeys.js"), - baseKeysIn = __webpack_require__("../../../node_modules/lodash/_baseKeysIn.js"), - isArrayLike = __webpack_require__("../../../node_modules/lodash/isArrayLike.js"); - -/** - * Creates an array of the own and inherited enumerable property names of `object`. - * - * **Note:** Non-object values are coerced to objects. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Object - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names. - * @example - * - * function Foo() { - * this.a = 1; - * this.b = 2; - * } - * - * Foo.prototype.c = 3; - * - * _.keysIn(new Foo); - * // => ['a', 'b', 'c'] (iteration order is not guaranteed) - */ -function keysIn(object) { - return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); -} - -module.exports = keysIn; - - -/***/ }), - -/***/ "../../../node_modules/lodash/noop.js": -/***/ ((module) => { - -/** - * This method returns `undefined`. - * - * @static - * @memberOf _ - * @since 2.3.0 - * @category Util - * @example - * - * _.times(2, _.noop); - * // => [undefined, undefined] - */ -function noop() { - // No operation performed. -} - -module.exports = noop; - - -/***/ }), - -/***/ "../../../node_modules/lodash/pickBy.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var arrayMap = __webpack_require__("../../../node_modules/lodash/_arrayMap.js"), - baseIteratee = __webpack_require__("../../../node_modules/lodash/_baseIteratee.js"), - basePickBy = __webpack_require__("../../../node_modules/lodash/_basePickBy.js"), - getAllKeysIn = __webpack_require__("../../../node_modules/lodash/_getAllKeysIn.js"); - -/** - * Creates an object composed of the `object` properties `predicate` returns - * truthy for. The predicate is invoked with two arguments: (value, key). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Object - * @param {Object} object The source object. - * @param {Function} [predicate=_.identity] The function invoked per property. - * @returns {Object} Returns the new object. - * @example - * - * var object = { 'a': 1, 'b': '2', 'c': 3 }; - * - * _.pickBy(object, _.isNumber); - * // => { 'a': 1, 'c': 3 } - */ -function pickBy(object, predicate) { - if (object == null) { - return {}; - } - var props = arrayMap(getAllKeysIn(object), function(prop) { - return [prop]; - }); - predicate = baseIteratee(predicate); - return basePickBy(object, props, function(value, path) { - return predicate(value, path[0]); - }); -} - -module.exports = pickBy; - - -/***/ }), - -/***/ "../../../node_modules/lodash/uniq.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseUniq = __webpack_require__("../../../node_modules/lodash/_baseUniq.js"); - -/** - * Creates a duplicate-free version of an array, using - * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * for equality comparisons, in which only the first occurrence of each element - * is kept. The order of result values is determined by the order they occur - * in the array. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Array - * @param {Array} array The array to inspect. - * @returns {Array} Returns the new duplicate free array. - * @example - * - * _.uniq([2, 1, 2]); - * // => [2, 1] - */ -function uniq(array) { - return (array && array.length) ? baseUniq(array) : []; -} - -module.exports = uniq; - - -/***/ }), - -/***/ "../../../node_modules/memoizerific/memoizerific.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -(function(f){if(true){module.exports=f()}else { var g; }})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=undefined;if(!u&&__webpack_require__("../../../node_modules/memoizerific sync recursive"))return require(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=undefined;for(var o=0;o= 0) { - this.lastItem = this.list[index]; - return this.list[index].val; - } - - return undefined; -}; - -Similar.prototype.set = function(key, val) { - var index; - - if (this.lastItem && this.isEqual(this.lastItem.key, key)) { - this.lastItem.val = val; - return this; - } - - index = this.indexOf(key); - if (index >= 0) { - this.lastItem = this.list[index]; - this.list[index].val = val; - return this; - } - - this.lastItem = { key: key, val: val }; - this.list.push(this.lastItem); - this.size++; - - return this; -}; - -Similar.prototype.delete = function(key) { - var index; - - if (this.lastItem && this.isEqual(this.lastItem.key, key)) { - this.lastItem = undefined; - } - - index = this.indexOf(key); - if (index >= 0) { - this.size--; - return this.list.splice(index, 1)[0]; - } - - return undefined; -}; - - -// important that has() doesn't use get() in case an existing key has a falsy value, in which case has() would return false -Similar.prototype.has = function(key) { - var index; - - if (this.lastItem && this.isEqual(this.lastItem.key, key)) { - return true; - } - - index = this.indexOf(key); - if (index >= 0) { - this.lastItem = this.list[index]; - return true; - } - - return false; -}; - -Similar.prototype.forEach = function(callback, thisArg) { - var i; - for (i = 0; i < this.size; i++) { - callback.call(thisArg || this, this.list[i].val, this.list[i].key, this); - } -}; - -Similar.prototype.indexOf = function(key) { - var i; - for (i = 0; i < this.size; i++) { - if (this.isEqual(this.list[i].key, key)) { - return i; - } - } - return -1; -}; - -// check if the numbers are equal, or whether they are both precisely NaN (isNaN returns true for all non-numbers) -Similar.prototype.isEqual = function(val1, val2) { - return val1 === val2 || (val1 !== val1 && val2 !== val2); -}; - -module.exports = Similar; -},{}],3:[function(_dereq_,module,exports){ -var MapOrSimilar = _dereq_('map-or-similar'); - -module.exports = function (limit) { - var cache = new MapOrSimilar(undefined === 'true'), - lru = []; - - return function (fn) { - var memoizerific = function () { - var currentCache = cache, - newMap, - fnResult, - argsLengthMinusOne = arguments.length - 1, - lruPath = Array(argsLengthMinusOne + 1), - isMemoized = true, - i; - - if ((memoizerific.numArgs || memoizerific.numArgs === 0) && memoizerific.numArgs !== argsLengthMinusOne + 1) { - throw new Error('Memoizerific functions should always be called with the same number of arguments'); - } - - // loop through each argument to traverse the map tree - for (i = 0; i < argsLengthMinusOne; i++) { - lruPath[i] = { - cacheItem: currentCache, - arg: arguments[i] - }; - - // climb through the hierarchical map tree until the second-last argument has been found, or an argument is missing. - // if all arguments up to the second-last have been found, this will potentially be a cache hit (determined later) - if (currentCache.has(arguments[i])) { - currentCache = currentCache.get(arguments[i]); - continue; - } - - isMemoized = false; - - // make maps until last value - newMap = new MapOrSimilar(undefined === 'true'); - currentCache.set(arguments[i], newMap); - currentCache = newMap; - } - - // we are at the last arg, check if it is really memoized - if (isMemoized) { - if (currentCache.has(arguments[argsLengthMinusOne])) { - fnResult = currentCache.get(arguments[argsLengthMinusOne]); - } - else { - isMemoized = false; - } - } - - if (!isMemoized) { - fnResult = fn.apply(null, arguments); - currentCache.set(arguments[argsLengthMinusOne], fnResult); - } - - if (limit > 0) { - lruPath[argsLengthMinusOne] = { - cacheItem: currentCache, - arg: arguments[argsLengthMinusOne] - }; - - if (isMemoized) { - moveToMostRecentLru(lru, lruPath); - } - else { - lru.push(lruPath); - } - - if (lru.length > limit) { - removeCachedResult(lru.shift()); - } - } - - memoizerific.wasMemoized = isMemoized; - memoizerific.numArgs = argsLengthMinusOne + 1; - - return fnResult; - }; - - memoizerific.limit = limit; - memoizerific.wasMemoized = false; - memoizerific.cache = cache; - memoizerific.lru = lru; - - return memoizerific; - }; -}; - -// move current args to most recent position -function moveToMostRecentLru(lru, lruPath) { - var lruLen = lru.length, - lruPathLen = lruPath.length, - isMatch, - i, ii; - - for (i = 0; i < lruLen; i++) { - isMatch = true; - for (ii = 0; ii < lruPathLen; ii++) { - if (!isEqual(lru[i][ii].arg, lruPath[ii].arg)) { - isMatch = false; - break; - } - } - if (isMatch) { - break; - } - } - - lru.push(lru.splice(i, 1)[0]); -} - -// remove least recently used cache item and all dead branches -function removeCachedResult(removedLru) { - var removedLruLen = removedLru.length, - currentLru = removedLru[removedLruLen - 1], - tmp, - i; - - currentLru.cacheItem.delete(currentLru.arg); - - // walk down the tree removing dead branches (size 0) along the way - for (i = removedLruLen - 2; i >= 0; i--) { - currentLru = removedLru[i]; - tmp = currentLru.cacheItem.get(currentLru.arg); - - if (!tmp || !tmp.size) { - currentLru.cacheItem.delete(currentLru.arg); - } else { - break; - } - } -} - -// check if the numbers are equal, or whether they are both precisely NaN (isNaN returns true for all non-numbers) -function isEqual(val1, val2) { - return val1 === val2 || (val1 !== val1 && val2 !== val2); -} -},{"map-or-similar":1}]},{},[3])(3) -}); - -/***/ }), - -/***/ "../../../node_modules/react-dom/cjs/react-dom.production.min.js": -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -/* - Modernizr 3.0.0pre (Custom Build) | MIT -*/ -var aa=__webpack_require__("../../../node_modules/react/index.js"),ca=__webpack_require__("../../../node_modules/scheduler/index.js");function p(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;cb}return!1}function v(a,b,c,d,e,f,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f;this.removeEmptyString=g}var z={}; -"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){z[a]=new v(a,0,!1,a,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];z[b]=new v(b,1,!1,a[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){z[a]=new v(a,2,!1,a.toLowerCase(),null,!1,!1)}); -["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){z[a]=new v(a,2,!1,a,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){z[a]=new v(a,3,!1,a.toLowerCase(),null,!1,!1)}); -["checked","multiple","muted","selected"].forEach(function(a){z[a]=new v(a,3,!0,a,null,!1,!1)});["capture","download"].forEach(function(a){z[a]=new v(a,4,!1,a,null,!1,!1)});["cols","rows","size","span"].forEach(function(a){z[a]=new v(a,6,!1,a,null,!1,!1)});["rowSpan","start"].forEach(function(a){z[a]=new v(a,5,!1,a.toLowerCase(),null,!1,!1)});var ra=/[\-:]([a-z])/g;function sa(a){return a[1].toUpperCase()} -"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=a.replace(ra, -sa);z[b]=new v(b,1,!1,a,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!1,!1)}); -z.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!0,!0)}); -function ta(a,b,c,d){var e=z.hasOwnProperty(b)?z[b]:null;if(null!==e?0!==e.type:d||!(2h||e[g]!==f[h]){var k="\n"+e[g].replace(" at new "," at ");a.displayName&&k.includes("")&&(k=k.replace("",a.displayName));return k}while(1<=g&&0<=h)}break}}}finally{Na=!1,Error.prepareStackTrace=c}return(a=a?a.displayName||a.name:"")?Ma(a):""} -function Pa(a){switch(a.tag){case 5:return Ma(a.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return a=Oa(a.type,!1),a;case 11:return a=Oa(a.type.render,!1),a;case 1:return a=Oa(a.type,!0),a;default:return""}} -function Qa(a){if(null==a)return null;if("function"===typeof a)return a.displayName||a.name||null;if("string"===typeof a)return a;switch(a){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case Ca:return(a.displayName||"Context")+".Consumer";case Ba:return(a._context.displayName||"Context")+".Provider";case Da:var b=a.render;a=a.displayName;a||(a=b.displayName|| -b.name||"",a=""!==a?"ForwardRef("+a+")":"ForwardRef");return a;case Ga:return b=a.displayName||null,null!==b?b:Qa(a.type)||"Memo";case Ha:b=a._payload;a=a._init;try{return Qa(a(b))}catch(c){}}return null} -function Ra(a){var b=a.type;switch(a.tag){case 24:return"Cache";case 9:return(b.displayName||"Context")+".Consumer";case 10:return(b._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=b.render,a=a.displayName||a.name||"",b.displayName||(""!==a?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return b;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(b);case 8:return b===za?"StrictMode":"Mode";case 22:return"Offscreen"; -case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof b)return b.displayName||b.name||null;if("string"===typeof b)return b}return null}function Sa(a){switch(typeof a){case "boolean":case "number":case "string":case "undefined":return a;case "object":return a;default:return""}} -function Ta(a){var b=a.type;return(a=a.nodeName)&&"input"===a.toLowerCase()&&("checkbox"===b||"radio"===b)} -function Ua(a){var b=Ta(a)?"checked":"value",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,b),d=""+a[b];if(!a.hasOwnProperty(b)&&"undefined"!==typeof c&&"function"===typeof c.get&&"function"===typeof c.set){var e=c.get,f=c.set;Object.defineProperty(a,b,{configurable:!0,get:function(){return e.call(this)},set:function(a){d=""+a;f.call(this,a)}});Object.defineProperty(a,b,{enumerable:c.enumerable});return{getValue:function(){return d},setValue:function(a){d=""+a},stopTracking:function(){a._valueTracker= -null;delete a[b]}}}}function Va(a){a._valueTracker||(a._valueTracker=Ua(a))}function Wa(a){if(!a)return!1;var b=a._valueTracker;if(!b)return!0;var c=b.getValue();var d="";a&&(d=Ta(a)?a.checked?"true":"false":a.value);a=d;return a!==c?(b.setValue(a),!0):!1}function Xa(a){a=a||("undefined"!==typeof document?document:void 0);if("undefined"===typeof a)return null;try{return a.activeElement||a.body}catch(b){return a.body}} -function Ya(a,b){var c=b.checked;return A({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=c?c:a._wrapperState.initialChecked})}function Za(a,b){var c=null==b.defaultValue?"":b.defaultValue,d=null!=b.checked?b.checked:b.defaultChecked;c=Sa(null!=b.value?b.value:c);a._wrapperState={initialChecked:d,initialValue:c,controlled:"checkbox"===b.type||"radio"===b.type?null!=b.checked:null!=b.value}}function ab(a,b){b=b.checked;null!=b&&ta(a,"checked",b,!1)} -function bb(a,b){ab(a,b);var c=Sa(b.value),d=b.type;if(null!=c)if("number"===d){if(0===c&&""===a.value||a.value!=c)a.value=""+c}else a.value!==""+c&&(a.value=""+c);else if("submit"===d||"reset"===d){a.removeAttribute("value");return}b.hasOwnProperty("value")?cb(a,b.type,c):b.hasOwnProperty("defaultValue")&&cb(a,b.type,Sa(b.defaultValue));null==b.checked&&null!=b.defaultChecked&&(a.defaultChecked=!!b.defaultChecked)} -function db(a,b,c){if(b.hasOwnProperty("value")||b.hasOwnProperty("defaultValue")){var d=b.type;if(!("submit"!==d&&"reset"!==d||void 0!==b.value&&null!==b.value))return;b=""+a._wrapperState.initialValue;c||b===a.value||(a.value=b);a.defaultValue=b}c=a.name;""!==c&&(a.name="");a.defaultChecked=!!a._wrapperState.initialChecked;""!==c&&(a.name=c)} -function cb(a,b,c){if("number"!==b||Xa(a.ownerDocument)!==a)null==c?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+c&&(a.defaultValue=""+c)}var eb=Array.isArray; -function fb(a,b,c,d){a=a.options;if(b){b={};for(var e=0;e"+b.valueOf().toString()+"";for(b=mb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}}); -function ob(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b} -var pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0, -zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(a){qb.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);pb[b]=pb[a]})});function rb(a,b,c){return null==b||"boolean"===typeof b||""===b?"":c||"number"!==typeof b||0===b||pb.hasOwnProperty(a)&&pb[a]?(""+b).trim():b+"px"} -function sb(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf("--"),e=rb(c,b[c],d);"float"===c&&(c="cssFloat");d?a.setProperty(c,e):a[c]=e}}var tb=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}); -function ub(a,b){if(b){if(tb[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML))throw Error(p(137,a));if(null!=b.dangerouslySetInnerHTML){if(null!=b.children)throw Error(p(60));if("object"!==typeof b.dangerouslySetInnerHTML||!("__html"in b.dangerouslySetInnerHTML))throw Error(p(61));}if(null!=b.style&&"object"!==typeof b.style)throw Error(p(62));}} -function vb(a,b){if(-1===a.indexOf("-"))return"string"===typeof b.is;switch(a){case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":return!1;default:return!0}}var wb=null;function xb(a){a=a.target||a.srcElement||window;a.correspondingUseElement&&(a=a.correspondingUseElement);return 3===a.nodeType?a.parentNode:a}var yb=null,zb=null,Ab=null; -function Bb(a){if(a=Cb(a)){if("function"!==typeof yb)throw Error(p(280));var b=a.stateNode;b&&(b=Db(b),yb(a.stateNode,a.type,b))}}function Eb(a){zb?Ab?Ab.push(a):Ab=[a]:zb=a}function Fb(){if(zb){var a=zb,b=Ab;Ab=zb=null;Bb(a);if(b)for(a=0;a>>=0;return 0===a?32:31-(pc(a)/qc|0)|0}var rc=64,sc=4194304; -function tc(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824; -default:return a}}function uc(a,b){var c=a.pendingLanes;if(0===c)return 0;var d=0,e=a.suspendedLanes,f=a.pingedLanes,g=c&268435455;if(0!==g){var h=g&~e;0!==h?d=tc(h):(f&=g,0!==f&&(d=tc(f)))}else g=c&~e,0!==g?d=tc(g):0!==f&&(d=tc(f));if(0===d)return 0;if(0!==b&&b!==d&&0===(b&e)&&(e=d&-d,f=b&-b,e>=f||16===e&&0!==(f&4194240)))return b;0!==(d&4)&&(d|=c&16);b=a.entangledLanes;if(0!==b)for(a=a.entanglements,b&=d;0c;c++)b.push(a);return b} -function Ac(a,b,c){a.pendingLanes|=b;536870912!==b&&(a.suspendedLanes=0,a.pingedLanes=0);a=a.eventTimes;b=31-oc(b);a[b]=c}function Bc(a,b){var c=a.pendingLanes&~b;a.pendingLanes=b;a.suspendedLanes=0;a.pingedLanes=0;a.expiredLanes&=b;a.mutableReadLanes&=b;a.entangledLanes&=b;b=a.entanglements;var d=a.eventTimes;for(a=a.expirationTimes;0=be),ee=String.fromCharCode(32),fe=!1; -function ge(a,b){switch(a){case "keyup":return-1!==$d.indexOf(b.keyCode);case "keydown":return 229!==b.keyCode;case "keypress":case "mousedown":case "focusout":return!0;default:return!1}}function he(a){a=a.detail;return"object"===typeof a&&"data"in a?a.data:null}var ie=!1;function je(a,b){switch(a){case "compositionend":return he(b);case "keypress":if(32!==b.which)return null;fe=!0;return ee;case "textInput":return a=b.data,a===ee&&fe?null:a;default:return null}} -function ke(a,b){if(ie)return"compositionend"===a||!ae&&ge(a,b)?(a=nd(),md=ld=kd=null,ie=!1,a):null;switch(a){case "paste":return null;case "keypress":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=Je(c)}}function Le(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?Le(a,b.parentNode):"contains"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1} -function Me(){for(var a=window,b=Xa();b instanceof a.HTMLIFrameElement;){try{var c="string"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=Xa(a.document)}return b}function Ne(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&("input"===b&&("text"===a.type||"search"===a.type||"tel"===a.type||"url"===a.type||"password"===a.type)||"textarea"===b||"true"===a.contentEditable)} -function Oe(a){var b=Me(),c=a.focusedElem,d=a.selectionRange;if(b!==c&&c&&c.ownerDocument&&Le(c.ownerDocument.documentElement,c)){if(null!==d&&Ne(c))if(b=d.start,a=d.end,void 0===a&&(a=b),"selectionStart"in c)c.selectionStart=b,c.selectionEnd=Math.min(a,c.value.length);else if(a=(b=c.ownerDocument||document)&&b.defaultView||window,a.getSelection){a=a.getSelection();var e=c.textContent.length,f=Math.min(d.start,e);d=void 0===d.end?f:Math.min(d.end,e);!a.extend&&f>d&&(e=d,d=f,f=e);e=Ke(c,f);var g=Ke(c, -d);e&&g&&(1!==a.rangeCount||a.anchorNode!==e.node||a.anchorOffset!==e.offset||a.focusNode!==g.node||a.focusOffset!==g.offset)&&(b=b.createRange(),b.setStart(e.node,e.offset),a.removeAllRanges(),f>d?(a.addRange(b),a.extend(g.node,g.offset)):(b.setEnd(g.node,g.offset),a.addRange(b)))}b=[];for(a=c;a=a.parentNode;)1===a.nodeType&&b.push({element:a,left:a.scrollLeft,top:a.scrollTop});"function"===typeof c.focus&&c.focus();for(c=0;c=document.documentMode,Qe=null,Re=null,Se=null,Te=!1; -function Ue(a,b,c){var d=c.window===c?c.document:9===c.nodeType?c:c.ownerDocument;Te||null==Qe||Qe!==Xa(d)||(d=Qe,"selectionStart"in d&&Ne(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Se&&Ie(Se,d)||(Se=d,d=oe(Re,"onSelect"),0Tf||(a.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(a,b){Tf++;Sf[Tf]=a.current;a.current=b}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(a,b){var c=a.type.contextTypes;if(!c)return Vf;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e} -function Zf(a){a=a.childContextTypes;return null!==a&&void 0!==a}function $f(){E(Wf);E(H)}function ag(a,b,c){if(H.current!==Vf)throw Error(p(168));G(H,b);G(Wf,c)}function bg(a,b,c){var d=a.stateNode;b=b.childContextTypes;if("function"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in b))throw Error(p(108,Ra(a)||"Unknown",e));return A({},c,d)} -function cg(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Vf;Xf=H.current;G(H,a);G(Wf,Wf.current);return!0}function dg(a,b,c){var d=a.stateNode;if(!d)throw Error(p(169));c?(a=bg(a,b,Xf),d.__reactInternalMemoizedMergedChildContext=a,E(Wf),E(H),G(H,a)):E(Wf);G(Wf,c)}var eg=null,fg=!1,gg=!1;function hg(a){null===eg?eg=[a]:eg.push(a)}function ig(a){fg=!0;hg(a)} -function jg(){if(!gg&&null!==eg){gg=!0;var a=0,b=C;try{var c=eg;for(C=1;a>=g;e-=g;rg=1<<32-oc(b)+e|c<w?(x=u,u=null):x=u.sibling;var n=r(e,u,h[w],k);if(null===n){null===u&&(u=x);break}a&&u&&null===n.alternate&&b(e,u);g=f(n,g,w);null===m?l=n:m.sibling=n;m=n;u=x}if(w===h.length)return c(e,u),I&&tg(e,w),l;if(null===u){for(;ww?(x=m,m=null):x=m.sibling;var t=r(e,m,n.value,k);if(null===t){null===m&&(m=x);break}a&&m&&null===t.alternate&&b(e,m);g=f(t,g,w);null===u?l=t:u.sibling=t;u=t;m=x}if(n.done)return c(e, -m),I&&tg(e,w),l;if(null===m){for(;!n.done;w++,n=h.next())n=q(e,n.value,k),null!==n&&(g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);I&&tg(e,w);return l}for(m=d(e,m);!n.done;w++,n=h.next())n=y(m,e,w,n.value,k),null!==n&&(a&&null!==n.alternate&&m.delete(null===n.key?w:n.key),g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);a&&m.forEach(function(a){return b(e,a)});I&&tg(e,w);return l}function J(a,d,f,h){"object"===typeof f&&null!==f&&f.type===ya&&null===f.key&&(f=f.props.children);if("object"===typeof f&&null!==f){switch(f.$$typeof){case va:a:{for(var k= -f.key,l=d;null!==l;){if(l.key===k){k=f.type;if(k===ya){if(7===l.tag){c(a,l.sibling);d=e(l,f.props.children);d.return=a;a=d;break a}}else if(l.elementType===k||"object"===typeof k&&null!==k&&k.$$typeof===Ha&&uh(k)===l.type){c(a,l.sibling);d=e(l,f.props);d.ref=sh(a,l,f);d.return=a;a=d;break a}c(a,l);break}else b(a,l);l=l.sibling}f.type===ya?(d=Ah(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=yh(f.type,f.key,f.props,null,a.mode,h),h.ref=sh(a,d,f),h.return=a,a=h)}return g(a);case wa:a:{for(l=f.key;null!== -d;){if(d.key===l)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=zh(f,a.mode,h);d.return=a;a=d}return g(a);case Ha:return l=f._init,J(a,d,l(f._payload),h)}if(eb(f))return n(a,d,f,h);if(Ka(f))return t(a,d,f,h);th(a,f)}return"string"===typeof f&&""!==f||"number"===typeof f?(f=""+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d): -(c(a,d),d=xh(f,a.mode,h),d.return=a,a=d),g(a)):c(a,d)}return J}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(a){if(a===Dh)throw Error(p(174));return a}function Ih(a,b){G(Gh,b);G(Fh,a);G(Eh,Dh);a=b.nodeType;switch(a){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:lb(null,"");break;default:a=8===a?b.parentNode:b,b=a.namespaceURI||null,a=a.tagName,b=lb(b,a)}E(Eh);G(Eh,b)}function Jh(){E(Eh);E(Fh);E(Gh)} -function Kh(a){Hh(Gh.current);var b=Hh(Eh.current);var c=lb(b,a.type);b!==c&&(G(Fh,a),G(Eh,c))}function Lh(a){Fh.current===a&&(E(Eh),E(Fh))}var M=Uf(0); -function Mh(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||"$?"===c.data||"$!"===c.data))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.flags&128))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}var Nh=[]; -function Oh(){for(var a=0;ac?c:4;a(!0);var d=Qh.transition;Qh.transition={};try{a(!1),b()}finally{C=c,Qh.transition=d}}function Fi(){return di().memoizedState} -function Gi(a,b,c){var d=lh(a);c={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(b,c);else if(c=Yg(a,b,c,d),null!==c){var e=L();mh(c,a,d,e);Ji(c,b,d)}} -function ri(a,b,c){var d=lh(a),e={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(b,e);else{var f=a.alternate;if(0===a.lanes&&(null===f||0===f.lanes)&&(f=b.lastRenderedReducer,null!==f))try{var g=b.lastRenderedState,h=f(g,c);e.hasEagerState=!0;e.eagerState=h;if(He(h,g)){var k=b.interleaved;null===k?(e.next=e,Xg(b)):(e.next=k.next,k.next=e);b.interleaved=e;return}}catch(l){}finally{}c=Yg(a,b,e,d);null!==c&&(e=L(),mh(c,a,d,e),Ji(c,b,d))}} -function Hi(a){var b=a.alternate;return a===N||null!==b&&b===N}function Ii(a,b){Th=Sh=!0;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b}function Ji(a,b,c){if(0!==(c&4194240)){var d=b.lanes;d&=a.pendingLanes;c|=d;b.lanes=c;Cc(a,c)}} -var ai={readContext:Vg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useInsertionEffect:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useDeferredValue:Q,useTransition:Q,useMutableSource:Q,useSyncExternalStore:Q,useId:Q,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(a,b){ci().memoizedState=[a,void 0===b?null:b];return a},useContext:Vg,useEffect:vi,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return ti(4194308, -4,yi.bind(null,b,a),c)},useLayoutEffect:function(a,b){return ti(4194308,4,a,b)},useInsertionEffect:function(a,b){return ti(4,2,a,b)},useMemo:function(a,b){var c=ci();b=void 0===b?null:b;a=a();c.memoizedState=[a,b];return a},useReducer:function(a,b,c){var d=ci();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b};d.queue=a;a=a.dispatch=Gi.bind(null,N,a);return[d.memoizedState,a]},useRef:function(a){var b= -ci();a={current:a};return b.memoizedState=a},useState:qi,useDebugValue:Ai,useDeferredValue:function(a){return ci().memoizedState=a},useTransition:function(){var a=qi(!1),b=a[0];a=Ei.bind(null,a[1]);ci().memoizedState=a;return[b,a]},useMutableSource:function(){},useSyncExternalStore:function(a,b,c){var d=N,e=ci();if(I){if(void 0===c)throw Error(p(407));c=c()}else{c=b();if(null===R)throw Error(p(349));0!==(Rh&30)||ni(d,b,c)}e.memoizedState=c;var f={value:c,getSnapshot:b};e.queue=f;vi(ki.bind(null,d, -f,a),[a]);d.flags|=2048;li(9,mi.bind(null,d,f,c,b),void 0,null);return c},useId:function(){var a=ci(),b=R.identifierPrefix;if(I){var c=sg;var d=rg;c=(d&~(1<<32-oc(d)-1)).toString(32)+c;b=":"+b+"R"+c;c=Uh++;0\x3c/script>",a=a.removeChild(a.firstChild)): -"string"===typeof d.is?a=g.createElement(c,{is:d.is}):(a=g.createElement(c),"select"===c&&(g=a,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,c);a[Of]=b;a[Pf]=d;Aj(a,b,!1,!1);b.stateNode=a;a:{g=vb(c,d);switch(c){case "dialog":D("cancel",a);D("close",a);e=d;break;case "iframe":case "object":case "embed":D("load",a);e=d;break;case "video":case "audio":for(e=0;eHj&&(b.flags|=128,d=!0,Ej(f,!1),b.lanes=4194304)}else{if(!d)if(a=Mh(g),null!==a){if(b.flags|=128,d=!0,c=a.updateQueue,null!==c&&(b.updateQueue=c,b.flags|=4),Ej(f,!0),null===f.tail&&"hidden"===f.tailMode&&!g.alternate&&!I)return S(b),null}else 2*B()-f.renderingStartTime>Hj&&1073741824!==c&&(b.flags|=128,d=!0,Ej(f,!1),b.lanes=4194304);f.isBackwards?(g.sibling=b.child,b.child=g):(c=f.last,null!==c?c.sibling=g:b.child=g,f.last=g)}if(null!==f.tail)return b=f.tail,f.rendering= -b,f.tail=b.sibling,f.renderingStartTime=B(),b.sibling=null,c=M.current,G(M,d?c&1|2:c&1),b;S(b);return null;case 22:case 23:return Ij(),d=null!==b.memoizedState,null!==a&&null!==a.memoizedState!==d&&(b.flags|=8192),d&&0!==(b.mode&1)?0!==(gj&1073741824)&&(S(b),b.subtreeFlags&6&&(b.flags|=8192)):S(b),null;case 24:return null;case 25:return null}throw Error(p(156,b.tag));} -function Jj(a,b){wg(b);switch(b.tag){case 1:return Zf(b.type)&&$f(),a=b.flags,a&65536?(b.flags=a&-65537|128,b):null;case 3:return Jh(),E(Wf),E(H),Oh(),a=b.flags,0!==(a&65536)&&0===(a&128)?(b.flags=a&-65537|128,b):null;case 5:return Lh(b),null;case 13:E(M);a=b.memoizedState;if(null!==a&&null!==a.dehydrated){if(null===b.alternate)throw Error(p(340));Ig()}a=b.flags;return a&65536?(b.flags=a&-65537|128,b):null;case 19:return E(M),null;case 4:return Jh(),null;case 10:return Rg(b.type._context),null;case 22:case 23:return Ij(), -null;case 24:return null;default:return null}}var Kj=!1,U=!1,Lj="function"===typeof WeakSet?WeakSet:Set,V=null;function Mj(a,b){var c=a.ref;if(null!==c)if("function"===typeof c)try{c(null)}catch(d){W(a,b,d)}else c.current=null}function Nj(a,b,c){try{c()}catch(d){W(a,b,d)}}var Oj=!1; -function Pj(a,b){Cf=dd;a=Me();if(Ne(a)){if("selectionStart"in a)var c={start:a.selectionStart,end:a.selectionEnd};else a:{c=(c=a.ownerDocument)&&c.defaultView||window;var d=c.getSelection&&c.getSelection();if(d&&0!==d.rangeCount){c=d.anchorNode;var e=d.anchorOffset,f=d.focusNode;d=d.focusOffset;try{c.nodeType,f.nodeType}catch(F){c=null;break a}var g=0,h=-1,k=-1,l=0,m=0,q=a,r=null;b:for(;;){for(var y;;){q!==c||0!==e&&3!==q.nodeType||(h=g+e);q!==f||0!==d&&3!==q.nodeType||(k=g+d);3===q.nodeType&&(g+= -q.nodeValue.length);if(null===(y=q.firstChild))break;r=q;q=y}for(;;){if(q===a)break b;r===c&&++l===e&&(h=g);r===f&&++m===d&&(k=g);if(null!==(y=q.nextSibling))break;q=r;r=q.parentNode}q=y}c=-1===h||-1===k?null:{start:h,end:k}}else c=null}c=c||{start:0,end:0}}else c=null;Df={focusedElem:a,selectionRange:c};dd=!1;for(V=b;null!==V;)if(b=V,a=b.child,0!==(b.subtreeFlags&1028)&&null!==a)a.return=b,V=a;else for(;null!==V;){b=V;try{var n=b.alternate;if(0!==(b.flags&1024))switch(b.tag){case 0:case 11:case 15:break; -case 1:if(null!==n){var t=n.memoizedProps,J=n.memoizedState,x=b.stateNode,w=x.getSnapshotBeforeUpdate(b.elementType===b.type?t:Lg(b.type,t),J);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var u=b.stateNode.containerInfo;1===u.nodeType?u.textContent="":9===u.nodeType&&u.documentElement&&u.removeChild(u.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p(163));}}catch(F){W(b,b.return,F)}a=b.sibling;if(null!==a){a.return=b.return;V=a;break}V=b.return}n=Oj;Oj=!1;return n} -function Qj(a,b,c){var d=b.updateQueue;d=null!==d?d.lastEffect:null;if(null!==d){var e=d=d.next;do{if((e.tag&a)===a){var f=e.destroy;e.destroy=void 0;void 0!==f&&Nj(b,c,f)}e=e.next}while(e!==d)}}function Rj(a,b){b=b.updateQueue;b=null!==b?b.lastEffect:null;if(null!==b){var c=b=b.next;do{if((c.tag&a)===a){var d=c.create;c.destroy=d()}c=c.next}while(c!==b)}}function Sj(a){var b=a.ref;if(null!==b){var c=a.stateNode;switch(a.tag){case 5:a=c;break;default:a=c}"function"===typeof b?b(a):b.current=a}} -function Tj(a){var b=a.alternate;null!==b&&(a.alternate=null,Tj(b));a.child=null;a.deletions=null;a.sibling=null;5===a.tag&&(b=a.stateNode,null!==b&&(delete b[Of],delete b[Pf],delete b[of],delete b[Qf],delete b[Rf]));a.stateNode=null;a.return=null;a.dependencies=null;a.memoizedProps=null;a.memoizedState=null;a.pendingProps=null;a.stateNode=null;a.updateQueue=null}function Uj(a){return 5===a.tag||3===a.tag||4===a.tag} -function Vj(a){a:for(;;){for(;null===a.sibling;){if(null===a.return||Uj(a.return))return null;a=a.return}a.sibling.return=a.return;for(a=a.sibling;5!==a.tag&&6!==a.tag&&18!==a.tag;){if(a.flags&2)continue a;if(null===a.child||4===a.tag)continue a;else a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}} -function Wj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?8===c.nodeType?c.parentNode.insertBefore(a,b):c.insertBefore(a,b):(8===c.nodeType?(b=c.parentNode,b.insertBefore(a,c)):(b=c,b.appendChild(a)),c=c._reactRootContainer,null!==c&&void 0!==c||null!==b.onclick||(b.onclick=Bf));else if(4!==d&&(a=a.child,null!==a))for(Wj(a,b,c),a=a.sibling;null!==a;)Wj(a,b,c),a=a.sibling} -function Xj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?c.insertBefore(a,b):c.appendChild(a);else if(4!==d&&(a=a.child,null!==a))for(Xj(a,b,c),a=a.sibling;null!==a;)Xj(a,b,c),a=a.sibling}var X=null,Yj=!1;function Zj(a,b,c){for(c=c.child;null!==c;)ak(a,b,c),c=c.sibling} -function ak(a,b,c){if(lc&&"function"===typeof lc.onCommitFiberUnmount)try{lc.onCommitFiberUnmount(kc,c)}catch(h){}switch(c.tag){case 5:U||Mj(c,b);case 6:var d=X,e=Yj;X=null;Zj(a,b,c);X=d;Yj=e;null!==X&&(Yj?(a=X,c=c.stateNode,8===a.nodeType?a.parentNode.removeChild(c):a.removeChild(c)):X.removeChild(c.stateNode));break;case 18:null!==X&&(Yj?(a=X,c=c.stateNode,8===a.nodeType?Kf(a.parentNode,c):1===a.nodeType&&Kf(a,c),bd(a)):Kf(X,c.stateNode));break;case 4:d=X;e=Yj;X=c.stateNode.containerInfo;Yj=!0; -Zj(a,b,c);X=d;Yj=e;break;case 0:case 11:case 14:case 15:if(!U&&(d=c.updateQueue,null!==d&&(d=d.lastEffect,null!==d))){e=d=d.next;do{var f=e,g=f.destroy;f=f.tag;void 0!==g&&(0!==(f&2)?Nj(c,b,g):0!==(f&4)&&Nj(c,b,g));e=e.next}while(e!==d)}Zj(a,b,c);break;case 1:if(!U&&(Mj(c,b),d=c.stateNode,"function"===typeof d.componentWillUnmount))try{d.props=c.memoizedProps,d.state=c.memoizedState,d.componentWillUnmount()}catch(h){W(c,b,h)}Zj(a,b,c);break;case 21:Zj(a,b,c);break;case 22:c.mode&1?(U=(d=U)||null!== -c.memoizedState,Zj(a,b,c),U=d):Zj(a,b,c);break;default:Zj(a,b,c)}}function bk(a){var b=a.updateQueue;if(null!==b){a.updateQueue=null;var c=a.stateNode;null===c&&(c=a.stateNode=new Lj);b.forEach(function(b){var d=ck.bind(null,a,b);c.has(b)||(c.add(b),b.then(d,d))})}} -function dk(a,b){var c=b.deletions;if(null!==c)for(var d=0;de&&(e=g);d&=~f}d=e;d=B()-d;d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*mk(d/1960))-d;if(10a?16:a;if(null===xk)var d=!1;else{a=xk;xk=null;yk=0;if(0!==(K&6))throw Error(p(331));var e=K;K|=4;for(V=a.current;null!==V;){var f=V,g=f.child;if(0!==(V.flags&16)){var h=f.deletions;if(null!==h){for(var k=0;kB()-gk?Lk(a,0):sk|=c);Ek(a,b)}function Zk(a,b){0===b&&(0===(a.mode&1)?b=1:(b=sc,sc<<=1,0===(sc&130023424)&&(sc=4194304)));var c=L();a=Zg(a,b);null!==a&&(Ac(a,b,c),Ek(a,c))}function vj(a){var b=a.memoizedState,c=0;null!==b&&(c=b.retryLane);Zk(a,c)} -function ck(a,b){var c=0;switch(a.tag){case 13:var d=a.stateNode;var e=a.memoizedState;null!==e&&(c=e.retryLane);break;case 19:d=a.stateNode;break;default:throw Error(p(314));}null!==d&&d.delete(b);Zk(a,c)}var Wk; -Wk=function(a,b,c){if(null!==a)if(a.memoizedProps!==b.pendingProps||Wf.current)Ug=!0;else{if(0===(a.lanes&c)&&0===(b.flags&128))return Ug=!1,zj(a,b,c);Ug=0!==(a.flags&131072)?!0:!1}else Ug=!1,I&&0!==(b.flags&1048576)&&ug(b,ng,b.index);b.lanes=0;switch(b.tag){case 2:var d=b.type;jj(a,b);a=b.pendingProps;var e=Yf(b,H.current);Tg(b,c);e=Xh(null,b,d,a,e,c);var f=bi();b.flags|=1;"object"===typeof e&&null!==e&&"function"===typeof e.render&&void 0===e.$$typeof?(b.tag=1,b.memoizedState=null,b.updateQueue= -null,Zf(d)?(f=!0,cg(b)):f=!1,b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,ah(b),e.updater=nh,b.stateNode=e,e._reactInternals=b,rh(b,d,a,c),b=kj(null,b,d,!0,f,c)):(b.tag=0,I&&f&&vg(b),Yi(null,b,e,c),b=b.child);return b;case 16:d=b.elementType;a:{jj(a,b);a=b.pendingProps;e=d._init;d=e(d._payload);b.type=d;e=b.tag=$k(d);a=Lg(d,a);switch(e){case 0:b=dj(null,b,d,a,c);break a;case 1:b=ij(null,b,d,a,c);break a;case 11:b=Zi(null,b,d,a,c);break a;case 14:b=aj(null,b,d,Lg(d.type,a),c);break a}throw Error(p(306, -d,""));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),dj(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),ij(a,b,d,e,c);case 3:a:{lj(b);if(null===a)throw Error(p(387));d=b.pendingProps;f=b.memoizedState;e=f.element;bh(a,b);gh(b,d,null,c);var g=b.memoizedState;d=g.element;if(f.isDehydrated)if(f={element:d,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},b.updateQueue.baseState= -f,b.memoizedState=f,b.flags&256){e=Ki(Error(p(423)),b);b=mj(a,b,d,c,e);break a}else if(d!==e){e=Ki(Error(p(424)),b);b=mj(a,b,d,c,e);break a}else for(yg=Lf(b.stateNode.containerInfo.firstChild),xg=b,I=!0,zg=null,c=Ch(b,null,d,c),b.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{Ig();if(d===e){b=$i(a,b,c);break a}Yi(a,b,d,c)}b=b.child}return b;case 5:return Kh(b),null===a&&Eg(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,Ef(d,e)?g=null:null!==f&&Ef(d,f)&&(b.flags|=32), -hj(a,b),Yi(a,b,g,c),b.child;case 6:return null===a&&Eg(b),null;case 13:return pj(a,b,c);case 4:return Ih(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Bh(b,null,d,c):Yi(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),Zi(a,b,d,e,c);case 7:return Yi(a,b,b.pendingProps,c),b.child;case 8:return Yi(a,b,b.pendingProps.children,c),b.child;case 12:return Yi(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;f=b.memoizedProps; -g=e.value;G(Mg,d._currentValue);d._currentValue=g;if(null!==f)if(He(f.value,g)){if(f.children===e.children&&!Wf.current){b=$i(a,b,c);break a}}else for(f=b.child,null!==f&&(f.return=b);null!==f;){var h=f.dependencies;if(null!==h){g=f.child;for(var k=h.firstContext;null!==k;){if(k.context===d){if(1===f.tag){k=ch(-1,c&-c);k.tag=2;var l=f.updateQueue;if(null!==l){l=l.shared;var m=l.pending;null===m?k.next=k:(k.next=m.next,m.next=k);l.pending=k}}f.lanes|=c;k=f.alternate;null!==k&&(k.lanes|=c);Sg(f.return, -c,b);h.lanes|=c;break}k=k.next}}else if(10===f.tag)g=f.type===b.type?null:f.child;else if(18===f.tag){g=f.return;if(null===g)throw Error(p(341));g.lanes|=c;h=g.alternate;null!==h&&(h.lanes|=c);Sg(g,c,b);g=f.sibling}else g=f.child;if(null!==g)g.return=f;else for(g=f;null!==g;){if(g===b){g=null;break}f=g.sibling;if(null!==f){f.return=g.return;g=f;break}g=g.return}f=g}Yi(a,b,e.children,c);b=b.child}return b;case 9:return e=b.type,d=b.pendingProps.children,Tg(b,c),e=Vg(e),d=d(e),b.flags|=1,Yi(a,b,d,c), -b.child;case 14:return d=b.type,e=Lg(d,b.pendingProps),e=Lg(d.type,e),aj(a,b,d,e,c);case 15:return cj(a,b,b.type,b.pendingProps,c);case 17:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),jj(a,b),b.tag=1,Zf(d)?(a=!0,cg(b)):a=!1,Tg(b,c),ph(b,d,e),rh(b,d,e,c),kj(null,b,d,!0,a,c);case 19:return yj(a,b,c);case 22:return ej(a,b,c)}throw Error(p(156,b.tag));};function Gk(a,b){return ac(a,b)} -function al(a,b,c,d){this.tag=a;this.key=c;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.ref=null;this.pendingProps=b;this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=d;this.subtreeFlags=this.flags=0;this.deletions=null;this.childLanes=this.lanes=0;this.alternate=null}function Bg(a,b,c,d){return new al(a,b,c,d)}function bj(a){a=a.prototype;return!(!a||!a.isReactComponent)} -function $k(a){if("function"===typeof a)return bj(a)?1:0;if(void 0!==a&&null!==a){a=a.$$typeof;if(a===Da)return 11;if(a===Ga)return 14}return 2} -function wh(a,b){var c=a.alternate;null===c?(c=Bg(a.tag,b,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=b,c.type=a.type,c.flags=0,c.subtreeFlags=0,c.deletions=null);c.flags=a.flags&14680064;c.childLanes=a.childLanes;c.lanes=a.lanes;c.child=a.child;c.memoizedProps=a.memoizedProps;c.memoizedState=a.memoizedState;c.updateQueue=a.updateQueue;b=a.dependencies;c.dependencies=null===b?null:{lanes:b.lanes,firstContext:b.firstContext}; -c.sibling=a.sibling;c.index=a.index;c.ref=a.ref;return c} -function yh(a,b,c,d,e,f){var g=2;d=a;if("function"===typeof a)bj(a)&&(g=1);else if("string"===typeof a)g=5;else a:switch(a){case ya:return Ah(c.children,e,f,b);case za:g=8;e|=8;break;case Aa:return a=Bg(12,c,b,e|2),a.elementType=Aa,a.lanes=f,a;case Ea:return a=Bg(13,c,b,e),a.elementType=Ea,a.lanes=f,a;case Fa:return a=Bg(19,c,b,e),a.elementType=Fa,a.lanes=f,a;case Ia:return qj(c,e,f,b);default:if("object"===typeof a&&null!==a)switch(a.$$typeof){case Ba:g=10;break a;case Ca:g=9;break a;case Da:g=11; -break a;case Ga:g=14;break a;case Ha:g=16;d=null;break a}throw Error(p(130,null==a?a:typeof a,""));}b=Bg(g,c,b,e);b.elementType=a;b.type=d;b.lanes=f;return b}function Ah(a,b,c,d){a=Bg(7,a,d,b);a.lanes=c;return a}function qj(a,b,c,d){a=Bg(22,a,d,b);a.elementType=Ia;a.lanes=c;a.stateNode={isHidden:!1};return a}function xh(a,b,c){a=Bg(6,a,null,b);a.lanes=c;return a} -function zh(a,b,c){b=Bg(4,null!==a.children?a.children:[],a.key,b);b.lanes=c;b.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation};return b} -function bl(a,b,c,d,e){this.tag=b;this.containerInfo=a;this.finishedWork=this.pingCache=this.current=this.pendingChildren=null;this.timeoutHandle=-1;this.callbackNode=this.pendingContext=this.context=null;this.callbackPriority=0;this.eventTimes=zc(0);this.expirationTimes=zc(-1);this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0;this.entanglements=zc(0);this.identifierPrefix=d;this.onRecoverableError=e;this.mutableSourceEagerHydrationData= -null}function cl(a,b,c,d,e,f,g,h,k){a=new bl(a,b,c,h,k);1===b?(b=1,!0===f&&(b|=8)):b=0;f=Bg(3,null,null,b);a.current=f;f.stateNode=a;f.memoizedState={element:d,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null};ah(f);return a}function dl(a,b,c){var d=3 { - -"use strict"; - - -function checkDCE() { - /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ - if ( - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' || - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function' - ) { - return; - } - if (false) {} - try { - // Verify that the code above has been dead code eliminated (DCE'd). - __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE); - } catch (err) { - // DevTools shouldn't crash React, no matter what. - // We should still report in case we break this code. - console.error(err); - } -} - -if (true) { - // DCE check should happen before ReactDOM bundle executes so that - // DevTools can report bad minification during injection. - checkDCE(); - module.exports = __webpack_require__("../../../node_modules/react-dom/cjs/react-dom.production.min.js"); -} else {} - - -/***/ }), - -/***/ "../../../node_modules/react/cjs/react.production.min.js": -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; -/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -var l=Symbol.for("react.element"),n=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z=Symbol.iterator;function A(a){if(null===a||"object"!==typeof a)return null;a=z&&a[z]||a["@@iterator"];return"function"===typeof a?a:null} -var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}E.prototype.isReactComponent={}; -E.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,b,"setState")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}var H=G.prototype=new F; -H.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0}; -function M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=""+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1 { - -"use strict"; - - -if (true) { - module.exports = __webpack_require__("../../../node_modules/react/cjs/react.production.min.js"); -} else {} - - -/***/ }), - -/***/ "../../../node_modules/scheduler/cjs/scheduler.production.min.js": -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; -/** - * @license React - * scheduler.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ -function f(a,b){var c=a.length;a.push(b);a:for(;0>>1,e=a[d];if(0>>1;dg(C,c))ng(x,C)?(a[d]=x,a[n]=c,d=n):(a[d]=C,a[m]=c,d=m);else if(ng(x,c))a[d]=x,a[n]=c,d=n;else break a}}return b} -function g(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}if("object"===typeof performance&&"function"===typeof performance.now){var l=performance;exports.unstable_now=function(){return l.now()}}else{var p=Date,q=p.now();exports.unstable_now=function(){return p.now()-q}}var r=[],t=[],u=1,v=null,y=3,z=!1,A=!1,B=!1,D="function"===typeof setTimeout?setTimeout:null,E="function"===typeof clearTimeout?clearTimeout:null,F="undefined"!==typeof setImmediate?setImmediate:null; -"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function G(a){for(var b=h(t);null!==b;){if(null===b.callback)k(t);else if(b.startTime<=a)k(t),b.sortIndex=b.expirationTime,f(r,b);else break;b=h(t)}}function H(a){B=!1;G(a);if(!A)if(null!==h(r))A=!0,I(J);else{var b=h(t);null!==b&&K(H,b.startTime-a)}} -function J(a,b){A=!1;B&&(B=!1,E(L),L=-1);z=!0;var c=y;try{G(b);for(v=h(r);null!==v&&(!(v.expirationTime>b)||a&&!M());){var d=v.callback;if("function"===typeof d){v.callback=null;y=v.priorityLevel;var e=d(v.expirationTime<=b);b=exports.unstable_now();"function"===typeof e?v.callback=e:v===h(r)&&k(r);G(b)}else k(r);v=h(r)}if(null!==v)var w=!0;else{var m=h(t);null!==m&&K(H,m.startTime-b);w=!1}return w}finally{v=null,y=c,z=!1}}var N=!1,O=null,L=-1,P=5,Q=-1; -function M(){return exports.unstable_now()-Qa||125d?(a.sortIndex=c,f(t,a),null===h(r)&&a===h(t)&&(B?(E(L),L=-1):B=!0,K(H,c-d))):(a.sortIndex=e,f(r,a),A||z||(A=!0,I(J)));return a}; -exports.unstable_shouldYield=M;exports.unstable_wrapCallback=function(a){var b=y;return function(){var c=y;y=b;try{return a.apply(this,arguments)}finally{y=c}}}; - - -/***/ }), - -/***/ "../../../node_modules/scheduler/index.js": -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -if (true) { - module.exports = __webpack_require__("../../../node_modules/scheduler/cjs/scheduler.production.min.js"); -} else {} - - -/***/ }), - -/***/ "../../../node_modules/telejson/dist/chunk-465TF3XA.mjs": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ P$: () => (/* binding */ __commonJS), -/* harmony export */ bc: () => (/* binding */ extractEventHiddenProperties), -/* harmony export */ f1: () => (/* binding */ __toESM) -/* harmony export */ }); -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __commonJS = (cb, mod) => function __require() { - return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); - -// src/dom-event.ts -var eventProperties = [ - "bubbles", - "cancelBubble", - "cancelable", - "composed", - "currentTarget", - "defaultPrevented", - "eventPhase", - "isTrusted", - "returnValue", - "srcElement", - "target", - "timeStamp", - "type" -]; -var customEventSpecificProperties = ["detail"]; -function extractEventHiddenProperties(event) { - const rebuildEvent = eventProperties.filter((value) => event[value] !== void 0).reduce((acc, value) => { - return { ...acc, [value]: event[value] }; - }, {}); - if (event instanceof CustomEvent) { - customEventSpecificProperties.filter((value) => event[value] !== void 0).forEach((value) => { - rebuildEvent[value] = event[value]; - }); - } - return rebuildEvent; -} - - - - -/***/ }), - -/***/ "../../../node_modules/telejson/dist/index.mjs": -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ As: () => (/* binding */ stringify) -/* harmony export */ }); -/* unused harmony exports isJSON, parse, replacer, reviver */ -/* harmony import */ var _chunk_465TF3XA_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/telejson/dist/chunk-465TF3XA.mjs"); -/* harmony import */ var memoizerific__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../../node_modules/memoizerific/memoizerific.js"); -/* harmony import */ var memoizerific__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(memoizerific__WEBPACK_IMPORTED_MODULE_1__); - - -// node_modules/has-symbols/shams.js -var require_shams = (0,_chunk_465TF3XA_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__commonJS */ .P$)({ - "node_modules/has-symbols/shams.js"(exports, module) { - "use strict"; - module.exports = function hasSymbols() { - if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") { - return false; - } - if (typeof Symbol.iterator === "symbol") { - return true; - } - var obj = {}; - var sym = Symbol("test"); - var symObj = Object(sym); - if (typeof sym === "string") { - return false; - } - if (Object.prototype.toString.call(sym) !== "[object Symbol]") { - return false; - } - if (Object.prototype.toString.call(symObj) !== "[object Symbol]") { - return false; - } - var symVal = 42; - obj[sym] = symVal; - for (sym in obj) { - return false; - } - if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) { - return false; - } - if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) { - return false; - } - var syms = Object.getOwnPropertySymbols(obj); - if (syms.length !== 1 || syms[0] !== sym) { - return false; - } - if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { - return false; - } - if (typeof Object.getOwnPropertyDescriptor === "function") { - var descriptor = Object.getOwnPropertyDescriptor(obj, sym); - if (descriptor.value !== symVal || descriptor.enumerable !== true) { - return false; - } - } - return true; - }; - } -}); - -// node_modules/has-symbols/index.js -var require_has_symbols = (0,_chunk_465TF3XA_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__commonJS */ .P$)({ - "node_modules/has-symbols/index.js"(exports, module) { - "use strict"; - var origSymbol = typeof Symbol !== "undefined" && Symbol; - var hasSymbolSham = require_shams(); - module.exports = function hasNativeSymbols() { - if (typeof origSymbol !== "function") { - return false; - } - if (typeof Symbol !== "function") { - return false; - } - if (typeof origSymbol("foo") !== "symbol") { - return false; - } - if (typeof Symbol("bar") !== "symbol") { - return false; - } - return hasSymbolSham(); - }; - } -}); - -// node_modules/function-bind/implementation.js -var require_implementation = (0,_chunk_465TF3XA_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__commonJS */ .P$)({ - "node_modules/function-bind/implementation.js"(exports, module) { - "use strict"; - var ERROR_MESSAGE = "Function.prototype.bind called on incompatible "; - var slice = Array.prototype.slice; - var toStr = Object.prototype.toString; - var funcType = "[object Function]"; - module.exports = function bind(that) { - var target = this; - if (typeof target !== "function" || toStr.call(target) !== funcType) { - throw new TypeError(ERROR_MESSAGE + target); - } - var args2 = slice.call(arguments, 1); - var bound; - var binder = function() { - if (this instanceof bound) { - var result2 = target.apply( - this, - args2.concat(slice.call(arguments)) - ); - if (Object(result2) === result2) { - return result2; - } - return this; - } else { - return target.apply( - that, - args2.concat(slice.call(arguments)) - ); - } - }; - var boundLength = Math.max(0, target.length - args2.length); - var boundArgs = []; - for (var i = 0; i < boundLength; i++) { - boundArgs.push("$" + i); - } - bound = Function("binder", "return function (" + boundArgs.join(",") + "){ return binder.apply(this,arguments); }")(binder); - if (target.prototype) { - var Empty = function Empty2() { - }; - Empty.prototype = target.prototype; - bound.prototype = new Empty(); - Empty.prototype = null; - } - return bound; - }; - } -}); - -// node_modules/function-bind/index.js -var require_function_bind = (0,_chunk_465TF3XA_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__commonJS */ .P$)({ - "node_modules/function-bind/index.js"(exports, module) { - "use strict"; - var implementation = require_implementation(); - module.exports = Function.prototype.bind || implementation; - } -}); - -// node_modules/has/src/index.js -var require_src = (0,_chunk_465TF3XA_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__commonJS */ .P$)({ - "node_modules/has/src/index.js"(exports, module) { - "use strict"; - var bind = require_function_bind(); - module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); - } -}); - -// node_modules/get-intrinsic/index.js -var require_get_intrinsic = (0,_chunk_465TF3XA_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__commonJS */ .P$)({ - "node_modules/get-intrinsic/index.js"(exports, module) { - "use strict"; - var undefined2; - var $SyntaxError = SyntaxError; - var $Function = Function; - var $TypeError = TypeError; - var getEvalledConstructor = function(expressionSyntax) { - try { - return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")(); - } catch (e) { - } - }; - var $gOPD = Object.getOwnPropertyDescriptor; - if ($gOPD) { - try { - $gOPD({}, ""); - } catch (e) { - $gOPD = null; - } - } - var throwTypeError = function() { - throw new $TypeError(); - }; - var ThrowTypeError = $gOPD ? function() { - try { - arguments.callee; - return throwTypeError; - } catch (calleeThrows) { - try { - return $gOPD(arguments, "callee").get; - } catch (gOPDthrows) { - return throwTypeError; - } - } - }() : throwTypeError; - var hasSymbols = require_has_symbols()(); - var getProto = Object.getPrototypeOf || function(x) { - return x.__proto__; - }; - var needsEval = {}; - var TypedArray = typeof Uint8Array === "undefined" ? undefined2 : getProto(Uint8Array); - var INTRINSICS = { - "%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError, - "%Array%": Array, - "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer, - "%ArrayIteratorPrototype%": hasSymbols ? getProto([][Symbol.iterator]()) : undefined2, - "%AsyncFromSyncIteratorPrototype%": undefined2, - "%AsyncFunction%": needsEval, - "%AsyncGenerator%": needsEval, - "%AsyncGeneratorFunction%": needsEval, - "%AsyncIteratorPrototype%": needsEval, - "%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics, - "%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt, - "%Boolean%": Boolean, - "%DataView%": typeof DataView === "undefined" ? undefined2 : DataView, - "%Date%": Date, - "%decodeURI%": decodeURI, - "%decodeURIComponent%": decodeURIComponent, - "%encodeURI%": encodeURI, - "%encodeURIComponent%": encodeURIComponent, - "%Error%": Error, - "%eval%": eval, - "%EvalError%": EvalError, - "%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array, - "%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array, - "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry, - "%Function%": $Function, - "%GeneratorFunction%": needsEval, - "%Int8Array%": typeof Int8Array === "undefined" ? undefined2 : Int8Array, - "%Int16Array%": typeof Int16Array === "undefined" ? undefined2 : Int16Array, - "%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array, - "%isFinite%": isFinite, - "%isNaN%": isNaN, - "%IteratorPrototype%": hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined2, - "%JSON%": typeof JSON === "object" ? JSON : undefined2, - "%Map%": typeof Map === "undefined" ? undefined2 : Map, - "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()), - "%Math%": Math, - "%Number%": Number, - "%Object%": Object, - "%parseFloat%": parseFloat, - "%parseInt%": parseInt, - "%Promise%": typeof Promise === "undefined" ? undefined2 : Promise, - "%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy, - "%RangeError%": RangeError, - "%ReferenceError%": ReferenceError, - "%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect, - "%RegExp%": RegExp, - "%Set%": typeof Set === "undefined" ? undefined2 : Set, - "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()), - "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer, - "%String%": String, - "%StringIteratorPrototype%": hasSymbols ? getProto(""[Symbol.iterator]()) : undefined2, - "%Symbol%": hasSymbols ? Symbol : undefined2, - "%SyntaxError%": $SyntaxError, - "%ThrowTypeError%": ThrowTypeError, - "%TypedArray%": TypedArray, - "%TypeError%": $TypeError, - "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined2 : Uint8Array, - "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray, - "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array, - "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array, - "%URIError%": URIError, - "%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap, - "%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef, - "%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet - }; - var doEval = function doEval2(name2) { - var value2; - if (name2 === "%AsyncFunction%") { - value2 = getEvalledConstructor("async function () {}"); - } else if (name2 === "%GeneratorFunction%") { - value2 = getEvalledConstructor("function* () {}"); - } else if (name2 === "%AsyncGeneratorFunction%") { - value2 = getEvalledConstructor("async function* () {}"); - } else if (name2 === "%AsyncGenerator%") { - var fn = doEval2("%AsyncGeneratorFunction%"); - if (fn) { - value2 = fn.prototype; - } - } else if (name2 === "%AsyncIteratorPrototype%") { - var gen = doEval2("%AsyncGenerator%"); - if (gen) { - value2 = getProto(gen.prototype); - } - } - INTRINSICS[name2] = value2; - return value2; - }; - var LEGACY_ALIASES = { - "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], - "%ArrayPrototype%": ["Array", "prototype"], - "%ArrayProto_entries%": ["Array", "prototype", "entries"], - "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], - "%ArrayProto_keys%": ["Array", "prototype", "keys"], - "%ArrayProto_values%": ["Array", "prototype", "values"], - "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], - "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], - "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], - "%BooleanPrototype%": ["Boolean", "prototype"], - "%DataViewPrototype%": ["DataView", "prototype"], - "%DatePrototype%": ["Date", "prototype"], - "%ErrorPrototype%": ["Error", "prototype"], - "%EvalErrorPrototype%": ["EvalError", "prototype"], - "%Float32ArrayPrototype%": ["Float32Array", "prototype"], - "%Float64ArrayPrototype%": ["Float64Array", "prototype"], - "%FunctionPrototype%": ["Function", "prototype"], - "%Generator%": ["GeneratorFunction", "prototype"], - "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], - "%Int8ArrayPrototype%": ["Int8Array", "prototype"], - "%Int16ArrayPrototype%": ["Int16Array", "prototype"], - "%Int32ArrayPrototype%": ["Int32Array", "prototype"], - "%JSONParse%": ["JSON", "parse"], - "%JSONStringify%": ["JSON", "stringify"], - "%MapPrototype%": ["Map", "prototype"], - "%NumberPrototype%": ["Number", "prototype"], - "%ObjectPrototype%": ["Object", "prototype"], - "%ObjProto_toString%": ["Object", "prototype", "toString"], - "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], - "%PromisePrototype%": ["Promise", "prototype"], - "%PromiseProto_then%": ["Promise", "prototype", "then"], - "%Promise_all%": ["Promise", "all"], - "%Promise_reject%": ["Promise", "reject"], - "%Promise_resolve%": ["Promise", "resolve"], - "%RangeErrorPrototype%": ["RangeError", "prototype"], - "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], - "%RegExpPrototype%": ["RegExp", "prototype"], - "%SetPrototype%": ["Set", "prototype"], - "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], - "%StringPrototype%": ["String", "prototype"], - "%SymbolPrototype%": ["Symbol", "prototype"], - "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], - "%TypedArrayPrototype%": ["TypedArray", "prototype"], - "%TypeErrorPrototype%": ["TypeError", "prototype"], - "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], - "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], - "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], - "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], - "%URIErrorPrototype%": ["URIError", "prototype"], - "%WeakMapPrototype%": ["WeakMap", "prototype"], - "%WeakSetPrototype%": ["WeakSet", "prototype"] - }; - var bind = require_function_bind(); - var hasOwn = require_src(); - var $concat = bind.call(Function.call, Array.prototype.concat); - var $spliceApply = bind.call(Function.apply, Array.prototype.splice); - var $replace = bind.call(Function.call, String.prototype.replace); - var $strSlice = bind.call(Function.call, String.prototype.slice); - var $exec = bind.call(Function.call, RegExp.prototype.exec); - var rePropName2 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g; - var reEscapeChar2 = /\\(\\)?/g; - var stringToPath2 = function stringToPath3(string) { - var first = $strSlice(string, 0, 1); - var last = $strSlice(string, -1); - if (first === "%" && last !== "%") { - throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`"); - } else if (last === "%" && first !== "%") { - throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`"); - } - var result2 = []; - $replace(string, rePropName2, function(match, number, quote, subString) { - result2[result2.length] = quote ? $replace(subString, reEscapeChar2, "$1") : number || match; - }); - return result2; - }; - var getBaseIntrinsic = function getBaseIntrinsic2(name2, allowMissing) { - var intrinsicName = name2; - var alias; - if (hasOwn(LEGACY_ALIASES, intrinsicName)) { - alias = LEGACY_ALIASES[intrinsicName]; - intrinsicName = "%" + alias[0] + "%"; - } - if (hasOwn(INTRINSICS, intrinsicName)) { - var value2 = INTRINSICS[intrinsicName]; - if (value2 === needsEval) { - value2 = doEval(intrinsicName); - } - if (typeof value2 === "undefined" && !allowMissing) { - throw new $TypeError("intrinsic " + name2 + " exists, but is not available. Please file an issue!"); - } - return { - alias, - name: intrinsicName, - value: value2 - }; - } - throw new $SyntaxError("intrinsic " + name2 + " does not exist!"); - }; - module.exports = function GetIntrinsic(name2, allowMissing) { - if (typeof name2 !== "string" || name2.length === 0) { - throw new $TypeError("intrinsic name must be a non-empty string"); - } - if (arguments.length > 1 && typeof allowMissing !== "boolean") { - throw new $TypeError('"allowMissing" argument must be a boolean'); - } - if ($exec(/^%?[^%]*%?$/, name2) === null) { - throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name"); - } - var parts = stringToPath2(name2); - var intrinsicBaseName = parts.length > 0 ? parts[0] : ""; - var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing); - var intrinsicRealName = intrinsic.name; - var value2 = intrinsic.value; - var skipFurtherCaching = false; - var alias = intrinsic.alias; - if (alias) { - intrinsicBaseName = alias[0]; - $spliceApply(parts, $concat([0, 1], alias)); - } - for (var i = 1, isOwn = true; i < parts.length; i += 1) { - var part = parts[i]; - var first = $strSlice(part, 0, 1); - var last = $strSlice(part, -1); - if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) { - throw new $SyntaxError("property names with quotes must have matching quotes"); - } - if (part === "constructor" || !isOwn) { - skipFurtherCaching = true; - } - intrinsicBaseName += "." + part; - intrinsicRealName = "%" + intrinsicBaseName + "%"; - if (hasOwn(INTRINSICS, intrinsicRealName)) { - value2 = INTRINSICS[intrinsicRealName]; - } else if (value2 != null) { - if (!(part in value2)) { - if (!allowMissing) { - throw new $TypeError("base intrinsic for " + name2 + " exists, but the property is not available."); - } - return void 0; - } - if ($gOPD && i + 1 >= parts.length) { - var desc = $gOPD(value2, part); - isOwn = !!desc; - if (isOwn && "get" in desc && !("originalValue" in desc.get)) { - value2 = desc.get; - } else { - value2 = value2[part]; - } - } else { - isOwn = hasOwn(value2, part); - value2 = value2[part]; - } - if (isOwn && !skipFurtherCaching) { - INTRINSICS[intrinsicRealName] = value2; - } - } - } - return value2; - }; - } -}); - -// node_modules/call-bind/index.js -var require_call_bind = (0,_chunk_465TF3XA_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__commonJS */ .P$)({ - "node_modules/call-bind/index.js"(exports, module) { - "use strict"; - var bind = require_function_bind(); - var GetIntrinsic = require_get_intrinsic(); - var $apply = GetIntrinsic("%Function.prototype.apply%"); - var $call = GetIntrinsic("%Function.prototype.call%"); - var $reflectApply = GetIntrinsic("%Reflect.apply%", true) || bind.call($call, $apply); - var $gOPD = GetIntrinsic("%Object.getOwnPropertyDescriptor%", true); - var $defineProperty = GetIntrinsic("%Object.defineProperty%", true); - var $max = GetIntrinsic("%Math.max%"); - if ($defineProperty) { - try { - $defineProperty({}, "a", { value: 1 }); - } catch (e) { - $defineProperty = null; - } - } - module.exports = function callBind(originalFunction) { - var func = $reflectApply(bind, $call, arguments); - if ($gOPD && $defineProperty) { - var desc = $gOPD(func, "length"); - if (desc.configurable) { - $defineProperty( - func, - "length", - { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) } - ); - } - } - return func; - }; - var applyBind = function applyBind2() { - return $reflectApply(bind, $apply, arguments); - }; - if ($defineProperty) { - $defineProperty(module.exports, "apply", { value: applyBind }); - } else { - module.exports.apply = applyBind; - } - } -}); - -// node_modules/call-bind/callBound.js -var require_callBound = (0,_chunk_465TF3XA_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__commonJS */ .P$)({ - "node_modules/call-bind/callBound.js"(exports, module) { - "use strict"; - var GetIntrinsic = require_get_intrinsic(); - var callBind = require_call_bind(); - var $indexOf = callBind(GetIntrinsic("String.prototype.indexOf")); - module.exports = function callBoundIntrinsic(name2, allowMissing) { - var intrinsic = GetIntrinsic(name2, !!allowMissing); - if (typeof intrinsic === "function" && $indexOf(name2, ".prototype.") > -1) { - return callBind(intrinsic); - } - return intrinsic; - }; - } -}); - -// node_modules/has-tostringtag/shams.js -var require_shams2 = (0,_chunk_465TF3XA_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__commonJS */ .P$)({ - "node_modules/has-tostringtag/shams.js"(exports, module) { - "use strict"; - var hasSymbols = require_shams(); - module.exports = function hasToStringTagShams() { - return hasSymbols() && !!Symbol.toStringTag; - }; - } -}); - -// node_modules/is-regex/index.js -var require_is_regex = (0,_chunk_465TF3XA_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__commonJS */ .P$)({ - "node_modules/is-regex/index.js"(exports, module) { - "use strict"; - var callBound = require_callBound(); - var hasToStringTag = require_shams2()(); - var has; - var $exec; - var isRegexMarker; - var badStringifier; - if (hasToStringTag) { - has = callBound("Object.prototype.hasOwnProperty"); - $exec = callBound("RegExp.prototype.exec"); - isRegexMarker = {}; - throwRegexMarker = function() { - throw isRegexMarker; - }; - badStringifier = { - toString: throwRegexMarker, - valueOf: throwRegexMarker - }; - if (typeof Symbol.toPrimitive === "symbol") { - badStringifier[Symbol.toPrimitive] = throwRegexMarker; - } - } - var throwRegexMarker; - var $toString = callBound("Object.prototype.toString"); - var gOPD = Object.getOwnPropertyDescriptor; - var regexClass = "[object RegExp]"; - module.exports = hasToStringTag ? function isRegex(value2) { - if (!value2 || typeof value2 !== "object") { - return false; - } - var descriptor = gOPD(value2, "lastIndex"); - var hasLastIndexDataProperty = descriptor && has(descriptor, "value"); - if (!hasLastIndexDataProperty) { - return false; - } - try { - $exec(value2, badStringifier); - } catch (e) { - return e === isRegexMarker; - } - } : function isRegex(value2) { - if (!value2 || typeof value2 !== "object" && typeof value2 !== "function") { - return false; - } - return $toString(value2) === regexClass; - }; - } -}); - -// node_modules/is-function/index.js -var require_is_function = (0,_chunk_465TF3XA_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__commonJS */ .P$)({ - "node_modules/is-function/index.js"(exports, module) { - module.exports = isFunction3; - var toString2 = Object.prototype.toString; - function isFunction3(fn) { - if (!fn) { - return false; - } - var string = toString2.call(fn); - return string === "[object Function]" || typeof fn === "function" && string !== "[object RegExp]" || typeof window !== "undefined" && (fn === window.setTimeout || fn === window.alert || fn === window.confirm || fn === window.prompt); - } - } -}); - -// node_modules/is-symbol/index.js -var require_is_symbol = (0,_chunk_465TF3XA_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__commonJS */ .P$)({ - "node_modules/is-symbol/index.js"(exports, module) { - "use strict"; - var toStr = Object.prototype.toString; - var hasSymbols = require_has_symbols()(); - if (hasSymbols) { - symToStr = Symbol.prototype.toString; - symStringRegex = /^Symbol\(.*\)$/; - isSymbolObject = function isRealSymbolObject(value2) { - if (typeof value2.valueOf() !== "symbol") { - return false; - } - return symStringRegex.test(symToStr.call(value2)); - }; - module.exports = function isSymbol3(value2) { - if (typeof value2 === "symbol") { - return true; - } - if (toStr.call(value2) !== "[object Symbol]") { - return false; - } - try { - return isSymbolObject(value2); - } catch (e) { - return false; - } - }; - } else { - module.exports = function isSymbol3(value2) { - return false; - }; - } - var symToStr; - var symStringRegex; - var isSymbolObject; - } -}); - -// src/index.ts -var import_is_regex = (0,_chunk_465TF3XA_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__toESM */ .f1)(require_is_regex()); -var import_is_function = (0,_chunk_465TF3XA_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__toESM */ .f1)(require_is_function()); -var import_is_symbol = (0,_chunk_465TF3XA_mjs__WEBPACK_IMPORTED_MODULE_0__/* .__toESM */ .f1)(require_is_symbol()); - -// node_modules/isobject/index.js -function isObject(val) { - return val != null && typeof val === "object" && Array.isArray(val) === false; -} - -// node_modules/lodash-es/_freeGlobal.js -var freeGlobal = typeof __webpack_require__.g == "object" && __webpack_require__.g && __webpack_require__.g.Object === Object && __webpack_require__.g; -var freeGlobal_default = freeGlobal; - -// node_modules/lodash-es/_root.js -var freeSelf = typeof self == "object" && self && self.Object === Object && self; -var root2 = freeGlobal_default || freeSelf || Function("return this")(); -var root_default = root2; - -// node_modules/lodash-es/_Symbol.js -var Symbol2 = root_default.Symbol; -var Symbol_default = Symbol2; - -// node_modules/lodash-es/_getRawTag.js -var objectProto = Object.prototype; -var hasOwnProperty = objectProto.hasOwnProperty; -var nativeObjectToString = objectProto.toString; -var symToStringTag = Symbol_default ? Symbol_default.toStringTag : void 0; -function getRawTag(value2) { - var isOwn = hasOwnProperty.call(value2, symToStringTag), tag = value2[symToStringTag]; - try { - value2[symToStringTag] = void 0; - var unmasked = true; - } catch (e) { - } - var result2 = nativeObjectToString.call(value2); - if (unmasked) { - if (isOwn) { - value2[symToStringTag] = tag; - } else { - delete value2[symToStringTag]; - } - } - return result2; -} -var getRawTag_default = getRawTag; - -// node_modules/lodash-es/_objectToString.js -var objectProto2 = Object.prototype; -var nativeObjectToString2 = objectProto2.toString; -function objectToString(value2) { - return nativeObjectToString2.call(value2); -} -var objectToString_default = objectToString; - -// node_modules/lodash-es/_baseGetTag.js -var nullTag = "[object Null]"; -var undefinedTag = "[object Undefined]"; -var symToStringTag2 = Symbol_default ? Symbol_default.toStringTag : void 0; -function baseGetTag(value2) { - if (value2 == null) { - return value2 === void 0 ? undefinedTag : nullTag; - } - return symToStringTag2 && symToStringTag2 in Object(value2) ? getRawTag_default(value2) : objectToString_default(value2); -} -var baseGetTag_default = baseGetTag; - -// node_modules/lodash-es/isObjectLike.js -function isObjectLike(value2) { - return value2 != null && typeof value2 == "object"; -} -var isObjectLike_default = (/* unused pure expression or super */ null && (isObjectLike)); - -// node_modules/lodash-es/isSymbol.js -var symbolTag = "[object Symbol]"; -function isSymbol(value2) { - return typeof value2 == "symbol" || isObjectLike_default(value2) && baseGetTag_default(value2) == symbolTag; -} -var isSymbol_default = (/* unused pure expression or super */ null && (isSymbol)); - -// node_modules/lodash-es/_arrayMap.js -function arrayMap(array, iteratee) { - var index = -1, length = array == null ? 0 : array.length, result2 = Array(length); - while (++index < length) { - result2[index] = iteratee(array[index], index, array); - } - return result2; -} -var arrayMap_default = (/* unused pure expression or super */ null && (arrayMap)); - -// node_modules/lodash-es/isArray.js -var isArray = Array.isArray; -var isArray_default = (/* unused pure expression or super */ null && (isArray)); - -// node_modules/lodash-es/_baseToString.js -var INFINITY = (/* unused pure expression or super */ null && (1 / 0)); -var symbolProto = Symbol_default ? Symbol_default.prototype : void 0; -var symbolToString = symbolProto ? symbolProto.toString : void 0; -function baseToString(value2) { - if (typeof value2 == "string") { - return value2; - } - if (isArray_default(value2)) { - return arrayMap_default(value2, baseToString) + ""; - } - if (isSymbol_default(value2)) { - return symbolToString ? symbolToString.call(value2) : ""; - } - var result2 = value2 + ""; - return result2 == "0" && 1 / value2 == -INFINITY ? "-0" : result2; -} -var baseToString_default = (/* unused pure expression or super */ null && (baseToString)); - -// node_modules/lodash-es/isObject.js -function isObject2(value2) { - var type = typeof value2; - return value2 != null && (type == "object" || type == "function"); -} -var isObject_default = isObject2; - -// node_modules/lodash-es/isFunction.js -var asyncTag = "[object AsyncFunction]"; -var funcTag = "[object Function]"; -var genTag = "[object GeneratorFunction]"; -var proxyTag = "[object Proxy]"; -function isFunction(value2) { - if (!isObject_default(value2)) { - return false; - } - var tag = baseGetTag_default(value2); - return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; -} -var isFunction_default = isFunction; - -// node_modules/lodash-es/_coreJsData.js -var coreJsData = root_default["__core-js_shared__"]; -var coreJsData_default = coreJsData; - -// node_modules/lodash-es/_isMasked.js -var maskSrcKey = function() { - var uid = /[^.]+$/.exec(coreJsData_default && coreJsData_default.keys && coreJsData_default.keys.IE_PROTO || ""); - return uid ? "Symbol(src)_1." + uid : ""; -}(); -function isMasked(func) { - return !!maskSrcKey && maskSrcKey in func; -} -var isMasked_default = isMasked; - -// node_modules/lodash-es/_toSource.js -var funcProto = Function.prototype; -var funcToString = funcProto.toString; -function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e) { - } - try { - return func + ""; - } catch (e) { - } - } - return ""; -} -var toSource_default = toSource; - -// node_modules/lodash-es/_baseIsNative.js -var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; -var reIsHostCtor = /^\[object .+?Constructor\]$/; -var funcProto2 = Function.prototype; -var objectProto3 = Object.prototype; -var funcToString2 = funcProto2.toString; -var hasOwnProperty2 = objectProto3.hasOwnProperty; -var reIsNative = RegExp( - "^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" -); -function baseIsNative(value2) { - if (!isObject_default(value2) || isMasked_default(value2)) { - return false; - } - var pattern = isFunction_default(value2) ? reIsNative : reIsHostCtor; - return pattern.test(toSource_default(value2)); -} -var baseIsNative_default = baseIsNative; - -// node_modules/lodash-es/_getValue.js -function getValue(object, key2) { - return object == null ? void 0 : object[key2]; -} -var getValue_default = getValue; - -// node_modules/lodash-es/_getNative.js -function getNative(object, key2) { - var value2 = getValue_default(object, key2); - return baseIsNative_default(value2) ? value2 : void 0; -} -var getNative_default = getNative; - -// node_modules/lodash-es/eq.js -function eq(value2, other) { - return value2 === other || value2 !== value2 && other !== other; -} -var eq_default = eq; - -// node_modules/lodash-es/_isKey.js -var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/; -var reIsPlainProp = /^\w*$/; -function isKey(value2, object) { - if (isArray_default(value2)) { - return false; - } - var type = typeof value2; - if (type == "number" || type == "symbol" || type == "boolean" || value2 == null || isSymbol_default(value2)) { - return true; - } - return reIsPlainProp.test(value2) || !reIsDeepProp.test(value2) || object != null && value2 in Object(object); -} -var isKey_default = (/* unused pure expression or super */ null && (isKey)); - -// node_modules/lodash-es/_nativeCreate.js -var nativeCreate = getNative_default(Object, "create"); -var nativeCreate_default = nativeCreate; - -// node_modules/lodash-es/_hashClear.js -function hashClear() { - this.__data__ = nativeCreate_default ? nativeCreate_default(null) : {}; - this.size = 0; -} -var hashClear_default = hashClear; - -// node_modules/lodash-es/_hashDelete.js -function hashDelete(key2) { - var result2 = this.has(key2) && delete this.__data__[key2]; - this.size -= result2 ? 1 : 0; - return result2; -} -var hashDelete_default = hashDelete; - -// node_modules/lodash-es/_hashGet.js -var HASH_UNDEFINED = "__lodash_hash_undefined__"; -var objectProto4 = Object.prototype; -var hasOwnProperty3 = objectProto4.hasOwnProperty; -function hashGet(key2) { - var data = this.__data__; - if (nativeCreate_default) { - var result2 = data[key2]; - return result2 === HASH_UNDEFINED ? void 0 : result2; - } - return hasOwnProperty3.call(data, key2) ? data[key2] : void 0; -} -var hashGet_default = hashGet; - -// node_modules/lodash-es/_hashHas.js -var objectProto5 = Object.prototype; -var hasOwnProperty4 = objectProto5.hasOwnProperty; -function hashHas(key2) { - var data = this.__data__; - return nativeCreate_default ? data[key2] !== void 0 : hasOwnProperty4.call(data, key2); -} -var hashHas_default = hashHas; - -// node_modules/lodash-es/_hashSet.js -var HASH_UNDEFINED2 = "__lodash_hash_undefined__"; -function hashSet(key2, value2) { - var data = this.__data__; - this.size += this.has(key2) ? 0 : 1; - data[key2] = nativeCreate_default && value2 === void 0 ? HASH_UNDEFINED2 : value2; - return this; -} -var hashSet_default = hashSet; - -// node_modules/lodash-es/_Hash.js -function Hash(entries) { - var index = -1, length = entries == null ? 0 : entries.length; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} -Hash.prototype.clear = hashClear_default; -Hash.prototype["delete"] = hashDelete_default; -Hash.prototype.get = hashGet_default; -Hash.prototype.has = hashHas_default; -Hash.prototype.set = hashSet_default; -var Hash_default = Hash; - -// node_modules/lodash-es/_listCacheClear.js -function listCacheClear() { - this.__data__ = []; - this.size = 0; -} -var listCacheClear_default = listCacheClear; - -// node_modules/lodash-es/_assocIndexOf.js -function assocIndexOf(array, key2) { - var length = array.length; - while (length--) { - if (eq_default(array[length][0], key2)) { - return length; - } - } - return -1; -} -var assocIndexOf_default = assocIndexOf; - -// node_modules/lodash-es/_listCacheDelete.js -var arrayProto = Array.prototype; -var splice = arrayProto.splice; -function listCacheDelete(key2) { - var data = this.__data__, index = assocIndexOf_default(data, key2); - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - --this.size; - return true; -} -var listCacheDelete_default = listCacheDelete; - -// node_modules/lodash-es/_listCacheGet.js -function listCacheGet(key2) { - var data = this.__data__, index = assocIndexOf_default(data, key2); - return index < 0 ? void 0 : data[index][1]; -} -var listCacheGet_default = listCacheGet; - -// node_modules/lodash-es/_listCacheHas.js -function listCacheHas(key2) { - return assocIndexOf_default(this.__data__, key2) > -1; -} -var listCacheHas_default = listCacheHas; - -// node_modules/lodash-es/_listCacheSet.js -function listCacheSet(key2, value2) { - var data = this.__data__, index = assocIndexOf_default(data, key2); - if (index < 0) { - ++this.size; - data.push([key2, value2]); - } else { - data[index][1] = value2; - } - return this; -} -var listCacheSet_default = listCacheSet; - -// node_modules/lodash-es/_ListCache.js -function ListCache(entries) { - var index = -1, length = entries == null ? 0 : entries.length; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} -ListCache.prototype.clear = listCacheClear_default; -ListCache.prototype["delete"] = listCacheDelete_default; -ListCache.prototype.get = listCacheGet_default; -ListCache.prototype.has = listCacheHas_default; -ListCache.prototype.set = listCacheSet_default; -var ListCache_default = ListCache; - -// node_modules/lodash-es/_Map.js -var Map2 = getNative_default(root_default, "Map"); -var Map_default = Map2; - -// node_modules/lodash-es/_mapCacheClear.js -function mapCacheClear() { - this.size = 0; - this.__data__ = { - "hash": new Hash_default(), - "map": new (Map_default || ListCache_default)(), - "string": new Hash_default() - }; -} -var mapCacheClear_default = mapCacheClear; - -// node_modules/lodash-es/_isKeyable.js -function isKeyable(value2) { - var type = typeof value2; - return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value2 !== "__proto__" : value2 === null; -} -var isKeyable_default = isKeyable; - -// node_modules/lodash-es/_getMapData.js -function getMapData(map, key2) { - var data = map.__data__; - return isKeyable_default(key2) ? data[typeof key2 == "string" ? "string" : "hash"] : data.map; -} -var getMapData_default = getMapData; - -// node_modules/lodash-es/_mapCacheDelete.js -function mapCacheDelete(key2) { - var result2 = getMapData_default(this, key2)["delete"](key2); - this.size -= result2 ? 1 : 0; - return result2; -} -var mapCacheDelete_default = mapCacheDelete; - -// node_modules/lodash-es/_mapCacheGet.js -function mapCacheGet(key2) { - return getMapData_default(this, key2).get(key2); -} -var mapCacheGet_default = mapCacheGet; - -// node_modules/lodash-es/_mapCacheHas.js -function mapCacheHas(key2) { - return getMapData_default(this, key2).has(key2); -} -var mapCacheHas_default = mapCacheHas; - -// node_modules/lodash-es/_mapCacheSet.js -function mapCacheSet(key2, value2) { - var data = getMapData_default(this, key2), size = data.size; - data.set(key2, value2); - this.size += data.size == size ? 0 : 1; - return this; -} -var mapCacheSet_default = mapCacheSet; - -// node_modules/lodash-es/_MapCache.js -function MapCache(entries) { - var index = -1, length = entries == null ? 0 : entries.length; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} -MapCache.prototype.clear = mapCacheClear_default; -MapCache.prototype["delete"] = mapCacheDelete_default; -MapCache.prototype.get = mapCacheGet_default; -MapCache.prototype.has = mapCacheHas_default; -MapCache.prototype.set = mapCacheSet_default; -var MapCache_default = MapCache; - -// node_modules/lodash-es/memoize.js -var FUNC_ERROR_TEXT = "Expected a function"; -function memoize(func, resolver) { - if (typeof func != "function" || resolver != null && typeof resolver != "function") { - throw new TypeError(FUNC_ERROR_TEXT); - } - var memoized = function() { - var args2 = arguments, key2 = resolver ? resolver.apply(this, args2) : args2[0], cache = memoized.cache; - if (cache.has(key2)) { - return cache.get(key2); - } - var result2 = func.apply(this, args2); - memoized.cache = cache.set(key2, result2) || cache; - return result2; - }; - memoized.cache = new (memoize.Cache || MapCache_default)(); - return memoized; -} -memoize.Cache = MapCache_default; -var memoize_default = memoize; - -// node_modules/lodash-es/_memoizeCapped.js -var MAX_MEMOIZE_SIZE = 500; -function memoizeCapped(func) { - var result2 = memoize_default(func, function(key2) { - if (cache.size === MAX_MEMOIZE_SIZE) { - cache.clear(); - } - return key2; - }); - var cache = result2.cache; - return result2; -} -var memoizeCapped_default = memoizeCapped; - -// node_modules/lodash-es/_stringToPath.js -var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; -var reEscapeChar = /\\(\\)?/g; -var stringToPath = memoizeCapped_default(function(string) { - var result2 = []; - if (string.charCodeAt(0) === 46) { - result2.push(""); - } - string.replace(rePropName, function(match, number, quote, subString) { - result2.push(quote ? subString.replace(reEscapeChar, "$1") : number || match); - }); - return result2; -}); -var stringToPath_default = (/* unused pure expression or super */ null && (stringToPath)); - -// node_modules/lodash-es/toString.js -function toString(value2) { - return value2 == null ? "" : baseToString_default(value2); -} -var toString_default = (/* unused pure expression or super */ null && (toString)); - -// node_modules/lodash-es/_castPath.js -function castPath(value2, object) { - if (isArray_default(value2)) { - return value2; - } - return isKey_default(value2, object) ? [value2] : stringToPath_default(toString_default(value2)); -} -var castPath_default = (/* unused pure expression or super */ null && (castPath)); - -// node_modules/lodash-es/_toKey.js -var INFINITY2 = (/* unused pure expression or super */ null && (1 / 0)); -function toKey(value2) { - if (typeof value2 == "string" || isSymbol_default(value2)) { - return value2; - } - var result2 = value2 + ""; - return result2 == "0" && 1 / value2 == -INFINITY2 ? "-0" : result2; -} -var toKey_default = (/* unused pure expression or super */ null && (toKey)); - -// node_modules/lodash-es/_baseGet.js -function baseGet(object, path) { - path = castPath_default(path, object); - var index = 0, length = path.length; - while (object != null && index < length) { - object = object[toKey_default(path[index++])]; - } - return index && index == length ? object : void 0; -} -var baseGet_default = (/* unused pure expression or super */ null && (baseGet)); - -// node_modules/lodash-es/get.js -function get(object, path, defaultValue) { - var result2 = object == null ? void 0 : baseGet_default(object, path); - return result2 === void 0 ? defaultValue : result2; -} -var get_default = (/* unused pure expression or super */ null && (get)); - -// src/index.ts - -var isObject3 = isObject; -var removeCodeComments = (code) => { - let inQuoteChar = null; - let inBlockComment = false; - let inLineComment = false; - let inRegexLiteral = false; - let newCode = ""; - if (code.indexOf("//") >= 0 || code.indexOf("/*") >= 0) { - for (let i = 0; i < code.length; i += 1) { - if (!inQuoteChar && !inBlockComment && !inLineComment && !inRegexLiteral) { - if (code[i] === '"' || code[i] === "'" || code[i] === "`") { - inQuoteChar = code[i]; - } else if (code[i] === "/" && code[i + 1] === "*") { - inBlockComment = true; - } else if (code[i] === "/" && code[i + 1] === "/") { - inLineComment = true; - } else if (code[i] === "/" && code[i + 1] !== "/") { - inRegexLiteral = true; - } - } else { - if (inQuoteChar && (code[i] === inQuoteChar && code[i - 1] !== "\\" || code[i] === "\n" && inQuoteChar !== "`")) { - inQuoteChar = null; - } - if (inRegexLiteral && (code[i] === "/" && code[i - 1] !== "\\" || code[i] === "\n")) { - inRegexLiteral = false; - } - if (inBlockComment && code[i - 1] === "/" && code[i - 2] === "*") { - inBlockComment = false; - } - if (inLineComment && code[i] === "\n") { - inLineComment = false; - } - } - if (!inBlockComment && !inLineComment) { - newCode += code[i]; - } - } - } else { - newCode = code; - } - return newCode; -}; -var cleanCode = memoizerific__WEBPACK_IMPORTED_MODULE_1___default()(1e4)( - (code) => removeCodeComments(code).replace(/\n\s*/g, "").trim() -); -var convertShorthandMethods = function convertShorthandMethods2(key2, stringified) { - const fnHead = stringified.slice(0, stringified.indexOf("{")); - const fnBody = stringified.slice(stringified.indexOf("{")); - if (fnHead.includes("=>")) { - return stringified; - } - if (fnHead.includes("function")) { - return stringified; - } - let modifiedHead = fnHead; - modifiedHead = modifiedHead.replace(key2, "function"); - return modifiedHead + fnBody; -}; -var dateFormat = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/; -var isJSON = (input) => input.match(/^[\[\{\"\}].*[\]\}\"]$/); -function convertUnconventionalData(data) { - if (!isObject3(data)) { - return data; - } - let result2 = data; - let wasMutated = false; - if (typeof Event !== "undefined" && data instanceof Event) { - result2 = (0,_chunk_465TF3XA_mjs__WEBPACK_IMPORTED_MODULE_0__/* .extractEventHiddenProperties */ .bc)(result2); - wasMutated = true; - } - result2 = Object.keys(result2).reduce((acc, key2) => { - try { - if (result2[key2]) { - result2[key2].toJSON; - } - acc[key2] = result2[key2]; - } catch (err) { - wasMutated = true; - } - return acc; - }, {}); - return wasMutated ? result2 : data; -} -var replacer = function replacer2(options2) { - let objects; - let map; - let stack; - let keys; - return function replace(key2, value2) { - try { - if (key2 === "") { - keys = []; - objects = /* @__PURE__ */ new Map([[value2, "[]"]]); - map = /* @__PURE__ */ new Map(); - stack = []; - return value2; - } - const origin = map.get(this) || this; - while (stack.length && origin !== stack[0]) { - stack.shift(); - keys.pop(); - } - if (typeof value2 === "boolean") { - return value2; - } - if (value2 === void 0) { - if (!options2.allowUndefined) { - return void 0; - } - return "_undefined_"; - } - if (value2 === null) { - return null; - } - if (typeof value2 === "number") { - if (value2 === -Infinity) { - return "_-Infinity_"; - } - if (value2 === Infinity) { - return "_Infinity_"; - } - if (Number.isNaN(value2)) { - return "_NaN_"; - } - return value2; - } - if (typeof value2 === "bigint") { - return `_bigint_${value2.toString()}`; - } - if (typeof value2 === "string") { - if (dateFormat.test(value2)) { - if (!options2.allowDate) { - return void 0; - } - return `_date_${value2}`; - } - return value2; - } - if ((0, import_is_regex.default)(value2)) { - if (!options2.allowRegExp) { - return void 0; - } - return `_regexp_${value2.flags}|${value2.source}`; - } - if ((0, import_is_function.default)(value2)) { - if (!options2.allowFunction) { - return void 0; - } - const { name: name2 } = value2; - const stringified = value2.toString(); - if (!stringified.match( - /(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/ - )) { - return `_function_${name2}|${cleanCode(convertShorthandMethods(key2, stringified))}`; - } - return `_function_${name2}|${(() => { - }).toString()}`; - } - if ((0, import_is_symbol.default)(value2)) { - if (!options2.allowSymbol) { - return void 0; - } - const globalRegistryKey = Symbol.keyFor(value2); - if (globalRegistryKey !== void 0) { - return `_gsymbol_${globalRegistryKey}`; - } - return `_symbol_${value2.toString().slice(7, -1)}`; - } - if (stack.length >= options2.maxDepth) { - if (Array.isArray(value2)) { - return `[Array(${value2.length})]`; - } - return "[Object]"; - } - if (value2 === this) { - return `_duplicate_${JSON.stringify(keys)}`; - } - if (value2 instanceof Error && options2.allowError) { - return { - __isConvertedError__: true, - errorProperties: { - ...value2.cause ? { cause: value2.cause } : {}, - ...value2, - name: value2.name, - message: value2.message, - stack: value2.stack, - "_constructor-name_": value2.constructor.name - } - }; - } - if (value2.constructor && value2.constructor.name && value2.constructor.name !== "Object" && !Array.isArray(value2) && !options2.allowClass) { - return void 0; - } - const found = objects.get(value2); - if (!found) { - const converted = Array.isArray(value2) ? value2 : convertUnconventionalData(value2); - if (value2.constructor && value2.constructor.name && value2.constructor.name !== "Object" && !Array.isArray(value2) && options2.allowClass) { - try { - Object.assign(converted, { "_constructor-name_": value2.constructor.name }); - } catch (e) { - } - } - keys.push(key2); - stack.unshift(converted); - objects.set(value2, JSON.stringify(keys)); - if (value2 !== converted) { - map.set(value2, converted); - } - return converted; - } - return `_duplicate_${found}`; - } catch (e) { - return void 0; - } - }; -}; -var reviver2 = function reviver(options) { - const refs = []; - let root; - return function revive(key, value) { - if (key === "") { - root = value; - refs.forEach(({ target, container, replacement }) => { - const replacementArr = isJSON(replacement) ? JSON.parse(replacement) : replacement.split("."); - if (replacementArr.length === 0) { - container[target] = root; - } else { - container[target] = get_default(root, replacementArr); - } - }); - } - if (key === "_constructor-name_") { - return value; - } - if (isObject3(value) && value.__isConvertedError__) { - const { message, ...properties } = value.errorProperties; - const error = new Error(message); - Object.assign(error, properties); - return error; - } - if (isObject3(value) && value["_constructor-name_"] && options.allowFunction) { - const name2 = value["_constructor-name_"]; - if (name2 !== "Object") { - const Fn = new Function(`return function ${name2.replace(/[^a-zA-Z0-9$_]+/g, "")}(){}`)(); - Object.setPrototypeOf(value, new Fn()); - } - delete value["_constructor-name_"]; - return value; - } - if (typeof value === "string" && value.startsWith("_function_") && options.allowFunction) { - const [, name, source] = value.match(/_function_([^|]*)\|(.*)/) || []; - const sourceSanitized = source.replace(/[(\(\))|\\| |\]|`]*$/, ""); - if (!options.lazyEval) { - return eval(`(${sourceSanitized})`); - } - const result = (...args) => { - const f = eval(`(${sourceSanitized})`); - return f(...args); - }; - Object.defineProperty(result, "toString", { - value: () => sourceSanitized - }); - Object.defineProperty(result, "name", { - value: name - }); - return result; - } - if (typeof value === "string" && value.startsWith("_regexp_") && options.allowRegExp) { - const [, flags, source2] = value.match(/_regexp_([^|]*)\|(.*)/) || []; - return new RegExp(source2, flags); - } - if (typeof value === "string" && value.startsWith("_date_") && options.allowDate) { - return new Date(value.replace("_date_", "")); - } - if (typeof value === "string" && value.startsWith("_duplicate_")) { - refs.push({ target: key, container: this, replacement: value.replace(/^_duplicate_/, "") }); - return null; - } - if (typeof value === "string" && value.startsWith("_symbol_") && options.allowSymbol) { - return Symbol(value.replace("_symbol_", "")); - } - if (typeof value === "string" && value.startsWith("_gsymbol_") && options.allowSymbol) { - return Symbol.for(value.replace("_gsymbol_", "")); - } - if (typeof value === "string" && value === "_-Infinity_") { - return -Infinity; - } - if (typeof value === "string" && value === "_Infinity_") { - return Infinity; - } - if (typeof value === "string" && value === "_NaN_") { - return NaN; - } - if (typeof value === "string" && value.startsWith("_bigint_") && typeof BigInt === "function") { - return BigInt(value.replace("_bigint_", "")); - } - return value; - }; -}; -var defaultOptions = { - maxDepth: 10, - space: void 0, - allowFunction: true, - allowRegExp: true, - allowDate: true, - allowClass: true, - allowError: true, - allowUndefined: true, - allowSymbol: true, - lazyEval: true -}; -var stringify = (data, options2 = {}) => { - const mergedOptions = { ...defaultOptions, ...options2 }; - return JSON.stringify(convertUnconventionalData(data), replacer(mergedOptions), options2.space); -}; -var mutator = () => { - const mutated = /* @__PURE__ */ new Map(); - return function mutateUndefined(value2) { - if (isObject3(value2)) { - Object.entries(value2).forEach(([k, v]) => { - if (v === "_undefined_") { - value2[k] = void 0; - } else if (!mutated.get(v)) { - mutated.set(v, true); - mutateUndefined(v); - } - }); - } - if (Array.isArray(value2)) { - value2.forEach((v, index) => { - if (v === "_undefined_") { - mutated.set(v, true); - value2[index] = void 0; - } else if (!mutated.get(v)) { - mutated.set(v, true); - mutateUndefined(v); - } - }); - } - }; -}; -var parse = (data, options2 = {}) => { - const mergedOptions = { ...defaultOptions, ...options2 }; - const result2 = JSON.parse(data, reviver2(mergedOptions)); - mutator()(result2); - return result2; -}; - -/*! - * isobject - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */ -/** - * @license - * Lodash (Custom Build) - * Build: `lodash modularize exports="es" -o ./` - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ - - -/***/ }), - -/***/ "../../../node_modules/tocbot/src/js/build-html.js": -/***/ ((module) => { - -/* eslint no-var: off */ - -/** - * This file is responsible for building the DOM and updating DOM state. - * - * @author Tim Scanlin - */ - -module.exports = function (options) { - var forEach = [].forEach - var some = [].some - var body = document.body - var tocElement - var currentlyHighlighting = true - var SPACE_CHAR = ' ' - - /** - * Create link and list elements. - * @param {Object} d - * @param {HTMLElement} container - * @return {HTMLElement} - */ - function createEl (d, container) { - var link = container.appendChild(createLink(d)) - if (d.children.length) { - var list = createList(d.isCollapsed) - d.children.forEach(function (child) { - createEl(child, list) - }) - link.appendChild(list) - } - } - - /** - * Render nested heading array data into a given element. - * @param {HTMLElement} parent Optional. If provided updates the {@see tocElement} to match. - * @param {Array} data - * @return {HTMLElement} - */ - function render (parent, data) { - var collapsed = false - var container = createList(collapsed) - - data.forEach(function (d) { - createEl(d, container) - }) - - // Return if no TOC element is provided or known. - tocElement = parent || tocElement - if (tocElement === null) { - return - } - - // Remove existing child if it exists. - if (tocElement.firstChild) { - tocElement.removeChild(tocElement.firstChild) - } - - // Just return the parent and don't append the list if no links are found. - if (data.length === 0) { - return tocElement - } - - // Append the Elements that have been created - return tocElement.appendChild(container) - } - - /** - * Create link element. - * @param {Object} data - * @return {HTMLElement} - */ - function createLink (data) { - var item = document.createElement('li') - var a = document.createElement('a') - if (options.listItemClass) { - item.setAttribute('class', options.listItemClass) - } - - if (options.onClick) { - a.onclick = options.onClick - } - - if (options.includeTitleTags) { - a.setAttribute('title', data.textContent) - } - - if (options.includeHtml && data.childNodes.length) { - forEach.call(data.childNodes, function (node) { - a.appendChild(node.cloneNode(true)) - }) - } else { - // Default behavior. - a.textContent = data.textContent - } - a.setAttribute('href', options.basePath + '#' + data.id) - a.setAttribute('class', options.linkClass + - SPACE_CHAR + 'node-name--' + data.nodeName + - SPACE_CHAR + options.extraLinkClasses) - item.appendChild(a) - return item - } - - /** - * Create list element. - * @param {Boolean} isCollapsed - * @return {HTMLElement} - */ - function createList (isCollapsed) { - var listElement = (options.orderedList) ? 'ol' : 'ul' - var list = document.createElement(listElement) - var classes = options.listClass + SPACE_CHAR + options.extraListClasses - if (isCollapsed) { - // No plus/equals here fixes compilcation issue. - classes = classes + SPACE_CHAR + options.collapsibleClass - classes = classes + SPACE_CHAR + options.isCollapsedClass - } - list.setAttribute('class', classes) - return list - } - - /** - * Update fixed sidebar class. - * @return {HTMLElement} - */ - function updateFixedSidebarClass () { - if (options.scrollContainer && document.querySelector(options.scrollContainer)) { - var top - top = document.querySelector(options.scrollContainer).scrollTop - } else { - top = document.documentElement.scrollTop || body.scrollTop - } - var posFixedEl = document.querySelector(options.positionFixedSelector) - - if (options.fixedSidebarOffset === 'auto') { - options.fixedSidebarOffset = tocElement.offsetTop - } - - if (top > options.fixedSidebarOffset) { - if (posFixedEl.className.indexOf(options.positionFixedClass) === -1) { - posFixedEl.className += SPACE_CHAR + options.positionFixedClass - } - } else { - posFixedEl.className = posFixedEl.className.split(SPACE_CHAR + options.positionFixedClass).join('') - } - } - - /** - * Get top position of heading - * @param {HTMLElement} obj - * @return {int} position - */ - function getHeadingTopPos (obj) { - var position = 0 - if (obj !== null) { - position = obj.offsetTop - if (options.hasInnerContainers) { position += getHeadingTopPos(obj.offsetParent) } - } - return position - } - - /** - * Update TOC highlighting and collapsed groupings. - */ - function updateToc (headingsArray) { - // If a fixed content container was set - if (options.scrollContainer && document.querySelector(options.scrollContainer)) { - var top - top = document.querySelector(options.scrollContainer).scrollTop - } else { - top = document.documentElement.scrollTop || body.scrollTop - } - - // Add fixed class at offset - if (options.positionFixedSelector) { - updateFixedSidebarClass() - } - - // Get the top most heading currently visible on the page so we know what to highlight. - var headings = headingsArray - var topHeader - // Using some instead of each so that we can escape early. - if (currentlyHighlighting && - tocElement !== null && - headings.length > 0) { - some.call(headings, function (heading, i) { - if (getHeadingTopPos(heading) > top + options.headingsOffset + 10) { - // Don't allow negative index value. - var index = (i === 0) ? i : i - 1 - topHeader = headings[index] - return true - } else if (i === headings.length - 1) { - // This allows scrolling for the last heading on the page. - topHeader = headings[headings.length - 1] - return true - } - }) - - var oldActiveTocLink = tocElement.querySelector('.' + options.activeLinkClass) - var activeTocLink = tocElement - .querySelector('.' + options.linkClass + - '.node-name--' + topHeader.nodeName + - '[href="' + options.basePath + '#' + topHeader.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g, '\\$1') + '"]') - // Performance improvement to only change the classes - // for the toc if a new link should be highlighted. - if (oldActiveTocLink === activeTocLink) { - return - } - - // Remove the active class from the other tocLinks. - var tocLinks = tocElement - .querySelectorAll('.' + options.linkClass) - forEach.call(tocLinks, function (tocLink) { - tocLink.className = tocLink.className.split(SPACE_CHAR + options.activeLinkClass).join('') - }) - var tocLis = tocElement - .querySelectorAll('.' + options.listItemClass) - forEach.call(tocLis, function (tocLi) { - tocLi.className = tocLi.className.split(SPACE_CHAR + options.activeListItemClass).join('') - }) - - // Add the active class to the active tocLink. - if (activeTocLink && activeTocLink.className.indexOf(options.activeLinkClass) === -1) { - activeTocLink.className += SPACE_CHAR + options.activeLinkClass - } - var li = activeTocLink && activeTocLink.parentNode - if (li && li.className.indexOf(options.activeListItemClass) === -1) { - li.className += SPACE_CHAR + options.activeListItemClass - } - - var tocLists = tocElement - .querySelectorAll('.' + options.listClass + '.' + options.collapsibleClass) - - // Collapse the other collapsible lists. - forEach.call(tocLists, function (list) { - if (list.className.indexOf(options.isCollapsedClass) === -1) { - list.className += SPACE_CHAR + options.isCollapsedClass - } - }) - - // Expand the active link's collapsible list and its sibling if applicable. - if (activeTocLink && activeTocLink.nextSibling && activeTocLink.nextSibling.className.indexOf(options.isCollapsedClass) !== -1) { - activeTocLink.nextSibling.className = activeTocLink.nextSibling.className.split(SPACE_CHAR + options.isCollapsedClass).join('') - } - removeCollapsedFromParents(activeTocLink && activeTocLink.parentNode.parentNode) - } - } - - /** - * Remove collapsed class from parent elements. - * @param {HTMLElement} element - * @return {HTMLElement} - */ - function removeCollapsedFromParents (element) { - if (element && element.className.indexOf(options.collapsibleClass) !== -1 && element.className.indexOf(options.isCollapsedClass) !== -1) { - element.className = element.className.split(SPACE_CHAR + options.isCollapsedClass).join('') - return removeCollapsedFromParents(element.parentNode.parentNode) - } - return element - } - - /** - * Disable TOC Animation when a link is clicked. - * @param {Event} event - */ - function disableTocAnimation (event) { - var target = event.target || event.srcElement - if (typeof target.className !== 'string' || target.className.indexOf(options.linkClass) === -1) { - return - } - // Bind to tocLink clicks to temporarily disable highlighting - // while smoothScroll is animating. - currentlyHighlighting = false - } - - /** - * Enable TOC Animation. - */ - function enableTocAnimation () { - currentlyHighlighting = true - } - - return { - enableTocAnimation, - disableTocAnimation, - render, - updateToc - } -} - - -/***/ }), - -/***/ "../../../node_modules/tocbot/src/js/default-options.js": -/***/ ((module) => { - -module.exports = { - // Where to render the table of contents. - tocSelector: '.js-toc', - // Where to grab the headings to build the table of contents. - contentSelector: '.js-toc-content', - // Which headings to grab inside of the contentSelector element. - headingSelector: 'h1, h2, h3', - // Headings that match the ignoreSelector will be skipped. - ignoreSelector: '.js-toc-ignore', - // For headings inside relative or absolute positioned containers within content - hasInnerContainers: false, - // Main class to add to links. - linkClass: 'toc-link', - // Extra classes to add to links. - extraLinkClasses: '', - // Class to add to active links, - // the link corresponding to the top most heading on the page. - activeLinkClass: 'is-active-link', - // Main class to add to lists. - listClass: 'toc-list', - // Extra classes to add to lists. - extraListClasses: '', - // Class that gets added when a list should be collapsed. - isCollapsedClass: 'is-collapsed', - // Class that gets added when a list should be able - // to be collapsed but isn't necessarily collapsed. - collapsibleClass: 'is-collapsible', - // Class to add to list items. - listItemClass: 'toc-list-item', - // Class to add to active list items. - activeListItemClass: 'is-active-li', - // How many heading levels should not be collapsed. - // For example, number 6 will show everything since - // there are only 6 heading levels and number 0 will collapse them all. - // The sections that are hidden will open - // and close as you scroll to headings within them. - collapseDepth: 0, - // Smooth scrolling enabled. - scrollSmooth: true, - // Smooth scroll duration. - scrollSmoothDuration: 420, - // Smooth scroll offset. - scrollSmoothOffset: 0, - // Callback for scroll end. - scrollEndCallback: function (e) {}, - // Headings offset between the headings and the top of the document (this is meant for minor adjustments). - headingsOffset: 1, - // Timeout between events firing to make sure it's - // not too rapid (for performance reasons). - throttleTimeout: 50, - // Element to add the positionFixedClass to. - positionFixedSelector: null, - // Fixed position class to add to make sidebar fixed after scrolling - // down past the fixedSidebarOffset. - positionFixedClass: 'is-position-fixed', - // fixedSidebarOffset can be any number but by default is set - // to auto which sets the fixedSidebarOffset to the sidebar - // element's offsetTop from the top of the document on init. - fixedSidebarOffset: 'auto', - // includeHtml can be set to true to include the HTML markup from the - // heading node instead of just including the textContent. - includeHtml: false, - // includeTitleTags automatically sets the html title tag of the link - // to match the title. This can be useful for SEO purposes or - // when truncating titles. - includeTitleTags: false, - // onclick function to apply to all links in toc. will be called with - // the event as the first parameter, and this can be used to stop, - // propagation, prevent default or perform action - onClick: function (e) {}, - // orderedList can be set to false to generate unordered lists (ul) - // instead of ordered lists (ol) - orderedList: true, - // If there is a fixed article scroll container, set to calculate titles' offset - scrollContainer: null, - // prevent ToC DOM rendering if it's already rendered by an external system - skipRendering: false, - // Optional callback to change heading labels. - // For example it can be used to cut down and put ellipses on multiline headings you deem too long. - // Called each time a heading is parsed. Expects a string and returns the modified label to display. - // Additionally, the attribute `data-heading-label` may be used on a heading to specify - // a shorter string to be used in the TOC. - // function (string) => string - headingLabelCallback: false, - // ignore headings that are hidden in DOM - ignoreHiddenElements: false, - // Optional callback to modify properties of parsed headings. - // The heading element is passed in node parameter and information parsed by default parser is provided in obj parameter. - // Function has to return the same or modified obj. - // The heading will be excluded from TOC if nothing is returned. - // function (object, HTMLElement) => object | void - headingObjectCallback: null, - // Set the base path, useful if you use a `base` tag in `head`. - basePath: '', - // Only takes affect when `tocSelector` is scrolling, - // keep the toc scroll position in sync with the content. - disableTocScrollSync: false, - // Offset for the toc scroll (top) position when scrolling the page. - // Only effective if `disableTocScrollSync` is false. - tocScrollOffset: 0 -} - - -/***/ }), - -/***/ "../../../node_modules/tocbot/src/js/index.js": -/***/ ((module, exports, __webpack_require__) => { - -var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* eslint no-var: off */ -/** - * Tocbot - * Tocbot creates a table of contents based on HTML headings on a page, - * this allows users to easily jump to different sections of the document. - * Tocbot was inspired by tocify (http://gregfranko.com/jquery.tocify.js/). - * The main differences are that it works natively without any need for jquery or jquery UI). - * - * @author Tim Scanlin - */ - -/* globals define */ - -(function (root, factory) { - if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory(root)), - __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? - (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) - } else {} -})(typeof __webpack_require__.g !== 'undefined' ? __webpack_require__.g : window || __webpack_require__.g, function (root) { - 'use strict' - - // Default options. - var defaultOptions = __webpack_require__("../../../node_modules/tocbot/src/js/default-options.js") - // Object to store current options. - var options = {} - // Object for public APIs. - var tocbot = {} - - var BuildHtml = __webpack_require__("../../../node_modules/tocbot/src/js/build-html.js") - var ParseContent = __webpack_require__("../../../node_modules/tocbot/src/js/parse-content.js") - var updateTocScroll = __webpack_require__("../../../node_modules/tocbot/src/js/update-toc-scroll.js") - // Keep these variables at top scope once options are passed in. - var buildHtml - var parseContent - - // Just return if its not a browser. - var supports = !!root && !!root.document && !!root.document.querySelector && !!root.addEventListener // Feature test - if (typeof window === 'undefined' && !supports) { - return - } - var headingsArray - - // From: https://github.com/Raynos/xtend - var hasOwnProperty = Object.prototype.hasOwnProperty - function extend () { - var target = {} - for (var i = 0; i < arguments.length; i++) { - var source = arguments[i] - for (var key in source) { - if (hasOwnProperty.call(source, key)) { - target[key] = source[key] - } - } - } - return target - } - - // From: https://remysharp.com/2010/07/21/throttling-function-calls - function throttle (fn, threshold, scope) { - threshold || (threshold = 250) - var last - var deferTimer - return function () { - var context = scope || this - var now = +new Date() - var args = arguments - if (last && now < last + threshold) { - // hold on to it - clearTimeout(deferTimer) - deferTimer = setTimeout(function () { - last = now - fn.apply(context, args) - }, threshold) - } else { - last = now - fn.apply(context, args) - } - } - } - - function getContentElement (options) { - try { - return options.contentElement || document.querySelector(options.contentSelector) - } catch (e) { - console.warn('Contents element not found: ' + options.contentSelector) // eslint-disable-line - return null - } - } - - function getTocElement (options) { - try { - return options.tocElement || document.querySelector(options.tocSelector) - } catch (e) { - console.warn('TOC element not found: ' + options.tocSelector) // eslint-disable-line - return null - } - } - - /** - * Destroy tocbot. - */ - tocbot.destroy = function () { - var tocElement = getTocElement(options) - if (tocElement === null) { - return - } - - if (!options.skipRendering) { - // Clear HTML. - if (tocElement) { - tocElement.innerHTML = '' - } - } - - // Remove event listeners. - if (options.scrollContainer && document.querySelector(options.scrollContainer)) { - document.querySelector(options.scrollContainer).removeEventListener('scroll', this._scrollListener, false) - document.querySelector(options.scrollContainer).removeEventListener('resize', this._scrollListener, false) - if (buildHtml) { - document.querySelector(options.scrollContainer).removeEventListener('click', this._clickListener, false) - } - } else { - document.removeEventListener('scroll', this._scrollListener, false) - document.removeEventListener('resize', this._scrollListener, false) - if (buildHtml) { - document.removeEventListener('click', this._clickListener, false) - } - } - } - - /** - * Initialize tocbot. - * @param {object} customOptions - */ - tocbot.init = function (customOptions) { - // feature test - if (!supports) { - return - } - - // Merge defaults with user options. - // Set to options variable at the top. - options = extend(defaultOptions, customOptions || {}) - this.options = options - this.state = {} - - // Init smooth scroll if enabled (default). - if (options.scrollSmooth) { - options.duration = options.scrollSmoothDuration - options.offset = options.scrollSmoothOffset - tocbot.scrollSmooth = (__webpack_require__("../../../node_modules/tocbot/src/js/scroll-smooth/index.js").initSmoothScrolling)(options) - } - - // Pass options to these modules. - buildHtml = BuildHtml(options) - parseContent = ParseContent(options) - - // For testing purposes. - this._buildHtml = buildHtml - this._parseContent = parseContent - this._headingsArray = headingsArray - - // Destroy it if it exists first. - tocbot.destroy() - - var contentElement = getContentElement(options) - if (contentElement === null) { - return - } - - var tocElement = getTocElement(options) - if (tocElement === null) { - return - } - - // Get headings array. - headingsArray = parseContent.selectHeadings(contentElement, options.headingSelector) - // Return if no headings are found. - if (headingsArray === null) { - return - } - - // Build nested headings array. - var nestedHeadingsObj = parseContent.nestHeadingsArray(headingsArray) - var nestedHeadings = nestedHeadingsObj.nest - - // Render. - if (!options.skipRendering) { - buildHtml.render(tocElement, nestedHeadings) - } else { - // No need to attach listeners if skipRendering is true, this was causing errors. - return this - } - - // Update Sidebar and bind listeners. - this._scrollListener = throttle(function (e) { - buildHtml.updateToc(headingsArray) - !options.disableTocScrollSync && updateTocScroll(options) - var isTop = e && e.target && e.target.scrollingElement && e.target.scrollingElement.scrollTop === 0 - if ((e && (e.eventPhase === 0 || e.currentTarget === null)) || isTop) { - buildHtml.updateToc(headingsArray) - if (options.scrollEndCallback) { - options.scrollEndCallback(e) - } - } - }, options.throttleTimeout) - this._scrollListener() - if (options.scrollContainer && document.querySelector(options.scrollContainer)) { - document.querySelector(options.scrollContainer).addEventListener('scroll', this._scrollListener, false) - document.querySelector(options.scrollContainer).addEventListener('resize', this._scrollListener, false) - } else { - document.addEventListener('scroll', this._scrollListener, false) - document.addEventListener('resize', this._scrollListener, false) - } - - // Bind click listeners to disable animation. - var timeout = null - this._clickListener = throttle(function (event) { - if (options.scrollSmooth) { - buildHtml.disableTocAnimation(event) - } - buildHtml.updateToc(headingsArray) - // Timeout to re-enable the animation. - timeout && clearTimeout(timeout) - timeout = setTimeout(function () { - buildHtml.enableTocAnimation() - }, options.scrollSmoothDuration) - }, options.throttleTimeout) - - if (options.scrollContainer && document.querySelector(options.scrollContainer)) { - document.querySelector(options.scrollContainer).addEventListener('click', this._clickListener, false) - } else { - document.addEventListener('click', this._clickListener, false) - } - - return this - } - - /** - * Refresh tocbot. - */ - tocbot.refresh = function (customOptions) { - tocbot.destroy() - tocbot.init(customOptions || this.options) - } - - // Make tocbot available globally. - root.tocbot = tocbot - - return tocbot -}) - - -/***/ }), - -/***/ "../../../node_modules/tocbot/src/js/parse-content.js": -/***/ ((module) => { - -/* eslint no-var: off */ -/** - * This file is responsible for parsing the content from the DOM and making - * sure data is nested properly. - * - * @author Tim Scanlin - */ - -module.exports = function parseContent (options) { - var reduce = [].reduce - - /** - * Get the last item in an array and return a reference to it. - * @param {Array} array - * @return {Object} - */ - function getLastItem (array) { - return array[array.length - 1] - } - - /** - * Get heading level for a heading dom node. - * @param {HTMLElement} heading - * @return {Number} - */ - function getHeadingLevel (heading) { - return +heading.nodeName.toUpperCase().replace('H', '') - } - - /** - * Determine whether the object is an HTML Element. - * Also works inside iframes. HTML Elements might be created by the parent document. - * @param {Object} maybeElement - * @return {Number} - */ - function isHTMLElement (maybeElement) { - try { - return ( - maybeElement instanceof window.HTMLElement || - maybeElement instanceof window.parent.HTMLElement - ) - } catch (e) { - return maybeElement instanceof window.HTMLElement - } - } - - /** - * Get important properties from a heading element and store in a plain object. - * @param {HTMLElement} heading - * @return {Object} - */ - function getHeadingObject (heading) { - // each node is processed twice by this method because nestHeadingsArray() and addNode() calls it - // first time heading is real DOM node element, second time it is obj - // that is causing problem so I am processing only original DOM node - if (!isHTMLElement(heading)) return heading - - if (options.ignoreHiddenElements && (!heading.offsetHeight || !heading.offsetParent)) { - return null - } - - const headingLabel = heading.getAttribute('data-heading-label') || - (options.headingLabelCallback ? String(options.headingLabelCallback(heading.textContent)) : heading.textContent.trim()) - var obj = { - id: heading.id, - children: [], - nodeName: heading.nodeName, - headingLevel: getHeadingLevel(heading), - textContent: headingLabel - } - - if (options.includeHtml) { - obj.childNodes = heading.childNodes - } - - if (options.headingObjectCallback) { - return options.headingObjectCallback(obj, heading) - } - - return obj - } - - /** - * Add a node to the nested array. - * @param {Object} node - * @param {Array} nest - * @return {Array} - */ - function addNode (node, nest) { - var obj = getHeadingObject(node) - var level = obj.headingLevel - var array = nest - var lastItem = getLastItem(array) - var lastItemLevel = lastItem - ? lastItem.headingLevel - : 0 - var counter = level - lastItemLevel - - while (counter > 0) { - lastItem = getLastItem(array) - // Handle case where there are multiple h5+ in a row. - if (lastItem && level === lastItem.headingLevel) { - break - } else if (lastItem && lastItem.children !== undefined) { - array = lastItem.children - } - counter-- - } - - if (level >= options.collapseDepth) { - obj.isCollapsed = true - } - - array.push(obj) - return array - } - - /** - * Select headings in content area, exclude any selector in options.ignoreSelector - * @param {HTMLElement} contentElement - * @param {Array} headingSelector - * @return {Array} - */ - function selectHeadings (contentElement, headingSelector) { - var selectors = headingSelector - if (options.ignoreSelector) { - selectors = headingSelector.split(',') - .map(function mapSelectors (selector) { - return selector.trim() + ':not(' + options.ignoreSelector + ')' - }) - } - try { - return contentElement.querySelectorAll(selectors) - } catch (e) { - console.warn('Headers not found with selector: ' + selectors); // eslint-disable-line - return null - } - } - - /** - * Nest headings array into nested arrays with 'children' property. - * @param {Array} headingsArray - * @return {Object} - */ - function nestHeadingsArray (headingsArray) { - return reduce.call(headingsArray, function reducer (prev, curr) { - var currentHeading = getHeadingObject(curr) - if (currentHeading) { - addNode(currentHeading, prev.nest) - } - return prev - }, { - nest: [] - }) - } - - return { - nestHeadingsArray, - selectHeadings - } -} - - -/***/ }), - -/***/ "../../../node_modules/tocbot/src/js/scroll-smooth/index.js": -/***/ ((__unused_webpack_module, exports) => { - -/* eslint no-var: off */ -/* globals location, requestAnimationFrame */ - -exports.initSmoothScrolling = initSmoothScrolling - -function initSmoothScrolling (options) { - // if (isCssSmoothSCrollSupported()) { return } - - var duration = options.duration - var offset = options.offset - - var pageUrl = location.hash - ? stripHash(location.href) - : location.href - - delegatedLinkHijacking() - - function delegatedLinkHijacking () { - document.body.addEventListener('click', onClick, false) - - function onClick (e) { - if ( - !isInPageLink(e.target) || - e.target.className.indexOf('no-smooth-scroll') > -1 || - (e.target.href.charAt(e.target.href.length - 2) === '#' && - e.target.href.charAt(e.target.href.length - 1) === '!') || - e.target.className.indexOf(options.linkClass) === -1) { - return - } - - // Don't prevent default or hash doesn't change. - // e.preventDefault() - - jump(e.target.hash, { - duration, - offset, - callback: function () { - setFocus(e.target.hash) - } - }) - } - } - - function isInPageLink (n) { - return n.tagName.toLowerCase() === 'a' && - (n.hash.length > 0 || n.href.charAt(n.href.length - 1) === '#') && - (stripHash(n.href) === pageUrl || stripHash(n.href) + '#' === pageUrl) - } - - function stripHash (url) { - return url.slice(0, url.lastIndexOf('#')) - } - - // function isCssSmoothSCrollSupported () { - // return 'scrollBehavior' in document.documentElement.style - // } - - // Adapted from: - // https://www.nczonline.net/blog/2013/01/15/fixing-skip-to-content-links/ - function setFocus (hash) { - var element = document.getElementById(hash.substring(1)) - - if (element) { - if (!/^(?:a|select|input|button|textarea)$/i.test(element.tagName)) { - element.tabIndex = -1 - } - - element.focus() - } - } -} - -function jump (target, options) { - var start = window.pageYOffset - var opt = { - duration: options.duration, - offset: options.offset || 0, - callback: options.callback, - easing: options.easing || easeInOutQuad - } - // This makes ids that start with a number work: ('[id="' + decodeURI(target).split('#').join('') + '"]') - // DecodeURI for nonASCII hashes, they was encoded, but id was not encoded, it lead to not finding the tgt element by id. - // And this is for IE: document.body.scrollTop - // Handle decoded and non-decoded URIs since sometimes URLs automatically transform them (support for internation chars). - var tgt = document.querySelector('[id="' + decodeURI(target).split('#').join('') + '"]') || - document.querySelector('[id="' + (target).split('#').join('') + '"]') - var distance = typeof target === 'string' - ? opt.offset + ( - target - ? (tgt && tgt.getBoundingClientRect().top) || 0 // handle non-existent links better. - : -(document.documentElement.scrollTop || document.body.scrollTop)) - : target - var duration = typeof opt.duration === 'function' - ? opt.duration(distance) - : opt.duration - var timeStart - var timeElapsed - - requestAnimationFrame(function (time) { timeStart = time; loop(time) }) - function loop (time) { - timeElapsed = time - timeStart - - window.scrollTo(0, opt.easing(timeElapsed, start, distance, duration)) - - if (timeElapsed < duration) { requestAnimationFrame(loop) } else { end() } - } - - function end () { - window.scrollTo(0, start + distance) - - if (typeof opt.callback === 'function') { opt.callback() } - } - - // Robert Penner's easeInOutQuad - http://robertpenner.com/easing/ - function easeInOutQuad (t, b, c, d) { - t /= d / 2 - if (t < 1) return c / 2 * t * t + b - t-- - return -c / 2 * (t * (t - 2) - 1) + b - } -} - - -/***/ }), - -/***/ "../../../node_modules/tocbot/src/js/update-toc-scroll.js": -/***/ ((module) => { - -/* eslint no-var: off */ - -module.exports = function updateTocScroll (options) { - var toc = options.tocElement || document.querySelector(options.tocSelector) - if (toc && toc.scrollHeight > toc.clientHeight) { - var activeItem = toc.querySelector('.' + options.activeListItemClass) - if (activeItem) { - toc.scrollTop = activeItem.offsetTop - options.tocScrollOffset - } - } -} - - -/***/ }) - -}]); -//# sourceMappingURL=5600.cfa105c1.iframe.bundle.js.map \ No newline at end of file diff --git a/5600.cfa105c1.iframe.bundle.js.map b/5600.cfa105c1.iframe.bundle.js.map deleted file mode 100644 index dc52cf579..000000000 --- a/5600.cfa105c1.iframe.bundle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"5600.cfa105c1.iframe.bundle.js","mappings":";;;;;;;;;;AAAA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;;ACLA;AACA;AACA;AACA;AACA;AACA;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACppIA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;ACxGA;AACA;AACA;AACA;AACA;;;ACJA;AACA;AACA;AACA;AACA;;;ACJA;AACA;AACA;AACA;AACA;;;ACJA;AACA;AACA;AACA;AACA;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;;;ACNA;AACA;AACA;AACA;AACA;;;ACJA;AACA;AACA;AACA;AACA;;;ACJA;AACA;AACA;AACA;AACA;;;ACJA;AACA;AACA;AACA;AACA;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;ACTA;AACA;AACA;AACA;AACA;;;ACJA;AACA;AACA;AACA;AACA;;;ACJA;AACA;AACA;AACA;AACA;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC3BA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;AC7LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AC5NA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACpEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACrKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AClDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACvEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC5EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AClUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACzBA;AACA;AACA;AACA;AACA;;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AClBA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAKA;;;;;;;;;;;;;;;;ACnDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACv/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChSA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACpGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC7PA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACxHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://lightning-ui-docs/../../../node_modules/@storybook/blocks/dist/chunk-GWAJ4KRU.mjs","webpack://lightning-ui-docs/../../../node_modules/@babel/runtime/helpers/esm/extends.js","webpack://lightning-ui-docs/../../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","webpack://lightning-ui-docs/../../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://lightning-ui-docs/../../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://lightning-ui-docs/../../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","webpack://lightning-ui-docs/../../../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js","webpack://lightning-ui-docs/../../../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js","webpack://lightning-ui-docs/../../../node_modules/@babel/runtime/helpers/esm/construct.js","webpack://lightning-ui-docs/../../../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js","webpack://lightning-ui-docs/../../../node_modules/polished/dist/polished.esm.js","webpack://lightning-ui-docs/../../../node_modules/markdown-to-jsx/dist/index.modern.js","webpack://lightning-ui-docs/../../../node_modules/@storybook/blocks/dist/index.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/components/dist/chunk-MUPK3MH6.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/components/dist/chunk-ISRAU5IP.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/components/dist/chunk-VSDH24NK.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/components/dist/chunk-HNGDCMHD.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/components/dist/chunk-YU6L2YXV.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/components/dist/chunk-UDRSICRZ.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/components/dist/chunk-J6EJ35VB.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/components/dist/chunk-CW4JFC2I.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/components/dist/chunk-DHRX2IL7.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/components/dist/chunk-BNQCH2A2.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/components/dist/chunk-4Y2S2TEP.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/components/dist/chunk-7PYIL73X.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/components/dist/chunk-SWV57YYC.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/components/dist/chunk-MNLJ4LIX.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/components/dist/chunk-ELLS3HSY.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/components/dist/chunk-JRLSWQMA.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/components/dist/chunk-NE5YGCQB.mjs","webpack://lightning-ui-docs/../../../node_modules/use-resize-observer/dist/bundle.esm.js","webpack://lightning-ui-docs/../../../node_modules/@storybook/components/dist/index.mjs","webpack://lightning-ui-docs/../../../node_modules/@storybook/csf/dist/index.mjs","webpack://lightning-ui-docs/../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js","webpack://lightning-ui-docs/../../../node_modules/@storybook/theming/dist/index.mjs","webpack://lightning-ui-docs/../../../node_modules/lodash/_arrayEach.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_arrayIncludes.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_arrayIncludesWith.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_assignValue.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_baseAssign.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_baseAssignIn.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_baseClone.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_baseCreate.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_baseFindIndex.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_baseIndexOf.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_baseIsMap.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_baseIsNaN.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_baseIsSet.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_baseKeysIn.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_basePickBy.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_baseSet.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_baseUniq.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_cloneArrayBuffer.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_cloneBuffer.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_cloneDataView.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_cloneRegExp.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_cloneSymbol.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_cloneTypedArray.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_copyArray.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_copyObject.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_copySymbols.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_copySymbolsIn.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_createSet.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_getAllKeysIn.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_getPrototype.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_getSymbolsIn.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_initCloneArray.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_initCloneByTag.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_initCloneObject.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_nativeKeysIn.js","webpack://lightning-ui-docs/../../../node_modules/lodash/_strictIndexOf.js","webpack://lightning-ui-docs/../../../node_modules/lodash/cloneDeep.js","webpack://lightning-ui-docs/../../../node_modules/lodash/isMap.js","webpack://lightning-ui-docs/../../../node_modules/lodash/isSet.js","webpack://lightning-ui-docs/../../../node_modules/lodash/keysIn.js","webpack://lightning-ui-docs/../../../node_modules/lodash/noop.js","webpack://lightning-ui-docs/../../../node_modules/lodash/pickBy.js","webpack://lightning-ui-docs/../../../node_modules/lodash/uniq.js","webpack://lightning-ui-docs/../../../node_modules/memoizerific/memoizerific.js","webpack://lightning-ui-docs/../../../node_modules/react-dom/cjs/react-dom.production.min.js","webpack://lightning-ui-docs/../../../node_modules/react-dom/index.js","webpack://lightning-ui-docs/../../../node_modules/react/cjs/react.production.min.js","webpack://lightning-ui-docs/../../../node_modules/react/index.js","webpack://lightning-ui-docs/../../../node_modules/scheduler/cjs/scheduler.production.min.js","webpack://lightning-ui-docs/../../../node_modules/scheduler/index.js","webpack://lightning-ui-docs/../../../node_modules/telejson/dist/chunk-465TF3XA.mjs","webpack://lightning-ui-docs/../../../node_modules/telejson/dist/index.mjs","webpack://lightning-ui-docs/../../../node_modules/tocbot/src/js/build-html.js","webpack://lightning-ui-docs/../../../node_modules/tocbot/src/js/default-options.js","webpack://lightning-ui-docs/../../../node_modules/tocbot/src/js/index.js","webpack://lightning-ui-docs/../../../node_modules/tocbot/src/js/parse-content.js","webpack://lightning-ui-docs/../../../node_modules/tocbot/src/js/scroll-smooth/index.js","webpack://lightning-ui-docs/../../../node_modules/tocbot/src/js/update-toc-scroll.js"],"sourcesContent":["var getControlId=value=>`control-${value.replace(/\\s+/g,\"-\")}`,getControlSetterButtonId=value=>`set-${value.replace(/\\s+/g,\"-\")}`;\n\nexport { getControlId, getControlSetterButtonId };\n","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","export default function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}","export default function _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}","export default function _isNativeFunction(fn) {\n try {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n } catch (e) {\n return typeof fn === \"function\";\n }\n}","export default function _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nimport isNativeReflectConstruct from \"./isNativeReflectConstruct.js\";\nexport default function _construct(Parent, args, Class) {\n if (isNativeReflectConstruct()) {\n _construct = Reflect.construct.bind();\n } else {\n _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n return _construct.apply(null, arguments);\n}","import getPrototypeOf from \"./getPrototypeOf.js\";\nimport setPrototypeOf from \"./setPrototypeOf.js\";\nimport isNativeFunction from \"./isNativeFunction.js\";\nimport construct from \"./construct.js\";\nexport default function _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !isNativeFunction(Class)) return Class;\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n _cache.set(Class, Wrapper);\n }\n function Wrapper() {\n return construct(Class, arguments, getPrototypeOf(this).constructor);\n }\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return setPrototypeOf(Wrapper, Class);\n };\n return _wrapNativeSuper(Class);\n}","import _extends from '@babel/runtime/helpers/esm/extends';\nimport _assertThisInitialized from '@babel/runtime/helpers/esm/assertThisInitialized';\nimport _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';\nimport _wrapNativeSuper from '@babel/runtime/helpers/esm/wrapNativeSuper';\nimport _taggedTemplateLiteralLoose from '@babel/runtime/helpers/esm/taggedTemplateLiteralLoose';\n\nfunction last() {\n var _ref;\n\n return _ref = arguments.length - 1, _ref < 0 || arguments.length <= _ref ? undefined : arguments[_ref];\n}\n\nfunction negation(a) {\n return -a;\n}\n\nfunction addition(a, b) {\n return a + b;\n}\n\nfunction subtraction(a, b) {\n return a - b;\n}\n\nfunction multiplication(a, b) {\n return a * b;\n}\n\nfunction division(a, b) {\n return a / b;\n}\n\nfunction max() {\n return Math.max.apply(Math, arguments);\n}\n\nfunction min() {\n return Math.min.apply(Math, arguments);\n}\n\nfunction comma() {\n return Array.of.apply(Array, arguments);\n}\n\nvar defaultSymbols = {\n symbols: {\n '*': {\n infix: {\n symbol: '*',\n f: multiplication,\n notation: 'infix',\n precedence: 4,\n rightToLeft: 0,\n argCount: 2\n },\n symbol: '*',\n regSymbol: '\\\\*'\n },\n '/': {\n infix: {\n symbol: '/',\n f: division,\n notation: 'infix',\n precedence: 4,\n rightToLeft: 0,\n argCount: 2\n },\n symbol: '/',\n regSymbol: '/'\n },\n '+': {\n infix: {\n symbol: '+',\n f: addition,\n notation: 'infix',\n precedence: 2,\n rightToLeft: 0,\n argCount: 2\n },\n prefix: {\n symbol: '+',\n f: last,\n notation: 'prefix',\n precedence: 3,\n rightToLeft: 0,\n argCount: 1\n },\n symbol: '+',\n regSymbol: '\\\\+'\n },\n '-': {\n infix: {\n symbol: '-',\n f: subtraction,\n notation: 'infix',\n precedence: 2,\n rightToLeft: 0,\n argCount: 2\n },\n prefix: {\n symbol: '-',\n f: negation,\n notation: 'prefix',\n precedence: 3,\n rightToLeft: 0,\n argCount: 1\n },\n symbol: '-',\n regSymbol: '-'\n },\n ',': {\n infix: {\n symbol: ',',\n f: comma,\n notation: 'infix',\n precedence: 1,\n rightToLeft: 0,\n argCount: 2\n },\n symbol: ',',\n regSymbol: ','\n },\n '(': {\n prefix: {\n symbol: '(',\n f: last,\n notation: 'prefix',\n precedence: 0,\n rightToLeft: 0,\n argCount: 1\n },\n symbol: '(',\n regSymbol: '\\\\('\n },\n ')': {\n postfix: {\n symbol: ')',\n f: undefined,\n notation: 'postfix',\n precedence: 0,\n rightToLeft: 0,\n argCount: 1\n },\n symbol: ')',\n regSymbol: '\\\\)'\n },\n min: {\n func: {\n symbol: 'min',\n f: min,\n notation: 'func',\n precedence: 0,\n rightToLeft: 0,\n argCount: 1\n },\n symbol: 'min',\n regSymbol: 'min\\\\b'\n },\n max: {\n func: {\n symbol: 'max',\n f: max,\n notation: 'func',\n precedence: 0,\n rightToLeft: 0,\n argCount: 1\n },\n symbol: 'max',\n regSymbol: 'max\\\\b'\n }\n }\n};\nvar defaultSymbolMap = defaultSymbols;\n\n// based on https://github.com/styled-components/styled-components/blob/fcf6f3804c57a14dd7984dfab7bc06ee2edca044/src/utils/error.js\n\n/**\n * Parse errors.md and turn it into a simple hash of code: message\n * @private\n */\nvar ERRORS = {\n \"1\": \"Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\\n\\n\",\n \"2\": \"Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\\n\\n\",\n \"3\": \"Passed an incorrect argument to a color function, please pass a string representation of a color.\\n\\n\",\n \"4\": \"Couldn't generate valid rgb string from %s, it returned %s.\\n\\n\",\n \"5\": \"Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\\n\\n\",\n \"6\": \"Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).\\n\\n\",\n \"7\": \"Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).\\n\\n\",\n \"8\": \"Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\\n\\n\",\n \"9\": \"Please provide a number of steps to the modularScale helper.\\n\\n\",\n \"10\": \"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\\n\\n\",\n \"11\": \"Invalid value passed as base to modularScale, expected number or em string but got \\\"%s\\\"\\n\\n\",\n \"12\": \"Expected a string ending in \\\"px\\\" or a number passed as the first argument to %s(), got \\\"%s\\\" instead.\\n\\n\",\n \"13\": \"Expected a string ending in \\\"px\\\" or a number passed as the second argument to %s(), got \\\"%s\\\" instead.\\n\\n\",\n \"14\": \"Passed invalid pixel value (\\\"%s\\\") to %s(), please pass a value like \\\"12px\\\" or 12.\\n\\n\",\n \"15\": \"Passed invalid base value (\\\"%s\\\") to %s(), please pass a value like \\\"12px\\\" or 12.\\n\\n\",\n \"16\": \"You must provide a template to this method.\\n\\n\",\n \"17\": \"You passed an unsupported selector state to this method.\\n\\n\",\n \"18\": \"minScreen and maxScreen must be provided as stringified numbers with the same units.\\n\\n\",\n \"19\": \"fromSize and toSize must be provided as stringified numbers with the same units.\\n\\n\",\n \"20\": \"expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\\n\\n\",\n \"21\": \"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\\n\\n\",\n \"22\": \"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\\n\\n\",\n \"23\": \"fontFace expects a name of a font-family.\\n\\n\",\n \"24\": \"fontFace expects either the path to the font file(s) or a name of a local copy.\\n\\n\",\n \"25\": \"fontFace expects localFonts to be an array.\\n\\n\",\n \"26\": \"fontFace expects fileFormats to be an array.\\n\\n\",\n \"27\": \"radialGradient requries at least 2 color-stops to properly render.\\n\\n\",\n \"28\": \"Please supply a filename to retinaImage() as the first argument.\\n\\n\",\n \"29\": \"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\\n\\n\",\n \"30\": \"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\\n\\n\",\n \"31\": \"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\\n\\n\",\n \"32\": \"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\\n\\n\",\n \"33\": \"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\\n\\n\",\n \"34\": \"borderRadius expects a radius value as a string or number as the second argument.\\n\\n\",\n \"35\": \"borderRadius expects one of \\\"top\\\", \\\"bottom\\\", \\\"left\\\" or \\\"right\\\" as the first argument.\\n\\n\",\n \"36\": \"Property must be a string value.\\n\\n\",\n \"37\": \"Syntax Error at %s.\\n\\n\",\n \"38\": \"Formula contains a function that needs parentheses at %s.\\n\\n\",\n \"39\": \"Formula is missing closing parenthesis at %s.\\n\\n\",\n \"40\": \"Formula has too many closing parentheses at %s.\\n\\n\",\n \"41\": \"All values in a formula must have the same unit or be unitless.\\n\\n\",\n \"42\": \"Please provide a number of steps to the modularScale helper.\\n\\n\",\n \"43\": \"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\\n\\n\",\n \"44\": \"Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\\n\\n\",\n \"45\": \"Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\\n\\n\",\n \"46\": \"Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\\n\\n\",\n \"47\": \"minScreen and maxScreen must be provided as stringified numbers with the same units.\\n\\n\",\n \"48\": \"fromSize and toSize must be provided as stringified numbers with the same units.\\n\\n\",\n \"49\": \"Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\\n\\n\",\n \"50\": \"Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\\n\\n\",\n \"51\": \"Expects the first argument object to have the properties prop, fromSize, and toSize.\\n\\n\",\n \"52\": \"fontFace expects either the path to the font file(s) or a name of a local copy.\\n\\n\",\n \"53\": \"fontFace expects localFonts to be an array.\\n\\n\",\n \"54\": \"fontFace expects fileFormats to be an array.\\n\\n\",\n \"55\": \"fontFace expects a name of a font-family.\\n\\n\",\n \"56\": \"linearGradient requries at least 2 color-stops to properly render.\\n\\n\",\n \"57\": \"radialGradient requries at least 2 color-stops to properly render.\\n\\n\",\n \"58\": \"Please supply a filename to retinaImage() as the first argument.\\n\\n\",\n \"59\": \"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\\n\\n\",\n \"60\": \"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\\n\\n\",\n \"61\": \"Property must be a string value.\\n\\n\",\n \"62\": \"borderRadius expects a radius value as a string or number as the second argument.\\n\\n\",\n \"63\": \"borderRadius expects one of \\\"top\\\", \\\"bottom\\\", \\\"left\\\" or \\\"right\\\" as the first argument.\\n\\n\",\n \"64\": \"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\\n\\n\",\n \"65\": \"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').\\n\\n\",\n \"66\": \"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\\n\\n\",\n \"67\": \"You must provide a template to this method.\\n\\n\",\n \"68\": \"You passed an unsupported selector state to this method.\\n\\n\",\n \"69\": \"Expected a string ending in \\\"px\\\" or a number passed as the first argument to %s(), got %s instead.\\n\\n\",\n \"70\": \"Expected a string ending in \\\"px\\\" or a number passed as the second argument to %s(), got %s instead.\\n\\n\",\n \"71\": \"Passed invalid pixel value %s to %s(), please pass a value like \\\"12px\\\" or 12.\\n\\n\",\n \"72\": \"Passed invalid base value %s to %s(), please pass a value like \\\"12px\\\" or 12.\\n\\n\",\n \"73\": \"Please provide a valid CSS variable.\\n\\n\",\n \"74\": \"CSS variable not found and no default was provided.\\n\\n\",\n \"75\": \"important requires a valid style object, got a %s instead.\\n\\n\",\n \"76\": \"fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\\n\\n\",\n \"77\": \"remToPx expects a value in \\\"rem\\\" but you provided it in \\\"%s\\\".\\n\\n\",\n \"78\": \"base must be set in \\\"px\\\" or \\\"%\\\" but you set it in \\\"%s\\\".\\n\"\n};\n/**\n * super basic version of sprintf\n * @private\n */\n\nfunction format() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var a = args[0];\n var b = [];\n var c;\n\n for (c = 1; c < args.length; c += 1) {\n b.push(args[c]);\n }\n\n b.forEach(function (d) {\n a = a.replace(/%[a-z]/, d);\n });\n return a;\n}\n/**\n * Create an error file out of errors.md for development and a simple web link to the full errors\n * in production mode.\n * @private\n */\n\n\nvar PolishedError = /*#__PURE__*/function (_Error) {\n _inheritsLoose(PolishedError, _Error);\n\n function PolishedError(code) {\n var _this;\n\n if (process.env.NODE_ENV === 'production') {\n _this = _Error.call(this, \"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#\" + code + \" for more information.\") || this;\n } else {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n _this = _Error.call(this, format.apply(void 0, [ERRORS[code]].concat(args))) || this;\n }\n\n return _assertThisInitialized(_this);\n }\n\n return PolishedError;\n}( /*#__PURE__*/_wrapNativeSuper(Error));\n\nvar unitRegExp = /((?!\\w)a|na|hc|mc|dg|me[r]?|xe|ni(?![a-zA-Z])|mm|cp|tp|xp|q(?!s)|hv|xamv|nimv|wv|sm|s(?!\\D|$)|ged|darg?|nrut)/g; // Merges additional math functionality into the defaults.\n\nfunction mergeSymbolMaps(additionalSymbols) {\n var symbolMap = {};\n symbolMap.symbols = additionalSymbols ? _extends({}, defaultSymbolMap.symbols, additionalSymbols.symbols) : _extends({}, defaultSymbolMap.symbols);\n return symbolMap;\n}\n\nfunction exec(operators, values) {\n var _ref;\n\n var op = operators.pop();\n values.push(op.f.apply(op, (_ref = []).concat.apply(_ref, values.splice(-op.argCount))));\n return op.precedence;\n}\n\nfunction calculate(expression, additionalSymbols) {\n var symbolMap = mergeSymbolMaps(additionalSymbols);\n var match;\n var operators = [symbolMap.symbols['('].prefix];\n var values = [];\n var pattern = new RegExp( // Pattern for numbers\n \"\\\\d+(?:\\\\.\\\\d+)?|\" + // ...and patterns for individual operators/function names\n Object.keys(symbolMap.symbols).map(function (key) {\n return symbolMap.symbols[key];\n }) // longer symbols should be listed first\n // $FlowFixMe\n .sort(function (a, b) {\n return b.symbol.length - a.symbol.length;\n }) // $FlowFixMe\n .map(function (val) {\n return val.regSymbol;\n }).join('|') + \"|(\\\\S)\", 'g');\n pattern.lastIndex = 0; // Reset regular expression object\n\n var afterValue = false;\n\n do {\n match = pattern.exec(expression);\n\n var _ref2 = match || [')', undefined],\n token = _ref2[0],\n bad = _ref2[1];\n\n var notNumber = symbolMap.symbols[token];\n var notNewValue = notNumber && !notNumber.prefix && !notNumber.func;\n var notAfterValue = !notNumber || !notNumber.postfix && !notNumber.infix; // Check for syntax errors:\n\n if (bad || (afterValue ? notAfterValue : notNewValue)) {\n throw new PolishedError(37, match ? match.index : expression.length, expression);\n }\n\n if (afterValue) {\n // We either have an infix or postfix operator (they should be mutually exclusive)\n var curr = notNumber.postfix || notNumber.infix;\n\n do {\n var prev = operators[operators.length - 1];\n if ((curr.precedence - prev.precedence || prev.rightToLeft) > 0) break; // Apply previous operator, since it has precedence over current one\n } while (exec(operators, values)); // Exit loop after executing an opening parenthesis or function\n\n\n afterValue = curr.notation === 'postfix';\n\n if (curr.symbol !== ')') {\n operators.push(curr); // Postfix always has precedence over any operator that follows after it\n\n if (afterValue) exec(operators, values);\n }\n } else if (notNumber) {\n // prefix operator or function\n operators.push(notNumber.prefix || notNumber.func);\n\n if (notNumber.func) {\n // Require an opening parenthesis\n match = pattern.exec(expression);\n\n if (!match || match[0] !== '(') {\n throw new PolishedError(38, match ? match.index : expression.length, expression);\n }\n }\n } else {\n // number\n values.push(+token);\n afterValue = true;\n }\n } while (match && operators.length);\n\n if (operators.length) {\n throw new PolishedError(39, match ? match.index : expression.length, expression);\n } else if (match) {\n throw new PolishedError(40, match ? match.index : expression.length, expression);\n } else {\n return values.pop();\n }\n}\n\nfunction reverseString(str) {\n return str.split('').reverse().join('');\n}\n/**\n * Helper for doing math with CSS Units. Accepts a formula as a string. All values in the formula must have the same unit (or be unitless). Supports complex formulas utliziing addition, subtraction, multiplication, division, square root, powers, factorial, min, max, as well as parentheses for order of operation.\n *\n *In cases where you need to do calculations with mixed units where one unit is a [relative length unit](https://developer.mozilla.org/en-US/docs/Web/CSS/length#Relative_length_units), you will want to use [CSS Calc](https://developer.mozilla.org/en-US/docs/Web/CSS/calc).\n *\n * *warning* While we've done everything possible to ensure math safely evalutes formulas expressed as strings, you should always use extreme caution when passing `math` user provided values.\n * @example\n * // Styles as object usage\n * const styles = {\n * fontSize: math('12rem + 8rem'),\n * fontSize: math('(12px + 2px) * 3'),\n * fontSize: math('3px^2 + sqrt(4)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * fontSize: ${math('12rem + 8rem')};\n * fontSize: ${math('(12px + 2px) * 3')};\n * fontSize: ${math('3px^2 + sqrt(4)')};\n * `\n *\n * // CSS as JS Output\n *\n * div: {\n * fontSize: '20rem',\n * fontSize: '42px',\n * fontSize: '11px',\n * }\n */\n\n\nfunction math(formula, additionalSymbols) {\n var reversedFormula = reverseString(formula);\n var formulaMatch = reversedFormula.match(unitRegExp); // Check that all units are the same\n\n if (formulaMatch && !formulaMatch.every(function (unit) {\n return unit === formulaMatch[0];\n })) {\n throw new PolishedError(41);\n }\n\n var cleanFormula = reverseString(reversedFormula.replace(unitRegExp, ''));\n return \"\" + calculate(cleanFormula, additionalSymbols) + (formulaMatch ? reverseString(formulaMatch[0]) : '');\n}\n\nvar cssVariableRegex = /--[\\S]*/g;\n/**\n * Fetches the value of a passed CSS Variable in the :root scope, or otherwise returns a defaultValue if provided.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * 'background': cssVar('--background-color'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${cssVar('--background-color')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * 'background': 'red'\n * }\n */\n\nfunction cssVar(cssVariable, defaultValue) {\n if (!cssVariable || !cssVariable.match(cssVariableRegex)) {\n throw new PolishedError(73);\n }\n\n var variableValue;\n /* eslint-disable */\n\n /* istanbul ignore next */\n\n if (typeof document !== 'undefined' && document.documentElement !== null) {\n variableValue = getComputedStyle(document.documentElement).getPropertyValue(cssVariable);\n }\n /* eslint-enable */\n\n\n if (variableValue) {\n return variableValue.trim();\n } else if (defaultValue) {\n return defaultValue;\n }\n\n throw new PolishedError(74);\n}\n\n// @private\nfunction capitalizeString(string) {\n return string.charAt(0).toUpperCase() + string.slice(1);\n}\n\nvar positionMap$1 = ['Top', 'Right', 'Bottom', 'Left'];\n\nfunction generateProperty(property, position) {\n if (!property) return position.toLowerCase();\n var splitProperty = property.split('-');\n\n if (splitProperty.length > 1) {\n splitProperty.splice(1, 0, position);\n return splitProperty.reduce(function (acc, val) {\n return \"\" + acc + capitalizeString(val);\n });\n }\n\n var joinedProperty = property.replace(/([a-z])([A-Z])/g, \"$1\" + position + \"$2\");\n return property === joinedProperty ? \"\" + property + position : joinedProperty;\n}\n\nfunction generateStyles(property, valuesWithDefaults) {\n var styles = {};\n\n for (var i = 0; i < valuesWithDefaults.length; i += 1) {\n if (valuesWithDefaults[i] || valuesWithDefaults[i] === 0) {\n styles[generateProperty(property, positionMap$1[i])] = valuesWithDefaults[i];\n }\n }\n\n return styles;\n}\n/**\n * Enables shorthand for direction-based properties. It accepts a property (hyphenated or camelCased) and up to four values that map to top, right, bottom, and left, respectively. You can optionally pass an empty string to get only the directional values as properties. You can also optionally pass a null argument for a directional value to ignore it.\n * @example\n * // Styles as object usage\n * const styles = {\n * ...directionalProperty('padding', '12px', '24px', '36px', '48px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${directionalProperty('padding', '12px', '24px', '36px', '48px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'paddingTop': '12px',\n * 'paddingRight': '24px',\n * 'paddingBottom': '36px',\n * 'paddingLeft': '48px'\n * }\n */\n\n\nfunction directionalProperty(property) {\n for (var _len = arguments.length, values = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n values[_key - 1] = arguments[_key];\n }\n\n // prettier-ignore\n var firstValue = values[0],\n _values$ = values[1],\n secondValue = _values$ === void 0 ? firstValue : _values$,\n _values$2 = values[2],\n thirdValue = _values$2 === void 0 ? firstValue : _values$2,\n _values$3 = values[3],\n fourthValue = _values$3 === void 0 ? secondValue : _values$3;\n var valuesWithDefaults = [firstValue, secondValue, thirdValue, fourthValue];\n return generateStyles(property, valuesWithDefaults);\n}\n\n/**\n * Check if a string ends with something\n * @private\n */\nfunction endsWith(string, suffix) {\n return string.substr(-suffix.length) === suffix;\n}\n\nvar cssRegex$1 = /^([+-]?(?:\\d+|\\d*\\.\\d+))([a-z]*|%)$/;\n/**\n * Returns a given CSS value minus its unit of measure.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * '--dimension': stripUnit('100px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * --dimension: ${stripUnit('100px')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * '--dimension': 100\n * }\n */\n\nfunction stripUnit(value) {\n if (typeof value !== 'string') return value;\n var matchedValue = value.match(cssRegex$1);\n return matchedValue ? parseFloat(value) : value;\n}\n\n/**\n * Factory function that creates pixel-to-x converters\n * @private\n */\n\nvar pxtoFactory = function pxtoFactory(to) {\n return function (pxval, base) {\n if (base === void 0) {\n base = '16px';\n }\n\n var newPxval = pxval;\n var newBase = base;\n\n if (typeof pxval === 'string') {\n if (!endsWith(pxval, 'px')) {\n throw new PolishedError(69, to, pxval);\n }\n\n newPxval = stripUnit(pxval);\n }\n\n if (typeof base === 'string') {\n if (!endsWith(base, 'px')) {\n throw new PolishedError(70, to, base);\n }\n\n newBase = stripUnit(base);\n }\n\n if (typeof newPxval === 'string') {\n throw new PolishedError(71, pxval, to);\n }\n\n if (typeof newBase === 'string') {\n throw new PolishedError(72, base, to);\n }\n\n return \"\" + newPxval / newBase + to;\n };\n};\n\nvar pixelsto = pxtoFactory;\n\n/**\n * Convert pixel value to ems. The default base value is 16px, but can be changed by passing a\n * second argument to the function.\n * @function\n * @param {string|number} pxval\n * @param {string|number} [base='16px']\n * @example\n * // Styles as object usage\n * const styles = {\n * 'height': em('16px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * height: ${em('16px')}\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * 'height': '1em'\n * }\n */\n\nvar em = /*#__PURE__*/pixelsto('em');\nvar em$1 = em;\n\nvar cssRegex = /^([+-]?(?:\\d+|\\d*\\.\\d+))([a-z]*|%)$/;\n/**\n * Returns a given CSS value and its unit as elements of an array.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * '--dimension': getValueAndUnit('100px')[0],\n * '--unit': getValueAndUnit('100px')[1],\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * --dimension: ${getValueAndUnit('100px')[0]};\n * --unit: ${getValueAndUnit('100px')[1]};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * '--dimension': 100,\n * '--unit': 'px',\n * }\n */\n\nfunction getValueAndUnit(value) {\n if (typeof value !== 'string') return [value, ''];\n var matchedValue = value.match(cssRegex);\n if (matchedValue) return [parseFloat(value), matchedValue[2]];\n return [value, undefined];\n}\n\n/**\n * Helper for targeting rules in a style block generated by polished modules that need !important-level specificity. Can optionally specify a rule (or rules) to target specific rules.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * ...important(cover())\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${important(cover())}\n * `\n *\n * // CSS as JS Output\n *\n * div: {\n * 'position': 'absolute !important',\n * 'top': '0 !important',\n * 'right: '0 !important',\n * 'bottom': '0 !important',\n * 'left: '0 !important'\n * }\n */\n\nfunction important(styleBlock, rules) {\n if (typeof styleBlock !== 'object' || styleBlock === null) {\n throw new PolishedError(75, typeof styleBlock);\n }\n\n var newStyleBlock = {};\n Object.keys(styleBlock).forEach(function (key) {\n if (typeof styleBlock[key] === 'object' && styleBlock[key] !== null) {\n newStyleBlock[key] = important(styleBlock[key], rules);\n } else if (!rules || rules && (rules === key || rules.indexOf(key) >= 0)) {\n newStyleBlock[key] = styleBlock[key] + \" !important\";\n } else {\n newStyleBlock[key] = styleBlock[key];\n }\n });\n return newStyleBlock;\n}\n\nvar ratioNames = {\n minorSecond: 1.067,\n majorSecond: 1.125,\n minorThird: 1.2,\n majorThird: 1.25,\n perfectFourth: 1.333,\n augFourth: 1.414,\n perfectFifth: 1.5,\n minorSixth: 1.6,\n goldenSection: 1.618,\n majorSixth: 1.667,\n minorSeventh: 1.778,\n majorSeventh: 1.875,\n octave: 2,\n majorTenth: 2.5,\n majorEleventh: 2.667,\n majorTwelfth: 3,\n doubleOctave: 4\n};\n\nfunction getRatio(ratioName) {\n return ratioNames[ratioName];\n}\n/**\n * Establish consistent measurements and spacial relationships throughout your projects by incrementing an em or rem value up or down a defined scale. We provide a list of commonly used scales as pre-defined variables.\n * @example\n * // Styles as object usage\n * const styles = {\n * // Increment two steps up the default scale\n * 'fontSize': modularScale(2)\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * // Increment two steps up the default scale\n * fontSize: ${modularScale(2)}\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * 'fontSize': '1.77689em'\n * }\n */\n\n\nfunction modularScale(steps, base, ratio) {\n if (base === void 0) {\n base = '1em';\n }\n\n if (ratio === void 0) {\n ratio = 1.333;\n }\n\n if (typeof steps !== 'number') {\n throw new PolishedError(42);\n }\n\n if (typeof ratio === 'string' && !ratioNames[ratio]) {\n throw new PolishedError(43);\n }\n\n var _ref = typeof base === 'string' ? getValueAndUnit(base) : [base, ''],\n realBase = _ref[0],\n unit = _ref[1];\n\n var realRatio = typeof ratio === 'string' ? getRatio(ratio) : ratio;\n\n if (typeof realBase === 'string') {\n throw new PolishedError(44, base);\n }\n\n return \"\" + realBase * Math.pow(realRatio, steps) + (unit || '');\n}\n\n/**\n * Convert pixel value to rems. The default base value is 16px, but can be changed by passing a\n * second argument to the function.\n * @function\n * @param {string|number} pxval\n * @param {string|number} [base='16px']\n * @example\n * // Styles as object usage\n * const styles = {\n * 'height': rem('16px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * height: ${rem('16px')}\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * 'height': '1rem'\n * }\n */\n\nvar rem = /*#__PURE__*/pixelsto('rem');\nvar rem$1 = rem;\n\nvar defaultFontSize = 16;\n\nfunction convertBase(base) {\n var deconstructedValue = getValueAndUnit(base);\n\n if (deconstructedValue[1] === 'px') {\n return parseFloat(base);\n }\n\n if (deconstructedValue[1] === '%') {\n return parseFloat(base) / 100 * defaultFontSize;\n }\n\n throw new PolishedError(78, deconstructedValue[1]);\n}\n\nfunction getBaseFromDoc() {\n /* eslint-disable */\n\n /* istanbul ignore next */\n if (typeof document !== 'undefined' && document.documentElement !== null) {\n var rootFontSize = getComputedStyle(document.documentElement).fontSize;\n return rootFontSize ? convertBase(rootFontSize) : defaultFontSize;\n }\n /* eslint-enable */\n\n /* istanbul ignore next */\n\n\n return defaultFontSize;\n}\n/**\n * Convert rem values to px. By default, the base value is pulled from the font-size property on the root element (if it is set in % or px). It defaults to 16px if not found on the root. You can also override the base value by providing your own base in % or px.\n * @example\n * // Styles as object usage\n * const styles = {\n * 'height': remToPx('1.6rem')\n * 'height': remToPx('1.6rem', '10px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * height: ${remToPx('1.6rem')}\n * height: ${remToPx('1.6rem', '10px')}\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * 'height': '25.6px',\n * 'height': '16px',\n * }\n */\n\n\nfunction remToPx(value, base) {\n var deconstructedValue = getValueAndUnit(value);\n\n if (deconstructedValue[1] !== 'rem' && deconstructedValue[1] !== '') {\n throw new PolishedError(77, deconstructedValue[1]);\n }\n\n var newBase = base ? convertBase(base) : getBaseFromDoc();\n return deconstructedValue[0] * newBase + \"px\";\n}\n\nvar functionsMap$3 = {\n back: 'cubic-bezier(0.600, -0.280, 0.735, 0.045)',\n circ: 'cubic-bezier(0.600, 0.040, 0.980, 0.335)',\n cubic: 'cubic-bezier(0.550, 0.055, 0.675, 0.190)',\n expo: 'cubic-bezier(0.950, 0.050, 0.795, 0.035)',\n quad: 'cubic-bezier(0.550, 0.085, 0.680, 0.530)',\n quart: 'cubic-bezier(0.895, 0.030, 0.685, 0.220)',\n quint: 'cubic-bezier(0.755, 0.050, 0.855, 0.060)',\n sine: 'cubic-bezier(0.470, 0.000, 0.745, 0.715)'\n};\n/**\n * String to represent common easing functions as demonstrated here: (github.com/jaukia/easie).\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * 'transitionTimingFunction': easeIn('quad')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * transitionTimingFunction: ${easeIn('quad')};\n * `\n *\n * // CSS as JS Output\n *\n * 'div': {\n * 'transitionTimingFunction': 'cubic-bezier(0.550, 0.085, 0.680, 0.530)',\n * }\n */\n\nfunction easeIn(functionName) {\n return functionsMap$3[functionName.toLowerCase().trim()];\n}\n\nvar functionsMap$2 = {\n back: 'cubic-bezier(0.680, -0.550, 0.265, 1.550)',\n circ: 'cubic-bezier(0.785, 0.135, 0.150, 0.860)',\n cubic: 'cubic-bezier(0.645, 0.045, 0.355, 1.000)',\n expo: 'cubic-bezier(1.000, 0.000, 0.000, 1.000)',\n quad: 'cubic-bezier(0.455, 0.030, 0.515, 0.955)',\n quart: 'cubic-bezier(0.770, 0.000, 0.175, 1.000)',\n quint: 'cubic-bezier(0.860, 0.000, 0.070, 1.000)',\n sine: 'cubic-bezier(0.445, 0.050, 0.550, 0.950)'\n};\n/**\n * String to represent common easing functions as demonstrated here: (github.com/jaukia/easie).\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * 'transitionTimingFunction': easeInOut('quad')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * transitionTimingFunction: ${easeInOut('quad')};\n * `\n *\n * // CSS as JS Output\n *\n * 'div': {\n * 'transitionTimingFunction': 'cubic-bezier(0.455, 0.030, 0.515, 0.955)',\n * }\n */\n\nfunction easeInOut(functionName) {\n return functionsMap$2[functionName.toLowerCase().trim()];\n}\n\nvar functionsMap$1 = {\n back: 'cubic-bezier(0.175, 0.885, 0.320, 1.275)',\n cubic: 'cubic-bezier(0.215, 0.610, 0.355, 1.000)',\n circ: 'cubic-bezier(0.075, 0.820, 0.165, 1.000)',\n expo: 'cubic-bezier(0.190, 1.000, 0.220, 1.000)',\n quad: 'cubic-bezier(0.250, 0.460, 0.450, 0.940)',\n quart: 'cubic-bezier(0.165, 0.840, 0.440, 1.000)',\n quint: 'cubic-bezier(0.230, 1.000, 0.320, 1.000)',\n sine: 'cubic-bezier(0.390, 0.575, 0.565, 1.000)'\n};\n/**\n * String to represent common easing functions as demonstrated here: (github.com/jaukia/easie).\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * 'transitionTimingFunction': easeOut('quad')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * transitionTimingFunction: ${easeOut('quad')};\n * `\n *\n * // CSS as JS Output\n *\n * 'div': {\n * 'transitionTimingFunction': 'cubic-bezier(0.250, 0.460, 0.450, 0.940)',\n * }\n */\n\nfunction easeOut(functionName) {\n return functionsMap$1[functionName.toLowerCase().trim()];\n}\n\n/**\n * Returns a CSS calc formula for linear interpolation of a property between two values. Accepts optional minScreen (defaults to '320px') and maxScreen (defaults to '1200px').\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * fontSize: between('20px', '100px', '400px', '1000px'),\n * fontSize: between('20px', '100px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * fontSize: ${between('20px', '100px', '400px', '1000px')};\n * fontSize: ${between('20px', '100px')}\n * `\n *\n * // CSS as JS Output\n *\n * h1: {\n * 'fontSize': 'calc(-33.33333333333334px + 13.333333333333334vw)',\n * 'fontSize': 'calc(-9.090909090909093px + 9.090909090909092vw)'\n * }\n */\n\nfunction between(fromSize, toSize, minScreen, maxScreen) {\n if (minScreen === void 0) {\n minScreen = '320px';\n }\n\n if (maxScreen === void 0) {\n maxScreen = '1200px';\n }\n\n var _getValueAndUnit = getValueAndUnit(fromSize),\n unitlessFromSize = _getValueAndUnit[0],\n fromSizeUnit = _getValueAndUnit[1];\n\n var _getValueAndUnit2 = getValueAndUnit(toSize),\n unitlessToSize = _getValueAndUnit2[0],\n toSizeUnit = _getValueAndUnit2[1];\n\n var _getValueAndUnit3 = getValueAndUnit(minScreen),\n unitlessMinScreen = _getValueAndUnit3[0],\n minScreenUnit = _getValueAndUnit3[1];\n\n var _getValueAndUnit4 = getValueAndUnit(maxScreen),\n unitlessMaxScreen = _getValueAndUnit4[0],\n maxScreenUnit = _getValueAndUnit4[1];\n\n if (typeof unitlessMinScreen !== 'number' || typeof unitlessMaxScreen !== 'number' || !minScreenUnit || !maxScreenUnit || minScreenUnit !== maxScreenUnit) {\n throw new PolishedError(47);\n }\n\n if (typeof unitlessFromSize !== 'number' || typeof unitlessToSize !== 'number' || fromSizeUnit !== toSizeUnit) {\n throw new PolishedError(48);\n }\n\n if (fromSizeUnit !== minScreenUnit || toSizeUnit !== maxScreenUnit) {\n throw new PolishedError(76);\n }\n\n var slope = (unitlessFromSize - unitlessToSize) / (unitlessMinScreen - unitlessMaxScreen);\n var base = unitlessToSize - slope * unitlessMaxScreen;\n return \"calc(\" + base.toFixed(2) + (fromSizeUnit || '') + \" + \" + (100 * slope).toFixed(2) + \"vw)\";\n}\n\n/**\n * CSS to contain a float (credit to CSSMojo).\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * ...clearFix(),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${clearFix()}\n * `\n *\n * // CSS as JS Output\n *\n * '&::after': {\n * 'clear': 'both',\n * 'content': '\"\"',\n * 'display': 'table'\n * }\n */\nfunction clearFix(parent) {\n var _ref;\n\n if (parent === void 0) {\n parent = '&';\n }\n\n var pseudoSelector = parent + \"::after\";\n return _ref = {}, _ref[pseudoSelector] = {\n clear: 'both',\n content: '\"\"',\n display: 'table'\n }, _ref;\n}\n\n/**\n * CSS to fully cover an area. Can optionally be passed an offset to act as a \"padding\".\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * ...cover()\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${cover()}\n * `\n *\n * // CSS as JS Output\n *\n * div: {\n * 'position': 'absolute',\n * 'top': '0',\n * 'right: '0',\n * 'bottom': '0',\n * 'left: '0'\n * }\n */\nfunction cover(offset) {\n if (offset === void 0) {\n offset = 0;\n }\n\n return {\n position: 'absolute',\n top: offset,\n right: offset,\n bottom: offset,\n left: offset\n };\n}\n\n/**\n * CSS to represent truncated text with an ellipsis. You can optionally pass a max-width and number of lines before truncating.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * ...ellipsis('250px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${ellipsis('250px')}\n * `\n *\n * // CSS as JS Output\n *\n * div: {\n * 'display': 'inline-block',\n * 'maxWidth': '250px',\n * 'overflow': 'hidden',\n * 'textOverflow': 'ellipsis',\n * 'whiteSpace': 'nowrap',\n * 'wordWrap': 'normal'\n * }\n */\nfunction ellipsis(width, lines) {\n if (lines === void 0) {\n lines = 1;\n }\n\n var styles = {\n display: 'inline-block',\n maxWidth: width || '100%',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n wordWrap: 'normal'\n };\n return lines > 1 ? _extends({}, styles, {\n WebkitBoxOrient: 'vertical',\n WebkitLineClamp: lines,\n display: '-webkit-box',\n whiteSpace: 'normal'\n }) : styles;\n}\n\nfunction _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n/**\n * Returns a set of media queries that resizes a property (or set of properties) between a provided fromSize and toSize. Accepts optional minScreen (defaults to '320px') and maxScreen (defaults to '1200px') to constrain the interpolation.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * ...fluidRange(\n * {\n * prop: 'padding',\n * fromSize: '20px',\n * toSize: '100px',\n * },\n * '400px',\n * '1000px',\n * )\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${fluidRange(\n * {\n * prop: 'padding',\n * fromSize: '20px',\n * toSize: '100px',\n * },\n * '400px',\n * '1000px',\n * )}\n * `\n *\n * // CSS as JS Output\n *\n * div: {\n * \"@media (min-width: 1000px)\": Object {\n * \"padding\": \"100px\",\n * },\n * \"@media (min-width: 400px)\": Object {\n * \"padding\": \"calc(-33.33333333333334px + 13.333333333333334vw)\",\n * },\n * \"padding\": \"20px\",\n * }\n */\nfunction fluidRange(cssProp, minScreen, maxScreen) {\n if (minScreen === void 0) {\n minScreen = '320px';\n }\n\n if (maxScreen === void 0) {\n maxScreen = '1200px';\n }\n\n if (!Array.isArray(cssProp) && typeof cssProp !== 'object' || cssProp === null) {\n throw new PolishedError(49);\n }\n\n if (Array.isArray(cssProp)) {\n var mediaQueries = {};\n var fallbacks = {};\n\n for (var _iterator = _createForOfIteratorHelperLoose(cssProp), _step; !(_step = _iterator()).done;) {\n var _extends2, _extends3;\n\n var obj = _step.value;\n\n if (!obj.prop || !obj.fromSize || !obj.toSize) {\n throw new PolishedError(50);\n }\n\n fallbacks[obj.prop] = obj.fromSize;\n mediaQueries[\"@media (min-width: \" + minScreen + \")\"] = _extends({}, mediaQueries[\"@media (min-width: \" + minScreen + \")\"], (_extends2 = {}, _extends2[obj.prop] = between(obj.fromSize, obj.toSize, minScreen, maxScreen), _extends2));\n mediaQueries[\"@media (min-width: \" + maxScreen + \")\"] = _extends({}, mediaQueries[\"@media (min-width: \" + maxScreen + \")\"], (_extends3 = {}, _extends3[obj.prop] = obj.toSize, _extends3));\n }\n\n return _extends({}, fallbacks, mediaQueries);\n } else {\n var _ref, _ref2, _ref3;\n\n if (!cssProp.prop || !cssProp.fromSize || !cssProp.toSize) {\n throw new PolishedError(51);\n }\n\n return _ref3 = {}, _ref3[cssProp.prop] = cssProp.fromSize, _ref3[\"@media (min-width: \" + minScreen + \")\"] = (_ref = {}, _ref[cssProp.prop] = between(cssProp.fromSize, cssProp.toSize, minScreen, maxScreen), _ref), _ref3[\"@media (min-width: \" + maxScreen + \")\"] = (_ref2 = {}, _ref2[cssProp.prop] = cssProp.toSize, _ref2), _ref3;\n }\n}\n\nvar dataURIRegex = /^\\s*data:([a-z]+\\/[a-z-]+(;[a-z-]+=[a-z-]+)?)?(;charset=[a-z0-9-]+)?(;base64)?,[a-z0-9!$&',()*+,;=\\-._~:@/?%\\s]*\\s*$/i;\nvar formatHintMap = {\n woff: 'woff',\n woff2: 'woff2',\n ttf: 'truetype',\n otf: 'opentype',\n eot: 'embedded-opentype',\n svg: 'svg',\n svgz: 'svg'\n};\n\nfunction generateFormatHint(format, formatHint) {\n if (!formatHint) return '';\n return \" format(\\\"\" + formatHintMap[format] + \"\\\")\";\n}\n\nfunction isDataURI(fontFilePath) {\n return !!fontFilePath.replace(/\\s+/g, ' ').match(dataURIRegex);\n}\n\nfunction generateFileReferences(fontFilePath, fileFormats, formatHint) {\n if (isDataURI(fontFilePath)) {\n return \"url(\\\"\" + fontFilePath + \"\\\")\" + generateFormatHint(fileFormats[0], formatHint);\n }\n\n var fileFontReferences = fileFormats.map(function (format) {\n return \"url(\\\"\" + fontFilePath + \".\" + format + \"\\\")\" + generateFormatHint(format, formatHint);\n });\n return fileFontReferences.join(', ');\n}\n\nfunction generateLocalReferences(localFonts) {\n var localFontReferences = localFonts.map(function (font) {\n return \"local(\\\"\" + font + \"\\\")\";\n });\n return localFontReferences.join(', ');\n}\n\nfunction generateSources(fontFilePath, localFonts, fileFormats, formatHint) {\n var fontReferences = [];\n if (localFonts) fontReferences.push(generateLocalReferences(localFonts));\n\n if (fontFilePath) {\n fontReferences.push(generateFileReferences(fontFilePath, fileFormats, formatHint));\n }\n\n return fontReferences.join(', ');\n}\n/**\n * CSS for a @font-face declaration. Defaults to check for local copies of the font on the user's machine. You can disable this by passing `null` to localFonts.\n *\n * @example\n * // Styles as object basic usage\n * const styles = {\n * ...fontFace({\n * 'fontFamily': 'Sans-Pro',\n * 'fontFilePath': 'path/to/file'\n * })\n * }\n *\n * // styled-components basic usage\n * const GlobalStyle = createGlobalStyle`${\n * fontFace({\n * 'fontFamily': 'Sans-Pro',\n * 'fontFilePath': 'path/to/file'\n * }\n * )}`\n *\n * // CSS as JS Output\n *\n * '@font-face': {\n * 'fontFamily': 'Sans-Pro',\n * 'src': 'url(\"path/to/file.eot\"), url(\"path/to/file.woff2\"), url(\"path/to/file.woff\"), url(\"path/to/file.ttf\"), url(\"path/to/file.svg\")',\n * }\n */\n\n\nfunction fontFace(_ref) {\n var fontFamily = _ref.fontFamily,\n fontFilePath = _ref.fontFilePath,\n fontStretch = _ref.fontStretch,\n fontStyle = _ref.fontStyle,\n fontVariant = _ref.fontVariant,\n fontWeight = _ref.fontWeight,\n _ref$fileFormats = _ref.fileFormats,\n fileFormats = _ref$fileFormats === void 0 ? ['eot', 'woff2', 'woff', 'ttf', 'svg'] : _ref$fileFormats,\n _ref$formatHint = _ref.formatHint,\n formatHint = _ref$formatHint === void 0 ? false : _ref$formatHint,\n _ref$localFonts = _ref.localFonts,\n localFonts = _ref$localFonts === void 0 ? [fontFamily] : _ref$localFonts,\n unicodeRange = _ref.unicodeRange,\n fontDisplay = _ref.fontDisplay,\n fontVariationSettings = _ref.fontVariationSettings,\n fontFeatureSettings = _ref.fontFeatureSettings;\n // Error Handling\n if (!fontFamily) throw new PolishedError(55);\n\n if (!fontFilePath && !localFonts) {\n throw new PolishedError(52);\n }\n\n if (localFonts && !Array.isArray(localFonts)) {\n throw new PolishedError(53);\n }\n\n if (!Array.isArray(fileFormats)) {\n throw new PolishedError(54);\n }\n\n var fontFaceDeclaration = {\n '@font-face': {\n fontFamily: fontFamily,\n src: generateSources(fontFilePath, localFonts, fileFormats, formatHint),\n unicodeRange: unicodeRange,\n fontStretch: fontStretch,\n fontStyle: fontStyle,\n fontVariant: fontVariant,\n fontWeight: fontWeight,\n fontDisplay: fontDisplay,\n fontVariationSettings: fontVariationSettings,\n fontFeatureSettings: fontFeatureSettings\n }\n }; // Removes undefined fields for cleaner css object.\n\n return JSON.parse(JSON.stringify(fontFaceDeclaration));\n}\n\n/**\n * CSS to hide text to show a background image in a SEO-friendly way.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * 'backgroundImage': 'url(logo.png)',\n * ...hideText(),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * backgroundImage: url(logo.png);\n * ${hideText()};\n * `\n *\n * // CSS as JS Output\n *\n * 'div': {\n * 'backgroundImage': 'url(logo.png)',\n * 'textIndent': '101%',\n * 'overflow': 'hidden',\n * 'whiteSpace': 'nowrap',\n * }\n */\nfunction hideText() {\n return {\n textIndent: '101%',\n overflow: 'hidden',\n whiteSpace: 'nowrap'\n };\n}\n\n/**\n * CSS to hide content visually but remain accessible to screen readers.\n * from [HTML5 Boilerplate](https://github.com/h5bp/html5-boilerplate/blob/9a176f57af1cfe8ec70300da4621fb9b07e5fa31/src/css/main.css#L121)\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * ...hideVisually(),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${hideVisually()};\n * `\n *\n * // CSS as JS Output\n *\n * 'div': {\n * 'border': '0',\n * 'clip': 'rect(0 0 0 0)',\n * 'height': '1px',\n * 'margin': '-1px',\n * 'overflow': 'hidden',\n * 'padding': '0',\n * 'position': 'absolute',\n * 'whiteSpace': 'nowrap',\n * 'width': '1px',\n * }\n */\nfunction hideVisually() {\n return {\n border: '0',\n clip: 'rect(0 0 0 0)',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: '0',\n position: 'absolute',\n whiteSpace: 'nowrap',\n width: '1px'\n };\n}\n\n/**\n * Generates a media query to target HiDPI devices.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * [hiDPI(1.5)]: {\n * width: 200px;\n * }\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${hiDPI(1.5)} {\n * width: 200px;\n * }\n * `\n *\n * // CSS as JS Output\n *\n * '@media only screen and (-webkit-min-device-pixel-ratio: 1.5),\n * only screen and (min--moz-device-pixel-ratio: 1.5),\n * only screen and (-o-min-device-pixel-ratio: 1.5/1),\n * only screen and (min-resolution: 144dpi),\n * only screen and (min-resolution: 1.5dppx)': {\n * 'width': '200px',\n * }\n */\nfunction hiDPI(ratio) {\n if (ratio === void 0) {\n ratio = 1.3;\n }\n\n return \"\\n @media only screen and (-webkit-min-device-pixel-ratio: \" + ratio + \"),\\n only screen and (min--moz-device-pixel-ratio: \" + ratio + \"),\\n only screen and (-o-min-device-pixel-ratio: \" + ratio + \"/1),\\n only screen and (min-resolution: \" + Math.round(ratio * 96) + \"dpi),\\n only screen and (min-resolution: \" + ratio + \"dppx)\\n \";\n}\n\nfunction constructGradientValue(literals) {\n var template = '';\n\n for (var _len = arguments.length, substitutions = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n substitutions[_key - 1] = arguments[_key];\n }\n\n for (var i = 0; i < literals.length; i += 1) {\n template += literals[i];\n\n if (i === substitutions.length - 1 && substitutions[i]) {\n var definedValues = substitutions.filter(function (substitute) {\n return !!substitute;\n }); // Adds leading coma if properties preceed color-stops\n\n if (definedValues.length > 1) {\n template = template.slice(0, -1);\n template += \", \" + substitutions[i]; // No trailing space if color-stops is the only param provided\n } else if (definedValues.length === 1) {\n template += \"\" + substitutions[i];\n }\n } else if (substitutions[i]) {\n template += substitutions[i] + \" \";\n }\n }\n\n return template.trim();\n}\n\nvar _templateObject$1;\n\n/**\n * CSS for declaring a linear gradient, including a fallback background-color. The fallback is either the first color-stop or an explicitly passed fallback color.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * ...linearGradient({\n colorStops: ['#00FFFF 0%', 'rgba(0, 0, 255, 0) 50%', '#0000FF 95%'],\n toDirection: 'to top right',\n fallback: '#FFF',\n })\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${linearGradient({\n colorStops: ['#00FFFF 0%', 'rgba(0, 0, 255, 0) 50%', '#0000FF 95%'],\n toDirection: 'to top right',\n fallback: '#FFF',\n })}\n *`\n *\n * // CSS as JS Output\n *\n * div: {\n * 'backgroundColor': '#FFF',\n * 'backgroundImage': 'linear-gradient(to top right, #00FFFF 0%, rgba(0, 0, 255, 0) 50%, #0000FF 95%)',\n * }\n */\nfunction linearGradient(_ref) {\n var colorStops = _ref.colorStops,\n fallback = _ref.fallback,\n _ref$toDirection = _ref.toDirection,\n toDirection = _ref$toDirection === void 0 ? '' : _ref$toDirection;\n\n if (!colorStops || colorStops.length < 2) {\n throw new PolishedError(56);\n }\n\n return {\n backgroundColor: fallback || colorStops[0].replace(/,\\s+/g, ',').split(' ')[0].replace(/,(?=\\S)/g, ', '),\n backgroundImage: constructGradientValue(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose([\"linear-gradient(\", \"\", \")\"])), toDirection, colorStops.join(', ').replace(/,(?=\\S)/g, ', '))\n };\n}\n\n/**\n * CSS to normalize abnormalities across browsers (normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css)\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * ...normalize(),\n * }\n *\n * // styled-components usage\n * const GlobalStyle = createGlobalStyle`${normalize()}`\n *\n * // CSS as JS Output\n *\n * html {\n * lineHeight: 1.15,\n * textSizeAdjust: 100%,\n * } ...\n */\nfunction normalize() {\n var _ref;\n\n return [(_ref = {\n html: {\n lineHeight: '1.15',\n textSizeAdjust: '100%'\n },\n body: {\n margin: '0'\n },\n main: {\n display: 'block'\n },\n h1: {\n fontSize: '2em',\n margin: '0.67em 0'\n },\n hr: {\n boxSizing: 'content-box',\n height: '0',\n overflow: 'visible'\n },\n pre: {\n fontFamily: 'monospace, monospace',\n fontSize: '1em'\n },\n a: {\n backgroundColor: 'transparent'\n },\n 'abbr[title]': {\n borderBottom: 'none',\n textDecoration: 'underline'\n }\n }, _ref[\"b,\\n strong\"] = {\n fontWeight: 'bolder'\n }, _ref[\"code,\\n kbd,\\n samp\"] = {\n fontFamily: 'monospace, monospace',\n fontSize: '1em'\n }, _ref.small = {\n fontSize: '80%'\n }, _ref[\"sub,\\n sup\"] = {\n fontSize: '75%',\n lineHeight: '0',\n position: 'relative',\n verticalAlign: 'baseline'\n }, _ref.sub = {\n bottom: '-0.25em'\n }, _ref.sup = {\n top: '-0.5em'\n }, _ref.img = {\n borderStyle: 'none'\n }, _ref[\"button,\\n input,\\n optgroup,\\n select,\\n textarea\"] = {\n fontFamily: 'inherit',\n fontSize: '100%',\n lineHeight: '1.15',\n margin: '0'\n }, _ref[\"button,\\n input\"] = {\n overflow: 'visible'\n }, _ref[\"button,\\n select\"] = {\n textTransform: 'none'\n }, _ref[\"button,\\n html [type=\\\"button\\\"],\\n [type=\\\"reset\\\"],\\n [type=\\\"submit\\\"]\"] = {\n WebkitAppearance: 'button'\n }, _ref[\"button::-moz-focus-inner,\\n [type=\\\"button\\\"]::-moz-focus-inner,\\n [type=\\\"reset\\\"]::-moz-focus-inner,\\n [type=\\\"submit\\\"]::-moz-focus-inner\"] = {\n borderStyle: 'none',\n padding: '0'\n }, _ref[\"button:-moz-focusring,\\n [type=\\\"button\\\"]:-moz-focusring,\\n [type=\\\"reset\\\"]:-moz-focusring,\\n [type=\\\"submit\\\"]:-moz-focusring\"] = {\n outline: '1px dotted ButtonText'\n }, _ref.fieldset = {\n padding: '0.35em 0.625em 0.75em'\n }, _ref.legend = {\n boxSizing: 'border-box',\n color: 'inherit',\n display: 'table',\n maxWidth: '100%',\n padding: '0',\n whiteSpace: 'normal'\n }, _ref.progress = {\n verticalAlign: 'baseline'\n }, _ref.textarea = {\n overflow: 'auto'\n }, _ref[\"[type=\\\"checkbox\\\"],\\n [type=\\\"radio\\\"]\"] = {\n boxSizing: 'border-box',\n padding: '0'\n }, _ref[\"[type=\\\"number\\\"]::-webkit-inner-spin-button,\\n [type=\\\"number\\\"]::-webkit-outer-spin-button\"] = {\n height: 'auto'\n }, _ref['[type=\"search\"]'] = {\n WebkitAppearance: 'textfield',\n outlineOffset: '-2px'\n }, _ref['[type=\"search\"]::-webkit-search-decoration'] = {\n WebkitAppearance: 'none'\n }, _ref['::-webkit-file-upload-button'] = {\n WebkitAppearance: 'button',\n font: 'inherit'\n }, _ref.details = {\n display: 'block'\n }, _ref.summary = {\n display: 'list-item'\n }, _ref.template = {\n display: 'none'\n }, _ref['[hidden]'] = {\n display: 'none'\n }, _ref), {\n 'abbr[title]': {\n textDecoration: 'underline dotted'\n }\n }];\n}\n\nvar _templateObject;\n\n/**\n * CSS for declaring a radial gradient, including a fallback background-color. The fallback is either the first color-stop or an explicitly passed fallback color.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * ...radialGradient({\n * colorStops: ['#00FFFF 0%', 'rgba(0, 0, 255, 0) 50%', '#0000FF 95%'],\n * extent: 'farthest-corner at 45px 45px',\n * position: 'center',\n * shape: 'ellipse',\n * })\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${radialGradient({\n * colorStops: ['#00FFFF 0%', 'rgba(0, 0, 255, 0) 50%', '#0000FF 95%'],\n * extent: 'farthest-corner at 45px 45px',\n * position: 'center',\n * shape: 'ellipse',\n * })}\n *`\n *\n * // CSS as JS Output\n *\n * div: {\n * 'backgroundColor': '#00FFFF',\n * 'backgroundImage': 'radial-gradient(center ellipse farthest-corner at 45px 45px, #00FFFF 0%, rgba(0, 0, 255, 0) 50%, #0000FF 95%)',\n * }\n */\nfunction radialGradient(_ref) {\n var colorStops = _ref.colorStops,\n _ref$extent = _ref.extent,\n extent = _ref$extent === void 0 ? '' : _ref$extent,\n fallback = _ref.fallback,\n _ref$position = _ref.position,\n position = _ref$position === void 0 ? '' : _ref$position,\n _ref$shape = _ref.shape,\n shape = _ref$shape === void 0 ? '' : _ref$shape;\n\n if (!colorStops || colorStops.length < 2) {\n throw new PolishedError(57);\n }\n\n return {\n backgroundColor: fallback || colorStops[0].split(' ')[0],\n backgroundImage: constructGradientValue(_templateObject || (_templateObject = _taggedTemplateLiteralLoose([\"radial-gradient(\", \"\", \"\", \"\", \")\"])), position, shape, extent, colorStops.join(', '))\n };\n}\n\n/**\n * A helper to generate a retina background image and non-retina\n * background image. The retina background image will output to a HiDPI media query. The mixin uses\n * a _2x.png filename suffix by default.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * ...retinaImage('my-img')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${retinaImage('my-img')}\n * `\n *\n * // CSS as JS Output\n * div {\n * backgroundImage: 'url(my-img.png)',\n * '@media only screen and (-webkit-min-device-pixel-ratio: 1.3),\n * only screen and (min--moz-device-pixel-ratio: 1.3),\n * only screen and (-o-min-device-pixel-ratio: 1.3/1),\n * only screen and (min-resolution: 144dpi),\n * only screen and (min-resolution: 1.5dppx)': {\n * backgroundImage: 'url(my-img_2x.png)',\n * }\n * }\n */\nfunction retinaImage(filename, backgroundSize, extension, retinaFilename, retinaSuffix) {\n var _ref;\n\n if (extension === void 0) {\n extension = 'png';\n }\n\n if (retinaSuffix === void 0) {\n retinaSuffix = '_2x';\n }\n\n if (!filename) {\n throw new PolishedError(58);\n } // Replace the dot at the beginning of the passed extension if one exists\n\n\n var ext = extension.replace(/^\\./, '');\n var rFilename = retinaFilename ? retinaFilename + \".\" + ext : \"\" + filename + retinaSuffix + \".\" + ext;\n return _ref = {\n backgroundImage: \"url(\" + filename + \".\" + ext + \")\"\n }, _ref[hiDPI()] = _extends({\n backgroundImage: \"url(\" + rFilename + \")\"\n }, backgroundSize ? {\n backgroundSize: backgroundSize\n } : {}), _ref;\n}\n\n/* eslint-disable key-spacing */\nvar functionsMap = {\n easeInBack: 'cubic-bezier(0.600, -0.280, 0.735, 0.045)',\n easeInCirc: 'cubic-bezier(0.600, 0.040, 0.980, 0.335)',\n easeInCubic: 'cubic-bezier(0.550, 0.055, 0.675, 0.190)',\n easeInExpo: 'cubic-bezier(0.950, 0.050, 0.795, 0.035)',\n easeInQuad: 'cubic-bezier(0.550, 0.085, 0.680, 0.530)',\n easeInQuart: 'cubic-bezier(0.895, 0.030, 0.685, 0.220)',\n easeInQuint: 'cubic-bezier(0.755, 0.050, 0.855, 0.060)',\n easeInSine: 'cubic-bezier(0.470, 0.000, 0.745, 0.715)',\n easeOutBack: 'cubic-bezier(0.175, 0.885, 0.320, 1.275)',\n easeOutCubic: 'cubic-bezier(0.215, 0.610, 0.355, 1.000)',\n easeOutCirc: 'cubic-bezier(0.075, 0.820, 0.165, 1.000)',\n easeOutExpo: 'cubic-bezier(0.190, 1.000, 0.220, 1.000)',\n easeOutQuad: 'cubic-bezier(0.250, 0.460, 0.450, 0.940)',\n easeOutQuart: 'cubic-bezier(0.165, 0.840, 0.440, 1.000)',\n easeOutQuint: 'cubic-bezier(0.230, 1.000, 0.320, 1.000)',\n easeOutSine: 'cubic-bezier(0.390, 0.575, 0.565, 1.000)',\n easeInOutBack: 'cubic-bezier(0.680, -0.550, 0.265, 1.550)',\n easeInOutCirc: 'cubic-bezier(0.785, 0.135, 0.150, 0.860)',\n easeInOutCubic: 'cubic-bezier(0.645, 0.045, 0.355, 1.000)',\n easeInOutExpo: 'cubic-bezier(1.000, 0.000, 0.000, 1.000)',\n easeInOutQuad: 'cubic-bezier(0.455, 0.030, 0.515, 0.955)',\n easeInOutQuart: 'cubic-bezier(0.770, 0.000, 0.175, 1.000)',\n easeInOutQuint: 'cubic-bezier(0.860, 0.000, 0.070, 1.000)',\n easeInOutSine: 'cubic-bezier(0.445, 0.050, 0.550, 0.950)'\n};\n/* eslint-enable key-spacing */\n\nfunction getTimingFunction(functionName) {\n return functionsMap[functionName];\n}\n/**\n * String to represent common easing functions as demonstrated here: (github.com/jaukia/easie).\n *\n * @deprecated - This will be deprecated in v5 in favor of `easeIn`, `easeOut`, `easeInOut`.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * 'transitionTimingFunction': timingFunctions('easeInQuad')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * transitionTimingFunction: ${timingFunctions('easeInQuad')};\n * `\n *\n * // CSS as JS Output\n *\n * 'div': {\n * 'transitionTimingFunction': 'cubic-bezier(0.550, 0.085, 0.680, 0.530)',\n * }\n */\n\n\nfunction timingFunctions(timingFunction) {\n return getTimingFunction(timingFunction);\n}\n\nvar getBorderWidth = function getBorderWidth(pointingDirection, height, width) {\n var fullWidth = \"\" + width[0] + (width[1] || '');\n var halfWidth = \"\" + width[0] / 2 + (width[1] || '');\n var fullHeight = \"\" + height[0] + (height[1] || '');\n var halfHeight = \"\" + height[0] / 2 + (height[1] || '');\n\n switch (pointingDirection) {\n case 'top':\n return \"0 \" + halfWidth + \" \" + fullHeight + \" \" + halfWidth;\n\n case 'topLeft':\n return fullWidth + \" \" + fullHeight + \" 0 0\";\n\n case 'left':\n return halfHeight + \" \" + fullWidth + \" \" + halfHeight + \" 0\";\n\n case 'bottomLeft':\n return fullWidth + \" 0 0 \" + fullHeight;\n\n case 'bottom':\n return fullHeight + \" \" + halfWidth + \" 0 \" + halfWidth;\n\n case 'bottomRight':\n return \"0 0 \" + fullWidth + \" \" + fullHeight;\n\n case 'right':\n return halfHeight + \" 0 \" + halfHeight + \" \" + fullWidth;\n\n case 'topRight':\n default:\n return \"0 \" + fullWidth + \" \" + fullHeight + \" 0\";\n }\n};\n\nvar getBorderColor = function getBorderColor(pointingDirection, foregroundColor) {\n switch (pointingDirection) {\n case 'top':\n case 'bottomRight':\n return {\n borderBottomColor: foregroundColor\n };\n\n case 'right':\n case 'bottomLeft':\n return {\n borderLeftColor: foregroundColor\n };\n\n case 'bottom':\n case 'topLeft':\n return {\n borderTopColor: foregroundColor\n };\n\n case 'left':\n case 'topRight':\n return {\n borderRightColor: foregroundColor\n };\n\n default:\n throw new PolishedError(59);\n }\n};\n/**\n * CSS to represent triangle with any pointing direction with an optional background color.\n *\n * @example\n * // Styles as object usage\n *\n * const styles = {\n * ...triangle({ pointingDirection: 'right', width: '100px', height: '100px', foregroundColor: 'red' })\n * }\n *\n *\n * // styled-components usage\n * const div = styled.div`\n * ${triangle({ pointingDirection: 'right', width: '100px', height: '100px', foregroundColor: 'red' })}\n *\n *\n * // CSS as JS Output\n *\n * div: {\n * 'borderColor': 'transparent transparent transparent red',\n * 'borderStyle': 'solid',\n * 'borderWidth': '50px 0 50px 100px',\n * 'height': '0',\n * 'width': '0',\n * }\n */\n\n\nfunction triangle(_ref) {\n var pointingDirection = _ref.pointingDirection,\n height = _ref.height,\n width = _ref.width,\n foregroundColor = _ref.foregroundColor,\n _ref$backgroundColor = _ref.backgroundColor,\n backgroundColor = _ref$backgroundColor === void 0 ? 'transparent' : _ref$backgroundColor;\n var widthAndUnit = getValueAndUnit(width);\n var heightAndUnit = getValueAndUnit(height);\n\n if (isNaN(heightAndUnit[0]) || isNaN(widthAndUnit[0])) {\n throw new PolishedError(60);\n }\n\n return _extends({\n width: '0',\n height: '0',\n borderColor: backgroundColor\n }, getBorderColor(pointingDirection, foregroundColor), {\n borderStyle: 'solid',\n borderWidth: getBorderWidth(pointingDirection, heightAndUnit, widthAndUnit)\n });\n}\n\n/**\n * Provides an easy way to change the `wordWrap` property.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * ...wordWrap('break-word')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${wordWrap('break-word')}\n * `\n *\n * // CSS as JS Output\n *\n * const styles = {\n * overflowWrap: 'break-word',\n * wordWrap: 'break-word',\n * wordBreak: 'break-all',\n * }\n */\nfunction wordWrap(wrap) {\n if (wrap === void 0) {\n wrap = 'break-word';\n }\n\n var wordBreak = wrap === 'break-word' ? 'break-all' : wrap;\n return {\n overflowWrap: wrap,\n wordWrap: wrap,\n wordBreak: wordBreak\n };\n}\n\nfunction colorToInt(color) {\n return Math.round(color * 255);\n}\n\nfunction convertToInt(red, green, blue) {\n return colorToInt(red) + \",\" + colorToInt(green) + \",\" + colorToInt(blue);\n}\n\nfunction hslToRgb(hue, saturation, lightness, convert) {\n if (convert === void 0) {\n convert = convertToInt;\n }\n\n if (saturation === 0) {\n // achromatic\n return convert(lightness, lightness, lightness);\n } // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV\n\n\n var huePrime = (hue % 360 + 360) % 360 / 60;\n var chroma = (1 - Math.abs(2 * lightness - 1)) * saturation;\n var secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));\n var red = 0;\n var green = 0;\n var blue = 0;\n\n if (huePrime >= 0 && huePrime < 1) {\n red = chroma;\n green = secondComponent;\n } else if (huePrime >= 1 && huePrime < 2) {\n red = secondComponent;\n green = chroma;\n } else if (huePrime >= 2 && huePrime < 3) {\n green = chroma;\n blue = secondComponent;\n } else if (huePrime >= 3 && huePrime < 4) {\n green = secondComponent;\n blue = chroma;\n } else if (huePrime >= 4 && huePrime < 5) {\n red = secondComponent;\n blue = chroma;\n } else if (huePrime >= 5 && huePrime < 6) {\n red = chroma;\n blue = secondComponent;\n }\n\n var lightnessModification = lightness - chroma / 2;\n var finalRed = red + lightnessModification;\n var finalGreen = green + lightnessModification;\n var finalBlue = blue + lightnessModification;\n return convert(finalRed, finalGreen, finalBlue);\n}\n\nvar namedColorMap = {\n aliceblue: 'f0f8ff',\n antiquewhite: 'faebd7',\n aqua: '00ffff',\n aquamarine: '7fffd4',\n azure: 'f0ffff',\n beige: 'f5f5dc',\n bisque: 'ffe4c4',\n black: '000',\n blanchedalmond: 'ffebcd',\n blue: '0000ff',\n blueviolet: '8a2be2',\n brown: 'a52a2a',\n burlywood: 'deb887',\n cadetblue: '5f9ea0',\n chartreuse: '7fff00',\n chocolate: 'd2691e',\n coral: 'ff7f50',\n cornflowerblue: '6495ed',\n cornsilk: 'fff8dc',\n crimson: 'dc143c',\n cyan: '00ffff',\n darkblue: '00008b',\n darkcyan: '008b8b',\n darkgoldenrod: 'b8860b',\n darkgray: 'a9a9a9',\n darkgreen: '006400',\n darkgrey: 'a9a9a9',\n darkkhaki: 'bdb76b',\n darkmagenta: '8b008b',\n darkolivegreen: '556b2f',\n darkorange: 'ff8c00',\n darkorchid: '9932cc',\n darkred: '8b0000',\n darksalmon: 'e9967a',\n darkseagreen: '8fbc8f',\n darkslateblue: '483d8b',\n darkslategray: '2f4f4f',\n darkslategrey: '2f4f4f',\n darkturquoise: '00ced1',\n darkviolet: '9400d3',\n deeppink: 'ff1493',\n deepskyblue: '00bfff',\n dimgray: '696969',\n dimgrey: '696969',\n dodgerblue: '1e90ff',\n firebrick: 'b22222',\n floralwhite: 'fffaf0',\n forestgreen: '228b22',\n fuchsia: 'ff00ff',\n gainsboro: 'dcdcdc',\n ghostwhite: 'f8f8ff',\n gold: 'ffd700',\n goldenrod: 'daa520',\n gray: '808080',\n green: '008000',\n greenyellow: 'adff2f',\n grey: '808080',\n honeydew: 'f0fff0',\n hotpink: 'ff69b4',\n indianred: 'cd5c5c',\n indigo: '4b0082',\n ivory: 'fffff0',\n khaki: 'f0e68c',\n lavender: 'e6e6fa',\n lavenderblush: 'fff0f5',\n lawngreen: '7cfc00',\n lemonchiffon: 'fffacd',\n lightblue: 'add8e6',\n lightcoral: 'f08080',\n lightcyan: 'e0ffff',\n lightgoldenrodyellow: 'fafad2',\n lightgray: 'd3d3d3',\n lightgreen: '90ee90',\n lightgrey: 'd3d3d3',\n lightpink: 'ffb6c1',\n lightsalmon: 'ffa07a',\n lightseagreen: '20b2aa',\n lightskyblue: '87cefa',\n lightslategray: '789',\n lightslategrey: '789',\n lightsteelblue: 'b0c4de',\n lightyellow: 'ffffe0',\n lime: '0f0',\n limegreen: '32cd32',\n linen: 'faf0e6',\n magenta: 'f0f',\n maroon: '800000',\n mediumaquamarine: '66cdaa',\n mediumblue: '0000cd',\n mediumorchid: 'ba55d3',\n mediumpurple: '9370db',\n mediumseagreen: '3cb371',\n mediumslateblue: '7b68ee',\n mediumspringgreen: '00fa9a',\n mediumturquoise: '48d1cc',\n mediumvioletred: 'c71585',\n midnightblue: '191970',\n mintcream: 'f5fffa',\n mistyrose: 'ffe4e1',\n moccasin: 'ffe4b5',\n navajowhite: 'ffdead',\n navy: '000080',\n oldlace: 'fdf5e6',\n olive: '808000',\n olivedrab: '6b8e23',\n orange: 'ffa500',\n orangered: 'ff4500',\n orchid: 'da70d6',\n palegoldenrod: 'eee8aa',\n palegreen: '98fb98',\n paleturquoise: 'afeeee',\n palevioletred: 'db7093',\n papayawhip: 'ffefd5',\n peachpuff: 'ffdab9',\n peru: 'cd853f',\n pink: 'ffc0cb',\n plum: 'dda0dd',\n powderblue: 'b0e0e6',\n purple: '800080',\n rebeccapurple: '639',\n red: 'f00',\n rosybrown: 'bc8f8f',\n royalblue: '4169e1',\n saddlebrown: '8b4513',\n salmon: 'fa8072',\n sandybrown: 'f4a460',\n seagreen: '2e8b57',\n seashell: 'fff5ee',\n sienna: 'a0522d',\n silver: 'c0c0c0',\n skyblue: '87ceeb',\n slateblue: '6a5acd',\n slategray: '708090',\n slategrey: '708090',\n snow: 'fffafa',\n springgreen: '00ff7f',\n steelblue: '4682b4',\n tan: 'd2b48c',\n teal: '008080',\n thistle: 'd8bfd8',\n tomato: 'ff6347',\n turquoise: '40e0d0',\n violet: 'ee82ee',\n wheat: 'f5deb3',\n white: 'fff',\n whitesmoke: 'f5f5f5',\n yellow: 'ff0',\n yellowgreen: '9acd32'\n};\n/**\n * Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color.\n * @private\n */\n\nfunction nameToHex(color) {\n if (typeof color !== 'string') return color;\n var normalizedColorName = color.toLowerCase();\n return namedColorMap[normalizedColorName] ? \"#\" + namedColorMap[normalizedColorName] : color;\n}\n\nvar hexRegex = /^#[a-fA-F0-9]{6}$/;\nvar hexRgbaRegex = /^#[a-fA-F0-9]{8}$/;\nvar reducedHexRegex = /^#[a-fA-F0-9]{3}$/;\nvar reducedRgbaHexRegex = /^#[a-fA-F0-9]{4}$/;\nvar rgbRegex = /^rgb\\(\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*\\)$/i;\nvar rgbaRegex = /^rgb(?:a)?\\(\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*(?:,|\\/)\\s*([-+]?\\d*[.]?\\d+[%]?)\\s*\\)$/i;\nvar hslRegex = /^hsl\\(\\s*(\\d{0,3}[.]?[0-9]+(?:deg)?)\\s*(?:,)?\\s*(\\d{1,3}[.]?[0-9]?)%\\s*(?:,)?\\s*(\\d{1,3}[.]?[0-9]?)%\\s*\\)$/i;\nvar hslaRegex = /^hsl(?:a)?\\(\\s*(\\d{0,3}[.]?[0-9]+(?:deg)?)\\s*(?:,)?\\s*(\\d{1,3}[.]?[0-9]?)%\\s*(?:,)?\\s*(\\d{1,3}[.]?[0-9]?)%\\s*(?:,|\\/)\\s*([-+]?\\d*[.]?\\d+[%]?)\\s*\\)$/i;\n/**\n * Returns an RgbColor or RgbaColor object. This utility function is only useful\n * if want to extract a color component. With the color util `toColorString` you\n * can convert a RgbColor or RgbaColor object back to a string.\n *\n * @example\n * // Assigns `{ red: 255, green: 0, blue: 0 }` to color1\n * const color1 = parseToRgb('rgb(255, 0, 0)');\n * // Assigns `{ red: 92, green: 102, blue: 112, alpha: 0.75 }` to color2\n * const color2 = parseToRgb('hsla(210, 10%, 40%, 0.75)');\n */\n\nfunction parseToRgb(color) {\n if (typeof color !== 'string') {\n throw new PolishedError(3);\n }\n\n var normalizedColor = nameToHex(color);\n\n if (normalizedColor.match(hexRegex)) {\n return {\n red: parseInt(\"\" + normalizedColor[1] + normalizedColor[2], 16),\n green: parseInt(\"\" + normalizedColor[3] + normalizedColor[4], 16),\n blue: parseInt(\"\" + normalizedColor[5] + normalizedColor[6], 16)\n };\n }\n\n if (normalizedColor.match(hexRgbaRegex)) {\n var alpha = parseFloat((parseInt(\"\" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2));\n return {\n red: parseInt(\"\" + normalizedColor[1] + normalizedColor[2], 16),\n green: parseInt(\"\" + normalizedColor[3] + normalizedColor[4], 16),\n blue: parseInt(\"\" + normalizedColor[5] + normalizedColor[6], 16),\n alpha: alpha\n };\n }\n\n if (normalizedColor.match(reducedHexRegex)) {\n return {\n red: parseInt(\"\" + normalizedColor[1] + normalizedColor[1], 16),\n green: parseInt(\"\" + normalizedColor[2] + normalizedColor[2], 16),\n blue: parseInt(\"\" + normalizedColor[3] + normalizedColor[3], 16)\n };\n }\n\n if (normalizedColor.match(reducedRgbaHexRegex)) {\n var _alpha = parseFloat((parseInt(\"\" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));\n\n return {\n red: parseInt(\"\" + normalizedColor[1] + normalizedColor[1], 16),\n green: parseInt(\"\" + normalizedColor[2] + normalizedColor[2], 16),\n blue: parseInt(\"\" + normalizedColor[3] + normalizedColor[3], 16),\n alpha: _alpha\n };\n }\n\n var rgbMatched = rgbRegex.exec(normalizedColor);\n\n if (rgbMatched) {\n return {\n red: parseInt(\"\" + rgbMatched[1], 10),\n green: parseInt(\"\" + rgbMatched[2], 10),\n blue: parseInt(\"\" + rgbMatched[3], 10)\n };\n }\n\n var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50));\n\n if (rgbaMatched) {\n return {\n red: parseInt(\"\" + rgbaMatched[1], 10),\n green: parseInt(\"\" + rgbaMatched[2], 10),\n blue: parseInt(\"\" + rgbaMatched[3], 10),\n alpha: parseFloat(\"\" + rgbaMatched[4]) > 1 ? parseFloat(\"\" + rgbaMatched[4]) / 100 : parseFloat(\"\" + rgbaMatched[4])\n };\n }\n\n var hslMatched = hslRegex.exec(normalizedColor);\n\n if (hslMatched) {\n var hue = parseInt(\"\" + hslMatched[1], 10);\n var saturation = parseInt(\"\" + hslMatched[2], 10) / 100;\n var lightness = parseInt(\"\" + hslMatched[3], 10) / 100;\n var rgbColorString = \"rgb(\" + hslToRgb(hue, saturation, lightness) + \")\";\n var hslRgbMatched = rgbRegex.exec(rgbColorString);\n\n if (!hslRgbMatched) {\n throw new PolishedError(4, normalizedColor, rgbColorString);\n }\n\n return {\n red: parseInt(\"\" + hslRgbMatched[1], 10),\n green: parseInt(\"\" + hslRgbMatched[2], 10),\n blue: parseInt(\"\" + hslRgbMatched[3], 10)\n };\n }\n\n var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));\n\n if (hslaMatched) {\n var _hue = parseInt(\"\" + hslaMatched[1], 10);\n\n var _saturation = parseInt(\"\" + hslaMatched[2], 10) / 100;\n\n var _lightness = parseInt(\"\" + hslaMatched[3], 10) / 100;\n\n var _rgbColorString = \"rgb(\" + hslToRgb(_hue, _saturation, _lightness) + \")\";\n\n var _hslRgbMatched = rgbRegex.exec(_rgbColorString);\n\n if (!_hslRgbMatched) {\n throw new PolishedError(4, normalizedColor, _rgbColorString);\n }\n\n return {\n red: parseInt(\"\" + _hslRgbMatched[1], 10),\n green: parseInt(\"\" + _hslRgbMatched[2], 10),\n blue: parseInt(\"\" + _hslRgbMatched[3], 10),\n alpha: parseFloat(\"\" + hslaMatched[4]) > 1 ? parseFloat(\"\" + hslaMatched[4]) / 100 : parseFloat(\"\" + hslaMatched[4])\n };\n }\n\n throw new PolishedError(5);\n}\n\nfunction rgbToHsl(color) {\n // make sure rgb are contained in a set of [0, 255]\n var red = color.red / 255;\n var green = color.green / 255;\n var blue = color.blue / 255;\n var max = Math.max(red, green, blue);\n var min = Math.min(red, green, blue);\n var lightness = (max + min) / 2;\n\n if (max === min) {\n // achromatic\n if (color.alpha !== undefined) {\n return {\n hue: 0,\n saturation: 0,\n lightness: lightness,\n alpha: color.alpha\n };\n } else {\n return {\n hue: 0,\n saturation: 0,\n lightness: lightness\n };\n }\n }\n\n var hue;\n var delta = max - min;\n var saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);\n\n switch (max) {\n case red:\n hue = (green - blue) / delta + (green < blue ? 6 : 0);\n break;\n\n case green:\n hue = (blue - red) / delta + 2;\n break;\n\n default:\n // blue case\n hue = (red - green) / delta + 4;\n break;\n }\n\n hue *= 60;\n\n if (color.alpha !== undefined) {\n return {\n hue: hue,\n saturation: saturation,\n lightness: lightness,\n alpha: color.alpha\n };\n }\n\n return {\n hue: hue,\n saturation: saturation,\n lightness: lightness\n };\n}\n\n/**\n * Returns an HslColor or HslaColor object. This utility function is only useful\n * if want to extract a color component. With the color util `toColorString` you\n * can convert a HslColor or HslaColor object back to a string.\n *\n * @example\n * // Assigns `{ hue: 0, saturation: 1, lightness: 0.5 }` to color1\n * const color1 = parseToHsl('rgb(255, 0, 0)');\n * // Assigns `{ hue: 128, saturation: 1, lightness: 0.5, alpha: 0.75 }` to color2\n * const color2 = parseToHsl('hsla(128, 100%, 50%, 0.75)');\n */\nfunction parseToHsl(color) {\n // Note: At a later stage we can optimize this function as right now a hsl\n // color would be parsed converted to rgb values and converted back to hsl.\n return rgbToHsl(parseToRgb(color));\n}\n\n/**\n * Reduces hex values if possible e.g. #ff8866 to #f86\n * @private\n */\nvar reduceHexValue = function reduceHexValue(value) {\n if (value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6]) {\n return \"#\" + value[1] + value[3] + value[5];\n }\n\n return value;\n};\n\nvar reduceHexValue$1 = reduceHexValue;\n\nfunction numberToHex(value) {\n var hex = value.toString(16);\n return hex.length === 1 ? \"0\" + hex : hex;\n}\n\nfunction colorToHex(color) {\n return numberToHex(Math.round(color * 255));\n}\n\nfunction convertToHex(red, green, blue) {\n return reduceHexValue$1(\"#\" + colorToHex(red) + colorToHex(green) + colorToHex(blue));\n}\n\nfunction hslToHex(hue, saturation, lightness) {\n return hslToRgb(hue, saturation, lightness, convertToHex);\n}\n\n/**\n * Returns a string value for the color. The returned result is the smallest possible hex notation.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: hsl(359, 0.75, 0.4),\n * background: hsl({ hue: 360, saturation: 0.75, lightness: 0.4 }),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${hsl(359, 0.75, 0.4)};\n * background: ${hsl({ hue: 360, saturation: 0.75, lightness: 0.4 })};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * background: \"#b3191c\";\n * background: \"#b3191c\";\n * }\n */\nfunction hsl(value, saturation, lightness) {\n if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number') {\n return hslToHex(value, saturation, lightness);\n } else if (typeof value === 'object' && saturation === undefined && lightness === undefined) {\n return hslToHex(value.hue, value.saturation, value.lightness);\n }\n\n throw new PolishedError(1);\n}\n\n/**\n * Returns a string value for the color. The returned result is the smallest possible rgba or hex notation.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: hsla(359, 0.75, 0.4, 0.7),\n * background: hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 }),\n * background: hsla(359, 0.75, 0.4, 1),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${hsla(359, 0.75, 0.4, 0.7)};\n * background: ${hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 })};\n * background: ${hsla(359, 0.75, 0.4, 1)};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * background: \"rgba(179,25,28,0.7)\";\n * background: \"rgba(179,25,28,0.7)\";\n * background: \"#b3191c\";\n * }\n */\nfunction hsla(value, saturation, lightness, alpha) {\n if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number' && typeof alpha === 'number') {\n return alpha >= 1 ? hslToHex(value, saturation, lightness) : \"rgba(\" + hslToRgb(value, saturation, lightness) + \",\" + alpha + \")\";\n } else if (typeof value === 'object' && saturation === undefined && lightness === undefined && alpha === undefined) {\n return value.alpha >= 1 ? hslToHex(value.hue, value.saturation, value.lightness) : \"rgba(\" + hslToRgb(value.hue, value.saturation, value.lightness) + \",\" + value.alpha + \")\";\n }\n\n throw new PolishedError(2);\n}\n\n/**\n * Returns a string value for the color. The returned result is the smallest possible hex notation.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: rgb(255, 205, 100),\n * background: rgb({ red: 255, green: 205, blue: 100 }),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${rgb(255, 205, 100)};\n * background: ${rgb({ red: 255, green: 205, blue: 100 })};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * background: \"#ffcd64\";\n * background: \"#ffcd64\";\n * }\n */\nfunction rgb(value, green, blue) {\n if (typeof value === 'number' && typeof green === 'number' && typeof blue === 'number') {\n return reduceHexValue$1(\"#\" + numberToHex(value) + numberToHex(green) + numberToHex(blue));\n } else if (typeof value === 'object' && green === undefined && blue === undefined) {\n return reduceHexValue$1(\"#\" + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue));\n }\n\n throw new PolishedError(6);\n}\n\n/**\n * Returns a string value for the color. The returned result is the smallest possible rgba or hex notation.\n *\n * Can also be used to fade a color by passing a hex value or named CSS color along with an alpha value.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: rgba(255, 205, 100, 0.7),\n * background: rgba({ red: 255, green: 205, blue: 100, alpha: 0.7 }),\n * background: rgba(255, 205, 100, 1),\n * background: rgba('#ffffff', 0.4),\n * background: rgba('black', 0.7),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${rgba(255, 205, 100, 0.7)};\n * background: ${rgba({ red: 255, green: 205, blue: 100, alpha: 0.7 })};\n * background: ${rgba(255, 205, 100, 1)};\n * background: ${rgba('#ffffff', 0.4)};\n * background: ${rgba('black', 0.7)};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * background: \"rgba(255,205,100,0.7)\";\n * background: \"rgba(255,205,100,0.7)\";\n * background: \"#ffcd64\";\n * background: \"rgba(255,255,255,0.4)\";\n * background: \"rgba(0,0,0,0.7)\";\n * }\n */\nfunction rgba(firstValue, secondValue, thirdValue, fourthValue) {\n if (typeof firstValue === 'string' && typeof secondValue === 'number') {\n var rgbValue = parseToRgb(firstValue);\n return \"rgba(\" + rgbValue.red + \",\" + rgbValue.green + \",\" + rgbValue.blue + \",\" + secondValue + \")\";\n } else if (typeof firstValue === 'number' && typeof secondValue === 'number' && typeof thirdValue === 'number' && typeof fourthValue === 'number') {\n return fourthValue >= 1 ? rgb(firstValue, secondValue, thirdValue) : \"rgba(\" + firstValue + \",\" + secondValue + \",\" + thirdValue + \",\" + fourthValue + \")\";\n } else if (typeof firstValue === 'object' && secondValue === undefined && thirdValue === undefined && fourthValue === undefined) {\n return firstValue.alpha >= 1 ? rgb(firstValue.red, firstValue.green, firstValue.blue) : \"rgba(\" + firstValue.red + \",\" + firstValue.green + \",\" + firstValue.blue + \",\" + firstValue.alpha + \")\";\n }\n\n throw new PolishedError(7);\n}\n\nvar isRgb = function isRgb(color) {\n return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && (typeof color.alpha !== 'number' || typeof color.alpha === 'undefined');\n};\n\nvar isRgba = function isRgba(color) {\n return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && typeof color.alpha === 'number';\n};\n\nvar isHsl = function isHsl(color) {\n return typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number' && (typeof color.alpha !== 'number' || typeof color.alpha === 'undefined');\n};\n\nvar isHsla = function isHsla(color) {\n return typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number' && typeof color.alpha === 'number';\n};\n/**\n * Converts a RgbColor, RgbaColor, HslColor or HslaColor object to a color string.\n * This util is useful in case you only know on runtime which color object is\n * used. Otherwise we recommend to rely on `rgb`, `rgba`, `hsl` or `hsla`.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: toColorString({ red: 255, green: 205, blue: 100 }),\n * background: toColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 }),\n * background: toColorString({ hue: 240, saturation: 1, lightness: 0.5 }),\n * background: toColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 }),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${toColorString({ red: 255, green: 205, blue: 100 })};\n * background: ${toColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 })};\n * background: ${toColorString({ hue: 240, saturation: 1, lightness: 0.5 })};\n * background: ${toColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 })};\n * `\n *\n * // CSS in JS Output\n * element {\n * background: \"#ffcd64\";\n * background: \"rgba(255,205,100,0.72)\";\n * background: \"#00f\";\n * background: \"rgba(179,25,25,0.72)\";\n * }\n */\n\n\nfunction toColorString(color) {\n if (typeof color !== 'object') throw new PolishedError(8);\n if (isRgba(color)) return rgba(color);\n if (isRgb(color)) return rgb(color);\n if (isHsla(color)) return hsla(color);\n if (isHsl(color)) return hsl(color);\n throw new PolishedError(8);\n}\n\n// Type definitions taken from https://github.com/gcanti/flow-static-land/blob/master/src/Fun.js\n// eslint-disable-next-line no-unused-vars\n// eslint-disable-next-line no-unused-vars\n// eslint-disable-next-line no-redeclare\nfunction curried(f, length, acc) {\n return function fn() {\n // eslint-disable-next-line prefer-rest-params\n var combined = acc.concat(Array.prototype.slice.call(arguments));\n return combined.length >= length ? f.apply(this, combined) : curried(f, length, combined);\n };\n} // eslint-disable-next-line no-redeclare\n\n\nfunction curry(f) {\n // eslint-disable-line no-redeclare\n return curried(f, f.length, []);\n}\n\n/**\n * Changes the hue of the color. Hue is a number between 0 to 360. The first\n * argument for adjustHue is the amount of degrees the color is rotated around\n * the color wheel, always producing a positive hue value.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: adjustHue(180, '#448'),\n * background: adjustHue('180', 'rgba(101,100,205,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${adjustHue(180, '#448')};\n * background: ${adjustHue('180', 'rgba(101,100,205,0.7)')};\n * `\n *\n * // CSS in JS Output\n * element {\n * background: \"#888844\";\n * background: \"rgba(136,136,68,0.7)\";\n * }\n */\n\nfunction adjustHue(degree, color) {\n if (color === 'transparent') return color;\n var hslColor = parseToHsl(color);\n return toColorString(_extends({}, hslColor, {\n hue: hslColor.hue + parseFloat(degree)\n }));\n} // prettier-ignore\n\n\nvar curriedAdjustHue = /*#__PURE__*/curry\n/* :: */\n(adjustHue);\nvar curriedAdjustHue$1 = curriedAdjustHue;\n\n/**\n * Returns the complement of the provided color. This is identical to adjustHue(180, ).\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: complement('#448'),\n * background: complement('rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${complement('#448')};\n * background: ${complement('rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n * element {\n * background: \"#884\";\n * background: \"rgba(153,153,153,0.7)\";\n * }\n */\n\nfunction complement(color) {\n if (color === 'transparent') return color;\n var hslColor = parseToHsl(color);\n return toColorString(_extends({}, hslColor, {\n hue: (hslColor.hue + 180) % 360\n }));\n}\n\nfunction guard(lowerBoundary, upperBoundary, value) {\n return Math.max(lowerBoundary, Math.min(upperBoundary, value));\n}\n\n/**\n * Returns a string value for the darkened color.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: darken(0.2, '#FFCD64'),\n * background: darken('0.2', 'rgba(255,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${darken(0.2, '#FFCD64')};\n * background: ${darken('0.2', 'rgba(255,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * background: \"#ffbd31\";\n * background: \"rgba(255,189,49,0.7)\";\n * }\n */\n\nfunction darken(amount, color) {\n if (color === 'transparent') return color;\n var hslColor = parseToHsl(color);\n return toColorString(_extends({}, hslColor, {\n lightness: guard(0, 1, hslColor.lightness - parseFloat(amount))\n }));\n} // prettier-ignore\n\n\nvar curriedDarken = /*#__PURE__*/curry\n/* :: */\n(darken);\nvar curriedDarken$1 = curriedDarken;\n\n/**\n * Decreases the intensity of a color. Its range is between 0 to 1. The first\n * argument of the desaturate function is the amount by how much the color\n * intensity should be decreased.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: desaturate(0.2, '#CCCD64'),\n * background: desaturate('0.2', 'rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${desaturate(0.2, '#CCCD64')};\n * background: ${desaturate('0.2', 'rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n * element {\n * background: \"#b8b979\";\n * background: \"rgba(184,185,121,0.7)\";\n * }\n */\n\nfunction desaturate(amount, color) {\n if (color === 'transparent') return color;\n var hslColor = parseToHsl(color);\n return toColorString(_extends({}, hslColor, {\n saturation: guard(0, 1, hslColor.saturation - parseFloat(amount))\n }));\n} // prettier-ignore\n\n\nvar curriedDesaturate = /*#__PURE__*/curry\n/* :: */\n(desaturate);\nvar curriedDesaturate$1 = curriedDesaturate;\n\n/**\n * Returns a number (float) representing the luminance of a color.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: getLuminance('#CCCD64') >= getLuminance('#0000ff') ? '#CCCD64' : '#0000ff',\n * background: getLuminance('rgba(58, 133, 255, 1)') >= getLuminance('rgba(255, 57, 149, 1)') ?\n * 'rgba(58, 133, 255, 1)' :\n * 'rgba(255, 57, 149, 1)',\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${getLuminance('#CCCD64') >= getLuminance('#0000ff') ? '#CCCD64' : '#0000ff'};\n * background: ${getLuminance('rgba(58, 133, 255, 1)') >= getLuminance('rgba(255, 57, 149, 1)') ?\n * 'rgba(58, 133, 255, 1)' :\n * 'rgba(255, 57, 149, 1)'};\n *\n * // CSS in JS Output\n *\n * div {\n * background: \"#CCCD64\";\n * background: \"rgba(58, 133, 255, 1)\";\n * }\n */\n\nfunction getLuminance(color) {\n if (color === 'transparent') return 0;\n var rgbColor = parseToRgb(color);\n\n var _Object$keys$map = Object.keys(rgbColor).map(function (key) {\n var channel = rgbColor[key] / 255;\n return channel <= 0.03928 ? channel / 12.92 : Math.pow((channel + 0.055) / 1.055, 2.4);\n }),\n r = _Object$keys$map[0],\n g = _Object$keys$map[1],\n b = _Object$keys$map[2];\n\n return parseFloat((0.2126 * r + 0.7152 * g + 0.0722 * b).toFixed(3));\n}\n\n/**\n * Returns the contrast ratio between two colors based on\n * [W3's recommended equation for calculating contrast](http://www.w3.org/TR/WCAG20/#contrast-ratiodef).\n *\n * @example\n * const contrastRatio = getContrast('#444', '#fff');\n */\n\nfunction getContrast(color1, color2) {\n var luminance1 = getLuminance(color1);\n var luminance2 = getLuminance(color2);\n return parseFloat((luminance1 > luminance2 ? (luminance1 + 0.05) / (luminance2 + 0.05) : (luminance2 + 0.05) / (luminance1 + 0.05)).toFixed(2));\n}\n\n/**\n * Converts the color to a grayscale, by reducing its saturation to 0.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: grayscale('#CCCD64'),\n * background: grayscale('rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${grayscale('#CCCD64')};\n * background: ${grayscale('rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n * element {\n * background: \"#999\";\n * background: \"rgba(153,153,153,0.7)\";\n * }\n */\n\nfunction grayscale(color) {\n if (color === 'transparent') return color;\n return toColorString(_extends({}, parseToHsl(color), {\n saturation: 0\n }));\n}\n\n/**\n * Converts a HslColor or HslaColor object to a color string.\n * This util is useful in case you only know on runtime which color object is\n * used. Otherwise we recommend to rely on `hsl` or `hsla`.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: hslToColorString({ hue: 240, saturation: 1, lightness: 0.5 }),\n * background: hslToColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 }),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${hslToColorString({ hue: 240, saturation: 1, lightness: 0.5 })};\n * background: ${hslToColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 })};\n * `\n *\n * // CSS in JS Output\n * element {\n * background: \"#00f\";\n * background: \"rgba(179,25,25,0.72)\";\n * }\n */\nfunction hslToColorString(color) {\n if (typeof color === 'object' && typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number') {\n if (color.alpha && typeof color.alpha === 'number') {\n return hsla({\n hue: color.hue,\n saturation: color.saturation,\n lightness: color.lightness,\n alpha: color.alpha\n });\n }\n\n return hsl({\n hue: color.hue,\n saturation: color.saturation,\n lightness: color.lightness\n });\n }\n\n throw new PolishedError(45);\n}\n\n/**\n * Inverts the red, green and blue values of a color.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: invert('#CCCD64'),\n * background: invert('rgba(101,100,205,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${invert('#CCCD64')};\n * background: ${invert('rgba(101,100,205,0.7)')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * background: \"#33329b\";\n * background: \"rgba(154,155,50,0.7)\";\n * }\n */\n\nfunction invert(color) {\n if (color === 'transparent') return color; // parse color string to rgb\n\n var value = parseToRgb(color);\n return toColorString(_extends({}, value, {\n red: 255 - value.red,\n green: 255 - value.green,\n blue: 255 - value.blue\n }));\n}\n\n/**\n * Returns a string value for the lightened color.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: lighten(0.2, '#CCCD64'),\n * background: lighten('0.2', 'rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${lighten(0.2, '#FFCD64')};\n * background: ${lighten('0.2', 'rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * background: \"#e5e6b1\";\n * background: \"rgba(229,230,177,0.7)\";\n * }\n */\n\nfunction lighten(amount, color) {\n if (color === 'transparent') return color;\n var hslColor = parseToHsl(color);\n return toColorString(_extends({}, hslColor, {\n lightness: guard(0, 1, hslColor.lightness + parseFloat(amount))\n }));\n} // prettier-ignore\n\n\nvar curriedLighten = /*#__PURE__*/curry\n/* :: */\n(lighten);\nvar curriedLighten$1 = curriedLighten;\n\n/**\n * Determines which contrast guidelines have been met for two colors.\n * Based on the [contrast calculations recommended by W3](https://www.w3.org/WAI/WCAG21/Understanding/contrast-enhanced.html).\n *\n * @example\n * const scores = meetsContrastGuidelines('#444', '#fff');\n */\nfunction meetsContrastGuidelines(color1, color2) {\n var contrastRatio = getContrast(color1, color2);\n return {\n AA: contrastRatio >= 4.5,\n AALarge: contrastRatio >= 3,\n AAA: contrastRatio >= 7,\n AAALarge: contrastRatio >= 4.5\n };\n}\n\n/**\n * Mixes the two provided colors together by calculating the average of each of the RGB components weighted to the first color by the provided weight.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: mix(0.5, '#f00', '#00f')\n * background: mix(0.25, '#f00', '#00f')\n * background: mix('0.5', 'rgba(255, 0, 0, 0.5)', '#00f')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${mix(0.5, '#f00', '#00f')};\n * background: ${mix(0.25, '#f00', '#00f')};\n * background: ${mix('0.5', 'rgba(255, 0, 0, 0.5)', '#00f')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * background: \"#7f007f\";\n * background: \"#3f00bf\";\n * background: \"rgba(63, 0, 191, 0.75)\";\n * }\n */\n\nfunction mix(weight, color, otherColor) {\n if (color === 'transparent') return otherColor;\n if (otherColor === 'transparent') return color;\n if (weight === 0) return otherColor;\n var parsedColor1 = parseToRgb(color);\n\n var color1 = _extends({}, parsedColor1, {\n alpha: typeof parsedColor1.alpha === 'number' ? parsedColor1.alpha : 1\n });\n\n var parsedColor2 = parseToRgb(otherColor);\n\n var color2 = _extends({}, parsedColor2, {\n alpha: typeof parsedColor2.alpha === 'number' ? parsedColor2.alpha : 1\n }); // The formula is copied from the original Sass implementation:\n // http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method\n\n\n var alphaDelta = color1.alpha - color2.alpha;\n var x = parseFloat(weight) * 2 - 1;\n var y = x * alphaDelta === -1 ? x : x + alphaDelta;\n var z = 1 + x * alphaDelta;\n var weight1 = (y / z + 1) / 2.0;\n var weight2 = 1 - weight1;\n var mixedColor = {\n red: Math.floor(color1.red * weight1 + color2.red * weight2),\n green: Math.floor(color1.green * weight1 + color2.green * weight2),\n blue: Math.floor(color1.blue * weight1 + color2.blue * weight2),\n alpha: color1.alpha * parseFloat(weight) + color2.alpha * (1 - parseFloat(weight))\n };\n return rgba(mixedColor);\n} // prettier-ignore\n\n\nvar curriedMix = /*#__PURE__*/curry\n/* :: */\n(mix);\nvar mix$1 = curriedMix;\n\n/**\n * Increases the opacity of a color. Its range for the amount is between 0 to 1.\n *\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: opacify(0.1, 'rgba(255, 255, 255, 0.9)');\n * background: opacify(0.2, 'hsla(0, 0%, 100%, 0.5)'),\n * background: opacify('0.5', 'rgba(255, 0, 0, 0.2)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${opacify(0.1, 'rgba(255, 255, 255, 0.9)')};\n * background: ${opacify(0.2, 'hsla(0, 0%, 100%, 0.5)')},\n * background: ${opacify('0.5', 'rgba(255, 0, 0, 0.2)')},\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * background: \"#fff\";\n * background: \"rgba(255,255,255,0.7)\";\n * background: \"rgba(255,0,0,0.7)\";\n * }\n */\n\nfunction opacify(amount, color) {\n if (color === 'transparent') return color;\n var parsedColor = parseToRgb(color);\n var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1;\n\n var colorWithAlpha = _extends({}, parsedColor, {\n alpha: guard(0, 1, (alpha * 100 + parseFloat(amount) * 100) / 100)\n });\n\n return rgba(colorWithAlpha);\n} // prettier-ignore\n\n\nvar curriedOpacify = /*#__PURE__*/curry\n/* :: */\n(opacify);\nvar curriedOpacify$1 = curriedOpacify;\n\nvar defaultReturnIfLightColor = '#000';\nvar defaultReturnIfDarkColor = '#fff';\n/**\n * Returns black or white (or optional passed colors) for best\n * contrast depending on the luminosity of the given color.\n * When passing custom return colors, strict mode ensures that the\n * return color always meets or exceeds WCAG level AA or greater. If this test\n * fails, the default return color (black or white) is returned in place of the\n * custom return color. You can optionally turn off strict mode.\n *\n * Follows [W3C specs for readability](https://www.w3.org/TR/WCAG20-TECHS/G18.html).\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * color: readableColor('#000'),\n * color: readableColor('black', '#001', '#ff8'),\n * color: readableColor('white', '#001', '#ff8'),\n * color: readableColor('red', '#333', '#ddd', true)\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * color: ${readableColor('#000')};\n * color: ${readableColor('black', '#001', '#ff8')};\n * color: ${readableColor('white', '#001', '#ff8')};\n * color: ${readableColor('red', '#333', '#ddd', true)};\n * `\n *\n * // CSS in JS Output\n * element {\n * color: \"#fff\";\n * color: \"#ff8\";\n * color: \"#001\";\n * color: \"#000\";\n * }\n */\n\nfunction readableColor(color, returnIfLightColor, returnIfDarkColor, strict) {\n if (returnIfLightColor === void 0) {\n returnIfLightColor = defaultReturnIfLightColor;\n }\n\n if (returnIfDarkColor === void 0) {\n returnIfDarkColor = defaultReturnIfDarkColor;\n }\n\n if (strict === void 0) {\n strict = true;\n }\n\n var isColorLight = getLuminance(color) > 0.179;\n var preferredReturnColor = isColorLight ? returnIfLightColor : returnIfDarkColor;\n\n if (!strict || getContrast(color, preferredReturnColor) >= 4.5) {\n return preferredReturnColor;\n }\n\n return isColorLight ? defaultReturnIfLightColor : defaultReturnIfDarkColor;\n}\n\n/**\n * Converts a RgbColor or RgbaColor object to a color string.\n * This util is useful in case you only know on runtime which color object is\n * used. Otherwise we recommend to rely on `rgb` or `rgba`.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: rgbToColorString({ red: 255, green: 205, blue: 100 }),\n * background: rgbToColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 }),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${rgbToColorString({ red: 255, green: 205, blue: 100 })};\n * background: ${rgbToColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 })};\n * `\n *\n * // CSS in JS Output\n * element {\n * background: \"#ffcd64\";\n * background: \"rgba(255,205,100,0.72)\";\n * }\n */\nfunction rgbToColorString(color) {\n if (typeof color === 'object' && typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number') {\n if (typeof color.alpha === 'number') {\n return rgba({\n red: color.red,\n green: color.green,\n blue: color.blue,\n alpha: color.alpha\n });\n }\n\n return rgb({\n red: color.red,\n green: color.green,\n blue: color.blue\n });\n }\n\n throw new PolishedError(46);\n}\n\n/**\n * Increases the intensity of a color. Its range is between 0 to 1. The first\n * argument of the saturate function is the amount by how much the color\n * intensity should be increased.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: saturate(0.2, '#CCCD64'),\n * background: saturate('0.2', 'rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${saturate(0.2, '#FFCD64')};\n * background: ${saturate('0.2', 'rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * background: \"#e0e250\";\n * background: \"rgba(224,226,80,0.7)\";\n * }\n */\n\nfunction saturate(amount, color) {\n if (color === 'transparent') return color;\n var hslColor = parseToHsl(color);\n return toColorString(_extends({}, hslColor, {\n saturation: guard(0, 1, hslColor.saturation + parseFloat(amount))\n }));\n} // prettier-ignore\n\n\nvar curriedSaturate = /*#__PURE__*/curry\n/* :: */\n(saturate);\nvar curriedSaturate$1 = curriedSaturate;\n\n/**\n * Sets the hue of a color to the provided value. The hue range can be\n * from 0 and 359.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: setHue(42, '#CCCD64'),\n * background: setHue('244', 'rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${setHue(42, '#CCCD64')};\n * background: ${setHue('244', 'rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n * element {\n * background: \"#cdae64\";\n * background: \"rgba(107,100,205,0.7)\";\n * }\n */\n\nfunction setHue(hue, color) {\n if (color === 'transparent') return color;\n return toColorString(_extends({}, parseToHsl(color), {\n hue: parseFloat(hue)\n }));\n} // prettier-ignore\n\n\nvar curriedSetHue = /*#__PURE__*/curry\n/* :: */\n(setHue);\nvar curriedSetHue$1 = curriedSetHue;\n\n/**\n * Sets the lightness of a color to the provided value. The lightness range can be\n * from 0 and 1.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: setLightness(0.2, '#CCCD64'),\n * background: setLightness('0.75', 'rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${setLightness(0.2, '#CCCD64')};\n * background: ${setLightness('0.75', 'rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n * element {\n * background: \"#4d4d19\";\n * background: \"rgba(223,224,159,0.7)\";\n * }\n */\n\nfunction setLightness(lightness, color) {\n if (color === 'transparent') return color;\n return toColorString(_extends({}, parseToHsl(color), {\n lightness: parseFloat(lightness)\n }));\n} // prettier-ignore\n\n\nvar curriedSetLightness = /*#__PURE__*/curry\n/* :: */\n(setLightness);\nvar curriedSetLightness$1 = curriedSetLightness;\n\n/**\n * Sets the saturation of a color to the provided value. The saturation range can be\n * from 0 and 1.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: setSaturation(0.2, '#CCCD64'),\n * background: setSaturation('0.75', 'rgba(204,205,100,0.7)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${setSaturation(0.2, '#CCCD64')};\n * background: ${setSaturation('0.75', 'rgba(204,205,100,0.7)')};\n * `\n *\n * // CSS in JS Output\n * element {\n * background: \"#adad84\";\n * background: \"rgba(228,229,76,0.7)\";\n * }\n */\n\nfunction setSaturation(saturation, color) {\n if (color === 'transparent') return color;\n return toColorString(_extends({}, parseToHsl(color), {\n saturation: parseFloat(saturation)\n }));\n} // prettier-ignore\n\n\nvar curriedSetSaturation = /*#__PURE__*/curry\n/* :: */\n(setSaturation);\nvar curriedSetSaturation$1 = curriedSetSaturation;\n\n/**\n * Shades a color by mixing it with black. `shade` can produce\n * hue shifts, where as `darken` manipulates the luminance channel and therefore\n * doesn't produce hue shifts.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: shade(0.25, '#00f')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${shade(0.25, '#00f')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * background: \"#00003f\";\n * }\n */\n\nfunction shade(percentage, color) {\n if (color === 'transparent') return color;\n return mix$1(parseFloat(percentage), 'rgb(0, 0, 0)', color);\n} // prettier-ignore\n\n\nvar curriedShade = /*#__PURE__*/curry\n/* :: */\n(shade);\nvar curriedShade$1 = curriedShade;\n\n/**\n * Tints a color by mixing it with white. `tint` can produce\n * hue shifts, where as `lighten` manipulates the luminance channel and therefore\n * doesn't produce hue shifts.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: tint(0.25, '#00f')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${tint(0.25, '#00f')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * background: \"#bfbfff\";\n * }\n */\n\nfunction tint(percentage, color) {\n if (color === 'transparent') return color;\n return mix$1(parseFloat(percentage), 'rgb(255, 255, 255)', color);\n} // prettier-ignore\n\n\nvar curriedTint = /*#__PURE__*/curry\n/* :: */\n(tint);\nvar curriedTint$1 = curriedTint;\n\n/**\n * Decreases the opacity of a color. Its range for the amount is between 0 to 1.\n *\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * background: transparentize(0.1, '#fff'),\n * background: transparentize(0.2, 'hsl(0, 0%, 100%)'),\n * background: transparentize('0.5', 'rgba(255, 0, 0, 0.8)'),\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * background: ${transparentize(0.1, '#fff')};\n * background: ${transparentize(0.2, 'hsl(0, 0%, 100%)')};\n * background: ${transparentize('0.5', 'rgba(255, 0, 0, 0.8)')};\n * `\n *\n * // CSS in JS Output\n *\n * element {\n * background: \"rgba(255,255,255,0.9)\";\n * background: \"rgba(255,255,255,0.8)\";\n * background: \"rgba(255,0,0,0.3)\";\n * }\n */\n\nfunction transparentize(amount, color) {\n if (color === 'transparent') return color;\n var parsedColor = parseToRgb(color);\n var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1;\n\n var colorWithAlpha = _extends({}, parsedColor, {\n alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100)\n });\n\n return rgba(colorWithAlpha);\n} // prettier-ignore\n\n\nvar curriedTransparentize = /*#__PURE__*/curry\n/* :: */\n(transparentize);\nvar curriedTransparentize$1 = curriedTransparentize;\n\n/**\n * Shorthand for easily setting the animation property. Allows either multiple arrays with animations\n * or a single animation spread over the arguments.\n * @example\n * // Styles as object usage\n * const styles = {\n * ...animation(['rotate', '1s', 'ease-in-out'], ['colorchange', '2s'])\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${animation(['rotate', '1s', 'ease-in-out'], ['colorchange', '2s'])}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'animation': 'rotate 1s ease-in-out, colorchange 2s'\n * }\n * @example\n * // Styles as object usage\n * const styles = {\n * ...animation('rotate', '1s', 'ease-in-out')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${animation('rotate', '1s', 'ease-in-out')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'animation': 'rotate 1s ease-in-out'\n * }\n */\nfunction animation() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n // Allow single or multiple animations passed\n var multiMode = Array.isArray(args[0]);\n\n if (!multiMode && args.length > 8) {\n throw new PolishedError(64);\n }\n\n var code = args.map(function (arg) {\n if (multiMode && !Array.isArray(arg) || !multiMode && Array.isArray(arg)) {\n throw new PolishedError(65);\n }\n\n if (Array.isArray(arg) && arg.length > 8) {\n throw new PolishedError(66);\n }\n\n return Array.isArray(arg) ? arg.join(' ') : arg;\n }).join(', ');\n return {\n animation: code\n };\n}\n\n/**\n * Shorthand that accepts any number of backgroundImage values as parameters for creating a single background statement.\n * @example\n * // Styles as object usage\n * const styles = {\n * ...backgroundImages('url(\"/image/background.jpg\")', 'linear-gradient(red, green)')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${backgroundImages('url(\"/image/background.jpg\")', 'linear-gradient(red, green)')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'backgroundImage': 'url(\"/image/background.jpg\"), linear-gradient(red, green)'\n * }\n */\nfunction backgroundImages() {\n for (var _len = arguments.length, properties = new Array(_len), _key = 0; _key < _len; _key++) {\n properties[_key] = arguments[_key];\n }\n\n return {\n backgroundImage: properties.join(', ')\n };\n}\n\n/**\n * Shorthand that accepts any number of background values as parameters for creating a single background statement.\n * @example\n * // Styles as object usage\n * const styles = {\n * ...backgrounds('url(\"/image/background.jpg\")', 'linear-gradient(red, green)', 'center no-repeat')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${backgrounds('url(\"/image/background.jpg\")', 'linear-gradient(red, green)', 'center no-repeat')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'background': 'url(\"/image/background.jpg\"), linear-gradient(red, green), center no-repeat'\n * }\n */\nfunction backgrounds() {\n for (var _len = arguments.length, properties = new Array(_len), _key = 0; _key < _len; _key++) {\n properties[_key] = arguments[_key];\n }\n\n return {\n background: properties.join(', ')\n };\n}\n\nvar sideMap = ['top', 'right', 'bottom', 'left'];\n/**\n * Shorthand for the border property that splits out individual properties for use with tools like Fela and Styletron. A side keyword can optionally be passed to target only one side's border properties.\n *\n * @example\n * // Styles as object usage\n * const styles = {\n * ...border('1px', 'solid', 'red')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${border('1px', 'solid', 'red')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'borderColor': 'red',\n * 'borderStyle': 'solid',\n * 'borderWidth': `1px`,\n * }\n *\n * // Styles as object usage\n * const styles = {\n * ...border('top', '1px', 'solid', 'red')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${border('top', '1px', 'solid', 'red')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'borderTopColor': 'red',\n * 'borderTopStyle': 'solid',\n * 'borderTopWidth': `1px`,\n * }\n */\n\nfunction border(sideKeyword) {\n for (var _len = arguments.length, values = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n values[_key - 1] = arguments[_key];\n }\n\n if (typeof sideKeyword === 'string' && sideMap.indexOf(sideKeyword) >= 0) {\n var _ref;\n\n return _ref = {}, _ref[\"border\" + capitalizeString(sideKeyword) + \"Width\"] = values[0], _ref[\"border\" + capitalizeString(sideKeyword) + \"Style\"] = values[1], _ref[\"border\" + capitalizeString(sideKeyword) + \"Color\"] = values[2], _ref;\n } else {\n values.unshift(sideKeyword);\n return {\n borderWidth: values[0],\n borderStyle: values[1],\n borderColor: values[2]\n };\n }\n}\n\n/**\n * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions.\n * @example\n * // Styles as object usage\n * const styles = {\n * ...borderColor('red', 'green', 'blue', 'yellow')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${borderColor('red', 'green', 'blue', 'yellow')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'borderTopColor': 'red',\n * 'borderRightColor': 'green',\n * 'borderBottomColor': 'blue',\n * 'borderLeftColor': 'yellow'\n * }\n */\nfunction borderColor() {\n for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {\n values[_key] = arguments[_key];\n }\n\n return directionalProperty.apply(void 0, ['borderColor'].concat(values));\n}\n\n/**\n * Shorthand that accepts a value for side and a value for radius and applies the radius value to both corners of the side.\n * @example\n * // Styles as object usage\n * const styles = {\n * ...borderRadius('top', '5px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${borderRadius('top', '5px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'borderTopRightRadius': '5px',\n * 'borderTopLeftRadius': '5px',\n * }\n */\nfunction borderRadius(side, radius) {\n var uppercaseSide = capitalizeString(side);\n\n if (!radius && radius !== 0) {\n throw new PolishedError(62);\n }\n\n if (uppercaseSide === 'Top' || uppercaseSide === 'Bottom') {\n var _ref;\n\n return _ref = {}, _ref[\"border\" + uppercaseSide + \"RightRadius\"] = radius, _ref[\"border\" + uppercaseSide + \"LeftRadius\"] = radius, _ref;\n }\n\n if (uppercaseSide === 'Left' || uppercaseSide === 'Right') {\n var _ref2;\n\n return _ref2 = {}, _ref2[\"borderTop\" + uppercaseSide + \"Radius\"] = radius, _ref2[\"borderBottom\" + uppercaseSide + \"Radius\"] = radius, _ref2;\n }\n\n throw new PolishedError(63);\n}\n\n/**\n * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions.\n * @example\n * // Styles as object usage\n * const styles = {\n * ...borderStyle('solid', 'dashed', 'dotted', 'double')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${borderStyle('solid', 'dashed', 'dotted', 'double')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'borderTopStyle': 'solid',\n * 'borderRightStyle': 'dashed',\n * 'borderBottomStyle': 'dotted',\n * 'borderLeftStyle': 'double'\n * }\n */\nfunction borderStyle() {\n for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {\n values[_key] = arguments[_key];\n }\n\n return directionalProperty.apply(void 0, ['borderStyle'].concat(values));\n}\n\n/**\n * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions.\n * @example\n * // Styles as object usage\n * const styles = {\n * ...borderWidth('12px', '24px', '36px', '48px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${borderWidth('12px', '24px', '36px', '48px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'borderTopWidth': '12px',\n * 'borderRightWidth': '24px',\n * 'borderBottomWidth': '36px',\n * 'borderLeftWidth': '48px'\n * }\n */\nfunction borderWidth() {\n for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {\n values[_key] = arguments[_key];\n }\n\n return directionalProperty.apply(void 0, ['borderWidth'].concat(values));\n}\n\nfunction generateSelectors(template, state) {\n var stateSuffix = state ? \":\" + state : '';\n return template(stateSuffix);\n}\n/**\n * Function helper that adds an array of states to a template of selectors. Used in textInputs and buttons.\n * @private\n */\n\n\nfunction statefulSelectors(states, template, stateMap) {\n if (!template) throw new PolishedError(67);\n if (states.length === 0) return generateSelectors(template, null);\n var selectors = [];\n\n for (var i = 0; i < states.length; i += 1) {\n if (stateMap && stateMap.indexOf(states[i]) < 0) {\n throw new PolishedError(68);\n }\n\n selectors.push(generateSelectors(template, states[i]));\n }\n\n selectors = selectors.join(',');\n return selectors;\n}\n\nvar stateMap$1 = [undefined, null, 'active', 'focus', 'hover'];\n\nfunction template$1(state) {\n return \"button\" + state + \",\\n input[type=\\\"button\\\"]\" + state + \",\\n input[type=\\\"reset\\\"]\" + state + \",\\n input[type=\\\"submit\\\"]\" + state;\n}\n/**\n * Populates selectors that target all buttons. You can pass optional states to append to the selectors.\n * @example\n * // Styles as object usage\n * const styles = {\n * [buttons('active')]: {\n * 'border': 'none'\n * }\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * > ${buttons('active')} {\n * border: none;\n * }\n * `\n *\n * // CSS in JS Output\n *\n * 'button:active,\n * 'input[type=\"button\"]:active,\n * 'input[type=\\\"reset\\\"]:active,\n * 'input[type=\\\"submit\\\"]:active: {\n * 'border': 'none'\n * }\n */\n\n\nfunction buttons() {\n for (var _len = arguments.length, states = new Array(_len), _key = 0; _key < _len; _key++) {\n states[_key] = arguments[_key];\n }\n\n return statefulSelectors(states, template$1, stateMap$1);\n}\n\n/**\n * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions.\n * @example\n * // Styles as object usage\n * const styles = {\n * ...margin('12px', '24px', '36px', '48px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${margin('12px', '24px', '36px', '48px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'marginTop': '12px',\n * 'marginRight': '24px',\n * 'marginBottom': '36px',\n * 'marginLeft': '48px'\n * }\n */\nfunction margin() {\n for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {\n values[_key] = arguments[_key];\n }\n\n return directionalProperty.apply(void 0, ['margin'].concat(values));\n}\n\n/**\n * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions.\n * @example\n * // Styles as object usage\n * const styles = {\n * ...padding('12px', '24px', '36px', '48px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${padding('12px', '24px', '36px', '48px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'paddingTop': '12px',\n * 'paddingRight': '24px',\n * 'paddingBottom': '36px',\n * 'paddingLeft': '48px'\n * }\n */\nfunction padding() {\n for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {\n values[_key] = arguments[_key];\n }\n\n return directionalProperty.apply(void 0, ['padding'].concat(values));\n}\n\nvar positionMap = ['absolute', 'fixed', 'relative', 'static', 'sticky'];\n/**\n * Shorthand accepts up to five values, including null to skip a value, and maps them to their respective directions. The first value can optionally be a position keyword.\n * @example\n * // Styles as object usage\n * const styles = {\n * ...position('12px', '24px', '36px', '48px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${position('12px', '24px', '36px', '48px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'top': '12px',\n * 'right': '24px',\n * 'bottom': '36px',\n * 'left': '48px'\n * }\n *\n * // Styles as object usage\n * const styles = {\n * ...position('absolute', '12px', '24px', '36px', '48px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${position('absolute', '12px', '24px', '36px', '48px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'position': 'absolute',\n * 'top': '12px',\n * 'right': '24px',\n * 'bottom': '36px',\n * 'left': '48px'\n * }\n */\n\nfunction position(firstValue) {\n for (var _len = arguments.length, values = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n values[_key - 1] = arguments[_key];\n }\n\n if (positionMap.indexOf(firstValue) >= 0 && firstValue) {\n return _extends({}, directionalProperty.apply(void 0, [''].concat(values)), {\n position: firstValue\n });\n } else {\n return directionalProperty.apply(void 0, ['', firstValue].concat(values));\n }\n}\n\n/**\n * Shorthand to set the height and width properties in a single statement.\n * @example\n * // Styles as object usage\n * const styles = {\n * ...size('300px', '250px')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${size('300px', '250px')}\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'height': '300px',\n * 'width': '250px',\n * }\n */\nfunction size(height, width) {\n if (width === void 0) {\n width = height;\n }\n\n return {\n height: height,\n width: width\n };\n}\n\nvar stateMap = [undefined, null, 'active', 'focus', 'hover'];\n\nfunction template(state) {\n return \"input[type=\\\"color\\\"]\" + state + \",\\n input[type=\\\"date\\\"]\" + state + \",\\n input[type=\\\"datetime\\\"]\" + state + \",\\n input[type=\\\"datetime-local\\\"]\" + state + \",\\n input[type=\\\"email\\\"]\" + state + \",\\n input[type=\\\"month\\\"]\" + state + \",\\n input[type=\\\"number\\\"]\" + state + \",\\n input[type=\\\"password\\\"]\" + state + \",\\n input[type=\\\"search\\\"]\" + state + \",\\n input[type=\\\"tel\\\"]\" + state + \",\\n input[type=\\\"text\\\"]\" + state + \",\\n input[type=\\\"time\\\"]\" + state + \",\\n input[type=\\\"url\\\"]\" + state + \",\\n input[type=\\\"week\\\"]\" + state + \",\\n input:not([type])\" + state + \",\\n textarea\" + state;\n}\n/**\n * Populates selectors that target all text inputs. You can pass optional states to append to the selectors.\n * @example\n * // Styles as object usage\n * const styles = {\n * [textInputs('active')]: {\n * 'border': 'none'\n * }\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * > ${textInputs('active')} {\n * border: none;\n * }\n * `\n *\n * // CSS in JS Output\n *\n * 'input[type=\"color\"]:active,\n * input[type=\"date\"]:active,\n * input[type=\"datetime\"]:active,\n * input[type=\"datetime-local\"]:active,\n * input[type=\"email\"]:active,\n * input[type=\"month\"]:active,\n * input[type=\"number\"]:active,\n * input[type=\"password\"]:active,\n * input[type=\"search\"]:active,\n * input[type=\"tel\"]:active,\n * input[type=\"text\"]:active,\n * input[type=\"time\"]:active,\n * input[type=\"url\"]:active,\n * input[type=\"week\"]:active,\n * input:not([type]):active,\n * textarea:active': {\n * 'border': 'none'\n * }\n */\n\n\nfunction textInputs() {\n for (var _len = arguments.length, states = new Array(_len), _key = 0; _key < _len; _key++) {\n states[_key] = arguments[_key];\n }\n\n return statefulSelectors(states, template, stateMap);\n}\n\n/**\n * Accepts any number of transition values as parameters for creating a single transition statement. You may also pass an array of properties as the first parameter that you would like to apply the same transition values to (second parameter).\n * @example\n * // Styles as object usage\n * const styles = {\n * ...transitions('opacity 1.0s ease-in 0s', 'width 2.0s ease-in 2s'),\n * ...transitions(['color', 'background-color'], '2.0s ease-in 2s')\n * }\n *\n * // styled-components usage\n * const div = styled.div`\n * ${transitions('opacity 1.0s ease-in 0s', 'width 2.0s ease-in 2s')};\n * ${transitions(['color', 'background-color'], '2.0s ease-in 2s'),};\n * `\n *\n * // CSS as JS Output\n *\n * div {\n * 'transition': 'opacity 1.0s ease-in 0s, width 2.0s ease-in 2s'\n * 'transition': 'color 2.0s ease-in 2s, background-color 2.0s ease-in 2s',\n * }\n */\n\nfunction transitions() {\n for (var _len = arguments.length, properties = new Array(_len), _key = 0; _key < _len; _key++) {\n properties[_key] = arguments[_key];\n }\n\n if (Array.isArray(properties[0]) && properties.length === 2) {\n var value = properties[1];\n\n if (typeof value !== 'string') {\n throw new PolishedError(61);\n }\n\n var transitionsString = properties[0].map(function (property) {\n return property + \" \" + value;\n }).join(', ');\n return {\n transition: transitionsString\n };\n } else {\n return {\n transition: properties.join(', ')\n };\n }\n}\n\nexport { curriedAdjustHue$1 as adjustHue, animation, backgroundImages, backgrounds, between, border, borderColor, borderRadius, borderStyle, borderWidth, buttons, clearFix, complement, cover, cssVar, curriedDarken$1 as darken, curriedDesaturate$1 as desaturate, directionalProperty, easeIn, easeInOut, easeOut, ellipsis, em$1 as em, fluidRange, fontFace, getContrast, getLuminance, getValueAndUnit, grayscale, hiDPI, hideText, hideVisually, hsl, hslToColorString, hsla, important, invert, curriedLighten$1 as lighten, linearGradient, margin, math, meetsContrastGuidelines, mix$1 as mix, modularScale, normalize, curriedOpacify$1 as opacify, padding, parseToHsl, parseToRgb, position, radialGradient, readableColor, rem$1 as rem, remToPx, retinaImage, rgb, rgbToColorString, rgba, curriedSaturate$1 as saturate, curriedSetHue$1 as setHue, curriedSetLightness$1 as setLightness, curriedSetSaturation$1 as setSaturation, curriedShade$1 as shade, size, stripUnit, textInputs, timingFunctions, curriedTint$1 as tint, toColorString, transitions, curriedTransparentize$1 as transparentize, triangle, wordWrap };\n","import*as t from\"react\";function n(){return n=Object.assign?Object.assign.bind():function(t){for(var n=1;n(t[n.toLowerCase()]=n,t),{for:\"htmlFor\"}),o={amp:\"&\",apos:\"'\",gt:\">\",lt:\"<\",nbsp:\" \",quot:\"“\"},c=[\"style\",\"script\"],a=/([-A-Z0-9_:]+)(?:\\s*=\\s*(?:(?:\"((?:\\\\.|[^\"])*)\")|(?:'((?:\\\\.|[^'])*)')|(?:\\{((?:\\\\.|{[^}]*?}|[^}])*)\\})))?/gi,_=/mailto:/i,u=/\\n{2,}$/,i=/^( *>[^\\n]+(\\n[^\\n]+)*\\n*)+\\n{2,}/,s=/^ *> ?/gm,l=/^ {2,}\\n/,f=/^(?:( *[-*_])){3,} *(?:\\n *)+\\n/,d=/^\\s*(`{3,}|~{3,}) *(\\S+)?([^\\n]*?)?\\n([\\s\\S]+?)\\s*\\1 *(?:\\n *)*\\n?/,p=/^(?: {4}[^\\n]+\\n*)+(?:\\n *)+\\n?/,m=/^(`+)\\s*([\\s\\S]*?[^`])\\s*\\1(?!`)/,g=/^(?:\\n *)*\\n/,y=/\\r\\n?/g,h=/^\\[\\^([^\\]]+)](:.*)\\n/,k=/^\\[\\^([^\\]]+)]/,x=/\\f/g,b=/^\\s*?\\[(x|\\s)\\]/,$=/^ *(#{1,6}) *([^\\n]+?)(?: +#*)?(?:\\n *)*(?:\\n|$)/,v=/^ *(#{1,6}) +([^\\n]+?)(?: +#*)?(?:\\n *)*(?:\\n|$)/,S=/^([^\\n]+)\\n *(=|-){3,} *(?:\\n *)+\\n/,z=/^ *(?!<[a-z][^ >/]* ?\\/>)<([a-z][^ >/]*) ?([^>]*)\\/{0}>\\n?(\\s*(?:<\\1[^>]*?>[\\s\\S]*?<\\/\\1>|(?!<\\1)[\\s\\S])*?)<\\/\\1>\\n*/i,w=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,A=/^)/,E=/^(data|aria|x)-[a-z_][a-z\\d_.-]*$/,L=/^ *<([a-z][a-z0-9:]*)(?:\\s+((?:<.*?>|[^>])*))?\\/?>(?!<\\/\\1>)(\\s*\\n)?/i,M=/^\\{.*\\}$/,O=/^(https?:\\/\\/[^\\s<]+[^<.,:;\"')\\]\\s])/,I=/^<([^ >]+@[^ >]+)>/,j=/^<([^ >]+:\\/[^ >]+)>/,B=/-([a-z])?/gi,R=/^(.*\\|?.*)\\n *(\\|? *[-:]+ *\\|[-| :]*)\\n((?:.*\\|.*\\n)*)\\n?/,T=/^\\[([^\\]]*)\\]:\\s+]+)>?\\s*(\"([^\"]*)\")?/,C=/^!\\[([^\\]]*)\\] ?\\[([^\\]]*)\\]/,D=/^\\[([^\\]]*)\\] ?\\[([^\\]]*)\\]/,F=/(\\[|\\])/g,N=/(\\n|^[-*]\\s|^#|^ {2,}|^-{2,}|^>\\s)/,P=/\\t/g,Z=/^ *\\| */,G=/(^ *\\||\\| *$)/g,H=/ *$/,q=/^ *:-+: *$/,U=/^ *:-+ *$/,V=/^ *-+: *$/,W=/^([*_])\\1((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\\1\\1(?!\\1)/,Q=/^([*_])((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\\1(?!\\1|\\w)/,X=/^==((?:\\[.*?\\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,J=/^~~((?:\\[.*?\\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,K=/^\\\\([^0-9A-Za-z\\s])/,Y=/^[\\s\\S]+?(?=[^0-9A-Z\\s\\u00c0-\\uffff&#;.()'\"]|\\d+\\.|\\n\\n| {2,}\\n|\\w+:\\S|$)/i,tt=/^\\n+/,nt=/^([ \\t]*)/,et=/\\\\([^\\\\])/g,rt=/ *\\n+$/,ot=/(?:^|\\n)( *)$/,ct=\"(?:\\\\d+\\\\.)\",at=\"(?:[*+-])\";function _t(t){return\"( *)(\"+(1===t?ct:at)+\") +\"}const ut=_t(1),it=_t(2);function st(t){return new RegExp(\"^\"+(1===t?ut:it))}const lt=st(1),ft=st(2);function dt(t){return new RegExp(\"^\"+(1===t?ut:it)+\"[^\\\\n]*(?:\\\\n(?!\\\\1\"+(1===t?ct:at)+\" )[^\\\\n]*)*(\\\\n|$)\",\"gm\")}const pt=dt(1),mt=dt(2);function gt(t){const n=1===t?ct:at;return new RegExp(\"^( *)(\"+n+\") [\\\\s\\\\S]+?(?:\\\\n{2,}(?! )(?!\\\\1\"+n+\" (?!\"+n+\" ))\\\\n*|\\\\s*\\\\n*$)\")}const yt=gt(1),ht=gt(2);function kt(t,n){const e=1===n,r=e?yt:ht,o=e?pt:mt,c=e?lt:ft;return{t(t,n,e){const o=ot.exec(e);return o&&(n.o||!n._&&!n.u)?r.exec(t=o[1]+t):null},i:Ht.HIGH,l(t,n,r){const a=e?+t[2]:void 0,_=t[0].replace(u,\"\\n\").match(o);let i=!1;return{p:_.map(function(t,e){const o=c.exec(t)[0].length,a=new RegExp(\"^ {1,\"+o+\"}\",\"gm\"),u=t.replace(a,\"\").replace(c,\"\"),s=e===_.length-1,l=-1!==u.indexOf(\"\\n\\n\")||s&&i;i=l;const f=r._,d=r.o;let p;r.o=!0,l?(r._=!1,p=u.replace(rt,\"\\n\\n\")):(r._=!0,p=u.replace(rt,\"\"));const m=n(p,r);return r._=f,r.o=d,m}),m:e,g:a}},h:(n,e,r)=>t(n.m?\"ol\":\"ul\",{key:r.k,start:n.g},n.p.map(function(n,o){return t(\"li\",{key:o},e(n,r))}))}}const xt=/^\\[([^\\]]*)]\\( *((?:\\([^)]*\\)|[^() ])*) *\"?([^)\"]*)?\"?\\)/,bt=/^!\\[([^\\]]*)]\\( *((?:\\([^)]*\\)|[^() ])*) *\"?([^)\"]*)?\"?\\)/,$t=[i,d,p,$,S,v,A,R,pt,yt,mt,ht],vt=[...$t,/^[^\\n]+(?: \\n|\\n{2,})/,z,L];function St(t){return t.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,\"a\").replace(/[çÇ]/g,\"c\").replace(/[ðÐ]/g,\"d\").replace(/[ÈÉÊËéèêë]/g,\"e\").replace(/[ÏïÎîÍíÌì]/g,\"i\").replace(/[Ññ]/g,\"n\").replace(/[øØœŒÕõÔôÓóÒò]/g,\"o\").replace(/[ÜüÛûÚúÙù]/g,\"u\").replace(/[ŸÿÝý]/g,\"y\").replace(/[^a-z0-9- ]/gi,\"\").replace(/ /gi,\"-\").toLowerCase()}function zt(t){return V.test(t)?\"right\":q.test(t)?\"center\":U.test(t)?\"left\":null}function wt(t,n,e){const r=e.$;e.$=!0;const o=n(t.trim(),e);e.$=r;let c=[[]];return o.forEach(function(t,n){\"tableSeparator\"===t.type?0!==n&&n!==o.length-1&&c.push([]):(\"text\"!==t.type||null!=o[n+1]&&\"tableSeparator\"!==o[n+1].type||(t.v=t.v.replace(H,\"\")),c[c.length-1].push(t))}),c}function At(t,n,e){e._=!0;const r=wt(t[1],n,e),o=t[2].replace(G,\"\").split(\"|\").map(zt),c=function(t,n,e){return t.trim().split(\"\\n\").map(function(t){return wt(t,n,e)})}(t[3],n,e);return e._=!1,{S:o,A:c,L:r,type:\"table\"}}function Et(t,n){return null==t.S[n]?{}:{textAlign:t.S[n]}}function Lt(t){return function(n,e){return e._?t.exec(n):null}}function Mt(t){return function(n,e){return e._||e.u?t.exec(n):null}}function Ot(t){return function(n,e){return e._||e.u?null:t.exec(n)}}function It(t){return function(n){return t.exec(n)}}function jt(t,n,e){if(n._||n.u)return null;if(e&&!e.endsWith(\"\\n\"))return null;let r=\"\";t.split(\"\\n\").every(t=>!$t.some(n=>n.test(t))&&(r+=t+\"\\n\",t.trim()));const o=r.trimEnd();return\"\"==o?null:[r,o]}function Bt(t){try{if(decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,\"\").match(/^\\s*(javascript|vbscript|data(?!:image)):/i))return}catch(t){return null}return t}function Rt(t){return t.replace(et,\"$1\")}function Tt(t,n,e){const r=e._||!1,o=e.u||!1;e._=!0,e.u=!0;const c=t(n,e);return e._=r,e.u=o,c}function Ct(t,n,e){const r=e._||!1,o=e.u||!1;e._=!1,e.u=!0;const c=t(n,e);return e._=r,e.u=o,c}function Dt(t,n,e){return e._=!1,t(n,e)}const Ft=(t,n,e)=>({v:Tt(n,t[1],e)});function Nt(){return{}}function Pt(){return null}function Zt(...t){return t.filter(Boolean).join(\" \")}function Gt(t,n,e){let r=t;const o=n.split(\".\");for(;o.length&&(r=r[o[0]],void 0!==r);)o.shift();return r||e}var Ht;function qt(e,u={}){u.overrides=u.overrides||{},u.slugify=u.slugify||St,u.namedCodesToUnicode=u.namedCodesToUnicode?n({},o,u.namedCodesToUnicode):o;const G=u.createElement||t.createElement;function H(t,e,...r){const o=Gt(u.overrides,`${t}.props`,{});return G(function(t,n){const e=Gt(n,t);return e?\"function\"==typeof e||\"object\"==typeof e&&\"render\"in e?e:Gt(n,`${t}.component`,t):t}(t,u.overrides),n({},e,o,{className:Zt(null==e?void 0:e.className,o.className)||void 0}),...r)}function q(n){let e=!1;u.forceInline?e=!0:u.forceBlock||(e=!1===N.test(n));const r=ct(ot(e?n:`${n.trimEnd().replace(tt,\"\")}\\n\\n`,{_:e}));for(;\"string\"==typeof r[r.length-1]&&!r[r.length-1].trim();)r.pop();if(null===u.wrapper)return r;const o=u.wrapper||(e?\"span\":\"div\");let c;if(r.length>1||u.forceWrapper)c=r;else{if(1===r.length)return c=r[0],\"string\"==typeof c?H(\"span\",{key:\"outer\"},c):c;c=null}return t.createElement(o,{key:\"outer\"},c)}function U(n){const e=n.match(a);return e?e.reduce(function(n,e,o){const c=e.indexOf(\"=\");if(-1!==c){const a=function(t){return-1!==t.indexOf(\"-\")&&null===t.match(E)&&(t=t.replace(B,function(t,n){return n.toUpperCase()})),t}(e.slice(0,c)).trim(),_=function(t){const n=t[0];return('\"'===n||\"'\"===n)&&t.length>=2&&t[t.length-1]===n?t.slice(1,-1):t}(e.slice(c+1).trim()),u=r[a]||a,i=n[u]=function(t,n){return\"style\"===t?n.split(/;\\s?/).reduce(function(t,n){const e=n.slice(0,n.indexOf(\":\"));return t[e.replace(/(-[a-z])/g,t=>t[1].toUpperCase())]=n.slice(e.length+1).trim(),t},{}):\"href\"===t?Bt(n):(n.match(M)&&(n=n.slice(1,n.length-1)),\"true\"===n||\"false\"!==n&&n)}(a,_);\"string\"==typeof i&&(z.test(i)||L.test(i))&&(n[u]=t.cloneElement(q(i.trim()),{key:o}))}else\"style\"!==e&&(n[r[e]||e]=!0);return n},{}):null}const V=[],et={},rt={blockQuote:{t:Ot(i),i:Ht.HIGH,l:(t,n,e)=>({v:n(t[0].replace(s,\"\"),e)}),h:(t,n,e)=>H(\"blockquote\",{key:e.k},n(t.v,e))},breakLine:{t:It(l),i:Ht.HIGH,l:Nt,h:(t,n,e)=>H(\"br\",{key:e.k})},breakThematic:{t:Ot(f),i:Ht.HIGH,l:Nt,h:(t,n,e)=>H(\"hr\",{key:e.k})},codeBlock:{t:Ot(p),i:Ht.MAX,l:t=>({v:t[0].replace(/^ {4}/gm,\"\").replace(/\\n+$/,\"\"),M:void 0}),h:(t,e,r)=>H(\"pre\",{key:r.k},H(\"code\",n({},t.O,{className:t.M?`lang-${t.M}`:\"\"}),t.v))},codeFenced:{t:Ot(d),i:Ht.MAX,l:t=>({O:U(t[3]||\"\"),v:t[4],M:t[2]||void 0,type:\"codeBlock\"})},codeInline:{t:Mt(m),i:Ht.LOW,l:t=>({v:t[2]}),h:(t,n,e)=>H(\"code\",{key:e.k},t.v)},footnote:{t:Ot(h),i:Ht.MAX,l:t=>(V.push({I:t[2],j:t[1]}),{}),h:Pt},footnoteReference:{t:Lt(k),i:Ht.HIGH,l:t=>({v:t[1],B:`#${u.slugify(t[1])}`}),h:(t,n,e)=>H(\"a\",{key:e.k,href:Bt(t.B)},H(\"sup\",{key:e.k},t.v))},gfmTask:{t:Lt(b),i:Ht.HIGH,l:t=>({R:\"x\"===t[1].toLowerCase()}),h:(t,n,e)=>H(\"input\",{checked:t.R,key:e.k,readOnly:!0,type:\"checkbox\"})},heading:{t:Ot(u.enforceAtxHeadings?v:$),i:Ht.HIGH,l:(t,n,e)=>({v:Tt(n,t[2],e),T:u.slugify(t[2]),C:t[1].length}),h:(t,n,e)=>H(`h${t.C}`,{id:t.T,key:e.k},n(t.v,e))},headingSetext:{t:Ot(S),i:Ht.MAX,l:(t,n,e)=>({v:Tt(n,t[1],e),C:\"=\"===t[2]?1:2,type:\"heading\"})},htmlComment:{t:It(A),i:Ht.HIGH,l:()=>({}),h:Pt},image:{t:Mt(bt),i:Ht.HIGH,l:t=>({D:t[1],B:Rt(t[2]),F:t[3]}),h:(t,n,e)=>H(\"img\",{key:e.k,alt:t.D||void 0,title:t.F||void 0,src:Bt(t.B)})},link:{t:Lt(xt),i:Ht.LOW,l:(t,n,e)=>({v:Ct(n,t[1],e),B:Rt(t[2]),F:t[3]}),h:(t,n,e)=>H(\"a\",{key:e.k,href:Bt(t.B),title:t.F},n(t.v,e))},linkAngleBraceStyleDetector:{t:Lt(j),i:Ht.MAX,l:t=>({v:[{v:t[1],type:\"text\"}],B:t[1],type:\"link\"})},linkBareUrlDetector:{t:(t,n)=>n.N?null:Lt(O)(t,n),i:Ht.MAX,l:t=>({v:[{v:t[1],type:\"text\"}],B:t[1],F:void 0,type:\"link\"})},linkMailtoDetector:{t:Lt(I),i:Ht.MAX,l(t){let n=t[1],e=t[1];return _.test(e)||(e=\"mailto:\"+e),{v:[{v:n.replace(\"mailto:\",\"\"),type:\"text\"}],B:e,type:\"link\"}}},orderedList:kt(H,1),unorderedList:kt(H,2),newlineCoalescer:{t:Ot(g),i:Ht.LOW,l:Nt,h:()=>\"\\n\"},paragraph:{t:jt,i:Ht.LOW,l:Ft,h:(t,n,e)=>H(\"p\",{key:e.k},n(t.v,e))},ref:{t:Lt(T),i:Ht.MAX,l:t=>(et[t[1]]={B:t[2],F:t[4]},{}),h:Pt},refImage:{t:Mt(C),i:Ht.MAX,l:t=>({D:t[1]||void 0,P:t[2]}),h:(t,n,e)=>H(\"img\",{key:e.k,alt:t.D,src:Bt(et[t.P].B),title:et[t.P].F})},refLink:{t:Lt(D),i:Ht.MAX,l:(t,n,e)=>({v:n(t[1],e),Z:n(t[0].replace(F,\"\\\\$1\"),e),P:t[2]}),h:(t,n,e)=>et[t.P]?H(\"a\",{key:e.k,href:Bt(et[t.P].B),title:et[t.P].F},n(t.v,e)):H(\"span\",{key:e.k},n(t.Z,e))},table:{t:Ot(R),i:Ht.HIGH,l:At,h:(t,n,e)=>H(\"table\",{key:e.k},H(\"thead\",null,H(\"tr\",null,t.L.map(function(r,o){return H(\"th\",{key:o,style:Et(t,o)},n(r,e))}))),H(\"tbody\",null,t.A.map(function(r,o){return H(\"tr\",{key:o},r.map(function(r,o){return H(\"td\",{key:o,style:Et(t,o)},n(r,e))}))})))},tableSeparator:{t:function(t,n){return n.$?(n._=!0,Z.exec(t)):null},i:Ht.HIGH,l:function(){return{type:\"tableSeparator\"}},h:()=>\" | \"},text:{t:It(Y),i:Ht.MIN,l:t=>({v:t[0].replace(w,(t,n)=>u.namedCodesToUnicode[n]?u.namedCodesToUnicode[n]:t)}),h:t=>t.v},textBolded:{t:Mt(W),i:Ht.MED,l:(t,n,e)=>({v:n(t[2],e)}),h:(t,n,e)=>H(\"strong\",{key:e.k},n(t.v,e))},textEmphasized:{t:Mt(Q),i:Ht.LOW,l:(t,n,e)=>({v:n(t[2],e)}),h:(t,n,e)=>H(\"em\",{key:e.k},n(t.v,e))},textEscaped:{t:Mt(K),i:Ht.HIGH,l:t=>({v:t[1],type:\"text\"})},textMarked:{t:Mt(X),i:Ht.LOW,l:Ft,h:(t,n,e)=>H(\"mark\",{key:e.k},n(t.v,e))},textStrikethroughed:{t:Mt(J),i:Ht.LOW,l:Ft,h:(t,n,e)=>H(\"del\",{key:e.k},n(t.v,e))}};!0!==u.disableParsingRawHTML&&(rt.htmlBlock={t:It(z),i:Ht.HIGH,l(t,n,e){const[,r]=t[3].match(nt),o=new RegExp(`^${r}`,\"gm\"),a=t[3].replace(o,\"\"),_=(u=a,vt.some(t=>t.test(u))?Dt:Tt);var u;const i=t[1].toLowerCase(),s=-1!==c.indexOf(i);e.N=e.N||\"a\"===i;const l=s?t[3]:_(n,a,e);return e.N=!1,{O:U(t[2]),v:l,G:s,H:s?i:t[1]}},h:(t,e,r)=>H(t.H,n({key:r.k},t.O),t.G?t.v:e(t.v,r))},rt.htmlSelfClosing={t:It(L),i:Ht.HIGH,l:t=>({O:U(t[2]||\"\"),H:t[1]}),h:(t,e,r)=>H(t.H,n({},t.O,{key:r.k}))});const ot=function(t){let n=Object.keys(t);function e(r,o){let c=[],a=\"\";for(;r;){let _=0;for(;_{let{children:r,options:o}=n,c=function(t,n){if(null==t)return{};var e,r,o={},c=Object.keys(t);for(r=0;r=0||(o[e]=t[e]);return o}(n,e);return t.cloneElement(qt(r,o),c)};export{qt as compiler};\n//# sourceMappingURL=index.modern.js.map\n","import { getControlSetterButtonId, getControlId } from './chunk-GWAJ4KRU.mjs';\nimport { styled, ignoreSsrWarning, themes, ThemeProvider, convert, useTheme, ensure } from '@storybook/theming';\nimport React17, { createContext, lazy, Fragment, useState, useCallback, useRef, useEffect, Component, cloneElement, useMemo, Suspense, useContext, Children } from 'react';\nimport { withReset, SyntaxHighlighter, FlexBar, codeCommon, Icons, IconButton, Form, components, IconButtonSkeleton, Zoom as Zoom$1, ActionBar, Link, ResetWrapper, Code, nameSpaceClassNames, H3, H2, Loader, TabsState, ErrorFormatter, getStoryHref, WithTooltipPure } from '@storybook/components';\nimport { transparentize, darken, opacify, lighten, rgba } from 'polished';\nimport { global } from '@storybook/global';\nimport pickBy from 'lodash/pickBy.js';\nimport { includeConditionalArg } from '@storybook/csf';\nimport { deprecate, once, logger } from '@storybook/client-logger';\nimport Markdown from 'markdown-to-jsx';\nimport memoize from 'memoizerific';\nimport uniq from 'lodash/uniq.js';\nimport cloneDeep from 'lodash/cloneDeep.js';\nimport { filterArgTypes, composeConfigs, Preview as Preview$1, DocsContext as DocsContext$1 } from '@storybook/preview-api';\nimport mapValues from 'lodash/mapValues.js';\nimport { STORY_ARGS_UPDATED, UPDATE_STORY_ARGS, RESET_STORY_ARGS, GLOBALS_UPDATED, NAVIGATE_URL } from '@storybook/core-events';\nimport dedent2 from 'ts-dedent';\nimport { SNIPPET_RENDERED, SourceType, str } from '@storybook/docs-tools';\nimport { stringify } from 'telejson';\nimport * as tocbot from 'tocbot';\nimport { Channel } from '@storybook/channels';\n\nvar Wrapper=styled.div(withReset,({theme})=>({backgroundColor:theme.base===\"light\"?\"rgba(0,0,0,.01)\":\"rgba(255,255,255,.01)\",borderRadius:theme.appBorderRadius,border:`1px dashed ${theme.appBorderColor}`,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",padding:20,margin:\"25px 0 40px\",color:transparentize(.3,theme.color.defaultText),fontSize:theme.typography.size.s2})),EmptyBlock=props=>React17.createElement(Wrapper,{...props,className:\"docblock-emptyblock sb-unstyled\"});var StyledSyntaxHighlighter=styled(SyntaxHighlighter)(({theme})=>({fontSize:`${theme.typography.size.s2-1}px`,lineHeight:\"19px\",margin:\"25px 0 40px\",borderRadius:theme.appBorderRadius,boxShadow:theme.base===\"light\"?\"rgba(0, 0, 0, 0.10) 0 1px 3px 0\":\"rgba(0, 0, 0, 0.20) 0 2px 5px 0\",\"pre.prismjs\":{padding:20,background:\"inherit\"}}));var SourceSkeletonWrapper=styled.div(({theme})=>({background:theme.background.content,borderRadius:theme.appBorderRadius,border:`1px solid ${theme.appBorderColor}`,boxShadow:theme.base===\"light\"?\"rgba(0, 0, 0, 0.10) 0 1px 3px 0\":\"rgba(0, 0, 0, 0.20) 0 2px 5px 0\",margin:\"25px 0 40px\",padding:\"20px 20px 20px 22px\"})),SourceSkeletonPlaceholder=styled.div(({theme})=>({animation:`${theme.animation.glow} 1.5s ease-in-out infinite`,background:theme.appBorderColor,height:17,marginTop:1,width:\"60%\",[`&:first-child${ignoreSsrWarning}`]:{margin:0}})),SourceSkeleton=()=>React17.createElement(SourceSkeletonWrapper,null,React17.createElement(SourceSkeletonPlaceholder,null),React17.createElement(SourceSkeletonPlaceholder,{style:{width:\"80%\"}}),React17.createElement(SourceSkeletonPlaceholder,{style:{width:\"30%\"}}),React17.createElement(SourceSkeletonPlaceholder,{style:{width:\"80%\"}})),Source=({isLoading,error,language,code,dark,format:format2,...rest})=>{if(isLoading)return React17.createElement(SourceSkeleton,null);if(error)return React17.createElement(EmptyBlock,null,error);let syntaxHighlighter=React17.createElement(StyledSyntaxHighlighter,{bordered:!0,copyable:!0,format:format2,language,className:\"docblock-source sb-unstyled\",...rest},code);if(typeof dark>\"u\")return syntaxHighlighter;let overrideTheme=dark?themes.dark:themes.light;return React17.createElement(ThemeProvider,{theme:convert(overrideTheme)},syntaxHighlighter)};Source.defaultProps={format:!1};var toGlobalSelector=element=>`& :where(${element}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${element}))`,breakpoint=600,Title=styled.h1(withReset,({theme})=>({color:theme.color.defaultText,fontSize:theme.typography.size.m3,fontWeight:theme.typography.weight.bold,lineHeight:\"32px\",[`@media (min-width: ${breakpoint}px)`]:{fontSize:theme.typography.size.l1,lineHeight:\"36px\",marginBottom:\"16px\"}})),Subtitle=styled.h2(withReset,({theme})=>({fontWeight:theme.typography.weight.regular,fontSize:theme.typography.size.s3,lineHeight:\"20px\",borderBottom:\"none\",marginBottom:15,[`@media (min-width: ${breakpoint}px)`]:{fontSize:theme.typography.size.m1,lineHeight:\"28px\",marginBottom:24},color:transparentize(.25,theme.color.defaultText)})),DocsContent=styled.div(({theme})=>{let reset={fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s3,margin:0,WebkitFontSmoothing:\"antialiased\",MozOsxFontSmoothing:\"grayscale\",WebkitTapHighlightColor:\"rgba(0, 0, 0, 0)\",WebkitOverflowScrolling:\"touch\"},headers={margin:\"20px 0 8px\",padding:0,cursor:\"text\",position:\"relative\",color:theme.color.defaultText,\"&:first-of-type\":{marginTop:0,paddingTop:0},\"&:hover a.anchor\":{textDecoration:\"none\"},\"& code\":{fontSize:\"inherit\"}},code={lineHeight:1,margin:\"0 2px\",padding:\"3px 5px\",whiteSpace:\"nowrap\",borderRadius:3,fontSize:theme.typography.size.s2-1,border:theme.base===\"light\"?`1px solid ${theme.color.mediumlight}`:`1px solid ${theme.color.darker}`,color:theme.base===\"light\"?transparentize(.1,theme.color.defaultText):transparentize(.3,theme.color.defaultText),backgroundColor:theme.base===\"light\"?theme.color.lighter:theme.color.border};return {maxWidth:1e3,width:\"100%\",[toGlobalSelector(\"a\")]:{...reset,fontSize:\"inherit\",lineHeight:\"24px\",color:theme.color.secondary,textDecoration:\"none\",\"&.absent\":{color:\"#cc0000\"},\"&.anchor\":{display:\"block\",paddingLeft:30,marginLeft:-30,cursor:\"pointer\",position:\"absolute\",top:0,left:0,bottom:0}},[toGlobalSelector(\"blockquote\")]:{...reset,margin:\"16px 0\",borderLeft:`4px solid ${theme.color.medium}`,padding:\"0 15px\",color:theme.color.dark,\"& > :first-of-type\":{marginTop:0},\"& > :last-child\":{marginBottom:0}},[toGlobalSelector(\"div\")]:reset,[toGlobalSelector(\"dl\")]:{...reset,margin:\"16px 0\",padding:0,\"& dt\":{fontSize:\"14px\",fontWeight:\"bold\",fontStyle:\"italic\",padding:0,margin:\"16px 0 4px\"},\"& dt:first-of-type\":{padding:0},\"& dt > :first-of-type\":{marginTop:0},\"& dt > :last-child\":{marginBottom:0},\"& dd\":{margin:\"0 0 16px\",padding:\"0 15px\"},\"& dd > :first-of-type\":{marginTop:0},\"& dd > :last-child\":{marginBottom:0}},[toGlobalSelector(\"h1\")]:{...reset,...headers,fontSize:`${theme.typography.size.l1}px`,fontWeight:theme.typography.weight.bold},[toGlobalSelector(\"h2\")]:{...reset,...headers,fontSize:`${theme.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${theme.appBorderColor}`},[toGlobalSelector(\"h3\")]:{...reset,...headers,fontSize:`${theme.typography.size.m1}px`,fontWeight:theme.typography.weight.bold},[toGlobalSelector(\"h4\")]:{...reset,...headers,fontSize:`${theme.typography.size.s3}px`},[toGlobalSelector(\"h5\")]:{...reset,...headers,fontSize:`${theme.typography.size.s2}px`},[toGlobalSelector(\"h6\")]:{...reset,...headers,fontSize:`${theme.typography.size.s2}px`,color:theme.color.dark},[toGlobalSelector(\"hr\")]:{border:\"0 none\",borderTop:`1px solid ${theme.appBorderColor}`,height:4,padding:0},[toGlobalSelector(\"img\")]:{maxWidth:\"100%\"},[toGlobalSelector(\"li\")]:{...reset,fontSize:theme.typography.size.s2,color:theme.color.defaultText,lineHeight:\"24px\",\"& + li\":{marginTop:\".25em\"},\"& ul, & ol\":{marginTop:\".25em\",marginBottom:0},\"& code\":code},[toGlobalSelector(\"ol\")]:{...reset,margin:\"16px 0\",paddingLeft:30,\"& :first-of-type\":{marginTop:0},\"& :last-child\":{marginBottom:0}},[toGlobalSelector(\"p\")]:{...reset,margin:\"16px 0\",fontSize:theme.typography.size.s2,lineHeight:\"24px\",color:theme.color.defaultText,\"& code\":code},[toGlobalSelector(\"pre\")]:{...reset,fontFamily:theme.typography.fonts.mono,WebkitFontSmoothing:\"antialiased\",MozOsxFontSmoothing:\"grayscale\",lineHeight:\"18px\",padding:\"11px 1rem\",whiteSpace:\"pre-wrap\",color:\"inherit\",borderRadius:3,margin:\"1rem 0\",\"&:not(.prismjs)\":{background:\"transparent\",border:\"none\",borderRadius:0,padding:0,margin:0},\"& pre, &.prismjs\":{padding:15,margin:0,whiteSpace:\"pre-wrap\",color:\"inherit\",fontSize:\"13px\",lineHeight:\"19px\",code:{color:\"inherit\",fontSize:\"inherit\"}},\"& code\":{whiteSpace:\"pre\"},\"& code, & tt\":{border:\"none\"}},[toGlobalSelector(\"span\")]:{...reset,\"&.frame\":{display:\"block\",overflow:\"hidden\",\"& > span\":{border:`1px solid ${theme.color.medium}`,display:\"block\",float:\"left\",overflow:\"hidden\",margin:\"13px 0 0\",padding:7,width:\"auto\"},\"& span img\":{display:\"block\",float:\"left\"},\"& span span\":{clear:\"both\",color:theme.color.darkest,display:\"block\",padding:\"5px 0 0\"}},\"&.align-center\":{display:\"block\",overflow:\"hidden\",clear:\"both\",\"& > span\":{display:\"block\",overflow:\"hidden\",margin:\"13px auto 0\",textAlign:\"center\"},\"& span img\":{margin:\"0 auto\",textAlign:\"center\"}},\"&.align-right\":{display:\"block\",overflow:\"hidden\",clear:\"both\",\"& > span\":{display:\"block\",overflow:\"hidden\",margin:\"13px 0 0\",textAlign:\"right\"},\"& span img\":{margin:0,textAlign:\"right\"}},\"&.float-left\":{display:\"block\",marginRight:13,overflow:\"hidden\",float:\"left\",\"& span\":{margin:\"13px 0 0\"}},\"&.float-right\":{display:\"block\",marginLeft:13,overflow:\"hidden\",float:\"right\",\"& > span\":{display:\"block\",overflow:\"hidden\",margin:\"13px auto 0\",textAlign:\"right\"}}},[toGlobalSelector(\"table\")]:{...reset,margin:\"16px 0\",fontSize:theme.typography.size.s2,lineHeight:\"24px\",padding:0,borderCollapse:\"collapse\",\"& tr\":{borderTop:`1px solid ${theme.appBorderColor}`,backgroundColor:theme.appContentBg,margin:0,padding:0},\"& tr:nth-of-type(2n)\":{backgroundColor:theme.base===\"dark\"?theme.color.darker:theme.color.lighter},\"& tr th\":{fontWeight:\"bold\",color:theme.color.defaultText,border:`1px solid ${theme.appBorderColor}`,margin:0,padding:\"6px 13px\"},\"& tr td\":{border:`1px solid ${theme.appBorderColor}`,color:theme.color.defaultText,margin:0,padding:\"6px 13px\"},\"& tr th :first-of-type, & tr td :first-of-type\":{marginTop:0},\"& tr th :last-child, & tr td :last-child\":{marginBottom:0}},[toGlobalSelector(\"ul\")]:{...reset,margin:\"16px 0\",paddingLeft:30,\"& :first-of-type\":{marginTop:0},\"& :last-child\":{marginBottom:0},listStyle:\"disc\"}}}),DocsWrapper=styled.div(({theme})=>({background:theme.background.content,display:\"flex\",justifyContent:\"center\",padding:\"4rem 20px\",minHeight:\"100vh\",boxSizing:\"border-box\",gap:\"3rem\",[`@media (min-width: ${breakpoint}px)`]:{}})),DocsPageWrapper=({children,toc})=>React17.createElement(DocsWrapper,{className:\"sbdocs sbdocs-wrapper\"},React17.createElement(DocsContent,{className:\"sbdocs sbdocs-content\"},children),toc);var getBlockBackgroundStyle=theme=>({borderRadius:theme.appBorderRadius,background:theme.background.content,boxShadow:theme.base===\"light\"?\"rgba(0, 0, 0, 0.10) 0 1px 3px 0\":\"rgba(0, 0, 0, 0.20) 0 2px 5px 0\",border:`1px solid ${theme.appBorderColor}`});var Zoom=({zoom,resetZoom})=>React17.createElement(React17.Fragment,null,React17.createElement(IconButton,{key:\"zoomin\",onClick:e=>{e.preventDefault(),zoom(.8);},title:\"Zoom in\"},React17.createElement(Icons,{icon:\"zoom\"})),React17.createElement(IconButton,{key:\"zoomout\",onClick:e=>{e.preventDefault(),zoom(1.25);},title:\"Zoom out\"},React17.createElement(Icons,{icon:\"zoomout\"})),React17.createElement(IconButton,{key:\"zoomreset\",onClick:e=>{e.preventDefault(),resetZoom();},title:\"Reset zoom\"},React17.createElement(Icons,{icon:\"zoomreset\"}))),Bar=styled(FlexBar)({position:\"absolute\",left:0,right:0,top:0,transition:\"transform .2s linear\"}),Toolbar=({isLoading,storyId,baseUrl,zoom,resetZoom,...rest})=>React17.createElement(Bar,{...rest},React17.createElement(Fragment,{key:\"left\"},isLoading?[1,2,3].map(key=>React17.createElement(IconButtonSkeleton,{key})):React17.createElement(Zoom,{zoom,resetZoom})));var ZoomContext=createContext({scale:1});var{window:globalWindow}=global,IFrame=class extends Component{constructor(){super(...arguments);this.iframe=null;}componentDidMount(){let{id}=this.props;this.iframe=globalWindow.document.getElementById(id);}shouldComponentUpdate(nextProps){let{scale}=nextProps;return scale!==this.props.scale&&this.setIframeBodyStyle({width:`${scale*100}%`,height:`${scale*100}%`,transform:`scale(${1/scale})`,transformOrigin:\"top left\"}),!1}setIframeBodyStyle(style){return Object.assign(this.iframe.contentDocument.body.style,style)}render(){let{id,title,src,allowFullScreen,scale,...rest}=this.props;return React17.createElement(\"iframe\",{id,title,src,...allowFullScreen?{allow:\"fullscreen\"}:{},loading:\"lazy\",...rest})}};var{PREVIEW_URL}=global,BASE_URL=PREVIEW_URL||\"iframe.html\",storyBlockIdFromId=({story,primary})=>`story--${story.id}${primary?\"--primary\":\"\"}`,InlineStory=props=>{let storyRef=useRef(),[showLoader,setShowLoader]=useState(!0),[error,setError]=useState(),{story,height,autoplay,forceInitialArgs,renderStoryToElement}=props;return useEffect(()=>{if(!(story&&storyRef.current))return ()=>{};let element=storyRef.current,cleanup=renderStoryToElement(story,element,{showMain:()=>{},showError:({title,description})=>setError(new Error(`${title} - ${description}`)),showException:err=>setError(err)},{autoplay,forceInitialArgs});return setShowLoader(!1),()=>{Promise.resolve().then(()=>cleanup());}},[autoplay,renderStoryToElement,story]),error?React17.createElement(\"pre\",null,React17.createElement(ErrorFormatter,{error})):React17.createElement(React17.Fragment,null,height?React17.createElement(\"style\",null,`#${storyBlockIdFromId(props)} { min-height: ${height}; transform: translateZ(0); overflow: auto }`):null,showLoader&&React17.createElement(StorySkeleton,null),React17.createElement(\"div\",{ref:storyRef,id:`${storyBlockIdFromId(props)}-inner`,\"data-name\":story.name}))},IFrameStory=({story,height=\"500px\"})=>React17.createElement(\"div\",{style:{width:\"100%\",height}},React17.createElement(ZoomContext.Consumer,null,({scale})=>React17.createElement(IFrame,{key:\"iframe\",id:`iframe--${story.id}`,title:story.name,src:getStoryHref(BASE_URL,story.id,{viewMode:\"story\"}),allowFullScreen:!0,scale,style:{width:\"100%\",height:\"100%\",border:\"0 none\"}}))),Story=props=>{let{inline}=props;return React17.createElement(\"div\",{id:storyBlockIdFromId(props),className:\"sb-story sb-unstyled\",\"data-story-block\":\"true\"},inline?React17.createElement(InlineStory,{...props}):React17.createElement(IFrameStory,{...props}))},StorySkeleton=()=>React17.createElement(Loader,null);var ChildrenContainer=styled.div(({isColumn,columns,layout})=>({display:isColumn||!columns?\"block\":\"flex\",position:\"relative\",flexWrap:\"wrap\",overflow:\"auto\",flexDirection:isColumn?\"column\":\"row\",\"& .innerZoomElementWrapper > *\":isColumn?{width:layout!==\"fullscreen\"?\"calc(100% - 20px)\":\"100%\",display:\"block\"}:{maxWidth:layout!==\"fullscreen\"?\"calc(100% - 20px)\":\"100%\",display:\"inline-block\"}}),({layout=\"padded\"})=>layout===\"centered\"||layout===\"padded\"?{padding:\"30px 20px\",\"& .innerZoomElementWrapper > *\":{width:\"auto\",border:\"10px solid transparent!important\"}}:{},({layout=\"padded\"})=>layout===\"centered\"?{display:\"flex\",justifyContent:\"center\",justifyItems:\"center\",alignContent:\"center\",alignItems:\"center\"}:{},({columns})=>columns&&columns>1?{\".innerZoomElementWrapper > *\":{minWidth:`calc(100% / ${columns} - 20px)`}}:{}),StyledSource=styled(Source)(({theme})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:theme.appBorderRadius,borderBottomRightRadius:theme.appBorderRadius,border:\"none\",background:theme.base===\"light\"?\"rgba(0, 0, 0, 0.85)\":darken(.05,theme.background.content),color:theme.color.lightest,button:{background:theme.base===\"light\"?\"rgba(0, 0, 0, 0.85)\":darken(.05,theme.background.content)}})),PreviewContainer=styled.div(({theme,withSource,isExpanded})=>({position:\"relative\",overflow:\"hidden\",margin:\"25px 0 40px\",...getBlockBackgroundStyle(theme),borderBottomLeftRadius:withSource&&isExpanded&&0,borderBottomRightRadius:withSource&&isExpanded&&0,borderBottomWidth:isExpanded&&0,\"h3 + &\":{marginTop:\"16px\"}}),({withToolbar})=>withToolbar&&{paddingTop:40}),getSource=(withSource,expanded,setExpanded)=>{switch(!0){case!!(withSource&&withSource.error):return {source:null,actionItem:{title:\"No code available\",className:\"docblock-code-toggle docblock-code-toggle--disabled\",disabled:!0,onClick:()=>setExpanded(!1)}};case expanded:return {source:React17.createElement(StyledSource,{...withSource,dark:!0}),actionItem:{title:\"Hide code\",className:\"docblock-code-toggle docblock-code-toggle--expanded\",onClick:()=>setExpanded(!1)}};default:return {source:React17.createElement(StyledSource,{...withSource,dark:!0}),actionItem:{title:\"Show code\",className:\"docblock-code-toggle\",onClick:()=>setExpanded(!0)}}}};function getStoryId(children){if(Children.count(children)===1){let elt=children;if(elt.props)return elt.props.id}return null}var PositionedToolbar=styled(Toolbar)({position:\"absolute\",top:0,left:0,right:0,height:40}),Relative=styled.div({overflow:\"hidden\",position:\"relative\"}),Preview=({isLoading,isColumn,columns,children,withSource,withToolbar=!1,isExpanded=!1,additionalActions,className,layout=\"padded\",...props})=>{let[expanded,setExpanded]=useState(isExpanded),{source,actionItem}=getSource(withSource,expanded,setExpanded),[scale,setScale]=useState(1),previewClasses=[className].concat([\"sbdocs\",\"sbdocs-preview\",\"sb-unstyled\"]),defaultActionItems=withSource?[actionItem]:[],[additionalActionItems,setAdditionalActionItems]=useState(additionalActions?[...additionalActions]:[]),actionItems=[...defaultActionItems,...additionalActionItems],{window:globalWindow4}=global,copyToClipboard=useCallback(async text=>{let{createCopyToClipboardFunction}=await import('@storybook/components');createCopyToClipboardFunction();},[]),onCopyCapture=e=>{let selection=globalWindow4.getSelection();selection&&selection.type===\"Range\"||(e.preventDefault(),additionalActionItems.filter(item=>item.title===\"Copied\").length===0&©ToClipboard(source.props.code).then(()=>{setAdditionalActionItems([...additionalActionItems,{title:\"Copied\",onClick:()=>{}}]),globalWindow4.setTimeout(()=>setAdditionalActionItems(additionalActionItems.filter(item=>item.title!==\"Copied\")),1500);}));};return React17.createElement(PreviewContainer,{withSource,withToolbar,...props,className:previewClasses.join(\" \")},withToolbar&&React17.createElement(PositionedToolbar,{isLoading,border:!0,zoom:z=>setScale(scale*z),resetZoom:()=>setScale(1),storyId:getStoryId(children),baseUrl:\"./iframe.html\"}),React17.createElement(ZoomContext.Provider,{value:{scale}},React17.createElement(Relative,{className:\"docs-story\",onCopyCapture:withSource&&onCopyCapture},React17.createElement(ChildrenContainer,{isColumn:isColumn||!Array.isArray(children),columns,layout},React17.createElement(Zoom$1.Element,{scale},Array.isArray(children)?children.map((child,i)=>React17.createElement(\"div\",{key:i},child)):React17.createElement(\"div\",null,children))),React17.createElement(ActionBar,{actionItems}))),withSource&&expanded&&source)},StyledPreview=styled(Preview)(()=>({\".docs-story\":{paddingTop:32,paddingBottom:40}})),PreviewSkeleton=()=>React17.createElement(StyledPreview,{isLoading:!0,withToolbar:!0},React17.createElement(StorySkeleton,null));var Table=styled.table(({theme})=>({\"&&\":{borderCollapse:\"collapse\",borderSpacing:0,border:\"none\",tr:{border:\"none !important\",background:\"none\"},\"td, th\":{padding:0,border:\"none\",width:\"auto!important\"},marginTop:0,marginBottom:0,\"th:first-of-type, td:first-of-type\":{paddingLeft:0},\"th:last-of-type, td:last-of-type\":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,\"&:not(:first-of-type)\":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:\"none\",border:\"none\"},code:codeCommon({theme}),div:{span:{fontWeight:\"bold\"}},\"& code\":{margin:0,display:\"inline-block\",fontSize:theme.typography.size.s1}}})),ArgJsDoc=({tags})=>{let params=(tags.params||[]).filter(x=>x.description),hasDisplayableParams=params.length!==0,hasDisplayableDeprecated=tags.deprecated!=null,hasDisplayableReturns=tags.returns!=null&&tags.returns.description!=null;return !hasDisplayableParams&&!hasDisplayableReturns&&!hasDisplayableDeprecated?null:React17.createElement(React17.Fragment,null,React17.createElement(Table,null,React17.createElement(\"tbody\",null,hasDisplayableDeprecated&&React17.createElement(\"tr\",{key:\"deprecated\"},React17.createElement(\"td\",{colSpan:2},React17.createElement(\"strong\",null,\"Deprecated\"),\": \",tags.deprecated)),hasDisplayableParams&¶ms.map(x=>React17.createElement(\"tr\",{key:x.name},React17.createElement(\"td\",null,React17.createElement(\"code\",null,x.name)),React17.createElement(\"td\",null,x.description))),hasDisplayableReturns&&React17.createElement(\"tr\",{key:\"returns\"},React17.createElement(\"td\",null,React17.createElement(\"code\",null,\"Returns\")),React17.createElement(\"td\",null,tags.returns.description)))))};var ITEMS_BEFORE_EXPANSION=8,Summary=styled.div(({isExpanded})=>({display:\"flex\",flexDirection:isExpanded?\"column\":\"row\",flexWrap:\"wrap\",alignItems:\"flex-start\",marginBottom:\"-4px\",minWidth:100})),Text=styled.span(codeCommon,({theme,simple=!1})=>({flex:\"0 0 auto\",fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,wordBreak:\"break-word\",whiteSpace:\"normal\",maxWidth:\"100%\",margin:0,marginRight:\"4px\",marginBottom:\"4px\",paddingTop:\"2px\",paddingBottom:\"2px\",lineHeight:\"13px\",...simple&&{background:\"transparent\",border:\"0 none\",paddingLeft:0}})),ExpandButton=styled.button(({theme})=>({fontFamily:theme.typography.fonts.mono,color:theme.color.secondary,marginBottom:\"4px\",background:\"none\",border:\"none\"})),Expandable=styled.div(codeCommon,({theme})=>({fontFamily:theme.typography.fonts.mono,color:theme.color.secondary,fontSize:theme.typography.size.s1,margin:0,whiteSpace:\"nowrap\",display:\"flex\",alignItems:\"center\"})),Detail=styled.div(({theme,width})=>({width,minWidth:200,maxWidth:800,padding:15,fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,boxSizing:\"content-box\",\"& code\":{padding:\"0 !important\"}})),ArrowIcon=styled(Icons)({height:10,width:10,minWidth:10,marginLeft:4}),EmptyArg=()=>React17.createElement(\"span\",null,\"-\"),ArgText=({text,simple})=>React17.createElement(Text,{simple},text),calculateDetailWidth=memoize(1e3)(detail=>{let lines=detail.split(/\\r?\\n/);return `${Math.max(...lines.map(x=>x.length))}ch`}),getSummaryItems=summary=>{if(!summary)return [summary];let summaryItems=summary.split(\"|\").map(value2=>value2.trim());return uniq(summaryItems)},renderSummaryItems=(summaryItems,isExpanded=!0)=>{let items=summaryItems;return isExpanded||(items=summaryItems.slice(0,ITEMS_BEFORE_EXPANSION)),items.map(item=>React17.createElement(ArgText,{key:item,text:item===\"\"?'\"\"':item}))},ArgSummary=({value:value2,initialExpandedArgs})=>{let{summary,detail}=value2,[isOpen,setIsOpen]=useState(!1),[isExpanded,setIsExpanded]=useState(initialExpandedArgs||!1);if(summary==null)return null;let summaryAsString=typeof summary.toString==\"function\"?summary.toString():summary;if(detail==null){if(/[(){}[\\]<>]/.test(summaryAsString))return React17.createElement(ArgText,{text:summaryAsString});let summaryItems=getSummaryItems(summaryAsString),itemsCount=summaryItems.length;return itemsCount>ITEMS_BEFORE_EXPANSION?React17.createElement(Summary,{isExpanded},renderSummaryItems(summaryItems,isExpanded),React17.createElement(ExpandButton,{onClick:()=>setIsExpanded(!isExpanded)},isExpanded?\"Show less...\":`Show ${itemsCount-ITEMS_BEFORE_EXPANSION} more...`)):React17.createElement(Summary,null,renderSummaryItems(summaryItems))}return React17.createElement(WithTooltipPure,{closeOnOutsideClick:!0,placement:\"bottom\",visible:isOpen,onVisibleChange:isVisible=>{setIsOpen(isVisible);},tooltip:React17.createElement(Detail,{width:calculateDetailWidth(detail)},React17.createElement(SyntaxHighlighter,{language:\"jsx\",format:!1},detail))},React17.createElement(Expandable,{className:\"sbdocs-expandable\"},React17.createElement(\"span\",null,summaryAsString),React17.createElement(ArrowIcon,{icon:isOpen?\"arrowup\":\"arrowdown\"})))},ArgValue=({value:value2,initialExpandedArgs})=>value2==null?React17.createElement(EmptyArg,null):React17.createElement(ArgSummary,{value:value2,initialExpandedArgs});var Label=styled.label(({theme})=>({lineHeight:\"18px\",alignItems:\"center\",marginBottom:8,display:\"inline-block\",position:\"relative\",whiteSpace:\"nowrap\",background:theme.boolean.background,borderRadius:\"3em\",padding:1,input:{appearance:\"none\",width:\"100%\",height:\"100%\",position:\"absolute\",left:0,top:0,margin:0,padding:0,border:\"none\",background:\"transparent\",cursor:\"pointer\",borderRadius:\"3em\",\"&:focus\":{outline:\"none\",boxShadow:`${theme.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:\"center\",fontSize:theme.typography.size.s1,fontWeight:theme.typography.weight.bold,lineHeight:\"1\",cursor:\"pointer\",display:\"inline-block\",padding:\"7px 15px\",transition:\"all 100ms ease-out\",userSelect:\"none\",borderRadius:\"3em\",color:transparentize(.5,theme.color.defaultText),background:\"transparent\",\"&:hover\":{boxShadow:`${opacify(.3,theme.appBorderColor)} 0 0 0 1px inset`},\"&:active\":{boxShadow:`${opacify(.05,theme.appBorderColor)} 0 0 0 2px inset`,color:opacify(1,theme.appBorderColor)},\"&:first-of-type\":{paddingRight:8},\"&:last-of-type\":{paddingLeft:8}},\"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type\":{background:theme.boolean.selectedBackground,boxShadow:theme.base===\"light\"?`${opacify(.1,theme.appBorderColor)} 0 0 2px`:`${theme.appBorderColor} 0 0 0 1px`,color:theme.color.defaultText,padding:\"7px 15px\"}})),parse=value2=>value2===\"true\",BooleanControl=({name,value:value2,onChange,onBlur,onFocus})=>{let onSetFalse=useCallback(()=>onChange(!1),[onChange]);if(value2===void 0)return React17.createElement(Form.Button,{id:getControlSetterButtonId(name),onClick:onSetFalse},\"Set boolean\");let controlId=getControlId(name),parsedValue=typeof value2==\"string\"?parse(value2):value2;return React17.createElement(Label,{htmlFor:controlId,\"aria-label\":name},React17.createElement(\"input\",{id:controlId,type:\"checkbox\",onChange:e=>onChange(e.target.checked),checked:parsedValue,role:\"switch\",name,onBlur,onFocus}),React17.createElement(\"span\",{\"aria-hidden\":\"true\"},\"False\"),React17.createElement(\"span\",{\"aria-hidden\":\"true\"},\"True\"))};var parseDate=value2=>{let[year,month,day]=value2.split(\"-\"),result=new Date;return result.setFullYear(parseInt(year,10),parseInt(month,10)-1,parseInt(day,10)),result},parseTime=value2=>{let[hours,minutes]=value2.split(\":\"),result=new Date;return result.setHours(parseInt(hours,10)),result.setMinutes(parseInt(minutes,10)),result},formatDate=value2=>{let date=new Date(value2),year=`000${date.getFullYear()}`.slice(-4),month=`0${date.getMonth()+1}`.slice(-2),day=`0${date.getDate()}`.slice(-2);return `${year}-${month}-${day}`},formatTime=value2=>{let date=new Date(value2),hours=`0${date.getHours()}`.slice(-2),minutes=`0${date.getMinutes()}`.slice(-2);return `${hours}:${minutes}`},FlexSpaced=styled.div(({theme})=>({flex:1,display:\"flex\",input:{marginLeft:10,flex:1,height:32,\"&::-webkit-calendar-picker-indicator\":{opacity:.5,height:12,filter:theme.base===\"light\"?void 0:\"invert(1)\"}},\"input:first-of-type\":{marginLeft:0,flexGrow:4},\"input:last-of-type\":{flexGrow:3}})),DateControl=({name,value:value2,onChange,onFocus,onBlur})=>{let[valid,setValid]=useState(!0),dateRef=useRef(),timeRef=useRef();useEffect(()=>{valid!==!1&&(dateRef&&dateRef.current&&(dateRef.current.value=formatDate(value2)),timeRef&&timeRef.current&&(timeRef.current.value=formatTime(value2)));},[value2]);let onDateChange=e=>{let parsed=parseDate(e.target.value),result=new Date(value2);result.setFullYear(parsed.getFullYear(),parsed.getMonth(),parsed.getDate());let time=result.getTime();time&&onChange(time),setValid(!!time);},onTimeChange=e=>{let parsed=parseTime(e.target.value),result=new Date(value2);result.setHours(parsed.getHours()),result.setMinutes(parsed.getMinutes());let time=result.getTime();time&&onChange(time),setValid(!!time);},controlId=getControlId(name);return React17.createElement(FlexSpaced,null,React17.createElement(Form.Input,{type:\"date\",max:\"9999-12-31\",ref:dateRef,id:`${controlId}-date`,name:`${controlId}-date`,onChange:onDateChange,onFocus,onBlur}),React17.createElement(Form.Input,{type:\"time\",id:`${controlId}-time`,name:`${controlId}-time`,ref:timeRef,onChange:onTimeChange,onFocus,onBlur}),valid?null:React17.createElement(\"div\",null,\"invalid\"))};var Wrapper2=styled.label({display:\"flex\"}),parse2=value2=>{let result=parseFloat(value2);return Number.isNaN(result)?void 0:result},format=value2=>value2!=null?String(value2):\"\",NumberControl=({name,value:value2,onChange,min,max,step,onBlur,onFocus})=>{let[inputValue,setInputValue]=useState(typeof value2==\"number\"?value2:\"\"),[forceVisible,setForceVisible]=useState(!1),[parseError,setParseError]=useState(null),handleChange=useCallback(event=>{setInputValue(event.target.value);let result=parseFloat(event.target.value);Number.isNaN(result)?setParseError(new Error(`'${event.target.value}' is not a number`)):(onChange(result),setParseError(null));},[onChange,setParseError]),onForceVisible=useCallback(()=>{setInputValue(\"0\"),onChange(0),setForceVisible(!0);},[setForceVisible]),htmlElRef=useRef(null);return useEffect(()=>{forceVisible&&htmlElRef.current&&htmlElRef.current.select();},[forceVisible]),useEffect(()=>{inputValue!==(typeof value2==\"number\"?value2:\"\")&&setInputValue(value2);},[value2]),!forceVisible&&value2===void 0?React17.createElement(Form.Button,{id:getControlSetterButtonId(name),onClick:onForceVisible},\"Set number\"):React17.createElement(Wrapper2,null,React17.createElement(Form.Input,{ref:htmlElRef,id:getControlId(name),type:\"number\",onChange:handleChange,size:\"flex\",placeholder:\"Edit number...\",value:inputValue,valid:parseError?\"error\":null,autoFocus:forceVisible,name,min,max,step,onFocus,onBlur}))};var selectedKey=(value2,options)=>{let entry=options&&Object.entries(options).find(([_key,val])=>val===value2);return entry?entry[0]:void 0},selectedKeys=(value2,options)=>value2&&options?Object.entries(options).filter(entry=>value2.includes(entry[1])).map(entry=>entry[0]):[],selectedValues=(keys,options)=>keys&&options&&keys.map(key=>options[key]);var Wrapper3=styled.div(({isInline})=>isInline?{display:\"flex\",flexWrap:\"wrap\",alignItems:\"flex-start\",label:{display:\"inline-flex\",marginRight:15}}:{label:{display:\"flex\"}}),Text2=styled.span({}),Label2=styled.label({lineHeight:\"20px\",alignItems:\"center\",marginBottom:8,\"&:last-child\":{marginBottom:0},input:{margin:0,marginRight:6}}),CheckboxControl=({name,options,value:value2,onChange,isInline})=>{if(!options)return logger.warn(`Checkbox with no options: ${name}`),React17.createElement(React17.Fragment,null,\"-\");let initial=selectedKeys(value2,options),[selected,setSelected]=useState(initial),handleChange=e=>{let option=e.target.value,updated=[...selected];updated.includes(option)?updated.splice(updated.indexOf(option),1):updated.push(option),onChange(selectedValues(updated,options)),setSelected(updated);};useEffect(()=>{setSelected(selectedKeys(value2,options));},[value2]);let controlId=getControlId(name);return React17.createElement(Wrapper3,{isInline},Object.keys(options).map((key,index)=>{let id=`${controlId}-${index}`;return React17.createElement(Label2,{key:id,htmlFor:id},React17.createElement(\"input\",{type:\"checkbox\",id,name:id,value:key,onChange:handleChange,checked:selected?.includes(key)}),React17.createElement(Text2,null,key))}))};var Wrapper4=styled.div(({isInline})=>isInline?{display:\"flex\",flexWrap:\"wrap\",alignItems:\"flex-start\",label:{display:\"inline-flex\",marginRight:15}}:{label:{display:\"flex\"}}),Text3=styled.span({}),Label3=styled.label({lineHeight:\"20px\",alignItems:\"center\",marginBottom:8,\"&:last-child\":{marginBottom:0},input:{margin:0,marginRight:6}}),RadioControl=({name,options,value:value2,onChange,isInline})=>{if(!options)return logger.warn(`Radio with no options: ${name}`),React17.createElement(React17.Fragment,null,\"-\");let selection=selectedKey(value2,options),controlId=getControlId(name);return React17.createElement(Wrapper4,{isInline},Object.keys(options).map((key,index)=>{let id=`${controlId}-${index}`;return React17.createElement(Label3,{key:id,htmlFor:id},React17.createElement(\"input\",{type:\"radio\",id,name:id,value:key,onChange:e=>onChange(options[e.currentTarget.value]),checked:key===selection}),React17.createElement(Text3,null,key))}))};var styleResets={appearance:\"none\",border:\"0 none\",boxSizing:\"inherit\",display:\" block\",margin:\" 0\",background:\"transparent\",padding:0,fontSize:\"inherit\",position:\"relative\"},OptionsSelect=styled.select(({theme})=>({...styleResets,boxSizing:\"border-box\",position:\"relative\",padding:\"6px 10px\",width:\"100%\",color:theme.input.color||\"inherit\",background:theme.input.background,borderRadius:theme.input.borderRadius,boxShadow:`${theme.input.border} 0 0 0 1px inset`,fontSize:theme.typography.size.s2-1,lineHeight:\"20px\",\"&:focus\":{boxShadow:`${theme.color.secondary} 0 0 0 1px inset`,outline:\"none\"},\"&[disabled]\":{cursor:\"not-allowed\",opacity:.5},\"::placeholder\":{color:theme.textMutedColor},\"&[multiple]\":{overflow:\"auto\",padding:0,option:{display:\"block\",padding:\"6px 10px\",marginLeft:1,marginRight:1}}})),SelectWrapper=styled.span(({theme})=>({display:\"inline-block\",lineHeight:\"normal\",overflow:\"hidden\",position:\"relative\",verticalAlign:\"top\",width:\"100%\",svg:{position:\"absolute\",zIndex:1,pointerEvents:\"none\",height:\"12px\",marginTop:\"-6px\",right:\"12px\",top:\"50%\",fill:theme.textMutedColor,path:{fill:theme.textMutedColor}}})),NO_SELECTION=\"Choose option...\",SingleSelect=({name,value:value2,options,onChange})=>{let handleChange=e=>{onChange(options[e.currentTarget.value]);},selection=selectedKey(value2,options)||NO_SELECTION,controlId=getControlId(name);return React17.createElement(SelectWrapper,null,React17.createElement(Icons,{icon:\"arrowdown\"}),React17.createElement(OptionsSelect,{id:controlId,value:selection,onChange:handleChange},React17.createElement(\"option\",{key:\"no-selection\",disabled:!0},NO_SELECTION),Object.keys(options).map(key=>React17.createElement(\"option\",{key,value:key},key))))},MultiSelect=({name,value:value2,options,onChange})=>{let handleChange=e=>{let selection2=Array.from(e.currentTarget.options).filter(option=>option.selected).map(option=>option.value);onChange(selectedValues(selection2,options));},selection=selectedKeys(value2,options),controlId=getControlId(name);return React17.createElement(SelectWrapper,null,React17.createElement(OptionsSelect,{id:controlId,multiple:!0,value:selection,onChange:handleChange},Object.keys(options).map(key=>React17.createElement(\"option\",{key,value:key},key))))},SelectControl=props=>{let{name,options}=props;return options?props.isMulti?React17.createElement(MultiSelect,{...props}):React17.createElement(SingleSelect,{...props}):(logger.warn(`Select with no options: ${name}`),React17.createElement(React17.Fragment,null,\"-\"))};var normalizeOptions=(options,labels)=>Array.isArray(options)?options.reduce((acc,item)=>(acc[labels?.[item]||String(item)]=item,acc),{}):options,Controls={check:CheckboxControl,\"inline-check\":CheckboxControl,radio:RadioControl,\"inline-radio\":RadioControl,select:SelectControl,\"multi-select\":SelectControl},OptionsControl=props=>{let{type=\"select\",labels,argType}=props,normalized={...props,options:argType?normalizeOptions(argType.options,labels):{},isInline:type.includes(\"inline\"),isMulti:type.includes(\"multi\")},Control=Controls[type];if(Control)return React17.createElement(Control,{...normalized});throw new Error(`Unknown options type: ${type}`)};var VALUE=\"value\",KEY=\"key\";var ERROR=\"Error\",OBJECT=\"Object\",ARRAY=\"Array\",STRING=\"String\",NUMBER=\"Number\",BOOLEAN=\"Boolean\",DATE=\"Date\",NULL=\"Null\",UNDEFINED=\"Undefined\",FUNCTION=\"Function\",SYMBOL=\"Symbol\";var ADD_DELTA_TYPE=\"ADD_DELTA_TYPE\",REMOVE_DELTA_TYPE=\"REMOVE_DELTA_TYPE\",UPDATE_DELTA_TYPE=\"UPDATE_DELTA_TYPE\";function getObjectType(obj){return obj!==null&&typeof obj==\"object\"&&!Array.isArray(obj)&&typeof obj[Symbol.iterator]==\"function\"?\"Iterable\":Object.prototype.toString.call(obj).slice(8,-1)}function isComponentWillChange(oldValue,newValue){let oldType=getObjectType(oldValue),newType=getObjectType(newValue);return (oldType===\"Function\"||newType===\"Function\")&&newType!==oldType}var JsonAddValue=class extends Component{constructor(props){super(props),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this);}componentDidMount(){let{inputRefKey,inputRefValue}=this.state,{onlyValue}=this.props;inputRefKey&&typeof inputRefKey.focus==\"function\"&&inputRefKey.focus(),onlyValue&&inputRefValue&&typeof inputRefValue.focus==\"function\"&&inputRefValue.focus(),document.addEventListener(\"keydown\",this.onKeydown);}componentWillUnmount(){document.removeEventListener(\"keydown\",this.onKeydown);}onKeydown(event){event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||((event.code===\"Enter\"||event.key===\"Enter\")&&(event.preventDefault(),this.onSubmit()),(event.code===\"Escape\"||event.key===\"Escape\")&&(event.preventDefault(),this.props.handleCancel()));}onSubmit(){let{handleAdd,onlyValue,onSubmitValueParser,keyPath,deep}=this.props,{inputRefKey,inputRefValue}=this.state,result={};if(!onlyValue){if(!inputRefKey.value)return;result.key=inputRefKey.value;}result.newValue=onSubmitValueParser(!1,keyPath,deep,result.key,inputRefValue.value),handleAdd(result);}refInputKey(node){this.state.inputRefKey=node;}refInputValue(node){this.state.inputRefValue=node;}render(){let{handleCancel,onlyValue,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep}=this.props,addButtonElementLayout=cloneElement(addButtonElement,{onClick:this.onSubmit}),cancelButtonElementLayout=cloneElement(cancelButtonElement,{onClick:handleCancel}),inputElementValue=inputElementGenerator(VALUE,keyPath,deep),inputElementValueLayout=cloneElement(inputElementValue,{placeholder:\"Value\",ref:this.refInputValue}),inputElementKeyLayout=null;if(!onlyValue){let inputElementKey=inputElementGenerator(KEY,keyPath,deep);inputElementKeyLayout=cloneElement(inputElementKey,{placeholder:\"Key\",ref:this.refInputKey});}return React17.createElement(\"span\",{className:\"rejt-add-value-node\"},inputElementKeyLayout,inputElementValueLayout,cancelButtonElementLayout,addButtonElementLayout)}};JsonAddValue.defaultProps={onlyValue:!1,addButtonElement:React17.createElement(\"button\",null,\"+\"),cancelButtonElement:React17.createElement(\"button\",null,\"c\")};var JsonArray=class extends Component{constructor(props){super(props);let keyPath=[...props.keyPath,props.name];this.state={data:props.data,name:props.name,keyPath,deep:props.deep,nextDeep:props.deep+1,collapsed:props.isCollapsed(keyPath,props.deep,props.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this);}static getDerivedStateFromProps(props,state){return props.data!==state.data?{data:props.data}:null}onChildUpdate(childKey,childData){let{data,keyPath}=this.state;data[childKey]=childData,this.setState({data});let{onUpdate}=this.props,size=keyPath.length;onUpdate(keyPath[size-1],data);}handleAddMode(){this.setState({addFormVisible:!0});}handleCollapseMode(){this.setState(state=>({collapsed:!state.collapsed}));}handleRemoveItem(index){return ()=>{let{beforeRemoveAction,logger:logger4}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[index];beforeRemoveAction(index,keyPath,deep,oldValue).then(()=>{let deltaUpdateResult={keyPath,deep,key:index,oldValue,type:REMOVE_DELTA_TYPE};data.splice(index,1),this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate(deltaUpdateResult);}).catch(logger4.error);}}handleAddValueAdd({newValue}){let{data,keyPath,nextDeep:deep}=this.state,{beforeAddAction,logger:logger4}=this.props;beforeAddAction(data.length,keyPath,deep,newValue).then(()=>{let newData=[...data,newValue];this.setState({data:newData}),this.handleAddValueCancel();let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],newData),onDeltaUpdate({type:ADD_DELTA_TYPE,keyPath,deep,key:newData.length-1,newValue});}).catch(logger4.error);}handleAddValueCancel(){this.setState({addFormVisible:!1});}handleEditValue({key,value:value2}){return new Promise((resolve,reject)=>{let{beforeUpdateAction}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[key];beforeUpdateAction(key,keyPath,deep,oldValue,value2).then(()=>{data[key]=value2,this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:UPDATE_DELTA_TYPE,keyPath,deep,key,newValue:value2,oldValue}),resolve(void 0);}).catch(reject);})}renderCollapsed(){let{name,data,keyPath,deep}=this.state,{handleRemove,readOnly,getStyle,dataType,minusMenuElement}=this.props,{minus,collapsed}=getStyle(name,data,keyPath,deep,dataType),isReadOnly=readOnly(name,data,keyPath,deep,dataType),removeItemButton=cloneElement(minusMenuElement,{onClick:handleRemove,className:\"rejt-minus-menu\",style:minus});return React17.createElement(\"span\",{className:\"rejt-collapsed\"},React17.createElement(\"span\",{className:\"rejt-collapsed-text\",style:collapsed,onClick:this.handleCollapseMode},\"[...] \",data.length,\" \",data.length===1?\"item\":\"items\"),!isReadOnly&&removeItemButton)}renderNotCollapsed(){let{name,data,keyPath,deep,addFormVisible,nextDeep}=this.state,{isCollapsed,handleRemove,onDeltaUpdate,readOnly,getStyle,dataType,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,{minus,plus,delimiter,ul,addForm}=getStyle(name,data,keyPath,deep,dataType),isReadOnly=readOnly(name,data,keyPath,deep,dataType),addItemButton=cloneElement(plusMenuElement,{onClick:this.handleAddMode,className:\"rejt-plus-menu\",style:plus}),removeItemButton=cloneElement(minusMenuElement,{onClick:handleRemove,className:\"rejt-minus-menu\",style:minus}),onlyValue=!0,startObject=\"[\",endObject=\"]\";return React17.createElement(\"span\",{className:\"rejt-not-collapsed\"},React17.createElement(\"span\",{className:\"rejt-not-collapsed-delimiter\",style:delimiter},startObject),!addFormVisible&&addItemButton,React17.createElement(\"ul\",{className:\"rejt-not-collapsed-list\",style:ul},data.map((item,index)=>React17.createElement(JsonNode,{key:index,name:index.toString(),data:item,keyPath,deep:nextDeep,isCollapsed,handleRemove:this.handleRemoveItem(index),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}))),!isReadOnly&&addFormVisible&&React17.createElement(\"div\",{className:\"rejt-add-form\",style:addForm},React17.createElement(JsonAddValue,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep,onSubmitValueParser})),React17.createElement(\"span\",{className:\"rejt-not-collapsed-delimiter\",style:delimiter},endObject),!isReadOnly&&removeItemButton)}render(){let{name,collapsed,data,keyPath,deep}=this.state,{dataType,getStyle}=this.props,value2=collapsed?this.renderCollapsed():this.renderNotCollapsed(),style=getStyle(name,data,keyPath,deep,dataType);return React17.createElement(\"div\",{className:\"rejt-array-node\"},React17.createElement(\"span\",{onClick:this.handleCollapseMode},React17.createElement(\"span\",{className:\"rejt-name\",style:style.name},name,\" :\",\" \")),value2)}};JsonArray.defaultProps={keyPath:[],deep:0,minusMenuElement:React17.createElement(\"span\",null,\" - \"),plusMenuElement:React17.createElement(\"span\",null,\" + \")};var JsonFunctionValue=class extends Component{constructor(props){super(props);let keyPath=[...props.keyPath,props.name];this.state={value:props.value,name:props.name,keyPath,deep:props.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this);}static getDerivedStateFromProps(props,state){return props.value!==state.value?{value:props.value}:null}componentDidUpdate(){let{editEnabled,inputRef,name,value:value2,keyPath,deep}=this.state,{readOnly,dataType}=this.props,readOnlyResult=readOnly(name,value2,keyPath,deep,dataType);editEnabled&&!readOnlyResult&&typeof inputRef.focus==\"function\"&&inputRef.focus();}componentDidMount(){document.addEventListener(\"keydown\",this.onKeydown);}componentWillUnmount(){document.removeEventListener(\"keydown\",this.onKeydown);}onKeydown(event){event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||((event.code===\"Enter\"||event.key===\"Enter\")&&(event.preventDefault(),this.handleEdit()),(event.code===\"Escape\"||event.key===\"Escape\")&&(event.preventDefault(),this.handleCancelEdit()));}handleEdit(){let{handleUpdateValue,originalValue,logger:logger4,onSubmitValueParser,keyPath}=this.props,{inputRef,name,deep}=this.state;if(!inputRef)return;let newValue=onSubmitValueParser(!0,keyPath,deep,name,inputRef.value);handleUpdateValue({value:newValue,key:name}).then(()=>{isComponentWillChange(originalValue,newValue)||this.handleCancelEdit();}).catch(logger4.error);}handleEditMode(){this.setState({editEnabled:!0});}refInput(node){this.state.inputRef=node;}handleCancelEdit(){this.setState({editEnabled:!1});}render(){let{name,value:value2,editEnabled,keyPath,deep}=this.state,{handleRemove,originalValue,readOnly,dataType,getStyle,editButtonElement,cancelButtonElement,textareaElementGenerator,minusMenuElement,keyPath:comeFromKeyPath}=this.props,style=getStyle(name,originalValue,keyPath,deep,dataType),result=null,minusElement=null,resultOnlyResult=readOnly(name,originalValue,keyPath,deep,dataType);if(editEnabled&&!resultOnlyResult){let textareaElement=textareaElementGenerator(VALUE,comeFromKeyPath,deep,name,originalValue,dataType),editButtonElementLayout=cloneElement(editButtonElement,{onClick:this.handleEdit}),cancelButtonElementLayout=cloneElement(cancelButtonElement,{onClick:this.handleCancelEdit}),textareaElementLayout=cloneElement(textareaElement,{ref:this.refInput,defaultValue:originalValue});result=React17.createElement(\"span\",{className:\"rejt-edit-form\",style:style.editForm},textareaElementLayout,\" \",cancelButtonElementLayout,editButtonElementLayout),minusElement=null;}else {result=React17.createElement(\"span\",{className:\"rejt-value\",style:style.value,onClick:resultOnlyResult?null:this.handleEditMode},value2);let minusMenuLayout=cloneElement(minusMenuElement,{onClick:handleRemove,className:\"rejt-minus-menu\",style:style.minus});minusElement=resultOnlyResult?null:minusMenuLayout;}return React17.createElement(\"li\",{className:\"rejt-function-value-node\",style:style.li},React17.createElement(\"span\",{className:\"rejt-name\",style:style.name},name,\" :\",\" \"),result,minusElement)}};JsonFunctionValue.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:React17.createElement(\"button\",null,\"e\"),cancelButtonElement:React17.createElement(\"button\",null,\"c\"),minusMenuElement:React17.createElement(\"span\",null,\" - \")};var JsonNode=class extends Component{constructor(props){super(props),this.state={data:props.data,name:props.name,keyPath:props.keyPath,deep:props.deep};}static getDerivedStateFromProps(props,state){return props.data!==state.data?{data:props.data}:null}render(){let{data,name,keyPath,deep}=this.state,{isCollapsed,handleRemove,handleUpdateValue,onUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,readOnlyTrue=()=>!0,dataType=getObjectType(data);switch(dataType){case ERROR:return React17.createElement(JsonObject,{data,name,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly:readOnlyTrue,dataType,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case OBJECT:return React17.createElement(JsonObject,{data,name,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly,dataType,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case ARRAY:return React17.createElement(JsonArray,{data,name,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly,dataType,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case STRING:return React17.createElement(JsonValue,{name,value:`\"${data}\"`,originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case NUMBER:return React17.createElement(JsonValue,{name,value:data,originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case BOOLEAN:return React17.createElement(JsonValue,{name,value:data?\"true\":\"false\",originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case DATE:return React17.createElement(JsonValue,{name,value:data.toISOString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly:readOnlyTrue,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case NULL:return React17.createElement(JsonValue,{name,value:\"null\",originalValue:\"null\",keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case UNDEFINED:return React17.createElement(JsonValue,{name,value:\"undefined\",originalValue:\"undefined\",keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case FUNCTION:return React17.createElement(JsonFunctionValue,{name,value:data.toString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,textareaElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case SYMBOL:return React17.createElement(JsonValue,{name,value:data.toString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly:readOnlyTrue,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});default:return null}}};JsonNode.defaultProps={keyPath:[],deep:0};var JsonObject=class extends Component{constructor(props){super(props);let keyPath=props.deep===-1?[]:[...props.keyPath,props.name];this.state={name:props.name,data:props.data,keyPath,deep:props.deep,nextDeep:props.deep+1,collapsed:props.isCollapsed(keyPath,props.deep,props.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this);}static getDerivedStateFromProps(props,state){return props.data!==state.data?{data:props.data}:null}onChildUpdate(childKey,childData){let{data,keyPath}=this.state;data[childKey]=childData,this.setState({data});let{onUpdate}=this.props,size=keyPath.length;onUpdate(keyPath[size-1],data);}handleAddMode(){this.setState({addFormVisible:!0});}handleAddValueCancel(){this.setState({addFormVisible:!1});}handleAddValueAdd({key,newValue}){let{data,keyPath,nextDeep:deep}=this.state,{beforeAddAction,logger:logger4}=this.props;beforeAddAction(key,keyPath,deep,newValue).then(()=>{data[key]=newValue,this.setState({data}),this.handleAddValueCancel();let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:ADD_DELTA_TYPE,keyPath,deep,key,newValue});}).catch(logger4.error);}handleRemoveValue(key){return ()=>{let{beforeRemoveAction,logger:logger4}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[key];beforeRemoveAction(key,keyPath,deep,oldValue).then(()=>{let deltaUpdateResult={keyPath,deep,key,oldValue,type:REMOVE_DELTA_TYPE};delete data[key],this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate(deltaUpdateResult);}).catch(logger4.error);}}handleCollapseMode(){this.setState(state=>({collapsed:!state.collapsed}));}handleEditValue({key,value:value2}){return new Promise((resolve,reject)=>{let{beforeUpdateAction}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[key];beforeUpdateAction(key,keyPath,deep,oldValue,value2).then(()=>{data[key]=value2,this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:UPDATE_DELTA_TYPE,keyPath,deep,key,newValue:value2,oldValue}),resolve();}).catch(reject);})}renderCollapsed(){let{name,keyPath,deep,data}=this.state,{handleRemove,readOnly,dataType,getStyle,minusMenuElement}=this.props,{minus,collapsed}=getStyle(name,data,keyPath,deep,dataType),keyList=Object.getOwnPropertyNames(data),isReadOnly=readOnly(name,data,keyPath,deep,dataType),removeItemButton=cloneElement(minusMenuElement,{onClick:handleRemove,className:\"rejt-minus-menu\",style:minus});return React17.createElement(\"span\",{className:\"rejt-collapsed\"},React17.createElement(\"span\",{className:\"rejt-collapsed-text\",style:collapsed,onClick:this.handleCollapseMode},\"{...}\",\" \",keyList.length,\" \",keyList.length===1?\"key\":\"keys\"),!isReadOnly&&removeItemButton)}renderNotCollapsed(){let{name,data,keyPath,deep,nextDeep,addFormVisible}=this.state,{isCollapsed,handleRemove,onDeltaUpdate,readOnly,getStyle,dataType,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,{minus,plus,addForm,ul,delimiter}=getStyle(name,data,keyPath,deep,dataType),keyList=Object.getOwnPropertyNames(data),isReadOnly=readOnly(name,data,keyPath,deep,dataType),addItemButton=cloneElement(plusMenuElement,{onClick:this.handleAddMode,className:\"rejt-plus-menu\",style:plus}),removeItemButton=cloneElement(minusMenuElement,{onClick:handleRemove,className:\"rejt-minus-menu\",style:minus}),list=keyList.map(key=>React17.createElement(JsonNode,{key,name:key,data:data[key],keyPath,deep:nextDeep,isCollapsed,handleRemove:this.handleRemoveValue(key),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser})),startObject=\"{\",endObject=\"}\";return React17.createElement(\"span\",{className:\"rejt-not-collapsed\"},React17.createElement(\"span\",{className:\"rejt-not-collapsed-delimiter\",style:delimiter},startObject),!isReadOnly&&addItemButton,React17.createElement(\"ul\",{className:\"rejt-not-collapsed-list\",style:ul},list),!isReadOnly&&addFormVisible&&React17.createElement(\"div\",{className:\"rejt-add-form\",style:addForm},React17.createElement(JsonAddValue,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep,onSubmitValueParser})),React17.createElement(\"span\",{className:\"rejt-not-collapsed-delimiter\",style:delimiter},endObject),!isReadOnly&&removeItemButton)}render(){let{name,collapsed,data,keyPath,deep}=this.state,{getStyle,dataType}=this.props,value2=collapsed?this.renderCollapsed():this.renderNotCollapsed(),style=getStyle(name,data,keyPath,deep,dataType);return React17.createElement(\"div\",{className:\"rejt-object-node\"},React17.createElement(\"span\",{onClick:this.handleCollapseMode},React17.createElement(\"span\",{className:\"rejt-name\",style:style.name},name,\" :\",\" \")),value2)}};JsonObject.defaultProps={keyPath:[],deep:0,minusMenuElement:React17.createElement(\"span\",null,\" - \"),plusMenuElement:React17.createElement(\"span\",null,\" + \")};var JsonValue=class extends Component{constructor(props){super(props);let keyPath=[...props.keyPath,props.name];this.state={value:props.value,name:props.name,keyPath,deep:props.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this);}static getDerivedStateFromProps(props,state){return props.value!==state.value?{value:props.value}:null}componentDidUpdate(){let{editEnabled,inputRef,name,value:value2,keyPath,deep}=this.state,{readOnly,dataType}=this.props,isReadOnly=readOnly(name,value2,keyPath,deep,dataType);editEnabled&&!isReadOnly&&typeof inputRef.focus==\"function\"&&inputRef.focus();}componentDidMount(){document.addEventListener(\"keydown\",this.onKeydown);}componentWillUnmount(){document.removeEventListener(\"keydown\",this.onKeydown);}onKeydown(event){event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||((event.code===\"Enter\"||event.key===\"Enter\")&&(event.preventDefault(),this.handleEdit()),(event.code===\"Escape\"||event.key===\"Escape\")&&(event.preventDefault(),this.handleCancelEdit()));}handleEdit(){let{handleUpdateValue,originalValue,logger:logger4,onSubmitValueParser,keyPath}=this.props,{inputRef,name,deep}=this.state;if(!inputRef)return;let newValue=onSubmitValueParser(!0,keyPath,deep,name,inputRef.value);handleUpdateValue({value:newValue,key:name}).then(()=>{isComponentWillChange(originalValue,newValue)||this.handleCancelEdit();}).catch(logger4.error);}handleEditMode(){this.setState({editEnabled:!0});}refInput(node){this.state.inputRef=node;}handleCancelEdit(){this.setState({editEnabled:!1});}render(){let{name,value:value2,editEnabled,keyPath,deep}=this.state,{handleRemove,originalValue,readOnly,dataType,getStyle,editButtonElement,cancelButtonElement,inputElementGenerator,minusMenuElement,keyPath:comeFromKeyPath}=this.props,style=getStyle(name,originalValue,keyPath,deep,dataType),isReadOnly=readOnly(name,originalValue,keyPath,deep,dataType),isEditing=editEnabled&&!isReadOnly,inputElement=inputElementGenerator(VALUE,comeFromKeyPath,deep,name,originalValue,dataType),editButtonElementLayout=cloneElement(editButtonElement,{onClick:this.handleEdit}),cancelButtonElementLayout=cloneElement(cancelButtonElement,{onClick:this.handleCancelEdit}),inputElementLayout=cloneElement(inputElement,{ref:this.refInput,defaultValue:JSON.stringify(originalValue)}),minusMenuLayout=cloneElement(minusMenuElement,{onClick:handleRemove,className:\"rejt-minus-menu\",style:style.minus});return React17.createElement(\"li\",{className:\"rejt-value-node\",style:style.li},React17.createElement(\"span\",{className:\"rejt-name\",style:style.name},name,\" : \"),isEditing?React17.createElement(\"span\",{className:\"rejt-edit-form\",style:style.editForm},inputElementLayout,\" \",cancelButtonElementLayout,editButtonElementLayout):React17.createElement(\"span\",{className:\"rejt-value\",style:style.value,onClick:isReadOnly?null:this.handleEditMode},String(value2)),!isReadOnly&&!isEditing&&minusMenuLayout)}};JsonValue.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:React17.createElement(\"button\",null,\"e\"),cancelButtonElement:React17.createElement(\"button\",null,\"c\"),minusMenuElement:React17.createElement(\"span\",null,\" - \")};var object={minus:{color:\"red\"},plus:{color:\"green\"},collapsed:{color:\"grey\"},delimiter:{},ul:{padding:\"0px\",margin:\"0 0 0 25px\",listStyle:\"none\"},name:{color:\"#2287CD\"},addForm:{}},array={minus:{color:\"red\"},plus:{color:\"green\"},collapsed:{color:\"grey\"},delimiter:{},ul:{padding:\"0px\",margin:\"0 0 0 25px\",listStyle:\"none\"},name:{color:\"#2287CD\"},addForm:{}},value={minus:{color:\"red\"},editForm:{},value:{color:\"#7bba3d\"},li:{minHeight:\"22px\",lineHeight:\"22px\",outline:\"0px\"},name:{color:\"#2287CD\"}};function parse3(string){let result=string;if(result.indexOf(\"function\")===0)return (0, eval)(`(${result})`);try{result=JSON.parse(string);}catch{}return result}var JsonTree=class extends Component{constructor(props){super(props),this.state={data:props.data,rootName:props.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this);}static getDerivedStateFromProps(props,state){return props.data!==state.data||props.rootName!==state.rootName?{data:props.data,rootName:props.rootName}:null}onUpdate(key,data){this.setState({data}),this.props.onFullyUpdate(data);}removeRoot(){this.onUpdate(null,null);}render(){let{data,rootName}=this.state,{isCollapsed,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElement,textareaElement,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser,fallback=null}=this.props,dataType=getObjectType(data),readOnlyFunction=readOnly;getObjectType(readOnly)===\"Boolean\"&&(readOnlyFunction=()=>readOnly);let inputElementFunction=inputElement;inputElement&&getObjectType(inputElement)!==\"Function\"&&(inputElementFunction=()=>inputElement);let textareaElementFunction=textareaElement;return textareaElement&&getObjectType(textareaElement)!==\"Function\"&&(textareaElementFunction=()=>textareaElement),dataType===\"Object\"||dataType===\"Array\"?React17.createElement(\"div\",{className:\"rejt-tree\"},React17.createElement(JsonNode,{data,name:rootName,deep:-1,isCollapsed,onUpdate:this.onUpdate,onDeltaUpdate,readOnly:readOnlyFunction,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator:inputElementFunction,textareaElementGenerator:textareaElementFunction,minusMenuElement,plusMenuElement,handleRemove:this.removeRoot,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser})):fallback}};JsonTree.defaultProps={rootName:\"root\",isCollapsed:(keyPath,deep)=>deep!==-1,getStyle:(keyName,data,keyPath,deep,dataType)=>{switch(dataType){case\"Object\":case\"Error\":return object;case\"Array\":return array;default:return value}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(isEditMode,keyPath,deep,name,rawValue)=>parse3(rawValue),inputElement:()=>React17.createElement(\"input\",null),textareaElement:()=>React17.createElement(\"textarea\",null),fallback:null};var {window:globalWindow2}=global,Wrapper5=styled.div(({theme})=>({position:\"relative\",display:\"flex\",\".rejt-tree\":{marginLeft:\"1rem\",fontSize:\"13px\"},\".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed\":{\"& > svg\":{opacity:0,transition:\"opacity 0.2s\"}},\".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed\":{\"& > svg\":{opacity:1}},\".rejt-edit-form button\":{display:\"none\"},\".rejt-add-form\":{marginLeft:10},\".rejt-add-value-node\":{display:\"inline-flex\",alignItems:\"center\"},\".rejt-name\":{lineHeight:\"22px\"},\".rejt-not-collapsed-delimiter\":{lineHeight:\"22px\"},\".rejt-plus-menu\":{marginLeft:5},\".rejt-object-node > span > *, .rejt-array-node > span > *\":{position:\"relative\",zIndex:2},\".rejt-object-node, .rejt-array-node\":{position:\"relative\"},\".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before\":{content:'\"\"',position:\"absolute\",top:0,display:\"block\",width:\"100%\",marginLeft:\"-1rem\",padding:\"0 4px 0 1rem\",height:22},\".rejt-collapsed::before, .rejt-not-collapsed::before\":{zIndex:1,background:\"transparent\",borderRadius:4,transition:\"background 0.2s\",pointerEvents:\"none\",opacity:.1},\".rejt-object-node:hover, .rejt-array-node:hover\":{\"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before\":{background:theme.color.secondary}},\".rejt-collapsed::after, .rejt-not-collapsed::after\":{content:'\"\"',position:\"absolute\",display:\"inline-block\",pointerEvents:\"none\",width:0,height:0},\".rejt-collapsed::after\":{left:-8,top:8,borderTop:\"3px solid transparent\",borderBottom:\"3px solid transparent\",borderLeft:\"3px solid rgba(153,153,153,0.6)\"},\".rejt-not-collapsed::after\":{left:-10,top:10,borderTop:\"3px solid rgba(153,153,153,0.6)\",borderLeft:\"3px solid transparent\",borderRight:\"3px solid transparent\"},\".rejt-value\":{display:\"inline-block\",border:\"1px solid transparent\",borderRadius:4,margin:\"1px 0\",padding:\"0 4px\",cursor:\"text\",color:theme.color.defaultText},\".rejt-value-node:hover > .rejt-value\":{background:theme.color.lighter,borderColor:theme.appBorderColor}})),Button=styled.button(({theme,primary})=>({border:0,height:20,margin:1,borderRadius:4,background:primary?theme.color.secondary:\"transparent\",color:primary?theme.color.lightest:theme.color.dark,fontWeight:primary?\"bold\":\"normal\",cursor:\"pointer\",order:primary?\"initial\":9})),ActionIcon=styled(Icons)(({theme,icon,disabled})=>({display:\"inline-block\",verticalAlign:\"middle\",width:15,height:15,padding:3,marginLeft:5,cursor:disabled?\"not-allowed\":\"pointer\",color:theme.textMutedColor,\"&:hover\":disabled?{}:{color:icon===\"subtract\"?theme.color.negative:theme.color.ancillary},\"svg + &\":{marginLeft:0}})),Input=styled.input(({theme,placeholder})=>({outline:0,margin:placeholder?1:\"1px 0\",padding:\"3px 4px\",color:theme.color.defaultText,background:theme.background.app,border:`1px solid ${theme.appBorderColor}`,borderRadius:4,lineHeight:\"14px\",width:placeholder===\"Key\"?80:120,\"&:focus\":{border:`1px solid ${theme.color.secondary}`}})),RawButton=styled(IconButton)(({theme})=>({position:\"absolute\",zIndex:2,top:2,right:2,height:21,padding:\"0 3px\",background:theme.background.bar,border:`1px solid ${theme.appBorderColor}`,borderRadius:3,color:theme.textMutedColor,fontSize:\"9px\",fontWeight:\"bold\",textDecoration:\"none\",span:{marginLeft:3,marginTop:1}})),RawInput=styled(Form.Textarea)(({theme})=>({flex:1,padding:\"7px 6px\",fontFamily:theme.typography.fonts.mono,fontSize:\"12px\",lineHeight:\"18px\",\"&::placeholder\":{fontFamily:theme.typography.fonts.base,fontSize:\"13px\"},\"&:placeholder-shown\":{padding:\"7px 10px\"}})),ENTER_EVENT={bubbles:!0,cancelable:!0,key:\"Enter\",code:\"Enter\",keyCode:13},dispatchEnterKey=event=>{event.currentTarget.dispatchEvent(new globalWindow2.KeyboardEvent(\"keydown\",ENTER_EVENT));},selectValue=event=>{event.currentTarget.select();},getCustomStyleFunction=theme=>()=>({name:{color:theme.color.secondary},collapsed:{color:theme.color.dark},ul:{listStyle:\"none\",margin:\"0 0 0 1rem\",padding:0},li:{outline:0}}),ObjectControl=({name,value:value2,onChange})=>{let theme=useTheme(),data=useMemo(()=>value2&&cloneDeep(value2),[value2]),hasData=data!=null,[showRaw,setShowRaw]=useState(!hasData),[parseError,setParseError]=useState(null),updateRaw=useCallback(raw=>{try{raw&&onChange(JSON.parse(raw)),setParseError(void 0);}catch(e){setParseError(e);}},[onChange]),[forceVisible,setForceVisible]=useState(!1),onForceVisible=useCallback(()=>{onChange({}),setForceVisible(!0);},[setForceVisible]),htmlElRef=useRef(null);if(useEffect(()=>{forceVisible&&htmlElRef.current&&htmlElRef.current.select();},[forceVisible]),!hasData)return React17.createElement(Form.Button,{id:getControlSetterButtonId(name),onClick:onForceVisible},\"Set object\");let rawJSONForm=React17.createElement(RawInput,{ref:htmlElRef,id:getControlId(name),name,defaultValue:value2===null?\"\":JSON.stringify(value2,null,2),onBlur:event=>updateRaw(event.target.value),placeholder:\"Edit JSON string...\",autoFocus:forceVisible,valid:parseError?\"error\":null});return React17.createElement(Wrapper5,null,[\"Object\",\"Array\"].includes(getObjectType(data))&&React17.createElement(RawButton,{href:\"#\",onClick:e=>{e.preventDefault(),setShowRaw(v=>!v);}},React17.createElement(Icons,{icon:showRaw?\"eyeclose\":\"eye\"}),React17.createElement(\"span\",null,\"RAW\")),showRaw?rawJSONForm:React17.createElement(JsonTree,{data,rootName:name,onFullyUpdate:onChange,getStyle:getCustomStyleFunction(theme),cancelButtonElement:React17.createElement(Button,{type:\"button\"},\"Cancel\"),editButtonElement:React17.createElement(Button,{type:\"submit\"},\"Save\"),addButtonElement:React17.createElement(Button,{type:\"submit\",primary:!0},\"Save\"),plusMenuElement:React17.createElement(ActionIcon,{icon:\"add\"}),minusMenuElement:React17.createElement(ActionIcon,{icon:\"subtract\"}),inputElement:(_,__,___,key)=>key?React17.createElement(Input,{onFocus:selectValue,onBlur:dispatchEnterKey}):React17.createElement(Input,null),fallback:rawJSONForm}))};var RangeInput=styled.input(({theme,min,max,value:value2})=>({\"&\":{width:\"100%\",backgroundColor:\"transparent\",appearance:\"none\"},\"&::-webkit-slider-runnable-track\":{background:theme.base===\"light\"?`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${darken(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${darken(.02,theme.input.background)} 100%)`:`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${lighten(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${lighten(.02,theme.input.background)} 100%)`,boxShadow:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:\"100%\",height:6,cursor:\"pointer\"},\"&::-webkit-slider-thumb\":{marginTop:\"-6px\",width:16,height:16,border:`1px solid ${rgba(theme.appBorderColor,.2)}`,borderRadius:\"50px\",boxShadow:`0 1px 3px 0px ${rgba(theme.appBorderColor,.2)}`,cursor:\"grab\",appearance:\"none\",background:`${theme.input.background}`,transition:\"all 150ms ease-out\",\"&:hover\":{background:`${darken(.05,theme.input.background)}`,transform:\"scale3d(1.1, 1.1, 1.1) translateY(-1px)\",transition:\"all 50ms ease-out\"},\"&:active\":{background:`${theme.input.background}`,transform:\"scale3d(1, 1, 1) translateY(0px)\",cursor:\"grabbing\"}},\"&:focus\":{outline:\"none\",\"&::-webkit-slider-runnable-track\":{borderColor:rgba(theme.color.secondary,.4)},\"&::-webkit-slider-thumb\":{borderColor:theme.color.secondary,boxShadow:`0 0px 5px 0px ${theme.color.secondary}`}},\"&::-moz-range-track\":{background:theme.base===\"light\"?`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${darken(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${darken(.02,theme.input.background)} 100%)`:`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${lighten(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${lighten(.02,theme.input.background)} 100%)`,boxShadow:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:\"100%\",height:6,cursor:\"pointer\",outline:\"none\"},\"&::-moz-range-thumb\":{width:16,height:16,border:`1px solid ${rgba(theme.appBorderColor,.2)}`,borderRadius:\"50px\",boxShadow:`0 1px 3px 0px ${rgba(theme.appBorderColor,.2)}`,cursor:\"grab\",background:`${theme.input.background}`,transition:\"all 150ms ease-out\",\"&:hover\":{background:`${darken(.05,theme.input.background)}`,transform:\"scale3d(1.1, 1.1, 1.1) translateY(-1px)\",transition:\"all 50ms ease-out\"},\"&:active\":{background:`${theme.input.background}`,transform:\"scale3d(1, 1, 1) translateY(0px)\",cursor:\"grabbing\"}},\"&::-ms-track\":{background:theme.base===\"light\"?`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${darken(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${darken(.02,theme.input.background)} 100%)`:`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${lighten(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${lighten(.02,theme.input.background)} 100%)`,boxShadow:`${theme.appBorderColor} 0 0 0 1px inset`,color:\"transparent\",width:\"100%\",height:\"6px\",cursor:\"pointer\"},\"&::-ms-fill-lower\":{borderRadius:6},\"&::-ms-fill-upper\":{borderRadius:6},\"&::-ms-thumb\":{width:16,height:16,background:`${theme.input.background}`,border:`1px solid ${rgba(theme.appBorderColor,.2)}`,borderRadius:50,cursor:\"grab\",marginTop:0},\"@supports (-ms-ime-align:auto)\":{\"input[type=range]\":{margin:\"0\"}}})),RangeLabel=styled.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:\"nowrap\",fontFeatureSettings:\"tnum\",fontVariantNumeric:\"tabular-nums\"}),RangeCurrentAndMaxLabel=styled(RangeLabel)(({numberOFDecimalsPlaces,max})=>({width:`${numberOFDecimalsPlaces+max.toString().length*2+3}ch`,textAlign:\"right\",flexShrink:0})),RangeWrapper=styled.div({display:\"flex\",alignItems:\"center\",width:\"100%\"});function getNumberOfDecimalPlaces(number){let match=number.toString().match(/(?:\\.(\\d+))?(?:[eE]([+-]?\\d+))?$/);return match?Math.max(0,(match[1]?match[1].length:0)-(match[2]?+match[2]:0)):0}var RangeControl=({name,value:value2,onChange,min=0,max=100,step=1,onBlur,onFocus})=>{let handleChange=event=>{onChange(parse2(event.target.value));},hasValue=value2!==void 0,numberOFDecimalsPlaces=useMemo(()=>getNumberOfDecimalPlaces(step),[step]);return React17.createElement(RangeWrapper,null,React17.createElement(RangeLabel,null,min),React17.createElement(RangeInput,{id:getControlId(name),type:\"range\",onChange:handleChange,name,value:value2,min,max,step,onFocus,onBlur}),React17.createElement(RangeCurrentAndMaxLabel,{numberOFDecimalsPlaces,max},hasValue?value2.toFixed(numberOFDecimalsPlaces):\"--\",\" / \",max))};var Wrapper6=styled.label({display:\"flex\"}),MaxLength=styled.div(({isMaxed})=>({marginLeft:\"0.75rem\",paddingTop:\"0.35rem\",color:isMaxed?\"red\":void 0})),TextControl=({name,value:value2,onChange,onFocus,onBlur,maxLength})=>{let handleChange=event=>{onChange(event.target.value);},[forceVisible,setForceVisible]=useState(!1),onForceVisible=useCallback(()=>{onChange(\"\"),setForceVisible(!0);},[setForceVisible]);if(value2===void 0)return React17.createElement(Form.Button,{id:getControlSetterButtonId(name),onClick:onForceVisible},\"Set string\");let isValid=typeof value2==\"string\";return React17.createElement(Wrapper6,null,React17.createElement(Form.Textarea,{id:getControlId(name),maxLength,onChange:handleChange,size:\"flex\",placeholder:\"Edit string...\",autoFocus:forceVisible,valid:isValid?null:\"error\",name,value:isValid?value2:\"\",onFocus,onBlur}),maxLength&&React17.createElement(MaxLength,{isMaxed:value2?.length===maxLength},value2?.length??0,\" / \",maxLength))};var FileInput=styled(Form.Input)({padding:10});function revokeOldUrls(urls){urls.forEach(url=>{url.startsWith(\"blob:\")&&URL.revokeObjectURL(url);});}var FilesControl=({onChange,name,accept=\"image/*\",value:value2})=>{let inputElement=useRef(null);function handleFileChange(e){if(!e.target.files)return;let fileUrls=Array.from(e.target.files).map(file=>URL.createObjectURL(file));onChange(fileUrls),revokeOldUrls(value2);}return useEffect(()=>{value2==null&&inputElement.current&&(inputElement.current.value=null);},[value2,name]),React17.createElement(FileInput,{ref:inputElement,id:getControlId(name),type:\"file\",name,multiple:!0,onChange:handleFileChange,accept,size:\"flex\"})};var LazyColorControl=lazy(()=>import('./Color-6VNJS4EI.mjs')),ColorControl=props=>React17.createElement(Suspense,{fallback:React17.createElement(\"div\",null)},React17.createElement(LazyColorControl,{...props}));var Controls2={array:ObjectControl,object:ObjectControl,boolean:BooleanControl,color:ColorControl,date:DateControl,number:NumberControl,check:OptionsControl,\"inline-check\":OptionsControl,radio:OptionsControl,\"inline-radio\":OptionsControl,select:OptionsControl,\"multi-select\":OptionsControl,range:RangeControl,text:TextControl,file:FilesControl},NoControl=()=>React17.createElement(React17.Fragment,null,\"-\"),ArgControl=({row,arg,updateArgs,isHovered})=>{let{key,control}=row,[isFocused,setFocused]=useState(!1),[boxedValue,setBoxedValue]=useState({value:arg});useEffect(()=>{isFocused||setBoxedValue({value:arg});},[isFocused,arg]);let onChange=useCallback(argVal=>(setBoxedValue({value:argVal}),updateArgs({[key]:argVal}),argVal),[updateArgs,key]),onBlur=useCallback(()=>setFocused(!1),[]),onFocus=useCallback(()=>setFocused(!0),[]);if(!control||control.disable)return isHovered?React17.createElement(Link,{href:\"https://storybook.js.org/docs/react/essentials/controls\",target:\"_blank\",withArrow:!0},\"Setup controls\"):React17.createElement(NoControl,null);let props={name:key,argType:row,value:boxedValue.value,onChange,onBlur,onFocus},Control=Controls2[control.type]||NoControl;return React17.createElement(Control,{...props,...control,controlType:control.type})};var Name=styled.span({fontWeight:\"bold\"}),Required=styled.span(({theme})=>({color:theme.color.negative,fontFamily:theme.typography.fonts.mono,cursor:\"help\"})),Description=styled.div(({theme})=>({\"&&\":{p:{margin:\"0 0 10px 0\"},a:{color:theme.color.secondary}},code:{...codeCommon({theme}),fontSize:12,fontFamily:theme.typography.fonts.mono},\"& code\":{margin:0,display:\"inline-block\"},\"& pre > code\":{whiteSpace:\"pre-wrap\"}})),Type=styled.div(({theme,hasDescription})=>({color:theme.base===\"light\"?transparentize(.1,theme.color.defaultText):transparentize(.2,theme.color.defaultText),marginTop:hasDescription?4:0})),TypeWithJsDoc=styled.div(({theme,hasDescription})=>({color:theme.base===\"light\"?transparentize(.1,theme.color.defaultText):transparentize(.2,theme.color.defaultText),marginTop:hasDescription?12:0,marginBottom:12})),StyledTd=styled.td(({theme,expandable})=>({paddingLeft:expandable?\"40px !important\":\"20px !important\"})),ArgRow=props=>{let[isHovered,setIsHovered]=useState(!1),{row,updateArgs,compact,expandable,initialExpandedArgs}=props,{name,description}=row,table=row.table||{},type=table.type||row.type,defaultValue=table.defaultValue||row.defaultValue,required=row.type?.required,hasDescription=description!=null&&description!==\"\";return React17.createElement(\"tr\",{onMouseEnter:()=>setIsHovered(!0),onMouseLeave:()=>setIsHovered(!1)},React17.createElement(StyledTd,{expandable},React17.createElement(Name,null,name),required?React17.createElement(Required,{title:\"Required\"},\"*\"):null),compact?null:React17.createElement(\"td\",null,hasDescription&&React17.createElement(Description,null,React17.createElement(Markdown,null,description)),table.jsDocTags!=null?React17.createElement(React17.Fragment,null,React17.createElement(TypeWithJsDoc,{hasDescription},React17.createElement(ArgValue,{value:type,initialExpandedArgs})),React17.createElement(ArgJsDoc,{tags:table.jsDocTags})):React17.createElement(Type,{hasDescription},React17.createElement(ArgValue,{value:type,initialExpandedArgs}))),compact?null:React17.createElement(\"td\",null,React17.createElement(ArgValue,{value:defaultValue,initialExpandedArgs})),updateArgs?React17.createElement(\"td\",null,React17.createElement(ArgControl,{...props,isHovered})):null)};var ExpanderIcon=styled(Icons)(({theme})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:theme.base===\"light\"?transparentize(.25,theme.color.defaultText):transparentize(.3,theme.color.defaultText),border:\"none\",display:\"inline-block\"})),FlexWrapper=styled.span(({theme})=>({display:\"flex\",lineHeight:\"20px\",alignItems:\"center\"})),Section=styled.td(({theme})=>({position:\"relative\",letterSpacing:\"0.35em\",textTransform:\"uppercase\",fontWeight:theme.typography.weight.bold,fontSize:theme.typography.size.s1-1,color:theme.base===\"light\"?transparentize(.4,theme.color.defaultText):transparentize(.6,theme.color.defaultText),background:`${theme.background.app} !important`,\"& ~ td\":{background:`${theme.background.app} !important`}})),Subsection=styled.td(({theme})=>({position:\"relative\",fontWeight:theme.typography.weight.bold,fontSize:theme.typography.size.s2-1,background:theme.background.app})),StyledTd2=styled.td(()=>({position:\"relative\"})),StyledTr=styled.tr(({theme})=>({\"&:hover > td\":{backgroundColor:`${lighten(.005,theme.background.app)} !important`,boxShadow:`${theme.color.mediumlight} 0 - 1px 0 0 inset`,cursor:\"row-resize\"}})),ClickIntercept=styled.button(()=>({background:\"none\",border:\"none\",padding:\"0\",font:\"inherit\",position:\"absolute\",top:0,bottom:0,left:0,right:0,height:\"100%\",width:\"100%\",color:\"transparent\",cursor:\"row-resize !important\"})),SectionRow=({level=\"section\",label,children,initialExpanded=!0,colSpan=3})=>{let[expanded,setExpanded]=useState(initialExpanded),Level=level===\"subsection\"?Subsection:Section,itemCount=children?.length||0,caption=level===\"subsection\"?`${itemCount} item${itemCount!==1?\"s\":\"\"}`:\"\",icon=expanded?\"arrowdown\":\"arrowright\",helperText=`${expanded?\"Hide\":\"Show\"} ${level===\"subsection\"?itemCount:label} item${itemCount!==1?\"s\":\"\"}`;return React17.createElement(React17.Fragment,null,React17.createElement(StyledTr,{title:helperText},React17.createElement(Level,{colSpan:1},React17.createElement(ClickIntercept,{onClick:e=>setExpanded(!expanded),tabIndex:0},helperText),React17.createElement(FlexWrapper,null,React17.createElement(ExpanderIcon,{icon}),label)),React17.createElement(StyledTd2,{colSpan:colSpan-1},React17.createElement(ClickIntercept,{onClick:e=>setExpanded(!expanded),tabIndex:-1,style:{outline:\"none\"}},helperText),expanded?null:caption)),expanded?children:null)};var Row=styled.div(({theme})=>({display:\"flex\",gap:16,borderBottom:`1px solid ${theme.appBorderColor}`,\"&:last-child\":{borderBottom:0}})),Column=styled.div(({numColumn})=>({display:\"flex\",flexDirection:\"column\",flex:numColumn||1,gap:5,padding:\"12px 20px\"})),SkeletonText=styled.div(({theme,width,height})=>({animation:`${theme.animation.glow} 1.5s ease-in-out infinite`,background:theme.appBorderColor,width:width||\"100%\",height:height||16,borderRadius:3})),columnWidth=[2,4,2,2],Skeleton=()=>React17.createElement(React17.Fragment,null,React17.createElement(Row,null,React17.createElement(Column,{numColumn:columnWidth[0]},React17.createElement(SkeletonText,{width:\"60%\"})),React17.createElement(Column,{numColumn:columnWidth[1]},React17.createElement(SkeletonText,{width:\"30%\"})),React17.createElement(Column,{numColumn:columnWidth[2]},React17.createElement(SkeletonText,{width:\"60%\"})),React17.createElement(Column,{numColumn:columnWidth[3]},React17.createElement(SkeletonText,{width:\"60%\"}))),React17.createElement(Row,null,React17.createElement(Column,{numColumn:columnWidth[0]},React17.createElement(SkeletonText,{width:\"60%\"})),React17.createElement(Column,{numColumn:columnWidth[1]},React17.createElement(SkeletonText,{width:\"80%\"}),React17.createElement(SkeletonText,{width:\"30%\"})),React17.createElement(Column,{numColumn:columnWidth[2]},React17.createElement(SkeletonText,{width:\"60%\"})),React17.createElement(Column,{numColumn:columnWidth[3]},React17.createElement(SkeletonText,{width:\"60%\"}))),React17.createElement(Row,null,React17.createElement(Column,{numColumn:columnWidth[0]},React17.createElement(SkeletonText,{width:\"60%\"})),React17.createElement(Column,{numColumn:columnWidth[1]},React17.createElement(SkeletonText,{width:\"80%\"}),React17.createElement(SkeletonText,{width:\"30%\"})),React17.createElement(Column,{numColumn:columnWidth[2]},React17.createElement(SkeletonText,{width:\"60%\"})),React17.createElement(Column,{numColumn:columnWidth[3]},React17.createElement(SkeletonText,{width:\"60%\"}))),React17.createElement(Row,null,React17.createElement(Column,{numColumn:columnWidth[0]},React17.createElement(SkeletonText,{width:\"60%\"})),React17.createElement(Column,{numColumn:columnWidth[1]},React17.createElement(SkeletonText,{width:\"80%\"}),React17.createElement(SkeletonText,{width:\"30%\"})),React17.createElement(Column,{numColumn:columnWidth[2]},React17.createElement(SkeletonText,{width:\"60%\"})),React17.createElement(Column,{numColumn:columnWidth[3]},React17.createElement(SkeletonText,{width:\"60%\"}))));var Wrapper7=styled.div(({inAddonPanel,theme})=>({height:inAddonPanel?\"100%\":\"auto\",display:\"flex\",border:inAddonPanel?\"none\":`1px solid ${theme.appBorderColor}`,borderRadius:inAddonPanel?0:theme.appBorderRadius,padding:inAddonPanel?0:40,alignItems:\"center\",justifyContent:\"center\",flexDirection:\"column\",gap:15,background:theme.background.content,boxShadow:\"rgba(0, 0, 0, 0.10) 0 1px 3px 0\"})),Content=styled.div({display:\"flex\",flexDirection:\"column\",gap:4,maxWidth:415}),Title2=styled.div(({theme})=>({fontWeight:theme.typography.weight.bold,fontSize:theme.typography.size.s2-1,textAlign:\"center\",color:theme.textColor})),Description2=styled.div(({theme})=>({fontWeight:theme.typography.weight.regular,fontSize:theme.typography.size.s2-1,textAlign:\"center\",color:theme.textMutedColor})),Links=styled.div(({theme})=>({display:\"flex\",fontSize:theme.typography.size.s2-1,gap:25})),Divider=styled.div(({theme})=>({width:1,height:16,backgroundColor:theme.appBorderColor})),Empty=({inAddonPanel})=>{let[isLoading,setIsLoading]=useState(!0);return useEffect(()=>{let load=setTimeout(()=>{setIsLoading(!1);},100);return ()=>clearTimeout(load)},[]),isLoading?null:React17.createElement(Wrapper7,{inAddonPanel},React17.createElement(Content,null,React17.createElement(Title2,null,inAddonPanel?\"Interactive story playground\":\"Args table with interactive controls couldn't be auto-generated\"),React17.createElement(Description2,null,\"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically.\")),React17.createElement(Links,null,inAddonPanel&&React17.createElement(React17.Fragment,null,React17.createElement(Link,{href:\"https://youtu.be/0gOfS6K0x0E\",target:\"_blank\",withArrow:!0},React17.createElement(Icons,{icon:\"video\"}),\" Watch 5m video\"),React17.createElement(Divider,null),React17.createElement(Link,{href:\"https://storybook.js.org/docs/react/essentials/controls\",target:\"_blank\",withArrow:!0},\"Read docs\")),!inAddonPanel&&React17.createElement(Link,{href:\"https://storybook.js.org/docs/react/essentials/controls\",target:\"_blank\",withArrow:!0},\"Learn how to set that up\")))};var TableWrapper=styled.table(({theme,compact,inAddonPanel})=>({\"&&\":{borderSpacing:0,color:theme.color.defaultText,\"td, th\":{padding:0,border:\"none\",verticalAlign:\"top\",textOverflow:\"ellipsis\"},fontSize:theme.typography.size.s2-1,lineHeight:\"20px\",textAlign:\"left\",width:\"100%\",marginTop:inAddonPanel?0:25,marginBottom:inAddonPanel?0:40,\"thead th:first-of-type, td:first-of-type\":{width:\"25%\"},\"th:first-of-type, td:first-of-type\":{paddingLeft:20},\"th:nth-of-type(2), td:nth-of-type(2)\":{...compact?null:{width:\"35%\"}},\"td:nth-of-type(3)\":{...compact?null:{width:\"15%\"}},\"th:last-of-type, td:last-of-type\":{paddingRight:20,...compact?null:{width:\"25%\"}},th:{color:theme.base===\"light\"?transparentize(.25,theme.color.defaultText):transparentize(.45,theme.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:\"10px\",paddingBottom:\"10px\",\"&:not(:first-of-type)\":{paddingLeft:15,paddingRight:15},\"&:last-of-type\":{paddingRight:20}},marginLeft:inAddonPanel?0:1,marginRight:inAddonPanel?0:1,tbody:{...inAddonPanel?null:{filter:theme.base===\"light\"?\"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))\":\"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))\"},\"> tr > *\":{background:theme.background.content,borderTop:`1px solid ${theme.appBorderColor}`},...inAddonPanel?null:{\"> tr:first-of-type > *\":{borderBlockStart:`1px solid ${theme.appBorderColor}`},\"> tr:last-of-type > *\":{borderBlockEnd:`1px solid ${theme.appBorderColor}`},\"> tr > *:first-of-type\":{borderInlineStart:`1px solid ${theme.appBorderColor}`},\"> tr > *:last-of-type\":{borderInlineEnd:`1px solid ${theme.appBorderColor}`},\"> tr:first-of-type > td:first-of-type\":{borderTopLeftRadius:theme.appBorderRadius},\"> tr:first-of-type > td:last-of-type\":{borderTopRightRadius:theme.appBorderRadius},\"> tr:last-of-type > td:first-of-type\":{borderBottomLeftRadius:theme.appBorderRadius},\"> tr:last-of-type > td:last-of-type\":{borderBottomRightRadius:theme.appBorderRadius}}}}})),StyledIconButton=styled(IconButton)(({theme})=>({color:theme.barTextColor,margin:\"-4px -12px -4px 0\"})),ControlHeadingWrapper=styled.span({display:\"flex\",justifyContent:\"space-between\"});var sortFns={alpha:(a,b)=>a.name.localeCompare(b.name),requiredFirst:(a,b)=>+!!b.type?.required-+!!a.type?.required||a.name.localeCompare(b.name),none:void 0},groupRows=(rows,sort)=>{let sections={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!rows)return sections;Object.entries(rows).forEach(([key,row])=>{let{category,subcategory}=row?.table||{};if(category){let section=sections.sections[category]||{ungrouped:[],subsections:{}};if(!subcategory)section.ungrouped.push({key,...row});else {let subsection=section.subsections[subcategory]||[];subsection.push({key,...row}),section.subsections[subcategory]=subsection;}sections.sections[category]=section;}else if(subcategory){let subsection=sections.ungroupedSubsections[subcategory]||[];subsection.push({key,...row}),sections.ungroupedSubsections[subcategory]=subsection;}else sections.ungrouped.push({key,...row});});let sortFn=sortFns[sort],sortSubsection=record=>sortFn?Object.keys(record).reduce((acc,cur)=>({...acc,[cur]:record[cur].sort(sortFn)}),{}):record;return {ungrouped:sections.ungrouped.sort(sortFn),ungroupedSubsections:sortSubsection(sections.ungroupedSubsections),sections:Object.keys(sections.sections).reduce((acc,cur)=>({...acc,[cur]:{ungrouped:sections.sections[cur].ungrouped.sort(sortFn),subsections:sortSubsection(sections.sections[cur].subsections)}}),{})}},safeIncludeConditionalArg=(row,args,globals)=>{try{return includeConditionalArg(row,args,globals)}catch(err){return once.warn(err.message),!1}},ArgsTable=props=>{let{updateArgs,resetArgs,compact,inAddonPanel,initialExpandedArgs,sort=\"none\",isLoading}=props;if(\"error\"in props){let{error}=props;return React17.createElement(EmptyBlock,null,error,\"\\xA0\",React17.createElement(Link,{href:\"http://storybook.js.org/docs/\",target:\"_blank\",withArrow:!0},\"Read the docs\"))}if(isLoading)return React17.createElement(Skeleton,null);let{rows,args,globals}=\"rows\"in props&&props,groups=groupRows(pickBy(rows,row=>!row?.table?.disable&&safeIncludeConditionalArg(row,args||{},globals||{})),sort),hasNoUngrouped=groups.ungrouped.length===0,hasNoSections=Object.entries(groups.sections).length===0,hasNoUngroupedSubsections=Object.entries(groups.ungroupedSubsections).length===0;if(hasNoUngrouped&&hasNoSections&&hasNoUngroupedSubsections)return React17.createElement(Empty,{inAddonPanel});let colSpan=1;updateArgs&&(colSpan+=1),compact||(colSpan+=2);let expandable=Object.keys(groups.sections).length>0,common={updateArgs,compact,inAddonPanel,initialExpandedArgs};return React17.createElement(ResetWrapper,null,React17.createElement(TableWrapper,{compact,inAddonPanel,className:\"docblock-argstable sb-unstyled\"},React17.createElement(\"thead\",{className:\"docblock-argstable-head\"},React17.createElement(\"tr\",null,React17.createElement(\"th\",null,React17.createElement(\"span\",null,\"Name\")),compact?null:React17.createElement(\"th\",null,React17.createElement(\"span\",null,\"Description\")),compact?null:React17.createElement(\"th\",null,React17.createElement(\"span\",null,\"Default\")),updateArgs?React17.createElement(\"th\",null,React17.createElement(ControlHeadingWrapper,null,\"Control\",\" \",!isLoading&&resetArgs&&React17.createElement(StyledIconButton,{onClick:()=>resetArgs(),title:\"Reset controls\"},React17.createElement(Icons,{icon:\"undo\",\"aria-hidden\":!0})))):null)),React17.createElement(\"tbody\",{className:\"docblock-argstable-body\"},groups.ungrouped.map(row=>React17.createElement(ArgRow,{key:row.key,row,arg:args&&args[row.key],...common})),Object.entries(groups.ungroupedSubsections).map(([subcategory,subsection])=>React17.createElement(SectionRow,{key:subcategory,label:subcategory,level:\"subsection\",colSpan},subsection.map(row=>React17.createElement(ArgRow,{key:row.key,row,arg:args&&args[row.key],expandable,...common})))),Object.entries(groups.sections).map(([category,section])=>React17.createElement(SectionRow,{key:category,label:category,level:\"section\",colSpan},section.ungrouped.map(row=>React17.createElement(ArgRow,{key:row.key,row,arg:args&&args[row.key],...common})),Object.entries(section.subsections).map(([subcategory,subsection])=>React17.createElement(SectionRow,{key:subcategory,label:subcategory,level:\"subsection\",colSpan},subsection.map(row=>React17.createElement(ArgRow,{key:row.key,row,arg:args&&args[row.key],expandable,...common})))))))))};var TabbedArgsTable=({tabs,...props})=>{let entries=Object.entries(tabs);return entries.length===1?React17.createElement(ArgsTable,{...entries[0][1],...props}):React17.createElement(TabsState,null,entries.map(entry=>{let[label,table]=entry,id=`prop_table_div_${label}`;return React17.createElement(\"div\",{key:id,id,title:label},({active})=>active?React17.createElement(ArgsTable,{key:`prop_table_${label}`,...table,...props}):null)}))};var Label4=styled.div(({theme})=>({marginRight:30,fontSize:`${theme.typography.size.s1}px`,color:theme.base===\"light\"?transparentize(.4,theme.color.defaultText):transparentize(.6,theme.color.defaultText)})),Sample=styled.div({overflow:\"hidden\",whiteSpace:\"nowrap\",textOverflow:\"ellipsis\"}),TypeSpecimen=styled.div({display:\"flex\",flexDirection:\"row\",alignItems:\"baseline\",\"&:not(:last-child)\":{marginBottom:\"1rem\"}}),Wrapper8=styled.div(withReset,({theme})=>({...getBlockBackgroundStyle(theme),margin:\"25px 0 40px\",padding:\"30px 20px\"})),Typeset=({fontFamily,fontSizes,fontWeight,sampleText,...props})=>React17.createElement(Wrapper8,{...props,className:\"docblock-typeset sb-unstyled\"},fontSizes.map(size=>React17.createElement(TypeSpecimen,{key:size},React17.createElement(Label4,null,size),React17.createElement(Sample,{style:{fontFamily,fontSize:size,fontWeight,lineHeight:1.2}},sampleText||\"Was he a beast if music could move him so?\"))));var ItemTitle=styled.div(({theme})=>({fontWeight:theme.typography.weight.bold,color:theme.color.defaultText})),ItemSubtitle=styled.div(({theme})=>({color:theme.base===\"light\"?transparentize(.2,theme.color.defaultText):transparentize(.6,theme.color.defaultText)})),ItemDescription=styled.div({flex:\"0 0 30%\",lineHeight:\"20px\",marginTop:5}),SwatchLabel=styled.div(({theme})=>({flex:1,textAlign:\"center\",fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,lineHeight:1,overflow:\"hidden\",color:theme.base===\"light\"?transparentize(.4,theme.color.defaultText):transparentize(.6,theme.color.defaultText),\"> div\":{display:\"inline-block\",overflow:\"hidden\",maxWidth:\"100%\",textOverflow:\"ellipsis\"},span:{display:\"block\",marginTop:2}})),SwatchLabels=styled.div({display:\"flex\",flexDirection:\"row\"}),Swatch=styled.div(({background})=>({position:\"relative\",flex:1,\"&::before\":{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",background,content:'\"\"'}})),SwatchColors=styled.div(({theme})=>({...getBlockBackgroundStyle(theme),display:\"flex\",flexDirection:\"row\",height:50,marginBottom:5,overflow:\"hidden\",backgroundColor:\"white\",backgroundImage:\"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)\",backgroundClip:\"padding-box\"})),SwatchSpecimen=styled.div({display:\"flex\",flexDirection:\"column\",flex:1,position:\"relative\",marginBottom:30}),Swatches=styled.div({flex:1,display:\"flex\",flexDirection:\"row\"}),Item=styled.div({display:\"flex\",alignItems:\"flex-start\"}),ListName=styled.div({flex:\"0 0 30%\"}),ListSwatches=styled.div({flex:1}),ListHeading=styled.div(({theme})=>({display:\"flex\",flexDirection:\"row\",alignItems:\"center\",paddingBottom:20,fontWeight:theme.typography.weight.bold,color:theme.base===\"light\"?transparentize(.4,theme.color.defaultText):transparentize(.6,theme.color.defaultText)})),List=styled.div(({theme})=>({fontSize:theme.typography.size.s2,lineHeight:\"20px\",display:\"flex\",flexDirection:\"column\"}));function renderSwatch(color,index){return React17.createElement(Swatch,{key:`${color}-${index}`,title:color,background:color})}function renderSwatchLabel(color,index,colorDescription){return React17.createElement(SwatchLabel,{key:`${color}-${index}`,title:color},React17.createElement(\"div\",null,color,colorDescription&&React17.createElement(\"span\",null,colorDescription)))}function renderSwatchSpecimen(colors){return Array.isArray(colors)?React17.createElement(SwatchSpecimen,null,React17.createElement(SwatchColors,null,colors.map((color,index)=>renderSwatch(color,index))),React17.createElement(SwatchLabels,null,colors.map((color,index)=>renderSwatchLabel(color,index)))):React17.createElement(SwatchSpecimen,null,React17.createElement(SwatchColors,null,Object.values(colors).map((color,index)=>renderSwatch(color,index))),React17.createElement(SwatchLabels,null,Object.keys(colors).map((color,index)=>renderSwatchLabel(color,index,colors[color]))))}var ColorItem=({title,subtitle,colors})=>React17.createElement(Item,null,React17.createElement(ItemDescription,null,React17.createElement(ItemTitle,null,title),React17.createElement(ItemSubtitle,null,subtitle)),React17.createElement(Swatches,null,renderSwatchSpecimen(colors))),ColorPalette=({children,...props})=>React17.createElement(ResetWrapper,null,React17.createElement(List,{...props,className:\"docblock-colorpalette sb-unstyled\"},React17.createElement(ListHeading,null,React17.createElement(ListName,null,\"Name\"),React17.createElement(ListSwatches,null,\"Swatches\")),children));var ItemLabel=styled.div(({theme})=>({fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s2,color:theme.color.defaultText,marginLeft:10,lineHeight:1.2})),ItemSpecimen=styled.div(({theme})=>({...getBlockBackgroundStyle(theme),overflow:\"hidden\",height:40,width:40,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flex:\"none\",\"> img, > svg\":{width:20,height:20}})),Item2=styled.div({display:\"inline-flex\",flexDirection:\"row\",alignItems:\"center\",flex:\"0 1 calc(20% - 10px)\",minWidth:120,margin:\"0px 10px 30px 0\"}),List2=styled.div({display:\"flex\",flexFlow:\"row wrap\"}),IconItem=({name,children})=>React17.createElement(Item2,null,React17.createElement(ItemSpecimen,null,children),React17.createElement(ItemLabel,null,name)),IconGallery=({children,...props})=>React17.createElement(ResetWrapper,null,React17.createElement(List2,{...props,className:\"docblock-icongallery sb-unstyled\"},children));var anchorBlockIdFromId=storyId=>`anchor--${storyId}`,Anchor=({storyId,children})=>React17.createElement(\"div\",{id:anchorBlockIdFromId(storyId),className:\"sb-anchor\"},children);global&&global.__DOCS_CONTEXT__===void 0&&(global.__DOCS_CONTEXT__=createContext(null),global.__DOCS_CONTEXT__.displayName=\"DocsContext\");var DocsContext=global?global.__DOCS_CONTEXT__:createContext(null);var useOf=(moduleExportOrType,validTypes)=>useContext(DocsContext).resolveOf(moduleExportOrType,validTypes);function extractComponentArgTypes(component,parameters){let{extractArgTypes}=parameters.docs||{};if(!extractArgTypes)throw new Error(\"Args unsupported. See Args documentation for your framework.\");return extractArgTypes(component)}function getArgTypesFromResolved(resolved,props){if(resolved.type===\"component\"){let{component,projectAnnotations:{parameters:parameters2}}=resolved;return {argTypes:extractComponentArgTypes(component,parameters2),parameters:parameters2}}if(resolved.type===\"meta\"){let{preparedMeta:{argTypes:argTypes2,parameters:parameters2}}=resolved;return {argTypes:argTypes2,parameters:parameters2}}let{story:{argTypes,parameters}}=resolved;return {argTypes,parameters}}var ArgTypes=props=>{let{of}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");let resolved=useOf(of||\"meta\"),{argTypes,parameters}=getArgTypesFromResolved(resolved),argTypesParameters=parameters.docs?.argTypes||{},include=props.include??argTypesParameters.include,exclude=props.exclude??argTypesParameters.exclude,sort=props.sort??argTypesParameters.sort,filteredArgTypes=filterArgTypes(argTypes,include,exclude);return React17.createElement(ArgsTable,{rows:filteredArgTypes,sort})};var PRIMARY_STORY=\"^\";var titleCase=str2=>str2.split(\"-\").map(part=>part.charAt(0).toUpperCase()+part.slice(1)).join(\"\"),getComponentName=component=>{if(component)return typeof component==\"string\"?component.includes(\"-\")?titleCase(component):component:component.__docgenInfo&&component.__docgenInfo.displayName?component.__docgenInfo.displayName:component.name};function scrollToElement(element,block=\"start\"){element.scrollIntoView({behavior:\"smooth\",block,inline:\"nearest\"});}function useStory(storyId,context){let stories=useStories([storyId],context);return stories&&stories[0]}function useStories(storyIds,context){let[storiesById,setStories]=useState({});return useEffect(()=>{Promise.all(storyIds.map(async storyId=>{let story=await context.loadStory(storyId);setStories(current=>current[storyId]===story?current:{...current,[storyId]:story});}));}),storyIds.map(storyId=>{if(storiesById[storyId])return storiesById[storyId];try{return context.storyById(storyId)}catch{return null}})}var useArgs=(storyId,context)=>{let storyContext=context.getStoryContext(context.storyById()),[args,setArgs]=useState(storyContext.args);useEffect(()=>{let cb=changed=>{changed.storyId===storyId&&setArgs(changed.args);};return context.channel.on(STORY_ARGS_UPDATED,cb),()=>context.channel.off(STORY_ARGS_UPDATED,cb)},[storyId]);let updateArgs=useCallback(updatedArgs=>context.channel.emit(UPDATE_STORY_ARGS,{storyId,updatedArgs}),[storyId]),resetArgs=useCallback(argNames=>context.channel.emit(RESET_STORY_ARGS,{storyId,argNames}),[storyId]);return [args,updateArgs,resetArgs]},useGlobals=context=>{let storyContext=context.getStoryContext(context.storyById()),[globals,setGlobals]=useState(storyContext.globals);return useEffect(()=>{let cb=changed=>{setGlobals(changed.globals);};return context.channel.on(GLOBALS_UPDATED,cb),()=>context.channel.off(GLOBALS_UPDATED,cb)},[]),[globals]},extractComponentArgTypes2=(component,parameters,include,exclude)=>{let{extractArgTypes}=parameters.docs||{};if(!extractArgTypes)throw new Error(\"Args unsupported. See Args documentation for your framework.\");let argTypes=extractArgTypes(component);return argTypes=filterArgTypes(argTypes,include,exclude),argTypes},isShortcut=value2=>value2&&[PRIMARY_STORY].includes(value2),getComponent=(props={},component)=>{let{of}=props,{story}=props;if(isShortcut(of)||isShortcut(story))return component||null;if(!of)throw new Error(\"No component found.\");return of},addComponentTabs=(tabs,components2,parameters,include,exclude,sort)=>({...tabs,...mapValues(components2,comp=>({rows:extractComponentArgTypes2(comp,parameters,include,exclude),sort}))}),StoryTable=props=>{let context=useContext(DocsContext),{story:storyName,component,subcomponents,showComponent,include,exclude,sort}=props;try{let storyId;switch(storyName){case PRIMARY_STORY:{storyId=context.storyById().id;break}default:storyId=context.storyIdByName(storyName);}let story=useStory(storyId,context),[args,updateArgs,resetArgs]=useArgs(storyId,context),[globals]=useGlobals(context);if(!story)return React17.createElement(ArgsTable,{isLoading:!0,updateArgs,resetArgs});let argTypes=filterArgTypes(story.argTypes,include,exclude),mainLabel=getComponentName(component)||\"Story\",tabs={[mainLabel]:{rows:argTypes,args,globals,updateArgs,resetArgs}},storyHasArgsWithControls=argTypes&&Object.values(argTypes).find(v=>!!v?.control);if(storyHasArgsWithControls||(updateArgs=null,resetArgs=null,tabs={}),component&&(!storyHasArgsWithControls||showComponent)&&(tabs=addComponentTabs(tabs,{[mainLabel]:component},story.parameters,include,exclude)),subcomponents){if(Array.isArray(subcomponents))throw new Error(\"Unexpected subcomponents array. Expected an object whose keys are tab labels and whose values are components.\");tabs=addComponentTabs(tabs,subcomponents,story.parameters,include,exclude);}return React17.createElement(TabbedArgsTable,{tabs,sort})}catch(err){return React17.createElement(ArgsTable,{error:err.message})}},ComponentsTable=props=>{let{components:components2,include,exclude,sort,parameters}=props,tabs=addComponentTabs({},components2,parameters,include,exclude);return React17.createElement(TabbedArgsTable,{tabs,sort})},ArgsTable2=props=>{deprecate(dedent2`The ArgsTable doc block is deprecated. Instead use the ArgTypes doc block for static tables or the Controls doc block for tables with controls.\n \n Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#argstable-block\n `);let context=useContext(DocsContext),parameters,component,subcomponents;try{({parameters,component,subcomponents}=context.storyById());}catch{let{of}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");({projectAnnotations:{parameters}}=context.resolveOf(of,[\"component\"]));}let{include,exclude,components:components2,sort:sortProp}=props,{story:storyName}=props,sort=sortProp||parameters.controls?.sort,main=getComponent(props,component);if(storyName)return React17.createElement(StoryTable,{...props,component:main,subcomponents,sort});if(!components2&&!subcomponents){let mainProps;try{mainProps={rows:extractComponentArgTypes2(main,parameters,include,exclude)};}catch(err){mainProps={error:err.message};}return React17.createElement(ArgsTable,{...mainProps,sort})}if(components2)return React17.createElement(ComponentsTable,{...props,components:components2,sort,parameters});let mainLabel=getComponentName(main);return React17.createElement(ComponentsTable,{...props,components:{[mainLabel]:main,...subcomponents},sort,parameters})};ArgsTable2.defaultProps={of:PRIMARY_STORY};function argsHash(args){return stringify(args)}var SourceContext=createContext({sources:{}}),UNKNOWN_ARGS_HASH=\"--unknown--\",SourceContainer=({children,channel})=>{let[sources,setSources]=useState({});return useEffect(()=>{let handleSnippetRendered=(idOrEvent,inputSource=null,inputFormat=!1)=>{let{id,args=void 0,source,format:format2}=typeof idOrEvent==\"string\"?{id:idOrEvent,source:inputSource,format:inputFormat}:idOrEvent,hash=args?argsHash(args):UNKNOWN_ARGS_HASH;setSources(current=>({...current,[id]:{...current[id],[hash]:{code:source,format:format2}}}));};return channel.on(SNIPPET_RENDERED,handleSnippetRendered),()=>channel.off(SNIPPET_RENDERED,handleSnippetRendered)},[]),React17.createElement(SourceContext.Provider,{value:{sources}},children)};var SourceState=(SourceState2=>(SourceState2.OPEN=\"open\",SourceState2.CLOSED=\"closed\",SourceState2.NONE=\"none\",SourceState2))(SourceState||{}),getSourceState=stories=>{let states=stories.map(story=>story.parameters.docs?.source?.state).filter(Boolean);return states.length===0?\"closed\":states[0]},getStorySource=(storyId,args,sourceContext)=>{let{sources}=sourceContext,sourceMap=sources?.[storyId];return sourceMap?.[argsHash(args)]||sourceMap?.[UNKNOWN_ARGS_HASH]||{code:\"\"}},getSnippet=({snippet,storyContext,typeFromProps,transformFromProps})=>{let{__isArgsStory:isArgsStory}=storyContext.parameters,sourceParameters=storyContext.parameters.docs?.source||{},type=typeFromProps||sourceParameters.type||SourceType.AUTO;if(sourceParameters.code!==void 0)return sourceParameters.code;let code=type===SourceType.DYNAMIC||type===SourceType.AUTO&&snippet&&isArgsStory?snippet:sourceParameters.originalSource||\"\";return sourceParameters.transformSource&&deprecate(dedent2`The \\`transformSource\\` parameter at \\`parameters.docs.source.transformSource\\` is deprecated, please use \\`parameters.docs.source.transform\\` instead. \n \n Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#source-block\n `),storyContext.parameters.docs?.transformSource&&deprecate(dedent2`The \\`transformSource\\` parameter at \\`parameters.docs.transformSource\\` is deprecated, please use \\`parameters.docs.source.transform\\` instead. \n \n Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#source-block\n `),storyContext.parameters.jsx?.transformSource&&deprecate(dedent2`The \\`transformSource\\` parameter at \\`parameters.jsx.transformSource\\` is deprecated, please use \\`parameters.docs.source.transform\\` instead. \n \n Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#source-block\n `),(transformFromProps??sourceParameters.transform??sourceParameters.transformSource??storyContext.parameters.docs?.transformSource??storyContext.parameters.jsx?.transformSource)?.(code,storyContext)||code},useSourceProps=(props,docsContext,sourceContext)=>{let storyIds=props.ids||(props.id?[props.id]:[]),storiesFromIds=useStories(storyIds,docsContext),stories=storiesFromIds,{of}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");if(of)stories=[docsContext.resolveOf(of,[\"story\"]).story];else if(stories.length===0)try{stories=[docsContext.storyById()];}catch{}if(!storiesFromIds.every(Boolean))return {error:\"Oh no! The source is not available.\",state:\"none\"};let sourceParameters=stories[0]?.parameters?.docs?.source||{},{code}=props,format2=props.format??sourceParameters.format,language=props.language??sourceParameters.language??\"jsx\",dark=props.dark??sourceParameters.dark??!1;code||(code=stories.map((story,index)=>{if(!story)return \"\";let storyContext=docsContext.getStoryContext(story),argsForSource=props.__forceInitialArgs?storyContext.initialArgs:storyContext.unmappedArgs,source=getStorySource(story.id,argsForSource,sourceContext);return index===0&&(format2=source.format??story.parameters.docs?.source?.format??!1),getSnippet({snippet:source.code,storyContext:{...storyContext,args:argsForSource},typeFromProps:props.type,transformFromProps:props.transform})}).join(`\n\n`));let state=getSourceState(stories);return code?{code,format:format2,language,dark,state}:{error:\"Oh no! The source is not available.\",state}},Source2=props=>{props.id&&deprecate(dedent2`The \\`id\\` prop on Source is deprecated, please use the \\`of\\` prop instead to reference a story. \n \n Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#source-block\n `),props.ids&&deprecate(dedent2`The \\`ids\\` prop on Source is deprecated, please use the \\`of\\` prop instead to reference a story. \n \n Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#source-block\n `);let sourceContext=useContext(SourceContext),docsContext=useContext(DocsContext),{state,...sourceProps}=useSourceProps(props,docsContext,sourceContext);return React17.createElement(Source,{...sourceProps})};var getStoryId2=(props,context)=>{let{id,of,meta,story}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");if(id)return deprecate(dedent2`Referencing stories by \\`id\\` is deprecated, please use \\`of\\` instead. \n \n Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#story-block'`),id;let{name}=props;return name?(deprecate(dedent2`Referencing stories by \\`name\\` is deprecated, please use \\`of\\` instead. \n \n Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#story-block'`),context.storyIdByName(name)):(story&&deprecate(dedent2`The \\`story\\` prop is deprecated, please export your stories from CSF files and reference them with \\`of={}\\`.\n\n Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#story-block'`),meta&&context.referenceMeta(meta,!1),context.resolveOf(of||story||\"story\",[\"story\"]).story.id)},getStoryProps=(props,story,context)=>{let{parameters={}}=story||{},{docs={}}=parameters,storyParameters=docs.story||{};if(docs.disable)return null;let{inlineStories,iframeHeight}=docs;typeof inlineStories<\"u\"&&deprecate(dedent2`The \\`docs.inlineStories\\` parameter is deprecated, use \\`docs.story.inline\\` instead. \n \n Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#autodocs-changes'\n `);let inline=props.inline??storyParameters.inline??inlineStories??!1;if(typeof iframeHeight<\"u\"&&deprecate(dedent2`The \\`docs.iframeHeight\\` parameter is deprecated, use \\`docs.story.iframeHeight\\` instead. \n \n Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#autodocs-changes'\n `),inline){let height2=props.height??storyParameters.height,autoplay=props.autoplay??storyParameters.autoplay??!1;return {story,inline:!0,height:height2,autoplay,forceInitialArgs:!!props.__forceInitialArgs,primary:!!props.__primary,renderStoryToElement:context.renderStoryToElement}}let height=props.height??storyParameters.height??storyParameters.iframeHeight??iframeHeight??\"100px\";return {story,inline:!1,height,primary:!!props.__primary}},Story2=(props={__forceInitialArgs:!1,__primary:!1})=>{let context=useContext(DocsContext),storyId=getStoryId2(props,context),story=useStory(storyId,context);if(!story)return React17.createElement(StorySkeleton,null);let storyProps=getStoryProps(props,story,context);return storyProps?React17.createElement(Story,{...storyProps}):null};var useDeprecatedPreviewProps=({withSource,mdxSource,children,layout:layoutProp,...props},docsContext,sourceContext)=>{let storyIds=Children.toArray(children).filter(c=>c.props&&(c.props.id||c.props.name||c.props.of)).map(c=>getStoryId2(c.props,docsContext)),stories=useStories(storyIds,docsContext),isLoading=stories.some(s=>!s),sourceProps=useSourceProps({...mdxSource?{code:decodeURI(mdxSource)}:{ids:storyIds},...props.of&&{of:props.of}},docsContext,sourceContext);if(withSource===\"none\")return {isLoading,previewProps:props};let layout=layoutProp;return Children.forEach(children,child=>{layout||(layout=child?.props?.parameters?.layout);}),stories.forEach(story=>{layout||!story||(layout=story?.parameters.layout??story.parameters.docs?.canvas?.layout);}),{isLoading,previewProps:{...props,layout:layout??\"padded\",withSource:sourceProps,isExpanded:(withSource||sourceProps.state)===\"open\"}}},Canvas=props=>{let docsContext=useContext(DocsContext),sourceContext=useContext(SourceContext),{children,of,source}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");let{isLoading,previewProps}=useDeprecatedPreviewProps(props,docsContext,sourceContext),story,sourceProps,hookError;try{({story}=useOf(of||\"story\",[\"story\"]));}catch(error){children||(hookError=error);}try{sourceProps=useSourceProps({...source,...of&&{of}},docsContext,sourceContext);}catch(error){children||(hookError=error);}if(hookError)throw hookError;if(props.withSource&&deprecate(dedent2`Setting source state with \\`withSource\\` is deprecated, please use \\`sourceState\\` with 'hidden', 'shown' or 'none' instead. \n \n Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#canvas-block\n `),props.mdxSource&&deprecate(dedent2`Setting source code with \\`mdxSource\\` is deprecated, please use source={{code: '...'}} instead. \n \n Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#canvas-block\n `),(props.isColumn!==void 0||props.columns!==void 0)&&deprecate(dedent2`\\`isColumn\\` and \\`columns\\` props are deprecated as the Canvas block now only supports showing a single story. \n \n Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#canvas-block\n `),children)return deprecate(dedent2`Passing children to Canvas is deprecated, please use the \\`of\\` prop instead to reference a story. \n \n Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#canvas-block\n `),isLoading?React17.createElement(PreviewSkeleton,null):React17.createElement(Preview,{...previewProps},children);let layout=props.layout??story.parameters.layout??story.parameters.docs?.canvas?.layout??\"padded\",withToolbar=props.withToolbar??story.parameters.docs?.canvas?.withToolbar??!1,additionalActions=props.additionalActions??story.parameters.docs?.canvas?.additionalActions,sourceState=props.sourceState??story.parameters.docs?.canvas?.sourceState??\"hidden\",className=props.className??story.parameters.docs?.canvas?.className;return React17.createElement(Preview,{withSource:sourceState===\"none\"?void 0:sourceProps,isExpanded:sourceState===\"shown\",withToolbar,additionalActions,className,layout},React17.createElement(Story2,{of:of||story.moduleExport,meta:props.meta,...props.story}))};var useGlobals2=(story,context)=>{let storyContext=context.getStoryContext(story),[globals,setGlobals]=useState(storyContext.globals);return useEffect(()=>{let onGlobalsUpdated=changed=>{setGlobals(changed.globals);};return context.channel.on(GLOBALS_UPDATED,onGlobalsUpdated),()=>context.channel.off(GLOBALS_UPDATED,onGlobalsUpdated)},[context.channel]),[globals]};var useArgs2=(story,context)=>{let result=useArgsIfDefined(story,context);if(!result)throw new Error(\"No result when story was defined\");return result},useArgsIfDefined=(story,context)=>{let storyContext=story?context.getStoryContext(story):{args:{}},{id:storyId}=story||{id:\"none\"},[args,setArgs]=useState(storyContext.args);useEffect(()=>{let onArgsUpdated=changed=>{changed.storyId===storyId&&setArgs(changed.args);};return context.channel.on(STORY_ARGS_UPDATED,onArgsUpdated),()=>context.channel.off(STORY_ARGS_UPDATED,onArgsUpdated)},[storyId,context.channel]);let updateArgs=useCallback(updatedArgs=>context.channel.emit(UPDATE_STORY_ARGS,{storyId,updatedArgs}),[storyId,context.channel]),resetArgs=useCallback(argNames=>context.channel.emit(RESET_STORY_ARGS,{storyId,argNames}),[storyId,context.channel]);return story&&[args,updateArgs,resetArgs]};var Controls3=props=>{let{of}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");let context=useContext(DocsContext),{story}=context.resolveOf(of||\"story\",[\"story\"]),{parameters,argTypes}=story,controlsParameters=parameters.docs?.controls||{},include=props.include??controlsParameters.include,exclude=props.exclude??controlsParameters.exclude,sort=props.sort??controlsParameters.sort,[args,updateArgs,resetArgs]=useArgs2(story,context),[globals]=useGlobals2(story,context),filteredArgTypes=filterArgTypes(argTypes,include,exclude);return React17.createElement(ArgsTable,{rows:filteredArgTypes,args,globals,updateArgs,resetArgs,sort})};var {document:document2}=global,assertIsFn=val=>{if(typeof val!=\"function\")throw new Error(`Expected story function, got: ${val}`);return val},AddContext=props=>{let{children,...rest}=props,parentContext=React17.useContext(DocsContext);return React17.createElement(DocsContext.Provider,{value:{...parentContext,...rest}},children)},CodeOrSourceMdx=({className,children,...rest})=>{if(typeof className!=\"string\"&&(typeof children!=\"string\"||!children.match(/[\\n\\r]/g)))return React17.createElement(Code,null,children);let language=className&&className.split(\"-\");return React17.createElement(Source,{language:language&&language[1]||\"plaintext\",format:!1,code:children,...rest})};function navigate(context,url){context.channel.emit(NAVIGATE_URL,url);}var A=components.a,AnchorInPage=({hash,children})=>{let context=useContext(DocsContext);return React17.createElement(A,{href:hash,target:\"_self\",onClick:event=>{let id=hash.substring(1);document2.getElementById(id)&&navigate(context,hash);}},children)},AnchorMdx=props=>{let{href,target,children,...rest}=props,context=useContext(DocsContext);if(href){if(href.startsWith(\"#\"))return React17.createElement(AnchorInPage,{hash:href},children);if(target!==\"_blank\"&&!href.startsWith(\"https://\"))return React17.createElement(A,{href,onClick:event=>{event.button===0&&!event.altKey&&!event.ctrlKey&&!event.metaKey&&!event.shiftKey&&(event.preventDefault(),navigate(context,event.currentTarget.getAttribute(\"href\")));},target,...rest},children)}return React17.createElement(A,{...props})},SUPPORTED_MDX_HEADERS=[\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\"],OcticonHeaders=SUPPORTED_MDX_HEADERS.reduce((acc,headerType)=>({...acc,[headerType]:styled(headerType)({\"& svg\":{position:\"relative\",top:\"-0.1em\",visibility:\"hidden\"},\"&:hover svg\":{visibility:\"visible\"}})}),{}),OcticonAnchor=styled.a(()=>({float:\"left\",lineHeight:\"inherit\",paddingRight:\"10px\",marginLeft:\"-24px\",color:\"inherit\"})),HeaderWithOcticonAnchor=({as,id,children,...rest})=>{let context=useContext(DocsContext),OcticonHeader=OcticonHeaders[as],hash=`#${id}`;return React17.createElement(OcticonHeader,{id,...rest},React17.createElement(OcticonAnchor,{\"aria-hidden\":\"true\",href:hash,tabIndex:-1,target:\"_self\",onClick:event=>{document2.getElementById(id)&&navigate(context,hash);}},React17.createElement(Icons,{icon:\"link\"})),children)},HeaderMdx=props=>{let{as,id,children,...rest}=props;if(id)return React17.createElement(HeaderWithOcticonAnchor,{as,id,...rest},children);let Component4=as,{as:omittedAs,...withoutAs}=props;return React17.createElement(Component4,{...nameSpaceClassNames(withoutAs,as)})},HeadersMdx=SUPPORTED_MDX_HEADERS.reduce((acc,headerType)=>({...acc,[headerType]:props=>React17.createElement(HeaderMdx,{as:headerType,...props})}),{});var Markdown2=props=>{if(!props.children)return null;if(typeof props.children!=\"string\")throw new Error(dedent2`The Markdown block only accepts children as a single string, but children were of type: '${typeof props.children}'\n This is often caused by not wrapping the child in a template string.\n \n This is invalid:\n \n # Some heading\n A paragraph\n \n\n Instead do:\n \n {\\`\n # Some heading\n A paragraph\n \\`}\n \n `);return React17.createElement(Markdown,{...props,options:{forceBlock:!0,overrides:{code:CodeOrSourceMdx,a:AnchorMdx,...HeadersMdx,...props?.options?.overrides},...props?.options}})};var DescriptionType=(DescriptionType2=>(DescriptionType2.INFO=\"info\",DescriptionType2.NOTES=\"notes\",DescriptionType2.DOCGEN=\"docgen\",DescriptionType2.AUTO=\"auto\",DescriptionType2))(DescriptionType||{}),DEPRECATION_MIGRATION_LINK=\"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#description-block-parametersnotes-and-parametersinfo\",getNotes=notes=>notes&&(typeof notes==\"string\"?notes:str(notes.markdown)||str(notes.text)),getInfo=info=>info&&(typeof info==\"string\"?info:str(info.text)),noDescription=component=>null,getDescriptionFromResolvedOf=resolvedOf=>{switch(resolvedOf.type){case\"story\":return resolvedOf.story.parameters.docs?.description?.story||null;case\"meta\":{let{parameters,component}=resolvedOf.preparedMeta,metaDescription=parameters.docs?.description?.component;return metaDescription||parameters.docs?.extractComponentDescription?.(component,{component,parameters})||null}case\"component\":{let{component,projectAnnotations:{parameters}}=resolvedOf;return parameters.docs?.extractComponentDescription?.(component,{component,parameters})||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${resolvedOf.type}`)}},getDescriptionFromDeprecatedProps=({type,markdown,children},{storyById})=>{let{component,parameters}=storyById();if(children||markdown)return children||markdown;let{notes,info,docs}=parameters;(notes||info)&&deprecate(`Using 'parameters.notes' or 'parameters.info' properties to describe stories is deprecated. See ${DEPRECATION_MIGRATION_LINK}`);let{extractComponentDescription=noDescription,description}=docs||{},componentDescriptionParameter=description?.component;if(componentDescriptionParameter)return componentDescriptionParameter;switch(type){case\"info\":return getInfo(info);case\"notes\":return getNotes(notes);case\"docgen\":case\"auto\":default:return extractComponentDescription(component,{component,...parameters})}},DescriptionContainer=props=>{let{of,type,markdown:markdownProp,children}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");let context=useContext(DocsContext),resolvedOf=useOf(of||\"meta\"),markdown;return type||markdownProp||children?markdown=getDescriptionFromDeprecatedProps(props,context):markdown=getDescriptionFromResolvedOf(resolvedOf),type&&deprecate(`Manually specifying description type is deprecated. See ${DEPRECATION_MIGRATION_LINK}`),markdownProp&&deprecate(`The 'markdown' prop on the Description block is deprecated. See ${DEPRECATION_MIGRATION_LINK}`),children&&deprecate(`The 'children' prop on the Description block is deprecated. See ${DEPRECATION_MIGRATION_LINK}`),markdown?React17.createElement(Markdown2,null,markdown):null};var Wrapper9=styled.div(({theme})=>({width:\"10rem\",\"@media (max-width: 768px)\":{display:\"none\"}})),Content2=styled.div(({theme})=>({position:\"fixed\",bottom:0,top:0,width:\"10rem\",paddingTop:\"4rem\",paddingBottom:\"2rem\",overflowY:\"auto\",fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s2,WebkitFontSmoothing:\"antialiased\",MozOsxFontSmoothing:\"grayscale\",WebkitTapHighlightColor:\"rgba(0, 0, 0, 0)\",WebkitOverflowScrolling:\"touch\",\"& *\":{boxSizing:\"border-box\"},\"& > .toc-wrapper > .toc-list\":{paddingLeft:0,borderLeft:`solid 2px ${theme.color.mediumlight}`,\".toc-list\":{paddingLeft:0,borderLeft:`solid 2px ${theme.color.mediumlight}`,\".toc-list\":{paddingLeft:0,borderLeft:`solid 2px ${theme.color.mediumlight}`}}},\"& .toc-list-item\":{position:\"relative\",listStyleType:\"none\",marginLeft:20,paddingTop:3,paddingBottom:3},\"& .toc-list-item::before\":{content:'\"\"',position:\"absolute\",height:\"100%\",top:0,left:0,transform:\"translateX(calc(-2px - 20px))\",borderLeft:`solid 2px ${theme.color.mediumdark}`,opacity:0,transition:\"opacity 0.2s\"},\"& .toc-list-item.is-active-li::before\":{opacity:1},\"& .toc-list-item > a\":{color:theme.color.defaultText,textDecoration:\"none\"},\"& .toc-list-item.is-active-li > a\":{fontWeight:600,color:theme.color.secondary,textDecoration:\"none\"}})),Heading=styled.p(({theme})=>({fontWeight:600,fontSize:\"0.875em\",color:theme.textColor,textTransform:\"uppercase\",marginBottom:10})),OptionalTitle=({title})=>title===null?null:typeof title==\"string\"?React17.createElement(Heading,null,title):title,TableOfContents=({title,disable,headingSelector,contentsSelector,ignoreSelector,unsafeTocbotOptions})=>(useEffect(()=>{let configuration={tocSelector:\".toc-wrapper\",contentSelector:contentsSelector??\".sbdocs-content\",headingSelector:headingSelector??\"h3\",ignoreSelector:ignoreSelector??\".skip-toc\",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:()=>!1,...unsafeTocbotOptions},timeout=setTimeout(()=>tocbot.init(configuration),100);return ()=>{clearTimeout(timeout),tocbot.destroy();}},[disable]),React17.createElement(React17.Fragment,null,React17.createElement(Wrapper9,null,disable?null:React17.createElement(Content2,null,React17.createElement(OptionalTitle,{title:title||null}),React17.createElement(\"div\",{className:\"toc-wrapper\"})))));var {document:document3,window:globalWindow3}=global,DocsContainer=({context,theme,children})=>{let toc;try{toc=context.resolveOf(\"meta\",[\"meta\"]).preparedMeta.parameters?.docs?.toc;}catch{toc=context?.projectAnnotations?.parameters?.docs?.toc;}return useEffect(()=>{let url;try{if(url=new URL(globalWindow3.parent.location.toString()),url.hash){let element=document3.getElementById(url.hash.substring(1));element&&setTimeout(()=>{scrollToElement(element);},200);}}catch{}}),React17.createElement(DocsContext.Provider,{value:context},React17.createElement(SourceContainer,{channel:context.channel},React17.createElement(ThemeProvider,{theme:ensure(theme)},React17.createElement(DocsPageWrapper,{toc:toc?React17.createElement(TableOfContents,{className:\"sbdocs sbdocs-toc--custom\",...toc}):null},children))))};var STORY_KIND_PATH_SEPARATOR=/\\s*\\/\\s*/,extractTitle=title=>{let groups=title.trim().split(STORY_KIND_PATH_SEPARATOR);return groups&&groups[groups.length-1]||title},Title3=({children})=>{let context=useContext(DocsContext),content=children||extractTitle(context.storyById().title);return content?React17.createElement(Title,{className:\"sbdocs-title sb-unstyled\"},content):null};var Subtitle2=({children})=>{let docsContext=useContext(DocsContext),content=children||docsContext.storyById().parameters?.componentSubtitle;return content?React17.createElement(Subtitle,{className:\"sbdocs-subtitle sb-unstyled\"},content):null};var Subheading=({children,disableAnchor})=>{if(disableAnchor||typeof children!=\"string\")return React17.createElement(H3,null,children);let tagID=children.toLowerCase().replace(/[^a-z0-9]/gi,\"-\");return React17.createElement(HeaderMdx,{as:\"h3\",id:tagID},children)};var DocsStory=({of,expanded=!0,withToolbar:withToolbarProp=!1,__forceInitialArgs=!1,__primary=!1})=>{let{story}=useOf(of||\"story\",[\"story\"]),withToolbar=story.parameters.docs?.canvas?.withToolbar??withToolbarProp;return React17.createElement(Anchor,{storyId:story.id},expanded&&React17.createElement(React17.Fragment,null,React17.createElement(Subheading,null,story.name),React17.createElement(DescriptionContainer,{of})),React17.createElement(Canvas,{of,withToolbar,story:{__forceInitialArgs,__primary},source:{__forceInitialArgs}}))};var Primary=props=>{let{name,of}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");let docsContext=useContext(DocsContext),story;if(of&&(story=useOf(of||\"meta\",[\"meta\"]).csfFile.stories[0]||null),!story){let storyId=name&&docsContext.storyIdByName(name);story=docsContext.storyById(storyId);}return name&&deprecate(dedent2`\\`name\\` prop is deprecated on the Primary block.\n The Primary block should only be used to render the primary story, which is automatically found.\n `),story?React17.createElement(DocsStory,{of:story.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null};var Heading2=({children,disableAnchor,...props})=>{if(disableAnchor||typeof children!=\"string\")return React17.createElement(H2,null,children);let tagID=children.toLowerCase().replace(/[^a-z0-9]/gi,\"-\");return React17.createElement(HeaderMdx,{as:\"h2\",id:tagID,...props},children)};var StyledHeading=styled(Heading2)(({theme})=>({fontSize:`${theme.typography.size.s2-1}px`,fontWeight:theme.typography.weight.bold,lineHeight:\"16px\",letterSpacing:\"0.35em\",textTransform:\"uppercase\",color:theme.textMutedColor,border:0,marginBottom:\"12px\",\"&:first-of-type\":{marginTop:\"56px\"}})),Stories=({title=\"Stories\",includePrimary=!0})=>{let{componentStories}=useContext(DocsContext),stories=componentStories().filter(story=>!story.parameters?.docs?.disable);return includePrimary||(stories=stories.slice(1)),!stories||stories.length===0?null:React17.createElement(React17.Fragment,null,React17.createElement(StyledHeading,null,title),stories.map(story=>story&&React17.createElement(DocsStory,{key:story.id,of:story.moduleExport,expanded:!0,__forceInitialArgs:!0})))};var DocsPage=()=>{let resolvedOf=useOf(\"meta\",[\"meta\"]),{stories}=resolvedOf.csfFile,isSingleStory=Object.keys(stories).length===1;return React17.createElement(React17.Fragment,null,React17.createElement(Title3,null),React17.createElement(Subtitle2,null),React17.createElement(DescriptionContainer,{of:\"meta\"}),isSingleStory?React17.createElement(DescriptionContainer,{of:\"story\"}):null,React17.createElement(Primary,null),React17.createElement(Controls3,null),isSingleStory?null:React17.createElement(Stories,null))};function Docs({context,docsParameter}){let Container=docsParameter.container||DocsContainer,Page=docsParameter.page||DocsPage;return React17.createElement(Container,{context,theme:docsParameter.theme},React17.createElement(Page,null))}var ExternalDocsContext=class extends DocsContext$1{constructor(channel,store,renderStoryToElement,processMetaExports){super(channel,store,renderStoryToElement,[]);this.channel=channel;this.store=store;this.renderStoryToElement=renderStoryToElement;this.processMetaExports=processMetaExports;this.referenceMeta=(metaExports,attach)=>{let csfFile=this.processMetaExports(metaExports);this.referenceCSFFile(csfFile),super.referenceMeta(metaExports,attach);};}};var ConstantMap=class{constructor(prefix){this.prefix=prefix;this.entries=new Map;}get(key){return this.entries.has(key)||this.entries.set(key,`${this.prefix}${this.entries.size}`),this.entries.get(key)}},ExternalPreview=class extends Preview$1{constructor(projectAnnotations){super(new Channel({}));this.projectAnnotations=projectAnnotations;this.importPaths=new ConstantMap(\"./importPath/\");this.titles=new ConstantMap(\"title-\");this.storyIndex={v:4,entries:{}};this.moduleExportsByImportPath={};this.processMetaExports=metaExports=>{let importPath=this.importPaths.get(metaExports);this.moduleExportsByImportPath[importPath]=metaExports;let title=metaExports.default.title||this.titles.get(metaExports),csfFile=this.storyStore.processCSFFileWithCache(metaExports,importPath,title);return Object.values(csfFile.stories).forEach(({id,name})=>{this.storyIndex.entries[id]={id,importPath,title,name,type:\"story\"};}),this.onStoriesChanged({storyIndex:this.storyIndex}),csfFile};this.docsContext=()=>new ExternalDocsContext(this.channel,this.storyStore,this.renderStoryToElement.bind(this),this.processMetaExports.bind(this));this.initialize({getStoryIndex:()=>this.storyIndex,importFn:path=>Promise.resolve(this.moduleExportsByImportPath[path]),getProjectAnnotations:()=>composeConfigs([{parameters:{docs:{story:{inline:!0}}}},this.projectAnnotations])});}};function usePreview(projectAnnotations){let previewRef=useRef();return previewRef.current||(previewRef.current=new ExternalPreview(projectAnnotations)),previewRef.current}function ExternalDocs({projectAnnotationsList,children}){let projectAnnotations=composeConfigs(projectAnnotationsList),preview2=usePreview(projectAnnotations),docsParameter={...projectAnnotations.parameters?.docs,page:()=>children};return React17.createElement(Docs,{docsParameter,context:preview2.docsContext()})}var preview,ExternalDocsContainer=({projectAnnotations,children})=>(preview||(preview=new ExternalPreview(projectAnnotations)),React17.createElement(DocsContext.Provider,{value:preview.docsContext()},React17.createElement(ThemeProvider,{theme:ensure(themes.light)},children)));var Meta=({of})=>{let context=useContext(DocsContext);of&&context.referenceMeta(of,!0);try{let primary=context.storyById();return React17.createElement(Anchor,{storyId:primary.id})}catch{return null}};var Unstyled=props=>React17.createElement(\"div\",{...props,className:\"sb-unstyled\"});var Wrapper10=({children})=>React17.createElement(\"div\",{style:{fontFamily:\"sans-serif\"}},children);\n\nexport { AddContext, Anchor, AnchorMdx, ArgTypes, ArgsTable2 as ArgsTable, BooleanControl, Canvas, CodeOrSourceMdx, ColorControl, ColorItem, ColorPalette, ComponentsTable, Controls3 as Controls, DateControl, DescriptionContainer as Description, DescriptionType, Docs, DocsContainer, DocsContext, DocsPage, DocsStory, ExternalDocs, ExternalDocsContainer, FilesControl, HeaderMdx, HeadersMdx, Heading2 as Heading, IconGallery, IconItem, Markdown2 as Markdown, Meta, NumberControl, ObjectControl, OptionsControl, PRIMARY_STORY, Primary, ArgsTable as PureArgsTable, RangeControl, Source2 as Source, SourceContainer, SourceContext, SourceState, Stories, Story2 as Story, StoryTable, Subheading, Subtitle2 as Subtitle, TextControl, Title3 as Title, Typeset, UNKNOWN_ARGS_HASH, Unstyled, Wrapper10 as Wrapper, anchorBlockIdFromId, argsHash, assertIsFn, extractComponentArgTypes2 as extractComponentArgTypes, extractTitle, format, formatDate, formatTime, getComponent, getStoryId2 as getStoryId, getStoryProps, parse2 as parse, parseDate, parseTime, useOf, useSourceProps };\n","import { __commonJS } from './chunk-JRLSWQMA.mjs';\n\nvar require_markdown=__commonJS({\"../../node_modules/refractor/lang/markdown.js\"(exports,module){module.exports=markdown;markdown.displayName=\"markdown\";markdown.aliases=[\"md\"];function markdown(Prism){(function(Prism2){var inner=/(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))/.source;function createInline(pattern){return pattern=pattern.replace(//g,function(){return inner}),RegExp(/((?:^|[^\\\\])(?:\\\\{2})*)/.source+\"(?:\"+pattern+\")\")}var tableCell=/(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+/.source,tableRow=/\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))/.source.replace(/__/g,function(){return tableCell}),tableLine=/\\|?[ \\t]*:?-{3,}:?[ \\t]*(?:\\|[ \\t]*:?-{3,}:?[ \\t]*)+\\|?(?:\\n|\\r\\n?)/.source;Prism2.languages.markdown=Prism2.languages.extend(\"markup\",{}),Prism2.languages.insertBefore(\"markdown\",\"prolog\",{\"front-matter-block\":{pattern:/(^(?:\\s*[\\r\\n])?)---(?!.)[\\s\\S]*?[\\r\\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,\"front-matter\":{pattern:/\\S+(?:\\s+\\S+)*/,alias:[\"yaml\",\"language-yaml\"],inside:Prism2.languages.yaml}}},blockquote:{pattern:/^>(?:[\\t ]*>)*/m,alias:\"punctuation\"},table:{pattern:RegExp(\"^\"+tableRow+tableLine+\"(?:\"+tableRow+\")*\",\"m\"),inside:{\"table-data-rows\":{pattern:RegExp(\"^(\"+tableRow+tableLine+\")(?:\"+tableRow+\")*$\"),lookbehind:!0,inside:{\"table-data\":{pattern:RegExp(tableCell),inside:Prism2.languages.markdown},punctuation:/\\|/}},\"table-line\":{pattern:RegExp(\"^(\"+tableRow+\")\"+tableLine+\"$\"),lookbehind:!0,inside:{punctuation:/\\||:?-{3,}:?/}},\"table-header-row\":{pattern:RegExp(\"^\"+tableRow+\"$\"),inside:{\"table-header\":{pattern:RegExp(tableCell),alias:\"important\",inside:Prism2.languages.markdown},punctuation:/\\|/}}}},code:[{pattern:/((?:^|\\n)[ \\t]*\\n|(?:^|\\r\\n?)[ \\t]*\\r\\n?)(?: {4}|\\t).+(?:(?:\\n|\\r\\n?)(?: {4}|\\t).+)*/,lookbehind:!0,alias:\"keyword\"},{pattern:/^```[\\s\\S]*?^```$/m,greedy:!0,inside:{\"code-block\":{pattern:/^(```.*(?:\\n|\\r\\n?))[\\s\\S]+?(?=(?:\\n|\\r\\n?)^```$)/m,lookbehind:!0},\"code-language\":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\\S.*(?:\\n|\\r\\n?)(?:==+|--+)(?=[ \\t]*$)/m,alias:\"important\",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\\s*)#.+/m,lookbehind:!0,alias:\"important\",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\\s*)([*-])(?:[\\t ]*\\2){2,}(?=\\s*$)/m,lookbehind:!0,alias:\"punctuation\"},list:{pattern:/(^\\s*)(?:[*+-]|\\d+\\.)(?=[\\t ].)/m,lookbehind:!0,alias:\"punctuation\"},\"url-reference\":{pattern:/!?\\[[^\\]]+\\]:[\\t ]+(?:\\S+|<(?:\\\\.|[^>\\\\])+>)(?:[\\t ]+(?:\"(?:\\\\.|[^\"\\\\])*\"|'(?:\\\\.|[^'\\\\])*'|\\((?:\\\\.|[^)\\\\])*\\)))?/,inside:{variable:{pattern:/^(!?\\[)[^\\]]+/,lookbehind:!0},string:/(?:\"(?:\\\\.|[^\"\\\\])*\"|'(?:\\\\.|[^'\\\\])*'|\\((?:\\\\.|[^)\\\\])*\\))$/,punctuation:/^[\\[\\]!:]|[<>]/},alias:\"url\"},bold:{pattern:createInline(/\\b__(?:(?!_)|_(?:(?!_))+_)+__\\b|\\*\\*(?:(?!\\*)|\\*(?:(?!\\*))+\\*)+\\*\\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\\s\\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\\*\\*|__/}},italic:{pattern:createInline(/\\b_(?:(?!_)|__(?:(?!_))+__)+_\\b|\\*(?:(?!\\*)|\\*\\*(?:(?!\\*))+\\*\\*)+\\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\\s\\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:createInline(/(~~?)(?:(?!~))+\\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\\s\\S]+(?=\\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},\"code-snippet\":{pattern:/(^|[^\\\\`])(?:``[^`\\r\\n]+(?:`[^`\\r\\n]+)*``(?!`)|`[^`\\r\\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:[\"code\",\"keyword\"]},url:{pattern:createInline(/!?\\[(?:(?!\\]))+\\](?:\\([^\\s)]+(?:[\\t ]+\"(?:\\\\.|[^\"\\\\])*\")?\\)|[ \\t]?\\[(?:(?!\\]))+\\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\\[)[^\\]]+(?=\\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\\][ \\t]?\\[)[^\\]]+(?=\\]$)/,lookbehind:!0},url:{pattern:/(^\\]\\()[^\\s)]+/,lookbehind:!0},string:{pattern:/(^[ \\t]+)\"(?:\\\\.|[^\"\\\\])*\"(?=\\)$)/,lookbehind:!0}}}}),[\"url\",\"bold\",\"italic\",\"strike\"].forEach(function(token){[\"url\",\"bold\",\"italic\",\"strike\",\"code-snippet\"].forEach(function(inside){token!==inside&&(Prism2.languages.markdown[token].inside.content.inside[inside]=Prism2.languages.markdown[inside]);});}),Prism2.hooks.add(\"after-tokenize\",function(env){if(env.language!==\"markdown\"&&env.language!==\"md\")return;function walkTokens(tokens){if(!(!tokens||typeof tokens==\"string\"))for(var i=0,l=tokens.length;i\",quot:'\"'},fromCodePoint=String.fromCodePoint||String.fromCharCode;function textContent(html){var text=html.replace(tagPattern,\"\");return text=text.replace(/&(\\w{1,8}|#x?[\\da-f]{1,8});/gi,function(m,code){if(code=code.toLowerCase(),code[0]===\"#\"){var value;return code[1]===\"x\"?value=parseInt(code.slice(2),16):value=Number(code.slice(1)),fromCodePoint(value)}else {var known=KNOWN_ENTITY_NAMES[code];return known||m}}),text}Prism2.languages.md=Prism2.languages.markdown;})(Prism);}}});\n\nexport { require_markdown };\n","import { __commonJS } from './chunk-JRLSWQMA.mjs';\n\nvar require_yaml=__commonJS({\"../../node_modules/refractor/lang/yaml.js\"(exports,module){module.exports=yaml;yaml.displayName=\"yaml\";yaml.aliases=[\"yml\"];function yaml(Prism){(function(Prism2){var anchorOrAlias=/[*&][^\\s[\\]{},]+/,tag=/!(?:<[\\w\\-%#;/?:@&=+$,.!~*'()[\\]]+>|(?:[a-zA-Z\\d-]*!)?[\\w\\-%#;/?:@&=+$.~*'()]+)?/,properties=\"(?:\"+tag.source+\"(?:[ \t]+\"+anchorOrAlias.source+\")?|\"+anchorOrAlias.source+\"(?:[ \t]+\"+tag.source+\")?)\",plainKey=/(?:[^\\s\\x00-\\x08\\x0e-\\x1f!\"#%&'*,\\-:>?@[\\]`{|}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]|[?:-])(?:[ \\t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return /[^\\s\\x00-\\x08\\x0e-\\x1f,[\\]{}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]/.source}),string=/\"(?:[^\"\\\\\\r\\n]|\\\\.)*\"|'(?:[^'\\\\\\r\\n]|\\\\.)*'/.source;function createValuePattern(value,flags){flags=(flags||\"\").replace(/m/g,\"\")+\"m\";var pattern=/([:\\-,[{]\\s*(?:\\s<>[ \\t]+)?)(?:<>)(?=[ \\t]*(?:$|,|\\]|\\}|(?:[\\r\\n]\\s*)?#))/.source.replace(/<>/g,function(){return properties}).replace(/<>/g,function(){return value});return RegExp(pattern,flags)}Prism2.languages.yaml={scalar:{pattern:RegExp(/([\\-:]\\s*(?:\\s<>[ \\t]+)?[|>])[ \\t]*(?:((?:\\r?\\n|\\r)[ \\t]+)\\S[^\\r\\n]*(?:\\2[^\\r\\n]+)*)/.source.replace(/<>/g,function(){return properties})),lookbehind:!0,alias:\"string\"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\\-,[{\\r\\n?])[ \\t]*(?:<>[ \\t]+)?)<>(?=\\s*:\\s)/.source.replace(/<>/g,function(){return properties}).replace(/<>/g,function(){return \"(?:\"+plainKey+\"|\"+string+\")\"})),lookbehind:!0,greedy:!0,alias:\"atrule\"},directive:{pattern:/(^[ \\t]*)%.+/m,lookbehind:!0,alias:\"important\"},datetime:{pattern:createValuePattern(/\\d{4}-\\d\\d?-\\d\\d?(?:[tT]|[ \\t]+)\\d\\d?:\\d{2}:\\d{2}(?:\\.\\d*)?(?:[ \\t]*(?:Z|[-+]\\d\\d?(?::\\d{2})?))?|\\d{4}-\\d{2}-\\d{2}|\\d\\d?:\\d{2}(?::\\d{2}(?:\\.\\d*)?)?/.source),lookbehind:!0,alias:\"number\"},boolean:{pattern:createValuePattern(/false|true/.source,\"i\"),lookbehind:!0,alias:\"important\"},null:{pattern:createValuePattern(/null|~/.source,\"i\"),lookbehind:!0,alias:\"important\"},string:{pattern:createValuePattern(string),lookbehind:!0,greedy:!0},number:{pattern:createValuePattern(/[+-]?(?:0x[\\da-f]+|0o[0-7]+|(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)/.source,\"i\"),lookbehind:!0},tag,important:anchorOrAlias,punctuation:/---|[:[\\]{}\\-,|>?]|\\.\\.\\./},Prism2.languages.yml=Prism2.languages.yaml;})(Prism);}}});\n\nexport { require_yaml };\n","import { __commonJS } from './chunk-JRLSWQMA.mjs';\n\nvar require_typescript=__commonJS({\"../../node_modules/refractor/lang/typescript.js\"(exports,module){module.exports=typescript;typescript.displayName=\"typescript\";typescript.aliases=[\"ts\"];function typescript(Prism){(function(Prism2){Prism2.languages.typescript=Prism2.languages.extend(\"javascript\",{\"class-name\":{pattern:/(\\b(?:class|extends|implements|instanceof|interface|new|type)\\s+)(?!keyof\\b)(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*(?:\\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\\b/}),Prism2.languages.typescript.keyword.push(/\\b(?:abstract|declare|is|keyof|readonly|require)\\b/,/\\b(?:asserts|infer|interface|module|namespace|type)\\b(?=\\s*(?:[{_$a-zA-Z\\xA0-\\uFFFF]|$))/,/\\btype\\b(?=\\s*(?:[\\{*]|$))/),delete Prism2.languages.typescript.parameter,delete Prism2.languages.typescript[\"literal-property\"];var typeInside=Prism2.languages.extend(\"typescript\",{});delete typeInside[\"class-name\"],Prism2.languages.typescript[\"class-name\"].inside=typeInside,Prism2.languages.insertBefore(\"typescript\",\"function\",{decorator:{pattern:/@[$\\w\\xA0-\\uFFFF]+/,inside:{at:{pattern:/^@/,alias:\"operator\"},function:/^[\\s\\S]+/}},\"generic-function\":{pattern:/#?(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*\\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\\s*\\()/,greedy:!0,inside:{function:/^#?(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*/,generic:{pattern:/<[\\s\\S]+/,alias:\"class-name\",inside:typeInside}}}}),Prism2.languages.ts=Prism2.languages.typescript;})(Prism);}}});\n\nexport { require_typescript };\n","import { __commonJS } from './chunk-JRLSWQMA.mjs';\n\nvar require_jsx=__commonJS({\"../../node_modules/refractor/lang/jsx.js\"(exports,module){module.exports=jsx;jsx.displayName=\"jsx\";jsx.aliases=[];function jsx(Prism){(function(Prism2){var javascript=Prism2.util.clone(Prism2.languages.javascript),space=/(?:\\s|\\/\\/.*(?!.)|\\/\\*(?:[^*]|\\*(?!\\/))\\*\\/)/.source,braces=/(?:\\{(?:\\{(?:\\{[^{}]*\\}|[^{}])*\\}|[^{}])*\\})/.source,spread=/(?:\\{*\\.{3}(?:[^{}]|)*\\})/.source;function re(source,flags){return source=source.replace(//g,function(){return space}).replace(//g,function(){return braces}).replace(//g,function(){return spread}),RegExp(source,flags)}spread=re(spread).source,Prism2.languages.jsx=Prism2.languages.extend(\"markup\",javascript),Prism2.languages.jsx.tag.pattern=re(/<\\/?(?:[\\w.:-]+(?:+(?:[\\w.:$-]+(?:=(?:\"(?:\\\\[\\s\\S]|[^\\\\\"])*\"|'(?:\\\\[\\s\\S]|[^\\\\'])*'|[^\\s{'\"/>=]+|))?|))**\\/?)?>/.source),Prism2.languages.jsx.tag.inside.tag.pattern=/^<\\/?[^\\s>\\/]*/,Prism2.languages.jsx.tag.inside[\"attr-value\"].pattern=/=(?!\\{)(?:\"(?:\\\\[\\s\\S]|[^\\\\\"])*\"|'(?:\\\\[\\s\\S]|[^\\\\'])*'|[^\\s'\">]+)/,Prism2.languages.jsx.tag.inside.tag.inside[\"class-name\"]=/^[A-Z]\\w*(?:\\.[A-Z]\\w*)*$/,Prism2.languages.jsx.tag.inside.comment=javascript.comment,Prism2.languages.insertBefore(\"inside\",\"attr-name\",{spread:{pattern:re(//.source),inside:Prism2.languages.jsx}},Prism2.languages.jsx.tag),Prism2.languages.insertBefore(\"inside\",\"special-attr\",{script:{pattern:re(/=/.source),alias:\"language-javascript\",inside:{\"script-punctuation\":{pattern:/^=(?=\\{)/,alias:\"punctuation\"},rest:Prism2.languages.jsx}}},Prism2.languages.jsx.tag);var stringifyToken=function(token){return token?typeof token==\"string\"?token:typeof token.content==\"string\"?token.content:token.content.map(stringifyToken).join(\"\"):\"\"},walkTokens=function(tokens){for(var openedTags=[],i=0;i0&&openedTags[openedTags.length-1].tagName===stringifyToken(token.content[0].content[1])&&openedTags.pop():token.content[token.content.length-1].content===\"/>\"||openedTags.push({tagName:stringifyToken(token.content[0].content[1]),openedBraces:0}):openedTags.length>0&&token.type===\"punctuation\"&&token.content===\"{\"?openedTags[openedTags.length-1].openedBraces++:openedTags.length>0&&openedTags[openedTags.length-1].openedBraces>0&&token.type===\"punctuation\"&&token.content===\"}\"?openedTags[openedTags.length-1].openedBraces--:notTagNorBrace=!0),(notTagNorBrace||typeof token==\"string\")&&openedTags.length>0&&openedTags[openedTags.length-1].openedBraces===0){var plainText=stringifyToken(token);i0&&(typeof tokens[i-1]==\"string\"||tokens[i-1].type===\"plain-text\")&&(plainText=stringifyToken(tokens[i-1])+plainText,tokens.splice(i-1,1),i--),tokens[i]=new Prism2.Token(\"plain-text\",plainText,null,plainText);}token.content&&typeof token.content!=\"string\"&&walkTokens(token.content);}};Prism2.hooks.add(\"after-tokenize\",function(env){env.language!==\"jsx\"&&env.language!==\"tsx\"||walkTokens(env.tokens);});})(Prism);}}});\n\nexport { require_jsx };\n","import { require_typescript } from './chunk-VSDH24NK.mjs';\nimport { require_jsx } from './chunk-HNGDCMHD.mjs';\nimport { __commonJS } from './chunk-JRLSWQMA.mjs';\n\nvar require_tsx=__commonJS({\"../../node_modules/refractor/lang/tsx.js\"(exports,module){var refractorJsx=require_jsx(),refractorTypescript=require_typescript();module.exports=tsx;tsx.displayName=\"tsx\";tsx.aliases=[];function tsx(Prism){Prism.register(refractorJsx),Prism.register(refractorTypescript),function(Prism2){var typescript=Prism2.util.clone(Prism2.languages.typescript);Prism2.languages.tsx=Prism2.languages.extend(\"jsx\",typescript),delete Prism2.languages.tsx.parameter,delete Prism2.languages.tsx[\"literal-property\"];var tag=Prism2.languages.tsx.tag;tag.pattern=RegExp(/(^|[^\\w$]|(?=<\\/))/.source+\"(?:\"+tag.pattern.source+\")\",tag.pattern.flags),tag.lookbehind=!0;}(Prism);}}});\n\nexport { require_tsx };\n","import { __commonJS } from './chunk-JRLSWQMA.mjs';\n\nvar require_clike=__commonJS({\"../../node_modules/refractor/lang/clike.js\"(exports,module){module.exports=clike;clike.displayName=\"clike\";clike.aliases=[];function clike(Prism){Prism.languages.clike={comment:[{pattern:/(^|[^\\\\])\\/\\*[\\s\\S]*?(?:\\*\\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\\\:])\\/\\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/([\"'])(?:\\\\(?:\\r\\n|[\\s\\S])|(?!\\1)[^\\\\\\r\\n])*\\1/,greedy:!0},\"class-name\":{pattern:/(\\b(?:class|extends|implements|instanceof|interface|new|trait)\\s+|\\bcatch\\s+\\()[\\w.\\\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\\\]/}},keyword:/\\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\\b/,boolean:/\\b(?:false|true)\\b/,function:/\\b\\w+(?=\\()/,number:/\\b0x[\\da-f]+\\b|(?:\\b\\d+(?:\\.\\d*)?|\\B\\.\\d+)(?:e[+-]?\\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\\+\\+?|&&?|\\|\\|?|[?*/~^%]/,punctuation:/[{}[\\];(),.:]/};}}});\n\nexport { require_clike };\n","import { __commonJS } from './chunk-JRLSWQMA.mjs';\n\nvar require_javascript=__commonJS({\"../../node_modules/refractor/lang/javascript.js\"(exports,module){module.exports=javascript;javascript.displayName=\"javascript\";javascript.aliases=[\"js\"];function javascript(Prism){Prism.languages.javascript=Prism.languages.extend(\"clike\",{\"class-name\":[Prism.languages.clike[\"class-name\"],{pattern:/(^|[^$\\w\\xA0-\\uFFFF])(?!\\s)[_$A-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*(?=\\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\\})\\s*)catch\\b/,lookbehind:!0},{pattern:/(^|[^.]|\\.\\.\\.\\s*)\\b(?:as|assert(?=\\s*\\{)|async(?=\\s*(?:function\\b|\\(|[$\\w\\xA0-\\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\\s*(?:\\{|$))|for|from(?=\\s*(?:['\"]|$))|function|(?:get|set)(?=\\s*(?:[#\\[$\\w\\xA0-\\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\\b/,lookbehind:!0}],function:/#?(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*(?=\\s*(?:\\.\\s*(?:apply|bind|call)\\s*)?\\()/,number:{pattern:RegExp(/(^|[^\\w$])/.source+\"(?:\"+(/NaN|Infinity/.source+\"|\"+/0[bB][01]+(?:_[01]+)*n?/.source+\"|\"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+\"|\"+/0[xX][\\dA-Fa-f]+(?:_[\\dA-Fa-f]+)*n?/.source+\"|\"+/\\d+(?:_\\d+)*n/.source+\"|\"+/(?:\\d+(?:_\\d+)*(?:\\.(?:\\d+(?:_\\d+)*)?)?|\\.\\d+(?:_\\d+)*)(?:[Ee][+-]?\\d+(?:_\\d+)*)?/.source)+\")\"+/(?![\\w$])/.source),lookbehind:!0},operator:/--|\\+\\+|\\*\\*=?|=>|&&=?|\\|\\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\\.{3}|\\?\\?=?|\\?\\.?|[~:]/}),Prism.languages.javascript[\"class-name\"][0].pattern=/(\\b(?:class|extends|implements|instanceof|interface|new)\\s+)[\\w.\\\\]+/,Prism.languages.insertBefore(\"javascript\",\"keyword\",{regex:{pattern:/((?:^|[^$\\w\\xA0-\\uFFFF.\"'\\])\\s]|\\b(?:return|yield))\\s*)\\/(?:\\[(?:[^\\]\\\\\\r\\n]|\\\\.)*\\]|\\\\.|[^/\\\\\\[\\r\\n])+\\/[dgimyus]{0,7}(?=(?:\\s|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/)*(?:$|[\\r\\n,.;:})\\]]|\\/\\/))/,lookbehind:!0,greedy:!0,inside:{\"regex-source\":{pattern:/^(\\/)[\\s\\S]+(?=\\/[a-z]*$)/,lookbehind:!0,alias:\"language-regex\",inside:Prism.languages.regex},\"regex-delimiter\":/^\\/|\\/$/,\"regex-flags\":/^[a-z]+$/}},\"function-variable\":{pattern:/#?(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*(?=\\s*[=:]\\s*(?:async\\s*)?(?:\\bfunction\\b|(?:\\((?:[^()]|\\([^()]*\\))*\\)|(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*)\\s*=>))/,alias:\"function\"},parameter:[{pattern:/(function(?:\\s+(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*)?\\s*\\(\\s*)(?!\\s)(?:[^()\\s]|\\s+(?![\\s)])|\\([^()]*\\))+(?=\\s*\\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\\w\\xA0-\\uFFFF])(?!\\s)[_$a-z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*(?=\\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\\(\\s*)(?!\\s)(?:[^()\\s]|\\s+(?![\\s)])|\\([^()]*\\))+(?=\\s*\\)\\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\\b|\\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\\w\\xA0-\\uFFFF]))(?:(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*\\s*)\\(\\s*|\\]\\s*\\(\\s*)(?!\\s)(?:[^()\\s]|\\s+(?![\\s)])|\\([^()]*\\))+(?=\\s*\\)\\s*\\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\\b[A-Z](?:[A-Z_]|\\dx?)*\\b/}),Prism.languages.insertBefore(\"javascript\",\"string\",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:\"comment\"},\"template-string\":{pattern:/`(?:\\\\[\\s\\S]|\\$\\{(?:[^{}]|\\{(?:[^{}]|\\{[^}]*\\})*\\})+\\}|(?!\\$\\{)[^\\\\`])*`/,greedy:!0,inside:{\"template-punctuation\":{pattern:/^`|`$/,alias:\"string\"},interpolation:{pattern:/((?:^|[^\\\\])(?:\\\\{2})*)\\$\\{(?:[^{}]|\\{(?:[^{}]|\\{[^}]*\\})*\\})+\\}/,lookbehind:!0,inside:{\"interpolation-punctuation\":{pattern:/^\\$\\{|\\}$/,alias:\"punctuation\"},rest:Prism.languages.javascript}},string:/[\\s\\S]+/}},\"string-property\":{pattern:/((?:^|[,{])[ \\t]*)([\"'])(?:\\\\(?:\\r\\n|[\\s\\S])|(?!\\2)[^\\\\\\r\\n])*\\2(?=\\s*:)/m,lookbehind:!0,greedy:!0,alias:\"property\"}}),Prism.languages.insertBefore(\"javascript\",\"operator\",{\"literal-property\":{pattern:/((?:^|[,{])[ \\t]*)(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*(?=\\s*:)/m,lookbehind:!0,alias:\"property\"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined(\"script\",\"javascript\"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,\"javascript\")),Prism.languages.js=Prism.languages.javascript;}}});\n\nexport { require_javascript };\n","import { __commonJS } from './chunk-JRLSWQMA.mjs';\n\nvar require_css=__commonJS({\"../../node_modules/refractor/lang/css.js\"(exports,module){module.exports=css;css.displayName=\"css\";css.aliases=[];function css(Prism){(function(Prism2){var string=/(?:\"(?:\\\\(?:\\r\\n|[\\s\\S])|[^\"\\\\\\r\\n])*\"|'(?:\\\\(?:\\r\\n|[\\s\\S])|[^'\\\\\\r\\n])*')/;Prism2.languages.css={comment:/\\/\\*[\\s\\S]*?\\*\\//,atrule:{pattern:/@[\\w-](?:[^;{\\s]|\\s+(?![\\s{]))*(?:;|(?=\\s*\\{))/,inside:{rule:/^@[\\w-]+/,\"selector-function-argument\":{pattern:/(\\bselector\\s*\\(\\s*(?![\\s)]))(?:[^()\\s]|\\s+(?![\\s)])|\\((?:[^()]|\\([^()]*\\))*\\))+(?=\\s*\\))/,lookbehind:!0,alias:\"selector\"},keyword:{pattern:/(^|[^\\w-])(?:and|not|only|or)(?![\\w-])/,lookbehind:!0}}},url:{pattern:RegExp(\"\\\\burl\\\\((?:\"+string.source+\"|\"+/(?:[^\\\\\\r\\n()\"']|\\\\[\\s\\S])*/.source+\")\\\\)\",\"i\"),greedy:!0,inside:{function:/^url/i,punctuation:/^\\(|\\)$/,string:{pattern:RegExp(\"^\"+string.source+\"$\"),alias:\"url\"}}},selector:{pattern:RegExp(`(^|[{}\\\\s])[^{}\\\\s](?:[^{};\"'\\\\s]|\\\\s+(?![\\\\s{])|`+string.source+\")*(?=\\\\s*\\\\{)\"),lookbehind:!0},string:{pattern:string,greedy:!0},property:{pattern:/(^|[^-\\w\\xA0-\\uFFFF])(?!\\s)[-_a-z\\xA0-\\uFFFF](?:(?!\\s)[-\\w\\xA0-\\uFFFF])*(?=\\s*:)/i,lookbehind:!0},important:/!important\\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\\()/i,lookbehind:!0},punctuation:/[(){};:,]/},Prism2.languages.css.atrule.inside.rest=Prism2.languages.css;var markup=Prism2.languages.markup;markup&&(markup.tag.addInlined(\"style\",\"css\"),markup.tag.addAttribute(\"style\",\"css\"));})(Prism);}}});\n\nexport { require_css };\n","import { __commonJS } from './chunk-JRLSWQMA.mjs';\n\nvar require_markup=__commonJS({\"../../node_modules/refractor/lang/markup.js\"(exports,module){module.exports=markup;markup.displayName=\"markup\";markup.aliases=[\"html\",\"mathml\",\"svg\",\"xml\",\"ssml\",\"atom\",\"rss\"];function markup(Prism){Prism.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\\?[\\s\\S]+?\\?>/,greedy:!0},doctype:{pattern:/\"'[\\]]|\"[^\"]*\"|'[^']*')+(?:\\[(?:[^<\"'\\]]|\"[^\"]*\"|'[^']*'|<(?!!--)|)*\\]\\s*)?>/i,greedy:!0,inside:{\"internal-subset\":{pattern:/(^[^\\[]*\\[)[\\s\\S]+(?=\\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/\"[^\"]*\"|'[^']*'/,greedy:!0},punctuation:/^$|[[\\]]/,\"doctype-tag\":/^DOCTYPE/i,name:/[^\\s<>'\"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\\/?(?!\\d)[^\\s>\\/=$<%]+(?:\\s(?:\\s*[^\\s>\\/=]+(?:\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))|(?=[\\s/>])))+)?\\s*\\/?>/,greedy:!0,inside:{tag:{pattern:/^<\\/?[^\\s>\\/]+/,inside:{punctuation:/^<\\/?/,namespace:/^[^\\s>\\/:]+:/}},\"special-attr\":[],\"attr-value\":{pattern:/=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:\"attr-equals\"},/\"|'/]}},punctuation:/\\/?>/,\"attr-name\":{pattern:/[^\\s>\\/]+/,inside:{namespace:/^[^\\s>\\/:]+:/}}}},entity:[{pattern:/&[\\da-z]{1,8};/i,alias:\"named-entity\"},/&#x?[\\da-f]{1,8};/i]},Prism.languages.markup.tag.inside[\"attr-value\"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside[\"internal-subset\"].inside=Prism.languages.markup,Prism.hooks.add(\"wrap\",function(env){env.type===\"entity\"&&(env.attributes.title=env.content.value.replace(/&/,\"&\"));}),Object.defineProperty(Prism.languages.markup.tag,\"addInlined\",{value:function(tagName,lang){var includedCdataInside={};includedCdataInside[\"language-\"+lang]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[lang]},includedCdataInside.cdata=/^$/i;var inside={\"included-cdata\":{pattern://i,inside:includedCdataInside}};inside[\"language-\"+lang]={pattern:/[\\s\\S]+/,inside:Prism.languages[lang]};var def={};def[tagName]={pattern:RegExp(/(<__[^>]*>)(?:))*\\]\\]>|(?!)/.source.replace(/__/g,function(){return tagName}),\"i\"),lookbehind:!0,greedy:!0,inside},Prism.languages.insertBefore(\"markup\",\"cdata\",def);}}),Object.defineProperty(Prism.languages.markup.tag,\"addAttribute\",{value:function(attrName,lang){Prism.languages.markup.tag.inside[\"special-attr\"].push({pattern:RegExp(/(^|[\"'\\s])/.source+\"(?:\"+attrName+\")\"+/\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))/.source,\"i\"),lookbehind:!0,inside:{\"attr-name\":/^[^\\s=]+/,\"attr-value\":{pattern:/=[\\s\\S]+/,inside:{value:{pattern:/(^=\\s*([\"']|(?![\"'])))\\S[\\s\\S]*(?=\\2$)/,lookbehind:!0,alias:[lang,\"language-\"+lang],inside:Prism.languages[lang]},punctuation:[{pattern:/^=/,alias:\"attr-equals\"},/\"|'/]}}}});}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend(\"markup\",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml;}}});\n\nexport { require_markup };\n","import { require_clike } from './chunk-UDRSICRZ.mjs';\nimport { require_javascript } from './chunk-J6EJ35VB.mjs';\nimport { require_css } from './chunk-CW4JFC2I.mjs';\nimport { require_markup } from './chunk-DHRX2IL7.mjs';\nimport { __commonJS } from './chunk-JRLSWQMA.mjs';\n\nvar require_immutable=__commonJS({\"../../node_modules/xtend/immutable.js\"(exports,module){module.exports=extend;var hasOwnProperty=Object.prototype.hasOwnProperty;function extend(){for(var target={},i=0;i4&&normal.slice(0,4)===data&&valid.test(value)&&(value.charAt(4)===\"-\"?prop=datasetToProperty(value):value=datasetToAttribute(value),Type=DefinedInfo),new Type(prop,value))}function datasetToProperty(attribute){var value=attribute.slice(5).replace(dash,camelcase);return data+value.charAt(0).toUpperCase()+value.slice(1)}function datasetToAttribute(property){var value=property.slice(4);return dash.test(value)?property:(value=value.replace(cap,kebab),value.charAt(0)!==\"-\"&&(value=\"-\"+value),data+value)}function kebab($0){return \"-\"+$0.toLowerCase()}function camelcase($0){return $0.charAt(1).toUpperCase()}}});var require_hast_util_parse_selector=__commonJS({\"../../node_modules/hast-util-parse-selector/index.js\"(exports,module){module.exports=parse;var search=/[#.]/g;function parse(selector,defaultTagName){for(var value=selector||\"\",name=defaultTagName||\"div\",props={},start=0,subvalue,previous,match;start\",Iacute:\"\\xCD\",Icirc:\"\\xCE\",Igrave:\"\\xCC\",Iuml:\"\\xCF\",LT:\"<\",Ntilde:\"\\xD1\",Oacute:\"\\xD3\",Ocirc:\"\\xD4\",Ograve:\"\\xD2\",Oslash:\"\\xD8\",Otilde:\"\\xD5\",Ouml:\"\\xD6\",QUOT:'\"',REG:\"\\xAE\",THORN:\"\\xDE\",Uacute:\"\\xDA\",Ucirc:\"\\xDB\",Ugrave:\"\\xD9\",Uuml:\"\\xDC\",Yacute:\"\\xDD\",aacute:\"\\xE1\",acirc:\"\\xE2\",acute:\"\\xB4\",aelig:\"\\xE6\",agrave:\"\\xE0\",amp:\"&\",aring:\"\\xE5\",atilde:\"\\xE3\",auml:\"\\xE4\",brvbar:\"\\xA6\",ccedil:\"\\xE7\",cedil:\"\\xB8\",cent:\"\\xA2\",copy:\"\\xA9\",curren:\"\\xA4\",deg:\"\\xB0\",divide:\"\\xF7\",eacute:\"\\xE9\",ecirc:\"\\xEA\",egrave:\"\\xE8\",eth:\"\\xF0\",euml:\"\\xEB\",frac12:\"\\xBD\",frac14:\"\\xBC\",frac34:\"\\xBE\",gt:\">\",iacute:\"\\xED\",icirc:\"\\xEE\",iexcl:\"\\xA1\",igrave:\"\\xEC\",iquest:\"\\xBF\",iuml:\"\\xEF\",laquo:\"\\xAB\",lt:\"<\",macr:\"\\xAF\",micro:\"\\xB5\",middot:\"\\xB7\",nbsp:\"\\xA0\",not:\"\\xAC\",ntilde:\"\\xF1\",oacute:\"\\xF3\",ocirc:\"\\xF4\",ograve:\"\\xF2\",ordf:\"\\xAA\",ordm:\"\\xBA\",oslash:\"\\xF8\",otilde:\"\\xF5\",ouml:\"\\xF6\",para:\"\\xB6\",plusmn:\"\\xB1\",pound:\"\\xA3\",quot:'\"',raquo:\"\\xBB\",reg:\"\\xAE\",sect:\"\\xA7\",shy:\"\\xAD\",sup1:\"\\xB9\",sup2:\"\\xB2\",sup3:\"\\xB3\",szlig:\"\\xDF\",thorn:\"\\xFE\",times:\"\\xD7\",uacute:\"\\xFA\",ucirc:\"\\xFB\",ugrave:\"\\xF9\",uml:\"\\xA8\",uuml:\"\\xFC\",yacute:\"\\xFD\",yen:\"\\xA5\",yuml:\"\\xFF\"};}});var require_character_reference_invalid=__commonJS({\"../../node_modules/character-reference-invalid/index.json\"(exports,module){module.exports={\"0\":\"\\uFFFD\",\"128\":\"\\u20AC\",\"130\":\"\\u201A\",\"131\":\"\\u0192\",\"132\":\"\\u201E\",\"133\":\"\\u2026\",\"134\":\"\\u2020\",\"135\":\"\\u2021\",\"136\":\"\\u02C6\",\"137\":\"\\u2030\",\"138\":\"\\u0160\",\"139\":\"\\u2039\",\"140\":\"\\u0152\",\"142\":\"\\u017D\",\"145\":\"\\u2018\",\"146\":\"\\u2019\",\"147\":\"\\u201C\",\"148\":\"\\u201D\",\"149\":\"\\u2022\",\"150\":\"\\u2013\",\"151\":\"\\u2014\",\"152\":\"\\u02DC\",\"153\":\"\\u2122\",\"154\":\"\\u0161\",\"155\":\"\\u203A\",\"156\":\"\\u0153\",\"158\":\"\\u017E\",\"159\":\"\\u0178\"};}});var require_is_decimal=__commonJS({\"../../node_modules/is-decimal/index.js\"(exports,module){module.exports=decimal;function decimal(character){var code=typeof character==\"string\"?character.charCodeAt(0):character;return code>=48&&code<=57}}});var require_is_hexadecimal=__commonJS({\"../../node_modules/is-hexadecimal/index.js\"(exports,module){module.exports=hexadecimal;function hexadecimal(character){var code=typeof character==\"string\"?character.charCodeAt(0):character;return code>=97&&code<=102||code>=65&&code<=70||code>=48&&code<=57}}});var require_is_alphabetical=__commonJS({\"../../node_modules/is-alphabetical/index.js\"(exports,module){module.exports=alphabetical;function alphabetical(character){var code=typeof character==\"string\"?character.charCodeAt(0):character;return code>=97&&code<=122||code>=65&&code<=90}}});var require_is_alphanumerical=__commonJS({\"../../node_modules/is-alphanumerical/index.js\"(exports,module){var alphabetical=require_is_alphabetical(),decimal=require_is_decimal();module.exports=alphanumerical;function alphanumerical(character){return alphabetical(character)||decimal(character)}}});var require_character_entities=__commonJS({\"../../node_modules/parse-entities/node_modules/character-entities/index.json\"(exports,module){module.exports={AEli:\"\\xC6\",AElig:\"\\xC6\",AM:\"&\",AMP:\"&\",Aacut:\"\\xC1\",Aacute:\"\\xC1\",Abreve:\"\\u0102\",Acir:\"\\xC2\",Acirc:\"\\xC2\",Acy:\"\\u0410\",Afr:\"\\u{1D504}\",Agrav:\"\\xC0\",Agrave:\"\\xC0\",Alpha:\"\\u0391\",Amacr:\"\\u0100\",And:\"\\u2A53\",Aogon:\"\\u0104\",Aopf:\"\\u{1D538}\",ApplyFunction:\"\\u2061\",Arin:\"\\xC5\",Aring:\"\\xC5\",Ascr:\"\\u{1D49C}\",Assign:\"\\u2254\",Atild:\"\\xC3\",Atilde:\"\\xC3\",Aum:\"\\xC4\",Auml:\"\\xC4\",Backslash:\"\\u2216\",Barv:\"\\u2AE7\",Barwed:\"\\u2306\",Bcy:\"\\u0411\",Because:\"\\u2235\",Bernoullis:\"\\u212C\",Beta:\"\\u0392\",Bfr:\"\\u{1D505}\",Bopf:\"\\u{1D539}\",Breve:\"\\u02D8\",Bscr:\"\\u212C\",Bumpeq:\"\\u224E\",CHcy:\"\\u0427\",COP:\"\\xA9\",COPY:\"\\xA9\",Cacute:\"\\u0106\",Cap:\"\\u22D2\",CapitalDifferentialD:\"\\u2145\",Cayleys:\"\\u212D\",Ccaron:\"\\u010C\",Ccedi:\"\\xC7\",Ccedil:\"\\xC7\",Ccirc:\"\\u0108\",Cconint:\"\\u2230\",Cdot:\"\\u010A\",Cedilla:\"\\xB8\",CenterDot:\"\\xB7\",Cfr:\"\\u212D\",Chi:\"\\u03A7\",CircleDot:\"\\u2299\",CircleMinus:\"\\u2296\",CirclePlus:\"\\u2295\",CircleTimes:\"\\u2297\",ClockwiseContourIntegral:\"\\u2232\",CloseCurlyDoubleQuote:\"\\u201D\",CloseCurlyQuote:\"\\u2019\",Colon:\"\\u2237\",Colone:\"\\u2A74\",Congruent:\"\\u2261\",Conint:\"\\u222F\",ContourIntegral:\"\\u222E\",Copf:\"\\u2102\",Coproduct:\"\\u2210\",CounterClockwiseContourIntegral:\"\\u2233\",Cross:\"\\u2A2F\",Cscr:\"\\u{1D49E}\",Cup:\"\\u22D3\",CupCap:\"\\u224D\",DD:\"\\u2145\",DDotrahd:\"\\u2911\",DJcy:\"\\u0402\",DScy:\"\\u0405\",DZcy:\"\\u040F\",Dagger:\"\\u2021\",Darr:\"\\u21A1\",Dashv:\"\\u2AE4\",Dcaron:\"\\u010E\",Dcy:\"\\u0414\",Del:\"\\u2207\",Delta:\"\\u0394\",Dfr:\"\\u{1D507}\",DiacriticalAcute:\"\\xB4\",DiacriticalDot:\"\\u02D9\",DiacriticalDoubleAcute:\"\\u02DD\",DiacriticalGrave:\"`\",DiacriticalTilde:\"\\u02DC\",Diamond:\"\\u22C4\",DifferentialD:\"\\u2146\",Dopf:\"\\u{1D53B}\",Dot:\"\\xA8\",DotDot:\"\\u20DC\",DotEqual:\"\\u2250\",DoubleContourIntegral:\"\\u222F\",DoubleDot:\"\\xA8\",DoubleDownArrow:\"\\u21D3\",DoubleLeftArrow:\"\\u21D0\",DoubleLeftRightArrow:\"\\u21D4\",DoubleLeftTee:\"\\u2AE4\",DoubleLongLeftArrow:\"\\u27F8\",DoubleLongLeftRightArrow:\"\\u27FA\",DoubleLongRightArrow:\"\\u27F9\",DoubleRightArrow:\"\\u21D2\",DoubleRightTee:\"\\u22A8\",DoubleUpArrow:\"\\u21D1\",DoubleUpDownArrow:\"\\u21D5\",DoubleVerticalBar:\"\\u2225\",DownArrow:\"\\u2193\",DownArrowBar:\"\\u2913\",DownArrowUpArrow:\"\\u21F5\",DownBreve:\"\\u0311\",DownLeftRightVector:\"\\u2950\",DownLeftTeeVector:\"\\u295E\",DownLeftVector:\"\\u21BD\",DownLeftVectorBar:\"\\u2956\",DownRightTeeVector:\"\\u295F\",DownRightVector:\"\\u21C1\",DownRightVectorBar:\"\\u2957\",DownTee:\"\\u22A4\",DownTeeArrow:\"\\u21A7\",Downarrow:\"\\u21D3\",Dscr:\"\\u{1D49F}\",Dstrok:\"\\u0110\",ENG:\"\\u014A\",ET:\"\\xD0\",ETH:\"\\xD0\",Eacut:\"\\xC9\",Eacute:\"\\xC9\",Ecaron:\"\\u011A\",Ecir:\"\\xCA\",Ecirc:\"\\xCA\",Ecy:\"\\u042D\",Edot:\"\\u0116\",Efr:\"\\u{1D508}\",Egrav:\"\\xC8\",Egrave:\"\\xC8\",Element:\"\\u2208\",Emacr:\"\\u0112\",EmptySmallSquare:\"\\u25FB\",EmptyVerySmallSquare:\"\\u25AB\",Eogon:\"\\u0118\",Eopf:\"\\u{1D53C}\",Epsilon:\"\\u0395\",Equal:\"\\u2A75\",EqualTilde:\"\\u2242\",Equilibrium:\"\\u21CC\",Escr:\"\\u2130\",Esim:\"\\u2A73\",Eta:\"\\u0397\",Eum:\"\\xCB\",Euml:\"\\xCB\",Exists:\"\\u2203\",ExponentialE:\"\\u2147\",Fcy:\"\\u0424\",Ffr:\"\\u{1D509}\",FilledSmallSquare:\"\\u25FC\",FilledVerySmallSquare:\"\\u25AA\",Fopf:\"\\u{1D53D}\",ForAll:\"\\u2200\",Fouriertrf:\"\\u2131\",Fscr:\"\\u2131\",GJcy:\"\\u0403\",G:\">\",GT:\">\",Gamma:\"\\u0393\",Gammad:\"\\u03DC\",Gbreve:\"\\u011E\",Gcedil:\"\\u0122\",Gcirc:\"\\u011C\",Gcy:\"\\u0413\",Gdot:\"\\u0120\",Gfr:\"\\u{1D50A}\",Gg:\"\\u22D9\",Gopf:\"\\u{1D53E}\",GreaterEqual:\"\\u2265\",GreaterEqualLess:\"\\u22DB\",GreaterFullEqual:\"\\u2267\",GreaterGreater:\"\\u2AA2\",GreaterLess:\"\\u2277\",GreaterSlantEqual:\"\\u2A7E\",GreaterTilde:\"\\u2273\",Gscr:\"\\u{1D4A2}\",Gt:\"\\u226B\",HARDcy:\"\\u042A\",Hacek:\"\\u02C7\",Hat:\"^\",Hcirc:\"\\u0124\",Hfr:\"\\u210C\",HilbertSpace:\"\\u210B\",Hopf:\"\\u210D\",HorizontalLine:\"\\u2500\",Hscr:\"\\u210B\",Hstrok:\"\\u0126\",HumpDownHump:\"\\u224E\",HumpEqual:\"\\u224F\",IEcy:\"\\u0415\",IJlig:\"\\u0132\",IOcy:\"\\u0401\",Iacut:\"\\xCD\",Iacute:\"\\xCD\",Icir:\"\\xCE\",Icirc:\"\\xCE\",Icy:\"\\u0418\",Idot:\"\\u0130\",Ifr:\"\\u2111\",Igrav:\"\\xCC\",Igrave:\"\\xCC\",Im:\"\\u2111\",Imacr:\"\\u012A\",ImaginaryI:\"\\u2148\",Implies:\"\\u21D2\",Int:\"\\u222C\",Integral:\"\\u222B\",Intersection:\"\\u22C2\",InvisibleComma:\"\\u2063\",InvisibleTimes:\"\\u2062\",Iogon:\"\\u012E\",Iopf:\"\\u{1D540}\",Iota:\"\\u0399\",Iscr:\"\\u2110\",Itilde:\"\\u0128\",Iukcy:\"\\u0406\",Ium:\"\\xCF\",Iuml:\"\\xCF\",Jcirc:\"\\u0134\",Jcy:\"\\u0419\",Jfr:\"\\u{1D50D}\",Jopf:\"\\u{1D541}\",Jscr:\"\\u{1D4A5}\",Jsercy:\"\\u0408\",Jukcy:\"\\u0404\",KHcy:\"\\u0425\",KJcy:\"\\u040C\",Kappa:\"\\u039A\",Kcedil:\"\\u0136\",Kcy:\"\\u041A\",Kfr:\"\\u{1D50E}\",Kopf:\"\\u{1D542}\",Kscr:\"\\u{1D4A6}\",LJcy:\"\\u0409\",L:\"<\",LT:\"<\",Lacute:\"\\u0139\",Lambda:\"\\u039B\",Lang:\"\\u27EA\",Laplacetrf:\"\\u2112\",Larr:\"\\u219E\",Lcaron:\"\\u013D\",Lcedil:\"\\u013B\",Lcy:\"\\u041B\",LeftAngleBracket:\"\\u27E8\",LeftArrow:\"\\u2190\",LeftArrowBar:\"\\u21E4\",LeftArrowRightArrow:\"\\u21C6\",LeftCeiling:\"\\u2308\",LeftDoubleBracket:\"\\u27E6\",LeftDownTeeVector:\"\\u2961\",LeftDownVector:\"\\u21C3\",LeftDownVectorBar:\"\\u2959\",LeftFloor:\"\\u230A\",LeftRightArrow:\"\\u2194\",LeftRightVector:\"\\u294E\",LeftTee:\"\\u22A3\",LeftTeeArrow:\"\\u21A4\",LeftTeeVector:\"\\u295A\",LeftTriangle:\"\\u22B2\",LeftTriangleBar:\"\\u29CF\",LeftTriangleEqual:\"\\u22B4\",LeftUpDownVector:\"\\u2951\",LeftUpTeeVector:\"\\u2960\",LeftUpVector:\"\\u21BF\",LeftUpVectorBar:\"\\u2958\",LeftVector:\"\\u21BC\",LeftVectorBar:\"\\u2952\",Leftarrow:\"\\u21D0\",Leftrightarrow:\"\\u21D4\",LessEqualGreater:\"\\u22DA\",LessFullEqual:\"\\u2266\",LessGreater:\"\\u2276\",LessLess:\"\\u2AA1\",LessSlantEqual:\"\\u2A7D\",LessTilde:\"\\u2272\",Lfr:\"\\u{1D50F}\",Ll:\"\\u22D8\",Lleftarrow:\"\\u21DA\",Lmidot:\"\\u013F\",LongLeftArrow:\"\\u27F5\",LongLeftRightArrow:\"\\u27F7\",LongRightArrow:\"\\u27F6\",Longleftarrow:\"\\u27F8\",Longleftrightarrow:\"\\u27FA\",Longrightarrow:\"\\u27F9\",Lopf:\"\\u{1D543}\",LowerLeftArrow:\"\\u2199\",LowerRightArrow:\"\\u2198\",Lscr:\"\\u2112\",Lsh:\"\\u21B0\",Lstrok:\"\\u0141\",Lt:\"\\u226A\",Map:\"\\u2905\",Mcy:\"\\u041C\",MediumSpace:\"\\u205F\",Mellintrf:\"\\u2133\",Mfr:\"\\u{1D510}\",MinusPlus:\"\\u2213\",Mopf:\"\\u{1D544}\",Mscr:\"\\u2133\",Mu:\"\\u039C\",NJcy:\"\\u040A\",Nacute:\"\\u0143\",Ncaron:\"\\u0147\",Ncedil:\"\\u0145\",Ncy:\"\\u041D\",NegativeMediumSpace:\"\\u200B\",NegativeThickSpace:\"\\u200B\",NegativeThinSpace:\"\\u200B\",NegativeVeryThinSpace:\"\\u200B\",NestedGreaterGreater:\"\\u226B\",NestedLessLess:\"\\u226A\",NewLine:`\n`,Nfr:\"\\u{1D511}\",NoBreak:\"\\u2060\",NonBreakingSpace:\"\\xA0\",Nopf:\"\\u2115\",Not:\"\\u2AEC\",NotCongruent:\"\\u2262\",NotCupCap:\"\\u226D\",NotDoubleVerticalBar:\"\\u2226\",NotElement:\"\\u2209\",NotEqual:\"\\u2260\",NotEqualTilde:\"\\u2242\\u0338\",NotExists:\"\\u2204\",NotGreater:\"\\u226F\",NotGreaterEqual:\"\\u2271\",NotGreaterFullEqual:\"\\u2267\\u0338\",NotGreaterGreater:\"\\u226B\\u0338\",NotGreaterLess:\"\\u2279\",NotGreaterSlantEqual:\"\\u2A7E\\u0338\",NotGreaterTilde:\"\\u2275\",NotHumpDownHump:\"\\u224E\\u0338\",NotHumpEqual:\"\\u224F\\u0338\",NotLeftTriangle:\"\\u22EA\",NotLeftTriangleBar:\"\\u29CF\\u0338\",NotLeftTriangleEqual:\"\\u22EC\",NotLess:\"\\u226E\",NotLessEqual:\"\\u2270\",NotLessGreater:\"\\u2278\",NotLessLess:\"\\u226A\\u0338\",NotLessSlantEqual:\"\\u2A7D\\u0338\",NotLessTilde:\"\\u2274\",NotNestedGreaterGreater:\"\\u2AA2\\u0338\",NotNestedLessLess:\"\\u2AA1\\u0338\",NotPrecedes:\"\\u2280\",NotPrecedesEqual:\"\\u2AAF\\u0338\",NotPrecedesSlantEqual:\"\\u22E0\",NotReverseElement:\"\\u220C\",NotRightTriangle:\"\\u22EB\",NotRightTriangleBar:\"\\u29D0\\u0338\",NotRightTriangleEqual:\"\\u22ED\",NotSquareSubset:\"\\u228F\\u0338\",NotSquareSubsetEqual:\"\\u22E2\",NotSquareSuperset:\"\\u2290\\u0338\",NotSquareSupersetEqual:\"\\u22E3\",NotSubset:\"\\u2282\\u20D2\",NotSubsetEqual:\"\\u2288\",NotSucceeds:\"\\u2281\",NotSucceedsEqual:\"\\u2AB0\\u0338\",NotSucceedsSlantEqual:\"\\u22E1\",NotSucceedsTilde:\"\\u227F\\u0338\",NotSuperset:\"\\u2283\\u20D2\",NotSupersetEqual:\"\\u2289\",NotTilde:\"\\u2241\",NotTildeEqual:\"\\u2244\",NotTildeFullEqual:\"\\u2247\",NotTildeTilde:\"\\u2249\",NotVerticalBar:\"\\u2224\",Nscr:\"\\u{1D4A9}\",Ntild:\"\\xD1\",Ntilde:\"\\xD1\",Nu:\"\\u039D\",OElig:\"\\u0152\",Oacut:\"\\xD3\",Oacute:\"\\xD3\",Ocir:\"\\xD4\",Ocirc:\"\\xD4\",Ocy:\"\\u041E\",Odblac:\"\\u0150\",Ofr:\"\\u{1D512}\",Ograv:\"\\xD2\",Ograve:\"\\xD2\",Omacr:\"\\u014C\",Omega:\"\\u03A9\",Omicron:\"\\u039F\",Oopf:\"\\u{1D546}\",OpenCurlyDoubleQuote:\"\\u201C\",OpenCurlyQuote:\"\\u2018\",Or:\"\\u2A54\",Oscr:\"\\u{1D4AA}\",Oslas:\"\\xD8\",Oslash:\"\\xD8\",Otild:\"\\xD5\",Otilde:\"\\xD5\",Otimes:\"\\u2A37\",Oum:\"\\xD6\",Ouml:\"\\xD6\",OverBar:\"\\u203E\",OverBrace:\"\\u23DE\",OverBracket:\"\\u23B4\",OverParenthesis:\"\\u23DC\",PartialD:\"\\u2202\",Pcy:\"\\u041F\",Pfr:\"\\u{1D513}\",Phi:\"\\u03A6\",Pi:\"\\u03A0\",PlusMinus:\"\\xB1\",Poincareplane:\"\\u210C\",Popf:\"\\u2119\",Pr:\"\\u2ABB\",Precedes:\"\\u227A\",PrecedesEqual:\"\\u2AAF\",PrecedesSlantEqual:\"\\u227C\",PrecedesTilde:\"\\u227E\",Prime:\"\\u2033\",Product:\"\\u220F\",Proportion:\"\\u2237\",Proportional:\"\\u221D\",Pscr:\"\\u{1D4AB}\",Psi:\"\\u03A8\",QUO:'\"',QUOT:'\"',Qfr:\"\\u{1D514}\",Qopf:\"\\u211A\",Qscr:\"\\u{1D4AC}\",RBarr:\"\\u2910\",RE:\"\\xAE\",REG:\"\\xAE\",Racute:\"\\u0154\",Rang:\"\\u27EB\",Rarr:\"\\u21A0\",Rarrtl:\"\\u2916\",Rcaron:\"\\u0158\",Rcedil:\"\\u0156\",Rcy:\"\\u0420\",Re:\"\\u211C\",ReverseElement:\"\\u220B\",ReverseEquilibrium:\"\\u21CB\",ReverseUpEquilibrium:\"\\u296F\",Rfr:\"\\u211C\",Rho:\"\\u03A1\",RightAngleBracket:\"\\u27E9\",RightArrow:\"\\u2192\",RightArrowBar:\"\\u21E5\",RightArrowLeftArrow:\"\\u21C4\",RightCeiling:\"\\u2309\",RightDoubleBracket:\"\\u27E7\",RightDownTeeVector:\"\\u295D\",RightDownVector:\"\\u21C2\",RightDownVectorBar:\"\\u2955\",RightFloor:\"\\u230B\",RightTee:\"\\u22A2\",RightTeeArrow:\"\\u21A6\",RightTeeVector:\"\\u295B\",RightTriangle:\"\\u22B3\",RightTriangleBar:\"\\u29D0\",RightTriangleEqual:\"\\u22B5\",RightUpDownVector:\"\\u294F\",RightUpTeeVector:\"\\u295C\",RightUpVector:\"\\u21BE\",RightUpVectorBar:\"\\u2954\",RightVector:\"\\u21C0\",RightVectorBar:\"\\u2953\",Rightarrow:\"\\u21D2\",Ropf:\"\\u211D\",RoundImplies:\"\\u2970\",Rrightarrow:\"\\u21DB\",Rscr:\"\\u211B\",Rsh:\"\\u21B1\",RuleDelayed:\"\\u29F4\",SHCHcy:\"\\u0429\",SHcy:\"\\u0428\",SOFTcy:\"\\u042C\",Sacute:\"\\u015A\",Sc:\"\\u2ABC\",Scaron:\"\\u0160\",Scedil:\"\\u015E\",Scirc:\"\\u015C\",Scy:\"\\u0421\",Sfr:\"\\u{1D516}\",ShortDownArrow:\"\\u2193\",ShortLeftArrow:\"\\u2190\",ShortRightArrow:\"\\u2192\",ShortUpArrow:\"\\u2191\",Sigma:\"\\u03A3\",SmallCircle:\"\\u2218\",Sopf:\"\\u{1D54A}\",Sqrt:\"\\u221A\",Square:\"\\u25A1\",SquareIntersection:\"\\u2293\",SquareSubset:\"\\u228F\",SquareSubsetEqual:\"\\u2291\",SquareSuperset:\"\\u2290\",SquareSupersetEqual:\"\\u2292\",SquareUnion:\"\\u2294\",Sscr:\"\\u{1D4AE}\",Star:\"\\u22C6\",Sub:\"\\u22D0\",Subset:\"\\u22D0\",SubsetEqual:\"\\u2286\",Succeeds:\"\\u227B\",SucceedsEqual:\"\\u2AB0\",SucceedsSlantEqual:\"\\u227D\",SucceedsTilde:\"\\u227F\",SuchThat:\"\\u220B\",Sum:\"\\u2211\",Sup:\"\\u22D1\",Superset:\"\\u2283\",SupersetEqual:\"\\u2287\",Supset:\"\\u22D1\",THOR:\"\\xDE\",THORN:\"\\xDE\",TRADE:\"\\u2122\",TSHcy:\"\\u040B\",TScy:\"\\u0426\",Tab:\"\t\",Tau:\"\\u03A4\",Tcaron:\"\\u0164\",Tcedil:\"\\u0162\",Tcy:\"\\u0422\",Tfr:\"\\u{1D517}\",Therefore:\"\\u2234\",Theta:\"\\u0398\",ThickSpace:\"\\u205F\\u200A\",ThinSpace:\"\\u2009\",Tilde:\"\\u223C\",TildeEqual:\"\\u2243\",TildeFullEqual:\"\\u2245\",TildeTilde:\"\\u2248\",Topf:\"\\u{1D54B}\",TripleDot:\"\\u20DB\",Tscr:\"\\u{1D4AF}\",Tstrok:\"\\u0166\",Uacut:\"\\xDA\",Uacute:\"\\xDA\",Uarr:\"\\u219F\",Uarrocir:\"\\u2949\",Ubrcy:\"\\u040E\",Ubreve:\"\\u016C\",Ucir:\"\\xDB\",Ucirc:\"\\xDB\",Ucy:\"\\u0423\",Udblac:\"\\u0170\",Ufr:\"\\u{1D518}\",Ugrav:\"\\xD9\",Ugrave:\"\\xD9\",Umacr:\"\\u016A\",UnderBar:\"_\",UnderBrace:\"\\u23DF\",UnderBracket:\"\\u23B5\",UnderParenthesis:\"\\u23DD\",Union:\"\\u22C3\",UnionPlus:\"\\u228E\",Uogon:\"\\u0172\",Uopf:\"\\u{1D54C}\",UpArrow:\"\\u2191\",UpArrowBar:\"\\u2912\",UpArrowDownArrow:\"\\u21C5\",UpDownArrow:\"\\u2195\",UpEquilibrium:\"\\u296E\",UpTee:\"\\u22A5\",UpTeeArrow:\"\\u21A5\",Uparrow:\"\\u21D1\",Updownarrow:\"\\u21D5\",UpperLeftArrow:\"\\u2196\",UpperRightArrow:\"\\u2197\",Upsi:\"\\u03D2\",Upsilon:\"\\u03A5\",Uring:\"\\u016E\",Uscr:\"\\u{1D4B0}\",Utilde:\"\\u0168\",Uum:\"\\xDC\",Uuml:\"\\xDC\",VDash:\"\\u22AB\",Vbar:\"\\u2AEB\",Vcy:\"\\u0412\",Vdash:\"\\u22A9\",Vdashl:\"\\u2AE6\",Vee:\"\\u22C1\",Verbar:\"\\u2016\",Vert:\"\\u2016\",VerticalBar:\"\\u2223\",VerticalLine:\"|\",VerticalSeparator:\"\\u2758\",VerticalTilde:\"\\u2240\",VeryThinSpace:\"\\u200A\",Vfr:\"\\u{1D519}\",Vopf:\"\\u{1D54D}\",Vscr:\"\\u{1D4B1}\",Vvdash:\"\\u22AA\",Wcirc:\"\\u0174\",Wedge:\"\\u22C0\",Wfr:\"\\u{1D51A}\",Wopf:\"\\u{1D54E}\",Wscr:\"\\u{1D4B2}\",Xfr:\"\\u{1D51B}\",Xi:\"\\u039E\",Xopf:\"\\u{1D54F}\",Xscr:\"\\u{1D4B3}\",YAcy:\"\\u042F\",YIcy:\"\\u0407\",YUcy:\"\\u042E\",Yacut:\"\\xDD\",Yacute:\"\\xDD\",Ycirc:\"\\u0176\",Ycy:\"\\u042B\",Yfr:\"\\u{1D51C}\",Yopf:\"\\u{1D550}\",Yscr:\"\\u{1D4B4}\",Yuml:\"\\u0178\",ZHcy:\"\\u0416\",Zacute:\"\\u0179\",Zcaron:\"\\u017D\",Zcy:\"\\u0417\",Zdot:\"\\u017B\",ZeroWidthSpace:\"\\u200B\",Zeta:\"\\u0396\",Zfr:\"\\u2128\",Zopf:\"\\u2124\",Zscr:\"\\u{1D4B5}\",aacut:\"\\xE1\",aacute:\"\\xE1\",abreve:\"\\u0103\",ac:\"\\u223E\",acE:\"\\u223E\\u0333\",acd:\"\\u223F\",acir:\"\\xE2\",acirc:\"\\xE2\",acut:\"\\xB4\",acute:\"\\xB4\",acy:\"\\u0430\",aeli:\"\\xE6\",aelig:\"\\xE6\",af:\"\\u2061\",afr:\"\\u{1D51E}\",agrav:\"\\xE0\",agrave:\"\\xE0\",alefsym:\"\\u2135\",aleph:\"\\u2135\",alpha:\"\\u03B1\",amacr:\"\\u0101\",amalg:\"\\u2A3F\",am:\"&\",amp:\"&\",and:\"\\u2227\",andand:\"\\u2A55\",andd:\"\\u2A5C\",andslope:\"\\u2A58\",andv:\"\\u2A5A\",ang:\"\\u2220\",ange:\"\\u29A4\",angle:\"\\u2220\",angmsd:\"\\u2221\",angmsdaa:\"\\u29A8\",angmsdab:\"\\u29A9\",angmsdac:\"\\u29AA\",angmsdad:\"\\u29AB\",angmsdae:\"\\u29AC\",angmsdaf:\"\\u29AD\",angmsdag:\"\\u29AE\",angmsdah:\"\\u29AF\",angrt:\"\\u221F\",angrtvb:\"\\u22BE\",angrtvbd:\"\\u299D\",angsph:\"\\u2222\",angst:\"\\xC5\",angzarr:\"\\u237C\",aogon:\"\\u0105\",aopf:\"\\u{1D552}\",ap:\"\\u2248\",apE:\"\\u2A70\",apacir:\"\\u2A6F\",ape:\"\\u224A\",apid:\"\\u224B\",apos:\"'\",approx:\"\\u2248\",approxeq:\"\\u224A\",arin:\"\\xE5\",aring:\"\\xE5\",ascr:\"\\u{1D4B6}\",ast:\"*\",asymp:\"\\u2248\",asympeq:\"\\u224D\",atild:\"\\xE3\",atilde:\"\\xE3\",aum:\"\\xE4\",auml:\"\\xE4\",awconint:\"\\u2233\",awint:\"\\u2A11\",bNot:\"\\u2AED\",backcong:\"\\u224C\",backepsilon:\"\\u03F6\",backprime:\"\\u2035\",backsim:\"\\u223D\",backsimeq:\"\\u22CD\",barvee:\"\\u22BD\",barwed:\"\\u2305\",barwedge:\"\\u2305\",bbrk:\"\\u23B5\",bbrktbrk:\"\\u23B6\",bcong:\"\\u224C\",bcy:\"\\u0431\",bdquo:\"\\u201E\",becaus:\"\\u2235\",because:\"\\u2235\",bemptyv:\"\\u29B0\",bepsi:\"\\u03F6\",bernou:\"\\u212C\",beta:\"\\u03B2\",beth:\"\\u2136\",between:\"\\u226C\",bfr:\"\\u{1D51F}\",bigcap:\"\\u22C2\",bigcirc:\"\\u25EF\",bigcup:\"\\u22C3\",bigodot:\"\\u2A00\",bigoplus:\"\\u2A01\",bigotimes:\"\\u2A02\",bigsqcup:\"\\u2A06\",bigstar:\"\\u2605\",bigtriangledown:\"\\u25BD\",bigtriangleup:\"\\u25B3\",biguplus:\"\\u2A04\",bigvee:\"\\u22C1\",bigwedge:\"\\u22C0\",bkarow:\"\\u290D\",blacklozenge:\"\\u29EB\",blacksquare:\"\\u25AA\",blacktriangle:\"\\u25B4\",blacktriangledown:\"\\u25BE\",blacktriangleleft:\"\\u25C2\",blacktriangleright:\"\\u25B8\",blank:\"\\u2423\",blk12:\"\\u2592\",blk14:\"\\u2591\",blk34:\"\\u2593\",block:\"\\u2588\",bne:\"=\\u20E5\",bnequiv:\"\\u2261\\u20E5\",bnot:\"\\u2310\",bopf:\"\\u{1D553}\",bot:\"\\u22A5\",bottom:\"\\u22A5\",bowtie:\"\\u22C8\",boxDL:\"\\u2557\",boxDR:\"\\u2554\",boxDl:\"\\u2556\",boxDr:\"\\u2553\",boxH:\"\\u2550\",boxHD:\"\\u2566\",boxHU:\"\\u2569\",boxHd:\"\\u2564\",boxHu:\"\\u2567\",boxUL:\"\\u255D\",boxUR:\"\\u255A\",boxUl:\"\\u255C\",boxUr:\"\\u2559\",boxV:\"\\u2551\",boxVH:\"\\u256C\",boxVL:\"\\u2563\",boxVR:\"\\u2560\",boxVh:\"\\u256B\",boxVl:\"\\u2562\",boxVr:\"\\u255F\",boxbox:\"\\u29C9\",boxdL:\"\\u2555\",boxdR:\"\\u2552\",boxdl:\"\\u2510\",boxdr:\"\\u250C\",boxh:\"\\u2500\",boxhD:\"\\u2565\",boxhU:\"\\u2568\",boxhd:\"\\u252C\",boxhu:\"\\u2534\",boxminus:\"\\u229F\",boxplus:\"\\u229E\",boxtimes:\"\\u22A0\",boxuL:\"\\u255B\",boxuR:\"\\u2558\",boxul:\"\\u2518\",boxur:\"\\u2514\",boxv:\"\\u2502\",boxvH:\"\\u256A\",boxvL:\"\\u2561\",boxvR:\"\\u255E\",boxvh:\"\\u253C\",boxvl:\"\\u2524\",boxvr:\"\\u251C\",bprime:\"\\u2035\",breve:\"\\u02D8\",brvba:\"\\xA6\",brvbar:\"\\xA6\",bscr:\"\\u{1D4B7}\",bsemi:\"\\u204F\",bsim:\"\\u223D\",bsime:\"\\u22CD\",bsol:\"\\\\\",bsolb:\"\\u29C5\",bsolhsub:\"\\u27C8\",bull:\"\\u2022\",bullet:\"\\u2022\",bump:\"\\u224E\",bumpE:\"\\u2AAE\",bumpe:\"\\u224F\",bumpeq:\"\\u224F\",cacute:\"\\u0107\",cap:\"\\u2229\",capand:\"\\u2A44\",capbrcup:\"\\u2A49\",capcap:\"\\u2A4B\",capcup:\"\\u2A47\",capdot:\"\\u2A40\",caps:\"\\u2229\\uFE00\",caret:\"\\u2041\",caron:\"\\u02C7\",ccaps:\"\\u2A4D\",ccaron:\"\\u010D\",ccedi:\"\\xE7\",ccedil:\"\\xE7\",ccirc:\"\\u0109\",ccups:\"\\u2A4C\",ccupssm:\"\\u2A50\",cdot:\"\\u010B\",cedi:\"\\xB8\",cedil:\"\\xB8\",cemptyv:\"\\u29B2\",cen:\"\\xA2\",cent:\"\\xA2\",centerdot:\"\\xB7\",cfr:\"\\u{1D520}\",chcy:\"\\u0447\",check:\"\\u2713\",checkmark:\"\\u2713\",chi:\"\\u03C7\",cir:\"\\u25CB\",cirE:\"\\u29C3\",circ:\"\\u02C6\",circeq:\"\\u2257\",circlearrowleft:\"\\u21BA\",circlearrowright:\"\\u21BB\",circledR:\"\\xAE\",circledS:\"\\u24C8\",circledast:\"\\u229B\",circledcirc:\"\\u229A\",circleddash:\"\\u229D\",cire:\"\\u2257\",cirfnint:\"\\u2A10\",cirmid:\"\\u2AEF\",cirscir:\"\\u29C2\",clubs:\"\\u2663\",clubsuit:\"\\u2663\",colon:\":\",colone:\"\\u2254\",coloneq:\"\\u2254\",comma:\",\",commat:\"@\",comp:\"\\u2201\",compfn:\"\\u2218\",complement:\"\\u2201\",complexes:\"\\u2102\",cong:\"\\u2245\",congdot:\"\\u2A6D\",conint:\"\\u222E\",copf:\"\\u{1D554}\",coprod:\"\\u2210\",cop:\"\\xA9\",copy:\"\\xA9\",copysr:\"\\u2117\",crarr:\"\\u21B5\",cross:\"\\u2717\",cscr:\"\\u{1D4B8}\",csub:\"\\u2ACF\",csube:\"\\u2AD1\",csup:\"\\u2AD0\",csupe:\"\\u2AD2\",ctdot:\"\\u22EF\",cudarrl:\"\\u2938\",cudarrr:\"\\u2935\",cuepr:\"\\u22DE\",cuesc:\"\\u22DF\",cularr:\"\\u21B6\",cularrp:\"\\u293D\",cup:\"\\u222A\",cupbrcap:\"\\u2A48\",cupcap:\"\\u2A46\",cupcup:\"\\u2A4A\",cupdot:\"\\u228D\",cupor:\"\\u2A45\",cups:\"\\u222A\\uFE00\",curarr:\"\\u21B7\",curarrm:\"\\u293C\",curlyeqprec:\"\\u22DE\",curlyeqsucc:\"\\u22DF\",curlyvee:\"\\u22CE\",curlywedge:\"\\u22CF\",curre:\"\\xA4\",curren:\"\\xA4\",curvearrowleft:\"\\u21B6\",curvearrowright:\"\\u21B7\",cuvee:\"\\u22CE\",cuwed:\"\\u22CF\",cwconint:\"\\u2232\",cwint:\"\\u2231\",cylcty:\"\\u232D\",dArr:\"\\u21D3\",dHar:\"\\u2965\",dagger:\"\\u2020\",daleth:\"\\u2138\",darr:\"\\u2193\",dash:\"\\u2010\",dashv:\"\\u22A3\",dbkarow:\"\\u290F\",dblac:\"\\u02DD\",dcaron:\"\\u010F\",dcy:\"\\u0434\",dd:\"\\u2146\",ddagger:\"\\u2021\",ddarr:\"\\u21CA\",ddotseq:\"\\u2A77\",de:\"\\xB0\",deg:\"\\xB0\",delta:\"\\u03B4\",demptyv:\"\\u29B1\",dfisht:\"\\u297F\",dfr:\"\\u{1D521}\",dharl:\"\\u21C3\",dharr:\"\\u21C2\",diam:\"\\u22C4\",diamond:\"\\u22C4\",diamondsuit:\"\\u2666\",diams:\"\\u2666\",die:\"\\xA8\",digamma:\"\\u03DD\",disin:\"\\u22F2\",div:\"\\xF7\",divid:\"\\xF7\",divide:\"\\xF7\",divideontimes:\"\\u22C7\",divonx:\"\\u22C7\",djcy:\"\\u0452\",dlcorn:\"\\u231E\",dlcrop:\"\\u230D\",dollar:\"$\",dopf:\"\\u{1D555}\",dot:\"\\u02D9\",doteq:\"\\u2250\",doteqdot:\"\\u2251\",dotminus:\"\\u2238\",dotplus:\"\\u2214\",dotsquare:\"\\u22A1\",doublebarwedge:\"\\u2306\",downarrow:\"\\u2193\",downdownarrows:\"\\u21CA\",downharpoonleft:\"\\u21C3\",downharpoonright:\"\\u21C2\",drbkarow:\"\\u2910\",drcorn:\"\\u231F\",drcrop:\"\\u230C\",dscr:\"\\u{1D4B9}\",dscy:\"\\u0455\",dsol:\"\\u29F6\",dstrok:\"\\u0111\",dtdot:\"\\u22F1\",dtri:\"\\u25BF\",dtrif:\"\\u25BE\",duarr:\"\\u21F5\",duhar:\"\\u296F\",dwangle:\"\\u29A6\",dzcy:\"\\u045F\",dzigrarr:\"\\u27FF\",eDDot:\"\\u2A77\",eDot:\"\\u2251\",eacut:\"\\xE9\",eacute:\"\\xE9\",easter:\"\\u2A6E\",ecaron:\"\\u011B\",ecir:\"\\xEA\",ecirc:\"\\xEA\",ecolon:\"\\u2255\",ecy:\"\\u044D\",edot:\"\\u0117\",ee:\"\\u2147\",efDot:\"\\u2252\",efr:\"\\u{1D522}\",eg:\"\\u2A9A\",egrav:\"\\xE8\",egrave:\"\\xE8\",egs:\"\\u2A96\",egsdot:\"\\u2A98\",el:\"\\u2A99\",elinters:\"\\u23E7\",ell:\"\\u2113\",els:\"\\u2A95\",elsdot:\"\\u2A97\",emacr:\"\\u0113\",empty:\"\\u2205\",emptyset:\"\\u2205\",emptyv:\"\\u2205\",emsp13:\"\\u2004\",emsp14:\"\\u2005\",emsp:\"\\u2003\",eng:\"\\u014B\",ensp:\"\\u2002\",eogon:\"\\u0119\",eopf:\"\\u{1D556}\",epar:\"\\u22D5\",eparsl:\"\\u29E3\",eplus:\"\\u2A71\",epsi:\"\\u03B5\",epsilon:\"\\u03B5\",epsiv:\"\\u03F5\",eqcirc:\"\\u2256\",eqcolon:\"\\u2255\",eqsim:\"\\u2242\",eqslantgtr:\"\\u2A96\",eqslantless:\"\\u2A95\",equals:\"=\",equest:\"\\u225F\",equiv:\"\\u2261\",equivDD:\"\\u2A78\",eqvparsl:\"\\u29E5\",erDot:\"\\u2253\",erarr:\"\\u2971\",escr:\"\\u212F\",esdot:\"\\u2250\",esim:\"\\u2242\",eta:\"\\u03B7\",et:\"\\xF0\",eth:\"\\xF0\",eum:\"\\xEB\",euml:\"\\xEB\",euro:\"\\u20AC\",excl:\"!\",exist:\"\\u2203\",expectation:\"\\u2130\",exponentiale:\"\\u2147\",fallingdotseq:\"\\u2252\",fcy:\"\\u0444\",female:\"\\u2640\",ffilig:\"\\uFB03\",fflig:\"\\uFB00\",ffllig:\"\\uFB04\",ffr:\"\\u{1D523}\",filig:\"\\uFB01\",fjlig:\"fj\",flat:\"\\u266D\",fllig:\"\\uFB02\",fltns:\"\\u25B1\",fnof:\"\\u0192\",fopf:\"\\u{1D557}\",forall:\"\\u2200\",fork:\"\\u22D4\",forkv:\"\\u2AD9\",fpartint:\"\\u2A0D\",frac1:\"\\xBC\",frac12:\"\\xBD\",frac13:\"\\u2153\",frac14:\"\\xBC\",frac15:\"\\u2155\",frac16:\"\\u2159\",frac18:\"\\u215B\",frac23:\"\\u2154\",frac25:\"\\u2156\",frac3:\"\\xBE\",frac34:\"\\xBE\",frac35:\"\\u2157\",frac38:\"\\u215C\",frac45:\"\\u2158\",frac56:\"\\u215A\",frac58:\"\\u215D\",frac78:\"\\u215E\",frasl:\"\\u2044\",frown:\"\\u2322\",fscr:\"\\u{1D4BB}\",gE:\"\\u2267\",gEl:\"\\u2A8C\",gacute:\"\\u01F5\",gamma:\"\\u03B3\",gammad:\"\\u03DD\",gap:\"\\u2A86\",gbreve:\"\\u011F\",gcirc:\"\\u011D\",gcy:\"\\u0433\",gdot:\"\\u0121\",ge:\"\\u2265\",gel:\"\\u22DB\",geq:\"\\u2265\",geqq:\"\\u2267\",geqslant:\"\\u2A7E\",ges:\"\\u2A7E\",gescc:\"\\u2AA9\",gesdot:\"\\u2A80\",gesdoto:\"\\u2A82\",gesdotol:\"\\u2A84\",gesl:\"\\u22DB\\uFE00\",gesles:\"\\u2A94\",gfr:\"\\u{1D524}\",gg:\"\\u226B\",ggg:\"\\u22D9\",gimel:\"\\u2137\",gjcy:\"\\u0453\",gl:\"\\u2277\",glE:\"\\u2A92\",gla:\"\\u2AA5\",glj:\"\\u2AA4\",gnE:\"\\u2269\",gnap:\"\\u2A8A\",gnapprox:\"\\u2A8A\",gne:\"\\u2A88\",gneq:\"\\u2A88\",gneqq:\"\\u2269\",gnsim:\"\\u22E7\",gopf:\"\\u{1D558}\",grave:\"`\",gscr:\"\\u210A\",gsim:\"\\u2273\",gsime:\"\\u2A8E\",gsiml:\"\\u2A90\",g:\">\",gt:\">\",gtcc:\"\\u2AA7\",gtcir:\"\\u2A7A\",gtdot:\"\\u22D7\",gtlPar:\"\\u2995\",gtquest:\"\\u2A7C\",gtrapprox:\"\\u2A86\",gtrarr:\"\\u2978\",gtrdot:\"\\u22D7\",gtreqless:\"\\u22DB\",gtreqqless:\"\\u2A8C\",gtrless:\"\\u2277\",gtrsim:\"\\u2273\",gvertneqq:\"\\u2269\\uFE00\",gvnE:\"\\u2269\\uFE00\",hArr:\"\\u21D4\",hairsp:\"\\u200A\",half:\"\\xBD\",hamilt:\"\\u210B\",hardcy:\"\\u044A\",harr:\"\\u2194\",harrcir:\"\\u2948\",harrw:\"\\u21AD\",hbar:\"\\u210F\",hcirc:\"\\u0125\",hearts:\"\\u2665\",heartsuit:\"\\u2665\",hellip:\"\\u2026\",hercon:\"\\u22B9\",hfr:\"\\u{1D525}\",hksearow:\"\\u2925\",hkswarow:\"\\u2926\",hoarr:\"\\u21FF\",homtht:\"\\u223B\",hookleftarrow:\"\\u21A9\",hookrightarrow:\"\\u21AA\",hopf:\"\\u{1D559}\",horbar:\"\\u2015\",hscr:\"\\u{1D4BD}\",hslash:\"\\u210F\",hstrok:\"\\u0127\",hybull:\"\\u2043\",hyphen:\"\\u2010\",iacut:\"\\xED\",iacute:\"\\xED\",ic:\"\\u2063\",icir:\"\\xEE\",icirc:\"\\xEE\",icy:\"\\u0438\",iecy:\"\\u0435\",iexc:\"\\xA1\",iexcl:\"\\xA1\",iff:\"\\u21D4\",ifr:\"\\u{1D526}\",igrav:\"\\xEC\",igrave:\"\\xEC\",ii:\"\\u2148\",iiiint:\"\\u2A0C\",iiint:\"\\u222D\",iinfin:\"\\u29DC\",iiota:\"\\u2129\",ijlig:\"\\u0133\",imacr:\"\\u012B\",image:\"\\u2111\",imagline:\"\\u2110\",imagpart:\"\\u2111\",imath:\"\\u0131\",imof:\"\\u22B7\",imped:\"\\u01B5\",in:\"\\u2208\",incare:\"\\u2105\",infin:\"\\u221E\",infintie:\"\\u29DD\",inodot:\"\\u0131\",int:\"\\u222B\",intcal:\"\\u22BA\",integers:\"\\u2124\",intercal:\"\\u22BA\",intlarhk:\"\\u2A17\",intprod:\"\\u2A3C\",iocy:\"\\u0451\",iogon:\"\\u012F\",iopf:\"\\u{1D55A}\",iota:\"\\u03B9\",iprod:\"\\u2A3C\",iques:\"\\xBF\",iquest:\"\\xBF\",iscr:\"\\u{1D4BE}\",isin:\"\\u2208\",isinE:\"\\u22F9\",isindot:\"\\u22F5\",isins:\"\\u22F4\",isinsv:\"\\u22F3\",isinv:\"\\u2208\",it:\"\\u2062\",itilde:\"\\u0129\",iukcy:\"\\u0456\",ium:\"\\xEF\",iuml:\"\\xEF\",jcirc:\"\\u0135\",jcy:\"\\u0439\",jfr:\"\\u{1D527}\",jmath:\"\\u0237\",jopf:\"\\u{1D55B}\",jscr:\"\\u{1D4BF}\",jsercy:\"\\u0458\",jukcy:\"\\u0454\",kappa:\"\\u03BA\",kappav:\"\\u03F0\",kcedil:\"\\u0137\",kcy:\"\\u043A\",kfr:\"\\u{1D528}\",kgreen:\"\\u0138\",khcy:\"\\u0445\",kjcy:\"\\u045C\",kopf:\"\\u{1D55C}\",kscr:\"\\u{1D4C0}\",lAarr:\"\\u21DA\",lArr:\"\\u21D0\",lAtail:\"\\u291B\",lBarr:\"\\u290E\",lE:\"\\u2266\",lEg:\"\\u2A8B\",lHar:\"\\u2962\",lacute:\"\\u013A\",laemptyv:\"\\u29B4\",lagran:\"\\u2112\",lambda:\"\\u03BB\",lang:\"\\u27E8\",langd:\"\\u2991\",langle:\"\\u27E8\",lap:\"\\u2A85\",laqu:\"\\xAB\",laquo:\"\\xAB\",larr:\"\\u2190\",larrb:\"\\u21E4\",larrbfs:\"\\u291F\",larrfs:\"\\u291D\",larrhk:\"\\u21A9\",larrlp:\"\\u21AB\",larrpl:\"\\u2939\",larrsim:\"\\u2973\",larrtl:\"\\u21A2\",lat:\"\\u2AAB\",latail:\"\\u2919\",late:\"\\u2AAD\",lates:\"\\u2AAD\\uFE00\",lbarr:\"\\u290C\",lbbrk:\"\\u2772\",lbrace:\"{\",lbrack:\"[\",lbrke:\"\\u298B\",lbrksld:\"\\u298F\",lbrkslu:\"\\u298D\",lcaron:\"\\u013E\",lcedil:\"\\u013C\",lceil:\"\\u2308\",lcub:\"{\",lcy:\"\\u043B\",ldca:\"\\u2936\",ldquo:\"\\u201C\",ldquor:\"\\u201E\",ldrdhar:\"\\u2967\",ldrushar:\"\\u294B\",ldsh:\"\\u21B2\",le:\"\\u2264\",leftarrow:\"\\u2190\",leftarrowtail:\"\\u21A2\",leftharpoondown:\"\\u21BD\",leftharpoonup:\"\\u21BC\",leftleftarrows:\"\\u21C7\",leftrightarrow:\"\\u2194\",leftrightarrows:\"\\u21C6\",leftrightharpoons:\"\\u21CB\",leftrightsquigarrow:\"\\u21AD\",leftthreetimes:\"\\u22CB\",leg:\"\\u22DA\",leq:\"\\u2264\",leqq:\"\\u2266\",leqslant:\"\\u2A7D\",les:\"\\u2A7D\",lescc:\"\\u2AA8\",lesdot:\"\\u2A7F\",lesdoto:\"\\u2A81\",lesdotor:\"\\u2A83\",lesg:\"\\u22DA\\uFE00\",lesges:\"\\u2A93\",lessapprox:\"\\u2A85\",lessdot:\"\\u22D6\",lesseqgtr:\"\\u22DA\",lesseqqgtr:\"\\u2A8B\",lessgtr:\"\\u2276\",lesssim:\"\\u2272\",lfisht:\"\\u297C\",lfloor:\"\\u230A\",lfr:\"\\u{1D529}\",lg:\"\\u2276\",lgE:\"\\u2A91\",lhard:\"\\u21BD\",lharu:\"\\u21BC\",lharul:\"\\u296A\",lhblk:\"\\u2584\",ljcy:\"\\u0459\",ll:\"\\u226A\",llarr:\"\\u21C7\",llcorner:\"\\u231E\",llhard:\"\\u296B\",lltri:\"\\u25FA\",lmidot:\"\\u0140\",lmoust:\"\\u23B0\",lmoustache:\"\\u23B0\",lnE:\"\\u2268\",lnap:\"\\u2A89\",lnapprox:\"\\u2A89\",lne:\"\\u2A87\",lneq:\"\\u2A87\",lneqq:\"\\u2268\",lnsim:\"\\u22E6\",loang:\"\\u27EC\",loarr:\"\\u21FD\",lobrk:\"\\u27E6\",longleftarrow:\"\\u27F5\",longleftrightarrow:\"\\u27F7\",longmapsto:\"\\u27FC\",longrightarrow:\"\\u27F6\",looparrowleft:\"\\u21AB\",looparrowright:\"\\u21AC\",lopar:\"\\u2985\",lopf:\"\\u{1D55D}\",loplus:\"\\u2A2D\",lotimes:\"\\u2A34\",lowast:\"\\u2217\",lowbar:\"_\",loz:\"\\u25CA\",lozenge:\"\\u25CA\",lozf:\"\\u29EB\",lpar:\"(\",lparlt:\"\\u2993\",lrarr:\"\\u21C6\",lrcorner:\"\\u231F\",lrhar:\"\\u21CB\",lrhard:\"\\u296D\",lrm:\"\\u200E\",lrtri:\"\\u22BF\",lsaquo:\"\\u2039\",lscr:\"\\u{1D4C1}\",lsh:\"\\u21B0\",lsim:\"\\u2272\",lsime:\"\\u2A8D\",lsimg:\"\\u2A8F\",lsqb:\"[\",lsquo:\"\\u2018\",lsquor:\"\\u201A\",lstrok:\"\\u0142\",l:\"<\",lt:\"<\",ltcc:\"\\u2AA6\",ltcir:\"\\u2A79\",ltdot:\"\\u22D6\",lthree:\"\\u22CB\",ltimes:\"\\u22C9\",ltlarr:\"\\u2976\",ltquest:\"\\u2A7B\",ltrPar:\"\\u2996\",ltri:\"\\u25C3\",ltrie:\"\\u22B4\",ltrif:\"\\u25C2\",lurdshar:\"\\u294A\",luruhar:\"\\u2966\",lvertneqq:\"\\u2268\\uFE00\",lvnE:\"\\u2268\\uFE00\",mDDot:\"\\u223A\",mac:\"\\xAF\",macr:\"\\xAF\",male:\"\\u2642\",malt:\"\\u2720\",maltese:\"\\u2720\",map:\"\\u21A6\",mapsto:\"\\u21A6\",mapstodown:\"\\u21A7\",mapstoleft:\"\\u21A4\",mapstoup:\"\\u21A5\",marker:\"\\u25AE\",mcomma:\"\\u2A29\",mcy:\"\\u043C\",mdash:\"\\u2014\",measuredangle:\"\\u2221\",mfr:\"\\u{1D52A}\",mho:\"\\u2127\",micr:\"\\xB5\",micro:\"\\xB5\",mid:\"\\u2223\",midast:\"*\",midcir:\"\\u2AF0\",middo:\"\\xB7\",middot:\"\\xB7\",minus:\"\\u2212\",minusb:\"\\u229F\",minusd:\"\\u2238\",minusdu:\"\\u2A2A\",mlcp:\"\\u2ADB\",mldr:\"\\u2026\",mnplus:\"\\u2213\",models:\"\\u22A7\",mopf:\"\\u{1D55E}\",mp:\"\\u2213\",mscr:\"\\u{1D4C2}\",mstpos:\"\\u223E\",mu:\"\\u03BC\",multimap:\"\\u22B8\",mumap:\"\\u22B8\",nGg:\"\\u22D9\\u0338\",nGt:\"\\u226B\\u20D2\",nGtv:\"\\u226B\\u0338\",nLeftarrow:\"\\u21CD\",nLeftrightarrow:\"\\u21CE\",nLl:\"\\u22D8\\u0338\",nLt:\"\\u226A\\u20D2\",nLtv:\"\\u226A\\u0338\",nRightarrow:\"\\u21CF\",nVDash:\"\\u22AF\",nVdash:\"\\u22AE\",nabla:\"\\u2207\",nacute:\"\\u0144\",nang:\"\\u2220\\u20D2\",nap:\"\\u2249\",napE:\"\\u2A70\\u0338\",napid:\"\\u224B\\u0338\",napos:\"\\u0149\",napprox:\"\\u2249\",natur:\"\\u266E\",natural:\"\\u266E\",naturals:\"\\u2115\",nbs:\"\\xA0\",nbsp:\"\\xA0\",nbump:\"\\u224E\\u0338\",nbumpe:\"\\u224F\\u0338\",ncap:\"\\u2A43\",ncaron:\"\\u0148\",ncedil:\"\\u0146\",ncong:\"\\u2247\",ncongdot:\"\\u2A6D\\u0338\",ncup:\"\\u2A42\",ncy:\"\\u043D\",ndash:\"\\u2013\",ne:\"\\u2260\",neArr:\"\\u21D7\",nearhk:\"\\u2924\",nearr:\"\\u2197\",nearrow:\"\\u2197\",nedot:\"\\u2250\\u0338\",nequiv:\"\\u2262\",nesear:\"\\u2928\",nesim:\"\\u2242\\u0338\",nexist:\"\\u2204\",nexists:\"\\u2204\",nfr:\"\\u{1D52B}\",ngE:\"\\u2267\\u0338\",nge:\"\\u2271\",ngeq:\"\\u2271\",ngeqq:\"\\u2267\\u0338\",ngeqslant:\"\\u2A7E\\u0338\",nges:\"\\u2A7E\\u0338\",ngsim:\"\\u2275\",ngt:\"\\u226F\",ngtr:\"\\u226F\",nhArr:\"\\u21CE\",nharr:\"\\u21AE\",nhpar:\"\\u2AF2\",ni:\"\\u220B\",nis:\"\\u22FC\",nisd:\"\\u22FA\",niv:\"\\u220B\",njcy:\"\\u045A\",nlArr:\"\\u21CD\",nlE:\"\\u2266\\u0338\",nlarr:\"\\u219A\",nldr:\"\\u2025\",nle:\"\\u2270\",nleftarrow:\"\\u219A\",nleftrightarrow:\"\\u21AE\",nleq:\"\\u2270\",nleqq:\"\\u2266\\u0338\",nleqslant:\"\\u2A7D\\u0338\",nles:\"\\u2A7D\\u0338\",nless:\"\\u226E\",nlsim:\"\\u2274\",nlt:\"\\u226E\",nltri:\"\\u22EA\",nltrie:\"\\u22EC\",nmid:\"\\u2224\",nopf:\"\\u{1D55F}\",no:\"\\xAC\",not:\"\\xAC\",notin:\"\\u2209\",notinE:\"\\u22F9\\u0338\",notindot:\"\\u22F5\\u0338\",notinva:\"\\u2209\",notinvb:\"\\u22F7\",notinvc:\"\\u22F6\",notni:\"\\u220C\",notniva:\"\\u220C\",notnivb:\"\\u22FE\",notnivc:\"\\u22FD\",npar:\"\\u2226\",nparallel:\"\\u2226\",nparsl:\"\\u2AFD\\u20E5\",npart:\"\\u2202\\u0338\",npolint:\"\\u2A14\",npr:\"\\u2280\",nprcue:\"\\u22E0\",npre:\"\\u2AAF\\u0338\",nprec:\"\\u2280\",npreceq:\"\\u2AAF\\u0338\",nrArr:\"\\u21CF\",nrarr:\"\\u219B\",nrarrc:\"\\u2933\\u0338\",nrarrw:\"\\u219D\\u0338\",nrightarrow:\"\\u219B\",nrtri:\"\\u22EB\",nrtrie:\"\\u22ED\",nsc:\"\\u2281\",nsccue:\"\\u22E1\",nsce:\"\\u2AB0\\u0338\",nscr:\"\\u{1D4C3}\",nshortmid:\"\\u2224\",nshortparallel:\"\\u2226\",nsim:\"\\u2241\",nsime:\"\\u2244\",nsimeq:\"\\u2244\",nsmid:\"\\u2224\",nspar:\"\\u2226\",nsqsube:\"\\u22E2\",nsqsupe:\"\\u22E3\",nsub:\"\\u2284\",nsubE:\"\\u2AC5\\u0338\",nsube:\"\\u2288\",nsubset:\"\\u2282\\u20D2\",nsubseteq:\"\\u2288\",nsubseteqq:\"\\u2AC5\\u0338\",nsucc:\"\\u2281\",nsucceq:\"\\u2AB0\\u0338\",nsup:\"\\u2285\",nsupE:\"\\u2AC6\\u0338\",nsupe:\"\\u2289\",nsupset:\"\\u2283\\u20D2\",nsupseteq:\"\\u2289\",nsupseteqq:\"\\u2AC6\\u0338\",ntgl:\"\\u2279\",ntild:\"\\xF1\",ntilde:\"\\xF1\",ntlg:\"\\u2278\",ntriangleleft:\"\\u22EA\",ntrianglelefteq:\"\\u22EC\",ntriangleright:\"\\u22EB\",ntrianglerighteq:\"\\u22ED\",nu:\"\\u03BD\",num:\"#\",numero:\"\\u2116\",numsp:\"\\u2007\",nvDash:\"\\u22AD\",nvHarr:\"\\u2904\",nvap:\"\\u224D\\u20D2\",nvdash:\"\\u22AC\",nvge:\"\\u2265\\u20D2\",nvgt:\">\\u20D2\",nvinfin:\"\\u29DE\",nvlArr:\"\\u2902\",nvle:\"\\u2264\\u20D2\",nvlt:\"<\\u20D2\",nvltrie:\"\\u22B4\\u20D2\",nvrArr:\"\\u2903\",nvrtrie:\"\\u22B5\\u20D2\",nvsim:\"\\u223C\\u20D2\",nwArr:\"\\u21D6\",nwarhk:\"\\u2923\",nwarr:\"\\u2196\",nwarrow:\"\\u2196\",nwnear:\"\\u2927\",oS:\"\\u24C8\",oacut:\"\\xF3\",oacute:\"\\xF3\",oast:\"\\u229B\",ocir:\"\\xF4\",ocirc:\"\\xF4\",ocy:\"\\u043E\",odash:\"\\u229D\",odblac:\"\\u0151\",odiv:\"\\u2A38\",odot:\"\\u2299\",odsold:\"\\u29BC\",oelig:\"\\u0153\",ofcir:\"\\u29BF\",ofr:\"\\u{1D52C}\",ogon:\"\\u02DB\",ograv:\"\\xF2\",ograve:\"\\xF2\",ogt:\"\\u29C1\",ohbar:\"\\u29B5\",ohm:\"\\u03A9\",oint:\"\\u222E\",olarr:\"\\u21BA\",olcir:\"\\u29BE\",olcross:\"\\u29BB\",oline:\"\\u203E\",olt:\"\\u29C0\",omacr:\"\\u014D\",omega:\"\\u03C9\",omicron:\"\\u03BF\",omid:\"\\u29B6\",ominus:\"\\u2296\",oopf:\"\\u{1D560}\",opar:\"\\u29B7\",operp:\"\\u29B9\",oplus:\"\\u2295\",or:\"\\u2228\",orarr:\"\\u21BB\",ord:\"\\xBA\",order:\"\\u2134\",orderof:\"\\u2134\",ordf:\"\\xAA\",ordm:\"\\xBA\",origof:\"\\u22B6\",oror:\"\\u2A56\",orslope:\"\\u2A57\",orv:\"\\u2A5B\",oscr:\"\\u2134\",oslas:\"\\xF8\",oslash:\"\\xF8\",osol:\"\\u2298\",otild:\"\\xF5\",otilde:\"\\xF5\",otimes:\"\\u2297\",otimesas:\"\\u2A36\",oum:\"\\xF6\",ouml:\"\\xF6\",ovbar:\"\\u233D\",par:\"\\xB6\",para:\"\\xB6\",parallel:\"\\u2225\",parsim:\"\\u2AF3\",parsl:\"\\u2AFD\",part:\"\\u2202\",pcy:\"\\u043F\",percnt:\"%\",period:\".\",permil:\"\\u2030\",perp:\"\\u22A5\",pertenk:\"\\u2031\",pfr:\"\\u{1D52D}\",phi:\"\\u03C6\",phiv:\"\\u03D5\",phmmat:\"\\u2133\",phone:\"\\u260E\",pi:\"\\u03C0\",pitchfork:\"\\u22D4\",piv:\"\\u03D6\",planck:\"\\u210F\",planckh:\"\\u210E\",plankv:\"\\u210F\",plus:\"+\",plusacir:\"\\u2A23\",plusb:\"\\u229E\",pluscir:\"\\u2A22\",plusdo:\"\\u2214\",plusdu:\"\\u2A25\",pluse:\"\\u2A72\",plusm:\"\\xB1\",plusmn:\"\\xB1\",plussim:\"\\u2A26\",plustwo:\"\\u2A27\",pm:\"\\xB1\",pointint:\"\\u2A15\",popf:\"\\u{1D561}\",poun:\"\\xA3\",pound:\"\\xA3\",pr:\"\\u227A\",prE:\"\\u2AB3\",prap:\"\\u2AB7\",prcue:\"\\u227C\",pre:\"\\u2AAF\",prec:\"\\u227A\",precapprox:\"\\u2AB7\",preccurlyeq:\"\\u227C\",preceq:\"\\u2AAF\",precnapprox:\"\\u2AB9\",precneqq:\"\\u2AB5\",precnsim:\"\\u22E8\",precsim:\"\\u227E\",prime:\"\\u2032\",primes:\"\\u2119\",prnE:\"\\u2AB5\",prnap:\"\\u2AB9\",prnsim:\"\\u22E8\",prod:\"\\u220F\",profalar:\"\\u232E\",profline:\"\\u2312\",profsurf:\"\\u2313\",prop:\"\\u221D\",propto:\"\\u221D\",prsim:\"\\u227E\",prurel:\"\\u22B0\",pscr:\"\\u{1D4C5}\",psi:\"\\u03C8\",puncsp:\"\\u2008\",qfr:\"\\u{1D52E}\",qint:\"\\u2A0C\",qopf:\"\\u{1D562}\",qprime:\"\\u2057\",qscr:\"\\u{1D4C6}\",quaternions:\"\\u210D\",quatint:\"\\u2A16\",quest:\"?\",questeq:\"\\u225F\",quo:'\"',quot:'\"',rAarr:\"\\u21DB\",rArr:\"\\u21D2\",rAtail:\"\\u291C\",rBarr:\"\\u290F\",rHar:\"\\u2964\",race:\"\\u223D\\u0331\",racute:\"\\u0155\",radic:\"\\u221A\",raemptyv:\"\\u29B3\",rang:\"\\u27E9\",rangd:\"\\u2992\",range:\"\\u29A5\",rangle:\"\\u27E9\",raqu:\"\\xBB\",raquo:\"\\xBB\",rarr:\"\\u2192\",rarrap:\"\\u2975\",rarrb:\"\\u21E5\",rarrbfs:\"\\u2920\",rarrc:\"\\u2933\",rarrfs:\"\\u291E\",rarrhk:\"\\u21AA\",rarrlp:\"\\u21AC\",rarrpl:\"\\u2945\",rarrsim:\"\\u2974\",rarrtl:\"\\u21A3\",rarrw:\"\\u219D\",ratail:\"\\u291A\",ratio:\"\\u2236\",rationals:\"\\u211A\",rbarr:\"\\u290D\",rbbrk:\"\\u2773\",rbrace:\"}\",rbrack:\"]\",rbrke:\"\\u298C\",rbrksld:\"\\u298E\",rbrkslu:\"\\u2990\",rcaron:\"\\u0159\",rcedil:\"\\u0157\",rceil:\"\\u2309\",rcub:\"}\",rcy:\"\\u0440\",rdca:\"\\u2937\",rdldhar:\"\\u2969\",rdquo:\"\\u201D\",rdquor:\"\\u201D\",rdsh:\"\\u21B3\",real:\"\\u211C\",realine:\"\\u211B\",realpart:\"\\u211C\",reals:\"\\u211D\",rect:\"\\u25AD\",re:\"\\xAE\",reg:\"\\xAE\",rfisht:\"\\u297D\",rfloor:\"\\u230B\",rfr:\"\\u{1D52F}\",rhard:\"\\u21C1\",rharu:\"\\u21C0\",rharul:\"\\u296C\",rho:\"\\u03C1\",rhov:\"\\u03F1\",rightarrow:\"\\u2192\",rightarrowtail:\"\\u21A3\",rightharpoondown:\"\\u21C1\",rightharpoonup:\"\\u21C0\",rightleftarrows:\"\\u21C4\",rightleftharpoons:\"\\u21CC\",rightrightarrows:\"\\u21C9\",rightsquigarrow:\"\\u219D\",rightthreetimes:\"\\u22CC\",ring:\"\\u02DA\",risingdotseq:\"\\u2253\",rlarr:\"\\u21C4\",rlhar:\"\\u21CC\",rlm:\"\\u200F\",rmoust:\"\\u23B1\",rmoustache:\"\\u23B1\",rnmid:\"\\u2AEE\",roang:\"\\u27ED\",roarr:\"\\u21FE\",robrk:\"\\u27E7\",ropar:\"\\u2986\",ropf:\"\\u{1D563}\",roplus:\"\\u2A2E\",rotimes:\"\\u2A35\",rpar:\")\",rpargt:\"\\u2994\",rppolint:\"\\u2A12\",rrarr:\"\\u21C9\",rsaquo:\"\\u203A\",rscr:\"\\u{1D4C7}\",rsh:\"\\u21B1\",rsqb:\"]\",rsquo:\"\\u2019\",rsquor:\"\\u2019\",rthree:\"\\u22CC\",rtimes:\"\\u22CA\",rtri:\"\\u25B9\",rtrie:\"\\u22B5\",rtrif:\"\\u25B8\",rtriltri:\"\\u29CE\",ruluhar:\"\\u2968\",rx:\"\\u211E\",sacute:\"\\u015B\",sbquo:\"\\u201A\",sc:\"\\u227B\",scE:\"\\u2AB4\",scap:\"\\u2AB8\",scaron:\"\\u0161\",sccue:\"\\u227D\",sce:\"\\u2AB0\",scedil:\"\\u015F\",scirc:\"\\u015D\",scnE:\"\\u2AB6\",scnap:\"\\u2ABA\",scnsim:\"\\u22E9\",scpolint:\"\\u2A13\",scsim:\"\\u227F\",scy:\"\\u0441\",sdot:\"\\u22C5\",sdotb:\"\\u22A1\",sdote:\"\\u2A66\",seArr:\"\\u21D8\",searhk:\"\\u2925\",searr:\"\\u2198\",searrow:\"\\u2198\",sec:\"\\xA7\",sect:\"\\xA7\",semi:\";\",seswar:\"\\u2929\",setminus:\"\\u2216\",setmn:\"\\u2216\",sext:\"\\u2736\",sfr:\"\\u{1D530}\",sfrown:\"\\u2322\",sharp:\"\\u266F\",shchcy:\"\\u0449\",shcy:\"\\u0448\",shortmid:\"\\u2223\",shortparallel:\"\\u2225\",sh:\"\\xAD\",shy:\"\\xAD\",sigma:\"\\u03C3\",sigmaf:\"\\u03C2\",sigmav:\"\\u03C2\",sim:\"\\u223C\",simdot:\"\\u2A6A\",sime:\"\\u2243\",simeq:\"\\u2243\",simg:\"\\u2A9E\",simgE:\"\\u2AA0\",siml:\"\\u2A9D\",simlE:\"\\u2A9F\",simne:\"\\u2246\",simplus:\"\\u2A24\",simrarr:\"\\u2972\",slarr:\"\\u2190\",smallsetminus:\"\\u2216\",smashp:\"\\u2A33\",smeparsl:\"\\u29E4\",smid:\"\\u2223\",smile:\"\\u2323\",smt:\"\\u2AAA\",smte:\"\\u2AAC\",smtes:\"\\u2AAC\\uFE00\",softcy:\"\\u044C\",sol:\"/\",solb:\"\\u29C4\",solbar:\"\\u233F\",sopf:\"\\u{1D564}\",spades:\"\\u2660\",spadesuit:\"\\u2660\",spar:\"\\u2225\",sqcap:\"\\u2293\",sqcaps:\"\\u2293\\uFE00\",sqcup:\"\\u2294\",sqcups:\"\\u2294\\uFE00\",sqsub:\"\\u228F\",sqsube:\"\\u2291\",sqsubset:\"\\u228F\",sqsubseteq:\"\\u2291\",sqsup:\"\\u2290\",sqsupe:\"\\u2292\",sqsupset:\"\\u2290\",sqsupseteq:\"\\u2292\",squ:\"\\u25A1\",square:\"\\u25A1\",squarf:\"\\u25AA\",squf:\"\\u25AA\",srarr:\"\\u2192\",sscr:\"\\u{1D4C8}\",ssetmn:\"\\u2216\",ssmile:\"\\u2323\",sstarf:\"\\u22C6\",star:\"\\u2606\",starf:\"\\u2605\",straightepsilon:\"\\u03F5\",straightphi:\"\\u03D5\",strns:\"\\xAF\",sub:\"\\u2282\",subE:\"\\u2AC5\",subdot:\"\\u2ABD\",sube:\"\\u2286\",subedot:\"\\u2AC3\",submult:\"\\u2AC1\",subnE:\"\\u2ACB\",subne:\"\\u228A\",subplus:\"\\u2ABF\",subrarr:\"\\u2979\",subset:\"\\u2282\",subseteq:\"\\u2286\",subseteqq:\"\\u2AC5\",subsetneq:\"\\u228A\",subsetneqq:\"\\u2ACB\",subsim:\"\\u2AC7\",subsub:\"\\u2AD5\",subsup:\"\\u2AD3\",succ:\"\\u227B\",succapprox:\"\\u2AB8\",succcurlyeq:\"\\u227D\",succeq:\"\\u2AB0\",succnapprox:\"\\u2ABA\",succneqq:\"\\u2AB6\",succnsim:\"\\u22E9\",succsim:\"\\u227F\",sum:\"\\u2211\",sung:\"\\u266A\",sup:\"\\u2283\",sup1:\"\\xB9\",sup2:\"\\xB2\",sup3:\"\\xB3\",supE:\"\\u2AC6\",supdot:\"\\u2ABE\",supdsub:\"\\u2AD8\",supe:\"\\u2287\",supedot:\"\\u2AC4\",suphsol:\"\\u27C9\",suphsub:\"\\u2AD7\",suplarr:\"\\u297B\",supmult:\"\\u2AC2\",supnE:\"\\u2ACC\",supne:\"\\u228B\",supplus:\"\\u2AC0\",supset:\"\\u2283\",supseteq:\"\\u2287\",supseteqq:\"\\u2AC6\",supsetneq:\"\\u228B\",supsetneqq:\"\\u2ACC\",supsim:\"\\u2AC8\",supsub:\"\\u2AD4\",supsup:\"\\u2AD6\",swArr:\"\\u21D9\",swarhk:\"\\u2926\",swarr:\"\\u2199\",swarrow:\"\\u2199\",swnwar:\"\\u292A\",szli:\"\\xDF\",szlig:\"\\xDF\",target:\"\\u2316\",tau:\"\\u03C4\",tbrk:\"\\u23B4\",tcaron:\"\\u0165\",tcedil:\"\\u0163\",tcy:\"\\u0442\",tdot:\"\\u20DB\",telrec:\"\\u2315\",tfr:\"\\u{1D531}\",there4:\"\\u2234\",therefore:\"\\u2234\",theta:\"\\u03B8\",thetasym:\"\\u03D1\",thetav:\"\\u03D1\",thickapprox:\"\\u2248\",thicksim:\"\\u223C\",thinsp:\"\\u2009\",thkap:\"\\u2248\",thksim:\"\\u223C\",thor:\"\\xFE\",thorn:\"\\xFE\",tilde:\"\\u02DC\",time:\"\\xD7\",times:\"\\xD7\",timesb:\"\\u22A0\",timesbar:\"\\u2A31\",timesd:\"\\u2A30\",tint:\"\\u222D\",toea:\"\\u2928\",top:\"\\u22A4\",topbot:\"\\u2336\",topcir:\"\\u2AF1\",topf:\"\\u{1D565}\",topfork:\"\\u2ADA\",tosa:\"\\u2929\",tprime:\"\\u2034\",trade:\"\\u2122\",triangle:\"\\u25B5\",triangledown:\"\\u25BF\",triangleleft:\"\\u25C3\",trianglelefteq:\"\\u22B4\",triangleq:\"\\u225C\",triangleright:\"\\u25B9\",trianglerighteq:\"\\u22B5\",tridot:\"\\u25EC\",trie:\"\\u225C\",triminus:\"\\u2A3A\",triplus:\"\\u2A39\",trisb:\"\\u29CD\",tritime:\"\\u2A3B\",trpezium:\"\\u23E2\",tscr:\"\\u{1D4C9}\",tscy:\"\\u0446\",tshcy:\"\\u045B\",tstrok:\"\\u0167\",twixt:\"\\u226C\",twoheadleftarrow:\"\\u219E\",twoheadrightarrow:\"\\u21A0\",uArr:\"\\u21D1\",uHar:\"\\u2963\",uacut:\"\\xFA\",uacute:\"\\xFA\",uarr:\"\\u2191\",ubrcy:\"\\u045E\",ubreve:\"\\u016D\",ucir:\"\\xFB\",ucirc:\"\\xFB\",ucy:\"\\u0443\",udarr:\"\\u21C5\",udblac:\"\\u0171\",udhar:\"\\u296E\",ufisht:\"\\u297E\",ufr:\"\\u{1D532}\",ugrav:\"\\xF9\",ugrave:\"\\xF9\",uharl:\"\\u21BF\",uharr:\"\\u21BE\",uhblk:\"\\u2580\",ulcorn:\"\\u231C\",ulcorner:\"\\u231C\",ulcrop:\"\\u230F\",ultri:\"\\u25F8\",umacr:\"\\u016B\",um:\"\\xA8\",uml:\"\\xA8\",uogon:\"\\u0173\",uopf:\"\\u{1D566}\",uparrow:\"\\u2191\",updownarrow:\"\\u2195\",upharpoonleft:\"\\u21BF\",upharpoonright:\"\\u21BE\",uplus:\"\\u228E\",upsi:\"\\u03C5\",upsih:\"\\u03D2\",upsilon:\"\\u03C5\",upuparrows:\"\\u21C8\",urcorn:\"\\u231D\",urcorner:\"\\u231D\",urcrop:\"\\u230E\",uring:\"\\u016F\",urtri:\"\\u25F9\",uscr:\"\\u{1D4CA}\",utdot:\"\\u22F0\",utilde:\"\\u0169\",utri:\"\\u25B5\",utrif:\"\\u25B4\",uuarr:\"\\u21C8\",uum:\"\\xFC\",uuml:\"\\xFC\",uwangle:\"\\u29A7\",vArr:\"\\u21D5\",vBar:\"\\u2AE8\",vBarv:\"\\u2AE9\",vDash:\"\\u22A8\",vangrt:\"\\u299C\",varepsilon:\"\\u03F5\",varkappa:\"\\u03F0\",varnothing:\"\\u2205\",varphi:\"\\u03D5\",varpi:\"\\u03D6\",varpropto:\"\\u221D\",varr:\"\\u2195\",varrho:\"\\u03F1\",varsigma:\"\\u03C2\",varsubsetneq:\"\\u228A\\uFE00\",varsubsetneqq:\"\\u2ACB\\uFE00\",varsupsetneq:\"\\u228B\\uFE00\",varsupsetneqq:\"\\u2ACC\\uFE00\",vartheta:\"\\u03D1\",vartriangleleft:\"\\u22B2\",vartriangleright:\"\\u22B3\",vcy:\"\\u0432\",vdash:\"\\u22A2\",vee:\"\\u2228\",veebar:\"\\u22BB\",veeeq:\"\\u225A\",vellip:\"\\u22EE\",verbar:\"|\",vert:\"|\",vfr:\"\\u{1D533}\",vltri:\"\\u22B2\",vnsub:\"\\u2282\\u20D2\",vnsup:\"\\u2283\\u20D2\",vopf:\"\\u{1D567}\",vprop:\"\\u221D\",vrtri:\"\\u22B3\",vscr:\"\\u{1D4CB}\",vsubnE:\"\\u2ACB\\uFE00\",vsubne:\"\\u228A\\uFE00\",vsupnE:\"\\u2ACC\\uFE00\",vsupne:\"\\u228B\\uFE00\",vzigzag:\"\\u299A\",wcirc:\"\\u0175\",wedbar:\"\\u2A5F\",wedge:\"\\u2227\",wedgeq:\"\\u2259\",weierp:\"\\u2118\",wfr:\"\\u{1D534}\",wopf:\"\\u{1D568}\",wp:\"\\u2118\",wr:\"\\u2240\",wreath:\"\\u2240\",wscr:\"\\u{1D4CC}\",xcap:\"\\u22C2\",xcirc:\"\\u25EF\",xcup:\"\\u22C3\",xdtri:\"\\u25BD\",xfr:\"\\u{1D535}\",xhArr:\"\\u27FA\",xharr:\"\\u27F7\",xi:\"\\u03BE\",xlArr:\"\\u27F8\",xlarr:\"\\u27F5\",xmap:\"\\u27FC\",xnis:\"\\u22FB\",xodot:\"\\u2A00\",xopf:\"\\u{1D569}\",xoplus:\"\\u2A01\",xotime:\"\\u2A02\",xrArr:\"\\u27F9\",xrarr:\"\\u27F6\",xscr:\"\\u{1D4CD}\",xsqcup:\"\\u2A06\",xuplus:\"\\u2A04\",xutri:\"\\u25B3\",xvee:\"\\u22C1\",xwedge:\"\\u22C0\",yacut:\"\\xFD\",yacute:\"\\xFD\",yacy:\"\\u044F\",ycirc:\"\\u0177\",ycy:\"\\u044B\",ye:\"\\xA5\",yen:\"\\xA5\",yfr:\"\\u{1D536}\",yicy:\"\\u0457\",yopf:\"\\u{1D56A}\",yscr:\"\\u{1D4CE}\",yucy:\"\\u044E\",yum:\"\\xFF\",yuml:\"\\xFF\",zacute:\"\\u017A\",zcaron:\"\\u017E\",zcy:\"\\u0437\",zdot:\"\\u017C\",zeetrf:\"\\u2128\",zeta:\"\\u03B6\",zfr:\"\\u{1D537}\",zhcy:\"\\u0436\",zigrarr:\"\\u21DD\",zopf:\"\\u{1D56B}\",zscr:\"\\u{1D4CF}\",zwj:\"\\u200D\",zwnj:\"\\u200C\"};}});var require_decode_entity=__commonJS({\"../../node_modules/parse-entities/decode-entity.js\"(exports,module){var characterEntities=require_character_entities();module.exports=decodeEntity;var own={}.hasOwnProperty;function decodeEntity(characters){return own.call(characterEntities,characters)?characterEntities[characters]:!1}}});var require_parse_entities=__commonJS({\"../../node_modules/parse-entities/index.js\"(exports,module){var legacy=require_character_entities_legacy(),invalid=require_character_reference_invalid(),decimal=require_is_decimal(),hexadecimal=require_is_hexadecimal(),alphanumerical=require_is_alphanumerical(),decodeEntity=require_decode_entity();module.exports=parseEntities;var own={}.hasOwnProperty,fromCharCode=String.fromCharCode,noop=Function.prototype,defaults={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},tab=9,lineFeed=10,formFeed=12,space=32,ampersand=38,semicolon=59,lessThan=60,equalsTo=61,numberSign=35,uppercaseX=88,lowercaseX=120,replacementCharacter=65533,name=\"named\",hexa=\"hexadecimal\",deci=\"decimal\",bases={};bases[hexa]=16;bases[deci]=10;var tests={};tests[name]=alphanumerical;tests[deci]=decimal;tests[hexa]=hexadecimal;var namedNotTerminated=1,numericNotTerminated=2,namedEmpty=3,numericEmpty=4,namedUnknown=5,numericDisallowed=6,numericProhibited=7,messages={};messages[namedNotTerminated]=\"Named character references must be terminated by a semicolon\";messages[numericNotTerminated]=\"Numeric character references must be terminated by a semicolon\";messages[namedEmpty]=\"Named character references cannot be empty\";messages[numericEmpty]=\"Numeric character references cannot be empty\";messages[namedUnknown]=\"Named character references must be known\";messages[numericDisallowed]=\"Numeric character references cannot be disallowed\";messages[numericProhibited]=\"Numeric character references cannot be outside the permissible Unicode range\";function parseEntities(value,options){var settings={},option,key;options||(options={});for(key in defaults)option=options[key],settings[key]=option??defaults[key];return (settings.position.indent||settings.position.start)&&(settings.indent=settings.position.indent||[],settings.position=settings.position.start),parse(value,settings)}function parse(value,settings){var additional=settings.additional,nonTerminated=settings.nonTerminated,handleText=settings.text,handleReference=settings.reference,handleWarning=settings.warning,textContext=settings.textContext,referenceContext=settings.referenceContext,warningContext=settings.warningContext,pos=settings.position,indent=settings.indent||[],length=value.length,index=0,lines=-1,column=pos.column||1,line=pos.line||1,queue=\"\",result=[],entityCharacters,namedEntity,terminated,characters,character,reference,following,warning,reason,output,entity,begin,start,type,test,prev,next,diff,end;for(typeof additional==\"string\"&&(additional=additional.charCodeAt(0)),prev=now(),warning=handleWarning?parseError:noop,index--,length++;++index65535&&(reference-=65536,output+=fromCharCode(reference>>>10|55296),reference=56320|reference&1023),reference=output+fromCharCode(reference))):type!==name&&warning(numericEmpty,diff)),reference?(flush(),prev=now(),index=end-1,column+=end-start+1,result.push(reference),next=now(),next.offset++,handleReference&&handleReference.call(referenceContext,reference,{start:prev,end:next},value.slice(start-1,end)),prev=next):(characters=value.slice(start-1,end),queue+=characters,column+=characters.length,index=end-1);}else character===10&&(line++,lines++,column=0),character===character?(queue+=fromCharCode(character),column++):flush();return result.join(\"\");function now(){return {line,column,offset:index+(pos.offset||0)}}function parseError(code,offset){var position=now();position.column+=offset,position.offset+=offset,handleWarning.call(warningContext,messages[code],position,code);}function flush(){queue&&(result.push(queue),handleText&&handleText.call(textContext,queue,{start:prev,end:now()}),queue=\"\");}}function prohibited(code){return code>=55296&&code<=57343||code>1114111}function disallowed(code){return code>=1&&code<=8||code===11||code>=13&&code<=31||code>=127&&code<=159||code>=64976&&code<=65007||(code&65535)===65535||(code&65535)===65534}}});var require_prism_core=__commonJS({\"../../node_modules/refractor/node_modules/prismjs/components/prism-core.js\"(exports,module){var _self=typeof window<\"u\"?window:typeof WorkerGlobalScope<\"u\"&&self instanceof WorkerGlobalScope?self:{};var Prism=function(_self2){var lang=/(?:^|\\s)lang(?:uage)?-([\\w-]+)(?=\\s|$)/i,uniqueId=0,plainTextGrammar={},_={manual:_self2.Prism&&_self2.Prism.manual,disableWorkerMessageHandler:_self2.Prism&&_self2.Prism.disableWorkerMessageHandler,util:{encode:function encode(tokens){return tokens instanceof Token?new Token(tokens.type,encode(tokens.content),tokens.alias):Array.isArray(tokens)?tokens.map(encode):tokens.replace(/&/g,\"&\").replace(/\"u\")return null;if(\"currentScript\"in document&&1<2)return document.currentScript;try{throw new Error}catch(err){var src=(/at [^(\\r\\n]*\\((.*):[^:]+:[^:]+\\)$/i.exec(err.stack)||[])[1];if(src){var scripts=document.getElementsByTagName(\"script\");for(var i in scripts)if(scripts[i].src==src)return scripts[i]}return null}},isActive:function(element,className,defaultActivation){for(var no=\"no-\"+className;element;){var classList=element.classList;if(classList.contains(className))return !0;if(classList.contains(no))return !1;element=element.parentElement;}return !!defaultActivation}},languages:{plain:plainTextGrammar,plaintext:plainTextGrammar,text:plainTextGrammar,txt:plainTextGrammar,extend:function(id,redef){var lang2=_.util.clone(_.languages[id]);for(var key in redef)lang2[key]=redef[key];return lang2},insertBefore:function(inside,before,insert,root){root=root||_.languages;var grammar=root[inside],ret={};for(var token in grammar)if(grammar.hasOwnProperty(token)){if(token==before)for(var newToken in insert)insert.hasOwnProperty(newToken)&&(ret[newToken]=insert[newToken]);insert.hasOwnProperty(token)||(ret[token]=grammar[token]);}var old=root[inside];return root[inside]=ret,_.languages.DFS(_.languages,function(key,value){value===old&&key!=inside&&(this[key]=ret);}),ret},DFS:function DFS(o,callback,type,visited){visited=visited||{};var objId=_.util.objId;for(var i in o)if(o.hasOwnProperty(i)){callback.call(o,i,o[i],type||i);var property=o[i],propertyType=_.util.type(property);propertyType===\"Object\"&&!visited[objId(property)]?(visited[objId(property)]=!0,DFS(property,callback,null,visited)):propertyType===\"Array\"&&!visited[objId(property)]&&(visited[objId(property)]=!0,DFS(property,callback,i,visited));}}},plugins:{},highlightAll:function(async,callback){_.highlightAllUnder(document,async,callback);},highlightAllUnder:function(container,async,callback){var env={callback,container,selector:'code[class*=\"language-\"], [class*=\"language-\"] code, code[class*=\"lang-\"], [class*=\"lang-\"] code'};_.hooks.run(\"before-highlightall\",env),env.elements=Array.prototype.slice.apply(env.container.querySelectorAll(env.selector)),_.hooks.run(\"before-all-elements-highlight\",env);for(var i=0,element;element=env.elements[i++];)_.highlightElement(element,async===!0,env.callback);},highlightElement:function(element,async,callback){var language=_.util.getLanguage(element),grammar=_.languages[language];_.util.setLanguage(element,language);var parent=element.parentElement;parent&&parent.nodeName.toLowerCase()===\"pre\"&&_.util.setLanguage(parent,language);var code=element.textContent,env={element,language,grammar,code};function insertHighlightedCode(highlightedCode){env.highlightedCode=highlightedCode,_.hooks.run(\"before-insert\",env),env.element.innerHTML=env.highlightedCode,_.hooks.run(\"after-highlight\",env),_.hooks.run(\"complete\",env),callback&&callback.call(env.element);}if(_.hooks.run(\"before-sanity-check\",env),parent=env.element.parentElement,parent&&parent.nodeName.toLowerCase()===\"pre\"&&!parent.hasAttribute(\"tabindex\")&&parent.setAttribute(\"tabindex\",\"0\"),!env.code){_.hooks.run(\"complete\",env),callback&&callback.call(env.element);return}if(_.hooks.run(\"before-highlight\",env),!env.grammar){insertHighlightedCode(_.util.encode(env.code));return}if(async&&_self2.Worker){var worker=new Worker(_.filename);worker.onmessage=function(evt){insertHighlightedCode(evt.data);},worker.postMessage(JSON.stringify({language:env.language,code:env.code,immediateClose:!0}));}else insertHighlightedCode(_.highlight(env.code,env.grammar,env.language));},highlight:function(text,grammar,language){var env={code:text,grammar,language};if(_.hooks.run(\"before-tokenize\",env),!env.grammar)throw new Error('The language \"'+env.language+'\" has no grammar.');return env.tokens=_.tokenize(env.code,env.grammar),_.hooks.run(\"after-tokenize\",env),Token.stringify(_.util.encode(env.tokens),env.language)},tokenize:function(text,grammar){var rest=grammar.rest;if(rest){for(var token in rest)grammar[token]=rest[token];delete grammar.rest;}var tokenList=new LinkedList;return addAfter(tokenList,tokenList.head,text),matchGrammar(text,tokenList,grammar,tokenList.head,0),toArray(tokenList)},hooks:{all:{},add:function(name,callback){var hooks=_.hooks.all;hooks[name]=hooks[name]||[],hooks[name].push(callback);},run:function(name,env){var callbacks=_.hooks.all[name];if(!(!callbacks||!callbacks.length))for(var i=0,callback;callback=callbacks[i++];)callback(env);}},Token};_self2.Prism=_;function Token(type,content,alias,matchedStr){this.type=type,this.content=content,this.alias=alias,this.length=(matchedStr||\"\").length|0;}Token.stringify=function stringify(o,language){if(typeof o==\"string\")return o;if(Array.isArray(o)){var s=\"\";return o.forEach(function(e){s+=stringify(e,language);}),s}var env={type:o.type,content:stringify(o.content,language),tag:\"span\",classes:[\"token\",o.type],attributes:{},language},aliases=o.alias;aliases&&(Array.isArray(aliases)?Array.prototype.push.apply(env.classes,aliases):env.classes.push(aliases)),_.hooks.run(\"wrap\",env);var attributes=\"\";for(var name in env.attributes)attributes+=\" \"+name+'=\"'+(env.attributes[name]||\"\").replace(/\"/g,\""\")+'\"';return \"<\"+env.tag+' class=\"'+env.classes.join(\" \")+'\"'+attributes+\">\"+env.content+\"\"};function matchPattern(pattern,pos,text,lookbehind){pattern.lastIndex=pos;var match=pattern.exec(text);if(match&&lookbehind&&match[1]){var lookbehindLength=match[1].length;match.index+=lookbehindLength,match[0]=match[0].slice(lookbehindLength);}return match}function matchGrammar(text,tokenList,grammar,startNode,startPos,rematch){for(var token in grammar)if(!(!grammar.hasOwnProperty(token)||!grammar[token])){var patterns=grammar[token];patterns=Array.isArray(patterns)?patterns:[patterns];for(var j=0;j=rematch.reach);pos+=currentNode.value.length,currentNode=currentNode.next){var str=currentNode.value;if(tokenList.length>text.length)return;if(!(str instanceof Token)){var removeCount=1,match;if(greedy){if(match=matchPattern(pattern,pos,text,lookbehind),!match||match.index>=text.length)break;var from=match.index,to=match.index+match[0].length,p=pos;for(p+=currentNode.value.length;from>=p;)currentNode=currentNode.next,p+=currentNode.value.length;if(p-=currentNode.value.length,pos=p,currentNode.value instanceof Token)continue;for(var k=currentNode;k!==tokenList.tail&&(prematch.reach&&(rematch.reach=reach);var removeFrom=currentNode.prev;before&&(removeFrom=addAfter(tokenList,removeFrom,before),pos+=before.length),removeRange(tokenList,removeFrom,removeCount);var wrapped=new Token(token,inside?_.tokenize(matchStr,inside):matchStr,alias,matchStr);if(currentNode=addAfter(tokenList,removeFrom,wrapped),after&&addAfter(tokenList,currentNode,after),removeCount>1){var nestedRematch={cause:token+\",\"+j,reach};matchGrammar(text,tokenList,grammar,currentNode.prev,pos,nestedRematch),rematch&&nestedRematch.reach>rematch.reach&&(rematch.reach=nestedRematch.reach);}}}}}}function LinkedList(){var head={value:null,prev:null,next:null},tail={value:null,prev:head,next:null};head.next=tail,this.head=head,this.tail=tail,this.length=0;}function addAfter(list,node,value){var next=node.next,newNode={value,prev:node,next};return node.next=newNode,next.prev=newNode,list.length++,newNode}function removeRange(list,node,count){for(var next=node.next,i=0;i>=?|&&|\\|\\||[=!+\\-*/%<>^&|]=?|[?~:]/,punctuation:/\\(\\(?|\\)\\)?|,|;/}},{pattern:/\\$\\((?:\\([^)]+\\)|[^()])+\\)|`[^`]+`/,greedy:!0,inside:{variable:/^\\$\\(|^`|\\)$|`$/}},{pattern:/\\$\\{[^}]+\\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\\/]|##?|%%?|\\^\\^?|,,?/,punctuation:/[\\[\\]]/,environment:{pattern:RegExp(\"(\\\\{)\"+envVars),lookbehind:!0,alias:\"constant\"}}},/\\$(?:\\w+|[#?*!@$])/],entity:/\\\\(?:[abceEfnrtv\\\\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};Prism2.languages.bash={shebang:{pattern:/^#!\\s*\\/.*/,alias:\"important\"},comment:{pattern:/(^|[^\"{\\\\$])#.*/,lookbehind:!0},\"function-name\":[{pattern:/(\\bfunction\\s+)[\\w-]+(?=(?:\\s*\\(?:\\s*\\))?\\s*\\{)/,lookbehind:!0,alias:\"function\"},{pattern:/\\b[\\w-]+(?=\\s*\\(\\s*\\)\\s*\\{)/,alias:\"function\"}],\"for-or-select\":{pattern:/(\\b(?:for|select)\\s+)\\w+(?=\\s+in\\s)/,alias:\"variable\",lookbehind:!0},\"assign-left\":{pattern:/(^|[\\s;|&]|[<>]\\()\\w+(?=\\+?=)/,inside:{environment:{pattern:RegExp(\"(^|[\\\\s;|&]|[<>]\\\\()\"+envVars),lookbehind:!0,alias:\"constant\"}},alias:\"variable\",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\\s*)(\\w+)\\s[\\s\\S]*?(?:\\r?\\n|\\r)\\2/,lookbehind:!0,greedy:!0,inside:insideString},{pattern:/((?:^|[^<])<<-?\\s*)([\"'])(\\w+)\\2\\s[\\s\\S]*?(?:\\r?\\n|\\r)\\3/,lookbehind:!0,greedy:!0,inside:{bash:commandAfterHeredoc}},{pattern:/(^|[^\\\\](?:\\\\\\\\)*)\"(?:\\\\[\\s\\S]|\\$\\([^)]+\\)|\\$(?!\\()|`[^`]+`|[^\"\\\\`$])*\"/,lookbehind:!0,greedy:!0,inside:insideString},{pattern:/(^|[^$\\\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\\$'(?:[^'\\\\]|\\\\[\\s\\S])*'/,greedy:!0,inside:{entity:insideString.entity}}],environment:{pattern:RegExp(\"\\\\$?\"+envVars),alias:\"constant\"},variable:insideString.variable,function:{pattern:/(^|[\\s;|&]|[<>]\\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\\s;|&]|[<>]\\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\\s;|&]|[<>]\\()(?:\\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\\s;|&])/,lookbehind:!0,alias:\"class-name\"},boolean:{pattern:/(^|[\\s;|&]|[<>]\\()(?:false|true)(?=$|[)\\s;|&])/,lookbehind:!0},\"file-descriptor\":{pattern:/\\B&\\d\\b/,alias:\"important\"},operator:{pattern:/\\d?<>|>\\||\\+=|=[=~]?|!=?|<<[<-]?|[&\\d]?>>|\\d[<>]&?|[<>][&=]?|&[>&]?|\\|[&|]?/,inside:{\"file-descriptor\":{pattern:/^\\d/,alias:\"important\"}}},punctuation:/\\$?\\(\\(?|\\)\\)?|\\.\\.|[{}[\\];\\\\]/,number:{pattern:/(^|\\s)(?:[1-9]\\d*|0)(?:[.,]\\d+)?\\b/,lookbehind:!0}},commandAfterHeredoc.inside=Prism2.languages.bash;for(var toBeCopied=[\"comment\",\"function-name\",\"for-or-select\",\"assign-left\",\"string\",\"environment\",\"function\",\"keyword\",\"builtin\",\"boolean\",\"file-descriptor\",\"operator\",\"punctuation\",\"number\"],inside=insideString.variable[1].inside,i=0;i/g,function(){return /(?!\\s)[_$a-zA-Z\\xA0-\\uFFFF](?:(?!\\s)[$\\w\\xA0-\\uFFFF])*/.source}),flags)}Prism2.languages.insertBefore(\"javascript\",\"keyword\",{imports:{pattern:withId(/(\\bimport\\b\\s*)(?:(?:\\s*,\\s*(?:\\*\\s*as\\s+|\\{[^{}]*\\}))?|\\*\\s*as\\s+|\\{[^{}]*\\})(?=\\s*\\bfrom\\b)/.source),lookbehind:!0,inside:Prism2.languages.javascript},exports:{pattern:withId(/(\\bexport\\b\\s*)(?:\\*(?:\\s*as\\s+)?(?=\\s*\\bfrom\\b)|\\{[^{}]*\\})/.source),lookbehind:!0,inside:Prism2.languages.javascript}}),Prism2.languages.javascript.keyword.unshift({pattern:/\\b(?:as|default|export|from|import)\\b/,alias:\"module\"},{pattern:/\\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\\b/,alias:\"control-flow\"},{pattern:/\\bnull\\b/,alias:[\"null\",\"nil\"]},{pattern:/\\bundefined\\b/,alias:\"nil\"}),Prism2.languages.insertBefore(\"javascript\",\"operator\",{spread:{pattern:/\\.{3}/,alias:\"operator\"},arrow:{pattern:/=>/,alias:\"operator\"}}),Prism2.languages.insertBefore(\"javascript\",\"punctuation\",{\"property-access\":{pattern:withId(/(\\.\\s*)#?/.source),lookbehind:!0},\"maybe-class-name\":{pattern:/(^|[^$\\w\\xA0-\\uFFFF])[A-Z][$\\w\\xA0-\\uFFFF]+/,lookbehind:!0},dom:{pattern:/\\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\\b/,alias:\"variable\"},console:{pattern:/\\bconsole(?=\\s*\\.)/,alias:\"class-name\"}});for(var maybeClassNameTokens=[\"function\",\"function-variable\",\"method\",\"method-variable\",\"property-access\"],i=0;i0)){var mutationEnd=findClosingBracket(/^\\{$/,/^\\}$/);if(mutationEnd===-1)continue;for(var i=currentIndex;i=0&&addAlias(varToken,\"variable-input\");}}}}});}}});\n\nexport { require_graphql };\n","import { require_markdown } from './chunk-MUPK3MH6.mjs';\nimport { require_yaml } from './chunk-ISRAU5IP.mjs';\nimport { require_tsx } from './chunk-YU6L2YXV.mjs';\nimport { require_typescript } from './chunk-VSDH24NK.mjs';\nimport { require_core } from './chunk-BNQCH2A2.mjs';\nimport { require_jsx } from './chunk-HNGDCMHD.mjs';\nimport { require_bash } from './chunk-4Y2S2TEP.mjs';\nimport { require_css } from './chunk-CW4JFC2I.mjs';\nimport { require_js_extras } from './chunk-7PYIL73X.mjs';\nimport { require_json } from './chunk-SWV57YYC.mjs';\nimport { require_graphql } from './chunk-MNLJ4LIX.mjs';\nimport { require_markup } from './chunk-DHRX2IL7.mjs';\nimport { __toESM } from './chunk-JRLSWQMA.mjs';\nimport React2, { forwardRef, Children, isValidElement, createElement as createElement$1, cloneElement, useEffect, createContext, useState, useRef, Fragment, useCallback, useLayoutEffect, useMemo, useContext, useReducer } from 'react';\nimport { logger } from '@storybook/client-logger';\nimport { styled } from '@storybook/theming';\nimport { global } from '@storybook/global';\nimport memoize from 'memoizerific';\nimport { flushSync } from 'react-dom';\n\nvar import_jsx=__toESM(require_jsx()),jsx_default=import_jsx.default;var import_bash=__toESM(require_bash()),bash_default=import_bash.default;var import_css=__toESM(require_css()),css_default=import_css.default;var import_js_extras=__toESM(require_js_extras()),js_extras_default=import_js_extras.default;var import_json=__toESM(require_json()),json_default=import_json.default;var import_graphql=__toESM(require_graphql()),graphql_default=import_graphql.default;var import_markup=__toESM(require_markup()),markup_default=import_markup.default;var import_markdown=__toESM(require_markdown()),markdown_default=import_markdown.default;var import_yaml=__toESM(require_yaml()),yaml_default=import_yaml.default;var import_tsx=__toESM(require_tsx()),tsx_default=import_tsx.default;var import_typescript=__toESM(require_typescript()),typescript_default=import_typescript.default;function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return {};var target={},sourceKeys=Object.keys(source),key,i;for(i=0;i=0)&&(target[key]=source[key]);return target}function _objectWithoutProperties(source,excluded){if(source==null)return {};var target=_objectWithoutPropertiesLoose(source,excluded),key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key]);}return target}function _arrayLikeToArray(arr,len){(len==null||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=4)return [arr[0],arr[1],arr[2],arr[3],\"\".concat(arr[0],\".\").concat(arr[1]),\"\".concat(arr[0],\".\").concat(arr[2]),\"\".concat(arr[0],\".\").concat(arr[3]),\"\".concat(arr[1],\".\").concat(arr[0]),\"\".concat(arr[1],\".\").concat(arr[2]),\"\".concat(arr[1],\".\").concat(arr[3]),\"\".concat(arr[2],\".\").concat(arr[0]),\"\".concat(arr[2],\".\").concat(arr[1]),\"\".concat(arr[2],\".\").concat(arr[3]),\"\".concat(arr[3],\".\").concat(arr[0]),\"\".concat(arr[3],\".\").concat(arr[1]),\"\".concat(arr[3],\".\").concat(arr[2]),\"\".concat(arr[0],\".\").concat(arr[1],\".\").concat(arr[2]),\"\".concat(arr[0],\".\").concat(arr[1],\".\").concat(arr[3]),\"\".concat(arr[0],\".\").concat(arr[2],\".\").concat(arr[1]),\"\".concat(arr[0],\".\").concat(arr[2],\".\").concat(arr[3]),\"\".concat(arr[0],\".\").concat(arr[3],\".\").concat(arr[1]),\"\".concat(arr[0],\".\").concat(arr[3],\".\").concat(arr[2]),\"\".concat(arr[1],\".\").concat(arr[0],\".\").concat(arr[2]),\"\".concat(arr[1],\".\").concat(arr[0],\".\").concat(arr[3]),\"\".concat(arr[1],\".\").concat(arr[2],\".\").concat(arr[0]),\"\".concat(arr[1],\".\").concat(arr[2],\".\").concat(arr[3]),\"\".concat(arr[1],\".\").concat(arr[3],\".\").concat(arr[0]),\"\".concat(arr[1],\".\").concat(arr[3],\".\").concat(arr[2]),\"\".concat(arr[2],\".\").concat(arr[0],\".\").concat(arr[1]),\"\".concat(arr[2],\".\").concat(arr[0],\".\").concat(arr[3]),\"\".concat(arr[2],\".\").concat(arr[1],\".\").concat(arr[0]),\"\".concat(arr[2],\".\").concat(arr[1],\".\").concat(arr[3]),\"\".concat(arr[2],\".\").concat(arr[3],\".\").concat(arr[0]),\"\".concat(arr[2],\".\").concat(arr[3],\".\").concat(arr[1]),\"\".concat(arr[3],\".\").concat(arr[0],\".\").concat(arr[1]),\"\".concat(arr[3],\".\").concat(arr[0],\".\").concat(arr[2]),\"\".concat(arr[3],\".\").concat(arr[1],\".\").concat(arr[0]),\"\".concat(arr[3],\".\").concat(arr[1],\".\").concat(arr[2]),\"\".concat(arr[3],\".\").concat(arr[2],\".\").concat(arr[0]),\"\".concat(arr[3],\".\").concat(arr[2],\".\").concat(arr[1]),\"\".concat(arr[0],\".\").concat(arr[1],\".\").concat(arr[2],\".\").concat(arr[3]),\"\".concat(arr[0],\".\").concat(arr[1],\".\").concat(arr[3],\".\").concat(arr[2]),\"\".concat(arr[0],\".\").concat(arr[2],\".\").concat(arr[1],\".\").concat(arr[3]),\"\".concat(arr[0],\".\").concat(arr[2],\".\").concat(arr[3],\".\").concat(arr[1]),\"\".concat(arr[0],\".\").concat(arr[3],\".\").concat(arr[1],\".\").concat(arr[2]),\"\".concat(arr[0],\".\").concat(arr[3],\".\").concat(arr[2],\".\").concat(arr[1]),\"\".concat(arr[1],\".\").concat(arr[0],\".\").concat(arr[2],\".\").concat(arr[3]),\"\".concat(arr[1],\".\").concat(arr[0],\".\").concat(arr[3],\".\").concat(arr[2]),\"\".concat(arr[1],\".\").concat(arr[2],\".\").concat(arr[0],\".\").concat(arr[3]),\"\".concat(arr[1],\".\").concat(arr[2],\".\").concat(arr[3],\".\").concat(arr[0]),\"\".concat(arr[1],\".\").concat(arr[3],\".\").concat(arr[0],\".\").concat(arr[2]),\"\".concat(arr[1],\".\").concat(arr[3],\".\").concat(arr[2],\".\").concat(arr[0]),\"\".concat(arr[2],\".\").concat(arr[0],\".\").concat(arr[1],\".\").concat(arr[3]),\"\".concat(arr[2],\".\").concat(arr[0],\".\").concat(arr[3],\".\").concat(arr[1]),\"\".concat(arr[2],\".\").concat(arr[1],\".\").concat(arr[0],\".\").concat(arr[3]),\"\".concat(arr[2],\".\").concat(arr[1],\".\").concat(arr[3],\".\").concat(arr[0]),\"\".concat(arr[2],\".\").concat(arr[3],\".\").concat(arr[0],\".\").concat(arr[1]),\"\".concat(arr[2],\".\").concat(arr[3],\".\").concat(arr[1],\".\").concat(arr[0]),\"\".concat(arr[3],\".\").concat(arr[0],\".\").concat(arr[1],\".\").concat(arr[2]),\"\".concat(arr[3],\".\").concat(arr[0],\".\").concat(arr[2],\".\").concat(arr[1]),\"\".concat(arr[3],\".\").concat(arr[1],\".\").concat(arr[0],\".\").concat(arr[2]),\"\".concat(arr[3],\".\").concat(arr[1],\".\").concat(arr[2],\".\").concat(arr[0]),\"\".concat(arr[3],\".\").concat(arr[2],\".\").concat(arr[0],\".\").concat(arr[1]),\"\".concat(arr[3],\".\").concat(arr[2],\".\").concat(arr[1],\".\").concat(arr[0])]}var classNameCombinations={};function getClassNameCombinations(classNames){if(classNames.length===0||classNames.length===1)return classNames;var key=classNames.join(\".\");return classNameCombinations[key]||(classNameCombinations[key]=powerSetPermutations(classNames)),classNameCombinations[key]}function createStyleObject(classNames){var elementStyle=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},stylesheet=arguments.length>2?arguments[2]:void 0,nonTokenClassNames=classNames.filter(function(className){return className!==\"token\"}),classNamesCombinations=getClassNameCombinations(nonTokenClassNames);return classNamesCombinations.reduce(function(styleObject,className){return _objectSpread(_objectSpread({},styleObject),stylesheet[className])},elementStyle)}function createClassNameString(classNames){return classNames.join(\" \")}function createChildren(stylesheet,useInlineStyles){var childrenCount=0;return function(children){return childrenCount+=1,children.map(function(child,i){return createElement({node:child,stylesheet,useInlineStyles,key:\"code-segment-\".concat(childrenCount,\"-\").concat(i)})})}}function createElement(_ref){var node=_ref.node,stylesheet=_ref.stylesheet,_ref$style=_ref.style,style=_ref$style===void 0?{}:_ref$style,useInlineStyles=_ref.useInlineStyles,key=_ref.key,properties=node.properties,type=node.type,TagName=node.tagName,value=node.value;if(type===\"text\")return value;if(TagName){var childrenCreator=createChildren(stylesheet,useInlineStyles),props;if(!useInlineStyles)props=_objectSpread(_objectSpread({},properties),{},{className:createClassNameString(properties.className)});else {var allStylesheetSelectors=Object.keys(stylesheet).reduce(function(classes,selector){return selector.split(\".\").forEach(function(className2){classes.includes(className2)||classes.push(className2);}),classes},[]),startingClassName=properties.className&&properties.className.includes(\"token\")?[\"token\"]:[],className=properties.className&&startingClassName.concat(properties.className.filter(function(className2){return !allStylesheetSelectors.includes(className2)}));props=_objectSpread(_objectSpread({},properties),{},{className:createClassNameString(className)||void 0,style:createStyleObject(properties.className,Object.assign({},properties.style,style),stylesheet)});}var children=childrenCreator(node.children);return React2.createElement(TagName,_extends({key},props),children)}}var checkForListedLanguage_default=function(astGenerator,language){var langs=astGenerator.listLanguages();return langs.indexOf(language)!==-1};var _excluded=[\"language\",\"children\",\"style\",\"customStyle\",\"codeTagProps\",\"useInlineStyles\",\"showLineNumbers\",\"showInlineLineNumbers\",\"startingLineNumber\",\"lineNumberContainerStyle\",\"lineNumberStyle\",\"wrapLines\",\"wrapLongLines\",\"lineProps\",\"renderer\",\"PreTag\",\"CodeTag\",\"code\",\"astGenerator\"];function ownKeys2(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}function _objectSpread2(target){for(var i=1;i1&&arguments[1]!==void 0?arguments[1]:[],newTree=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],i=0;i2&&arguments[2]!==void 0?arguments[2]:[];return createLineElement({children:children2,lineNumber:lineNumber2,lineNumberStyle,largestLineNumber,showInlineLineNumbers,lineProps,className,showLineNumbers,wrapLongLines})}function createUnwrappedLine(children2,lineNumber2){if(showLineNumbers&&lineNumber2&&showInlineLineNumbers){var inlineLineNumberStyle=assembleLineNumberStyles(lineNumberStyle,lineNumber2,largestLineNumber);children2.unshift(getInlineLineNumber(lineNumber2,inlineLineNumberStyle));}return children2}function createLine(children2,lineNumber2){var className=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return wrapLines||className.length>0?createWrappedLine(children2,lineNumber2,className):createUnwrappedLine(children2,lineNumber2)}for(var _loop=function(){var node=tree[index],value=node.children[0].value,newLines=getNewLines(value);if(newLines){var splitValue=value.split(`\n`);splitValue.forEach(function(text,i){var lineNumber2=showLineNumbers&&newTree.length+startingLineNumber,newChild={type:\"text\",value:\"\".concat(text,`\n`)};if(i===0){var _children=tree.slice(lastLineBreakIndex+1,index).concat(createLineElement({children:[newChild],className:node.properties.className})),_line=createLine(_children,lineNumber2);newTree.push(_line);}else if(i===splitValue.length-1){var stringChild=tree[index+1]&&tree[index+1].children&&tree[index+1].children[0],lastLineInPreviousSpan={type:\"text\",value:\"\".concat(text)};if(stringChild){var newElem=createLineElement({children:[lastLineInPreviousSpan],className:node.properties.className});tree.splice(index+1,0,newElem);}else {var _children2=[lastLineInPreviousSpan],_line2=createLine(_children2,lineNumber2,node.properties.className);newTree.push(_line2);}}else {var _children3=[newChild],_line3=createLine(_children3,lineNumber2,node.properties.className);newTree.push(_line3);}}),lastLineBreakIndex=index;}index++;};index({position:\"absolute\",bottom:0,right:0,maxWidth:\"100%\",display:\"flex\",background:theme.background.content,zIndex:1})),ActionButton=styled.button(({theme})=>({margin:0,border:\"0 none\",padding:\"4px 10px\",cursor:\"pointer\",display:\"flex\",alignItems:\"center\",color:theme.color.defaultText,background:theme.background.content,fontSize:12,lineHeight:\"16px\",fontFamily:theme.typography.fonts.base,fontWeight:theme.typography.weight.bold,borderTop:`1px solid ${theme.appBorderColor}`,borderLeft:`1px solid ${theme.appBorderColor}`,marginLeft:-1,borderRadius:\"4px 0 0 0\",\"&:not(:last-child)\":{borderRight:`1px solid ${theme.appBorderColor}`},\"& + *\":{borderLeft:`1px solid ${theme.appBorderColor}`,borderRadius:0},\"&:focus\":{boxShadow:`${theme.color.secondary} 0 -3px 0 0 inset`,outline:\"0 none\"}}),({disabled})=>disabled&&{cursor:\"not-allowed\",opacity:.5});ActionButton.displayName=\"ActionButton\";var ActionBar=({actionItems,...props})=>React2.createElement(Container,{...props},actionItems.map(({title,className,onClick,disabled},index)=>React2.createElement(ActionButton,{key:index,className,onClick,disabled},title)));function _extends2(){return _extends2=Object.assign?Object.assign.bind():function(target){for(var i=1;irefs.forEach(ref=>$6ed0406888f73fc4$var$setRef(ref,node))}function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...refs){return useCallback($6ed0406888f73fc4$export$43e446d32b3d21af(...refs),refs)}var $5e63c961fc1ce211$export$8c6ed5c666ac1360=forwardRef((props,forwardedRef)=>{let{children,...slotProps}=props,childrenArray=Children.toArray(children),slottable=childrenArray.find($5e63c961fc1ce211$var$isSlottable);if(slottable){let newElement=slottable.props.children,newChildren=childrenArray.map(child=>child===slottable?Children.count(newElement)>1?Children.only(null):isValidElement(newElement)?newElement.props.children:null:child);return createElement$1($5e63c961fc1ce211$var$SlotClone,_extends4({},slotProps,{ref:forwardedRef}),isValidElement(newElement)?cloneElement(newElement,void 0,newChildren):null)}return createElement$1($5e63c961fc1ce211$var$SlotClone,_extends4({},slotProps,{ref:forwardedRef}),children)});$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName=\"Slot\";var $5e63c961fc1ce211$var$SlotClone=forwardRef((props,forwardedRef)=>{let{children,...slotProps}=props;return isValidElement(children)?cloneElement(children,{...$5e63c961fc1ce211$var$mergeProps(slotProps,children.props),ref:forwardedRef?$6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef,children.ref):children.ref}):Children.count(children)>1?Children.only(null):null});$5e63c961fc1ce211$var$SlotClone.displayName=\"SlotClone\";var $5e63c961fc1ce211$export$d9f1ccf0bdb05d45=({children})=>createElement$1(Fragment,null,children);function $5e63c961fc1ce211$var$isSlottable(child){return isValidElement(child)&&child.type===$5e63c961fc1ce211$export$d9f1ccf0bdb05d45}function $5e63c961fc1ce211$var$mergeProps(slotProps,childProps){let overrideProps={...childProps};for(let propName in childProps){let slotPropValue=slotProps[propName],childPropValue=childProps[propName];/^on[A-Z]/.test(propName)?slotPropValue&&childPropValue?overrideProps[propName]=(...args)=>{childPropValue(...args),slotPropValue(...args);}:slotPropValue&&(overrideProps[propName]=slotPropValue):propName===\"style\"?overrideProps[propName]={...slotPropValue,...childPropValue}:propName===\"className\"&&(overrideProps[propName]=[slotPropValue,childPropValue].filter(Boolean).join(\" \"));}return {...slotProps,...overrideProps}}var $8927f6f2acc4f386$var$NODES=[\"a\",\"button\",\"div\",\"form\",\"h2\",\"h3\",\"img\",\"input\",\"label\",\"li\",\"nav\",\"ol\",\"p\",\"span\",\"svg\",\"ul\"],$8927f6f2acc4f386$export$250ffa63cdc0d034=$8927f6f2acc4f386$var$NODES.reduce((primitive,node)=>{let Node=forwardRef((props,forwardedRef)=>{let{asChild,...primitiveProps}=props,Comp=asChild?$5e63c961fc1ce211$export$8c6ed5c666ac1360:node;return useEffect(()=>{window[Symbol.for(\"radix-ui\")]=!0;},[]),createElement$1(Comp,_extends3({},primitiveProps,{ref:forwardedRef}))});return Node.displayName=`Primitive.${node}`,{...primitive,[node]:Node}},{});var $9f79659886946c16$export$e5c5a5f917a5871c=globalThis?.document?useLayoutEffect:()=>{};function $fe963b355347cc68$export$3e6543de14f8614f(initialState,machine){return useReducer((state,event)=>{let nextState=machine[state][event];return nextState??state},initialState)}var $921a889cee6df7e8$export$99c2b779aa4e8b8b=props=>{let{present,children}=props,presence=$921a889cee6df7e8$var$usePresence(present),child=typeof children==\"function\"?children({present:presence.isPresent}):Children.only(children),ref=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(presence.ref,child.ref);return typeof children==\"function\"||presence.isPresent?cloneElement(child,{ref}):null};$921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName=\"Presence\";function $921a889cee6df7e8$var$usePresence(present){let[node1,setNode]=useState(),stylesRef=useRef({}),prevPresentRef=useRef(present),prevAnimationNameRef=useRef(\"none\"),initialState=present?\"mounted\":\"unmounted\",[state,send]=$fe963b355347cc68$export$3e6543de14f8614f(initialState,{mounted:{UNMOUNT:\"unmounted\",ANIMATION_OUT:\"unmountSuspended\"},unmountSuspended:{MOUNT:\"mounted\",ANIMATION_END:\"unmounted\"},unmounted:{MOUNT:\"mounted\"}});return useEffect(()=>{let currentAnimationName=$921a889cee6df7e8$var$getAnimationName(stylesRef.current);prevAnimationNameRef.current=state===\"mounted\"?currentAnimationName:\"none\";},[state]),$9f79659886946c16$export$e5c5a5f917a5871c(()=>{let styles=stylesRef.current,wasPresent=prevPresentRef.current;if(wasPresent!==present){let prevAnimationName=prevAnimationNameRef.current,currentAnimationName=$921a889cee6df7e8$var$getAnimationName(styles);present?send(\"MOUNT\"):currentAnimationName===\"none\"||styles?.display===\"none\"?send(\"UNMOUNT\"):send(wasPresent&&prevAnimationName!==currentAnimationName?\"ANIMATION_OUT\":\"UNMOUNT\"),prevPresentRef.current=present;}},[present,send]),$9f79659886946c16$export$e5c5a5f917a5871c(()=>{if(node1){let handleAnimationEnd=event=>{let isCurrentAnimation=$921a889cee6df7e8$var$getAnimationName(stylesRef.current).includes(event.animationName);event.target===node1&&isCurrentAnimation&&flushSync(()=>send(\"ANIMATION_END\"));},handleAnimationStart=event=>{event.target===node1&&(prevAnimationNameRef.current=$921a889cee6df7e8$var$getAnimationName(stylesRef.current));};return node1.addEventListener(\"animationstart\",handleAnimationStart),node1.addEventListener(\"animationcancel\",handleAnimationEnd),node1.addEventListener(\"animationend\",handleAnimationEnd),()=>{node1.removeEventListener(\"animationstart\",handleAnimationStart),node1.removeEventListener(\"animationcancel\",handleAnimationEnd),node1.removeEventListener(\"animationend\",handleAnimationEnd);}}else send(\"ANIMATION_END\");},[node1,send]),{isPresent:[\"mounted\",\"unmountSuspended\"].includes(state),ref:useCallback(node=>{node&&(stylesRef.current=getComputedStyle(node)),setNode(node);},[])}}function $921a889cee6df7e8$var$getAnimationName(styles){return styles?.animationName||\"none\"}function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName,createContextScopeDeps=[]){let defaultContexts=[];function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName,defaultContext){let BaseContext=createContext(defaultContext),index=defaultContexts.length;defaultContexts=[...defaultContexts,defaultContext];function Provider(props){let{scope,children,...context}=props,Context=scope?.[scopeName][index]||BaseContext,value=useMemo(()=>context,Object.values(context));return createElement$1(Context.Provider,{value},children)}function useContext$1(consumerName,scope){let Context=scope?.[scopeName][index]||BaseContext,context=useContext(Context);if(context)return context;if(defaultContext!==void 0)return defaultContext;throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``)}return Provider.displayName=rootComponentName+\"Provider\",[Provider,useContext$1]}let createScope=()=>{let scopeContexts=defaultContexts.map(defaultContext=>createContext(defaultContext));return function(scope){let contexts=scope?.[scopeName]||scopeContexts;return useMemo(()=>({[`__scope${scopeName}`]:{...scope,[scopeName]:contexts}}),[scope,contexts])}};return createScope.scopeName=scopeName,[$c512c27ab02ef895$export$fd42f52fd3ae1109,$c512c27ab02ef895$var$composeContextScopes(createScope,...createContextScopeDeps)]}function $c512c27ab02ef895$var$composeContextScopes(...scopes){let baseScope=scopes[0];if(scopes.length===1)return baseScope;let createScope1=()=>{let scopeHooks=scopes.map(createScope=>({useScope:createScope(),scopeName:createScope.scopeName}));return function(overrideScopes){let nextScopes1=scopeHooks.reduce((nextScopes,{useScope,scopeName})=>{let currentScope=useScope(overrideScopes)[`__scope${scopeName}`];return {...nextScopes,...currentScope}},{});return useMemo(()=>({[`__scope${baseScope.scopeName}`]:nextScopes1}),[nextScopes1])}};return createScope1.scopeName=baseScope.scopeName,createScope1}function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback){let callbackRef=useRef(callback);return useEffect(()=>{callbackRef.current=callback;}),useMemo(()=>(...args)=>{var _callbackRef$current;return (_callbackRef$current=callbackRef.current)===null||_callbackRef$current===void 0?void 0:_callbackRef$current.call(callbackRef,...args)},[])}var $f631663db3294ace$var$DirectionContext=createContext(void 0);function $f631663db3294ace$export$b39126d51d94e6f3(localDir){let globalDir=useContext($f631663db3294ace$var$DirectionContext);return localDir||globalDir||\"ltr\"}function $ae6933e535247d3d$export$7d15b64cf5a3a4c4(value,[min,max]){return Math.min(max,Math.max(min,value))}function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler,ourEventHandler,{checkForDefaultPrevented=!0}={}){return function(event){if(originalEventHandler?.(event),checkForDefaultPrevented===!1||!event.defaultPrevented)return ourEventHandler?.(event)}}function $6c2e24571c90391f$export$3e6543de14f8614f(initialState,machine){return useReducer((state,event)=>{let nextState=machine[state][event];return nextState??state},initialState)}var $57acba87d6e25586$var$SCROLL_AREA_NAME=\"ScrollArea\",[$57acba87d6e25586$var$createScrollAreaContext,$57acba87d6e25586$export$488468afe3a6f2b1]=$c512c27ab02ef895$export$50c7b4e9d9f19c1($57acba87d6e25586$var$SCROLL_AREA_NAME),[$57acba87d6e25586$var$ScrollAreaProvider,$57acba87d6e25586$var$useScrollAreaContext]=$57acba87d6e25586$var$createScrollAreaContext($57acba87d6e25586$var$SCROLL_AREA_NAME),$57acba87d6e25586$export$ccf8d8d7bbf3c2cc=forwardRef((props,forwardedRef)=>{let{__scopeScrollArea,type=\"hover\",dir,scrollHideDelay=600,...scrollAreaProps}=props,[scrollArea,setScrollArea]=useState(null),[viewport,setViewport]=useState(null),[content,setContent]=useState(null),[scrollbarX,setScrollbarX]=useState(null),[scrollbarY,setScrollbarY]=useState(null),[cornerWidth,setCornerWidth]=useState(0),[cornerHeight,setCornerHeight]=useState(0),[scrollbarXEnabled,setScrollbarXEnabled]=useState(!1),[scrollbarYEnabled,setScrollbarYEnabled]=useState(!1),composedRefs=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,node=>setScrollArea(node)),direction=$f631663db3294ace$export$b39126d51d94e6f3(dir);return createElement$1($57acba87d6e25586$var$ScrollAreaProvider,{scope:__scopeScrollArea,type,dir:direction,scrollHideDelay,scrollArea,viewport,onViewportChange:setViewport,content,onContentChange:setContent,scrollbarX,onScrollbarXChange:setScrollbarX,scrollbarXEnabled,onScrollbarXEnabledChange:setScrollbarXEnabled,scrollbarY,onScrollbarYChange:setScrollbarY,scrollbarYEnabled,onScrollbarYEnabledChange:setScrollbarYEnabled,onCornerWidthChange:setCornerWidth,onCornerHeightChange:setCornerHeight},createElement$1($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends2({dir:direction},scrollAreaProps,{ref:composedRefs,style:{position:\"relative\",\"--radix-scroll-area-corner-width\":cornerWidth+\"px\",\"--radix-scroll-area-corner-height\":cornerHeight+\"px\",...props.style}})))}),$57acba87d6e25586$var$VIEWPORT_NAME=\"ScrollAreaViewport\",$57acba87d6e25586$export$a21cbf9f11fca853=forwardRef((props,forwardedRef)=>{let{__scopeScrollArea,children,...viewportProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$VIEWPORT_NAME,__scopeScrollArea),ref=useRef(null),composedRefs=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,ref,context.onViewportChange);return createElement$1(Fragment,null,createElement$1(\"style\",{dangerouslySetInnerHTML:{__html:\"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}\"}}),createElement$1($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends2({\"data-radix-scroll-area-viewport\":\"\"},viewportProps,{ref:composedRefs,style:{overflowX:context.scrollbarXEnabled?\"scroll\":\"hidden\",overflowY:context.scrollbarYEnabled?\"scroll\":\"hidden\",...props.style}}),createElement$1(\"div\",{ref:context.onContentChange,style:{minWidth:\"100%\",display:\"table\"}},children)))}),$57acba87d6e25586$var$SCROLLBAR_NAME=\"ScrollAreaScrollbar\",$57acba87d6e25586$export$2fabd85d0eba3c57=forwardRef((props,forwardedRef)=>{let{forceMount,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,props.__scopeScrollArea),{onScrollbarXEnabledChange,onScrollbarYEnabledChange}=context,isHorizontal=props.orientation===\"horizontal\";return useEffect(()=>(isHorizontal?onScrollbarXEnabledChange(!0):onScrollbarYEnabledChange(!0),()=>{isHorizontal?onScrollbarXEnabledChange(!1):onScrollbarYEnabledChange(!1);}),[isHorizontal,onScrollbarXEnabledChange,onScrollbarYEnabledChange]),context.type===\"hover\"?createElement$1($57acba87d6e25586$var$ScrollAreaScrollbarHover,_extends2({},scrollbarProps,{ref:forwardedRef,forceMount})):context.type===\"scroll\"?createElement$1($57acba87d6e25586$var$ScrollAreaScrollbarScroll,_extends2({},scrollbarProps,{ref:forwardedRef,forceMount})):context.type===\"auto\"?createElement$1($57acba87d6e25586$var$ScrollAreaScrollbarAuto,_extends2({},scrollbarProps,{ref:forwardedRef,forceMount})):context.type===\"always\"?createElement$1($57acba87d6e25586$var$ScrollAreaScrollbarVisible,_extends2({},scrollbarProps,{ref:forwardedRef})):null}),$57acba87d6e25586$var$ScrollAreaScrollbarHover=forwardRef((props,forwardedRef)=>{let{forceMount,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,props.__scopeScrollArea),[visible,setVisible]=useState(!1);return useEffect(()=>{let scrollArea=context.scrollArea,hideTimer=0;if(scrollArea){let handlePointerEnter=()=>{window.clearTimeout(hideTimer),setVisible(!0);},handlePointerLeave=()=>{hideTimer=window.setTimeout(()=>setVisible(!1),context.scrollHideDelay);};return scrollArea.addEventListener(\"pointerenter\",handlePointerEnter),scrollArea.addEventListener(\"pointerleave\",handlePointerLeave),()=>{window.clearTimeout(hideTimer),scrollArea.removeEventListener(\"pointerenter\",handlePointerEnter),scrollArea.removeEventListener(\"pointerleave\",handlePointerLeave);}}},[context.scrollArea,context.scrollHideDelay]),createElement$1($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:forceMount||visible},createElement$1($57acba87d6e25586$var$ScrollAreaScrollbarAuto,_extends2({\"data-state\":visible?\"visible\":\"hidden\"},scrollbarProps,{ref:forwardedRef})))}),$57acba87d6e25586$var$ScrollAreaScrollbarScroll=forwardRef((props,forwardedRef)=>{let{forceMount,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,props.__scopeScrollArea),isHorizontal=props.orientation===\"horizontal\",debounceScrollEnd=$57acba87d6e25586$var$useDebounceCallback(()=>send(\"SCROLL_END\"),100),[state,send]=$6c2e24571c90391f$export$3e6543de14f8614f(\"hidden\",{hidden:{SCROLL:\"scrolling\"},scrolling:{SCROLL_END:\"idle\",POINTER_ENTER:\"interacting\"},interacting:{SCROLL:\"interacting\",POINTER_LEAVE:\"idle\"},idle:{HIDE:\"hidden\",SCROLL:\"scrolling\",POINTER_ENTER:\"interacting\"}});return useEffect(()=>{if(state===\"idle\"){let hideTimer=window.setTimeout(()=>send(\"HIDE\"),context.scrollHideDelay);return ()=>window.clearTimeout(hideTimer)}},[state,context.scrollHideDelay,send]),useEffect(()=>{let viewport=context.viewport,scrollDirection=isHorizontal?\"scrollLeft\":\"scrollTop\";if(viewport){let prevScrollPos=viewport[scrollDirection],handleScroll=()=>{let scrollPos=viewport[scrollDirection];prevScrollPos!==scrollPos&&(send(\"SCROLL\"),debounceScrollEnd()),prevScrollPos=scrollPos;};return viewport.addEventListener(\"scroll\",handleScroll),()=>viewport.removeEventListener(\"scroll\",handleScroll)}},[context.viewport,isHorizontal,send,debounceScrollEnd]),createElement$1($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:forceMount||state!==\"hidden\"},createElement$1($57acba87d6e25586$var$ScrollAreaScrollbarVisible,_extends2({\"data-state\":state===\"hidden\"?\"hidden\":\"visible\"},scrollbarProps,{ref:forwardedRef,onPointerEnter:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerEnter,()=>send(\"POINTER_ENTER\")),onPointerLeave:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerLeave,()=>send(\"POINTER_LEAVE\"))})))}),$57acba87d6e25586$var$ScrollAreaScrollbarAuto=forwardRef((props,forwardedRef)=>{let context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,props.__scopeScrollArea),{forceMount,...scrollbarProps}=props,[visible,setVisible]=useState(!1),isHorizontal=props.orientation===\"horizontal\",handleResize=$57acba87d6e25586$var$useDebounceCallback(()=>{if(context.viewport){let isOverflowX=context.viewport.offsetWidth{let{orientation=\"vertical\",...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,props.__scopeScrollArea),thumbRef=useRef(null),pointerOffsetRef=useRef(0),[sizes,setSizes]=useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),thumbRatio=$57acba87d6e25586$var$getThumbRatio(sizes.viewport,sizes.content),commonProps={...scrollbarProps,sizes,onSizesChange:setSizes,hasThumb:thumbRatio>0&&thumbRatio<1,onThumbChange:thumb=>thumbRef.current=thumb,onThumbPointerUp:()=>pointerOffsetRef.current=0,onThumbPointerDown:pointerPos=>pointerOffsetRef.current=pointerPos};function getScrollPosition(pointerPos,dir){return $57acba87d6e25586$var$getScrollPositionFromPointer(pointerPos,pointerOffsetRef.current,sizes,dir)}return orientation===\"horizontal\"?createElement$1($57acba87d6e25586$var$ScrollAreaScrollbarX,_extends2({},commonProps,{ref:forwardedRef,onThumbPositionChange:()=>{if(context.viewport&&thumbRef.current){let scrollPos=context.viewport.scrollLeft,offset=$57acba87d6e25586$var$getThumbOffsetFromScroll(scrollPos,sizes,context.dir);thumbRef.current.style.transform=`translate3d(${offset}px, 0, 0)`;}},onWheelScroll:scrollPos=>{context.viewport&&(context.viewport.scrollLeft=scrollPos);},onDragScroll:pointerPos=>{context.viewport&&(context.viewport.scrollLeft=getScrollPosition(pointerPos,context.dir));}})):orientation===\"vertical\"?createElement$1($57acba87d6e25586$var$ScrollAreaScrollbarY,_extends2({},commonProps,{ref:forwardedRef,onThumbPositionChange:()=>{if(context.viewport&&thumbRef.current){let scrollPos=context.viewport.scrollTop,offset=$57acba87d6e25586$var$getThumbOffsetFromScroll(scrollPos,sizes);thumbRef.current.style.transform=`translate3d(0, ${offset}px, 0)`;}},onWheelScroll:scrollPos=>{context.viewport&&(context.viewport.scrollTop=scrollPos);},onDragScroll:pointerPos=>{context.viewport&&(context.viewport.scrollTop=getScrollPosition(pointerPos));}})):null}),$57acba87d6e25586$var$ScrollAreaScrollbarX=forwardRef((props,forwardedRef)=>{let{sizes,onSizesChange,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,props.__scopeScrollArea),[computedStyle,setComputedStyle]=useState(),ref=useRef(null),composeRefs=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,ref,context.onScrollbarXChange);return useEffect(()=>{ref.current&&setComputedStyle(getComputedStyle(ref.current));},[ref]),createElement$1($57acba87d6e25586$var$ScrollAreaScrollbarImpl,_extends2({\"data-orientation\":\"horizontal\"},scrollbarProps,{ref:composeRefs,sizes,style:{bottom:0,left:context.dir===\"rtl\"?\"var(--radix-scroll-area-corner-width)\":0,right:context.dir===\"ltr\"?\"var(--radix-scroll-area-corner-width)\":0,\"--radix-scroll-area-thumb-width\":$57acba87d6e25586$var$getThumbSize(sizes)+\"px\",...props.style},onThumbPointerDown:pointerPos=>props.onThumbPointerDown(pointerPos.x),onDragScroll:pointerPos=>props.onDragScroll(pointerPos.x),onWheelScroll:(event,maxScrollPos)=>{if(context.viewport){let scrollPos=context.viewport.scrollLeft+event.deltaX;props.onWheelScroll(scrollPos),$57acba87d6e25586$var$isScrollingWithinScrollbarBounds(scrollPos,maxScrollPos)&&event.preventDefault();}},onResize:()=>{ref.current&&context.viewport&&computedStyle&&onSizesChange({content:context.viewport.scrollWidth,viewport:context.viewport.offsetWidth,scrollbar:{size:ref.current.clientWidth,paddingStart:$57acba87d6e25586$var$toInt(computedStyle.paddingLeft),paddingEnd:$57acba87d6e25586$var$toInt(computedStyle.paddingRight)}});}}))}),$57acba87d6e25586$var$ScrollAreaScrollbarY=forwardRef((props,forwardedRef)=>{let{sizes,onSizesChange,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,props.__scopeScrollArea),[computedStyle,setComputedStyle]=useState(),ref=useRef(null),composeRefs=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,ref,context.onScrollbarYChange);return useEffect(()=>{ref.current&&setComputedStyle(getComputedStyle(ref.current));},[ref]),createElement$1($57acba87d6e25586$var$ScrollAreaScrollbarImpl,_extends2({\"data-orientation\":\"vertical\"},scrollbarProps,{ref:composeRefs,sizes,style:{top:0,right:context.dir===\"ltr\"?0:void 0,left:context.dir===\"rtl\"?0:void 0,bottom:\"var(--radix-scroll-area-corner-height)\",\"--radix-scroll-area-thumb-height\":$57acba87d6e25586$var$getThumbSize(sizes)+\"px\",...props.style},onThumbPointerDown:pointerPos=>props.onThumbPointerDown(pointerPos.y),onDragScroll:pointerPos=>props.onDragScroll(pointerPos.y),onWheelScroll:(event,maxScrollPos)=>{if(context.viewport){let scrollPos=context.viewport.scrollTop+event.deltaY;props.onWheelScroll(scrollPos),$57acba87d6e25586$var$isScrollingWithinScrollbarBounds(scrollPos,maxScrollPos)&&event.preventDefault();}},onResize:()=>{ref.current&&context.viewport&&computedStyle&&onSizesChange({content:context.viewport.scrollHeight,viewport:context.viewport.offsetHeight,scrollbar:{size:ref.current.clientHeight,paddingStart:$57acba87d6e25586$var$toInt(computedStyle.paddingTop),paddingEnd:$57acba87d6e25586$var$toInt(computedStyle.paddingBottom)}});}}))}),[$57acba87d6e25586$var$ScrollbarProvider,$57acba87d6e25586$var$useScrollbarContext]=$57acba87d6e25586$var$createScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME),$57acba87d6e25586$var$ScrollAreaScrollbarImpl=forwardRef((props,forwardedRef)=>{let{__scopeScrollArea,sizes,hasThumb,onThumbChange,onThumbPointerUp,onThumbPointerDown,onThumbPositionChange,onDragScroll,onWheelScroll,onResize,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,__scopeScrollArea),[scrollbar,setScrollbar]=useState(null),composeRefs=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,node=>setScrollbar(node)),rectRef=useRef(null),prevWebkitUserSelectRef=useRef(\"\"),viewport=context.viewport,maxScrollPos=sizes.content-sizes.viewport,handleWheelScroll=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onWheelScroll),handleThumbPositionChange=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onThumbPositionChange),handleResize=$57acba87d6e25586$var$useDebounceCallback(onResize,10);function handleDragScroll(event){if(rectRef.current){let x=event.clientX-rectRef.current.left,y=event.clientY-rectRef.current.top;onDragScroll({x,y});}}return useEffect(()=>{let handleWheel=event=>{let element=event.target;scrollbar?.contains(element)&&handleWheelScroll(event,maxScrollPos);};return document.addEventListener(\"wheel\",handleWheel,{passive:!1}),()=>document.removeEventListener(\"wheel\",handleWheel,{passive:!1})},[viewport,scrollbar,maxScrollPos,handleWheelScroll]),useEffect(handleThumbPositionChange,[sizes,handleThumbPositionChange]),$57acba87d6e25586$var$useResizeObserver(scrollbar,handleResize),$57acba87d6e25586$var$useResizeObserver(context.content,handleResize),createElement$1($57acba87d6e25586$var$ScrollbarProvider,{scope:__scopeScrollArea,scrollbar,hasThumb,onThumbChange:$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onThumbChange),onThumbPointerUp:$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onThumbPointerUp),onThumbPositionChange:handleThumbPositionChange,onThumbPointerDown:$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onThumbPointerDown)},createElement$1($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends2({},scrollbarProps,{ref:composeRefs,style:{position:\"absolute\",...scrollbarProps.style},onPointerDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDown,event=>{event.button===0&&(event.target.setPointerCapture(event.pointerId),rectRef.current=scrollbar.getBoundingClientRect(),prevWebkitUserSelectRef.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=\"none\",context.viewport&&(context.viewport.style.scrollBehavior=\"auto\"),handleDragScroll(event));}),onPointerMove:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerMove,handleDragScroll),onPointerUp:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerUp,event=>{let element=event.target;element.hasPointerCapture(event.pointerId)&&element.releasePointerCapture(event.pointerId),document.body.style.webkitUserSelect=prevWebkitUserSelectRef.current,context.viewport&&(context.viewport.style.scrollBehavior=\"\"),rectRef.current=null;})})))}),$57acba87d6e25586$var$THUMB_NAME=\"ScrollAreaThumb\",$57acba87d6e25586$export$9fba1154677d7cd2=forwardRef((props,forwardedRef)=>{let{forceMount,...thumbProps}=props,scrollbarContext=$57acba87d6e25586$var$useScrollbarContext($57acba87d6e25586$var$THUMB_NAME,props.__scopeScrollArea);return createElement$1($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:forceMount||scrollbarContext.hasThumb},createElement$1($57acba87d6e25586$var$ScrollAreaThumbImpl,_extends2({ref:forwardedRef},thumbProps)))}),$57acba87d6e25586$var$ScrollAreaThumbImpl=forwardRef((props,forwardedRef)=>{let{__scopeScrollArea,style,...thumbProps}=props,scrollAreaContext=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$THUMB_NAME,__scopeScrollArea),scrollbarContext=$57acba87d6e25586$var$useScrollbarContext($57acba87d6e25586$var$THUMB_NAME,__scopeScrollArea),{onThumbPositionChange}=scrollbarContext,composedRef=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,node=>scrollbarContext.onThumbChange(node)),removeUnlinkedScrollListenerRef=useRef(),debounceScrollEnd=$57acba87d6e25586$var$useDebounceCallback(()=>{removeUnlinkedScrollListenerRef.current&&(removeUnlinkedScrollListenerRef.current(),removeUnlinkedScrollListenerRef.current=void 0);},100);return useEffect(()=>{let viewport=scrollAreaContext.viewport;if(viewport){let handleScroll=()=>{if(debounceScrollEnd(),!removeUnlinkedScrollListenerRef.current){let listener=$57acba87d6e25586$var$addUnlinkedScrollListener(viewport,onThumbPositionChange);removeUnlinkedScrollListenerRef.current=listener,onThumbPositionChange();}};return onThumbPositionChange(),viewport.addEventListener(\"scroll\",handleScroll),()=>viewport.removeEventListener(\"scroll\",handleScroll)}},[scrollAreaContext.viewport,debounceScrollEnd,onThumbPositionChange]),createElement$1($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends2({\"data-state\":scrollbarContext.hasThumb?\"visible\":\"hidden\"},thumbProps,{ref:composedRef,style:{width:\"var(--radix-scroll-area-thumb-width)\",height:\"var(--radix-scroll-area-thumb-height)\",...style},onPointerDownCapture:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDownCapture,event=>{let thumbRect=event.target.getBoundingClientRect(),x=event.clientX-thumbRect.left,y=event.clientY-thumbRect.top;scrollbarContext.onThumbPointerDown({x,y});}),onPointerUp:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerUp,scrollbarContext.onThumbPointerUp)}))}),$57acba87d6e25586$var$CORNER_NAME=\"ScrollAreaCorner\",$57acba87d6e25586$export$56969d565df7cc4b=forwardRef((props,forwardedRef)=>{let context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$CORNER_NAME,props.__scopeScrollArea),hasBothScrollbarsVisible=!!(context.scrollbarX&&context.scrollbarY);return context.type!==\"scroll\"&&hasBothScrollbarsVisible?createElement$1($57acba87d6e25586$var$ScrollAreaCornerImpl,_extends2({},props,{ref:forwardedRef})):null}),$57acba87d6e25586$var$ScrollAreaCornerImpl=forwardRef((props,forwardedRef)=>{let{__scopeScrollArea,...cornerProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$CORNER_NAME,__scopeScrollArea),[width1,setWidth]=useState(0),[height1,setHeight]=useState(0),hasSize=!!(width1&&height1);return $57acba87d6e25586$var$useResizeObserver(context.scrollbarX,()=>{var _context$scrollbarX;let height=((_context$scrollbarX=context.scrollbarX)===null||_context$scrollbarX===void 0?void 0:_context$scrollbarX.offsetHeight)||0;context.onCornerHeightChange(height),setHeight(height);}),$57acba87d6e25586$var$useResizeObserver(context.scrollbarY,()=>{var _context$scrollbarY;let width=((_context$scrollbarY=context.scrollbarY)===null||_context$scrollbarY===void 0?void 0:_context$scrollbarY.offsetWidth)||0;context.onCornerWidthChange(width),setWidth(width);}),hasSize?createElement$1($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends2({},cornerProps,{ref:forwardedRef,style:{width:width1,height:height1,position:\"absolute\",right:context.dir===\"ltr\"?0:void 0,left:context.dir===\"rtl\"?0:void 0,bottom:0,...props.style}})):null});function $57acba87d6e25586$var$toInt(value){return value?parseInt(value,10):0}function $57acba87d6e25586$var$getThumbRatio(viewportSize,contentSize){let ratio=viewportSize/contentSize;return isNaN(ratio)?0:ratio}function $57acba87d6e25586$var$getThumbSize(sizes){let ratio=$57acba87d6e25586$var$getThumbRatio(sizes.viewport,sizes.content),scrollbarPadding=sizes.scrollbar.paddingStart+sizes.scrollbar.paddingEnd,thumbSize=(sizes.scrollbar.size-scrollbarPadding)*ratio;return Math.max(thumbSize,18)}function $57acba87d6e25586$var$getScrollPositionFromPointer(pointerPos,pointerOffset,sizes,dir=\"ltr\"){let thumbSizePx=$57acba87d6e25586$var$getThumbSize(sizes),thumbCenter=thumbSizePx/2,offset=pointerOffset||thumbCenter,thumbOffsetFromEnd=thumbSizePx-offset,minPointerPos=sizes.scrollbar.paddingStart+offset,maxPointerPos=sizes.scrollbar.size-sizes.scrollbar.paddingEnd-thumbOffsetFromEnd,maxScrollPos=sizes.content-sizes.viewport,scrollRange=dir===\"ltr\"?[0,maxScrollPos]:[maxScrollPos*-1,0];return $57acba87d6e25586$var$linearScale([minPointerPos,maxPointerPos],scrollRange)(pointerPos)}function $57acba87d6e25586$var$getThumbOffsetFromScroll(scrollPos,sizes,dir=\"ltr\"){let thumbSizePx=$57acba87d6e25586$var$getThumbSize(sizes),scrollbarPadding=sizes.scrollbar.paddingStart+sizes.scrollbar.paddingEnd,scrollbar=sizes.scrollbar.size-scrollbarPadding,maxScrollPos=sizes.content-sizes.viewport,maxThumbPos=scrollbar-thumbSizePx,scrollClampRange=dir===\"ltr\"?[0,maxScrollPos]:[maxScrollPos*-1,0],scrollWithoutMomentum=$ae6933e535247d3d$export$7d15b64cf5a3a4c4(scrollPos,scrollClampRange);return $57acba87d6e25586$var$linearScale([0,maxScrollPos],[0,maxThumbPos])(scrollWithoutMomentum)}function $57acba87d6e25586$var$linearScale(input,output){return value=>{if(input[0]===input[1]||output[0]===output[1])return output[0];let ratio=(output[1]-output[0])/(input[1]-input[0]);return output[0]+ratio*(value-input[0])}}function $57acba87d6e25586$var$isScrollingWithinScrollbarBounds(scrollPos,maxScrollPos){return scrollPos>0&&scrollPos{})=>{let prevPosition={left:node.scrollLeft,top:node.scrollTop},rAF=0;return function loop(){let position={left:node.scrollLeft,top:node.scrollTop},isHorizontalScroll=prevPosition.left!==position.left,isVerticalScroll=prevPosition.top!==position.top;(isHorizontalScroll||isVerticalScroll)&&handler(),prevPosition=position,rAF=window.requestAnimationFrame(loop);}(),()=>window.cancelAnimationFrame(rAF)};function $57acba87d6e25586$var$useDebounceCallback(callback,delay){let handleCallback=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback),debounceTimerRef=useRef(0);return useEffect(()=>()=>window.clearTimeout(debounceTimerRef.current),[]),useCallback(()=>{window.clearTimeout(debounceTimerRef.current),debounceTimerRef.current=window.setTimeout(handleCallback,delay);},[handleCallback,delay])}function $57acba87d6e25586$var$useResizeObserver(element,onResize){let handleResize=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onResize);$9f79659886946c16$export$e5c5a5f917a5871c(()=>{let rAF=0;if(element){let resizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(rAF),rAF=window.requestAnimationFrame(handleResize);});return resizeObserver.observe(element),()=>{window.cancelAnimationFrame(rAF),resizeObserver.unobserve(element);}}},[element,handleResize]);}var $57acba87d6e25586$export$be92b6f5f03c0fe9=$57acba87d6e25586$export$ccf8d8d7bbf3c2cc,$57acba87d6e25586$export$d5c6c08dc2d3ca7=$57acba87d6e25586$export$a21cbf9f11fca853,$57acba87d6e25586$export$9a4e88b92edfce6b=$57acba87d6e25586$export$2fabd85d0eba3c57,$57acba87d6e25586$export$6521433ed15a34db=$57acba87d6e25586$export$9fba1154677d7cd2,$57acba87d6e25586$export$ac61190d9fc311a9=$57acba87d6e25586$export$56969d565df7cc4b;var ScrollAreaRoot=styled($57acba87d6e25586$export$be92b6f5f03c0fe9)(({scrollbarsize,offset})=>({width:\"100%\",height:\"100%\",overflow:\"hidden\",\"--scrollbar-size\":`${scrollbarsize+offset}px`,\"--radix-scroll-area-thumb-width\":`${scrollbarsize}px`})),ScrollAreaViewport=styled($57acba87d6e25586$export$d5c6c08dc2d3ca7)({width:\"100%\",height:\"100%\"}),ScrollAreaScrollbar=styled($57acba87d6e25586$export$9a4e88b92edfce6b)(({offset,horizontal,vertical})=>({display:\"flex\",userSelect:\"none\",touchAction:\"none\",background:\"transparent\",transition:\"all 0.2s ease-out\",borderRadius:\"var(--scrollbar-size)\",'&[data-orientation=\"vertical\"]':{width:\"var(--scrollbar-size)\",paddingRight:offset,marginTop:offset,marginBottom:horizontal===\"true\"&&vertical===\"true\"?0:offset},'&[data-orientation=\"horizontal\"]':{flexDirection:\"column\",height:\"var(--scrollbar-size)\",paddingBottom:offset,marginLeft:offset,marginRight:horizontal===\"true\"&&vertical===\"true\"?0:offset}})),ScrollAreaThumb=styled($57acba87d6e25586$export$6521433ed15a34db)(({theme})=>({flex:1,background:theme.textMutedColor,opacity:.5,borderRadius:\"var(--scrollbar-size)\",position:\"relative\",transition:\"opacity 0.2s ease-out\",\"&:hover\":{opacity:.8},\"::before\":{content:'\"\"',position:\"absolute\",top:\"50%\",left:\"50%\",transform:\"translate(-50%,-50%)\",width:\"100%\",height:\"100%\",minWidth:44,minHeight:44}})),ScrollArea=({children,horizontal=!1,vertical=!1,offset=2,scrollbarSize=6,className})=>React2.createElement(ScrollAreaRoot,{scrollbarsize:scrollbarSize,offset,className},React2.createElement(ScrollAreaViewport,null,children),horizontal&&React2.createElement(ScrollAreaScrollbar,{orientation:\"horizontal\",offset,horizontal:horizontal.toString(),vertical:vertical.toString()},React2.createElement(ScrollAreaThumb,null)),vertical&&React2.createElement(ScrollAreaScrollbar,{orientation:\"vertical\",offset,horizontal:horizontal.toString(),vertical:vertical.toString()},React2.createElement(ScrollAreaThumb,null)),horizontal&&vertical&&React2.createElement($57acba87d6e25586$export$ac61190d9fc311a9,null));var{navigator,document:document2,window:globalWindow}=global;prism_light_default.registerLanguage(\"jsextra\",js_extras_default);prism_light_default.registerLanguage(\"jsx\",jsx_default);prism_light_default.registerLanguage(\"json\",json_default);prism_light_default.registerLanguage(\"yml\",yaml_default);prism_light_default.registerLanguage(\"md\",markdown_default);prism_light_default.registerLanguage(\"bash\",bash_default);prism_light_default.registerLanguage(\"css\",css_default);prism_light_default.registerLanguage(\"html\",markup_default);prism_light_default.registerLanguage(\"tsx\",tsx_default);prism_light_default.registerLanguage(\"typescript\",typescript_default);prism_light_default.registerLanguage(\"graphql\",graphql_default);var themedSyntax=memoize(2)(theme=>Object.entries(theme.code||{}).reduce((acc,[key,val])=>({...acc,[`* .${key}`]:val}),{})),copyToClipboard=createCopyToClipboardFunction();function createCopyToClipboardFunction(){return navigator?.clipboard?text=>navigator.clipboard.writeText(text):async text=>{let tmp=document2.createElement(\"TEXTAREA\"),focus=document2.activeElement;tmp.value=text,document2.body.appendChild(tmp),tmp.select(),document2.execCommand(\"copy\"),document2.body.removeChild(tmp),focus.focus();}}var Wrapper=styled.div(({theme})=>({position:\"relative\",overflow:\"hidden\",color:theme.color.defaultText}),({theme,bordered})=>bordered?{border:`1px solid ${theme.appBorderColor}`,borderRadius:theme.borderRadius,background:theme.background.content}:{},({showLineNumbers})=>showLineNumbers?{\".react-syntax-highlighter-line-number::before\":{content:\"attr(data-line-number)\"}}:{}),UnstyledScroller=({children,className})=>React2.createElement(ScrollArea,{horizontal:!0,vertical:!0,className},children),Scroller=styled(UnstyledScroller)({position:\"relative\"},({theme})=>themedSyntax(theme)),Pre=styled.pre(({theme,padded})=>({display:\"flex\",justifyContent:\"flex-start\",margin:0,padding:padded?theme.layoutMargin:0})),Code=styled.div(({theme})=>({flex:1,paddingLeft:2,paddingRight:theme.layoutMargin,opacity:1})),processLineNumber=row=>{let children=[...row.children],lineNumberNode=children[0],lineNumber=lineNumberNode.children[0].value,processedLineNumberNode={...lineNumberNode,children:[],properties:{...lineNumberNode.properties,\"data-line-number\":lineNumber,style:{...lineNumberNode.properties.style,userSelect:\"auto\"}}};return children[0]=processedLineNumberNode,{...row,children}},defaultRenderer2=({rows,stylesheet,useInlineStyles})=>rows.map((node,i)=>createElement({node:processLineNumber(node),stylesheet,useInlineStyles,key:`code-segement${i}`})),wrapRenderer=(renderer,showLineNumbers)=>showLineNumbers?renderer?({rows,...rest})=>renderer({rows:rows.map(row=>processLineNumber(row)),...rest}):defaultRenderer2:renderer,SyntaxHighlighter2=({children,language=\"jsx\",copyable=!1,bordered=!1,padded=!1,format=!0,formatter=null,className=null,showLineNumbers=!1,...rest})=>{if(typeof children!=\"string\"||!children.trim())return null;let highlightableCode=formatter?formatter(format,children):children.trim(),[copied,setCopied]=useState(!1),onClick=useCallback(e=>{e.preventDefault(),copyToClipboard(highlightableCode).then(()=>{setCopied(!0),globalWindow.setTimeout(()=>setCopied(!1),1500);}).catch(logger.error);},[highlightableCode]),renderer=wrapRenderer(rest.renderer,showLineNumbers);return React2.createElement(Wrapper,{bordered,padded,showLineNumbers,className},React2.createElement(Scroller,null,React2.createElement(prism_light_default,{padded:padded||bordered,language,showLineNumbers,showInlineLineNumbers:showLineNumbers,useInlineStyles:!1,PreTag:Pre,CodeTag:Code,lineNumberContainerStyle:{},...rest,renderer},highlightableCode)),copyable?React2.createElement(ActionBar,{actionItems:[{title:copied?\"Copied\":\"Copy\",onClick}]}):null)};SyntaxHighlighter2.registerLanguage=(...args)=>prism_light_default.registerLanguage(...args);var syntaxhighlighter_default=SyntaxHighlighter2;\n\nexport { ActionBar, ScrollArea, SyntaxHighlighter2 as SyntaxHighlighter, createCopyToClipboardFunction, syntaxhighlighter_default };\n","var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __commonJS=(cb,mod)=>function(){return mod||(0, cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==\"object\"||typeof from==\"function\")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,\"default\",{value:mod,enumerable:!0}):target,mod));\n\nexport { __commonJS, __toESM };\n","import { __commonJS, __toESM } from './chunk-JRLSWQMA.mjs';\nimport * as React3 from 'react';\nimport React3__default, { useState, useCallback, useEffect } from 'react';\nimport * as ReactDOM from 'react-dom';\nimport ReactDOM__default from 'react-dom';\nimport { styled, lighten } from '@storybook/theming';\nimport { global } from '@storybook/global';\nimport memoize from 'memoizerific';\n\nvar require_react_fast_compare=__commonJS({\"../../node_modules/react-fast-compare/index.js\"(exports,module){var hasElementType=typeof Element<\"u\",hasMap=typeof Map==\"function\",hasSet=typeof Set==\"function\",hasArrayBuffer=typeof ArrayBuffer==\"function\"&&!!ArrayBuffer.isView;function equal(a,b){if(a===b)return !0;if(a&&b&&typeof a==\"object\"&&typeof b==\"object\"){if(a.constructor!==b.constructor)return !1;var length,i,keys;if(Array.isArray(a)){if(length=a.length,length!=b.length)return !1;for(i=length;i--!==0;)if(!equal(a[i],b[i]))return !1;return !0}var it;if(hasMap&&a instanceof Map&&b instanceof Map){if(a.size!==b.size)return !1;for(it=a.entries();!(i=it.next()).done;)if(!b.has(i.value[0]))return !1;for(it=a.entries();!(i=it.next()).done;)if(!equal(i.value[1],b.get(i.value[0])))return !1;return !0}if(hasSet&&a instanceof Set&&b instanceof Set){if(a.size!==b.size)return !1;for(it=a.entries();!(i=it.next()).done;)if(!b.has(i.value[0]))return !1;return !0}if(hasArrayBuffer&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(b)){if(length=a.length,length!=b.length)return !1;for(i=length;i--!==0;)if(a[i]!==b[i])return !1;return !0}if(a.constructor===RegExp)return a.source===b.source&&a.flags===b.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf==\"function\"&&typeof b.valueOf==\"function\")return a.valueOf()===b.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString==\"function\"&&typeof b.toString==\"function\")return a.toString()===b.toString();if(keys=Object.keys(a),length=keys.length,length!==Object.keys(b).length)return !1;for(i=length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(b,keys[i]))return !1;if(hasElementType&&a instanceof Element)return !1;for(i=length;i--!==0;)if(!((keys[i]===\"_owner\"||keys[i]===\"__v\"||keys[i]===\"__o\")&&a.$$typeof)&&!equal(a[keys[i]],b[keys[i]]))return !1;return !0}return a!==a&&b!==b}module.exports=function(a,b){try{return equal(a,b)}catch(error){if((error.message||\"\").match(/stack|recursion/i))return console.warn(\"react-fast-compare cannot handle circular refs\"),!1;throw error}};}});function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return {};var target={},sourceKeys=Object.keys(source),key,i;for(i=0;i=0)&&(target[key]=source[key]);return target}function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i\"u\")return !1;var OwnElement=getWindow(node).ShadowRoot;return node instanceof OwnElement||node instanceof ShadowRoot}function applyStyles(_ref){var state=_ref.state;Object.keys(state.elements).forEach(function(name){var style=state.styles[name]||{},attributes=state.attributes[name]||{},element=state.elements[name];!isHTMLElement(element)||!getNodeName(element)||(Object.assign(element.style,style),Object.keys(attributes).forEach(function(name2){var value=attributes[name2];value===!1?element.removeAttribute(name2):element.setAttribute(name2,value===!0?\"\":value);}));});}function effect(_ref2){var state=_ref2.state,initialStyles={popper:{position:state.options.strategy,left:\"0\",top:\"0\",margin:\"0\"},arrow:{position:\"absolute\"},reference:{}};return Object.assign(state.elements.popper.style,initialStyles.popper),state.styles=initialStyles,state.elements.arrow&&Object.assign(state.elements.arrow.style,initialStyles.arrow),function(){Object.keys(state.elements).forEach(function(name){var element=state.elements[name],attributes=state.attributes[name]||{},styleProperties=Object.keys(state.styles.hasOwnProperty(name)?state.styles[name]:initialStyles[name]),style=styleProperties.reduce(function(style2,property){return style2[property]=\"\",style2},{});!isHTMLElement(element)||!getNodeName(element)||(Object.assign(element.style,style),Object.keys(attributes).forEach(function(attribute){element.removeAttribute(attribute);}));});}}var applyStyles_default={name:\"applyStyles\",enabled:!0,phase:\"write\",fn:applyStyles,effect,requires:[\"computeStyles\"]};function getBasePlacement(placement){return placement.split(\"-\")[0]}var max=Math.max,min=Math.min,round=Math.round;function getUAString(){var uaData=navigator.userAgentData;return uaData!=null&&uaData.brands&&Array.isArray(uaData.brands)?uaData.brands.map(function(item){return item.brand+\"/\"+item.version}).join(\" \"):navigator.userAgent}function isLayoutViewport(){return !/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(element,includeScale,isFixedStrategy){includeScale===void 0&&(includeScale=!1),isFixedStrategy===void 0&&(isFixedStrategy=!1);var clientRect=element.getBoundingClientRect(),scaleX=1,scaleY=1;includeScale&&isHTMLElement(element)&&(scaleX=element.offsetWidth>0&&round(clientRect.width)/element.offsetWidth||1,scaleY=element.offsetHeight>0&&round(clientRect.height)/element.offsetHeight||1);var _ref=isElement(element)?getWindow(element):window,visualViewport=_ref.visualViewport,addVisualOffsets=!isLayoutViewport()&&isFixedStrategy,x=(clientRect.left+(addVisualOffsets&&visualViewport?visualViewport.offsetLeft:0))/scaleX,y=(clientRect.top+(addVisualOffsets&&visualViewport?visualViewport.offsetTop:0))/scaleY,width=clientRect.width/scaleX,height=clientRect.height/scaleY;return {width,height,top:y,right:x+width,bottom:y+height,left:x,x,y}}function getLayoutRect(element){var clientRect=getBoundingClientRect(element),width=element.offsetWidth,height=element.offsetHeight;return Math.abs(clientRect.width-width)<=1&&(width=clientRect.width),Math.abs(clientRect.height-height)<=1&&(height=clientRect.height),{x:element.offsetLeft,y:element.offsetTop,width,height}}function contains(parent,child){var rootNode=child.getRootNode&&child.getRootNode();if(parent.contains(child))return !0;if(rootNode&&isShadowRoot(rootNode)){var next=child;do{if(next&&parent.isSameNode(next))return !0;next=next.parentNode||next.host;}while(next)}return !1}function getComputedStyle(element){return getWindow(element).getComputedStyle(element)}function isTableElement(element){return [\"table\",\"td\",\"th\"].indexOf(getNodeName(element))>=0}function getDocumentElement(element){return ((isElement(element)?element.ownerDocument:element.document)||window.document).documentElement}function getParentNode(element){return getNodeName(element)===\"html\"?element:element.assignedSlot||element.parentNode||(isShadowRoot(element)?element.host:null)||getDocumentElement(element)}function getTrueOffsetParent(element){return !isHTMLElement(element)||getComputedStyle(element).position===\"fixed\"?null:element.offsetParent}function getContainingBlock(element){var isFirefox=/firefox/i.test(getUAString()),isIE=/Trident/i.test(getUAString());if(isIE&&isHTMLElement(element)){var elementCss=getComputedStyle(element);if(elementCss.position===\"fixed\")return null}var currentNode=getParentNode(element);for(isShadowRoot(currentNode)&&(currentNode=currentNode.host);isHTMLElement(currentNode)&&[\"html\",\"body\"].indexOf(getNodeName(currentNode))<0;){var css=getComputedStyle(currentNode);if(css.transform!==\"none\"||css.perspective!==\"none\"||css.contain===\"paint\"||[\"transform\",\"perspective\"].indexOf(css.willChange)!==-1||isFirefox&&css.willChange===\"filter\"||isFirefox&&css.filter&&css.filter!==\"none\")return currentNode;currentNode=currentNode.parentNode;}return null}function getOffsetParent(element){for(var window2=getWindow(element),offsetParent=getTrueOffsetParent(element);offsetParent&&isTableElement(offsetParent)&&getComputedStyle(offsetParent).position===\"static\";)offsetParent=getTrueOffsetParent(offsetParent);return offsetParent&&(getNodeName(offsetParent)===\"html\"||getNodeName(offsetParent)===\"body\"&&getComputedStyle(offsetParent).position===\"static\")?window2:offsetParent||getContainingBlock(element)||window2}function getMainAxisFromPlacement(placement){return [\"top\",\"bottom\"].indexOf(placement)>=0?\"x\":\"y\"}function within(min2,value,max2){return max(min2,min(value,max2))}function withinMaxClamp(min2,value,max2){var v=within(min2,value,max2);return v>max2?max2:v}function getFreshSideObject(){return {top:0,right:0,bottom:0,left:0}}function mergePaddingObject(paddingObject){return Object.assign({},getFreshSideObject(),paddingObject)}function expandToHashMap(value,keys){return keys.reduce(function(hashMap,key){return hashMap[key]=value,hashMap},{})}var toPaddingObject=function(padding,state){return padding=typeof padding==\"function\"?padding(Object.assign({},state.rects,{placement:state.placement})):padding,mergePaddingObject(typeof padding!=\"number\"?padding:expandToHashMap(padding,basePlacements))};function arrow(_ref){var _state$modifiersData$,state=_ref.state,name=_ref.name,options=_ref.options,arrowElement=state.elements.arrow,popperOffsets2=state.modifiersData.popperOffsets,basePlacement=getBasePlacement(state.placement),axis=getMainAxisFromPlacement(basePlacement),isVertical=[left,right].indexOf(basePlacement)>=0,len=isVertical?\"height\":\"width\";if(!(!arrowElement||!popperOffsets2)){var paddingObject=toPaddingObject(options.padding,state),arrowRect=getLayoutRect(arrowElement),minProp=axis===\"y\"?top:left,maxProp=axis===\"y\"?bottom:right,endDiff=state.rects.reference[len]+state.rects.reference[axis]-popperOffsets2[axis]-state.rects.popper[len],startDiff=popperOffsets2[axis]-state.rects.reference[axis],arrowOffsetParent=getOffsetParent(arrowElement),clientSize=arrowOffsetParent?axis===\"y\"?arrowOffsetParent.clientHeight||0:arrowOffsetParent.clientWidth||0:0,centerToReference=endDiff/2-startDiff/2,min2=paddingObject[minProp],max2=clientSize-arrowRect[len]-paddingObject[maxProp],center=clientSize/2-arrowRect[len]/2+centerToReference,offset2=within(min2,center,max2),axisProp=axis;state.modifiersData[name]=(_state$modifiersData$={},_state$modifiersData$[axisProp]=offset2,_state$modifiersData$.centerOffset=offset2-center,_state$modifiersData$);}}function effect2(_ref2){var state=_ref2.state,options=_ref2.options,_options$element=options.element,arrowElement=_options$element===void 0?\"[data-popper-arrow]\":_options$element;arrowElement!=null&&(typeof arrowElement==\"string\"&&(arrowElement=state.elements.popper.querySelector(arrowElement),!arrowElement)||contains(state.elements.popper,arrowElement)&&(state.elements.arrow=arrowElement));}var arrow_default={name:\"arrow\",enabled:!0,phase:\"main\",fn:arrow,effect:effect2,requires:[\"popperOffsets\"],requiresIfExists:[\"preventOverflow\"]};function getVariation(placement){return placement.split(\"-\")[1]}var unsetSides={top:\"auto\",right:\"auto\",bottom:\"auto\",left:\"auto\"};function roundOffsetsByDPR(_ref,win){var x=_ref.x,y=_ref.y,dpr=win.devicePixelRatio||1;return {x:round(x*dpr)/dpr||0,y:round(y*dpr)/dpr||0}}function mapToStyles(_ref2){var _Object$assign2,popper2=_ref2.popper,popperRect=_ref2.popperRect,placement=_ref2.placement,variation=_ref2.variation,offsets=_ref2.offsets,position=_ref2.position,gpuAcceleration=_ref2.gpuAcceleration,adaptive=_ref2.adaptive,roundOffsets=_ref2.roundOffsets,isFixed=_ref2.isFixed,_offsets$x=offsets.x,x=_offsets$x===void 0?0:_offsets$x,_offsets$y=offsets.y,y=_offsets$y===void 0?0:_offsets$y,_ref3=typeof roundOffsets==\"function\"?roundOffsets({x,y}):{x,y};x=_ref3.x,y=_ref3.y;var hasX=offsets.hasOwnProperty(\"x\"),hasY=offsets.hasOwnProperty(\"y\"),sideX=left,sideY=top,win=window;if(adaptive){var offsetParent=getOffsetParent(popper2),heightProp=\"clientHeight\",widthProp=\"clientWidth\";if(offsetParent===getWindow(popper2)&&(offsetParent=getDocumentElement(popper2),getComputedStyle(offsetParent).position!==\"static\"&&position===\"absolute\"&&(heightProp=\"scrollHeight\",widthProp=\"scrollWidth\")),offsetParent=offsetParent,placement===top||(placement===left||placement===right)&&variation===end){sideY=bottom;var offsetY=isFixed&&offsetParent===win&&win.visualViewport?win.visualViewport.height:offsetParent[heightProp];y-=offsetY-popperRect.height,y*=gpuAcceleration?1:-1;}if(placement===left||(placement===top||placement===bottom)&&variation===end){sideX=right;var offsetX=isFixed&&offsetParent===win&&win.visualViewport?win.visualViewport.width:offsetParent[widthProp];x-=offsetX-popperRect.width,x*=gpuAcceleration?1:-1;}}var commonStyles=Object.assign({position},adaptive&&unsetSides),_ref4=roundOffsets===!0?roundOffsetsByDPR({x,y},getWindow(popper2)):{x,y};if(x=_ref4.x,y=_ref4.y,gpuAcceleration){var _Object$assign;return Object.assign({},commonStyles,(_Object$assign={},_Object$assign[sideY]=hasY?\"0\":\"\",_Object$assign[sideX]=hasX?\"0\":\"\",_Object$assign.transform=(win.devicePixelRatio||1)<=1?\"translate(\"+x+\"px, \"+y+\"px)\":\"translate3d(\"+x+\"px, \"+y+\"px, 0)\",_Object$assign))}return Object.assign({},commonStyles,(_Object$assign2={},_Object$assign2[sideY]=hasY?y+\"px\":\"\",_Object$assign2[sideX]=hasX?x+\"px\":\"\",_Object$assign2.transform=\"\",_Object$assign2))}function computeStyles(_ref5){var state=_ref5.state,options=_ref5.options,_options$gpuAccelerat=options.gpuAcceleration,gpuAcceleration=_options$gpuAccelerat===void 0?!0:_options$gpuAccelerat,_options$adaptive=options.adaptive,adaptive=_options$adaptive===void 0?!0:_options$adaptive,_options$roundOffsets=options.roundOffsets,roundOffsets=_options$roundOffsets===void 0?!0:_options$roundOffsets,commonStyles={placement:getBasePlacement(state.placement),variation:getVariation(state.placement),popper:state.elements.popper,popperRect:state.rects.popper,gpuAcceleration,isFixed:state.options.strategy===\"fixed\"};state.modifiersData.popperOffsets!=null&&(state.styles.popper=Object.assign({},state.styles.popper,mapToStyles(Object.assign({},commonStyles,{offsets:state.modifiersData.popperOffsets,position:state.options.strategy,adaptive,roundOffsets})))),state.modifiersData.arrow!=null&&(state.styles.arrow=Object.assign({},state.styles.arrow,mapToStyles(Object.assign({},commonStyles,{offsets:state.modifiersData.arrow,position:\"absolute\",adaptive:!1,roundOffsets})))),state.attributes.popper=Object.assign({},state.attributes.popper,{\"data-popper-placement\":state.placement});}var computeStyles_default={name:\"computeStyles\",enabled:!0,phase:\"beforeWrite\",fn:computeStyles,data:{}};var passive={passive:!0};function effect3(_ref){var state=_ref.state,instance=_ref.instance,options=_ref.options,_options$scroll=options.scroll,scroll=_options$scroll===void 0?!0:_options$scroll,_options$resize=options.resize,resize=_options$resize===void 0?!0:_options$resize,window2=getWindow(state.elements.popper),scrollParents=[].concat(state.scrollParents.reference,state.scrollParents.popper);return scroll&&scrollParents.forEach(function(scrollParent){scrollParent.addEventListener(\"scroll\",instance.update,passive);}),resize&&window2.addEventListener(\"resize\",instance.update,passive),function(){scroll&&scrollParents.forEach(function(scrollParent){scrollParent.removeEventListener(\"scroll\",instance.update,passive);}),resize&&window2.removeEventListener(\"resize\",instance.update,passive);}}var eventListeners_default={name:\"eventListeners\",enabled:!0,phase:\"write\",fn:function(){},effect:effect3,data:{}};var hash={left:\"right\",right:\"left\",bottom:\"top\",top:\"bottom\"};function getOppositePlacement(placement){return placement.replace(/left|right|bottom|top/g,function(matched){return hash[matched]})}var hash2={start:\"end\",end:\"start\"};function getOppositeVariationPlacement(placement){return placement.replace(/start|end/g,function(matched){return hash2[matched]})}function getWindowScroll(node){var win=getWindow(node),scrollLeft=win.pageXOffset,scrollTop=win.pageYOffset;return {scrollLeft,scrollTop}}function getWindowScrollBarX(element){return getBoundingClientRect(getDocumentElement(element)).left+getWindowScroll(element).scrollLeft}function getViewportRect(element,strategy){var win=getWindow(element),html=getDocumentElement(element),visualViewport=win.visualViewport,width=html.clientWidth,height=html.clientHeight,x=0,y=0;if(visualViewport){width=visualViewport.width,height=visualViewport.height;var layoutViewport=isLayoutViewport();(layoutViewport||!layoutViewport&&strategy===\"fixed\")&&(x=visualViewport.offsetLeft,y=visualViewport.offsetTop);}return {width,height,x:x+getWindowScrollBarX(element),y}}function getDocumentRect(element){var _element$ownerDocumen,html=getDocumentElement(element),winScroll=getWindowScroll(element),body=(_element$ownerDocumen=element.ownerDocument)==null?void 0:_element$ownerDocumen.body,width=max(html.scrollWidth,html.clientWidth,body?body.scrollWidth:0,body?body.clientWidth:0),height=max(html.scrollHeight,html.clientHeight,body?body.scrollHeight:0,body?body.clientHeight:0),x=-winScroll.scrollLeft+getWindowScrollBarX(element),y=-winScroll.scrollTop;return getComputedStyle(body||html).direction===\"rtl\"&&(x+=max(html.clientWidth,body?body.clientWidth:0)-width),{width,height,x,y}}function isScrollParent(element){var _getComputedStyle=getComputedStyle(element),overflow=_getComputedStyle.overflow,overflowX=_getComputedStyle.overflowX,overflowY=_getComputedStyle.overflowY;return /auto|scroll|overlay|hidden/.test(overflow+overflowY+overflowX)}function getScrollParent(node){return [\"html\",\"body\",\"#document\"].indexOf(getNodeName(node))>=0?node.ownerDocument.body:isHTMLElement(node)&&isScrollParent(node)?node:getScrollParent(getParentNode(node))}function listScrollParents(element,list){var _element$ownerDocumen;list===void 0&&(list=[]);var scrollParent=getScrollParent(element),isBody=scrollParent===((_element$ownerDocumen=element.ownerDocument)==null?void 0:_element$ownerDocumen.body),win=getWindow(scrollParent),target=isBody?[win].concat(win.visualViewport||[],isScrollParent(scrollParent)?scrollParent:[]):scrollParent,updatedList=list.concat(target);return isBody?updatedList:updatedList.concat(listScrollParents(getParentNode(target)))}function rectToClientRect(rect){return Object.assign({},rect,{left:rect.x,top:rect.y,right:rect.x+rect.width,bottom:rect.y+rect.height})}function getInnerBoundingClientRect(element,strategy){var rect=getBoundingClientRect(element,!1,strategy===\"fixed\");return rect.top=rect.top+element.clientTop,rect.left=rect.left+element.clientLeft,rect.bottom=rect.top+element.clientHeight,rect.right=rect.left+element.clientWidth,rect.width=element.clientWidth,rect.height=element.clientHeight,rect.x=rect.left,rect.y=rect.top,rect}function getClientRectFromMixedType(element,clippingParent,strategy){return clippingParent===viewport?rectToClientRect(getViewportRect(element,strategy)):isElement(clippingParent)?getInnerBoundingClientRect(clippingParent,strategy):rectToClientRect(getDocumentRect(getDocumentElement(element)))}function getClippingParents(element){var clippingParents2=listScrollParents(getParentNode(element)),canEscapeClipping=[\"absolute\",\"fixed\"].indexOf(getComputedStyle(element).position)>=0,clipperElement=canEscapeClipping&&isHTMLElement(element)?getOffsetParent(element):element;return isElement(clipperElement)?clippingParents2.filter(function(clippingParent){return isElement(clippingParent)&&contains(clippingParent,clipperElement)&&getNodeName(clippingParent)!==\"body\"}):[]}function getClippingRect(element,boundary,rootBoundary,strategy){var mainClippingParents=boundary===\"clippingParents\"?getClippingParents(element):[].concat(boundary),clippingParents2=[].concat(mainClippingParents,[rootBoundary]),firstClippingParent=clippingParents2[0],clippingRect=clippingParents2.reduce(function(accRect,clippingParent){var rect=getClientRectFromMixedType(element,clippingParent,strategy);return accRect.top=max(rect.top,accRect.top),accRect.right=min(rect.right,accRect.right),accRect.bottom=min(rect.bottom,accRect.bottom),accRect.left=max(rect.left,accRect.left),accRect},getClientRectFromMixedType(element,firstClippingParent,strategy));return clippingRect.width=clippingRect.right-clippingRect.left,clippingRect.height=clippingRect.bottom-clippingRect.top,clippingRect.x=clippingRect.left,clippingRect.y=clippingRect.top,clippingRect}function computeOffsets(_ref){var reference2=_ref.reference,element=_ref.element,placement=_ref.placement,basePlacement=placement?getBasePlacement(placement):null,variation=placement?getVariation(placement):null,commonX=reference2.x+reference2.width/2-element.width/2,commonY=reference2.y+reference2.height/2-element.height/2,offsets;switch(basePlacement){case top:offsets={x:commonX,y:reference2.y-element.height};break;case bottom:offsets={x:commonX,y:reference2.y+reference2.height};break;case right:offsets={x:reference2.x+reference2.width,y:commonY};break;case left:offsets={x:reference2.x-element.width,y:commonY};break;default:offsets={x:reference2.x,y:reference2.y};}var mainAxis=basePlacement?getMainAxisFromPlacement(basePlacement):null;if(mainAxis!=null){var len=mainAxis===\"y\"?\"height\":\"width\";switch(variation){case start:offsets[mainAxis]=offsets[mainAxis]-(reference2[len]/2-element[len]/2);break;case end:offsets[mainAxis]=offsets[mainAxis]+(reference2[len]/2-element[len]/2);break;}}return offsets}function detectOverflow(state,options){options===void 0&&(options={});var _options=options,_options$placement=_options.placement,placement=_options$placement===void 0?state.placement:_options$placement,_options$strategy=_options.strategy,strategy=_options$strategy===void 0?state.strategy:_options$strategy,_options$boundary=_options.boundary,boundary=_options$boundary===void 0?clippingParents:_options$boundary,_options$rootBoundary=_options.rootBoundary,rootBoundary=_options$rootBoundary===void 0?viewport:_options$rootBoundary,_options$elementConte=_options.elementContext,elementContext=_options$elementConte===void 0?popper:_options$elementConte,_options$altBoundary=_options.altBoundary,altBoundary=_options$altBoundary===void 0?!1:_options$altBoundary,_options$padding=_options.padding,padding=_options$padding===void 0?0:_options$padding,paddingObject=mergePaddingObject(typeof padding!=\"number\"?padding:expandToHashMap(padding,basePlacements)),altContext=elementContext===popper?reference:popper,popperRect=state.rects.popper,element=state.elements[altBoundary?altContext:elementContext],clippingClientRect=getClippingRect(isElement(element)?element:element.contextElement||getDocumentElement(state.elements.popper),boundary,rootBoundary,strategy),referenceClientRect=getBoundingClientRect(state.elements.reference),popperOffsets2=computeOffsets({reference:referenceClientRect,element:popperRect,strategy:\"absolute\",placement}),popperClientRect=rectToClientRect(Object.assign({},popperRect,popperOffsets2)),elementClientRect=elementContext===popper?popperClientRect:referenceClientRect,overflowOffsets={top:clippingClientRect.top-elementClientRect.top+paddingObject.top,bottom:elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom,left:clippingClientRect.left-elementClientRect.left+paddingObject.left,right:elementClientRect.right-clippingClientRect.right+paddingObject.right},offsetData=state.modifiersData.offset;if(elementContext===popper&&offsetData){var offset2=offsetData[placement];Object.keys(overflowOffsets).forEach(function(key){var multiply=[right,bottom].indexOf(key)>=0?1:-1,axis=[top,bottom].indexOf(key)>=0?\"y\":\"x\";overflowOffsets[key]+=offset2[axis]*multiply;});}return overflowOffsets}function computeAutoPlacement(state,options){options===void 0&&(options={});var _options=options,placement=_options.placement,boundary=_options.boundary,rootBoundary=_options.rootBoundary,padding=_options.padding,flipVariations=_options.flipVariations,_options$allowedAutoP=_options.allowedAutoPlacements,allowedAutoPlacements=_options$allowedAutoP===void 0?placements:_options$allowedAutoP,variation=getVariation(placement),placements2=variation?flipVariations?variationPlacements:variationPlacements.filter(function(placement2){return getVariation(placement2)===variation}):basePlacements,allowedPlacements=placements2.filter(function(placement2){return allowedAutoPlacements.indexOf(placement2)>=0});allowedPlacements.length===0&&(allowedPlacements=placements2);var overflows=allowedPlacements.reduce(function(acc,placement2){return acc[placement2]=detectOverflow(state,{placement:placement2,boundary,rootBoundary,padding})[getBasePlacement(placement2)],acc},{});return Object.keys(overflows).sort(function(a,b){return overflows[a]-overflows[b]})}function getExpandedFallbackPlacements(placement){if(getBasePlacement(placement)===auto)return [];var oppositePlacement=getOppositePlacement(placement);return [getOppositeVariationPlacement(placement),oppositePlacement,getOppositeVariationPlacement(oppositePlacement)]}function flip(_ref){var state=_ref.state,options=_ref.options,name=_ref.name;if(!state.modifiersData[name]._skip){for(var _options$mainAxis=options.mainAxis,checkMainAxis=_options$mainAxis===void 0?!0:_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=_options$altAxis===void 0?!0:_options$altAxis,specifiedFallbackPlacements=options.fallbackPlacements,padding=options.padding,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,_options$flipVariatio=options.flipVariations,flipVariations=_options$flipVariatio===void 0?!0:_options$flipVariatio,allowedAutoPlacements=options.allowedAutoPlacements,preferredPlacement=state.options.placement,basePlacement=getBasePlacement(preferredPlacement),isBasePlacement=basePlacement===preferredPlacement,fallbackPlacements=specifiedFallbackPlacements||(isBasePlacement||!flipVariations?[getOppositePlacement(preferredPlacement)]:getExpandedFallbackPlacements(preferredPlacement)),placements2=[preferredPlacement].concat(fallbackPlacements).reduce(function(acc,placement2){return acc.concat(getBasePlacement(placement2)===auto?computeAutoPlacement(state,{placement:placement2,boundary,rootBoundary,padding,flipVariations,allowedAutoPlacements}):placement2)},[]),referenceRect=state.rects.reference,popperRect=state.rects.popper,checksMap=new Map,makeFallbackChecks=!0,firstFittingPlacement=placements2[0],i=0;i=0,len=isVertical?\"width\":\"height\",overflow=detectOverflow(state,{placement,boundary,rootBoundary,altBoundary,padding}),mainVariationSide=isVertical?isStartVariation?right:left:isStartVariation?bottom:top;referenceRect[len]>popperRect[len]&&(mainVariationSide=getOppositePlacement(mainVariationSide));var altVariationSide=getOppositePlacement(mainVariationSide),checks=[];if(checkMainAxis&&checks.push(overflow[_basePlacement]<=0),checkAltAxis&&checks.push(overflow[mainVariationSide]<=0,overflow[altVariationSide]<=0),checks.every(function(check){return check})){firstFittingPlacement=placement,makeFallbackChecks=!1;break}checksMap.set(placement,checks);}if(makeFallbackChecks)for(var numberOfChecks=flipVariations?3:1,_loop=function(_i2){var fittingPlacement=placements2.find(function(placement2){var checks2=checksMap.get(placement2);if(checks2)return checks2.slice(0,_i2).every(function(check){return check})});if(fittingPlacement)return firstFittingPlacement=fittingPlacement,\"break\"},_i=numberOfChecks;_i>0;_i--){var _ret=_loop(_i);if(_ret===\"break\")break}state.placement!==firstFittingPlacement&&(state.modifiersData[name]._skip=!0,state.placement=firstFittingPlacement,state.reset=!0);}}var flip_default={name:\"flip\",enabled:!0,phase:\"main\",fn:flip,requiresIfExists:[\"offset\"],data:{_skip:!1}};function getSideOffsets(overflow,rect,preventedOffsets){return preventedOffsets===void 0&&(preventedOffsets={x:0,y:0}),{top:overflow.top-rect.height-preventedOffsets.y,right:overflow.right-rect.width+preventedOffsets.x,bottom:overflow.bottom-rect.height+preventedOffsets.y,left:overflow.left-rect.width-preventedOffsets.x}}function isAnySideFullyClipped(overflow){return [top,right,bottom,left].some(function(side){return overflow[side]>=0})}function hide(_ref){var state=_ref.state,name=_ref.name,referenceRect=state.rects.reference,popperRect=state.rects.popper,preventedOffsets=state.modifiersData.preventOverflow,referenceOverflow=detectOverflow(state,{elementContext:\"reference\"}),popperAltOverflow=detectOverflow(state,{altBoundary:!0}),referenceClippingOffsets=getSideOffsets(referenceOverflow,referenceRect),popperEscapeOffsets=getSideOffsets(popperAltOverflow,popperRect,preventedOffsets),isReferenceHidden=isAnySideFullyClipped(referenceClippingOffsets),hasPopperEscaped=isAnySideFullyClipped(popperEscapeOffsets);state.modifiersData[name]={referenceClippingOffsets,popperEscapeOffsets,isReferenceHidden,hasPopperEscaped},state.attributes.popper=Object.assign({},state.attributes.popper,{\"data-popper-reference-hidden\":isReferenceHidden,\"data-popper-escaped\":hasPopperEscaped});}var hide_default={name:\"hide\",enabled:!0,phase:\"main\",requiresIfExists:[\"preventOverflow\"],fn:hide};function distanceAndSkiddingToXY(placement,rects,offset2){var basePlacement=getBasePlacement(placement),invertDistance=[left,top].indexOf(basePlacement)>=0?-1:1,_ref=typeof offset2==\"function\"?offset2(Object.assign({},rects,{placement})):offset2,skidding=_ref[0],distance=_ref[1];return skidding=skidding||0,distance=(distance||0)*invertDistance,[left,right].indexOf(basePlacement)>=0?{x:distance,y:skidding}:{x:skidding,y:distance}}function offset(_ref2){var state=_ref2.state,options=_ref2.options,name=_ref2.name,_options$offset=options.offset,offset2=_options$offset===void 0?[0,0]:_options$offset,data=placements.reduce(function(acc,placement){return acc[placement]=distanceAndSkiddingToXY(placement,state.rects,offset2),acc},{}),_data$state$placement=data[state.placement],x=_data$state$placement.x,y=_data$state$placement.y;state.modifiersData.popperOffsets!=null&&(state.modifiersData.popperOffsets.x+=x,state.modifiersData.popperOffsets.y+=y),state.modifiersData[name]=data;}var offset_default={name:\"offset\",enabled:!0,phase:\"main\",requires:[\"popperOffsets\"],fn:offset};function popperOffsets(_ref){var state=_ref.state,name=_ref.name;state.modifiersData[name]=computeOffsets({reference:state.rects.reference,element:state.rects.popper,strategy:\"absolute\",placement:state.placement});}var popperOffsets_default={name:\"popperOffsets\",enabled:!0,phase:\"read\",fn:popperOffsets,data:{}};function getAltAxis(axis){return axis===\"x\"?\"y\":\"x\"}function preventOverflow(_ref){var state=_ref.state,options=_ref.options,name=_ref.name,_options$mainAxis=options.mainAxis,checkMainAxis=_options$mainAxis===void 0?!0:_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=_options$altAxis===void 0?!1:_options$altAxis,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,padding=options.padding,_options$tether=options.tether,tether=_options$tether===void 0?!0:_options$tether,_options$tetherOffset=options.tetherOffset,tetherOffset=_options$tetherOffset===void 0?0:_options$tetherOffset,overflow=detectOverflow(state,{boundary,rootBoundary,padding,altBoundary}),basePlacement=getBasePlacement(state.placement),variation=getVariation(state.placement),isBasePlacement=!variation,mainAxis=getMainAxisFromPlacement(basePlacement),altAxis=getAltAxis(mainAxis),popperOffsets2=state.modifiersData.popperOffsets,referenceRect=state.rects.reference,popperRect=state.rects.popper,tetherOffsetValue=typeof tetherOffset==\"function\"?tetherOffset(Object.assign({},state.rects,{placement:state.placement})):tetherOffset,normalizedTetherOffsetValue=typeof tetherOffsetValue==\"number\"?{mainAxis:tetherOffsetValue,altAxis:tetherOffsetValue}:Object.assign({mainAxis:0,altAxis:0},tetherOffsetValue),offsetModifierState=state.modifiersData.offset?state.modifiersData.offset[state.placement]:null,data={x:0,y:0};if(popperOffsets2){if(checkMainAxis){var _offsetModifierState$,mainSide=mainAxis===\"y\"?top:left,altSide=mainAxis===\"y\"?bottom:right,len=mainAxis===\"y\"?\"height\":\"width\",offset2=popperOffsets2[mainAxis],min2=offset2+overflow[mainSide],max2=offset2-overflow[altSide],additive=tether?-popperRect[len]/2:0,minLen=variation===start?referenceRect[len]:popperRect[len],maxLen=variation===start?-popperRect[len]:-referenceRect[len],arrowElement=state.elements.arrow,arrowRect=tether&&arrowElement?getLayoutRect(arrowElement):{width:0,height:0},arrowPaddingObject=state.modifiersData[\"arrow#persistent\"]?state.modifiersData[\"arrow#persistent\"].padding:getFreshSideObject(),arrowPaddingMin=arrowPaddingObject[mainSide],arrowPaddingMax=arrowPaddingObject[altSide],arrowLen=within(0,referenceRect[len],arrowRect[len]),minOffset=isBasePlacement?referenceRect[len]/2-additive-arrowLen-arrowPaddingMin-normalizedTetherOffsetValue.mainAxis:minLen-arrowLen-arrowPaddingMin-normalizedTetherOffsetValue.mainAxis,maxOffset=isBasePlacement?-referenceRect[len]/2+additive+arrowLen+arrowPaddingMax+normalizedTetherOffsetValue.mainAxis:maxLen+arrowLen+arrowPaddingMax+normalizedTetherOffsetValue.mainAxis,arrowOffsetParent=state.elements.arrow&&getOffsetParent(state.elements.arrow),clientOffset=arrowOffsetParent?mainAxis===\"y\"?arrowOffsetParent.clientTop||0:arrowOffsetParent.clientLeft||0:0,offsetModifierValue=(_offsetModifierState$=offsetModifierState?.[mainAxis])!=null?_offsetModifierState$:0,tetherMin=offset2+minOffset-offsetModifierValue-clientOffset,tetherMax=offset2+maxOffset-offsetModifierValue,preventedOffset=within(tether?min(min2,tetherMin):min2,offset2,tether?max(max2,tetherMax):max2);popperOffsets2[mainAxis]=preventedOffset,data[mainAxis]=preventedOffset-offset2;}if(checkAltAxis){var _offsetModifierState$2,_mainSide=mainAxis===\"x\"?top:left,_altSide=mainAxis===\"x\"?bottom:right,_offset=popperOffsets2[altAxis],_len=altAxis===\"y\"?\"height\":\"width\",_min=_offset+overflow[_mainSide],_max=_offset-overflow[_altSide],isOriginSide=[top,left].indexOf(basePlacement)!==-1,_offsetModifierValue=(_offsetModifierState$2=offsetModifierState?.[altAxis])!=null?_offsetModifierState$2:0,_tetherMin=isOriginSide?_min:_offset-referenceRect[_len]-popperRect[_len]-_offsetModifierValue+normalizedTetherOffsetValue.altAxis,_tetherMax=isOriginSide?_offset+referenceRect[_len]+popperRect[_len]-_offsetModifierValue-normalizedTetherOffsetValue.altAxis:_max,_preventedOffset=tether&&isOriginSide?withinMaxClamp(_tetherMin,_offset,_tetherMax):within(tether?_tetherMin:_min,_offset,tether?_tetherMax:_max);popperOffsets2[altAxis]=_preventedOffset,data[altAxis]=_preventedOffset-_offset;}state.modifiersData[name]=data;}}var preventOverflow_default={name:\"preventOverflow\",enabled:!0,phase:\"main\",fn:preventOverflow,requiresIfExists:[\"offset\"]};function getHTMLElementScroll(element){return {scrollLeft:element.scrollLeft,scrollTop:element.scrollTop}}function getNodeScroll(node){return node===getWindow(node)||!isHTMLElement(node)?getWindowScroll(node):getHTMLElementScroll(node)}function isElementScaled(element){var rect=element.getBoundingClientRect(),scaleX=round(rect.width)/element.offsetWidth||1,scaleY=round(rect.height)/element.offsetHeight||1;return scaleX!==1||scaleY!==1}function getCompositeRect(elementOrVirtualElement,offsetParent,isFixed){isFixed===void 0&&(isFixed=!1);var isOffsetParentAnElement=isHTMLElement(offsetParent),offsetParentIsScaled=isHTMLElement(offsetParent)&&isElementScaled(offsetParent),documentElement=getDocumentElement(offsetParent),rect=getBoundingClientRect(elementOrVirtualElement,offsetParentIsScaled,isFixed),scroll={scrollLeft:0,scrollTop:0},offsets={x:0,y:0};return (isOffsetParentAnElement||!isOffsetParentAnElement&&!isFixed)&&((getNodeName(offsetParent)!==\"body\"||isScrollParent(documentElement))&&(scroll=getNodeScroll(offsetParent)),isHTMLElement(offsetParent)?(offsets=getBoundingClientRect(offsetParent,!0),offsets.x+=offsetParent.clientLeft,offsets.y+=offsetParent.clientTop):documentElement&&(offsets.x=getWindowScrollBarX(documentElement))),{x:rect.left+scroll.scrollLeft-offsets.x,y:rect.top+scroll.scrollTop-offsets.y,width:rect.width,height:rect.height}}function order(modifiers){var map=new Map,visited=new Set,result=[];modifiers.forEach(function(modifier){map.set(modifier.name,modifier);});function sort(modifier){visited.add(modifier.name);var requires=[].concat(modifier.requires||[],modifier.requiresIfExists||[]);requires.forEach(function(dep){if(!visited.has(dep)){var depModifier=map.get(dep);depModifier&&sort(depModifier);}}),result.push(modifier);}return modifiers.forEach(function(modifier){visited.has(modifier.name)||sort(modifier);}),result}function orderModifiers(modifiers){var orderedModifiers=order(modifiers);return modifierPhases.reduce(function(acc,phase){return acc.concat(orderedModifiers.filter(function(modifier){return modifier.phase===phase}))},[])}function debounce(fn2){var pending;return function(){return pending||(pending=new Promise(function(resolve){Promise.resolve().then(function(){pending=void 0,resolve(fn2());});})),pending}}function mergeByName(modifiers){var merged=modifiers.reduce(function(merged2,current){var existing=merged2[current.name];return merged2[current.name]=existing?Object.assign({},existing,current,{options:Object.assign({},existing.options,current.options),data:Object.assign({},existing.data,current.data)}):current,merged2},{});return Object.keys(merged).map(function(key){return merged[key]})}var DEFAULT_OPTIONS={placement:\"bottom\",modifiers:[],strategy:\"absolute\"};function areValidElements(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return !args.some(function(element){return !(element&&typeof element.getBoundingClientRect==\"function\")})}function popperGenerator(generatorOptions){generatorOptions===void 0&&(generatorOptions={});var _generatorOptions=generatorOptions,_generatorOptions$def=_generatorOptions.defaultModifiers,defaultModifiers2=_generatorOptions$def===void 0?[]:_generatorOptions$def,_generatorOptions$def2=_generatorOptions.defaultOptions,defaultOptions=_generatorOptions$def2===void 0?DEFAULT_OPTIONS:_generatorOptions$def2;return function(reference2,popper2,options){options===void 0&&(options=defaultOptions);var state={placement:\"bottom\",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,defaultOptions),modifiersData:{},elements:{reference:reference2,popper:popper2},attributes:{},styles:{}},effectCleanupFns=[],isDestroyed=!1,instance={state,setOptions:function(setOptionsAction){var options2=typeof setOptionsAction==\"function\"?setOptionsAction(state.options):setOptionsAction;cleanupModifierEffects(),state.options=Object.assign({},defaultOptions,state.options,options2),state.scrollParents={reference:isElement(reference2)?listScrollParents(reference2):reference2.contextElement?listScrollParents(reference2.contextElement):[],popper:listScrollParents(popper2)};var orderedModifiers=orderModifiers(mergeByName([].concat(defaultModifiers2,state.options.modifiers)));return state.orderedModifiers=orderedModifiers.filter(function(m){return m.enabled}),runModifierEffects(),instance.update()},forceUpdate:function(){if(!isDestroyed){var _state$elements=state.elements,reference3=_state$elements.reference,popper3=_state$elements.popper;if(areValidElements(reference3,popper3)){state.rects={reference:getCompositeRect(reference3,getOffsetParent(popper3),state.options.strategy===\"fixed\"),popper:getLayoutRect(popper3)},state.reset=!1,state.placement=state.options.placement,state.orderedModifiers.forEach(function(modifier){return state.modifiersData[modifier.name]=Object.assign({},modifier.data)});for(var index=0;indexactual.split(\"-\")[0]===requests?value:fallback),ArrowSpacing=8,Arrow=styled.div({position:\"absolute\",borderStyle:\"solid\"},({placement})=>{let x=0,y=0;switch(!0){case(placement.startsWith(\"left\")||placement.startsWith(\"right\")):{y=8;break}case(placement.startsWith(\"top\")||placement.startsWith(\"bottom\")):{x=8;break}}return {transform:`translate3d(${x}px, ${y}px, 0px)`}},({theme,color,placement})=>({bottom:`${match(\"top\",placement,`${ArrowSpacing*-1}px`,\"auto\")}`,top:`${match(\"bottom\",placement,`${ArrowSpacing*-1}px`,\"auto\")}`,right:`${match(\"left\",placement,`${ArrowSpacing*-1}px`,\"auto\")}`,left:`${match(\"right\",placement,`${ArrowSpacing*-1}px`,\"auto\")}`,borderBottomWidth:`${match(\"top\",placement,\"0\",ArrowSpacing)}px`,borderTopWidth:`${match(\"bottom\",placement,\"0\",ArrowSpacing)}px`,borderRightWidth:`${match(\"left\",placement,\"0\",ArrowSpacing)}px`,borderLeftWidth:`${match(\"right\",placement,\"0\",ArrowSpacing)}px`,borderTopColor:match(\"top\",placement,theme.color[color]||color||theme.base===\"light\"?lighten(theme.background.app):theme.background.app,\"transparent\"),borderBottomColor:match(\"bottom\",placement,theme.color[color]||color||theme.base===\"light\"?lighten(theme.background.app):theme.background.app,\"transparent\"),borderLeftColor:match(\"left\",placement,theme.color[color]||color||theme.base===\"light\"?lighten(theme.background.app):theme.background.app,\"transparent\"),borderRightColor:match(\"right\",placement,theme.color[color]||color||theme.base===\"light\"?lighten(theme.background.app):theme.background.app,\"transparent\")})),Wrapper=styled.div(({hidden})=>({display:hidden?\"none\":\"inline-block\",zIndex:2147483647}),({theme,color,hasChrome})=>hasChrome?{background:theme.color[color]||color||theme.base===\"light\"?lighten(theme.background.app):theme.background.app,filter:`\n drop-shadow(0px 5px 5px rgba(0,0,0,0.05))\n drop-shadow(0 1px 3px rgba(0,0,0,0.1))\n `,borderRadius:theme.appBorderRadius,fontSize:theme.typography.size.s1}:{}),Tooltip=React3__default.forwardRef(({placement,hasChrome,children,arrowProps,tooltipRef,color,withArrows,...props},ref)=>React3__default.createElement(Wrapper,{\"data-testid\":\"tooltip\",hasChrome,ref,...props,color},hasChrome&&withArrows&&React3__default.createElement(Arrow,{placement,...arrowProps,color}),children));Tooltip.displayName=\"Tooltip\";Tooltip.defaultProps={color:void 0,tooltipRef:void 0,hasChrome:!0,placement:\"top\",arrowProps:{}};var {document:document2}=global,TargetContainer=styled.div`\n display: inline-block;\n cursor: ${props=>props.trigger===\"hover\"||props.trigger.includes(\"hover\")?\"default\":\"pointer\"};\n`,TargetSvgContainer=styled.g`\n cursor: ${props=>props.trigger===\"hover\"||props.trigger.includes(\"hover\")?\"default\":\"pointer\"};\n`,WithTooltipPure=({svg,trigger,closeOnOutsideClick,placement,hasChrome,withArrows,offset:offset2,tooltip,children,closeOnTriggerHidden,mutationObserverOptions,closeOnClick,tooltipShown,onVisibilityChange,defaultVisible,delayHide,visible,interactive,delayShow,modifiers,strategy,followCursor,onVisibleChange,...props})=>{let Container=svg?TargetSvgContainer:TargetContainer,{getArrowProps,getTooltipProps,setTooltipRef,setTriggerRef,visible:isVisible,state}=usePopperTooltip({trigger,placement,defaultVisible:defaultVisible??tooltipShown,delayHide,interactive,closeOnOutsideClick:closeOnOutsideClick??closeOnClick,closeOnTriggerHidden,onVisibleChange:_isVisible=>{onVisibilityChange?.(_isVisible),onVisibleChange?.(_isVisible);},delayShow,followCursor,mutationObserverOptions,visible,offset:offset2},{modifiers,strategy}),tooltipComponent=React3__default.createElement(Tooltip,{placement:state?.placement,ref:setTooltipRef,hasChrome,arrowProps:getArrowProps(),withArrows,...getTooltipProps()},typeof tooltip==\"function\"?tooltip({onHide:()=>onVisibleChange(!1)}):tooltip);return React3__default.createElement(React3__default.Fragment,null,React3__default.createElement(Container,{trigger,ref:setTriggerRef,...props},children),isVisible&&ReactDOM__default.createPortal(tooltipComponent,document2.body))};WithTooltipPure.defaultProps={svg:!1,trigger:\"click\",closeOnOutsideClick:!1,placement:\"top\",modifiers:[{name:\"preventOverflow\",options:{padding:8}},{name:\"offset\",options:{offset:[8,8]}},{name:\"arrow\",options:{padding:8}}],hasChrome:!0,defaultVisible:!1};var WithToolTipState=({startOpen=!1,onVisibleChange:onChange,...rest})=>{let[tooltipShown,setTooltipShown]=useState(startOpen),onVisibilityChange=useCallback(visibility=>{onChange&&onChange(visibility)===!1||setTooltipShown(visibility);},[onChange]);return useEffect(()=>{let hide2=()=>onVisibilityChange(!1);document2.addEventListener(\"keydown\",hide2,!1);let iframes=Array.from(document2.getElementsByTagName(\"iframe\")),unbinders=[];return iframes.forEach(iframe=>{let bind=()=>{try{iframe.contentWindow.document&&(iframe.contentWindow.document.addEventListener(\"click\",hide2),unbinders.push(()=>{try{iframe.contentWindow.document.removeEventListener(\"click\",hide2);}catch{}}));}catch{}};bind(),iframe.addEventListener(\"load\",bind),unbinders.push(()=>{iframe.removeEventListener(\"load\",bind);});}),()=>{document2.removeEventListener(\"keydown\",hide2),unbinders.forEach(unbind=>{unbind();});}}),React3__default.createElement(WithTooltipPure,{...rest,visible:tooltipShown,onVisibleChange:onVisibilityChange})};\n\nexport { WithToolTipState, WithTooltipPure, auto };\n","import { useRef, useEffect, useCallback, useState, useMemo } from 'react';\n\n// This could've been more streamlined with internal state instead of abusing\n// refs to such extent, but then composing hooks and components could not opt out of unnecessary renders.\nfunction useResolvedElement(subscriber, refOrElement) {\n var lastReportRef = useRef(null);\n var refOrElementRef = useRef(null);\n refOrElementRef.current = refOrElement;\n var cbElementRef = useRef(null); // Calling re-evaluation after each render without using a dep array,\n // as the ref object's current value could've changed since the last render.\n\n useEffect(function () {\n evaluateSubscription();\n });\n var evaluateSubscription = useCallback(function () {\n var cbElement = cbElementRef.current;\n var refOrElement = refOrElementRef.current; // Ugly ternary. But smaller than an if-else block.\n\n var element = cbElement ? cbElement : refOrElement ? refOrElement instanceof Element ? refOrElement : refOrElement.current : null;\n\n if (lastReportRef.current && lastReportRef.current.element === element && lastReportRef.current.subscriber === subscriber) {\n return;\n }\n\n if (lastReportRef.current && lastReportRef.current.cleanup) {\n lastReportRef.current.cleanup();\n }\n\n lastReportRef.current = {\n element: element,\n subscriber: subscriber,\n // Only calling the subscriber, if there's an actual element to report.\n // Setting cleanup to undefined unless a subscriber returns one, as an existing cleanup function would've been just called.\n cleanup: element ? subscriber(element) : undefined\n };\n }, [subscriber]); // making sure we call the cleanup function on unmount\n\n useEffect(function () {\n return function () {\n if (lastReportRef.current && lastReportRef.current.cleanup) {\n lastReportRef.current.cleanup();\n lastReportRef.current = null;\n }\n };\n }, []);\n return useCallback(function (element) {\n cbElementRef.current = element;\n evaluateSubscription();\n }, [evaluateSubscription]);\n}\n\n// We're only using the first element of the size sequences, until future versions of the spec solidify on how\n// exactly it'll be used for fragments in multi-column scenarios:\n// From the spec:\n// > The box size properties are exposed as FrozenArray in order to support elements that have multiple fragments,\n// > which occur in multi-column scenarios. However the current definitions of content rect and border box do not\n// > mention how those boxes are affected by multi-column layout. In this spec, there will only be a single\n// > ResizeObserverSize returned in the FrozenArray, which will correspond to the dimensions of the first column.\n// > A future version of this spec will extend the returned FrozenArray to contain the per-fragment size information.\n// (https://drafts.csswg.org/resize-observer/#resize-observer-entry-interface)\n//\n// Also, testing these new box options revealed that in both Chrome and FF everything is returned in the callback,\n// regardless of the \"box\" option.\n// The spec states the following on this:\n// > This does not have any impact on which box dimensions are returned to the defined callback when the event\n// > is fired, it solely defines which box the author wishes to observe layout changes on.\n// (https://drafts.csswg.org/resize-observer/#resize-observer-interface)\n// I'm not exactly clear on what this means, especially when you consider a later section stating the following:\n// > This section is non-normative. An author may desire to observe more than one CSS box.\n// > In this case, author will need to use multiple ResizeObservers.\n// (https://drafts.csswg.org/resize-observer/#resize-observer-interface)\n// Which is clearly not how current browser implementations behave, and seems to contradict the previous quote.\n// For this reason I decided to only return the requested size,\n// even though it seems we have access to results for all box types.\n// This also means that we get to keep the current api, being able to return a simple { width, height } pair,\n// regardless of box option.\nfunction extractSize(entry, boxProp, sizeType) {\n if (!entry[boxProp]) {\n if (boxProp === \"contentBoxSize\") {\n // The dimensions in `contentBoxSize` and `contentRect` are equivalent according to the spec.\n // See the 6th step in the description for the RO algorithm:\n // https://drafts.csswg.org/resize-observer/#create-and-populate-resizeobserverentry-h\n // > Set this.contentRect to logical this.contentBoxSize given target and observedBox of \"content-box\".\n // In real browser implementations of course these objects differ, but the width/height values should be equivalent.\n return entry.contentRect[sizeType === \"inlineSize\" ? \"width\" : \"height\"];\n }\n\n return undefined;\n } // A couple bytes smaller than calling Array.isArray() and just as effective here.\n\n\n return entry[boxProp][0] ? entry[boxProp][0][sizeType] : // TS complains about this, because the RO entry type follows the spec and does not reflect Firefox's current\n // behaviour of returning objects instead of arrays for `borderBoxSize` and `contentBoxSize`.\n // @ts-ignore\n entry[boxProp][sizeType];\n}\n\nfunction useResizeObserver(opts) {\n if (opts === void 0) {\n opts = {};\n }\n\n // Saving the callback as a ref. With this, I don't need to put onResize in the\n // effect dep array, and just passing in an anonymous function without memoising\n // will not reinstantiate the hook's ResizeObserver.\n var onResize = opts.onResize;\n var onResizeRef = useRef(undefined);\n onResizeRef.current = onResize;\n var round = opts.round || Math.round; // Using a single instance throughout the hook's lifetime\n\n var resizeObserverRef = useRef();\n\n var _useState = useState({\n width: undefined,\n height: undefined\n }),\n size = _useState[0],\n setSize = _useState[1]; // In certain edge cases the RO might want to report a size change just after\n // the component unmounted.\n\n\n var didUnmount = useRef(false);\n useEffect(function () {\n didUnmount.current = false;\n return function () {\n didUnmount.current = true;\n };\n }, []); // Using a ref to track the previous width / height to avoid unnecessary renders.\n\n var previous = useRef({\n width: undefined,\n height: undefined\n }); // This block is kinda like a useEffect, only it's called whenever a new\n // element could be resolved based on the ref option. It also has a cleanup\n // function.\n\n var refCallback = useResolvedElement(useCallback(function (element) {\n // We only use a single Resize Observer instance, and we're instantiating it on demand, only once there's something to observe.\n // This instance is also recreated when the `box` option changes, so that a new observation is fired if there was a previously observed element with a different box option.\n if (!resizeObserverRef.current || resizeObserverRef.current.box !== opts.box || resizeObserverRef.current.round !== round) {\n resizeObserverRef.current = {\n box: opts.box,\n round: round,\n instance: new ResizeObserver(function (entries) {\n var entry = entries[0];\n var boxProp = opts.box === \"border-box\" ? \"borderBoxSize\" : opts.box === \"device-pixel-content-box\" ? \"devicePixelContentBoxSize\" : \"contentBoxSize\";\n var reportedWidth = extractSize(entry, boxProp, \"inlineSize\");\n var reportedHeight = extractSize(entry, boxProp, \"blockSize\");\n var newWidth = reportedWidth ? round(reportedWidth) : undefined;\n var newHeight = reportedHeight ? round(reportedHeight) : undefined;\n\n if (previous.current.width !== newWidth || previous.current.height !== newHeight) {\n var newSize = {\n width: newWidth,\n height: newHeight\n };\n previous.current.width = newWidth;\n previous.current.height = newHeight;\n\n if (onResizeRef.current) {\n onResizeRef.current(newSize);\n } else {\n if (!didUnmount.current) {\n setSize(newSize);\n }\n }\n }\n })\n };\n }\n\n resizeObserverRef.current.instance.observe(element, {\n box: opts.box\n });\n return function () {\n if (resizeObserverRef.current) {\n resizeObserverRef.current.instance.unobserve(element);\n }\n };\n }, [opts.box, round]), opts.ref);\n return useMemo(function () {\n return {\n ref: refCallback,\n width: size.width,\n height: size.height\n };\n }, [refCallback, size.width, size.height]);\n}\n\nexport { useResizeObserver as default };\n","import { SyntaxHighlighter, ScrollArea } from './chunk-ELLS3HSY.mjs';\nexport { ActionBar, ScrollArea, createCopyToClipboardFunction } from './chunk-ELLS3HSY.mjs';\nimport { auto, WithToolTipState } from './chunk-NE5YGCQB.mjs';\nimport './chunk-MUPK3MH6.mjs';\nimport './chunk-ISRAU5IP.mjs';\nimport './chunk-YU6L2YXV.mjs';\nimport './chunk-VSDH24NK.mjs';\nimport './chunk-BNQCH2A2.mjs';\nimport './chunk-UDRSICRZ.mjs';\nimport './chunk-J6EJ35VB.mjs';\nimport './chunk-HNGDCMHD.mjs';\nimport './chunk-4Y2S2TEP.mjs';\nimport './chunk-CW4JFC2I.mjs';\nimport './chunk-7PYIL73X.mjs';\nimport './chunk-SWV57YYC.mjs';\nimport './chunk-MNLJ4LIX.mjs';\nimport './chunk-DHRX2IL7.mjs';\nimport './chunk-JRLSWQMA.mjs';\nimport * as React5 from 'react';\nimport React5__default, { memo, lazy, forwardRef, useMemo, Fragment, createElement, Children, Suspense, useRef, useState, useCallback, useLayoutEffect, Component, useEffect } from 'react';\nimport { styled, ignoreSsrWarning, isPropValid, keyframes, color, typography } from '@storybook/theming';\nimport useResizeObserver from 'use-resize-observer';\nimport { global } from '@storybook/global';\nimport memoize from 'memoizerific';\nimport { sanitize } from '@storybook/csf';\n\nvar nameSpaceClassNames=({...props},key)=>{let classes=[props.class,props.className];return delete props.class,props.className=[\"sbdocs\",`sbdocs-${key}`,...classes].filter(Boolean).join(\" \"),props};function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i\"u\"||!Reflect.construct||Reflect.construct.sham)return !1;if(typeof Proxy==\"function\")return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return !1}}function _construct(Parent,args,Class){return _isNativeReflectConstruct()?_construct=Reflect.construct.bind():_construct=function(Parent2,args2,Class2){var a=[null];a.push.apply(a,args2);var Constructor=Function.bind.apply(Parent2,a),instance=new Constructor;return Class2&&_setPrototypeOf(instance,Class2.prototype),instance},_construct.apply(null,arguments)}function _wrapNativeSuper(Class){var _cache=typeof Map==\"function\"?new Map:void 0;return _wrapNativeSuper=function(Class2){if(Class2===null||!_isNativeFunction(Class2))return Class2;if(typeof Class2!=\"function\")throw new TypeError(\"Super expression must either be null or a function\");if(typeof _cache<\"u\"){if(_cache.has(Class2))return _cache.get(Class2);_cache.set(Class2,Wrapper3);}function Wrapper3(){return _construct(Class2,arguments,_getPrototypeOf(this).constructor)}return Wrapper3.prototype=Object.create(Class2.prototype,{constructor:{value:Wrapper3,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper3,Class2)},_wrapNativeSuper(Class)}var ERRORS={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n`,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n`,3:`Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n`,4:`Couldn't generate valid rgb string from %s, it returned %s.\n\n`,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n`,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).\n\n`,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).\n\n`,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n`,9:`Please provide a number of steps to the modularScale helper.\n\n`,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n`,11:`Invalid value passed as base to modularScale, expected number or em string but got \"%s\"\n\n`,12:`Expected a string ending in \"px\" or a number passed as the first argument to %s(), got \"%s\" instead.\n\n`,13:`Expected a string ending in \"px\" or a number passed as the second argument to %s(), got \"%s\" instead.\n\n`,14:`Passed invalid pixel value (\"%s\") to %s(), please pass a value like \"12px\" or 12.\n\n`,15:`Passed invalid base value (\"%s\") to %s(), please pass a value like \"12px\" or 12.\n\n`,16:`You must provide a template to this method.\n\n`,17:`You passed an unsupported selector state to this method.\n\n`,18:`minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n`,19:`fromSize and toSize must be provided as stringified numbers with the same units.\n\n`,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n`,21:\"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\\n\\n\",22:\"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\\n\\n\",23:`fontFace expects a name of a font-family.\n\n`,24:`fontFace expects either the path to the font file(s) or a name of a local copy.\n\n`,25:`fontFace expects localFonts to be an array.\n\n`,26:`fontFace expects fileFormats to be an array.\n\n`,27:`radialGradient requries at least 2 color-stops to properly render.\n\n`,28:`Please supply a filename to retinaImage() as the first argument.\n\n`,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n`,30:\"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\\n\\n\",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n`,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\n\n`,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n`,34:`borderRadius expects a radius value as a string or number as the second argument.\n\n`,35:`borderRadius expects one of \"top\", \"bottom\", \"left\" or \"right\" as the first argument.\n\n`,36:`Property must be a string value.\n\n`,37:`Syntax Error at %s.\n\n`,38:`Formula contains a function that needs parentheses at %s.\n\n`,39:`Formula is missing closing parenthesis at %s.\n\n`,40:`Formula has too many closing parentheses at %s.\n\n`,41:`All values in a formula must have the same unit or be unitless.\n\n`,42:`Please provide a number of steps to the modularScale helper.\n\n`,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n`,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n`,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n`,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n`,47:`minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n`,48:`fromSize and toSize must be provided as stringified numbers with the same units.\n\n`,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n`,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n`,51:`Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n`,52:`fontFace expects either the path to the font file(s) or a name of a local copy.\n\n`,53:`fontFace expects localFonts to be an array.\n\n`,54:`fontFace expects fileFormats to be an array.\n\n`,55:`fontFace expects a name of a font-family.\n\n`,56:`linearGradient requries at least 2 color-stops to properly render.\n\n`,57:`radialGradient requries at least 2 color-stops to properly render.\n\n`,58:`Please supply a filename to retinaImage() as the first argument.\n\n`,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n`,60:\"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\\n\\n\",61:`Property must be a string value.\n\n`,62:`borderRadius expects a radius value as a string or number as the second argument.\n\n`,63:`borderRadius expects one of \"top\", \"bottom\", \"left\" or \"right\" as the first argument.\n\n`,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n`,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').\n\n`,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n`,67:`You must provide a template to this method.\n\n`,68:`You passed an unsupported selector state to this method.\n\n`,69:`Expected a string ending in \"px\" or a number passed as the first argument to %s(), got %s instead.\n\n`,70:`Expected a string ending in \"px\" or a number passed as the second argument to %s(), got %s instead.\n\n`,71:`Passed invalid pixel value %s to %s(), please pass a value like \"12px\" or 12.\n\n`,72:`Passed invalid base value %s to %s(), please pass a value like \"12px\" or 12.\n\n`,73:`Please provide a valid CSS variable.\n\n`,74:`CSS variable not found and no default was provided.\n\n`,75:`important requires a valid style object, got a %s instead.\n\n`,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n\n`,77:`remToPx expects a value in \"rem\" but you provided it in \"%s\".\n\n`,78:`base must be set in \"px\" or \"%\" but you set it in \"%s\".\n`};function format(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];var a=args[0],b=[],c;for(c=1;c1?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];_this=_Error.call(this,format.apply(void 0,[ERRORS[code]].concat(args)))||this;}return _assertThisInitialized(_this)}return PolishedError2}(_wrapNativeSuper(Error));function colorToInt(color2){return Math.round(color2*255)}function convertToInt(red,green,blue){return colorToInt(red)+\",\"+colorToInt(green)+\",\"+colorToInt(blue)}function hslToRgb(hue,saturation,lightness,convert){if(convert===void 0&&(convert=convertToInt),saturation===0)return convert(lightness,lightness,lightness);var huePrime=(hue%360+360)%360/60,chroma=(1-Math.abs(2*lightness-1))*saturation,secondComponent=chroma*(1-Math.abs(huePrime%2-1)),red=0,green=0,blue=0;huePrime>=0&&huePrime<1?(red=chroma,green=secondComponent):huePrime>=1&&huePrime<2?(red=secondComponent,green=chroma):huePrime>=2&&huePrime<3?(green=chroma,blue=secondComponent):huePrime>=3&&huePrime<4?(green=secondComponent,blue=chroma):huePrime>=4&&huePrime<5?(red=secondComponent,blue=chroma):huePrime>=5&&huePrime<6&&(red=chroma,blue=secondComponent);var lightnessModification=lightness-chroma/2,finalRed=red+lightnessModification,finalGreen=green+lightnessModification,finalBlue=blue+lightnessModification;return convert(finalRed,finalGreen,finalBlue)}var namedColorMap={aliceblue:\"f0f8ff\",antiquewhite:\"faebd7\",aqua:\"00ffff\",aquamarine:\"7fffd4\",azure:\"f0ffff\",beige:\"f5f5dc\",bisque:\"ffe4c4\",black:\"000\",blanchedalmond:\"ffebcd\",blue:\"0000ff\",blueviolet:\"8a2be2\",brown:\"a52a2a\",burlywood:\"deb887\",cadetblue:\"5f9ea0\",chartreuse:\"7fff00\",chocolate:\"d2691e\",coral:\"ff7f50\",cornflowerblue:\"6495ed\",cornsilk:\"fff8dc\",crimson:\"dc143c\",cyan:\"00ffff\",darkblue:\"00008b\",darkcyan:\"008b8b\",darkgoldenrod:\"b8860b\",darkgray:\"a9a9a9\",darkgreen:\"006400\",darkgrey:\"a9a9a9\",darkkhaki:\"bdb76b\",darkmagenta:\"8b008b\",darkolivegreen:\"556b2f\",darkorange:\"ff8c00\",darkorchid:\"9932cc\",darkred:\"8b0000\",darksalmon:\"e9967a\",darkseagreen:\"8fbc8f\",darkslateblue:\"483d8b\",darkslategray:\"2f4f4f\",darkslategrey:\"2f4f4f\",darkturquoise:\"00ced1\",darkviolet:\"9400d3\",deeppink:\"ff1493\",deepskyblue:\"00bfff\",dimgray:\"696969\",dimgrey:\"696969\",dodgerblue:\"1e90ff\",firebrick:\"b22222\",floralwhite:\"fffaf0\",forestgreen:\"228b22\",fuchsia:\"ff00ff\",gainsboro:\"dcdcdc\",ghostwhite:\"f8f8ff\",gold:\"ffd700\",goldenrod:\"daa520\",gray:\"808080\",green:\"008000\",greenyellow:\"adff2f\",grey:\"808080\",honeydew:\"f0fff0\",hotpink:\"ff69b4\",indianred:\"cd5c5c\",indigo:\"4b0082\",ivory:\"fffff0\",khaki:\"f0e68c\",lavender:\"e6e6fa\",lavenderblush:\"fff0f5\",lawngreen:\"7cfc00\",lemonchiffon:\"fffacd\",lightblue:\"add8e6\",lightcoral:\"f08080\",lightcyan:\"e0ffff\",lightgoldenrodyellow:\"fafad2\",lightgray:\"d3d3d3\",lightgreen:\"90ee90\",lightgrey:\"d3d3d3\",lightpink:\"ffb6c1\",lightsalmon:\"ffa07a\",lightseagreen:\"20b2aa\",lightskyblue:\"87cefa\",lightslategray:\"789\",lightslategrey:\"789\",lightsteelblue:\"b0c4de\",lightyellow:\"ffffe0\",lime:\"0f0\",limegreen:\"32cd32\",linen:\"faf0e6\",magenta:\"f0f\",maroon:\"800000\",mediumaquamarine:\"66cdaa\",mediumblue:\"0000cd\",mediumorchid:\"ba55d3\",mediumpurple:\"9370db\",mediumseagreen:\"3cb371\",mediumslateblue:\"7b68ee\",mediumspringgreen:\"00fa9a\",mediumturquoise:\"48d1cc\",mediumvioletred:\"c71585\",midnightblue:\"191970\",mintcream:\"f5fffa\",mistyrose:\"ffe4e1\",moccasin:\"ffe4b5\",navajowhite:\"ffdead\",navy:\"000080\",oldlace:\"fdf5e6\",olive:\"808000\",olivedrab:\"6b8e23\",orange:\"ffa500\",orangered:\"ff4500\",orchid:\"da70d6\",palegoldenrod:\"eee8aa\",palegreen:\"98fb98\",paleturquoise:\"afeeee\",palevioletred:\"db7093\",papayawhip:\"ffefd5\",peachpuff:\"ffdab9\",peru:\"cd853f\",pink:\"ffc0cb\",plum:\"dda0dd\",powderblue:\"b0e0e6\",purple:\"800080\",rebeccapurple:\"639\",red:\"f00\",rosybrown:\"bc8f8f\",royalblue:\"4169e1\",saddlebrown:\"8b4513\",salmon:\"fa8072\",sandybrown:\"f4a460\",seagreen:\"2e8b57\",seashell:\"fff5ee\",sienna:\"a0522d\",silver:\"c0c0c0\",skyblue:\"87ceeb\",slateblue:\"6a5acd\",slategray:\"708090\",slategrey:\"708090\",snow:\"fffafa\",springgreen:\"00ff7f\",steelblue:\"4682b4\",tan:\"d2b48c\",teal:\"008080\",thistle:\"d8bfd8\",tomato:\"ff6347\",turquoise:\"40e0d0\",violet:\"ee82ee\",wheat:\"f5deb3\",white:\"fff\",whitesmoke:\"f5f5f5\",yellow:\"ff0\",yellowgreen:\"9acd32\"};function nameToHex(color2){if(typeof color2!=\"string\")return color2;var normalizedColorName=color2.toLowerCase();return namedColorMap[normalizedColorName]?\"#\"+namedColorMap[normalizedColorName]:color2}var hexRegex=/^#[a-fA-F0-9]{6}$/,hexRgbaRegex=/^#[a-fA-F0-9]{8}$/,reducedHexRegex=/^#[a-fA-F0-9]{3}$/,reducedRgbaHexRegex=/^#[a-fA-F0-9]{4}$/,rgbRegex=/^rgb\\(\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*\\)$/i,rgbaRegex=/^rgb(?:a)?\\(\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*(?:,|\\/)\\s*([-+]?\\d*[.]?\\d+[%]?)\\s*\\)$/i,hslRegex=/^hsl\\(\\s*(\\d{0,3}[.]?[0-9]+(?:deg)?)\\s*(?:,)?\\s*(\\d{1,3}[.]?[0-9]?)%\\s*(?:,)?\\s*(\\d{1,3}[.]?[0-9]?)%\\s*\\)$/i,hslaRegex=/^hsl(?:a)?\\(\\s*(\\d{0,3}[.]?[0-9]+(?:deg)?)\\s*(?:,)?\\s*(\\d{1,3}[.]?[0-9]?)%\\s*(?:,)?\\s*(\\d{1,3}[.]?[0-9]?)%\\s*(?:,|\\/)\\s*([-+]?\\d*[.]?\\d+[%]?)\\s*\\)$/i;function parseToRgb(color2){if(typeof color2!=\"string\")throw new PolishedError(3);var normalizedColor=nameToHex(color2);if(normalizedColor.match(hexRegex))return {red:parseInt(\"\"+normalizedColor[1]+normalizedColor[2],16),green:parseInt(\"\"+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(\"\"+normalizedColor[5]+normalizedColor[6],16)};if(normalizedColor.match(hexRgbaRegex)){var alpha=parseFloat((parseInt(\"\"+normalizedColor[7]+normalizedColor[8],16)/255).toFixed(2));return {red:parseInt(\"\"+normalizedColor[1]+normalizedColor[2],16),green:parseInt(\"\"+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(\"\"+normalizedColor[5]+normalizedColor[6],16),alpha}}if(normalizedColor.match(reducedHexRegex))return {red:parseInt(\"\"+normalizedColor[1]+normalizedColor[1],16),green:parseInt(\"\"+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(\"\"+normalizedColor[3]+normalizedColor[3],16)};if(normalizedColor.match(reducedRgbaHexRegex)){var _alpha=parseFloat((parseInt(\"\"+normalizedColor[4]+normalizedColor[4],16)/255).toFixed(2));return {red:parseInt(\"\"+normalizedColor[1]+normalizedColor[1],16),green:parseInt(\"\"+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(\"\"+normalizedColor[3]+normalizedColor[3],16),alpha:_alpha}}var rgbMatched=rgbRegex.exec(normalizedColor);if(rgbMatched)return {red:parseInt(\"\"+rgbMatched[1],10),green:parseInt(\"\"+rgbMatched[2],10),blue:parseInt(\"\"+rgbMatched[3],10)};var rgbaMatched=rgbaRegex.exec(normalizedColor.substring(0,50));if(rgbaMatched)return {red:parseInt(\"\"+rgbaMatched[1],10),green:parseInt(\"\"+rgbaMatched[2],10),blue:parseInt(\"\"+rgbaMatched[3],10),alpha:parseFloat(\"\"+rgbaMatched[4])>1?parseFloat(\"\"+rgbaMatched[4])/100:parseFloat(\"\"+rgbaMatched[4])};var hslMatched=hslRegex.exec(normalizedColor);if(hslMatched){var hue=parseInt(\"\"+hslMatched[1],10),saturation=parseInt(\"\"+hslMatched[2],10)/100,lightness=parseInt(\"\"+hslMatched[3],10)/100,rgbColorString=\"rgb(\"+hslToRgb(hue,saturation,lightness)+\")\",hslRgbMatched=rgbRegex.exec(rgbColorString);if(!hslRgbMatched)throw new PolishedError(4,normalizedColor,rgbColorString);return {red:parseInt(\"\"+hslRgbMatched[1],10),green:parseInt(\"\"+hslRgbMatched[2],10),blue:parseInt(\"\"+hslRgbMatched[3],10)}}var hslaMatched=hslaRegex.exec(normalizedColor.substring(0,50));if(hslaMatched){var _hue=parseInt(\"\"+hslaMatched[1],10),_saturation=parseInt(\"\"+hslaMatched[2],10)/100,_lightness=parseInt(\"\"+hslaMatched[3],10)/100,_rgbColorString=\"rgb(\"+hslToRgb(_hue,_saturation,_lightness)+\")\",_hslRgbMatched=rgbRegex.exec(_rgbColorString);if(!_hslRgbMatched)throw new PolishedError(4,normalizedColor,_rgbColorString);return {red:parseInt(\"\"+_hslRgbMatched[1],10),green:parseInt(\"\"+_hslRgbMatched[2],10),blue:parseInt(\"\"+_hslRgbMatched[3],10),alpha:parseFloat(\"\"+hslaMatched[4])>1?parseFloat(\"\"+hslaMatched[4])/100:parseFloat(\"\"+hslaMatched[4])}}throw new PolishedError(5)}function rgbToHsl(color2){var red=color2.red/255,green=color2.green/255,blue=color2.blue/255,max=Math.max(red,green,blue),min=Math.min(red,green,blue),lightness=(max+min)/2;if(max===min)return color2.alpha!==void 0?{hue:0,saturation:0,lightness,alpha:color2.alpha}:{hue:0,saturation:0,lightness};var hue,delta=max-min,saturation=lightness>.5?delta/(2-max-min):delta/(max+min);switch(max){case red:hue=(green-blue)/delta+(green=1?hslToHex(value,saturation,lightness):\"rgba(\"+hslToRgb(value,saturation,lightness)+\",\"+alpha+\")\";if(typeof value==\"object\"&&saturation===void 0&&lightness===void 0&&alpha===void 0)return value.alpha>=1?hslToHex(value.hue,value.saturation,value.lightness):\"rgba(\"+hslToRgb(value.hue,value.saturation,value.lightness)+\",\"+value.alpha+\")\";throw new PolishedError(2)}function rgb(value,green,blue){if(typeof value==\"number\"&&typeof green==\"number\"&&typeof blue==\"number\")return reduceHexValue$1(\"#\"+numberToHex(value)+numberToHex(green)+numberToHex(blue));if(typeof value==\"object\"&&green===void 0&&blue===void 0)return reduceHexValue$1(\"#\"+numberToHex(value.red)+numberToHex(value.green)+numberToHex(value.blue));throw new PolishedError(6)}function rgba(firstValue,secondValue,thirdValue,fourthValue){if(typeof firstValue==\"string\"&&typeof secondValue==\"number\"){var rgbValue=parseToRgb(firstValue);return \"rgba(\"+rgbValue.red+\",\"+rgbValue.green+\",\"+rgbValue.blue+\",\"+secondValue+\")\"}else {if(typeof firstValue==\"number\"&&typeof secondValue==\"number\"&&typeof thirdValue==\"number\"&&typeof fourthValue==\"number\")return fourthValue>=1?rgb(firstValue,secondValue,thirdValue):\"rgba(\"+firstValue+\",\"+secondValue+\",\"+thirdValue+\",\"+fourthValue+\")\";if(typeof firstValue==\"object\"&&secondValue===void 0&&thirdValue===void 0&&fourthValue===void 0)return firstValue.alpha>=1?rgb(firstValue.red,firstValue.green,firstValue.blue):\"rgba(\"+firstValue.red+\",\"+firstValue.green+\",\"+firstValue.blue+\",\"+firstValue.alpha+\")\"}throw new PolishedError(7)}var isRgb=function(color2){return typeof color2.red==\"number\"&&typeof color2.green==\"number\"&&typeof color2.blue==\"number\"&&(typeof color2.alpha!=\"number\"||typeof color2.alpha>\"u\")},isRgba=function(color2){return typeof color2.red==\"number\"&&typeof color2.green==\"number\"&&typeof color2.blue==\"number\"&&typeof color2.alpha==\"number\"},isHsl=function(color2){return typeof color2.hue==\"number\"&&typeof color2.saturation==\"number\"&&typeof color2.lightness==\"number\"&&(typeof color2.alpha!=\"number\"||typeof color2.alpha>\"u\")},isHsla=function(color2){return typeof color2.hue==\"number\"&&typeof color2.saturation==\"number\"&&typeof color2.lightness==\"number\"&&typeof color2.alpha==\"number\"};function toColorString(color2){if(typeof color2!=\"object\")throw new PolishedError(8);if(isRgba(color2))return rgba(color2);if(isRgb(color2))return rgb(color2);if(isHsla(color2))return hsla(color2);if(isHsl(color2))return hsl(color2);throw new PolishedError(8)}function curried(f,length,acc){return function(){var combined=acc.concat(Array.prototype.slice.call(arguments));return combined.length>=length?f.apply(this,combined):curried(f,length,combined)}}function curry(f){return curried(f,f.length,[])}function guard(lowerBoundary,upperBoundary,value){return Math.max(lowerBoundary,Math.min(upperBoundary,value))}function darken(amount,color2){if(color2===\"transparent\")return color2;var hslColor=parseToHsl(color2);return toColorString(_extends({},hslColor,{lightness:guard(0,1,hslColor.lightness-parseFloat(amount))}))}var curriedDarken=curry(darken),curriedDarken$1=curriedDarken;function lighten(amount,color2){if(color2===\"transparent\")return color2;var hslColor=parseToHsl(color2);return toColorString(_extends({},hslColor,{lightness:guard(0,1,hslColor.lightness+parseFloat(amount))}))}var curriedLighten=curry(lighten),curriedLighten$1=curriedLighten;function transparentize(amount,color2){if(color2===\"transparent\")return color2;var parsedColor=parseToRgb(color2),alpha=typeof parsedColor.alpha==\"number\"?parsedColor.alpha:1,colorWithAlpha=_extends({},parsedColor,{alpha:guard(0,1,+(alpha*100-parseFloat(amount)*100).toFixed(2)/100)});return rgba(colorWithAlpha)}var curriedTransparentize=curry(transparentize),curriedTransparentize$1=curriedTransparentize;var headerCommon=({theme})=>({margin:\"20px 0 8px\",padding:0,cursor:\"text\",position:\"relative\",color:theme.color.defaultText,\"&:first-of-type\":{marginTop:0,paddingTop:0},\"&:hover a.anchor\":{textDecoration:\"none\"},\"& tt, & code\":{fontSize:\"inherit\"}}),codeCommon=({theme})=>({lineHeight:1,margin:\"0 2px\",padding:\"3px 5px\",whiteSpace:\"nowrap\",borderRadius:3,fontSize:theme.typography.size.s2-1,border:theme.base===\"light\"?`1px solid ${theme.color.mediumlight}`:`1px solid ${theme.color.darker}`,color:theme.base===\"light\"?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),backgroundColor:theme.base===\"light\"?theme.color.lighter:theme.color.border}),withReset=({theme})=>({fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s3,margin:0,WebkitFontSmoothing:\"antialiased\",MozOsxFontSmoothing:\"grayscale\",WebkitTapHighlightColor:\"rgba(0, 0, 0, 0)\",WebkitOverflowScrolling:\"touch\"}),withMargin={margin:\"16px 0\"};var Link=({href:input,children,...props})=>{let isStorybookPath=/^\\//.test(input),isAnchorUrl=/^#.*/.test(input),href=isStorybookPath?`./?path=${input}`:input;return React5__default.createElement(\"a\",{href,target:isAnchorUrl?\"_self\":\"_top\",...props},children)};var A=styled(Link)(withReset,({theme})=>({fontSize:\"inherit\",lineHeight:\"24px\",color:theme.color.secondary,textDecoration:\"none\",\"&.absent\":{color:\"#cc0000\"},\"&.anchor\":{display:\"block\",paddingLeft:30,marginLeft:-30,cursor:\"pointer\",position:\"absolute\",top:0,left:0,bottom:0}}));var Blockquote=styled.blockquote(withReset,withMargin,({theme})=>({borderLeft:`4px solid ${theme.color.medium}`,padding:\"0 15px\",color:theme.color.dark,\"& > :first-of-type\":{marginTop:0},\"& > :last-child\":{marginBottom:0}}));var isReactChildString=child=>typeof child==\"string\";var isInlineCodeRegex=/[\\n\\r]/g,DefaultCodeBlock=styled.code(({theme})=>({fontFamily:theme.typography.fonts.mono,WebkitFontSmoothing:\"antialiased\",MozOsxFontSmoothing:\"grayscale\",display:\"inline-block\",paddingLeft:2,paddingRight:2,verticalAlign:\"baseline\",color:\"inherit\"}),codeCommon),StyledSyntaxHighlighter=styled(SyntaxHighlighter)(({theme})=>({fontFamily:theme.typography.fonts.mono,fontSize:`${theme.typography.size.s2-1}px`,lineHeight:\"19px\",margin:\"25px 0 40px\",borderRadius:theme.appBorderRadius,boxShadow:theme.base===\"light\"?\"rgba(0, 0, 0, 0.10) 0 1px 3px 0\":\"rgba(0, 0, 0, 0.20) 0 2px 5px 0\",\"pre.prismjs\":{padding:20,background:\"inherit\"}})),Code=({className,children,...props})=>{let language=(className||\"\").match(/lang-(\\S+)/),childrenArray=Children.toArray(children);return childrenArray.filter(isReactChildString).some(child=>child.match(isInlineCodeRegex))?React5__default.createElement(StyledSyntaxHighlighter,{bordered:!0,copyable:!0,language:language?.[1]??\"plaintext\",format:!1,...props},children):React5__default.createElement(DefaultCodeBlock,{...props,className},childrenArray)};var Div=styled.div(withReset);var DL=styled.dl(withReset,{...withMargin,padding:0,\"& dt\":{fontSize:\"14px\",fontWeight:\"bold\",fontStyle:\"italic\",padding:0,margin:\"16px 0 4px\"},\"& dt:first-of-type\":{padding:0},\"& dt > :first-of-type\":{marginTop:0},\"& dt > :last-child\":{marginBottom:0},\"& dd\":{margin:\"0 0 16px\",padding:\"0 15px\"},\"& dd > :first-of-type\":{marginTop:0},\"& dd > :last-child\":{marginBottom:0}});var H1=styled.h1(withReset,headerCommon,({theme})=>({fontSize:`${theme.typography.size.l1}px`,fontWeight:theme.typography.weight.bold}));var H2=styled.h2(withReset,headerCommon,({theme})=>({fontSize:`${theme.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${theme.appBorderColor}`}));var H3=styled.h3(withReset,headerCommon,({theme})=>({fontSize:`${theme.typography.size.m1}px`}));var H4=styled.h4(withReset,headerCommon,({theme})=>({fontSize:`${theme.typography.size.s3}px`}));var H5=styled.h5(withReset,headerCommon,({theme})=>({fontSize:`${theme.typography.size.s2}px`}));var H6=styled.h6(withReset,headerCommon,({theme})=>({fontSize:`${theme.typography.size.s2}px`,color:theme.color.dark}));var HR=styled.hr(({theme})=>({border:\"0 none\",borderTop:`1px solid ${theme.appBorderColor}`,height:4,padding:0}));var Img=styled.img({maxWidth:\"100%\"});var LI=styled.li(withReset,({theme})=>({fontSize:theme.typography.size.s2,color:theme.color.defaultText,lineHeight:\"24px\",\"& + li\":{marginTop:\".25em\"},\"& ul, & ol\":{marginTop:\".25em\",marginBottom:0},\"& code\":codeCommon({theme})}));var listCommon={paddingLeft:30,\"& :first-of-type\":{marginTop:0},\"& :last-child\":{marginBottom:0}},OL=styled.ol(withReset,withMargin,{...listCommon,listStyle:\"decimal\"});var P=styled.p(withReset,withMargin,({theme})=>({fontSize:theme.typography.size.s2,lineHeight:\"24px\",color:theme.color.defaultText,\"& code\":codeCommon({theme})}));var Pre=styled.pre(withReset,withMargin,({theme})=>({fontFamily:theme.typography.fonts.mono,WebkitFontSmoothing:\"antialiased\",MozOsxFontSmoothing:\"grayscale\",lineHeight:\"18px\",padding:\"11px 1rem\",whiteSpace:\"pre-wrap\",color:\"inherit\",borderRadius:3,margin:\"1rem 0\",\"&:not(.prismjs)\":{background:\"transparent\",border:\"none\",borderRadius:0,padding:0,margin:0},\"& pre, &.prismjs\":{padding:15,margin:0,whiteSpace:\"pre-wrap\",color:\"inherit\",fontSize:\"13px\",lineHeight:\"19px\",code:{color:\"inherit\",fontSize:\"inherit\"}},\"& code\":{whiteSpace:\"pre\"},\"& code, & tt\":{border:\"none\"}}));var Span=styled.span(withReset,({theme})=>({\"&.frame\":{display:\"block\",overflow:\"hidden\",\"& > span\":{border:`1px solid ${theme.color.medium}`,display:\"block\",float:\"left\",overflow:\"hidden\",margin:\"13px 0 0\",padding:7,width:\"auto\"},\"& span img\":{display:\"block\",float:\"left\"},\"& span span\":{clear:\"both\",color:theme.color.darkest,display:\"block\",padding:\"5px 0 0\"}},\"&.align-center\":{display:\"block\",overflow:\"hidden\",clear:\"both\",\"& > span\":{display:\"block\",overflow:\"hidden\",margin:\"13px auto 0\",textAlign:\"center\"},\"& span img\":{margin:\"0 auto\",textAlign:\"center\"}},\"&.align-right\":{display:\"block\",overflow:\"hidden\",clear:\"both\",\"& > span\":{display:\"block\",overflow:\"hidden\",margin:\"13px 0 0\",textAlign:\"right\"},\"& span img\":{margin:0,textAlign:\"right\"}},\"&.float-left\":{display:\"block\",marginRight:13,overflow:\"hidden\",float:\"left\",\"& span\":{margin:\"13px 0 0\"}},\"&.float-right\":{display:\"block\",marginLeft:13,overflow:\"hidden\",float:\"right\",\"& > span\":{display:\"block\",overflow:\"hidden\",margin:\"13px auto 0\",textAlign:\"right\"}}}));var Table=styled.table(withReset,withMargin,({theme})=>({fontSize:theme.typography.size.s2,lineHeight:\"24px\",padding:0,borderCollapse:\"collapse\",\"& tr\":{borderTop:`1px solid ${theme.appBorderColor}`,backgroundColor:theme.appContentBg,margin:0,padding:0},\"& tr:nth-of-type(2n)\":{backgroundColor:theme.base===\"dark\"?theme.color.darker:theme.color.lighter},\"& tr th\":{fontWeight:\"bold\",color:theme.color.defaultText,border:`1px solid ${theme.appBorderColor}`,margin:0,padding:\"6px 13px\"},\"& tr td\":{border:`1px solid ${theme.appBorderColor}`,color:theme.color.defaultText,margin:0,padding:\"6px 13px\"},\"& tr th :first-of-type, & tr td :first-of-type\":{marginTop:0},\"& tr th :last-child, & tr td :last-child\":{marginBottom:0}}));var TT=styled.title(codeCommon);var listCommon2={paddingLeft:30,\"& :first-of-type\":{marginTop:0},\"& :last-child\":{marginBottom:0}},UL=styled.ul(withReset,withMargin,{...listCommon2,listStyle:\"disc\"});var ResetWrapper=styled.div(withReset);var components={h1:props=>React5__default.createElement(H1,{...nameSpaceClassNames(props,\"h1\")}),h2:props=>React5__default.createElement(H2,{...nameSpaceClassNames(props,\"h2\")}),h3:props=>React5__default.createElement(H3,{...nameSpaceClassNames(props,\"h3\")}),h4:props=>React5__default.createElement(H4,{...nameSpaceClassNames(props,\"h4\")}),h5:props=>React5__default.createElement(H5,{...nameSpaceClassNames(props,\"h5\")}),h6:props=>React5__default.createElement(H6,{...nameSpaceClassNames(props,\"h6\")}),pre:props=>React5__default.createElement(Pre,{...nameSpaceClassNames(props,\"pre\")}),a:props=>React5__default.createElement(A,{...nameSpaceClassNames(props,\"a\")}),hr:props=>React5__default.createElement(HR,{...nameSpaceClassNames(props,\"hr\")}),dl:props=>React5__default.createElement(DL,{...nameSpaceClassNames(props,\"dl\")}),blockquote:props=>React5__default.createElement(Blockquote,{...nameSpaceClassNames(props,\"blockquote\")}),table:props=>React5__default.createElement(Table,{...nameSpaceClassNames(props,\"table\")}),img:props=>React5__default.createElement(Img,{...nameSpaceClassNames(props,\"img\")}),div:props=>React5__default.createElement(Div,{...nameSpaceClassNames(props,\"div\")}),span:props=>React5__default.createElement(Span,{...nameSpaceClassNames(props,\"span\")}),li:props=>React5__default.createElement(LI,{...nameSpaceClassNames(props,\"li\")}),ul:props=>React5__default.createElement(UL,{...nameSpaceClassNames(props,\"ul\")}),ol:props=>React5__default.createElement(OL,{...nameSpaceClassNames(props,\"ol\")}),p:props=>React5__default.createElement(P,{...nameSpaceClassNames(props,\"p\")}),code:props=>React5__default.createElement(Code,{...nameSpaceClassNames(props,\"code\")}),tt:props=>React5__default.createElement(TT,{...nameSpaceClassNames(props,\"tt\")}),resetwrapper:props=>React5__default.createElement(ResetWrapper,{...nameSpaceClassNames(props,\"resetwrapper\")})};var BadgeWrapper=styled.div(({theme})=>({display:\"inline-block\",fontSize:11,lineHeight:\"12px\",alignSelf:\"center\",padding:\"4px 12px\",borderRadius:\"3em\",fontWeight:theme.typography.weight.bold}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:\"currentColor\"}}},({theme,status})=>{switch(status){case\"critical\":return {color:theme.color.critical,background:theme.background.critical};case\"negative\":return {color:theme.color.negativeText,background:theme.background.negative,boxShadow:theme.base===\"light\"?`inset 0 0 0 1px ${curriedTransparentize$1(.9,theme.color.negativeText)}`:\"none\"};case\"warning\":return {color:theme.color.warningText,background:theme.background.warning,boxShadow:theme.base===\"light\"?`inset 0 0 0 1px ${curriedTransparentize$1(.9,theme.color.warningText)}`:\"none\"};case\"neutral\":return {color:theme.color.dark,background:theme.color.mediumlight,boxShadow:theme.base===\"light\"?`inset 0 0 0 1px ${curriedTransparentize$1(.9,theme.color.dark)}`:\"none\"};case\"positive\":return {color:theme.color.positiveText,background:theme.background.positive,boxShadow:theme.base===\"light\"?`inset 0 0 0 1px ${curriedTransparentize$1(.9,theme.color.positiveText)}`:\"none\"};default:return {}}}),Badge=({...props})=>React5__default.createElement(BadgeWrapper,{...props});var icons={user:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0ZM2.67 11.15c.7-1 2.6-1.81 3.2-1.9.22-.04.23-.66.23-.66s-.67-.66-.81-1.55c-.4 0-.63-.94-.24-1.27l-.02-.13c-.06-.6-.28-2.6 1.97-2.6s2.03 2 1.97 2.6l-.02.13c.4.33.15 1.27-.24 1.27-.14.89-.8 1.55-.8 1.55s0 .62.22.66c.6.09 2.5.9 3.2 1.9a6 6 0 1 0-8.66 0Z\"})),useralt:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M7.27 13.16a11.39 11.39 0 0 0 5.18-1.23v-.25c0-1.57-3.24-3-4.1-3.13-.27-.05-.28-.79-.28-.79s.8-.78.96-1.83c.47 0 .75-1.12.29-1.52.02-.41.6-3.25-2.32-3.25S4.65 4 4.67 4.41c-.46.4-.17 1.52.29 1.52.17 1.05.96 1.83.96 1.83s0 .74-.27.79c-.86.13-4.04 1.53-4.1 3.08a11.44 11.44 0 0 0 5.72 1.53Z\"})),useradd:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M1.18 11.9c-.4-.17-.8-.36-1.18-.58.06-1.44 3.02-2.74 3.82-2.87.25-.04.26-.73.26-.73s-.74-.73-.9-1.7c-.43 0-.7-1.05-.27-1.42l-.01-.14c-.07-.67-.31-2.88 2.18-2.88 2.48 0 2.24 2.2 2.17 2.88l-.01.14c.43.37.16 1.41-.27 1.41-.16.98-.9 1.71-.9 1.71s.01.69.26.73c.8.13 3.82 1.46 3.82 2.91v.24a10.63 10.63 0 0 1-8.97.3ZM11.5 2.16c.28 0 .5.22.5.5v1.5h1.5a.5.5 0 0 1 0 1H12v1.5a.5.5 0 0 1-1 0v-1.5H9.5a.5.5 0 1 1 0-1H11v-1.5c0-.28.22-.5.5-.5Z\"})),users:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M9.21 11.62A10.59 10.59 0 0 1 0 11.07c.06-1.35 2.93-2.58 3.7-2.7.25-.03.26-.68.26-.68s-.72-.69-.87-1.6c-.42 0-.68-.99-.26-1.33 0-.03 0-.08-.02-.14-.07-.63-.3-2.71 2.12-2.71 2.41 0 2.18 2.08 2.11 2.71l-.01.14c.42.34.16 1.32-.26 1.32-.16.92-.87 1.6-.87 1.6s0 .66.25.7c.78.11 3.7 1.36 3.7 2.73v.22l-.64.3Z\"}),React5__default.createElement(\"path\",{d:\"M8.81 8.42a9.64 9.64 0 0 0-.74-.4 5.2 5.2 0 0 1 1.7-.76c.17-.02.17-.47.17-.47s-.49-.47-.6-1.1c-.28 0-.46-.68-.17-.91l-.01-.1c-.05-.43-.2-1.86 1.45-1.86 1.66 0 1.5 1.43 1.45 1.86v.1c.28.23.1.9-.18.9-.11.64-.6 1.11-.6 1.11s0 .45.17.47c.54.08 2.55.94 2.55 1.89v.62a10.6 10.6 0 0 1-3.3.56 2.97 2.97 0 0 0-.58-.88c-.37-.41-.85-.76-1.31-1.03Z\"})),profile:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M9.1 7.35a5.06 5.06 0 0 1-4.52-.28C4.6 6.4 6.02 5.77 6.4 5.7c.12-.02.12-.35.12-.35s-.35-.34-.43-.81c-.2 0-.33-.5-.12-.67l-.01-.07C5.93 3.48 5.81 2.42 7 2.42S8.07 3.48 8.04 3.8v.07c.2.17.07.67-.13.67-.08.47-.43.81-.43.81s0 .33.12.35c.38.06 1.82.7 1.82 1.4v.1c-.1.06-.2.1-.31.15Zm-5.35 3.9c0-.14.11-.25.25-.25h6a.25.25 0 1 1 0 .5H4a.25.25 0 0 1-.25-.25ZM4 9a.25.25 0 0 0 0 .5h6a.25.25 0 1 0 0-.5H4Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M1 .5c0-.28.22-.5.5-.5h11c.28 0 .5.22.5.5v13a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5V.5ZM2 13V1h10v12H2Z\"})),facehappy:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M3.97 8.75a.5.5 0 0 0-.87.5 4.5 4.5 0 0 0 7.8 0 .5.5 0 1 0-.87-.5 3.5 3.5 0 0 1-6.06 0ZM5.5 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM9.5 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-1 0A6 6 0 1 1 1 7a6 6 0 0 1 12 0Z\"})),faceneutral:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M4.5 9a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1h-5ZM5.5 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM9.5 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-1 0A6 6 0 1 1 1 7a6 6 0 0 1 12 0Z\"})),facesad:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M3.97 10.25a.5.5 0 0 1-.87-.5 4.5 4.5 0 0 1 7.8 0 .5.5 0 1 1-.87.5 3.5 3.5 0 0 0-6.06 0ZM5.5 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM9.5 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-1 0A6 6 0 1 1 1 7a6 6 0 0 1 12 0Z\"})),accessibility:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M3.53 4.84a.5.5 0 0 1 .63-.31l2.05.68a2.5 2.5 0 0 0 1.58 0l2.05-.68a.5.5 0 0 1 .32.94L7.7 6.3a.3.3 0 0 0-.21.29v.24c0 .7.16 1.39.48 2.01l.97 1.95a.5.5 0 1 1-.9.44L7 9.12l-1.05 2.1a.5.5 0 1 1-.9-.44l.97-1.95a4.5 4.5 0 0 0 .48-2.01v-.24a.3.3 0 0 0-.2-.29l-2.46-.82a.5.5 0 0 1-.31-.63Z\"}),React5__default.createElement(\"path\",{d:\"M7 4.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14Zm0-1A6 6 0 1 0 7 1a6 6 0 0 0 0 12Z\"})),accessibilityalt:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14ZM8 3.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM3.53 4.84a.5.5 0 0 1 .63-.31l2.05.68a2.5 2.5 0 0 0 1.58 0l2.05-.68a.5.5 0 0 1 .32.94L7.7 6.3a.3.3 0 0 0-.21.29v.24c0 .7.16 1.39.48 2.01l.97 1.95a.5.5 0 1 1-.9.44L7 9.12l-1.05 2.1a.5.5 0 1 1-.9-.44l.97-1.95a4.5 4.5 0 0 0 .48-2.01v-.24a.3.3 0 0 0-.2-.29l-2.46-.82a.5.5 0 0 1-.31-.63Z\"})),arrowup:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"m7.35 2.9 5.5 5.5a.5.5 0 0 1-.7.7L7 3.96 1.85 9.1a.5.5 0 1 1-.7-.7l5.5-5.5c.2-.2.5-.2.7 0Z\"})),arrowdown:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"m1.15 5.6 5.5 5.5c.2.2.5.2.7 0l5.5-5.5a.5.5 0 0 0-.7-.7L7 10.04 1.85 4.9a.5.5 0 1 0-.7.7Z\"})),arrowleft:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M2.76 7.1c.02.09.06.18.14.25l5.5 5.5a.5.5 0 0 0 .7-.7L3.96 7 9.1 1.85a.5.5 0 1 0-.7-.7l-5.5 5.5a.5.5 0 0 0-.14.45Z\"})),arrowright:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"m11.1 7.35-5.5 5.5a.5.5 0 0 1-.7-.7L10.04 7 4.9 1.85a.5.5 0 1 1 .7-.7l5.5 5.5c.2.2.2.5 0 .7Z\"})),arrowupalt:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M11.85 4.65 7.35.15a.5.5 0 0 0-.7 0l-4.5 4.5a.5.5 0 1 0 .7.7L6.5 1.71V13.5a.5.5 0 0 0 1 0V1.7l3.65 3.65a.5.5 0 0 0 .7-.7Z\"})),arrowdownalt:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M7.5.5a.5.5 0 0 0-1 0v11.8L2.85 8.64a.5.5 0 1 0-.7.7l4.5 4.5A.5.5 0 0 0 7 14a.5.5 0 0 0 .35-.15l4.5-4.5a.5.5 0 0 0-.7-.7L7.5 12.29V.5Z\"})),arrowleftalt:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M5.35 2.15c.2.2.2.5 0 .7L1.71 6.5H13.5a.5.5 0 0 1 0 1H1.7l3.65 3.65a.5.5 0 0 1-.7.7l-4.5-4.5a.5.5 0 0 1 0-.7l4.5-4.5c.2-.2.5-.2.7 0Z\"})),arrowrightalt:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M8.65 2.15c.2-.2.5-.2.7 0l4.5 4.5c.2.2.2.5 0 .7l-4.5 4.5a.5.5 0 0 1-.7-.7l3.64-3.65H.5a.5.5 0 0 1 0-1h11.8L8.64 2.85a.5.5 0 0 1 0-.7Z\"})),expandalt:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"m7.35.15 4 4a.5.5 0 0 1-.7.7L7 1.21 3.35 4.85a.5.5 0 1 1-.7-.7l4-4c.2-.2.5-.2.7 0ZM11.35 9.15c.2.2.2.5 0 .7l-4 4a.5.5 0 0 1-.7 0l-4-4a.5.5 0 1 1 .7-.7L7 12.79l3.65-3.64c.2-.2.5-.2.7 0Z\"})),collapse:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M3.354.146a.5.5 0 1 0-.708.708l4 4a.5.5 0 0 0 .708 0l4-4a.5.5 0 0 0-.708-.708L7 3.793 3.354.146Zm3.292 9a.5.5 0 0 1 .708 0l4 4a.5.5 0 0 1-.708.708L7 10.207l-3.646 3.647a.5.5 0 0 1-.708-.708l4-4Z\"})),expand:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M1.5 1h2a.5.5 0 0 1 0 1h-.8l3.15 3.15a.5.5 0 1 1-.7.7L2 2.71v.79a.5.5 0 0 1-1 0v-2c0-.28.22-.5.5-.5ZM10 1.5c0-.28.22-.5.5-.5h2c.28 0 .5.22.5.5v2a.5.5 0 0 1-1 0v-.8L8.85 5.86a.5.5 0 1 1-.7-.7L11.29 2h-.79a.5.5 0 0 1-.5-.5ZM12.5 10c.28 0 .5.22.5.5v2a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h.8L8.14 8.85a.5.5 0 1 1 .7-.7L12 11.29v-.79c0-.28.22-.5.5-.5ZM2 11.3v-.8a.5.5 0 0 0-1 0v2c0 .28.22.5.5.5h2a.5.5 0 0 0 0-1h-.8l3.15-3.15a.5.5 0 1 0-.7-.7L2 11.29Z\"})),unfold:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"m6.65.15-1.5 1.5a.5.5 0 1 0 .7.7l.65-.64V5a.5.5 0 0 0 1 0V1.7l.65.65a.5.5 0 1 0 .7-.7L7.35.15a.5.5 0 0 0-.7 0Z\"}),React5__default.createElement(\"path\",{d:\"M1.3 4.04a.5.5 0 0 0-.16.82L3.3 7 1.15 9.15a.5.5 0 0 0 .35.85h3a.5.5 0 0 0 0-1H2.7l1.5-1.5h5.6l2.35 2.35a.5.5 0 0 0 .7-.7L10.71 7l2.14-2.15.11-.54-.1.54A.5.5 0 0 0 13 4.5a.5.5 0 0 0-.14-.35.5.5 0 0 0-.36-.15h-3a.5.5 0 0 0 0 1h1.8L9.8 6.5H4.2L2.7 5h1.8a.5.5 0 0 0 0-1h-3a.5.5 0 0 0-.2.04Z\"}),React5__default.createElement(\"path\",{d:\"M7 8.5c.28 0 .5.22.5.5v3.3l.65-.65a.5.5 0 0 1 .7.7l-1.5 1.5a.5.5 0 0 1-.7 0l-1.5-1.5a.5.5 0 0 1 .7-.7l.65.64V9c0-.28.22-.5.5-.5ZM9 9.5c0-.28.22-.5.5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5Z\"})),transfer:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M10.65 2.65c.2-.2.5-.2.7 0l1.5 1.5c.2.2.2.5 0 .7l-1.5 1.5a.5.5 0 0 1-.7-.7l.64-.65H1.5a.5.5 0 0 1 0-1h9.8l-.65-.65a.5.5 0 0 1 0-.7ZM3.35 8.35 2.71 9h9.79a.5.5 0 0 1 0 1H2.7l.65.65a.5.5 0 0 1-.7.7l-1.5-1.5a.5.5 0 0 1 0-.7l1.5-1.5a.5.5 0 1 1 .7.7Z\"})),redirect:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M1.5 1c.28 0 .5.22.5.5V10a2 2 0 0 0 4 0V4a3 3 0 0 1 6 0v7.8l1.15-1.15a.5.5 0 0 1 .7.7l-2 2a.5.5 0 0 1-.7 0l-2-2a.5.5 0 0 1 .7-.7L11 11.79V4a2 2 0 1 0-4 0v6a3 3 0 0 1-6 0V1.5c0-.28.22-.5.5-.5Z\"})),undo:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M1.15 3.85a.5.5 0 0 1 0-.7l2-2a.5.5 0 1 1 .7.7L2.71 3H9a4 4 0 0 1 0 8H3a.5.5 0 0 1 0-1h6a3 3 0 1 0 0-6H2.7l1.15 1.15a.5.5 0 1 1-.7.7l-2-2Z\"})),reply:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M4.35 2.15c.2.2.2.5 0 .7L1.71 5.5H9.5A4.5 4.5 0 0 1 14 10v1.5a.5.5 0 0 1-1 0V10a3.5 3.5 0 0 0-3.5-3.5H1.7l2.65 2.65a.5.5 0 1 1-.7.7l-3.5-3.5a.5.5 0 0 1 0-.7l3.5-3.5c.2-.2.5-.2.7 0Z\"})),sync:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M5.5 1A.5.5 0 0 0 5 .5H2a.5.5 0 0 0 0 1h1.53a6.5 6.5 0 0 0 2.39 11.91.5.5 0 1 0 .16-.99A5.5 5.5 0 0 1 4.5 2.1V4a.5.5 0 0 0 1 0V1ZM7.5 1a.5.5 0 0 1 .58-.41 6.5 6.5 0 0 1 2.39 11.91H12a.5.5 0 0 1 0 1H9a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 1 0v1.9A5.5 5.5 0 0 0 7.92 1.58.5.5 0 0 1 7.5 1Z\"})),upload:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M8.65 5.85 7.5 4.71v5.79a.5.5 0 0 1-1 0V4.7L5.35 5.86a.5.5 0 1 1-.7-.7l2-2c.2-.2.5-.2.7 0l2 2a.5.5 0 1 1-.7.7Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-1 0A6 6 0 1 1 1 7a6 6 0 0 1 12 0Z\"})),download:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M5.35 8.15 6.5 9.29V3.5a.5.5 0 0 1 1 0v5.8l1.15-1.15a.5.5 0 1 1 .7.7l-2 2a.5.5 0 0 1-.7 0l-2-2a.5.5 0 1 1 .7-.7Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M0 7a7 7 0 1 1 14 0A7 7 0 0 1 0 7Zm1 0a6 6 0 1 1 12 0A6 6 0 0 1 1 7Z\"})),back:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M5.85 5.35 4.71 6.5h5.79a.5.5 0 0 1 0 1H4.7l1.15 1.15a.5.5 0 1 1-.7.7l-2-2a.5.5 0 0 1 0-.7l2-2a.5.5 0 1 1 .7.7Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M7 0a7 7 0 1 1 0 14A7 7 0 0 1 7 0Zm0 1a6 6 0 1 1 0 12A6 6 0 0 1 7 1Z\"})),proceed:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M3.5 6.5h5.8L8.14 5.35a.5.5 0 1 1 .7-.7l2 2c.2.2.2.5 0 .7l-2 2a.5.5 0 1 1-.7-.7L9.29 7.5H3.5a.5.5 0 0 1 0-1Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M7 14A7 7 0 1 1 7 0a7 7 0 0 1 0 14Zm0-1A6 6 0 1 1 7 1a6 6 0 0 1 0 12Z\"})),refresh:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M7.1.5H7a6.5 6.5 0 1 0 6.41 7.58.5.5 0 1 0-.99-.16A5.47 5.47 0 0 1 7 12.5a5.5 5.5 0 0 1 0-11 5.5 5.5 0 0 1 4.9 3H10a.5.5 0 0 0 0 1h3a.5.5 0 0 0 .5-.5V2a.5.5 0 0 0-1 0v1.53A6.5 6.5 0 0 0 7.1.5Z\"})),globe:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M14 7A7 7 0 1 0 0 7a7 7 0 0 0 14 0Zm-6.53 5.74c-.24.23-.4.26-.47.26-.08 0-.23-.03-.47-.26-.23-.24-.5-.62-.73-1.18A11.57 11.57 0 0 1 5 7.5h4a11.57 11.57 0 0 1-.8 4.06c-.24.56-.5.94-.73 1.18ZM8.99 6.5H5.01c.05-1.62.35-3.04.79-4.06.24-.56.5-.94.73-1.18.24-.23.4-.26.47-.26.08 0 .23.03.47.26.23.24.5.62.73 1.18.44 1.02.74 2.44.8 4.06Zm1 1c-.06 2.18-.56 4.08-1.28 5.25a6 6 0 0 0 4.27-5.25H9.99Zm2.99-1H9.99c-.06-2.18-.56-4.08-1.28-5.25a6 6 0 0 1 4.27 5.25ZM4 6.5c.06-2.18.56-4.08 1.28-5.25A6 6 0 0 0 1.02 6.5h2.99Zm-2.99 1a6 6 0 0 0 4.27 5.25c-.72-1.17-1.22-3.07-1.28-5.25H1.02Z\"})),compass:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M10.09 3.4 5.95 5.8a.37.37 0 0 0-.11.09.38.38 0 0 0-.04.05l-2.4 4.15a.37.37 0 0 0 0 .38c.1.18.33.24.5.14l4.15-2.4a.37.37 0 0 0 .15-.15l2.4-4.15a.37.37 0 0 0-.03-.44.37.37 0 0 0-.48-.07ZM4.75 9.25 7.6 7.6 6.4 6.4 4.75 9.25Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-1 0A6 6 0 1 1 1 7a6 6 0 0 1 12 0Z\"})),location:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M0 7a7 7 0 1 1 14 0A7 7 0 0 1 0 7Zm6.5 3.5v2.48A6 6 0 0 1 1.02 7.5H3.5a.5.5 0 0 0 0-1H1.02A6 6 0 0 1 6.5 1.02V3.5a.5.5 0 0 0 1 0V1.02a6 6 0 0 1 5.48 5.48H10.5a.5.5 0 0 0 0 1h2.48a6 6 0 0 1-5.48 5.48V10.5a.5.5 0 0 0-1 0Z\"})),pin:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M9 5a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM8 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M12 5A5 5 0 0 0 2 5c0 2.63 2.27 6.15 4.65 8.64.2.2.5.2.7 0C9.73 11.15 12 7.64 12 5ZM7 1a4 4 0 0 1 4 4c0 1.06-.47 2.42-1.3 3.88A21.23 21.23 0 0 1 7 12.55c-1-1.1-1.97-2.39-2.7-3.67A8.46 8.46 0 0 1 3 5a4 4 0 0 1 4-4Z\"})),time:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M7 2c.28 0 .5.22.5.5v4H10a.5.5 0 0 1 0 1H7a.5.5 0 0 1-.5-.5V2.5c0-.28.22-.5.5-.5Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14Zm0-1A6 6 0 1 0 7 1a6 6 0 0 0 0 12Z\"})),dashboard:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M9.8 4.1a.5.5 0 0 1 .1.7L7.92 7.58A1 1 0 1 1 7.1 7l2-2.8a.5.5 0 0 1 .7-.12Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M2.07 12.97a7 7 0 1 1 9.86 0 12.96 12.96 0 0 0-9.86 0Zm9.58-1.18a6 6 0 1 0-9.3 0 13.98 13.98 0 0 1 9.3 0Z\"})),timer:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M7.5 4.5a.5.5 0 0 0-1 0v2.63a1 1 0 1 0 1 0V4.5Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M5.5.5c0-.28.22-.5.5-.5h2a.5.5 0 0 1 0 1h-.5v1.02c1.28.1 2.45.61 3.37 1.4l.78-.77a.5.5 0 0 1 .7.7l-.77.78a6 6 0 1 1-5.08-2.1V1H6a.5.5 0 0 1-.5-.5ZM7 3a5 5 0 1 0 0 10A5 5 0 0 0 7 3Z\"})),home:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"m7.35 1.15 5.5 5.5a.5.5 0 0 1-.7.7L12 7.21v5.29a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5V9H6v3.5a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5V7.2l-.15.15a.5.5 0 1 1-.7-.7l1-1 4.5-4.5c.2-.2.5-.2.7 0ZM3 6.2V12h2V8.5c0-.28.22-.5.5-.5h3c.28 0 .5.22.5.5V12h2V6.2l-4-4-4 4Z\"})),admin:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M1.21 4.1a.5.5 0 0 1 .06-.04l5.48-3a.5.5 0 0 1 .5 0l5.48 3a.5.5 0 0 1 .27.39.5.5 0 0 1-.51.55H1.51a.5.5 0 0 1-.3-.9ZM3.46 4h7.08L7 2.07 3.46 4Z\"}),React5__default.createElement(\"path\",{d:\"M4 6a.5.5 0 1 0-1 0v5a.5.5 0 0 0 1 0V6ZM11 6a.5.5 0 0 0-1 0v5a.5.5 0 0 0 1 0V6ZM5.75 5.5c.28 0 .5.22.5.5v5a.5.5 0 0 1-1 0V6c0-.28.22-.5.5-.5ZM8.75 6a.5.5 0 1 0-1 0v5a.5.5 0 0 0 1 0V6ZM1.5 12.5c0-.27.22-.5.5-.5h10a.5.5 0 0 1 0 1H2a.5.5 0 0 1-.5-.5Z\"})),info:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M7 5.5c.28 0 .5.22.5.5v4a.5.5 0 0 1-1 0V6c0-.28.22-.5.5-.5ZM7 4.5A.75.75 0 1 0 7 3a.75.75 0 0 0 0 1.5Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14Zm0-1A6 6 0 1 0 7 1a6 6 0 0 0 0 12Z\"})),question:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M5.25 5.25A1.75 1.75 0 1 1 7 7a.5.5 0 0 0-.5.5V9a.5.5 0 0 0 1 0V7.95a2.75 2.75 0 1 0-3.25-2.7.5.5 0 0 0 1 0ZM7 11.5A.75.75 0 1 0 7 10a.75.75 0 0 0 0 1.5Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-1 0A6 6 0 1 1 1 7a6 6 0 0 1 12 0Z\"})),support:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-3.52 4.9a5.97 5.97 0 0 1-6.96 0l1.45-1.45a3.98 3.98 0 0 0 4.06 0l1.45 1.44Zm-.03-2.87 1.44 1.45a5.97 5.97 0 0 0 0-6.96l-1.44 1.45a3.98 3.98 0 0 1 0 4.06ZM9.03 3.55l1.45-1.44a5.97 5.97 0 0 0-6.96 0l1.45 1.44a3.98 3.98 0 0 1 4.06 0ZM3.55 4.97 2.11 3.52a5.97 5.97 0 0 0 0 6.96l1.44-1.45a3.98 3.98 0 0 1 0-4.06ZM10 7a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z\"})),alert:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M7 4.5c.28 0 .5.22.5.5v3.5a.5.5 0 0 1-1 0V5c0-.28.22-.5.5-.5ZM7.75 10.5a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M7.2 1.04a.5.5 0 0 1 .24.21l6.49 11a.5.5 0 0 1-.44.75H.51a.5.5 0 0 1-.5-.45.5.5 0 0 1 .06-.31l6.5-10.99a.5.5 0 0 1 .64-.2ZM7 2.48 1.38 12h11.24L7 2.48Z\"})),email:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M0 2.5c0-.27.22-.5.5-.5h13c.28 0 .5.23.5.5v9a.5.5 0 0 1-.5.5H.5a.5.5 0 0 1-.5-.5v-9Zm1 1.02V11h12V3.52L7.31 7.89a.5.5 0 0 1-.52.07.5.5 0 0 1-.1-.07L1 3.52ZM12.03 3H1.97L7 6.87 12.03 3Z\"})),phone:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"m7.76 8.13-.05.05a.2.2 0 0 1-.28.03A6.76 6.76 0 0 1 5.8 6.56a.21.21 0 0 1 .04-.27l.05-.05c.23-.2.54-.47.71-.96.17-.47-.02-1.04-.66-1.94-.26-.38-.72-.96-1.22-1.46-.68-.69-1.2-1-1.65-1a.98.98 0 0 0-.51.13A3.23 3.23 0 0 0 .9 3.42c-.13 1.1.26 2.37 1.17 3.78a16.68 16.68 0 0 0 4.55 4.6 6.57 6.57 0 0 0 3.53 1.32A3.2 3.2 0 0 0 13 11.46c.14-.24.24-.64-.07-1.18a7.8 7.8 0 0 0-1.73-1.8c-.64-.5-1.52-1.12-2.13-1.12a.97.97 0 0 0-.34.06c-.47.17-.74.46-.95.69l-.02.02Zm4.32 2.68a6.8 6.8 0 0 0-1.48-1.54h-.02c-.3-.25-.64-.49-.95-.67a2.7 2.7 0 0 0-.56-.24h-.01c-.23.09-.34.21-.56.45l-.02.02-.04.04a1.2 1.2 0 0 1-1.6.15 7.76 7.76 0 0 1-1.86-1.89l-.01-.01-.02-.02a1.21 1.21 0 0 1 .2-1.53l.06-.06.02-.02c.22-.2.35-.31.43-.53v-.02c0-.02 0-.06-.03-.14a3.7 3.7 0 0 0-.5-.88h-.01V3.9c-.23-.33-.65-.87-1.1-1.32H4c-.31-.32-.55-.5-.72-.6a.6.6 0 0 0-.22-.1h-.03a2.23 2.23 0 0 0-1.15 1.66c-.09.78.18 1.8 1.02 3.1a15.68 15.68 0 0 0 4.27 4.33l.02.01.02.02a5.57 5.57 0 0 0 2.97 1.11 2.2 2.2 0 0 0 1.93-1.14h.01v-.05a.57.57 0 0 0-.05-.12Z\"})),link:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M11.84 2.16a2.25 2.25 0 0 0-3.18 0l-2.5 2.5c-.88.88-.88 2.3 0 3.18a.5.5 0 0 1-.7.7 3.25 3.25 0 0 1 0-4.59l2.5-2.5a3.25 3.25 0 0 1 4.59 4.6L10.48 8.1c.04-.44.01-.89-.09-1.32l1.45-1.45c.88-.88.88-2.3 0-3.18Z\"}),React5__default.createElement(\"path\",{d:\"M3.6 7.2c-.1-.42-.12-.87-.08-1.31L1.45 7.95a3.25 3.25 0 1 0 4.6 4.6l2.5-2.5a3.25 3.25 0 0 0 0-4.6.5.5 0 0 0-.7.7c.87.89.87 2.31 0 3.2l-2.5 2.5a2.25 2.25 0 1 1-3.2-3.2l1.46-1.44Z\"})),unlink:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"m1.45 7.95 1.3-1.3.71.7-1.3 1.3a2.25 2.25 0 1 0 3.18 3.2l1.3-1.31.71.7-1.3 1.3a3.25 3.25 0 0 1-4.6-4.59ZM12.55 6.05l-1.3 1.3-.71-.7 1.3-1.3a2.25 2.25 0 1 0-3.18-3.2l-1.3 1.31-.71-.7 1.3-1.3a3.25 3.25 0 0 1 4.6 4.59ZM1.85 1.15a.5.5 0 1 0-.7.7l11 11a.5.5 0 0 0 .7-.7l-11-11Z\"})),bell:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M8 1.11a1 1 0 1 0-1.99 0A4.5 4.5 0 0 0 2.5 5.5v3.88l-.94 1.89a.5.5 0 0 0-.06.3.5.5 0 0 0 .51.43h3.58a1.5 1.5 0 1 0 2.82 0H12a.5.5 0 0 0 .45-.73l-.94-1.89V5.5A4.5 4.5 0 0 0 8 1.11ZM2.8 11h8.4l-.5-1H3.3l-.5 1Zm7.7-2V5.5a3.5 3.5 0 1 0-7 0V9h7Zm-4 3.5a.5.5 0 1 1 1 0 .5.5 0 0 1-1 0Z\"})),rss:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M1.5.5c0-.28.22-.5.5-.5a12 12 0 0 1 12 12 .5.5 0 0 1-1 0A11 11 0 0 0 2 1a.5.5 0 0 1-.5-.5Z\"}),React5__default.createElement(\"path\",{d:\"M1.5 4.5c0-.28.22-.5.5-.5a8 8 0 0 1 8 8 .5.5 0 0 1-1 0 7 7 0 0 0-7-7 .5.5 0 0 1-.5-.5Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M5 11a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm-1 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"})),sharealt:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M2 1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V7.5a.5.5 0 0 0-1 0V12H2V2h4.5a.5.5 0 0 0 0-1H2Z\"}),React5__default.createElement(\"path\",{d:\"M7.35 7.36 12 2.7v1.8a.5.5 0 0 0 1 0v-3a.5.5 0 0 0-.5-.5h-3a.5.5 0 1 0 0 1h1.8L6.64 6.64a.5.5 0 1 0 .7.7Z\"})),share:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M6.65.15c.2-.2.5-.2.7 0l2 2a.5.5 0 1 1-.7.7L7.5 1.72v6.8a.5.5 0 0 1-1 0V1.7L5.35 2.86a.5.5 0 1 1-.7-.71l2-2Z\"}),React5__default.createElement(\"path\",{d:\"M2 4a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1H9.5a.5.5 0 1 0 0 1H12v7H2V5h2.5a.5.5 0 0 0 0-1H2Z\"})),circlehollow:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M7 13A6 6 0 1 0 7 1a6 6 0 0 0 0 12Zm0 1A7 7 0 1 0 7 0a7 7 0 0 0 0 14Z\"})),circle:React5__default.createElement(\"path\",{d:\"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Z\"}),bookmarkhollow:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M3.5 0h7c.28 0 .5.22.5.5v13a.5.5 0 0 1-.45.5.46.46 0 0 1-.38-.12L7 11.16l-3.17 2.72a.46.46 0 0 1-.38.12.5.5 0 0 1-.45-.5V.5c0-.28.22-.5.5-.5ZM4 12.41l2.66-2.28a.45.45 0 0 1 .38-.13c.1.01.2.05.29.12l2.67 2.3V1H4v11.41Z\"})),bookmark:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M3.5 0h7c.28 0 .5.22.5.5v13a.5.5 0 0 1-.45.5.46.46 0 0 1-.38-.12L7 11.16l-3.17 2.72a.46.46 0 0 1-.38.12.5.5 0 0 1-.45-.5V.5c0-.28.22-.5.5-.5Z\"})),hearthollow:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M12.81 1.85 13 2a2.97 2.97 0 0 1 .75 1.17 4.39 4.39 0 0 1 .12 2.51 6.26 6.26 0 0 1-1.65 2.55l-4.78 4.6A.59.59 0 0 1 7 13a.67.67 0 0 1-.44-.17L1.78 8.22a7.84 7.84 0 0 1-1.25-1.6C.37 6.31.24 6 .14 5.67a4.32 4.32 0 0 1 .12-2.51 3.2 3.2 0 0 1 1.95-1.9c.47-.18 1-.27 1.57-.27.3 0 .61.04.91.14.3.09.59.21.86.36s.52.33.77.52c.24.19.47.38.68.58a7.56 7.56 0 0 1 1.46-1.1c.27-.15.55-.27.84-.36.3-.1.6-.14.9-.14.59 0 1.12.09 1.59.26.39.15.73.34 1.02.59ZM1.2 3.53A2.2 2.2 0 0 1 2.57 2.2M1.2 3.53c-.13.33-.2.72-.2 1.18 0 .22.03.45.1.68a3.97 3.97 0 0 0 .79 1.46c.19.23.38.45.59.65l4.51 4.36 4.52-4.35c.2-.2.4-.4.59-.65.18-.23.34-.47.49-.73.13-.23.23-.48.3-.73.08-.23.11-.46.11-.7 0-.45-.07-.84-.2-1.18-.12-.33-.3-.6-.51-.8v-.01c-.22-.2-.5-.38-.85-.51-.34-.13-.75-.2-1.24-.2-.2 0-.4.03-.6.09a4.95 4.95 0 0 0-1.9 1.22l-.68.67-.7-.65a9.97 9.97 0 0 0-.62-.53c-.2-.16-.42-.3-.63-.42h-.01c-.21-.12-.43-.22-.66-.29C4.2 2.03 4 2 3.77 2c-.48 0-.88.07-1.21.2\"})),heart:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M12.81 1.85 13 2a2.97 2.97 0 0 1 .75 1.17 4.39 4.39 0 0 1 .12 2.51 6.26 6.26 0 0 1-1.65 2.55l-4.78 4.6A.59.59 0 0 1 7 13a.67.67 0 0 1-.44-.17L1.78 8.22a7.84 7.84 0 0 1-1.25-1.6C.37 6.31.24 6 .14 5.67a4.32 4.32 0 0 1 .12-2.51 3.2 3.2 0 0 1 1.95-1.9c.47-.18 1-.27 1.57-.27.3 0 .61.04.91.14.3.09.59.21.86.36s.52.33.77.52c.24.19.47.38.68.58a7.56 7.56 0 0 1 1.46-1.1c.27-.15.55-.27.84-.36.3-.1.6-.14.9-.14.59 0 1.12.09 1.59.26.39.15.73.34 1.02.59Z\"})),starhollow:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M6.32.78a.75.75 0 0 1 1.36 0l1.63 3.54 3.87.46c.63.07.89.86.42 1.3l-2.86 2.64.76 3.81a.75.75 0 0 1-1.1.8L7 11.43l-3.4 1.9a.75.75 0 0 1-1.1-.8l.76-3.81L.4 6.07a.75.75 0 0 1 .42-1.3l3.87-.45L6.32.78ZM7 1.7 5.54 4.86c-.11.24-.34.4-.6.43l-3.46.42 2.56 2.37c.2.17.28.44.23.7l-.68 3.42 3.04-1.7c.23-.14.5-.14.74 0l3.04 1.7-.68-3.43a.75.75 0 0 1 .23-.7l2.56-2.36-3.47-.42a.75.75 0 0 1-.59-.43L7 1.7Z\"})),star:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M7.68.78a.75.75 0 0 0-1.36 0L4.69 4.32l-3.87.46a.75.75 0 0 0-.42 1.3l2.86 2.64-.76 3.81a.75.75 0 0 0 1.1.8l3.4-1.9 3.4 1.9a.75.75 0 0 0 1.1-.8l-.76-3.81 2.86-2.65a.75.75 0 0 0-.42-1.3L9.3 4.33 7.68.78Z\"})),certificate:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M10 7.85A4.49 4.49 0 0 0 7 0a4.5 4.5 0 0 0-3 7.85V13a.5.5 0 0 0 .5.5.5.5 0 0 0 .35-.15L7 11.21l2.15 2.14A.5.5 0 0 0 10 13V7.85ZM7 8a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm-.35 2.15c.2-.2.5-.2.7 0L9 11.79V8.53a4.48 4.48 0 0 1-4 0v3.26l1.65-1.64Z\"})),verified:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M6.56 13.12a1 1 0 0 1 .88 0l.98.49a1 1 0 0 0 1.31-.43l.52-.97a1 1 0 0 1 .7-.51l1.08-.2a1 1 0 0 0 .81-1.1l-.15-1.1a1 1 0 0 1 .27-.82l.76-.8a1 1 0 0 0 0-1.37l-.76-.79a1 1 0 0 1-.27-.83l.15-1.08a1 1 0 0 0-.8-1.12l-1.09-.19a1 1 0 0 1-.7-.5L9.73.81A1 1 0 0 0 8.43.4l-1 .49a1 1 0 0 1-.87 0L5.58.39a1 1 0 0 0-1.31.43l-.52.97a1 1 0 0 1-.7.51l-1.08.2a1 1 0 0 0-.81 1.1l.15 1.1a1 1 0 0 1-.27.82l-.76.8a1 1 0 0 0 0 1.37l.76.79a1 1 0 0 1 .27.83l-.15 1.08a1 1 0 0 0 .8 1.12l1.09.19a1 1 0 0 1 .7.5l.52.98a1 1 0 0 0 1.3.43l1-.49Zm4.3-8.47c.19.2.19.5 0 .7l-4.5 4.5a.5.5 0 0 1-.71 0l-2.5-2.5a.5.5 0 1 1 .7-.7L6 8.79l4.15-4.14c.2-.2.5-.2.7 0Z\"})),thumbsup:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M11 12.02c-.4.37-.91.56-1.56.56h-.88a5.5 5.5 0 0 1-1.3-.16c-.42-.1-.91-.25-1.47-.45-.3-.12-.63-.21-.95-.27H2.88a.84.84 0 0 1-.62-.26.84.84 0 0 1-.26-.61V6.45c0-.24.09-.45.26-.62a.84.84 0 0 1 .62-.25h1.87c.16-.11.47-.47.93-1.06.27-.35.51-.64.74-.88.1-.11.19-.3.24-.58.05-.28.12-.57.2-.87.1-.3.24-.55.43-.74a.87.87 0 0 1 .62-.25c.38 0 .72.07 1.03.22.3.15.54.38.7.7a2.94 2.94 0 0 1 .21 1.58 3 3 0 0 1-.3 1h1.2c.47 0 .88.17 1.23.52s.52.8.52 1.22c0 .29-.04.66-.34 1.12.05.15.07.3.07.47 0 .35-.09.68-.26.98.07.54-.07 1.08-.4 1.51a1.9 1.9 0 0 1-.57 1.5Zm.47-5.33a.96.96 0 0 0 .03-.25.74.74 0 0 0-.23-.51.68.68 0 0 0-.52-.23H7.93l.73-1.45a2 2 0 0 0 .21-.87c0-.44-.07-.7-.13-.82a.53.53 0 0 0-.24-.24 1.3 1.3 0 0 0-.54-.12.99.99 0 0 0-.14.28c-.08.27-.13.52-.18.76-.06.38-.2.77-.48 1.07v.01l-.02.01c-.2.2-.4.46-.67.8l-.61.76c-.15.17-.35.38-.54.51l-.26.18H5v4.13h.02c.38.08.76.18 1.12.32.53.2.98.33 1.35.42.36.09.71.13 1.07.13h.88c.43 0 .68-.11.87-.29a.9.9 0 0 0 .26-.7l-.02-.37.22-.3c.17-.23.25-.5.2-.78l-.04-.33.17-.3a.97.97 0 0 0 .13-.48c0-.09 0-.13-.02-.15l-.15-.46.26-.4c.1-.15.13-.25.15-.33ZM3.5 10.8a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z\"})),shield:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M11.76 2.08a.5.5 0 0 1 .24.42v6a.5.5 0 0 1-.17.38l-4.5 3.99a.5.5 0 0 1-.67 0l-4.49-4A.5.5 0 0 1 2 8.5V2.5c0-.18.1-.34.24-.42l.01-.02a2.5 2.5 0 0 1 .3-.16c.22-.1.52-.24.92-.37C4.27 1.26 5.44 1 7 1c1.56 0 2.73.26 3.53.53a6.97 6.97 0 0 1 1.22.53l.01.02ZM3 2.79v5.49l1.07.94 6.59-6.58-.44-.17C9.52 2.24 8.44 2 7 2c-1.44 0-2.52.24-3.22.47-.35.12-.6.24-.78.32Zm4 9.04L4.82 9.9 11 3.71v4.57l-4 3.55Z\"})),basket:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M10.35 2.85a.5.5 0 1 0-.7-.7l-3 3a.5.5 0 1 0 .7.7l3-3Z\"}),React5__default.createElement(\"path\",{d:\"M2.09 6H4.5a.5.5 0 0 0 0-1H1.8a.75.75 0 0 0-.74.87l.8 4.88A1.5 1.5 0 0 0 3.36 12h7.3a1.5 1.5 0 0 0 1.48-1.25l.81-4.88A.75.75 0 0 0 12.2 5H10a.5.5 0 0 0 0 1h1.91l-.76 4.58a.5.5 0 0 1-.5.42h-7.3a.5.5 0 0 1-.5-.42L2.1 6Z\"}),React5__default.createElement(\"path\",{d:\"M4.5 7c.28 0 .5.22.5.5v2a.5.5 0 0 1-1 0v-2c0-.28.22-.5.5-.5ZM10 7.5a.5.5 0 0 0-1 0v2a.5.5 0 0 0 1 0v-2ZM6.5 9.5v-2a.5.5 0 0 1 1 0v2a.5.5 0 0 1-1 0Z\"})),beaker:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M4.5 2h.75v3.87l-3.03 5.26c-.48.83.12 1.87 1.08 1.87h7.4c.96 0 1.57-1.04 1.08-1.87L8.75 5.87V2h.75a.5.5 0 0 0 0-1h-5a.5.5 0 0 0 0 1Zm1.75 4V2h1.5v4.13l.07.12 1 1.75H5.18l1.01-1.75.07-.12V6ZM4.6 9l-1.52 2.63c-.1.16.03.37.22.37h7.4c.2 0 .31-.2.22-.37L9.4 9H4.6Z\"})),hourglass:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M7.5 10.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M3.5 1a.5.5 0 0 0-.5.5c0 1.06.14 1.9.68 2.97.34.7.86 1.5 1.6 2.53a16.53 16.53 0 0 0-1.8 2.96A6 6 0 0 0 3 12.49v.01a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5 6 6 0 0 0-.48-2.54c-.34-.8-.9-1.71-1.8-2.96a19.78 19.78 0 0 0 1.6-2.53c.54-1.08.68-1.9.68-2.97a.5.5 0 0 0-.5-.5h-7Zm6.49 11a4.68 4.68 0 0 0-.39-1.65c-.27-.65-.73-1.4-1.5-2.5a133 133 0 0 1-.75 1 .5.5 0 0 1-.56.1.5.5 0 0 1-.2-.16l-.7-.94a14.36 14.36 0 0 0-1.5 2.5A4.68 4.68 0 0 0 4.02 12H10ZM6.3 6.72l.7.94a90.06 90.06 0 0 0 .7-.96c.49-.67.87-1.22 1.17-1.7H5.13A32.67 32.67 0 0 0 6.3 6.72ZM4.56 4h4.88c.36-.73.5-1.31.55-2H4c.04.69.19 1.27.55 2Z\"})),flag:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M11.5 1h-9a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 1 0V8h8.5a.5.5 0 0 0 .35-.85L9.21 4.5l2.64-2.65A.5.5 0 0 0 11.5 1ZM8.15 4.15 10.29 2H3v5h7.3L8.14 4.85a.5.5 0 0 1 0-.7Z\"})),cloudhollow:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M10 7V6a3 3 0 0 0-5.9-.74l-.18.68-.7.07A2.5 2.5 0 0 0 3.5 11h3.19l.07-.01h.08L7 11h4a2 2 0 1 0 0-4h-1ZM3.12 5.02A3.5 3.5 0 0 0 3.5 12H11a3 3 0 1 0 0-6 4 4 0 0 0-7.88-.98Z\"})),cloud:React5__default.createElement(\"path\",{d:\"M7 2a4 4 0 0 1 4 4 3 3 0 1 1 0 6H3.5a3.5 3.5 0 0 1-.38-6.98A4 4 0 0 1 7 2Z\"}),edit:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"m13.85 2.15-2-2a.5.5 0 0 0-.7 0l-1.5 1.5-9 9a.5.5 0 0 0-.14.26L0 13.39a.5.5 0 0 0 .14.46.5.5 0 0 0 .46.14l2.48-.5a.5.5 0 0 0 .27-.14l9-9 1.5-1.5a.5.5 0 0 0 0-.7ZM12 3.29l.8-.79-1.3-1.3-.8.8L12 3.3Zm-2-.58L1.7 11 3 12.3 11.3 4 10 2.7ZM1.14 12.86l.17-.85.68.68-.85.17Z\"})),cog:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M5.59 5.59a2 2 0 0 1 3.27 2.14.5.5 0 1 0 .93.37 3 3 0 1 0-1.7 1.7.5.5 0 1 0-.36-.94A2 2 0 0 1 5.6 5.6Z\",fill:\"#333\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M.94 6.53c.13.12.19.3.18.46 0 .17-.05.34-.18.47L0 8.39c.19.94.55 1.81 1.07 2.58h1.32c.18 0 .34.07.46.2.12.11.2.27.2.45v1.32c.76.51 1.62.88 2.55 1.06l.94-.94a.63.63 0 0 1 .45-.19h.03c.16 0 .33.07.45.19l.94.94a7.1 7.1 0 0 0 2.55-1.06v-1.33c0-.18.07-.35.2-.46.11-.12.27-.2.45-.2h1.33A7.1 7.1 0 0 0 14 8.4l-.95-.94a.64.64 0 0 1-.18-.47c0-.17.06-.34.18-.46l.95-.95a7.1 7.1 0 0 0-1.05-2.52h-1.34a.63.63 0 0 1-.46-.2.64.64 0 0 1-.2-.46V1.06A7.1 7.1 0 0 0 8.42 0l-.94.94a.63.63 0 0 1-.45.19H7a.63.63 0 0 1-.45-.19L5.6 0a7.1 7.1 0 0 0-2.56 1.06v1.33c0 .18-.07.34-.2.46a.63.63 0 0 1-.45.2H1.06A7.1 7.1 0 0 0 0 5.59l.94.94Zm.7 1.63c.33-.32.49-.75.48-1.17 0-.42-.15-.85-.47-1.17l-.54-.54c.12-.43.3-.85.51-1.23h.77c.46 0 .87-.2 1.17-.5.3-.29.48-.7.48-1.16v-.77c.4-.22.81-.39 1.25-.52l.54.55c.33.32.75.48 1.16.48h.03c.42 0 .84-.16 1.16-.48l.54-.54c.44.12.85.3 1.24.5v.8c0 .45.19.87.49 1.16.3.3.7.5 1.16.5h.78c.2.37.38.78.5 1.2l-.54.55c-.33.32-.49.75-.48 1.17 0 .42.15.85.48 1.17l.55.55c-.13.44-.3.85-.52 1.24h-.77c-.45 0-.87.2-1.16.5-.3.29-.5.7-.5 1.16v.77c-.38.21-.8.39-1.23.51l-.54-.54a1.64 1.64 0 0 0-1.16-.48H7c-.41 0-.83.16-1.16.48l-.54.55a6.1 6.1 0 0 1-1.25-.52v-.76c0-.45-.19-.87-.48-1.16-.3-.3-.71-.5-1.17-.5h-.76a6.1 6.1 0 0 1-.53-1.25l.55-.55Z\"})),nut:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M5.59 8.41a2 2 0 1 1 3.27-.68.5.5 0 1 0 .93.37 3 3 0 1 0-1.7 1.7.5.5 0 0 0-.36-.94 2 2 0 0 1-2.14-.45Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M6.5.29a1 1 0 0 1 1 0l5.06 2.92c.31.18.5.51.5.87v5.84a1 1 0 0 1-.5.87L7.5 13.7a1 1 0 0 1-1 0L1.44 10.8a1 1 0 0 1-.5-.87V4.08a1 1 0 0 1 .5-.87L6.5.3Zm.5.86 5.06 2.93v5.84L7 12.85 1.94 9.92V4.08L7 1.15Z\"})),wrench:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M10.5 1c.44 0 .56.52.25.83l-.8.81c-.2.2-.2.52 0 .72l.69.7c.2.2.52.2.72 0l.8-.81c.32-.31.84-.2.84.25a2.5 2.5 0 0 1-3.41 2.33L2.7 12.7a1 1 0 0 1-1.42-1.42l6.88-6.88A2.5 2.5 0 0 1 10.5 1ZM2 12.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z\"})),ellipsis:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M4 7a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM13 7a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM7 8.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z\"})),check:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M13.85 3.35a.5.5 0 0 0-.7-.7L5 10.79.85 6.65a.5.5 0 1 0-.7.7l4.5 4.5c.2.2.5.2.7 0l8.5-8.5Z\"})),form:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M2 1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V6.4a.5.5 0 0 0-1 0V12H2V2h7.5a.5.5 0 0 0 0-1H2Z\"}),React5__default.createElement(\"path\",{d:\"m6.35 9.86 7.5-7.5a.5.5 0 0 0-.7-.71L6 8.8 3.85 6.65a.5.5 0 1 0-.7.7l2.5 2.5c.2.2.5.2.7 0Z\"})),batchdeny:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M11.5 2a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1h-2Zm-2.646.646a.5.5 0 0 1 0 .708L5.207 7l3.647 3.646a.5.5 0 0 1-.708.708L4.5 7.707.854 11.354a.5.5 0 0 1-.708-.708L3.793 7 .146 3.354a.5.5 0 1 1 .708-.708L4.5 6.293l3.646-3.647a.5.5 0 0 1 .708 0ZM11 7a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2A.5.5 0 0 1 11 7Zm.5 4a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1h-2Z\"})),batchaccept:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M11.5 2a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1h-2Zm-2.2.6a.5.5 0 0 1 .1.7l-5.995 7.993a.505.505 0 0 1-.37.206.5.5 0 0 1-.395-.152L.146 8.854a.5.5 0 1 1 .708-.708l2.092 2.093L8.6 2.7a.5.5 0 0 1 .7-.1ZM11 7a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2A.5.5 0 0 1 11 7Zm.5 4a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1h-2Z\"})),controls:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M10.5 1c.28 0 .5.22.5.5V2h1.5a.5.5 0 0 1 0 1H11v.5a.5.5 0 0 1-1 0V3H1.5a.5.5 0 0 1 0-1H10v-.5c0-.28.22-.5.5-.5ZM1.5 11a.5.5 0 0 0 0 1H10v.5a.5.5 0 0 0 1 0V12h1.5a.5.5 0 0 0 0-1H11v-.5a.5.5 0 0 0-1 0v.5H1.5ZM1 7c0-.28.22-.5.5-.5H3V6a.5.5 0 0 1 1 0v.5h8.5a.5.5 0 0 1 0 1H4V8a.5.5 0 0 1-1 0v-.5H1.5A.5.5 0 0 1 1 7Z\"})),plus:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M7.5.5a.5.5 0 0 0-1 0v6h-6a.5.5 0 0 0 0 1h6v6a.5.5 0 0 0 1 0v-6h6a.5.5 0 0 0 0-1h-6v-6Z\"})),closeAlt:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M2.03.97A.75.75 0 0 0 .97 2.03L5.94 7 .97 11.97a.75.75 0 1 0 1.06 1.06L7 8.06l4.97 4.97a.75.75 0 1 0 1.06-1.06L8.06 7l4.97-4.97A.75.75 0 0 0 11.97.97L7 5.94 2.03.97Z\"})),cross:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M1.85 1.15a.5.5 0 1 0-.7.7L6.29 7l-5.14 5.15a.5.5 0 0 0 .7.7L7 7.71l5.15 5.14a.5.5 0 0 0 .7-.7L7.71 7l5.14-5.15a.5.5 0 0 0-.7-.7L7 6.29 1.85 1.15Z\"})),trash:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M5.5 4.5c.28 0 .5.22.5.5v5a.5.5 0 0 1-1 0V5c0-.28.22-.5.5-.5ZM9 5a.5.5 0 0 0-1 0v5a.5.5 0 0 0 1 0V5Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M4.5.5c0-.28.22-.5.5-.5h4c.28 0 .5.22.5.5V2h3a.5.5 0 0 1 0 1H12v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V3h-.5a.5.5 0 0 1 0-1h3V.5ZM3 3v8a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V3H3Zm2.5-2h3v1h-3V1Z\"})),pinalt:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M13.44 4.44 9.56.56a1.5 1.5 0 0 0-2.12 0L7 1a1.41 1.41 0 0 0 0 2L5 5H3.66A4 4 0 0 0 .83 6.17l-.48.48a.5.5 0 0 0 0 .7l2.8 2.8-3 3a.5.5 0 0 0 .7.7l3-3 2.8 2.8c.2.2.5.2.7 0l.48-.48A4 4 0 0 0 9 10.34V9l2-2c.55.55 1.45.55 2 0l.44-.44a1.5 1.5 0 0 0 0-2.12ZM11 5.59l-3 3v1.75a3 3 0 0 1-.88 2.12L7 12.6 1.41 7l.13-.12A3 3 0 0 1 3.66 6H5.4l3-3-.7-.7a.41.41 0 0 1 0-.6l.44-.43c.2-.2.5-.2.7 0l3.88 3.88c.2.2.2.5 0 .7l-.44.44a.41.41 0 0 1-.58 0L11 5.6Z\"})),unpin:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M13.44 4.44 9.56.56a1.5 1.5 0 0 0-2.12 0L7 1a1.41 1.41 0 0 0 0 2L5.7 4.3l.71.7 2-2-.7-.7a.41.41 0 0 1 0-.6l.44-.43c.2-.2.5-.2.7 0l3.88 3.88c.2.2.2.5 0 .7l-.44.44a.41.41 0 0 1-.58 0L11 5.6l-2 2 .7.7L11 7c.55.55 1.45.55 2 0l.44-.44a1.5 1.5 0 0 0 0-2.12ZM.83 6.17A4 4 0 0 1 3.59 5l1 1h-.93a3 3 0 0 0-2.12.88L1.4 7 7 12.59l.12-.13A3 3 0 0 0 8 10.34v-.93l1 1a4 4 0 0 1-1.17 2.76l-.48.48a.5.5 0 0 1-.7 0l-2.8-2.8-3 3a.5.5 0 0 1-.7-.7l3-3-2.8-2.8a.5.5 0 0 1 0-.7l.48-.48Zm1.02-5.02a.5.5 0 1 0-.7.7l11 11a.5.5 0 0 0 .7-.7l-11-11Z\"})),add:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M7 3c.28 0 .5.22.5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3c0-.28.22-.5.5-.5Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14Zm0-1A6 6 0 1 0 7 1a6 6 0 0 0 0 12Z\"})),subtract:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M3.5 6.5a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-7Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-1 0A6 6 0 1 1 1 7a6 6 0 0 1 12 0Z\"})),close:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M9.85 4.15c.2.2.2.5 0 .7L7.71 7l2.14 2.15a.5.5 0 0 1-.7.7L7 7.71 4.85 9.85a.5.5 0 0 1-.7-.7L6.29 7 4.15 4.85a.5.5 0 1 1 .7-.7L7 6.29l2.15-2.14c.2-.2.5-.2.7 0Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14Zm0-1A6 6 0 1 0 7 1a6 6 0 0 0 0 12Z\"})),delete:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-1 0a6 6 0 0 1-9.87 4.58l8.45-8.45A5.98 5.98 0 0 1 13 7ZM2.42 10.87l8.45-8.45a6 6 0 0 0-8.46 8.46Z\"})),passed:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14Zm3.85-9.35c.2.2.2.5 0 .7l-4.5 4.5a.5.5 0 0 1-.7 0l-2.5-2.5a.5.5 0 1 1 .7-.7L6 8.79l4.15-4.14c.2-.2.5-.2.7 0Z\"})),changed:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14ZM3.5 6.5a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-7Z\"})),failed:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14Zm2.85-9.85c.2.2.2.5 0 .7L7.71 7l2.14 2.15a.5.5 0 0 1-.7.7L7 7.71 4.85 9.85a.5.5 0 0 1-.7-.7L6.29 7 4.15 4.85a.5.5 0 1 1 .7-.7L7 6.29l2.15-2.14c.2-.2.5-.2.7 0Z\"})),clear:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M5 2h7a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H5a2 2 0 0 1-1.41-.59l-3-3a2 2 0 0 1 0-2.82l3-3A2 2 0 0 1 5 2Zm1.15 3.15c.2-.2.5-.2.7 0L8 6.29l1.15-1.14a.5.5 0 1 1 .7.7L8.71 7l1.14 1.15a.5.5 0 0 1-.7.7L8 7.71 6.85 8.85a.5.5 0 1 1-.7-.7L7.29 7 6.15 5.85a.5.5 0 0 1 0-.7Z\"})),comment:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M3.5 5a.5.5 0 1 0 0 1h7a.5.5 0 0 0 0-1h-7ZM3 8.5c0-.27.22-.5.5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M12.5 12H5.7l-1.85 1.86a.5.5 0 0 1-.35.14.5.5 0 0 1-.5-.5V12H1.5a.5.5 0 0 1-.5-.5v-9c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v9a.5.5 0 0 1-.5.5ZM2 11V3h10v8H2Z\"})),commentadd:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M7.5 5a.5.5 0 1 0-1 0v1.5H5a.5.5 0 1 0 0 1h1.5V9a.5.5 0 0 0 1 0V7.5H9a.5.5 0 0 0 0-1H7.5V5Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M3.7 13.97a.5.5 0 0 1-.7-.46V12H1.5a.5.5 0 0 1-.5-.5v-9c0-.28.22-.5.5-.5h11c.28 0 .5.22.5.5v9a.5.5 0 0 1-.5.5H5.7l-1.85 1.85a.5.5 0 0 1-.16.1ZM2 3v8h10V3H2Z\"})),requestchange:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M9.85 6.65c.2.2.2.51 0 .7l-2 2a.5.5 0 1 1-.7-.7L8.3 7.5H4.5a.5.5 0 0 1 0-1h3.79L7.15 5.36a.5.5 0 1 1 .7-.71l2 2Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M3.7 13.97a.5.5 0 0 1-.7-.46V12H1.5a.5.5 0 0 1-.5-.5v-9c0-.28.22-.5.5-.5h11c.28 0 .5.22.5.5v9a.5.5 0 0 1-.5.5H5.7l-1.85 1.85a.5.5 0 0 1-.16.1ZM2 3v8h10V3H2Z\"})),comments:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M8.5 7a.5.5 0 0 0 0-1h-5a.5.5 0 1 0 0 1h5ZM9 8.5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1 0-1h5c.28 0 .5.23.5.5Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M12 11.5V10h1.5a.5.5 0 0 0 .5-.5v-8a.5.5 0 0 0-.5-.5h-11a.5.5 0 0 0-.5.5V3H.5a.5.5 0 0 0-.5.5v8c0 .28.22.5.5.5H2v1.5a.5.5 0 0 0 .5.5.5.5 0 0 0 .35-.14L4.71 12h6.79a.5.5 0 0 0 .5-.5ZM3 3V2h10v7h-1V3.5a.5.5 0 0 0-.5-.5H3Zm-2 8V4h10v7H1Z\"})),lock:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M8 8a1 1 0 0 1-.5.87v1.63a.5.5 0 0 1-1 0V8.87A1 1 0 1 1 8 8Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M3 4a4 4 0 1 1 8 0v1h1.5c.28 0 .5.23.5.5v8a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-8c0-.27.22-.5.5-.5H3V4Zm7 1V4a3 3 0 1 0-6 0v1h6Zm2 1H2v7h10V6Z\"})),unlock:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M6.5 8.87a1 1 0 1 1 1 0v1.63a.5.5 0 0 1-1 0V8.87Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M7 1a3 3 0 0 0-3 3v1h8.5c.28 0 .5.23.5.5v8a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-8c0-.27.22-.5.5-.5H3V4a4 4 0 0 1 7.76-1.38.5.5 0 0 1-.94.34A3 3 0 0 0 7 1ZM2 6h10v7H2V6Z\"})),key:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M11 4a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M7.5 8.53v.97a.5.5 0 0 1-.5.5H5.5v1.5a.5.5 0 0 1-.5.5H3.5v1.5a.5.5 0 0 1-.5.5H.5a.5.5 0 0 1-.5-.5v-2a.5.5 0 0 1 .15-.36l5.12-5.11a4.5 4.5 0 1 1 2.23 2.5ZM6 4.5a3.5 3.5 0 1 1 1.5 2.87c-.29-.2-1-.37-1 .48V9H5a.5.5 0 0 0-.5.5V11H3a.5.5 0 0 0-.5.5V13H1v-1.3l5.2-5.19c.15-.16.18-.4.1-.6A3.47 3.47 0 0 1 6 4.5Z\"})),outbox:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M7.35.15a.5.5 0 0 0-.7 0l-2 2a.5.5 0 1 0 .7.7L6.5 1.72v6.8a.5.5 0 0 0 1 0V1.7l1.15 1.15a.5.5 0 1 0 .7-.71l-2-2Z\"}),React5__default.createElement(\"path\",{d:\"M2 7.5a.5.5 0 1 0-1 0v5c0 .28.22.5.5.5h11a.5.5 0 0 0 .5-.5v-5a.5.5 0 0 0-1 0V12H2V7.5Z\"})),credit:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M2.5 8a.5.5 0 1 0 0 1h3a.5.5 0 0 0 0-1h-3Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M0 11.5c0 .28.22.5.5.5h13a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5H.5a.5.5 0 0 0-.5.5v9ZM1 3v1h12V3H1Zm0 8h12V6H1v5Z\"})),button:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M1 3a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h3.5a.5.5 0 1 0 0-1H1V4h12v5h-1a.5.5 0 0 0 0 1h1a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H1Z\"}),React5__default.createElement(\"path\",{d:\"M6.45 7a.5.5 0 0 1 .3.08l3.48 2.02a.5.5 0 0 1 0 .87l-1.08.62.75 1.3a.75.75 0 0 1-1.3.75l-.75-1.3-1.07.62a.5.5 0 0 1-.67-.13.5.5 0 0 1-.1-.3L6 7.5a.5.5 0 0 1 .45-.5Z\"})),type:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M4 1.5c0-.27.22-.5.5-.5h5a.5.5 0 1 1 0 1h-2v10h2a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1h2V2h-2a.5.5 0 0 1-.5-.5Z\"}),React5__default.createElement(\"path\",{d:\"M0 4.5c0-.27.22-.5.5-.5h4a.5.5 0 1 1 0 1H1v4h3.5a.5.5 0 1 1 0 1h-4a.5.5 0 0 1-.5-.5v-5ZM9.5 4a.5.5 0 1 0 0 1H13v4H9.5a.5.5 0 1 0 0 1h4a.5.5 0 0 0 .5-.5v-5a.5.5 0 0 0-.5-.5h-4Z\"})),pointerdefault:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M5.94 12.46c.11 0 .2-.06.25-.15l1.58-3.16 2.54 2.54c.04.05.1.07.19.07a.3.3 0 0 0 .2-.07l.8-.8a.27.27 0 0 0 0-.38L8.9 7.9l3.4-1.7c.06-.03.1-.07.12-.11a.22.22 0 0 0 .04-.14.33.33 0 0 0-.06-.16.17.17 0 0 0-.09-.07h-.02L1.91 1.55a.27.27 0 0 0-.35.36l4.15 10.37c.04.09.12.16.23.17Zm-.03 1h-.02a1.28 1.28 0 0 1-1.1-.8L.62 2.29A1.27 1.27 0 0 1 2.3.63l10.35 4.15c.52.18.79.65.81 1.11.04.53-.27.98-.7 1.2l-2.17 1.08L12.2 9.8c.5.5.5 1.3 0 1.8l-.8.8v.01c-.5.46-1.3.48-1.8-.01l-1.56-1.56-.95 1.92c-.23.45-.68.7-1.15.7h-.03Z\"})),pointerhand:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M11.87 6v-.02c-.03-.27-.23-.48-.47-.5a.5.5 0 0 0-.53.5v1.41c0 .25-.22.47-.47.47a.48.48 0 0 1-.47-.47V5.17a.6.6 0 0 0 0-.05c-.02-.27-.23-.5-.47-.5a.5.5 0 0 0-.52.5v1.65l-.01.1a.49.49 0 0 1-.46.37.48.48 0 0 1-.47-.47V4.62a.6.6 0 0 0 0-.05c-.03-.27-.23-.48-.47-.5a.5.5 0 0 0-.53.5v2.2c0 .25-.22.47-.47.47a.49.49 0 0 1-.47-.47V1.75c-.02-.27-.22-.5-.47-.5a.5.5 0 0 0-.52.5v6.78c0 .25-.22.47-.47.47a.48.48 0 0 1-.47-.47v-.26a.78.78 0 0 0-.06-.31.65.65 0 0 0-.16-.22l-.2-.19A6.37 6.37 0 0 0 3.06 7h-.02c-.43-.34-.62-.25-.69-.2-.26.14-.29.5-.13.74l1.73 2.6v.01h-.01l-.04.02.05-.02s1.21 2.6 3.57 2.6c3.54 0 4.2-1.9 4.31-4.42.04-.6.04-1.19.03-1.78V6Zm.97 2.38c-.06 1.29-.26 2.67-1.08 3.72-.88 1.12-2.29 1.65-4.23 1.65a4.64 4.64 0 0 1-3.4-1.62 6.96 6.96 0 0 1-1.05-1.5v-.02L1.4 8.1A1.6 1.6 0 0 1 1.15 7c.05-.38.26-.8.69-1.04.2-.13.48-.23.85-.19.36.05.68.22.98.45.14.1.27.22.4.33v-4.8A1.5 1.5 0 0 1 5.63.25c.93.04 1.43.86 1.43 1.55v1.33c.17-.05.35-.07.53-.06h.02c.5.04.91.33 1.15.71a1.5 1.5 0 0 1 .74-.16c.66.03 1.12.46 1.32.97a1.5 1.5 0 0 1 .64-.1h.02c.85.06 1.39.8 1.39 1.55v.48c0 .6 0 1.24-.03 1.86Z\"})),browser:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M.5 13a.5.5 0 0 1-.5-.5v-11c0-.27.22-.5.5-.5h13c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5H.5Zm.5-1V4h12v8H1Zm1-9.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Zm2 0a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Zm2 0a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z\"})),tablet:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M3.5 0C2.67 0 2 .68 2 1.5v11c0 .83.67 1.5 1.5 1.5h7c.83 0 1.5-.67 1.5-1.5v-11c0-.82-.67-1.5-1.5-1.5h-7Zm0 1h7c.28 0 .5.23.5.5V11H3V1.5c0-.27.22-.5.5-.5ZM6 12a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1H6Z\"})),mobile:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M3 1.5C3 .68 3.67 0 4.5 0h5c.83 0 1.5.68 1.5 1.5v11c0 .83-.67 1.5-1.5 1.5h-5A1.5 1.5 0 0 1 3 12.5v-11ZM4 12V2h6v10H4Z\"})),watch:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{key:\"watch\",fillRule:\"evenodd\",d:\"M4 .5c0-.27.22-.5.5-.5h5a.5.5 0 0 1 0 1h-5A.5.5 0 0 1 4 .5ZM9.5 3h-5a.5.5 0 0 0-.5.5v7c0 .28.22.5.5.5h5a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.5-.5Zm-5-1C3.67 2 3 2.68 3 3.5v7c0 .83.67 1.5 1.5 1.5h5c.83 0 1.5-.67 1.5-1.5v-7c0-.82-.67-1.5-1.5-1.5h-5ZM7 4c.28 0 .5.23.5.5v2h1a.5.5 0 1 1 0 1H7a.5.5 0 0 1-.5-.5V4.5c0-.27.22-.5.5-.5Zm-2.5 9a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1h-5Z\"})),sidebar:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M2.5 4.5c0-.27.22-.5.5-.5h1a.5.5 0 1 1 0 1H3a.5.5 0 0 1-.5-.5ZM3 6a.5.5 0 1 0 0 1h1a.5.5 0 0 0 0-1H3Zm-.5 2.5c0-.27.22-.5.5-.5h1a.5.5 0 1 1 0 1H3a.5.5 0 0 1-.5-.5Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M1.5 13a.5.5 0 0 1-.5-.5v-11c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11Zm.5-1V2h3v10H2ZM6 2h6v10H6V2Z\"})),sidebaralt:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M9.5 4.5c0-.27.22-.5.5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5ZM10 6a.5.5 0 1 0 0 1h1a.5.5 0 0 0 0-1h-1Zm-.5 2.5c0-.27.22-.5.5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M1.5 13a.5.5 0 0 1-.5-.5v-11c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11Zm.5-1V2h6v10H2ZM9 2h3v10H9V2Z\"})),sidebaralttoggle:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M11.5 4.5A.5.5 0 0 0 11 4h-1a.5.5 0 1 0 0 1h1a.5.5 0 0 0 .5-.5ZM11 6a.5.5 0 0 1 0 1h-1a.5.5 0 0 1 0-1h1Zm.5 2.5A.5.5 0 0 0 11 8h-1a.5.5 0 1 0 0 1h1a.5.5 0 0 0 .5-.5Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M1.5 13a.5.5 0 0 1-.5-.5v-11c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11ZM9 12h3V2H9v10Zm-1 0H2V2h6v4.5H5.2l.66-.65a.5.5 0 1 0-.71-.7l-1.5 1.5a.5.5 0 0 0 0 .7l1.5 1.5a.5.5 0 1 0 .7-.7l-.64-.65H8V12Z\"})),sidebartoggle:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M2.5 4.5c0-.27.22-.5.5-.5h1a.5.5 0 1 1 0 1H3a.5.5 0 0 1-.5-.5ZM3 6a.5.5 0 1 0 0 1h1a.5.5 0 0 0 0-1H3Zm-.5 2.5c0-.27.22-.5.5-.5h1a.5.5 0 1 1 0 1H3a.5.5 0 0 1-.5-.5Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M1.5 13a.5.5 0 0 1-.5-.5v-11c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11Zm.5-1V2h3v10H2Zm4 0V7.5h2.8l-.65.65a.5.5 0 1 0 .7.7l1.5-1.5a.5.5 0 0 0 0-.7l-1.5-1.5a.5.5 0 1 0-.7.7l.64.65H6V2h6v10H6Z\"})),bottombar:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M3 10.5c0-.27.22-.5.5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5Zm3.5-.5a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1h-1Zm2.5.5c0-.27.22-.5.5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M1 1.5c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11ZM2 8V2h10v6H2Zm10 1v3H2V9h10Z\"})),bottombartoggle:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M3.5 10a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1h-1Zm2.5.5c0-.27.22-.5.5-.5h1a.5.5 0 0 1 0 1h-1a.5.5 0 0 1-.5-.5Zm3.5-.5a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1h-1Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M1 12.5v-11c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5Zm1-.5V9h10v3H2Zm4.5-4H2V2h10v6H7.5V5.21l.65.65a.5.5 0 1 0 .7-.71l-1.5-1.5a.5.5 0 0 0-.7 0l-1.5 1.5a.5.5 0 1 0 .7.7l.65-.64v2.8Z\"})),cpu:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M5 5.5c0-.27.22-.5.5-.5h3c.28 0 .5.23.5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3ZM6 8V6h2v2H6Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M5.5 0c.28 0 .5.23.5.5V2h2V.5a.5.5 0 0 1 1 0V2h2.5c.28 0 .5.23.5.5V5h1.5a.5.5 0 0 1 0 1H12v2h1.5a.5.5 0 0 1 0 1H12v2.5a.5.5 0 0 1-.5.5H9v1.5a.5.5 0 0 1-1 0V12H6v1.5a.5.5 0 0 1-1 0V12H2.5a.5.5 0 0 1-.5-.5V9H.5a.5.5 0 0 1 0-1H2V6H.5a.5.5 0 0 1 0-1H2V2.5c0-.27.22-.5.5-.5H5V.5c0-.27.22-.5.5-.5ZM11 3H3v8h8V3Z\"})),database:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M12 3c0-1.1-2.24-2-5-2s-5 .9-5 2v8c0 .43.26.75.54.98.3.23.68.41 1.12.55.88.3 2.06.47 3.34.47 1.28 0 2.46-.17 3.34-.46.44-.15.83-.33 1.12-.56.28-.23.54-.55.54-.98V3Zm-1.03 0a2.45 2.45 0 0 0-.8-.49A8.88 8.88 0 0 0 7 2c-1.29 0-2.4.21-3.16.51a2.45 2.45 0 0 0-.81.49l.05.05c.13.13.37.28.76.44C4.6 3.79 5.7 4 7 4s2.4-.21 3.16-.51a2.45 2.45 0 0 0 .81-.49ZM11 5.75V4.2A8.9 8.9 0 0 1 7 5a8.98 8.98 0 0 1-4-.8v1.55l.02.04c.02.04.06.09.14.15.17.13.44.27.82.4A10 10 0 0 0 7 6.75a10 10 0 0 0 3.02-.41c.38-.13.65-.27.82-.4a.62.62 0 0 0 .14-.15.15.15 0 0 0 .02-.03v-.01ZM3 7.01c.2.1.42.2.66.28.88.29 2.06.46 3.34.46 1.28 0 2.46-.17 3.34-.46.24-.08.46-.17.66-.28V8.5l-.02.04a.62.62 0 0 1-.14.15c-.17.13-.44.27-.82.4A10 10 0 0 1 7 9.5a10 10 0 0 1-3.02-.41 2.76 2.76 0 0 1-.82-.4.62.62 0 0 1-.14-.15.15.15 0 0 1-.02-.03V7Zm0 2.75V11l.02.04c.02.04.06.09.14.15.17.13.44.27.82.4A10 10 0 0 0 7 12a10 10 0 0 0 3.02-.41c.38-.13.65-.27.82-.4a.62.62 0 0 0 .14-.15.15.15 0 0 0 .02-.03V9.76c-.2.1-.42.2-.66.28-.88.29-2.06.46-3.34.46-1.28 0-2.46-.17-3.34-.46A4.77 4.77 0 0 1 3 9.76Z\"})),memory:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M5 3a.5.5 0 0 0-1 0v3a.5.5 0 0 0 1 0V3Zm2-.5c.28 0 .5.22.5.5v3a.5.5 0 0 1-1 0V3c0-.28.22-.5.5-.5Zm3 2a.5.5 0 1 0-1 0V6a.5.5 0 0 0 1 0V4.5Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M12 3.54a.5.5 0 0 0-.15-.39l-3-3a.5.5 0 0 0-.38-.14H2.5a.5.5 0 0 0-.5.5v13c0 .27.22.5.5.5h9a.5.5 0 0 0 .5-.5V3.53ZM3 1h5.3L11 3.71v5.3H3V1Zm0 9v3h8v-3H3Z\"})),structure:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M8.16 3.45a1.5 1.5 0 1 0-2.33 0l-4.02 6.58A1.5 1.5 0 1 0 2.91 12h8.18a1.5 1.5 0 1 0 1.1-1.97L8.16 3.45Zm-1.47.52a1.5 1.5 0 0 0 .62 0l4.03 6.58c-.11.14-.2.29-.25.45H2.9a1.5 1.5 0 0 0-.25-.45L6.7 3.97Z\"})),box:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"m7.21.05 6.49 2.99a.5.5 0 0 1 .3.47v6.98a.5.5 0 0 1-.3.47l-6.47 2.98a.5.5 0 0 1-.46 0L.3 10.96a.5.5 0 0 1-.3-.47V3.5a.5.5 0 0 1 .3-.47L6.79.05a.5.5 0 0 1 .43 0ZM1 4.28v5.9l5.5 2.54v-5.9L1 4.28Zm6.5 8.44 5.5-2.54v-5.9L7.5 6.82v5.9Zm4.8-9.22L7 5.95 1.7 3.5 7 1.05l5.3 2.45Z\"})),power:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M7.5.5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0v-6Z\"}),React5__default.createElement(\"path\",{d:\"M4.27 2.8a.5.5 0 0 0-.54-.83 6 6 0 1 0 6.54 0 .5.5 0 0 0-.54.84 5 5 0 1 1-5.46 0Z\"})),photo:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M6.25 4.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm-.5 0a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M13 1.5v11a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5ZM2 9.3V2h10v5.3L9.85 5.15a.5.5 0 0 0-.7 0L6.5 7.8 5.35 6.65a.5.5 0 0 0-.7 0L2 9.3Zm7.5-3.1L12 8.7V12H2v-1.3l3-3 3.15 3.15a.5.5 0 0 0 .7-.71L7.21 8.5 9.5 6.21Z\"})),component:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M3.5 1A2.5 2.5 0 0 0 1 3.5v7A2.5 2.5 0 0 0 3.5 13h7a2.5 2.5 0 0 0 2.5-2.5v-7A2.5 2.5 0 0 0 10.5 1h-7ZM12 6.5H7.5V2h3c.83 0 1.5.68 1.5 1.5v3Zm0 1v3c0 .83-.67 1.5-1.5 1.5h-3V7.5H12ZM6.5 12V7.5H2v3c0 .83.67 1.5 1.5 1.5h3ZM2 6.5h4.5V2h-3C2.67 2 2 2.68 2 3.5v3Z\"})),grid:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M1 1.5c0-.27.22-.5.5-.5H6c.28 0 .5.23.5.5V6a.5.5 0 0 1-.5.5H1.5A.5.5 0 0 1 1 6V1.5Zm1 4V2h3.5v3.5H2Zm5.5-4c0-.27.22-.5.5-.5h4.5c.28 0 .5.23.5.5V6a.5.5 0 0 1-.5.5H8a.5.5 0 0 1-.5-.5V1.5Zm1 4V2H12v3.5H8.5Zm-7 2A.5.5 0 0 0 1 8v4.5c0 .28.22.5.5.5H6a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5H1.5Zm.5 1V12h3.5V8.5H2ZM7.5 8c0-.27.22-.5.5-.5h4.5c.28 0 .5.23.5.5v4.5a.5.5 0 0 1-.5.5H8a.5.5 0 0 1-.5-.5V8Zm1 4V8.5H12V12H8.5Z\"})),outline:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M2 2v2H1V1.5c0-.27.22-.5.5-.5H4v1H2ZM1 9V5h1v4H1Zm0 1v2.5c0 .28.22.5.5.5H4v-1H2v-2H1Zm9 3h2.5a.5.5 0 0 0 .5-.5V10h-1v2h-2v1Zm2-9h1V1.5a.5.5 0 0 0-.5-.5H10v1h2v2Zm-3 8v1H5v-1h4ZM9 1v1H5V1h4Zm4 8h-1V5h1v4ZM7 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z\"})),photodrag:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M8.25 3.25a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm-.5 0a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M14 7V.5a.5.5 0 0 0-.5-.5h-10a.5.5 0 0 0-.5.5V3H.5a.5.5 0 0 0-.5.5V6h1V4h2v6.5c0 .28.22.5.5.5H10v2H8v1h2.5a.5.5 0 0 0 .5-.5V11h2.5a.5.5 0 0 0 .5-.5V7ZM4 1v5.8l1.65-1.65c.2-.2.5-.2.7 0L7.5 6.3l2.65-2.65c.2-.2.5-.2.7 0L13 5.8V1H4Zm9 6.21-2.5-2.5-2.3 2.3 1.15 1.14a.5.5 0 1 1-.7.7L6 6.22l-2 2v1.8h9V7.2Z\"}),React5__default.createElement(\"path\",{d:\"M0 10V7h1v3H0Zm0 3.5V11h1v2h2v1H.5a.5.5 0 0 1-.5-.5Zm7 .5H4v-1h3v1Z\"})),search:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M9.54 10.2a5.5 5.5 0 1 1 .66-.66c.06.03.11.06.15.1l3 3a.5.5 0 0 1-.7.71l-3-3a.5.5 0 0 1-.1-.14ZM10.5 6a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z\"})),zoom:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M6 3.5c.28 0 .5.22.5.5v1.5H8a.5.5 0 0 1 0 1H6.5V8a.5.5 0 0 1-1 0V6.5H4a.5.5 0 0 1 0-1h1.5V4c0-.28.22-.5.5-.5Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M9.54 10.2a5.5 5.5 0 1 1 .66-.66c.06.03.11.06.15.1l3 3a.5.5 0 0 1-.7.71l-3-3a.5.5 0 0 1-.1-.14ZM10.5 6a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z\"})),zoomout:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M4 5.5a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1H4Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M6 11.5c1.35 0 2.59-.49 3.54-1.3.03.06.06.11.1.15l3 3a.5.5 0 0 0 .71-.7l-3-3a.5.5 0 0 0-.14-.1A5.5 5.5 0 1 0 6 11.5Zm0-1a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z\"})),zoomreset:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M1.5 2.84V1.5a.5.5 0 0 0-1 0V4c0 .28.22.5.5.5h2.5a.5.5 0 0 0 0-1H2.26a4.5 4.5 0 1 1-.5 4.02.5.5 0 1 0-.94.33 5.5 5.5 0 0 0 8.72 2.36l.1.14 3 3a.5.5 0 0 0 .71-.7l-3-3a.5.5 0 0 0-.14-.1 5.5 5.5 0 1 0-8.7-6.7Z\"})),eye:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M7 9.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"m14 7-.2.3c-.13.16-3.06 4.2-6.8 4.2C3.26 11.5.33 7.46.2 7.3L0 7l.2-.3C.34 6.55 3.27 2.5 7 2.5c3.74 0 6.67 4.04 6.8 4.2l.2.3ZM2.9 5.3A13 13 0 0 0 1.24 7 13 13 0 0 0 2.9 8.7c1.14.97 2.58 1.8 4.1 1.8 1.52 0 2.96-.83 4.1-1.8A13 13 0 0 0 12.76 7a13 13 0 0 0-1.66-1.7C9.96 4.33 8.52 3.5 7 3.5c-1.52 0-2.96.83-4.1 1.8Z\"})),eyeclose:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M1.85 1.15a.5.5 0 1 0-.7.7l11 11a.5.5 0 0 0 .7-.7l-11-11ZM11.1 8.7c-.17.15-.36.3-.55.44l.72.71a13.25 13.25 0 0 0 2.52-2.56L14 7l-.2-.3c-.13-.16-3.06-4.2-6.8-4.2-.89 0-1.73.23-2.5.58l.76.76A4.86 4.86 0 0 1 7 3.5c1.52 0 2.96.83 4.1 1.8A13 13 0 0 1 12.76 7a13 13 0 0 1-1.66 1.7ZM.2 6.7c.08-.09 1.04-1.41 2.53-2.55l.72.71c-.2.14-.38.3-.55.44A13 13 0 0 0 1.24 7 13 13 0 0 0 2.9 8.7c1.14.97 2.58 1.8 4.1 1.8.6 0 1.18-.13 1.74-.34l.77.76c-.78.35-1.62.58-2.51.58C3.26 11.5.33 7.46.2 7.3L0 7l.2-.3Z\"}),React5__default.createElement(\"path\",{d:\"M4.5 7c0-.32.06-.63.17-.91l3.24 3.24A2.5 2.5 0 0 1 4.5 7Zm4.83.91L6.09 4.67a2.5 2.5 0 0 1 3.24 3.24Z\"})),lightning:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M2.52 6.6a.57.57 0 0 0-.17.54c.04.2.19.37.38.41l2.78.73-1.5 5c-.06.24.02.5.22.63a.5.5 0 0 0 .28.09.5.5 0 0 0 .35-.14L11.5 7.4c.14-.13.2-.34.15-.54a.53.53 0 0 0-.38-.4l-2.7-.7L10.79.78c.1-.23.04-.5-.15-.66a.5.5 0 0 0-.65 0L2.52 6.6Zm7.72.63-3.07-.8 1.85-4.14-5.2 4.51 2.94.77-1.27 4.28 4.75-4.62Zm-5.73 6.2.04.02Z\"})),lightningoff:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M10.14 8.72 11.5 7.4c.14-.13.2-.34.15-.54a.53.53 0 0 0-.38-.4l-2.7-.7L10.79.78c.1-.23.04-.5-.15-.66a.5.5 0 0 0-.65 0L5.46 4.05l.71.7L9.02 2.3 7.38 5.97l.7.7 2.16.56-.8.79.7.7ZM2.52 6.6a.57.57 0 0 0-.17.54c.04.2.19.37.38.41l2.78.73-1.5 5c-.06.24.02.5.22.63a.5.5 0 0 0 .63-.05l3.84-3.74-.7-.7-2.51 2.43 1.13-3.81-.68-.69L3.8 6.8l.85-.73-.71-.7L2.52 6.6Zm-.67-5.45a.5.5 0 1 0-.7.7l11 11a.5.5 0 0 0 .7-.7l-11-11Z\"})),contrast:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M3 3H.5a.5.5 0 0 0-.5.5v10c0 .28.22.5.5.5h10a.5.5 0 0 0 .5-.5V11h2.5a.5.5 0 0 0 .5-.5V.5a.5.5 0 0 0-.5-.5h-10a.5.5 0 0 0-.5.5V3Zm1 1v2.3L6.3 4H4ZM3 4v6.5a.5.5 0 0 0 .5.5H10v2H1V4h2Zm1-1h6.5a.5.5 0 0 1 .5.5V10h2V1H4v2Zm6 7V7.71l-2.3 2.3H10Zm0-3.7V4.7L4.7 10h1.6L10 6.3ZM9.3 4H7.7L4 7.71V9.3L9.3 4Z\"})),switchalt:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M3 3V.5c0-.27.22-.5.5-.5h10c.28 0 .5.23.5.5v10a.5.5 0 0 1-.5.5H11v2.5a.5.5 0 0 1-.5.5H.5a.5.5 0 0 1-.5-.5v-10c0-.27.22-.5.5-.5H3Zm1 0V1h9v9h-2V3.5a.5.5 0 0 0-.5-.5H4Zm6 8v2H1V4h2v6.5c0 .28.22.5.5.5H10Zm0-1H4V4h6v6Z\"})),mirror:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M1 1.5c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11ZM2 12h10V2L2 12Z\"})),grow:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M1.5 1a.5.5 0 1 0 0 1H12v10.5a.5.5 0 0 0 1 0V2a1 1 0 0 0-1-1H1.5Z\"}),React5__default.createElement(\"path\",{d:\"M1 3.5c0-.27.22-.5.5-.5H10a1 1 0 0 1 1 1v8.5a.5.5 0 0 1-1 0V4H1.5a.5.5 0 0 1-.5-.5Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M1.5 5a.5.5 0 0 0-.5.5v7c0 .28.22.5.5.5h7a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.5-.5h-7ZM2 6v6h6V6H2Z\"})),paintbrush:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M11.8535.1464a.5.5 0 0 0-.7071 0L2.9827 8.3102a2.2396 2.2396 0 0 0-1.0737.599C.6772 10.141.2402 11.903.0852 12.9978 0 13.5998 0 14.0002 0 14.0002s.4004 0 1.0023-.0853c1.095-.155 2.8569-.5919 4.0887-1.8237.307-.307.5067-.6806.5992-1.0743l8.1633-8.1633a.5.5 0 0 0 0-.7071l-2-2Zm-6.253 9.546L6.543 8.75l-1.293-1.2929-.9424.9424a2.242 2.242 0 0 1 .7835.5097c.23.2302.4.4977.5095.7831ZM7.25 8.0428 12.7929 2.5 11.5 1.2071 5.957 6.75 7.25 8.0429ZM4.3839 9.6163c.4881.4882.4881 1.2796 0 1.7678-.7665.7664-1.832 1.1845-2.7791 1.403a8.6972 8.6972 0 0 1-.49.0982 8.7151 8.7151 0 0 1 .0982-.4899c.2186-.9471.6367-2.0126 1.403-2.779.4882-.4882 1.2797-.4882 1.7679 0Z\"})),ruler:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M1.5 1c.28 0 .5.23.5.5V2h10v-.5a.5.5 0 0 1 1 0v2a.5.5 0 0 1-1 0V3H2v.5a.5.5 0 0 1-1 0v-2c0-.27.22-.5.5-.5Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M1.5 6a.5.5 0 0 0-.5.5v6c0 .28.22.5.5.5h11a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5h-11ZM2 7v5h10V7h-1v2.5a.5.5 0 0 1-1 0V7h-.75v1a.5.5 0 0 1-1 0V7H7.5v2.5a.5.5 0 0 1-1 0V7h-.75v1a.5.5 0 0 1-1 0V7H4v2.5a.5.5 0 0 1-1 0V7H2Z\"})),stop:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M4.5 4a.5.5 0 0 0-.5.5v5c0 .28.22.5.5.5h5a.5.5 0 0 0 .5-.5v-5a.5.5 0 0 0-.5-.5h-5Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M14 7A7 7 0 1 1 0 7a7 7 0 0 1 14 0Zm-1 0A6 6 0 1 1 1 7a6 6 0 0 1 12 0Z\"})),camera:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M10 7a3 3 0 1 1-6 0 3 3 0 0 1 6 0ZM9 7a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M2.5 1a.5.5 0 0 0-.5.5V2H.5a.5.5 0 0 0-.5.5v9c0 .28.22.5.5.5h13a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5H6v-.5a.5.5 0 0 0-.5-.5h-3ZM1 3v8h12V3H1Z\"})),video:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M2.5 10a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M0 4c0-1.1.9-2 2-2h6a2 2 0 0 1 2 2v.5l3.19-2.4a.5.5 0 0 1 .81.4v9a.5.5 0 0 1-.8.4L10 9.5v.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4Zm9 0v1.5a.5.5 0 0 0 .8.4L13 3.5v7L9.8 8.1a.5.5 0 0 0-.8.4V10a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1Z\"})),speaker:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M1 4.50004V9.50004C1 9.77618 1.22386 10 1.5 10H4L7.17075 12.7744C7.49404 13.0573 8 12.8277 8 12.3982V1.60192C8 1.17235 7.49404 0.942757 7.17075 1.22564L4 4.00004H1.5C1.22386 4.00004 1 4.2239 1 4.50004ZM4 9.00004V5.00004H2V9.00004H4ZM4.99804 9.54456C4.99934 9.52989 5 9.51505 5 9.50004V4.50004C5 4.48504 4.99934 4.47019 4.99804 4.45552L7 2.70381V11.2963L4.99804 9.54456Z\"}),React5__default.createElement(\"path\",{d:\"M10.1498 1.75202C9.88637 1.66927 9.60572 1.81577 9.52297 2.07922C9.44023 2.34267 9.58672 2.62332 9.85017 2.70607C11.6763 3.27963 13 4.98596 13 7.00014C13 9.01433 11.6763 10.7207 9.85017 11.2942C9.58672 11.377 9.44023 11.6576 9.52297 11.9211C9.60572 12.1845 9.88637 12.331 10.1498 12.2483C12.3808 11.5476 14 9.4636 14 7.00014C14 4.53669 12.3808 2.45272 10.1498 1.75202Z\"}),React5__default.createElement(\"path\",{d:\"M10.2504 3.96861C10.0113 3.83033 9.70547 3.91201 9.5672 4.15105C9.42893 4.39008 9.51061 4.69594 9.74964 4.83421C10.4982 5.26723 11 6.07534 11 7.00006C11 7.92479 10.4982 8.7329 9.74964 9.16591C9.51061 9.30418 9.42893 9.61005 9.5672 9.84908C9.70547 10.0881 10.0113 10.1698 10.2504 10.0315C11.2952 9.42711 12 8.29619 12 7.00006C12 5.70394 11.2952 4.57302 10.2504 3.96861Z\"})),play:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"m12.81 7.43-9.05 5.6A.5.5 0 0 1 3 12.6V1.4c0-.4.43-.63.76-.43l9.05 5.6a.5.5 0 0 1 0 .86Z\"})),playback:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M11.24 12.04 3.7 7.42a.5.5 0 0 1-.2-.23v4.05a.75.75 0 0 1-1.5 0v-8.5a.75.75 0 0 1 1.5 0V6.8a.5.5 0 0 1 .2-.23l7.54-4.6a.5.5 0 0 1 .76.42v9.22a.5.5 0 0 1-.76.43Z\"})),playnext:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"m2.76 12.04 7.54-4.61a.5.5 0 0 0 .2-.23v4.05a.75.75 0 0 0 1.5 0v-8.5a.75.75 0 0 0-1.5 0V6.8a.5.5 0 0 0-.2-.23l-7.54-4.6a.5.5 0 0 0-.76.42v9.22c0 .39.43.63.76.43Z\"})),rewind:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M9 2.42v2.32L13.23 2a.5.5 0 0 1 .77.42v9.16a.5.5 0 0 1-.77.42L9 9.26v2.32a.5.5 0 0 1-.77.42L1.5 7.65v3.6a.75.75 0 0 1-1.5 0v-8.5a.75.75 0 0 1 1.5 0v3.6L8.23 2a.5.5 0 0 1 .77.42Z\"})),fastforward:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M5 2.42v2.32L.77 2a.5.5 0 0 0-.77.42v9.16c0 .4.44.64.77.42L5 9.26v2.32c0 .4.44.64.77.42l6.73-4.35v3.6a.75.75 0 0 0 1.5 0v-8.5a.75.75 0 0 0-1.5 0v3.6L5.77 2a.5.5 0 0 0-.77.42Z\"})),stopalt:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M1 1.5c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11Z\"})),sidebyside:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M1 1.5c0-.27.22-.5.5-.5h11c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11ZM2 12V2h5v10H2Z\"})),stacked:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M12.5 1c.28 0 .5.23.5.5v11a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11c0-.27.22-.5.5-.5h11ZM2 2h10v5H2V2Z\"})),sun:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M7.5.5a.5.5 0 0 0-1 0V2a.5.5 0 0 0 1 0V.5Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M7 10a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z\"}),React5__default.createElement(\"path\",{d:\"M7 11.5c.28 0 .5.22.5.5v1.5a.5.5 0 0 1-1 0V12c0-.28.22-.5.5-.5ZM11.5 7c0-.28.22-.5.5-.5h1.5a.5.5 0 0 1 0 1H12a.5.5 0 0 1-.5-.5ZM.5 6.5a.5.5 0 0 0 0 1H2a.5.5 0 0 0 0-1H.5ZM3.82 10.18c.2.2.2.51 0 .7l-1.06 1.07a.5.5 0 1 1-.71-.7l1.06-1.07c.2-.2.51-.2.7 0ZM11.95 2.76a.5.5 0 1 0-.7-.71l-1.07 1.06a.5.5 0 1 0 .7.7l1.07-1.05ZM10.18 10.18c.2-.2.51-.2.7 0l1.07 1.06a.5.5 0 1 1-.7.71l-1.07-1.06a.5.5 0 0 1 0-.7ZM2.76 2.05a.5.5 0 1 0-.71.7l1.06 1.07a.5.5 0 0 0 .7-.7L2.77 2.04Z\"})),moon:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M7.78.04a7.03 7.03 0 0 0-4.28.9 7 7 0 1 0 9.87 8.96c.1-.21-.14-.41-.36-.32a4.98 4.98 0 0 1-2 .42A5 5 0 0 1 8.53.65c.2-.12.19-.44-.04-.49a7.04 7.04 0 0 0-.72-.12Zm-1.27.98a6 6 0 0 0 4.98 9.96 6 6 0 1 1-4.98-9.96Z\"})),book:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M13 2a2 2 0 0 0-2-2H1.5a.5.5 0 0 0-.5.5v13c0 .28.22.5.5.5H11a2 2 0 0 0 2-2V2ZM3 13h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H7v6a.5.5 0 0 1-.86.36L5.5 6.7l-.65.65A.5.5 0 0 1 4 7V1H3v12ZM5 1v4.8l.15-.15a.5.5 0 0 1 .74.04l.11.1V1H5Z\"})),document:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M4 5.5c0-.28.22-.5.5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5ZM4.5 7.5a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1h-5ZM4 10.5c0-.28.22-.5.5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M1.5 0a.5.5 0 0 0-.5.5v13c0 .28.22.5.5.5h11a.5.5 0 0 0 .5-.5V3.2a.5.5 0 0 0-.15-.35l-2.7-2.7A.5.5 0 0 0 9.79 0H1.5ZM2 1h7.5v2c0 .28.22.5.5.5h2V13H2V1Z\"})),copy:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M11.75.07A.5.5 0 0 0 11.5 0h-6a.5.5 0 0 0-.5.5V3H.5a.5.5 0 0 0-.5.5v10c0 .28.22.5.5.5h8a.5.5 0 0 0 .5-.5V11h4.5a.5.5 0 0 0 .5-.5V2.51a.5.5 0 0 0-.15-.36l-2-2a.5.5 0 0 0-.1-.08ZM9 10h4V3h-1.5a.5.5 0 0 1-.5-.5V1H6v2h.5a.5.5 0 0 1 .36.15l1.99 2c.1.09.15.21.15.35v4.51ZM1 4v9h7V6H6.5a.5.5 0 0 1-.5-.5V4H1Z\"})),category:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M3 1.5c0-.28.22-.5.5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5Zm-1 2c0-.27.22-.5.5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M1 5.5c0-.28.22-.5.5-.5h11c.28 0 .5.22.5.5v7a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-7ZM2 12V6h10v6H2Z\"})),folder:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M6.59 3.5 5.09 2H1v9h12V3.5H6.59Zm.41-1L5.8 1.3a1 1 0 0 0-.71-.3H.5a.5.5 0 0 0-.5.5v10c0 .28.22.5.5.5h13a.5.5 0 0 0 .5-.5V3a.5.5 0 0 0-.5-.5H7Z\"})),print:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M4.5 8a.5.5 0 1 0 0 1h5a.5.5 0 0 0 0-1h-5Zm0 2a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1h-5Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M2 1.5c0-.27.22-.5.5-.5h8a.5.5 0 0 1 .36.15l.99 1c.1.09.15.21.15.35v1.51h1.5c.28 0 .5.22.5.5v5a.5.5 0 0 1-.5.5H12v2.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V10H.5a.5.5 0 0 1-.5-.5v-5c0-.28.22-.5.5-.5H2V1.5ZM13 9h-1V6.5a.5.5 0 0 0-.5-.5h-9a.5.5 0 0 0-.5.5V9H1V5h12v4Zm-2-6v1H3V2h7v.5c0 .28.22.5.5.5h.5Zm-8 9h8V7H3v5Z\"})),graphline:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M5.15 6.15c.2-.2.5-.2.7 0L7 7.3l2.15-2.15c.2-.2.5-.2.7 0l1 1a.5.5 0 0 1-.7.7l-.65-.64-2.15 2.15a.5.5 0 0 1-.7 0L5.5 7.2 3.85 8.86a.5.5 0 1 1-.7-.71l2-2Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M1.5 1a.5.5 0 0 0-.5.5v11c0 .28.22.5.5.5h11a.5.5 0 0 0 .5-.5v-11a.5.5 0 0 0-.5-.5h-11ZM2 2v10h10V2H2Z\"})),calendar:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M3.5 0c.28 0 .5.22.5.5V1h6V.5a.5.5 0 0 1 1 0V1h1.5c.28 0 .5.22.5.5v11a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11c0-.28.22-.5.5-.5H3V.5c0-.28.22-.5.5-.5ZM2 4v2.3h3V4H2Zm0 5.2V6.8h3v2.4H2Zm0 .5V12h3V9.7H2Zm3.5 0V12h3V9.7h-3Zm3.5 0V12h3V9.7H9Zm3-.5H9V6.8h3v2.4Zm-3.5 0h-3V6.8h3v2.4ZM9 4v2.3h3V4H9ZM5.5 6.3h3V4h-3v2.3Z\"})),graphbar:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M12 2.5a.5.5 0 0 0-1 0v10a.5.5 0 0 0 1 0v-10Zm-3 2a.5.5 0 0 0-1 0v8a.5.5 0 0 0 1 0v-8ZM5.5 7c.28 0 .5.22.5.5v5a.5.5 0 0 1-1 0v-5c0-.28.22-.5.5-.5ZM3 10.5a.5.5 0 0 0-1 0v2a.5.5 0 0 0 1 0v-2Z\"})),menu:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M13 2a.5.5 0 0 1 0 1H1a.5.5 0 0 1 0-1h12Zm-3 3a.5.5 0 0 1 0 1H1a.5.5 0 0 1 0-1h9Zm1.5 3.5A.5.5 0 0 0 11 8H1a.5.5 0 0 0 0 1h10a.5.5 0 0 0 .5-.5Zm-4 2.5a.5.5 0 0 1 0 1H1a.5.5 0 0 1 0-1h6.5Z\"})),menualt:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M1 2a.5.5 0 0 0 0 1h12a.5.5 0 0 0 0-1H1Zm3 3a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1H4ZM2.5 8.5c0-.28.22-.5.5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5Zm4 2.5a.5.5 0 0 0 0 1H13a.5.5 0 0 0 0-1H6.5Z\"})),filter:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M1 2a.5.5 0 0 0 0 1h12a.5.5 0 0 0 0-1H1Zm2 3a.5.5 0 0 0 0 1h8a.5.5 0 0 0 0-1H3Zm1.5 3.5c0-.28.22-.5.5-.5h4a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5Zm2 2.5a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1h-1Z\"})),docchart:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M1 1.5C1 1.22386 1.22386 1 1.5 1H12.5C12.7761 1 13 1.22386 13 1.5V12.5C13 12.7761 12.7761 13 12.5 13H1.5C1.22386 13 1 12.7761 1 12.5V1.5ZM2 4V6.2998H5V4H2ZM2 9.2002V6.7998H5V9.2002H2ZM2 9.7002V12H5V9.7002H2ZM5.5 9.7002V12H8.5V9.7002H5.5ZM9 9.7002V12H12V9.7002H9ZM12 9.2002H9V6.7998H12V9.2002ZM8.5 9.2002H5.5V6.7998H8.5V9.2002ZM9 6.2998H12V4H9V6.2998ZM5.5 6.2998H8.5V4H5.5V6.2998Z\"})),doclist:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M3.5 6.5c0-.28.22-.5.5-.5h6a.5.5 0 0 1 0 1H4a.5.5 0 0 1-.5-.5ZM4 9a.5.5 0 0 0 0 1h6a.5.5 0 0 0 0-1H4Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M1 1.5c0-.28.22-.5.5-.5h11c.28 0 .5.22.5.5v11a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11ZM2 4v8h10V4H2Z\"})),markup:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M8.98 1.63a.5.5 0 0 0-.96-.26l-3 11a.5.5 0 1 0 .96.26l3-11ZM3.32 3.62a.5.5 0 0 1 .06.7L1.15 7l2.23 2.68a.5.5 0 1 1-.76.64l-2.5-3a.5.5 0 0 1 0-.64l2.5-3a.5.5 0 0 1 .7-.06Zm7.36 0a.5.5 0 0 0-.06.7L12.85 7l-2.23 2.68a.5.5 0 0 0 .76.64l2.5-3a.5.5 0 0 0 0-.64l-2.5-3a.5.5 0 0 0-.7-.06Z\"})),bold:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M3 2v1.5h1v7H3V12h5a3 3 0 0 0 1.8-5.4A2.74 2.74 0 0 0 8 2H3Zm5 5.5H5.5v3H8a1.5 1.5 0 1 0 0-3Zm-.25-4H5.5V6h2.25a1.25 1.25 0 1 0 0-2.5Z\"})),italic:React5__default.createElement(\"path\",{d:\"M5 2h6v1H8.5l-2 8H9v1H3v-1h2.5l2-8H5V2Z\"}),paperclip:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M10.55 2.27a1.5 1.5 0 0 0-2.12 0L2.78 7.92a2.5 2.5 0 0 0 3.53 3.54l3.54-3.54a.5.5 0 1 1 .7.71l-3.53 3.54a3.5 3.5 0 0 1-4.96-4.94v-.01l5.66-5.66h.01a2.5 2.5 0 0 1 3.53 3.53L5.6 10.76a1.5 1.5 0 0 1-2.12-2.12L7.02 5.1a.5.5 0 1 1 .7.7L4.2 9.34a.5.5 0 0 0 .7.7l5.66-5.65a1.5 1.5 0 0 0 0-2.12Z\"})),listordered:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M5 2.5c0-.28.22-.5.5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5ZM5 7c0-.28.22-.5.5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 5 7Zm.5 4a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-7Zm-3-9H1v1h1v3h1V2.5a.5.5 0 0 0-.5-.5ZM3 8.5v1a.5.5 0 0 1-1 0V9h-.5a.5.5 0 0 1 0-1h1c.28 0 .5.22.5.5Zm-1 2a.5.5 0 0 0-1 0V12h2v-1H2v-.5Z\"})),listunordered:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M2.75 2.5a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM5.5 2a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-7Zm0 9a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-7ZM2 12.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM5 7c0-.28.22-.5.5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 5 7Zm-3 .75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z\"})),paragraph:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M6 7a3 3 0 1 1 0-6h5.5a.5.5 0 0 1 0 1H10v10.5a.5.5 0 0 1-1 0V2H7v10.5a.5.5 0 0 1-1 0V7Z\"})),markdown:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M2 4.5h1.5L5 6.38 6.5 4.5H8v5H6.5V7L5 8.88 3.5 7v2.5H2v-5Zm7.75 0h1.5V7h1.25l-2 2.5-2-2.5h1.25V4.5Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M.5 2a.5.5 0 0 0-.5.5v9c0 .28.22.5.5.5h13a.5.5 0 0 0 .5-.5v-9a.5.5 0 0 0-.5-.5H.5ZM1 3v8h12V3H1Z\"})),repository:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M5 2.5C5 2.77614 4.77614 3 4.5 3C4.22386 3 4 2.77614 4 2.5C4 2.22386 4.22386 2 4.5 2C4.77614 2 5 2.22386 5 2.5Z\"}),React5__default.createElement(\"path\",{d:\"M4.5 5C4.77614 5 5 4.77614 5 4.5C5 4.22386 4.77614 4 4.5 4C4.22386 4 4 4.22386 4 4.5C4 4.77614 4.22386 5 4.5 5Z\"}),React5__default.createElement(\"path\",{d:\"M5 6.5C5 6.77614 4.77614 7 4.5 7C4.22386 7 4 6.77614 4 6.5C4 6.22386 4.22386 6 4.5 6C4.77614 6 5 6.22386 5 6.5Z\"}),React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M11 0C12.1046 0 13 0.895431 13 2V12C13 13.1046 12.1046 14 11 14H1.5C1.22386 14 1 13.7761 1 13.5V0.5C1 0.223857 1.22386 0 1.5 0H11ZM11 1H3V13H11C11.5523 13 12 12.5523 12 12V2C12 1.44772 11.5523 1 11 1Z\"})),commit:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M3.03 7.5a4 4 0 0 0 7.94 0h2.53a.5.5 0 0 0 0-1h-2.53a4 4 0 0 0-7.94 0H.5a.5.5 0 0 0 0 1h2.53ZM7 10a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z\"})),branch:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M6 2.5c0 .65-.42 1.2-1 1.41v4.06A3.36 3.36 0 0 1 7.5 7a2.7 2.7 0 0 0 1.81-.56c.22-.18.38-.4.48-.62a1.5 1.5 0 1 1 1.03.15c-.16.42-.43.87-.86 1.24-.57.47-1.37.79-2.46.79-1.04 0-1.64.42-2 .92-.26.37-.4.8-.47 1.18A1.5 1.5 0 1 1 4 10.09V3.9a1.5 1.5 0 1 1 2-1.4Zm-2 9a.5.5 0 1 1 1 0 .5.5 0 0 1-1 0Zm1-9a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Zm6 2a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z\"})),pullrequest:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M8.35 1.35 7.71 2h.79A2.5 2.5 0 0 1 11 4.5v5.59a1.5 1.5 0 1 1-1 0V4.5C10 3.67 9.33 3 8.5 3h-.8l.65.65a.5.5 0 1 1-.7.7l-1.5-1.5a.5.5 0 0 1 0-.7l1.5-1.5a.5.5 0 1 1 .7.7ZM11 11.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0ZM4 3.91a1.5 1.5 0 1 0-1 0v6.18a1.5 1.5 0 1 0 1 0V3.9ZM3.5 11a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1Zm0-8a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z\"})),merge:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M4.1 3.87a1.5 1.5 0 1 0-1.1.04v6.18a1.5 1.5 0 1 0 1 0V6.4c.26.4.57.77.93 1.08A6.57 6.57 0 0 0 9.08 9a1.5 1.5 0 1 0 0-1 5.57 5.57 0 0 1-3.5-1.25 4.74 4.74 0 0 1-1.47-2.87ZM3.5 11a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1ZM4 2.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Zm7 6a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z\"})),apple:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M11.03 8.1a3.05 3.05 0 0 1-.2-1.74 2.7 2.7 0 0 1 1.4-1.94 3.13 3.13 0 0 0-2.35-1.4c-.84-.08-2.01.56-2.65.57h-.02c-.63 0-1.81-.65-2.64-.57-.42.04-1.75.32-2.55 1.6-.28.44-.5 1.01-.58 1.74a6.36 6.36 0 0 0 .02 1.74 7.5 7.5 0 0 0 1.35 3.33c.7 1.01 1.51 1.6 1.97 1.6.93.02 1.74-.6 2.41-.6l.02.01h.04c.67-.02 1.48.61 2.42.6.45-.02 1.26-.6 1.97-1.6a7.95 7.95 0 0 0 .97-1.86 2.6 2.6 0 0 1-1.58-1.48ZM8.86 2.13c.72-.85.7-2.07.63-2.12-.07-.06-1.25.16-1.99.98a2.78 2.78 0 0 0-.62 2.13c.06.05 1.27-.14 1.98-.99Z\"})),linux:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M7 0a3 3 0 0 1 3 3v1.24c.13.13.25.27.36.42l.52.43.2.15c.32.26.7.59 1.09.97A6.28 6.28 0 0 1 14 9.54a.5.5 0 0 1-.35.44c-.31.1-.8.18-1.34.13-.33-.03-.7-.12-1.05-.3-.04.17-.1.34-.17.51a2 2 0 1 1-2.89 2.56 5.5 5.5 0 0 1-2.4 0 2 2 0 1 1-2.9-2.56 5.56 5.56 0 0 1-.16-.51c-.35.18-.72.27-1.05.3a3.4 3.4 0 0 1-1.34-.13.5.5 0 0 1-.35-.44l.01-.14a6.28 6.28 0 0 1 1.82-3.2 13.42 13.42 0 0 1 1.3-1.11c.22-.19.4-.32.5-.43.12-.15.24-.29.37-.42V3a3 3 0 0 1 3-3Zm1 11.9a2 2 0 0 1 2.14-1.9 5.5 5.5 0 0 0 .36-2c0-.51-.1-1.07-.3-1.6l-.03-.02a4.4 4.4 0 0 0-.86-.42 6.71 6.71 0 0 0-1-.31l-.86.64c-.27.2-.63.2-.9 0l-.85-.64a6.72 6.72 0 0 0-1.87.73l-.03.02A4.6 4.6 0 0 0 3.5 8c0 .68.11 1.39.36 2H4a2 2 0 0 1 2 1.9 4.49 4.49 0 0 0 2 0ZM5 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM6.1 4.3a1.5 1.5 0 0 1 1.8 0l.27.2L7 5.38 5.83 4.5l.27-.2ZM8.5 2c.28 0 .5.22.5.5V3a.5.5 0 0 1-1 0v-.5c0-.28.22-.5.5-.5ZM6 2.5a.5.5 0 0 0-1 0V3a.5.5 0 0 0 1 0v-.5Z\"})),ubuntu:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M12.26 2.07c0 1.14-.89 2.06-1.99 2.06s-1.99-.92-1.99-2.06c0-1.14.9-2.07 2-2.07s1.98.93 1.98 2.07ZM3.98 6.6c0 1.14-.9 2.07-2 2.07C.9 8.67 0 7.74 0 6.6c0-1.14.9-2.07 1.99-2.07 1.1 0 1.99.93 1.99 2.07ZM6.47 11.92a4.76 4.76 0 0 1-3.3-2.62c-.53.25-1.12.33-1.7.22a6.72 6.72 0 0 0 1.84 2.63 6.38 6.38 0 0 0 4.24 1.58c-.37-.5-.57-1.1-.59-1.73a4.77 4.77 0 0 1-.49-.08ZM11.81 11.93c0 1.14-.89 2.07-1.99 2.07s-1.98-.93-1.98-2.07c0-1.14.89-2.06 1.98-2.06 1.1 0 2 .92 2 2.06ZM12.6 11.17a6.93 6.93 0 0 0 .32-7.93A2.95 2.95 0 0 1 11.8 4.6a5.23 5.23 0 0 1-.16 5.03c.47.4.8.94.95 1.54ZM1.99 3.63h-.15A6.48 6.48 0 0 1 8 .24a3.07 3.07 0 0 0-.6 1.68 4.7 4.7 0 0 0-3.9 2.17c-.46-.3-.98-.45-1.51-.45Z\"})),windows:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M6.5 1H1v5.5h5.5V1ZM13 1H7.5v5.5H13V1ZM7.5 7.5H13V13H7.5V7.5ZM6.5 7.5H1V13h5.5V7.5Z\"})),storybook:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M2.04.62a.7.7 0 0 0-.66.72l.44 11.56c.01.37.3.66.67.68l9.4.42h.02a.7.7 0 0 0 .7-.7V.66a.7.7 0 0 0-.74-.66l-.77.05.05 1.62a.1.1 0 0 1-.17.08l-.52-.4-.61.46a.1.1 0 0 1-.17-.09L9.75.13l-7.7.49Zm8 4.74c-.24.2-2.09.33-2.09.05.04-1.04-.43-1.09-.69-1.09-.24 0-.66.08-.66.64 0 .57.6.89 1.32 1.27 1.02.53 2.24 1.18 2.24 2.82 0 1.57-1.27 2.43-2.9 2.43-1.67 0-3.14-.68-2.97-3.03.06-.27 2.2-.2 2.2 0-.03.97.19 1.26.75 1.26.43 0 .62-.24.62-.64 0-.6-.63-.95-1.36-1.36-.99-.56-2.15-1.2-2.15-2.7 0-1.5 1.03-2.5 2.86-2.5 1.83 0 2.84.99 2.84 2.85Z\"})),azuredevops:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"m0 5.18 1.31-1.73 4.9-2V.01l4.3 3.15-8.78 1.7v4.8L0 9.16V5.18Zm14-2.6v8.55l-3.36 2.86-5.42-1.79V14L1.73 9.66l8.78 1.05V3.16L14 2.58Z\"})),bitbucket:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M1 1.52A.41.41 0 0 0 .59 2l1.74 10.6c.05.26.28.46.55.46h8.37c.2 0 .38-.14.42-.34l1.01-6.25H8.81l-.46 2.71H5.68L4.95 5.4h7.91L13.4 2a.41.41 0 0 0-.41-.48H1Z\"})),chrome:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M13.02 3.43a.11.11 0 0 1-.1.17H7a3.4 3.4 0 0 0-3.3 2.55.11.11 0 0 1-.21.03L1.52 2.76a.11.11 0 0 1 0-.12 6.97 6.97 0 0 1 9-1.7c1.03.6 1.9 1.47 2.5 2.5ZM7 9.62a2.62 2.62 0 1 1 0-5.24 2.62 2.62 0 0 1 0 5.24Zm1.03.7a.11.11 0 0 0-.12-.04 3.4 3.4 0 0 1-4-1.84L1.1 3.57a.11.11 0 0 0-.2 0 7 7 0 0 0 5.07 10.35c.04 0 .08-.02.1-.05l1.97-3.42a.11.11 0 0 0 0-.13Zm1.43-5.95h3.95c.05 0 .1.03.1.07a6.97 6.97 0 0 1-1.53 7.48A6.96 6.96 0 0 1 7.08 14a.11.11 0 0 1-.1-.17l2.81-4.88h.01a3.38 3.38 0 0 0-.42-4.38.11.11 0 0 1 .08-.2Z\"})),chromatic:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M0 7a7 7 0 1 0 14 0A7 7 0 0 0 0 7Zm5.22-3.87a1.97 1.97 0 0 1 3.75.83v1.29L5.61 3.32a2.49 2.49 0 0 0-.4-.19ZM8.7 5.71 5.35 3.78a1.97 1.97 0 0 0-2.6 2.83c.12-.1.24-.18.37-.26l1.51-.87a.27.27 0 0 1 .27 0L7 6.69l1.7-.98Zm-.32 4.97-1.52-.87a.27.27 0 0 1-.13-.23V7.15l-1.7-.97v3.86a1.97 1.97 0 0 0 3.75.83 2.5 2.5 0 0 1-.4-.19Zm.26-.46a1.97 1.97 0 0 0 2.6-2.83c-.11.1-.23.18-.36.26L7.53 9.58l1.11.64Zm-4.1.26h-.17a1.97 1.97 0 0 1-1.9-2.47 2 2 0 0 1 .92-1.2l1.11-.63v3.86c0 .14.01.29.04.44Zm6.79-5.98a1.97 1.97 0 0 0-1.87-.97c.03.14.04.29.04.43v1.75c0 .1-.05.19-.14.23l-2.1 1.22V9.1l3.35-1.93a1.97 1.97 0 0 0 .72-2.68Z\"})),componentdriven:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M10.85 2.18 8.87.2a.69.69 0 0 0-.97 0L3.09 5.01a.69.69 0 0 0 0 .97l2.46 2.46-2.4 2.4a.69.69 0 0 0 0 .98l1.98 1.98c.27.27.7.27.97 0l4.8-4.81a.69.69 0 0 0 0-.97L8.45 5.56l2.4-2.4a.69.69 0 0 0 0-.98Z\"})),discord:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M11.85 2.88C10.95 2.48 10 2.18 9 2a7.05 7.05 0 0 0-.4.75 10.66 10.66 0 0 0-3.2 0c-.1-.23-.24-.5-.36-.73A.04.04 0 0 0 4.99 2a11.51 11.51 0 0 0-2.86.9 11.82 11.82 0 0 0-2.05 8 11.6 11.6 0 0 0 3.5 1.77c.01 0 .03 0 .04-.02.27-.36.51-.75.72-1.16a.04.04 0 0 0-.03-.06 7.66 7.66 0 0 1-1.09-.52.04.04 0 0 1 0-.08 5.96 5.96 0 0 0 .26-.17 8.28 8.28 0 0 0 7.08 0l.22.17c.02.02.02.06 0 .08-.36.2-.72.37-1.1.52a.04.04 0 0 0-.02.06c.2.4.45.8.71 1.16.01.02.03.02.05.02a11.57 11.57 0 0 0 3.52-1.8 11.74 11.74 0 0 0-2.09-7.99Zm-7.17 6.4c-.7 0-1.26-.63-1.26-1.41 0-.78.56-1.41 1.26-1.41s1.27.64 1.26 1.4c0 .79-.56 1.42-1.26 1.42Zm4.65 0c-.69 0-1.26-.63-1.26-1.41 0-.78.56-1.41 1.26-1.41s1.27.64 1.26 1.4c0 .79-.55 1.42-1.26 1.42Z\"})),facebook:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M7.4 14H5.06V7H3.5V4.59h1.56V3.17C5.06 1.2 5.53 0 7.6 0h1.72v2.41H8.25c-.8 0-.85.34-.85.97v1.2h1.93L9.11 7H7.4l-.01 7Z\"})),figma:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{fillRule:\"evenodd\",d:\"M9.2 0H4.8a2.6 2.6 0 0 0-1.4 4.8 2.6 2.6 0 0 0 0 4.4 2.6 2.6 0 1 0 4 2.2V8.89a2.6 2.6 0 1 0 3.2-4.09A2.6 2.6 0 0 0 9.2 0ZM7.4 7A1.8 1.8 0 1 0 11 7a1.8 1.8 0 0 0-3.6 0Zm-.8 2.6H4.8a1.8 1.8 0 1 0 1.8 1.8V9.6ZM4.8 4.4h1.8V.8H4.8a1.8 1.8 0 0 0 0 3.59Zm0 .8a1.8 1.8 0 0 0 0 3.6h1.8V5.2H4.8Zm4.4-.8H7.4V.8h1.8a1.8 1.8 0 1 1 0 3.59Z\"})),gdrive:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M6.37 8.77 4.33 12.3h6.75l2.04-3.54H6.38Zm6.18-1-3.5-6.08h-4.1l3.51 6.08h4.09ZM4.38 2.7.88 8.77l2.04 3.54 3.5-6.07L4.38 2.7Z\"})),github:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M7 0a7 7 0 0 0-2.21 13.64c.35.06.48-.15.48-.33L5.26 12c-1.76.32-2.21-.43-2.35-.83-.08-.2-.43-.82-.72-.99-.25-.13-.6-.45-.01-.46.55 0 .94.5 1.07.72.63 1.06 1.64.76 2.04.58.07-.46.25-.77.45-.94-1.56-.18-3.19-.78-3.19-3.46 0-.76.28-1.39.72-1.88-.07-.17-.31-.9.07-1.85 0 0 .59-.19 1.93.71a6.5 6.5 0 0 1 3.5 0c1.34-.9 1.92-.71 1.92-.71.39.96.14 1.68.07 1.85.45.5.72 1.11.72 1.88 0 2.69-1.64 3.28-3.2 3.46.26.22.48.64.48 1.3l-.01 1.92c0 .18.13.4.48.33A7.01 7.01 0 0 0 7 0Z\"})),gitlab:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M4.53 5.58H1.07l1.49-4.55a.26.26 0 0 1 .48 0l1.49 4.55ZM7 13.15 1.07 5.58l-.75 2.3a.5.5 0 0 0 .18.57l6.5 4.7Zm0 0 6.5-4.7a.5.5 0 0 0 .18-.57l-.75-2.3L7 13.15l2.47-7.57H4.53L7 13.15Zm2.47-7.57h3.46l-1.49-4.55a.26.26 0 0 0-.48 0L9.47 5.58Z\"})),google:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M10.92 1.1H7.26c-1.64 0-3.19 1.24-3.19 2.68 0 1.47 1.12 2.66 2.8 2.66l.33-.01c-.1.2-.18.44-.18.68 0 .41.22.75.5 1.02h-.64c-2.03 0-3.6 1.3-3.6 2.64 0 1.32 1.72 2.15 3.75 2.15 2.32 0 3.6-1.31 3.6-2.64 0-1.06-.31-1.7-1.28-2.38-.33-.23-.96-.8-.96-1.14 0-.39.1-.58.7-1.04a2.46 2.46 0 0 0 1.03-1.92c0-.92-.4-1.82-1.18-2.11h1.17l.81-.6ZM9.6 10.04c.03.13.05.25.05.38 0 1.07-.7 1.9-2.67 1.9-1.4 0-2.42-.88-2.42-1.95 0-1.05 1.26-1.92 2.66-1.9a3 3 0 0 1 .92.14c.76.53 1.3.83 1.46 1.43ZM7.34 6.07c-.94-.03-1.84-1.06-2-2.3-.17-1.24.47-2.19 1.41-2.16.94.03 1.84 1.03 2 2.26.17 1.24-.47 2.23-1.41 2.2Z\"})),graphql:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M7.87 11.6a1.17 1.17 0 0 0-1.7-.02l-2.71-1.56.01-.04h7.07l.02.07-2.69 1.56Zm-1.7-9.18.03.03-3.54 6.12h-.04V5.43a1.17 1.17 0 0 0 .84-1.46l2.7-1.56Zm4.38 1.56a1.17 1.17 0 0 0 .84 1.46v3.12l-.04.01-3.54-6.12c.02 0 .03-.02.04-.03l2.7 1.56ZM3.47 9.42a1.17 1.17 0 0 0-.32-.57l3.53-6.12a1.17 1.17 0 0 0 .65 0l3.54 6.12a1.17 1.17 0 0 0-.33.57H3.47Zm8.8-.74c-.1-.05-.21-.1-.32-.12V5.44a1.17 1.17 0 1 0-1.12-1.94l-2.7-1.56a1.17 1.17 0 1 0-2.24 0L3.19 3.5a1.17 1.17 0 1 0-1.13 1.94v3.12a1.17 1.17 0 1 0 1.12 1.94l2.7 1.56a1.17 1.17 0 1 0 2.24-.03l2.69-1.55a1.17 1.17 0 1 0 1.45-1.8Z\"})),medium:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M0 0v14h14V0H0Zm11.63 3.32-.75.72a.22.22 0 0 0-.08.2v5.33c0 .07.03.14.08.18l.73.72v.16H7.92v-.16l.76-.74c.08-.07.08-.1.08-.21V5.24l-2.11 5.37h-.29L3.9 5.24v3.67c0 .13.05.25.14.34l.99 1.2v.16h-2.8v-.16l.98-1.2a.48.48 0 0 0 .13-.41V4.65c0-.11-.04-.2-.12-.27l-.88-1.06v-.16h2.73l2.1 4.62 1.86-4.62h2.6v.16Z\"})),redux:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M4.06 9.69c.02.49.42.88.91.88H5a.91.91 0 0 0-.03-1.83h-.03c-.03 0-.08 0-.11.02a5.97 5.97 0 0 1-.85-3.62c.06-.98.39-1.82.96-2.52.47-.6 1.39-.9 2-.92 1.73-.03 2.47 2.12 2.51 2.99.22.04.57.16.82.24-.2-2.64-1.83-4-3.4-4-1.46 0-2.81 1.05-3.35 2.61a6.67 6.67 0 0 0 .65 5.68.74.74 0 0 0-.11.47Zm8.28-2.3a6.62 6.62 0 0 0-5.15-2.25h-.26a.9.9 0 0 0-.8-.49H6.1a.91.91 0 0 0 .03 1.83h.03a.92.92 0 0 0 .8-.56h.3c1.23 0 2.4.36 3.47 1.06.81.54 1.4 1.24 1.72 2.09.28.68.26 1.35-.03 1.92a2.4 2.4 0 0 1-2.23 1.34c-.65 0-1.27-.2-1.6-.34-.18.16-.5.42-.73.58.7.33 1.41.5 2.1.5 1.56 0 2.72-.85 3.16-1.72.47-.94.44-2.57-.78-3.96ZM4.9 12.9a4 4 0 0 1-.98.11c-1.2 0-2.3-.5-2.84-1.32C.38 10.6.13 8.3 2.5 6.58c.05.26.15.62.22.83-.31.23-.8.68-1.11 1.3a2.4 2.4 0 0 0 .13 2.53c.36.54.93.86 1.66.96.9.11 1.8-.05 2.66-.5a5.83 5.83 0 0 0 2.67-2.56.91.91 0 0 1 .62-1.55h.03a.92.92 0 0 1 .1 1.82 6.26 6.26 0 0 1-4.56 3.49Z\"})),twitter:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M14 2.55c-.51.23-1.07.39-1.65.46.6-.36 1.05-.94 1.26-1.63-.55.34-1.17.58-1.82.72a2.84 2.84 0 0 0-2.1-.93 2.9 2.9 0 0 0-2.8 3.61 8.09 8.09 0 0 1-5.9-3.07 2.99 2.99 0 0 0 .88 3.93 2.8 2.8 0 0 1-1.3-.37v.04c0 1.42 1 2.61 2.3 2.89a2.82 2.82 0 0 1-1.3.05 2.89 2.89 0 0 0 2.7 2.04A5.67 5.67 0 0 1 0 11.51a7.98 7.98 0 0 0 4.4 1.32c5.29 0 8.17-4.48 8.17-8.38v-.38A5.93 5.93 0 0 0 14 2.55Z\"})),youtube:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M13.99 8.17V5.83a14.95 14.95 0 0 0-.23-2.22c-.09-.38-.27-.7-.55-.96s-.6-.41-.97-.45A51.3 51.3 0 0 0 7 2c-2.34 0-4.09.07-5.24.2A1.78 1.78 0 0 0 .25 3.61 15.26 15.26 0 0 0 0 7v1.16a15.24 15.24 0 0 0 .24 2.22c.09.38.27.7.55.96.27.26.6.41.97.45 1.15.13 2.9.2 5.24.2 2.34 0 4.08-.06 5.24-.2.37-.04.7-.19.97-.45s.45-.58.54-.96a15.26 15.26 0 0 0 .24-2.22Zm-4.23-1.6c.16.1.24.24.24.43 0 .2-.08.33-.24.42l-4 2.5a.44.44 0 0 1-.26.08.54.54 0 0 1-.24-.06A.46.46 0 0 1 5 9.5v-5c0-.2.08-.34.26-.44.17-.1.34-.09.5.02l4 2.5Z\"})),vscode:React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(\"path\",{d:\"M10.24.04c.13 0 .26.03.38.09L13.5 1.5a.87.87 0 0 1 .5.8v.03-.01 9.39c0 .33-.2.63-.5.78l-2.88 1.38a.87.87 0 0 1-1-.17l-5.5-5.03-2.4 1.83a.58.58 0 0 1-.75-.04l-.77-.7a.58.58 0 0 1 0-.86L2.27 7 .2 5.1a.58.58 0 0 1 0-.86l.77-.7c.21-.2.52-.2.75-.04l2.4 1.83L9.63.3a.87.87 0 0 1 .61-.26Zm.26 3.78L6.32 7l4.18 3.18V3.82Z\"}))};var Svg=styled.svg`\n display: inline-block;\n shape-rendering: inherit;\n vertical-align: middle;\n fill: currentColor;\n\n path {\n fill: currentColor;\n }\n`,Icons=({icon,useSymbol,...props})=>React5__default.createElement(Svg,{viewBox:\"0 0 14 14\",width:\"14px\",height:\"14px\",...props},useSymbol?React5__default.createElement(\"use\",{xlinkHref:`#icon--${icon}`}):icons[icon]),Symbols=memo(function({icons:keys=Object.keys(icons)}){return React5__default.createElement(Svg,{viewBox:\"0 0 14 14\",style:{position:\"absolute\",width:0,height:0},\"data-chromatic\":\"ignore\"},keys.map(key=>React5__default.createElement(\"symbol\",{id:`icon--${key}`,key},icons[key])))});var LEFT_BUTTON=0,isPlainLeftClick=e=>e.button===LEFT_BUTTON&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,cancelled=(e,cb)=>{isPlainLeftClick(e)&&(e.preventDefault(),cb(e));},LinkInner=styled.span(({withArrow})=>withArrow?{\"> svg:last-of-type\":{height:\"0.7em\",width:\"0.7em\",marginRight:0,marginLeft:\"0.25em\",bottom:\"auto\",verticalAlign:\"inherit\"}}:{},({containsIcon})=>containsIcon?{svg:{height:\"1em\",width:\"1em\",verticalAlign:\"middle\",position:\"relative\",bottom:0,marginRight:0}}:{}),A2=styled.a(({theme})=>({display:\"inline-block\",transition:\"all 150ms ease-out\",textDecoration:\"none\",color:theme.color.secondary,\"&:hover, &:focus\":{cursor:\"pointer\",color:curriedDarken$1(.07,theme.color.secondary),\"svg path:not([fill])\":{fill:curriedDarken$1(.07,theme.color.secondary)}},\"&:active\":{color:curriedDarken$1(.1,theme.color.secondary),\"svg path:not([fill])\":{fill:curriedDarken$1(.1,theme.color.secondary)}},svg:{display:\"inline-block\",height:\"1em\",width:\"1em\",verticalAlign:\"text-top\",position:\"relative\",bottom:\"-0.125em\",marginRight:\"0.4em\",\"& path\":{fill:theme.color.secondary}}}),({theme,secondary,tertiary})=>{let colors;return secondary&&(colors=[theme.textMutedColor,theme.color.dark,theme.color.darker]),tertiary&&(colors=[theme.color.dark,theme.color.darkest,theme.textMutedColor]),colors?{color:colors[0],\"svg path:not([fill])\":{fill:colors[0]},\"&:hover\":{color:colors[1],\"svg path:not([fill])\":{fill:colors[1]}},\"&:active\":{color:colors[2],\"svg path:not([fill])\":{fill:colors[2]}}}:{}},({nochrome})=>nochrome?{color:\"inherit\",\"&:hover, &:active\":{color:\"inherit\",textDecoration:\"underline\"}}:{},({theme,inverse})=>inverse?{color:theme.color.lightest,\":not([fill])\":{fill:theme.color.lightest},\"&:hover\":{color:theme.color.lighter,\"svg path:not([fill])\":{fill:theme.color.lighter}},\"&:active\":{color:theme.color.light,\"svg path:not([fill])\":{fill:theme.color.light}}}:{},({isButton})=>isButton?{border:0,borderRadius:0,background:\"none\",padding:0,fontSize:\"inherit\"}:{}),Link2=({cancel,children,onClick,withArrow,containsIcon,className,...rest})=>React5__default.createElement(A2,{...rest,onClick:onClick&&cancel?e=>cancelled(e,onClick):onClick,className},React5__default.createElement(LinkInner,{withArrow,containsIcon},children,withArrow&&React5__default.createElement(Icons,{icon:\"arrowright\"})));Link2.defaultProps={cancel:!0,className:void 0,style:void 0,onClick:void 0,withArrow:!1,containsIcon:!1};var DocumentWrapper=styled.div(({theme})=>({fontSize:`${theme.typography.size.s2}px`,lineHeight:\"1.6\",h1:{fontSize:`${theme.typography.size.l1}px`,fontWeight:theme.typography.weight.bold},h2:{fontSize:`${theme.typography.size.m2}px`,borderBottom:`1px solid ${theme.appBorderColor}`},h3:{fontSize:`${theme.typography.size.m1}px`},h4:{fontSize:`${theme.typography.size.s3}px`},h5:{fontSize:`${theme.typography.size.s2}px`},h6:{fontSize:`${theme.typography.size.s2}px`,color:theme.color.dark},\"pre:not(.prismjs)\":{background:\"transparent\",border:\"none\",borderRadius:0,padding:0,margin:0},\"pre pre, pre.prismjs\":{padding:15,margin:0,whiteSpace:\"pre-wrap\",color:\"inherit\",fontSize:\"13px\",lineHeight:\"19px\"},\"pre pre code, pre.prismjs code\":{color:\"inherit\",fontSize:\"inherit\"},\"pre code\":{margin:0,padding:0,whiteSpace:\"pre\",border:\"none\",background:\"transparent\"},\"pre code, pre tt\":{backgroundColor:\"transparent\",border:\"none\"},\"body > *:first-of-type\":{marginTop:\"0 !important\"},\"body > *:last-child\":{marginBottom:\"0 !important\"},a:{color:theme.color.secondary,textDecoration:\"none\"},\"a.absent\":{color:\"#cc0000\"},\"a.anchor\":{display:\"block\",paddingLeft:30,marginLeft:-30,cursor:\"pointer\",position:\"absolute\",top:0,left:0,bottom:0},\"h1, h2, h3, h4, h5, h6\":{margin:\"20px 0 10px\",padding:0,cursor:\"text\",position:\"relative\",\"&:first-of-type\":{marginTop:0,paddingTop:0},\"&:hover a.anchor\":{textDecoration:\"none\"},\"& tt, & code\":{fontSize:\"inherit\"}},\"h1:first-of-type + h2\":{marginTop:0,paddingTop:0},\"p, blockquote, ul, ol, dl, li, table, pre\":{margin:\"15px 0\"},hr:{border:\"0 none\",borderTop:`1px solid ${theme.appBorderColor}`,height:4,padding:0},\"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type\":{marginTop:0,paddingTop:0},\"body > h1:first-of-type + h2\":{marginTop:0,paddingTop:0},\"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6\":{marginTop:0,paddingTop:0},\"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p\":{marginTop:0},\"li p.first\":{display:\"inline-block\"},\"ul, ol\":{paddingLeft:30,\"& :first-of-type\":{marginTop:0},\"& :last-child\":{marginBottom:0}},dl:{padding:0},\"dl dt\":{fontSize:\"14px\",fontWeight:\"bold\",fontStyle:\"italic\",margin:\"0 0 15px\",padding:\"0 15px\",\"&:first-of-type\":{padding:0},\"& > :first-of-type\":{marginTop:0},\"& > :last-child\":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${theme.color.medium}`,padding:\"0 15px\",color:theme.color.dark,\"& > :first-of-type\":{marginTop:0},\"& > :last-child\":{marginBottom:0}},table:{padding:0,borderCollapse:\"collapse\",\"& tr\":{borderTop:`1px solid ${theme.appBorderColor}`,backgroundColor:\"white\",margin:0,padding:0,\"& th\":{fontWeight:\"bold\",border:`1px solid ${theme.appBorderColor}`,textAlign:\"left\",margin:0,padding:\"6px 13px\"},\"& td\":{border:`1px solid ${theme.appBorderColor}`,textAlign:\"left\",margin:0,padding:\"6px 13px\"},\"&:nth-of-type(2n)\":{backgroundColor:theme.color.lighter},\"& th :first-of-type, & td :first-of-type\":{marginTop:0},\"& th :last-child, & td :last-child\":{marginBottom:0}}},img:{maxWidth:\"100%\"},\"span.frame\":{display:\"block\",overflow:\"hidden\",\"& > span\":{border:`1px solid ${theme.color.medium}`,display:\"block\",float:\"left\",overflow:\"hidden\",margin:\"13px 0 0\",padding:7,width:\"auto\"},\"& span img\":{display:\"block\",float:\"left\"},\"& span span\":{clear:\"both\",color:theme.color.darkest,display:\"block\",padding:\"5px 0 0\"}},\"span.align-center\":{display:\"block\",overflow:\"hidden\",clear:\"both\",\"& > span\":{display:\"block\",overflow:\"hidden\",margin:\"13px auto 0\",textAlign:\"center\"},\"& span img\":{margin:\"0 auto\",textAlign:\"center\"}},\"span.align-right\":{display:\"block\",overflow:\"hidden\",clear:\"both\",\"& > span\":{display:\"block\",overflow:\"hidden\",margin:\"13px 0 0\",textAlign:\"right\"},\"& span img\":{margin:0,textAlign:\"right\"}},\"span.float-left\":{display:\"block\",marginRight:13,overflow:\"hidden\",float:\"left\",\"& span\":{margin:\"13px 0 0\"}},\"span.float-right\":{display:\"block\",marginLeft:13,overflow:\"hidden\",float:\"right\",\"& > span\":{display:\"block\",overflow:\"hidden\",margin:\"13px auto 0\",textAlign:\"right\"}},\"code, tt\":{margin:\"0 2px\",padding:\"0 5px\",whiteSpace:\"nowrap\",border:`1px solid ${theme.color.mediumlight}`,backgroundColor:theme.color.lighter,borderRadius:3,color:theme.base===\"dark\"&&theme.color.darkest}}));var languages=[],Comp=null,LazySyntaxHighlighter=lazy(async()=>{let{SyntaxHighlighter:SyntaxHighlighter3}=await import('./syntaxhighlighter-V7JZZA35.mjs');return languages.length>0&&(languages.forEach(args=>{SyntaxHighlighter3.registerLanguage(...args);}),languages=[]),Comp===null&&(Comp=SyntaxHighlighter3),{default:props=>React5__default.createElement(SyntaxHighlighter3,{...props})}}),LazySyntaxHighlighterWithFormatter=lazy(async()=>{let[{SyntaxHighlighter:SyntaxHighlighter3},{formatter}]=await Promise.all([import('./syntaxhighlighter-V7JZZA35.mjs'),import('./formatter-SWP5E3XI.mjs')]);return languages.length>0&&(languages.forEach(args=>{SyntaxHighlighter3.registerLanguage(...args);}),languages=[]),Comp===null&&(Comp=SyntaxHighlighter3),{default:props=>React5__default.createElement(SyntaxHighlighter3,{...props,formatter})}}),SyntaxHighlighter2=props=>React5__default.createElement(Suspense,{fallback:React5__default.createElement(\"div\",null)},props.format!==!1?React5__default.createElement(LazySyntaxHighlighterWithFormatter,{...props}):React5__default.createElement(LazySyntaxHighlighter,{...props}));SyntaxHighlighter2.registerLanguage=(...args)=>{if(Comp!==null){Comp.registerLanguage(...args);return}languages.push(args);};var toNumber=input=>typeof input==\"number\"?input:Number(input),Container=styled.div(({theme,col,row=1})=>col?{display:\"inline-block\",verticalAlign:\"inherit\",\"& > *\":{marginLeft:col*theme.layoutMargin,verticalAlign:\"inherit\"},[`& > *:first-child${ignoreSsrWarning}`]:{marginLeft:0}}:{\"& > *\":{marginTop:row*theme.layoutMargin},[`& > *:first-child${ignoreSsrWarning}`]:{marginTop:0}},({theme,outer,col,row})=>{switch(!0){case!!(outer&&col):return {marginLeft:outer*theme.layoutMargin,marginRight:outer*theme.layoutMargin};case!!(outer&&row):return {marginTop:outer*theme.layoutMargin,marginBottom:outer*theme.layoutMargin};default:return {}}}),Spaced=({col,row,outer,children,...rest})=>{let outerAmount=toNumber(typeof outer==\"number\"||!outer?outer:col||row);return React5__default.createElement(Container,{col,row,outer:outerAmount,...rest},children)};var Title=styled.div(({theme})=>({fontWeight:theme.typography.weight.bold})),Desc=styled.div(),Message=styled.div(({theme})=>({padding:30,textAlign:\"center\",color:theme.color.defaultText,fontSize:theme.typography.size.s2-1})),Placeholder=({children,...props})=>{let[title,desc]=Children.toArray(children);return React5__default.createElement(Message,{...props},React5__default.createElement(Title,null,title),desc&&React5__default.createElement(Desc,null,desc))};var ZoomElementWrapper=styled.div(({scale=1,elementHeight})=>({height:elementHeight||\"auto\",transformOrigin:\"top left\",transform:`scale(${1/scale})`}));function ZoomElement({scale,children}){let componentWrapperRef=useRef(null),[elementHeight,setElementHeight]=useState(0),onResize=useCallback(({height})=>{height&&setElementHeight(height/scale);},[scale]);return useEffect(()=>{componentWrapperRef.current&&setElementHeight(componentWrapperRef.current.getBoundingClientRect().height);},[scale]),useResizeObserver({ref:componentWrapperRef,onResize}),React5__default.createElement(ZoomElementWrapper,{scale,elementHeight},React5__default.createElement(\"div\",{ref:componentWrapperRef,className:\"innerZoomElementWrapper\"},children))}var ZoomIFrame=class extends Component{constructor(){super(...arguments);this.iframe=null;}componentDidMount(){let{iFrameRef}=this.props;this.iframe=iFrameRef.current;}shouldComponentUpdate(nextProps){let{scale,active}=this.props;return scale!==nextProps.scale&&this.setIframeInnerZoom(nextProps.scale),active!==nextProps.active&&this.iframe.setAttribute(\"data-is-storybook\",nextProps.active?\"true\":\"false\"),nextProps.children.props.src!==this.props.children.props.src}setIframeInnerZoom(scale){try{Object.assign(this.iframe.contentDocument.body.style,{width:`${scale*100}%`,height:`${scale*100}%`,transform:`scale(${1/scale})`,transformOrigin:\"top left\"});}catch{this.setIframeZoom(scale);}}setIframeZoom(scale){Object.assign(this.iframe.style,{width:`${scale*100}%`,height:`${scale*100}%`,transform:`scale(${1/scale})`,transformOrigin:\"top left\"});}render(){let{children}=this.props;return React5__default.createElement(React5__default.Fragment,null,children)}};var Zoom={Element:ZoomElement,IFrame:ZoomIFrame};var {document:document2}=global,ErrorName=styled.strong(({theme})=>({color:theme.color.orange})),ErrorImportant=styled.strong(({theme})=>({color:theme.color.ancillary,textDecoration:\"underline\"})),ErrorDetail=styled.em(({theme})=>({color:theme.textMutedColor})),firstLineRegex=/(Error): (.*)\\n/,linesRegexChromium=/at (?:(.*) )?\\(?(.+)\\)?/,linesRegexFirefox=/([^@]+)?(?:\\/<)?@(.+)?/,linesRegexSafari=/([^@]+)?@(.+)?/,ErrorFormatter=({error})=>{if(!error)return React5__default.createElement(Fragment,null,\"This error has no stack or message\");if(!error.stack)return React5__default.createElement(Fragment,null,error.message||\"This error has no stack or message\");let input=error.stack.toString();input&&error.message&&!input.includes(error.message)&&(input=`Error: ${error.message}\n\n${input}`);let match=input.match(firstLineRegex);if(!match)return React5__default.createElement(Fragment,null,input);let[,type,name]=match,rawLines=input.split(/\\n/).slice(1),[,...lines]=rawLines.map(line=>{let result=line.match(linesRegexChromium)||line.match(linesRegexFirefox)||line.match(linesRegexSafari);return result?{name:(result[1]||\"\").replace(\"/<\",\"\"),location:result[2].replace(document2.location.origin,\"\")}:null}).filter(Boolean);return React5__default.createElement(Fragment,null,React5__default.createElement(\"span\",null,type),\": \",React5__default.createElement(ErrorName,null,name),React5__default.createElement(\"br\",null),lines.map((l,i)=>l.name?React5__default.createElement(Fragment,{key:i},\" \",\"at \",React5__default.createElement(ErrorImportant,null,l.name),\" (\",React5__default.createElement(ErrorDetail,null,l.location),\")\",React5__default.createElement(\"br\",null)):React5__default.createElement(Fragment,{key:i},\" \",\"at \",React5__default.createElement(ErrorDetail,null,l.location),React5__default.createElement(\"br\",null))))};var ButtonWrapper=styled.button(({small,theme})=>({border:0,borderRadius:\"3em\",cursor:\"pointer\",display:\"inline-block\",overflow:\"hidden\",padding:small?\"8px 16px\":\"13px 20px\",position:\"relative\",textAlign:\"center\",textDecoration:\"none\",transitionProperty:\"background, box-shadow\",transitionDuration:\"150ms\",transitionTimingFunction:\"ease-out\",verticalAlign:\"top\",whiteSpace:\"nowrap\",userSelect:\"none\",opacity:1,margin:0,background:\"transparent\",fontSize:`${small?theme.typography.size.s1:theme.typography.size.s2-1}px`,fontWeight:theme.typography.weight.bold,lineHeight:\"1\",svg:{display:\"inline-block\",height:small?12:14,width:small?12:14,verticalAlign:\"top\",marginRight:small?4:6,marginTop:small?0:-1,marginBottom:small?0:-1,pointerEvents:\"none\",path:{fill:\"currentColor\"}}}),({disabled})=>disabled?{cursor:\"not-allowed !important\",opacity:.5,\"&:hover\":{transform:\"none\"}}:{},({containsIcon,small})=>containsIcon?{svg:{display:\"block\",margin:0},...small?{padding:10}:{padding:13}}:{},({theme,primary,secondary,gray})=>{let color2;return gray?color2=theme.color.mediumlight:secondary?color2=theme.color.secondary:primary&&(color2=theme.color.primary),color2?{background:color2,color:gray?theme.color.darkest:theme.color.lightest,\"&:hover\":{background:curriedDarken$1(.05,color2)},\"&:active\":{boxShadow:\"rgba(0, 0, 0, 0.1) 0 0 0 3em inset\"},\"&:focus\":{boxShadow:`${rgba(color2,1)} 0 1px 9px 2px`,outline:\"none\"},\"&:focus:hover\":{boxShadow:`${rgba(color2,.2)} 0 8px 18px 0px`}}:{}},({theme,tertiary,inForm,small})=>tertiary?{background:theme.button.background,color:theme.input.color,boxShadow:`${theme.button.border} 0 0 0 1px inset`,borderRadius:theme.input.borderRadius,...inForm&&small?{padding:\"10px 16px\"}:{},\"&:hover\":{background:theme.base===\"light\"?curriedDarken$1(.02,theme.button.background):curriedLighten$1(.03,theme.button.background),...inForm?{}:{boxShadow:\"rgba(0,0,0,.2) 0 2px 6px 0, rgba(0,0,0,.1) 0 0 0 1px inset\"}},\"&:active\":{background:theme.button.background},\"&:focus\":{boxShadow:`${rgba(theme.color.secondary,1)} 0 0 0 1px inset`,outline:\"none\"}}:{},({theme,outline})=>outline?{boxShadow:`${curriedTransparentize$1(.8,theme.color.defaultText)} 0 0 0 1px inset`,color:curriedTransparentize$1(.3,theme.color.defaultText),background:\"transparent\",\"&:hover, &:focus\":{boxShadow:`${curriedTransparentize$1(.5,theme.color.defaultText)} 0 0 0 1px inset`,outline:\"none\"},\"&:active\":{boxShadow:`${curriedTransparentize$1(.5,theme.color.defaultText)} 0 0 0 2px inset`,color:curriedTransparentize$1(0,theme.color.defaultText)}}:{},({theme,outline,primary})=>{let color2=theme.color.primary;return outline&&primary?{boxShadow:`${color2} 0 0 0 1px inset`,color:color2,\"svg path:not([fill])\":{fill:color2},\"&:hover\":{boxShadow:`${color2} 0 0 0 1px inset`,background:\"transparent\"},\"&:active\":{background:color2,boxShadow:`${color2} 0 0 0 1px inset`,color:theme.color.tertiary},\"&:focus\":{boxShadow:`${color2} 0 0 0 1px inset, ${rgba(color2,.4)} 0 1px 9px 2px`,outline:\"none\"},\"&:focus:hover\":{boxShadow:`${color2} 0 0 0 1px inset, ${rgba(color2,.2)} 0 8px 18px 0px`}}:{}},({theme,outline,primary,secondary})=>{let color2;return secondary?color2=theme.color.secondary:primary&&(color2=theme.color.primary),outline&&color2?{boxShadow:`${color2} 0 0 0 1px inset`,color:color2,\"svg path:not([fill])\":{fill:color2},\"&:hover\":{boxShadow:`${color2} 0 0 0 1px inset`,background:\"transparent\"},\"&:active\":{background:color2,boxShadow:`${color2} 0 0 0 1px inset`,color:theme.color.tertiary},\"&:focus\":{boxShadow:`${color2} 0 0 0 1px inset, ${rgba(color2,.4)} 0 1px 9px 2px`,outline:\"none\"},\"&:focus:hover\":{boxShadow:`${color2} 0 0 0 1px inset, ${rgba(color2,.2)} 0 8px 18px 0px`}}:{}}),ButtonLink=ButtonWrapper.withComponent(\"a\"),Button=Object.assign(forwardRef(function({isLink,children,...props},ref){return isLink?React5__default.createElement(ButtonLink,{...props,ref},children):React5__default.createElement(ButtonWrapper,{...props,ref},children)}),{defaultProps:{isLink:!1}});var Wrapper=styled.label(({theme})=>({display:\"flex\",borderBottom:`1px solid ${theme.appBorderColor}`,margin:\"0 15px\",padding:\"8px 0\",\"&:last-child\":{marginBottom:\"3rem\"}})),Label=styled.span(({theme})=>({minWidth:100,fontWeight:theme.typography.weight.bold,marginRight:15,display:\"flex\",justifyContent:\"flex-start\",alignItems:\"center\",lineHeight:\"16px\"})),Field=({label,children,...props})=>React5__default.createElement(Wrapper,{...props},label?React5__default.createElement(Label,null,React5__default.createElement(\"span\",null,label)):null,children);Field.defaultProps={label:void 0};function _extends2(){return _extends2=Object.assign?Object.assign.bind():function(target){for(var i=1;i=0)&&(target[key]=source[key]);return target}var updateRef=function(ref,value){if(typeof ref==\"function\"){ref(value);return}ref.current=value;},useComposedRef=function(libRef,userRef){var prevUserRef=useRef();return useCallback(function(instance){libRef.current=instance,prevUserRef.current&&updateRef(prevUserRef.current,null),prevUserRef.current=userRef,userRef&&updateRef(userRef,instance);},[userRef])},use_composed_ref_esm_default=useComposedRef;var noop=function(){},_excluded=[\"cacheMeasurements\",\"maxRows\",\"minRows\",\"onChange\",\"onHeightChange\"],TextareaAutosize=function(_ref,userRef){_ref.cacheMeasurements,_ref.maxRows,_ref.minRows;var _ref$onChange=_ref.onChange,onChange=_ref$onChange===void 0?noop:_ref$onChange;_ref.onHeightChange;var props=_objectWithoutPropertiesLoose(_ref,_excluded);props.value;var libRef=React5.useRef(null),ref=use_composed_ref_esm_default(libRef,userRef);return React5.useRef(0),React5.useRef(),React5.createElement(\"textarea\",_extends2({},props,{onChange,ref}))},index=React5.forwardRef(TextareaAutosize);var styleResets={appearance:\"none\",border:\"0 none\",boxSizing:\"inherit\",display:\" block\",margin:\" 0\",background:\"transparent\",padding:0,fontSize:\"inherit\",position:\"relative\"},styles=({theme})=>({...styleResets,transition:\"box-shadow 200ms ease-out, opacity 200ms ease-out\",color:theme.input.color||\"inherit\",background:theme.input.background,boxShadow:`${theme.input.border} 0 0 0 1px inset`,borderRadius:theme.input.borderRadius,fontSize:theme.typography.size.s2-1,lineHeight:\"20px\",padding:\"6px 10px\",boxSizing:\"border-box\",height:32,'&[type=\"file\"]':{height:\"auto\"},\"&:focus\":{boxShadow:`${theme.color.secondary} 0 0 0 1px inset`,outline:\"none\"},\"&[disabled]\":{cursor:\"not-allowed\",opacity:.5},\"&:-webkit-autofill\":{WebkitBoxShadow:`0 0 0 3em ${theme.color.lightest} inset`},\"&::placeholder\":{color:theme.textMutedColor,opacity:1}}),sizes=({size})=>{switch(size){case\"100%\":return {width:\"100%\"};case\"flex\":return {flex:1};case\"auto\":default:return {display:\"inline\"}}},alignment=({align})=>{switch(align){case\"end\":return {textAlign:\"right\"};case\"center\":return {textAlign:\"center\"};case\"start\":default:return {textAlign:\"left\"}}},validation=({valid,theme})=>{switch(valid){case\"valid\":return {boxShadow:`${theme.color.positive} 0 0 0 1px inset !important`};case\"error\":return {boxShadow:`${theme.color.negative} 0 0 0 1px inset !important`};case\"warn\":return {boxShadow:`${theme.color.warning} 0 0 0 1px inset`};case void 0:case null:default:return {}}},Input=Object.assign(styled(forwardRef(function({size,valid,align,...props},ref){return React5__default.createElement(\"input\",{...props,ref})}))(styles,sizes,alignment,validation,{minHeight:32}),{displayName:\"Input\"}),Select=Object.assign(styled(forwardRef(function({size,valid,align,...props},ref){return React5__default.createElement(\"select\",{...props,ref})}))(styles,sizes,validation,{height:32,userSelect:\"none\",paddingRight:20,appearance:\"menulist\"}),{displayName:\"Select\"}),Textarea=Object.assign(styled(forwardRef(function({size,valid,align,...props},ref){return React5__default.createElement(index,{...props,ref})}))(styles,sizes,alignment,validation,({height=400})=>({overflow:\"visible\",maxHeight:height})),{displayName:\"Textarea\"}),ButtonStyled=styled(forwardRef(function({size,valid,align,...props},ref){return React5__default.createElement(Button,{...props,ref})}))(sizes,validation,{userSelect:\"none\",overflow:\"visible\",zIndex:2,\"&:hover\":{transform:\"none\"}}),Button3=Object.assign(forwardRef(function(props,ref){return React5__default.createElement(ButtonStyled,{...props,tertiary:!0,small:!0,inForm:!0,ref})}),{displayName:\"Button\"});var Form=Object.assign(styled.form({boxSizing:\"border-box\",width:\"100%\"}),{Field,Input,Select,Textarea,Button:Button3});var LazyWithTooltip=lazy(()=>import('./WithTooltip-V3YHNWJZ.mjs').then(mod=>({default:mod.WithTooltip}))),WithTooltip=props=>React5__default.createElement(Suspense,{fallback:React5__default.createElement(\"div\",null)},React5__default.createElement(LazyWithTooltip,{...props})),LazyWithTooltipPure=lazy(()=>import('./WithTooltip-V3YHNWJZ.mjs').then(mod=>({default:mod.WithTooltipPure}))),WithTooltipPure=props=>React5__default.createElement(Suspense,{fallback:React5__default.createElement(\"div\",null)},React5__default.createElement(LazyWithTooltipPure,{...props}));var Title2=styled.div(({theme})=>({fontWeight:theme.typography.weight.bold})),Desc2=styled.span(),Links=styled.div(({theme})=>({marginTop:8,textAlign:\"center\",\"> *\":{margin:\"0 8px\",fontWeight:theme.typography.weight.bold}})),Message2=styled.div(({theme})=>({color:theme.color.defaultText,lineHeight:\"18px\"})),MessageWrapper=styled.div({padding:15,width:280,boxSizing:\"border-box\"}),TooltipMessage=({title,desc,links})=>React5__default.createElement(MessageWrapper,null,React5__default.createElement(Message2,null,title&&React5__default.createElement(Title2,null,title),desc&&React5__default.createElement(Desc2,null,desc)),links&&React5__default.createElement(Links,null,links.map(({title:linkTitle,...other})=>React5__default.createElement(Link2,{...other,key:linkTitle},linkTitle))));TooltipMessage.defaultProps={title:null,desc:null,links:null};var Note=styled.div(({theme})=>({padding:\"2px 6px\",lineHeight:\"16px\",fontSize:10,fontWeight:theme.typography.weight.bold,color:theme.color.lightest,boxShadow:\"0 0 5px 0 rgba(0, 0, 0, 0.3)\",borderRadius:4,whiteSpace:\"nowrap\",pointerEvents:\"none\",zIndex:-1,background:theme.base===\"light\"?\"rgba(60, 60, 60, 0.9)\":\"rgba(0, 0, 0, 0.95)\",margin:6})),TooltipNote=({note,...props})=>React5__default.createElement(Note,{...props},note);var Title3=styled(({active,loading,disabled,...rest})=>React5__default.createElement(\"span\",{...rest}))(({theme})=>({color:theme.color.defaultText,fontWeight:theme.typography.weight.regular}),({active,theme})=>active?{color:theme.color.secondary,fontWeight:theme.typography.weight.bold}:{},({loading,theme})=>loading?{display:\"inline-block\",flex:\"none\",...theme.animation.inlineGlow}:{},({disabled,theme})=>disabled?{color:curriedTransparentize$1(.7,theme.color.defaultText)}:{}),Right=styled.span({display:\"flex\",\"& svg\":{height:12,width:12,margin:\"3px 0\",verticalAlign:\"top\"},\"& path\":{fill:\"inherit\"}}),Center=styled.span({flex:1,textAlign:\"left\",display:\"flex\",flexDirection:\"column\"},({isIndented})=>isIndented?{marginLeft:24}:{}),CenterText=styled.span(({theme})=>({fontSize:\"11px\",lineHeight:\"14px\"}),({active,theme})=>active?{color:theme.color.secondary}:{},({theme,disabled})=>disabled?{color:theme.textMutedColor}:{}),Left=styled.span(({active,theme})=>active?{\"& svg\":{opacity:1},\"& svg path:not([fill])\":{fill:theme.color.secondary}}:{},()=>({display:\"flex\",maxWidth:14})),Item=styled.a(({theme})=>({fontSize:theme.typography.size.s1,transition:\"all 150ms ease-out\",color:theme.color.dark,textDecoration:\"none\",cursor:\"pointer\",justifyContent:\"space-between\",lineHeight:\"18px\",padding:\"7px 10px\",display:\"flex\",alignItems:\"center\",\"& > * + *\":{paddingLeft:10},\"&:hover\":{background:theme.background.hoverable},\"&:hover svg\":{opacity:1}}),({disabled})=>disabled?{cursor:\"not-allowed\"}:{}),getItemProps=memoize(100)((onClick,href,LinkWrapper)=>{let result={};return onClick&&Object.assign(result,{onClick}),href&&Object.assign(result,{href}),LinkWrapper&&href&&Object.assign(result,{to:href,as:LinkWrapper}),result}),ListItem=({loading,left,title,center,right,icon,active,disabled,isIndented,href,onClick,LinkWrapper,...rest})=>{let itemProps=getItemProps(onClick,href,LinkWrapper),commonProps={active,disabled},isStorybookIcon=typeof icon==\"string\"&&icons[icon];return React5__default.createElement(Item,{...commonProps,...rest,...itemProps},icon?React5__default.createElement(Left,{...commonProps},isStorybookIcon?React5__default.createElement(Icons,{icon}):icon):left&&React5__default.createElement(Left,{...commonProps},left),title||center?React5__default.createElement(Center,{isIndented:!left&&!icon&&isIndented},title&&React5__default.createElement(Title3,{...commonProps,loading},title),center&&React5__default.createElement(CenterText,{...commonProps},center)):null,right&&React5__default.createElement(Right,{...commonProps},right))};ListItem.defaultProps={loading:!1,left:null,title:React5__default.createElement(\"span\",null,\"Loading state\"),center:null,right:null,active:!1,disabled:!1,href:null,LinkWrapper:null,onClick:null};var ListItem_default=ListItem;var List=styled.div({minWidth:180,overflow:\"hidden\",overflowY:\"auto\",maxHeight:15.5*32},({theme})=>({borderRadius:theme.appBorderRadius})),Item2=props=>{let{LinkWrapper,onClick:onClickFromProps,id,isIndented,...rest}=props,{title,href,active}=rest,onClick=useCallback(event=>{onClickFromProps(event,rest);},[onClickFromProps]),hasOnClick=!!onClickFromProps;return React5__default.createElement(ListItem_default,{title,active,href,id:`list-item-${id}`,LinkWrapper,isIndented,...rest,...hasOnClick?{onClick}:{}})},TooltipLinkList=({links,LinkWrapper})=>{let hasOneLeftElement=links.some(link=>link.left||link.icon);return React5__default.createElement(List,null,links.map(({isGatsby,...p})=>React5__default.createElement(Item2,{key:p.id,LinkWrapper:isGatsby?LinkWrapper:null,isIndented:hasOneLeftElement,...p})))};TooltipLinkList.defaultProps={LinkWrapper:ListItem_default.defaultProps.LinkWrapper};var ButtonOrLink=React5__default.forwardRef(({children,...restProps},ref)=>restProps.href!=null?React5__default.createElement(\"a\",{ref,...restProps},children):React5__default.createElement(\"button\",{ref,type:\"button\",...restProps},children));ButtonOrLink.displayName=\"ButtonOrLink\";var TabButton=styled(ButtonOrLink,{shouldForwardProp:isPropValid})({whiteSpace:\"normal\",display:\"inline-flex\",overflow:\"hidden\",verticalAlign:\"top\",justifyContent:\"center\",alignItems:\"center\",textAlign:\"center\",textDecoration:\"none\",\"&:empty\":{display:\"none\"}},({theme})=>({padding:\"0 15px\",transition:\"color 0.2s linear, border-bottom-color 0.2s linear\",height:40,lineHeight:\"12px\",cursor:\"pointer\",background:\"transparent\",border:\"0 solid transparent\",borderTop:\"3px solid transparent\",borderBottom:\"3px solid transparent\",fontWeight:\"bold\",fontSize:13,\"&:focus\":{outline:\"0 none\",borderBottomColor:theme.color.secondary}}),({active,textColor,theme})=>active?{color:textColor||theme.barSelectedColor,borderBottomColor:theme.barSelectedColor}:{color:textColor||theme.barTextColor,borderBottomColor:\"transparent\"});TabButton.displayName=\"TabButton\";var IconButton=styled(ButtonOrLink,{shouldForwardProp:isPropValid})(()=>({alignItems:\"center\",background:\"transparent\",border:\"none\",borderRadius:4,color:\"inherit\",cursor:\"pointer\",display:\"inline-flex\",fontSize:13,fontWeight:\"bold\",height:28,justifyContent:\"center\",marginTop:6,padding:\"8px 7px\",\"& > svg\":{width:14}}),({active,theme})=>active?{backgroundColor:theme.background.hoverable,color:theme.barSelectedColor}:{},({disabled,theme})=>disabled?{opacity:.5,cursor:\"not-allowed\"}:{\"&:hover, &:focus-visible\":{background:curriedTransparentize$1(.88,theme.color.secondary),color:theme.barHoverColor},\"&:focus-visible\":{outline:auto},\"&:focus:not(:focus-visible)\":{outline:\"none\"}});IconButton.displayName=\"IconButton\";var IconPlaceholder=styled.div(({theme})=>({width:14,height:14,backgroundColor:theme.appBorderColor,animation:`${theme.animation.glow} 1.5s ease-in-out infinite`})),IconButtonSkeletonWrapper=styled.div(()=>({marginTop:6,padding:7,height:28})),IconButtonSkeleton=()=>React5__default.createElement(IconButtonSkeletonWrapper,null,React5__default.createElement(IconPlaceholder,null));var Side=styled.div({display:\"flex\",whiteSpace:\"nowrap\",flexBasis:\"auto\",marginLeft:3,marginRight:3},({scrollable})=>scrollable?{flexShrink:0}:{},({left})=>left?{\"& > *\":{marginLeft:4}}:{},({right})=>right?{marginLeft:30,\"& > *\":{marginRight:4}}:{});Side.displayName=\"Side\";var UnstyledBar=({children,className,scrollable})=>scrollable?React5__default.createElement(ScrollArea,{vertical:!1,className},children):React5__default.createElement(\"div\",{className},children),Bar=styled(UnstyledBar)(({theme,scrollable=!0})=>({color:theme.barTextColor,width:\"100%\",height:40,flexShrink:0,overflow:scrollable?\"auto\":\"hidden\",overflowY:\"hidden\"}),({theme,border=!1})=>border?{boxShadow:`${theme.appBorderColor} 0 -1px 0 0 inset`,background:theme.barBg}:{});Bar.displayName=\"Bar\";var BarInner=styled.div(({bgColor})=>({display:\"flex\",justifyContent:\"space-between\",position:\"relative\",flexWrap:\"nowrap\",flexShrink:0,height:40,backgroundColor:bgColor||\"\"})),FlexBar=({children,backgroundColor,...rest})=>{let[left,right]=Children.toArray(children);return React5__default.createElement(Bar,{...rest},React5__default.createElement(BarInner,{bgColor:backgroundColor},React5__default.createElement(Side,{scrollable:rest.scrollable,left:!0},left),right?React5__default.createElement(Side,{right:!0},right):null))};FlexBar.displayName=\"FlexBar\";var VisuallyHidden=styled.div(({active})=>active?{display:\"block\"}:{display:\"none\"}),childrenToList=children=>Children.toArray(children).map(({props:{title,id,color:color2,children:childrenOfChild}})=>{let content=Array.isArray(childrenOfChild)?childrenOfChild[0]:childrenOfChild;return {title,id,...color2?{color:color2}:{},render:typeof content==\"function\"?content:({active})=>React5__default.createElement(VisuallyHidden,{active,role:\"tabpanel\"},content)}});var CollapseIcon=styled.span(({theme,isActive})=>({display:\"inline-block\",width:0,height:0,marginLeft:8,color:isActive?theme.color.secondary:theme.color.mediumdark,borderRight:\"3px solid transparent\",borderLeft:\"3px solid transparent\",borderTop:\"3px solid\",transition:\"transform .1s ease-out\"})),AddonButton=styled(TabButton)(({active,theme,preActive})=>`\n color: ${preActive||active?theme.color.secondary:theme.color.mediumdark};\n &:hover {\n color: ${theme.color.secondary};\n .addon-collapsible-icon {\n color: ${theme.color.secondary};\n }\n }\n `);function useList(list){let tabBarRef=useRef(),addonsRef=useRef(),tabRefs=useRef(new Map),{width:tabBarWidth=1}=useResizeObserver({ref:tabBarRef}),[visibleList,setVisibleList]=useState(list),[invisibleList,setInvisibleList]=useState([]),previousList=useRef(list),AddonTab=useCallback(({menuName,actions})=>{let isAddonsActive=invisibleList.some(({active})=>active),[isTooltipVisible,setTooltipVisible]=useState(!1);return React5__default.createElement(React5__default.Fragment,null,React5__default.createElement(WithToolTipState,{interactive:!0,visible:isTooltipVisible,onVisibleChange:setTooltipVisible,placement:\"bottom\",delayHide:100,tooltip:React5__default.createElement(TooltipLinkList,{links:invisibleList.map(({title,id,color:color2,active})=>({id,title,color:color2,active,onClick:e=>{e.preventDefault(),actions.onSelect(id);}}))})},React5__default.createElement(AddonButton,{ref:addonsRef,active:isAddonsActive,preActive:isTooltipVisible,style:{visibility:invisibleList.length?\"visible\":\"hidden\"},\"aria-hidden\":!invisibleList.length,className:\"tabbutton\",type:\"button\",role:\"tab\"},menuName,React5__default.createElement(CollapseIcon,{className:\"addon-collapsible-icon\",isActive:isAddonsActive||isTooltipVisible}))),invisibleList.map(({title,id,color:color2},index2)=>{let indexId=`index-${index2}`;return React5__default.createElement(TabButton,{id:`tabbutton-${sanitize(id)??indexId}`,style:{visibility:\"hidden\"},\"aria-hidden\":!0,tabIndex:-1,ref:ref=>{tabRefs.current.set(id,ref);},className:\"tabbutton\",type:\"button\",key:id,textColor:color2,role:\"tab\"},title)}))},[invisibleList]),setTabLists=useCallback(()=>{if(!tabBarRef.current||!addonsRef.current)return;let{x,width}=tabBarRef.current.getBoundingClientRect(),{width:widthAddonsTab}=addonsRef.current.getBoundingClientRect(),rightBorder=invisibleList.length?x+width-widthAddonsTab:x+width,newVisibleList=[],widthSum=0,newInvisibleList=list.filter(item=>{let{id}=item,tabButton=tabRefs.current.get(id),{width:tabWidth=0}=tabButton?.getBoundingClientRect()||{},crossBorder=x+widthSum+tabWidth>rightBorder;return (!crossBorder||!tabButton)&&newVisibleList.push(item),widthSum+=tabWidth,crossBorder});(newVisibleList.length!==visibleList.length||previousList.current!==list)&&(setVisibleList(newVisibleList),setInvisibleList(newInvisibleList),previousList.current=list);},[invisibleList.length,list,visibleList]);return useLayoutEffect(setTabLists,[setTabLists,tabBarWidth]),{tabRefs,addonsRef,tabBarRef,visibleList,invisibleList,AddonTab}}var ignoreSsrWarning2=\"/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */\",Wrapper2=styled.div(({theme,bordered})=>bordered?{backgroundClip:\"padding-box\",border:`1px solid ${theme.appBorderColor}`,borderRadius:theme.appBorderRadius,overflow:\"hidden\",boxSizing:\"border-box\"}:{},({absolute})=>absolute?{width:\"100%\",height:\"100%\",boxSizing:\"border-box\",display:\"flex\",flexDirection:\"column\"}:{display:\"block\"}),TabBar=styled.div({overflow:\"hidden\",\"&:first-of-type\":{marginLeft:-3},whiteSpace:\"nowrap\",flexGrow:1});TabBar.displayName=\"TabBar\";var Content=styled.div({display:\"block\",position:\"relative\"},({theme})=>({fontSize:theme.typography.size.s2-1,background:theme.background.content}),({bordered,theme})=>bordered?{borderRadius:`0 0 ${theme.appBorderRadius-1}px ${theme.appBorderRadius-1}px`}:{},({absolute,bordered})=>absolute?{height:`calc(100% - ${bordered?42:40}px)`,position:\"absolute\",left:0+(bordered?1:0),right:0+(bordered?1:0),bottom:0+(bordered?1:0),top:40+(bordered?1:0),overflow:\"auto\",[`& > *:first-child${ignoreSsrWarning2}`]:{position:\"absolute\",left:0+(bordered?1:0),right:0+(bordered?1:0),bottom:0+(bordered?1:0),top:0+(bordered?1:0),height:`calc(100% - ${bordered?2:0}px)`,overflow:\"auto\"}}:{}),TabWrapper=({active,render,children})=>React5__default.createElement(VisuallyHidden,{active},render?render():children);var Tabs=memo(({children,selected,actions,absolute,bordered,tools,backgroundColor,id:htmlId,menuName})=>{let idList=childrenToList(children).map(i=>i.id),list=useMemo(()=>childrenToList(children).map((i,index2)=>({...i,active:selected?i.id===selected:index2===0})),[selected,...idList]),{visibleList,tabBarRef,tabRefs,AddonTab}=useList(list);return list.length?React5__default.createElement(Wrapper2,{absolute,bordered,id:htmlId},React5__default.createElement(FlexBar,{scrollable:!1,border:!0,backgroundColor},React5__default.createElement(TabBar,{style:{whiteSpace:\"normal\"},ref:tabBarRef,role:\"tablist\"},visibleList.map(({title,id,active,color:color2},index2)=>{let indexId=`index-${index2}`;return React5__default.createElement(TabButton,{id:`tabbutton-${sanitize(id)??indexId}`,ref:ref=>{tabRefs.current.set(id,ref);},className:`tabbutton ${active?\"tabbutton-active\":\"\"}`,type:\"button\",key:id,active,textColor:color2,onClick:e=>{e.preventDefault(),actions.onSelect(id);},role:\"tab\"},typeof title==\"function\"?React5__default.createElement(\"title\",null):title)}),React5__default.createElement(AddonTab,{menuName,actions})),tools),React5__default.createElement(Content,{id:\"panel-tab-content\",bordered,absolute},list.map(({id,active,render})=>React5__default.createElement(render,{key:id,active},null)))):React5__default.createElement(Placeholder,null,React5__default.createElement(Fragment,{key:\"title\"},\"Nothing found\"))});Tabs.displayName=\"Tabs\";Tabs.defaultProps={id:null,children:null,tools:null,selected:null,absolute:!1,bordered:!1,menuName:\"Tabs\"};var TabsState=class extends Component{constructor(props){super(props);this.handlers={onSelect:id=>this.setState({selected:id})};this.state={selected:props.initial};}render(){let{bordered=!1,absolute=!1,children,backgroundColor,menuName}=this.props,{selected}=this.state;return React5__default.createElement(Tabs,{bordered,absolute,selected,backgroundColor,menuName,actions:this.handlers},children)}};TabsState.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:\"\",menuName:void 0};var Separator=styled.span(({theme})=>({width:1,height:20,background:theme.appBorderColor,marginTop:10,marginLeft:6,marginRight:2}),({force})=>force?{}:{\"& + &\":{display:\"none\"}});Separator.displayName=\"Separator\";var interleaveSeparators=list=>list.reduce((acc,item,index2)=>item?React5__default.createElement(Fragment,{key:item.id||item.key||`f-${index2}`},acc,index2>0?React5__default.createElement(Separator,{key:`s-${index2}`}):null,item.render()||item):acc,null);var usePrevious=value=>{let ref=useRef();return useEffect(()=>{ref.current=value;},[value]),ref.current},useUpdate=(update,value)=>{let previousValue=usePrevious(value);return update?value:previousValue},AddonPanel=({active,children})=>React5__default.createElement(\"div\",{hidden:!active},useUpdate(active,children));var StorybookLogo=({alt,...props})=>React5__default.createElement(\"svg\",{width:\"200px\",height:\"40px\",viewBox:\"0 0 200 40\",...props,role:\"img\"},alt?React5__default.createElement(\"title\",null,alt):null,React5__default.createElement(\"defs\",null,React5__default.createElement(\"path\",{d:\"M1.2 36.9L0 3.9c0-1.1.8-2 1.9-2.1l28-1.8a2 2 0 0 1 2.2 1.9 2 2 0 0 1 0 .1v36a2 2 0 0 1-2 2 2 2 0 0 1-.1 0L3.2 38.8a2 2 0 0 1-2-2z\",id:\"a\"})),React5__default.createElement(\"g\",{fill:\"none\",fillRule:\"evenodd\"},React5__default.createElement(\"path\",{d:\"M53.3 31.7c-1.7 0-3.4-.3-5-.7-1.5-.5-2.8-1.1-3.9-2l1.6-3.5c2.2 1.5 4.6 2.3 7.3 2.3 1.5 0 2.5-.2 3.3-.7.7-.5 1.1-1 1.1-1.9 0-.7-.3-1.3-1-1.7s-2-.8-3.7-1.2c-2-.4-3.6-.9-4.8-1.5-1.1-.5-2-1.2-2.6-2-.5-1-.8-2-.8-3.2 0-1.4.4-2.6 1.2-3.6.7-1.1 1.8-2 3.2-2.6 1.3-.6 2.9-.9 4.7-.9 1.6 0 3.1.3 4.6.7 1.5.5 2.7 1.1 3.5 2l-1.6 3.5c-2-1.5-4.2-2.3-6.5-2.3-1.3 0-2.3.2-3 .8-.8.5-1.2 1.1-1.2 2 0 .5.2 1 .5 1.3.2.3.7.6 1.4.9l2.9.8c2.9.6 5 1.4 6.2 2.4a5 5 0 0 1 2 4.2 6 6 0 0 1-2.5 5c-1.7 1.2-4 1.9-7 1.9zm21-3.6l1.4-.1-.2 3.5-1.9.1c-2.4 0-4.1-.5-5.2-1.5-1.1-1-1.6-2.7-1.6-4.8v-6h-3v-3.6h3V11h4.8v4.6h4v3.6h-4v6c0 1.8.9 2.8 2.6 2.8zm11.1 3.5c-1.6 0-3-.3-4.3-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.3-1 1.7 0 3.2.3 4.4 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.4 1zm0-3.6c2.4 0 3.6-1.6 3.6-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.6-1c-2.3 0-3.5 1.4-3.5 4.4 0 3 1.2 4.6 3.5 4.6zm21.7-8.8l-2.7.3c-1.3.2-2.3.5-2.8 1.2-.6.6-.9 1.4-.9 2.5v8.2H96V15.7h4.6v2.6c.8-1.8 2.5-2.8 5-3h1.3l.3 4zm14-3.5h4.8L116.4 37h-4.9l3-6.6-6.4-14.8h5l4 10 4-10zm16-.4c1.4 0 2.6.3 3.6 1 1 .6 1.9 1.6 2.5 2.8.6 1.2.9 2.7.9 4.3 0 1.6-.3 3-1 4.3a6.9 6.9 0 0 1-2.4 2.9c-1 .7-2.2 1-3.6 1-1 0-2-.2-3-.7-.8-.4-1.5-1-2-1.9v2.4h-4.7V8.8h4.8v9c.5-.8 1.2-1.4 2-1.9.9-.4 1.8-.6 3-.6zM135.7 28c1.1 0 2-.4 2.6-1.2.6-.8 1-2 1-3.4 0-1.5-.4-2.5-1-3.3s-1.5-1.1-2.6-1.1-2 .3-2.6 1.1c-.6.8-1 2-1 3.3 0 1.5.4 2.6 1 3.4.6.8 1.5 1.2 2.6 1.2zm18.9 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.3 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm18 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.4 1a7 7 0 0 1 2.9 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm27.4 3.4h-6l-6-7v7h-4.8V8.8h4.9v13.6l5.8-6.7h5.7l-6.6 7.5 7 8.2z\",fill:\"currentColor\"}),React5__default.createElement(\"mask\",{id:\"b\",fill:\"#fff\"},React5__default.createElement(\"use\",{xlinkHref:\"#a\"})),React5__default.createElement(\"use\",{fill:\"#FF4785\",fillRule:\"nonzero\",xlinkHref:\"#a\"}),React5__default.createElement(\"path\",{d:\"M23.7 5L24 .2l3.9-.3.1 4.8a.3.3 0 0 1-.5.2L26 3.8l-1.7 1.4a.3.3 0 0 1-.5-.3zm-5 10c0 .9 5.3.5 6 0 0-5.4-2.8-8.2-8-8.2-5.3 0-8.2 2.8-8.2 7.1 0 7.4 10 7.6 10 11.6 0 1.2-.5 1.9-1.8 1.9-1.6 0-2.2-.9-2.1-3.6 0-.6-6.1-.8-6.3 0-.5 6.7 3.7 8.6 8.5 8.6 4.6 0 8.3-2.5 8.3-7 0-7.9-10.2-7.7-10.2-11.6 0-1.6 1.2-1.8 2-1.8.6 0 2 0 1.9 3z\",fill:\"#FFF\",fillRule:\"nonzero\",mask:\"url(#b)\"})));var StorybookIcon=({...props})=>React5__default.createElement(\"svg\",{viewBox:\"0 0 64 64\",...props},React5__default.createElement(\"title\",null,\"Storybook icon\"),React5__default.createElement(\"g\",{id:\"Artboard\",stroke:\"none\",strokeWidth:\"1\",fill:\"none\",fillRule:\"evenodd\"},React5__default.createElement(\"path\",{d:\"M8.04798541,58.7875918 L6.07908839,6.32540407 C6.01406344,4.5927838 7.34257463,3.12440831 9.07303814,3.01625434 L53.6958037,0.227331489 C55.457209,0.117243658 56.974354,1.45590096 57.0844418,3.21730626 C57.0885895,3.28366922 57.0906648,3.35014546 57.0906648,3.41663791 L57.0906648,60.5834697 C57.0906648,62.3483119 55.6599776,63.7789992 53.8951354,63.7789992 C53.847325,63.7789992 53.7995207,63.7779262 53.7517585,63.775781 L11.0978899,61.8600599 C9.43669044,61.7854501 8.11034889,60.4492961 8.04798541,58.7875918 Z\",id:\"path-1\",fill:\"#FF4785\",fillRule:\"nonzero\"}),React5__default.createElement(\"path\",{d:\"M35.9095005,24.1768792 C35.9095005,25.420127 44.2838488,24.8242707 45.4080313,23.9509748 C45.4080313,15.4847538 40.8652557,11.0358878 32.5466666,11.0358878 C24.2280775,11.0358878 19.5673077,15.553972 19.5673077,22.3311017 C19.5673077,34.1346028 35.4965208,34.3605071 35.4965208,40.7987804 C35.4965208,42.606015 34.6115646,43.6790606 32.6646607,43.6790606 C30.127786,43.6790606 29.1248356,42.3834613 29.2428298,37.9783269 C29.2428298,37.0226907 19.5673077,36.7247626 19.2723223,37.9783269 C18.5211693,48.6535354 25.1720308,51.7326752 32.7826549,51.7326752 C40.1572906,51.7326752 45.939005,47.8018145 45.939005,40.6858282 C45.939005,28.035186 29.7738035,28.3740425 29.7738035,22.1051974 C29.7738035,19.5637737 31.6617103,19.2249173 32.7826549,19.2249173 C33.9625966,19.2249173 36.0864917,19.4328883 35.9095005,24.1768792 Z\",id:\"path9_fill-path\",fill:\"#FFFFFF\",fillRule:\"nonzero\"}),React5__default.createElement(\"path\",{d:\"M44.0461638,0.830433986 L50.1874092,0.446606143 L50.443532,7.7810017 C50.4527198,8.04410717 50.2468789,8.26484453 49.9837734,8.27403237 C49.871115,8.27796649 49.7607078,8.24184808 49.6721567,8.17209069 L47.3089847,6.3104681 L44.5110468,8.43287463 C44.3012992,8.591981 44.0022839,8.55092814 43.8431776,8.34118051 C43.7762017,8.25288717 43.742082,8.14401677 43.7466857,8.03329059 L44.0461638,0.830433986 Z\",id:\"Path\",fill:\"#FFFFFF\"})));var rotate360=keyframes`\n\tfrom {\n\t\ttransform: rotate(0deg);\n\t}\n\tto {\n\t\ttransform: rotate(360deg);\n\t}\n`;var LoaderWrapper=styled.div(({size=32})=>({borderRadius:\"50%\",cursor:\"progress\",display:\"inline-block\",overflow:\"hidden\",position:\"absolute\",transition:\"all 200ms ease-out\",verticalAlign:\"top\",top:\"50%\",left:\"50%\",marginTop:-(size/2),marginLeft:-(size/2),height:size,width:size,zIndex:4,borderWidth:2,borderStyle:\"solid\",borderColor:\"rgba(97, 97, 97, 0.29)\",borderTopColor:\"rgb(100,100,100)\",animation:`${rotate360} 0.7s linear infinite`,mixBlendMode:\"difference\"})),ProgressWrapper=styled.div({position:\"absolute\",display:\"flex\",flexDirection:\"column\",justifyContent:\"center\",alignItems:\"center\",width:\"100%\",height:\"100%\"}),ProgressTrack=styled.div(({theme})=>({position:\"relative\",width:\"80%\",marginBottom:\"0.75rem\",maxWidth:300,height:5,borderRadius:5,background:curriedTransparentize$1(.8,theme.color.secondary),overflow:\"hidden\",cursor:\"progress\"})),ProgressBar=styled.div(({theme})=>({position:\"absolute\",top:0,left:0,height:\"100%\",background:theme.color.secondary})),ProgressMessage=styled.div(({theme})=>({minHeight:\"2em\",fontSize:`${theme.typography.size.s1}px`,color:theme.barTextColor})),ErrorIcon=styled(Icons)(({theme})=>({width:20,height:20,marginBottom:\"0.5rem\",color:theme.textMutedColor})),ellipsis=keyframes`\n from { content: \"...\" }\n 33% { content: \".\" }\n 66% { content: \"..\" }\n to { content: \"...\" }\n`,Ellipsis=styled.span({\"&::after\":{content:\"'...'\",animation:`${ellipsis} 1s linear infinite`,animationDelay:\"1s\",display:\"inline-block\",width:\"1em\",height:\"auto\"}}),Loader=({progress,error,size,...props})=>{if(error)return React5__default.createElement(ProgressWrapper,{\"aria-label\":error.toString(),\"aria-live\":\"polite\",role:\"status\",...props},React5__default.createElement(ErrorIcon,{icon:\"lightningoff\"}),React5__default.createElement(ProgressMessage,null,error.message));if(progress){let{value,modules}=progress,{message}=progress;return modules&&(message+=` ${modules.complete} / ${modules.total} modules`),React5__default.createElement(ProgressWrapper,{\"aria-label\":\"Content is loading...\",\"aria-live\":\"polite\",\"aria-valuemin\":0,\"aria-valuemax\":100,\"aria-valuenow\":value*100,\"aria-valuetext\":message,role:\"progressbar\",...props},React5__default.createElement(ProgressTrack,null,React5__default.createElement(ProgressBar,{style:{width:`${value*100}%`}})),React5__default.createElement(ProgressMessage,null,message,value<1&&React5__default.createElement(Ellipsis,{key:message})))}return React5__default.createElement(LoaderWrapper,{\"aria-label\":\"Content is loading...\",\"aria-live\":\"polite\",role:\"status\",size,...props})};function parseQuery(queryString){let query={},pairs=queryString.split(\"&\");for(let i=0;i{let[url,paramsStr]=baseUrl.split(\"?\"),params=paramsStr?{...parseQuery(paramsStr),...additionalParams,id:storyId}:{...additionalParams,id:storyId};return `${url}?${Object.entries(params).map(item=>`${item[0]}=${item[1]}`).join(\"&\")}`};var Code2=styled.pre`\n line-height: 18px;\n padding: 11px 1rem;\n white-space: pre-wrap;\n background: rgba(0, 0, 0, 0.05);\n color: ${color.darkest};\n border-radius: 3px;\n margin: 1rem 0;\n width: 100%;\n display: block;\n overflow: hidden;\n font-family: ${typography.fonts.mono};\n font-size: ${typography.size.s2-1}px;\n`,ClipboardCode=({code,...props})=>React5__default.createElement(Code2,{id:\"clipboard-code\",...props},code);var components2=components,resetComponents={};Object.keys(components).forEach(key=>{resetComponents[key]=forwardRef((props,ref)=>createElement(key,{...props,ref}));});\n\nexport { A, AddonPanel, Badge, Bar, Blockquote, Button, ClipboardCode, Code, DL, Div, DocumentWrapper, ErrorFormatter, FlexBar, Form, H1, H2, H3, H4, H5, H6, HR, IconButton, IconButtonSkeleton, Icons, Img, LI, Link2 as Link, ListItem_default as ListItem, Loader, OL, P, Placeholder, Pre, ResetWrapper, Separator, Spaced, Span, StorybookIcon, StorybookLogo, Symbols, SyntaxHighlighter2 as SyntaxHighlighter, TT, TabBar, TabButton, TabWrapper, Table, Tabs, TabsState, TooltipLinkList, TooltipMessage, TooltipNote, UL, WithTooltip, WithTooltipPure, Zoom, codeCommon, components2 as components, getStoryHref, icons, interleaveSeparators, nameSpaceClassNames, resetComponents, withReset };\n","var B=Object.create;var R=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var h=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var I=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var E=(r,e,n,t)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let a of C(e))!w.call(r,a)&&a!==n&&R(r,a,{get:()=>e[a],enumerable:!(t=b(e,a))||t.enumerable});return r};var v=(r,e,n)=>(n=r!=null?B(h(r)):{},E(e||!r||!r.__esModule?R(n,\"default\",{value:r,enumerable:!0}):n,r));var x=I(T=>{Object.defineProperty(T,\"__esModule\",{value:!0}),T.isEqual=function(){var r=Object.prototype.toString,e=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(t){return Object.keys(t).concat(Object.getOwnPropertySymbols(t))}:Object.keys;return function(t,a){return function i(o,s,p){var y,g,d,A=r.call(o),F=r.call(s);if(o===s)return !0;if(o==null||s==null)return !1;if(p.indexOf(o)>-1&&p.indexOf(s)>-1)return !0;if(p.push(o,s),A!=F||(y=n(o),g=n(s),y.length!=g.length||y.some(function(l){return !i(o[l],s[l],p)})))return !1;switch(A.slice(8,-1)){case\"Symbol\":return o.valueOf()==s.valueOf();case\"Date\":case\"Number\":return +o==+s||+o!=+o&&+s!=+s;case\"RegExp\":case\"Function\":case\"String\":case\"Boolean\":return \"\"+o==\"\"+s;case\"Set\":case\"Map\":y=o.entries(),g=s.entries();do if(!i((d=y.next()).value,g.next().value,p))return !1;while(!d.done);return !0;case\"ArrayBuffer\":o=new Uint8Array(o),s=new Uint8Array(s);case\"DataView\":o=new Uint8Array(o.buffer),s=new Uint8Array(s.buffer);case\"Float32Array\":case\"Float64Array\":case\"Int8Array\":case\"Int16Array\":case\"Int32Array\":case\"Uint8Array\":case\"Uint16Array\":case\"Uint32Array\":case\"Uint8ClampedArray\":case\"Arguments\":case\"Array\":if(o.length!=s.length)return !1;for(d=0;d`${n} ${t}${a}`).replace(/([a-z])([A-Z])/g,(e,n,t)=>`${n} ${t}`).replace(/([a-z])([0-9])/gi,(e,n,t)=>`${n} ${t}`).replace(/([0-9])([a-z])/gi,(e,n,t)=>`${n} ${t}`).replace(/(\\s|^)(\\w)/g,(e,n,t)=>`${n}${t.toUpperCase()}`).replace(/ +/g,\" \").trim()}var c=v(x()),S=r=>r.map(e=>typeof e<\"u\").filter(Boolean).length,P=(r,e)=>{let{exists:n,eq:t,neq:a,truthy:i}=r;if(S([n,t,a,i])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:n,eq:t,neq:a})}`);if(typeof t<\"u\")return (0, c.isEqual)(e,t);if(typeof a<\"u\")return !(0, c.isEqual)(e,a);if(typeof n<\"u\"){let s=typeof e<\"u\";return n?s:!s}return (typeof i>\"u\"?!0:i)?!!e:!e},O=(r,e,n)=>{if(!r.if)return !0;let{arg:t,global:a}=r.if;if(S([t,a])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:t,global:a})}`);let i=t?e[t]:n[a];return P(r.if,i)};var L=r=>r.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\\-=?;:'\",.<>\\{\\}\\[\\]\\\\\\/]/gi,\"-\").replace(/-+/g,\"-\").replace(/^-+/,\"\").replace(/-+$/,\"\"),f=(r,e)=>{let n=L(r);if(n===\"\")throw new Error(`Invalid ${e} '${r}', must include alphanumeric characters`);return n},N=(r,e)=>`${f(r,\"kind\")}${e?`--${f(e,\"name\")}`:\"\"}`,M=r=>u(r);function m(r,e){return Array.isArray(e)?e.includes(r):r.match(e)}function G(r,{includeStories:e,excludeStories:n}){return r!==\"__esModule\"&&(!e||m(r,e))&&(!n||!m(r,n))}var z=(r,{rootSeparator:e,groupSeparator:n})=>{let[t,a]=r.split(e,2),i=(a||r).split(n).filter(o=>!!o);return {root:a?t:null,groups:i}};\n\nexport { O as includeConditionalArg, G as isExportStory, z as parseKind, L as sanitize, M as storyNameFromExport, N as toId };\n","import * as React from 'react';\n\nvar syncFallback = function syncFallback(create) {\n return create();\n};\n\nvar useInsertionEffect = React['useInsertion' + 'Effect'] ? React['useInsertion' + 'Effect'] : false;\nvar useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect || syncFallback;\nvar useInsertionEffectWithLayoutFallback = useInsertionEffect || React.useLayoutEffect;\n\nexport { useInsertionEffectAlwaysWithSyncFallback, useInsertionEffectWithLayoutFallback };\n","import { __commonJS, __toESM, background, typography, curriedOpacify$1, themes, getPreferredColorScheme, light_default, color, mkColor } from './chunk-ZGA76URP.mjs';\nexport { background, color, create, darkenColor as darken, lightenColor as lighten, themes, typography } from './chunk-ZGA76URP.mjs';\nimport * as React from 'react';\nimport { forwardRef, useContext } from 'react';\nimport { useInsertionEffectWithLayoutFallback, useInsertionEffectAlwaysWithSyncFallback } from '@emotion/use-insertion-effect-with-fallbacks';\nimport memoize2 from 'memoizerific';\nimport { logger } from '@storybook/client-logger';\n\nvar require_react_is_development=__commonJS({\"../../node_modules/react-is/cjs/react-is.development.js\"(exports){(function(){var hasSymbol=typeof Symbol==\"function\"&&Symbol.for,REACT_ELEMENT_TYPE=hasSymbol?Symbol.for(\"react.element\"):60103,REACT_PORTAL_TYPE=hasSymbol?Symbol.for(\"react.portal\"):60106,REACT_FRAGMENT_TYPE=hasSymbol?Symbol.for(\"react.fragment\"):60107,REACT_STRICT_MODE_TYPE=hasSymbol?Symbol.for(\"react.strict_mode\"):60108,REACT_PROFILER_TYPE=hasSymbol?Symbol.for(\"react.profiler\"):60114,REACT_PROVIDER_TYPE=hasSymbol?Symbol.for(\"react.provider\"):60109,REACT_CONTEXT_TYPE=hasSymbol?Symbol.for(\"react.context\"):60110,REACT_ASYNC_MODE_TYPE=hasSymbol?Symbol.for(\"react.async_mode\"):60111,REACT_CONCURRENT_MODE_TYPE=hasSymbol?Symbol.for(\"react.concurrent_mode\"):60111,REACT_FORWARD_REF_TYPE=hasSymbol?Symbol.for(\"react.forward_ref\"):60112,REACT_SUSPENSE_TYPE=hasSymbol?Symbol.for(\"react.suspense\"):60113,REACT_SUSPENSE_LIST_TYPE=hasSymbol?Symbol.for(\"react.suspense_list\"):60120,REACT_MEMO_TYPE=hasSymbol?Symbol.for(\"react.memo\"):60115,REACT_LAZY_TYPE=hasSymbol?Symbol.for(\"react.lazy\"):60116,REACT_BLOCK_TYPE=hasSymbol?Symbol.for(\"react.block\"):60121,REACT_FUNDAMENTAL_TYPE=hasSymbol?Symbol.for(\"react.fundamental\"):60117,REACT_RESPONDER_TYPE=hasSymbol?Symbol.for(\"react.responder\"):60118,REACT_SCOPE_TYPE=hasSymbol?Symbol.for(\"react.scope\"):60119;function isValidElementType(type){return typeof type==\"string\"||typeof type==\"function\"||type===REACT_FRAGMENT_TYPE||type===REACT_CONCURRENT_MODE_TYPE||type===REACT_PROFILER_TYPE||type===REACT_STRICT_MODE_TYPE||type===REACT_SUSPENSE_TYPE||type===REACT_SUSPENSE_LIST_TYPE||typeof type==\"object\"&&type!==null&&(type.$$typeof===REACT_LAZY_TYPE||type.$$typeof===REACT_MEMO_TYPE||type.$$typeof===REACT_PROVIDER_TYPE||type.$$typeof===REACT_CONTEXT_TYPE||type.$$typeof===REACT_FORWARD_REF_TYPE||type.$$typeof===REACT_FUNDAMENTAL_TYPE||type.$$typeof===REACT_RESPONDER_TYPE||type.$$typeof===REACT_SCOPE_TYPE||type.$$typeof===REACT_BLOCK_TYPE)}function typeOf(object){if(typeof object==\"object\"&&object!==null){var $$typeof=object.$$typeof;switch($$typeof){case REACT_ELEMENT_TYPE:var type=object.type;switch(type){case REACT_ASYNC_MODE_TYPE:case REACT_CONCURRENT_MODE_TYPE:case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:return type;default:var $$typeofType=type&&type.$$typeof;switch($$typeofType){case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:case REACT_PROVIDER_TYPE:return $$typeofType;default:return $$typeof}}case REACT_PORTAL_TYPE:return $$typeof}}}var AsyncMode=REACT_ASYNC_MODE_TYPE,ConcurrentMode=REACT_CONCURRENT_MODE_TYPE,ContextConsumer=REACT_CONTEXT_TYPE,ContextProvider=REACT_PROVIDER_TYPE,Element=REACT_ELEMENT_TYPE,ForwardRef=REACT_FORWARD_REF_TYPE,Fragment4=REACT_FRAGMENT_TYPE,Lazy=REACT_LAZY_TYPE,Memo=REACT_MEMO_TYPE,Portal=REACT_PORTAL_TYPE,Profiler=REACT_PROFILER_TYPE,StrictMode=REACT_STRICT_MODE_TYPE,Suspense=REACT_SUSPENSE_TYPE,hasWarnedAboutDeprecatedIsAsyncMode=!1;function isAsyncMode(object){return hasWarnedAboutDeprecatedIsAsyncMode||(hasWarnedAboutDeprecatedIsAsyncMode=!0,console.warn(\"The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.\")),isConcurrentMode(object)||typeOf(object)===REACT_ASYNC_MODE_TYPE}function isConcurrentMode(object){return typeOf(object)===REACT_CONCURRENT_MODE_TYPE}function isContextConsumer(object){return typeOf(object)===REACT_CONTEXT_TYPE}function isContextProvider(object){return typeOf(object)===REACT_PROVIDER_TYPE}function isElement(object){return typeof object==\"object\"&&object!==null&&object.$$typeof===REACT_ELEMENT_TYPE}function isForwardRef(object){return typeOf(object)===REACT_FORWARD_REF_TYPE}function isFragment(object){return typeOf(object)===REACT_FRAGMENT_TYPE}function isLazy(object){return typeOf(object)===REACT_LAZY_TYPE}function isMemo(object){return typeOf(object)===REACT_MEMO_TYPE}function isPortal(object){return typeOf(object)===REACT_PORTAL_TYPE}function isProfiler(object){return typeOf(object)===REACT_PROFILER_TYPE}function isStrictMode(object){return typeOf(object)===REACT_STRICT_MODE_TYPE}function isSuspense(object){return typeOf(object)===REACT_SUSPENSE_TYPE}exports.AsyncMode=AsyncMode,exports.ConcurrentMode=ConcurrentMode,exports.ContextConsumer=ContextConsumer,exports.ContextProvider=ContextProvider,exports.Element=Element,exports.ForwardRef=ForwardRef,exports.Fragment=Fragment4,exports.Lazy=Lazy,exports.Memo=Memo,exports.Portal=Portal,exports.Profiler=Profiler,exports.StrictMode=StrictMode,exports.Suspense=Suspense,exports.isAsyncMode=isAsyncMode,exports.isConcurrentMode=isConcurrentMode,exports.isContextConsumer=isContextConsumer,exports.isContextProvider=isContextProvider,exports.isElement=isElement,exports.isForwardRef=isForwardRef,exports.isFragment=isFragment,exports.isLazy=isLazy,exports.isMemo=isMemo,exports.isPortal=isPortal,exports.isProfiler=isProfiler,exports.isStrictMode=isStrictMode,exports.isSuspense=isSuspense,exports.isValidElementType=isValidElementType,exports.typeOf=typeOf;})();}});var require_react_is=__commonJS({\"../../node_modules/react-is/index.js\"(exports,module){module.exports=require_react_is_development();}});var require_hoist_non_react_statics_cjs=__commonJS({\"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js\"(exports,module){var reactIs=require_react_is(),REACT_STATICS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},KNOWN_STATICS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},FORWARD_REF_STATICS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},MEMO_STATICS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TYPE_STATICS={};TYPE_STATICS[reactIs.ForwardRef]=FORWARD_REF_STATICS;TYPE_STATICS[reactIs.Memo]=MEMO_STATICS;function getStatics(component){return reactIs.isMemo(component)?MEMO_STATICS:TYPE_STATICS[component.$$typeof]||REACT_STATICS}var defineProperty=Object.defineProperty,getOwnPropertyNames=Object.getOwnPropertyNames,getOwnPropertySymbols=Object.getOwnPropertySymbols,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,getPrototypeOf=Object.getPrototypeOf,objectPrototype=Object.prototype;function hoistNonReactStatics2(targetComponent,sourceComponent,blacklist){if(typeof sourceComponent!=\"string\"){if(objectPrototype){var inheritedComponent=getPrototypeOf(sourceComponent);inheritedComponent&&inheritedComponent!==objectPrototype&&hoistNonReactStatics2(targetComponent,inheritedComponent,blacklist);}var keys=getOwnPropertyNames(sourceComponent);getOwnPropertySymbols&&(keys=keys.concat(getOwnPropertySymbols(sourceComponent)));for(var targetStatics=getStatics(targetComponent),sourceStatics=getStatics(sourceComponent),i=0;i0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position2||token(character)>3?\"\":\" \"}function escaping(index,count){for(;--count&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(index,caret()+(count<6&&peek()==32&&next()==32))}function delimiter(type){for(;next();)switch(character){case type:return position;case 34:case 39:type!==34&&type!==39&&delimiter(character);break;case 40:type===41&&delimiter(type);break;case 92:next();break}return position}function commenter(type,index){for(;next()&&type+character!==47+10;)if(type+character===42+42&&peek()===47)break;return \"/*\"+slice(index,position-1)+\"*\"+from(type===47?type:next())}function identifier(index){for(;!token(peek());)next();return slice(index,position)}function compile(value){return dealloc(parse(\"\",null,null,null,[\"\"],value=alloc(value),0,[0],value))}function parse(value,root,parent,rule,rules,rulesets,pseudo,points,declarations){for(var index=0,offset=0,length2=pseudo,atrule=0,property=0,previous=0,variable=1,scanning=1,ampersand=1,character2=0,type=\"\",props=rules,children=rulesets,reference=rule,characters2=type;scanning;)switch(previous=character2,character2=next()){case 40:if(previous!=108&&charat(characters2,length2-1)==58){indexof(characters2+=replace(delimit(character2),\"&\",\"&\\f\"),\"&\\f\")!=-1&&(ampersand=-1);break}case 34:case 39:case 91:characters2+=delimit(character2);break;case 9:case 10:case 13:case 32:characters2+=whitespace(previous);break;case 92:characters2+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),root,parent),declarations);break;default:characters2+=\"/\";}break;case 123*variable:points[index++]=strlen(characters2)*ampersand;case 125*variable:case 59:case 0:switch(character2){case 0:case 125:scanning=0;case 59+offset:ampersand==-1&&(characters2=replace(characters2,/\\f/g,\"\")),property>0&&strlen(characters2)-length2&&append(property>32?declaration(characters2+\";\",rule,parent,length2-1):declaration(replace(characters2,\" \",\"\")+\";\",rule,parent,length2-2),declarations);break;case 59:characters2+=\";\";default:if(append(reference=ruleset(characters2,root,parent,index,offset,rules,points,type,props=[],children=[],length2),rulesets),character2===123)if(offset===0)parse(characters2,root,reference,reference,props,rulesets,length2,points,children);else switch(atrule===99&&charat(characters2,3)===110?100:atrule){case 100:case 108:case 109:case 115:parse(value,reference,reference,rule&&append(ruleset(value,reference,reference,0,0,rules,points,type,rules,props=[],length2),children),rules,children,length2,points,rule?props:children);break;default:parse(characters2,reference,reference,reference,[\"\"],children,0,points,children);}}index=offset=property=0,variable=ampersand=1,type=characters2=\"\",length2=pseudo;break;case 58:length2=1+strlen(characters2),property=previous;default:if(variable<1){if(character2==123)--variable;else if(character2==125&&variable++==0&&prev()==125)continue}switch(characters2+=from(character2),character2*variable){case 38:ampersand=offset>0?1:(characters2+=\"\\f\",-1);break;case 44:points[index++]=(strlen(characters2)-1)*ampersand,ampersand=1;break;case 64:peek()===45&&(characters2+=delimit(next())),atrule=peek(),offset=length2=strlen(type=characters2+=identifier(caret())),character2++;break;case 45:previous===45&&strlen(characters2)==2&&(variable=0);}}return rulesets}function ruleset(value,root,parent,index,offset,rules,points,type,props,children,length2){for(var post=offset-1,rule=offset===0?rules:[\"\"],size=sizeof(rule),i=0,j=0,k=0;i0?rule[x]+\" \"+y:replace(y,/&\\f/g,rule[x])))&&(props[k++]=z);return node(value,root,parent,offset===0?RULESET:type,props,children,length2)}function comment(value,root,parent){return node(value,root,parent,COMMENT,from(char()),substr(value,2,-2),0)}function declaration(value,root,parent,length2){return node(value,root,parent,DECLARATION,substr(value,0,length2),substr(value,length2+1,-1),length2)}function serialize(children,callback){for(var output=\"\",length2=sizeof(children),i=0;i-1},createUnsafeSelectorsAlarm=function(cache){return function(element,index,children){if(!(element.type!==\"rule\"||cache.compat)){var unsafePseudoClasses=element.value.match(/(:first|:nth|:nth-last)-child/g);if(unsafePseudoClasses){for(var isNested=!!element.parent,commentContainer=isNested?element.parent.children:children,i=commentContainer.length-1;i>=0;i--){var node2=commentContainer[i];if(node2.line=0;i--)if(!isImportRule(children[i]))return !0;return !1},nullifyElement=function(element){element.type=\"\",element.value=\"\",element.return=\"\",element.children=\"\",element.props=\"\";},incorrectImportAlarm=function(element,index,children){isImportRule(element)&&(element.parent?(console.error(\"`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles.\"),nullifyElement(element)):isPrependedWithRegularRules(index,children)&&(console.error(\"`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.\"),nullifyElement(element)));};function prefix(value,length2){switch(hash(value,length2)){case 5103:return WEBKIT+\"print-\"+value+value;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return WEBKIT+value+value;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT+value+MOZ+value+MS+value+value;case 6828:case 4268:return WEBKIT+value+MS+value+value;case 6165:return WEBKIT+value+MS+\"flex-\"+value+value;case 5187:return WEBKIT+value+replace(value,/(\\w+).+(:[^]+)/,WEBKIT+\"box-$1$2\"+MS+\"flex-$1$2\")+value;case 5443:return WEBKIT+value+MS+\"flex-item-\"+replace(value,/flex-|-self/,\"\")+value;case 4675:return WEBKIT+value+MS+\"flex-line-pack\"+replace(value,/align-content|flex-|-self/,\"\")+value;case 5548:return WEBKIT+value+MS+replace(value,\"shrink\",\"negative\")+value;case 5292:return WEBKIT+value+MS+replace(value,\"basis\",\"preferred-size\")+value;case 6060:return WEBKIT+\"box-\"+replace(value,\"-grow\",\"\")+WEBKIT+value+MS+replace(value,\"grow\",\"positive\")+value;case 4554:return WEBKIT+replace(value,/([^-])(transform)/g,\"$1\"+WEBKIT+\"$2\")+value;case 6187:return replace(replace(replace(value,/(zoom-|grab)/,WEBKIT+\"$1\"),/(image-set)/,WEBKIT+\"$1\"),value,\"\")+value;case 5495:case 3959:return replace(value,/(image-set\\([^]*)/,WEBKIT+\"$1$`$1\");case 4968:return replace(replace(value,/(.+:)(flex-)?(.*)/,WEBKIT+\"box-pack:$3\"+MS+\"flex-pack:$3\"),/s.+-b[^;]+/,\"justify\")+WEBKIT+value+value;case 4095:case 3583:case 4068:case 2532:return replace(value,/(.+)-inline(.+)/,WEBKIT+\"$1$2\")+value;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(strlen(value)-1-length2>6)switch(charat(value,length2+1)){case 109:if(charat(value,length2+4)!==45)break;case 102:return replace(value,/(.+:)(.+)-([^]+)/,\"$1\"+WEBKIT+\"$2-$3$1\"+MOZ+(charat(value,length2+3)==108?\"$3\":\"$2-$3\"))+value;case 115:return ~indexof(value,\"stretch\")?prefix(replace(value,\"stretch\",\"fill-available\"),length2)+value:value}break;case 4949:if(charat(value,length2+1)!==115)break;case 6444:switch(charat(value,strlen(value)-3-(~indexof(value,\"!important\")&&10))){case 107:return replace(value,\":\",\":\"+WEBKIT)+value;case 101:return replace(value,/(.+:)([^;!]+)(;|!.+)?/,\"$1\"+WEBKIT+(charat(value,14)===45?\"inline-\":\"\")+\"box$3$1\"+WEBKIT+\"$2$3$1\"+MS+\"$2box$3\")+value}break;case 5936:switch(charat(value,length2+11)){case 114:return WEBKIT+value+MS+replace(value,/[svh]\\w+-[tblr]{2}/,\"tb\")+value;case 108:return WEBKIT+value+MS+replace(value,/[svh]\\w+-[tblr]{2}/,\"tb-rl\")+value;case 45:return WEBKIT+value+MS+replace(value,/[svh]\\w+-[tblr]{2}/,\"lr\")+value}return WEBKIT+value+MS+value+value}return value}var prefixer=function(element,index,children,callback){if(element.length>-1&&!element.return)switch(element.type){case DECLARATION:element.return=prefix(element.value,element.length);break;case KEYFRAMES:return serialize([copy(element,{value:replace(element.value,\"@\",\"@\"+WEBKIT)})],callback);case RULESET:if(element.length)return combine(element.props,function(value){switch(match(value,/(::plac\\w+|:read-\\w+)/)){case\":read-only\":case\":read-write\":return serialize([copy(element,{props:[replace(value,/:(read-\\w+)/,\":\"+MOZ+\"$1\")]})],callback);case\"::placeholder\":return serialize([copy(element,{props:[replace(value,/:(plac\\w+)/,\":\"+WEBKIT+\"input-$1\")]}),copy(element,{props:[replace(value,/:(plac\\w+)/,\":\"+MOZ+\"$1\")]}),copy(element,{props:[replace(value,/:(plac\\w+)/,MS+\"input-$1\")]})],callback)}return \"\"})}},defaultStylisPlugins=[prefixer],createCache=function(options){var key=options.key;if(!key)throw new Error(`You have to configure \\`key\\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.`);if(key===\"css\"){var ssrStyles=document.querySelectorAll(\"style[data-emotion]:not([data-s])\");Array.prototype.forEach.call(ssrStyles,function(node2){var dataEmotionAttribute=node2.getAttribute(\"data-emotion\");dataEmotionAttribute.indexOf(\" \")!==-1&&(document.head.appendChild(node2),node2.setAttribute(\"data-s\",\"\"));});}var stylisPlugins=options.stylisPlugins||defaultStylisPlugins;if(/[^a-z-]/.test(key))throw new Error('Emotion key must only contain lower case alphabetical characters and - but \"'+key+'\" was passed');var inserted={},container,nodesToHydrate=[];container=options.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^=\"'+key+' \"]'),function(node2){for(var attrib=node2.getAttribute(\"data-emotion\").split(\" \"),i=1;i=4;++i,len-=4)k=str.charCodeAt(i)&255|(str.charCodeAt(++i)&255)<<8|(str.charCodeAt(++i)&255)<<16|(str.charCodeAt(++i)&255)<<24,k=(k&65535)*1540483477+((k>>>16)*59797<<16),k^=k>>>24,h=(k&65535)*1540483477+((k>>>16)*59797<<16)^(h&65535)*1540483477+((h>>>16)*59797<<16);switch(len){case 3:h^=(str.charCodeAt(i+2)&255)<<16;case 2:h^=(str.charCodeAt(i+1)&255)<<8;case 1:h^=str.charCodeAt(i)&255,h=(h&65535)*1540483477+((h>>>16)*59797<<16);}return h^=h>>>13,h=(h&65535)*1540483477+((h>>>16)*59797<<16),((h^h>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var ILLEGAL_ESCAPE_SEQUENCE_ERROR=`You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\\\00d7';\" should become \"content: '\\\\\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,UNDEFINED_AS_OBJECT_KEY_ERROR=\"You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).\",hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(property){return property.charCodeAt(1)===45},isProcessableValue=function(value){return value!=null&&typeof value!=\"boolean\"},processStyleName=memoize(function(styleName){return isCustomProperty(styleName)?styleName:styleName.replace(hyphenateRegex,\"-$&\").toLowerCase()}),processStyleValue=function(key,value){switch(key){case\"animation\":case\"animationName\":if(typeof value==\"string\")return value.replace(animationRegex,function(match2,p1,p2){return cursor={name:p1,styles:p2,next:cursor},p1})}return unitlessKeys[key]!==1&&!isCustomProperty(key)&&typeof value==\"number\"&&value!==0?value+\"px\":value};contentValuePattern=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\\(|(no-)?(open|close)-quote/,contentValues=[\"normal\",\"none\",\"initial\",\"inherit\",\"unset\"],oldProcessStyleValue=processStyleValue,msPattern=/^-ms-/,hyphenPattern=/-(.)/g,hyphenatedCache={},processStyleValue=function(key,value){if(key===\"content\"&&(typeof value!=\"string\"||contentValues.indexOf(value)===-1&&!contentValuePattern.test(value)&&(value.charAt(0)!==value.charAt(value.length-1)||value.charAt(0)!=='\"'&&value.charAt(0)!==\"'\")))throw new Error(\"You seem to be using a value for 'content' without quotes, try replacing it with `content: '\\\"\"+value+\"\\\"'`\");var processed=oldProcessStyleValue(key,value);return processed!==\"\"&&!isCustomProperty(key)&&key.indexOf(\"-\")!==-1&&hyphenatedCache[key]===void 0&&(hyphenatedCache[key]=!0,console.error(\"Using kebab-case for css properties in objects is not supported. Did you mean \"+key.replace(msPattern,\"ms-\").replace(hyphenPattern,function(str,_char){return _char.toUpperCase()})+\"?\")),processed};var contentValuePattern,contentValues,oldProcessStyleValue,msPattern,hyphenPattern,hyphenatedCache,noComponentSelectorMessage=\"Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.\";function handleInterpolation(mergedProps,registered,interpolation){if(interpolation==null)return \"\";if(interpolation.__emotion_styles!==void 0){if(interpolation.toString()===\"NO_COMPONENT_SELECTOR\")throw new Error(noComponentSelectorMessage);return interpolation}switch(typeof interpolation){case\"boolean\":return \"\";case\"object\":{if(interpolation.anim===1)return cursor={name:interpolation.name,styles:interpolation.styles,next:cursor},interpolation.name;if(interpolation.styles!==void 0){var next2=interpolation.next;if(next2!==void 0)for(;next2!==void 0;)cursor={name:next2.name,styles:next2.styles,next:cursor},next2=next2.next;var styles=interpolation.styles+\";\";return interpolation.map!==void 0&&(styles+=interpolation.map),styles}return createStringFromObject(mergedProps,registered,interpolation)}case\"function\":{if(mergedProps!==void 0){var previousCursor=cursor,result=interpolation(mergedProps);return cursor=previousCursor,handleInterpolation(mergedProps,registered,result)}else console.error(\"Functions that are interpolated in css calls will be stringified.\\nIf you want to have a css call based on props, create a function that returns a css call like this\\nlet dynamicStyle = (props) => css`color: ${props.color}`\\nIt can be called directly with props or interpolated in a styled call like this\\nlet SomeComponent = styled('div')`${dynamicStyle}`\");break}case\"string\":var matched=[],replaced=interpolation.replace(animationRegex,function(match2,p1,p2){var fakeVarName=\"animation\"+matched.length;return matched.push(\"const \"+fakeVarName+\" = keyframes`\"+p2.replace(/^@keyframes animation-\\w+/,\"\")+\"`\"),\"${\"+fakeVarName+\"}\"});matched.length&&console.error(\"`keyframes` output got interpolated into plain string, please wrap it with `css`.\\n\\nInstead of doing this:\\n\\n\"+[].concat(matched,[\"`\"+replaced+\"`\"]).join(`\n`)+`\n\nYou should wrap it with \\`css\\` like this:\n\n`+(\"css`\"+replaced+\"`\"));break}if(registered==null)return interpolation;var cached=registered[interpolation];return cached!==void 0?cached:interpolation}function createStringFromObject(mergedProps,registered,obj){var string=\"\";if(Array.isArray(obj))for(var i=0;i ({})}!\");return mergedTheme}if(theme==null||typeof theme!=\"object\"||Array.isArray(theme))throw new Error(\"[ThemeProvider] Please make your theme prop a plain object\");return _extends2({},outerTheme,theme)},createCacheWithTheme=weakMemoize(function(outerTheme){return weakMemoize(function(theme){return getTheme(outerTheme,theme)})}),ThemeProvider=function(props){var theme=React.useContext(ThemeContext);return props.theme!==theme&&(theme=createCacheWithTheme(theme)(props.theme)),React.createElement(ThemeContext.Provider,{value:theme},props.children)};function withTheme(Component){var componentName=Component.displayName||Component.name||\"Component\",render=function(props,ref){var theme=React.useContext(ThemeContext);return React.createElement(Component,_extends2({theme,ref},props))},WithTheme=React.forwardRef(render);return WithTheme.displayName=\"WithTheme(\"+componentName+\")\",hoistNonReactStatics(WithTheme,Component)}var getLastPart=function(functionName){var parts=functionName.split(\".\");return parts[parts.length-1]},getFunctionNameFromStackTraceLine=function(line2){var match2=/^\\s+at\\s+([A-Za-z0-9$.]+)\\s/.exec(line2);if(match2||(match2=/^([A-Za-z0-9$.]+)@/.exec(line2),match2))return getLastPart(match2[1])},internalReactFunctionNames=new Set([\"renderWithHooks\",\"processChild\",\"finishClassComponent\",\"renderToString\"]),sanitizeIdentifier=function(identifier2){return identifier2.replace(/\\$/g,\"-\")},getLabelFromStackTrace=function(stackTrace){if(stackTrace)for(var lines=stackTrace.split(`\n`),i=0;i=16.8.0\"},peerDependenciesMeta:{\"@types/react\":{optional:!0}},devDependencies:{\"@definitelytyped/dtslint\":\"0.0.112\",\"@emotion/css\":\"11.11.0\",\"@emotion/css-prettifier\":\"1.1.3\",\"@emotion/server\":\"11.11.0\",\"@emotion/styled\":\"11.11.0\",\"html-tag-names\":\"^1.1.2\",react:\"16.14.0\",\"svg-tag-names\":\"^1.1.1\",typescript:\"^4.5.5\"},repository:\"https://github.com/emotion-js/emotion/tree/main/packages/react\",publishConfig:{access:\"public\"},\"umd:main\":\"dist/emotion-react.umd.min.js\",preconstruct:{entrypoints:[\"./index.js\",\"./jsx-runtime.js\",\"./jsx-dev-runtime.js\",\"./_isolated-hnrs.js\"],umdName:\"emotionReact\",exports:{envConditions:[\"browser\",\"worker\"],extra:{\"./types/css-prop\":\"./types/css-prop.d.ts\",\"./macro\":{types:{import:\"./macro.d.mts\",default:\"./macro.d.ts\"},default:\"./macro.js\"}}}}},jsx=function(type,props){var args=arguments;if(props==null||!hasOwnProperty.call(props,\"css\"))return React.createElement.apply(void 0,args);var argsLength=args.length,createElementArgArray=new Array(argsLength);createElementArgArray[0]=Emotion$1,createElementArgArray[1]=createEmotionProps(type,props);for(var i=2;i component.\"),toAdd=\"\";for(var k in arg)arg[k]&&k&&(toAdd&&(toAdd+=\" \"),toAdd+=k);}break}default:toAdd=arg;}toAdd&&(cls&&(cls+=\" \"),cls+=toAdd);}}return cls};function merge(registered,css2,className){var registeredStyles=[],rawClassName=getRegisteredStyles(registered,registeredStyles,className);return registeredStyles.length<2?className:rawClassName+css2(registeredStyles)}var Insertion3=function(_ref){var cache=_ref.cache,serializedArr=_ref.serializedArr;return useInsertionEffectAlwaysWithSyncFallback(function(){for(var i=0;i96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function(tag,options,isReal){var shouldForwardProp;if(options){var optionsShouldForwardProp=options.shouldForwardProp;shouldForwardProp=tag.__emotion_forwardProp&&optionsShouldForwardProp?function(propName){return tag.__emotion_forwardProp(propName)&&optionsShouldForwardProp(propName)}:optionsShouldForwardProp;}return typeof shouldForwardProp!=\"function\"&&isReal&&(shouldForwardProp=tag.__emotion_forwardProp),shouldForwardProp},ILLEGAL_ESCAPE_SEQUENCE_ERROR2=`You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\\\00d7';\" should become \"content: '\\\\\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Insertion5=function(_ref){var cache=_ref.cache,serialized=_ref.serialized,isStringTag=_ref.isStringTag;return registerStyles(cache,serialized,isStringTag),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(cache,serialized,isStringTag)}),null},createStyled=function createStyled2(tag,options){if(tag===void 0)throw new Error(`You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.`);var isReal=tag.__emotion_real===tag,baseTag=isReal&&tag.__emotion_base||tag,identifierName,targetClassName;options!==void 0&&(identifierName=options.label,targetClassName=options.target);var shouldForwardProp=composeShouldForwardProps(tag,options,isReal),defaultShouldForwardProp=shouldForwardProp||getDefaultShouldForwardProp(baseTag),shouldUseAs=!defaultShouldForwardProp(\"as\");return function(){var args=arguments,styles=isReal&&tag.__emotion_styles!==void 0?tag.__emotion_styles.slice(0):[];if(identifierName!==void 0&&styles.push(\"label:\"+identifierName+\";\"),args[0]==null||args[0].raw===void 0)styles.push.apply(styles,args);else {args[0][0]===void 0&&console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR2),styles.push(args[0][0]);for(var len=args.length,i=1;i({body:{fontFamily:typography2.fonts.base,fontSize:typography2.size.s3,margin:0,WebkitFontSmoothing:\"antialiased\",MozOsxFontSmoothing:\"grayscale\",WebkitTapHighlightColor:\"rgba(0, 0, 0, 0)\",WebkitOverflowScrolling:\"touch\"},\"*\":{boxSizing:\"border-box\"},\"h1, h2, h3, h4, h5, h6\":{fontWeight:typography2.weight.regular,margin:0,padding:0},\"button, input, textarea, select\":{fontFamily:\"inherit\",fontSize:\"inherit\",boxSizing:\"border-box\"},sub:{fontSize:\"0.8em\",bottom:\"-0.2em\"},sup:{fontSize:\"0.8em\",top:\"-0.2em\"},\"b, strong\":{fontWeight:typography2.weight.bold},hr:{border:\"none\",borderTop:\"1px solid silver\",clear:\"both\",marginBottom:\"1.25rem\"},code:{fontFamily:typography2.fonts.mono,WebkitFontSmoothing:\"antialiased\",MozOsxFontSmoothing:\"grayscale\",display:\"inline-block\",paddingLeft:2,paddingRight:2,verticalAlign:\"baseline\",color:\"inherit\"},pre:{fontFamily:typography2.fonts.mono,WebkitFontSmoothing:\"antialiased\",MozOsxFontSmoothing:\"grayscale\",lineHeight:\"18px\",padding:\"11px 1rem\",whiteSpace:\"pre-wrap\",color:\"inherit\",borderRadius:3,margin:\"1rem 0\"}})),createGlobal=memoize2(1)(({color:color2,background:background2,typography:typography2})=>{let resetStyles=createReset({typography:typography2});return {...resetStyles,body:{...resetStyles.body,color:color2.defaultText,background:background2.app,overflow:\"hidden\"},hr:{...resetStyles.hr,borderTop:`1px solid ${color2.border}`}}});var easing={rubber:\"cubic-bezier(0.175, 0.885, 0.335, 1.05)\"},rotate360=keyframes`\n\tfrom {\n\t\ttransform: rotate(0deg);\n\t}\n\tto {\n\t\ttransform: rotate(360deg);\n\t}\n`,glow=keyframes`\n 0%, 100% { opacity: 1; }\n 50% { opacity: .4; }\n`,float=keyframes`\n 0% { transform: translateY(1px); }\n 25% { transform: translateY(0px); }\n 50% { transform: translateY(-3px); }\n 100% { transform: translateY(1px); }\n`,jiggle=keyframes`\n 0%, 100% { transform:translate3d(0,0,0); }\n 12.5%, 62.5% { transform:translate3d(-4px,0,0); }\n 37.5%, 87.5% { transform: translate3d(4px,0,0); }\n`,inlineGlow=css`\n animation: ${glow} 1.5s ease-in-out infinite;\n color: transparent;\n cursor: progress;\n`,hoverable=css`\n transition: all 150ms ease-out;\n transform: translate3d(0, 0, 0);\n\n &:hover {\n transform: translate3d(0, -2px, 0);\n }\n\n &:active {\n transform: translate3d(0, 0, 0);\n }\n`,animation={rotate360,glow,float,jiggle,inlineGlow,hoverable};var chromeDark={BASE_FONT_FAMILY:\"Menlo, monospace\",BASE_FONT_SIZE:\"11px\",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:\"rgb(36, 36, 36)\",BASE_COLOR:\"rgb(213, 213, 213)\",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:\"rgb(227, 110, 236)\",OBJECT_VALUE_NULL_COLOR:\"rgb(127, 127, 127)\",OBJECT_VALUE_UNDEFINED_COLOR:\"rgb(127, 127, 127)\",OBJECT_VALUE_REGEXP_COLOR:\"rgb(233, 63, 59)\",OBJECT_VALUE_STRING_COLOR:\"rgb(233, 63, 59)\",OBJECT_VALUE_SYMBOL_COLOR:\"rgb(233, 63, 59)\",OBJECT_VALUE_NUMBER_COLOR:\"hsl(252, 100%, 75%)\",OBJECT_VALUE_BOOLEAN_COLOR:\"hsl(252, 100%, 75%)\",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:\"rgb(85, 106, 242)\",HTML_TAG_COLOR:\"rgb(93, 176, 215)\",HTML_TAGNAME_COLOR:\"rgb(93, 176, 215)\",HTML_TAGNAME_TEXT_TRANSFORM:\"lowercase\",HTML_ATTRIBUTE_NAME_COLOR:\"rgb(155, 187, 220)\",HTML_ATTRIBUTE_VALUE_COLOR:\"rgb(242, 151, 102)\",HTML_COMMENT_COLOR:\"rgb(137, 137, 137)\",HTML_DOCTYPE_COLOR:\"rgb(192, 192, 192)\",ARROW_COLOR:\"rgb(145, 145, 145)\",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:\"0\",TREENODE_FONT_FAMILY:\"Menlo, monospace\",TREENODE_FONT_SIZE:\"11px\",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:\"rgb(85, 85, 85)\",TABLE_TH_BACKGROUND_COLOR:\"rgb(44, 44, 44)\",TABLE_TH_HOVER_COLOR:\"rgb(48, 48, 48)\",TABLE_SORT_ICON_COLOR:\"black\",TABLE_DATA_BACKGROUND_IMAGE:\"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))\",TABLE_DATA_BACKGROUND_SIZE:\"128px 32px\"},chromeLight={BASE_FONT_FAMILY:\"Menlo, monospace\",BASE_FONT_SIZE:\"11px\",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:\"white\",BASE_COLOR:\"black\",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:\"rgb(136, 19, 145)\",OBJECT_VALUE_NULL_COLOR:\"rgb(128, 128, 128)\",OBJECT_VALUE_UNDEFINED_COLOR:\"rgb(128, 128, 128)\",OBJECT_VALUE_REGEXP_COLOR:\"rgb(196, 26, 22)\",OBJECT_VALUE_STRING_COLOR:\"rgb(196, 26, 22)\",OBJECT_VALUE_SYMBOL_COLOR:\"rgb(196, 26, 22)\",OBJECT_VALUE_NUMBER_COLOR:\"rgb(28, 0, 207)\",OBJECT_VALUE_BOOLEAN_COLOR:\"rgb(28, 0, 207)\",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:\"rgb(13, 34, 170)\",HTML_TAG_COLOR:\"rgb(168, 148, 166)\",HTML_TAGNAME_COLOR:\"rgb(136, 18, 128)\",HTML_TAGNAME_TEXT_TRANSFORM:\"lowercase\",HTML_ATTRIBUTE_NAME_COLOR:\"rgb(153, 69, 0)\",HTML_ATTRIBUTE_VALUE_COLOR:\"rgb(26, 26, 166)\",HTML_COMMENT_COLOR:\"rgb(35, 110, 37)\",HTML_DOCTYPE_COLOR:\"rgb(192, 192, 192)\",ARROW_COLOR:\"#6e6e6e\",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:\"0\",TREENODE_FONT_FAMILY:\"Menlo, monospace\",TREENODE_FONT_SIZE:\"11px\",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:\"#aaa\",TABLE_TH_BACKGROUND_COLOR:\"#eee\",TABLE_TH_HOVER_COLOR:\"hsla(0, 0%, 90%, 1)\",TABLE_SORT_ICON_COLOR:\"#6e6e6e\",TABLE_DATA_BACKGROUND_IMAGE:\"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))\",TABLE_DATA_BACKGROUND_SIZE:\"128px 32px\"},convertColors=colors=>Object.entries(colors).reduce((acc,[k,v])=>({...acc,[k]:mkColor(v)}),{}),create2=({colors,mono})=>{let colorsObjs=convertColors(colors);return {token:{fontFamily:mono,WebkitFontSmoothing:\"antialiased\",\"&.tag\":colorsObjs.red3,\"&.comment\":{...colorsObjs.green1,fontStyle:\"italic\"},\"&.prolog\":{...colorsObjs.green1,fontStyle:\"italic\"},\"&.doctype\":{...colorsObjs.green1,fontStyle:\"italic\"},\"&.cdata\":{...colorsObjs.green1,fontStyle:\"italic\"},\"&.string\":colorsObjs.red1,\"&.url\":colorsObjs.cyan1,\"&.symbol\":colorsObjs.cyan1,\"&.number\":colorsObjs.cyan1,\"&.boolean\":colorsObjs.cyan1,\"&.variable\":colorsObjs.cyan1,\"&.constant\":colorsObjs.cyan1,\"&.inserted\":colorsObjs.cyan1,\"&.atrule\":colorsObjs.blue1,\"&.keyword\":colorsObjs.blue1,\"&.attr-value\":colorsObjs.blue1,\"&.punctuation\":colorsObjs.gray1,\"&.operator\":colorsObjs.gray1,\"&.function\":colorsObjs.gray1,\"&.deleted\":colorsObjs.red2,\"&.important\":{fontWeight:\"bold\"},\"&.bold\":{fontWeight:\"bold\"},\"&.italic\":{fontStyle:\"italic\"},\"&.class-name\":colorsObjs.cyan2,\"&.selector\":colorsObjs.red3,\"&.attr-name\":colorsObjs.red4,\"&.property\":colorsObjs.red4,\"&.regex\":colorsObjs.red4,\"&.entity\":colorsObjs.red4,\"&.directive.tag .tag\":{background:\"#ffff00\",...colorsObjs.gray1}},\"language-json .token.boolean\":colorsObjs.blue1,\"language-json .token.number\":colorsObjs.blue1,\"language-json .token.property\":colorsObjs.cyan2,namespace:{opacity:.7}}};var lightSyntaxColors={green1:\"#008000\",red1:\"#A31515\",red2:\"#9a050f\",red3:\"#800000\",red4:\"#ff0000\",gray1:\"#393A34\",cyan1:\"#36acaa\",cyan2:\"#2B91AF\",blue1:\"#0000ff\",blue2:\"#00009f\"},darkSyntaxColors={green1:\"#7C7C7C\",red1:\"#92C379\",red2:\"#9a050f\",red3:\"#A8FF60\",red4:\"#96CBFE\",gray1:\"#EDEDED\",cyan1:\"#C6C5FE\",cyan2:\"#FFFFB6\",blue1:\"#B474DD\",blue2:\"#00009f\"},createColors=vars=>({primary:vars.colorPrimary,secondary:vars.colorSecondary,tertiary:color.tertiary,ancillary:color.ancillary,orange:color.orange,gold:color.gold,green:color.green,seafoam:color.seafoam,purple:color.purple,ultraviolet:color.ultraviolet,lightest:color.lightest,lighter:color.lighter,light:color.light,mediumlight:color.mediumlight,medium:color.medium,mediumdark:color.mediumdark,dark:color.dark,darker:color.darker,darkest:color.darkest,border:color.border,positive:color.positive,negative:color.negative,warning:color.warning,critical:color.critical,defaultText:vars.textColor||color.darkest,inverseText:vars.textInverseColor||color.lightest,positiveText:color.positiveText,negativeText:color.negativeText,warningText:color.warningText}),convert=(inherit=themes[getPreferredColorScheme()])=>{let{base,colorPrimary,colorSecondary,appBg,appContentBg,appPreviewBg,appBorderColor,appBorderRadius,fontBase,fontCode,textColor,textInverseColor,barTextColor,barHoverColor,barSelectedColor,barBg,buttonBg,buttonBorder,booleanBg,booleanSelectedBg,inputBg,inputBorder,inputTextColor,inputBorderRadius,brandTitle,brandUrl,brandImage,brandTarget,gridCellSize,...rest}=inherit;return {...rest,base,color:createColors(inherit),background:{app:appBg,bar:barBg,content:appContentBg,preview:appPreviewBg,gridCellSize:gridCellSize||background.gridCellSize,hoverable:background.hoverable,positive:background.positive,negative:background.negative,warning:background.warning,critical:background.critical},typography:{fonts:{base:fontBase,mono:fontCode},weight:typography.weight,size:typography.size},animation,easing,input:{background:inputBg,border:inputBorder,borderRadius:inputBorderRadius,color:inputTextColor},button:{background:buttonBg||inputBg,border:buttonBorder||inputBorder},boolean:{background:booleanBg||inputBorder,selectedBackground:booleanSelectedBg||inputBg},layoutMargin:10,appBorderColor,appBorderRadius,barTextColor,barHoverColor:barHoverColor||colorSecondary,barSelectedColor:barSelectedColor||colorSecondary,barBg,brand:{title:brandTitle,url:brandUrl,image:brandImage||(brandTitle?null:void 0),target:brandTarget},code:create2({colors:base===\"light\"?lightSyntaxColors:darkSyntaxColors,mono:fontCode}),addonActionsTheme:{...base===\"light\"?chromeLight:chromeDark,BASE_FONT_FAMILY:fontCode,BASE_FONT_SIZE:typography.size.s2-1,BASE_LINE_HEIGHT:\"18px\",BASE_BACKGROUND_COLOR:\"transparent\",BASE_COLOR:textColor,ARROW_COLOR:curriedOpacify$1(.2,appBorderColor),ARROW_MARGIN_RIGHT:4,ARROW_FONT_SIZE:8,TREENODE_FONT_FAMILY:fontCode,TREENODE_FONT_SIZE:typography.size.s2-1,TREENODE_LINE_HEIGHT:\"18px\",TREENODE_PADDING_LEFT:12}}};var isEmpty=o=>Object.keys(o).length===0,isObject=o=>o!=null&&typeof o==\"object\",hasOwnProperty2=(o,...args)=>Object.prototype.hasOwnProperty.call(o,...args);var makeObjectWithoutPrototype=()=>Object.create(null);var deletedDiff=(lhs,rhs)=>lhs===rhs||!isObject(lhs)||!isObject(rhs)?{}:Object.keys(lhs).reduce((acc,key)=>{if(hasOwnProperty2(rhs,key)){let difference=deletedDiff(lhs[key],rhs[key]);return isObject(difference)&&isEmpty(difference)||(acc[key]=difference),acc}return acc[key]=void 0,acc},makeObjectWithoutPrototype()),deleted_default=deletedDiff;function dedent(templ){for(var values=[],_i=1;_i{if(!input)return convert(light_default);let missing=deleted_default(light_default,input);return Object.keys(missing).length&&logger.warn(dedent`\n Your theme is missing properties, you should update your theme!\n\n theme-data missing:\n `,missing),convert(input)};var ignoreSsrWarning=\"/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */\";\n\nexport { CacheProvider, ClassNames, Global, ThemeProvider, convert, createCache, createGlobal, createReset, css, ensure, ignoreSsrWarning, isPropValid, jsx, keyframes, newStyled as styled, useTheme, withTheme };\n","/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n}\n\nmodule.exports = arrayEach;\n","var baseIndexOf = require('./_baseIndexOf');\n\n/**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n}\n\nmodule.exports = arrayIncludes;\n","/**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n}\n\nmodule.exports = arrayIncludesWith;\n","var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignValue;\n","var copyObject = require('./_copyObject'),\n keys = require('./keys');\n\n/**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n}\n\nmodule.exports = baseAssign;\n","var copyObject = require('./_copyObject'),\n keysIn = require('./keysIn');\n\n/**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\nfunction baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n}\n\nmodule.exports = baseAssignIn;\n","var Stack = require('./_Stack'),\n arrayEach = require('./_arrayEach'),\n assignValue = require('./_assignValue'),\n baseAssign = require('./_baseAssign'),\n baseAssignIn = require('./_baseAssignIn'),\n cloneBuffer = require('./_cloneBuffer'),\n copyArray = require('./_copyArray'),\n copySymbols = require('./_copySymbols'),\n copySymbolsIn = require('./_copySymbolsIn'),\n getAllKeys = require('./_getAllKeys'),\n getAllKeysIn = require('./_getAllKeysIn'),\n getTag = require('./_getTag'),\n initCloneArray = require('./_initCloneArray'),\n initCloneByTag = require('./_initCloneByTag'),\n initCloneObject = require('./_initCloneObject'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isMap = require('./isMap'),\n isObject = require('./isObject'),\n isSet = require('./isSet'),\n keys = require('./keys'),\n keysIn = require('./keysIn');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values supported by `_.clone`. */\nvar cloneableTags = {};\ncloneableTags[argsTag] = cloneableTags[arrayTag] =\ncloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\ncloneableTags[boolTag] = cloneableTags[dateTag] =\ncloneableTags[float32Tag] = cloneableTags[float64Tag] =\ncloneableTags[int8Tag] = cloneableTags[int16Tag] =\ncloneableTags[int32Tag] = cloneableTags[mapTag] =\ncloneableTags[numberTag] = cloneableTags[objectTag] =\ncloneableTags[regexpTag] = cloneableTags[setTag] =\ncloneableTags[stringTag] = cloneableTags[symbolTag] =\ncloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\ncloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\ncloneableTags[errorTag] = cloneableTags[funcTag] =\ncloneableTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\nfunction baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n}\n\nmodule.exports = baseClone;\n","var isObject = require('./isObject');\n\n/** Built-in value references. */\nvar objectCreate = Object.create;\n\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\nvar baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n}());\n\nmodule.exports = baseCreate;\n","/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = baseFindIndex;\n","var baseFindIndex = require('./_baseFindIndex'),\n baseIsNaN = require('./_baseIsNaN'),\n strictIndexOf = require('./_strictIndexOf');\n\n/**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n}\n\nmodule.exports = baseIndexOf;\n","var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]';\n\n/**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\nfunction baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n}\n\nmodule.exports = baseIsMap;\n","/**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\nfunction baseIsNaN(value) {\n return value !== value;\n}\n\nmodule.exports = baseIsNaN;\n","var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar setTag = '[object Set]';\n\n/**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\nfunction baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n}\n\nmodule.exports = baseIsSet;\n","var isObject = require('./isObject'),\n isPrototype = require('./_isPrototype'),\n nativeKeysIn = require('./_nativeKeysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeysIn;\n","var baseGet = require('./_baseGet'),\n baseSet = require('./_baseSet'),\n castPath = require('./_castPath');\n\n/**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\nfunction basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n}\n\nmodule.exports = basePickBy;\n","var assignValue = require('./_assignValue'),\n castPath = require('./_castPath'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\nfunction baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n return object;\n }\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n}\n\nmodule.exports = baseSet;\n","var SetCache = require('./_SetCache'),\n arrayIncludes = require('./_arrayIncludes'),\n arrayIncludesWith = require('./_arrayIncludesWith'),\n cacheHas = require('./_cacheHas'),\n createSet = require('./_createSet'),\n setToArray = require('./_setToArray');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\nfunction baseUniq(array, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n length = array.length,\n isCommon = true,\n result = [],\n seen = result;\n\n if (comparator) {\n isCommon = false;\n includes = arrayIncludesWith;\n }\n else if (length >= LARGE_ARRAY_SIZE) {\n var set = iteratee ? null : createSet(array);\n if (set) {\n return setToArray(set);\n }\n isCommon = false;\n includes = cacheHas;\n seen = new SetCache;\n }\n else {\n seen = iteratee ? [] : result;\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n }\n else if (!includes(seen, computed, comparator)) {\n if (seen !== result) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n}\n\nmodule.exports = baseUniq;\n","var Uint8Array = require('./_Uint8Array');\n\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n\nmodule.exports = cloneArrayBuffer;\n","var root = require('./_root');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;\n\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n}\n\nmodule.exports = cloneBuffer;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\nfunction cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n}\n\nmodule.exports = cloneDataView;\n","/** Used to match `RegExp` flags from their coerced string values. */\nvar reFlags = /\\w*$/;\n\n/**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\nfunction cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n}\n\nmodule.exports = cloneRegExp;\n","var Symbol = require('./_Symbol');\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\nfunction cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n}\n\nmodule.exports = cloneSymbol;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer');\n\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\nmodule.exports = cloneTypedArray;\n","/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n}\n\nmodule.exports = copyArray;\n","var assignValue = require('./_assignValue'),\n baseAssignValue = require('./_baseAssignValue');\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\nmodule.exports = copyObject;\n","var copyObject = require('./_copyObject'),\n getSymbols = require('./_getSymbols');\n\n/**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n}\n\nmodule.exports = copySymbols;\n","var copyObject = require('./_copyObject'),\n getSymbolsIn = require('./_getSymbolsIn');\n\n/**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\nfunction copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n}\n\nmodule.exports = copySymbolsIn;\n","var Set = require('./_Set'),\n noop = require('./noop'),\n setToArray = require('./_setToArray');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\nvar createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n return new Set(values);\n};\n\nmodule.exports = createSet;\n","var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbolsIn = require('./_getSymbolsIn'),\n keysIn = require('./keysIn');\n\n/**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n}\n\nmodule.exports = getAllKeysIn;\n","var overArg = require('./_overArg');\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nmodule.exports = getPrototype;\n","var arrayPush = require('./_arrayPush'),\n getPrototype = require('./_getPrototype'),\n getSymbols = require('./_getSymbols'),\n stubArray = require('./stubArray');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n};\n\nmodule.exports = getSymbolsIn;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\nfunction initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n}\n\nmodule.exports = initCloneArray;\n","var cloneArrayBuffer = require('./_cloneArrayBuffer'),\n cloneDataView = require('./_cloneDataView'),\n cloneRegExp = require('./_cloneRegExp'),\n cloneSymbol = require('./_cloneSymbol'),\n cloneTypedArray = require('./_cloneTypedArray');\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n}\n\nmodule.exports = initCloneByTag;\n","var baseCreate = require('./_baseCreate'),\n getPrototype = require('./_getPrototype'),\n isPrototype = require('./_isPrototype');\n\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\nfunction initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n}\n\nmodule.exports = initCloneObject;\n","/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = nativeKeysIn;\n","/**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = strictIndexOf;\n","var baseClone = require('./_baseClone');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\nfunction cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n}\n\nmodule.exports = cloneDeep;\n","var baseIsMap = require('./_baseIsMap'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsMap = nodeUtil && nodeUtil.isMap;\n\n/**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\nvar isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\nmodule.exports = isMap;\n","var baseIsSet = require('./_baseIsSet'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsSet = nodeUtil && nodeUtil.isSet;\n\n/**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\nvar isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\nmodule.exports = isSet;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeysIn = require('./_baseKeysIn'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\nmodule.exports = keysIn;\n","/**\n * This method returns `undefined`.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Util\n * @example\n *\n * _.times(2, _.noop);\n * // => [undefined, undefined]\n */\nfunction noop() {\n // No operation performed.\n}\n\nmodule.exports = noop;\n","var arrayMap = require('./_arrayMap'),\n baseIteratee = require('./_baseIteratee'),\n basePickBy = require('./_basePickBy'),\n getAllKeysIn = require('./_getAllKeysIn');\n\n/**\n * Creates an object composed of the `object` properties `predicate` returns\n * truthy for. The predicate is invoked with two arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pickBy(object, _.isNumber);\n * // => { 'a': 1, 'c': 3 }\n */\nfunction pickBy(object, predicate) {\n if (object == null) {\n return {};\n }\n var props = arrayMap(getAllKeysIn(object), function(prop) {\n return [prop];\n });\n predicate = baseIteratee(predicate);\n return basePickBy(object, props, function(value, path) {\n return predicate(value, path[0]);\n });\n}\n\nmodule.exports = pickBy;\n","var baseUniq = require('./_baseUniq');\n\n/**\n * Creates a duplicate-free version of an array, using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons, in which only the first occurrence of each element\n * is kept. The order of result values is determined by the order they occur\n * in the array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniq([2, 1, 2]);\n * // => [2, 1]\n */\nfunction uniq(array) {\n return (array && array.length) ? baseUniq(array) : [];\n}\n\nmodule.exports = uniq;\n","(function(f){if(typeof exports===\"object\"&&typeof module!==\"undefined\"){module.exports=f()}else if(typeof define===\"function\"&&define.amd){define([],f)}else{var g;if(typeof window!==\"undefined\"){g=window}else if(typeof global!==\"undefined\"){g=global}else if(typeof self!==\"undefined\"){g=self}else{g=this}g.memoizerific = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==\"function\"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw f.code=\"MODULE_NOT_FOUND\",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==\"function\"&&require;for(var o=0;o= 0) {\n\t\tthis.lastItem = this.list[index];\n\t\treturn this.list[index].val;\n\t}\n\n\treturn undefined;\n};\n\nSimilar.prototype.set = function(key, val) {\n\tvar index;\n\n\tif (this.lastItem && this.isEqual(this.lastItem.key, key)) {\n\t\tthis.lastItem.val = val;\n\t\treturn this;\n\t}\n\n\tindex = this.indexOf(key);\n\tif (index >= 0) {\n\t\tthis.lastItem = this.list[index];\n\t\tthis.list[index].val = val;\n\t\treturn this;\n\t}\n\n\tthis.lastItem = { key: key, val: val };\n\tthis.list.push(this.lastItem);\n\tthis.size++;\n\n\treturn this;\n};\n\nSimilar.prototype.delete = function(key) {\n\tvar index;\n\n\tif (this.lastItem && this.isEqual(this.lastItem.key, key)) {\n\t\tthis.lastItem = undefined;\n\t}\n\n\tindex = this.indexOf(key);\n\tif (index >= 0) {\n\t\tthis.size--;\n\t\treturn this.list.splice(index, 1)[0];\n\t}\n\n\treturn undefined;\n};\n\n\n// important that has() doesn't use get() in case an existing key has a falsy value, in which case has() would return false\nSimilar.prototype.has = function(key) {\n\tvar index;\n\n\tif (this.lastItem && this.isEqual(this.lastItem.key, key)) {\n\t\treturn true;\n\t}\n\n\tindex = this.indexOf(key);\n\tif (index >= 0) {\n\t\tthis.lastItem = this.list[index];\n\t\treturn true;\n\t}\n\n\treturn false;\n};\n\nSimilar.prototype.forEach = function(callback, thisArg) {\n\tvar i;\n\tfor (i = 0; i < this.size; i++) {\n\t\tcallback.call(thisArg || this, this.list[i].val, this.list[i].key, this);\n\t}\n};\n\nSimilar.prototype.indexOf = function(key) {\n\tvar i;\n\tfor (i = 0; i < this.size; i++) {\n\t\tif (this.isEqual(this.list[i].key, key)) {\n\t\t\treturn i;\n\t\t}\n\t}\n\treturn -1;\n};\n\n// check if the numbers are equal, or whether they are both precisely NaN (isNaN returns true for all non-numbers)\nSimilar.prototype.isEqual = function(val1, val2) {\n\treturn val1 === val2 || (val1 !== val1 && val2 !== val2);\n};\n\nmodule.exports = Similar;\n},{}],3:[function(_dereq_,module,exports){\nvar MapOrSimilar = _dereq_('map-or-similar');\n\nmodule.exports = function (limit) {\n\tvar cache = new MapOrSimilar(undefined === 'true'),\n\t\tlru = [];\n\n\treturn function (fn) {\n\t\tvar memoizerific = function () {\n\t\t\tvar currentCache = cache,\n\t\t\t\tnewMap,\n\t\t\t\tfnResult,\n\t\t\t\targsLengthMinusOne = arguments.length - 1,\n\t\t\t\tlruPath = Array(argsLengthMinusOne + 1),\n\t\t\t\tisMemoized = true,\n\t\t\t\ti;\n\n\t\t\tif ((memoizerific.numArgs || memoizerific.numArgs === 0) && memoizerific.numArgs !== argsLengthMinusOne + 1) {\n\t\t\t\tthrow new Error('Memoizerific functions should always be called with the same number of arguments');\n\t\t\t}\n\n\t\t\t// loop through each argument to traverse the map tree\n\t\t\tfor (i = 0; i < argsLengthMinusOne; i++) {\n\t\t\t\tlruPath[i] = {\n\t\t\t\t\tcacheItem: currentCache,\n\t\t\t\t\targ: arguments[i]\n\t\t\t\t};\n\n\t\t\t\t// climb through the hierarchical map tree until the second-last argument has been found, or an argument is missing.\n\t\t\t\t// if all arguments up to the second-last have been found, this will potentially be a cache hit (determined later)\n\t\t\t\tif (currentCache.has(arguments[i])) {\n\t\t\t\t\tcurrentCache = currentCache.get(arguments[i]);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tisMemoized = false;\n\n\t\t\t\t// make maps until last value\n\t\t\t\tnewMap = new MapOrSimilar(undefined === 'true');\n\t\t\t\tcurrentCache.set(arguments[i], newMap);\n\t\t\t\tcurrentCache = newMap;\n\t\t\t}\n\n\t\t\t// we are at the last arg, check if it is really memoized\n\t\t\tif (isMemoized) {\n\t\t\t\tif (currentCache.has(arguments[argsLengthMinusOne])) {\n\t\t\t\t\tfnResult = currentCache.get(arguments[argsLengthMinusOne]);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tisMemoized = false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!isMemoized) {\n\t\t\t\tfnResult = fn.apply(null, arguments);\n\t\t\t\tcurrentCache.set(arguments[argsLengthMinusOne], fnResult);\n\t\t\t}\n\n\t\t\tif (limit > 0) {\n\t\t\t\tlruPath[argsLengthMinusOne] = {\n\t\t\t\t\tcacheItem: currentCache,\n\t\t\t\t\targ: arguments[argsLengthMinusOne]\n\t\t\t\t};\n\n\t\t\t\tif (isMemoized) {\n\t\t\t\t\tmoveToMostRecentLru(lru, lruPath);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tlru.push(lruPath);\n\t\t\t\t}\n\n\t\t\t\tif (lru.length > limit) {\n\t\t\t\t\tremoveCachedResult(lru.shift());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tmemoizerific.wasMemoized = isMemoized;\n\t\t\tmemoizerific.numArgs = argsLengthMinusOne + 1;\n\n\t\t\treturn fnResult;\n\t\t};\n\n\t\tmemoizerific.limit = limit;\n\t\tmemoizerific.wasMemoized = false;\n\t\tmemoizerific.cache = cache;\n\t\tmemoizerific.lru = lru;\n\n\t\treturn memoizerific;\n\t};\n};\n\n// move current args to most recent position\nfunction moveToMostRecentLru(lru, lruPath) {\n\tvar lruLen = lru.length,\n\t\tlruPathLen = lruPath.length,\n\t\tisMatch,\n\t\ti, ii;\n\n\tfor (i = 0; i < lruLen; i++) {\n\t\tisMatch = true;\n\t\tfor (ii = 0; ii < lruPathLen; ii++) {\n\t\t\tif (!isEqual(lru[i][ii].arg, lruPath[ii].arg)) {\n\t\t\t\tisMatch = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (isMatch) {\n\t\t\tbreak;\n\t\t}\n\t}\n\n\tlru.push(lru.splice(i, 1)[0]);\n}\n\n// remove least recently used cache item and all dead branches\nfunction removeCachedResult(removedLru) {\n\tvar removedLruLen = removedLru.length,\n\t\tcurrentLru = removedLru[removedLruLen - 1],\n\t\ttmp,\n\t\ti;\n\n\tcurrentLru.cacheItem.delete(currentLru.arg);\n\n\t// walk down the tree removing dead branches (size 0) along the way\n\tfor (i = removedLruLen - 2; i >= 0; i--) {\n\t\tcurrentLru = removedLru[i];\n\t\ttmp = currentLru.cacheItem.get(currentLru.arg);\n\n\t\tif (!tmp || !tmp.size) {\n\t\t\tcurrentLru.cacheItem.delete(currentLru.arg);\n\t\t} else {\n\t\t\tbreak;\n\t\t}\n\t}\n}\n\n// check if the numbers are equal, or whether they are both precisely NaN (isNaN returns true for all non-numbers)\nfunction isEqual(val1, val2) {\n\treturn val1 === val2 || (val1 !== val1 && val2 !== val2);\n}\n},{\"map-or-similar\":1}]},{},[3])(3)\n});","/**\n * @license React\n * react-dom.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n/*\n Modernizr 3.0.0pre (Custom Build) | MIT\n*/\n'use strict';var aa=require(\"react\"),ca=require(\"scheduler\");function p(a){for(var b=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=1;cb}return!1}function v(a,b,c,d,e,f,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f;this.removeEmptyString=g}var z={};\n\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(a){z[a]=new v(a,0,!1,a,null,!1,!1)});[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(a){var b=a[0];z[b]=new v(b,1,!1,a[1],null,!1,!1)});[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(a){z[a]=new v(a,2,!1,a.toLowerCase(),null,!1,!1)});\n[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(a){z[a]=new v(a,2,!1,a,null,!1,!1)});\"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function(a){z[a]=new v(a,3,!1,a.toLowerCase(),null,!1,!1)});\n[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(a){z[a]=new v(a,3,!0,a,null,!1,!1)});[\"capture\",\"download\"].forEach(function(a){z[a]=new v(a,4,!1,a,null,!1,!1)});[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(a){z[a]=new v(a,6,!1,a,null,!1,!1)});[\"rowSpan\",\"start\"].forEach(function(a){z[a]=new v(a,5,!1,a.toLowerCase(),null,!1,!1)});var ra=/[\\-:]([a-z])/g;function sa(a){return a[1].toUpperCase()}\n\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach(function(a){var b=a.replace(ra,\nsa);z[b]=new v(b,1,!1,a,null,!1,!1)});\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,\"http://www.w3.org/1999/xlink\",!1,!1)});[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,\"http://www.w3.org/XML/1998/namespace\",!1,!1)});[\"tabIndex\",\"crossOrigin\"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!1,!1)});\nz.xlinkHref=new v(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0,!1);[\"src\",\"href\",\"action\",\"formAction\"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!0,!0)});\nfunction ta(a,b,c,d){var e=z.hasOwnProperty(b)?z[b]:null;if(null!==e?0!==e.type:d||!(2h||e[g]!==f[h]){var k=\"\\n\"+e[g].replace(\" at new \",\" at \");a.displayName&&k.includes(\"\")&&(k=k.replace(\"\",a.displayName));return k}while(1<=g&&0<=h)}break}}}finally{Na=!1,Error.prepareStackTrace=c}return(a=a?a.displayName||a.name:\"\")?Ma(a):\"\"}\nfunction Pa(a){switch(a.tag){case 5:return Ma(a.type);case 16:return Ma(\"Lazy\");case 13:return Ma(\"Suspense\");case 19:return Ma(\"SuspenseList\");case 0:case 2:case 15:return a=Oa(a.type,!1),a;case 11:return a=Oa(a.type.render,!1),a;case 1:return a=Oa(a.type,!0),a;default:return\"\"}}\nfunction Qa(a){if(null==a)return null;if(\"function\"===typeof a)return a.displayName||a.name||null;if(\"string\"===typeof a)return a;switch(a){case ya:return\"Fragment\";case wa:return\"Portal\";case Aa:return\"Profiler\";case za:return\"StrictMode\";case Ea:return\"Suspense\";case Fa:return\"SuspenseList\"}if(\"object\"===typeof a)switch(a.$$typeof){case Ca:return(a.displayName||\"Context\")+\".Consumer\";case Ba:return(a._context.displayName||\"Context\")+\".Provider\";case Da:var b=a.render;a=a.displayName;a||(a=b.displayName||\nb.name||\"\",a=\"\"!==a?\"ForwardRef(\"+a+\")\":\"ForwardRef\");return a;case Ga:return b=a.displayName||null,null!==b?b:Qa(a.type)||\"Memo\";case Ha:b=a._payload;a=a._init;try{return Qa(a(b))}catch(c){}}return null}\nfunction Ra(a){var b=a.type;switch(a.tag){case 24:return\"Cache\";case 9:return(b.displayName||\"Context\")+\".Consumer\";case 10:return(b._context.displayName||\"Context\")+\".Provider\";case 18:return\"DehydratedFragment\";case 11:return a=b.render,a=a.displayName||a.name||\"\",b.displayName||(\"\"!==a?\"ForwardRef(\"+a+\")\":\"ForwardRef\");case 7:return\"Fragment\";case 5:return b;case 4:return\"Portal\";case 3:return\"Root\";case 6:return\"Text\";case 16:return Qa(b);case 8:return b===za?\"StrictMode\":\"Mode\";case 22:return\"Offscreen\";\ncase 12:return\"Profiler\";case 21:return\"Scope\";case 13:return\"Suspense\";case 19:return\"SuspenseList\";case 25:return\"TracingMarker\";case 1:case 0:case 17:case 2:case 14:case 15:if(\"function\"===typeof b)return b.displayName||b.name||null;if(\"string\"===typeof b)return b}return null}function Sa(a){switch(typeof a){case \"boolean\":case \"number\":case \"string\":case \"undefined\":return a;case \"object\":return a;default:return\"\"}}\nfunction Ta(a){var b=a.type;return(a=a.nodeName)&&\"input\"===a.toLowerCase()&&(\"checkbox\"===b||\"radio\"===b)}\nfunction Ua(a){var b=Ta(a)?\"checked\":\"value\",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,b),d=\"\"+a[b];if(!a.hasOwnProperty(b)&&\"undefined\"!==typeof c&&\"function\"===typeof c.get&&\"function\"===typeof c.set){var e=c.get,f=c.set;Object.defineProperty(a,b,{configurable:!0,get:function(){return e.call(this)},set:function(a){d=\"\"+a;f.call(this,a)}});Object.defineProperty(a,b,{enumerable:c.enumerable});return{getValue:function(){return d},setValue:function(a){d=\"\"+a},stopTracking:function(){a._valueTracker=\nnull;delete a[b]}}}}function Va(a){a._valueTracker||(a._valueTracker=Ua(a))}function Wa(a){if(!a)return!1;var b=a._valueTracker;if(!b)return!0;var c=b.getValue();var d=\"\";a&&(d=Ta(a)?a.checked?\"true\":\"false\":a.value);a=d;return a!==c?(b.setValue(a),!0):!1}function Xa(a){a=a||(\"undefined\"!==typeof document?document:void 0);if(\"undefined\"===typeof a)return null;try{return a.activeElement||a.body}catch(b){return a.body}}\nfunction Ya(a,b){var c=b.checked;return A({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=c?c:a._wrapperState.initialChecked})}function Za(a,b){var c=null==b.defaultValue?\"\":b.defaultValue,d=null!=b.checked?b.checked:b.defaultChecked;c=Sa(null!=b.value?b.value:c);a._wrapperState={initialChecked:d,initialValue:c,controlled:\"checkbox\"===b.type||\"radio\"===b.type?null!=b.checked:null!=b.value}}function ab(a,b){b=b.checked;null!=b&&ta(a,\"checked\",b,!1)}\nfunction bb(a,b){ab(a,b);var c=Sa(b.value),d=b.type;if(null!=c)if(\"number\"===d){if(0===c&&\"\"===a.value||a.value!=c)a.value=\"\"+c}else a.value!==\"\"+c&&(a.value=\"\"+c);else if(\"submit\"===d||\"reset\"===d){a.removeAttribute(\"value\");return}b.hasOwnProperty(\"value\")?cb(a,b.type,c):b.hasOwnProperty(\"defaultValue\")&&cb(a,b.type,Sa(b.defaultValue));null==b.checked&&null!=b.defaultChecked&&(a.defaultChecked=!!b.defaultChecked)}\nfunction db(a,b,c){if(b.hasOwnProperty(\"value\")||b.hasOwnProperty(\"defaultValue\")){var d=b.type;if(!(\"submit\"!==d&&\"reset\"!==d||void 0!==b.value&&null!==b.value))return;b=\"\"+a._wrapperState.initialValue;c||b===a.value||(a.value=b);a.defaultValue=b}c=a.name;\"\"!==c&&(a.name=\"\");a.defaultChecked=!!a._wrapperState.initialChecked;\"\"!==c&&(a.name=c)}\nfunction cb(a,b,c){if(\"number\"!==b||Xa(a.ownerDocument)!==a)null==c?a.defaultValue=\"\"+a._wrapperState.initialValue:a.defaultValue!==\"\"+c&&(a.defaultValue=\"\"+c)}var eb=Array.isArray;\nfunction fb(a,b,c,d){a=a.options;if(b){b={};for(var e=0;e\"+b.valueOf().toString()+\"\";for(b=mb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}});\nfunction ob(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}\nvar pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,\nzoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(pb).forEach(function(a){qb.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);pb[b]=pb[a]})});function rb(a,b,c){return null==b||\"boolean\"===typeof b||\"\"===b?\"\":c||\"number\"!==typeof b||0===b||pb.hasOwnProperty(a)&&pb[a]?(\"\"+b).trim():b+\"px\"}\nfunction sb(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf(\"--\"),e=rb(c,b[c],d);\"float\"===c&&(c=\"cssFloat\");d?a.setProperty(c,e):a[c]=e}}var tb=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});\nfunction ub(a,b){if(b){if(tb[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML))throw Error(p(137,a));if(null!=b.dangerouslySetInnerHTML){if(null!=b.children)throw Error(p(60));if(\"object\"!==typeof b.dangerouslySetInnerHTML||!(\"__html\"in b.dangerouslySetInnerHTML))throw Error(p(61));}if(null!=b.style&&\"object\"!==typeof b.style)throw Error(p(62));}}\nfunction vb(a,b){if(-1===a.indexOf(\"-\"))return\"string\"===typeof b.is;switch(a){case \"annotation-xml\":case \"color-profile\":case \"font-face\":case \"font-face-src\":case \"font-face-uri\":case \"font-face-format\":case \"font-face-name\":case \"missing-glyph\":return!1;default:return!0}}var wb=null;function xb(a){a=a.target||a.srcElement||window;a.correspondingUseElement&&(a=a.correspondingUseElement);return 3===a.nodeType?a.parentNode:a}var yb=null,zb=null,Ab=null;\nfunction Bb(a){if(a=Cb(a)){if(\"function\"!==typeof yb)throw Error(p(280));var b=a.stateNode;b&&(b=Db(b),yb(a.stateNode,a.type,b))}}function Eb(a){zb?Ab?Ab.push(a):Ab=[a]:zb=a}function Fb(){if(zb){var a=zb,b=Ab;Ab=zb=null;Bb(a);if(b)for(a=0;a>>=0;return 0===a?32:31-(pc(a)/qc|0)|0}var rc=64,sc=4194304;\nfunction tc(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;\ndefault:return a}}function uc(a,b){var c=a.pendingLanes;if(0===c)return 0;var d=0,e=a.suspendedLanes,f=a.pingedLanes,g=c&268435455;if(0!==g){var h=g&~e;0!==h?d=tc(h):(f&=g,0!==f&&(d=tc(f)))}else g=c&~e,0!==g?d=tc(g):0!==f&&(d=tc(f));if(0===d)return 0;if(0!==b&&b!==d&&0===(b&e)&&(e=d&-d,f=b&-b,e>=f||16===e&&0!==(f&4194240)))return b;0!==(d&4)&&(d|=c&16);b=a.entangledLanes;if(0!==b)for(a=a.entanglements,b&=d;0c;c++)b.push(a);return b}\nfunction Ac(a,b,c){a.pendingLanes|=b;536870912!==b&&(a.suspendedLanes=0,a.pingedLanes=0);a=a.eventTimes;b=31-oc(b);a[b]=c}function Bc(a,b){var c=a.pendingLanes&~b;a.pendingLanes=b;a.suspendedLanes=0;a.pingedLanes=0;a.expiredLanes&=b;a.mutableReadLanes&=b;a.entangledLanes&=b;b=a.entanglements;var d=a.eventTimes;for(a=a.expirationTimes;0=be),ee=String.fromCharCode(32),fe=!1;\nfunction ge(a,b){switch(a){case \"keyup\":return-1!==$d.indexOf(b.keyCode);case \"keydown\":return 229!==b.keyCode;case \"keypress\":case \"mousedown\":case \"focusout\":return!0;default:return!1}}function he(a){a=a.detail;return\"object\"===typeof a&&\"data\"in a?a.data:null}var ie=!1;function je(a,b){switch(a){case \"compositionend\":return he(b);case \"keypress\":if(32!==b.which)return null;fe=!0;return ee;case \"textInput\":return a=b.data,a===ee&&fe?null:a;default:return null}}\nfunction ke(a,b){if(ie)return\"compositionend\"===a||!ae&&ge(a,b)?(a=nd(),md=ld=kd=null,ie=!1,a):null;switch(a){case \"paste\":return null;case \"keypress\":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=Je(c)}}function Le(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?Le(a,b.parentNode):\"contains\"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}\nfunction Me(){for(var a=window,b=Xa();b instanceof a.HTMLIFrameElement;){try{var c=\"string\"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=Xa(a.document)}return b}function Ne(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&(\"input\"===b&&(\"text\"===a.type||\"search\"===a.type||\"tel\"===a.type||\"url\"===a.type||\"password\"===a.type)||\"textarea\"===b||\"true\"===a.contentEditable)}\nfunction Oe(a){var b=Me(),c=a.focusedElem,d=a.selectionRange;if(b!==c&&c&&c.ownerDocument&&Le(c.ownerDocument.documentElement,c)){if(null!==d&&Ne(c))if(b=d.start,a=d.end,void 0===a&&(a=b),\"selectionStart\"in c)c.selectionStart=b,c.selectionEnd=Math.min(a,c.value.length);else if(a=(b=c.ownerDocument||document)&&b.defaultView||window,a.getSelection){a=a.getSelection();var e=c.textContent.length,f=Math.min(d.start,e);d=void 0===d.end?f:Math.min(d.end,e);!a.extend&&f>d&&(e=d,d=f,f=e);e=Ke(c,f);var g=Ke(c,\nd);e&&g&&(1!==a.rangeCount||a.anchorNode!==e.node||a.anchorOffset!==e.offset||a.focusNode!==g.node||a.focusOffset!==g.offset)&&(b=b.createRange(),b.setStart(e.node,e.offset),a.removeAllRanges(),f>d?(a.addRange(b),a.extend(g.node,g.offset)):(b.setEnd(g.node,g.offset),a.addRange(b)))}b=[];for(a=c;a=a.parentNode;)1===a.nodeType&&b.push({element:a,left:a.scrollLeft,top:a.scrollTop});\"function\"===typeof c.focus&&c.focus();for(c=0;c=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;\nfunction Ue(a,b,c){var d=c.window===c?c.document:9===c.nodeType?c:c.ownerDocument;Te||null==Qe||Qe!==Xa(d)||(d=Qe,\"selectionStart\"in d&&Ne(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Se&&Ie(Se,d)||(Se=d,d=oe(Re,\"onSelect\"),0Tf||(a.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(a,b){Tf++;Sf[Tf]=a.current;a.current=b}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(a,b){var c=a.type.contextTypes;if(!c)return Vf;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}\nfunction Zf(a){a=a.childContextTypes;return null!==a&&void 0!==a}function $f(){E(Wf);E(H)}function ag(a,b,c){if(H.current!==Vf)throw Error(p(168));G(H,b);G(Wf,c)}function bg(a,b,c){var d=a.stateNode;b=b.childContextTypes;if(\"function\"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in b))throw Error(p(108,Ra(a)||\"Unknown\",e));return A({},c,d)}\nfunction cg(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Vf;Xf=H.current;G(H,a);G(Wf,Wf.current);return!0}function dg(a,b,c){var d=a.stateNode;if(!d)throw Error(p(169));c?(a=bg(a,b,Xf),d.__reactInternalMemoizedMergedChildContext=a,E(Wf),E(H),G(H,a)):E(Wf);G(Wf,c)}var eg=null,fg=!1,gg=!1;function hg(a){null===eg?eg=[a]:eg.push(a)}function ig(a){fg=!0;hg(a)}\nfunction jg(){if(!gg&&null!==eg){gg=!0;var a=0,b=C;try{var c=eg;for(C=1;a>=g;e-=g;rg=1<<32-oc(b)+e|c<w?(x=u,u=null):x=u.sibling;var n=r(e,u,h[w],k);if(null===n){null===u&&(u=x);break}a&&u&&null===n.alternate&&b(e,u);g=f(n,g,w);null===m?l=n:m.sibling=n;m=n;u=x}if(w===h.length)return c(e,u),I&&tg(e,w),l;if(null===u){for(;ww?(x=m,m=null):x=m.sibling;var t=r(e,m,n.value,k);if(null===t){null===m&&(m=x);break}a&&m&&null===t.alternate&&b(e,m);g=f(t,g,w);null===u?l=t:u.sibling=t;u=t;m=x}if(n.done)return c(e,\nm),I&&tg(e,w),l;if(null===m){for(;!n.done;w++,n=h.next())n=q(e,n.value,k),null!==n&&(g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);I&&tg(e,w);return l}for(m=d(e,m);!n.done;w++,n=h.next())n=y(m,e,w,n.value,k),null!==n&&(a&&null!==n.alternate&&m.delete(null===n.key?w:n.key),g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);a&&m.forEach(function(a){return b(e,a)});I&&tg(e,w);return l}function J(a,d,f,h){\"object\"===typeof f&&null!==f&&f.type===ya&&null===f.key&&(f=f.props.children);if(\"object\"===typeof f&&null!==f){switch(f.$$typeof){case va:a:{for(var k=\nf.key,l=d;null!==l;){if(l.key===k){k=f.type;if(k===ya){if(7===l.tag){c(a,l.sibling);d=e(l,f.props.children);d.return=a;a=d;break a}}else if(l.elementType===k||\"object\"===typeof k&&null!==k&&k.$$typeof===Ha&&uh(k)===l.type){c(a,l.sibling);d=e(l,f.props);d.ref=sh(a,l,f);d.return=a;a=d;break a}c(a,l);break}else b(a,l);l=l.sibling}f.type===ya?(d=Ah(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=yh(f.type,f.key,f.props,null,a.mode,h),h.ref=sh(a,d,f),h.return=a,a=h)}return g(a);case wa:a:{for(l=f.key;null!==\nd;){if(d.key===l)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=zh(f,a.mode,h);d.return=a;a=d}return g(a);case Ha:return l=f._init,J(a,d,l(f._payload),h)}if(eb(f))return n(a,d,f,h);if(Ka(f))return t(a,d,f,h);th(a,f)}return\"string\"===typeof f&&\"\"!==f||\"number\"===typeof f?(f=\"\"+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d):\n(c(a,d),d=xh(f,a.mode,h),d.return=a,a=d),g(a)):c(a,d)}return J}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(a){if(a===Dh)throw Error(p(174));return a}function Ih(a,b){G(Gh,b);G(Fh,a);G(Eh,Dh);a=b.nodeType;switch(a){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:lb(null,\"\");break;default:a=8===a?b.parentNode:b,b=a.namespaceURI||null,a=a.tagName,b=lb(b,a)}E(Eh);G(Eh,b)}function Jh(){E(Eh);E(Fh);E(Gh)}\nfunction Kh(a){Hh(Gh.current);var b=Hh(Eh.current);var c=lb(b,a.type);b!==c&&(G(Fh,a),G(Eh,c))}function Lh(a){Fh.current===a&&(E(Eh),E(Fh))}var M=Uf(0);\nfunction Mh(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||\"$?\"===c.data||\"$!\"===c.data))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.flags&128))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}var Nh=[];\nfunction Oh(){for(var a=0;ac?c:4;a(!0);var d=Qh.transition;Qh.transition={};try{a(!1),b()}finally{C=c,Qh.transition=d}}function Fi(){return di().memoizedState}\nfunction Gi(a,b,c){var d=lh(a);c={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(b,c);else if(c=Yg(a,b,c,d),null!==c){var e=L();mh(c,a,d,e);Ji(c,b,d)}}\nfunction ri(a,b,c){var d=lh(a),e={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(b,e);else{var f=a.alternate;if(0===a.lanes&&(null===f||0===f.lanes)&&(f=b.lastRenderedReducer,null!==f))try{var g=b.lastRenderedState,h=f(g,c);e.hasEagerState=!0;e.eagerState=h;if(He(h,g)){var k=b.interleaved;null===k?(e.next=e,Xg(b)):(e.next=k.next,k.next=e);b.interleaved=e;return}}catch(l){}finally{}c=Yg(a,b,e,d);null!==c&&(e=L(),mh(c,a,d,e),Ji(c,b,d))}}\nfunction Hi(a){var b=a.alternate;return a===N||null!==b&&b===N}function Ii(a,b){Th=Sh=!0;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b}function Ji(a,b,c){if(0!==(c&4194240)){var d=b.lanes;d&=a.pendingLanes;c|=d;b.lanes=c;Cc(a,c)}}\nvar ai={readContext:Vg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useInsertionEffect:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useDeferredValue:Q,useTransition:Q,useMutableSource:Q,useSyncExternalStore:Q,useId:Q,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(a,b){ci().memoizedState=[a,void 0===b?null:b];return a},useContext:Vg,useEffect:vi,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return ti(4194308,\n4,yi.bind(null,b,a),c)},useLayoutEffect:function(a,b){return ti(4194308,4,a,b)},useInsertionEffect:function(a,b){return ti(4,2,a,b)},useMemo:function(a,b){var c=ci();b=void 0===b?null:b;a=a();c.memoizedState=[a,b];return a},useReducer:function(a,b,c){var d=ci();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b};d.queue=a;a=a.dispatch=Gi.bind(null,N,a);return[d.memoizedState,a]},useRef:function(a){var b=\nci();a={current:a};return b.memoizedState=a},useState:qi,useDebugValue:Ai,useDeferredValue:function(a){return ci().memoizedState=a},useTransition:function(){var a=qi(!1),b=a[0];a=Ei.bind(null,a[1]);ci().memoizedState=a;return[b,a]},useMutableSource:function(){},useSyncExternalStore:function(a,b,c){var d=N,e=ci();if(I){if(void 0===c)throw Error(p(407));c=c()}else{c=b();if(null===R)throw Error(p(349));0!==(Rh&30)||ni(d,b,c)}e.memoizedState=c;var f={value:c,getSnapshot:b};e.queue=f;vi(ki.bind(null,d,\nf,a),[a]);d.flags|=2048;li(9,mi.bind(null,d,f,c,b),void 0,null);return c},useId:function(){var a=ci(),b=R.identifierPrefix;if(I){var c=sg;var d=rg;c=(d&~(1<<32-oc(d)-1)).toString(32)+c;b=\":\"+b+\"R\"+c;c=Uh++;0\\x3c/script>\",a=a.removeChild(a.firstChild)):\n\"string\"===typeof d.is?a=g.createElement(c,{is:d.is}):(a=g.createElement(c),\"select\"===c&&(g=a,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,c);a[Of]=b;a[Pf]=d;Aj(a,b,!1,!1);b.stateNode=a;a:{g=vb(c,d);switch(c){case \"dialog\":D(\"cancel\",a);D(\"close\",a);e=d;break;case \"iframe\":case \"object\":case \"embed\":D(\"load\",a);e=d;break;case \"video\":case \"audio\":for(e=0;eHj&&(b.flags|=128,d=!0,Ej(f,!1),b.lanes=4194304)}else{if(!d)if(a=Mh(g),null!==a){if(b.flags|=128,d=!0,c=a.updateQueue,null!==c&&(b.updateQueue=c,b.flags|=4),Ej(f,!0),null===f.tail&&\"hidden\"===f.tailMode&&!g.alternate&&!I)return S(b),null}else 2*B()-f.renderingStartTime>Hj&&1073741824!==c&&(b.flags|=128,d=!0,Ej(f,!1),b.lanes=4194304);f.isBackwards?(g.sibling=b.child,b.child=g):(c=f.last,null!==c?c.sibling=g:b.child=g,f.last=g)}if(null!==f.tail)return b=f.tail,f.rendering=\nb,f.tail=b.sibling,f.renderingStartTime=B(),b.sibling=null,c=M.current,G(M,d?c&1|2:c&1),b;S(b);return null;case 22:case 23:return Ij(),d=null!==b.memoizedState,null!==a&&null!==a.memoizedState!==d&&(b.flags|=8192),d&&0!==(b.mode&1)?0!==(gj&1073741824)&&(S(b),b.subtreeFlags&6&&(b.flags|=8192)):S(b),null;case 24:return null;case 25:return null}throw Error(p(156,b.tag));}\nfunction Jj(a,b){wg(b);switch(b.tag){case 1:return Zf(b.type)&&$f(),a=b.flags,a&65536?(b.flags=a&-65537|128,b):null;case 3:return Jh(),E(Wf),E(H),Oh(),a=b.flags,0!==(a&65536)&&0===(a&128)?(b.flags=a&-65537|128,b):null;case 5:return Lh(b),null;case 13:E(M);a=b.memoizedState;if(null!==a&&null!==a.dehydrated){if(null===b.alternate)throw Error(p(340));Ig()}a=b.flags;return a&65536?(b.flags=a&-65537|128,b):null;case 19:return E(M),null;case 4:return Jh(),null;case 10:return Rg(b.type._context),null;case 22:case 23:return Ij(),\nnull;case 24:return null;default:return null}}var Kj=!1,U=!1,Lj=\"function\"===typeof WeakSet?WeakSet:Set,V=null;function Mj(a,b){var c=a.ref;if(null!==c)if(\"function\"===typeof c)try{c(null)}catch(d){W(a,b,d)}else c.current=null}function Nj(a,b,c){try{c()}catch(d){W(a,b,d)}}var Oj=!1;\nfunction Pj(a,b){Cf=dd;a=Me();if(Ne(a)){if(\"selectionStart\"in a)var c={start:a.selectionStart,end:a.selectionEnd};else a:{c=(c=a.ownerDocument)&&c.defaultView||window;var d=c.getSelection&&c.getSelection();if(d&&0!==d.rangeCount){c=d.anchorNode;var e=d.anchorOffset,f=d.focusNode;d=d.focusOffset;try{c.nodeType,f.nodeType}catch(F){c=null;break a}var g=0,h=-1,k=-1,l=0,m=0,q=a,r=null;b:for(;;){for(var y;;){q!==c||0!==e&&3!==q.nodeType||(h=g+e);q!==f||0!==d&&3!==q.nodeType||(k=g+d);3===q.nodeType&&(g+=\nq.nodeValue.length);if(null===(y=q.firstChild))break;r=q;q=y}for(;;){if(q===a)break b;r===c&&++l===e&&(h=g);r===f&&++m===d&&(k=g);if(null!==(y=q.nextSibling))break;q=r;r=q.parentNode}q=y}c=-1===h||-1===k?null:{start:h,end:k}}else c=null}c=c||{start:0,end:0}}else c=null;Df={focusedElem:a,selectionRange:c};dd=!1;for(V=b;null!==V;)if(b=V,a=b.child,0!==(b.subtreeFlags&1028)&&null!==a)a.return=b,V=a;else for(;null!==V;){b=V;try{var n=b.alternate;if(0!==(b.flags&1024))switch(b.tag){case 0:case 11:case 15:break;\ncase 1:if(null!==n){var t=n.memoizedProps,J=n.memoizedState,x=b.stateNode,w=x.getSnapshotBeforeUpdate(b.elementType===b.type?t:Lg(b.type,t),J);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var u=b.stateNode.containerInfo;1===u.nodeType?u.textContent=\"\":9===u.nodeType&&u.documentElement&&u.removeChild(u.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p(163));}}catch(F){W(b,b.return,F)}a=b.sibling;if(null!==a){a.return=b.return;V=a;break}V=b.return}n=Oj;Oj=!1;return n}\nfunction Qj(a,b,c){var d=b.updateQueue;d=null!==d?d.lastEffect:null;if(null!==d){var e=d=d.next;do{if((e.tag&a)===a){var f=e.destroy;e.destroy=void 0;void 0!==f&&Nj(b,c,f)}e=e.next}while(e!==d)}}function Rj(a,b){b=b.updateQueue;b=null!==b?b.lastEffect:null;if(null!==b){var c=b=b.next;do{if((c.tag&a)===a){var d=c.create;c.destroy=d()}c=c.next}while(c!==b)}}function Sj(a){var b=a.ref;if(null!==b){var c=a.stateNode;switch(a.tag){case 5:a=c;break;default:a=c}\"function\"===typeof b?b(a):b.current=a}}\nfunction Tj(a){var b=a.alternate;null!==b&&(a.alternate=null,Tj(b));a.child=null;a.deletions=null;a.sibling=null;5===a.tag&&(b=a.stateNode,null!==b&&(delete b[Of],delete b[Pf],delete b[of],delete b[Qf],delete b[Rf]));a.stateNode=null;a.return=null;a.dependencies=null;a.memoizedProps=null;a.memoizedState=null;a.pendingProps=null;a.stateNode=null;a.updateQueue=null}function Uj(a){return 5===a.tag||3===a.tag||4===a.tag}\nfunction Vj(a){a:for(;;){for(;null===a.sibling;){if(null===a.return||Uj(a.return))return null;a=a.return}a.sibling.return=a.return;for(a=a.sibling;5!==a.tag&&6!==a.tag&&18!==a.tag;){if(a.flags&2)continue a;if(null===a.child||4===a.tag)continue a;else a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}\nfunction Wj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?8===c.nodeType?c.parentNode.insertBefore(a,b):c.insertBefore(a,b):(8===c.nodeType?(b=c.parentNode,b.insertBefore(a,c)):(b=c,b.appendChild(a)),c=c._reactRootContainer,null!==c&&void 0!==c||null!==b.onclick||(b.onclick=Bf));else if(4!==d&&(a=a.child,null!==a))for(Wj(a,b,c),a=a.sibling;null!==a;)Wj(a,b,c),a=a.sibling}\nfunction Xj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?c.insertBefore(a,b):c.appendChild(a);else if(4!==d&&(a=a.child,null!==a))for(Xj(a,b,c),a=a.sibling;null!==a;)Xj(a,b,c),a=a.sibling}var X=null,Yj=!1;function Zj(a,b,c){for(c=c.child;null!==c;)ak(a,b,c),c=c.sibling}\nfunction ak(a,b,c){if(lc&&\"function\"===typeof lc.onCommitFiberUnmount)try{lc.onCommitFiberUnmount(kc,c)}catch(h){}switch(c.tag){case 5:U||Mj(c,b);case 6:var d=X,e=Yj;X=null;Zj(a,b,c);X=d;Yj=e;null!==X&&(Yj?(a=X,c=c.stateNode,8===a.nodeType?a.parentNode.removeChild(c):a.removeChild(c)):X.removeChild(c.stateNode));break;case 18:null!==X&&(Yj?(a=X,c=c.stateNode,8===a.nodeType?Kf(a.parentNode,c):1===a.nodeType&&Kf(a,c),bd(a)):Kf(X,c.stateNode));break;case 4:d=X;e=Yj;X=c.stateNode.containerInfo;Yj=!0;\nZj(a,b,c);X=d;Yj=e;break;case 0:case 11:case 14:case 15:if(!U&&(d=c.updateQueue,null!==d&&(d=d.lastEffect,null!==d))){e=d=d.next;do{var f=e,g=f.destroy;f=f.tag;void 0!==g&&(0!==(f&2)?Nj(c,b,g):0!==(f&4)&&Nj(c,b,g));e=e.next}while(e!==d)}Zj(a,b,c);break;case 1:if(!U&&(Mj(c,b),d=c.stateNode,\"function\"===typeof d.componentWillUnmount))try{d.props=c.memoizedProps,d.state=c.memoizedState,d.componentWillUnmount()}catch(h){W(c,b,h)}Zj(a,b,c);break;case 21:Zj(a,b,c);break;case 22:c.mode&1?(U=(d=U)||null!==\nc.memoizedState,Zj(a,b,c),U=d):Zj(a,b,c);break;default:Zj(a,b,c)}}function bk(a){var b=a.updateQueue;if(null!==b){a.updateQueue=null;var c=a.stateNode;null===c&&(c=a.stateNode=new Lj);b.forEach(function(b){var d=ck.bind(null,a,b);c.has(b)||(c.add(b),b.then(d,d))})}}\nfunction dk(a,b){var c=b.deletions;if(null!==c)for(var d=0;de&&(e=g);d&=~f}d=e;d=B()-d;d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*mk(d/1960))-d;if(10a?16:a;if(null===xk)var d=!1;else{a=xk;xk=null;yk=0;if(0!==(K&6))throw Error(p(331));var e=K;K|=4;for(V=a.current;null!==V;){var f=V,g=f.child;if(0!==(V.flags&16)){var h=f.deletions;if(null!==h){for(var k=0;kB()-gk?Lk(a,0):sk|=c);Ek(a,b)}function Zk(a,b){0===b&&(0===(a.mode&1)?b=1:(b=sc,sc<<=1,0===(sc&130023424)&&(sc=4194304)));var c=L();a=Zg(a,b);null!==a&&(Ac(a,b,c),Ek(a,c))}function vj(a){var b=a.memoizedState,c=0;null!==b&&(c=b.retryLane);Zk(a,c)}\nfunction ck(a,b){var c=0;switch(a.tag){case 13:var d=a.stateNode;var e=a.memoizedState;null!==e&&(c=e.retryLane);break;case 19:d=a.stateNode;break;default:throw Error(p(314));}null!==d&&d.delete(b);Zk(a,c)}var Wk;\nWk=function(a,b,c){if(null!==a)if(a.memoizedProps!==b.pendingProps||Wf.current)Ug=!0;else{if(0===(a.lanes&c)&&0===(b.flags&128))return Ug=!1,zj(a,b,c);Ug=0!==(a.flags&131072)?!0:!1}else Ug=!1,I&&0!==(b.flags&1048576)&&ug(b,ng,b.index);b.lanes=0;switch(b.tag){case 2:var d=b.type;jj(a,b);a=b.pendingProps;var e=Yf(b,H.current);Tg(b,c);e=Xh(null,b,d,a,e,c);var f=bi();b.flags|=1;\"object\"===typeof e&&null!==e&&\"function\"===typeof e.render&&void 0===e.$$typeof?(b.tag=1,b.memoizedState=null,b.updateQueue=\nnull,Zf(d)?(f=!0,cg(b)):f=!1,b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,ah(b),e.updater=nh,b.stateNode=e,e._reactInternals=b,rh(b,d,a,c),b=kj(null,b,d,!0,f,c)):(b.tag=0,I&&f&&vg(b),Yi(null,b,e,c),b=b.child);return b;case 16:d=b.elementType;a:{jj(a,b);a=b.pendingProps;e=d._init;d=e(d._payload);b.type=d;e=b.tag=$k(d);a=Lg(d,a);switch(e){case 0:b=dj(null,b,d,a,c);break a;case 1:b=ij(null,b,d,a,c);break a;case 11:b=Zi(null,b,d,a,c);break a;case 14:b=aj(null,b,d,Lg(d.type,a),c);break a}throw Error(p(306,\nd,\"\"));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),dj(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),ij(a,b,d,e,c);case 3:a:{lj(b);if(null===a)throw Error(p(387));d=b.pendingProps;f=b.memoizedState;e=f.element;bh(a,b);gh(b,d,null,c);var g=b.memoizedState;d=g.element;if(f.isDehydrated)if(f={element:d,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},b.updateQueue.baseState=\nf,b.memoizedState=f,b.flags&256){e=Ki(Error(p(423)),b);b=mj(a,b,d,c,e);break a}else if(d!==e){e=Ki(Error(p(424)),b);b=mj(a,b,d,c,e);break a}else for(yg=Lf(b.stateNode.containerInfo.firstChild),xg=b,I=!0,zg=null,c=Ch(b,null,d,c),b.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{Ig();if(d===e){b=$i(a,b,c);break a}Yi(a,b,d,c)}b=b.child}return b;case 5:return Kh(b),null===a&&Eg(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,Ef(d,e)?g=null:null!==f&&Ef(d,f)&&(b.flags|=32),\nhj(a,b),Yi(a,b,g,c),b.child;case 6:return null===a&&Eg(b),null;case 13:return pj(a,b,c);case 4:return Ih(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Bh(b,null,d,c):Yi(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),Zi(a,b,d,e,c);case 7:return Yi(a,b,b.pendingProps,c),b.child;case 8:return Yi(a,b,b.pendingProps.children,c),b.child;case 12:return Yi(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;f=b.memoizedProps;\ng=e.value;G(Mg,d._currentValue);d._currentValue=g;if(null!==f)if(He(f.value,g)){if(f.children===e.children&&!Wf.current){b=$i(a,b,c);break a}}else for(f=b.child,null!==f&&(f.return=b);null!==f;){var h=f.dependencies;if(null!==h){g=f.child;for(var k=h.firstContext;null!==k;){if(k.context===d){if(1===f.tag){k=ch(-1,c&-c);k.tag=2;var l=f.updateQueue;if(null!==l){l=l.shared;var m=l.pending;null===m?k.next=k:(k.next=m.next,m.next=k);l.pending=k}}f.lanes|=c;k=f.alternate;null!==k&&(k.lanes|=c);Sg(f.return,\nc,b);h.lanes|=c;break}k=k.next}}else if(10===f.tag)g=f.type===b.type?null:f.child;else if(18===f.tag){g=f.return;if(null===g)throw Error(p(341));g.lanes|=c;h=g.alternate;null!==h&&(h.lanes|=c);Sg(g,c,b);g=f.sibling}else g=f.child;if(null!==g)g.return=f;else for(g=f;null!==g;){if(g===b){g=null;break}f=g.sibling;if(null!==f){f.return=g.return;g=f;break}g=g.return}f=g}Yi(a,b,e.children,c);b=b.child}return b;case 9:return e=b.type,d=b.pendingProps.children,Tg(b,c),e=Vg(e),d=d(e),b.flags|=1,Yi(a,b,d,c),\nb.child;case 14:return d=b.type,e=Lg(d,b.pendingProps),e=Lg(d.type,e),aj(a,b,d,e,c);case 15:return cj(a,b,b.type,b.pendingProps,c);case 17:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),jj(a,b),b.tag=1,Zf(d)?(a=!0,cg(b)):a=!1,Tg(b,c),ph(b,d,e),rh(b,d,e,c),kj(null,b,d,!0,a,c);case 19:return yj(a,b,c);case 22:return ej(a,b,c)}throw Error(p(156,b.tag));};function Gk(a,b){return ac(a,b)}\nfunction al(a,b,c,d){this.tag=a;this.key=c;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.ref=null;this.pendingProps=b;this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=d;this.subtreeFlags=this.flags=0;this.deletions=null;this.childLanes=this.lanes=0;this.alternate=null}function Bg(a,b,c,d){return new al(a,b,c,d)}function bj(a){a=a.prototype;return!(!a||!a.isReactComponent)}\nfunction $k(a){if(\"function\"===typeof a)return bj(a)?1:0;if(void 0!==a&&null!==a){a=a.$$typeof;if(a===Da)return 11;if(a===Ga)return 14}return 2}\nfunction wh(a,b){var c=a.alternate;null===c?(c=Bg(a.tag,b,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=b,c.type=a.type,c.flags=0,c.subtreeFlags=0,c.deletions=null);c.flags=a.flags&14680064;c.childLanes=a.childLanes;c.lanes=a.lanes;c.child=a.child;c.memoizedProps=a.memoizedProps;c.memoizedState=a.memoizedState;c.updateQueue=a.updateQueue;b=a.dependencies;c.dependencies=null===b?null:{lanes:b.lanes,firstContext:b.firstContext};\nc.sibling=a.sibling;c.index=a.index;c.ref=a.ref;return c}\nfunction yh(a,b,c,d,e,f){var g=2;d=a;if(\"function\"===typeof a)bj(a)&&(g=1);else if(\"string\"===typeof a)g=5;else a:switch(a){case ya:return Ah(c.children,e,f,b);case za:g=8;e|=8;break;case Aa:return a=Bg(12,c,b,e|2),a.elementType=Aa,a.lanes=f,a;case Ea:return a=Bg(13,c,b,e),a.elementType=Ea,a.lanes=f,a;case Fa:return a=Bg(19,c,b,e),a.elementType=Fa,a.lanes=f,a;case Ia:return qj(c,e,f,b);default:if(\"object\"===typeof a&&null!==a)switch(a.$$typeof){case Ba:g=10;break a;case Ca:g=9;break a;case Da:g=11;\nbreak a;case Ga:g=14;break a;case Ha:g=16;d=null;break a}throw Error(p(130,null==a?a:typeof a,\"\"));}b=Bg(g,c,b,e);b.elementType=a;b.type=d;b.lanes=f;return b}function Ah(a,b,c,d){a=Bg(7,a,d,b);a.lanes=c;return a}function qj(a,b,c,d){a=Bg(22,a,d,b);a.elementType=Ia;a.lanes=c;a.stateNode={isHidden:!1};return a}function xh(a,b,c){a=Bg(6,a,null,b);a.lanes=c;return a}\nfunction zh(a,b,c){b=Bg(4,null!==a.children?a.children:[],a.key,b);b.lanes=c;b.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation};return b}\nfunction bl(a,b,c,d,e){this.tag=b;this.containerInfo=a;this.finishedWork=this.pingCache=this.current=this.pendingChildren=null;this.timeoutHandle=-1;this.callbackNode=this.pendingContext=this.context=null;this.callbackPriority=0;this.eventTimes=zc(0);this.expirationTimes=zc(-1);this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0;this.entanglements=zc(0);this.identifierPrefix=d;this.onRecoverableError=e;this.mutableSourceEagerHydrationData=\nnull}function cl(a,b,c,d,e,f,g,h,k){a=new bl(a,b,c,h,k);1===b?(b=1,!0===f&&(b|=8)):b=0;f=Bg(3,null,null,b);a.current=f;f.stateNode=a;f.memoizedState={element:d,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null};ah(f);return a}function dl(a,b,c){var d=3>>1,e=a[d];if(0>>1;dg(C,c))ng(x,C)?(a[d]=x,a[n]=c,d=n):(a[d]=C,a[m]=c,d=m);else if(ng(x,c))a[d]=x,a[n]=c,d=n;else break a}}return b}\nfunction g(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}if(\"object\"===typeof performance&&\"function\"===typeof performance.now){var l=performance;exports.unstable_now=function(){return l.now()}}else{var p=Date,q=p.now();exports.unstable_now=function(){return p.now()-q}}var r=[],t=[],u=1,v=null,y=3,z=!1,A=!1,B=!1,D=\"function\"===typeof setTimeout?setTimeout:null,E=\"function\"===typeof clearTimeout?clearTimeout:null,F=\"undefined\"!==typeof setImmediate?setImmediate:null;\n\"undefined\"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function G(a){for(var b=h(t);null!==b;){if(null===b.callback)k(t);else if(b.startTime<=a)k(t),b.sortIndex=b.expirationTime,f(r,b);else break;b=h(t)}}function H(a){B=!1;G(a);if(!A)if(null!==h(r))A=!0,I(J);else{var b=h(t);null!==b&&K(H,b.startTime-a)}}\nfunction J(a,b){A=!1;B&&(B=!1,E(L),L=-1);z=!0;var c=y;try{G(b);for(v=h(r);null!==v&&(!(v.expirationTime>b)||a&&!M());){var d=v.callback;if(\"function\"===typeof d){v.callback=null;y=v.priorityLevel;var e=d(v.expirationTime<=b);b=exports.unstable_now();\"function\"===typeof e?v.callback=e:v===h(r)&&k(r);G(b)}else k(r);v=h(r)}if(null!==v)var w=!0;else{var m=h(t);null!==m&&K(H,m.startTime-b);w=!1}return w}finally{v=null,y=c,z=!1}}var N=!1,O=null,L=-1,P=5,Q=-1;\nfunction M(){return exports.unstable_now()-Qa||125d?(a.sortIndex=c,f(t,a),null===h(r)&&a===h(t)&&(B?(E(L),L=-1):B=!0,K(H,c-d))):(a.sortIndex=e,f(r,a),A||z||(A=!0,I(J)));return a};\nexports.unstable_shouldYield=M;exports.unstable_wrapCallback=function(a){var b=y;return function(){var c=y;y=b;try{return a.apply(this,arguments)}finally{y=c}}};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.min.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n","var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __commonJS = (cb, mod) => function __require() {\n return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\n\n// src/dom-event.ts\nvar eventProperties = [\n \"bubbles\",\n \"cancelBubble\",\n \"cancelable\",\n \"composed\",\n \"currentTarget\",\n \"defaultPrevented\",\n \"eventPhase\",\n \"isTrusted\",\n \"returnValue\",\n \"srcElement\",\n \"target\",\n \"timeStamp\",\n \"type\"\n];\nvar customEventSpecificProperties = [\"detail\"];\nfunction extractEventHiddenProperties(event) {\n const rebuildEvent = eventProperties.filter((value) => event[value] !== void 0).reduce((acc, value) => {\n return { ...acc, [value]: event[value] };\n }, {});\n if (event instanceof CustomEvent) {\n customEventSpecificProperties.filter((value) => event[value] !== void 0).forEach((value) => {\n rebuildEvent[value] = event[value];\n });\n }\n return rebuildEvent;\n}\n\nexport {\n __commonJS,\n __toESM,\n extractEventHiddenProperties\n};\n","import {\n __commonJS,\n __toESM,\n extractEventHiddenProperties\n} from \"./chunk-465TF3XA.mjs\";\n\n// node_modules/has-symbols/shams.js\nvar require_shams = __commonJS({\n \"node_modules/has-symbols/shams.js\"(exports, module) {\n \"use strict\";\n module.exports = function hasSymbols() {\n if (typeof Symbol !== \"function\" || typeof Object.getOwnPropertySymbols !== \"function\") {\n return false;\n }\n if (typeof Symbol.iterator === \"symbol\") {\n return true;\n }\n var obj = {};\n var sym = Symbol(\"test\");\n var symObj = Object(sym);\n if (typeof sym === \"string\") {\n return false;\n }\n if (Object.prototype.toString.call(sym) !== \"[object Symbol]\") {\n return false;\n }\n if (Object.prototype.toString.call(symObj) !== \"[object Symbol]\") {\n return false;\n }\n var symVal = 42;\n obj[sym] = symVal;\n for (sym in obj) {\n return false;\n }\n if (typeof Object.keys === \"function\" && Object.keys(obj).length !== 0) {\n return false;\n }\n if (typeof Object.getOwnPropertyNames === \"function\" && Object.getOwnPropertyNames(obj).length !== 0) {\n return false;\n }\n var syms = Object.getOwnPropertySymbols(obj);\n if (syms.length !== 1 || syms[0] !== sym) {\n return false;\n }\n if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {\n return false;\n }\n if (typeof Object.getOwnPropertyDescriptor === \"function\") {\n var descriptor = Object.getOwnPropertyDescriptor(obj, sym);\n if (descriptor.value !== symVal || descriptor.enumerable !== true) {\n return false;\n }\n }\n return true;\n };\n }\n});\n\n// node_modules/has-symbols/index.js\nvar require_has_symbols = __commonJS({\n \"node_modules/has-symbols/index.js\"(exports, module) {\n \"use strict\";\n var origSymbol = typeof Symbol !== \"undefined\" && Symbol;\n var hasSymbolSham = require_shams();\n module.exports = function hasNativeSymbols() {\n if (typeof origSymbol !== \"function\") {\n return false;\n }\n if (typeof Symbol !== \"function\") {\n return false;\n }\n if (typeof origSymbol(\"foo\") !== \"symbol\") {\n return false;\n }\n if (typeof Symbol(\"bar\") !== \"symbol\") {\n return false;\n }\n return hasSymbolSham();\n };\n }\n});\n\n// node_modules/function-bind/implementation.js\nvar require_implementation = __commonJS({\n \"node_modules/function-bind/implementation.js\"(exports, module) {\n \"use strict\";\n var ERROR_MESSAGE = \"Function.prototype.bind called on incompatible \";\n var slice = Array.prototype.slice;\n var toStr = Object.prototype.toString;\n var funcType = \"[object Function]\";\n module.exports = function bind(that) {\n var target = this;\n if (typeof target !== \"function\" || toStr.call(target) !== funcType) {\n throw new TypeError(ERROR_MESSAGE + target);\n }\n var args2 = slice.call(arguments, 1);\n var bound;\n var binder = function() {\n if (this instanceof bound) {\n var result2 = target.apply(\n this,\n args2.concat(slice.call(arguments))\n );\n if (Object(result2) === result2) {\n return result2;\n }\n return this;\n } else {\n return target.apply(\n that,\n args2.concat(slice.call(arguments))\n );\n }\n };\n var boundLength = Math.max(0, target.length - args2.length);\n var boundArgs = [];\n for (var i = 0; i < boundLength; i++) {\n boundArgs.push(\"$\" + i);\n }\n bound = Function(\"binder\", \"return function (\" + boundArgs.join(\",\") + \"){ return binder.apply(this,arguments); }\")(binder);\n if (target.prototype) {\n var Empty = function Empty2() {\n };\n Empty.prototype = target.prototype;\n bound.prototype = new Empty();\n Empty.prototype = null;\n }\n return bound;\n };\n }\n});\n\n// node_modules/function-bind/index.js\nvar require_function_bind = __commonJS({\n \"node_modules/function-bind/index.js\"(exports, module) {\n \"use strict\";\n var implementation = require_implementation();\n module.exports = Function.prototype.bind || implementation;\n }\n});\n\n// node_modules/has/src/index.js\nvar require_src = __commonJS({\n \"node_modules/has/src/index.js\"(exports, module) {\n \"use strict\";\n var bind = require_function_bind();\n module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);\n }\n});\n\n// node_modules/get-intrinsic/index.js\nvar require_get_intrinsic = __commonJS({\n \"node_modules/get-intrinsic/index.js\"(exports, module) {\n \"use strict\";\n var undefined2;\n var $SyntaxError = SyntaxError;\n var $Function = Function;\n var $TypeError = TypeError;\n var getEvalledConstructor = function(expressionSyntax) {\n try {\n return $Function('\"use strict\"; return (' + expressionSyntax + \").constructor;\")();\n } catch (e) {\n }\n };\n var $gOPD = Object.getOwnPropertyDescriptor;\n if ($gOPD) {\n try {\n $gOPD({}, \"\");\n } catch (e) {\n $gOPD = null;\n }\n }\n var throwTypeError = function() {\n throw new $TypeError();\n };\n var ThrowTypeError = $gOPD ? function() {\n try {\n arguments.callee;\n return throwTypeError;\n } catch (calleeThrows) {\n try {\n return $gOPD(arguments, \"callee\").get;\n } catch (gOPDthrows) {\n return throwTypeError;\n }\n }\n }() : throwTypeError;\n var hasSymbols = require_has_symbols()();\n var getProto = Object.getPrototypeOf || function(x) {\n return x.__proto__;\n };\n var needsEval = {};\n var TypedArray = typeof Uint8Array === \"undefined\" ? undefined2 : getProto(Uint8Array);\n var INTRINSICS = {\n \"%AggregateError%\": typeof AggregateError === \"undefined\" ? undefined2 : AggregateError,\n \"%Array%\": Array,\n \"%ArrayBuffer%\": typeof ArrayBuffer === \"undefined\" ? undefined2 : ArrayBuffer,\n \"%ArrayIteratorPrototype%\": hasSymbols ? getProto([][Symbol.iterator]()) : undefined2,\n \"%AsyncFromSyncIteratorPrototype%\": undefined2,\n \"%AsyncFunction%\": needsEval,\n \"%AsyncGenerator%\": needsEval,\n \"%AsyncGeneratorFunction%\": needsEval,\n \"%AsyncIteratorPrototype%\": needsEval,\n \"%Atomics%\": typeof Atomics === \"undefined\" ? undefined2 : Atomics,\n \"%BigInt%\": typeof BigInt === \"undefined\" ? undefined2 : BigInt,\n \"%Boolean%\": Boolean,\n \"%DataView%\": typeof DataView === \"undefined\" ? undefined2 : DataView,\n \"%Date%\": Date,\n \"%decodeURI%\": decodeURI,\n \"%decodeURIComponent%\": decodeURIComponent,\n \"%encodeURI%\": encodeURI,\n \"%encodeURIComponent%\": encodeURIComponent,\n \"%Error%\": Error,\n \"%eval%\": eval,\n \"%EvalError%\": EvalError,\n \"%Float32Array%\": typeof Float32Array === \"undefined\" ? undefined2 : Float32Array,\n \"%Float64Array%\": typeof Float64Array === \"undefined\" ? undefined2 : Float64Array,\n \"%FinalizationRegistry%\": typeof FinalizationRegistry === \"undefined\" ? undefined2 : FinalizationRegistry,\n \"%Function%\": $Function,\n \"%GeneratorFunction%\": needsEval,\n \"%Int8Array%\": typeof Int8Array === \"undefined\" ? undefined2 : Int8Array,\n \"%Int16Array%\": typeof Int16Array === \"undefined\" ? undefined2 : Int16Array,\n \"%Int32Array%\": typeof Int32Array === \"undefined\" ? undefined2 : Int32Array,\n \"%isFinite%\": isFinite,\n \"%isNaN%\": isNaN,\n \"%IteratorPrototype%\": hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined2,\n \"%JSON%\": typeof JSON === \"object\" ? JSON : undefined2,\n \"%Map%\": typeof Map === \"undefined\" ? undefined2 : Map,\n \"%MapIteratorPrototype%\": typeof Map === \"undefined\" || !hasSymbols ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),\n \"%Math%\": Math,\n \"%Number%\": Number,\n \"%Object%\": Object,\n \"%parseFloat%\": parseFloat,\n \"%parseInt%\": parseInt,\n \"%Promise%\": typeof Promise === \"undefined\" ? undefined2 : Promise,\n \"%Proxy%\": typeof Proxy === \"undefined\" ? undefined2 : Proxy,\n \"%RangeError%\": RangeError,\n \"%ReferenceError%\": ReferenceError,\n \"%Reflect%\": typeof Reflect === \"undefined\" ? undefined2 : Reflect,\n \"%RegExp%\": RegExp,\n \"%Set%\": typeof Set === \"undefined\" ? undefined2 : Set,\n \"%SetIteratorPrototype%\": typeof Set === \"undefined\" || !hasSymbols ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),\n \"%SharedArrayBuffer%\": typeof SharedArrayBuffer === \"undefined\" ? undefined2 : SharedArrayBuffer,\n \"%String%\": String,\n \"%StringIteratorPrototype%\": hasSymbols ? getProto(\"\"[Symbol.iterator]()) : undefined2,\n \"%Symbol%\": hasSymbols ? Symbol : undefined2,\n \"%SyntaxError%\": $SyntaxError,\n \"%ThrowTypeError%\": ThrowTypeError,\n \"%TypedArray%\": TypedArray,\n \"%TypeError%\": $TypeError,\n \"%Uint8Array%\": typeof Uint8Array === \"undefined\" ? undefined2 : Uint8Array,\n \"%Uint8ClampedArray%\": typeof Uint8ClampedArray === \"undefined\" ? undefined2 : Uint8ClampedArray,\n \"%Uint16Array%\": typeof Uint16Array === \"undefined\" ? undefined2 : Uint16Array,\n \"%Uint32Array%\": typeof Uint32Array === \"undefined\" ? undefined2 : Uint32Array,\n \"%URIError%\": URIError,\n \"%WeakMap%\": typeof WeakMap === \"undefined\" ? undefined2 : WeakMap,\n \"%WeakRef%\": typeof WeakRef === \"undefined\" ? undefined2 : WeakRef,\n \"%WeakSet%\": typeof WeakSet === \"undefined\" ? undefined2 : WeakSet\n };\n var doEval = function doEval2(name2) {\n var value2;\n if (name2 === \"%AsyncFunction%\") {\n value2 = getEvalledConstructor(\"async function () {}\");\n } else if (name2 === \"%GeneratorFunction%\") {\n value2 = getEvalledConstructor(\"function* () {}\");\n } else if (name2 === \"%AsyncGeneratorFunction%\") {\n value2 = getEvalledConstructor(\"async function* () {}\");\n } else if (name2 === \"%AsyncGenerator%\") {\n var fn = doEval2(\"%AsyncGeneratorFunction%\");\n if (fn) {\n value2 = fn.prototype;\n }\n } else if (name2 === \"%AsyncIteratorPrototype%\") {\n var gen = doEval2(\"%AsyncGenerator%\");\n if (gen) {\n value2 = getProto(gen.prototype);\n }\n }\n INTRINSICS[name2] = value2;\n return value2;\n };\n var LEGACY_ALIASES = {\n \"%ArrayBufferPrototype%\": [\"ArrayBuffer\", \"prototype\"],\n \"%ArrayPrototype%\": [\"Array\", \"prototype\"],\n \"%ArrayProto_entries%\": [\"Array\", \"prototype\", \"entries\"],\n \"%ArrayProto_forEach%\": [\"Array\", \"prototype\", \"forEach\"],\n \"%ArrayProto_keys%\": [\"Array\", \"prototype\", \"keys\"],\n \"%ArrayProto_values%\": [\"Array\", \"prototype\", \"values\"],\n \"%AsyncFunctionPrototype%\": [\"AsyncFunction\", \"prototype\"],\n \"%AsyncGenerator%\": [\"AsyncGeneratorFunction\", \"prototype\"],\n \"%AsyncGeneratorPrototype%\": [\"AsyncGeneratorFunction\", \"prototype\", \"prototype\"],\n \"%BooleanPrototype%\": [\"Boolean\", \"prototype\"],\n \"%DataViewPrototype%\": [\"DataView\", \"prototype\"],\n \"%DatePrototype%\": [\"Date\", \"prototype\"],\n \"%ErrorPrototype%\": [\"Error\", \"prototype\"],\n \"%EvalErrorPrototype%\": [\"EvalError\", \"prototype\"],\n \"%Float32ArrayPrototype%\": [\"Float32Array\", \"prototype\"],\n \"%Float64ArrayPrototype%\": [\"Float64Array\", \"prototype\"],\n \"%FunctionPrototype%\": [\"Function\", \"prototype\"],\n \"%Generator%\": [\"GeneratorFunction\", \"prototype\"],\n \"%GeneratorPrototype%\": [\"GeneratorFunction\", \"prototype\", \"prototype\"],\n \"%Int8ArrayPrototype%\": [\"Int8Array\", \"prototype\"],\n \"%Int16ArrayPrototype%\": [\"Int16Array\", \"prototype\"],\n \"%Int32ArrayPrototype%\": [\"Int32Array\", \"prototype\"],\n \"%JSONParse%\": [\"JSON\", \"parse\"],\n \"%JSONStringify%\": [\"JSON\", \"stringify\"],\n \"%MapPrototype%\": [\"Map\", \"prototype\"],\n \"%NumberPrototype%\": [\"Number\", \"prototype\"],\n \"%ObjectPrototype%\": [\"Object\", \"prototype\"],\n \"%ObjProto_toString%\": [\"Object\", \"prototype\", \"toString\"],\n \"%ObjProto_valueOf%\": [\"Object\", \"prototype\", \"valueOf\"],\n \"%PromisePrototype%\": [\"Promise\", \"prototype\"],\n \"%PromiseProto_then%\": [\"Promise\", \"prototype\", \"then\"],\n \"%Promise_all%\": [\"Promise\", \"all\"],\n \"%Promise_reject%\": [\"Promise\", \"reject\"],\n \"%Promise_resolve%\": [\"Promise\", \"resolve\"],\n \"%RangeErrorPrototype%\": [\"RangeError\", \"prototype\"],\n \"%ReferenceErrorPrototype%\": [\"ReferenceError\", \"prototype\"],\n \"%RegExpPrototype%\": [\"RegExp\", \"prototype\"],\n \"%SetPrototype%\": [\"Set\", \"prototype\"],\n \"%SharedArrayBufferPrototype%\": [\"SharedArrayBuffer\", \"prototype\"],\n \"%StringPrototype%\": [\"String\", \"prototype\"],\n \"%SymbolPrototype%\": [\"Symbol\", \"prototype\"],\n \"%SyntaxErrorPrototype%\": [\"SyntaxError\", \"prototype\"],\n \"%TypedArrayPrototype%\": [\"TypedArray\", \"prototype\"],\n \"%TypeErrorPrototype%\": [\"TypeError\", \"prototype\"],\n \"%Uint8ArrayPrototype%\": [\"Uint8Array\", \"prototype\"],\n \"%Uint8ClampedArrayPrototype%\": [\"Uint8ClampedArray\", \"prototype\"],\n \"%Uint16ArrayPrototype%\": [\"Uint16Array\", \"prototype\"],\n \"%Uint32ArrayPrototype%\": [\"Uint32Array\", \"prototype\"],\n \"%URIErrorPrototype%\": [\"URIError\", \"prototype\"],\n \"%WeakMapPrototype%\": [\"WeakMap\", \"prototype\"],\n \"%WeakSetPrototype%\": [\"WeakSet\", \"prototype\"]\n };\n var bind = require_function_bind();\n var hasOwn = require_src();\n var $concat = bind.call(Function.call, Array.prototype.concat);\n var $spliceApply = bind.call(Function.apply, Array.prototype.splice);\n var $replace = bind.call(Function.call, String.prototype.replace);\n var $strSlice = bind.call(Function.call, String.prototype.slice);\n var $exec = bind.call(Function.call, RegExp.prototype.exec);\n var rePropName2 = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\n var reEscapeChar2 = /\\\\(\\\\)?/g;\n var stringToPath2 = function stringToPath3(string) {\n var first = $strSlice(string, 0, 1);\n var last = $strSlice(string, -1);\n if (first === \"%\" && last !== \"%\") {\n throw new $SyntaxError(\"invalid intrinsic syntax, expected closing `%`\");\n } else if (last === \"%\" && first !== \"%\") {\n throw new $SyntaxError(\"invalid intrinsic syntax, expected opening `%`\");\n }\n var result2 = [];\n $replace(string, rePropName2, function(match, number, quote, subString) {\n result2[result2.length] = quote ? $replace(subString, reEscapeChar2, \"$1\") : number || match;\n });\n return result2;\n };\n var getBaseIntrinsic = function getBaseIntrinsic2(name2, allowMissing) {\n var intrinsicName = name2;\n var alias;\n if (hasOwn(LEGACY_ALIASES, intrinsicName)) {\n alias = LEGACY_ALIASES[intrinsicName];\n intrinsicName = \"%\" + alias[0] + \"%\";\n }\n if (hasOwn(INTRINSICS, intrinsicName)) {\n var value2 = INTRINSICS[intrinsicName];\n if (value2 === needsEval) {\n value2 = doEval(intrinsicName);\n }\n if (typeof value2 === \"undefined\" && !allowMissing) {\n throw new $TypeError(\"intrinsic \" + name2 + \" exists, but is not available. Please file an issue!\");\n }\n return {\n alias,\n name: intrinsicName,\n value: value2\n };\n }\n throw new $SyntaxError(\"intrinsic \" + name2 + \" does not exist!\");\n };\n module.exports = function GetIntrinsic(name2, allowMissing) {\n if (typeof name2 !== \"string\" || name2.length === 0) {\n throw new $TypeError(\"intrinsic name must be a non-empty string\");\n }\n if (arguments.length > 1 && typeof allowMissing !== \"boolean\") {\n throw new $TypeError('\"allowMissing\" argument must be a boolean');\n }\n if ($exec(/^%?[^%]*%?$/, name2) === null) {\n throw new $SyntaxError(\"`%` may not be present anywhere but at the beginning and end of the intrinsic name\");\n }\n var parts = stringToPath2(name2);\n var intrinsicBaseName = parts.length > 0 ? parts[0] : \"\";\n var intrinsic = getBaseIntrinsic(\"%\" + intrinsicBaseName + \"%\", allowMissing);\n var intrinsicRealName = intrinsic.name;\n var value2 = intrinsic.value;\n var skipFurtherCaching = false;\n var alias = intrinsic.alias;\n if (alias) {\n intrinsicBaseName = alias[0];\n $spliceApply(parts, $concat([0, 1], alias));\n }\n for (var i = 1, isOwn = true; i < parts.length; i += 1) {\n var part = parts[i];\n var first = $strSlice(part, 0, 1);\n var last = $strSlice(part, -1);\n if ((first === '\"' || first === \"'\" || first === \"`\" || (last === '\"' || last === \"'\" || last === \"`\")) && first !== last) {\n throw new $SyntaxError(\"property names with quotes must have matching quotes\");\n }\n if (part === \"constructor\" || !isOwn) {\n skipFurtherCaching = true;\n }\n intrinsicBaseName += \".\" + part;\n intrinsicRealName = \"%\" + intrinsicBaseName + \"%\";\n if (hasOwn(INTRINSICS, intrinsicRealName)) {\n value2 = INTRINSICS[intrinsicRealName];\n } else if (value2 != null) {\n if (!(part in value2)) {\n if (!allowMissing) {\n throw new $TypeError(\"base intrinsic for \" + name2 + \" exists, but the property is not available.\");\n }\n return void 0;\n }\n if ($gOPD && i + 1 >= parts.length) {\n var desc = $gOPD(value2, part);\n isOwn = !!desc;\n if (isOwn && \"get\" in desc && !(\"originalValue\" in desc.get)) {\n value2 = desc.get;\n } else {\n value2 = value2[part];\n }\n } else {\n isOwn = hasOwn(value2, part);\n value2 = value2[part];\n }\n if (isOwn && !skipFurtherCaching) {\n INTRINSICS[intrinsicRealName] = value2;\n }\n }\n }\n return value2;\n };\n }\n});\n\n// node_modules/call-bind/index.js\nvar require_call_bind = __commonJS({\n \"node_modules/call-bind/index.js\"(exports, module) {\n \"use strict\";\n var bind = require_function_bind();\n var GetIntrinsic = require_get_intrinsic();\n var $apply = GetIntrinsic(\"%Function.prototype.apply%\");\n var $call = GetIntrinsic(\"%Function.prototype.call%\");\n var $reflectApply = GetIntrinsic(\"%Reflect.apply%\", true) || bind.call($call, $apply);\n var $gOPD = GetIntrinsic(\"%Object.getOwnPropertyDescriptor%\", true);\n var $defineProperty = GetIntrinsic(\"%Object.defineProperty%\", true);\n var $max = GetIntrinsic(\"%Math.max%\");\n if ($defineProperty) {\n try {\n $defineProperty({}, \"a\", { value: 1 });\n } catch (e) {\n $defineProperty = null;\n }\n }\n module.exports = function callBind(originalFunction) {\n var func = $reflectApply(bind, $call, arguments);\n if ($gOPD && $defineProperty) {\n var desc = $gOPD(func, \"length\");\n if (desc.configurable) {\n $defineProperty(\n func,\n \"length\",\n { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }\n );\n }\n }\n return func;\n };\n var applyBind = function applyBind2() {\n return $reflectApply(bind, $apply, arguments);\n };\n if ($defineProperty) {\n $defineProperty(module.exports, \"apply\", { value: applyBind });\n } else {\n module.exports.apply = applyBind;\n }\n }\n});\n\n// node_modules/call-bind/callBound.js\nvar require_callBound = __commonJS({\n \"node_modules/call-bind/callBound.js\"(exports, module) {\n \"use strict\";\n var GetIntrinsic = require_get_intrinsic();\n var callBind = require_call_bind();\n var $indexOf = callBind(GetIntrinsic(\"String.prototype.indexOf\"));\n module.exports = function callBoundIntrinsic(name2, allowMissing) {\n var intrinsic = GetIntrinsic(name2, !!allowMissing);\n if (typeof intrinsic === \"function\" && $indexOf(name2, \".prototype.\") > -1) {\n return callBind(intrinsic);\n }\n return intrinsic;\n };\n }\n});\n\n// node_modules/has-tostringtag/shams.js\nvar require_shams2 = __commonJS({\n \"node_modules/has-tostringtag/shams.js\"(exports, module) {\n \"use strict\";\n var hasSymbols = require_shams();\n module.exports = function hasToStringTagShams() {\n return hasSymbols() && !!Symbol.toStringTag;\n };\n }\n});\n\n// node_modules/is-regex/index.js\nvar require_is_regex = __commonJS({\n \"node_modules/is-regex/index.js\"(exports, module) {\n \"use strict\";\n var callBound = require_callBound();\n var hasToStringTag = require_shams2()();\n var has;\n var $exec;\n var isRegexMarker;\n var badStringifier;\n if (hasToStringTag) {\n has = callBound(\"Object.prototype.hasOwnProperty\");\n $exec = callBound(\"RegExp.prototype.exec\");\n isRegexMarker = {};\n throwRegexMarker = function() {\n throw isRegexMarker;\n };\n badStringifier = {\n toString: throwRegexMarker,\n valueOf: throwRegexMarker\n };\n if (typeof Symbol.toPrimitive === \"symbol\") {\n badStringifier[Symbol.toPrimitive] = throwRegexMarker;\n }\n }\n var throwRegexMarker;\n var $toString = callBound(\"Object.prototype.toString\");\n var gOPD = Object.getOwnPropertyDescriptor;\n var regexClass = \"[object RegExp]\";\n module.exports = hasToStringTag ? function isRegex(value2) {\n if (!value2 || typeof value2 !== \"object\") {\n return false;\n }\n var descriptor = gOPD(value2, \"lastIndex\");\n var hasLastIndexDataProperty = descriptor && has(descriptor, \"value\");\n if (!hasLastIndexDataProperty) {\n return false;\n }\n try {\n $exec(value2, badStringifier);\n } catch (e) {\n return e === isRegexMarker;\n }\n } : function isRegex(value2) {\n if (!value2 || typeof value2 !== \"object\" && typeof value2 !== \"function\") {\n return false;\n }\n return $toString(value2) === regexClass;\n };\n }\n});\n\n// node_modules/is-function/index.js\nvar require_is_function = __commonJS({\n \"node_modules/is-function/index.js\"(exports, module) {\n module.exports = isFunction3;\n var toString2 = Object.prototype.toString;\n function isFunction3(fn) {\n if (!fn) {\n return false;\n }\n var string = toString2.call(fn);\n return string === \"[object Function]\" || typeof fn === \"function\" && string !== \"[object RegExp]\" || typeof window !== \"undefined\" && (fn === window.setTimeout || fn === window.alert || fn === window.confirm || fn === window.prompt);\n }\n }\n});\n\n// node_modules/is-symbol/index.js\nvar require_is_symbol = __commonJS({\n \"node_modules/is-symbol/index.js\"(exports, module) {\n \"use strict\";\n var toStr = Object.prototype.toString;\n var hasSymbols = require_has_symbols()();\n if (hasSymbols) {\n symToStr = Symbol.prototype.toString;\n symStringRegex = /^Symbol\\(.*\\)$/;\n isSymbolObject = function isRealSymbolObject(value2) {\n if (typeof value2.valueOf() !== \"symbol\") {\n return false;\n }\n return symStringRegex.test(symToStr.call(value2));\n };\n module.exports = function isSymbol3(value2) {\n if (typeof value2 === \"symbol\") {\n return true;\n }\n if (toStr.call(value2) !== \"[object Symbol]\") {\n return false;\n }\n try {\n return isSymbolObject(value2);\n } catch (e) {\n return false;\n }\n };\n } else {\n module.exports = function isSymbol3(value2) {\n return false;\n };\n }\n var symToStr;\n var symStringRegex;\n var isSymbolObject;\n }\n});\n\n// src/index.ts\nvar import_is_regex = __toESM(require_is_regex());\nvar import_is_function = __toESM(require_is_function());\nvar import_is_symbol = __toESM(require_is_symbol());\n\n// node_modules/isobject/index.js\nfunction isObject(val) {\n return val != null && typeof val === \"object\" && Array.isArray(val) === false;\n}\n\n// node_modules/lodash-es/_freeGlobal.js\nvar freeGlobal = typeof global == \"object\" && global && global.Object === Object && global;\nvar freeGlobal_default = freeGlobal;\n\n// node_modules/lodash-es/_root.js\nvar freeSelf = typeof self == \"object\" && self && self.Object === Object && self;\nvar root2 = freeGlobal_default || freeSelf || Function(\"return this\")();\nvar root_default = root2;\n\n// node_modules/lodash-es/_Symbol.js\nvar Symbol2 = root_default.Symbol;\nvar Symbol_default = Symbol2;\n\n// node_modules/lodash-es/_getRawTag.js\nvar objectProto = Object.prototype;\nvar hasOwnProperty = objectProto.hasOwnProperty;\nvar nativeObjectToString = objectProto.toString;\nvar symToStringTag = Symbol_default ? Symbol_default.toStringTag : void 0;\nfunction getRawTag(value2) {\n var isOwn = hasOwnProperty.call(value2, symToStringTag), tag = value2[symToStringTag];\n try {\n value2[symToStringTag] = void 0;\n var unmasked = true;\n } catch (e) {\n }\n var result2 = nativeObjectToString.call(value2);\n if (unmasked) {\n if (isOwn) {\n value2[symToStringTag] = tag;\n } else {\n delete value2[symToStringTag];\n }\n }\n return result2;\n}\nvar getRawTag_default = getRawTag;\n\n// node_modules/lodash-es/_objectToString.js\nvar objectProto2 = Object.prototype;\nvar nativeObjectToString2 = objectProto2.toString;\nfunction objectToString(value2) {\n return nativeObjectToString2.call(value2);\n}\nvar objectToString_default = objectToString;\n\n// node_modules/lodash-es/_baseGetTag.js\nvar nullTag = \"[object Null]\";\nvar undefinedTag = \"[object Undefined]\";\nvar symToStringTag2 = Symbol_default ? Symbol_default.toStringTag : void 0;\nfunction baseGetTag(value2) {\n if (value2 == null) {\n return value2 === void 0 ? undefinedTag : nullTag;\n }\n return symToStringTag2 && symToStringTag2 in Object(value2) ? getRawTag_default(value2) : objectToString_default(value2);\n}\nvar baseGetTag_default = baseGetTag;\n\n// node_modules/lodash-es/isObjectLike.js\nfunction isObjectLike(value2) {\n return value2 != null && typeof value2 == \"object\";\n}\nvar isObjectLike_default = isObjectLike;\n\n// node_modules/lodash-es/isSymbol.js\nvar symbolTag = \"[object Symbol]\";\nfunction isSymbol(value2) {\n return typeof value2 == \"symbol\" || isObjectLike_default(value2) && baseGetTag_default(value2) == symbolTag;\n}\nvar isSymbol_default = isSymbol;\n\n// node_modules/lodash-es/_arrayMap.js\nfunction arrayMap(array, iteratee) {\n var index = -1, length = array == null ? 0 : array.length, result2 = Array(length);\n while (++index < length) {\n result2[index] = iteratee(array[index], index, array);\n }\n return result2;\n}\nvar arrayMap_default = arrayMap;\n\n// node_modules/lodash-es/isArray.js\nvar isArray = Array.isArray;\nvar isArray_default = isArray;\n\n// node_modules/lodash-es/_baseToString.js\nvar INFINITY = 1 / 0;\nvar symbolProto = Symbol_default ? Symbol_default.prototype : void 0;\nvar symbolToString = symbolProto ? symbolProto.toString : void 0;\nfunction baseToString(value2) {\n if (typeof value2 == \"string\") {\n return value2;\n }\n if (isArray_default(value2)) {\n return arrayMap_default(value2, baseToString) + \"\";\n }\n if (isSymbol_default(value2)) {\n return symbolToString ? symbolToString.call(value2) : \"\";\n }\n var result2 = value2 + \"\";\n return result2 == \"0\" && 1 / value2 == -INFINITY ? \"-0\" : result2;\n}\nvar baseToString_default = baseToString;\n\n// node_modules/lodash-es/isObject.js\nfunction isObject2(value2) {\n var type = typeof value2;\n return value2 != null && (type == \"object\" || type == \"function\");\n}\nvar isObject_default = isObject2;\n\n// node_modules/lodash-es/isFunction.js\nvar asyncTag = \"[object AsyncFunction]\";\nvar funcTag = \"[object Function]\";\nvar genTag = \"[object GeneratorFunction]\";\nvar proxyTag = \"[object Proxy]\";\nfunction isFunction(value2) {\n if (!isObject_default(value2)) {\n return false;\n }\n var tag = baseGetTag_default(value2);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\nvar isFunction_default = isFunction;\n\n// node_modules/lodash-es/_coreJsData.js\nvar coreJsData = root_default[\"__core-js_shared__\"];\nvar coreJsData_default = coreJsData;\n\n// node_modules/lodash-es/_isMasked.js\nvar maskSrcKey = function() {\n var uid = /[^.]+$/.exec(coreJsData_default && coreJsData_default.keys && coreJsData_default.keys.IE_PROTO || \"\");\n return uid ? \"Symbol(src)_1.\" + uid : \"\";\n}();\nfunction isMasked(func) {\n return !!maskSrcKey && maskSrcKey in func;\n}\nvar isMasked_default = isMasked;\n\n// node_modules/lodash-es/_toSource.js\nvar funcProto = Function.prototype;\nvar funcToString = funcProto.toString;\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {\n }\n try {\n return func + \"\";\n } catch (e) {\n }\n }\n return \"\";\n}\nvar toSource_default = toSource;\n\n// node_modules/lodash-es/_baseIsNative.js\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\nvar funcProto2 = Function.prototype;\nvar objectProto3 = Object.prototype;\nvar funcToString2 = funcProto2.toString;\nvar hasOwnProperty2 = objectProto3.hasOwnProperty;\nvar reIsNative = RegExp(\n \"^\" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar, \"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, \"$1.*?\") + \"$\"\n);\nfunction baseIsNative(value2) {\n if (!isObject_default(value2) || isMasked_default(value2)) {\n return false;\n }\n var pattern = isFunction_default(value2) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource_default(value2));\n}\nvar baseIsNative_default = baseIsNative;\n\n// node_modules/lodash-es/_getValue.js\nfunction getValue(object, key2) {\n return object == null ? void 0 : object[key2];\n}\nvar getValue_default = getValue;\n\n// node_modules/lodash-es/_getNative.js\nfunction getNative(object, key2) {\n var value2 = getValue_default(object, key2);\n return baseIsNative_default(value2) ? value2 : void 0;\n}\nvar getNative_default = getNative;\n\n// node_modules/lodash-es/eq.js\nfunction eq(value2, other) {\n return value2 === other || value2 !== value2 && other !== other;\n}\nvar eq_default = eq;\n\n// node_modules/lodash-es/_isKey.js\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/;\nvar reIsPlainProp = /^\\w*$/;\nfunction isKey(value2, object) {\n if (isArray_default(value2)) {\n return false;\n }\n var type = typeof value2;\n if (type == \"number\" || type == \"symbol\" || type == \"boolean\" || value2 == null || isSymbol_default(value2)) {\n return true;\n }\n return reIsPlainProp.test(value2) || !reIsDeepProp.test(value2) || object != null && value2 in Object(object);\n}\nvar isKey_default = isKey;\n\n// node_modules/lodash-es/_nativeCreate.js\nvar nativeCreate = getNative_default(Object, \"create\");\nvar nativeCreate_default = nativeCreate;\n\n// node_modules/lodash-es/_hashClear.js\nfunction hashClear() {\n this.__data__ = nativeCreate_default ? nativeCreate_default(null) : {};\n this.size = 0;\n}\nvar hashClear_default = hashClear;\n\n// node_modules/lodash-es/_hashDelete.js\nfunction hashDelete(key2) {\n var result2 = this.has(key2) && delete this.__data__[key2];\n this.size -= result2 ? 1 : 0;\n return result2;\n}\nvar hashDelete_default = hashDelete;\n\n// node_modules/lodash-es/_hashGet.js\nvar HASH_UNDEFINED = \"__lodash_hash_undefined__\";\nvar objectProto4 = Object.prototype;\nvar hasOwnProperty3 = objectProto4.hasOwnProperty;\nfunction hashGet(key2) {\n var data = this.__data__;\n if (nativeCreate_default) {\n var result2 = data[key2];\n return result2 === HASH_UNDEFINED ? void 0 : result2;\n }\n return hasOwnProperty3.call(data, key2) ? data[key2] : void 0;\n}\nvar hashGet_default = hashGet;\n\n// node_modules/lodash-es/_hashHas.js\nvar objectProto5 = Object.prototype;\nvar hasOwnProperty4 = objectProto5.hasOwnProperty;\nfunction hashHas(key2) {\n var data = this.__data__;\n return nativeCreate_default ? data[key2] !== void 0 : hasOwnProperty4.call(data, key2);\n}\nvar hashHas_default = hashHas;\n\n// node_modules/lodash-es/_hashSet.js\nvar HASH_UNDEFINED2 = \"__lodash_hash_undefined__\";\nfunction hashSet(key2, value2) {\n var data = this.__data__;\n this.size += this.has(key2) ? 0 : 1;\n data[key2] = nativeCreate_default && value2 === void 0 ? HASH_UNDEFINED2 : value2;\n return this;\n}\nvar hashSet_default = hashSet;\n\n// node_modules/lodash-es/_Hash.js\nfunction Hash(entries) {\n var index = -1, length = entries == null ? 0 : entries.length;\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\nHash.prototype.clear = hashClear_default;\nHash.prototype[\"delete\"] = hashDelete_default;\nHash.prototype.get = hashGet_default;\nHash.prototype.has = hashHas_default;\nHash.prototype.set = hashSet_default;\nvar Hash_default = Hash;\n\n// node_modules/lodash-es/_listCacheClear.js\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\nvar listCacheClear_default = listCacheClear;\n\n// node_modules/lodash-es/_assocIndexOf.js\nfunction assocIndexOf(array, key2) {\n var length = array.length;\n while (length--) {\n if (eq_default(array[length][0], key2)) {\n return length;\n }\n }\n return -1;\n}\nvar assocIndexOf_default = assocIndexOf;\n\n// node_modules/lodash-es/_listCacheDelete.js\nvar arrayProto = Array.prototype;\nvar splice = arrayProto.splice;\nfunction listCacheDelete(key2) {\n var data = this.__data__, index = assocIndexOf_default(data, key2);\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\nvar listCacheDelete_default = listCacheDelete;\n\n// node_modules/lodash-es/_listCacheGet.js\nfunction listCacheGet(key2) {\n var data = this.__data__, index = assocIndexOf_default(data, key2);\n return index < 0 ? void 0 : data[index][1];\n}\nvar listCacheGet_default = listCacheGet;\n\n// node_modules/lodash-es/_listCacheHas.js\nfunction listCacheHas(key2) {\n return assocIndexOf_default(this.__data__, key2) > -1;\n}\nvar listCacheHas_default = listCacheHas;\n\n// node_modules/lodash-es/_listCacheSet.js\nfunction listCacheSet(key2, value2) {\n var data = this.__data__, index = assocIndexOf_default(data, key2);\n if (index < 0) {\n ++this.size;\n data.push([key2, value2]);\n } else {\n data[index][1] = value2;\n }\n return this;\n}\nvar listCacheSet_default = listCacheSet;\n\n// node_modules/lodash-es/_ListCache.js\nfunction ListCache(entries) {\n var index = -1, length = entries == null ? 0 : entries.length;\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\nListCache.prototype.clear = listCacheClear_default;\nListCache.prototype[\"delete\"] = listCacheDelete_default;\nListCache.prototype.get = listCacheGet_default;\nListCache.prototype.has = listCacheHas_default;\nListCache.prototype.set = listCacheSet_default;\nvar ListCache_default = ListCache;\n\n// node_modules/lodash-es/_Map.js\nvar Map2 = getNative_default(root_default, \"Map\");\nvar Map_default = Map2;\n\n// node_modules/lodash-es/_mapCacheClear.js\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n \"hash\": new Hash_default(),\n \"map\": new (Map_default || ListCache_default)(),\n \"string\": new Hash_default()\n };\n}\nvar mapCacheClear_default = mapCacheClear;\n\n// node_modules/lodash-es/_isKeyable.js\nfunction isKeyable(value2) {\n var type = typeof value2;\n return type == \"string\" || type == \"number\" || type == \"symbol\" || type == \"boolean\" ? value2 !== \"__proto__\" : value2 === null;\n}\nvar isKeyable_default = isKeyable;\n\n// node_modules/lodash-es/_getMapData.js\nfunction getMapData(map, key2) {\n var data = map.__data__;\n return isKeyable_default(key2) ? data[typeof key2 == \"string\" ? \"string\" : \"hash\"] : data.map;\n}\nvar getMapData_default = getMapData;\n\n// node_modules/lodash-es/_mapCacheDelete.js\nfunction mapCacheDelete(key2) {\n var result2 = getMapData_default(this, key2)[\"delete\"](key2);\n this.size -= result2 ? 1 : 0;\n return result2;\n}\nvar mapCacheDelete_default = mapCacheDelete;\n\n// node_modules/lodash-es/_mapCacheGet.js\nfunction mapCacheGet(key2) {\n return getMapData_default(this, key2).get(key2);\n}\nvar mapCacheGet_default = mapCacheGet;\n\n// node_modules/lodash-es/_mapCacheHas.js\nfunction mapCacheHas(key2) {\n return getMapData_default(this, key2).has(key2);\n}\nvar mapCacheHas_default = mapCacheHas;\n\n// node_modules/lodash-es/_mapCacheSet.js\nfunction mapCacheSet(key2, value2) {\n var data = getMapData_default(this, key2), size = data.size;\n data.set(key2, value2);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\nvar mapCacheSet_default = mapCacheSet;\n\n// node_modules/lodash-es/_MapCache.js\nfunction MapCache(entries) {\n var index = -1, length = entries == null ? 0 : entries.length;\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\nMapCache.prototype.clear = mapCacheClear_default;\nMapCache.prototype[\"delete\"] = mapCacheDelete_default;\nMapCache.prototype.get = mapCacheGet_default;\nMapCache.prototype.has = mapCacheHas_default;\nMapCache.prototype.set = mapCacheSet_default;\nvar MapCache_default = MapCache;\n\n// node_modules/lodash-es/memoize.js\nvar FUNC_ERROR_TEXT = \"Expected a function\";\nfunction memoize(func, resolver) {\n if (typeof func != \"function\" || resolver != null && typeof resolver != \"function\") {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args2 = arguments, key2 = resolver ? resolver.apply(this, args2) : args2[0], cache = memoized.cache;\n if (cache.has(key2)) {\n return cache.get(key2);\n }\n var result2 = func.apply(this, args2);\n memoized.cache = cache.set(key2, result2) || cache;\n return result2;\n };\n memoized.cache = new (memoize.Cache || MapCache_default)();\n return memoized;\n}\nmemoize.Cache = MapCache_default;\nvar memoize_default = memoize;\n\n// node_modules/lodash-es/_memoizeCapped.js\nvar MAX_MEMOIZE_SIZE = 500;\nfunction memoizeCapped(func) {\n var result2 = memoize_default(func, function(key2) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key2;\n });\n var cache = result2.cache;\n return result2;\n}\nvar memoizeCapped_default = memoizeCapped;\n\n// node_modules/lodash-es/_stringToPath.js\nvar rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g;\nvar stringToPath = memoizeCapped_default(function(string) {\n var result2 = [];\n if (string.charCodeAt(0) === 46) {\n result2.push(\"\");\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result2.push(quote ? subString.replace(reEscapeChar, \"$1\") : number || match);\n });\n return result2;\n});\nvar stringToPath_default = stringToPath;\n\n// node_modules/lodash-es/toString.js\nfunction toString(value2) {\n return value2 == null ? \"\" : baseToString_default(value2);\n}\nvar toString_default = toString;\n\n// node_modules/lodash-es/_castPath.js\nfunction castPath(value2, object) {\n if (isArray_default(value2)) {\n return value2;\n }\n return isKey_default(value2, object) ? [value2] : stringToPath_default(toString_default(value2));\n}\nvar castPath_default = castPath;\n\n// node_modules/lodash-es/_toKey.js\nvar INFINITY2 = 1 / 0;\nfunction toKey(value2) {\n if (typeof value2 == \"string\" || isSymbol_default(value2)) {\n return value2;\n }\n var result2 = value2 + \"\";\n return result2 == \"0\" && 1 / value2 == -INFINITY2 ? \"-0\" : result2;\n}\nvar toKey_default = toKey;\n\n// node_modules/lodash-es/_baseGet.js\nfunction baseGet(object, path) {\n path = castPath_default(path, object);\n var index = 0, length = path.length;\n while (object != null && index < length) {\n object = object[toKey_default(path[index++])];\n }\n return index && index == length ? object : void 0;\n}\nvar baseGet_default = baseGet;\n\n// node_modules/lodash-es/get.js\nfunction get(object, path, defaultValue) {\n var result2 = object == null ? void 0 : baseGet_default(object, path);\n return result2 === void 0 ? defaultValue : result2;\n}\nvar get_default = get;\n\n// src/index.ts\nimport memoize2 from \"memoizerific\";\nvar isObject3 = isObject;\nvar removeCodeComments = (code) => {\n let inQuoteChar = null;\n let inBlockComment = false;\n let inLineComment = false;\n let inRegexLiteral = false;\n let newCode = \"\";\n if (code.indexOf(\"//\") >= 0 || code.indexOf(\"/*\") >= 0) {\n for (let i = 0; i < code.length; i += 1) {\n if (!inQuoteChar && !inBlockComment && !inLineComment && !inRegexLiteral) {\n if (code[i] === '\"' || code[i] === \"'\" || code[i] === \"`\") {\n inQuoteChar = code[i];\n } else if (code[i] === \"/\" && code[i + 1] === \"*\") {\n inBlockComment = true;\n } else if (code[i] === \"/\" && code[i + 1] === \"/\") {\n inLineComment = true;\n } else if (code[i] === \"/\" && code[i + 1] !== \"/\") {\n inRegexLiteral = true;\n }\n } else {\n if (inQuoteChar && (code[i] === inQuoteChar && code[i - 1] !== \"\\\\\" || code[i] === \"\\n\" && inQuoteChar !== \"`\")) {\n inQuoteChar = null;\n }\n if (inRegexLiteral && (code[i] === \"/\" && code[i - 1] !== \"\\\\\" || code[i] === \"\\n\")) {\n inRegexLiteral = false;\n }\n if (inBlockComment && code[i - 1] === \"/\" && code[i - 2] === \"*\") {\n inBlockComment = false;\n }\n if (inLineComment && code[i] === \"\\n\") {\n inLineComment = false;\n }\n }\n if (!inBlockComment && !inLineComment) {\n newCode += code[i];\n }\n }\n } else {\n newCode = code;\n }\n return newCode;\n};\nvar cleanCode = memoize2(1e4)(\n (code) => removeCodeComments(code).replace(/\\n\\s*/g, \"\").trim()\n);\nvar convertShorthandMethods = function convertShorthandMethods2(key2, stringified) {\n const fnHead = stringified.slice(0, stringified.indexOf(\"{\"));\n const fnBody = stringified.slice(stringified.indexOf(\"{\"));\n if (fnHead.includes(\"=>\")) {\n return stringified;\n }\n if (fnHead.includes(\"function\")) {\n return stringified;\n }\n let modifiedHead = fnHead;\n modifiedHead = modifiedHead.replace(key2, \"function\");\n return modifiedHead + fnBody;\n};\nvar dateFormat = /^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z$/;\nvar isJSON = (input) => input.match(/^[\\[\\{\\\"\\}].*[\\]\\}\\\"]$/);\nfunction convertUnconventionalData(data) {\n if (!isObject3(data)) {\n return data;\n }\n let result2 = data;\n let wasMutated = false;\n if (typeof Event !== \"undefined\" && data instanceof Event) {\n result2 = extractEventHiddenProperties(result2);\n wasMutated = true;\n }\n result2 = Object.keys(result2).reduce((acc, key2) => {\n try {\n if (result2[key2]) {\n result2[key2].toJSON;\n }\n acc[key2] = result2[key2];\n } catch (err) {\n wasMutated = true;\n }\n return acc;\n }, {});\n return wasMutated ? result2 : data;\n}\nvar replacer = function replacer2(options2) {\n let objects;\n let map;\n let stack;\n let keys;\n return function replace(key2, value2) {\n try {\n if (key2 === \"\") {\n keys = [];\n objects = /* @__PURE__ */ new Map([[value2, \"[]\"]]);\n map = /* @__PURE__ */ new Map();\n stack = [];\n return value2;\n }\n const origin = map.get(this) || this;\n while (stack.length && origin !== stack[0]) {\n stack.shift();\n keys.pop();\n }\n if (typeof value2 === \"boolean\") {\n return value2;\n }\n if (value2 === void 0) {\n if (!options2.allowUndefined) {\n return void 0;\n }\n return \"_undefined_\";\n }\n if (value2 === null) {\n return null;\n }\n if (typeof value2 === \"number\") {\n if (value2 === -Infinity) {\n return \"_-Infinity_\";\n }\n if (value2 === Infinity) {\n return \"_Infinity_\";\n }\n if (Number.isNaN(value2)) {\n return \"_NaN_\";\n }\n return value2;\n }\n if (typeof value2 === \"bigint\") {\n return `_bigint_${value2.toString()}`;\n }\n if (typeof value2 === \"string\") {\n if (dateFormat.test(value2)) {\n if (!options2.allowDate) {\n return void 0;\n }\n return `_date_${value2}`;\n }\n return value2;\n }\n if ((0, import_is_regex.default)(value2)) {\n if (!options2.allowRegExp) {\n return void 0;\n }\n return `_regexp_${value2.flags}|${value2.source}`;\n }\n if ((0, import_is_function.default)(value2)) {\n if (!options2.allowFunction) {\n return void 0;\n }\n const { name: name2 } = value2;\n const stringified = value2.toString();\n if (!stringified.match(\n /(\\[native code\\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/\n )) {\n return `_function_${name2}|${cleanCode(convertShorthandMethods(key2, stringified))}`;\n }\n return `_function_${name2}|${(() => {\n }).toString()}`;\n }\n if ((0, import_is_symbol.default)(value2)) {\n if (!options2.allowSymbol) {\n return void 0;\n }\n const globalRegistryKey = Symbol.keyFor(value2);\n if (globalRegistryKey !== void 0) {\n return `_gsymbol_${globalRegistryKey}`;\n }\n return `_symbol_${value2.toString().slice(7, -1)}`;\n }\n if (stack.length >= options2.maxDepth) {\n if (Array.isArray(value2)) {\n return `[Array(${value2.length})]`;\n }\n return \"[Object]\";\n }\n if (value2 === this) {\n return `_duplicate_${JSON.stringify(keys)}`;\n }\n if (value2 instanceof Error && options2.allowError) {\n return {\n __isConvertedError__: true,\n errorProperties: {\n ...value2.cause ? { cause: value2.cause } : {},\n ...value2,\n name: value2.name,\n message: value2.message,\n stack: value2.stack,\n \"_constructor-name_\": value2.constructor.name\n }\n };\n }\n if (value2.constructor && value2.constructor.name && value2.constructor.name !== \"Object\" && !Array.isArray(value2) && !options2.allowClass) {\n return void 0;\n }\n const found = objects.get(value2);\n if (!found) {\n const converted = Array.isArray(value2) ? value2 : convertUnconventionalData(value2);\n if (value2.constructor && value2.constructor.name && value2.constructor.name !== \"Object\" && !Array.isArray(value2) && options2.allowClass) {\n try {\n Object.assign(converted, { \"_constructor-name_\": value2.constructor.name });\n } catch (e) {\n }\n }\n keys.push(key2);\n stack.unshift(converted);\n objects.set(value2, JSON.stringify(keys));\n if (value2 !== converted) {\n map.set(value2, converted);\n }\n return converted;\n }\n return `_duplicate_${found}`;\n } catch (e) {\n return void 0;\n }\n };\n};\nvar reviver2 = function reviver(options) {\n const refs = [];\n let root;\n return function revive(key, value) {\n if (key === \"\") {\n root = value;\n refs.forEach(({ target, container, replacement }) => {\n const replacementArr = isJSON(replacement) ? JSON.parse(replacement) : replacement.split(\".\");\n if (replacementArr.length === 0) {\n container[target] = root;\n } else {\n container[target] = get_default(root, replacementArr);\n }\n });\n }\n if (key === \"_constructor-name_\") {\n return value;\n }\n if (isObject3(value) && value.__isConvertedError__) {\n const { message, ...properties } = value.errorProperties;\n const error = new Error(message);\n Object.assign(error, properties);\n return error;\n }\n if (isObject3(value) && value[\"_constructor-name_\"] && options.allowFunction) {\n const name2 = value[\"_constructor-name_\"];\n if (name2 !== \"Object\") {\n const Fn = new Function(`return function ${name2.replace(/[^a-zA-Z0-9$_]+/g, \"\")}(){}`)();\n Object.setPrototypeOf(value, new Fn());\n }\n delete value[\"_constructor-name_\"];\n return value;\n }\n if (typeof value === \"string\" && value.startsWith(\"_function_\") && options.allowFunction) {\n const [, name, source] = value.match(/_function_([^|]*)\\|(.*)/) || [];\n const sourceSanitized = source.replace(/[(\\(\\))|\\\\| |\\]|`]*$/, \"\");\n if (!options.lazyEval) {\n return eval(`(${sourceSanitized})`);\n }\n const result = (...args) => {\n const f = eval(`(${sourceSanitized})`);\n return f(...args);\n };\n Object.defineProperty(result, \"toString\", {\n value: () => sourceSanitized\n });\n Object.defineProperty(result, \"name\", {\n value: name\n });\n return result;\n }\n if (typeof value === \"string\" && value.startsWith(\"_regexp_\") && options.allowRegExp) {\n const [, flags, source2] = value.match(/_regexp_([^|]*)\\|(.*)/) || [];\n return new RegExp(source2, flags);\n }\n if (typeof value === \"string\" && value.startsWith(\"_date_\") && options.allowDate) {\n return new Date(value.replace(\"_date_\", \"\"));\n }\n if (typeof value === \"string\" && value.startsWith(\"_duplicate_\")) {\n refs.push({ target: key, container: this, replacement: value.replace(/^_duplicate_/, \"\") });\n return null;\n }\n if (typeof value === \"string\" && value.startsWith(\"_symbol_\") && options.allowSymbol) {\n return Symbol(value.replace(\"_symbol_\", \"\"));\n }\n if (typeof value === \"string\" && value.startsWith(\"_gsymbol_\") && options.allowSymbol) {\n return Symbol.for(value.replace(\"_gsymbol_\", \"\"));\n }\n if (typeof value === \"string\" && value === \"_-Infinity_\") {\n return -Infinity;\n }\n if (typeof value === \"string\" && value === \"_Infinity_\") {\n return Infinity;\n }\n if (typeof value === \"string\" && value === \"_NaN_\") {\n return NaN;\n }\n if (typeof value === \"string\" && value.startsWith(\"_bigint_\") && typeof BigInt === \"function\") {\n return BigInt(value.replace(\"_bigint_\", \"\"));\n }\n return value;\n };\n};\nvar defaultOptions = {\n maxDepth: 10,\n space: void 0,\n allowFunction: true,\n allowRegExp: true,\n allowDate: true,\n allowClass: true,\n allowError: true,\n allowUndefined: true,\n allowSymbol: true,\n lazyEval: true\n};\nvar stringify = (data, options2 = {}) => {\n const mergedOptions = { ...defaultOptions, ...options2 };\n return JSON.stringify(convertUnconventionalData(data), replacer(mergedOptions), options2.space);\n};\nvar mutator = () => {\n const mutated = /* @__PURE__ */ new Map();\n return function mutateUndefined(value2) {\n if (isObject3(value2)) {\n Object.entries(value2).forEach(([k, v]) => {\n if (v === \"_undefined_\") {\n value2[k] = void 0;\n } else if (!mutated.get(v)) {\n mutated.set(v, true);\n mutateUndefined(v);\n }\n });\n }\n if (Array.isArray(value2)) {\n value2.forEach((v, index) => {\n if (v === \"_undefined_\") {\n mutated.set(v, true);\n value2[index] = void 0;\n } else if (!mutated.get(v)) {\n mutated.set(v, true);\n mutateUndefined(v);\n }\n });\n }\n };\n};\nvar parse = (data, options2 = {}) => {\n const mergedOptions = { ...defaultOptions, ...options2 };\n const result2 = JSON.parse(data, reviver2(mergedOptions));\n mutator()(result2);\n return result2;\n};\nexport {\n isJSON,\n parse,\n replacer,\n reviver2 as reviver,\n stringify\n};\n/*!\n * isobject \n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n/**\n * @license\n * Lodash (Custom Build) \n * Build: `lodash modularize exports=\"es\" -o ./`\n * Copyright OpenJS Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n","/* eslint no-var: off */\n\n/**\n * This file is responsible for building the DOM and updating DOM state.\n *\n * @author Tim Scanlin\n */\n\nmodule.exports = function (options) {\n var forEach = [].forEach\n var some = [].some\n var body = document.body\n var tocElement\n var currentlyHighlighting = true\n var SPACE_CHAR = ' '\n\n /**\n * Create link and list elements.\n * @param {Object} d\n * @param {HTMLElement} container\n * @return {HTMLElement}\n */\n function createEl (d, container) {\n var link = container.appendChild(createLink(d))\n if (d.children.length) {\n var list = createList(d.isCollapsed)\n d.children.forEach(function (child) {\n createEl(child, list)\n })\n link.appendChild(list)\n }\n }\n\n /**\n * Render nested heading array data into a given element.\n * @param {HTMLElement} parent Optional. If provided updates the {@see tocElement} to match.\n * @param {Array} data\n * @return {HTMLElement}\n */\n function render (parent, data) {\n var collapsed = false\n var container = createList(collapsed)\n\n data.forEach(function (d) {\n createEl(d, container)\n })\n\n // Return if no TOC element is provided or known.\n tocElement = parent || tocElement\n if (tocElement === null) {\n return\n }\n\n // Remove existing child if it exists.\n if (tocElement.firstChild) {\n tocElement.removeChild(tocElement.firstChild)\n }\n\n // Just return the parent and don't append the list if no links are found.\n if (data.length === 0) {\n return tocElement\n }\n\n // Append the Elements that have been created\n return tocElement.appendChild(container)\n }\n\n /**\n * Create link element.\n * @param {Object} data\n * @return {HTMLElement}\n */\n function createLink (data) {\n var item = document.createElement('li')\n var a = document.createElement('a')\n if (options.listItemClass) {\n item.setAttribute('class', options.listItemClass)\n }\n\n if (options.onClick) {\n a.onclick = options.onClick\n }\n\n if (options.includeTitleTags) {\n a.setAttribute('title', data.textContent)\n }\n\n if (options.includeHtml && data.childNodes.length) {\n forEach.call(data.childNodes, function (node) {\n a.appendChild(node.cloneNode(true))\n })\n } else {\n // Default behavior.\n a.textContent = data.textContent\n }\n a.setAttribute('href', options.basePath + '#' + data.id)\n a.setAttribute('class', options.linkClass +\n SPACE_CHAR + 'node-name--' + data.nodeName +\n SPACE_CHAR + options.extraLinkClasses)\n item.appendChild(a)\n return item\n }\n\n /**\n * Create list element.\n * @param {Boolean} isCollapsed\n * @return {HTMLElement}\n */\n function createList (isCollapsed) {\n var listElement = (options.orderedList) ? 'ol' : 'ul'\n var list = document.createElement(listElement)\n var classes = options.listClass + SPACE_CHAR + options.extraListClasses\n if (isCollapsed) {\n // No plus/equals here fixes compilcation issue.\n classes = classes + SPACE_CHAR + options.collapsibleClass\n classes = classes + SPACE_CHAR + options.isCollapsedClass\n }\n list.setAttribute('class', classes)\n return list\n }\n\n /**\n * Update fixed sidebar class.\n * @return {HTMLElement}\n */\n function updateFixedSidebarClass () {\n if (options.scrollContainer && document.querySelector(options.scrollContainer)) {\n var top\n top = document.querySelector(options.scrollContainer).scrollTop\n } else {\n top = document.documentElement.scrollTop || body.scrollTop\n }\n var posFixedEl = document.querySelector(options.positionFixedSelector)\n\n if (options.fixedSidebarOffset === 'auto') {\n options.fixedSidebarOffset = tocElement.offsetTop\n }\n\n if (top > options.fixedSidebarOffset) {\n if (posFixedEl.className.indexOf(options.positionFixedClass) === -1) {\n posFixedEl.className += SPACE_CHAR + options.positionFixedClass\n }\n } else {\n posFixedEl.className = posFixedEl.className.split(SPACE_CHAR + options.positionFixedClass).join('')\n }\n }\n\n /**\n * Get top position of heading\n * @param {HTMLElement} obj\n * @return {int} position\n */\n function getHeadingTopPos (obj) {\n var position = 0\n if (obj !== null) {\n position = obj.offsetTop\n if (options.hasInnerContainers) { position += getHeadingTopPos(obj.offsetParent) }\n }\n return position\n }\n\n /**\n * Update TOC highlighting and collapsed groupings.\n */\n function updateToc (headingsArray) {\n // If a fixed content container was set\n if (options.scrollContainer && document.querySelector(options.scrollContainer)) {\n var top\n top = document.querySelector(options.scrollContainer).scrollTop\n } else {\n top = document.documentElement.scrollTop || body.scrollTop\n }\n\n // Add fixed class at offset\n if (options.positionFixedSelector) {\n updateFixedSidebarClass()\n }\n\n // Get the top most heading currently visible on the page so we know what to highlight.\n var headings = headingsArray\n var topHeader\n // Using some instead of each so that we can escape early.\n if (currentlyHighlighting &&\n tocElement !== null &&\n headings.length > 0) {\n some.call(headings, function (heading, i) {\n if (getHeadingTopPos(heading) > top + options.headingsOffset + 10) {\n // Don't allow negative index value.\n var index = (i === 0) ? i : i - 1\n topHeader = headings[index]\n return true\n } else if (i === headings.length - 1) {\n // This allows scrolling for the last heading on the page.\n topHeader = headings[headings.length - 1]\n return true\n }\n })\n\n var oldActiveTocLink = tocElement.querySelector('.' + options.activeLinkClass)\n var activeTocLink = tocElement\n .querySelector('.' + options.linkClass +\n '.node-name--' + topHeader.nodeName +\n '[href=\"' + options.basePath + '#' + topHeader.id.replace(/([ #;&,.+*~':\"!^$[\\]()=>|/\\\\@])/g, '\\\\$1') + '\"]')\n // Performance improvement to only change the classes\n // for the toc if a new link should be highlighted.\n if (oldActiveTocLink === activeTocLink) {\n return\n }\n\n // Remove the active class from the other tocLinks.\n var tocLinks = tocElement\n .querySelectorAll('.' + options.linkClass)\n forEach.call(tocLinks, function (tocLink) {\n tocLink.className = tocLink.className.split(SPACE_CHAR + options.activeLinkClass).join('')\n })\n var tocLis = tocElement\n .querySelectorAll('.' + options.listItemClass)\n forEach.call(tocLis, function (tocLi) {\n tocLi.className = tocLi.className.split(SPACE_CHAR + options.activeListItemClass).join('')\n })\n\n // Add the active class to the active tocLink.\n if (activeTocLink && activeTocLink.className.indexOf(options.activeLinkClass) === -1) {\n activeTocLink.className += SPACE_CHAR + options.activeLinkClass\n }\n var li = activeTocLink && activeTocLink.parentNode\n if (li && li.className.indexOf(options.activeListItemClass) === -1) {\n li.className += SPACE_CHAR + options.activeListItemClass\n }\n\n var tocLists = tocElement\n .querySelectorAll('.' + options.listClass + '.' + options.collapsibleClass)\n\n // Collapse the other collapsible lists.\n forEach.call(tocLists, function (list) {\n if (list.className.indexOf(options.isCollapsedClass) === -1) {\n list.className += SPACE_CHAR + options.isCollapsedClass\n }\n })\n\n // Expand the active link's collapsible list and its sibling if applicable.\n if (activeTocLink && activeTocLink.nextSibling && activeTocLink.nextSibling.className.indexOf(options.isCollapsedClass) !== -1) {\n activeTocLink.nextSibling.className = activeTocLink.nextSibling.className.split(SPACE_CHAR + options.isCollapsedClass).join('')\n }\n removeCollapsedFromParents(activeTocLink && activeTocLink.parentNode.parentNode)\n }\n }\n\n /**\n * Remove collapsed class from parent elements.\n * @param {HTMLElement} element\n * @return {HTMLElement}\n */\n function removeCollapsedFromParents (element) {\n if (element && element.className.indexOf(options.collapsibleClass) !== -1 && element.className.indexOf(options.isCollapsedClass) !== -1) {\n element.className = element.className.split(SPACE_CHAR + options.isCollapsedClass).join('')\n return removeCollapsedFromParents(element.parentNode.parentNode)\n }\n return element\n }\n\n /**\n * Disable TOC Animation when a link is clicked.\n * @param {Event} event\n */\n function disableTocAnimation (event) {\n var target = event.target || event.srcElement\n if (typeof target.className !== 'string' || target.className.indexOf(options.linkClass) === -1) {\n return\n }\n // Bind to tocLink clicks to temporarily disable highlighting\n // while smoothScroll is animating.\n currentlyHighlighting = false\n }\n\n /**\n * Enable TOC Animation.\n */\n function enableTocAnimation () {\n currentlyHighlighting = true\n }\n\n return {\n enableTocAnimation,\n disableTocAnimation,\n render,\n updateToc\n }\n}\n","module.exports = {\n // Where to render the table of contents.\n tocSelector: '.js-toc',\n // Where to grab the headings to build the table of contents.\n contentSelector: '.js-toc-content',\n // Which headings to grab inside of the contentSelector element.\n headingSelector: 'h1, h2, h3',\n // Headings that match the ignoreSelector will be skipped.\n ignoreSelector: '.js-toc-ignore',\n // For headings inside relative or absolute positioned containers within content\n hasInnerContainers: false,\n // Main class to add to links.\n linkClass: 'toc-link',\n // Extra classes to add to links.\n extraLinkClasses: '',\n // Class to add to active links,\n // the link corresponding to the top most heading on the page.\n activeLinkClass: 'is-active-link',\n // Main class to add to lists.\n listClass: 'toc-list',\n // Extra classes to add to lists.\n extraListClasses: '',\n // Class that gets added when a list should be collapsed.\n isCollapsedClass: 'is-collapsed',\n // Class that gets added when a list should be able\n // to be collapsed but isn't necessarily collapsed.\n collapsibleClass: 'is-collapsible',\n // Class to add to list items.\n listItemClass: 'toc-list-item',\n // Class to add to active list items.\n activeListItemClass: 'is-active-li',\n // How many heading levels should not be collapsed.\n // For example, number 6 will show everything since\n // there are only 6 heading levels and number 0 will collapse them all.\n // The sections that are hidden will open\n // and close as you scroll to headings within them.\n collapseDepth: 0,\n // Smooth scrolling enabled.\n scrollSmooth: true,\n // Smooth scroll duration.\n scrollSmoothDuration: 420,\n // Smooth scroll offset.\n scrollSmoothOffset: 0,\n // Callback for scroll end.\n scrollEndCallback: function (e) {},\n // Headings offset between the headings and the top of the document (this is meant for minor adjustments).\n headingsOffset: 1,\n // Timeout between events firing to make sure it's\n // not too rapid (for performance reasons).\n throttleTimeout: 50,\n // Element to add the positionFixedClass to.\n positionFixedSelector: null,\n // Fixed position class to add to make sidebar fixed after scrolling\n // down past the fixedSidebarOffset.\n positionFixedClass: 'is-position-fixed',\n // fixedSidebarOffset can be any number but by default is set\n // to auto which sets the fixedSidebarOffset to the sidebar\n // element's offsetTop from the top of the document on init.\n fixedSidebarOffset: 'auto',\n // includeHtml can be set to true to include the HTML markup from the\n // heading node instead of just including the textContent.\n includeHtml: false,\n // includeTitleTags automatically sets the html title tag of the link\n // to match the title. This can be useful for SEO purposes or\n // when truncating titles.\n includeTitleTags: false,\n // onclick function to apply to all links in toc. will be called with\n // the event as the first parameter, and this can be used to stop,\n // propagation, prevent default or perform action\n onClick: function (e) {},\n // orderedList can be set to false to generate unordered lists (ul)\n // instead of ordered lists (ol)\n orderedList: true,\n // If there is a fixed article scroll container, set to calculate titles' offset\n scrollContainer: null,\n // prevent ToC DOM rendering if it's already rendered by an external system\n skipRendering: false,\n // Optional callback to change heading labels.\n // For example it can be used to cut down and put ellipses on multiline headings you deem too long.\n // Called each time a heading is parsed. Expects a string and returns the modified label to display.\n // Additionally, the attribute `data-heading-label` may be used on a heading to specify\n // a shorter string to be used in the TOC.\n // function (string) => string\n headingLabelCallback: false,\n // ignore headings that are hidden in DOM\n ignoreHiddenElements: false,\n // Optional callback to modify properties of parsed headings.\n // The heading element is passed in node parameter and information parsed by default parser is provided in obj parameter.\n // Function has to return the same or modified obj.\n // The heading will be excluded from TOC if nothing is returned.\n // function (object, HTMLElement) => object | void\n headingObjectCallback: null,\n // Set the base path, useful if you use a `base` tag in `head`.\n basePath: '',\n // Only takes affect when `tocSelector` is scrolling,\n // keep the toc scroll position in sync with the content.\n disableTocScrollSync: false,\n // Offset for the toc scroll (top) position when scrolling the page.\n // Only effective if `disableTocScrollSync` is false.\n tocScrollOffset: 0\n}\n","/* eslint no-var: off */\n/**\n * Tocbot\n * Tocbot creates a table of contents based on HTML headings on a page,\n * this allows users to easily jump to different sections of the document.\n * Tocbot was inspired by tocify (http://gregfranko.com/jquery.tocify.js/).\n * The main differences are that it works natively without any need for jquery or jquery UI).\n *\n * @author Tim Scanlin\n */\n\n/* globals define */\n\n(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n define([], factory(root))\n } else if (typeof exports === 'object') {\n module.exports = factory(root)\n } else {\n root.tocbot = factory(root)\n }\n})(typeof global !== 'undefined' ? global : window || global, function (root) {\n 'use strict'\n\n // Default options.\n var defaultOptions = require('./default-options.js')\n // Object to store current options.\n var options = {}\n // Object for public APIs.\n var tocbot = {}\n\n var BuildHtml = require('./build-html.js')\n var ParseContent = require('./parse-content.js')\n var updateTocScroll = require('./update-toc-scroll.js')\n // Keep these variables at top scope once options are passed in.\n var buildHtml\n var parseContent\n\n // Just return if its not a browser.\n var supports = !!root && !!root.document && !!root.document.querySelector && !!root.addEventListener // Feature test\n if (typeof window === 'undefined' && !supports) {\n return\n }\n var headingsArray\n\n // From: https://github.com/Raynos/xtend\n var hasOwnProperty = Object.prototype.hasOwnProperty\n function extend () {\n var target = {}\n for (var i = 0; i < arguments.length; i++) {\n var source = arguments[i]\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n target[key] = source[key]\n }\n }\n }\n return target\n }\n\n // From: https://remysharp.com/2010/07/21/throttling-function-calls\n function throttle (fn, threshold, scope) {\n threshold || (threshold = 250)\n var last\n var deferTimer\n return function () {\n var context = scope || this\n var now = +new Date()\n var args = arguments\n if (last && now < last + threshold) {\n // hold on to it\n clearTimeout(deferTimer)\n deferTimer = setTimeout(function () {\n last = now\n fn.apply(context, args)\n }, threshold)\n } else {\n last = now\n fn.apply(context, args)\n }\n }\n }\n\n function getContentElement (options) {\n try {\n return options.contentElement || document.querySelector(options.contentSelector)\n } catch (e) {\n console.warn('Contents element not found: ' + options.contentSelector) // eslint-disable-line\n return null\n }\n }\n\n function getTocElement (options) {\n try {\n return options.tocElement || document.querySelector(options.tocSelector)\n } catch (e) {\n console.warn('TOC element not found: ' + options.tocSelector) // eslint-disable-line\n return null\n }\n }\n\n /**\n * Destroy tocbot.\n */\n tocbot.destroy = function () {\n var tocElement = getTocElement(options)\n if (tocElement === null) {\n return\n }\n\n if (!options.skipRendering) {\n // Clear HTML.\n if (tocElement) {\n tocElement.innerHTML = ''\n }\n }\n\n // Remove event listeners.\n if (options.scrollContainer && document.querySelector(options.scrollContainer)) {\n document.querySelector(options.scrollContainer).removeEventListener('scroll', this._scrollListener, false)\n document.querySelector(options.scrollContainer).removeEventListener('resize', this._scrollListener, false)\n if (buildHtml) {\n document.querySelector(options.scrollContainer).removeEventListener('click', this._clickListener, false)\n }\n } else {\n document.removeEventListener('scroll', this._scrollListener, false)\n document.removeEventListener('resize', this._scrollListener, false)\n if (buildHtml) {\n document.removeEventListener('click', this._clickListener, false)\n }\n }\n }\n\n /**\n * Initialize tocbot.\n * @param {object} customOptions\n */\n tocbot.init = function (customOptions) {\n // feature test\n if (!supports) {\n return\n }\n\n // Merge defaults with user options.\n // Set to options variable at the top.\n options = extend(defaultOptions, customOptions || {})\n this.options = options\n this.state = {}\n\n // Init smooth scroll if enabled (default).\n if (options.scrollSmooth) {\n options.duration = options.scrollSmoothDuration\n options.offset = options.scrollSmoothOffset\n tocbot.scrollSmooth = require('./scroll-smooth').initSmoothScrolling(options)\n }\n\n // Pass options to these modules.\n buildHtml = BuildHtml(options)\n parseContent = ParseContent(options)\n\n // For testing purposes.\n this._buildHtml = buildHtml\n this._parseContent = parseContent\n this._headingsArray = headingsArray\n\n // Destroy it if it exists first.\n tocbot.destroy()\n\n var contentElement = getContentElement(options)\n if (contentElement === null) {\n return\n }\n\n var tocElement = getTocElement(options)\n if (tocElement === null) {\n return\n }\n\n // Get headings array.\n headingsArray = parseContent.selectHeadings(contentElement, options.headingSelector)\n // Return if no headings are found.\n if (headingsArray === null) {\n return\n }\n\n // Build nested headings array.\n var nestedHeadingsObj = parseContent.nestHeadingsArray(headingsArray)\n var nestedHeadings = nestedHeadingsObj.nest\n\n // Render.\n if (!options.skipRendering) {\n buildHtml.render(tocElement, nestedHeadings)\n } else {\n // No need to attach listeners if skipRendering is true, this was causing errors.\n return this\n }\n\n // Update Sidebar and bind listeners.\n this._scrollListener = throttle(function (e) {\n buildHtml.updateToc(headingsArray)\n !options.disableTocScrollSync && updateTocScroll(options)\n var isTop = e && e.target && e.target.scrollingElement && e.target.scrollingElement.scrollTop === 0\n if ((e && (e.eventPhase === 0 || e.currentTarget === null)) || isTop) {\n buildHtml.updateToc(headingsArray)\n if (options.scrollEndCallback) {\n options.scrollEndCallback(e)\n }\n }\n }, options.throttleTimeout)\n this._scrollListener()\n if (options.scrollContainer && document.querySelector(options.scrollContainer)) {\n document.querySelector(options.scrollContainer).addEventListener('scroll', this._scrollListener, false)\n document.querySelector(options.scrollContainer).addEventListener('resize', this._scrollListener, false)\n } else {\n document.addEventListener('scroll', this._scrollListener, false)\n document.addEventListener('resize', this._scrollListener, false)\n }\n\n // Bind click listeners to disable animation.\n var timeout = null\n this._clickListener = throttle(function (event) {\n if (options.scrollSmooth) {\n buildHtml.disableTocAnimation(event)\n }\n buildHtml.updateToc(headingsArray)\n // Timeout to re-enable the animation.\n timeout && clearTimeout(timeout)\n timeout = setTimeout(function () {\n buildHtml.enableTocAnimation()\n }, options.scrollSmoothDuration)\n }, options.throttleTimeout)\n\n if (options.scrollContainer && document.querySelector(options.scrollContainer)) {\n document.querySelector(options.scrollContainer).addEventListener('click', this._clickListener, false)\n } else {\n document.addEventListener('click', this._clickListener, false)\n }\n\n return this\n }\n\n /**\n * Refresh tocbot.\n */\n tocbot.refresh = function (customOptions) {\n tocbot.destroy()\n tocbot.init(customOptions || this.options)\n }\n\n // Make tocbot available globally.\n root.tocbot = tocbot\n\n return tocbot\n})\n","/* eslint no-var: off */\n/**\n * This file is responsible for parsing the content from the DOM and making\n * sure data is nested properly.\n *\n * @author Tim Scanlin\n */\n\nmodule.exports = function parseContent (options) {\n var reduce = [].reduce\n\n /**\n * Get the last item in an array and return a reference to it.\n * @param {Array} array\n * @return {Object}\n */\n function getLastItem (array) {\n return array[array.length - 1]\n }\n\n /**\n * Get heading level for a heading dom node.\n * @param {HTMLElement} heading\n * @return {Number}\n */\n function getHeadingLevel (heading) {\n return +heading.nodeName.toUpperCase().replace('H', '')\n }\n\n /**\n * Determine whether the object is an HTML Element.\n * Also works inside iframes. HTML Elements might be created by the parent document.\n * @param {Object} maybeElement\n * @return {Number}\n */\n function isHTMLElement (maybeElement) {\n try {\n return (\n maybeElement instanceof window.HTMLElement ||\n maybeElement instanceof window.parent.HTMLElement\n )\n } catch (e) {\n return maybeElement instanceof window.HTMLElement\n }\n }\n\n /**\n * Get important properties from a heading element and store in a plain object.\n * @param {HTMLElement} heading\n * @return {Object}\n */\n function getHeadingObject (heading) {\n // each node is processed twice by this method because nestHeadingsArray() and addNode() calls it\n // first time heading is real DOM node element, second time it is obj\n // that is causing problem so I am processing only original DOM node\n if (!isHTMLElement(heading)) return heading\n\n if (options.ignoreHiddenElements && (!heading.offsetHeight || !heading.offsetParent)) {\n return null\n }\n\n const headingLabel = heading.getAttribute('data-heading-label') ||\n (options.headingLabelCallback ? String(options.headingLabelCallback(heading.textContent)) : heading.textContent.trim())\n var obj = {\n id: heading.id,\n children: [],\n nodeName: heading.nodeName,\n headingLevel: getHeadingLevel(heading),\n textContent: headingLabel\n }\n\n if (options.includeHtml) {\n obj.childNodes = heading.childNodes\n }\n\n if (options.headingObjectCallback) {\n return options.headingObjectCallback(obj, heading)\n }\n\n return obj\n }\n\n /**\n * Add a node to the nested array.\n * @param {Object} node\n * @param {Array} nest\n * @return {Array}\n */\n function addNode (node, nest) {\n var obj = getHeadingObject(node)\n var level = obj.headingLevel\n var array = nest\n var lastItem = getLastItem(array)\n var lastItemLevel = lastItem\n ? lastItem.headingLevel\n : 0\n var counter = level - lastItemLevel\n\n while (counter > 0) {\n lastItem = getLastItem(array)\n // Handle case where there are multiple h5+ in a row.\n if (lastItem && level === lastItem.headingLevel) {\n break\n } else if (lastItem && lastItem.children !== undefined) {\n array = lastItem.children\n }\n counter--\n }\n\n if (level >= options.collapseDepth) {\n obj.isCollapsed = true\n }\n\n array.push(obj)\n return array\n }\n\n /**\n * Select headings in content area, exclude any selector in options.ignoreSelector\n * @param {HTMLElement} contentElement\n * @param {Array} headingSelector\n * @return {Array}\n */\n function selectHeadings (contentElement, headingSelector) {\n var selectors = headingSelector\n if (options.ignoreSelector) {\n selectors = headingSelector.split(',')\n .map(function mapSelectors (selector) {\n return selector.trim() + ':not(' + options.ignoreSelector + ')'\n })\n }\n try {\n return contentElement.querySelectorAll(selectors)\n } catch (e) {\n console.warn('Headers not found with selector: ' + selectors); // eslint-disable-line\n return null\n }\n }\n\n /**\n * Nest headings array into nested arrays with 'children' property.\n * @param {Array} headingsArray\n * @return {Object}\n */\n function nestHeadingsArray (headingsArray) {\n return reduce.call(headingsArray, function reducer (prev, curr) {\n var currentHeading = getHeadingObject(curr)\n if (currentHeading) {\n addNode(currentHeading, prev.nest)\n }\n return prev\n }, {\n nest: []\n })\n }\n\n return {\n nestHeadingsArray,\n selectHeadings\n }\n}\n","/* eslint no-var: off */\n/* globals location, requestAnimationFrame */\n\nexports.initSmoothScrolling = initSmoothScrolling\n\nfunction initSmoothScrolling (options) {\n // if (isCssSmoothSCrollSupported()) { return }\n\n var duration = options.duration\n var offset = options.offset\n\n var pageUrl = location.hash\n ? stripHash(location.href)\n : location.href\n\n delegatedLinkHijacking()\n\n function delegatedLinkHijacking () {\n document.body.addEventListener('click', onClick, false)\n\n function onClick (e) {\n if (\n !isInPageLink(e.target) ||\n e.target.className.indexOf('no-smooth-scroll') > -1 ||\n (e.target.href.charAt(e.target.href.length - 2) === '#' &&\n e.target.href.charAt(e.target.href.length - 1) === '!') ||\n e.target.className.indexOf(options.linkClass) === -1) {\n return\n }\n\n // Don't prevent default or hash doesn't change.\n // e.preventDefault()\n\n jump(e.target.hash, {\n duration,\n offset,\n callback: function () {\n setFocus(e.target.hash)\n }\n })\n }\n }\n\n function isInPageLink (n) {\n return n.tagName.toLowerCase() === 'a' &&\n (n.hash.length > 0 || n.href.charAt(n.href.length - 1) === '#') &&\n (stripHash(n.href) === pageUrl || stripHash(n.href) + '#' === pageUrl)\n }\n\n function stripHash (url) {\n return url.slice(0, url.lastIndexOf('#'))\n }\n\n // function isCssSmoothSCrollSupported () {\n // return 'scrollBehavior' in document.documentElement.style\n // }\n\n // Adapted from:\n // https://www.nczonline.net/blog/2013/01/15/fixing-skip-to-content-links/\n function setFocus (hash) {\n var element = document.getElementById(hash.substring(1))\n\n if (element) {\n if (!/^(?:a|select|input|button|textarea)$/i.test(element.tagName)) {\n element.tabIndex = -1\n }\n\n element.focus()\n }\n }\n}\n\nfunction jump (target, options) {\n var start = window.pageYOffset\n var opt = {\n duration: options.duration,\n offset: options.offset || 0,\n callback: options.callback,\n easing: options.easing || easeInOutQuad\n }\n // This makes ids that start with a number work: ('[id=\"' + decodeURI(target).split('#').join('') + '\"]')\n // DecodeURI for nonASCII hashes, they was encoded, but id was not encoded, it lead to not finding the tgt element by id.\n // And this is for IE: document.body.scrollTop\n // Handle decoded and non-decoded URIs since sometimes URLs automatically transform them (support for internation chars).\n var tgt = document.querySelector('[id=\"' + decodeURI(target).split('#').join('') + '\"]') ||\n document.querySelector('[id=\"' + (target).split('#').join('') + '\"]')\n var distance = typeof target === 'string'\n ? opt.offset + (\n target\n ? (tgt && tgt.getBoundingClientRect().top) || 0 // handle non-existent links better.\n : -(document.documentElement.scrollTop || document.body.scrollTop))\n : target\n var duration = typeof opt.duration === 'function'\n ? opt.duration(distance)\n : opt.duration\n var timeStart\n var timeElapsed\n\n requestAnimationFrame(function (time) { timeStart = time; loop(time) })\n function loop (time) {\n timeElapsed = time - timeStart\n\n window.scrollTo(0, opt.easing(timeElapsed, start, distance, duration))\n\n if (timeElapsed < duration) { requestAnimationFrame(loop) } else { end() }\n }\n\n function end () {\n window.scrollTo(0, start + distance)\n\n if (typeof opt.callback === 'function') { opt.callback() }\n }\n\n // Robert Penner's easeInOutQuad - http://robertpenner.com/easing/\n function easeInOutQuad (t, b, c, d) {\n t /= d / 2\n if (t < 1) return c / 2 * t * t + b\n t--\n return -c / 2 * (t * (t - 2) - 1) + b\n }\n}\n","/* eslint no-var: off */\n\nmodule.exports = function updateTocScroll (options) {\n var toc = options.tocElement || document.querySelector(options.tocSelector)\n if (toc && toc.scrollHeight > toc.clientHeight) {\n var activeItem = toc.querySelector('.' + options.activeListItemClass)\n if (activeItem) {\n toc.scrollTop = activeItem.offsetTop - options.tocScrollOffset\n }\n }\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/5600.fe4c6b9b.iframe.bundle.js b/5600.fe4c6b9b.iframe.bundle.js new file mode 100644 index 000000000..05122b992 --- /dev/null +++ b/5600.fe4c6b9b.iframe.bundle.js @@ -0,0 +1,43129 @@ +(self["webpackChunklightning_ui_docs"] = self["webpackChunklightning_ui_docs"] || []).push([[5600],{ + +/***/ "../../../node_modules/@storybook/blocks/dist/chunk-MKV36LKP.mjs": +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ P$: () => (/* binding */ __commonJS), +/* harmony export */ Yq: () => (/* binding */ getControlSetterButtonId), +/* harmony export */ ZA: () => (/* binding */ getControlId), +/* harmony export */ f1: () => (/* binding */ __toESM) +/* harmony export */ }); +var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __commonJS=(cb,mod)=>function(){return mod||(0, cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod));var getControlId=value=>`control-${value.replace(/\s+/g,"-")}`,getControlSetterButtonId=value=>`set-${value.replace(/\s+/g,"-")}`; + + + + +/***/ }), + +/***/ "../../../node_modules/@storybook/blocks/dist/index.mjs": +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; + +// EXPORTS +__webpack_require__.d(__webpack_exports__, { + zE: () => (/* binding */ AnchorMdx), + ov: () => (/* binding */ ArgTypes), + Hl: () => (/* binding */ Canvas), + XA: () => (/* binding */ CodeOrSourceMdx), + VY: () => (/* binding */ DescriptionContainer), + kQ: () => (/* binding */ Docs), + Sw: () => (/* binding */ HeadersMdx), + oz: () => (/* binding */ Markdown2), + W8: () => (/* binding */ Meta), + hE: () => (/* binding */ Title2) +}); + +// UNUSED EXPORTS: AddContext, Anchor, BooleanControl, ColorControl, ColorItem, ColorPalette, Controls, DateControl, DescriptionType, DocsContainer, DocsContext, DocsPage, DocsStory, ExternalDocs, ExternalDocsContainer, FilesControl, HeaderMdx, Heading, IconGallery, IconItem, NumberControl, ObjectControl, OptionsControl, PRIMARY_STORY, Primary, PureArgsTable, RangeControl, Source, SourceContainer, SourceContext, Stories, Story, Subheading, Subtitle, TextControl, Typeset, UNKNOWN_ARGS_HASH, Unstyled, Wrapper, anchorBlockIdFromId, argsHash, assertIsFn, extractTitle, format, formatDate, formatTime, getStoryId, getStoryProps, parse, parseDate, parseTime, useOf, useSourceProps + +// EXTERNAL MODULE: ../../../node_modules/@storybook/blocks/dist/chunk-MKV36LKP.mjs +var chunk_MKV36LKP = __webpack_require__("../../../node_modules/@storybook/blocks/dist/chunk-MKV36LKP.mjs"); +// EXTERNAL MODULE: ../../../node_modules/react/index.js +var react = __webpack_require__("../../../node_modules/react/index.js"); +// EXTERNAL MODULE: ../../../node_modules/@storybook/core/dist/components/index.js +var components = __webpack_require__("../../../node_modules/@storybook/core/dist/components/index.js"); +// EXTERNAL MODULE: ../../../node_modules/@storybook/core/dist/theming/index.js +var theming = __webpack_require__("../../../node_modules/@storybook/core/dist/theming/index.js"); +;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/extends.js +function extends_extends() { + return extends_extends = Object.assign ? Object.assign.bind() : function (n) { + for (var e = 1; e < arguments.length; e++) { + var t = arguments[e]; + for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); + } + return n; + }, extends_extends.apply(null, arguments); +} + +;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +function _assertThisInitialized(e) { + if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return e; +} + +;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +function _setPrototypeOf(t, e) { + return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { + return t.__proto__ = e, t; + }, _setPrototypeOf(t, e); +} + +;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js + +function _inheritsLoose(t, o) { + t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); +} + +;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +function _getPrototypeOf(t) { + return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, _getPrototypeOf(t); +} + +;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +function _isNativeFunction(t) { + try { + return -1 !== Function.toString.call(t).indexOf("[native code]"); + } catch (n) { + return "function" == typeof t; + } +} + +;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +function _isNativeReflectConstruct() { + try { + var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); + } catch (t) {} + return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { + return !!t; + })(); +} + +;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/construct.js + + +function _construct(t, e, r) { + if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); + var o = [null]; + o.push.apply(o, e); + var p = new (t.bind.apply(t, o))(); + return r && _setPrototypeOf(p, r.prototype), p; +} + +;// CONCATENATED MODULE: ../../../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js + + + + +function _wrapNativeSuper(t) { + var r = "function" == typeof Map ? new Map() : void 0; + return _wrapNativeSuper = function _wrapNativeSuper(t) { + if (null === t || !_isNativeFunction(t)) return t; + if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function"); + if (void 0 !== r) { + if (r.has(t)) return r.get(t); + r.set(t, Wrapper); + } + function Wrapper() { + return _construct(t, arguments, _getPrototypeOf(this).constructor); + } + return Wrapper.prototype = Object.create(t.prototype, { + constructor: { + value: Wrapper, + enumerable: !1, + writable: !0, + configurable: !0 + } + }), _setPrototypeOf(Wrapper, t); + }, _wrapNativeSuper(t); +} + +;// CONCATENATED MODULE: ../../../node_modules/polished/dist/polished.esm.js + + + + + + +function last() { + var _ref; + return _ref = arguments.length - 1, _ref < 0 || arguments.length <= _ref ? undefined : arguments[_ref]; +} +function negation(a) { + return -a; +} +function addition(a, b) { + return a + b; +} +function subtraction(a, b) { + return a - b; +} +function multiplication(a, b) { + return a * b; +} +function division(a, b) { + return a / b; +} +function max() { + return Math.max.apply(Math, arguments); +} +function min() { + return Math.min.apply(Math, arguments); +} +function comma() { + return Array.of.apply(Array, arguments); +} +var defaultSymbols = { + symbols: { + '*': { + infix: { + symbol: '*', + f: multiplication, + notation: 'infix', + precedence: 4, + rightToLeft: 0, + argCount: 2 + }, + symbol: '*', + regSymbol: '\\*' + }, + '/': { + infix: { + symbol: '/', + f: division, + notation: 'infix', + precedence: 4, + rightToLeft: 0, + argCount: 2 + }, + symbol: '/', + regSymbol: '/' + }, + '+': { + infix: { + symbol: '+', + f: addition, + notation: 'infix', + precedence: 2, + rightToLeft: 0, + argCount: 2 + }, + prefix: { + symbol: '+', + f: last, + notation: 'prefix', + precedence: 3, + rightToLeft: 0, + argCount: 1 + }, + symbol: '+', + regSymbol: '\\+' + }, + '-': { + infix: { + symbol: '-', + f: subtraction, + notation: 'infix', + precedence: 2, + rightToLeft: 0, + argCount: 2 + }, + prefix: { + symbol: '-', + f: negation, + notation: 'prefix', + precedence: 3, + rightToLeft: 0, + argCount: 1 + }, + symbol: '-', + regSymbol: '-' + }, + ',': { + infix: { + symbol: ',', + f: comma, + notation: 'infix', + precedence: 1, + rightToLeft: 0, + argCount: 2 + }, + symbol: ',', + regSymbol: ',' + }, + '(': { + prefix: { + symbol: '(', + f: last, + notation: 'prefix', + precedence: 0, + rightToLeft: 0, + argCount: 1 + }, + symbol: '(', + regSymbol: '\\(' + }, + ')': { + postfix: { + symbol: ')', + f: undefined, + notation: 'postfix', + precedence: 0, + rightToLeft: 0, + argCount: 1 + }, + symbol: ')', + regSymbol: '\\)' + }, + min: { + func: { + symbol: 'min', + f: min, + notation: 'func', + precedence: 0, + rightToLeft: 0, + argCount: 1 + }, + symbol: 'min', + regSymbol: 'min\\b' + }, + max: { + func: { + symbol: 'max', + f: max, + notation: 'func', + precedence: 0, + rightToLeft: 0, + argCount: 1 + }, + symbol: 'max', + regSymbol: 'max\\b' + } + } +}; +var defaultSymbolMap = (/* unused pure expression or super */ null && (defaultSymbols)); + +// based on https://github.com/styled-components/styled-components/blob/fcf6f3804c57a14dd7984dfab7bc06ee2edca044/src/utils/error.js +/** + * Parse errors.md and turn it into a simple hash of code: message + * @private + */ +var ERRORS = { + "1": "Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n", + "2": "Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n", + "3": "Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n", + "4": "Couldn't generate valid rgb string from %s, it returned %s.\n\n", + "5": "Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n", + "6": "Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).\n\n", + "7": "Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).\n\n", + "8": "Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n", + "9": "Please provide a number of steps to the modularScale helper.\n\n", + "10": "Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n", + "11": "Invalid value passed as base to modularScale, expected number or em string but got \"%s\"\n\n", + "12": "Expected a string ending in \"px\" or a number passed as the first argument to %s(), got \"%s\" instead.\n\n", + "13": "Expected a string ending in \"px\" or a number passed as the second argument to %s(), got \"%s\" instead.\n\n", + "14": "Passed invalid pixel value (\"%s\") to %s(), please pass a value like \"12px\" or 12.\n\n", + "15": "Passed invalid base value (\"%s\") to %s(), please pass a value like \"12px\" or 12.\n\n", + "16": "You must provide a template to this method.\n\n", + "17": "You passed an unsupported selector state to this method.\n\n", + "18": "minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n", + "19": "fromSize and toSize must be provided as stringified numbers with the same units.\n\n", + "20": "expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n", + "21": "expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n", + "22": "expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n", + "23": "fontFace expects a name of a font-family.\n\n", + "24": "fontFace expects either the path to the font file(s) or a name of a local copy.\n\n", + "25": "fontFace expects localFonts to be an array.\n\n", + "26": "fontFace expects fileFormats to be an array.\n\n", + "27": "radialGradient requries at least 2 color-stops to properly render.\n\n", + "28": "Please supply a filename to retinaImage() as the first argument.\n\n", + "29": "Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n", + "30": "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n", + "31": "The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n", + "32": "To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\n\n", + "33": "The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n", + "34": "borderRadius expects a radius value as a string or number as the second argument.\n\n", + "35": "borderRadius expects one of \"top\", \"bottom\", \"left\" or \"right\" as the first argument.\n\n", + "36": "Property must be a string value.\n\n", + "37": "Syntax Error at %s.\n\n", + "38": "Formula contains a function that needs parentheses at %s.\n\n", + "39": "Formula is missing closing parenthesis at %s.\n\n", + "40": "Formula has too many closing parentheses at %s.\n\n", + "41": "All values in a formula must have the same unit or be unitless.\n\n", + "42": "Please provide a number of steps to the modularScale helper.\n\n", + "43": "Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n", + "44": "Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n", + "45": "Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n", + "46": "Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n", + "47": "minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n", + "48": "fromSize and toSize must be provided as stringified numbers with the same units.\n\n", + "49": "Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n", + "50": "Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n", + "51": "Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n", + "52": "fontFace expects either the path to the font file(s) or a name of a local copy.\n\n", + "53": "fontFace expects localFonts to be an array.\n\n", + "54": "fontFace expects fileFormats to be an array.\n\n", + "55": "fontFace expects a name of a font-family.\n\n", + "56": "linearGradient requries at least 2 color-stops to properly render.\n\n", + "57": "radialGradient requries at least 2 color-stops to properly render.\n\n", + "58": "Please supply a filename to retinaImage() as the first argument.\n\n", + "59": "Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n", + "60": "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n", + "61": "Property must be a string value.\n\n", + "62": "borderRadius expects a radius value as a string or number as the second argument.\n\n", + "63": "borderRadius expects one of \"top\", \"bottom\", \"left\" or \"right\" as the first argument.\n\n", + "64": "The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n", + "65": "To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').\n\n", + "66": "The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n", + "67": "You must provide a template to this method.\n\n", + "68": "You passed an unsupported selector state to this method.\n\n", + "69": "Expected a string ending in \"px\" or a number passed as the first argument to %s(), got %s instead.\n\n", + "70": "Expected a string ending in \"px\" or a number passed as the second argument to %s(), got %s instead.\n\n", + "71": "Passed invalid pixel value %s to %s(), please pass a value like \"12px\" or 12.\n\n", + "72": "Passed invalid base value %s to %s(), please pass a value like \"12px\" or 12.\n\n", + "73": "Please provide a valid CSS variable.\n\n", + "74": "CSS variable not found and no default was provided.\n\n", + "75": "important requires a valid style object, got a %s instead.\n\n", + "76": "fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n\n", + "77": "remToPx expects a value in \"rem\" but you provided it in \"%s\".\n\n", + "78": "base must be set in \"px\" or \"%\" but you set it in \"%s\".\n" +}; + +/** + * super basic version of sprintf + * @private + */ +function format() { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + var a = args[0]; + var b = []; + var c; + for (c = 1; c < args.length; c += 1) { + b.push(args[c]); + } + b.forEach(function (d) { + a = a.replace(/%[a-z]/, d); + }); + return a; +} + +/** + * Create an error file out of errors.md for development and a simple web link to the full errors + * in production mode. + * @private + */ +var PolishedError = /*#__PURE__*/function (_Error) { + _inheritsLoose(PolishedError, _Error); + function PolishedError(code) { + var _this; + if (true) { + _this = _Error.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#" + code + " for more information.") || this; + } else { var _len2, args, _key2; } + return _assertThisInitialized(_this); + } + return PolishedError; +}( /*#__PURE__*/_wrapNativeSuper(Error)); + +var unitRegExp = /((?!\w)a|na|hc|mc|dg|me[r]?|xe|ni(?![a-zA-Z])|mm|cp|tp|xp|q(?!s)|hv|xamv|nimv|wv|sm|s(?!\D|$)|ged|darg?|nrut)/g; + +// Merges additional math functionality into the defaults. +function mergeSymbolMaps(additionalSymbols) { + var symbolMap = {}; + symbolMap.symbols = additionalSymbols ? _extends({}, defaultSymbolMap.symbols, additionalSymbols.symbols) : _extends({}, defaultSymbolMap.symbols); + return symbolMap; +} +function exec(operators, values) { + var _ref; + var op = operators.pop(); + values.push(op.f.apply(op, (_ref = []).concat.apply(_ref, values.splice(-op.argCount)))); + return op.precedence; +} +function calculate(expression, additionalSymbols) { + var symbolMap = mergeSymbolMaps(additionalSymbols); + var match; + var operators = [symbolMap.symbols['('].prefix]; + var values = []; + var pattern = new RegExp( // Pattern for numbers + "\\d+(?:\\.\\d+)?|" + + // ...and patterns for individual operators/function names + Object.keys(symbolMap.symbols).map(function (key) { + return symbolMap.symbols[key]; + }) + // longer symbols should be listed first + // $FlowFixMe + .sort(function (a, b) { + return b.symbol.length - a.symbol.length; + }) + // $FlowFixMe + .map(function (val) { + return val.regSymbol; + }).join('|') + "|(\\S)", 'g'); + pattern.lastIndex = 0; // Reset regular expression object + + var afterValue = false; + do { + match = pattern.exec(expression); + var _ref2 = match || [')', undefined], + token = _ref2[0], + bad = _ref2[1]; + var notNumber = symbolMap.symbols[token]; + var notNewValue = notNumber && !notNumber.prefix && !notNumber.func; + var notAfterValue = !notNumber || !notNumber.postfix && !notNumber.infix; + + // Check for syntax errors: + if (bad || (afterValue ? notAfterValue : notNewValue)) { + throw new PolishedError(37, match ? match.index : expression.length, expression); + } + if (afterValue) { + // We either have an infix or postfix operator (they should be mutually exclusive) + var curr = notNumber.postfix || notNumber.infix; + do { + var prev = operators[operators.length - 1]; + if ((curr.precedence - prev.precedence || prev.rightToLeft) > 0) break; + // Apply previous operator, since it has precedence over current one + } while (exec(operators, values)); // Exit loop after executing an opening parenthesis or function + afterValue = curr.notation === 'postfix'; + if (curr.symbol !== ')') { + operators.push(curr); + // Postfix always has precedence over any operator that follows after it + if (afterValue) exec(operators, values); + } + } else if (notNumber) { + // prefix operator or function + operators.push(notNumber.prefix || notNumber.func); + if (notNumber.func) { + // Require an opening parenthesis + match = pattern.exec(expression); + if (!match || match[0] !== '(') { + throw new PolishedError(38, match ? match.index : expression.length, expression); + } + } + } else { + // number + values.push(+token); + afterValue = true; + } + } while (match && operators.length); + if (operators.length) { + throw new PolishedError(39, match ? match.index : expression.length, expression); + } else if (match) { + throw new PolishedError(40, match ? match.index : expression.length, expression); + } else { + return values.pop(); + } +} +function reverseString(str) { + return str.split('').reverse().join(''); +} + +/** + * Helper for doing math with CSS Units. Accepts a formula as a string. All values in the formula must have the same unit (or be unitless). Supports complex formulas utliziing addition, subtraction, multiplication, division, square root, powers, factorial, min, max, as well as parentheses for order of operation. + * + *In cases where you need to do calculations with mixed units where one unit is a [relative length unit](https://developer.mozilla.org/en-US/docs/Web/CSS/length#Relative_length_units), you will want to use [CSS Calc](https://developer.mozilla.org/en-US/docs/Web/CSS/calc). + * + * *warning* While we've done everything possible to ensure math safely evalutes formulas expressed as strings, you should always use extreme caution when passing `math` user provided values. + * @example + * // Styles as object usage + * const styles = { + * fontSize: math('12rem + 8rem'), + * fontSize: math('(12px + 2px) * 3'), + * fontSize: math('3px^2 + sqrt(4)'), + * } + * + * // styled-components usage + * const div = styled.div` + * fontSize: ${math('12rem + 8rem')}; + * fontSize: ${math('(12px + 2px) * 3')}; + * fontSize: ${math('3px^2 + sqrt(4)')}; + * ` + * + * // CSS as JS Output + * + * div: { + * fontSize: '20rem', + * fontSize: '42px', + * fontSize: '11px', + * } + */ +function math(formula, additionalSymbols) { + var reversedFormula = reverseString(formula); + var formulaMatch = reversedFormula.match(unitRegExp); + + // Check that all units are the same + if (formulaMatch && !formulaMatch.every(function (unit) { + return unit === formulaMatch[0]; + })) { + throw new PolishedError(41); + } + var cleanFormula = reverseString(reversedFormula.replace(unitRegExp, '')); + return "" + calculate(cleanFormula, additionalSymbols) + (formulaMatch ? reverseString(formulaMatch[0]) : ''); +} + +var cssVariableRegex = /--[\S]*/g; + +/** + * Fetches the value of a passed CSS Variable in the :root scope, or otherwise returns a defaultValue if provided. + * + * @example + * // Styles as object usage + * const styles = { + * 'background': cssVar('--background-color'), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${cssVar('--background-color')}; + * ` + * + * // CSS in JS Output + * + * element { + * 'background': 'red' + * } + */ +function cssVar(cssVariable, defaultValue) { + if (!cssVariable || !cssVariable.match(cssVariableRegex)) { + throw new PolishedError(73); + } + var variableValue; + + /* eslint-disable */ + /* istanbul ignore next */ + if (typeof document !== 'undefined' && document.documentElement !== null) { + variableValue = getComputedStyle(document.documentElement).getPropertyValue(cssVariable); + } + /* eslint-enable */ + + if (variableValue) { + return variableValue.trim(); + } else if (defaultValue) { + return defaultValue; + } + throw new PolishedError(74); +} + +// @private +function capitalizeString(string) { + return string.charAt(0).toUpperCase() + string.slice(1); +} + +var positionMap$1 = (/* unused pure expression or super */ null && (['Top', 'Right', 'Bottom', 'Left'])); +function generateProperty(property, position) { + if (!property) return position.toLowerCase(); + var splitProperty = property.split('-'); + if (splitProperty.length > 1) { + splitProperty.splice(1, 0, position); + return splitProperty.reduce(function (acc, val) { + return "" + acc + capitalizeString(val); + }); + } + var joinedProperty = property.replace(/([a-z])([A-Z])/g, "$1" + position + "$2"); + return property === joinedProperty ? "" + property + position : joinedProperty; +} +function generateStyles(property, valuesWithDefaults) { + var styles = {}; + for (var i = 0; i < valuesWithDefaults.length; i += 1) { + if (valuesWithDefaults[i] || valuesWithDefaults[i] === 0) { + styles[generateProperty(property, positionMap$1[i])] = valuesWithDefaults[i]; + } + } + return styles; +} + +/** + * Enables shorthand for direction-based properties. It accepts a property (hyphenated or camelCased) and up to four values that map to top, right, bottom, and left, respectively. You can optionally pass an empty string to get only the directional values as properties. You can also optionally pass a null argument for a directional value to ignore it. + * @example + * // Styles as object usage + * const styles = { + * ...directionalProperty('padding', '12px', '24px', '36px', '48px') + * } + * + * // styled-components usage + * const div = styled.div` + * ${directionalProperty('padding', '12px', '24px', '36px', '48px')} + * ` + * + * // CSS as JS Output + * + * div { + * 'paddingTop': '12px', + * 'paddingRight': '24px', + * 'paddingBottom': '36px', + * 'paddingLeft': '48px' + * } + */ +function directionalProperty(property) { + for (var _len = arguments.length, values = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + values[_key - 1] = arguments[_key]; + } + // prettier-ignore + var firstValue = values[0], + _values$ = values[1], + secondValue = _values$ === void 0 ? firstValue : _values$, + _values$2 = values[2], + thirdValue = _values$2 === void 0 ? firstValue : _values$2, + _values$3 = values[3], + fourthValue = _values$3 === void 0 ? secondValue : _values$3; + var valuesWithDefaults = [firstValue, secondValue, thirdValue, fourthValue]; + return generateStyles(property, valuesWithDefaults); +} + +/** + * Check if a string ends with something + * @private + */ +function endsWith(string, suffix) { + return string.substr(-suffix.length) === suffix; +} + +var cssRegex$1 = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/; + +/** + * Returns a given CSS value minus its unit of measure. + * + * @example + * // Styles as object usage + * const styles = { + * '--dimension': stripUnit('100px') + * } + * + * // styled-components usage + * const div = styled.div` + * --dimension: ${stripUnit('100px')}; + * ` + * + * // CSS in JS Output + * + * element { + * '--dimension': 100 + * } + */ +function stripUnit(value) { + if (typeof value !== 'string') return value; + var matchedValue = value.match(cssRegex$1); + return matchedValue ? parseFloat(value) : value; +} + +/** + * Factory function that creates pixel-to-x converters + * @private + */ +var pxtoFactory = function pxtoFactory(to) { + return function (pxval, base) { + if (base === void 0) { + base = '16px'; + } + var newPxval = pxval; + var newBase = base; + if (typeof pxval === 'string') { + if (!endsWith(pxval, 'px')) { + throw new PolishedError(69, to, pxval); + } + newPxval = stripUnit(pxval); + } + if (typeof base === 'string') { + if (!endsWith(base, 'px')) { + throw new PolishedError(70, to, base); + } + newBase = stripUnit(base); + } + if (typeof newPxval === 'string') { + throw new PolishedError(71, pxval, to); + } + if (typeof newBase === 'string') { + throw new PolishedError(72, base, to); + } + return "" + newPxval / newBase + to; + }; +}; +var pixelsto = pxtoFactory; + +/** + * Convert pixel value to ems. The default base value is 16px, but can be changed by passing a + * second argument to the function. + * @function + * @param {string|number} pxval + * @param {string|number} [base='16px'] + * @example + * // Styles as object usage + * const styles = { + * 'height': em('16px') + * } + * + * // styled-components usage + * const div = styled.div` + * height: ${em('16px')} + * ` + * + * // CSS in JS Output + * + * element { + * 'height': '1em' + * } + */ +var em = pixelsto('em'); +var em$1 = (/* unused pure expression or super */ null && (em)); + +var cssRegex = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/; + +/** + * Returns a given CSS value and its unit as elements of an array. + * + * @example + * // Styles as object usage + * const styles = { + * '--dimension': getValueAndUnit('100px')[0], + * '--unit': getValueAndUnit('100px')[1], + * } + * + * // styled-components usage + * const div = styled.div` + * --dimension: ${getValueAndUnit('100px')[0]}; + * --unit: ${getValueAndUnit('100px')[1]}; + * ` + * + * // CSS in JS Output + * + * element { + * '--dimension': 100, + * '--unit': 'px', + * } + */ +function getValueAndUnit(value) { + if (typeof value !== 'string') return [value, '']; + var matchedValue = value.match(cssRegex); + if (matchedValue) return [parseFloat(value), matchedValue[2]]; + return [value, undefined]; +} + +/** + * Helper for targeting rules in a style block generated by polished modules that need !important-level specificity. Can optionally specify a rule (or rules) to target specific rules. + * + * @example + * // Styles as object usage + * const styles = { + * ...important(cover()) + * } + * + * // styled-components usage + * const div = styled.div` + * ${important(cover())} + * ` + * + * // CSS as JS Output + * + * div: { + * 'position': 'absolute !important', + * 'top': '0 !important', + * 'right: '0 !important', + * 'bottom': '0 !important', + * 'left: '0 !important' + * } + */ +function important(styleBlock, rules) { + if (typeof styleBlock !== 'object' || styleBlock === null) { + throw new PolishedError(75, typeof styleBlock); + } + var newStyleBlock = {}; + Object.keys(styleBlock).forEach(function (key) { + if (typeof styleBlock[key] === 'object' && styleBlock[key] !== null) { + newStyleBlock[key] = important(styleBlock[key], rules); + } else if (!rules || rules && (rules === key || rules.indexOf(key) >= 0)) { + newStyleBlock[key] = styleBlock[key] + " !important"; + } else { + newStyleBlock[key] = styleBlock[key]; + } + }); + return newStyleBlock; +} + +var ratioNames = { + minorSecond: 1.067, + majorSecond: 1.125, + minorThird: 1.2, + majorThird: 1.25, + perfectFourth: 1.333, + augFourth: 1.414, + perfectFifth: 1.5, + minorSixth: 1.6, + goldenSection: 1.618, + majorSixth: 1.667, + minorSeventh: 1.778, + majorSeventh: 1.875, + octave: 2, + majorTenth: 2.5, + majorEleventh: 2.667, + majorTwelfth: 3, + doubleOctave: 4 +}; +function getRatio(ratioName) { + return ratioNames[ratioName]; +} + +/** + * Establish consistent measurements and spacial relationships throughout your projects by incrementing an em or rem value up or down a defined scale. We provide a list of commonly used scales as pre-defined variables. + * @example + * // Styles as object usage + * const styles = { + * // Increment two steps up the default scale + * 'fontSize': modularScale(2) + * } + * + * // styled-components usage + * const div = styled.div` + * // Increment two steps up the default scale + * fontSize: ${modularScale(2)} + * ` + * + * // CSS in JS Output + * + * element { + * 'fontSize': '1.77689em' + * } + */ +function modularScale(steps, base, ratio) { + if (base === void 0) { + base = '1em'; + } + if (ratio === void 0) { + ratio = 1.333; + } + if (typeof steps !== 'number') { + throw new PolishedError(42); + } + if (typeof ratio === 'string' && !ratioNames[ratio]) { + throw new PolishedError(43); + } + var _ref = typeof base === 'string' ? getValueAndUnit(base) : [base, ''], + realBase = _ref[0], + unit = _ref[1]; + var realRatio = typeof ratio === 'string' ? getRatio(ratio) : ratio; + if (typeof realBase === 'string') { + throw new PolishedError(44, base); + } + return "" + realBase * Math.pow(realRatio, steps) + (unit || ''); +} + +/** + * Convert pixel value to rems. The default base value is 16px, but can be changed by passing a + * second argument to the function. + * @function + * @param {string|number} pxval + * @param {string|number} [base='16px'] + * @example + * // Styles as object usage + * const styles = { + * 'height': rem('16px') + * } + * + * // styled-components usage + * const div = styled.div` + * height: ${rem('16px')} + * ` + * + * // CSS in JS Output + * + * element { + * 'height': '1rem' + * } + */ +var rem = pixelsto('rem'); +var rem$1 = (/* unused pure expression or super */ null && (rem)); + +var defaultFontSize = 16; +function convertBase(base) { + var deconstructedValue = getValueAndUnit(base); + if (deconstructedValue[1] === 'px') { + return parseFloat(base); + } + if (deconstructedValue[1] === '%') { + return parseFloat(base) / 100 * defaultFontSize; + } + throw new PolishedError(78, deconstructedValue[1]); +} +function getBaseFromDoc() { + /* eslint-disable */ + /* istanbul ignore next */ + if (typeof document !== 'undefined' && document.documentElement !== null) { + var rootFontSize = getComputedStyle(document.documentElement).fontSize; + return rootFontSize ? convertBase(rootFontSize) : defaultFontSize; + } + /* eslint-enable */ + /* istanbul ignore next */ + return defaultFontSize; +} + +/** + * Convert rem values to px. By default, the base value is pulled from the font-size property on the root element (if it is set in % or px). It defaults to 16px if not found on the root. You can also override the base value by providing your own base in % or px. + * @example + * // Styles as object usage + * const styles = { + * 'height': remToPx('1.6rem') + * 'height': remToPx('1.6rem', '10px') + * } + * + * // styled-components usage + * const div = styled.div` + * height: ${remToPx('1.6rem')} + * height: ${remToPx('1.6rem', '10px')} + * ` + * + * // CSS in JS Output + * + * element { + * 'height': '25.6px', + * 'height': '16px', + * } + */ +function remToPx(value, base) { + var deconstructedValue = getValueAndUnit(value); + if (deconstructedValue[1] !== 'rem' && deconstructedValue[1] !== '') { + throw new PolishedError(77, deconstructedValue[1]); + } + var newBase = base ? convertBase(base) : getBaseFromDoc(); + return deconstructedValue[0] * newBase + "px"; +} + +var functionsMap$3 = { + back: 'cubic-bezier(0.600, -0.280, 0.735, 0.045)', + circ: 'cubic-bezier(0.600, 0.040, 0.980, 0.335)', + cubic: 'cubic-bezier(0.550, 0.055, 0.675, 0.190)', + expo: 'cubic-bezier(0.950, 0.050, 0.795, 0.035)', + quad: 'cubic-bezier(0.550, 0.085, 0.680, 0.530)', + quart: 'cubic-bezier(0.895, 0.030, 0.685, 0.220)', + quint: 'cubic-bezier(0.755, 0.050, 0.855, 0.060)', + sine: 'cubic-bezier(0.470, 0.000, 0.745, 0.715)' +}; + +/** + * String to represent common easing functions as demonstrated here: (github.com/jaukia/easie). + * + * @example + * // Styles as object usage + * const styles = { + * 'transitionTimingFunction': easeIn('quad') + * } + * + * // styled-components usage + * const div = styled.div` + * transitionTimingFunction: ${easeIn('quad')}; + * ` + * + * // CSS as JS Output + * + * 'div': { + * 'transitionTimingFunction': 'cubic-bezier(0.550, 0.085, 0.680, 0.530)', + * } + */ +function easeIn(functionName) { + return functionsMap$3[functionName.toLowerCase().trim()]; +} + +var functionsMap$2 = { + back: 'cubic-bezier(0.680, -0.550, 0.265, 1.550)', + circ: 'cubic-bezier(0.785, 0.135, 0.150, 0.860)', + cubic: 'cubic-bezier(0.645, 0.045, 0.355, 1.000)', + expo: 'cubic-bezier(1.000, 0.000, 0.000, 1.000)', + quad: 'cubic-bezier(0.455, 0.030, 0.515, 0.955)', + quart: 'cubic-bezier(0.770, 0.000, 0.175, 1.000)', + quint: 'cubic-bezier(0.860, 0.000, 0.070, 1.000)', + sine: 'cubic-bezier(0.445, 0.050, 0.550, 0.950)' +}; + +/** + * String to represent common easing functions as demonstrated here: (github.com/jaukia/easie). + * + * @example + * // Styles as object usage + * const styles = { + * 'transitionTimingFunction': easeInOut('quad') + * } + * + * // styled-components usage + * const div = styled.div` + * transitionTimingFunction: ${easeInOut('quad')}; + * ` + * + * // CSS as JS Output + * + * 'div': { + * 'transitionTimingFunction': 'cubic-bezier(0.455, 0.030, 0.515, 0.955)', + * } + */ +function easeInOut(functionName) { + return functionsMap$2[functionName.toLowerCase().trim()]; +} + +var functionsMap$1 = { + back: 'cubic-bezier(0.175, 0.885, 0.320, 1.275)', + cubic: 'cubic-bezier(0.215, 0.610, 0.355, 1.000)', + circ: 'cubic-bezier(0.075, 0.820, 0.165, 1.000)', + expo: 'cubic-bezier(0.190, 1.000, 0.220, 1.000)', + quad: 'cubic-bezier(0.250, 0.460, 0.450, 0.940)', + quart: 'cubic-bezier(0.165, 0.840, 0.440, 1.000)', + quint: 'cubic-bezier(0.230, 1.000, 0.320, 1.000)', + sine: 'cubic-bezier(0.390, 0.575, 0.565, 1.000)' +}; + +/** + * String to represent common easing functions as demonstrated here: (github.com/jaukia/easie). + * + * @example + * // Styles as object usage + * const styles = { + * 'transitionTimingFunction': easeOut('quad') + * } + * + * // styled-components usage + * const div = styled.div` + * transitionTimingFunction: ${easeOut('quad')}; + * ` + * + * // CSS as JS Output + * + * 'div': { + * 'transitionTimingFunction': 'cubic-bezier(0.250, 0.460, 0.450, 0.940)', + * } + */ +function easeOut(functionName) { + return functionsMap$1[functionName.toLowerCase().trim()]; +} + +/** + * Returns a CSS calc formula for linear interpolation of a property between two values. Accepts optional minScreen (defaults to '320px') and maxScreen (defaults to '1200px'). + * + * @example + * // Styles as object usage + * const styles = { + * fontSize: between('20px', '100px', '400px', '1000px'), + * fontSize: between('20px', '100px') + * } + * + * // styled-components usage + * const div = styled.div` + * fontSize: ${between('20px', '100px', '400px', '1000px')}; + * fontSize: ${between('20px', '100px')} + * ` + * + * // CSS as JS Output + * + * h1: { + * 'fontSize': 'calc(-33.33333333333334px + 13.333333333333334vw)', + * 'fontSize': 'calc(-9.090909090909093px + 9.090909090909092vw)' + * } + */ +function between(fromSize, toSize, minScreen, maxScreen) { + if (minScreen === void 0) { + minScreen = '320px'; + } + if (maxScreen === void 0) { + maxScreen = '1200px'; + } + var _getValueAndUnit = getValueAndUnit(fromSize), + unitlessFromSize = _getValueAndUnit[0], + fromSizeUnit = _getValueAndUnit[1]; + var _getValueAndUnit2 = getValueAndUnit(toSize), + unitlessToSize = _getValueAndUnit2[0], + toSizeUnit = _getValueAndUnit2[1]; + var _getValueAndUnit3 = getValueAndUnit(minScreen), + unitlessMinScreen = _getValueAndUnit3[0], + minScreenUnit = _getValueAndUnit3[1]; + var _getValueAndUnit4 = getValueAndUnit(maxScreen), + unitlessMaxScreen = _getValueAndUnit4[0], + maxScreenUnit = _getValueAndUnit4[1]; + if (typeof unitlessMinScreen !== 'number' || typeof unitlessMaxScreen !== 'number' || !minScreenUnit || !maxScreenUnit || minScreenUnit !== maxScreenUnit) { + throw new PolishedError(47); + } + if (typeof unitlessFromSize !== 'number' || typeof unitlessToSize !== 'number' || fromSizeUnit !== toSizeUnit) { + throw new PolishedError(48); + } + if (fromSizeUnit !== minScreenUnit || toSizeUnit !== maxScreenUnit) { + throw new PolishedError(76); + } + var slope = (unitlessFromSize - unitlessToSize) / (unitlessMinScreen - unitlessMaxScreen); + var base = unitlessToSize - slope * unitlessMaxScreen; + return "calc(" + base.toFixed(2) + (fromSizeUnit || '') + " + " + (100 * slope).toFixed(2) + "vw)"; +} + +/** + * CSS to contain a float (credit to CSSMojo). + * + * @example + * // Styles as object usage + * const styles = { + * ...clearFix(), + * } + * + * // styled-components usage + * const div = styled.div` + * ${clearFix()} + * ` + * + * // CSS as JS Output + * + * '&::after': { + * 'clear': 'both', + * 'content': '""', + * 'display': 'table' + * } + */ +function clearFix(parent) { + var _ref; + if (parent === void 0) { + parent = '&'; + } + var pseudoSelector = parent + "::after"; + return _ref = {}, _ref[pseudoSelector] = { + clear: 'both', + content: '""', + display: 'table' + }, _ref; +} + +/** + * CSS to fully cover an area. Can optionally be passed an offset to act as a "padding". + * + * @example + * // Styles as object usage + * const styles = { + * ...cover() + * } + * + * // styled-components usage + * const div = styled.div` + * ${cover()} + * ` + * + * // CSS as JS Output + * + * div: { + * 'position': 'absolute', + * 'top': '0', + * 'right: '0', + * 'bottom': '0', + * 'left: '0' + * } + */ +function cover(offset) { + if (offset === void 0) { + offset = 0; + } + return { + position: 'absolute', + top: offset, + right: offset, + bottom: offset, + left: offset + }; +} + +/** + * CSS to represent truncated text with an ellipsis. You can optionally pass a max-width and number of lines before truncating. + * + * @example + * // Styles as object usage + * const styles = { + * ...ellipsis('250px') + * } + * + * // styled-components usage + * const div = styled.div` + * ${ellipsis('250px')} + * ` + * + * // CSS as JS Output + * + * div: { + * 'display': 'inline-block', + * 'maxWidth': '250px', + * 'overflow': 'hidden', + * 'textOverflow': 'ellipsis', + * 'whiteSpace': 'nowrap', + * 'wordWrap': 'normal' + * } + */ +function ellipsis(width, lines) { + if (lines === void 0) { + lines = 1; + } + var styles = { + display: 'inline-block', + maxWidth: width || '100%', + overflow: 'hidden', + textOverflow: 'ellipsis', + whiteSpace: 'nowrap', + wordWrap: 'normal' + }; + return lines > 1 ? _extends({}, styles, { + WebkitBoxOrient: 'vertical', + WebkitLineClamp: lines, + display: '-webkit-box', + whiteSpace: 'normal' + }) : styles; +} + +function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } +/** + * Returns a set of media queries that resizes a property (or set of properties) between a provided fromSize and toSize. Accepts optional minScreen (defaults to '320px') and maxScreen (defaults to '1200px') to constrain the interpolation. + * + * @example + * // Styles as object usage + * const styles = { + * ...fluidRange( + * { + * prop: 'padding', + * fromSize: '20px', + * toSize: '100px', + * }, + * '400px', + * '1000px', + * ) + * } + * + * // styled-components usage + * const div = styled.div` + * ${fluidRange( + * { + * prop: 'padding', + * fromSize: '20px', + * toSize: '100px', + * }, + * '400px', + * '1000px', + * )} + * ` + * + * // CSS as JS Output + * + * div: { + * "@media (min-width: 1000px)": Object { + * "padding": "100px", + * }, + * "@media (min-width: 400px)": Object { + * "padding": "calc(-33.33333333333334px + 13.333333333333334vw)", + * }, + * "padding": "20px", + * } + */ +function fluidRange(cssProp, minScreen, maxScreen) { + if (minScreen === void 0) { + minScreen = '320px'; + } + if (maxScreen === void 0) { + maxScreen = '1200px'; + } + if (!Array.isArray(cssProp) && typeof cssProp !== 'object' || cssProp === null) { + throw new PolishedError(49); + } + if (Array.isArray(cssProp)) { + var mediaQueries = {}; + var fallbacks = {}; + for (var _iterator = _createForOfIteratorHelperLoose(cssProp), _step; !(_step = _iterator()).done;) { + var _extends2, _extends3; + var obj = _step.value; + if (!obj.prop || !obj.fromSize || !obj.toSize) { + throw new PolishedError(50); + } + fallbacks[obj.prop] = obj.fromSize; + mediaQueries["@media (min-width: " + minScreen + ")"] = _extends({}, mediaQueries["@media (min-width: " + minScreen + ")"], (_extends2 = {}, _extends2[obj.prop] = between(obj.fromSize, obj.toSize, minScreen, maxScreen), _extends2)); + mediaQueries["@media (min-width: " + maxScreen + ")"] = _extends({}, mediaQueries["@media (min-width: " + maxScreen + ")"], (_extends3 = {}, _extends3[obj.prop] = obj.toSize, _extends3)); + } + return _extends({}, fallbacks, mediaQueries); + } else { + var _ref, _ref2, _ref3; + if (!cssProp.prop || !cssProp.fromSize || !cssProp.toSize) { + throw new PolishedError(51); + } + return _ref3 = {}, _ref3[cssProp.prop] = cssProp.fromSize, _ref3["@media (min-width: " + minScreen + ")"] = (_ref = {}, _ref[cssProp.prop] = between(cssProp.fromSize, cssProp.toSize, minScreen, maxScreen), _ref), _ref3["@media (min-width: " + maxScreen + ")"] = (_ref2 = {}, _ref2[cssProp.prop] = cssProp.toSize, _ref2), _ref3; + } +} + +var dataURIRegex = /^\s*data:([a-z]+\/[a-z-]+(;[a-z-]+=[a-z-]+)?)?(;charset=[a-z0-9-]+)?(;base64)?,[a-z0-9!$&',()*+,;=\-._~:@/?%\s]*\s*$/i; +var formatHintMap = { + woff: 'woff', + woff2: 'woff2', + ttf: 'truetype', + otf: 'opentype', + eot: 'embedded-opentype', + svg: 'svg', + svgz: 'svg' +}; +function generateFormatHint(format, formatHint) { + if (!formatHint) return ''; + return " format(\"" + formatHintMap[format] + "\")"; +} +function isDataURI(fontFilePath) { + return !!fontFilePath.replace(/\s+/g, ' ').match(dataURIRegex); +} +function generateFileReferences(fontFilePath, fileFormats, formatHint) { + if (isDataURI(fontFilePath)) { + return "url(\"" + fontFilePath + "\")" + generateFormatHint(fileFormats[0], formatHint); + } + var fileFontReferences = fileFormats.map(function (format) { + return "url(\"" + fontFilePath + "." + format + "\")" + generateFormatHint(format, formatHint); + }); + return fileFontReferences.join(', '); +} +function generateLocalReferences(localFonts) { + var localFontReferences = localFonts.map(function (font) { + return "local(\"" + font + "\")"; + }); + return localFontReferences.join(', '); +} +function generateSources(fontFilePath, localFonts, fileFormats, formatHint) { + var fontReferences = []; + if (localFonts) fontReferences.push(generateLocalReferences(localFonts)); + if (fontFilePath) { + fontReferences.push(generateFileReferences(fontFilePath, fileFormats, formatHint)); + } + return fontReferences.join(', '); +} + +/** + * CSS for a @font-face declaration. Defaults to check for local copies of the font on the user's machine. You can disable this by passing `null` to localFonts. + * + * @example + * // Styles as object basic usage + * const styles = { + * ...fontFace({ + * 'fontFamily': 'Sans-Pro', + * 'fontFilePath': 'path/to/file' + * }) + * } + * + * // styled-components basic usage + * const GlobalStyle = createGlobalStyle`${ + * fontFace({ + * 'fontFamily': 'Sans-Pro', + * 'fontFilePath': 'path/to/file' + * } + * )}` + * + * // CSS as JS Output + * + * '@font-face': { + * 'fontFamily': 'Sans-Pro', + * 'src': 'url("path/to/file.eot"), url("path/to/file.woff2"), url("path/to/file.woff"), url("path/to/file.ttf"), url("path/to/file.svg")', + * } + */ + +function fontFace(_ref) { + var fontFamily = _ref.fontFamily, + fontFilePath = _ref.fontFilePath, + fontStretch = _ref.fontStretch, + fontStyle = _ref.fontStyle, + fontVariant = _ref.fontVariant, + fontWeight = _ref.fontWeight, + _ref$fileFormats = _ref.fileFormats, + fileFormats = _ref$fileFormats === void 0 ? ['eot', 'woff2', 'woff', 'ttf', 'svg'] : _ref$fileFormats, + _ref$formatHint = _ref.formatHint, + formatHint = _ref$formatHint === void 0 ? false : _ref$formatHint, + _ref$localFonts = _ref.localFonts, + localFonts = _ref$localFonts === void 0 ? [fontFamily] : _ref$localFonts, + unicodeRange = _ref.unicodeRange, + fontDisplay = _ref.fontDisplay, + fontVariationSettings = _ref.fontVariationSettings, + fontFeatureSettings = _ref.fontFeatureSettings; + // Error Handling + if (!fontFamily) throw new PolishedError(55); + if (!fontFilePath && !localFonts) { + throw new PolishedError(52); + } + if (localFonts && !Array.isArray(localFonts)) { + throw new PolishedError(53); + } + if (!Array.isArray(fileFormats)) { + throw new PolishedError(54); + } + var fontFaceDeclaration = { + '@font-face': { + fontFamily: fontFamily, + src: generateSources(fontFilePath, localFonts, fileFormats, formatHint), + unicodeRange: unicodeRange, + fontStretch: fontStretch, + fontStyle: fontStyle, + fontVariant: fontVariant, + fontWeight: fontWeight, + fontDisplay: fontDisplay, + fontVariationSettings: fontVariationSettings, + fontFeatureSettings: fontFeatureSettings + } + }; + + // Removes undefined fields for cleaner css object. + return JSON.parse(JSON.stringify(fontFaceDeclaration)); +} + +/** + * CSS to hide text to show a background image in a SEO-friendly way. + * + * @example + * // Styles as object usage + * const styles = { + * 'backgroundImage': 'url(logo.png)', + * ...hideText(), + * } + * + * // styled-components usage + * const div = styled.div` + * backgroundImage: url(logo.png); + * ${hideText()}; + * ` + * + * // CSS as JS Output + * + * 'div': { + * 'backgroundImage': 'url(logo.png)', + * 'textIndent': '101%', + * 'overflow': 'hidden', + * 'whiteSpace': 'nowrap', + * } + */ +function hideText() { + return { + textIndent: '101%', + overflow: 'hidden', + whiteSpace: 'nowrap' + }; +} + +/** + * CSS to hide content visually but remain accessible to screen readers. + * from [HTML5 Boilerplate](https://github.com/h5bp/html5-boilerplate/blob/9a176f57af1cfe8ec70300da4621fb9b07e5fa31/src/css/main.css#L121) + * + * @example + * // Styles as object usage + * const styles = { + * ...hideVisually(), + * } + * + * // styled-components usage + * const div = styled.div` + * ${hideVisually()}; + * ` + * + * // CSS as JS Output + * + * 'div': { + * 'border': '0', + * 'clip': 'rect(0 0 0 0)', + * 'height': '1px', + * 'margin': '-1px', + * 'overflow': 'hidden', + * 'padding': '0', + * 'position': 'absolute', + * 'whiteSpace': 'nowrap', + * 'width': '1px', + * } + */ +function hideVisually() { + return { + border: '0', + clip: 'rect(0 0 0 0)', + height: '1px', + margin: '-1px', + overflow: 'hidden', + padding: '0', + position: 'absolute', + whiteSpace: 'nowrap', + width: '1px' + }; +} + +/** + * Generates a media query to target HiDPI devices. + * + * @example + * // Styles as object usage + * const styles = { + * [hiDPI(1.5)]: { + * width: 200px; + * } + * } + * + * // styled-components usage + * const div = styled.div` + * ${hiDPI(1.5)} { + * width: 200px; + * } + * ` + * + * // CSS as JS Output + * + * '@media only screen and (-webkit-min-device-pixel-ratio: 1.5), + * only screen and (min--moz-device-pixel-ratio: 1.5), + * only screen and (-o-min-device-pixel-ratio: 1.5/1), + * only screen and (min-resolution: 144dpi), + * only screen and (min-resolution: 1.5dppx)': { + * 'width': '200px', + * } + */ +function hiDPI(ratio) { + if (ratio === void 0) { + ratio = 1.3; + } + return "\n @media only screen and (-webkit-min-device-pixel-ratio: " + ratio + "),\n only screen and (min--moz-device-pixel-ratio: " + ratio + "),\n only screen and (-o-min-device-pixel-ratio: " + ratio + "/1),\n only screen and (min-resolution: " + Math.round(ratio * 96) + "dpi),\n only screen and (min-resolution: " + ratio + "dppx)\n "; +} + +function constructGradientValue(literals) { + var template = ''; + for (var _len = arguments.length, substitutions = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + substitutions[_key - 1] = arguments[_key]; + } + for (var i = 0; i < literals.length; i += 1) { + template += literals[i]; + if (i === substitutions.length - 1 && substitutions[i]) { + var definedValues = substitutions.filter(function (substitute) { + return !!substitute; + }); + // Adds leading coma if properties preceed color-stops + if (definedValues.length > 1) { + template = template.slice(0, -1); + template += ", " + substitutions[i]; + // No trailing space if color-stops is the only param provided + } else if (definedValues.length === 1) { + template += "" + substitutions[i]; + } + } else if (substitutions[i]) { + template += substitutions[i] + " "; + } + } + return template.trim(); +} + +var _templateObject$1; +/** + * CSS for declaring a linear gradient, including a fallback background-color. The fallback is either the first color-stop or an explicitly passed fallback color. + * + * @example + * // Styles as object usage + * const styles = { + * ...linearGradient({ + colorStops: ['#00FFFF 0%', 'rgba(0, 0, 255, 0) 50%', '#0000FF 95%'], + toDirection: 'to top right', + fallback: '#FFF', + }) + * } + * + * // styled-components usage + * const div = styled.div` + * ${linearGradient({ + colorStops: ['#00FFFF 0%', 'rgba(0, 0, 255, 0) 50%', '#0000FF 95%'], + toDirection: 'to top right', + fallback: '#FFF', + })} + *` + * + * // CSS as JS Output + * + * div: { + * 'backgroundColor': '#FFF', + * 'backgroundImage': 'linear-gradient(to top right, #00FFFF 0%, rgba(0, 0, 255, 0) 50%, #0000FF 95%)', + * } + */ +function linearGradient(_ref) { + var colorStops = _ref.colorStops, + fallback = _ref.fallback, + _ref$toDirection = _ref.toDirection, + toDirection = _ref$toDirection === void 0 ? '' : _ref$toDirection; + if (!colorStops || colorStops.length < 2) { + throw new PolishedError(56); + } + return { + backgroundColor: fallback || colorStops[0].replace(/,\s+/g, ',').split(' ')[0].replace(/,(?=\S)/g, ', '), + backgroundImage: constructGradientValue(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteralLoose(["linear-gradient(", "", ")"])), toDirection, colorStops.join(', ').replace(/,(?=\S)/g, ', ')) + }; +} + +/** + * CSS to normalize abnormalities across browsers (normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css) + * + * @example + * // Styles as object usage + * const styles = { + * ...normalize(), + * } + * + * // styled-components usage + * const GlobalStyle = createGlobalStyle`${normalize()}` + * + * // CSS as JS Output + * + * html { + * lineHeight: 1.15, + * textSizeAdjust: 100%, + * } ... + */ +function normalize() { + var _ref; + return [(_ref = { + html: { + lineHeight: '1.15', + textSizeAdjust: '100%' + }, + body: { + margin: '0' + }, + main: { + display: 'block' + }, + h1: { + fontSize: '2em', + margin: '0.67em 0' + }, + hr: { + boxSizing: 'content-box', + height: '0', + overflow: 'visible' + }, + pre: { + fontFamily: 'monospace, monospace', + fontSize: '1em' + }, + a: { + backgroundColor: 'transparent' + }, + 'abbr[title]': { + borderBottom: 'none', + textDecoration: 'underline' + } + }, _ref["b,\n strong"] = { + fontWeight: 'bolder' + }, _ref["code,\n kbd,\n samp"] = { + fontFamily: 'monospace, monospace', + fontSize: '1em' + }, _ref.small = { + fontSize: '80%' + }, _ref["sub,\n sup"] = { + fontSize: '75%', + lineHeight: '0', + position: 'relative', + verticalAlign: 'baseline' + }, _ref.sub = { + bottom: '-0.25em' + }, _ref.sup = { + top: '-0.5em' + }, _ref.img = { + borderStyle: 'none' + }, _ref["button,\n input,\n optgroup,\n select,\n textarea"] = { + fontFamily: 'inherit', + fontSize: '100%', + lineHeight: '1.15', + margin: '0' + }, _ref["button,\n input"] = { + overflow: 'visible' + }, _ref["button,\n select"] = { + textTransform: 'none' + }, _ref["button,\n html [type=\"button\"],\n [type=\"reset\"],\n [type=\"submit\"]"] = { + WebkitAppearance: 'button' + }, _ref["button::-moz-focus-inner,\n [type=\"button\"]::-moz-focus-inner,\n [type=\"reset\"]::-moz-focus-inner,\n [type=\"submit\"]::-moz-focus-inner"] = { + borderStyle: 'none', + padding: '0' + }, _ref["button:-moz-focusring,\n [type=\"button\"]:-moz-focusring,\n [type=\"reset\"]:-moz-focusring,\n [type=\"submit\"]:-moz-focusring"] = { + outline: '1px dotted ButtonText' + }, _ref.fieldset = { + padding: '0.35em 0.625em 0.75em' + }, _ref.legend = { + boxSizing: 'border-box', + color: 'inherit', + display: 'table', + maxWidth: '100%', + padding: '0', + whiteSpace: 'normal' + }, _ref.progress = { + verticalAlign: 'baseline' + }, _ref.textarea = { + overflow: 'auto' + }, _ref["[type=\"checkbox\"],\n [type=\"radio\"]"] = { + boxSizing: 'border-box', + padding: '0' + }, _ref["[type=\"number\"]::-webkit-inner-spin-button,\n [type=\"number\"]::-webkit-outer-spin-button"] = { + height: 'auto' + }, _ref['[type="search"]'] = { + WebkitAppearance: 'textfield', + outlineOffset: '-2px' + }, _ref['[type="search"]::-webkit-search-decoration'] = { + WebkitAppearance: 'none' + }, _ref['::-webkit-file-upload-button'] = { + WebkitAppearance: 'button', + font: 'inherit' + }, _ref.details = { + display: 'block' + }, _ref.summary = { + display: 'list-item' + }, _ref.template = { + display: 'none' + }, _ref['[hidden]'] = { + display: 'none' + }, _ref), { + 'abbr[title]': { + textDecoration: 'underline dotted' + } + }]; +} + +var _templateObject; +/** + * CSS for declaring a radial gradient, including a fallback background-color. The fallback is either the first color-stop or an explicitly passed fallback color. + * + * @example + * // Styles as object usage + * const styles = { + * ...radialGradient({ + * colorStops: ['#00FFFF 0%', 'rgba(0, 0, 255, 0) 50%', '#0000FF 95%'], + * extent: 'farthest-corner at 45px 45px', + * position: 'center', + * shape: 'ellipse', + * }) + * } + * + * // styled-components usage + * const div = styled.div` + * ${radialGradient({ + * colorStops: ['#00FFFF 0%', 'rgba(0, 0, 255, 0) 50%', '#0000FF 95%'], + * extent: 'farthest-corner at 45px 45px', + * position: 'center', + * shape: 'ellipse', + * })} + *` + * + * // CSS as JS Output + * + * div: { + * 'backgroundColor': '#00FFFF', + * 'backgroundImage': 'radial-gradient(center ellipse farthest-corner at 45px 45px, #00FFFF 0%, rgba(0, 0, 255, 0) 50%, #0000FF 95%)', + * } + */ +function radialGradient(_ref) { + var colorStops = _ref.colorStops, + _ref$extent = _ref.extent, + extent = _ref$extent === void 0 ? '' : _ref$extent, + fallback = _ref.fallback, + _ref$position = _ref.position, + position = _ref$position === void 0 ? '' : _ref$position, + _ref$shape = _ref.shape, + shape = _ref$shape === void 0 ? '' : _ref$shape; + if (!colorStops || colorStops.length < 2) { + throw new PolishedError(57); + } + return { + backgroundColor: fallback || colorStops[0].split(' ')[0], + backgroundImage: constructGradientValue(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["radial-gradient(", "", "", "", ")"])), position, shape, extent, colorStops.join(', ')) + }; +} + +/** + * A helper to generate a retina background image and non-retina + * background image. The retina background image will output to a HiDPI media query. The mixin uses + * a _2x.png filename suffix by default. + * + * @example + * // Styles as object usage + * const styles = { + * ...retinaImage('my-img') + * } + * + * // styled-components usage + * const div = styled.div` + * ${retinaImage('my-img')} + * ` + * + * // CSS as JS Output + * div { + * backgroundImage: 'url(my-img.png)', + * '@media only screen and (-webkit-min-device-pixel-ratio: 1.3), + * only screen and (min--moz-device-pixel-ratio: 1.3), + * only screen and (-o-min-device-pixel-ratio: 1.3/1), + * only screen and (min-resolution: 144dpi), + * only screen and (min-resolution: 1.5dppx)': { + * backgroundImage: 'url(my-img_2x.png)', + * } + * } + */ +function retinaImage(filename, backgroundSize, extension, retinaFilename, retinaSuffix) { + var _ref; + if (extension === void 0) { + extension = 'png'; + } + if (retinaSuffix === void 0) { + retinaSuffix = '_2x'; + } + if (!filename) { + throw new PolishedError(58); + } + // Replace the dot at the beginning of the passed extension if one exists + var ext = extension.replace(/^\./, ''); + var rFilename = retinaFilename ? retinaFilename + "." + ext : "" + filename + retinaSuffix + "." + ext; + return _ref = { + backgroundImage: "url(" + filename + "." + ext + ")" + }, _ref[hiDPI()] = _extends({ + backgroundImage: "url(" + rFilename + ")" + }, backgroundSize ? { + backgroundSize: backgroundSize + } : {}), _ref; +} + +/* eslint-disable key-spacing */ +var functionsMap = { + easeInBack: 'cubic-bezier(0.600, -0.280, 0.735, 0.045)', + easeInCirc: 'cubic-bezier(0.600, 0.040, 0.980, 0.335)', + easeInCubic: 'cubic-bezier(0.550, 0.055, 0.675, 0.190)', + easeInExpo: 'cubic-bezier(0.950, 0.050, 0.795, 0.035)', + easeInQuad: 'cubic-bezier(0.550, 0.085, 0.680, 0.530)', + easeInQuart: 'cubic-bezier(0.895, 0.030, 0.685, 0.220)', + easeInQuint: 'cubic-bezier(0.755, 0.050, 0.855, 0.060)', + easeInSine: 'cubic-bezier(0.470, 0.000, 0.745, 0.715)', + easeOutBack: 'cubic-bezier(0.175, 0.885, 0.320, 1.275)', + easeOutCubic: 'cubic-bezier(0.215, 0.610, 0.355, 1.000)', + easeOutCirc: 'cubic-bezier(0.075, 0.820, 0.165, 1.000)', + easeOutExpo: 'cubic-bezier(0.190, 1.000, 0.220, 1.000)', + easeOutQuad: 'cubic-bezier(0.250, 0.460, 0.450, 0.940)', + easeOutQuart: 'cubic-bezier(0.165, 0.840, 0.440, 1.000)', + easeOutQuint: 'cubic-bezier(0.230, 1.000, 0.320, 1.000)', + easeOutSine: 'cubic-bezier(0.390, 0.575, 0.565, 1.000)', + easeInOutBack: 'cubic-bezier(0.680, -0.550, 0.265, 1.550)', + easeInOutCirc: 'cubic-bezier(0.785, 0.135, 0.150, 0.860)', + easeInOutCubic: 'cubic-bezier(0.645, 0.045, 0.355, 1.000)', + easeInOutExpo: 'cubic-bezier(1.000, 0.000, 0.000, 1.000)', + easeInOutQuad: 'cubic-bezier(0.455, 0.030, 0.515, 0.955)', + easeInOutQuart: 'cubic-bezier(0.770, 0.000, 0.175, 1.000)', + easeInOutQuint: 'cubic-bezier(0.860, 0.000, 0.070, 1.000)', + easeInOutSine: 'cubic-bezier(0.445, 0.050, 0.550, 0.950)' +}; +/* eslint-enable key-spacing */ + +function getTimingFunction(functionName) { + return functionsMap[functionName]; +} + +/** + * String to represent common easing functions as demonstrated here: (github.com/jaukia/easie). + * + * @deprecated - This will be deprecated in v5 in favor of `easeIn`, `easeOut`, `easeInOut`. + * + * @example + * // Styles as object usage + * const styles = { + * 'transitionTimingFunction': timingFunctions('easeInQuad') + * } + * + * // styled-components usage + * const div = styled.div` + * transitionTimingFunction: ${timingFunctions('easeInQuad')}; + * ` + * + * // CSS as JS Output + * + * 'div': { + * 'transitionTimingFunction': 'cubic-bezier(0.550, 0.085, 0.680, 0.530)', + * } + */ + +function timingFunctions(timingFunction) { + return getTimingFunction(timingFunction); +} + +var getBorderWidth = function getBorderWidth(pointingDirection, height, width) { + var fullWidth = "" + width[0] + (width[1] || ''); + var halfWidth = "" + width[0] / 2 + (width[1] || ''); + var fullHeight = "" + height[0] + (height[1] || ''); + var halfHeight = "" + height[0] / 2 + (height[1] || ''); + switch (pointingDirection) { + case 'top': + return "0 " + halfWidth + " " + fullHeight + " " + halfWidth; + case 'topLeft': + return fullWidth + " " + fullHeight + " 0 0"; + case 'left': + return halfHeight + " " + fullWidth + " " + halfHeight + " 0"; + case 'bottomLeft': + return fullWidth + " 0 0 " + fullHeight; + case 'bottom': + return fullHeight + " " + halfWidth + " 0 " + halfWidth; + case 'bottomRight': + return "0 0 " + fullWidth + " " + fullHeight; + case 'right': + return halfHeight + " 0 " + halfHeight + " " + fullWidth; + case 'topRight': + default: + return "0 " + fullWidth + " " + fullHeight + " 0"; + } +}; +var getBorderColor = function getBorderColor(pointingDirection, foregroundColor) { + switch (pointingDirection) { + case 'top': + case 'bottomRight': + return { + borderBottomColor: foregroundColor + }; + case 'right': + case 'bottomLeft': + return { + borderLeftColor: foregroundColor + }; + case 'bottom': + case 'topLeft': + return { + borderTopColor: foregroundColor + }; + case 'left': + case 'topRight': + return { + borderRightColor: foregroundColor + }; + default: + throw new PolishedError(59); + } +}; + +/** + * CSS to represent triangle with any pointing direction with an optional background color. + * + * @example + * // Styles as object usage + * + * const styles = { + * ...triangle({ pointingDirection: 'right', width: '100px', height: '100px', foregroundColor: 'red' }) + * } + * + * + * // styled-components usage + * const div = styled.div` + * ${triangle({ pointingDirection: 'right', width: '100px', height: '100px', foregroundColor: 'red' })} + * + * + * // CSS as JS Output + * + * div: { + * 'borderColor': 'transparent transparent transparent red', + * 'borderStyle': 'solid', + * 'borderWidth': '50px 0 50px 100px', + * 'height': '0', + * 'width': '0', + * } + */ +function triangle(_ref) { + var pointingDirection = _ref.pointingDirection, + height = _ref.height, + width = _ref.width, + foregroundColor = _ref.foregroundColor, + _ref$backgroundColor = _ref.backgroundColor, + backgroundColor = _ref$backgroundColor === void 0 ? 'transparent' : _ref$backgroundColor; + var widthAndUnit = getValueAndUnit(width); + var heightAndUnit = getValueAndUnit(height); + if (isNaN(heightAndUnit[0]) || isNaN(widthAndUnit[0])) { + throw new PolishedError(60); + } + return _extends({ + width: '0', + height: '0', + borderColor: backgroundColor + }, getBorderColor(pointingDirection, foregroundColor), { + borderStyle: 'solid', + borderWidth: getBorderWidth(pointingDirection, heightAndUnit, widthAndUnit) + }); +} + +/** + * Provides an easy way to change the `wordWrap` property. + * + * @example + * // Styles as object usage + * const styles = { + * ...wordWrap('break-word') + * } + * + * // styled-components usage + * const div = styled.div` + * ${wordWrap('break-word')} + * ` + * + * // CSS as JS Output + * + * const styles = { + * overflowWrap: 'break-word', + * wordWrap: 'break-word', + * wordBreak: 'break-all', + * } + */ +function wordWrap(wrap) { + if (wrap === void 0) { + wrap = 'break-word'; + } + var wordBreak = wrap === 'break-word' ? 'break-all' : wrap; + return { + overflowWrap: wrap, + wordWrap: wrap, + wordBreak: wordBreak + }; +} + +function colorToInt(color) { + return Math.round(color * 255); +} +function convertToInt(red, green, blue) { + return colorToInt(red) + "," + colorToInt(green) + "," + colorToInt(blue); +} +function hslToRgb(hue, saturation, lightness, convert) { + if (convert === void 0) { + convert = convertToInt; + } + if (saturation === 0) { + // achromatic + return convert(lightness, lightness, lightness); + } + + // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV + var huePrime = (hue % 360 + 360) % 360 / 60; + var chroma = (1 - Math.abs(2 * lightness - 1)) * saturation; + var secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1)); + var red = 0; + var green = 0; + var blue = 0; + if (huePrime >= 0 && huePrime < 1) { + red = chroma; + green = secondComponent; + } else if (huePrime >= 1 && huePrime < 2) { + red = secondComponent; + green = chroma; + } else if (huePrime >= 2 && huePrime < 3) { + green = chroma; + blue = secondComponent; + } else if (huePrime >= 3 && huePrime < 4) { + green = secondComponent; + blue = chroma; + } else if (huePrime >= 4 && huePrime < 5) { + red = secondComponent; + blue = chroma; + } else if (huePrime >= 5 && huePrime < 6) { + red = chroma; + blue = secondComponent; + } + var lightnessModification = lightness - chroma / 2; + var finalRed = red + lightnessModification; + var finalGreen = green + lightnessModification; + var finalBlue = blue + lightnessModification; + return convert(finalRed, finalGreen, finalBlue); +} + +var namedColorMap = { + aliceblue: 'f0f8ff', + antiquewhite: 'faebd7', + aqua: '00ffff', + aquamarine: '7fffd4', + azure: 'f0ffff', + beige: 'f5f5dc', + bisque: 'ffe4c4', + black: '000', + blanchedalmond: 'ffebcd', + blue: '0000ff', + blueviolet: '8a2be2', + brown: 'a52a2a', + burlywood: 'deb887', + cadetblue: '5f9ea0', + chartreuse: '7fff00', + chocolate: 'd2691e', + coral: 'ff7f50', + cornflowerblue: '6495ed', + cornsilk: 'fff8dc', + crimson: 'dc143c', + cyan: '00ffff', + darkblue: '00008b', + darkcyan: '008b8b', + darkgoldenrod: 'b8860b', + darkgray: 'a9a9a9', + darkgreen: '006400', + darkgrey: 'a9a9a9', + darkkhaki: 'bdb76b', + darkmagenta: '8b008b', + darkolivegreen: '556b2f', + darkorange: 'ff8c00', + darkorchid: '9932cc', + darkred: '8b0000', + darksalmon: 'e9967a', + darkseagreen: '8fbc8f', + darkslateblue: '483d8b', + darkslategray: '2f4f4f', + darkslategrey: '2f4f4f', + darkturquoise: '00ced1', + darkviolet: '9400d3', + deeppink: 'ff1493', + deepskyblue: '00bfff', + dimgray: '696969', + dimgrey: '696969', + dodgerblue: '1e90ff', + firebrick: 'b22222', + floralwhite: 'fffaf0', + forestgreen: '228b22', + fuchsia: 'ff00ff', + gainsboro: 'dcdcdc', + ghostwhite: 'f8f8ff', + gold: 'ffd700', + goldenrod: 'daa520', + gray: '808080', + green: '008000', + greenyellow: 'adff2f', + grey: '808080', + honeydew: 'f0fff0', + hotpink: 'ff69b4', + indianred: 'cd5c5c', + indigo: '4b0082', + ivory: 'fffff0', + khaki: 'f0e68c', + lavender: 'e6e6fa', + lavenderblush: 'fff0f5', + lawngreen: '7cfc00', + lemonchiffon: 'fffacd', + lightblue: 'add8e6', + lightcoral: 'f08080', + lightcyan: 'e0ffff', + lightgoldenrodyellow: 'fafad2', + lightgray: 'd3d3d3', + lightgreen: '90ee90', + lightgrey: 'd3d3d3', + lightpink: 'ffb6c1', + lightsalmon: 'ffa07a', + lightseagreen: '20b2aa', + lightskyblue: '87cefa', + lightslategray: '789', + lightslategrey: '789', + lightsteelblue: 'b0c4de', + lightyellow: 'ffffe0', + lime: '0f0', + limegreen: '32cd32', + linen: 'faf0e6', + magenta: 'f0f', + maroon: '800000', + mediumaquamarine: '66cdaa', + mediumblue: '0000cd', + mediumorchid: 'ba55d3', + mediumpurple: '9370db', + mediumseagreen: '3cb371', + mediumslateblue: '7b68ee', + mediumspringgreen: '00fa9a', + mediumturquoise: '48d1cc', + mediumvioletred: 'c71585', + midnightblue: '191970', + mintcream: 'f5fffa', + mistyrose: 'ffe4e1', + moccasin: 'ffe4b5', + navajowhite: 'ffdead', + navy: '000080', + oldlace: 'fdf5e6', + olive: '808000', + olivedrab: '6b8e23', + orange: 'ffa500', + orangered: 'ff4500', + orchid: 'da70d6', + palegoldenrod: 'eee8aa', + palegreen: '98fb98', + paleturquoise: 'afeeee', + palevioletred: 'db7093', + papayawhip: 'ffefd5', + peachpuff: 'ffdab9', + peru: 'cd853f', + pink: 'ffc0cb', + plum: 'dda0dd', + powderblue: 'b0e0e6', + purple: '800080', + rebeccapurple: '639', + red: 'f00', + rosybrown: 'bc8f8f', + royalblue: '4169e1', + saddlebrown: '8b4513', + salmon: 'fa8072', + sandybrown: 'f4a460', + seagreen: '2e8b57', + seashell: 'fff5ee', + sienna: 'a0522d', + silver: 'c0c0c0', + skyblue: '87ceeb', + slateblue: '6a5acd', + slategray: '708090', + slategrey: '708090', + snow: 'fffafa', + springgreen: '00ff7f', + steelblue: '4682b4', + tan: 'd2b48c', + teal: '008080', + thistle: 'd8bfd8', + tomato: 'ff6347', + turquoise: '40e0d0', + violet: 'ee82ee', + wheat: 'f5deb3', + white: 'fff', + whitesmoke: 'f5f5f5', + yellow: 'ff0', + yellowgreen: '9acd32' +}; + +/** + * Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color. + * @private + */ +function nameToHex(color) { + if (typeof color !== 'string') return color; + var normalizedColorName = color.toLowerCase(); + return namedColorMap[normalizedColorName] ? "#" + namedColorMap[normalizedColorName] : color; +} + +var hexRegex = /^#[a-fA-F0-9]{6}$/; +var hexRgbaRegex = /^#[a-fA-F0-9]{8}$/; +var reducedHexRegex = /^#[a-fA-F0-9]{3}$/; +var reducedRgbaHexRegex = /^#[a-fA-F0-9]{4}$/; +var rgbRegex = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i; +var rgbaRegex = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i; +var hslRegex = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i; +var hslaRegex = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i; + +/** + * Returns an RgbColor or RgbaColor object. This utility function is only useful + * if want to extract a color component. With the color util `toColorString` you + * can convert a RgbColor or RgbaColor object back to a string. + * + * @example + * // Assigns `{ red: 255, green: 0, blue: 0 }` to color1 + * const color1 = parseToRgb('rgb(255, 0, 0)'); + * // Assigns `{ red: 92, green: 102, blue: 112, alpha: 0.75 }` to color2 + * const color2 = parseToRgb('hsla(210, 10%, 40%, 0.75)'); + */ +function parseToRgb(color) { + if (typeof color !== 'string') { + throw new PolishedError(3); + } + var normalizedColor = nameToHex(color); + if (normalizedColor.match(hexRegex)) { + return { + red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16), + green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16), + blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16) + }; + } + if (normalizedColor.match(hexRgbaRegex)) { + var alpha = parseFloat((parseInt("" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2)); + return { + red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16), + green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16), + blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16), + alpha: alpha + }; + } + if (normalizedColor.match(reducedHexRegex)) { + return { + red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16), + green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16), + blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16) + }; + } + if (normalizedColor.match(reducedRgbaHexRegex)) { + var _alpha = parseFloat((parseInt("" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2)); + return { + red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16), + green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16), + blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16), + alpha: _alpha + }; + } + var rgbMatched = rgbRegex.exec(normalizedColor); + if (rgbMatched) { + return { + red: parseInt("" + rgbMatched[1], 10), + green: parseInt("" + rgbMatched[2], 10), + blue: parseInt("" + rgbMatched[3], 10) + }; + } + var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50)); + if (rgbaMatched) { + return { + red: parseInt("" + rgbaMatched[1], 10), + green: parseInt("" + rgbaMatched[2], 10), + blue: parseInt("" + rgbaMatched[3], 10), + alpha: parseFloat("" + rgbaMatched[4]) > 1 ? parseFloat("" + rgbaMatched[4]) / 100 : parseFloat("" + rgbaMatched[4]) + }; + } + var hslMatched = hslRegex.exec(normalizedColor); + if (hslMatched) { + var hue = parseInt("" + hslMatched[1], 10); + var saturation = parseInt("" + hslMatched[2], 10) / 100; + var lightness = parseInt("" + hslMatched[3], 10) / 100; + var rgbColorString = "rgb(" + hslToRgb(hue, saturation, lightness) + ")"; + var hslRgbMatched = rgbRegex.exec(rgbColorString); + if (!hslRgbMatched) { + throw new PolishedError(4, normalizedColor, rgbColorString); + } + return { + red: parseInt("" + hslRgbMatched[1], 10), + green: parseInt("" + hslRgbMatched[2], 10), + blue: parseInt("" + hslRgbMatched[3], 10) + }; + } + var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50)); + if (hslaMatched) { + var _hue = parseInt("" + hslaMatched[1], 10); + var _saturation = parseInt("" + hslaMatched[2], 10) / 100; + var _lightness = parseInt("" + hslaMatched[3], 10) / 100; + var _rgbColorString = "rgb(" + hslToRgb(_hue, _saturation, _lightness) + ")"; + var _hslRgbMatched = rgbRegex.exec(_rgbColorString); + if (!_hslRgbMatched) { + throw new PolishedError(4, normalizedColor, _rgbColorString); + } + return { + red: parseInt("" + _hslRgbMatched[1], 10), + green: parseInt("" + _hslRgbMatched[2], 10), + blue: parseInt("" + _hslRgbMatched[3], 10), + alpha: parseFloat("" + hslaMatched[4]) > 1 ? parseFloat("" + hslaMatched[4]) / 100 : parseFloat("" + hslaMatched[4]) + }; + } + throw new PolishedError(5); +} + +function rgbToHsl(color) { + // make sure rgb are contained in a set of [0, 255] + var red = color.red / 255; + var green = color.green / 255; + var blue = color.blue / 255; + var max = Math.max(red, green, blue); + var min = Math.min(red, green, blue); + var lightness = (max + min) / 2; + if (max === min) { + // achromatic + if (color.alpha !== undefined) { + return { + hue: 0, + saturation: 0, + lightness: lightness, + alpha: color.alpha + }; + } else { + return { + hue: 0, + saturation: 0, + lightness: lightness + }; + } + } + var hue; + var delta = max - min; + var saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min); + switch (max) { + case red: + hue = (green - blue) / delta + (green < blue ? 6 : 0); + break; + case green: + hue = (blue - red) / delta + 2; + break; + default: + // blue case + hue = (red - green) / delta + 4; + break; + } + hue *= 60; + if (color.alpha !== undefined) { + return { + hue: hue, + saturation: saturation, + lightness: lightness, + alpha: color.alpha + }; + } + return { + hue: hue, + saturation: saturation, + lightness: lightness + }; +} + +/** + * Returns an HslColor or HslaColor object. This utility function is only useful + * if want to extract a color component. With the color util `toColorString` you + * can convert a HslColor or HslaColor object back to a string. + * + * @example + * // Assigns `{ hue: 0, saturation: 1, lightness: 0.5 }` to color1 + * const color1 = parseToHsl('rgb(255, 0, 0)'); + * // Assigns `{ hue: 128, saturation: 1, lightness: 0.5, alpha: 0.75 }` to color2 + * const color2 = parseToHsl('hsla(128, 100%, 50%, 0.75)'); + */ +function parseToHsl(color) { + // Note: At a later stage we can optimize this function as right now a hsl + // color would be parsed converted to rgb values and converted back to hsl. + return rgbToHsl(parseToRgb(color)); +} + +/** + * Reduces hex values if possible e.g. #ff8866 to #f86 + * @private + */ +var reduceHexValue = function reduceHexValue(value) { + if (value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6]) { + return "#" + value[1] + value[3] + value[5]; + } + return value; +}; +var reduceHexValue$1 = reduceHexValue; + +function numberToHex(value) { + var hex = value.toString(16); + return hex.length === 1 ? "0" + hex : hex; +} + +function colorToHex(color) { + return numberToHex(Math.round(color * 255)); +} +function convertToHex(red, green, blue) { + return reduceHexValue$1("#" + colorToHex(red) + colorToHex(green) + colorToHex(blue)); +} +function hslToHex(hue, saturation, lightness) { + return hslToRgb(hue, saturation, lightness, convertToHex); +} + +/** + * Returns a string value for the color. The returned result is the smallest possible hex notation. + * + * @example + * // Styles as object usage + * const styles = { + * background: hsl(359, 0.75, 0.4), + * background: hsl({ hue: 360, saturation: 0.75, lightness: 0.4 }), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${hsl(359, 0.75, 0.4)}; + * background: ${hsl({ hue: 360, saturation: 0.75, lightness: 0.4 })}; + * ` + * + * // CSS in JS Output + * + * element { + * background: "#b3191c"; + * background: "#b3191c"; + * } + */ +function hsl(value, saturation, lightness) { + if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number') { + return hslToHex(value, saturation, lightness); + } else if (typeof value === 'object' && saturation === undefined && lightness === undefined) { + return hslToHex(value.hue, value.saturation, value.lightness); + } + throw new PolishedError(1); +} + +/** + * Returns a string value for the color. The returned result is the smallest possible rgba or hex notation. + * + * @example + * // Styles as object usage + * const styles = { + * background: hsla(359, 0.75, 0.4, 0.7), + * background: hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 }), + * background: hsla(359, 0.75, 0.4, 1), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${hsla(359, 0.75, 0.4, 0.7)}; + * background: ${hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 })}; + * background: ${hsla(359, 0.75, 0.4, 1)}; + * ` + * + * // CSS in JS Output + * + * element { + * background: "rgba(179,25,28,0.7)"; + * background: "rgba(179,25,28,0.7)"; + * background: "#b3191c"; + * } + */ +function hsla(value, saturation, lightness, alpha) { + if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number' && typeof alpha === 'number') { + return alpha >= 1 ? hslToHex(value, saturation, lightness) : "rgba(" + hslToRgb(value, saturation, lightness) + "," + alpha + ")"; + } else if (typeof value === 'object' && saturation === undefined && lightness === undefined && alpha === undefined) { + return value.alpha >= 1 ? hslToHex(value.hue, value.saturation, value.lightness) : "rgba(" + hslToRgb(value.hue, value.saturation, value.lightness) + "," + value.alpha + ")"; + } + throw new PolishedError(2); +} + +/** + * Returns a string value for the color. The returned result is the smallest possible hex notation. + * + * @example + * // Styles as object usage + * const styles = { + * background: rgb(255, 205, 100), + * background: rgb({ red: 255, green: 205, blue: 100 }), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${rgb(255, 205, 100)}; + * background: ${rgb({ red: 255, green: 205, blue: 100 })}; + * ` + * + * // CSS in JS Output + * + * element { + * background: "#ffcd64"; + * background: "#ffcd64"; + * } + */ +function rgb(value, green, blue) { + if (typeof value === 'number' && typeof green === 'number' && typeof blue === 'number') { + return reduceHexValue$1("#" + numberToHex(value) + numberToHex(green) + numberToHex(blue)); + } else if (typeof value === 'object' && green === undefined && blue === undefined) { + return reduceHexValue$1("#" + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue)); + } + throw new PolishedError(6); +} + +/** + * Returns a string value for the color. The returned result is the smallest possible rgba or hex notation. + * + * Can also be used to fade a color by passing a hex value or named CSS color along with an alpha value. + * + * @example + * // Styles as object usage + * const styles = { + * background: rgba(255, 205, 100, 0.7), + * background: rgba({ red: 255, green: 205, blue: 100, alpha: 0.7 }), + * background: rgba(255, 205, 100, 1), + * background: rgba('#ffffff', 0.4), + * background: rgba('black', 0.7), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${rgba(255, 205, 100, 0.7)}; + * background: ${rgba({ red: 255, green: 205, blue: 100, alpha: 0.7 })}; + * background: ${rgba(255, 205, 100, 1)}; + * background: ${rgba('#ffffff', 0.4)}; + * background: ${rgba('black', 0.7)}; + * ` + * + * // CSS in JS Output + * + * element { + * background: "rgba(255,205,100,0.7)"; + * background: "rgba(255,205,100,0.7)"; + * background: "#ffcd64"; + * background: "rgba(255,255,255,0.4)"; + * background: "rgba(0,0,0,0.7)"; + * } + */ +function rgba(firstValue, secondValue, thirdValue, fourthValue) { + if (typeof firstValue === 'string' && typeof secondValue === 'number') { + var rgbValue = parseToRgb(firstValue); + return "rgba(" + rgbValue.red + "," + rgbValue.green + "," + rgbValue.blue + "," + secondValue + ")"; + } else if (typeof firstValue === 'number' && typeof secondValue === 'number' && typeof thirdValue === 'number' && typeof fourthValue === 'number') { + return fourthValue >= 1 ? rgb(firstValue, secondValue, thirdValue) : "rgba(" + firstValue + "," + secondValue + "," + thirdValue + "," + fourthValue + ")"; + } else if (typeof firstValue === 'object' && secondValue === undefined && thirdValue === undefined && fourthValue === undefined) { + return firstValue.alpha >= 1 ? rgb(firstValue.red, firstValue.green, firstValue.blue) : "rgba(" + firstValue.red + "," + firstValue.green + "," + firstValue.blue + "," + firstValue.alpha + ")"; + } + throw new PolishedError(7); +} + +var isRgb = function isRgb(color) { + return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && (typeof color.alpha !== 'number' || typeof color.alpha === 'undefined'); +}; +var isRgba = function isRgba(color) { + return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && typeof color.alpha === 'number'; +}; +var isHsl = function isHsl(color) { + return typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number' && (typeof color.alpha !== 'number' || typeof color.alpha === 'undefined'); +}; +var isHsla = function isHsla(color) { + return typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number' && typeof color.alpha === 'number'; +}; + +/** + * Converts a RgbColor, RgbaColor, HslColor or HslaColor object to a color string. + * This util is useful in case you only know on runtime which color object is + * used. Otherwise we recommend to rely on `rgb`, `rgba`, `hsl` or `hsla`. + * + * @example + * // Styles as object usage + * const styles = { + * background: toColorString({ red: 255, green: 205, blue: 100 }), + * background: toColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 }), + * background: toColorString({ hue: 240, saturation: 1, lightness: 0.5 }), + * background: toColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 }), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${toColorString({ red: 255, green: 205, blue: 100 })}; + * background: ${toColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 })}; + * background: ${toColorString({ hue: 240, saturation: 1, lightness: 0.5 })}; + * background: ${toColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 })}; + * ` + * + * // CSS in JS Output + * element { + * background: "#ffcd64"; + * background: "rgba(255,205,100,0.72)"; + * background: "#00f"; + * background: "rgba(179,25,25,0.72)"; + * } + */ + +function toColorString(color) { + if (typeof color !== 'object') throw new PolishedError(8); + if (isRgba(color)) return rgba(color); + if (isRgb(color)) return rgb(color); + if (isHsla(color)) return hsla(color); + if (isHsl(color)) return hsl(color); + throw new PolishedError(8); +} + +// Type definitions taken from https://github.com/gcanti/flow-static-land/blob/master/src/Fun.js +// eslint-disable-next-line no-unused-vars +// eslint-disable-next-line no-unused-vars +// eslint-disable-next-line no-redeclare +function curried(f, length, acc) { + return function fn() { + // eslint-disable-next-line prefer-rest-params + var combined = acc.concat(Array.prototype.slice.call(arguments)); + return combined.length >= length ? f.apply(this, combined) : curried(f, length, combined); + }; +} + +// eslint-disable-next-line no-redeclare +function curry(f) { + // eslint-disable-line no-redeclare + return curried(f, f.length, []); +} + +/** + * Changes the hue of the color. Hue is a number between 0 to 360. The first + * argument for adjustHue is the amount of degrees the color is rotated around + * the color wheel, always producing a positive hue value. + * + * @example + * // Styles as object usage + * const styles = { + * background: adjustHue(180, '#448'), + * background: adjustHue('180', 'rgba(101,100,205,0.7)'), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${adjustHue(180, '#448')}; + * background: ${adjustHue('180', 'rgba(101,100,205,0.7)')}; + * ` + * + * // CSS in JS Output + * element { + * background: "#888844"; + * background: "rgba(136,136,68,0.7)"; + * } + */ +function adjustHue(degree, color) { + if (color === 'transparent') return color; + var hslColor = parseToHsl(color); + return toColorString(extends_extends({}, hslColor, { + hue: hslColor.hue + parseFloat(degree) + })); +} + +// prettier-ignore +var curriedAdjustHue = curry /* :: */(adjustHue); +var curriedAdjustHue$1 = (/* unused pure expression or super */ null && (curriedAdjustHue)); + +/** + * Returns the complement of the provided color. This is identical to adjustHue(180, ). + * + * @example + * // Styles as object usage + * const styles = { + * background: complement('#448'), + * background: complement('rgba(204,205,100,0.7)'), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${complement('#448')}; + * background: ${complement('rgba(204,205,100,0.7)')}; + * ` + * + * // CSS in JS Output + * element { + * background: "#884"; + * background: "rgba(153,153,153,0.7)"; + * } + */ +function complement(color) { + if (color === 'transparent') return color; + var hslColor = parseToHsl(color); + return toColorString(_extends({}, hslColor, { + hue: (hslColor.hue + 180) % 360 + })); +} + +function guard(lowerBoundary, upperBoundary, value) { + return Math.max(lowerBoundary, Math.min(upperBoundary, value)); +} + +/** + * Returns a string value for the darkened color. + * + * @example + * // Styles as object usage + * const styles = { + * background: darken(0.2, '#FFCD64'), + * background: darken('0.2', 'rgba(255,205,100,0.7)'), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${darken(0.2, '#FFCD64')}; + * background: ${darken('0.2', 'rgba(255,205,100,0.7)')}; + * ` + * + * // CSS in JS Output + * + * element { + * background: "#ffbd31"; + * background: "rgba(255,189,49,0.7)"; + * } + */ +function darken(amount, color) { + if (color === 'transparent') return color; + var hslColor = parseToHsl(color); + return toColorString(extends_extends({}, hslColor, { + lightness: guard(0, 1, hslColor.lightness - parseFloat(amount)) + })); +} + +// prettier-ignore +var curriedDarken = curry /* :: */(darken); +var curriedDarken$1 = curriedDarken; + +/** + * Decreases the intensity of a color. Its range is between 0 to 1. The first + * argument of the desaturate function is the amount by how much the color + * intensity should be decreased. + * + * @example + * // Styles as object usage + * const styles = { + * background: desaturate(0.2, '#CCCD64'), + * background: desaturate('0.2', 'rgba(204,205,100,0.7)'), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${desaturate(0.2, '#CCCD64')}; + * background: ${desaturate('0.2', 'rgba(204,205,100,0.7)')}; + * ` + * + * // CSS in JS Output + * element { + * background: "#b8b979"; + * background: "rgba(184,185,121,0.7)"; + * } + */ +function desaturate(amount, color) { + if (color === 'transparent') return color; + var hslColor = parseToHsl(color); + return toColorString(extends_extends({}, hslColor, { + saturation: guard(0, 1, hslColor.saturation - parseFloat(amount)) + })); +} + +// prettier-ignore +var curriedDesaturate = curry /* :: */(desaturate); +var curriedDesaturate$1 = (/* unused pure expression or super */ null && (curriedDesaturate)); + +/** + * Returns a number (float) representing the luminance of a color. + * + * @example + * // Styles as object usage + * const styles = { + * background: getLuminance('#CCCD64') >= getLuminance('#0000ff') ? '#CCCD64' : '#0000ff', + * background: getLuminance('rgba(58, 133, 255, 1)') >= getLuminance('rgba(255, 57, 149, 1)') ? + * 'rgba(58, 133, 255, 1)' : + * 'rgba(255, 57, 149, 1)', + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${getLuminance('#CCCD64') >= getLuminance('#0000ff') ? '#CCCD64' : '#0000ff'}; + * background: ${getLuminance('rgba(58, 133, 255, 1)') >= getLuminance('rgba(255, 57, 149, 1)') ? + * 'rgba(58, 133, 255, 1)' : + * 'rgba(255, 57, 149, 1)'}; + * + * // CSS in JS Output + * + * div { + * background: "#CCCD64"; + * background: "rgba(58, 133, 255, 1)"; + * } + */ +function getLuminance(color) { + if (color === 'transparent') return 0; + var rgbColor = parseToRgb(color); + var _Object$keys$map = Object.keys(rgbColor).map(function (key) { + var channel = rgbColor[key] / 255; + return channel <= 0.03928 ? channel / 12.92 : Math.pow((channel + 0.055) / 1.055, 2.4); + }), + r = _Object$keys$map[0], + g = _Object$keys$map[1], + b = _Object$keys$map[2]; + return parseFloat((0.2126 * r + 0.7152 * g + 0.0722 * b).toFixed(3)); +} + +/** + * Returns the contrast ratio between two colors based on + * [W3's recommended equation for calculating contrast](http://www.w3.org/TR/WCAG20/#contrast-ratiodef). + * + * @example + * const contrastRatio = getContrast('#444', '#fff'); + */ +function getContrast(color1, color2) { + var luminance1 = getLuminance(color1); + var luminance2 = getLuminance(color2); + return parseFloat((luminance1 > luminance2 ? (luminance1 + 0.05) / (luminance2 + 0.05) : (luminance2 + 0.05) / (luminance1 + 0.05)).toFixed(2)); +} + +/** + * Converts the color to a grayscale, by reducing its saturation to 0. + * + * @example + * // Styles as object usage + * const styles = { + * background: grayscale('#CCCD64'), + * background: grayscale('rgba(204,205,100,0.7)'), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${grayscale('#CCCD64')}; + * background: ${grayscale('rgba(204,205,100,0.7)')}; + * ` + * + * // CSS in JS Output + * element { + * background: "#999"; + * background: "rgba(153,153,153,0.7)"; + * } + */ +function grayscale(color) { + if (color === 'transparent') return color; + return toColorString(_extends({}, parseToHsl(color), { + saturation: 0 + })); +} + +/** + * Converts a HslColor or HslaColor object to a color string. + * This util is useful in case you only know on runtime which color object is + * used. Otherwise we recommend to rely on `hsl` or `hsla`. + * + * @example + * // Styles as object usage + * const styles = { + * background: hslToColorString({ hue: 240, saturation: 1, lightness: 0.5 }), + * background: hslToColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 }), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${hslToColorString({ hue: 240, saturation: 1, lightness: 0.5 })}; + * background: ${hslToColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 })}; + * ` + * + * // CSS in JS Output + * element { + * background: "#00f"; + * background: "rgba(179,25,25,0.72)"; + * } + */ +function hslToColorString(color) { + if (typeof color === 'object' && typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number') { + if (color.alpha && typeof color.alpha === 'number') { + return hsla({ + hue: color.hue, + saturation: color.saturation, + lightness: color.lightness, + alpha: color.alpha + }); + } + return hsl({ + hue: color.hue, + saturation: color.saturation, + lightness: color.lightness + }); + } + throw new PolishedError(45); +} + +/** + * Inverts the red, green and blue values of a color. + * + * @example + * // Styles as object usage + * const styles = { + * background: invert('#CCCD64'), + * background: invert('rgba(101,100,205,0.7)'), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${invert('#CCCD64')}; + * background: ${invert('rgba(101,100,205,0.7)')}; + * ` + * + * // CSS in JS Output + * + * element { + * background: "#33329b"; + * background: "rgba(154,155,50,0.7)"; + * } + */ +function invert(color) { + if (color === 'transparent') return color; + // parse color string to rgb + var value = parseToRgb(color); + return toColorString(_extends({}, value, { + red: 255 - value.red, + green: 255 - value.green, + blue: 255 - value.blue + })); +} + +/** + * Returns a string value for the lightened color. + * + * @example + * // Styles as object usage + * const styles = { + * background: lighten(0.2, '#CCCD64'), + * background: lighten('0.2', 'rgba(204,205,100,0.7)'), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${lighten(0.2, '#FFCD64')}; + * background: ${lighten('0.2', 'rgba(204,205,100,0.7)')}; + * ` + * + * // CSS in JS Output + * + * element { + * background: "#e5e6b1"; + * background: "rgba(229,230,177,0.7)"; + * } + */ +function lighten(amount, color) { + if (color === 'transparent') return color; + var hslColor = parseToHsl(color); + return toColorString(extends_extends({}, hslColor, { + lightness: guard(0, 1, hslColor.lightness + parseFloat(amount)) + })); +} + +// prettier-ignore +var curriedLighten = curry /* :: */(lighten); +var curriedLighten$1 = curriedLighten; + +/** + * Determines which contrast guidelines have been met for two colors. + * Based on the [contrast calculations recommended by W3](https://www.w3.org/WAI/WCAG21/Understanding/contrast-enhanced.html). + * + * @example + * const scores = meetsContrastGuidelines('#444', '#fff'); + */ +function meetsContrastGuidelines(color1, color2) { + var contrastRatio = getContrast(color1, color2); + return { + AA: contrastRatio >= 4.5, + AALarge: contrastRatio >= 3, + AAA: contrastRatio >= 7, + AAALarge: contrastRatio >= 4.5 + }; +} + +/** + * Mixes the two provided colors together by calculating the average of each of the RGB components weighted to the first color by the provided weight. + * + * @example + * // Styles as object usage + * const styles = { + * background: mix(0.5, '#f00', '#00f') + * background: mix(0.25, '#f00', '#00f') + * background: mix('0.5', 'rgba(255, 0, 0, 0.5)', '#00f') + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${mix(0.5, '#f00', '#00f')}; + * background: ${mix(0.25, '#f00', '#00f')}; + * background: ${mix('0.5', 'rgba(255, 0, 0, 0.5)', '#00f')}; + * ` + * + * // CSS in JS Output + * + * element { + * background: "#7f007f"; + * background: "#3f00bf"; + * background: "rgba(63, 0, 191, 0.75)"; + * } + */ +function mix(weight, color, otherColor) { + if (color === 'transparent') return otherColor; + if (otherColor === 'transparent') return color; + if (weight === 0) return otherColor; + var parsedColor1 = parseToRgb(color); + var color1 = extends_extends({}, parsedColor1, { + alpha: typeof parsedColor1.alpha === 'number' ? parsedColor1.alpha : 1 + }); + var parsedColor2 = parseToRgb(otherColor); + var color2 = extends_extends({}, parsedColor2, { + alpha: typeof parsedColor2.alpha === 'number' ? parsedColor2.alpha : 1 + }); + + // The formula is copied from the original Sass implementation: + // http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method + var alphaDelta = color1.alpha - color2.alpha; + var x = parseFloat(weight) * 2 - 1; + var y = x * alphaDelta === -1 ? x : x + alphaDelta; + var z = 1 + x * alphaDelta; + var weight1 = (y / z + 1) / 2.0; + var weight2 = 1 - weight1; + var mixedColor = { + red: Math.floor(color1.red * weight1 + color2.red * weight2), + green: Math.floor(color1.green * weight1 + color2.green * weight2), + blue: Math.floor(color1.blue * weight1 + color2.blue * weight2), + alpha: color1.alpha * parseFloat(weight) + color2.alpha * (1 - parseFloat(weight)) + }; + return rgba(mixedColor); +} + +// prettier-ignore +var curriedMix = curry /* :: */(mix); +var mix$1 = curriedMix; + +/** + * Increases the opacity of a color. Its range for the amount is between 0 to 1. + * + * + * @example + * // Styles as object usage + * const styles = { + * background: opacify(0.1, 'rgba(255, 255, 255, 0.9)'); + * background: opacify(0.2, 'hsla(0, 0%, 100%, 0.5)'), + * background: opacify('0.5', 'rgba(255, 0, 0, 0.2)'), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${opacify(0.1, 'rgba(255, 255, 255, 0.9)')}; + * background: ${opacify(0.2, 'hsla(0, 0%, 100%, 0.5)')}, + * background: ${opacify('0.5', 'rgba(255, 0, 0, 0.2)')}, + * ` + * + * // CSS in JS Output + * + * element { + * background: "#fff"; + * background: "rgba(255,255,255,0.7)"; + * background: "rgba(255,0,0,0.7)"; + * } + */ +function opacify(amount, color) { + if (color === 'transparent') return color; + var parsedColor = parseToRgb(color); + var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1; + var colorWithAlpha = extends_extends({}, parsedColor, { + alpha: guard(0, 1, (alpha * 100 + parseFloat(amount) * 100) / 100) + }); + return rgba(colorWithAlpha); +} + +// prettier-ignore +var curriedOpacify = curry /* :: */(opacify); +var curriedOpacify$1 = curriedOpacify; + +var defaultReturnIfLightColor = '#000'; +var defaultReturnIfDarkColor = '#fff'; + +/** + * Returns black or white (or optional passed colors) for best + * contrast depending on the luminosity of the given color. + * When passing custom return colors, strict mode ensures that the + * return color always meets or exceeds WCAG level AA or greater. If this test + * fails, the default return color (black or white) is returned in place of the + * custom return color. You can optionally turn off strict mode. + * + * Follows [W3C specs for readability](https://www.w3.org/TR/WCAG20-TECHS/G18.html). + * + * @example + * // Styles as object usage + * const styles = { + * color: readableColor('#000'), + * color: readableColor('black', '#001', '#ff8'), + * color: readableColor('white', '#001', '#ff8'), + * color: readableColor('red', '#333', '#ddd', true) + * } + * + * // styled-components usage + * const div = styled.div` + * color: ${readableColor('#000')}; + * color: ${readableColor('black', '#001', '#ff8')}; + * color: ${readableColor('white', '#001', '#ff8')}; + * color: ${readableColor('red', '#333', '#ddd', true)}; + * ` + * + * // CSS in JS Output + * element { + * color: "#fff"; + * color: "#ff8"; + * color: "#001"; + * color: "#000"; + * } + */ +function readableColor(color, returnIfLightColor, returnIfDarkColor, strict) { + if (returnIfLightColor === void 0) { + returnIfLightColor = defaultReturnIfLightColor; + } + if (returnIfDarkColor === void 0) { + returnIfDarkColor = defaultReturnIfDarkColor; + } + if (strict === void 0) { + strict = true; + } + var isColorLight = getLuminance(color) > 0.179; + var preferredReturnColor = isColorLight ? returnIfLightColor : returnIfDarkColor; + if (!strict || getContrast(color, preferredReturnColor) >= 4.5) { + return preferredReturnColor; + } + return isColorLight ? defaultReturnIfLightColor : defaultReturnIfDarkColor; +} + +/** + * Converts a RgbColor or RgbaColor object to a color string. + * This util is useful in case you only know on runtime which color object is + * used. Otherwise we recommend to rely on `rgb` or `rgba`. + * + * @example + * // Styles as object usage + * const styles = { + * background: rgbToColorString({ red: 255, green: 205, blue: 100 }), + * background: rgbToColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 }), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${rgbToColorString({ red: 255, green: 205, blue: 100 })}; + * background: ${rgbToColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 })}; + * ` + * + * // CSS in JS Output + * element { + * background: "#ffcd64"; + * background: "rgba(255,205,100,0.72)"; + * } + */ +function rgbToColorString(color) { + if (typeof color === 'object' && typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number') { + if (typeof color.alpha === 'number') { + return rgba({ + red: color.red, + green: color.green, + blue: color.blue, + alpha: color.alpha + }); + } + return rgb({ + red: color.red, + green: color.green, + blue: color.blue + }); + } + throw new PolishedError(46); +} + +/** + * Increases the intensity of a color. Its range is between 0 to 1. The first + * argument of the saturate function is the amount by how much the color + * intensity should be increased. + * + * @example + * // Styles as object usage + * const styles = { + * background: saturate(0.2, '#CCCD64'), + * background: saturate('0.2', 'rgba(204,205,100,0.7)'), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${saturate(0.2, '#FFCD64')}; + * background: ${saturate('0.2', 'rgba(204,205,100,0.7)')}; + * ` + * + * // CSS in JS Output + * + * element { + * background: "#e0e250"; + * background: "rgba(224,226,80,0.7)"; + * } + */ +function saturate(amount, color) { + if (color === 'transparent') return color; + var hslColor = parseToHsl(color); + return toColorString(extends_extends({}, hslColor, { + saturation: guard(0, 1, hslColor.saturation + parseFloat(amount)) + })); +} + +// prettier-ignore +var curriedSaturate = curry /* :: */(saturate); +var curriedSaturate$1 = (/* unused pure expression or super */ null && (curriedSaturate)); + +/** + * Sets the hue of a color to the provided value. The hue range can be + * from 0 and 359. + * + * @example + * // Styles as object usage + * const styles = { + * background: setHue(42, '#CCCD64'), + * background: setHue('244', 'rgba(204,205,100,0.7)'), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${setHue(42, '#CCCD64')}; + * background: ${setHue('244', 'rgba(204,205,100,0.7)')}; + * ` + * + * // CSS in JS Output + * element { + * background: "#cdae64"; + * background: "rgba(107,100,205,0.7)"; + * } + */ +function setHue(hue, color) { + if (color === 'transparent') return color; + return toColorString(extends_extends({}, parseToHsl(color), { + hue: parseFloat(hue) + })); +} + +// prettier-ignore +var curriedSetHue = curry /* :: */(setHue); +var curriedSetHue$1 = (/* unused pure expression or super */ null && (curriedSetHue)); + +/** + * Sets the lightness of a color to the provided value. The lightness range can be + * from 0 and 1. + * + * @example + * // Styles as object usage + * const styles = { + * background: setLightness(0.2, '#CCCD64'), + * background: setLightness('0.75', 'rgba(204,205,100,0.7)'), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${setLightness(0.2, '#CCCD64')}; + * background: ${setLightness('0.75', 'rgba(204,205,100,0.7)')}; + * ` + * + * // CSS in JS Output + * element { + * background: "#4d4d19"; + * background: "rgba(223,224,159,0.7)"; + * } + */ +function setLightness(lightness, color) { + if (color === 'transparent') return color; + return toColorString(extends_extends({}, parseToHsl(color), { + lightness: parseFloat(lightness) + })); +} + +// prettier-ignore +var curriedSetLightness = curry /* :: */(setLightness); +var curriedSetLightness$1 = (/* unused pure expression or super */ null && (curriedSetLightness)); + +/** + * Sets the saturation of a color to the provided value. The saturation range can be + * from 0 and 1. + * + * @example + * // Styles as object usage + * const styles = { + * background: setSaturation(0.2, '#CCCD64'), + * background: setSaturation('0.75', 'rgba(204,205,100,0.7)'), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${setSaturation(0.2, '#CCCD64')}; + * background: ${setSaturation('0.75', 'rgba(204,205,100,0.7)')}; + * ` + * + * // CSS in JS Output + * element { + * background: "#adad84"; + * background: "rgba(228,229,76,0.7)"; + * } + */ +function setSaturation(saturation, color) { + if (color === 'transparent') return color; + return toColorString(extends_extends({}, parseToHsl(color), { + saturation: parseFloat(saturation) + })); +} + +// prettier-ignore +var curriedSetSaturation = curry /* :: */(setSaturation); +var curriedSetSaturation$1 = (/* unused pure expression or super */ null && (curriedSetSaturation)); + +/** + * Shades a color by mixing it with black. `shade` can produce + * hue shifts, where as `darken` manipulates the luminance channel and therefore + * doesn't produce hue shifts. + * + * @example + * // Styles as object usage + * const styles = { + * background: shade(0.25, '#00f') + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${shade(0.25, '#00f')}; + * ` + * + * // CSS in JS Output + * + * element { + * background: "#00003f"; + * } + */ + +function shade(percentage, color) { + if (color === 'transparent') return color; + return mix$1(parseFloat(percentage), 'rgb(0, 0, 0)', color); +} + +// prettier-ignore +var curriedShade = curry /* :: */(shade); +var curriedShade$1 = (/* unused pure expression or super */ null && (curriedShade)); + +/** + * Tints a color by mixing it with white. `tint` can produce + * hue shifts, where as `lighten` manipulates the luminance channel and therefore + * doesn't produce hue shifts. + * + * @example + * // Styles as object usage + * const styles = { + * background: tint(0.25, '#00f') + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${tint(0.25, '#00f')}; + * ` + * + * // CSS in JS Output + * + * element { + * background: "#bfbfff"; + * } + */ + +function tint(percentage, color) { + if (color === 'transparent') return color; + return mix$1(parseFloat(percentage), 'rgb(255, 255, 255)', color); +} + +// prettier-ignore +var curriedTint = curry /* :: */(tint); +var curriedTint$1 = (/* unused pure expression or super */ null && (curriedTint)); + +/** + * Decreases the opacity of a color. Its range for the amount is between 0 to 1. + * + * + * @example + * // Styles as object usage + * const styles = { + * background: transparentize(0.1, '#fff'), + * background: transparentize(0.2, 'hsl(0, 0%, 100%)'), + * background: transparentize('0.5', 'rgba(255, 0, 0, 0.8)'), + * } + * + * // styled-components usage + * const div = styled.div` + * background: ${transparentize(0.1, '#fff')}; + * background: ${transparentize(0.2, 'hsl(0, 0%, 100%)')}; + * background: ${transparentize('0.5', 'rgba(255, 0, 0, 0.8)')}; + * ` + * + * // CSS in JS Output + * + * element { + * background: "rgba(255,255,255,0.9)"; + * background: "rgba(255,255,255,0.8)"; + * background: "rgba(255,0,0,0.3)"; + * } + */ +function transparentize(amount, color) { + if (color === 'transparent') return color; + var parsedColor = parseToRgb(color); + var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1; + var colorWithAlpha = extends_extends({}, parsedColor, { + alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100) + }); + return rgba(colorWithAlpha); +} + +// prettier-ignore +var curriedTransparentize = curry /* :: */(transparentize); +var curriedTransparentize$1 = curriedTransparentize; + +/** + * Shorthand for easily setting the animation property. Allows either multiple arrays with animations + * or a single animation spread over the arguments. + * @example + * // Styles as object usage + * const styles = { + * ...animation(['rotate', '1s', 'ease-in-out'], ['colorchange', '2s']) + * } + * + * // styled-components usage + * const div = styled.div` + * ${animation(['rotate', '1s', 'ease-in-out'], ['colorchange', '2s'])} + * ` + * + * // CSS as JS Output + * + * div { + * 'animation': 'rotate 1s ease-in-out, colorchange 2s' + * } + * @example + * // Styles as object usage + * const styles = { + * ...animation('rotate', '1s', 'ease-in-out') + * } + * + * // styled-components usage + * const div = styled.div` + * ${animation('rotate', '1s', 'ease-in-out')} + * ` + * + * // CSS as JS Output + * + * div { + * 'animation': 'rotate 1s ease-in-out' + * } + */ +function animation() { + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + // Allow single or multiple animations passed + var multiMode = Array.isArray(args[0]); + if (!multiMode && args.length > 8) { + throw new PolishedError(64); + } + var code = args.map(function (arg) { + if (multiMode && !Array.isArray(arg) || !multiMode && Array.isArray(arg)) { + throw new PolishedError(65); + } + if (Array.isArray(arg) && arg.length > 8) { + throw new PolishedError(66); + } + return Array.isArray(arg) ? arg.join(' ') : arg; + }).join(', '); + return { + animation: code + }; +} + +/** + * Shorthand that accepts any number of backgroundImage values as parameters for creating a single background statement. + * @example + * // Styles as object usage + * const styles = { + * ...backgroundImages('url("/image/background.jpg")', 'linear-gradient(red, green)') + * } + * + * // styled-components usage + * const div = styled.div` + * ${backgroundImages('url("/image/background.jpg")', 'linear-gradient(red, green)')} + * ` + * + * // CSS as JS Output + * + * div { + * 'backgroundImage': 'url("/image/background.jpg"), linear-gradient(red, green)' + * } + */ +function backgroundImages() { + for (var _len = arguments.length, properties = new Array(_len), _key = 0; _key < _len; _key++) { + properties[_key] = arguments[_key]; + } + return { + backgroundImage: properties.join(', ') + }; +} + +/** + * Shorthand that accepts any number of background values as parameters for creating a single background statement. + * @example + * // Styles as object usage + * const styles = { + * ...backgrounds('url("/image/background.jpg")', 'linear-gradient(red, green)', 'center no-repeat') + * } + * + * // styled-components usage + * const div = styled.div` + * ${backgrounds('url("/image/background.jpg")', 'linear-gradient(red, green)', 'center no-repeat')} + * ` + * + * // CSS as JS Output + * + * div { + * 'background': 'url("/image/background.jpg"), linear-gradient(red, green), center no-repeat' + * } + */ +function backgrounds() { + for (var _len = arguments.length, properties = new Array(_len), _key = 0; _key < _len; _key++) { + properties[_key] = arguments[_key]; + } + return { + background: properties.join(', ') + }; +} + +var sideMap = (/* unused pure expression or super */ null && (['top', 'right', 'bottom', 'left'])); + +/** + * Shorthand for the border property that splits out individual properties for use with tools like Fela and Styletron. A side keyword can optionally be passed to target only one side's border properties. + * + * @example + * // Styles as object usage + * const styles = { + * ...border('1px', 'solid', 'red') + * } + * + * // styled-components usage + * const div = styled.div` + * ${border('1px', 'solid', 'red')} + * ` + * + * // CSS as JS Output + * + * div { + * 'borderColor': 'red', + * 'borderStyle': 'solid', + * 'borderWidth': `1px`, + * } + * + * // Styles as object usage + * const styles = { + * ...border('top', '1px', 'solid', 'red') + * } + * + * // styled-components usage + * const div = styled.div` + * ${border('top', '1px', 'solid', 'red')} + * ` + * + * // CSS as JS Output + * + * div { + * 'borderTopColor': 'red', + * 'borderTopStyle': 'solid', + * 'borderTopWidth': `1px`, + * } + */ + +function border(sideKeyword) { + for (var _len = arguments.length, values = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + values[_key - 1] = arguments[_key]; + } + if (typeof sideKeyword === 'string' && sideMap.indexOf(sideKeyword) >= 0) { + var _ref; + return _ref = {}, _ref["border" + capitalizeString(sideKeyword) + "Width"] = values[0], _ref["border" + capitalizeString(sideKeyword) + "Style"] = values[1], _ref["border" + capitalizeString(sideKeyword) + "Color"] = values[2], _ref; + } else { + values.unshift(sideKeyword); + return { + borderWidth: values[0], + borderStyle: values[1], + borderColor: values[2] + }; + } +} + +/** + * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions. + * @example + * // Styles as object usage + * const styles = { + * ...borderColor('red', 'green', 'blue', 'yellow') + * } + * + * // styled-components usage + * const div = styled.div` + * ${borderColor('red', 'green', 'blue', 'yellow')} + * ` + * + * // CSS as JS Output + * + * div { + * 'borderTopColor': 'red', + * 'borderRightColor': 'green', + * 'borderBottomColor': 'blue', + * 'borderLeftColor': 'yellow' + * } + */ +function borderColor() { + for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) { + values[_key] = arguments[_key]; + } + return directionalProperty.apply(void 0, ['borderColor'].concat(values)); +} + +/** + * Shorthand that accepts a value for side and a value for radius and applies the radius value to both corners of the side. + * @example + * // Styles as object usage + * const styles = { + * ...borderRadius('top', '5px') + * } + * + * // styled-components usage + * const div = styled.div` + * ${borderRadius('top', '5px')} + * ` + * + * // CSS as JS Output + * + * div { + * 'borderTopRightRadius': '5px', + * 'borderTopLeftRadius': '5px', + * } + */ +function borderRadius(side, radius) { + var uppercaseSide = capitalizeString(side); + if (!radius && radius !== 0) { + throw new PolishedError(62); + } + if (uppercaseSide === 'Top' || uppercaseSide === 'Bottom') { + var _ref; + return _ref = {}, _ref["border" + uppercaseSide + "RightRadius"] = radius, _ref["border" + uppercaseSide + "LeftRadius"] = radius, _ref; + } + if (uppercaseSide === 'Left' || uppercaseSide === 'Right') { + var _ref2; + return _ref2 = {}, _ref2["borderTop" + uppercaseSide + "Radius"] = radius, _ref2["borderBottom" + uppercaseSide + "Radius"] = radius, _ref2; + } + throw new PolishedError(63); +} + +/** + * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions. + * @example + * // Styles as object usage + * const styles = { + * ...borderStyle('solid', 'dashed', 'dotted', 'double') + * } + * + * // styled-components usage + * const div = styled.div` + * ${borderStyle('solid', 'dashed', 'dotted', 'double')} + * ` + * + * // CSS as JS Output + * + * div { + * 'borderTopStyle': 'solid', + * 'borderRightStyle': 'dashed', + * 'borderBottomStyle': 'dotted', + * 'borderLeftStyle': 'double' + * } + */ +function borderStyle() { + for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) { + values[_key] = arguments[_key]; + } + return directionalProperty.apply(void 0, ['borderStyle'].concat(values)); +} + +/** + * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions. + * @example + * // Styles as object usage + * const styles = { + * ...borderWidth('12px', '24px', '36px', '48px') + * } + * + * // styled-components usage + * const div = styled.div` + * ${borderWidth('12px', '24px', '36px', '48px')} + * ` + * + * // CSS as JS Output + * + * div { + * 'borderTopWidth': '12px', + * 'borderRightWidth': '24px', + * 'borderBottomWidth': '36px', + * 'borderLeftWidth': '48px' + * } + */ +function borderWidth() { + for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) { + values[_key] = arguments[_key]; + } + return directionalProperty.apply(void 0, ['borderWidth'].concat(values)); +} + +function generateSelectors(template, state) { + var stateSuffix = state ? ":" + state : ''; + return template(stateSuffix); +} + +/** + * Function helper that adds an array of states to a template of selectors. Used in textInputs and buttons. + * @private + */ +function statefulSelectors(states, template, stateMap) { + if (!template) throw new PolishedError(67); + if (states.length === 0) return generateSelectors(template, null); + var selectors = []; + for (var i = 0; i < states.length; i += 1) { + if (stateMap && stateMap.indexOf(states[i]) < 0) { + throw new PolishedError(68); + } + selectors.push(generateSelectors(template, states[i])); + } + selectors = selectors.join(','); + return selectors; +} + +var stateMap$1 = (/* unused pure expression or super */ null && ([undefined, null, 'active', 'focus', 'hover'])); +function template$1(state) { + return "button" + state + ",\n input[type=\"button\"]" + state + ",\n input[type=\"reset\"]" + state + ",\n input[type=\"submit\"]" + state; +} + +/** + * Populates selectors that target all buttons. You can pass optional states to append to the selectors. + * @example + * // Styles as object usage + * const styles = { + * [buttons('active')]: { + * 'border': 'none' + * } + * } + * + * // styled-components usage + * const div = styled.div` + * > ${buttons('active')} { + * border: none; + * } + * ` + * + * // CSS in JS Output + * + * 'button:active, + * 'input[type="button"]:active, + * 'input[type=\"reset\"]:active, + * 'input[type=\"submit\"]:active: { + * 'border': 'none' + * } + */ +function buttons() { + for (var _len = arguments.length, states = new Array(_len), _key = 0; _key < _len; _key++) { + states[_key] = arguments[_key]; + } + return statefulSelectors(states, template$1, stateMap$1); +} + +/** + * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions. + * @example + * // Styles as object usage + * const styles = { + * ...margin('12px', '24px', '36px', '48px') + * } + * + * // styled-components usage + * const div = styled.div` + * ${margin('12px', '24px', '36px', '48px')} + * ` + * + * // CSS as JS Output + * + * div { + * 'marginTop': '12px', + * 'marginRight': '24px', + * 'marginBottom': '36px', + * 'marginLeft': '48px' + * } + */ +function margin() { + for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) { + values[_key] = arguments[_key]; + } + return directionalProperty.apply(void 0, ['margin'].concat(values)); +} + +/** + * Shorthand that accepts up to four values, including null to skip a value, and maps them to their respective directions. + * @example + * // Styles as object usage + * const styles = { + * ...padding('12px', '24px', '36px', '48px') + * } + * + * // styled-components usage + * const div = styled.div` + * ${padding('12px', '24px', '36px', '48px')} + * ` + * + * // CSS as JS Output + * + * div { + * 'paddingTop': '12px', + * 'paddingRight': '24px', + * 'paddingBottom': '36px', + * 'paddingLeft': '48px' + * } + */ +function padding() { + for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) { + values[_key] = arguments[_key]; + } + return directionalProperty.apply(void 0, ['padding'].concat(values)); +} + +var positionMap = (/* unused pure expression or super */ null && (['absolute', 'fixed', 'relative', 'static', 'sticky'])); + +/** + * Shorthand accepts up to five values, including null to skip a value, and maps them to their respective directions. The first value can optionally be a position keyword. + * @example + * // Styles as object usage + * const styles = { + * ...position('12px', '24px', '36px', '48px') + * } + * + * // styled-components usage + * const div = styled.div` + * ${position('12px', '24px', '36px', '48px')} + * ` + * + * // CSS as JS Output + * + * div { + * 'top': '12px', + * 'right': '24px', + * 'bottom': '36px', + * 'left': '48px' + * } + * + * // Styles as object usage + * const styles = { + * ...position('absolute', '12px', '24px', '36px', '48px') + * } + * + * // styled-components usage + * const div = styled.div` + * ${position('absolute', '12px', '24px', '36px', '48px')} + * ` + * + * // CSS as JS Output + * + * div { + * 'position': 'absolute', + * 'top': '12px', + * 'right': '24px', + * 'bottom': '36px', + * 'left': '48px' + * } + */ +function position(firstValue) { + for (var _len = arguments.length, values = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + values[_key - 1] = arguments[_key]; + } + if (positionMap.indexOf(firstValue) >= 0 && firstValue) { + return _extends({}, directionalProperty.apply(void 0, [''].concat(values)), { + position: firstValue + }); + } else { + return directionalProperty.apply(void 0, ['', firstValue].concat(values)); + } +} + +/** + * Shorthand to set the height and width properties in a single statement. + * @example + * // Styles as object usage + * const styles = { + * ...size('300px', '250px') + * } + * + * // styled-components usage + * const div = styled.div` + * ${size('300px', '250px')} + * ` + * + * // CSS as JS Output + * + * div { + * 'height': '300px', + * 'width': '250px', + * } + */ +function size(height, width) { + if (width === void 0) { + width = height; + } + return { + height: height, + width: width + }; +} + +var stateMap = (/* unused pure expression or super */ null && ([undefined, null, 'active', 'focus', 'hover'])); +function template(state) { + return "input[type=\"color\"]" + state + ",\n input[type=\"date\"]" + state + ",\n input[type=\"datetime\"]" + state + ",\n input[type=\"datetime-local\"]" + state + ",\n input[type=\"email\"]" + state + ",\n input[type=\"month\"]" + state + ",\n input[type=\"number\"]" + state + ",\n input[type=\"password\"]" + state + ",\n input[type=\"search\"]" + state + ",\n input[type=\"tel\"]" + state + ",\n input[type=\"text\"]" + state + ",\n input[type=\"time\"]" + state + ",\n input[type=\"url\"]" + state + ",\n input[type=\"week\"]" + state + ",\n input:not([type])" + state + ",\n textarea" + state; +} + +/** + * Populates selectors that target all text inputs. You can pass optional states to append to the selectors. + * @example + * // Styles as object usage + * const styles = { + * [textInputs('active')]: { + * 'border': 'none' + * } + * } + * + * // styled-components usage + * const div = styled.div` + * > ${textInputs('active')} { + * border: none; + * } + * ` + * + * // CSS in JS Output + * + * 'input[type="color"]:active, + * input[type="date"]:active, + * input[type="datetime"]:active, + * input[type="datetime-local"]:active, + * input[type="email"]:active, + * input[type="month"]:active, + * input[type="number"]:active, + * input[type="password"]:active, + * input[type="search"]:active, + * input[type="tel"]:active, + * input[type="text"]:active, + * input[type="time"]:active, + * input[type="url"]:active, + * input[type="week"]:active, + * input:not([type]):active, + * textarea:active': { + * 'border': 'none' + * } + */ +function textInputs() { + for (var _len = arguments.length, states = new Array(_len), _key = 0; _key < _len; _key++) { + states[_key] = arguments[_key]; + } + return statefulSelectors(states, template, stateMap); +} + +/** + * Accepts any number of transition values as parameters for creating a single transition statement. You may also pass an array of properties as the first parameter that you would like to apply the same transition values to (second parameter). + * @example + * // Styles as object usage + * const styles = { + * ...transitions('opacity 1.0s ease-in 0s', 'width 2.0s ease-in 2s'), + * ...transitions(['color', 'background-color'], '2.0s ease-in 2s') + * } + * + * // styled-components usage + * const div = styled.div` + * ${transitions('opacity 1.0s ease-in 0s', 'width 2.0s ease-in 2s')}; + * ${transitions(['color', 'background-color'], '2.0s ease-in 2s'),}; + * ` + * + * // CSS as JS Output + * + * div { + * 'transition': 'opacity 1.0s ease-in 0s, width 2.0s ease-in 2s' + * 'transition': 'color 2.0s ease-in 2s, background-color 2.0s ease-in 2s', + * } + */ +function transitions() { + for (var _len = arguments.length, properties = new Array(_len), _key = 0; _key < _len; _key++) { + properties[_key] = arguments[_key]; + } + if (Array.isArray(properties[0]) && properties.length === 2) { + var value = properties[1]; + if (typeof value !== 'string') { + throw new PolishedError(61); + } + var transitionsString = properties[0].map(function (property) { + return property + " " + value; + }).join(', '); + return { + transition: transitionsString + }; + } else { + return { + transition: properties.join(', ') + }; + } +} + + + +// EXTERNAL MODULE: external "__STORYBOOK_MODULE_GLOBAL__" +var external_STORYBOOK_MODULE_GLOBAL_ = __webpack_require__("@storybook/global"); +// EXTERNAL MODULE: ../../../node_modules/@storybook/icons/dist/index.mjs +var dist = __webpack_require__("../../../node_modules/@storybook/icons/dist/index.mjs"); +// EXTERNAL MODULE: external "__STORYBOOK_MODULE_CLIENT_LOGGER__" +var external_STORYBOOK_MODULE_CLIENT_LOGGER_ = __webpack_require__("storybook/internal/client-logger"); +// EXTERNAL MODULE: ../../../node_modules/@storybook/csf/dist/index.mjs +var csf_dist = __webpack_require__("../../../node_modules/@storybook/csf/dist/index.mjs"); +// EXTERNAL MODULE: ../../../node_modules/lodash/pickBy.js +var pickBy = __webpack_require__("../../../node_modules/lodash/pickBy.js"); +var pickBy_default = /*#__PURE__*/__webpack_require__.n(pickBy); +;// CONCATENATED MODULE: ../../../node_modules/markdown-to-jsx/dist/index.modern.js +function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),a={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},o=["style","script"],c=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,s=/mailto:/i,d=/\n{2,}$/,u=/^(\s*>[\s\S]*?)(?=\n{2,})/,p=/^ *> ?/gm,f=/^ {2,}\n/,h=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,m=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,g=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,y=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,k=/^(?:\n *)*\n/,x=/\r\n?/g,b=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,v=/^\[\^([^\]]+)]/,S=/\f/g,E=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,$=/^\s*?\[(x|\s)\]/,w=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,C=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,z=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,L=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,A=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,T=/^)/,O=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,B=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,M=/^\{.*\}$/,R=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,I=/^<([^ >]+@[^ >]+)>/,U=/^<([^ >]+:\/[^ >]+)>/,D=/-([a-z])?/gi,j=/^(.*\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,N=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,H=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,F=/^\[([^\]]*)\] ?\[([^\]]*)\]/,P=/(\[|\])/g,_=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,W=/\t/g,G=/(^ *\||\| *$)/g,Z=/^ *:-+: *$/,q=/^ *:-+ *$/,Q=/^ *-+: *$/,V="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",X=new RegExp(`^([*_])\\1${V}\\1\\1(?!\\1)`),J=new RegExp(`^([*_])${V}\\1(?!\\1|\\w)`),K=new RegExp(`^==${V}==`),Y=new RegExp(`^~~${V}~~`),ee=/^\\([^0-9A-Za-z\s])/,te=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,ne=/^\n+/,re=/^([ \t]*)/,ie=/\\([^\\])/g,le=/ *\n+$/,ae=/(?:^|\n)( *)$/,oe="(?:\\d+\\.)",ce="(?:[*+-])";function se(e){return"( *)("+(1===e?oe:ce)+") +"}const de=se(1),ue=se(2);function pe(e){return new RegExp("^"+(1===e?de:ue))}const fe=pe(1),he=pe(2);function me(e){return new RegExp("^"+(1===e?de:ue)+"[^\\n]*(?:\\n(?!\\1"+(1===e?oe:ce)+" )[^\\n]*)*(\\n|$)","gm")}const ge=me(1),ye=me(2);function ke(e){const t=1===e?oe:ce;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const xe=ke(1),be=ke(2);function ve(e,t){const n=1===t,i=n?xe:be,l=n?ge:ye,a=n?fe:he;return{match(e,t,n){const r=ae.exec(n);return r&&(t.list||!t.inline&&!t.simple)?i.exec(e=r[1]+e):null},order:1,parse(e,t,r){const i=n?+e[2]:void 0,o=e[0].replace(d,"\n").match(l);let c=!1;return{items:o.map(function(e,n){const i=a.exec(e)[0].length,l=new RegExp("^ {1,"+i+"}","gm"),s=e.replace(l,"").replace(a,""),d=n===o.length-1,u=-1!==s.indexOf("\n\n")||d&&c;c=u;const p=r.inline,f=r.list;let h;r.list=!0,u?(r.inline=!1,h=s.replace(le,"\n\n")):(r.inline=!0,h=s.replace(le,""));const m=t(h,r);return r.inline=p,r.list=f,m}),ordered:n,start:i}},render:(t,n,i)=>e(t.ordered?"ol":"ul",{key:i.key,start:t.type===r.orderedList?t.start:void 0},t.items.map(function(t,r){return e("li",{key:r},n(t,i))}))}}const Se=new RegExp("^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),Ee=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,$e=[u,m,g,w,z,C,T,j,ge,xe,ye,be],we=[...$e,/^[^\n]+(?: \n|\n{2,})/,L,B];function Ce(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function ze(e){return Q.test(e)?"right":Z.test(e)?"center":q.test(e)?"left":null}function Le(e,t,n,i){const l=n.inTable;n.inTable=!0;let a=e.trim().split(/( *(?:`[^`]*`|<.*?>.*?<\/.*?>(?!<\/.*?>)|\\\||\|) *)/).reduce((e,l)=>("|"===l.trim()?e.push(i?{type:r.tableSeparator}:{type:r.text,text:l}):""!==l&&e.push.apply(e,t(l,n)),e),[]);n.inTable=l;let o=[[]];return a.forEach(function(e,t){e.type===r.tableSeparator?0!==t&&t!==a.length-1&&o.push([]):(e.type!==r.text||null!=a[t+1]&&a[t+1].type!==r.tableSeparator||(e.text=e.text.trimEnd()),o[o.length-1].push(e))}),o}function Ae(e,t,n){n.inline=!0;const i=e[2]?e[2].replace(G,"").split("|").map(ze):[],l=e[3]?function(e,t,n){return e.trim().split("\n").map(function(e){return Le(e,t,n,!0)})}(e[3],t,n):[],a=Le(e[1],t,n,!!l.length);return n.inline=!1,l.length?{align:i,cells:l,header:a,type:r.table}:{children:a,type:r.paragraph}}function Te(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function Oe(e){return function(t,n){return n.inline?e.exec(t):null}}function Be(e){return function(t,n){return n.inline||n.simple?e.exec(t):null}}function Me(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function Re(e){return function(t){return e.exec(t)}}function Ie(e,t,n){if(t.inline||t.simple)return null;if(n&&!n.endsWith("\n"))return null;let r="";e.split("\n").every(e=>!$e.some(t=>t.test(e))&&(r+=e+"\n",e.trim()));const i=r.trimEnd();return""==i?null:[r,i]}function Ue(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch(e){return null}return e}function De(e){return e.replace(ie,"$1")}function je(e,t,n){const r=n.inline||!1,i=n.simple||!1;n.inline=!0,n.simple=!0;const l=e(t,n);return n.inline=r,n.simple=i,l}function Ne(e,t,n){const r=n.inline||!1,i=n.simple||!1;n.inline=!1,n.simple=!0;const l=e(t,n);return n.inline=r,n.simple=i,l}function He(e,t,n){const r=n.inline||!1;n.inline=!1;const i=e(t,n);return n.inline=r,i}const Fe=(e,t,n)=>({children:je(t,e[1],n)});function Pe(){return{}}function _e(){return null}function We(...e){return e.filter(Boolean).join(" ")}function Ge(e,t,n){let r=e;const i=t.split(".");for(;i.length&&(r=r[i[0]],void 0!==r);)i.shift();return r||n}function Ze(n="",i={}){function d(e,n,...r){const l=Ge(i.overrides,`${e}.props`,{});return i.createElement(function(e,t){const n=Ge(t,e);return n?"function"==typeof n||"object"==typeof n&&"render"in n?n:Ge(t,`${e}.component`,e):e}(e,i.overrides),t({},n,l,{className:We(null==n?void 0:n.className,l.className)||void 0}),...r)}function G(t){t=t.replace(E,"");let n=!1;i.forceInline?n=!0:i.forceBlock||(n=!1===_.test(t));const r=le(ie(n?t:`${t.trimEnd().replace(ne,"")}\n\n`,{inline:n}));for(;"string"==typeof r[r.length-1]&&!r[r.length-1].trim();)r.pop();if(null===i.wrapper)return r;const l=i.wrapper||(n?"span":"div");let a;if(r.length>1||i.forceWrapper)a=r;else{if(1===r.length)return a=r[0],"string"==typeof a?d("span",{key:"outer"},a):a;a=null}return react.createElement(l,{key:"outer"},a)}function Z(t,n){const r=n.match(c);return r?r.reduce(function(n,r,a){const o=r.indexOf("=");if(-1!==o){const c=function(e){return-1!==e.indexOf("-")&&null===e.match(O)&&(e=e.replace(D,function(e,t){return t.toUpperCase()})),e}(r.slice(0,o)).trim(),s=function(e){const t=e[0];return('"'===t||"'"===t)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e}(r.slice(o+1).trim()),d=l[c]||c,u=n[d]=function(e,t,n,r){return"style"===t?n.split(/;\s?/).reduce(function(e,t){const n=t.slice(0,t.indexOf(":"));return e[n.trim().replace(/(-[a-z])/g,e=>e[1].toUpperCase())]=t.slice(n.length+1).trim(),e},{}):"href"===t||"src"===t?r(n,e,t):(n.match(M)&&(n=n.slice(1,n.length-1)),"true"===n||"false"!==n&&n)}(t,c,s,i.sanitizer);"string"==typeof u&&(L.test(u)||B.test(u))&&(n[d]=react.cloneElement(G(u.trim()),{key:a}))}else"style"!==r&&(n[l[r]||r]=!0);return n},{}):null}i.overrides=i.overrides||{},i.sanitizer=i.sanitizer||Ue,i.slugify=i.slugify||Ce,i.namedCodesToUnicode=i.namedCodesToUnicode?t({},a,i.namedCodesToUnicode):a,i.createElement=i.createElement||react.createElement;const q=[],Q={},V={[r.blockQuote]:{match:Me(u),order:1,parse:(e,t,n)=>({children:t(e[0].replace(p,""),n)}),render:(e,t,n)=>d("blockquote",{key:n.key},t(e.children,n))},[r.breakLine]:{match:Re(f),order:1,parse:Pe,render:(e,t,n)=>d("br",{key:n.key})},[r.breakThematic]:{match:Me(h),order:1,parse:Pe,render:(e,t,n)=>d("hr",{key:n.key})},[r.codeBlock]:{match:Me(g),order:0,parse:e=>({lang:void 0,text:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(e,n,r)=>d("pre",{key:r.key},d("code",t({},e.attrs,{className:e.lang?`lang-${e.lang}`:""}),e.text))},[r.codeFenced]:{match:Me(m),order:0,parse:e=>({attrs:Z("code",e[3]||""),lang:e[2]||void 0,text:e[4],type:r.codeBlock})},[r.codeInline]:{match:Be(y),order:3,parse:e=>({text:e[2]}),render:(e,t,n)=>d("code",{key:n.key},e.text)},[r.footnote]:{match:Me(b),order:0,parse:e=>(q.push({footnote:e[2],identifier:e[1]}),{}),render:_e},[r.footnoteReference]:{match:Oe(v),order:1,parse:e=>({target:`#${i.slugify(e[1],Ce)}`,text:e[1]}),render:(e,t,n)=>d("a",{key:n.key,href:i.sanitizer(e.target,"a","href")},d("sup",{key:n.key},e.text))},[r.gfmTask]:{match:Oe($),order:1,parse:e=>({completed:"x"===e[1].toLowerCase()}),render:(e,t,n)=>d("input",{checked:e.completed,key:n.key,readOnly:!0,type:"checkbox"})},[r.heading]:{match:Me(i.enforceAtxHeadings?C:w),order:1,parse:(e,t,n)=>({children:je(t,e[2],n),id:i.slugify(e[2],Ce),level:e[1].length}),render:(e,t,n)=>d(`h${e.level}`,{id:e.id,key:n.key},t(e.children,n))},[r.headingSetext]:{match:Me(z),order:0,parse:(e,t,n)=>({children:je(t,e[1],n),level:"="===e[2]?1:2,type:r.heading})},[r.htmlBlock]:{match:Re(L),order:1,parse(e,t,n){const[,r]=e[3].match(re),i=new RegExp(`^${r}`,"gm"),l=e[3].replace(i,""),a=(c=l,we.some(e=>e.test(c))?He:je);var c;const s=e[1].toLowerCase(),d=-1!==o.indexOf(s),u=(d?s:e[1]).trim(),p={attrs:Z(u,e[2]),noInnerParse:d,tag:u};return n.inAnchor=n.inAnchor||"a"===s,d?p.text=e[3]:p.children=a(t,l,n),n.inAnchor=!1,p},render:(e,n,r)=>d(e.tag,t({key:r.key},e.attrs),e.text||n(e.children,r))},[r.htmlSelfClosing]:{match:Re(B),order:1,parse(e){const t=e[1].trim();return{attrs:Z(t,e[2]||""),tag:t}},render:(e,n,r)=>d(e.tag,t({},e.attrs,{key:r.key}))},[r.htmlComment]:{match:Re(T),order:1,parse:()=>({}),render:_e},[r.image]:{match:Be(Ee),order:1,parse:e=>({alt:e[1],target:De(e[2]),title:e[3]}),render:(e,t,n)=>d("img",{key:n.key,alt:e.alt||void 0,title:e.title||void 0,src:i.sanitizer(e.target,"img","src")})},[r.link]:{match:Oe(Se),order:3,parse:(e,t,n)=>({children:Ne(t,e[1],n),target:De(e[2]),title:e[3]}),render:(e,t,n)=>d("a",{key:n.key,href:i.sanitizer(e.target,"a","href"),title:e.title},t(e.children,n))},[r.linkAngleBraceStyleDetector]:{match:Oe(U),order:0,parse:e=>({children:[{text:e[1],type:r.text}],target:e[1],type:r.link})},[r.linkBareUrlDetector]:{match:(e,t)=>t.inAnchor?null:Oe(R)(e,t),order:0,parse:e=>({children:[{text:e[1],type:r.text}],target:e[1],title:void 0,type:r.link})},[r.linkMailtoDetector]:{match:Oe(I),order:0,parse(e){let t=e[1],n=e[1];return s.test(n)||(n="mailto:"+n),{children:[{text:t.replace("mailto:",""),type:r.text}],target:n,type:r.link}}},[r.orderedList]:ve(d,1),[r.unorderedList]:ve(d,2),[r.newlineCoalescer]:{match:Me(k),order:3,parse:Pe,render:()=>"\n"},[r.paragraph]:{match:Ie,order:3,parse:Fe,render:(e,t,n)=>d("p",{key:n.key},t(e.children,n))},[r.ref]:{match:Oe(N),order:0,parse:e=>(Q[e[1]]={target:e[2],title:e[4]},{}),render:_e},[r.refImage]:{match:Be(H),order:0,parse:e=>({alt:e[1]||void 0,ref:e[2]}),render:(e,t,n)=>Q[e.ref]?d("img",{key:n.key,alt:e.alt,src:i.sanitizer(Q[e.ref].target,"img","src"),title:Q[e.ref].title}):null},[r.refLink]:{match:Oe(F),order:0,parse:(e,t,n)=>({children:t(e[1],n),fallbackChildren:t(e[0].replace(P,"\\$1"),n),ref:e[2]}),render:(e,t,n)=>Q[e.ref]?d("a",{key:n.key,href:i.sanitizer(Q[e.ref].target,"a","href"),title:Q[e.ref].title},t(e.children,n)):d("span",{key:n.key},t(e.fallbackChildren,n))},[r.table]:{match:Me(j),order:1,parse:Ae,render(e,t,n){const r=e;return d("table",{key:n.key},d("thead",null,d("tr",null,r.header.map(function(e,i){return d("th",{key:i,style:Te(r,i)},t(e,n))}))),d("tbody",null,r.cells.map(function(e,i){return d("tr",{key:i},e.map(function(e,i){return d("td",{key:i,style:Te(r,i)},t(e,n))}))})))}},[r.text]:{match:Re(te),order:4,parse:e=>({text:e[0].replace(A,(e,t)=>i.namedCodesToUnicode[t]?i.namedCodesToUnicode[t]:e)}),render:e=>e.text},[r.textBolded]:{match:Be(X),order:2,parse:(e,t,n)=>({children:t(e[2],n)}),render:(e,t,n)=>d("strong",{key:n.key},t(e.children,n))},[r.textEmphasized]:{match:Be(J),order:3,parse:(e,t,n)=>({children:t(e[2],n)}),render:(e,t,n)=>d("em",{key:n.key},t(e.children,n))},[r.textEscaped]:{match:Be(ee),order:1,parse:e=>({text:e[1],type:r.text})},[r.textMarked]:{match:Be(K),order:3,parse:Fe,render:(e,t,n)=>d("mark",{key:n.key},t(e.children,n))},[r.textStrikethroughed]:{match:Be(Y),order:3,parse:Fe,render:(e,t,n)=>d("del",{key:n.key},t(e.children,n))}};!0===i.disableParsingRawHTML&&(delete V[r.htmlBlock],delete V[r.htmlSelfClosing]);const ie=function(e){let t=Object.keys(e);function n(r,i){let l=[],a="";for(;r;){let o=0;for(;ol(n,r,i),n,r,i):l(n,r,i)}}(V,i.renderRule),function e(t,n={}){if(Array.isArray(t)){const r=n.key,i=[];let l=!1;for(let r=0;r{let{children:r="",options:i}=t,l=function(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(t,n);return react.cloneElement(Ze(r,i),l)}); +//# sourceMappingURL=index.modern.js.map + +// EXTERNAL MODULE: ../../../node_modules/lodash/cloneDeep.js +var cloneDeep = __webpack_require__("../../../node_modules/lodash/cloneDeep.js"); +var cloneDeep_default = /*#__PURE__*/__webpack_require__.n(cloneDeep); +// EXTERNAL MODULE: ../../../node_modules/lodash/uniq.js +var uniq = __webpack_require__("../../../node_modules/lodash/uniq.js"); +var uniq_default = /*#__PURE__*/__webpack_require__.n(uniq); +// EXTERNAL MODULE: ../../../node_modules/memoizerific/memoizerific.js +var memoizerific = __webpack_require__("../../../node_modules/memoizerific/memoizerific.js"); +var memoizerific_default = /*#__PURE__*/__webpack_require__.n(memoizerific); +// EXTERNAL MODULE: external "__STORYBOOK_MODULE_PREVIEW_API__" +var external_STORYBOOK_MODULE_PREVIEW_API_ = __webpack_require__("storybook/internal/preview-api"); +// EXTERNAL MODULE: ../../../node_modules/@storybook/core/dist/docs-tools/index.js +var docs_tools = __webpack_require__("../../../node_modules/@storybook/core/dist/docs-tools/index.js"); +// EXTERNAL MODULE: ../../../node_modules/telejson/dist/index.mjs +var telejson_dist = __webpack_require__("../../../node_modules/telejson/dist/index.mjs"); +// EXTERNAL MODULE: external "__STORYBOOK_MODULE_CORE_EVENTS__" +var external_STORYBOOK_MODULE_CORE_EVENTS_ = __webpack_require__("storybook/internal/core-events"); +// EXTERNAL MODULE: ../../../node_modules/ts-dedent/esm/index.js +var esm = __webpack_require__("../../../node_modules/ts-dedent/esm/index.js"); +// EXTERNAL MODULE: external "__STORYBOOK_MODULE_CHANNELS__" +var external_STORYBOOK_MODULE_CHANNELS_ = __webpack_require__("storybook/internal/channels"); +;// CONCATENATED MODULE: ../../../node_modules/@storybook/blocks/dist/index.mjs + + + + + + + + + + + + + + + + + + + + + +var require_default_options=(0,chunk_MKV36LKP/* __commonJS */.P$)({"../../node_modules/tocbot/src/js/default-options.js"(exports,module){module.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0};}});var require_build_html=(0,chunk_MKV36LKP/* __commonJS */.P$)({"../../node_modules/tocbot/src/js/build-html.js"(exports,module){module.exports=function(options){var forEach=[].forEach,some=[].some,body=document.body,tocElement,currentlyHighlighting=!0,SPACE_CHAR=" ";function createEl(d,container){var link=container.appendChild(createLink(d));if(d.children.length){var list=createList(d.isCollapsed);d.children.forEach(function(child){createEl(child,list);}),link.appendChild(list);}}function render(parent,data){var collapsed=!1,container=createList(collapsed);if(data.forEach(function(d){createEl(d,container);}),tocElement=parent||tocElement,tocElement!==null)return tocElement.firstChild&&tocElement.removeChild(tocElement.firstChild),data.length===0?tocElement:tocElement.appendChild(container)}function createLink(data){var item=document.createElement("li"),a=document.createElement("a");return options.listItemClass&&item.setAttribute("class",options.listItemClass),options.onClick&&(a.onclick=options.onClick),options.includeTitleTags&&a.setAttribute("title",data.textContent),options.includeHtml&&data.childNodes.length?forEach.call(data.childNodes,function(node){a.appendChild(node.cloneNode(!0));}):a.textContent=data.textContent,a.setAttribute("href",options.basePath+"#"+data.id),a.setAttribute("class",options.linkClass+SPACE_CHAR+"node-name--"+data.nodeName+SPACE_CHAR+options.extraLinkClasses),item.appendChild(a),item}function createList(isCollapsed){var listElement=options.orderedList?"ol":"ul",list=document.createElement(listElement),classes=options.listClass+SPACE_CHAR+options.extraListClasses;return isCollapsed&&(classes=classes+SPACE_CHAR+options.collapsibleClass,classes=classes+SPACE_CHAR+options.isCollapsedClass),list.setAttribute("class",classes),list}function updateFixedSidebarClass(){if(options.scrollContainer&&document.querySelector(options.scrollContainer)){var top;top=document.querySelector(options.scrollContainer).scrollTop;}else top=document.documentElement.scrollTop||body.scrollTop;var posFixedEl=document.querySelector(options.positionFixedSelector);options.fixedSidebarOffset==="auto"&&(options.fixedSidebarOffset=tocElement.offsetTop),top>options.fixedSidebarOffset?posFixedEl.className.indexOf(options.positionFixedClass)===-1&&(posFixedEl.className+=SPACE_CHAR+options.positionFixedClass):posFixedEl.className=posFixedEl.className.replace(SPACE_CHAR+options.positionFixedClass,"");}function getHeadingTopPos(obj){var position=0;return obj!==null&&(position=obj.offsetTop,options.hasInnerContainers&&(position+=getHeadingTopPos(obj.offsetParent))),position}function updateClassname(obj,className){return obj&&obj.className!==className&&(obj.className=className),obj}function updateToc(headingsArray){if(options.scrollContainer&&document.querySelector(options.scrollContainer)){var top;top=document.querySelector(options.scrollContainer).scrollTop;}else top=document.documentElement.scrollTop||body.scrollTop;options.positionFixedSelector&&updateFixedSidebarClass();var headings=headingsArray,topHeader;if(currentlyHighlighting&&tocElement!==null&&headings.length>0){some.call(headings,function(heading,i){if(getHeadingTopPos(heading)>top+options.headingsOffset+10){var index=i===0?i:i-1;return topHeader=headings[index],!0}else if(i===headings.length-1)return topHeader=headings[headings.length-1],!0});var oldActiveTocLink=tocElement.querySelector("."+options.activeLinkClass),activeTocLink=tocElement.querySelector("."+options.linkClass+".node-name--"+topHeader.nodeName+'[href="'+options.basePath+"#"+topHeader.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1")+'"]');if(oldActiveTocLink===activeTocLink)return;var tocLinks=tocElement.querySelectorAll("."+options.linkClass);forEach.call(tocLinks,function(tocLink){updateClassname(tocLink,tocLink.className.replace(SPACE_CHAR+options.activeLinkClass,""));});var tocLis=tocElement.querySelectorAll("."+options.listItemClass);forEach.call(tocLis,function(tocLi){updateClassname(tocLi,tocLi.className.replace(SPACE_CHAR+options.activeListItemClass,""));}),activeTocLink&&activeTocLink.className.indexOf(options.activeLinkClass)===-1&&(activeTocLink.className+=SPACE_CHAR+options.activeLinkClass);var li=activeTocLink&&activeTocLink.parentNode;li&&li.className.indexOf(options.activeListItemClass)===-1&&(li.className+=SPACE_CHAR+options.activeListItemClass);var tocLists=tocElement.querySelectorAll("."+options.listClass+"."+options.collapsibleClass);forEach.call(tocLists,function(list){list.className.indexOf(options.isCollapsedClass)===-1&&(list.className+=SPACE_CHAR+options.isCollapsedClass);}),activeTocLink&&activeTocLink.nextSibling&&activeTocLink.nextSibling.className.indexOf(options.isCollapsedClass)!==-1&&updateClassname(activeTocLink.nextSibling,activeTocLink.nextSibling.className.replace(SPACE_CHAR+options.isCollapsedClass,"")),removeCollapsedFromParents(activeTocLink&&activeTocLink.parentNode.parentNode);}}function removeCollapsedFromParents(element){return element&&element.className.indexOf(options.collapsibleClass)!==-1&&element.className.indexOf(options.isCollapsedClass)!==-1?(updateClassname(element,element.className.replace(SPACE_CHAR+options.isCollapsedClass,"")),removeCollapsedFromParents(element.parentNode.parentNode)):element}function disableTocAnimation(event){var target=event.target||event.srcElement;typeof target.className!="string"||target.className.indexOf(options.linkClass)===-1||(currentlyHighlighting=!1);}function enableTocAnimation(){currentlyHighlighting=!0;}return {enableTocAnimation,disableTocAnimation,render,updateToc}};}});var require_parse_content=(0,chunk_MKV36LKP/* __commonJS */.P$)({"../../node_modules/tocbot/src/js/parse-content.js"(exports,module){module.exports=function(options){var reduce=[].reduce;function getLastItem(array2){return array2[array2.length-1]}function getHeadingLevel(heading){return +heading.nodeName.toUpperCase().replace("H","")}function isHTMLElement(maybeElement){try{return maybeElement instanceof window.HTMLElement||maybeElement instanceof window.parent.HTMLElement}catch{return maybeElement instanceof window.HTMLElement}}function getHeadingObject(heading){if(!isHTMLElement(heading))return heading;if(options.ignoreHiddenElements&&(!heading.offsetHeight||!heading.offsetParent))return null;let headingLabel=heading.getAttribute("data-heading-label")||(options.headingLabelCallback?String(options.headingLabelCallback(heading.innerText)):(heading.innerText||heading.textContent).trim());var obj={id:heading.id,children:[],nodeName:heading.nodeName,headingLevel:getHeadingLevel(heading),textContent:headingLabel};return options.includeHtml&&(obj.childNodes=heading.childNodes),options.headingObjectCallback?options.headingObjectCallback(obj,heading):obj}function addNode(node,nest){for(var obj=getHeadingObject(node),level=obj.headingLevel,array2=nest,lastItem=getLastItem(array2),lastItemLevel=lastItem?lastItem.headingLevel:0,counter=level-lastItemLevel;counter>0&&(lastItem=getLastItem(array2),!(lastItem&&level===lastItem.headingLevel));)lastItem&&lastItem.children!==void 0&&(array2=lastItem.children),counter--;return level>=options.collapseDepth&&(obj.isCollapsed=!0),array2.push(obj),array2}function selectHeadings(contentElement,headingSelector){var selectors=headingSelector;options.ignoreSelector&&(selectors=headingSelector.split(",").map(function(selector){return selector.trim()+":not("+options.ignoreSelector+")"}));try{return contentElement.querySelectorAll(selectors)}catch{return console.warn("Headers not found with selector: "+selectors),null}}function nestHeadingsArray(headingsArray){return reduce.call(headingsArray,function(prev,curr){var currentHeading=getHeadingObject(curr);return currentHeading&&addNode(currentHeading,prev.nest),prev},{nest:[]})}return {nestHeadingsArray,selectHeadings}};}});var require_update_toc_scroll=(0,chunk_MKV36LKP/* __commonJS */.P$)({"../../node_modules/tocbot/src/js/update-toc-scroll.js"(exports,module){module.exports=function(options){var toc=options.tocElement||document.querySelector(options.tocSelector);if(toc&&toc.scrollHeight>toc.clientHeight){var activeItem=toc.querySelector("."+options.activeListItemClass);activeItem&&(toc.scrollTop=activeItem.offsetTop-options.tocScrollOffset);}};}});var require_scroll_smooth=(0,chunk_MKV36LKP/* __commonJS */.P$)({"../../node_modules/tocbot/src/js/scroll-smooth/index.js"(exports){exports.initSmoothScrolling=initSmoothScrolling;function initSmoothScrolling(options){var duration=options.duration,offset=options.offset,pageUrl=location.hash?stripHash(location.href):location.href;delegatedLinkHijacking();function delegatedLinkHijacking(){document.body.addEventListener("click",onClick,!1);function onClick(e){!isInPageLink(e.target)||e.target.className.indexOf("no-smooth-scroll")>-1||e.target.href.charAt(e.target.href.length-2)==="#"&&e.target.href.charAt(e.target.href.length-1)==="!"||e.target.className.indexOf(options.linkClass)===-1||jump(e.target.hash,{duration,offset,callback:function(){setFocus(e.target.hash);}});}}function isInPageLink(n){return n.tagName.toLowerCase()==="a"&&(n.hash.length>0||n.href.charAt(n.href.length-1)==="#")&&(stripHash(n.href)===pageUrl||stripHash(n.href)+"#"===pageUrl)}function stripHash(url){return url.slice(0,url.lastIndexOf("#"))}function setFocus(hash){var element=document.getElementById(hash.substring(1));element&&(/^(?:a|select|input|button|textarea)$/i.test(element.tagName)||(element.tabIndex=-1),element.focus());}}function jump(target,options){var start=window.pageYOffset,opt={duration:options.duration,offset:options.offset||0,callback:options.callback,easing:options.easing||easeInOutQuad},tgt=document.querySelector('[id="'+decodeURI(target).split("#").join("")+'"]')||document.querySelector('[id="'+target.split("#").join("")+'"]'),distance=typeof target=="string"?opt.offset+(target?tgt&&tgt.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):target,duration=typeof opt.duration=="function"?opt.duration(distance):opt.duration,timeStart,timeElapsed;requestAnimationFrame(function(time){timeStart=time,loop(time);});function loop(time){timeElapsed=time-timeStart,window.scrollTo(0,opt.easing(timeElapsed,start,distance,duration)),timeElapsed"u"&&!supports)return;var headingsArray,hasOwnProperty=Object.prototype.hasOwnProperty;function extend(){for(var target={},i=0;i({backgroundColor:theme.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:theme.appBorderRadius,border:`1px dashed ${theme.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:curriedTransparentize$1(.3,theme.color.defaultText),fontSize:theme.typography.size.s2})),EmptyBlock=props=>react.createElement(Wrapper,{...props,className:"docblock-emptyblock sb-unstyled"});var StyledSyntaxHighlighter=(0,theming/* styled */.I4)(components/* SyntaxHighlighter */.bF)(({theme})=>({fontSize:`${theme.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:theme.appBorderRadius,boxShadow:theme.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}}));var SourceSkeletonWrapper=theming/* styled */.I4.div(({theme})=>({background:theme.background.content,borderRadius:theme.appBorderRadius,border:`1px solid ${theme.appBorderColor}`,boxShadow:theme.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),SourceSkeletonPlaceholder=theming/* styled */.I4.div(({theme})=>({animation:`${theme.animation.glow} 1.5s ease-in-out infinite`,background:theme.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${theming/* ignoreSsrWarning */.v_}`]:{margin:0}})),SourceSkeleton=()=>react.createElement(SourceSkeletonWrapper,null,react.createElement(SourceSkeletonPlaceholder,null),react.createElement(SourceSkeletonPlaceholder,{style:{width:"80%"}}),react.createElement(SourceSkeletonPlaceholder,{style:{width:"30%"}}),react.createElement(SourceSkeletonPlaceholder,{style:{width:"80%"}})),Source=({isLoading,error,language,code,dark,format:format2=!1,...rest})=>{let{typography}=(0,theming/* useTheme */.DP)();if(isLoading)return react.createElement(SourceSkeleton,null);if(error)return react.createElement(EmptyBlock,null,error);let syntaxHighlighter=react.createElement(StyledSyntaxHighlighter,{bordered:!0,copyable:!0,format:format2,language,className:"docblock-source sb-unstyled",...rest},code);if(typeof dark>"u")return syntaxHighlighter;let overrideTheme=dark?theming/* themes */.Zj.dark:theming/* themes */.Zj.light;return react.createElement(theming/* ThemeProvider */.NP,{theme:(0,theming/* convert */.C6)({...overrideTheme,fontCode:typography.fonts.mono,fontBase:typography.fonts.base})},syntaxHighlighter)};var toGlobalSelector=element=>`& :where(${element}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${element}))`,breakpoint=600,Title=theming/* styled */.I4.h1(components/* withReset */.YV,({theme})=>({color:theme.color.defaultText,fontSize:theme.typography.size.m3,fontWeight:theme.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${breakpoint}px)`]:{fontSize:theme.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),Subtitle=theming/* styled */.I4.h2(components/* withReset */.YV,({theme})=>({fontWeight:theme.typography.weight.regular,fontSize:theme.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${breakpoint}px)`]:{fontSize:theme.typography.size.m1,lineHeight:"28px",marginBottom:24},color:curriedTransparentize$1(.25,theme.color.defaultText)})),DocsContent=theming/* styled */.I4.div(({theme})=>{let reset={fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},headers={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:theme.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},code={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:theme.typography.size.s2-1,border:theme.base==="light"?`1px solid ${theme.color.mediumlight}`:`1px solid ${theme.color.darker}`,color:theme.base==="light"?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),backgroundColor:theme.base==="light"?theme.color.lighter:theme.color.border};return {maxWidth:1e3,width:"100%",[toGlobalSelector("a")]:{...reset,fontSize:"inherit",lineHeight:"24px",color:theme.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[toGlobalSelector("blockquote")]:{...reset,margin:"16px 0",borderLeft:`4px solid ${theme.color.medium}`,padding:"0 15px",color:theme.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[toGlobalSelector("div")]:reset,[toGlobalSelector("dl")]:{...reset,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[toGlobalSelector("h1")]:{...reset,...headers,fontSize:`${theme.typography.size.l1}px`,fontWeight:theme.typography.weight.bold},[toGlobalSelector("h2")]:{...reset,...headers,fontSize:`${theme.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${theme.appBorderColor}`},[toGlobalSelector("h3")]:{...reset,...headers,fontSize:`${theme.typography.size.m1}px`,fontWeight:theme.typography.weight.bold},[toGlobalSelector("h4")]:{...reset,...headers,fontSize:`${theme.typography.size.s3}px`},[toGlobalSelector("h5")]:{...reset,...headers,fontSize:`${theme.typography.size.s2}px`},[toGlobalSelector("h6")]:{...reset,...headers,fontSize:`${theme.typography.size.s2}px`,color:theme.color.dark},[toGlobalSelector("hr")]:{border:"0 none",borderTop:`1px solid ${theme.appBorderColor}`,height:4,padding:0},[toGlobalSelector("img")]:{maxWidth:"100%"},[toGlobalSelector("li")]:{...reset,fontSize:theme.typography.size.s2,color:theme.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":code},[toGlobalSelector("ol")]:{...reset,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[toGlobalSelector("p")]:{...reset,margin:"16px 0",fontSize:theme.typography.size.s2,lineHeight:"24px",color:theme.color.defaultText,"& code":code},[toGlobalSelector("pre")]:{...reset,fontFamily:theme.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[toGlobalSelector("span")]:{...reset,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${theme.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:theme.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[toGlobalSelector("table")]:{...reset,margin:"16px 0",fontSize:theme.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${theme.appBorderColor}`,backgroundColor:theme.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:theme.base==="dark"?theme.color.darker:theme.color.lighter},"& tr th":{fontWeight:"bold",color:theme.color.defaultText,border:`1px solid ${theme.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${theme.appBorderColor}`,color:theme.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[toGlobalSelector("ul")]:{...reset,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),DocsWrapper=theming/* styled */.I4.div(({theme})=>({background:theme.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${breakpoint}px)`]:{}})),DocsPageWrapper=({children,toc})=>react.createElement(DocsWrapper,{className:"sbdocs sbdocs-wrapper"},react.createElement(DocsContent,{className:"sbdocs sbdocs-content"},children),toc);var getBlockBackgroundStyle=theme=>({borderRadius:theme.appBorderRadius,background:theme.background.content,boxShadow:theme.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${theme.appBorderColor}`});var{window:globalWindow}=external_STORYBOOK_MODULE_GLOBAL_.global,IFrame=class extends react.Component{constructor(){super(...arguments);this.iframe=null;}componentDidMount(){let{id}=this.props;this.iframe=globalWindow.document.getElementById(id);}shouldComponentUpdate(nextProps){let{scale}=nextProps;return scale!==this.props.scale&&this.setIframeBodyStyle({width:`${scale*100}%`,height:`${scale*100}%`,transform:`scale(${1/scale})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(style){return Object.assign(this.iframe.contentDocument.body.style,style)}render(){let{id,title,src,allowFullScreen,scale,...rest}=this.props;return react.createElement("iframe",{id,title,src,...allowFullScreen?{allow:"fullscreen"}:{},loading:"lazy",...rest})}};var ZoomContext=(0,react.createContext)({scale:1});var{PREVIEW_URL}=external_STORYBOOK_MODULE_GLOBAL_.global,BASE_URL=PREVIEW_URL||"iframe.html",storyBlockIdFromId=({story,primary})=>`story--${story.id}${primary?"--primary":""}`,InlineStory=props=>{let storyRef=(0,react.useRef)(),[showLoader,setShowLoader]=(0,react.useState)(!0),[error,setError]=(0,react.useState)(),{story,height,autoplay,forceInitialArgs,renderStoryToElement}=props;return (0,react.useEffect)(()=>{if(!(story&&storyRef.current))return ()=>{};let element=storyRef.current,cleanup=renderStoryToElement(story,element,{showMain:()=>{},showError:({title,description})=>setError(new Error(`${title} - ${description}`)),showException:err=>setError(err)},{autoplay,forceInitialArgs});return setShowLoader(!1),()=>{Promise.resolve().then(()=>cleanup());}},[autoplay,renderStoryToElement,story]),error?react.createElement("pre",null,react.createElement(components/* ErrorFormatter */.Df,{error})):react.createElement(react.Fragment,null,height?react.createElement("style",null,`#${storyBlockIdFromId(props)} { min-height: ${height}; transform: translateZ(0); overflow: auto }`):null,showLoader&&react.createElement(StorySkeleton,null),react.createElement("div",{ref:storyRef,id:`${storyBlockIdFromId(props)}-inner`,"data-name":story.name}))},IFrameStory=({story,height="500px"})=>react.createElement("div",{style:{width:"100%",height}},react.createElement(ZoomContext.Consumer,null,({scale})=>react.createElement(IFrame,{key:"iframe",id:`iframe--${story.id}`,title:story.name,src:(0,components/* getStoryHref */.jZ)(BASE_URL,story.id,{viewMode:"story"}),allowFullScreen:!0,scale,style:{width:"100%",height:"100%",border:"0 none"}}))),ErrorMessage=theming/* styled */.I4.strong(({theme})=>({color:theme.color.orange})),Story=props=>{let{inline,story}=props;return inline&&!props.autoplay&&story.usesMount?react.createElement(ErrorMessage,null,"This story mounts inside of play. Set"," ",react.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):react.createElement("div",{id:storyBlockIdFromId(props),className:"sb-story sb-unstyled","data-story-block":"true"},inline?react.createElement(InlineStory,{...props}):react.createElement(IFrameStory,{...props}))},StorySkeleton=()=>react.createElement(components/* Loader */.aH,null);var Bar=(0,theming/* styled */.I4)(components/* FlexBar */.px)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),Wrapper2=theming/* styled */.I4.div({display:"flex",alignItems:"center",gap:4}),IconPlaceholder=theming/* styled */.I4.div(({theme})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:theme.appBorderColor,animation:`${theme.animation.glow} 1.5s ease-in-out infinite`})),Toolbar=({isLoading,storyId,baseUrl,zoom,resetZoom,...rest})=>react.createElement(Bar,{...rest},react.createElement(Wrapper2,{key:"left"},isLoading?[1,2,3].map(key=>react.createElement(IconPlaceholder,{key})):react.createElement(react.Fragment,null,react.createElement(components/* IconButton */.K0,{key:"zoomin",onClick:e=>{e.preventDefault(),zoom(.8);},title:"Zoom in"},react.createElement(dist/* ZoomIcon */.PU,null)),react.createElement(components/* IconButton */.K0,{key:"zoomout",onClick:e=>{e.preventDefault(),zoom(1.25);},title:"Zoom out"},react.createElement(dist/* ZoomOutIcon */.LoD,null)),react.createElement(components/* IconButton */.K0,{key:"zoomreset",onClick:e=>{e.preventDefault(),resetZoom();},title:"Reset zoom"},react.createElement(dist/* ZoomResetIcon */.wV5,null)))));var ChildrenContainer=theming/* styled */.I4.div(({isColumn,columns,layout})=>({display:isColumn||!columns?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:isColumn?"column":"row","& .innerZoomElementWrapper > *":isColumn?{width:layout!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:layout!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout="padded"})=>layout==="centered"||layout==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout="padded"})=>layout==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns})=>columns&&columns>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${columns} - 20px)`}}:{}),StyledSource=(0,theming/* styled */.I4)(Source)(({theme})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:theme.appBorderRadius,borderBottomRightRadius:theme.appBorderRadius,border:"none",background:theme.base==="light"?"rgba(0, 0, 0, 0.85)":curriedDarken$1(.05,theme.background.content),color:theme.color.lightest,button:{background:theme.base==="light"?"rgba(0, 0, 0, 0.85)":curriedDarken$1(.05,theme.background.content)}})),PreviewContainer=theming/* styled */.I4.div(({theme,withSource,isExpanded})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...getBlockBackgroundStyle(theme),borderBottomLeftRadius:withSource&&isExpanded&&0,borderBottomRightRadius:withSource&&isExpanded&&0,borderBottomWidth:isExpanded&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar})=>withToolbar&&{paddingTop:40}),getSource=(withSource,expanded,setExpanded)=>{switch(!0){case!!(withSource&&withSource.error):return {source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>setExpanded(!1)}};case expanded:return {source:react.createElement(StyledSource,{...withSource,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>setExpanded(!1)}};default:return {source:react.createElement(StyledSource,{...withSource,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>setExpanded(!0)}}}};function getStoryId(children){if(react.Children.count(children)===1){let elt=children;if(elt.props)return elt.props.id}return null}var PositionedToolbar=(0,theming/* styled */.I4)(Toolbar)({position:"absolute",top:0,left:0,right:0,height:40}),Relative=theming/* styled */.I4.div({overflow:"hidden",position:"relative"}),Preview=({isLoading,isColumn,columns,children,withSource,withToolbar=!1,isExpanded=!1,additionalActions,className,layout="padded",...props})=>{let[expanded,setExpanded]=(0,react.useState)(isExpanded),{source,actionItem}=getSource(withSource,expanded,setExpanded),[scale,setScale]=(0,react.useState)(1),previewClasses=[className].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),defaultActionItems=withSource?[actionItem]:[],[additionalActionItems,setAdditionalActionItems]=(0,react.useState)(additionalActions?[...additionalActions]:[]),actionItems=[...defaultActionItems,...additionalActionItems],{window:globalWindow4}=external_STORYBOOK_MODULE_GLOBAL_.global,copyToClipboard=(0,react.useCallback)(async text=>{let{createCopyToClipboardFunction}=await __webpack_require__.e(/* import() */ 814).then(__webpack_require__.bind(__webpack_require__, "../../../node_modules/storybook/core/components/index.js"));createCopyToClipboardFunction();},[]),onCopyCapture=e=>{let selection=globalWindow4.getSelection();selection&&selection.type==="Range"||(e.preventDefault(),additionalActionItems.filter(item=>item.title==="Copied").length===0&©ToClipboard(source.props.code).then(()=>{setAdditionalActionItems([...additionalActionItems,{title:"Copied",onClick:()=>{}}]),globalWindow4.setTimeout(()=>setAdditionalActionItems(additionalActionItems.filter(item=>item.title!=="Copied")),1500);}));};return react.createElement(PreviewContainer,{withSource,withToolbar,...props,className:previewClasses.join(" ")},withToolbar&&react.createElement(PositionedToolbar,{isLoading,border:!0,zoom:z=>setScale(scale*z),resetZoom:()=>setScale(1),storyId:getStoryId(children),baseUrl:"./iframe.html"}),react.createElement(ZoomContext.Provider,{value:{scale}},react.createElement(Relative,{className:"docs-story",onCopyCapture:withSource&&onCopyCapture},react.createElement(ChildrenContainer,{isColumn:isColumn||!Array.isArray(children),columns,layout},react.createElement(components/* Zoom */.GP.Element,{scale},Array.isArray(children)?children.map((child,i)=>react.createElement("div",{key:i},child)):react.createElement("div",null,children))),react.createElement(components/* ActionBar */.E7,{actionItems}))),withSource&&expanded&&source)};(0,theming/* styled */.I4)(Preview)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var Label=theming/* styled */.I4.label(({theme})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:theme.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${theme.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:theme.typography.size.s1,fontWeight:theme.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:curriedTransparentize$1(.5,theme.color.defaultText),background:"transparent","&:hover":{boxShadow:`${curriedOpacify$1(.3,theme.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${curriedOpacify$1(.05,theme.appBorderColor)} 0 0 0 2px inset`,color:curriedOpacify$1(1,theme.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:theme.boolean.selectedBackground,boxShadow:theme.base==="light"?`${curriedOpacify$1(.1,theme.appBorderColor)} 0 0 2px`:`${theme.appBorderColor} 0 0 0 1px`,color:theme.color.defaultText,padding:"7px 15px"}})),parse=value2=>value2==="true",BooleanControl=({name,value:value2,onChange,onBlur,onFocus,argType})=>{let onSetFalse=(0,react.useCallback)(()=>onChange(!1),[onChange]),readonly=!!argType?.table?.readonly;if(value2===void 0)return react.createElement(components/* Button */.$n,{variant:"outline",size:"medium",id:(0,chunk_MKV36LKP/* getControlSetterButtonId */.Yq)(name),onClick:onSetFalse,disabled:readonly},"Set boolean");let controlId=(0,chunk_MKV36LKP/* getControlId */.ZA)(name),parsedValue=typeof value2=="string"?parse(value2):value2;return react.createElement(Label,{"aria-disabled":readonly,htmlFor:controlId,"aria-label":name},react.createElement("input",{id:controlId,type:"checkbox",onChange:e=>onChange(e.target.checked),checked:parsedValue,role:"switch",disabled:readonly,name,onBlur,onFocus}),react.createElement("span",{"aria-hidden":"true"},"False"),react.createElement("span",{"aria-hidden":"true"},"True"))};var parseDate=value2=>{let[year,month,day]=value2.split("-"),result=new Date;return result.setFullYear(parseInt(year,10),parseInt(month,10)-1,parseInt(day,10)),result},parseTime=value2=>{let[hours,minutes]=value2.split(":"),result=new Date;return result.setHours(parseInt(hours,10)),result.setMinutes(parseInt(minutes,10)),result},formatDate=value2=>{let date=new Date(value2),year=`000${date.getFullYear()}`.slice(-4),month=`0${date.getMonth()+1}`.slice(-2),day=`0${date.getDate()}`.slice(-2);return `${year}-${month}-${day}`},formatTime=value2=>{let date=new Date(value2),hours=`0${date.getHours()}`.slice(-2),minutes=`0${date.getMinutes()}`.slice(-2);return `${hours}:${minutes}`},FormInput=(0,theming/* styled */.I4)(components/* Form */.lV.Input)(({readOnly})=>({opacity:readOnly?.5:1})),FlexSpaced=theming/* styled */.I4.div(({theme})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:theme.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),DateControl=({name,value:value2,onChange,onFocus,onBlur,argType})=>{let[valid,setValid]=(0,react.useState)(!0),dateRef=(0,react.useRef)(),timeRef=(0,react.useRef)(),readonly=!!argType?.table?.readonly;(0,react.useEffect)(()=>{valid!==!1&&(dateRef&&dateRef.current&&(dateRef.current.value=value2?formatDate(value2):""),timeRef&&timeRef.current&&(timeRef.current.value=value2?formatTime(value2):""));},[value2]);let onDateChange=e=>{if(!e.target.value)return onChange();let parsed=parseDate(e.target.value),result=new Date(value2);result.setFullYear(parsed.getFullYear(),parsed.getMonth(),parsed.getDate());let time=result.getTime();time&&onChange(time),setValid(!!time);},onTimeChange=e=>{if(!e.target.value)return onChange();let parsed=parseTime(e.target.value),result=new Date(value2);result.setHours(parsed.getHours()),result.setMinutes(parsed.getMinutes());let time=result.getTime();time&&onChange(time),setValid(!!time);},controlId=(0,chunk_MKV36LKP/* getControlId */.ZA)(name);return react.createElement(FlexSpaced,null,react.createElement(FormInput,{type:"date",max:"9999-12-31",ref:dateRef,id:`${controlId}-date`,name:`${controlId}-date`,readOnly:readonly,onChange:onDateChange,onFocus,onBlur}),react.createElement(FormInput,{type:"time",id:`${controlId}-time`,name:`${controlId}-time`,ref:timeRef,onChange:onTimeChange,readOnly:readonly,onFocus,onBlur}),valid?null:react.createElement("div",null,"invalid"))};var Wrapper3=theming/* styled */.I4.label({display:"flex"}),parse2=value2=>{let result=parseFloat(value2);return Number.isNaN(result)?void 0:result},dist_format=value2=>value2!=null?String(value2):"",FormInput2=(0,theming/* styled */.I4)(components/* Form */.lV.Input)(({readOnly})=>({opacity:readOnly?.5:1})),NumberControl=({name,value:value2,onChange,min,max,step,onBlur,onFocus,argType})=>{let[inputValue,setInputValue]=(0,react.useState)(typeof value2=="number"?value2:""),[forceVisible,setForceVisible]=(0,react.useState)(!1),[parseError,setParseError]=(0,react.useState)(null),readonly=!!argType?.table?.readonly,handleChange=(0,react.useCallback)(event=>{setInputValue(event.target.value);let result=parseFloat(event.target.value);Number.isNaN(result)?setParseError(new Error(`'${event.target.value}' is not a number`)):(onChange(result),setParseError(null));},[onChange,setParseError]),onForceVisible=(0,react.useCallback)(()=>{setInputValue("0"),onChange(0),setForceVisible(!0);},[setForceVisible]),htmlElRef=(0,react.useRef)(null);return (0,react.useEffect)(()=>{forceVisible&&htmlElRef.current&&htmlElRef.current.select();},[forceVisible]),(0,react.useEffect)(()=>{inputValue!==(typeof value2=="number"?value2:"")&&setInputValue(value2);},[value2]),value2===void 0?react.createElement(components/* Button */.$n,{variant:"outline",size:"medium",id:(0,chunk_MKV36LKP/* getControlSetterButtonId */.Yq)(name),onClick:onForceVisible,disabled:readonly},"Set number"):react.createElement(Wrapper3,null,react.createElement(FormInput2,{ref:htmlElRef,id:(0,chunk_MKV36LKP/* getControlId */.ZA)(name),type:"number",onChange:handleChange,size:"flex",placeholder:"Edit number...",value:inputValue,valid:parseError?"error":null,autoFocus:forceVisible,readOnly:readonly,name,min,max,step,onFocus,onBlur}))};var selectedKey=(value2,options)=>{let entry=options&&Object.entries(options).find(([_key,val])=>val===value2);return entry?entry[0]:void 0},selectedKeys=(value2,options)=>value2&&options?Object.entries(options).filter(entry=>value2.includes(entry[1])).map(entry=>entry[0]):[],selectedValues=(keys,options)=>keys&&options&&keys.map(key=>options[key]);var Wrapper4=theming/* styled */.I4.div(({isInline})=>isInline?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},props=>{if(props["aria-readonly"]==="true")return {input:{cursor:"not-allowed"}}}),Text=theming/* styled */.I4.span({"[aria-readonly=true] &":{opacity:.5}}),Label2=theming/* styled */.I4.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),CheckboxControl=({name,options,value:value2,onChange,isInline,argType})=>{if(!options)return external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn(`Checkbox with no options: ${name}`),react.createElement(react.Fragment,null,"-");let initial=selectedKeys(value2,options),[selected,setSelected]=(0,react.useState)(initial),readonly=!!argType?.table?.readonly,handleChange=e=>{let option=e.target.value,updated=[...selected];updated.includes(option)?updated.splice(updated.indexOf(option),1):updated.push(option),onChange(selectedValues(updated,options)),setSelected(updated);};(0,react.useEffect)(()=>{setSelected(selectedKeys(value2,options));},[value2]);let controlId=(0,chunk_MKV36LKP/* getControlId */.ZA)(name);return react.createElement(Wrapper4,{"aria-readonly":readonly,isInline},Object.keys(options).map((key,index)=>{let id=`${controlId}-${index}`;return react.createElement(Label2,{key:id,htmlFor:id},react.createElement("input",{type:"checkbox",disabled:readonly,id,name:id,value:key,onChange:handleChange,checked:selected?.includes(key)}),react.createElement(Text,null,key))}))};var Wrapper5=theming/* styled */.I4.div(({isInline})=>isInline?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},props=>{if(props["aria-readonly"]==="true")return {input:{cursor:"not-allowed"}}}),Text2=theming/* styled */.I4.span({"[aria-readonly=true] &":{opacity:.5}}),Label3=theming/* styled */.I4.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),RadioControl=({name,options,value:value2,onChange,isInline,argType})=>{if(!options)return external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn(`Radio with no options: ${name}`),react.createElement(react.Fragment,null,"-");let selection=selectedKey(value2,options),controlId=(0,chunk_MKV36LKP/* getControlId */.ZA)(name),readonly=!!argType?.table?.readonly;return react.createElement(Wrapper5,{"aria-readonly":readonly,isInline},Object.keys(options).map((key,index)=>{let id=`${controlId}-${index}`;return react.createElement(Label3,{key:id,htmlFor:id},react.createElement("input",{type:"radio",id,name:controlId,disabled:readonly,value:key,onChange:e=>onChange(options[e.currentTarget.value]),checked:key===selection}),react.createElement(Text2,null,key))}))};var styleResets={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},OptionsSelect=theming/* styled */.I4.select(styleResets,({theme})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:theme.input.color||"inherit",background:theme.input.background,borderRadius:theme.input.borderRadius,boxShadow:`${theme.input.border} 0 0 0 1px inset`,fontSize:theme.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${theme.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:theme.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}})),SelectWrapper=theming/* styled */.I4.span(({theme})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:theme.textMutedColor,path:{fill:theme.textMutedColor}}})),NO_SELECTION="Choose option...",SingleSelect=({name,value:value2,options,onChange,argType})=>{let handleChange=e=>{onChange(options[e.currentTarget.value]);},selection=selectedKey(value2,options)||NO_SELECTION,controlId=(0,chunk_MKV36LKP/* getControlId */.ZA)(name),readonly=!!argType?.table?.readonly;return react.createElement(SelectWrapper,null,react.createElement(dist/* ChevronSmallDownIcon */.abt,null),react.createElement(OptionsSelect,{disabled:readonly,id:controlId,value:selection,onChange:handleChange},react.createElement("option",{key:"no-selection",disabled:!0},NO_SELECTION),Object.keys(options).map(key=>react.createElement("option",{key,value:key},key))))},MultiSelect=({name,value:value2,options,onChange,argType})=>{let handleChange=e=>{let selection2=Array.from(e.currentTarget.options).filter(option=>option.selected).map(option=>option.value);onChange(selectedValues(selection2,options));},selection=selectedKeys(value2,options),controlId=(0,chunk_MKV36LKP/* getControlId */.ZA)(name),readonly=!!argType?.table?.readonly;return react.createElement(SelectWrapper,null,react.createElement(OptionsSelect,{disabled:readonly,id:controlId,multiple:!0,value:selection,onChange:handleChange},Object.keys(options).map(key=>react.createElement("option",{key,value:key},key))))},SelectControl=props=>{let{name,options}=props;return options?props.isMulti?react.createElement(MultiSelect,{...props}):react.createElement(SingleSelect,{...props}):(external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn(`Select with no options: ${name}`),react.createElement(react.Fragment,null,"-"))};var normalizeOptions=(options,labels)=>Array.isArray(options)?options.reduce((acc,item)=>(acc[labels?.[item]||String(item)]=item,acc),{}):options,Controls={check:CheckboxControl,"inline-check":CheckboxControl,radio:RadioControl,"inline-radio":RadioControl,select:SelectControl,"multi-select":SelectControl},OptionsControl=props=>{let{type="select",labels,argType}=props,normalized={...props,argType,options:argType?normalizeOptions(argType.options,labels):{},isInline:type.includes("inline"),isMulti:type.includes("multi")},Control=Controls[type];if(Control)return react.createElement(Control,{...normalized});throw new Error(`Unknown options type: ${type}`)};var ERROR="Error",OBJECT="Object",ARRAY="Array",STRING="String",NUMBER="Number",BOOLEAN="Boolean",DATE="Date",NULL="Null",UNDEFINED="Undefined",FUNCTION="Function",SYMBOL="Symbol";var ADD_DELTA_TYPE="ADD_DELTA_TYPE",REMOVE_DELTA_TYPE="REMOVE_DELTA_TYPE",UPDATE_DELTA_TYPE="UPDATE_DELTA_TYPE";var VALUE="value",KEY="key";function getObjectType(obj){return obj!==null&&typeof obj=="object"&&!Array.isArray(obj)&&typeof obj[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(obj).slice(8,-1)}function isComponentWillChange(oldValue,newValue){let oldType=getObjectType(oldValue),newType=getObjectType(newValue);return (oldType==="Function"||newType==="Function")&&newType!==oldType}var JsonAddValue=class extends react.Component{constructor(props){super(props),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this);}componentDidMount(){let{inputRefKey,inputRefValue}=this.state,{onlyValue}=this.props;inputRefKey&&typeof inputRefKey.focus=="function"&&inputRefKey.focus(),onlyValue&&inputRefValue&&typeof inputRefValue.focus=="function"&&inputRefValue.focus(),document.addEventListener("keydown",this.onKeydown);}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown);}onKeydown(event){event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||((event.code==="Enter"||event.key==="Enter")&&(event.preventDefault(),this.onSubmit()),(event.code==="Escape"||event.key==="Escape")&&(event.preventDefault(),this.props.handleCancel()));}onSubmit(){let{handleAdd,onlyValue,onSubmitValueParser,keyPath,deep}=this.props,{inputRefKey,inputRefValue}=this.state,result={};if(!onlyValue){if(!inputRefKey.value)return;result.key=inputRefKey.value;}result.newValue=onSubmitValueParser(!1,keyPath,deep,result.key,inputRefValue.value),handleAdd(result);}refInputKey(node){this.state.inputRefKey=node;}refInputValue(node){this.state.inputRefValue=node;}render(){let{handleCancel,onlyValue,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep}=this.props,addButtonElementLayout=(0,react.cloneElement)(addButtonElement,{onClick:this.onSubmit}),cancelButtonElementLayout=(0,react.cloneElement)(cancelButtonElement,{onClick:handleCancel}),inputElementValue=inputElementGenerator(VALUE,keyPath,deep),inputElementValueLayout=(0,react.cloneElement)(inputElementValue,{placeholder:"Value",ref:this.refInputValue}),inputElementKeyLayout=null;if(!onlyValue){let inputElementKey=inputElementGenerator(KEY,keyPath,deep);inputElementKeyLayout=(0,react.cloneElement)(inputElementKey,{placeholder:"Key",ref:this.refInputKey});}return react.createElement("span",{className:"rejt-add-value-node"},inputElementKeyLayout,inputElementValueLayout,cancelButtonElementLayout,addButtonElementLayout)}};JsonAddValue.defaultProps={onlyValue:!1,addButtonElement:react.createElement("button",null,"+"),cancelButtonElement:react.createElement("button",null,"c")};var JsonArray=class extends react.Component{constructor(props){super(props);let keyPath=[...props.keyPath,props.name];this.state={data:props.data,name:props.name,keyPath,deep:props.deep,nextDeep:props.deep+1,collapsed:props.isCollapsed(keyPath,props.deep,props.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this);}static getDerivedStateFromProps(props,state){return props.data!==state.data?{data:props.data}:null}onChildUpdate(childKey,childData){let{data,keyPath}=this.state;data[childKey]=childData,this.setState({data});let{onUpdate}=this.props,size=keyPath.length;onUpdate(keyPath[size-1],data);}handleAddMode(){this.setState({addFormVisible:!0});}handleCollapseMode(){this.setState(state=>({collapsed:!state.collapsed}));}handleRemoveItem(index){return ()=>{let{beforeRemoveAction,logger:logger4}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[index];beforeRemoveAction(index,keyPath,deep,oldValue).then(()=>{let deltaUpdateResult={keyPath,deep,key:index,oldValue,type:REMOVE_DELTA_TYPE};data.splice(index,1),this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate(deltaUpdateResult);}).catch(logger4.error);}}handleAddValueAdd({newValue}){let{data,keyPath,nextDeep:deep}=this.state,{beforeAddAction,logger:logger4}=this.props;beforeAddAction(data.length,keyPath,deep,newValue).then(()=>{let newData=[...data,newValue];this.setState({data:newData}),this.handleAddValueCancel();let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],newData),onDeltaUpdate({type:ADD_DELTA_TYPE,keyPath,deep,key:newData.length-1,newValue});}).catch(logger4.error);}handleAddValueCancel(){this.setState({addFormVisible:!1});}handleEditValue({key,value:value2}){return new Promise((resolve,reject)=>{let{beforeUpdateAction}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[key];beforeUpdateAction(key,keyPath,deep,oldValue,value2).then(()=>{data[key]=value2,this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:UPDATE_DELTA_TYPE,keyPath,deep,key,newValue:value2,oldValue}),resolve(void 0);}).catch(reject);})}renderCollapsed(){let{name,data,keyPath,deep}=this.state,{handleRemove,readOnly,getStyle,dataType,minusMenuElement}=this.props,{minus,collapsed}=getStyle(name,data,keyPath,deep,dataType),isReadOnly=readOnly(name,data,keyPath,deep,dataType),removeItemButton=(0,react.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:minus});return react.createElement("span",{className:"rejt-collapsed"},react.createElement("span",{className:"rejt-collapsed-text",style:collapsed,onClick:this.handleCollapseMode},"[...] ",data.length," ",data.length===1?"item":"items"),!isReadOnly&&removeItemButton)}renderNotCollapsed(){let{name,data,keyPath,deep,addFormVisible,nextDeep}=this.state,{isCollapsed,handleRemove,onDeltaUpdate,readOnly,getStyle,dataType,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,{minus,plus,delimiter,ul,addForm}=getStyle(name,data,keyPath,deep,dataType),isReadOnly=readOnly(name,data,keyPath,deep,dataType),addItemButton=(0,react.cloneElement)(plusMenuElement,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:plus}),removeItemButton=(0,react.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:minus});return react.createElement("span",{className:"rejt-not-collapsed"},react.createElement("span",{className:"rejt-not-collapsed-delimiter",style:delimiter},"["),!addFormVisible&&addItemButton,react.createElement("ul",{className:"rejt-not-collapsed-list",style:ul},data.map((item,index)=>react.createElement(JsonNode,{key:index,name:index.toString(),data:item,keyPath,deep:nextDeep,isCollapsed,handleRemove:this.handleRemoveItem(index),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}))),!isReadOnly&&addFormVisible&&react.createElement("div",{className:"rejt-add-form",style:addForm},react.createElement(JsonAddValue,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep,onSubmitValueParser})),react.createElement("span",{className:"rejt-not-collapsed-delimiter",style:delimiter},"]"),!isReadOnly&&removeItemButton)}render(){let{name,collapsed,data,keyPath,deep}=this.state,{dataType,getStyle}=this.props,value2=collapsed?this.renderCollapsed():this.renderNotCollapsed(),style=getStyle(name,data,keyPath,deep,dataType);return react.createElement("div",{className:"rejt-array-node"},react.createElement("span",{onClick:this.handleCollapseMode},react.createElement("span",{className:"rejt-name",style:style.name},name," :"," ")),value2)}};JsonArray.defaultProps={keyPath:[],deep:0,minusMenuElement:react.createElement("span",null," - "),plusMenuElement:react.createElement("span",null," + ")};var JsonFunctionValue=class extends react.Component{constructor(props){super(props);let keyPath=[...props.keyPath,props.name];this.state={value:props.value,name:props.name,keyPath,deep:props.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this);}static getDerivedStateFromProps(props,state){return props.value!==state.value?{value:props.value}:null}componentDidUpdate(){let{editEnabled,inputRef,name,value:value2,keyPath,deep}=this.state,{readOnly,dataType}=this.props,readOnlyResult=readOnly(name,value2,keyPath,deep,dataType);editEnabled&&!readOnlyResult&&typeof inputRef.focus=="function"&&inputRef.focus();}componentDidMount(){document.addEventListener("keydown",this.onKeydown);}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown);}onKeydown(event){event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||((event.code==="Enter"||event.key==="Enter")&&(event.preventDefault(),this.handleEdit()),(event.code==="Escape"||event.key==="Escape")&&(event.preventDefault(),this.handleCancelEdit()));}handleEdit(){let{handleUpdateValue,originalValue,logger:logger4,onSubmitValueParser,keyPath}=this.props,{inputRef,name,deep}=this.state;if(!inputRef)return;let newValue=onSubmitValueParser(!0,keyPath,deep,name,inputRef.value);handleUpdateValue({value:newValue,key:name}).then(()=>{isComponentWillChange(originalValue,newValue)||this.handleCancelEdit();}).catch(logger4.error);}handleEditMode(){this.setState({editEnabled:!0});}refInput(node){this.state.inputRef=node;}handleCancelEdit(){this.setState({editEnabled:!1});}render(){let{name,value:value2,editEnabled,keyPath,deep}=this.state,{handleRemove,originalValue,readOnly,dataType,getStyle,editButtonElement,cancelButtonElement,textareaElementGenerator,minusMenuElement,keyPath:comeFromKeyPath}=this.props,style=getStyle(name,originalValue,keyPath,deep,dataType),result=null,minusElement=null,resultOnlyResult=readOnly(name,originalValue,keyPath,deep,dataType);if(editEnabled&&!resultOnlyResult){let textareaElement=textareaElementGenerator(VALUE,comeFromKeyPath,deep,name,originalValue,dataType),editButtonElementLayout=(0,react.cloneElement)(editButtonElement,{onClick:this.handleEdit}),cancelButtonElementLayout=(0,react.cloneElement)(cancelButtonElement,{onClick:this.handleCancelEdit}),textareaElementLayout=(0,react.cloneElement)(textareaElement,{ref:this.refInput,defaultValue:originalValue});result=react.createElement("span",{className:"rejt-edit-form",style:style.editForm},textareaElementLayout," ",cancelButtonElementLayout,editButtonElementLayout),minusElement=null;}else {result=react.createElement("span",{className:"rejt-value",style:style.value,onClick:resultOnlyResult?null:this.handleEditMode},value2);let minusMenuLayout=(0,react.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:style.minus});minusElement=resultOnlyResult?null:minusMenuLayout;}return react.createElement("li",{className:"rejt-function-value-node",style:style.li},react.createElement("span",{className:"rejt-name",style:style.name},name," :"," "),result,minusElement)}};JsonFunctionValue.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:react.createElement("button",null,"e"),cancelButtonElement:react.createElement("button",null,"c"),minusMenuElement:react.createElement("span",null," - ")};var JsonNode=class extends react.Component{constructor(props){super(props),this.state={data:props.data,name:props.name,keyPath:props.keyPath,deep:props.deep};}static getDerivedStateFromProps(props,state){return props.data!==state.data?{data:props.data}:null}render(){let{data,name,keyPath,deep}=this.state,{isCollapsed,handleRemove,handleUpdateValue,onUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,readOnlyTrue=()=>!0,dataType=getObjectType(data);switch(dataType){case ERROR:return react.createElement(JsonObject,{data,name,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly:readOnlyTrue,dataType,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case OBJECT:return react.createElement(JsonObject,{data,name,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly,dataType,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case ARRAY:return react.createElement(JsonArray,{data,name,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly,dataType,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case STRING:return react.createElement(JsonValue,{name,value:`"${data}"`,originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case NUMBER:return react.createElement(JsonValue,{name,value:data,originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case BOOLEAN:return react.createElement(JsonValue,{name,value:data?"true":"false",originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case DATE:return react.createElement(JsonValue,{name,value:data.toISOString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly:readOnlyTrue,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case NULL:return react.createElement(JsonValue,{name,value:"null",originalValue:"null",keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case UNDEFINED:return react.createElement(JsonValue,{name,value:"undefined",originalValue:"undefined",keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case FUNCTION:return react.createElement(JsonFunctionValue,{name,value:data.toString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,textareaElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case SYMBOL:return react.createElement(JsonValue,{name,value:data.toString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly:readOnlyTrue,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});default:return null}}};JsonNode.defaultProps={keyPath:[],deep:0};var JsonObject=class extends react.Component{constructor(props){super(props);let keyPath=props.deep===-1?[]:[...props.keyPath,props.name];this.state={name:props.name,data:props.data,keyPath,deep:props.deep,nextDeep:props.deep+1,collapsed:props.isCollapsed(keyPath,props.deep,props.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this);}static getDerivedStateFromProps(props,state){return props.data!==state.data?{data:props.data}:null}onChildUpdate(childKey,childData){let{data,keyPath}=this.state;data[childKey]=childData,this.setState({data});let{onUpdate}=this.props,size=keyPath.length;onUpdate(keyPath[size-1],data);}handleAddMode(){this.setState({addFormVisible:!0});}handleAddValueCancel(){this.setState({addFormVisible:!1});}handleAddValueAdd({key,newValue}){let{data,keyPath,nextDeep:deep}=this.state,{beforeAddAction,logger:logger4}=this.props;beforeAddAction(key,keyPath,deep,newValue).then(()=>{data[key]=newValue,this.setState({data}),this.handleAddValueCancel();let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:ADD_DELTA_TYPE,keyPath,deep,key,newValue});}).catch(logger4.error);}handleRemoveValue(key){return ()=>{let{beforeRemoveAction,logger:logger4}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[key];beforeRemoveAction(key,keyPath,deep,oldValue).then(()=>{let deltaUpdateResult={keyPath,deep,key,oldValue,type:REMOVE_DELTA_TYPE};delete data[key],this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate(deltaUpdateResult);}).catch(logger4.error);}}handleCollapseMode(){this.setState(state=>({collapsed:!state.collapsed}));}handleEditValue({key,value:value2}){return new Promise((resolve,reject)=>{let{beforeUpdateAction}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[key];beforeUpdateAction(key,keyPath,deep,oldValue,value2).then(()=>{data[key]=value2,this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:UPDATE_DELTA_TYPE,keyPath,deep,key,newValue:value2,oldValue}),resolve();}).catch(reject);})}renderCollapsed(){let{name,keyPath,deep,data}=this.state,{handleRemove,readOnly,dataType,getStyle,minusMenuElement}=this.props,{minus,collapsed}=getStyle(name,data,keyPath,deep,dataType),keyList=Object.getOwnPropertyNames(data),isReadOnly=readOnly(name,data,keyPath,deep,dataType),removeItemButton=(0,react.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:minus});return react.createElement("span",{className:"rejt-collapsed"},react.createElement("span",{className:"rejt-collapsed-text",style:collapsed,onClick:this.handleCollapseMode},"{...}"," ",keyList.length," ",keyList.length===1?"key":"keys"),!isReadOnly&&removeItemButton)}renderNotCollapsed(){let{name,data,keyPath,deep,nextDeep,addFormVisible}=this.state,{isCollapsed,handleRemove,onDeltaUpdate,readOnly,getStyle,dataType,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,{minus,plus,addForm,ul,delimiter}=getStyle(name,data,keyPath,deep,dataType),keyList=Object.getOwnPropertyNames(data),isReadOnly=readOnly(name,data,keyPath,deep,dataType),addItemButton=(0,react.cloneElement)(plusMenuElement,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:plus}),removeItemButton=(0,react.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:minus}),list=keyList.map(key=>react.createElement(JsonNode,{key,name:key,data:data[key],keyPath,deep:nextDeep,isCollapsed,handleRemove:this.handleRemoveValue(key),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}));return react.createElement("span",{className:"rejt-not-collapsed"},react.createElement("span",{className:"rejt-not-collapsed-delimiter",style:delimiter},"{"),!isReadOnly&&addItemButton,react.createElement("ul",{className:"rejt-not-collapsed-list",style:ul},list),!isReadOnly&&addFormVisible&&react.createElement("div",{className:"rejt-add-form",style:addForm},react.createElement(JsonAddValue,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep,onSubmitValueParser})),react.createElement("span",{className:"rejt-not-collapsed-delimiter",style:delimiter},"}"),!isReadOnly&&removeItemButton)}render(){let{name,collapsed,data,keyPath,deep}=this.state,{getStyle,dataType}=this.props,value2=collapsed?this.renderCollapsed():this.renderNotCollapsed(),style=getStyle(name,data,keyPath,deep,dataType);return react.createElement("div",{className:"rejt-object-node"},react.createElement("span",{onClick:this.handleCollapseMode},react.createElement("span",{className:"rejt-name",style:style.name},name," :"," ")),value2)}};JsonObject.defaultProps={keyPath:[],deep:0,minusMenuElement:react.createElement("span",null," - "),plusMenuElement:react.createElement("span",null," + ")};var JsonValue=class extends react.Component{constructor(props){super(props);let keyPath=[...props.keyPath,props.name];this.state={value:props.value,name:props.name,keyPath,deep:props.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this);}static getDerivedStateFromProps(props,state){return props.value!==state.value?{value:props.value}:null}componentDidUpdate(){let{editEnabled,inputRef,name,value:value2,keyPath,deep}=this.state,{readOnly,dataType}=this.props,isReadOnly=readOnly(name,value2,keyPath,deep,dataType);editEnabled&&!isReadOnly&&typeof inputRef.focus=="function"&&inputRef.focus();}componentDidMount(){document.addEventListener("keydown",this.onKeydown);}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown);}onKeydown(event){event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||((event.code==="Enter"||event.key==="Enter")&&(event.preventDefault(),this.handleEdit()),(event.code==="Escape"||event.key==="Escape")&&(event.preventDefault(),this.handleCancelEdit()));}handleEdit(){let{handleUpdateValue,originalValue,logger:logger4,onSubmitValueParser,keyPath}=this.props,{inputRef,name,deep}=this.state;if(!inputRef)return;let newValue=onSubmitValueParser(!0,keyPath,deep,name,inputRef.value);handleUpdateValue({value:newValue,key:name}).then(()=>{isComponentWillChange(originalValue,newValue)||this.handleCancelEdit();}).catch(logger4.error);}handleEditMode(){this.setState({editEnabled:!0});}refInput(node){this.state.inputRef=node;}handleCancelEdit(){this.setState({editEnabled:!1});}render(){let{name,value:value2,editEnabled,keyPath,deep}=this.state,{handleRemove,originalValue,readOnly,dataType,getStyle,editButtonElement,cancelButtonElement,inputElementGenerator,minusMenuElement,keyPath:comeFromKeyPath}=this.props,style=getStyle(name,originalValue,keyPath,deep,dataType),isReadOnly=readOnly(name,originalValue,keyPath,deep,dataType),isEditing=editEnabled&&!isReadOnly,inputElement=inputElementGenerator(VALUE,comeFromKeyPath,deep,name,originalValue,dataType),editButtonElementLayout=(0,react.cloneElement)(editButtonElement,{onClick:this.handleEdit}),cancelButtonElementLayout=(0,react.cloneElement)(cancelButtonElement,{onClick:this.handleCancelEdit}),inputElementLayout=(0,react.cloneElement)(inputElement,{ref:this.refInput,defaultValue:JSON.stringify(originalValue)}),minusMenuLayout=(0,react.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:style.minus});return react.createElement("li",{className:"rejt-value-node",style:style.li},react.createElement("span",{className:"rejt-name",style:style.name},name," : "),isEditing?react.createElement("span",{className:"rejt-edit-form",style:style.editForm},inputElementLayout," ",cancelButtonElementLayout,editButtonElementLayout):react.createElement("span",{className:"rejt-value",style:style.value,onClick:isReadOnly?null:this.handleEditMode},String(value2)),!isReadOnly&&!isEditing&&minusMenuLayout)}};JsonValue.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:react.createElement("button",null,"e"),cancelButtonElement:react.createElement("button",null,"c"),minusMenuElement:react.createElement("span",null," - ")};function parse3(string){let result=string;if(result.indexOf("function")===0)return (0, eval)(`(${result})`);try{result=JSON.parse(string);}catch{}return result}var object={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},array={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},value={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}};var JsonTree=class extends react.Component{constructor(props){super(props),this.state={data:props.data,rootName:props.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this);}static getDerivedStateFromProps(props,state){return props.data!==state.data||props.rootName!==state.rootName?{data:props.data,rootName:props.rootName}:null}onUpdate(key,data){this.setState({data}),this.props.onFullyUpdate(data);}removeRoot(){this.onUpdate(null,null);}render(){let{data,rootName}=this.state,{isCollapsed,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElement,textareaElement,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser,fallback=null}=this.props,dataType=getObjectType(data),readOnlyFunction=readOnly;getObjectType(readOnly)==="Boolean"&&(readOnlyFunction=()=>readOnly);let inputElementFunction=inputElement;inputElement&&getObjectType(inputElement)!=="Function"&&(inputElementFunction=()=>inputElement);let textareaElementFunction=textareaElement;return textareaElement&&getObjectType(textareaElement)!=="Function"&&(textareaElementFunction=()=>textareaElement),dataType==="Object"||dataType==="Array"?react.createElement("div",{className:"rejt-tree"},react.createElement(JsonNode,{data,name:rootName,deep:-1,isCollapsed,onUpdate:this.onUpdate,onDeltaUpdate,readOnly:readOnlyFunction,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator:inputElementFunction,textareaElementGenerator:textareaElementFunction,minusMenuElement,plusMenuElement,handleRemove:this.removeRoot,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser})):fallback}};JsonTree.defaultProps={rootName:"root",isCollapsed:(keyPath,deep)=>deep!==-1,getStyle:(keyName,data,keyPath,deep,dataType)=>{switch(dataType){case"Object":case"Error":return object;case"Array":return array;default:return value}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(isEditMode,keyPath,deep,name,rawValue)=>parse3(rawValue),inputElement:()=>react.createElement("input",null),textareaElement:()=>react.createElement("textarea",null),fallback:null};var {window:globalWindow2}=external_STORYBOOK_MODULE_GLOBAL_.global,Wrapper6=theming/* styled */.I4.div(({theme})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:theme.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:theme.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:theme.color.lighter,borderColor:theme.appBorderColor}})),ButtonInline=theming/* styled */.I4.button(({theme,primary})=>({border:0,height:20,margin:1,borderRadius:4,background:primary?theme.color.secondary:"transparent",color:primary?theme.color.lightest:theme.color.dark,fontWeight:primary?"bold":"normal",cursor:"pointer",order:primary?"initial":9})),ActionAddIcon=(0,theming/* styled */.I4)(dist/* AddIcon */.REV)(({theme,disabled})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:disabled?"not-allowed":"pointer",color:theme.textMutedColor,"&:hover":disabled?{}:{color:theme.color.ancillary},"svg + &":{marginLeft:0}})),ActionSubstractIcon=(0,theming/* styled */.I4)(dist/* SubtractIcon */.Qpb)(({theme,disabled})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:disabled?"not-allowed":"pointer",color:theme.textMutedColor,"&:hover":disabled?{}:{color:theme.color.negative},"svg + &":{marginLeft:0}})),Input=theming/* styled */.I4.input(({theme,placeholder})=>({outline:0,margin:placeholder?1:"1px 0",padding:"3px 4px",color:theme.color.defaultText,background:theme.background.app,border:`1px solid ${theme.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:placeholder==="Key"?80:120,"&:focus":{border:`1px solid ${theme.color.secondary}`}})),RawButton=(0,theming/* styled */.I4)(components/* IconButton */.K0)(({theme})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:theme.background.bar,border:`1px solid ${theme.appBorderColor}`,borderRadius:3,color:theme.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),RawInput=(0,theming/* styled */.I4)(components/* Form */.lV.Textarea)(({theme})=>({flex:1,padding:"7px 6px",fontFamily:theme.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:theme.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),ENTER_EVENT={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},dispatchEnterKey=event=>{event.currentTarget.dispatchEvent(new globalWindow2.KeyboardEvent("keydown",ENTER_EVENT));},selectValue=event=>{event.currentTarget.select();},getCustomStyleFunction=theme=>()=>({name:{color:theme.color.secondary},collapsed:{color:theme.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),ObjectControl=({name,value:value2,onChange,argType})=>{let theme=(0,theming/* useTheme */.DP)(),data=(0,react.useMemo)(()=>value2&&cloneDeep_default()(value2),[value2]),hasData=data!=null,[showRaw,setShowRaw]=(0,react.useState)(!hasData),[parseError,setParseError]=(0,react.useState)(null),readonly=!!argType?.table?.readonly,updateRaw=(0,react.useCallback)(raw=>{try{raw&&onChange(JSON.parse(raw)),setParseError(void 0);}catch(e){setParseError(e);}},[onChange]),[forceVisible,setForceVisible]=(0,react.useState)(!1),onForceVisible=(0,react.useCallback)(()=>{onChange({}),setForceVisible(!0);},[setForceVisible]),htmlElRef=(0,react.useRef)(null);if((0,react.useEffect)(()=>{forceVisible&&htmlElRef.current&&htmlElRef.current.select();},[forceVisible]),!hasData)return react.createElement(components/* Button */.$n,{disabled:readonly,id:(0,chunk_MKV36LKP/* getControlSetterButtonId */.Yq)(name),onClick:onForceVisible},"Set object");let rawJSONForm=react.createElement(RawInput,{ref:htmlElRef,id:(0,chunk_MKV36LKP/* getControlId */.ZA)(name),name,defaultValue:value2===null?"":JSON.stringify(value2,null,2),onBlur:event=>updateRaw(event.target.value),placeholder:"Edit JSON string...",autoFocus:forceVisible,valid:parseError?"error":null,readOnly:readonly}),isObjectOrArray=Array.isArray(value2)||typeof value2=="object"&&value2?.constructor===Object;return react.createElement(Wrapper6,{"aria-readonly":readonly},isObjectOrArray&&react.createElement(RawButton,{onClick:e=>{e.preventDefault(),setShowRaw(v=>!v);}},showRaw?react.createElement(dist/* EyeCloseIcon */.dbI,null):react.createElement(dist/* EyeIcon */.bMW,null),react.createElement("span",null,"RAW")),showRaw?rawJSONForm:react.createElement(JsonTree,{readOnly:readonly||!isObjectOrArray,isCollapsed:isObjectOrArray?void 0:()=>!0,data,rootName:name,onFullyUpdate:onChange,getStyle:getCustomStyleFunction(theme),cancelButtonElement:react.createElement(ButtonInline,{type:"button"},"Cancel"),editButtonElement:react.createElement(ButtonInline,{type:"submit"},"Save"),addButtonElement:react.createElement(ButtonInline,{type:"submit",primary:!0},"Save"),plusMenuElement:react.createElement(ActionAddIcon,null),minusMenuElement:react.createElement(ActionSubstractIcon,null),inputElement:(_,__,___,key)=>key?react.createElement(Input,{onFocus:selectValue,onBlur:dispatchEnterKey}):react.createElement(Input,null),fallback:rawJSONForm}))};var RangeInput=theming/* styled */.I4.input(({theme,min,max,value:value2,disabled})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:theme.base==="light"?`linear-gradient(to right, + ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, + ${curriedDarken$1(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, + ${curriedDarken$1(.02,theme.input.background)} 100%)`:`linear-gradient(to right, + ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, + ${curriedLighten$1(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, + ${curriedLighten$1(.02,theme.input.background)} 100%)`,boxShadow:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:disabled?"not-allowed":"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${rgba(theme.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${rgba(theme.appBorderColor,.2)}`,cursor:disabled?"not-allowed":"grab",appearance:"none",background:`${theme.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${curriedDarken$1(.05,theme.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${theme.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:disabled?"not-allowed":"grab"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:rgba(theme.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:theme.color.secondary,boxShadow:`0 0px 5px 0px ${theme.color.secondary}`}},"&::-moz-range-track":{background:theme.base==="light"?`linear-gradient(to right, + ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, + ${curriedDarken$1(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, + ${curriedDarken$1(.02,theme.input.background)} 100%)`:`linear-gradient(to right, + ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, + ${curriedLighten$1(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, + ${curriedLighten$1(.02,theme.input.background)} 100%)`,boxShadow:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:disabled?"not-allowed":"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${rgba(theme.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${rgba(theme.appBorderColor,.2)}`,cursor:disabled?"not-allowed":"grap",background:`${theme.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${curriedDarken$1(.05,theme.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${theme.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:theme.base==="light"?`linear-gradient(to right, + ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, + ${curriedDarken$1(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, + ${curriedDarken$1(.02,theme.input.background)} 100%)`:`linear-gradient(to right, + ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, + ${curriedLighten$1(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, + ${curriedLighten$1(.02,theme.input.background)} 100%)`,boxShadow:`${theme.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${theme.input.background}`,border:`1px solid ${rgba(theme.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),RangeLabel=theming/* styled */.I4.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),RangeCurrentAndMaxLabel=(0,theming/* styled */.I4)(RangeLabel)(({numberOFDecimalsPlaces,max})=>({width:`${numberOFDecimalsPlaces+max.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),RangeWrapper=theming/* styled */.I4.div({display:"flex",alignItems:"center",width:"100%"});function getNumberOfDecimalPlaces(number){let match=number.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return match?Math.max(0,(match[1]?match[1].length:0)-(match[2]?+match[2]:0)):0}var RangeControl=({name,value:value2,onChange,min=0,max=100,step=1,onBlur,onFocus,argType})=>{let handleChange=event=>{onChange(parse2(event.target.value));},hasValue=value2!==void 0,numberOFDecimalsPlaces=(0,react.useMemo)(()=>getNumberOfDecimalPlaces(step),[step]),readonly=!!argType?.table?.readonly;return react.createElement(RangeWrapper,{"aria-readonly":readonly},react.createElement(RangeLabel,null,min),react.createElement(RangeInput,{id:(0,chunk_MKV36LKP/* getControlId */.ZA)(name),type:"range",disabled:readonly,onChange:handleChange,name,value:value2,min,max,step,onFocus,onBlur}),react.createElement(RangeCurrentAndMaxLabel,{numberOFDecimalsPlaces,max},hasValue?value2.toFixed(numberOFDecimalsPlaces):"--"," / ",max))};var Wrapper7=theming/* styled */.I4.label({display:"flex"}),MaxLength=theming/* styled */.I4.div(({isMaxed})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:isMaxed?"red":void 0})),TextControl=({name,value:value2,onChange,onFocus,onBlur,maxLength,argType})=>{let handleChange=event=>{onChange(event.target.value);},readonly=!!argType?.table?.readonly,[forceVisible,setForceVisible]=(0,react.useState)(!1),onForceVisible=(0,react.useCallback)(()=>{onChange(""),setForceVisible(!0);},[setForceVisible]);if(value2===void 0)return react.createElement(components/* Button */.$n,{variant:"outline",size:"medium",disabled:readonly,id:(0,chunk_MKV36LKP/* getControlSetterButtonId */.Yq)(name),onClick:onForceVisible},"Set string");let isValid=typeof value2=="string";return react.createElement(Wrapper7,null,react.createElement(components/* Form */.lV.Textarea,{id:(0,chunk_MKV36LKP/* getControlId */.ZA)(name),maxLength,onChange:handleChange,disabled:readonly,size:"flex",placeholder:"Edit string...",autoFocus:forceVisible,valid:isValid?null:"error",name,value:isValid?value2:"",onFocus,onBlur}),maxLength&&react.createElement(MaxLength,{isMaxed:value2?.length===maxLength},value2?.length??0," / ",maxLength))};var FileInput=(0,theming/* styled */.I4)(components/* Form */.lV.Input)({padding:10});function revokeOldUrls(urls){urls.forEach(url=>{url.startsWith("blob:")&&URL.revokeObjectURL(url);});}var FilesControl=({onChange,name,accept="image/*",value:value2,argType})=>{let inputElement=(0,react.useRef)(null),readonly=argType?.control?.readOnly;function handleFileChange(e){if(!e.target.files)return;let fileUrls=Array.from(e.target.files).map(file=>URL.createObjectURL(file));onChange(fileUrls),revokeOldUrls(value2);}return (0,react.useEffect)(()=>{value2==null&&inputElement.current&&(inputElement.current.value=null);},[value2,name]),react.createElement(FileInput,{ref:inputElement,id:(0,chunk_MKV36LKP/* getControlId */.ZA)(name),type:"file",name,multiple:!0,disabled:readonly,onChange:handleFileChange,accept,size:"flex"})};var LazyColorControl=(0,react.lazy)(()=>__webpack_require__.e(/* import() */ 6216).then(__webpack_require__.bind(__webpack_require__, "../../../node_modules/@storybook/blocks/dist/Color-ERTF36HU.mjs"))),ColorControl=props=>react.createElement(react.Suspense,{fallback:react.createElement("div",null)},react.createElement(LazyColorControl,{...props}));var Controls2={array:ObjectControl,object:ObjectControl,boolean:BooleanControl,color:ColorControl,date:DateControl,number:NumberControl,check:OptionsControl,"inline-check":OptionsControl,radio:OptionsControl,"inline-radio":OptionsControl,select:OptionsControl,"multi-select":OptionsControl,range:RangeControl,text:TextControl,file:FilesControl},NoControl=()=>react.createElement(react.Fragment,null,"-"),ArgControl=({row,arg,updateArgs,isHovered})=>{let{key,control}=row,[isFocused,setFocused]=(0,react.useState)(!1),[boxedValue,setBoxedValue]=(0,react.useState)({value:arg});(0,react.useEffect)(()=>{isFocused||setBoxedValue({value:arg});},[isFocused,arg]);let onChange=(0,react.useCallback)(argVal=>(setBoxedValue({value:argVal}),updateArgs({[key]:argVal}),argVal),[updateArgs,key]),onBlur=(0,react.useCallback)(()=>setFocused(!1),[]),onFocus=(0,react.useCallback)(()=>setFocused(!0),[]);if(!control||control.disable){let canBeSetup=control?.disable!==!0&&row?.type?.name!=="function";return isHovered&&canBeSetup?react.createElement(components/* Link */.N_,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):react.createElement(NoControl,null)}let props={name:key,argType:row,value:boxedValue.value,onChange,onBlur,onFocus},Control=Controls2[control.type]||NoControl;return react.createElement(Control,{...props,...control,controlType:control.type})};var Table=theming/* styled */.I4.table(({theme})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:(0,components/* codeCommon */.zb)({theme}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:theme.typography.size.s1}}})),ArgJsDoc=({tags})=>{let params=(tags.params||[]).filter(x=>x.description),hasDisplayableParams=params.length!==0,hasDisplayableDeprecated=tags.deprecated!=null,hasDisplayableReturns=tags.returns!=null&&tags.returns.description!=null;return !hasDisplayableParams&&!hasDisplayableReturns&&!hasDisplayableDeprecated?null:react.createElement(react.Fragment,null,react.createElement(Table,null,react.createElement("tbody",null,hasDisplayableDeprecated&&react.createElement("tr",{key:"deprecated"},react.createElement("td",{colSpan:2},react.createElement("strong",null,"Deprecated"),": ",tags.deprecated.toString())),hasDisplayableParams&¶ms.map(x=>react.createElement("tr",{key:x.name},react.createElement("td",null,react.createElement("code",null,x.name)),react.createElement("td",null,x.description))),hasDisplayableReturns&&react.createElement("tr",{key:"returns"},react.createElement("td",null,react.createElement("code",null,"Returns")),react.createElement("td",null,tags.returns.description)))))};var ITEMS_BEFORE_EXPANSION=8,Summary=theming/* styled */.I4.div(({isExpanded})=>({display:"flex",flexDirection:isExpanded?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),Text3=theming/* styled */.I4.span(components/* codeCommon */.zb,({theme,simple=!1})=>({flex:"0 0 auto",fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...simple&&{background:"transparent",border:"0 none",paddingLeft:0}})),ExpandButton=theming/* styled */.I4.button(({theme})=>({fontFamily:theme.typography.fonts.mono,color:theme.color.secondary,marginBottom:"4px",background:"none",border:"none"})),Expandable=theming/* styled */.I4.div(components/* codeCommon */.zb,({theme})=>({fontFamily:theme.typography.fonts.mono,color:theme.color.secondary,fontSize:theme.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),Detail=theming/* styled */.I4.div(({theme,width})=>({width,minWidth:200,maxWidth:800,padding:15,fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),ChevronUpIcon=(0,theming/* styled */.I4)(dist/* ChevronSmallUpIcon */.tN5)({marginLeft:4}),ChevronDownIcon=(0,theming/* styled */.I4)(dist/* ChevronSmallDownIcon */.abt)({marginLeft:4}),EmptyArg=()=>react.createElement("span",null,"-"),ArgText=({text,simple})=>react.createElement(Text3,{simple},text),calculateDetailWidth=memoizerific_default()(1e3)(detail=>{let lines=detail.split(/\r?\n/);return `${Math.max(...lines.map(x=>x.length))}ch`}),getSummaryItems=summary=>{if(!summary)return [summary];let summaryItems=summary.split("|").map(value2=>value2.trim());return uniq_default()(summaryItems)},renderSummaryItems=(summaryItems,isExpanded=!0)=>{let items=summaryItems;return isExpanded||(items=summaryItems.slice(0,ITEMS_BEFORE_EXPANSION)),items.map(item=>react.createElement(ArgText,{key:item,text:item===""?'""':item}))},ArgSummary=({value:value2,initialExpandedArgs})=>{let{summary,detail}=value2,[isOpen,setIsOpen]=(0,react.useState)(!1),[isExpanded,setIsExpanded]=(0,react.useState)(initialExpandedArgs||!1);if(summary==null)return null;let summaryAsString=typeof summary.toString=="function"?summary.toString():summary;if(detail==null){if(/[(){}[\]<>]/.test(summaryAsString))return react.createElement(ArgText,{text:summaryAsString});let summaryItems=getSummaryItems(summaryAsString),itemsCount=summaryItems.length;return itemsCount>ITEMS_BEFORE_EXPANSION?react.createElement(Summary,{isExpanded},renderSummaryItems(summaryItems,isExpanded),react.createElement(ExpandButton,{onClick:()=>setIsExpanded(!isExpanded)},isExpanded?"Show less...":`Show ${itemsCount-ITEMS_BEFORE_EXPANSION} more...`)):react.createElement(Summary,null,renderSummaryItems(summaryItems))}return react.createElement(components/* WithTooltipPure */.o4,{closeOnOutsideClick:!0,placement:"bottom",visible:isOpen,onVisibleChange:isVisible=>{setIsOpen(isVisible);},tooltip:react.createElement(Detail,{width:calculateDetailWidth(detail)},react.createElement(components/* SyntaxHighlighter */.bF,{language:"jsx",format:!1},detail))},react.createElement(Expandable,{className:"sbdocs-expandable"},react.createElement("span",null,summaryAsString),isOpen?react.createElement(ChevronUpIcon,null):react.createElement(ChevronDownIcon,null)))},ArgValue=({value:value2,initialExpandedArgs})=>value2==null?react.createElement(EmptyArg,null):react.createElement(ArgSummary,{value:value2,initialExpandedArgs});var Name=theming/* styled */.I4.span({fontWeight:"bold"}),Required=theming/* styled */.I4.span(({theme})=>({color:theme.color.negative,fontFamily:theme.typography.fonts.mono,cursor:"help"})),Description=theming/* styled */.I4.div(({theme})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:theme.color.secondary}},code:{...(0,components/* codeCommon */.zb)({theme}),fontSize:12,fontFamily:theme.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),Type=theming/* styled */.I4.div(({theme,hasDescription})=>({color:theme.base==="light"?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.2,theme.color.defaultText),marginTop:hasDescription?4:0})),TypeWithJsDoc=theming/* styled */.I4.div(({theme,hasDescription})=>({color:theme.base==="light"?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.2,theme.color.defaultText),marginTop:hasDescription?12:0,marginBottom:12})),StyledTd=theming/* styled */.I4.td(({theme,expandable})=>({paddingLeft:expandable?"40px !important":"20px !important"})),toSummary=value2=>value2&&{summary:typeof value2=="string"?value2:value2.name},ArgRow=props=>{let[isHovered,setIsHovered]=(0,react.useState)(!1),{row,updateArgs,compact,expandable,initialExpandedArgs}=props,{name,description}=row,table=row.table||{},type=table.type||toSummary(row.type),defaultValue=table.defaultValue||row.defaultValue,required=row.type?.required,hasDescription=description!=null&&description!=="";return react.createElement("tr",{onMouseEnter:()=>setIsHovered(!0),onMouseLeave:()=>setIsHovered(!1)},react.createElement(StyledTd,{expandable},react.createElement(Name,null,name),required?react.createElement(Required,{title:"Required"},"*"):null),compact?null:react.createElement("td",null,hasDescription&&react.createElement(Description,null,react.createElement(index_modern,null,description)),table.jsDocTags!=null?react.createElement(react.Fragment,null,react.createElement(TypeWithJsDoc,{hasDescription},react.createElement(ArgValue,{value:type,initialExpandedArgs})),react.createElement(ArgJsDoc,{tags:table.jsDocTags})):react.createElement(Type,{hasDescription},react.createElement(ArgValue,{value:type,initialExpandedArgs}))),compact?null:react.createElement("td",null,react.createElement(ArgValue,{value:defaultValue,initialExpandedArgs})),updateArgs?react.createElement("td",null,react.createElement(ArgControl,{...props,isHovered})):null)};var Wrapper8=theming/* styled */.I4.div(({inAddonPanel,theme})=>({height:inAddonPanel?"100%":"auto",display:"flex",border:inAddonPanel?"none":`1px solid ${theme.appBorderColor}`,borderRadius:inAddonPanel?0:theme.appBorderRadius,padding:inAddonPanel?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:theme.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),Links=theming/* styled */.I4.div(({theme})=>({display:"flex",fontSize:theme.typography.size.s2-1,gap:25})),Divider=theming/* styled */.I4.div(({theme})=>({width:1,height:16,backgroundColor:theme.appBorderColor})),Empty=({inAddonPanel})=>{let[isLoading,setIsLoading]=(0,react.useState)(!0);return (0,react.useEffect)(()=>{let load=setTimeout(()=>{setIsLoading(!1);},100);return ()=>clearTimeout(load)},[]),isLoading?null:react.createElement(Wrapper8,{inAddonPanel},react.createElement(components/* EmptyTabContent */.Q2,{title:inAddonPanel?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:react.createElement(react.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:react.createElement(Links,null,inAddonPanel&&react.createElement(react.Fragment,null,react.createElement(components/* Link */.N_,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},react.createElement(dist/* VideoIcon */.npA,null)," Watch 5m video"),react.createElement(Divider,null),react.createElement(components/* Link */.N_,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},react.createElement(dist/* DocumentIcon */.pyG,null)," Read docs")),!inAddonPanel&&react.createElement(components/* Link */.N_,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},react.createElement(dist/* DocumentIcon */.pyG,null)," Learn how to set that up"))}))};var ExpanderIconDown=(0,theming/* styled */.I4)(dist/* ChevronDownIcon */.D3D)(({theme})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:theme.base==="light"?curriedTransparentize$1(.25,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),border:"none",display:"inline-block"})),ExpanderIconRight=(0,theming/* styled */.I4)(dist/* ChevronRightIcon */.vKP)(({theme})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:theme.base==="light"?curriedTransparentize$1(.25,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),border:"none",display:"inline-block"})),FlexWrapper=theming/* styled */.I4.span(({theme})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),Section=theming/* styled */.I4.td(({theme})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:theme.typography.weight.bold,fontSize:theme.typography.size.s1-1,color:theme.base==="light"?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText),background:`${theme.background.app} !important`,"& ~ td":{background:`${theme.background.app} !important`}})),Subsection=theming/* styled */.I4.td(({theme})=>({position:"relative",fontWeight:theme.typography.weight.bold,fontSize:theme.typography.size.s2-1,background:theme.background.app})),StyledTd2=theming/* styled */.I4.td(()=>({position:"relative"})),StyledTr=theming/* styled */.I4.tr(({theme})=>({"&:hover > td":{backgroundColor:`${curriedLighten$1(.005,theme.background.app)} !important`,boxShadow:`${theme.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),ClickIntercept=theming/* styled */.I4.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),SectionRow=({level="section",label,children,initialExpanded=!0,colSpan=3})=>{let[expanded,setExpanded]=(0,react.useState)(initialExpanded),Level=level==="subsection"?Subsection:Section,itemCount=children?.length||0,caption=level==="subsection"?`${itemCount} item${itemCount!==1?"s":""}`:"",helperText=`${expanded?"Hide":"Show"} ${level==="subsection"?itemCount:label} item${itemCount!==1?"s":""}`;return react.createElement(react.Fragment,null,react.createElement(StyledTr,{title:helperText},react.createElement(Level,{colSpan:1},react.createElement(ClickIntercept,{onClick:e=>setExpanded(!expanded),tabIndex:0},helperText),react.createElement(FlexWrapper,null,expanded?react.createElement(ExpanderIconDown,null):react.createElement(ExpanderIconRight,null),label)),react.createElement(StyledTd2,{colSpan:colSpan-1},react.createElement(ClickIntercept,{onClick:e=>setExpanded(!expanded),tabIndex:-1,style:{outline:"none"}},helperText),expanded?null:caption)),expanded?children:null)};var Row=theming/* styled */.I4.div(({theme})=>({display:"flex",gap:16,borderBottom:`1px solid ${theme.appBorderColor}`,"&:last-child":{borderBottom:0}})),Column=theming/* styled */.I4.div(({numColumn})=>({display:"flex",flexDirection:"column",flex:numColumn||1,gap:5,padding:"12px 20px"})),SkeletonText=theming/* styled */.I4.div(({theme,width,height})=>({animation:`${theme.animation.glow} 1.5s ease-in-out infinite`,background:theme.appBorderColor,width:width||"100%",height:height||16,borderRadius:3})),columnWidth=[2,4,2,2],Skeleton=()=>react.createElement(react.Fragment,null,react.createElement(Row,null,react.createElement(Column,{numColumn:columnWidth[0]},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{numColumn:columnWidth[1]},react.createElement(SkeletonText,{width:"30%"})),react.createElement(Column,{numColumn:columnWidth[2]},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{numColumn:columnWidth[3]},react.createElement(SkeletonText,{width:"60%"}))),react.createElement(Row,null,react.createElement(Column,{numColumn:columnWidth[0]},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{numColumn:columnWidth[1]},react.createElement(SkeletonText,{width:"80%"}),react.createElement(SkeletonText,{width:"30%"})),react.createElement(Column,{numColumn:columnWidth[2]},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{numColumn:columnWidth[3]},react.createElement(SkeletonText,{width:"60%"}))),react.createElement(Row,null,react.createElement(Column,{numColumn:columnWidth[0]},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{numColumn:columnWidth[1]},react.createElement(SkeletonText,{width:"80%"}),react.createElement(SkeletonText,{width:"30%"})),react.createElement(Column,{numColumn:columnWidth[2]},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{numColumn:columnWidth[3]},react.createElement(SkeletonText,{width:"60%"}))),react.createElement(Row,null,react.createElement(Column,{numColumn:columnWidth[0]},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{numColumn:columnWidth[1]},react.createElement(SkeletonText,{width:"80%"}),react.createElement(SkeletonText,{width:"30%"})),react.createElement(Column,{numColumn:columnWidth[2]},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{numColumn:columnWidth[3]},react.createElement(SkeletonText,{width:"60%"}))));var TableWrapper=theming/* styled */.I4.table(({theme,compact,inAddonPanel})=>({"&&":{borderSpacing:0,color:theme.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:theme.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:inAddonPanel?0:25,marginBottom:inAddonPanel?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...compact?null:{width:"35%"}},"td:nth-of-type(3)":{...compact?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...compact?null:{width:"25%"}},th:{color:theme.base==="light"?curriedTransparentize$1(.25,theme.color.defaultText):curriedTransparentize$1(.45,theme.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:inAddonPanel?0:1,marginRight:inAddonPanel?0:1,tbody:{...inAddonPanel?null:{filter:theme.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:theme.background.content,borderTop:`1px solid ${theme.appBorderColor}`},...inAddonPanel?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${theme.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${theme.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${theme.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${theme.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:theme.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:theme.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:theme.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:theme.appBorderRadius}}}}})),StyledIconButton=(0,theming/* styled */.I4)(components/* IconButton */.K0)(({theme})=>({margin:"-4px -12px -4px 0"})),ControlHeadingWrapper=theming/* styled */.I4.span({display:"flex",justifyContent:"space-between"});var sortFns={alpha:(a,b)=>a.name.localeCompare(b.name),requiredFirst:(a,b)=>+!!b.type?.required-+!!a.type?.required||a.name.localeCompare(b.name),none:void 0},groupRows=(rows,sort)=>{let sections={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!rows)return sections;Object.entries(rows).forEach(([key,row])=>{let{category,subcategory}=row?.table||{};if(category){let section=sections.sections[category]||{ungrouped:[],subsections:{}};if(!subcategory)section.ungrouped.push({key,...row});else {let subsection=section.subsections[subcategory]||[];subsection.push({key,...row}),section.subsections[subcategory]=subsection;}sections.sections[category]=section;}else if(subcategory){let subsection=sections.ungroupedSubsections[subcategory]||[];subsection.push({key,...row}),sections.ungroupedSubsections[subcategory]=subsection;}else sections.ungrouped.push({key,...row});});let sortFn=sortFns[sort],sortSubsection=record=>sortFn?Object.keys(record).reduce((acc,cur)=>({...acc,[cur]:record[cur].sort(sortFn)}),{}):record;return {ungrouped:sections.ungrouped.sort(sortFn),ungroupedSubsections:sortSubsection(sections.ungroupedSubsections),sections:Object.keys(sections.sections).reduce((acc,cur)=>({...acc,[cur]:{ungrouped:sections.sections[cur].ungrouped.sort(sortFn),subsections:sortSubsection(sections.sections[cur].subsections)}}),{})}},safeIncludeConditionalArg=(row,args,globals)=>{try{return (0,csf_dist/* includeConditionalArg */.hX)(row,args,globals)}catch(err){return external_STORYBOOK_MODULE_CLIENT_LOGGER_.once.warn(err.message),!1}},ArgsTable=props=>{let{updateArgs,resetArgs,compact,inAddonPanel,initialExpandedArgs,sort="none",isLoading}=props;if("error"in props){let{error}=props;return react.createElement(EmptyBlock,null,error,"\xA0",react.createElement(components/* Link */.N_,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},react.createElement(dist/* DocumentIcon */.pyG,null)," Read the docs"))}if(isLoading)return react.createElement(Skeleton,null);let{rows,args,globals}="rows"in props&&props,groups=groupRows(pickBy_default()(rows,row=>!row?.table?.disable&&safeIncludeConditionalArg(row,args||{},globals||{})),sort),hasNoUngrouped=groups.ungrouped.length===0,hasNoSections=Object.entries(groups.sections).length===0,hasNoUngroupedSubsections=Object.entries(groups.ungroupedSubsections).length===0;if(hasNoUngrouped&&hasNoSections&&hasNoUngroupedSubsections)return react.createElement(Empty,{inAddonPanel});let colSpan=1;updateArgs&&(colSpan+=1),compact||(colSpan+=2);let expandable=Object.keys(groups.sections).length>0,common={updateArgs,compact,inAddonPanel,initialExpandedArgs};return react.createElement(components/* ResetWrapper */.dL,null,react.createElement(TableWrapper,{compact,inAddonPanel,className:"docblock-argstable sb-unstyled"},react.createElement("thead",{className:"docblock-argstable-head"},react.createElement("tr",null,react.createElement("th",null,react.createElement("span",null,"Name")),compact?null:react.createElement("th",null,react.createElement("span",null,"Description")),compact?null:react.createElement("th",null,react.createElement("span",null,"Default")),updateArgs?react.createElement("th",null,react.createElement(ControlHeadingWrapper,null,"Control"," ",!isLoading&&resetArgs&&react.createElement(StyledIconButton,{onClick:()=>resetArgs(),title:"Reset controls"},react.createElement(dist/* UndoIcon */.ejX,{"aria-hidden":!0})))):null)),react.createElement("tbody",{className:"docblock-argstable-body"},groups.ungrouped.map(row=>react.createElement(ArgRow,{key:row.key,row,arg:args&&args[row.key],...common})),Object.entries(groups.ungroupedSubsections).map(([subcategory,subsection])=>react.createElement(SectionRow,{key:subcategory,label:subcategory,level:"subsection",colSpan},subsection.map(row=>react.createElement(ArgRow,{key:row.key,row,arg:args&&args[row.key],expandable,...common})))),Object.entries(groups.sections).map(([category,section])=>react.createElement(SectionRow,{key:category,label:category,level:"section",colSpan},section.ungrouped.map(row=>react.createElement(ArgRow,{key:row.key,row,arg:args&&args[row.key],...common})),Object.entries(section.subsections).map(([subcategory,subsection])=>react.createElement(SectionRow,{key:subcategory,label:subcategory,level:"subsection",colSpan},subsection.map(row=>react.createElement(ArgRow,{key:row.key,row,arg:args&&args[row.key],expandable,...common})))))))))};var TabbedArgsTable=({tabs,...props})=>{let entries=Object.entries(tabs);return entries.length===1?react.createElement(ArgsTable,{...entries[0][1],...props}):react.createElement(components/* TabsState */._j,null,entries.map((entry,index)=>{let[label,table]=entry,id=`prop_table_div_${label}`,Component4="div",argsTableProps=index===0?props:{sort:props.sort};return react.createElement(Component4,{key:id,id,title:label},({active})=>active?react.createElement(ArgsTable,{key:`prop_table_${label}`,...table,...argsTableProps}):null)}))};var Label4=theming/* styled */.I4.div(({theme})=>({marginRight:30,fontSize:`${theme.typography.size.s1}px`,color:theme.base==="light"?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)})),Sample=theming/* styled */.I4.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),TypeSpecimen=theming/* styled */.I4.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}}),Wrapper9=theming/* styled */.I4.div(components/* withReset */.YV,({theme})=>({...getBlockBackgroundStyle(theme),margin:"25px 0 40px",padding:"30px 20px"})),Typeset=({fontFamily,fontSizes,fontWeight,sampleText,...props})=>React15.createElement(Wrapper9,{...props,className:"docblock-typeset sb-unstyled"},fontSizes.map(size=>React15.createElement(TypeSpecimen,{key:size},React15.createElement(Label4,null,size),React15.createElement(Sample,{style:{fontFamily,fontSize:size,fontWeight,lineHeight:1.2}},sampleText||"Was he a beast if music could move him so?"))));var ItemTitle=theming/* styled */.I4.div(({theme})=>({fontWeight:theme.typography.weight.bold,color:theme.color.defaultText})),ItemSubtitle=theming/* styled */.I4.div(({theme})=>({color:theme.base==="light"?curriedTransparentize$1(.2,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)})),ItemDescription=theming/* styled */.I4.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5}),SwatchLabel=theming/* styled */.I4.div(({theme})=>({flex:1,textAlign:"center",fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,lineHeight:1,overflow:"hidden",color:theme.base==="light"?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}})),SwatchLabels=theming/* styled */.I4.div({display:"flex",flexDirection:"row"}),Swatch=theming/* styled */.I4.div(({background})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background,content:'""'}})),SwatchColors=theming/* styled */.I4.div(({theme})=>({...getBlockBackgroundStyle(theme),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"})),SwatchSpecimen=theming/* styled */.I4.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30}),Swatches=theming/* styled */.I4.div({flex:1,display:"flex",flexDirection:"row"}),Item=theming/* styled */.I4.div({display:"flex",alignItems:"flex-start"}),ListName=theming/* styled */.I4.div({flex:"0 0 30%"}),ListSwatches=theming/* styled */.I4.div({flex:1}),ListHeading=theming/* styled */.I4.div(({theme})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:theme.typography.weight.bold,color:theme.base==="light"?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)})),List=theming/* styled */.I4.div(({theme})=>({fontSize:theme.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));function renderSwatch(color,index){return React15.createElement(Swatch,{key:`${color}-${index}`,title:color,background:color})}function renderSwatchLabel(color,index,colorDescription){return React15.createElement(SwatchLabel,{key:`${color}-${index}`,title:color},React15.createElement("div",null,color,colorDescription&&React15.createElement("span",null,colorDescription)))}function renderSwatchSpecimen(colors){if(Array.isArray(colors))return React15.createElement(SwatchSpecimen,null,React15.createElement(SwatchColors,null,colors.map((color,index)=>renderSwatch(color,index))),React15.createElement(SwatchLabels,null,colors.map((color,index)=>renderSwatchLabel(color,index))));let swatchElements=[],labelElements=[];for(let colorKey in colors){let colorValue=colors[colorKey];swatchElements.push(renderSwatch(colorValue,swatchElements.length)),labelElements.push(renderSwatchLabel(colorKey,labelElements.length,colorValue));}return React15.createElement(SwatchSpecimen,null,React15.createElement(SwatchColors,null,swatchElements),React15.createElement(SwatchLabels,null,labelElements))}var ColorItem=({title,subtitle,colors})=>React15.createElement(Item,null,React15.createElement(ItemDescription,null,React15.createElement(ItemTitle,null,title),React15.createElement(ItemSubtitle,null,subtitle)),React15.createElement(Swatches,null,renderSwatchSpecimen(colors))),ColorPalette=({children,...props})=>React15.createElement(ResetWrapper,null,React15.createElement(List,{...props,className:"docblock-colorpalette sb-unstyled"},React15.createElement(ListHeading,null,React15.createElement(ListName,null,"Name"),React15.createElement(ListSwatches,null,"Swatches")),children));var ItemLabel=theming/* styled */.I4.div(({theme})=>({fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s2,color:theme.color.defaultText,marginLeft:10,lineHeight:1.2})),ItemSpecimen=theming/* styled */.I4.div(({theme})=>({...getBlockBackgroundStyle(theme),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}})),Item2=theming/* styled */.I4.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"}),List2=theming/* styled */.I4.div({display:"flex",flexFlow:"row wrap"}),IconItem=({name,children})=>React15.createElement(Item2,null,React15.createElement(ItemSpecimen,null,children),React15.createElement(ItemLabel,null,name)),IconGallery=({children,...props})=>React15.createElement(ResetWrapper,null,React15.createElement(List2,{...props,className:"docblock-icongallery sb-unstyled"},children));var anchorBlockIdFromId=storyId=>`anchor--${storyId}`,Anchor=({storyId,children})=>react.createElement("div",{id:anchorBlockIdFromId(storyId),className:"sb-anchor"},children);external_STORYBOOK_MODULE_GLOBAL_.global&&external_STORYBOOK_MODULE_GLOBAL_.global.__DOCS_CONTEXT__===void 0&&(external_STORYBOOK_MODULE_GLOBAL_.global.__DOCS_CONTEXT__=(0,react.createContext)(null),external_STORYBOOK_MODULE_GLOBAL_.global.__DOCS_CONTEXT__.displayName="DocsContext");var DocsContext=external_STORYBOOK_MODULE_GLOBAL_.global?external_STORYBOOK_MODULE_GLOBAL_.global.__DOCS_CONTEXT__:(0,react.createContext)(null);var useOf=(moduleExportOrType,validTypes)=>(0,react.useContext)(DocsContext).resolveOf(moduleExportOrType,validTypes);var titleCase=str=>str.split("-").map(part=>part.charAt(0).toUpperCase()+part.slice(1)).join(""),getComponentName=component=>{if(component)return typeof component=="string"?component.includes("-")?titleCase(component):component:component.__docgenInfo&&component.__docgenInfo.displayName?component.__docgenInfo.displayName:component.name};function scrollToElement(element,block="start"){element.scrollIntoView({behavior:"smooth",block,inline:"nearest"});}function extractComponentArgTypes(component,parameters){let{extractArgTypes}=parameters.docs||{};if(!extractArgTypes)throw new Error("Args unsupported. See Args documentation for your framework.");return extractArgTypes(component)}function getArgTypesFromResolved(resolved){if(resolved.type==="component"){let{component:component2,projectAnnotations:{parameters:parameters2}}=resolved;return {argTypes:extractComponentArgTypes(component2,parameters2),parameters:parameters2,component:component2}}if(resolved.type==="meta"){let{preparedMeta:{argTypes:argTypes2,parameters:parameters2,component:component2,subcomponents:subcomponents2}}=resolved;return {argTypes:argTypes2,parameters:parameters2,component:component2,subcomponents:subcomponents2}}let{story:{argTypes,parameters,component,subcomponents}}=resolved;return {argTypes,parameters,component,subcomponents}}var ArgTypes=props=>{let{of}=props;if("of"in props&&of===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let resolved=useOf(of||"meta"),{argTypes,parameters,component,subcomponents}=getArgTypesFromResolved(resolved),argTypesParameters=parameters.docs?.argTypes||{},include=props.include??argTypesParameters.include,exclude=props.exclude??argTypesParameters.exclude,sort=props.sort??argTypesParameters.sort,filteredArgTypes=(0,external_STORYBOOK_MODULE_PREVIEW_API_.filterArgTypes)(argTypes,include,exclude);if(!(!!subcomponents&&Object.keys(subcomponents).length>0))return react.createElement(ArgsTable,{rows:filteredArgTypes,sort});let mainComponentName=getComponentName(component),subcomponentTabs=Object.fromEntries(Object.entries(subcomponents).map(([key,comp])=>[key,{rows:(0,external_STORYBOOK_MODULE_PREVIEW_API_.filterArgTypes)(extractComponentArgTypes(comp,parameters),include,exclude),sort}])),tabs={[mainComponentName]:{rows:filteredArgTypes,sort},...subcomponentTabs};return react.createElement(TabbedArgsTable,{tabs,sort})};function argsHash(args){return (0,telejson_dist/* stringify */.As)(args,{allowFunction:!1})}var SourceContext=(0,react.createContext)({sources:{}}),UNKNOWN_ARGS_HASH="--unknown--",SourceContainer=({children,channel})=>{let[sources,setSources]=(0,react.useState)({});return (0,react.useEffect)(()=>{let handleSnippetRendered=(idOrEvent,inputSource=null,inputFormat=!1)=>{let{id,args=void 0,source,format:format2}=typeof idOrEvent=="string"?{id:idOrEvent,source:inputSource,format:inputFormat}:idOrEvent,hash=args?argsHash(args):UNKNOWN_ARGS_HASH;setSources(current=>({...current,[id]:{...current[id],[hash]:{code:source,format:format2}}}));};return channel.on(docs_tools/* SNIPPET_RENDERED */.Op,handleSnippetRendered),()=>channel.off(docs_tools/* SNIPPET_RENDERED */.Op,handleSnippetRendered)},[]),react.createElement(SourceContext.Provider,{value:{sources}},children)};var getStorySource=(storyId,args,sourceContext)=>{let{sources}=sourceContext,sourceMap=sources?.[storyId];return sourceMap?.[argsHash(args)]||sourceMap?.[UNKNOWN_ARGS_HASH]||{code:""}},getSnippet=({snippet,storyContext,typeFromProps,transformFromProps})=>{let{__isArgsStory:isArgsStory}=storyContext.parameters,sourceParameters=storyContext.parameters.docs?.source||{},type=typeFromProps||sourceParameters.type||docs_tools/* SourceType */.Y1.AUTO;if(sourceParameters.code!==void 0)return sourceParameters.code;let code=type===docs_tools/* SourceType */.Y1.DYNAMIC||type===docs_tools/* SourceType */.Y1.AUTO&&snippet&&isArgsStory?snippet:sourceParameters.originalSource||"";return (transformFromProps??sourceParameters.transform)?.(code,storyContext)||code},useSourceProps=(props,docsContext,sourceContext)=>{let story,{of}=props;if("of"in props&&of===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(of)story=docsContext.resolveOf(of,["story"]).story;else try{story=docsContext.storyById();}catch{}let sourceParameters=story?.parameters?.docs?.source||{},{code}=props,format2=props.format??sourceParameters.format,language=props.language??sourceParameters.language??"jsx",dark=props.dark??sourceParameters.dark??!1;if(!code&&!story)return {error:"Oh no! The source is not available."};if(code)return {code,format:format2,language,dark};let storyContext=docsContext.getStoryContext(story),argsForSource=props.__forceInitialArgs?storyContext.initialArgs:storyContext.unmappedArgs,source=getStorySource(story.id,argsForSource,sourceContext);return format2=source.format??story.parameters.docs?.source?.format??!1,{code:getSnippet({snippet:source.code,storyContext:{...storyContext,args:argsForSource},typeFromProps:props.type,transformFromProps:props.transform}),format:format2,language,dark}},Source2=props=>{let sourceContext=useContext(SourceContext),docsContext=useContext(DocsContext),sourceProps=useSourceProps(props,docsContext,sourceContext);return React15.createElement(Source,{...sourceProps})};function useStory(storyId,context){let stories=useStories([storyId],context);return stories&&stories[0]}function useStories(storyIds,context){let[storiesById,setStories]=(0,react.useState)({});return (0,react.useEffect)(()=>{Promise.all(storyIds.map(async storyId=>{let story=await context.loadStory(storyId);setStories(current=>current[storyId]===story?current:{...current,[storyId]:story});}));}),storyIds.map(storyId=>{if(storiesById[storyId])return storiesById[storyId];try{return context.storyById(storyId)}catch{return null}})}var getStoryId2=(props,context)=>{let{of,meta}=props;if("of"in props&&of===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return meta&&context.referenceMeta(meta,!1),context.resolveOf(of||"story",["story"]).story.id},getStoryProps=(props,story,context)=>{let{parameters={}}=story||{},{docs={}}=parameters,storyParameters=docs.story||{};if(docs.disable)return null;if(props.inline??storyParameters.inline??!1){let height2=props.height??storyParameters.height,autoplay=props.autoplay??storyParameters.autoplay??!1;return {story,inline:!0,height:height2,autoplay,forceInitialArgs:!!props.__forceInitialArgs,primary:!!props.__primary,renderStoryToElement:context.renderStoryToElement}}let height=props.height??storyParameters.height??storyParameters.iframeHeight??"100px";return {story,inline:!1,height,primary:!!props.__primary}},Story2=(props={__forceInitialArgs:!1,__primary:!1})=>{let context=(0,react.useContext)(DocsContext),storyId=getStoryId2(props,context),story=useStory(storyId,context);if(!story)return react.createElement(StorySkeleton,null);let storyProps=getStoryProps(props,story,context);return storyProps?react.createElement(Story,{...storyProps}):null};var Canvas=props=>{let docsContext=(0,react.useContext)(DocsContext),sourceContext=(0,react.useContext)(SourceContext),{of,source}=props;if("of"in props&&of===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story}=useOf(of||"story",["story"]),sourceProps=useSourceProps({...source,...of&&{of}},docsContext,sourceContext),layout=props.layout??story.parameters.layout??story.parameters.docs?.canvas?.layout??"padded",withToolbar=props.withToolbar??story.parameters.docs?.canvas?.withToolbar??!1,additionalActions=props.additionalActions??story.parameters.docs?.canvas?.additionalActions,sourceState=props.sourceState??story.parameters.docs?.canvas?.sourceState??"hidden",className=props.className??story.parameters.docs?.canvas?.className;return react.createElement(Preview,{withSource:sourceState==="none"?void 0:sourceProps,isExpanded:sourceState==="shown",withToolbar,additionalActions,className,layout},react.createElement(Story2,{of:of||story.moduleExport,meta:props.meta,...props.story}))};var useArgs=(story,context)=>{let result=useArgsIfDefined(story,context);if(!result)throw new Error("No result when story was defined");return result},useArgsIfDefined=(story,context)=>{let storyContext=story?context.getStoryContext(story):{args:{}},{id:storyId}=story||{id:"none"},[args,setArgs]=(0,react.useState)(storyContext.args);(0,react.useEffect)(()=>{let onArgsUpdated=changed=>{changed.storyId===storyId&&setArgs(changed.args);};return context.channel.on(external_STORYBOOK_MODULE_CORE_EVENTS_.STORY_ARGS_UPDATED,onArgsUpdated),()=>context.channel.off(external_STORYBOOK_MODULE_CORE_EVENTS_.STORY_ARGS_UPDATED,onArgsUpdated)},[storyId,context.channel]);let updateArgs=(0,react.useCallback)(updatedArgs=>context.channel.emit(external_STORYBOOK_MODULE_CORE_EVENTS_.UPDATE_STORY_ARGS,{storyId,updatedArgs}),[storyId,context.channel]),resetArgs=(0,react.useCallback)(argNames=>context.channel.emit(external_STORYBOOK_MODULE_CORE_EVENTS_.RESET_STORY_ARGS,{storyId,argNames}),[storyId,context.channel]);return story&&[args,updateArgs,resetArgs]};var useGlobals=(story,context)=>{let storyContext=context.getStoryContext(story),[globals,setGlobals]=(0,react.useState)(storyContext.globals);return (0,react.useEffect)(()=>{let onGlobalsUpdated=changed=>{setGlobals(changed.globals);};return context.channel.on(external_STORYBOOK_MODULE_CORE_EVENTS_.GLOBALS_UPDATED,onGlobalsUpdated),()=>context.channel.off(external_STORYBOOK_MODULE_CORE_EVENTS_.GLOBALS_UPDATED,onGlobalsUpdated)},[context.channel]),[globals]};function extractComponentArgTypes2(component,parameters){let{extractArgTypes}=parameters.docs||{};if(!extractArgTypes)throw new Error("Args unsupported. See Args documentation for your framework.");return extractArgTypes(component)}var Controls3=props=>{let{of}=props;if("of"in props&&of===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let context=(0,react.useContext)(DocsContext),{story}=context.resolveOf(of||"story",["story"]),{parameters,argTypes,component,subcomponents}=story,controlsParameters=parameters.docs?.controls||{},include=props.include??controlsParameters.include,exclude=props.exclude??controlsParameters.exclude,sort=props.sort??controlsParameters.sort,[args,updateArgs,resetArgs]=useArgs(story,context),[globals]=useGlobals(story,context),filteredArgTypes=(0,external_STORYBOOK_MODULE_PREVIEW_API_.filterArgTypes)(argTypes,include,exclude);if(!(!!subcomponents&&Object.keys(subcomponents).length>0))return Object.keys(filteredArgTypes).length>0||Object.keys(args).length>0?react.createElement(ArgsTable,{rows:filteredArgTypes,sort,args,globals,updateArgs,resetArgs}):null;let mainComponentName=getComponentName(component),subcomponentTabs=Object.fromEntries(Object.entries(subcomponents).map(([key,comp])=>[key,{rows:(0,external_STORYBOOK_MODULE_PREVIEW_API_.filterArgTypes)(extractComponentArgTypes2(comp,parameters),include,exclude),sort}])),tabs={[mainComponentName]:{rows:filteredArgTypes,sort},...subcomponentTabs};return react.createElement(TabbedArgsTable,{tabs,sort,args,globals,updateArgs,resetArgs})};var {document:document2}=external_STORYBOOK_MODULE_GLOBAL_.global,assertIsFn=val=>{if(typeof val!="function")throw new Error(`Expected story function, got: ${val}`);return val},AddContext=props=>{let{children,...rest}=props,parentContext=React15.useContext(DocsContext);return React15.createElement(DocsContext.Provider,{value:{...parentContext,...rest}},children)},CodeOrSourceMdx=({className,children,...rest})=>{if(typeof className!="string"&&(typeof children!="string"||!children.match(/[\n\r]/g)))return react.createElement(components/* Code */.Cy,null,children);let language=className&&className.split("-");return react.createElement(Source,{language:language&&language[1]||"text",format:!1,code:children,...rest})};function dist_navigate(context,url){context.channel.emit(external_STORYBOOK_MODULE_CORE_EVENTS_.NAVIGATE_URL,url);}var dist_A=components/* components */.dK.a,AnchorInPage=({hash,children})=>{let context=(0,react.useContext)(DocsContext);return react.createElement(dist_A,{href:hash,target:"_self",onClick:event=>{let id=hash.substring(1);document2.getElementById(id)&&dist_navigate(context,hash);}},children)},AnchorMdx=props=>{let{href,target,children,...rest}=props,context=(0,react.useContext)(DocsContext);return !href||target==="_blank"||/^https?:\/\//.test(href)?react.createElement(dist_A,{...props}):href.startsWith("#")?react.createElement(AnchorInPage,{hash:href},children):react.createElement(dist_A,{href,onClick:event=>{event.button===0&&!event.altKey&&!event.ctrlKey&&!event.metaKey&&!event.shiftKey&&(event.preventDefault(),dist_navigate(context,event.currentTarget.getAttribute("href")));},target,...rest},children)},SUPPORTED_MDX_HEADERS=["h1","h2","h3","h4","h5","h6"],OcticonHeaders=SUPPORTED_MDX_HEADERS.reduce((acc,headerType)=>({...acc,[headerType]:(0,theming/* styled */.I4)(headerType)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),OcticonAnchor=theming/* styled */.I4.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),HeaderWithOcticonAnchor=({as,id,children,...rest})=>{let context=(0,react.useContext)(DocsContext),OcticonHeader=OcticonHeaders[as],hash=`#${id}`;return react.createElement(OcticonHeader,{id,...rest},react.createElement(OcticonAnchor,{"aria-hidden":"true",href:hash,tabIndex:-1,target:"_self",onClick:event=>{document2.getElementById(id)&&dist_navigate(context,hash);}},react.createElement(dist/* LinkIcon */.qYV,null)),children)},HeaderMdx=props=>{let{as,id,children,...rest}=props;if(id)return react.createElement(HeaderWithOcticonAnchor,{as,id,...rest},children);let Component4=as,{as:omittedAs,...withoutAs}=props;return react.createElement(Component4,{...(0,components/* nameSpaceClassNames */.mc)(withoutAs,as)})},HeadersMdx=SUPPORTED_MDX_HEADERS.reduce((acc,headerType)=>({...acc,[headerType]:props=>react.createElement(HeaderMdx,{as:headerType,...props})}),{});var Markdown2=props=>{if(!props.children)return null;if(typeof props.children!="string")throw new Error((0,esm/* dedent */.T)`The Markdown block only accepts children as a single string, but children were of type: '${typeof props.children}' + This is often caused by not wrapping the child in a template string. + + This is invalid: + + # Some heading + A paragraph + + + Instead do: + + {\` + # Some heading + A paragraph + \`} + + `);return react.createElement(index_modern,{...props,options:{forceBlock:!0,overrides:{code:CodeOrSourceMdx,a:AnchorMdx,...HeadersMdx,...props?.options?.overrides},...props?.options}})};var DescriptionType=(DescriptionType2=>(DescriptionType2.INFO="info",DescriptionType2.NOTES="notes",DescriptionType2.DOCGEN="docgen",DescriptionType2.AUTO="auto",DescriptionType2))(DescriptionType||{}),getDescriptionFromResolvedOf=resolvedOf=>{switch(resolvedOf.type){case"story":return resolvedOf.story.parameters.docs?.description?.story||null;case"meta":{let{parameters,component}=resolvedOf.preparedMeta,metaDescription=parameters.docs?.description?.component;return metaDescription||parameters.docs?.extractComponentDescription?.(component,{component,parameters})||null}case"component":{let{component,projectAnnotations:{parameters}}=resolvedOf;return parameters.docs?.extractComponentDescription?.(component,{component,parameters})||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${resolvedOf.type}`)}},DescriptionContainer=props=>{let{of}=props;if("of"in props&&of===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let resolvedOf=useOf(of||"meta"),markdown=getDescriptionFromResolvedOf(resolvedOf);return markdown?react.createElement(Markdown2,null,markdown):null};var tocbot=(0,chunk_MKV36LKP/* __toESM */.f1)(require_js());var Wrapper10=theming/* styled */.I4.div(({theme})=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),Content=theming/* styled */.I4.div(({theme})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${theme.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${theme.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${theme.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${theme.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:theme.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:theme.color.secondary,textDecoration:"none"}})),Heading=theming/* styled */.I4.p(({theme})=>({fontWeight:600,fontSize:"0.875em",color:theme.textColor,textTransform:"uppercase",marginBottom:10})),OptionalTitle=({title})=>title===null?null:typeof title=="string"?react.createElement(Heading,null,title):title,TableOfContents=({title,disable,headingSelector,contentsSelector,ignoreSelector,unsafeTocbotOptions})=>((0,react.useEffect)(()=>{let configuration={tocSelector:".toc-wrapper",contentSelector:contentsSelector??".sbdocs-content",headingSelector:headingSelector??"h3",ignoreSelector:ignoreSelector??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:()=>!1,...unsafeTocbotOptions},timeout=setTimeout(()=>tocbot.init(configuration),100);return ()=>{clearTimeout(timeout),tocbot.destroy();}},[disable]),react.createElement(react.Fragment,null,react.createElement(Wrapper10,null,disable?null:react.createElement(Content,null,react.createElement(OptionalTitle,{title:title||null}),react.createElement("div",{className:"toc-wrapper"})))));var {document:document3,window:globalWindow3}=external_STORYBOOK_MODULE_GLOBAL_.global,DocsContainer=({context,theme,children})=>{let toc;try{toc=context.resolveOf("meta",["meta"]).preparedMeta.parameters?.docs?.toc;}catch{toc=context?.projectAnnotations?.parameters?.docs?.toc;}return (0,react.useEffect)(()=>{let url;try{if(url=new URL(globalWindow3.parent.location.toString()),url.hash){let element=document3.getElementById(decodeURIComponent(url.hash.substring(1)));element&&setTimeout(()=>{scrollToElement(element);},200);}}catch{}}),react.createElement(DocsContext.Provider,{value:context},react.createElement(SourceContainer,{channel:context.channel},react.createElement(theming/* ThemeProvider */.NP,{theme:(0,theming/* ensure */.D8)(theme)},react.createElement(DocsPageWrapper,{toc:toc?react.createElement(TableOfContents,{className:"sbdocs sbdocs-toc--custom",...toc}):null},children))))};var Subheading=({children,disableAnchor})=>{if(disableAnchor||typeof children!="string")return react.createElement(components.H3,null,children);let tagID=globalThis.encodeURIComponent(children.toLowerCase());return react.createElement(HeaderMdx,{as:"h3",id:tagID},children)};var DocsStory=({of,expanded=!0,withToolbar:withToolbarProp=!1,__forceInitialArgs=!1,__primary=!1})=>{let{story}=useOf(of||"story",["story"]),withToolbar=story.parameters.docs?.canvas?.withToolbar??withToolbarProp;return react.createElement(Anchor,{storyId:story.id},expanded&&react.createElement(react.Fragment,null,react.createElement(Subheading,null,story.name),react.createElement(DescriptionContainer,{of})),react.createElement(Canvas,{of,withToolbar,story:{__forceInitialArgs,__primary},source:{__forceInitialArgs}}))};var Primary=props=>{let{of}=props;if("of"in props&&of===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{csfFile}=useOf(of||"meta",["meta"]),primaryStory=(0,react.useContext)(DocsContext).componentStoriesFromCSFFile(csfFile)[0];return primaryStory?react.createElement(DocsStory,{of:primaryStory.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null};var Heading2=({children,disableAnchor,...props})=>{if(disableAnchor||typeof children!="string")return react.createElement(components.H2,null,children);let tagID=children.toLowerCase().replace(/[^a-z0-9]/gi,"-");return react.createElement(HeaderMdx,{as:"h2",id:tagID,...props},children)};var StyledHeading=(0,theming/* styled */.I4)(Heading2)(({theme})=>({fontSize:`${theme.typography.size.s2-1}px`,fontWeight:theme.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:theme.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}})),Stories=({title="Stories",includePrimary=!0})=>{let{componentStories,projectAnnotations,getStoryContext}=(0,react.useContext)(DocsContext),stories=componentStories(),{stories:{filter}={filter:void 0}}=projectAnnotations.parameters?.docs||{};return filter&&(stories=stories.filter(story=>filter(story,getStoryContext(story)))),stories.some(story=>story.tags?.includes("autodocs"))&&(stories=stories.filter(story=>story.tags?.includes("autodocs")&&!story.usesMount)),includePrimary||(stories=stories.slice(1)),!stories||stories.length===0?null:react.createElement(react.Fragment,null,react.createElement(StyledHeading,null,title),stories.map(story=>story&&react.createElement(DocsStory,{key:story.id,of:story.moduleExport,expanded:!0,__forceInitialArgs:!0})))};var DEPRECATION_MIGRATION_LINK="https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle",Subtitle2=props=>{let{of,children}=props;if("of"in props&&of===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let preparedMeta;try{preparedMeta=useOf(of||"meta",["meta"]).preparedMeta;}catch(error){if(children&&!error.message.includes("did you forget to use ?"))throw error}let{componentSubtitle,docs}=preparedMeta?.parameters||{};componentSubtitle&&(0,external_STORYBOOK_MODULE_CLIENT_LOGGER_.deprecate)(`Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${DEPRECATION_MIGRATION_LINK}`);let content=children||docs?.subtitle||componentSubtitle;return content?react.createElement(Subtitle,{className:"sbdocs-subtitle sb-unstyled"},content):null};var STORY_KIND_PATH_SEPARATOR=/\s*\/\s*/,extractTitle=title=>{let groups=title.trim().split(STORY_KIND_PATH_SEPARATOR);return groups?.[groups?.length-1]||title},Title2=props=>{let{children,of}=props;if("of"in props&&of===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let preparedMeta;try{preparedMeta=useOf(of||"meta",["meta"]).preparedMeta;}catch(error){if(children&&!error.message.includes("did you forget to use ?"))throw error}let content=children||extractTitle(preparedMeta?.title);return content?react.createElement(Title,{className:"sbdocs-title sb-unstyled"},content):null};var DocsPage=()=>{let resolvedOf=useOf("meta",["meta"]),{stories}=resolvedOf.csfFile,isSingleStory=Object.keys(stories).length===1;return react.createElement(react.Fragment,null,react.createElement(Title2,null),react.createElement(Subtitle2,null),react.createElement(DescriptionContainer,{of:"meta"}),isSingleStory?react.createElement(DescriptionContainer,{of:"story"}):null,react.createElement(Primary,null),react.createElement(Controls3,null),isSingleStory?null:react.createElement(Stories,null))};function Docs({context,docsParameter}){let Container=docsParameter.container||DocsContainer,Page=docsParameter.page||DocsPage;return react.createElement(Container,{context,theme:docsParameter.theme},react.createElement(Page,null))}var ExternalDocsContext=class extends external_STORYBOOK_MODULE_PREVIEW_API_.DocsContext{constructor(channel,store,renderStoryToElement,processMetaExports){super(channel,store,renderStoryToElement,[]);this.channel=channel;this.store=store;this.renderStoryToElement=renderStoryToElement;this.processMetaExports=processMetaExports;this.referenceMeta=(metaExports,attach)=>{let csfFile=this.processMetaExports(metaExports);this.referenceCSFFile(csfFile),super.referenceMeta(metaExports,attach);};}};var ConstantMap=class{constructor(prefix){this.prefix=prefix;this.entries=new Map;}get(key){return this.entries.has(key)||this.entries.set(key,`${this.prefix}${this.entries.size}`),this.entries.get(key)}},ExternalPreview=class extends external_STORYBOOK_MODULE_PREVIEW_API_.Preview{constructor(projectAnnotations){super(path=>Promise.resolve(this.moduleExportsByImportPath[path]),()=>(0,external_STORYBOOK_MODULE_PREVIEW_API_.composeConfigs)([{parameters:{docs:{story:{inline:!0}}}},this.projectAnnotations]),new external_STORYBOOK_MODULE_CHANNELS_.Channel({}));this.projectAnnotations=projectAnnotations;this.importPaths=new ConstantMap("./importPath/");this.titles=new ConstantMap("title-");this.storyIndex={v:5,entries:{}};this.moduleExportsByImportPath={};this.processMetaExports=metaExports=>{let importPath=this.importPaths.get(metaExports);this.moduleExportsByImportPath[importPath]=metaExports;let title=metaExports.default.title||this.titles.get(metaExports),csfFile=this.storyStoreValue.processCSFFileWithCache(metaExports,importPath,title);return Object.values(csfFile.stories).forEach(({id,name})=>{this.storyIndex.entries[id]={id,importPath,title,name,type:"story"};}),this.onStoriesChanged({storyIndex:this.storyIndex}),csfFile};this.docsContext=()=>new ExternalDocsContext(this.channel,this.storyStoreValue,this.renderStoryToElement.bind(this),this.processMetaExports.bind(this));}async getStoryIndexFromServer(){return this.storyIndex}};function usePreview(projectAnnotations){let previewRef=useRef();return previewRef.current||(previewRef.current=new ExternalPreview(projectAnnotations)),previewRef.current}function ExternalDocs({projectAnnotationsList,children}){let projectAnnotations=composeConfigs(projectAnnotationsList),preview2=usePreview(projectAnnotations),docsParameter={...projectAnnotations.parameters?.docs,page:()=>children};return React15.createElement(Docs,{docsParameter,context:preview2.docsContext()})}var preview,ExternalDocsContainer=({projectAnnotations,children})=>(preview||(preview=new ExternalPreview(projectAnnotations)),React15.createElement(DocsContext.Provider,{value:preview.docsContext()},React15.createElement(ThemeProvider,{theme:ensure(themes.light)},children)));var Meta=({of})=>{let context=(0,react.useContext)(DocsContext);of&&context.referenceMeta(of,!0);try{let primary=context.storyById();return react.createElement(Anchor,{storyId:primary.id})}catch{return null}};var Unstyled=props=>React15.createElement("div",{...props,className:"sb-unstyled"});var Wrapper11=({children})=>React15.createElement("div",{style:{fontFamily:"sans-serif"}},children);var PRIMARY_STORY="^"; + + + + +/***/ }), + +/***/ "../../../node_modules/@storybook/core/dist/components/index.js": +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ $n: () => (/* binding */ Bo), +/* harmony export */ Cy: () => (/* binding */ mu), +/* harmony export */ Df: () => (/* binding */ tB), +/* harmony export */ E7: () => (/* binding */ nu), +/* harmony export */ GP: () => (/* binding */ GL), +/* harmony export */ H2: () => (/* binding */ bu), +/* harmony export */ H3: () => (/* binding */ yu), +/* harmony export */ K0: () => (/* binding */ Tl), +/* harmony export */ N_: () => (/* binding */ Ou), +/* harmony export */ Q2: () => (/* binding */ I1), +/* harmony export */ YV: () => (/* binding */ q), +/* harmony export */ _: () => (/* binding */ LI), +/* harmony export */ _j: () => (/* binding */ P1), +/* harmony export */ aH: () => (/* binding */ GM), +/* harmony export */ bF: () => (/* binding */ dg), +/* harmony export */ dK: () => (/* binding */ MQ), +/* harmony export */ dL: () => (/* binding */ lp), +/* harmony export */ jZ: () => (/* binding */ YM), +/* harmony export */ kR: () => (/* binding */ bI), +/* harmony export */ lV: () => (/* binding */ xB), +/* harmony export */ mc: () => (/* binding */ te), +/* harmony export */ o4: () => (/* binding */ DI), +/* harmony export */ px: () => (/* binding */ Xl), +/* harmony export */ zH: () => (/* binding */ fu), +/* harmony export */ zb: () => (/* binding */ kt) +/* harmony export */ }); +/* unused harmony exports A, AddonPanel, Badge, Bar, Blockquote, ClipboardCode, DL, Div, DocumentWrapper, H1, H4, H5, H6, HR, IconButtonSkeleton, Icons, Img, LI, ListItem, Modal, OL, P, Placeholder, Pre, ScrollArea, Separator, Spaced, Span, StorybookIcon, StorybookLogo, Symbols, TT, TabBar, TabButton, TabWrapper, Table, Tabs, TooltipLinkList, TooltipMessage, UL, icons, interleaveSeparators, resetComponents */ +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/react/index.js"); +/* harmony import */ var _storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../../node_modules/@storybook/core/dist/theming/index.js"); +/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("../../../node_modules/react/jsx-runtime.js"); +/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("../../../node_modules/react-dom/index.js"); +/* harmony import */ var _storybook_core_client_logger__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("storybook/internal/client-logger"); +/* harmony import */ var _storybook_core_client_logger__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_storybook_core_client_logger__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _storybook_csf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("../../../node_modules/@storybook/csf/dist/index.mjs"); +var C4 = Object.create; +var Za = Object.defineProperty; +var E4 = Object.getOwnPropertyDescriptor; +var S4 = Object.getOwnPropertyNames; +var R4 = Object.getPrototypeOf, A4 = Object.prototype.hasOwnProperty; +var a = (e, t) => Za(e, "name", { value: t, configurable: !0 }), Zo = /* @__PURE__ */ ((e) => true ? __webpack_require__("../../../node_modules/@storybook/core/dist/components sync recursive") : 0)(function(e) { + if (true) return __webpack_require__("../../../node_modules/@storybook/core/dist/components sync recursive").apply(this, arguments); + throw Error('Dynamic require of "' + e + '" is not supported'); +}); +var F = (e, t) => () => (e && (t = e(e = 0)), t); +var _ = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), ln = (e, t) => { + for (var r in t) + Za(e, r, { get: t[r], enumerable: !0 }); +}, F4 = (e, t, r, n) => { + if (t && typeof t == "object" || typeof t == "function") + for (let o of S4(t)) + !A4.call(e, o) && o !== r && Za(e, o, { get: () => t[o], enumerable: !(n = E4(t, o)) || n.enumerable }); + return e; +}; +var we = (e, t, r) => (r = e != null ? C4(R4(e)) : {}, F4( + // If the importer is in node compatibility mode or this is not an ESM + // file that has been converted to a CommonJS file using a Babel- + // compatible transform (i.e. "__esModule" has not been set), then set + // "default" to the CommonJS "module.exports" for node compatibility. + t || !e || !e.__esModule ? Za(r, "default", { value: e, enumerable: !0 }) : r, + e +)); + +// ../node_modules/@babel/runtime/helpers/esm/extends.js +function $() { + return $ = Object.assign ? Object.assign.bind() : function(e) { + for (var t = 1; t < arguments.length; t++) { + var r = arguments[t]; + for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]); + } + return e; + }, $.apply(null, arguments); +} +var tt = F(() => { + a($, "_extends"); +}); + +// ../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +function Z1(e) { + if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return e; +} +var J1 = F(() => { + a(Z1, "_assertThisInitialized"); +}); + +// ../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +function Xt(e, t) { + return Xt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, n) { + return r.__proto__ = n, r; + }, Xt(e, t); +} +var Ja = F(() => { + a(Xt, "_setPrototypeOf"); +}); + +// ../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +function Qa(e) { + return Qa = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) { + return t.__proto__ || Object.getPrototypeOf(t); + }, Qa(e); +} +var ep = F(() => { + a(Qa, "_getPrototypeOf"); +}); + +// ../node_modules/@storybook/global/dist/index.mjs +var sn, ri = F(() => { + sn = (() => { + let e; + return typeof window < "u" ? e = window : typeof globalThis < "u" ? e = globalThis : typeof __webpack_require__.g < "u" ? e = __webpack_require__.g : typeof self < "u" ? + e = self : e = {}, e; + })(); +}); + +// ../node_modules/memoizerific/memoizerific.js +var ea = _((up, ms) => { + (function(e) { + if (typeof up == "object" && typeof ms < "u") + ms.exports = e(); + else if (typeof define == "function" && __webpack_require__.amdO) + define([], e); + else { + var t; + typeof window < "u" ? t = window : typeof __webpack_require__.g < "u" ? t = __webpack_require__.g : typeof self < "u" ? t = self : t = this, t.memoizerific = e(); + } + })(function() { + var e, t, r; + return (/* @__PURE__ */ a(function n(o, i, l) { + function u(d, h) { + if (!i[d]) { + if (!o[d]) { + var f = typeof Zo == "function" && Zo; + if (!h && f) return f(d, !0); + if (c) return c(d, !0); + var v = new Error("Cannot find module '" + d + "'"); + throw v.code = "MODULE_NOT_FOUND", v; + } + var b = i[d] = { exports: {} }; + o[d][0].call(b.exports, function(m) { + var g = o[d][1][m]; + return u(g || m); + }, b, b.exports, n, o, i, l); + } + return i[d].exports; + } + a(u, "s"); + for (var c = typeof Zo == "function" && Zo, p = 0; p < l.length; p++) u(l[p]); + return u; + }, "e"))({ 1: [function(n, o, i) { + o.exports = function(l) { + if (typeof Map != "function" || l) { + var u = n("./similar"); + return new u(); + } else + return /* @__PURE__ */ new Map(); + }; + }, { "./similar": 2 }], 2: [function(n, o, i) { + function l() { + return this.list = [], this.lastItem = void 0, this.size = 0, this; + } + a(l, "Similar"), l.prototype.get = function(u) { + var c; + if (this.lastItem && this.isEqual(this.lastItem.key, u)) + return this.lastItem.val; + if (c = this.indexOf(u), c >= 0) + return this.lastItem = this.list[c], this.list[c].val; + }, l.prototype.set = function(u, c) { + var p; + return this.lastItem && this.isEqual(this.lastItem.key, u) ? (this.lastItem.val = c, this) : (p = this.indexOf(u), p >= 0 ? (this.lastItem = + this.list[p], this.list[p].val = c, this) : (this.lastItem = { key: u, val: c }, this.list.push(this.lastItem), this.size++, this)); + }, l.prototype.delete = function(u) { + var c; + if (this.lastItem && this.isEqual(this.lastItem.key, u) && (this.lastItem = void 0), c = this.indexOf(u), c >= 0) + return this.size--, this.list.splice(c, 1)[0]; + }, l.prototype.has = function(u) { + var c; + return this.lastItem && this.isEqual(this.lastItem.key, u) ? !0 : (c = this.indexOf(u), c >= 0 ? (this.lastItem = this.list[c], !0) : + !1); + }, l.prototype.forEach = function(u, c) { + var p; + for (p = 0; p < this.size; p++) + u.call(c || this, this.list[p].val, this.list[p].key, this); + }, l.prototype.indexOf = function(u) { + var c; + for (c = 0; c < this.size; c++) + if (this.isEqual(this.list[c].key, u)) + return c; + return -1; + }, l.prototype.isEqual = function(u, c) { + return u === c || u !== u && c !== c; + }, o.exports = l; + }, {}], 3: [function(n, o, i) { + var l = n("map-or-similar"); + o.exports = function(d) { + var h = new l(!1), f = []; + return function(v) { + var b = /* @__PURE__ */ a(function() { + var m = h, g, y, w = arguments.length - 1, D = Array(w + 1), x = !0, C; + if ((b.numArgs || b.numArgs === 0) && b.numArgs !== w + 1) + throw new Error("Memoizerific functions should always be called with the same number of arguments"); + for (C = 0; C < w; C++) { + if (D[C] = { + cacheItem: m, + arg: arguments[C] + }, m.has(arguments[C])) { + m = m.get(arguments[C]); + continue; + } + x = !1, g = new l(!1), m.set(arguments[C], g), m = g; + } + return x && (m.has(arguments[w]) ? y = m.get(arguments[w]) : x = !1), x || (y = v.apply(null, arguments), m.set(arguments[w], y)), + d > 0 && (D[w] = { + cacheItem: m, + arg: arguments[w] + }, x ? u(f, D) : f.push(D), f.length > d && c(f.shift())), b.wasMemoized = x, b.numArgs = w + 1, y; + }, "memoizerific"); + return b.limit = d, b.wasMemoized = !1, b.cache = h, b.lru = f, b; + }; + }; + function u(d, h) { + var f = d.length, v = h.length, b, m, g; + for (m = 0; m < f; m++) { + for (b = !0, g = 0; g < v; g++) + if (!p(d[m][g].arg, h[g].arg)) { + b = !1; + break; + } + if (b) + break; + } + d.push(d.splice(m, 1)[0]); + } + a(u, "moveToMostRecentLru"); + function c(d) { + var h = d.length, f = d[h - 1], v, b; + for (f.cacheItem.delete(f.arg), b = h - 2; b >= 0 && (f = d[b], v = f.cacheItem.get(f.arg), !v || !v.size); b--) + f.cacheItem.delete(f.arg); + } + a(c, "removeCachedResult"); + function p(d, h) { + return d === h || d !== d && h !== h; + } + a(p, "isEqual"); + }, { "map-or-similar": 1 }] }, {}, [3])(3); + }); +}); + +// ../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +function un(e, t) { + if (e == null) return {}; + var r = {}; + for (var n in e) if ({}.hasOwnProperty.call(e, n)) { + if (t.indexOf(n) >= 0) continue; + r[n] = e[n]; + } + return r; +} +var ni = F(() => { + a(un, "_objectWithoutPropertiesLoose"); +}); + +// ../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +function cp(e, t) { + if (e == null) return {}; + var r, n, o = un(e, t); + if (Object.getOwnPropertySymbols) { + var i = Object.getOwnPropertySymbols(e); + for (n = 0; n < i.length; n++) r = i[n], t.indexOf(r) >= 0 || {}.propertyIsEnumerable.call(e, r) && (o[r] = e[r]); + } + return o; +} +var pp = F(() => { + ni(); + a(cp, "_objectWithoutProperties"); +}); + +// ../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +function ta(e, t) { + (t == null || t > e.length) && (t = e.length); + for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r]; + return n; +} +var gs = F(() => { + a(ta, "_arrayLikeToArray"); +}); + +// ../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +function dp(e) { + if (Array.isArray(e)) return ta(e); +} +var fp = F(() => { + gs(); + a(dp, "_arrayWithoutHoles"); +}); + +// ../node_modules/@babel/runtime/helpers/esm/iterableToArray.js +function hp(e) { + if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); +} +var mp = F(() => { + a(hp, "_iterableToArray"); +}); + +// ../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +function gp(e, t) { + if (e) { + if (typeof e == "string") return ta(e, t); + var r = {}.toString.call(e).slice(8, -1); + return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/. + test(r) ? ta(e, t) : void 0; + } +} +var vp = F(() => { + gs(); + a(gp, "_unsupportedIterableToArray"); +}); + +// ../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +function wp() { + throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); +} +var bp = F(() => { + a(wp, "_nonIterableSpread"); +}); + +// ../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +function yp(e) { + return dp(e) || hp(e) || gp(e) || wp(); +} +var Dp = F(() => { + fp(); + mp(); + vp(); + bp(); + a(yp, "_toConsumableArray"); +}); + +// ../node_modules/@babel/runtime/helpers/esm/typeof.js +function br(e) { + "@babel/helpers - typeof"; + return br = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { + return typeof t; + } : function(t) { + return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; + }, br(e); +} +var vs = F(() => { + a(br, "_typeof"); +}); + +// ../node_modules/@babel/runtime/helpers/esm/toPrimitive.js +function xp(e, t) { + if (br(e) != "object" || !e) return e; + var r = e[Symbol.toPrimitive]; + if (r !== void 0) { + var n = r.call(e, t || "default"); + if (br(n) != "object") return n; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return (t === "string" ? String : Number)(e); +} +var Cp = F(() => { + vs(); + a(xp, "toPrimitive"); +}); + +// ../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +function Ep(e) { + var t = xp(e, "string"); + return br(t) == "symbol" ? t : t + ""; +} +var Sp = F(() => { + vs(); + Cp(); + a(Ep, "toPropertyKey"); +}); + +// ../node_modules/@babel/runtime/helpers/esm/defineProperty.js +function oi(e, t, r) { + return (t = Ep(t)) in e ? Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = r, e; +} +var ws = F(() => { + Sp(); + a(oi, "_defineProperty"); +}); + +// ../node_modules/react-syntax-highlighter/dist/esm/create-element.js + +function Rp(e, t) { + var r = Object.keys(e); + if (Object.getOwnPropertySymbols) { + var n = Object.getOwnPropertySymbols(e); + t && (n = n.filter(function(o) { + return Object.getOwnPropertyDescriptor(e, o).enumerable; + })), r.push.apply(r, n); + } + return r; +} +function cn(e) { + for (var t = 1; t < arguments.length; t++) { + var r = arguments[t] != null ? arguments[t] : {}; + t % 2 ? Rp(Object(r), !0).forEach(function(n) { + oi(e, n, r[n]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Rp(Object(r)).forEach(function(n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n)); + }); + } + return e; +} +function i7(e) { + var t = e.length; + if (t === 0 || t === 1) return e; + if (t === 2) + return [e[0], e[1], "".concat(e[0], ".").concat(e[1]), "".concat(e[1], ".").concat(e[0])]; + if (t === 3) + return [e[0], e[1], e[2], "".concat(e[0], ".").concat(e[1]), "".concat(e[0], ".").concat(e[2]), "".concat(e[1], ".").concat(e[0]), "".concat( + e[1], ".").concat(e[2]), "".concat(e[2], ".").concat(e[0]), "".concat(e[2], ".").concat(e[1]), "".concat(e[0], ".").concat(e[1], ".").concat( + e[2]), "".concat(e[0], ".").concat(e[2], ".").concat(e[1]), "".concat(e[1], ".").concat(e[0], ".").concat(e[2]), "".concat(e[1], ".").concat( + e[2], ".").concat(e[0]), "".concat(e[2], ".").concat(e[0], ".").concat(e[1]), "".concat(e[2], ".").concat(e[1], ".").concat(e[0])]; + if (t >= 4) + return [e[0], e[1], e[2], e[3], "".concat(e[0], ".").concat(e[1]), "".concat(e[0], ".").concat(e[2]), "".concat(e[0], ".").concat(e[3]), + "".concat(e[1], ".").concat(e[0]), "".concat(e[1], ".").concat(e[2]), "".concat(e[1], ".").concat(e[3]), "".concat(e[2], ".").concat(e[0]), + "".concat(e[2], ".").concat(e[1]), "".concat(e[2], ".").concat(e[3]), "".concat(e[3], ".").concat(e[0]), "".concat(e[3], ".").concat(e[1]), + "".concat(e[3], ".").concat(e[2]), "".concat(e[0], ".").concat(e[1], ".").concat(e[2]), "".concat(e[0], ".").concat(e[1], ".").concat(e[3]), + "".concat(e[0], ".").concat(e[2], ".").concat(e[1]), "".concat(e[0], ".").concat(e[2], ".").concat(e[3]), "".concat(e[0], ".").concat(e[3], + ".").concat(e[1]), "".concat(e[0], ".").concat(e[3], ".").concat(e[2]), "".concat(e[1], ".").concat(e[0], ".").concat(e[2]), "".concat(e[1], + ".").concat(e[0], ".").concat(e[3]), "".concat(e[1], ".").concat(e[2], ".").concat(e[0]), "".concat(e[1], ".").concat(e[2], ".").concat( + e[3]), "".concat(e[1], ".").concat(e[3], ".").concat(e[0]), "".concat(e[1], ".").concat(e[3], ".").concat(e[2]), "".concat(e[2], ".").concat( + e[0], ".").concat(e[1]), "".concat(e[2], ".").concat(e[0], ".").concat(e[3]), "".concat(e[2], ".").concat(e[1], ".").concat(e[0]), "".concat( + e[2], ".").concat(e[1], ".").concat(e[3]), "".concat(e[2], ".").concat(e[3], ".").concat(e[0]), "".concat(e[2], ".").concat(e[3], ".").concat( + e[1]), "".concat(e[3], ".").concat(e[0], ".").concat(e[1]), "".concat(e[3], ".").concat(e[0], ".").concat(e[2]), "".concat(e[3], ".").concat( + e[1], ".").concat(e[0]), "".concat(e[3], ".").concat(e[1], ".").concat(e[2]), "".concat(e[3], ".").concat(e[2], ".").concat(e[0]), "".concat( + e[3], ".").concat(e[2], ".").concat(e[1]), "".concat(e[0], ".").concat(e[1], ".").concat(e[2], ".").concat(e[3]), "".concat(e[0], ".").concat( + e[1], ".").concat(e[3], ".").concat(e[2]), "".concat(e[0], ".").concat(e[2], ".").concat(e[1], ".").concat(e[3]), "".concat(e[0], ".").concat( + e[2], ".").concat(e[3], ".").concat(e[1]), "".concat(e[0], ".").concat(e[3], ".").concat(e[1], ".").concat(e[2]), "".concat(e[0], ".").concat( + e[3], ".").concat(e[2], ".").concat(e[1]), "".concat(e[1], ".").concat(e[0], ".").concat(e[2], ".").concat(e[3]), "".concat(e[1], ".").concat( + e[0], ".").concat(e[3], ".").concat(e[2]), "".concat(e[1], ".").concat(e[2], ".").concat(e[0], ".").concat(e[3]), "".concat(e[1], ".").concat( + e[2], ".").concat(e[3], ".").concat(e[0]), "".concat(e[1], ".").concat(e[3], ".").concat(e[0], ".").concat(e[2]), "".concat(e[1], ".").concat( + e[3], ".").concat(e[2], ".").concat(e[0]), "".concat(e[2], ".").concat(e[0], ".").concat(e[1], ".").concat(e[3]), "".concat(e[2], ".").concat( + e[0], ".").concat(e[3], ".").concat(e[1]), "".concat(e[2], ".").concat(e[1], ".").concat(e[0], ".").concat(e[3]), "".concat(e[2], ".").concat( + e[1], ".").concat(e[3], ".").concat(e[0]), "".concat(e[2], ".").concat(e[3], ".").concat(e[0], ".").concat(e[1]), "".concat(e[2], ".").concat( + e[3], ".").concat(e[1], ".").concat(e[0]), "".concat(e[3], ".").concat(e[0], ".").concat(e[1], ".").concat(e[2]), "".concat(e[3], ".").concat( + e[0], ".").concat(e[2], ".").concat(e[1]), "".concat(e[3], ".").concat(e[1], ".").concat(e[0], ".").concat(e[2]), "".concat(e[3], ".").concat( + e[1], ".").concat(e[2], ".").concat(e[0]), "".concat(e[3], ".").concat(e[2], ".").concat(e[0], ".").concat(e[1]), "".concat(e[3], ".").concat( + e[2], ".").concat(e[1], ".").concat(e[0])]; +} +function l7(e) { + if (e.length === 0 || e.length === 1) return e; + var t = e.join("."); + return bs[t] || (bs[t] = i7(e)), bs[t]; +} +function s7(e) { + var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 ? arguments[2] : void 0, n = e.filter( + function(i) { + return i !== "token"; + }), o = l7(n); + return o.reduce(function(i, l) { + return cn(cn({}, i), r[l]); + }, t); +} +function Ap(e) { + return e.join(" "); +} +function u7(e, t) { + var r = 0; + return function(n) { + return r += 1, n.map(function(o, i) { + return yr({ + node: o, + stylesheet: e, + useInlineStyles: t, + key: "code-segment-".concat(r, "-").concat(i) + }); + }); + }; +} +function yr(e) { + var t = e.node, r = e.stylesheet, n = e.style, o = n === void 0 ? {} : n, i = e.useInlineStyles, l = e.key, u = t.properties, c = t.type, p = t. + tagName, d = t.value; + if (c === "text") + return d; + if (p) { + var h = u7(r, i), f; + if (!i) + f = cn(cn({}, u), {}, { + className: Ap(u.className) + }); + else { + var v = Object.keys(r).reduce(function(y, w) { + return w.split(".").forEach(function(D) { + y.includes(D) || y.push(D); + }), y; + }, []), b = u.className && u.className.includes("token") ? ["token"] : [], m = u.className && b.concat(u.className.filter(function(y) { + return !v.includes(y); + })); + f = cn(cn({}, u), {}, { + className: Ap(m) || void 0, + style: s7(u.className, Object.assign({}, u.style, o), r) + }); + } + var g = h(t.children); + return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement(p, $({ + key: l + }, f), g); + } +} +var bs, ys = F(() => { + tt(); + ws(); + a(Rp, "ownKeys"); + a(cn, "_objectSpread"); + a(i7, "powerSetPermutations"); + bs = {}; + a(l7, "getClassNameCombinations"); + a(s7, "createStyleObject"); + a(Ap, "createClassNameString"); + a(u7, "createChildren"); + a(yr, "createElement"); +}); + +// ../node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js +var Fp, kp = F(() => { + Fp = /* @__PURE__ */ a(function(e, t) { + var r = e.listLanguages(); + return r.indexOf(t) !== -1; + }, "default"); +}); + +// ../node_modules/react-syntax-highlighter/dist/esm/highlight.js + +function Tp(e, t) { + var r = Object.keys(e); + if (Object.getOwnPropertySymbols) { + var n = Object.getOwnPropertySymbols(e); + t && (n = n.filter(function(o) { + return Object.getOwnPropertyDescriptor(e, o).enumerable; + })), r.push.apply(r, n); + } + return r; +} +function mt(e) { + for (var t = 1; t < arguments.length; t++) { + var r = arguments[t] != null ? arguments[t] : {}; + t % 2 ? Tp(Object(r), !0).forEach(function(n) { + oi(e, n, r[n]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Tp(Object(r)).forEach(function(n) { + Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n)); + }); + } + return e; +} +function d7(e) { + return e.match(p7); +} +function f7(e) { + var t = e.lines, r = e.startingLineNumber, n = e.style; + return t.map(function(o, i) { + var l = i + r; + return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { + key: "line-".concat(i), + className: "react-syntax-highlighter-line-number", + style: typeof n == "function" ? n(l) : n + }, "".concat(l, ` +`)); + }); +} +function h7(e) { + var t = e.codeString, r = e.codeStyle, n = e.containerStyle, o = n === void 0 ? { + float: "left", + paddingRight: "10px" + } : n, i = e.numberStyle, l = i === void 0 ? {} : i, u = e.startingLineNumber; + return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement("code", { + style: Object.assign({}, r, o) + }, f7({ + lines: t.replace(/\n$/, "").split(` +`), + style: l, + startingLineNumber: u + })); +} +function m7(e) { + return "".concat(e.toString().length, ".25em"); +} +function Lp(e, t) { + return { + type: "element", + tagName: "span", + properties: { + key: "line-number--".concat(e), + className: ["comment", "linenumber", "react-syntax-highlighter-line-number"], + style: t + }, + children: [{ + type: "text", + value: e + }] + }; +} +function Bp(e, t, r) { + var n = { + display: "inline-block", + minWidth: m7(r), + paddingRight: "1em", + textAlign: "right", + userSelect: "none" + }, o = typeof e == "function" ? e(t) : e, i = mt(mt({}, n), o); + return i; +} +function ai(e) { + var t = e.children, r = e.lineNumber, n = e.lineNumberStyle, o = e.largestLineNumber, i = e.showInlineLineNumbers, l = e.lineProps, u = l === + void 0 ? {} : l, c = e.className, p = c === void 0 ? [] : c, d = e.showLineNumbers, h = e.wrapLongLines, f = typeof u == "function" ? u(r) : + u; + if (f.className = p, r && i) { + var v = Bp(n, r, o); + t.unshift(Lp(r, v)); + } + return h & d && (f.style = mt(mt({}, f.style), {}, { + display: "flex" + })), { + type: "element", + tagName: "span", + properties: f, + children: t + }; +} +function Ip(e) { + for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : + [], n = 0; n < e.length; n++) { + var o = e[n]; + if (o.type === "text") + r.push(ai({ + children: [o], + className: yp(new Set(t)) + })); + else if (o.children) { + var i = t.concat(o.properties.className); + Ip(o.children, i).forEach(function(l) { + return r.push(l); + }); + } + } + return r; +} +function g7(e, t, r, n, o, i, l, u, c) { + var p, d = Ip(e.value), h = [], f = -1, v = 0; + function b(C, E) { + var S = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []; + return ai({ + children: C, + lineNumber: E, + lineNumberStyle: u, + largestLineNumber: l, + showInlineLineNumbers: o, + lineProps: r, + className: S, + showLineNumbers: n, + wrapLongLines: c + }); + } + a(b, "createWrappedLine"); + function m(C, E) { + if (n && E && o) { + var S = Bp(u, E, l); + C.unshift(Lp(E, S)); + } + return C; + } + a(m, "createUnwrappedLine"); + function g(C, E) { + var S = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []; + return t || S.length > 0 ? b(C, E, S) : m(C, E); + } + a(g, "createLine"); + for (var y = /* @__PURE__ */ a(function() { + var E = d[v], S = E.children[0].value, R = d7(S); + if (R) { + var A = S.split(` +`); + A.forEach(function(k, I) { + var H = n && h.length + i, M = { + type: "text", + value: "".concat(k, ` +`) + }; + if (I === 0) { + var W = d.slice(f + 1, v).concat(ai({ + children: [M], + className: E.properties.className + })), T = g(W, H); + h.push(T); + } else if (I === A.length - 1) { + var L = d[v + 1] && d[v + 1].children && d[v + 1].children[0], P = { + type: "text", + value: "".concat(k) + }; + if (L) { + var U = ai({ + children: [P], + className: E.properties.className + }); + d.splice(v + 1, 0, U); + } else { + var N = [P], G = g(N, H, E.properties.className); + h.push(G); + } + } else { + var z = [M], K = g(z, H, E.properties.className); + h.push(K); + } + }), f = v; + } + v++; + }, "_loop"); v < d.length; ) + y(); + if (f !== d.length - 1) { + var w = d.slice(f + 1, d.length); + if (w && w.length) { + var D = n && h.length + i, x = g(w, D); + h.push(x); + } + } + return t ? h : (p = []).concat.apply(p, h); +} +function v7(e) { + var t = e.rows, r = e.stylesheet, n = e.useInlineStyles; + return t.map(function(o, i) { + return yr({ + node: o, + stylesheet: r, + useInlineStyles: n, + key: "code-segement".concat(i) + }); + }); +} +function Mp(e) { + return e && typeof e.highlightAuto < "u"; +} +function w7(e) { + var t = e.astGenerator, r = e.language, n = e.code, o = e.defaultCodeValue; + if (Mp(t)) { + var i = Fp(t, r); + return r === "text" ? { + value: o, + language: "text" + } : i ? t.highlight(r, n) : t.highlightAuto(n); + } + try { + return r && r !== "text" ? { + value: t.highlight(n, r) + } : { + value: o + }; + } catch { + return { + value: o + }; + } +} +function Ds(e, t) { + return /* @__PURE__ */ a(function(n) { + var o = n.language, i = n.children, l = n.style, u = l === void 0 ? t : l, c = n.customStyle, p = c === void 0 ? {} : c, d = n.codeTagProps, + h = d === void 0 ? { + className: o ? "language-".concat(o) : void 0, + style: mt(mt({}, u['code[class*="language-"]']), u['code[class*="language-'.concat(o, '"]')]) + } : d, f = n.useInlineStyles, v = f === void 0 ? !0 : f, b = n.showLineNumbers, m = b === void 0 ? !1 : b, g = n.showInlineLineNumbers, y = g === + void 0 ? !0 : g, w = n.startingLineNumber, D = w === void 0 ? 1 : w, x = n.lineNumberContainerStyle, C = n.lineNumberStyle, E = C === void 0 ? + {} : C, S = n.wrapLines, R = n.wrapLongLines, A = R === void 0 ? !1 : R, k = n.lineProps, I = k === void 0 ? {} : k, H = n.renderer, M = n. + PreTag, W = M === void 0 ? "pre" : M, T = n.CodeTag, L = T === void 0 ? "code" : T, P = n.code, U = P === void 0 ? (Array.isArray(i) ? i[0] : + i) || "" : P, N = n.astGenerator, G = cp(n, c7); + N = N || e; + var z = m ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement(h7, { + containerStyle: x, + codeStyle: h.style || {}, + numberStyle: E, + startingLineNumber: D, + codeString: U + }) : null, K = u.hljs || u['pre[class*="language-"]'] || { + backgroundColor: "#fff" + }, Te = Mp(N) ? "hljs" : "prismjs", ve = v ? Object.assign({}, G, { + style: Object.assign({}, K, p) + }) : Object.assign({}, G, { + className: G.className ? "".concat(Te, " ").concat(G.className) : Te, + style: Object.assign({}, p) + }); + if (A ? h.style = mt(mt({}, h.style), {}, { + whiteSpace: "pre-wrap" + }) : h.style = mt(mt({}, h.style), {}, { + whiteSpace: "pre" + }), !N) + return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement(W, ve, z, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement(L, h, U)); + (S === void 0 && H || A) && (S = !0), H = H || v7; + var de = [{ + type: "text", + value: U + }], Ce = w7({ + astGenerator: N, + language: o, + code: U, + defaultCodeValue: de + }); + Ce.language === null && (Ce.value = de); + var Le = Ce.value.length + D, Be = g7(Ce, S, I, m, y, D, Le, E, A); + return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement(W, ve, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement(L, h, !y && z, H({ + rows: Be, + stylesheet: u, + useInlineStyles: v + }))); + }, "SyntaxHighlighter"); +} +var c7, p7, _p = F(() => { + pp(); + Dp(); + ws(); + ys(); + kp(); + c7 = ["language", "children", "style", "customStyle", "codeTagProps", "useInlineStyles", "showLineNumbers", "showInlineLineNumbers", "star\ +tingLineNumber", "lineNumberContainerStyle", "lineNumberStyle", "wrapLines", "wrapLongLines", "lineProps", "renderer", "PreTag", "CodeTag", "\ +code", "astGenerator"]; + a(Tp, "ownKeys"); + a(mt, "_objectSpread"); + p7 = /\n/g; + a(d7, "getNewLines"); + a(f7, "getAllLineNumbers"); + a(h7, "AllLineNumbers"); + a(m7, "getEmWidthOfNumber"); + a(Lp, "getInlineLineNumber"); + a(Bp, "assembleLineNumberStyles"); + a(ai, "createLineElement"); + a(Ip, "flattenCodeTree"); + a(g7, "processLines"); + a(v7, "defaultRenderer"); + a(Mp, "isHighlightJs"); + a(w7, "getCodeTree"); + a(Ds, "default"); +}); + +// ../node_modules/xtend/immutable.js +var Hp = _((rH, Pp) => { + Pp.exports = y7; + var b7 = Object.prototype.hasOwnProperty; + function y7() { + for (var e = {}, t = 0; t < arguments.length; t++) { + var r = arguments[t]; + for (var n in r) + b7.call(r, n) && (e[n] = r[n]); + } + return e; + } + a(y7, "extend"); +}); + +// ../node_modules/hastscript/node_modules/property-information/lib/util/schema.js +var Cs = _((oH, $p) => { + "use strict"; + $p.exports = zp; + var xs = zp.prototype; + xs.space = null; + xs.normal = {}; + xs.property = {}; + function zp(e, t, r) { + this.property = e, this.normal = t, r && (this.space = r); + } + a(zp, "Schema"); +}); + +// ../node_modules/hastscript/node_modules/property-information/lib/util/merge.js +var jp = _((iH, Np) => { + "use strict"; + var Op = Hp(), D7 = Cs(); + Np.exports = x7; + function x7(e) { + for (var t = e.length, r = [], n = [], o = -1, i, l; ++o < t; ) + i = e[o], r.push(i.property), n.push(i.normal), l = i.space; + return new D7( + Op.apply(null, r), + Op.apply(null, n), + l + ); + } + a(x7, "merge"); +}); + +// ../node_modules/hastscript/node_modules/property-information/normalize.js +var ii = _((sH, Vp) => { + "use strict"; + Vp.exports = C7; + function C7(e) { + return e.toLowerCase(); + } + a(C7, "normalize"); +}); + +// ../node_modules/hastscript/node_modules/property-information/lib/util/info.js +var Es = _((cH, Wp) => { + "use strict"; + Wp.exports = qp; + var We = qp.prototype; + We.space = null; + We.attribute = null; + We.property = null; + We.boolean = !1; + We.booleanish = !1; + We.overloadedBoolean = !1; + We.number = !1; + We.commaSeparated = !1; + We.spaceSeparated = !1; + We.commaOrSpaceSeparated = !1; + We.mustUseProperty = !1; + We.defined = !1; + function qp(e, t) { + this.property = e, this.attribute = t; + } + a(qp, "Info"); +}); + +// ../node_modules/hastscript/node_modules/property-information/lib/util/types.js +var li = _((Kt) => { + "use strict"; + var E7 = 0; + Kt.boolean = xr(); + Kt.booleanish = xr(); + Kt.overloadedBoolean = xr(); + Kt.number = xr(); + Kt.spaceSeparated = xr(); + Kt.commaSeparated = xr(); + Kt.commaOrSpaceSeparated = xr(); + function xr() { + return Math.pow(2, ++E7); + } + a(xr, "increment"); +}); + +// ../node_modules/hastscript/node_modules/property-information/lib/util/defined-info.js +var Rs = _((hH, Kp) => { + "use strict"; + var Xp = Es(), Up = li(); + Kp.exports = Ss; + Ss.prototype = new Xp(); + Ss.prototype.defined = !0; + var Yp = [ + "boolean", + "booleanish", + "overloadedBoolean", + "number", + "commaSeparated", + "spaceSeparated", + "commaOrSpaceSeparated" + ], S7 = Yp.length; + function Ss(e, t, r, n) { + var o = -1, i; + for (Gp(this, "space", n), Xp.call(this, e, t); ++o < S7; ) + i = Yp[o], Gp(this, i, (r & Up[i]) === Up[i]); + } + a(Ss, "DefinedInfo"); + function Gp(e, t, r) { + r && (e[t] = r); + } + a(Gp, "mark"); +}); + +// ../node_modules/hastscript/node_modules/property-information/lib/util/create.js +var pn = _((gH, Jp) => { + "use strict"; + var Zp = ii(), R7 = Cs(), A7 = Rs(); + Jp.exports = F7; + function F7(e) { + var t = e.space, r = e.mustUseProperty || [], n = e.attributes || {}, o = e.properties, i = e.transform, l = {}, u = {}, c, p; + for (c in o) + p = new A7( + c, + i(n, c), + o[c], + t + ), r.indexOf(c) !== -1 && (p.mustUseProperty = !0), l[c] = p, u[Zp(c)] = c, u[Zp(p.attribute)] = c; + return new R7(l, u, t); + } + a(F7, "create"); +}); + +// ../node_modules/hastscript/node_modules/property-information/lib/xlink.js +var ed = _((wH, Qp) => { + "use strict"; + var k7 = pn(); + Qp.exports = k7({ + space: "xlink", + transform: T7, + properties: { + xLinkActuate: null, + xLinkArcRole: null, + xLinkHref: null, + xLinkRole: null, + xLinkShow: null, + xLinkTitle: null, + xLinkType: null + } + }); + function T7(e, t) { + return "xlink:" + t.slice(5).toLowerCase(); + } + a(T7, "xlinkTransform"); +}); + +// ../node_modules/hastscript/node_modules/property-information/lib/xml.js +var rd = _((yH, td) => { + "use strict"; + var L7 = pn(); + td.exports = L7({ + space: "xml", + transform: B7, + properties: { + xmlLang: null, + xmlBase: null, + xmlSpace: null + } + }); + function B7(e, t) { + return "xml:" + t.slice(3).toLowerCase(); + } + a(B7, "xmlTransform"); +}); + +// ../node_modules/hastscript/node_modules/property-information/lib/util/case-sensitive-transform.js +var od = _((xH, nd) => { + "use strict"; + nd.exports = I7; + function I7(e, t) { + return t in e ? e[t] : t; + } + a(I7, "caseSensitiveTransform"); +}); + +// ../node_modules/hastscript/node_modules/property-information/lib/util/case-insensitive-transform.js +var As = _((EH, ad) => { + "use strict"; + var M7 = od(); + ad.exports = _7; + function _7(e, t) { + return M7(e, t.toLowerCase()); + } + a(_7, "caseInsensitiveTransform"); +}); + +// ../node_modules/hastscript/node_modules/property-information/lib/xmlns.js +var ld = _((RH, id) => { + "use strict"; + var P7 = pn(), H7 = As(); + id.exports = P7({ + space: "xmlns", + attributes: { + xmlnsxlink: "xmlns:xlink" + }, + transform: H7, + properties: { + xmlns: null, + xmlnsXLink: null + } + }); +}); + +// ../node_modules/hastscript/node_modules/property-information/lib/aria.js +var ud = _((AH, sd) => { + "use strict"; + var Fs = li(), z7 = pn(), Me = Fs.booleanish, Ue = Fs.number, Cr = Fs.spaceSeparated; + sd.exports = z7({ + transform: $7, + properties: { + ariaActiveDescendant: null, + ariaAtomic: Me, + ariaAutoComplete: null, + ariaBusy: Me, + ariaChecked: Me, + ariaColCount: Ue, + ariaColIndex: Ue, + ariaColSpan: Ue, + ariaControls: Cr, + ariaCurrent: null, + ariaDescribedBy: Cr, + ariaDetails: null, + ariaDisabled: Me, + ariaDropEffect: Cr, + ariaErrorMessage: null, + ariaExpanded: Me, + ariaFlowTo: Cr, + ariaGrabbed: Me, + ariaHasPopup: null, + ariaHidden: Me, + ariaInvalid: null, + ariaKeyShortcuts: null, + ariaLabel: null, + ariaLabelledBy: Cr, + ariaLevel: Ue, + ariaLive: null, + ariaModal: Me, + ariaMultiLine: Me, + ariaMultiSelectable: Me, + ariaOrientation: null, + ariaOwns: Cr, + ariaPlaceholder: null, + ariaPosInSet: Ue, + ariaPressed: Me, + ariaReadOnly: Me, + ariaRelevant: null, + ariaRequired: Me, + ariaRoleDescription: Cr, + ariaRowCount: Ue, + ariaRowIndex: Ue, + ariaRowSpan: Ue, + ariaSelected: Me, + ariaSetSize: Ue, + ariaSort: null, + ariaValueMax: Ue, + ariaValueMin: Ue, + ariaValueNow: Ue, + ariaValueText: null, + role: null + } + }); + function $7(e, t) { + return t === "role" ? t : "aria-" + t.slice(4).toLowerCase(); + } + a($7, "ariaTransform"); +}); + +// ../node_modules/hastscript/node_modules/property-information/lib/html.js +var pd = _((kH, cd) => { + "use strict"; + var dn = li(), O7 = pn(), N7 = As(), V = dn.boolean, j7 = dn.overloadedBoolean, ra = dn.booleanish, Z = dn.number, Re = dn.spaceSeparated, + si = dn.commaSeparated; + cd.exports = O7({ + space: "html", + attributes: { + acceptcharset: "accept-charset", + classname: "class", + htmlfor: "for", + httpequiv: "http-equiv" + }, + transform: N7, + mustUseProperty: ["checked", "multiple", "muted", "selected"], + properties: { + // Standard Properties. + abbr: null, + accept: si, + acceptCharset: Re, + accessKey: Re, + action: null, + allow: null, + allowFullScreen: V, + allowPaymentRequest: V, + allowUserMedia: V, + alt: null, + as: null, + async: V, + autoCapitalize: null, + autoComplete: Re, + autoFocus: V, + autoPlay: V, + capture: V, + charSet: null, + checked: V, + cite: null, + className: Re, + cols: Z, + colSpan: null, + content: null, + contentEditable: ra, + controls: V, + controlsList: Re, + coords: Z | si, + crossOrigin: null, + data: null, + dateTime: null, + decoding: null, + default: V, + defer: V, + dir: null, + dirName: null, + disabled: V, + download: j7, + draggable: ra, + encType: null, + enterKeyHint: null, + form: null, + formAction: null, + formEncType: null, + formMethod: null, + formNoValidate: V, + formTarget: null, + headers: Re, + height: Z, + hidden: V, + high: Z, + href: null, + hrefLang: null, + htmlFor: Re, + httpEquiv: Re, + id: null, + imageSizes: null, + imageSrcSet: si, + inputMode: null, + integrity: null, + is: null, + isMap: V, + itemId: null, + itemProp: Re, + itemRef: Re, + itemScope: V, + itemType: Re, + kind: null, + label: null, + lang: null, + language: null, + list: null, + loading: null, + loop: V, + low: Z, + manifest: null, + max: null, + maxLength: Z, + media: null, + method: null, + min: null, + minLength: Z, + multiple: V, + muted: V, + name: null, + nonce: null, + noModule: V, + noValidate: V, + onAbort: null, + onAfterPrint: null, + onAuxClick: null, + onBeforePrint: null, + onBeforeUnload: null, + onBlur: null, + onCancel: null, + onCanPlay: null, + onCanPlayThrough: null, + onChange: null, + onClick: null, + onClose: null, + onContextMenu: null, + onCopy: null, + onCueChange: null, + onCut: null, + onDblClick: null, + onDrag: null, + onDragEnd: null, + onDragEnter: null, + onDragExit: null, + onDragLeave: null, + onDragOver: null, + onDragStart: null, + onDrop: null, + onDurationChange: null, + onEmptied: null, + onEnded: null, + onError: null, + onFocus: null, + onFormData: null, + onHashChange: null, + onInput: null, + onInvalid: null, + onKeyDown: null, + onKeyPress: null, + onKeyUp: null, + onLanguageChange: null, + onLoad: null, + onLoadedData: null, + onLoadedMetadata: null, + onLoadEnd: null, + onLoadStart: null, + onMessage: null, + onMessageError: null, + onMouseDown: null, + onMouseEnter: null, + onMouseLeave: null, + onMouseMove: null, + onMouseOut: null, + onMouseOver: null, + onMouseUp: null, + onOffline: null, + onOnline: null, + onPageHide: null, + onPageShow: null, + onPaste: null, + onPause: null, + onPlay: null, + onPlaying: null, + onPopState: null, + onProgress: null, + onRateChange: null, + onRejectionHandled: null, + onReset: null, + onResize: null, + onScroll: null, + onSecurityPolicyViolation: null, + onSeeked: null, + onSeeking: null, + onSelect: null, + onSlotChange: null, + onStalled: null, + onStorage: null, + onSubmit: null, + onSuspend: null, + onTimeUpdate: null, + onToggle: null, + onUnhandledRejection: null, + onUnload: null, + onVolumeChange: null, + onWaiting: null, + onWheel: null, + open: V, + optimum: Z, + pattern: null, + ping: Re, + placeholder: null, + playsInline: V, + poster: null, + preload: null, + readOnly: V, + referrerPolicy: null, + rel: Re, + required: V, + reversed: V, + rows: Z, + rowSpan: Z, + sandbox: Re, + scope: null, + scoped: V, + seamless: V, + selected: V, + shape: null, + size: Z, + sizes: null, + slot: null, + span: Z, + spellCheck: ra, + src: null, + srcDoc: null, + srcLang: null, + srcSet: si, + start: Z, + step: null, + style: null, + tabIndex: Z, + target: null, + title: null, + translate: null, + type: null, + typeMustMatch: V, + useMap: null, + value: ra, + width: Z, + wrap: null, + // Legacy. + // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis + align: null, + // Several. Use CSS `text-align` instead, + aLink: null, + // ``. Use CSS `a:active {color}` instead + archive: Re, + // ``. List of URIs to archives + axis: null, + // `` and ``. Use `scope` on `` + background: null, + // ``. Use CSS `background-image` instead + bgColor: null, + // `` and table elements. Use CSS `background-color` instead + border: Z, + // ``. Use CSS `border-width` instead, + borderColor: null, + // `
`. Use CSS `border-color` instead, + bottomMargin: Z, + // `` + cellPadding: null, + // `
` + cellSpacing: null, + // `
` + char: null, + // Several table elements. When `align=char`, sets the character to align on + charOff: null, + // Several table elements. When `char`, offsets the alignment + classId: null, + // `` + clear: null, + // `
`. Use CSS `clear` instead + code: null, + // `` + codeBase: null, + // `` + codeType: null, + // `` + color: null, + // `` and `
`. Use CSS instead + compact: V, + // Lists. Use CSS to reduce space between items instead + declare: V, + // `` + event: null, + // ` \ No newline at end of file + import './main.664235a5.iframe.bundle.js'; \ No newline at end of file diff --git a/index.html b/index.html index 889c1143c..9d06ab14a 100644 --- a/index.html +++ b/index.html @@ -3,42 +3,62 @@ - @storybook/cli - Storybook - + @storybook/core - Storybook + - - - + - + + + - + - + - + - + - + /g,Er=/>/g,oe=RegExp(`>|${yt}(?:([^\\s"'>=/]+)(${yt}*=${yt}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),Sr=/'/g,Ar=/"/g,kr=/^(?:script|style|textarea|title)$/i,Or=o=>(e,...t)=>({_$litType$:o,strings:e,values:t}),E=Or(1),j=Or(2),G=Symbol.for("lit-noChange"),C=Symbol.for("lit-nothing"),Pr=new WeakMap,ne=ie.createTreeWalker(ie,129,null,!1);Bn=(o,e)=>{let t=o.length-1,r=[],n,i=e===2?"":"",s=ve;for(let c=0;c"?(s=n??ve,m=-1):u[1]===void 0?m=-2:(m=s.lastIndex-u[2].length,l=u[1],s=u[3]===void 0?oe:u[3]==='"'?Ar:Sr):s===Ar||s===Sr?s=oe:s===$r||s===Er?s=ve:(s=oe,n=void 0);let _=s===oe&&o[c+1].startsWith("/>")?" ":"";i+=s===ve?a+Nn:m>=0?(r.push(l),a.slice(0,m)+bt+a.slice(m)+q+_):a+q+(m===-2?(r.push(void 0),c):_)}return[Nr(o,i+(o[t]||"")+(e===2?"":"")),r]},xe=class o{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let i=0,s=0,c=e.length-1,a=this.parts,[l,u]=Bn(e,t);if(this.el=o.createElement(l,r),ne.currentNode=this.el.content,t===2){let m=this.el.content,x=m.firstChild;x.remove(),m.append(...x.childNodes)}for(;(n=ne.nextNode())!==null&&a.length0){n.textContent=de?de.emptyScript:"";for(let _=0;_2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=C}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,n){let i=this.strings,s=!1;if(i===void 0)e=pe(this,e,t,0),s=!be(e)||e!==this._$AH&&e!==G,s&&(this._$AH=e);else{let c=e,a,l;for(e=i[0],a=0;a{var r,n;let i=(r=t?.renderBefore)!==null&&r!==void 0?r:e,s=i._$litPart$;if(s===void 0){let c=(n=t?.renderBefore)!==null&&n!==void 0?n:null;i._$litPart$=s=new _e(e.insertBefore(ye(),c),c,void 0,t??{})}return s._$AI(o),s}});var St,At,z,Br,jr=w(()=>{d();p();h();Fe();Fe();we();we();z=class extends Z{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;let r=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=r.firstChild),r}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Rr(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return G}};z.finalized=!0,z._$litElement$=!0,(St=globalThis.litElementHydrateSupport)===null||St===void 0||St.call(globalThis,{LitElement:z});Br=globalThis.litElementPolyfillSupport;Br?.({LitElement:z});((At=globalThis.litElementVersions)!==null&&At!==void 0?At:globalThis.litElementVersions=[]).push("3.3.3")});var Lr=w(()=>{d();p();h();});var D=w(()=>{d();p();h();Fe();we();jr();Lr()});var Ir=w(()=>{d();p();h();});function M(o){return(e,t)=>t!==void 0?In(o,e,t):Ln(o,e)}var Ln,In,Pt=w(()=>{d();p();h();Ln=(o,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,o)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,o)}},In=(o,e,t)=>{e.constructor.createProperty(t,o)}});var Fr=w(()=>{d();p();h();Pt();});var se=w(()=>{d();p();h();});var Hr=w(()=>{d();p();h();se();});var Ur=w(()=>{d();p();h();se();});var zr=w(()=>{d();p();h();se();});var Dr=w(()=>{d();p();h();se();});var Ct,Su,Mt=w(()=>{d();p();h();se();Su=((Ct=window.HTMLSlotElement)===null||Ct===void 0?void 0:Ct.prototype.assignedElements)!=null?(o,e)=>o.assignedElements(e):(o,e)=>o.assignedNodes(e).filter(t=>t.nodeType===Node.ELEMENT_NODE)});var Vr=w(()=>{d();p();h();se();Mt();});var fe=w(()=>{d();p();h();Ir();Pt();Fr();Hr();Ur();zr();Dr();Mt();Vr()});var X,Yr,Ue=w(()=>{d();p();h();D();X=({title:o,children:e})=>E` -
-
- Error${o} - ${e} -
-
-`,Yr=B` - .error-background { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - - background: var(--error-bg); - color: var(--error-fg); - } - - .error-container { - max-width: 800px; - margin: auto; - padding: 1em; - } - - .error-badge { - display: inline-block; - font-size: 0.8em; - padding: 0.2em 0.5em; - margin-inline-end: 0.5em; - - background: var(--error-color); - border-radius: 2px; - color: var(--error-bg); - text-transform: uppercase; - } - - .error-title { - display: block; - font-size: 1.2em; - - font-weight: bold; - text-transform: capitalize; - } - - .error-description { - display: block; - margin-block-start: 1em; - } -`});var Wr,Zr,ze,Gr=w(()=>{d();p();h();Wr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Zr=o=>(...e)=>({_$litDirective$:o,values:e}),ze=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}});var Xr,Fn,ae,qr=w(()=>{d();p();h();we();Gr();Xr="important",Fn=" !"+Xr,ae=Zr(class extends ze{constructor(o){var e;if(super(o),o.type!==Wr.ATTRIBUTE||o.name!=="style"||((e=o.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((e,t)=>{let r=o[t];return r==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(o,[e]){let{style:t}=o.element;if(this.ht===void 0){this.ht=new Set;for(let r in e)this.ht.add(r);return this.render(e)}this.ht.forEach(r=>{e[r]==null&&(this.ht.delete(r),r.includes("-")?t.removeProperty(r):t[r]="")});for(let r in e){let n=e[r];if(n!=null){this.ht.add(r);let i=typeof n=="string"&&n.endsWith(Fn);r.includes("-")||i?t.setProperty(r,i?n.slice(0,-11):n,i?Xr:""):t[r]=n}}return G}})});var De=w(()=>{d();p();h();qr()});function Kr(o){return{top:o.y,right:o.x+o.width,bottom:o.y+o.height,left:o.x}}function Qr(o,e){let t=Kr(o),r=Kr(e),n=!(t.top>r.bottom||t.bottomr.right||t.rightr.right,c=t.top>r.bottom,a={x:o.x+o.width/2,y:o.y+o.height/2};return[i?null:{points:[{x:s?t.left:t.right,y:a.y},{x:s?r.right:r.left,y:a.y}],bisector:n?void 0:[{x:s?r.right:r.left,y:a.y},{x:s?r.right:r.left,y:c?r.bottom:r.top}]},n?null:{points:[{y:c?t.top:t.bottom,x:a.x},{y:c?r.bottom:r.top,x:a.x}],bisector:i?void 0:[{y:c?r.bottom:r.top,x:a.x},{y:c?r.bottom:r.top,x:s?r.right:r.left}]}].filter(u=>!!u)}function Ee(o){return Math.round(o*100)/100}function Ve(o,e){return[...Jr(o),...Jr(e)]}function Jr(o){return o?o instanceof Array?o:[o]:[]}var Se=w(()=>{d();p();h()});var Hn,eo,to=w(()=>{d();p();h();fe();Hn=function(o,e,t,r){var n=arguments.length,i=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,r);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(n<3?s(i):n>3?s(e,t,i):s(e,t))||i);return n>3&&i&&Object.defineProperty(e,t,i),i},eo=o=>{class e extends o{constructor(...r){super(...r),this.selectedNode=null}updated(r){super.updated(r),r.has("selectedNode")&&this.dispatchEvent(new CustomEvent("nodeselect",{detail:{selectedNode:this.selectedNode}}))}}return Hn([M({attribute:!1})],e.prototype,"selectedNode",void 0),e}});function Ye(o){return o.touches.length===0||o.touches.length>2}function Un(o,e){return Math.sqrt(Math.pow(o.x-e.x,2)+Math.pow(o.y-e.y,2))}var ro,oo=w(()=>{d();p();h();ro=o=>class extends o{constructor(...t){super(...t),this.previousTouches=null,this.addEventListener("touchstart",r=>{Ye(r)||(r.preventDefault(),this.previousTouches=r.touches)}),this.addEventListener("touchend",r=>{Ye(r)||(r.preventDefault(),this.previousTouches=null)}),this.addEventListener("touchcancel",r=>{Ye(r)||(r.preventDefault(),this.previousTouches=null)}),this.addEventListener("touchmove",r=>{if(Ye(r))return;let n=Array.from(this.previousTouches||[]),i=Array.from(r.touches);if(this.previousTouches=r.touches,!(i.length!==n.length||!i.every(s=>n.some(c=>c.identifier===s.identifier)))){if(i.length===1){this.onTouchPan({x:i[0].pageX-n[0].pageX,y:i[0].pageY-n[0].pageY});return}this.onTouchPinch(Un({x:i[0].pageX,y:i[0].pageY},{x:n[0].pageX,y:n[0].pageY}))}})}get isTouching(){return!!(this.previousTouches&&this.previousTouches.length>0)}onTouchPan(t){}onTouchPinch(t){}}});var Ae,V,no,io,so=w(()=>{d();p();h();fe();oo();Ae=function(o,e,t,r){var n=arguments.length,i=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,r);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(n<3?s(i):n>3?s(e,t,i):s(e,t))||i);return n>3&&i&&Object.defineProperty(e,t,i),i},V=function(o,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!r:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(o):r?r.value:e.get(o)},no=function(o,e,t,r,n){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!n:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?n.call(o,t):n?n.value=t:e.set(o,t),t},io=o=>{var e,t,r,n,i;class s extends ro(o){constructor(...a){super(...a),this.panX=0,this.panY=0,this.scale=1,this.zoomSpeed=500,this.panSpeed=500,e.set(this,!1),t.set(this,(u,m)=>{this.panX+=u/this.scale/window.devicePixelRatio,this.panY+=m/this.scale/window.devicePixelRatio}),r.set(this,u=>{u.code==="Space"&&!V(this,e,"f")&&(no(this,e,!0,"f"),document.body.style.cursor="grab")}),n.set(this,u=>{u.code==="Space"&&V(this,e,"f")&&(no(this,e,!1,"f"),document.body.style.cursor="auto")}),i.set(this,()=>{document.addEventListener("keyup",V(this,n,"f")),document.addEventListener("keydown",V(this,r,"f"))}),this.addEventListener("wheel",u=>{if(this.isMovable)if(u.preventDefault(),u.ctrlKey){let{deltaY:m}=u;u.deltaMode===1&&(m*=15);let x=this.scale;this.scale*=1-m/((1e3-this.zoomSpeed)*.5);let _=u.offsetX-this.offsetWidth/2,b=u.offsetY-this.offsetHeight/2;this.panX+=_/this.scale-_/x,this.panY+=b/this.scale-b/x}else{let m=this.panSpeed*.002;this.panX-=u.deltaX*m/this.scale,this.panY-=u.deltaY*m/this.scale}},{passive:!1});let l=1;this.addEventListener("gesturestart",u=>{u.preventDefault(),l=this.scale}),this.addEventListener("gesturechange",u=>{let m=u;m.preventDefault(),this.scale=l*m.scale}),this.addEventListener("pointermove",u=>{u.buttons&4&&(u.preventDefault(),V(this,t,"f").call(this,u.movementX,u.movementY))}),V(this,i,"f").call(this),this.onmousedown=()=>{V(this,e,"f")&&(document.body.style.cursor="grabbing",this.onmousemove=({movementX:u,movementY:m})=>{V(this,t,"f").call(this,u,m)},this.onmouseup=()=>{document.body.style.cursor="grab",this.onmousemove=null,this.onmouseup=null})}}get isMovable(){return!0}get canvasTransform(){return[`scale(${this.scale})`,`translate(${this.panX}px, ${this.panY}px)`]}disconnectedCallback(){document.removeEventListener("keyup",V(this,n,"f")),document.removeEventListener("keydown",V(this,r,"f")),super.disconnectedCallback()}updated(a){super.updated(a),a.has("scale")&&this.dispatchEvent(new CustomEvent("scalechange",{detail:{scale:this.scale}})),(a.has("panX")||a.has("panY"))&&this.dispatchEvent(new CustomEvent("positionchange",{detail:{x:this.panX,y:this.panY}}))}onTouchPan(a){this.panX+=a.x/this.scale,this.panY+=a.y/this.scale}onTouchPinch(a){this.scale*=1-a/1e3}}return e=new WeakMap,t=new WeakMap,r=new WeakMap,n=new WeakMap,i=new WeakMap,Ae([M({attribute:!1})],s.prototype,"panX",void 0),Ae([M({attribute:!1})],s.prototype,"panY",void 0),Ae([M({attribute:!1})],s.prototype,"scale",void 0),Ae([M({type:Number,attribute:"zoom-speed"})],s.prototype,"zoomSpeed",void 0),Ae([M({type:Number,attribute:"pan-speed"})],s.prototype,"panSpeed",void 0),s}});var zn,Dn,ao,lo,co,uo=w(()=>{d();p();h();D();De();Se();zn=({guide:o,reverseScale:e})=>{let t=Math.abs(o.points[0].x-o.points[1].x),r=Math.abs(o.points[0].y-o.points[1].y);return t===0&&r===0?null:j` - - - ${o.bisector&&j` - - `} - `},Dn=({guide:o,reverseScale:e,fontSize:t})=>{let r=Math.abs(o.points[0].x-o.points[1].x),n=Math.abs(o.points[0].y-o.points[1].y);if(r===0&&n===0)return null;let i=Ee(Math.max(r,n)).toString(10),s=i.length*t*.5,c=t*.25,a=t*.25,l=t*.5,u=r>n?(o.points[0].x+o.points[1].x)/2-s/2:o.points[0].x,m=r>n?o.points[0].y:(o.points[0].y+o.points[1].y)/2-t/2,x=[`scale(${e})`,r>n?`translate(0, ${c+a})`:`translate(${c+l}, 0)`].join(" "),_=u+s/2,b=m+t/2,$=r>n?`${_} ${m}`:`${u} ${b}`;return j` - - - - - ${i} - - - `},ao=new Map,lo=({node:o,distanceTo:e,reverseScale:t,fontSize:r})=>{let n=o.id+` -`+e.id,i=ao.get(n);return i||(i=Qr(o.absoluteBoundingBox,e.absoluteBoundingBox),ao.set(n,i)),[...i.map(s=>zn({guide:s,reverseScale:t})),...i.map(s=>Dn({guide:s,reverseScale:t,fontSize:r}))]},co=B` - .distance-line { - shape-rendering: geometricPrecision; - fill: none; - opacity: 0; - } - - .distance-tooltip { - opacity: 0; - } - - .guide:hover ~ .distance-line, - .guide:hover ~ .distance-tooltip { - opacity: 1; - } -`});var po,kt,ho,fo,mo,Ot=w(()=>{d();p();h();D();po=({onClick:o=()=>{}})=>j` - - - -`,kt=({onClick:o=()=>{}})=>j` - - - -`,ho=()=>j` - - - - - -`,fo=()=>j` - - - - - -`,mo=()=>j` - - - -`});var me,Yn,Nt,We,go,Wn,Rt,vo=w(()=>{d();p();h();me=o=>o.a===0?"transparent":o.a<1?`rgba(${go(o).join(", ")}, ${o.a.toFixed(2)})`:Wn(o),Yn=o=>new Nt(o).cssColor,Nt=class{constructor(e){this.gradientHandles={start:e.gradientHandlePositions[0],end:e.gradientHandlePositions[1]},this.colors=e.gradientStops,this.colorObjects=this.createColorObjects(this.colors),this.angle=this.calculateAngle(this.gradientHandles.start,this.gradientHandles.end)}get cssGradientArray(){return this.colorObjects.map((e,t)=>{let r=this.floatToPercent(this.colors[t].position);return e+" "+r})}get cssColor(){let e=this.cssGradientArray;return e.unshift(this.angle+"deg"),`linear-gradient(${e.join(", ")})`}createColorObjects(e){return e.map(({color:t})=>me(t))}floatToPercent(e){return(e*=100).toFixed(0)+"%"}calculateAngle(e,t){let r=Math.atan(this.calculateGradient(e,t));return parseInt(this.radToDeg(r).toFixed(1))}calculateGradient(e,t){return(t.y-e.y)/(t.x-e.x)*-1}radToDeg(e){return 180*e/Math.PI}},We=class{constructor(e){var t,r,n;if(this.hasPadding=!1,this.height=`${Math.trunc(e.absoluteBoundingBox.height)}px`,this.width=`${Math.trunc(e.absoluteBoundingBox.width)}px`,(e.horizontalPadding||e.verticalPadding)&&(this.hasPadding=!0,this.horizontalPadding=`${e.horizontalPadding}px`,this.verticalPadding=`${e.verticalPadding}px`),e.style&&(this.fontFamily=e.style.fontFamily,this.fontPostScriptName=(t=e.style.fontPostScriptName)===null||t===void 0?void 0:t.replace("-"," "),this.fontWeight=e.style.fontWeight,this.fontSize=`${Math.ceil(e.style.fontSize)}px`,this.lineHeight=`${Math.trunc(e.style.lineHeightPx)}px`),e.rectangleCornerRadii&&(this.borderRadius=e.rectangleCornerRadii.filter(s=>s===e.cornerRadius).length<4?`${e.rectangleCornerRadii.join("px ")}px`:`${e.cornerRadius}px`),e.backgroundColor||e.backgroundColor){let s=e.backgroundColor||((r=e.background)===null||r===void 0?void 0:r[0].color);this.background=me(s)}let i=(n=e.fills)===null||n===void 0?void 0:n[0];if(i&&i.visible!==!1&&(e.type==="TEXT"?this.color=me(i.color):i.type.includes("GRADIENT")?this.backgroundImage=Yn(i):i.type==="SOLID"&&(this.background=me(i.color))),e.strokes&&e.strokes.length>0&&(this.borderColor=me(e.strokes[0].color),this.border=`${e.strokeWeight}px solid ${this.borderColor}`),e.effects&&e.effects.length>0){let{offset:s,radius:c,color:a}=e.effects[0];this.boxShadowColor=me(a),this.boxShadow=`${s?.x||0}px ${s?.y||0}px 0 ${c} ${this.boxShadowColor}`}}getStyles(){return[this.height&&{property:"height",value:this.height},this.width&&{property:"width",value:this.width},this.fontFamily&&{property:"font-family",value:this.fontFamily},this.fontSize&&{property:"font-size",value:this.fontSize},this.fontWeight&&{property:"font-weight",value:this.fontWeight},this.lineHeight&&{property:"line-height",value:this.lineHeight},this.borderRadius&&{property:"border-radius",value:this.borderRadius},this.backgroundImage&&{property:"background-image",value:this.backgroundImage},this.boxShadow&&{property:"box-shadow",value:this.boxShadow,color:this.boxShadowColor},this.border&&{property:"border",value:this.border,color:this.borderColor},this.background&&{property:"background",value:this.background,color:this.background},this.color&&{property:"color",value:this.color,color:this.color}].filter(Boolean)}getStyleSheet(){return this.getStyles().map(Rt).join(` -`)}},go=o=>[Math.trunc(255*o.r),Math.trunc(255*o.g),Math.trunc(255*o.b)],Wn=o=>{let[e,t,r]=go(o);return"#"+((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1)},Rt=({property:o,value:e})=>`${o}: ${e};`});var Zn,Bt,yo,Gn,Xn,bo,xo=w(()=>{d();p();h();D();Ot();vo();Zn=function(o,e,t,r){function n(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function c(u){try{l(r.next(u))}catch(m){s(m)}}function a(u){try{l(r.throw(u))}catch(m){s(m)}}function l(u){u.done?i(u.value):n(u.value).then(c,a)}l((r=r.apply(o,e||[])).next())})},Bt=o=>Zn(void 0,void 0,void 0,function*(){yield navigator.clipboard.writeText(o)}),yo=({node:o,onClose:e})=>{if(!o)return null;let t=new We(o),r=n=>n.stopPropagation();return E` -
-
-
-

${o.name}

- ${po({onClick:e})} -
-
-
-

- W: ${t.width} -

-

- H: ${t.height} -

-
- ${t.fontPostScriptName?E`

- Font: - ${t.fontPostScriptName} -

`:null} -
-
- ${t.hasPadding?E`
-

Layout

- ${t.horizontalPadding&&E`

- ${ho()} ${t.horizontalPadding} -

`} - ${t.verticalPadding&&E`

- ${fo()} ${t.verticalPadding} -

`} -
`:null} - ${o.characters?E`
-
-

Content

- ${kt({onClick:()=>Bt(o.characters)})} -
-

- ${o.characters} -

-
`:null} - ${Gn(t)} -
- `},Gn=o=>{let e=()=>Bt(o.getStyleSheet()),t=o.getStyles();return E`
-
-

CSS

- ${kt({onClick:e})} -
-
- ${t.map(Xn)} -
-
`},Xn=o=>{let{property:e,value:t,color:r}=o,n=null;switch(e){case"background":case"fill":case"border":case"box-shadow":case"color":n=E``;break;case"background-image":n=E``;break}return E`
Bt(Rt(o))}> - ${e}:${n}${t}; -
`},bo=B` - .inspector-view { - height: 100%; - width: 300px; - position: absolute; - right: 0; - background: white; - border-left: 1px solid #ccc; - overflow-y: auto; - z-index: calc(var(--z-index) + 2); - } - - .inspector-view h4 { - font-size: 16px; - margin: 0; - } - - .style-section { - margin-bottom: 12px; - } - - .title-section { - display: flex; - align-items: center; - } - - .code-section { - padding: 8px; - background: #f3f3f3; - font-family: monospace; - } - - .title-section svg { - cursor: pointer; - margin-left: auto; - } - - .inspector-section { - padding: 16px; - border-bottom: 1px solid #eee; - } - - .properties-overview { - font-family: monospace; - color: #518785; - } - - .properties-overview p span { - color: #121212; - } - - .inspector-property { - display: flex; - align-items: center; - margin-bottom: 0; - } - - .inspector-property span { - color: #b3b3b3; - margin-right: 4px; - } - - .inspector-property svg { - margin-right: 8px; - } - - .css-property { - margin: 8px; - transition: background-color ease-in-out 100ms; - } - - .css-property:hover { - cursor: pointer; - background-color: #e8e8e8; - } - - .css-value { - color: #518785; - margin-left: 4px; - } - - .color-preview { - display: inline-block; - width: 12px; - height: 12px; - border: 1px solid #ccc; - margin-left: 4px; - vertical-align: middle; - } - - .selectable-content { - cursor: text; - user-select: text; - } -`});var jt,_o,wo,$o=w(()=>{d();p();h();D();De();Se();jt=({node:o,selected:e=!1,computedThickness:t,onClick:r})=>{let{x:n,y:i,width:s,height:c}=o.absoluteBoundingBox,a="cornerRadius"in o&&o.cornerRadius?{topLeft:o.cornerRadius,topRight:o.cornerRadius,bottomRight:o.cornerRadius,bottomLeft:o.cornerRadius}:"rectangleCornerRadii"in o&&o.rectangleCornerRadii?{topLeft:o.rectangleCornerRadii[0],topRight:o.rectangleCornerRadii[1],bottomRight:o.rectangleCornerRadii[2],bottomLeft:o.rectangleCornerRadii[3]}:{topLeft:0,topRight:0,bottomRight:0,bottomLeft:0},l=t/2,u=(b,$)=>`M${b},${$}`,m=(b,$)=>`L${b},${$}`,x=(b,$,A)=>`A${b},${b} 0 0 1 ${$},${A}`,_=[u(a.topLeft+l,l),m(s-a.topRight,l),x(a.topRight-l,s-l,a.topRight),m(s-l,c-a.bottomRight),x(a.bottomRight-l,s-a.bottomRight,c-l),m(a.bottomLeft,c-l),x(a.bottomLeft-l,l,c-a.bottomLeft),m(l,a.topLeft),x(a.topLeft-l,a.topLeft,l),"Z"].join(" ");return j` - - `},_o=({nodeSize:{x:o,y:e,width:t,height:r},offsetX:n,offsetY:i,reverseScale:s})=>{let c={top:`${i+e+r}px`,left:`${n+o+t/2}px`,transform:`translateX(-50%) scale(${s}) translateY(0.25em)`};return E` -
- ${Ee(t)} x ${Ee(r)} -
- `},wo=B` - .guide { - /* - * SVGs cannot be pixel perfect, especially floating values. - * Since many platform renders them visually incorrectly (probably they - * are following the spec), it's safe to set overflow to visible. - * Cropped borders are hard to visible and ugly. - */ - overflow: visible; - - pointer-events: all; - - opacity: 0; - } - .guide:hover { - opacity: 1; - } - .guide[data-selected] { - opacity: 1; - stroke: var(--guide-selected-color); - } - - .tooltip { - position: absolute; - padding: 0.25em 0.5em; - font-size: var(--guide-tooltip-font-size); - - color: var(--guide-selected-tooltip-fg); - background-color: var(--guide-selected-tooltip-bg); - border-radius: 2px; - pointer-events: none; - z-index: calc(var(--z-index) + 1); - - transform-origin: top center; - } -`});var Jn,Eo,So,Ao=w(()=>{d();p();h();Jn=[{gte:31536e6,divisor:31536e6,unit:"year"},{gte:2592e6,divisor:2592e6,unit:"month"},{gte:6048e5,divisor:6048e5,unit:"week"},{gte:864e5,divisor:864e5,unit:"day"},{gte:36e5,divisor:36e5,unit:"hour"},{gte:6e4,divisor:6e4,unit:"minute"},{gte:3e4,divisor:1e3,unit:"seconds"},{gte:0,divisor:1,text:"just now"}],Eo=o=>(typeof o=="object"?o:new Date(o)).getTime(),So=(o,e=Date.now(),t=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}))=>{let n=Eo(e)-Eo(o),i=Math.abs(n);for(let s of Jn)if(i>=s.gte){let c=Math.round(Math.abs(n)/s.divisor),a=n<0,l=s.unit;return l?t.format(a?c:-c,l):s.text}}});var Po,Co,Mo=w(()=>{d();p();h();D();Ot();Ao();Po=B` - .figma-footer { - flex: 0; - z-index: calc(var(--z-index) + 1); - border-top: 1px solid #ccc; - min-height: 48px; - padding: 0 16px; - text-decoration: none; - display: flex; - flex-direction: row; - justify-content: start; - align-items: center; - background-color: #fff; - overflow-x: auto; - cursor: pointer; - font-size: 12px; - color: rgba(0, 0, 0, 0.8); - } - - .figma-footer--icon { - margin-right: 12px; - } - - .figma-footer--title { - font-weight: 600; - margin-right: 4px; - - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - } - - .figma-footer--timestamp { - white-space: nowrap; - overflow: hidden; - } -`,Co=o=>{if(!o||!o.link||o.link===void 0||o.link==="undefined")return null;let{link:e,timestamp:t,fileName:r}=o;return E` - ${mo()} - ${r} - - Edited ${So(t)} - - `}});function ei(o){let e=[],t=[],r=[],n=[];for(let c of o.children){if(c.type!=="FRAME"&&c.type!=="COMPONENT")continue;let{x:a,y:l,width:u,height:m}=c.absoluteBoundingBox;e.push(a),t.push(a+u),r.push(l),n.push(l+m)}let i=Math.min(...e),s=Math.min(...r);return{x:i,y:s,width:Math.abs(Math.max(...t)-i),height:Math.abs(Math.min(...n)-s)}}function ti(o,e){let t=e.map(n=>{if(!("effects"in n))return{top:n.absoluteBoundingBox.y,right:n.absoluteBoundingBox.x+n.absoluteBoundingBox.width,bottom:n.absoluteBoundingBox.y+n.absoluteBoundingBox.height,left:n.absoluteBoundingBox.x};let i=n.effects.filter(a=>a.visible&&a.type==="LAYER_BLUR").map(a=>a.radius),s=n.effects.filter(a=>a.visible&&a.type==="DROP_SHADOW"&&!!a.offset).map(a=>({left:a.radius-a.offset.x,top:a.radius-a.offset.y,right:a.radius+a.offset.x,bottom:a.radius+a.offset.y})),c={top:Math.max(0,...i,...s.map(a=>a.top)),right:Math.max(0,...i,...s.map(a=>a.right)),bottom:Math.max(0,...i,...s.map(a=>a.bottom)),left:Math.max(0,...i,...s.map(a=>a.left))};return{top:n.absoluteBoundingBox.y-c.top,right:n.absoluteBoundingBox.x+n.absoluteBoundingBox.width+c.right,bottom:n.absoluteBoundingBox.y+n.absoluteBoundingBox.height+c.bottom,left:n.absoluteBoundingBox.x-c.left}}),r={top:Math.min(...t.map(n=>n.top)),right:Math.max(...t.map(n=>n.right)),bottom:Math.max(...t.map(n=>n.bottom)),left:Math.min(...t.map(n=>n.left))};return{top:o.absoluteBoundingBox.y-r.top,right:r.right-o.absoluteBoundingBox.x-o.absoluteBoundingBox.width,bottom:r.bottom-o.absoluteBoundingBox.y-o.absoluteBoundingBox.height,left:o.absoluteBoundingBox.x-r.left}}function Ze(o,e=0){return"absoluteBoundingBox"in o?!("children"in o)||o.children.length===0?[Object.assign(Object.assign({},o),{depth:e})]:[Object.assign(Object.assign({},o),{depth:e}),...o.children.map(t=>Ze(t,e+1)).flat()]:o.children.map(t=>Ze(t,e+1)).flat()}var To,H,Lt,Ge,It=w(()=>{d();p();h();D();fe();De();Se();to();so();uo();xo();Ue();$o();Mo();To=function(o,e,t,r){var n=arguments.length,i=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,r);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(n<3?s(i):n>3?s(e,t,i):s(e,t))||i);return n>3&&i&&Object.defineProperty(e,t,i),i},H=function(o,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!r:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(o):r?r.value:e.get(o)},Lt=function(o,e,t,r,n){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!n:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?n.call(o,t):n?n.value=t:e.set(o,t),t},Ge=o=>{var e,t,r,n,i;class s extends eo(io(o)){constructor(...a){super(...a),this.zoomMargin=50,this.link="",e.set(this,void 0),t.set(this,void 0),r.set(this,void 0),n.set(this,l=>u=>{u.preventDefault(),u.stopPropagation(),this.selectedNode=l}),i.set(this,l=>{var u,m;return(m=(u=H(this,r,"f"))===null||u===void 0?void 0:u.find(x=>x.id===l))!==null&&m!==void 0?m:null})}static get styles(){let a=super.styles;return Ve(a,[B` - :host { - --default-error-bg: #fff; - --default-error-fg: #333; - - --bg: var(--figspec-viewer-bg, #e5e5e5); - --z-index: var(--figspec-viewer-z-index, 0); - --error-bg: var(--figspec-viewer-error-bg, var(--default-error-bg)); - --error-fg: var(--figspec-viewer-error-fg, var(--default-error-fg)); - --error-color: var(--figspec-viewer-error-color, tomato); - - --guide-thickness: var(--figspec-viewer-guide-thickness, 1.5px); - --guide-color: var(--figspec-viewer-guide-color, tomato); - --guide-selected-color: var( - --figspec-viewer-guide-selected-color, - dodgerblue - ); - --guide-tooltip-fg: var(--figspec-viewer-guide-tooltip-fg, white); - --guide-selected-tooltip-fg: var( - --figspec-viewer-guide-selected-tooltip-fg, - white - ); - --guide-tooltip-bg: var( - --figspec-viewer-guide-tooltip-bg, - var(--guide-color) - ); - --guide-selected-tooltip-bg: var( - --figspec-viewer-guide-selected-tooltip-bg, - var(--guide-selected-color) - ); - --guide-tooltip-font-size: var( - --figspec-viewer-guide-tooltip-font-size, - 12px - ); - - position: relative; - display: block; - - background-color: var(--bg); - user-select: none; - overflow: hidden; - z-index: var(--z-index); - } - - @media (prefers-color-scheme: dark) { - :host { - --default-error-bg: #222; - --default-error-fg: #fff; - } - } - - .spec-canvas-wrapper { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - display: flex; - flex-direction: column-reverse; - } - - .canvas { - position: absolute; - top: 50%; - left: 50%; - flex: 1; - } - - .rendered-image { - position: absolute; - top: 0; - left: 0; - } - - .guides { - position: absolute; - - overflow: visible; - stroke: var(--guide-color); - fill: var(--guide-color); - pointer-events: none; - z-index: calc(var(--z-index) + 2); - } - `,wo,Yr,co,bo,Po])}get __images(){return{}}deselectNode(){this.selectedNode=null}get error(){return!H(this,e,"f")||!H(this,r,"f")?X({title:"Error",children:"Please call `__updateTree/1` method with a valid parameter."}):null}render(){if(this.error)return this.error instanceof Error?X({title:this.error.name||"Error",children:this.error.message}):typeof this.error=="string"?X({title:"Error",children:this.error}):this.error;let a=H(this,e,"f"),l=1/this.scale,u=`calc(var(--guide-thickness) * ${l})`,m=parseFloat(getComputedStyle(this).getPropertyValue("--guide-thickness")),x=parseFloat(getComputedStyle(this).getPropertyValue("--guide-tooltip-font-size"));return E` -
-
- ${Object.entries(this.__images).map(([_,b])=>{var $;let A=H(this,i,"f").call(this,_);if(!A||!("absoluteBoundingBox"in A)||!(!(($=H(this,t,"f"))===null||$===void 0)&&$[A.id]))return null;let P=H(this,t,"f")[A.id];return E` - - `})} - ${this.selectedNode&&_o({nodeSize:this.selectedNode.absoluteBoundingBox,offsetX:-a.x,offsetY:-a.y,reverseScale:l})} - ${j` - - ${this.selectedNode&&jt({node:this.selectedNode,selected:!0,computedThickness:m*l})} - - ${H(this,r,"f").map(_=>{var b;return _.id===((b=this.selectedNode)===null||b===void 0?void 0:b.id)?null:j` - - ${jt({node:_,computedThickness:m*l,onClick:H(this,n,"f").call(this,_)})} - ${this.selectedNode&&lo({node:_,distanceTo:this.selectedNode,reverseScale:l,fontSize:x})} - - `})} - - `} -
- ${yo({node:this.selectedNode,onClose:this.deselectNode})} - ${Co(this.getMetadata())} -
- `}getMetadata(){}connectedCallback(){super.connectedCallback(),this.resetZoom()}updated(a){super.updated(a)}__updateTree(a){if(!(a.type==="CANVAS"||a.type==="FRAME"||a.type==="COMPONENT"||a.type==="COMPONENT_SET"))throw new Error("Cannot update node tree: Top level node MUST be one of CANVAS, FRAME, COMPONENT, or COMPONENT_SET");Lt(this,e,a.type==="CANVAS"?ei(a):a.absoluteBoundingBox,"f"),Lt(this,r,Ze(a),"f"),this.requestUpdate()}__updateEffectMargins(){if(!this.__images)return;let a=Object.keys(this.__images).map(H(this,i,"f")).filter(l=>!!l);Lt(this,t,a.reduce((l,u)=>"absoluteBoundingBox"in u?Object.assign(Object.assign({},l),{[u.id]:ti(u,Ze(u))}):l,{}),"f"),this.requestUpdate()}resetZoom(){if(H(this,e,"f")){let{width:a,height:l}=H(this,e,"f"),{width:u,height:m}=this.getBoundingClientRect(),x=u/(a+this.zoomMargin*2),_=m/(l+this.zoomMargin*2);this.scale=Math.min(x,_,1)}}}return e=new WeakMap,t=new WeakMap,r=new WeakMap,n=new WeakMap,i=new WeakMap,To([M({type:Number,attribute:"zoom-margin"})],s.prototype,"zoomMargin",void 0),To([M({type:String,attribute:"link"})],s.prototype,"link",void 0),s}});var ko,K,Oo=w(()=>{d();p();h();D();fe();Ue();It();ko=function(o,e,t,r){var n=arguments.length,i=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,r);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(n<3?s(i):n>3?s(e,t,i):s(e,t))||i);return n>3&&i&&Object.defineProperty(e,t,i),i},K=class extends Ge(z){constructor(){super(...arguments),this.nodes=null,this.renderedImage=null}get isMovable(){return!!(this.nodes&&this.renderedImage&&this.documentNode)}get documentNode(){if(!this.nodes)return null;let e=Object.values(this.nodes.nodes)[0];return!e||!("absoluteBoundingBox"in e.document)?null:e.document}get __images(){return!this.documentNode||!this.renderedImage?{}:{[this.documentNode.id]:this.renderedImage}}get error(){if(!this.nodes||!this.renderedImage)return X({title:"Parameter error",children:E` - Both nodes and rendered-image are required. - `});if(!this.documentNode)return X({title:"Parameter Error",children:E` - Document node is empty or does not have size. - `});if(super.error)return super.error}getMetadata(){return{fileName:this.nodes.name,timestamp:this.nodes.lastModified,link:this.link}}connectedCallback(){super.connectedCallback(),this.documentNode&&(this.__updateTree(this.documentNode),this.__updateEffectMargins(),this.resetZoom())}updated(e){if(super.updated(e),e.has("nodes")){if(!this.documentNode)return;this.__updateTree(this.documentNode),this.resetZoom()}e.has("renderedImage")&&this.__updateEffectMargins()}};ko([M({type:Object})],K.prototype,"nodes",void 0);ko([M({type:String,attribute:"rendered-image"})],K.prototype,"renderedImage",void 0)});var No,Ft,Xe,Ht,J,Ro=w(()=>{d();p();h();D();fe();Ue();It();Se();No=function(o,e,t,r){var n=arguments.length,i=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,r);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(n<3?s(i):n>3?s(e,t,i):s(e,t))||i);return n>3&&i&&Object.defineProperty(e,t,i),i},Ft=function(o,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!r:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(o):r?r.value:e.get(o)},J=class extends Ge(z){constructor(){super(...arguments),this.documentNode=null,this.renderedImages=null,this.selectedPage=null,Xe.set(this,()=>{var e;if(!this.documentNode){this.selectedPage=null;return}this.selectedPage=(e=this.documentNode.document.children.filter(t=>t.type==="CANVAS")[0])!==null&&e!==void 0?e:null}),Ht.set(this,e=>{var t,r;let n=e.currentTarget;this.selectedPage=(r=(t=this.documentNode)===null||t===void 0?void 0:t.document.children.find(i=>i.id===n.value))!==null&&r!==void 0?r:null,this.selectedPage&&(this.__updateTree(this.selectedPage),this.resetZoom(),this.__updateEffectMargins(),this.panX=0,this.panY=0)})}get isMovable(){return!!(this.renderedImages&&this.documentNode)}get __images(){return this.renderedImages||{}}get error(){if(!this.documentNode||!this.renderedImages)return X({title:"Parameter error",children:E` - Both document-node and rendered-images are - required. - `});if(super.error)return super.error}static get styles(){return Ve(super.styles,[B` - :host { - --figspec-control-bg-default: #fcfcfc; - --figspec-control-fg-default: #333; - - --control-bg: var( - --figspec-control-bg, - var(--figspec-control-bg-default) - ); - --control-fg: var( - --figspec-control-bg, - var(--figspec-control-fg-default) - ); - --control-shadow: var( - --figspec-control-shadow, - 0 2px 4px rgba(0, 0, 0, 0.3) - ); - --padding: var(--figspec-control-padding, 8px 16px); - - display: flex; - flex-direction: column; - } - - @media (prefers-color-scheme: dark) { - :host { - --figspec-control-bg-default: #222; - --figspec-control-fg-default: #fff; - } - } - - .controls { - flex-shrink: 0; - padding: var(--padding); - - background-color: var(--control-bg); - box-shadow: var(--control-shadow); - color: var(--control-fg); - z-index: 1; - } - - .view { - position: relative; - flex-grow: 1; - flex-shrink: 1; - } - `])}render(){var e;return E` -
- -
- -
${super.render()}
- `}getMetadata(){return{fileName:this.documentNode.name,timestamp:this.documentNode.lastModified,link:this.link}}connectedCallback(){super.connectedCallback(),this.documentNode&&(Ft(this,Xe,"f").call(this),this.selectedPage&&(this.__updateTree(this.selectedPage),this.resetZoom()))}updated(e){super.updated(e),e.has("documentNode")&&(Ft(this,Xe,"f").call(this),this.selectedPage&&(this.__updateTree(this.selectedPage),this.resetZoom())),e.has("renderedImages")&&this.__updateEffectMargins()}};Xe=new WeakMap,Ht=new WeakMap;No([M({type:Object,attribute:"document-node"})],J.prototype,"documentNode",void 0);No([M({type:Object,attribute:"rendered-images"})],J.prototype,"renderedImages",void 0)});var Bo=w(()=>{d();p();h();Oo();Ro();customElements.get("figspec-file-viewer")||customElements.define("figspec-file-viewer",J);customElements.get("figspec-frame-viewer")||customElements.define("figspec-frame-viewer",K)});function qe(o=window.React,e,t,r,n){let i,s,c;if(e===void 0){let _=o;({tagName:s,elementClass:c,events:r,displayName:n}=_),i=_.react}else i=o,c=t,s=e;let a=i.Component,l=i.createElement,u=new Set(Object.keys(r??{}));class m extends a{constructor(){super(...arguments),this.o=null}t(b){if(this.o!==null)for(let $ in this.i)oi(this.o,$,this.props[$],b?b[$]:void 0,r)}componentDidMount(){var b;this.t(),(b=this.o)===null||b===void 0||b.removeAttribute("defer-hydration")}componentDidUpdate(b){this.t(b)}render(){let{_$Gl:b,...$}=this.props;this.h!==b&&(this.u=P=>{b!==null&&ni(b,P),this.o=P,this.h=b}),this.i={};let A={ref:this.u};for(let[P,Q]of Object.entries($))ri.has(P)?A[P==="className"?"class":P]=Q:u.has(P)||P in c.prototype?this.i[P]=Q:A[P]=Q;return A.suppressHydrationWarning=!0,l(s,A)}}m.displayName=n??c.name;let x=i.forwardRef((_,b)=>l(m,{..._,_$Gl:b},_?.children));return x.displayName=m.displayName,x}var ri,jo,oi,ni,Lo=w(()=>{d();p();h();ri=new Set(["children","localName","ref","style","className"]),jo=new WeakMap,oi=(o,e,t,r,n)=>{let i=n?.[e];i===void 0||t===r?t==null&&e in HTMLElement.prototype?o.removeAttribute(e):o[e]=t:((s,c,a)=>{let l=jo.get(s);l===void 0&&jo.set(s,l=new Map);let u=l.get(c);a!==void 0?u===void 0?(l.set(c,u={handleEvent:a}),s.addEventListener(c,u)):u.handleEvent=a:u!==void 0&&(l.delete(c),s.removeEventListener(c,u))})(o,i,t)},ni=(o,e)=>{typeof o=="function"?o(e):o.current=e}});var Io=w(()=>{d();p();h();Lo()});var Fo,Ho,Uo=w(()=>{d();p();h();Bo();Io();R();Fo=qe(Ne,"figspec-frame-viewer",K,{onNodeSelect:"nodeselect",onPositionChange:"positionchange",onScaleChange:"scalechange"}),Ho=qe(Ne,"figspec-file-viewer",J,{onNodeSelect:"nodeselect",onPositionChange:"positionchange",onScaleChange:"scalechange"})});var Wo={};Yt(Wo,{Figspec:()=>Vo,default:()=>ci});function Ke(o){return o.status!==200?Promise.reject(o.statusText):o.json()}function li(o){var e;if(o.accessToken)return o.accessToken;try{return(e=g.STORYBOOK_FIGMA_ACCESS_TOKEN)!==null&&e!==void 0?e:null}catch{return null}}function Yo(o){return"absoluteBoundingBox"in o?[o]:!o.children||o.children.length===0?[]:o.children.map(Yo).reduce(function(e,t){return e.concat(t)},[])}var ii,Je,si,ai,zo,Vo,ci,Do,Zo=w(()=>{d();p();h();R();Uo();U();L();at();ii=function(o,e){return Object.defineProperty?Object.defineProperty(o,"raw",{value:e}):o.raw=e,o},Je=function(){return Je=Object.assign||function(o){for(var e,t=1,r=arguments.length;t0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]/a/"),", received"," ",f("code",null,o.pathname),"."),t=o.pathname.split("/").slice(1);if(t.length<4)return{valid:!1,error:e};if(t[0]==="embed")return{valid:!0,data:{url:o.href,offscreen:!1}};var r=t[0],n=t[1],i=t[2],s=t[3];return r!=="s"||!n||i!=="a"||!s?{valid:!1,error:e}:{valid:!0,data:{url:"https://www.sketch.com/embed/s/".concat(n,"/a/").concat(s),offscreen:!1}}},mr=function(o){var e=o.config,t=W(function(){var r=kn(new URL(e.url));return r.valid?ue(ue({},r),{data:ue(ue({},e),r.data)}):r},[e]);return t.valid?f(ce,{defer:!0,config:t.data}):f(I,null,f(S,null,"Invalid Sketch URL"),f(S,null,t.error))};d();p();h();R();L();U();var gr=function(o){var e=o.tabs,t=o.deps,r=t===void 0?[]:t,n=T(e[0].id),i=n[0],s=n[1];return N(function(){s(e[0].id)},r),f(qt,{absolute:!0,selected:i,actions:{onSelect:s}},e.map(function(c){return f("div",{key:c.id,id:c.id,title:c.name},c.offscreen||i===c.id?c.content:null)}))};var k=function(){return k=Object.assign||function(o){for(var e,t=1,r=arguments.length;t(Zo(),Wo))}),Go=function(o){var e=o.config;if(!e||"length"in e&&e.length===0)return f(I,null,f(S,null,"No designs found"),f(S,null,"Learn how to"," ",f(re,{href:"https://github.com/storybookjs/addon-designs#3-add-it-to-story",target:"_blank",rel:"noopener",withArrow:!0,cancel:!1},"display design preview for the story")));var t=ui([],e instanceof Array?e:[e],!0).map(function(r){var n,i,s={id:JSON.stringify(r),name:r.name||((n=r.type)===null||n===void 0?void 0:n.toUpperCase())||"ERROR",offscreen:(i=r.offscreen)!==null&&i!==void 0?i:!0};switch(r.type){case"iframe":return k(k({},s),{content:f(ce,{config:r})});case"figma":return k(k({},s),{content:f(er,{config:r}),offscreen:!1});case"sketch":return k(k({},s),{content:f(mr,{config:r})});case"figspec":case"experimental-figspec":return r.type==="experimental-figspec"&&console.warn("[storybook-addon-designs] `experimental-figspec` is deprecated. We will remove it in v7.0. Please replace it to `figspec` type."),k(k({},s),{content:f(rt,{fallback:"Preparing Figspec viewer..."},f(di,{config:r})),offscreen:!1});case"image":return k(k({},s),{content:f(pr,{config:r})});case"link":return k(k({},s),{content:f(fr,{config:r})})}return k(k({},s),{content:f(I,null,f(S,null,"Invalid config type"),f(S,null,"Config type you set is not supported. Please choose one from"," ",f(re,{href:"https://github.com/storybookjs/addon-designs/blob/master/packages/storybook-addon-designs/src/config.ts",target:"_blank",rel:"noopener",withArrow:!0,cancel:!1},"available config types")))})});return t.length===1?f("div",null,t[0].content):f(gr,{tabs:t,deps:[e]})};var Ut=function(o){var e=o.active,t=Wt(),r=Me(le),n=T(e),i=n[0],s=n[1];return N(function(){s(e)},[r]),N(function(){e&&s(!0)},[e]),i?f(Go,{key:t.storyId,config:r}):null};var Pe="Design";function zt(o){Ce.register(Oe,function(e){var t=function(){var r=Me(le);return r?Array.isArray(r)?r.length>0?"".concat(Pe," (").concat(r.length,")"):Pe:(r.name||Pe)+" (1)":Pe};o==="tab"?Ce.add(et,{title:Pe,render:function(r){var n=r.active,i=r.key;return n?f(nt,{key:i},f(Ut,{active:!0})):f("noscript",{key:i})},type:Qe.TAB,paramKey:le,route:function(r){var n=r.storyId;return"/design/".concat(n)},match:function(r){var n=r.viewMode;return n==="design"}}):Ce.add(et,{type:Qe.PANEL,title:t,paramKey:le,render:function(r){var n=r.active;return f(Zt,{active:!!n},f(nt,null,f(Ut,{active:!!n})))}})})}zt("panel");})(); -}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/sb-addons/designs-4/register-panel-bundle.js b/sb-addons/designs-4/register-panel-bundle.js new file mode 100644 index 000000000..b9fe09e7b --- /dev/null +++ b/sb-addons/designs-4/register-panel-bundle.js @@ -0,0 +1,665 @@ +try{ +(()=>{var Mo=Object.defineProperty;var To=(o,e)=>{for(var t in e)Mo(o,t,{get:e[t],enumerable:!0})};var g={NODE_ENV:"production",NODE_PATH:[],STORYBOOK:"true",PUBLIC_URL:"."};var le={};To(le,{Children:()=>No,Component:()=>Te,Fragment:()=>_,Profiler:()=>Ro,PureComponent:()=>Oo,StrictMode:()=>Bo,Suspense:()=>ke,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>Lo,cloneElement:()=>Ho,createContext:()=>Io,createElement:()=>Fo,createFactory:()=>Uo,createRef:()=>jo,default:()=>Po,forwardRef:()=>Do,isValidElement:()=>zo,lazy:()=>Pe,memo:()=>Vo,startTransition:()=>Yo,unstable_act:()=>Wo,useCallback:()=>T,useContext:()=>Go,useDebugValue:()=>Zo,useDeferredValue:()=>qo,useEffect:()=>N,useId:()=>Xo,useImperativeHandle:()=>Ko,useInsertionEffect:()=>Jo,useLayoutEffect:()=>Qo,useMemo:()=>W,useReducer:()=>er,useRef:()=>tr,useState:()=>k,useSyncExternalStore:()=>or,useTransition:()=>rr,version:()=>ir});var Po=__REACT__,{Children:No,Component:Te,Fragment:_,Profiler:Ro,PureComponent:Oo,StrictMode:Bo,Suspense:ke,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Lo,cloneElement:Ho,createContext:Io,createElement:Fo,createFactory:Uo,createRef:jo,forwardRef:Do,isValidElement:zo,lazy:Pe,memo:Vo,startTransition:Yo,unstable_act:Wo,useCallback:T,useContext:Go,useDebugValue:Zo,useDeferredValue:qo,useEffect:N,useId:Xo,useImperativeHandle:Ko,useInsertionEffect:Jo,useLayoutEffect:Qo,useMemo:W,useReducer:er,useRef:tr,useState:k,useSyncExternalStore:or,useTransition:rr,version:ir}=__REACT__;var ci=__STORYBOOK_THEMING__,{CacheProvider:di,ClassNames:hi,Global:pi,ThemeProvider:ui,background:fi,color:mi,convert:gi,create:vi,createCache:yi,createGlobal:bi,createReset:xi,css:P,darken:wi,ensure:_i,ignoreSsrWarning:$i,isPropValid:Ei,jsx:p,keyframes:Si,lighten:Ai,styled:Ci,themes:Mi,typography:Ti,useTheme:ki,withTheme:Pi}=__STORYBOOK_THEMING__;var Li=__STORYBOOK_COMPONENTS__,{A:Hi,ActionBar:Ii,AddonPanel:ht,Badge:Fi,Bar:Ui,Blockquote:ji,Button:Di,ClipboardCode:zi,Code:Vi,DL:Yi,Div:Wi,DocumentWrapper:Gi,EmptyTabContent:Zi,ErrorFormatter:qi,FlexBar:pt,Form:Xi,H1:Ki,H2:Ji,H3:Qi,H4:es,H5:ts,H6:os,HR:rs,IconButton:ce,IconButtonSkeleton:is,Icons:de,Img:ss,LI:ns,Link:K,ListItem:as,Loader:ls,Modal:cs,OL:ds,P:hs,Placeholder:I,Pre:ps,ResetWrapper:us,ScrollArea:fs,Separator:ut,Spaced:ms,Span:gs,StorybookIcon:vs,StorybookLogo:ys,Symbols:bs,SyntaxHighlighter:xs,TT:ws,TabBar:_s,TabButton:$s,TabWrapper:Es,Table:Ss,Tabs:ft,TabsState:As,TooltipLinkList:Cs,TooltipMessage:Ms,TooltipNote:Ts,UL:ks,WithTooltip:Ps,WithTooltipPure:Ns,Zoom:Rs,codeCommon:Os,components:Bs,createCopyToClipboardFunction:Ls,getStoryHref:Hs,icons:Is,interleaveSeparators:Fs,nameSpaceClassNames:Us,resetComponents:js,withReset:Ds}=__STORYBOOK_COMPONENTS__;var he=window,pe=he.ShadowRoot&&(he.ShadyCSS===void 0||he.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ne=Symbol(),mt=new WeakMap,J=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==Ne)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(pe&&e===void 0){let r=t!==void 0&&t.length===1;r&&(e=mt.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&mt.set(t,e))}return e}toString(){return this.cssText}},gt=o=>new J(typeof o=="string"?o:o+"",void 0,Ne),A=(o,...e)=>{let t=o.length===1?o[0]:e.reduce((r,i,s)=>r+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+o[s+1],o[0]);return new J(t,o,Ne)},Re=(o,e)=>{pe?o.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let r=document.createElement("style"),i=he.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=t.cssText,o.appendChild(r)})},ue=pe?o=>o:o=>o instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return gt(t)})(o):o;var Oe,fe=window,vt=fe.trustedTypes,sr=vt?vt.emptyScript:"",yt=fe.reactiveElementPolyfillSupport,Le={toAttribute(o,e){switch(e){case Boolean:o=o?sr:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,e){let t=o;switch(e){case Boolean:t=o!==null;break;case Number:t=o===null?null:Number(o);break;case Object:case Array:try{t=JSON.parse(o)}catch{t=null}}return t}},bt=(o,e)=>e!==o&&(e==e||o==o),Be={attribute:!0,type:String,converter:Le,reflect:!1,hasChanged:bt},He="finalized",B=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach((t,r)=>{let i=this._$Ep(r,t);i!==void 0&&(this._$Ev.set(i,r),e.push(i))}),e}static createProperty(e,t=Be){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){let r=typeof e=="symbol"?Symbol():"__"+e,i=this.getPropertyDescriptor(e,r,t);i!==void 0&&Object.defineProperty(this.prototype,e,i)}}static getPropertyDescriptor(e,t,r){return{get(){return this[t]},set(i){let s=this[e];this[t]=i,this.requestUpdate(e,s,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Be}static finalize(){if(this.hasOwnProperty(He))return!1;this[He]=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let t=this.properties,r=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(let i of r)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let r=new Set(e.flat(1/0).reverse());for(let i of r)t.unshift(ue(i))}else e!==void 0&&t.push(ue(e));return t}static _$Ep(e,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,r;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)===null||r===void 0||r.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;let t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Re(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var r;return(r=t.hostConnected)===null||r===void 0?void 0:r.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var r;return(r=t.hostDisconnected)===null||r===void 0?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EO(e,t,r=Be){var i;let s=this.constructor._$Ep(e,r);if(s!==void 0&&r.reflect===!0){let n=(((i=r.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?r.converter:Le).toAttribute(t,r.type);this._$El=e,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(e,t){var r;let i=this.constructor,s=i._$Ev.get(e);if(s!==void 0&&this._$El!==s){let n=i.getPropertyOptions(s),c=typeof n.converter=="function"?{fromAttribute:n.converter}:((r=n.converter)===null||r===void 0?void 0:r.fromAttribute)!==void 0?n.converter:Le;this._$El=s,this[s]=c.fromAttribute(t,n.type),this._$El=null}}requestUpdate(e,t,r){let i=!0;e!==void 0&&(((r=r||this.constructor.getPropertyOptions(e)).hasChanged||bt)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),r.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,r))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((i,s)=>this[s]=i),this._$Ei=void 0);let t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var s;return(s=i.hostUpdate)===null||s===void 0?void 0:s.call(i)}),this.update(r)):this._$Ek()}catch(i){throw t=!1,this._$Ek(),i}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(r=>{var i;return(i=r.hostUpdated)===null||i===void 0?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,r)=>this._$EO(r,this[r],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};B[He]=!0,B.elementProperties=new Map,B.elementStyles=[],B.shadowRootOptions={mode:"open"},yt?.({ReactiveElement:B}),((Oe=fe.reactiveElementVersions)!==null&&Oe!==void 0?Oe:fe.reactiveElementVersions=[]).push("1.6.3");var Ie,me=window,G=me.trustedTypes,xt=G?G.createPolicy("lit-html",{createHTML:o=>o}):void 0,Ue="$lit$",F=`lit$${(Math.random()+"").slice(9)}$`,Ct="?"+F,nr=`<${Ct}>`,V=document,ee=()=>V.createComment(""),te=o=>o===null||typeof o!="object"&&typeof o!="function",Mt=Array.isArray,ar=o=>Mt(o)||typeof o?.[Symbol.iterator]=="function",Fe=`[ +\f\r]`,Q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,wt=/-->/g,_t=/>/g,D=RegExp(`>|${Fe}(?:([^\\s"'>=/]+)(${Fe}*=${Fe}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),$t=/'/g,Et=/"/g,Tt=/^(?:script|style|textarea|title)$/i,kt=o=>(e,...t)=>({_$litType$:o,strings:e,values:t}),b=kt(1),C=kt(2),L=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),St=new WeakMap,z=V.createTreeWalker(V,129,null,!1);function Pt(o,e){if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return xt!==void 0?xt.createHTML(e):e}var lr=(o,e)=>{let t=o.length-1,r=[],i,s=e===2?"":"",n=Q;for(let c=0;c"?(n=i??Q,h=-1):l[1]===void 0?h=-2:(h=n.lastIndex-l[2].length,d=l[1],n=l[3]===void 0?D:l[3]==='"'?Et:$t):n===Et||n===$t?n=D:n===wt||n===_t?n=Q:(n=D,i=void 0);let f=n===D&&o[c+1].startsWith("/>")?" ":"";s+=n===Q?a+nr:h>=0?(r.push(d),a.slice(0,h)+Ue+a.slice(h)+F+f):a+F+(h===-2?(r.push(void 0),c):f)}return[Pt(o,s+(o[t]||"")+(e===2?"":"")),r]},oe=class o{constructor({strings:e,_$litType$:t},r){let i;this.parts=[];let s=0,n=0,c=e.length-1,a=this.parts,[d,l]=lr(e,t);if(this.el=o.createElement(d,r),z.currentNode=this.el.content,t===2){let h=this.el.content,u=h.firstChild;u.remove(),h.append(...u.childNodes)}for(;(i=z.nextNode())!==null&&a.length0){i.textContent=G?G.emptyScript:"";for(let f=0;f2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=$}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,r,i){let s=this.strings,n=!1;if(s===void 0)e=Z(this,e,t,0),n=!te(e)||e!==this._$AH&&e!==L,n&&(this._$AH=e);else{let c=e,a,d;for(e=s[0],a=0;a{var r,i;let s=(r=t?.renderBefore)!==null&&r!==void 0?r:e,n=s._$litPart$;if(n===void 0){let c=(i=t?.renderBefore)!==null&&i!==void 0?i:null;s._$litPart$=n=new re(e.insertBefore(ee(),c),c,void 0,t??{})}return n._$AI(o),n};var We,Ge;var R=class extends B{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;let r=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=r.firstChild),r}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Nt(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return L}};R.finalized=!0,R._$litElement$=!0,(We=globalThis.litElementHydrateSupport)===null||We===void 0||We.call(globalThis,{LitElement:R});var Rt=globalThis.litElementPolyfillSupport;Rt?.({LitElement:R});((Ge=globalThis.litElementVersions)!==null&&Ge!==void 0?Ge:globalThis.litElementVersions=[]).push("3.3.3");var dr=(o,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,o)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,o)}},hr=(o,e,t)=>{e.constructor.createProperty(t,o)};function E(o){return(e,t)=>t!==void 0?hr(o,e,t):dr(o,e)}var Ze,pa=((Ze=window.HTMLSlotElement)===null||Ze===void 0?void 0:Ze.prototype.assignedElements)!=null?(o,e)=>o.assignedElements(e):(o,e)=>o.assignedNodes(e).filter(t=>t.nodeType===Node.ELEMENT_NODE);var H=({title:o,children:e})=>b` +
+
+ Error${o} + ${e} +
+
+`,Ot=A` + .error-background { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + + background: var(--error-bg); + color: var(--error-fg); + } + + .error-container { + max-width: 800px; + margin: auto; + padding: 1em; + } + + .error-badge { + display: inline-block; + font-size: 0.8em; + padding: 0.2em 0.5em; + margin-inline-end: 0.5em; + + background: var(--error-color); + border-radius: 2px; + color: var(--error-bg); + text-transform: uppercase; + } + + .error-title { + display: block; + font-size: 1.2em; + + font-weight: bold; + text-transform: capitalize; + } + + .error-description { + display: block; + margin-block-start: 1em; + } +`;var Bt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Lt=o=>(...e)=>({_$litDirective$:o,values:e}),ge=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var Ht="important",pr=" !"+Ht,Y=Lt(class extends ge{constructor(o){var e;if(super(o),o.type!==Bt.ATTRIBUTE||o.name!=="style"||((e=o.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((e,t)=>{let r=o[t];return r==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(o,[e]){let{style:t}=o.element;if(this.ht===void 0){this.ht=new Set;for(let r in e)this.ht.add(r);return this.render(e)}this.ht.forEach(r=>{e[r]==null&&(this.ht.delete(r),r.includes("-")?t.removeProperty(r):t[r]="")});for(let r in e){let i=e[r];if(i!=null){this.ht.add(r);let s=typeof i=="string"&&i.endsWith(pr);r.includes("-")||s?t.setProperty(r,s?i.slice(0,-11):i,s?Ht:""):t[r]=i}}return L}});function It(o){return{top:o.y,right:o.x+o.width,bottom:o.y+o.height,left:o.x}}function Ut(o,e){let t=It(o),r=It(e),i=!(t.top>r.bottom||t.bottomr.right||t.rightr.right,c=t.top>r.bottom,a={x:o.x+o.width/2,y:o.y+o.height/2};return[s?null:{points:[{x:n?t.left:t.right,y:a.y},{x:n?r.right:r.left,y:a.y}],bisector:i?void 0:[{x:n?r.right:r.left,y:a.y},{x:n?r.right:r.left,y:c?r.bottom:r.top}]},i?null:{points:[{y:c?t.top:t.bottom,x:a.x},{y:c?r.bottom:r.top,x:a.x}],bisector:s?void 0:[{y:c?r.bottom:r.top,x:a.x},{y:c?r.bottom:r.top,x:n?r.right:r.left}]}].filter(l=>!!l)}function se(o){return Math.round(o*100)/100}function ve(o,e){return[...Ft(o),...Ft(e)]}function Ft(o){return o?o instanceof Array?o:[o]:[]}var ur=function(o,e,t,r){var i=arguments.length,s=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,r);else for(var c=o.length-1;c>=0;c--)(n=o[c])&&(s=(i<3?n(s):i>3?n(e,t,s):n(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s},jt=o=>{class e extends o{constructor(...r){super(...r),this.selectedNode=null}updated(r){super.updated(r),r.has("selectedNode")&&this.dispatchEvent(new CustomEvent("nodeselect",{detail:{selectedNode:this.selectedNode}}))}}return ur([E({attribute:!1})],e.prototype,"selectedNode",void 0),e};function ye(o){return o.touches.length===0||o.touches.length>2}function fr(o,e){return Math.sqrt(Math.pow(o.x-e.x,2)+Math.pow(o.y-e.y,2))}var Dt=o=>class extends o{constructor(...t){super(...t),this.previousTouches=null,this.addEventListener("touchstart",r=>{ye(r)||(r.preventDefault(),this.previousTouches=r.touches)}),this.addEventListener("touchend",r=>{ye(r)||(r.preventDefault(),this.previousTouches=null)}),this.addEventListener("touchcancel",r=>{ye(r)||(r.preventDefault(),this.previousTouches=null)}),this.addEventListener("touchmove",r=>{if(ye(r))return;let i=Array.from(this.previousTouches||[]),s=Array.from(r.touches);if(this.previousTouches=r.touches,!(s.length!==i.length||!s.every(n=>i.some(c=>c.identifier===n.identifier)))){if(s.length===1){this.onTouchPan({x:s[0].pageX-i[0].pageX,y:s[0].pageY-i[0].pageY});return}this.onTouchPinch(fr({x:s[0].pageX,y:s[0].pageY},{x:i[0].pageX,y:i[0].pageY}))}})}get isTouching(){return!!(this.previousTouches&&this.previousTouches.length>0)}onTouchPan(t){}onTouchPinch(t){}};var ne=function(o,e,t,r){var i=arguments.length,s=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,r);else for(var c=o.length-1;c>=0;c--)(n=o[c])&&(s=(i<3?n(s):i>3?n(e,t,s):n(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s},O=function(o,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!r:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(o):r?r.value:e.get(o)},zt=function(o,e,t,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!i:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(o,t):i?i.value=t:e.set(o,t),t},Vt=o=>{var e,t,r,i,s;class n extends Dt(o){constructor(...a){super(...a),this.panX=0,this.panY=0,this.scale=1,this.zoomSpeed=500,this.panSpeed=500,e.set(this,!1),t.set(this,(l,h)=>{this.panX+=l/this.scale/window.devicePixelRatio,this.panY+=h/this.scale/window.devicePixelRatio}),r.set(this,l=>{l.code==="Space"&&!O(this,e,"f")&&(zt(this,e,!0,"f"),document.body.style.cursor="grab")}),i.set(this,l=>{l.code==="Space"&&O(this,e,"f")&&(zt(this,e,!1,"f"),document.body.style.cursor="auto")}),s.set(this,()=>{document.addEventListener("keyup",O(this,i,"f")),document.addEventListener("keydown",O(this,r,"f"))}),this.addEventListener("wheel",l=>{if(this.isMovable)if(l.preventDefault(),l.ctrlKey){let{deltaY:h}=l;l.deltaMode===1&&(h*=15);let u=this.scale;this.scale*=1-h/((1e3-this.zoomSpeed)*.5);let f=l.offsetX-this.offsetWidth/2,m=l.offsetY-this.offsetHeight/2;this.panX+=f/this.scale-f/u,this.panY+=m/this.scale-m/u}else{let h=this.panSpeed*.002;this.panX-=l.deltaX*h/this.scale,this.panY-=l.deltaY*h/this.scale}},{passive:!1});let d=1;this.addEventListener("gesturestart",l=>{l.preventDefault(),d=this.scale}),this.addEventListener("gesturechange",l=>{let h=l;h.preventDefault(),this.scale=d*h.scale}),this.addEventListener("pointermove",l=>{l.buttons&4&&(l.preventDefault(),O(this,t,"f").call(this,l.movementX,l.movementY))}),O(this,s,"f").call(this),this.onmousedown=()=>{O(this,e,"f")&&(document.body.style.cursor="grabbing",this.onmousemove=({movementX:l,movementY:h})=>{O(this,t,"f").call(this,l,h)},this.onmouseup=()=>{document.body.style.cursor="grab",this.onmousemove=null,this.onmouseup=null})}}get isMovable(){return!0}get canvasTransform(){return[`scale(${this.scale})`,`translate(${this.panX}px, ${this.panY}px)`]}disconnectedCallback(){document.removeEventListener("keyup",O(this,i,"f")),document.removeEventListener("keydown",O(this,r,"f")),super.disconnectedCallback()}updated(a){super.updated(a),a.has("scale")&&this.dispatchEvent(new CustomEvent("scalechange",{detail:{scale:this.scale}})),(a.has("panX")||a.has("panY"))&&this.dispatchEvent(new CustomEvent("positionchange",{detail:{x:this.panX,y:this.panY}}))}onTouchPan(a){this.panX+=a.x/this.scale,this.panY+=a.y/this.scale}onTouchPinch(a){this.scale*=1-a/1e3}}return e=new WeakMap,t=new WeakMap,r=new WeakMap,i=new WeakMap,s=new WeakMap,ne([E({attribute:!1})],n.prototype,"panX",void 0),ne([E({attribute:!1})],n.prototype,"panY",void 0),ne([E({attribute:!1})],n.prototype,"scale",void 0),ne([E({type:Number,attribute:"zoom-speed"})],n.prototype,"zoomSpeed",void 0),ne([E({type:Number,attribute:"pan-speed"})],n.prototype,"panSpeed",void 0),n};var mr=({guide:o,reverseScale:e})=>{let t=Math.abs(o.points[0].x-o.points[1].x),r=Math.abs(o.points[0].y-o.points[1].y);return t===0&&r===0?null:C` + + + ${o.bisector&&C` + + `} + `},gr=({guide:o,reverseScale:e,fontSize:t})=>{let r=Math.abs(o.points[0].x-o.points[1].x),i=Math.abs(o.points[0].y-o.points[1].y);if(r===0&&i===0)return null;let s=se(Math.max(r,i)).toString(10),n=s.length*t*.5,c=t*.25,a=t*.25,d=t*.5,l=r>i?(o.points[0].x+o.points[1].x)/2-n/2:o.points[0].x,h=r>i?o.points[0].y:(o.points[0].y+o.points[1].y)/2-t/2,u=[`scale(${e})`,r>i?`translate(0, ${c+a})`:`translate(${c+d}, 0)`].join(" "),f=l+n/2,m=h+t/2,x=r>i?`${f} ${h}`:`${l} ${m}`;return C` + + + + + ${s} + + + `},Yt=new Map,Wt=({node:o,distanceTo:e,reverseScale:t,fontSize:r})=>{let i=o.id+` +`+e.id,s=Yt.get(i);return s||(s=Ut(o.absoluteBoundingBox,e.absoluteBoundingBox),Yt.set(i,s)),[...s.map(n=>mr({guide:n,reverseScale:t})),...s.map(n=>gr({guide:n,reverseScale:t,fontSize:r}))]},Gt=A` + .distance-line { + shape-rendering: geometricPrecision; + fill: none; + opacity: 0; + } + + .distance-tooltip { + opacity: 0; + } + + .guide:hover ~ .distance-line, + .guide:hover ~ .distance-tooltip { + opacity: 1; + } +`;var Zt=({onClick:o=()=>{}})=>C` + + + +`,Xe=({onClick:o=()=>{}})=>C` + + + +`,qt=()=>C` + + + + + +`,Xt=()=>C` + + + + + +`,Kt=()=>C` + + + +`;var X=o=>o.a===0?"transparent":o.a<1?`rgba(${Jt(o).join(", ")}, ${o.a.toFixed(2)})`:br(o),yr=o=>new Ke(o).cssColor,Ke=class{constructor(e){this.gradientHandles={start:e.gradientHandlePositions[0],end:e.gradientHandlePositions[1]},this.colors=e.gradientStops,this.colorObjects=this.createColorObjects(this.colors),this.angle=this.calculateAngle(this.gradientHandles.start,this.gradientHandles.end)}get cssGradientArray(){return this.colorObjects.map((e,t)=>{let r=this.floatToPercent(this.colors[t].position);return e+" "+r})}get cssColor(){let e=this.cssGradientArray;return e.unshift(this.angle+"deg"),`linear-gradient(${e.join(", ")})`}createColorObjects(e){return e.map(({color:t})=>X(t))}floatToPercent(e){return(e*=100).toFixed(0)+"%"}calculateAngle(e,t){let r=Math.atan(this.calculateGradient(e,t));return parseInt(this.radToDeg(r).toFixed(1))}calculateGradient(e,t){return(t.y-e.y)/(t.x-e.x)*-1}radToDeg(e){return 180*e/Math.PI}},be=class{constructor(e){var t,r,i;if(this.hasPadding=!1,this.height=`${Math.trunc(e.absoluteBoundingBox.height)}px`,this.width=`${Math.trunc(e.absoluteBoundingBox.width)}px`,(e.horizontalPadding||e.verticalPadding)&&(this.hasPadding=!0,this.horizontalPadding=`${e.horizontalPadding}px`,this.verticalPadding=`${e.verticalPadding}px`),e.style&&(this.fontFamily=e.style.fontFamily,this.fontPostScriptName=(t=e.style.fontPostScriptName)===null||t===void 0?void 0:t.replace("-"," "),this.fontWeight=e.style.fontWeight,this.fontSize=`${Math.ceil(e.style.fontSize)}px`,this.lineHeight=`${Math.trunc(e.style.lineHeightPx)}px`),e.rectangleCornerRadii&&(this.borderRadius=e.rectangleCornerRadii.filter(n=>n===e.cornerRadius).length<4?`${e.rectangleCornerRadii.join("px ")}px`:`${e.cornerRadius}px`),e.backgroundColor||e.backgroundColor){let n=e.backgroundColor||((r=e.background)===null||r===void 0?void 0:r[0].color);this.background=X(n)}let s=(i=e.fills)===null||i===void 0?void 0:i[0];if(s&&s.visible!==!1&&(e.type==="TEXT"?this.color=X(s.color):s.type.includes("GRADIENT")?this.backgroundImage=yr(s):s.type==="SOLID"&&(this.background=X(s.color))),e.strokes&&e.strokes.length>0&&(this.borderColor=X(e.strokes[0].color),this.border=`${e.strokeWeight}px solid ${this.borderColor}`),e.effects&&e.effects.length>0){let{offset:n,radius:c,color:a}=e.effects[0];this.boxShadowColor=X(a),this.boxShadow=`${n?.x||0}px ${n?.y||0}px 0 ${c} ${this.boxShadowColor}`}}getStyles(){return[this.height&&{property:"height",value:this.height},this.width&&{property:"width",value:this.width},this.fontFamily&&{property:"font-family",value:this.fontFamily},this.fontSize&&{property:"font-size",value:this.fontSize},this.fontWeight&&{property:"font-weight",value:this.fontWeight},this.lineHeight&&{property:"line-height",value:this.lineHeight},this.borderRadius&&{property:"border-radius",value:this.borderRadius},this.backgroundImage&&{property:"background-image",value:this.backgroundImage},this.boxShadow&&{property:"box-shadow",value:this.boxShadow,color:this.boxShadowColor},this.border&&{property:"border",value:this.border,color:this.borderColor},this.background&&{property:"background",value:this.background,color:this.background},this.color&&{property:"color",value:this.color,color:this.color}].filter(Boolean)}getStyleSheet(){return this.getStyles().map(Je).join(` +`)}},Jt=o=>[Math.trunc(255*o.r),Math.trunc(255*o.g),Math.trunc(255*o.b)],br=o=>{let[e,t,r]=Jt(o);return"#"+((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1)},Je=({property:o,value:e})=>`${o}: ${e};`;var xr=function(o,e,t,r){function i(s){return s instanceof t?s:new t(function(n){n(s)})}return new(t||(t=Promise))(function(s,n){function c(l){try{d(r.next(l))}catch(h){n(h)}}function a(l){try{d(r.throw(l))}catch(h){n(h)}}function d(l){l.done?s(l.value):i(l.value).then(c,a)}d((r=r.apply(o,e||[])).next())})},Qe=o=>xr(void 0,void 0,void 0,function*(){yield navigator.clipboard.writeText(o)}),Qt=({node:o,onClose:e})=>{if(!o)return null;let t=new be(o),r=i=>i.stopPropagation();return b` +
+
+
+

${o.name}

+ ${Zt({onClick:e})} +
+
+
+

+ W: ${t.width} +

+

+ H: ${t.height} +

+
+ ${t.fontPostScriptName?b`

+ Font: + ${t.fontPostScriptName} +

`:null} +
+
+ ${t.hasPadding?b`
+

Layout

+ ${t.horizontalPadding&&b`

+ ${qt()} ${t.horizontalPadding} +

`} + ${t.verticalPadding&&b`

+ ${Xt()} ${t.verticalPadding} +

`} +
`:null} + ${o.characters?b`
+
+

Content

+ ${Xe({onClick:()=>Qe(o.characters)})} +
+

+ ${o.characters} +

+
`:null} + ${wr(t)} +
+ `},wr=o=>{let e=()=>Qe(o.getStyleSheet()),t=o.getStyles();return b`
+
+

CSS

+ ${Xe({onClick:e})} +
+
+ ${t.map(_r)} +
+
`},_r=o=>{let{property:e,value:t,color:r}=o,i=null;switch(e){case"background":case"fill":case"border":case"box-shadow":case"color":i=b``;break;case"background-image":i=b``;break}return b`
Qe(Je(o))}> + ${e}:${i}${t}; +
`},eo=A` + .inspector-view { + height: 100%; + width: 300px; + position: absolute; + right: 0; + background: white; + border-left: 1px solid #ccc; + overflow-y: auto; + z-index: calc(var(--z-index) + 2); + } + + .inspector-view h4 { + font-size: 16px; + margin: 0; + } + + .style-section { + margin-bottom: 12px; + } + + .title-section { + display: flex; + align-items: center; + } + + .code-section { + padding: 8px; + background: #f3f3f3; + font-family: monospace; + } + + .title-section svg { + cursor: pointer; + margin-left: auto; + } + + .inspector-section { + padding: 16px; + border-bottom: 1px solid #eee; + } + + .properties-overview { + font-family: monospace; + color: #518785; + } + + .properties-overview p span { + color: #121212; + } + + .inspector-property { + display: flex; + align-items: center; + margin-bottom: 0; + } + + .inspector-property span { + color: #b3b3b3; + margin-right: 4px; + } + + .inspector-property svg { + margin-right: 8px; + } + + .css-property { + margin: 8px; + transition: background-color ease-in-out 100ms; + } + + .css-property:hover { + cursor: pointer; + background-color: #e8e8e8; + } + + .css-value { + color: #518785; + margin-left: 4px; + } + + .color-preview { + display: inline-block; + width: 12px; + height: 12px; + border: 1px solid #ccc; + margin-left: 4px; + vertical-align: middle; + } + + .selectable-content { + cursor: text; + user-select: text; + } +`;var et=({node:o,selected:e=!1,computedThickness:t,onClick:r})=>{let{x:i,y:s,width:n,height:c}=o.absoluteBoundingBox,a="cornerRadius"in o&&o.cornerRadius?{topLeft:o.cornerRadius,topRight:o.cornerRadius,bottomRight:o.cornerRadius,bottomLeft:o.cornerRadius}:"rectangleCornerRadii"in o&&o.rectangleCornerRadii?{topLeft:o.rectangleCornerRadii[0],topRight:o.rectangleCornerRadii[1],bottomRight:o.rectangleCornerRadii[2],bottomLeft:o.rectangleCornerRadii[3]}:{topLeft:0,topRight:0,bottomRight:0,bottomLeft:0},d=t/2,l=(m,x)=>`M${m},${x}`,h=(m,x)=>`L${m},${x}`,u=(m,x,S)=>`A${m},${m} 0 0 1 ${x},${S}`,f=[l(a.topLeft+d,d),h(n-a.topRight,d),u(a.topRight-d,n-d,a.topRight),h(n-d,c-a.bottomRight),u(a.bottomRight-d,n-a.bottomRight,c-d),h(a.bottomLeft,c-d),u(a.bottomLeft-d,d,c-a.bottomLeft),h(d,a.topLeft),u(a.topLeft-d,a.topLeft,d),"Z"].join(" ");return C` + + `},to=({nodeSize:{x:o,y:e,width:t,height:r},offsetX:i,offsetY:s,reverseScale:n})=>{let c={top:`${s+e+r}px`,left:`${i+o+t/2}px`,transform:`translateX(-50%) scale(${n}) translateY(0.25em)`};return b` +
+ ${se(t)} x ${se(r)} +
+ `},oo=A` + .guide { + /* + * SVGs cannot be pixel perfect, especially floating values. + * Since many platform renders them visually incorrectly (probably they + * are following the spec), it's safe to set overflow to visible. + * Cropped borders are hard to visible and ugly. + */ + overflow: visible; + + pointer-events: all; + + opacity: 0; + } + .guide:hover { + opacity: 1; + } + .guide[data-selected] { + opacity: 1; + stroke: var(--guide-selected-color); + } + + .tooltip { + position: absolute; + padding: 0.25em 0.5em; + font-size: var(--guide-tooltip-font-size); + + color: var(--guide-selected-tooltip-fg); + background-color: var(--guide-selected-tooltip-bg); + border-radius: 2px; + pointer-events: none; + z-index: calc(var(--z-index) + 1); + + transform-origin: top center; + } +`;var Sr=[{gte:31536e6,divisor:31536e6,unit:"year"},{gte:2592e6,divisor:2592e6,unit:"month"},{gte:6048e5,divisor:6048e5,unit:"week"},{gte:864e5,divisor:864e5,unit:"day"},{gte:36e5,divisor:36e5,unit:"hour"},{gte:6e4,divisor:6e4,unit:"minute"},{gte:3e4,divisor:1e3,unit:"seconds"},{gte:0,divisor:1,text:"just now"}],ro=o=>(typeof o=="object"?o:new Date(o)).getTime(),io=(o,e=Date.now(),t=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}))=>{let i=ro(e)-ro(o),s=Math.abs(i);for(let n of Sr)if(s>=n.gte){let c=Math.round(Math.abs(i)/n.divisor),a=i<0,d=n.unit;return d?t.format(a?c:-c,d):n.text}};var so=A` + .figma-footer { + flex: 0; + z-index: calc(var(--z-index) + 1); + border-top: 1px solid #ccc; + min-height: 48px; + padding: 0 16px; + text-decoration: none; + display: flex; + flex-direction: row; + justify-content: start; + align-items: center; + background-color: #fff; + overflow-x: auto; + cursor: pointer; + font-size: 12px; + color: rgba(0, 0, 0, 0.8); + } + + .figma-footer--icon { + margin-right: 12px; + } + + .figma-footer--title { + font-weight: 600; + margin-right: 4px; + + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + + .figma-footer--timestamp { + white-space: nowrap; + overflow: hidden; + } +`,no=o=>{if(!o||!o.link||o.link===void 0||o.link==="undefined")return null;let{link:e,timestamp:t,fileName:r}=o;return b` + ${Kt()} + ${r} + + Edited ${io(t)} + + `};var ao=function(o,e,t,r){var i=arguments.length,s=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,r);else for(var c=o.length-1;c>=0;c--)(n=o[c])&&(s=(i<3?n(s):i>3?n(e,t,s):n(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s},M=function(o,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!r:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(o):r?r.value:e.get(o)},tt=function(o,e,t,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!i:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(o,t):i?i.value=t:e.set(o,t),t},we=o=>{var e,t,r,i,s;class n extends jt(Vt(o)){constructor(...a){super(...a),this.zoomMargin=50,this.link="",e.set(this,void 0),t.set(this,void 0),r.set(this,void 0),i.set(this,d=>l=>{l.preventDefault(),l.stopPropagation(),this.selectedNode=d}),s.set(this,d=>{var l,h;return(h=(l=M(this,r,"f"))===null||l===void 0?void 0:l.find(u=>u.id===d))!==null&&h!==void 0?h:null})}static get styles(){let a=super.styles;return ve(a,[A` + :host { + --default-error-bg: #fff; + --default-error-fg: #333; + + --bg: var(--figspec-viewer-bg, #e5e5e5); + --z-index: var(--figspec-viewer-z-index, 0); + --error-bg: var(--figspec-viewer-error-bg, var(--default-error-bg)); + --error-fg: var(--figspec-viewer-error-fg, var(--default-error-fg)); + --error-color: var(--figspec-viewer-error-color, tomato); + + --guide-thickness: var(--figspec-viewer-guide-thickness, 1.5px); + --guide-color: var(--figspec-viewer-guide-color, tomato); + --guide-selected-color: var( + --figspec-viewer-guide-selected-color, + dodgerblue + ); + --guide-tooltip-fg: var(--figspec-viewer-guide-tooltip-fg, white); + --guide-selected-tooltip-fg: var( + --figspec-viewer-guide-selected-tooltip-fg, + white + ); + --guide-tooltip-bg: var( + --figspec-viewer-guide-tooltip-bg, + var(--guide-color) + ); + --guide-selected-tooltip-bg: var( + --figspec-viewer-guide-selected-tooltip-bg, + var(--guide-selected-color) + ); + --guide-tooltip-font-size: var( + --figspec-viewer-guide-tooltip-font-size, + 12px + ); + + position: relative; + display: block; + + background-color: var(--bg); + user-select: none; + overflow: hidden; + z-index: var(--z-index); + } + + @media (prefers-color-scheme: dark) { + :host { + --default-error-bg: #222; + --default-error-fg: #fff; + } + } + + .spec-canvas-wrapper { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + display: flex; + flex-direction: column-reverse; + } + + .canvas { + position: absolute; + top: 50%; + left: 50%; + flex: 1; + } + + .rendered-image { + position: absolute; + top: 0; + left: 0; + } + + .guides { + position: absolute; + + overflow: visible; + stroke: var(--guide-color); + fill: var(--guide-color); + pointer-events: none; + z-index: calc(var(--z-index) + 2); + } + `,oo,Ot,Gt,eo,so])}get __images(){return{}}deselectNode(){this.selectedNode=null}get error(){return!M(this,e,"f")||!M(this,r,"f")?H({title:"Error",children:"Please call `__updateTree/1` method with a valid parameter."}):null}render(){if(this.error)return this.error instanceof Error?H({title:this.error.name||"Error",children:this.error.message}):typeof this.error=="string"?H({title:"Error",children:this.error}):this.error;let a=M(this,e,"f"),d=1/this.scale,l=`calc(var(--guide-thickness) * ${d})`,h=parseFloat(getComputedStyle(this).getPropertyValue("--guide-thickness")),u=parseFloat(getComputedStyle(this).getPropertyValue("--guide-tooltip-font-size"));return b` +
+
+ ${Object.entries(this.__images).map(([f,m])=>{var x;let S=M(this,s,"f").call(this,f);if(!S||!("absoluteBoundingBox"in S)||!(!((x=M(this,t,"f"))===null||x===void 0)&&x[S.id]))return null;let w=M(this,t,"f")[S.id];return b` + + `})} + ${this.selectedNode&&to({nodeSize:this.selectedNode.absoluteBoundingBox,offsetX:-a.x,offsetY:-a.y,reverseScale:d})} + ${C` + + ${this.selectedNode&&et({node:this.selectedNode,selected:!0,computedThickness:h*d})} + + ${M(this,r,"f").map(f=>{var m;return f.id===((m=this.selectedNode)===null||m===void 0?void 0:m.id)?null:C` + + ${et({node:f,computedThickness:h*d,onClick:M(this,i,"f").call(this,f)})} + ${this.selectedNode&&Wt({node:f,distanceTo:this.selectedNode,reverseScale:d,fontSize:u})} + + `})} + + `} +
+ ${Qt({node:this.selectedNode,onClose:this.deselectNode})} + ${no(this.getMetadata())} +
+ `}getMetadata(){}connectedCallback(){super.connectedCallback(),this.resetZoom()}updated(a){super.updated(a)}__updateTree(a){if(!(a.type==="CANVAS"||a.type==="FRAME"||a.type==="COMPONENT"||a.type==="COMPONENT_SET"))throw new Error("Cannot update node tree: Top level node MUST be one of CANVAS, FRAME, COMPONENT, or COMPONENT_SET");tt(this,e,a.type==="CANVAS"?Cr(a):a.absoluteBoundingBox,"f"),tt(this,r,xe(a),"f"),this.requestUpdate()}__updateEffectMargins(){if(!this.__images)return;let a=Object.keys(this.__images).map(M(this,s,"f")).filter(d=>!!d);tt(this,t,a.reduce((d,l)=>"absoluteBoundingBox"in l?Object.assign(Object.assign({},d),{[l.id]:Mr(l,xe(l))}):d,{}),"f"),this.requestUpdate()}resetZoom(){if(M(this,e,"f")){let{width:a,height:d}=M(this,e,"f"),{width:l,height:h}=this.getBoundingClientRect(),u=l/(a+this.zoomMargin*2),f=h/(d+this.zoomMargin*2);this.scale=Math.min(u,f,1)}}}return e=new WeakMap,t=new WeakMap,r=new WeakMap,i=new WeakMap,s=new WeakMap,ao([E({type:Number,attribute:"zoom-margin"})],n.prototype,"zoomMargin",void 0),ao([E({type:String,attribute:"link"})],n.prototype,"link",void 0),n};function Cr(o){let e=[],t=[],r=[],i=[];for(let c of o.children){if(c.type!=="FRAME"&&c.type!=="COMPONENT")continue;let{x:a,y:d,width:l,height:h}=c.absoluteBoundingBox;e.push(a),t.push(a+l),r.push(d),i.push(d+h)}let s=Math.min(...e),n=Math.min(...r);return{x:s,y:n,width:Math.abs(Math.max(...t)-s),height:Math.abs(Math.min(...i)-n)}}function Mr(o,e){let t=e.map(i=>{if(!("effects"in i))return{top:i.absoluteBoundingBox.y,right:i.absoluteBoundingBox.x+i.absoluteBoundingBox.width,bottom:i.absoluteBoundingBox.y+i.absoluteBoundingBox.height,left:i.absoluteBoundingBox.x};let s=i.effects.filter(a=>a.visible&&a.type==="LAYER_BLUR").map(a=>a.radius),n=i.effects.filter(a=>a.visible&&a.type==="DROP_SHADOW"&&!!a.offset).map(a=>({left:a.radius-a.offset.x,top:a.radius-a.offset.y,right:a.radius+a.offset.x,bottom:a.radius+a.offset.y})),c={top:Math.max(0,...s,...n.map(a=>a.top)),right:Math.max(0,...s,...n.map(a=>a.right)),bottom:Math.max(0,...s,...n.map(a=>a.bottom)),left:Math.max(0,...s,...n.map(a=>a.left))};return{top:i.absoluteBoundingBox.y-c.top,right:i.absoluteBoundingBox.x+i.absoluteBoundingBox.width+c.right,bottom:i.absoluteBoundingBox.y+i.absoluteBoundingBox.height+c.bottom,left:i.absoluteBoundingBox.x-c.left}}),r={top:Math.min(...t.map(i=>i.top)),right:Math.max(...t.map(i=>i.right)),bottom:Math.max(...t.map(i=>i.bottom)),left:Math.min(...t.map(i=>i.left))};return{top:o.absoluteBoundingBox.y-r.top,right:r.right-o.absoluteBoundingBox.x-o.absoluteBoundingBox.width,bottom:r.bottom-o.absoluteBoundingBox.y-o.absoluteBoundingBox.height,left:o.absoluteBoundingBox.x-r.left}}function xe(o,e=0){return"absoluteBoundingBox"in o?!("children"in o)||o.children.length===0?[Object.assign(Object.assign({},o),{depth:e})]:[Object.assign(Object.assign({},o),{depth:e}),...o.children.map(t=>xe(t,e+1)).flat()]:o.children.map(t=>xe(t,e+1)).flat()}var lo=function(o,e,t,r){var i=arguments.length,s=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,r);else for(var c=o.length-1;c>=0;c--)(n=o[c])&&(s=(i<3?n(s):i>3?n(e,t,s):n(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s},U=class extends we(R){constructor(){super(...arguments),this.nodes=null,this.renderedImage=null}get isMovable(){return!!(this.nodes&&this.renderedImage&&this.documentNode)}get documentNode(){if(!this.nodes)return null;let e=Object.values(this.nodes.nodes)[0];return!e||!("absoluteBoundingBox"in e.document)?null:e.document}get __images(){return!this.documentNode||!this.renderedImage?{}:{[this.documentNode.id]:this.renderedImage}}get error(){if(!this.nodes||!this.renderedImage)return H({title:"Parameter error",children:b` + Both nodes and rendered-image are required. + `});if(!this.documentNode)return H({title:"Parameter Error",children:b` + Document node is empty or does not have size. + `});if(super.error)return super.error}getMetadata(){return{fileName:this.nodes.name,timestamp:this.nodes.lastModified,link:this.link}}connectedCallback(){super.connectedCallback(),this.documentNode&&(this.__updateTree(this.documentNode),this.__updateEffectMargins(),this.resetZoom())}updated(e){if(super.updated(e),e.has("nodes")){if(!this.documentNode)return;this.__updateTree(this.documentNode),this.resetZoom()}e.has("renderedImage")&&this.__updateEffectMargins()}};lo([E({type:Object})],U.prototype,"nodes",void 0);lo([E({type:String,attribute:"rendered-image"})],U.prototype,"renderedImage",void 0);var co=function(o,e,t,r){var i=arguments.length,s=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,r);else for(var c=o.length-1;c>=0;c--)(n=o[c])&&(s=(i<3?n(s):i>3?n(e,t,s):n(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s},ot=function(o,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!r:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(o):r?r.value:e.get(o)},_e,rt,j=class extends we(R){constructor(){super(...arguments),this.documentNode=null,this.renderedImages=null,this.selectedPage=null,_e.set(this,()=>{var e;if(!this.documentNode){this.selectedPage=null;return}this.selectedPage=(e=this.documentNode.document.children.filter(t=>t.type==="CANVAS")[0])!==null&&e!==void 0?e:null}),rt.set(this,e=>{var t,r;let i=e.currentTarget;this.selectedPage=(r=(t=this.documentNode)===null||t===void 0?void 0:t.document.children.find(s=>s.id===i.value))!==null&&r!==void 0?r:null,this.selectedPage&&(this.__updateTree(this.selectedPage),this.resetZoom(),this.__updateEffectMargins(),this.panX=0,this.panY=0)})}get isMovable(){return!!(this.renderedImages&&this.documentNode)}get __images(){return this.renderedImages||{}}get error(){if(!this.documentNode||!this.renderedImages)return H({title:"Parameter error",children:b` + Both document-node and rendered-images are + required. + `});if(super.error)return super.error}static get styles(){return ve(super.styles,[A` + :host { + --figspec-control-bg-default: #fcfcfc; + --figspec-control-fg-default: #333; + + --control-bg: var( + --figspec-control-bg, + var(--figspec-control-bg-default) + ); + --control-fg: var( + --figspec-control-bg, + var(--figspec-control-fg-default) + ); + --control-shadow: var( + --figspec-control-shadow, + 0 2px 4px rgba(0, 0, 0, 0.3) + ); + --padding: var(--figspec-control-padding, 8px 16px); + + display: flex; + flex-direction: column; + } + + @media (prefers-color-scheme: dark) { + :host { + --figspec-control-bg-default: #222; + --figspec-control-fg-default: #fff; + } + } + + .controls { + flex-shrink: 0; + padding: var(--padding); + + background-color: var(--control-bg); + box-shadow: var(--control-shadow); + color: var(--control-fg); + z-index: 1; + } + + .view { + position: relative; + flex-grow: 1; + flex-shrink: 1; + } + `])}render(){var e;return b` +
+ +
+ +
${super.render()}
+ `}getMetadata(){return{fileName:this.documentNode.name,timestamp:this.documentNode.lastModified,link:this.link}}connectedCallback(){super.connectedCallback(),this.documentNode&&(ot(this,_e,"f").call(this),this.selectedPage&&(this.__updateTree(this.selectedPage),this.resetZoom()))}updated(e){super.updated(e),e.has("documentNode")&&(ot(this,_e,"f").call(this),this.selectedPage&&(this.__updateTree(this.selectedPage),this.resetZoom())),e.has("renderedImages")&&this.__updateEffectMargins()}};_e=new WeakMap,rt=new WeakMap;co([E({type:Object,attribute:"document-node"})],j.prototype,"documentNode",void 0);co([E({type:Object,attribute:"rendered-images"})],j.prototype,"renderedImages",void 0);customElements.get("figspec-file-viewer")||customElements.define("figspec-file-viewer",j);customElements.get("figspec-frame-viewer")||customElements.define("figspec-frame-viewer",U);var Tr=new Set(["children","localName","ref","style","className"]),ho=new WeakMap,kr=(o,e,t,r,i)=>{let s=i?.[e];s===void 0||t===r?t==null&&e in HTMLElement.prototype?o.removeAttribute(e):o[e]=t:((n,c,a)=>{let d=ho.get(n);d===void 0&&ho.set(n,d=new Map);let l=d.get(c);a!==void 0?l===void 0?(d.set(c,l={handleEvent:a}),n.addEventListener(c,l)):l.handleEvent=a:l!==void 0&&(d.delete(c),n.removeEventListener(c,l))})(o,s,t)},Pr=(o,e)=>{typeof o=="function"?o(e):o.current=e};function $e(o=window.React,e,t,r,i){let s,n,c;if(e===void 0){let f=o;({tagName:n,elementClass:c,events:r,displayName:i}=f),s=f.react}else s=o,c=t,n=e;let a=s.Component,d=s.createElement,l=new Set(Object.keys(r??{}));class h extends a{constructor(){super(...arguments),this.o=null}t(m){if(this.o!==null)for(let x in this.i)kr(this.o,x,this.props[x],m?m[x]:void 0,r)}componentDidMount(){var m;this.t(),(m=this.o)===null||m===void 0||m.removeAttribute("defer-hydration")}componentDidUpdate(m){this.t(m)}render(){let{_$Gl:m,...x}=this.props;this.h!==m&&(this.u=w=>{m!==null&&Pr(m,w),this.o=w,this.h=m}),this.i={};let S={ref:this.u};for(let[w,Me]of Object.entries(x))Tr.has(w)?S[w==="className"?"class":w]=Me:l.has(w)||w in c.prototype?this.i[w]=Me:S[w]=Me;return S.suppressHydrationWarning=!0,d(n,S)}}h.displayName=i??c.name;let u=s.forwardRef((f,m)=>d(h,{...f,_$Gl:m},f?.children));return u.displayName=h.displayName,u}var po=$e(le,"figspec-frame-viewer",U,{onNodeSelect:"nodeselect",onPositionChange:"positionchange",onScaleChange:"scalechange"}),uo=$e(le,"figspec-file-viewer",j,{onNodeSelect:"nodeselect",onPositionChange:"positionchange",onScaleChange:"scalechange"});var Jc=__STORYBOOK_API__,{ActiveTabs:Qc,Consumer:ed,ManagerContext:td,Provider:od,RequestResponseError:rd,addons:Ee,combineParameters:id,controlOrMetaKey:sd,controlOrMetaSymbol:nd,eventMatchesShortcut:ad,eventToShortcut:ld,experimental_requestResponse:cd,isMacLike:dd,isShortcutTaken:hd,keyToSymbol:pd,merge:ud,mockChannel:fd,optionOrAltSymbol:md,shortcutMatchesShortcut:gd,shortcutToHumanString:vd,types:it,useAddonState:yd,useArgTypes:bd,useArgs:xd,useChannel:wd,useGlobalTypes:_d,useGlobals:$d,useParameter:st,useSharedState:Ed,useStoryPrepared:Sd,useStorybookApi:Ad,useStorybookState:fo}=__STORYBOOK_API__;var Nr=Object.defineProperty,ct=(o,e)=>()=>(o&&(e=o(o=0)),e),Rr=(o,e)=>{for(var t in e)Nr(o,t,{get:e[t],enumerable:!0})},Ce,mo,go,vo,dt=ct(()=>{Ce=({config:o,defer:e=!1})=>{let[t,r]=k(e?void 0:o.url),[i,s]=k(!1);return N(()=>{if(!e)return;let n=requestAnimationFrame(()=>{r(o.url)});return()=>cancelAnimationFrame(n)},[e,o.url]),N(()=>{s(!1)},[t]),p("div",{css:mo},!i&&p(I,{css:go},"Loading..."),p("iframe",{css:vo,src:t,allowFullScreen:o.allowFullscreen,onLoad:()=>s(!0)}))},mo=P` + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + + overflow: hidden; +`,go=P` + position: absolute; + top: 50%; + left: 50%; + + transform: translate(-50%, -50%); +`,vo=P` + position: relative; + width: 100%; + height: 100%; + border: none; + + z-index: 1; +`}),at,yo,_o,$o=ct(()=>{dt(),at=/https:\/\/[\w.-]+\.?figma.com\/([\w-]+)\/([0-9a-zA-Z]{22,128})(?:\/.*)?$/,yo=o=>at.test(o),_o=({config:o})=>{let e=W(()=>yo(o.url)?{url:`https://www.figma.com/embed?embed_host=${o.embedHost||location.hostname}&url=${o.url}`,allowFullscreen:o.allowFullscreen}:(console.warn(`[storybook-addon-designs] The URL you specified is not valid Figma URL. +The addon fallbacks to normal iframe mode.For more detail, please check .`),o),[o.url,o.allowFullscreen,o.embedHost]);return p(Ce,{defer:!0,config:e})}}),Eo={};Rr(Eo,{Figspec:()=>lt,default:()=>Ao});function Se(o){return o.status!==200?Promise.reject(o.statusText):o.json()}function Or(o){if(o.accessToken)return o.accessToken;try{return g.STORYBOOK_FIGMA_ACCESS_TOKEN??null}catch{return null}}function So(o){return"absoluteBoundingBox"in o?[o]:!o.children||o.children.length===0?[]:o.children.map(So).reduce((e,t)=>e.concat(t),[])}var nt,lt,Ao,Br=ct(()=>{$o(),nt=P` + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; +`,lt=({config:o})=>{let[e,t]=k({state:"loading"}),r=async i=>{t({state:"loading"});try{let s=o.url.match(at);if(!s)throw new Error(o.url+" is not a valid Figma URL.");let[,,n]=s,c=new URL(o.url).searchParams.get("node-id"),a=Or(o);if(!a)throw new Error("Personal Access Token is required.");let d={"X-FIGMA-TOKEN":a},l=new URL(`https://api.figma.com/v1/files/${n}`),h=new URL(`https://api.figma.com/v1/images/${n}`);if(h.searchParams.set("format","svg"),!c){let m=await fetch(l.href,{headers:d,signal:i}).then(w=>Se(w)),x=So(m.document);h.searchParams.set("ids",x.map(w=>w.id).join(","));let S=await fetch(h.href,{headers:d,signal:i}).then(w=>Se(w));t({state:"fetched",value:{type:"file",props:{documentNode:m,renderedImages:S.images,link:o.url}}});return}l.pathname+="/nodes",l.searchParams.set("ids",c),h.searchParams.set("ids",c);let[u,f]=await Promise.all([fetch(l.href,{headers:d,signal:i}).then(m=>Se(m)),fetch(h.href,{headers:d,signal:i}).then(m=>Se(m))]);t({state:"fetched",value:{type:"frame",props:{nodes:u,renderedImage:Object.values(f.images)[0],link:o.url}}})}catch(s){if(s instanceof DOMException&&s.code===DOMException.ABORT_ERR)return;console.error(s),t({state:"failed",error:s instanceof Error?s.message:String(s)})}};switch(N(()=>{let i=!1,s=()=>{i=!0},n=new AbortController;return r(n.signal).then(s,s),()=>{i||n.abort()}},[o.url]),e.state){case"loading":return p(I,null,p(_,null,"Loading Figma file..."));case"failed":return p(I,null,p(_,null,"Failed to load Figma file"),p(_,null,e.error));case"fetched":return e.value.type==="file"?p(uo,{css:nt,...e.value.props}):p(po,{css:nt,...e.value.props})}},Ao=lt}),Co="STORYBOOK_ADDON_DESIGNS",bo=Co+"/panel",Ae="design",xo=class extends Te{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(o){return{hasError:!0,error:o}}componentDidCatch(o,e){console.group("An error occurred during rendering Addon panel of storybook-addon-designs"),console.log("--- Error ---"),console.error(o),console.log("--- React Component Stack ---"),console.error(e.componentStack),console.groupEnd()}render(){return this.state.hasError?p(I,null,p(_,null,"Failed to render addon UI"),p(_,null,p("p",null,"Sorry, this addon has crashed due to the below error has thrown during rendering the addon UI."),p("pre",null,String(this.state.error)),p("p",null,"See console log for more details. To clear the error state, please reload the page."," ",p(K,{href:"https://github.com/storybookjs/addon-designs/issues/new?assignees=&labels=category%3A+bug&template=bug_report.yml",target:"_blank",rel:"noopener",withArrow:!0,cancel:!1},"Bug report")))):this.props.children}};$o();dt();var Lr=(o,e)=>{let[t,r]=k([0,0]),[i,s]=k(!1),n=T(u=>{u.button===0&&(r([u.screenX,u.screenY]),s(!0))},[s,r]),c=T(u=>{let f=u.touches[0];r([f.screenX,f.screenY]),s(!0)},[s,r]),a=T(u=>{i&&r(f=>(o([u[0]-f[0],u[1]-f[1]]),u))},[r,i,...e]),d=T(u=>{let{screenX:f,screenY:m}=u;a([f,m])},[a]),l=T(u=>{let{screenX:f,screenY:m}=u.touches[0];a([f,m])},[r,i,...e]),h=T(()=>{r([0,0]),s(!1)},[s,r]);return{onMouseDown:n,onMouseMove:d,onMouseUp:h,onMouseLeave:h,onTouchStart:c,onTouchMove:l,onTouchCancel:h,onTouchEnd:h}},Hr=({children:o,className:e,style:t,defaultValue:r,value:i,onChange:s})=>{let[n,c]=k([0,0]);N(()=>{c(r||i||[0,0])},[r]);let a=Lr(l=>{s&&s(l),c(h=>[h[0]+l[0],h[1]+l[1]])},[c,s]),d=W(()=>{let l=i||n;return{transform:`translate(${l[0]}px, ${l[1]}px)`}},[i,n]);return p("div",{css:Ir,className:e,style:t,...a},p("div",{css:Fr,style:d},o))},Ir=P` + position: relative; + overflow: hidden; + + &:active { + cursor: move; + } +`,Fr=P` + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; +`,Ur=({onZoomIn:o,onZoomOut:e,onReset:t})=>p(_,null,p(ce,{onClick:o},p(de,{icon:"zoom"})),p(ce,{onClick:e},p(de,{icon:"zoomout"})),p(ce,{onClick:t},p(de,{icon:"zoomreset"}))),jr=(o,e)=>{let[t,r]=k(1);N(()=>{r(o)},e);let i=T(()=>{r(c=>c+.1)},[r]),s=T(()=>{r(c=>Math.max(c-.1,.1))},[r]),n=T(()=>{r(1)},[r]);return{scale:t,zoomIn:i,zoomOut:s,resetZoom:n}},Dr=({config:o})=>{let e=jr(o.scale||1,[o.scale]),t=W(()=>({transform:`scale(${e.scale})`}),[e.scale]);return p("div",{css:zr},p(pt,{border:!0},p(_,{key:"left"},p("p",null,p("b",null,"Image")),p(ut,null),p(Ur,{onReset:e.resetZoom,onZoomIn:e.zoomIn,onZoomOut:e.zoomOut}))),p(Hr,{css:Vr,defaultValue:o.offset},p("img",{css:Yr,src:o.url,style:t})))},zr=P` + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + display: flex; + flex-direction: column; + align-items: stretch; +`,Vr=P` + flex-grow: 1; +`,Yr=P` + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + margin: auto; + + pointer-events: none; + border-radius: 1px; + box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.15); +`,Wr=({config:o})=>p("div",{css:Gr},p(K,{cancel:!1,href:o.url,target:o.target??"_blank",rel:o.rel??"noopener",withArrow:o.showArrow??!0},o.label||o.url)),Gr=P` + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + display: flex; + justify-content: center; + align-items: center; +`;dt();var Zr=o=>{if(o.protocol!=="https:")return{valid:!1,error:p(_,null,"Expected HTTPS link, received ",p("code",null,o.protocol),".")};if(o.hostname!=="www.sketch.com")return{valid:!1,error:p(_,null,"Expected a hostname ",p("code",null,"www.sketch.com"),", received"," ",p("code",null,o.hostname))};let e=p(_,null,"Expected pathname ",p("code",null,"/s//a/"),", received"," ",p("code",null,o.pathname),"."),t=o.pathname.split("/").slice(1);if(t.length<4)return{valid:!1,error:e};if(t[0]==="embed")return{valid:!0,data:{url:o.href,offscreen:!1}};let[r,i,s,n]=t;return r!=="s"||!i||s!=="a"||!n?{valid:!1,error:e}:{valid:!0,data:{url:`https://www.sketch.com/embed/s/${i}/a/${n}`,offscreen:!1}}},qr=({config:o})=>{let e=W(()=>{let t=Zr(new URL(o.url));return t.valid?{...t,data:{...o,...t.data}}:t},[o]);return e.valid?p(Ce,{defer:!0,config:e.data}):p(I,null,p(_,null,"Invalid Sketch URL"),p(_,null,e.error))},Xr=({tabs:o,deps:e=[]})=>{let[t,r]=k(o[0].id);return N(()=>{r(o[0].id)},e),p(ft,{absolute:!0,selected:t,actions:{onSelect:r}},o.map(i=>p("div",{key:i.id,id:i.id,title:i.name},i.offscreen||t===i.id?i.content:null)))},Kr=Pe(()=>Promise.resolve().then(()=>(Br(),Eo))),Jr=({config:o})=>{if(!o||"length"in o&&o.length===0)return p(I,null,p(_,null,"No designs found"),p(_,null,"Learn how to"," ",p(K,{href:"https://github.com/storybookjs/addon-designs#3-add-it-to-story",target:"_blank",rel:"noopener",withArrow:!0,cancel:!1},"display design preview for the story")));let e=[...o instanceof Array?o:[o]].map(t=>{let r={id:JSON.stringify(t),name:t.name||t.type?.toUpperCase()||"ERROR",offscreen:t.offscreen??!0};switch(t.type){case"iframe":return{...r,content:p(Ce,{config:t})};case"figma":return{...r,content:p(_o,{config:t}),offscreen:!1};case"sketch":return{...r,content:p(qr,{config:t})};case"figspec":case"experimental-figspec":return t.type==="experimental-figspec"&&console.warn("[storybook-addon-designs] `experimental-figspec` is deprecated. We will remove it in v7.0. Please replace it to `figspec` type."),{...r,content:p(ke,{fallback:"Preparing Figspec viewer..."},p(Kr,{config:t})),offscreen:!1};case"image":return{...r,content:p(Dr,{config:t})};case"link":return{...r,content:p(Wr,{config:t})}}return{...r,content:p(I,null,p(_,null,"Invalid config type"),p(_,null,"Config type you set is not supported. Please choose one from"," ",p(K,{href:"https://github.com/storybookjs/addon-designs/blob/master/packages/storybook-addon-designs/src/config.ts",target:"_blank",rel:"noopener",withArrow:!0,cancel:!1},"available config types")))}});return e.length===1?p("div",null,e[0].content):p(Xr,{tabs:e,deps:[o]})},wo=({active:o})=>{let e=fo(),t=st(Ae),[r,i]=k(o);return N(()=>{i(o)},[t]),N(()=>{o&&i(!0)},[o]),r?p(Jr,{key:e.storyId,config:t}):null},ae="Design";function Qr(o){Ee.register(Co,e=>{let t=function(){let r=st(Ae);return r?Array.isArray(r)?r.length>0?`${ae} (${r.length})`:ae:(r.name||ae)+" (1)":ae};o==="tab"?Ee.add(bo,{title:ae,render({active:r}){return r?p(xo,null,p(wo,{active:!0})):p("noscript",null)},type:it.TAB,paramKey:Ae}):Ee.add(bo,{type:it.PANEL,title:t,paramKey:Ae,render({active:r}){return p(ht,{active:!!r},p(xo,null,p(wo,{active:!!r})))}})})}Qr("panel");})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/sb-addons/designs-3/register-bundle.js.LEGAL.txt b/sb-addons/designs-4/register-panel-bundle.js.LEGAL.txt similarity index 100% rename from sb-addons/designs-3/register-bundle.js.LEGAL.txt rename to sb-addons/designs-4/register-panel-bundle.js.LEGAL.txt diff --git a/sb-addons/essentials-actions-1/manager-bundle.js b/sb-addons/essentials-actions-1/manager-bundle.js deleted file mode 100644 index 29a280a8d..000000000 --- a/sb-addons/essentials-actions-1/manager-bundle.js +++ /dev/null @@ -1,3 +0,0 @@ -try{ -(()=>{var o=__REACT__,{Children:Se,Component:Re,Fragment:Ce,Profiler:Vr,PureComponent:$r,StrictMode:Yr,Suspense:Jr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:qr,cloneElement:Xr,createContext:K,createElement:Zr,createFactory:Kr,createRef:Qr,forwardRef:en,isValidElement:tn,lazy:rn,memo:G,useCallback:N,useContext:Q,useDebugValue:nn,useEffect:an,useImperativeHandle:on,useLayoutEffect:we,useMemo:xe,useReducer:sn,useRef:ln,useState:W,version:un}=__REACT__;var mn=__STORYBOOK_API__,{ActiveTabs:gn,Consumer:bn,ManagerContext:hn,Provider:En,addons:ee,combineParameters:yn,controlOrMetaKey:On,controlOrMetaSymbol:Tn,eventMatchesShortcut:vn,eventToShortcut:_n,isMacLike:An,isShortcutTaken:Sn,keyToSymbol:Rn,merge:Cn,mockChannel:wn,optionOrAltSymbol:xn,shortcutMatchesShortcut:Nn,shortcutToHumanString:Ln,types:Ne,useAddonState:Le,useArgTypes:In,useArgs:Dn,useChannel:Ie,useGlobalTypes:Mn,useGlobals:Pn,useParameter:Bn,useSharedState:Fn,useStoryPrepared:zn,useStorybookApi:Hn,useStorybookState:jn}=__STORYBOOK_API__;var Vn=__STORYBOOK_CORE_EVENTS__,{CHANNEL_CREATED:$n,CONFIG_ERROR:Yn,CURRENT_STORY_WAS_SET:Jn,DOCS_PREPARED:qn,DOCS_RENDERED:Xn,FORCE_REMOUNT:Zn,FORCE_RE_RENDER:Kn,GLOBALS_UPDATED:Qn,IGNORED_EXCEPTION:ea,NAVIGATE_URL:ta,PLAY_FUNCTION_THREW_EXCEPTION:ra,PRELOAD_ENTRIES:na,PREVIEW_BUILDER_PROGRESS:aa,PREVIEW_KEYDOWN:oa,REGISTER_SUBSCRIPTION:ia,REQUEST_WHATS_NEW_DATA:sa,RESET_STORY_ARGS:la,RESULT_WHATS_NEW_DATA:ua,SELECT_STORY:ca,SET_CONFIG:pa,SET_CURRENT_STORY:fa,SET_GLOBALS:da,SET_INDEX:ma,SET_STORIES:ga,SET_WHATS_NEW_CACHE:ba,SHARED_STATE_CHANGED:ha,SHARED_STATE_SET:Ea,STORIES_COLLAPSE_ALL:ya,STORIES_EXPAND_ALL:Oa,STORY_ARGS_UPDATED:Ta,STORY_CHANGED:V,STORY_ERRORED:va,STORY_INDEX_INVALIDATED:_a,STORY_MISSING:Aa,STORY_PREPARED:Sa,STORY_RENDERED:Ra,STORY_RENDER_PHASE_CHANGED:Ca,STORY_SPECIFIED:wa,STORY_THREW_EXCEPTION:xa,STORY_UNCHANGED:Na,TELEMETRY_ERROR:La,TOGGLE_WHATS_NEW_NOTIFICATIONS:Ia,UPDATE_GLOBALS:Da,UPDATE_QUERY_PARAMS:Ma,UPDATE_STORY_ARGS:Pa}=__STORYBOOK_CORE_EVENTS__;var ja=__STORYBOOK_COMPONENTS__,{A:Ua,ActionBar:De,AddonPanel:ka,Badge:Me,Bar:Ga,Blockquote:Wa,Button:Va,ClipboardCode:$a,Code:Ya,DL:Ja,Div:qa,DocumentWrapper:Xa,ErrorFormatter:Za,FlexBar:Ka,Form:Qa,H1:eo,H2:to,H3:ro,H4:no,H5:ao,H6:oo,HR:io,IconButton:so,IconButtonSkeleton:lo,Icons:uo,Img:co,LI:po,Link:fo,ListItem:mo,Loader:go,OL:bo,P:ho,Placeholder:Eo,Pre:yo,ResetWrapper:Oo,ScrollArea:Pe,Separator:To,Spaced:Be,Span:vo,StorybookIcon:_o,StorybookLogo:Ao,Symbols:So,SyntaxHighlighter:Ro,TT:Co,TabBar:wo,TabButton:xo,TabWrapper:No,Table:Lo,Tabs:Io,TabsState:Do,TooltipLinkList:Mo,TooltipMessage:Po,TooltipNote:Bo,UL:Fo,WithTooltip:zo,WithTooltipPure:Ho,Zoom:jo,codeCommon:Uo,components:ko,createCopyToClipboardFunction:Go,getStoryHref:Wo,icons:Vo,interleaveSeparators:$o,nameSpaceClassNames:Yo,resetComponents:Jo,withReset:qo}=__STORYBOOK_COMPONENTS__;var Fe=Object.prototype.hasOwnProperty;function ze(e,t,r){for(r of e.keys())if(L(r,t))return r}function L(e,t){var r,n,a;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&L(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(a=n,a&&typeof a=="object"&&(a=ze(t,a),!a)||!t.has(a))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(a=n[0],a&&typeof a=="object"&&(a=ze(t,a),!a)||!L(n[1],t.get(a)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Fe.call(e,r)&&++n&&!Fe.call(t,r)||!(r in t)||!L(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}var ai=__STORYBOOK_THEMING__,{CacheProvider:oi,ClassNames:ii,Global:si,ThemeProvider:li,background:ui,color:ci,convert:pi,create:fi,createCache:di,createGlobal:mi,createReset:gi,css:bi,darken:hi,ensure:Ei,ignoreSsrWarning:yi,isPropValid:Oi,jsx:Ti,keyframes:vi,lighten:_i,styled:F,themes:Ai,typography:Si,useTheme:Ri,withTheme:He}=__STORYBOOK_THEMING__;function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function I(e,t,r){return ae()?I=Reflect.construct.bind():I=function(a,i,s){var l=[null];l.push.apply(l,i);var u=Function.bind.apply(a,l),c=new u;return s&&S(c,s.prototype),c},I.apply(null,arguments)}function H(e){var t=typeof Map=="function"?new Map:void 0;return H=function(n){if(n===null||!ne(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return I(n,arguments,z(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),S(a,n)},H(e)}var v=function(e){re(t,e);function t(r){var n;if(!0)n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+r+" for more information.")||this;else for(var a,i,s;s=0&&a<1?(l=i,u=s):a>=1&&a<2?(l=s,u=i):a>=2&&a<3?(u=i,c=s):a>=3&&a<4?(u=s,c=i):a>=4&&a<5?(l=s,c=i):a>=5&&a<6&&(l=i,c=s);var p=r-i/2,d=l+p,f=u+p,E=c+p;return n(d,f,E)}var ke={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function ct(e){if(typeof e!="string")return e;var t=e.toLowerCase();return ke[t]?"#"+ke[t]:e}var pt=/^#[a-fA-F0-9]{6}$/,ft=/^#[a-fA-F0-9]{8}$/,dt=/^#[a-fA-F0-9]{3}$/,mt=/^#[a-fA-F0-9]{4}$/,ie=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,gt=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,bt=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,ht=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function D(e){if(typeof e!="string")throw new v(3);var t=ct(e);if(t.match(pt))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(ft)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(dt))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(mt)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=ie.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var i=gt.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var s=bt.exec(t);if(s){var l=parseInt(""+s[1],10),u=parseInt(""+s[2],10)/100,c=parseInt(""+s[3],10)/100,p="rgb("+j(l,u,c)+")",d=ie.exec(p);if(!d)throw new v(4,t,p);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var f=ht.exec(t.substring(0,50));if(f){var E=parseInt(""+f[1],10),m=parseInt(""+f[2],10)/100,y=parseInt(""+f[3],10)/100,T="rgb("+j(E,m,y)+")",x=ie.exec(T);if(!x)throw new v(4,t,T);return{red:parseInt(""+x[1],10),green:parseInt(""+x[2],10),blue:parseInt(""+x[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new v(5)}function Et(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),i=Math.min(t,r,n),s=(a+i)/2;if(a===i)return e.alpha!==void 0?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var l,u=a-i,c=s>.5?u/(2-a-i):u/(a+i);switch(a){case t:l=(r-n)/u+(r=1?$(e,t,r):"rgba("+j(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?$(e.hue,e.saturation,e.lightness):"rgba("+j(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new v(2)}function ue(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return le("#"+w(e)+w(t)+w(r));if(typeof e=="object"&&t===void 0&&r===void 0)return le("#"+w(e.red)+w(e.green)+w(e.blue));throw new v(6)}function Y(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=D(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?ue(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?ue(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new v(7)}var _t=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},At=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&typeof t.alpha=="number"},St=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},Rt=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&typeof t.alpha=="number"};function C(e){if(typeof e!="object")throw new v(8);if(At(e))return Y(e);if(_t(e))return ue(e);if(Rt(e))return vt(e);if(St(e))return Tt(e);throw new v(8)}function We(e,t,r){return function(){var a=r.concat(Array.prototype.slice.call(arguments));return a.length>=t?e.apply(this,a):We(e,t,a)}}function _(e){return We(e,e.length,[])}function Ct(e,t){if(t==="transparent")return t;var r=R(t);return C(O({},r,{hue:r.hue+parseFloat(e)}))}var Is=_(Ct);function M(e,t,r){return Math.max(e,Math.min(t,r))}function wt(e,t){if(t==="transparent")return t;var r=R(t);return C(O({},r,{lightness:M(0,1,r.lightness-parseFloat(e))}))}var Ds=_(wt);function xt(e,t){if(t==="transparent")return t;var r=R(t);return C(O({},r,{saturation:M(0,1,r.saturation-parseFloat(e))}))}var Ms=_(xt);function Nt(e,t){if(t==="transparent")return t;var r=R(t);return C(O({},r,{lightness:M(0,1,r.lightness+parseFloat(e))}))}var Ps=_(Nt);function Lt(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=D(t),a=O({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),i=D(r),s=O({},i,{alpha:typeof i.alpha=="number"?i.alpha:1}),l=a.alpha-s.alpha,u=parseFloat(e)*2-1,c=u*l===-1?u:u+l,p=1+u*l,d=(c/p+1)/2,f=1-d,E={red:Math.floor(a.red*d+s.red*f),green:Math.floor(a.green*d+s.green*f),blue:Math.floor(a.blue*d+s.blue*f),alpha:a.alpha*parseFloat(e)+s.alpha*(1-parseFloat(e))};return Y(E)}var It=_(Lt),Ve=It;function Dt(e,t){if(t==="transparent")return t;var r=D(t),n=typeof r.alpha=="number"?r.alpha:1,a=O({},r,{alpha:M(0,1,(n*100+parseFloat(e)*100)/100)});return Y(a)}var Mt=_(Dt),$e=Mt;function Pt(e,t){if(t==="transparent")return t;var r=R(t);return C(O({},r,{saturation:M(0,1,r.saturation+parseFloat(e))}))}var Bs=_(Pt);function Bt(e,t){return t==="transparent"?t:C(O({},R(t),{hue:parseFloat(e)}))}var Fs=_(Bt);function Ft(e,t){return t==="transparent"?t:C(O({},R(t),{lightness:parseFloat(e)}))}var zs=_(Ft);function zt(e,t){return t==="transparent"?t:C(O({},R(t),{saturation:parseFloat(e)}))}var Hs=_(zt);function Ht(e,t){return t==="transparent"?t:Ve(parseFloat(e),"rgb(0, 0, 0)",t)}var js=_(Ht);function jt(e,t){return t==="transparent"?t:Ve(parseFloat(e),"rgb(255, 255, 255)",t)}var Us=_(jt);function Ut(e,t){if(t==="transparent")return t;var r=D(t),n=typeof r.alpha=="number"?r.alpha:1,a=O({},r,{alpha:M(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Y(a)}var ks=_(Ut);var kt=Object.create,ge=Object.defineProperty,Gt=Object.getOwnPropertyDescriptor,Ze=Object.getOwnPropertyNames,Wt=Object.getPrototypeOf,Vt=Object.prototype.hasOwnProperty,be=(e,t)=>function(){return t||(0,e[Ze(e)[0]])((t={exports:{}}).exports,t),t.exports},$t=(e,t)=>{for(var r in t)ge(e,r,{get:t[r],enumerable:!0})},Yt=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ze(t))!Vt.call(e,a)&&a!==r&&ge(e,a,{get:()=>t[a],enumerable:!(n=Gt(t,a))||n.enumerable});return e},Jt=(e,t,r)=>(r=e!=null?kt(Wt(e)):{},Yt(t||!e||!e.__esModule?ge(r,"default",{value:e,enumerable:!0}):r,e)),qt=be({"node_modules/is-object/index.js"(e,t){t.exports=function(r){return typeof r=="object"&&r!==null}}}),Xt=be({"node_modules/is-window/index.js"(e,t){t.exports=function(r){if(r==null)return!1;var n=Object(r);return n===n.window}}}),Zt=be({"node_modules/is-dom/index.js"(e,t){var r=qt(),n=Xt();function a(i){return!r(i)||!n(window)||typeof window.Node!="function"?!1:typeof i.nodeType=="number"&&typeof i.nodeName=="string"}t.exports=a}}),X={};$t(X,{chromeDark:()=>Kt,chromeLight:()=>Qt});var Kt={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},Qt={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},Ke=K([{},()=>{}]),ce={WebkitTouchCallout:"none",WebkitUserSelect:"none",KhtmlUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",OUserSelect:"none",userSelect:"none"},J=e=>({DOMNodePreview:{htmlOpenTag:{base:{color:e.HTML_TAG_COLOR},tagName:{color:e.HTML_TAGNAME_COLOR,textTransform:e.HTML_TAGNAME_TEXT_TRANSFORM},htmlAttributeName:{color:e.HTML_ATTRIBUTE_NAME_COLOR},htmlAttributeValue:{color:e.HTML_ATTRIBUTE_VALUE_COLOR}},htmlCloseTag:{base:{color:e.HTML_TAG_COLOR},offsetLeft:{marginLeft:-e.TREENODE_PADDING_LEFT},tagName:{color:e.HTML_TAGNAME_COLOR,textTransform:e.HTML_TAGNAME_TEXT_TRANSFORM}},htmlComment:{color:e.HTML_COMMENT_COLOR},htmlDoctype:{color:e.HTML_DOCTYPE_COLOR}},ObjectPreview:{objectDescription:{fontStyle:"italic"},preview:{fontStyle:"italic"},arrayMaxProperties:e.OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES,objectMaxProperties:e.OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES},ObjectName:{base:{color:e.OBJECT_NAME_COLOR},dimmed:{opacity:.6}},ObjectValue:{objectValueNull:{color:e.OBJECT_VALUE_NULL_COLOR},objectValueUndefined:{color:e.OBJECT_VALUE_UNDEFINED_COLOR},objectValueRegExp:{color:e.OBJECT_VALUE_REGEXP_COLOR},objectValueString:{color:e.OBJECT_VALUE_STRING_COLOR},objectValueSymbol:{color:e.OBJECT_VALUE_SYMBOL_COLOR},objectValueNumber:{color:e.OBJECT_VALUE_NUMBER_COLOR},objectValueBoolean:{color:e.OBJECT_VALUE_BOOLEAN_COLOR},objectValueFunctionPrefix:{color:e.OBJECT_VALUE_FUNCTION_PREFIX_COLOR,fontStyle:"italic"},objectValueFunctionName:{fontStyle:"italic"}},TreeView:{treeViewOutline:{padding:0,margin:0,listStyleType:"none"}},TreeNode:{treeNodeBase:{color:e.BASE_COLOR,backgroundColor:e.BASE_BACKGROUND_COLOR,lineHeight:e.TREENODE_LINE_HEIGHT,cursor:"default",boxSizing:"border-box",listStyle:"none",fontFamily:e.TREENODE_FONT_FAMILY,fontSize:e.TREENODE_FONT_SIZE},treeNodePreviewContainer:{},treeNodePlaceholder:{whiteSpace:"pre",fontSize:e.ARROW_FONT_SIZE,marginRight:e.ARROW_MARGIN_RIGHT,...ce},treeNodeArrow:{base:{color:e.ARROW_COLOR,display:"inline-block",fontSize:e.ARROW_FONT_SIZE,marginRight:e.ARROW_MARGIN_RIGHT,...parseFloat(e.ARROW_ANIMATION_DURATION)>0?{transition:`transform ${e.ARROW_ANIMATION_DURATION} ease 0s`}:{},...ce},expanded:{WebkitTransform:"rotateZ(90deg)",MozTransform:"rotateZ(90deg)",transform:"rotateZ(90deg)"},collapsed:{WebkitTransform:"rotateZ(0deg)",MozTransform:"rotateZ(0deg)",transform:"rotateZ(0deg)"}},treeNodeChildNodesContainer:{margin:0,paddingLeft:e.TREENODE_PADDING_LEFT}},TableInspector:{base:{color:e.BASE_COLOR,position:"relative",border:`1px solid ${e.TABLE_BORDER_COLOR}`,fontFamily:e.BASE_FONT_FAMILY,fontSize:e.BASE_FONT_SIZE,lineHeight:"120%",boxSizing:"border-box",cursor:"default"}},TableInspectorHeaderContainer:{base:{top:0,height:"17px",left:0,right:0,overflowX:"hidden"},table:{tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",height:"100%",width:"100%",margin:0}},TableInspectorDataContainer:{tr:{display:"table-row"},td:{boxSizing:"border-box",border:"none",height:"16px",verticalAlign:"top",padding:"1px 4px",WebkitUserSelect:"text",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px"},div:{position:"static",top:"17px",bottom:0,overflowY:"overlay",transform:"translateZ(0)",left:0,right:0,overflowX:"hidden"},table:{positon:"static",left:0,top:0,right:0,bottom:0,borderTop:"0 none transparent",margin:0,backgroundImage:e.TABLE_DATA_BACKGROUND_IMAGE,backgroundSize:e.TABLE_DATA_BACKGROUND_SIZE,tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",width:"100%",fontSize:e.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorTH:{base:{position:"relative",height:"auto",textAlign:"left",backgroundColor:e.TABLE_TH_BACKGROUND_COLOR,borderBottom:`1px solid ${e.TABLE_BORDER_COLOR}`,fontWeight:"normal",verticalAlign:"middle",padding:"0 4px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px",":hover":{backgroundColor:e.TABLE_TH_HOVER_COLOR}},div:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontSize:e.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorLeftBorder:{none:{borderLeft:"none"},solid:{borderLeft:`1px solid ${e.TABLE_BORDER_COLOR}`}},TableInspectorSortIcon:{display:"block",marginRight:3,width:8,height:7,marginTop:-7,color:e.TABLE_SORT_ICON_COLOR,fontSize:12,...ce}}),pe="chromeLight",Qe=K(J(X[pe])),A=e=>Q(Qe)[e],he=e=>({theme:t=pe,...r})=>{let n=xe(()=>{switch(Object.prototype.toString.call(t)){case"[object String]":return J(X[t]);case"[object Object]":return J(t);default:return J(X[pe])}},[t]);return o.createElement(Qe.Provider,{value:n},o.createElement(e,{...r}))},er=({expanded:e,styles:t})=>o.createElement("span",{style:{...t.base,...e?t.expanded:t.collapsed}},"\u25B6"),tr=G(e=>{e={expanded:!0,nodeRenderer:({name:p})=>o.createElement("span",null,p),onClick:()=>{},shouldShowArrow:!1,shouldShowPlaceholder:!0,...e};let{expanded:t,onClick:r,children:n,nodeRenderer:a,title:i,shouldShowArrow:s,shouldShowPlaceholder:l}=e,u=A("TreeNode"),c=a;return o.createElement("li",{"aria-expanded":t,role:"treeitem",style:u.treeNodeBase,title:i},o.createElement("div",{style:u.treeNodePreviewContainer,onClick:r},s||Se.count(n)>0?o.createElement(er,{expanded:t,styles:u.treeNodeArrow}):l&&o.createElement("span",{style:u.treeNodePlaceholder},"\xA0"),o.createElement(c,{...e})),o.createElement("ol",{role:"group",style:u.treeNodeChildNodesContainer},t?n:void 0))}),Z="$",Ye="*";function q(e,t){return!t(e).next().done}var rr=e=>Array.from({length:e},(t,r)=>[Z].concat(Array.from({length:r},()=>"*")).join(".")),nr=(e,t,r,n,a)=>{let i=[].concat(rr(n)).concat(r).filter(l=>typeof l=="string"),s=[];return i.forEach(l=>{let u=l.split("."),c=(p,d,f)=>{if(f===u.length){s.push(d);return}let E=u[f];if(f===0)q(p,t)&&(E===Z||E===Ye)&&c(p,Z,f+1);else if(E===Ye)for(let{name:m,data:y}of t(p))q(y,t)&&c(y,`${d}.${m}`,f+1);else{let m=p[E];q(m,t)&&c(m,`${d}.${E}`,f+1)}};c(e,"",0)}),s.reduce((l,u)=>(l[u]=!0,l),{...a})},et=G(e=>{let{data:t,dataIterator:r,path:n,depth:a,nodeRenderer:i}=e,[s,l]=Q(Ke),u=q(t,r),c=!!s[n],p=N(()=>u&&l(d=>({...d,[n]:!c})),[u,l,n,c]);return o.createElement(tr,{expanded:c,onClick:p,shouldShowArrow:u,shouldShowPlaceholder:a>0,nodeRenderer:i,...e},c?[...r(t)].map(({name:d,data:f,...E})=>o.createElement(et,{name:d,data:f,depth:a+1,path:`${n}.${d}`,key:d,dataIterator:r,nodeRenderer:i,...E})):null)}),tt=G(({name:e,data:t,dataIterator:r,nodeRenderer:n,expandPaths:a,expandLevel:i})=>{let s=A("TreeView"),l=W({}),[,u]=l;return we(()=>u(c=>nr(t,r,a,i,c)),[t,r,a,i]),o.createElement(Ke.Provider,{value:l},o.createElement("ol",{role:"tree",style:s.treeViewOutline},o.createElement(et,{name:e,data:t,dataIterator:r,depth:0,path:Z,nodeRenderer:n})))}),Ee=({name:e,dimmed:t=!1,styles:r={}})=>{let n=A("ObjectName"),a={...n.base,...t?n.dimmed:{},...r};return o.createElement("span",{style:a},e)},U=({object:e,styles:t})=>{let r=A("ObjectValue"),n=a=>({...r[a],...t});switch(typeof e){case"bigint":return o.createElement("span",{style:n("objectValueNumber")},String(e),"n");case"number":return o.createElement("span",{style:n("objectValueNumber")},String(e));case"string":return o.createElement("span",{style:n("objectValueString")},'"',e,'"');case"boolean":return o.createElement("span",{style:n("objectValueBoolean")},String(e));case"undefined":return o.createElement("span",{style:n("objectValueUndefined")},"undefined");case"object":return e===null?o.createElement("span",{style:n("objectValueNull")},"null"):e instanceof Date?o.createElement("span",null,e.toString()):e instanceof RegExp?o.createElement("span",{style:n("objectValueRegExp")},e.toString()):Array.isArray(e)?o.createElement("span",null,`Array(${e.length})`):e.constructor?typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)?o.createElement("span",null,`Buffer[${e.length}]`):o.createElement("span",null,e.constructor.name):o.createElement("span",null,"Object");case"function":return o.createElement("span",null,o.createElement("span",{style:n("objectValueFunctionPrefix")},"\u0192\xA0"),o.createElement("span",{style:n("objectValueFunctionName")},e.name,"()"));case"symbol":return o.createElement("span",{style:n("objectValueSymbol")},e.toString());default:return o.createElement("span",null)}},rt=Object.prototype.hasOwnProperty,ar=Object.prototype.propertyIsEnumerable;function fe(e,t){let r=Object.getOwnPropertyDescriptor(e,t);if(r.get)try{return r.get()}catch{return r.get}return e[t]}function Je(e,t){return e.length===0?[]:e.slice(1).reduce((r,n)=>r.concat([t,n]),[e[0]])}var de=({data:e})=>{let t=A("ObjectPreview"),r=e;if(typeof r!="object"||r===null||r instanceof Date||r instanceof RegExp)return o.createElement(U,{object:r});if(Array.isArray(r)){let n=t.arrayMaxProperties,a=r.slice(0,n).map((s,l)=>o.createElement(U,{key:l,object:s}));r.length>n&&a.push(o.createElement("span",{key:"ellipsis"},"\u2026"));let i=r.length;return o.createElement(o.Fragment,null,o.createElement("span",{style:t.objectDescription},i===0?"":`(${i})\xA0`),o.createElement("span",{style:t.preview},"[",Je(a,", "),"]"))}else{let n=t.objectMaxProperties,a=[];for(let s in r)if(rt.call(r,s)){let l;a.length===n-1&&Object.keys(r).length>n&&(l=o.createElement("span",{key:"ellipsis"},"\u2026"));let u=fe(r,s);if(a.push(o.createElement("span",{key:s},o.createElement(Ee,{name:s||'""'}),":\xA0",o.createElement(U,{object:u}),l)),l)break}let i=r.constructor?r.constructor.name:"Object";return o.createElement(o.Fragment,null,o.createElement("span",{style:t.objectDescription},i==="Object"?"":`${i} `),o.createElement("span",{style:t.preview},"{",Je(a,", "),"}"))}},or=({name:e,data:t})=>typeof e=="string"?o.createElement("span",null,o.createElement(Ee,{name:e}),o.createElement("span",null,": "),o.createElement(de,{data:t})):o.createElement(de,{data:t}),ir=({name:e,data:t,isNonenumerable:r=!1})=>{let n=t;return o.createElement("span",null,typeof e=="string"?o.createElement(Ee,{name:e,dimmed:r}):o.createElement(de,{data:e}),o.createElement("span",null,": "),o.createElement(U,{object:n}))},sr=(e,t)=>function*(r){if(!(typeof r=="object"&&r!==null||typeof r=="function"))return;let n=Array.isArray(r);if(!n&&r[Symbol.iterator]){let a=0;for(let i of r){if(Array.isArray(i)&&i.length===2){let[s,l]=i;yield{name:s,data:l}}else yield{name:a.toString(),data:i};a++}}else{let a=Object.getOwnPropertyNames(r);t===!0&&!n?a.sort():typeof t=="function"&&a.sort(t);for(let i of a)if(ar.call(r,i)){let s=fe(r,i);yield{name:i||'""',data:s}}else if(e){let s;try{s=fe(r,i)}catch{}s!==void 0&&(yield{name:i,data:s,isNonenumerable:!0})}e&&r!==Object.prototype&&(yield{name:"__proto__",data:Object.getPrototypeOf(r),isNonenumerable:!0})}},lr=({depth:e,name:t,data:r,isNonenumerable:n})=>e===0?o.createElement(or,{name:t,data:r}):o.createElement(ir,{name:t,data:r,isNonenumerable:n}),ur=({showNonenumerable:e=!1,sortObjectKeys:t,nodeRenderer:r,...n})=>{let a=sr(e,t),i=r||lr;return o.createElement(tt,{nodeRenderer:i,dataIterator:a,...n})},cr=he(ur);function pr(e){if(typeof e=="object"){let t=[];if(Array.isArray(e)){let n=e.length;t=[...Array(n).keys()]}else e!==null&&(t=Object.keys(e));let r=t.reduce((n,a)=>{let i=e[a];return typeof i=="object"&&i!==null&&Object.keys(i).reduce((s,l)=>(s.includes(l)||s.push(l),s),n),n},[]);return{rowHeaders:t,colHeaders:r}}}var fr=({rows:e,columns:t,rowsData:r})=>{let n=A("TableInspectorDataContainer"),a=A("TableInspectorLeftBorder");return o.createElement("div",{style:n.div},o.createElement("table",{style:n.table},o.createElement("colgroup",null),o.createElement("tbody",null,e.map((i,s)=>o.createElement("tr",{key:i,style:n.tr},o.createElement("td",{style:{...n.td,...a.none}},i),t.map(l=>{let u=r[s];return typeof u=="object"&&u!==null&&rt.call(u,l)?o.createElement("td",{key:l,style:{...n.td,...a.solid}},o.createElement(U,{object:u[l]})):o.createElement("td",{key:l,style:{...n.td,...a.solid}})}))))))},dr=e=>o.createElement("div",{style:{position:"absolute",top:1,right:0,bottom:1,display:"flex",alignItems:"center"}},e.children),mr=({sortAscending:e})=>{let t=A("TableInspectorSortIcon"),r=e?"\u25B2":"\u25BC";return o.createElement("div",{style:t},r)},qe=({sortAscending:e=!1,sorted:t=!1,onClick:r=void 0,borderStyle:n={},children:a,...i})=>{let s=A("TableInspectorTH"),[l,u]=W(!1),c=N(()=>u(!0),[]),p=N(()=>u(!1),[]);return o.createElement("th",{...i,style:{...s.base,...n,...l?s.base[":hover"]:{}},onMouseEnter:c,onMouseLeave:p,onClick:r},o.createElement("div",{style:s.div},a),t&&o.createElement(dr,null,o.createElement(mr,{sortAscending:e})))},gr=({indexColumnText:e="(index)",columns:t=[],sorted:r,sortIndexColumn:n,sortColumn:a,sortAscending:i,onTHClick:s,onIndexTHClick:l})=>{let u=A("TableInspectorHeaderContainer"),c=A("TableInspectorLeftBorder");return o.createElement("div",{style:u.base},o.createElement("table",{style:u.table},o.createElement("tbody",null,o.createElement("tr",null,o.createElement(qe,{borderStyle:c.none,sorted:r&&n,sortAscending:i,onClick:l},e),t.map(p=>o.createElement(qe,{borderStyle:c.solid,key:p,sorted:r&&a===p,sortAscending:i,onClick:s.bind(null,p)},p))))))},br=({data:e,columns:t})=>{let r=A("TableInspector"),[{sorted:n,sortIndexColumn:a,sortColumn:i,sortAscending:s},l]=W({sorted:!1,sortIndexColumn:!1,sortColumn:void 0,sortAscending:!1}),u=N(()=>{l(({sortIndexColumn:m,sortAscending:y})=>({sorted:!0,sortIndexColumn:!0,sortColumn:void 0,sortAscending:m?!y:!0}))},[]),c=N(m=>{l(({sortColumn:y,sortAscending:T})=>({sorted:!0,sortIndexColumn:!1,sortColumn:m,sortAscending:m===y?!T:!0}))},[]);if(typeof e!="object"||e===null)return o.createElement("div",null);let{rowHeaders:p,colHeaders:d}=pr(e);t!==void 0&&(d=t);let f=p.map(m=>e[m]),E;if(i!==void 0?E=f.map((m,y)=>typeof m=="object"&&m!==null?[m[i],y]:[void 0,y]):a&&(E=p.map((m,y)=>[p[y],y])),E!==void 0){let m=(T,x)=>(ot,it)=>{let ye=T(ot),Oe=T(it),Te=typeof ye,ve=typeof Oe,_e=(B,Ae)=>BAe?1:0,P;if(Te===ve)P=_e(ye,Oe);else{let B={string:0,number:1,object:2,symbol:3,boolean:4,undefined:5,function:6};P=_e(B[Te],B[ve])}return x||(P=-P),P},y=E.sort(m(T=>T[0],s)).map(T=>T[1]);p=y.map(T=>p[T]),f=y.map(T=>f[T])}return o.createElement("div",{style:r.base},o.createElement(gr,{columns:d,sorted:n,sortIndexColumn:a,sortColumn:i,sortAscending:s,onTHClick:c,onIndexTHClick:u}),o.createElement(fr,{rows:p,columns:d,rowsData:f}))},hr=he(br),Er=80,nt=e=>e.childNodes.length===0||e.childNodes.length===1&&e.childNodes[0].nodeType===Node.TEXT_NODE&&e.textContent.lengtho.createElement("span",{style:r.base},"<",o.createElement("span",{style:r.tagName},e),(()=>{if(t){let n=[];for(let a=0;a"),Xe=({tagName:e,isChildNode:t=!1,styles:r})=>o.createElement("span",{style:Object.assign({},r.base,t&&r.offsetLeft)},""),Or={1:"ELEMENT_NODE",3:"TEXT_NODE",7:"PROCESSING_INSTRUCTION_NODE",8:"COMMENT_NODE",9:"DOCUMENT_NODE",10:"DOCUMENT_TYPE_NODE",11:"DOCUMENT_FRAGMENT_NODE"},Tr=({isCloseTag:e,data:t,expanded:r})=>{let n=A("DOMNodePreview");if(e)return o.createElement(Xe,{styles:n.htmlCloseTag,isChildNode:!0,tagName:t.tagName});switch(t.nodeType){case Node.ELEMENT_NODE:return o.createElement("span",null,o.createElement(yr,{tagName:t.tagName,attributes:t.attributes,styles:n.htmlOpenTag}),nt(t)?t.textContent:!r&&"\u2026",!r&&o.createElement(Xe,{tagName:t.tagName,styles:n.htmlCloseTag}));case Node.TEXT_NODE:return o.createElement("span",null,t.textContent);case Node.CDATA_SECTION_NODE:return o.createElement("span",null,"");case Node.COMMENT_NODE:return o.createElement("span",{style:n.htmlComment},"");case Node.PROCESSING_INSTRUCTION_NODE:return o.createElement("span",null,t.nodeName);case Node.DOCUMENT_TYPE_NODE:return o.createElement("span",{style:n.htmlDoctype},"");case Node.DOCUMENT_NODE:return o.createElement("span",null,t.nodeName);case Node.DOCUMENT_FRAGMENT_NODE:return o.createElement("span",null,t.nodeName);default:return o.createElement("span",null,Or[t.nodeType])}},vr=function*(e){if(e&&e.childNodes){if(nt(e))return;for(let t=0;to.createElement(tt,{nodeRenderer:Tr,dataIterator:vr,...e}),Ar=he(_r),Sr=Jt(Zt()),Rr=({table:e=!1,data:t,...r})=>e?o.createElement(hr,{data:t,...r}):(0,Sr.default)(t)?o.createElement(Ar,{data:t,...r}):o.createElement(cr,{data:t,...r}),Cr=F.div({display:"flex",padding:0,borderLeft:"5px solid transparent",borderBottom:"1px solid transparent",transition:"all 0.1s",alignItems:"flex-start",whiteSpace:"pre"}),wr=F.div(({theme:e})=>({backgroundColor:$e(.5,e.appBorderColor),color:e.color.inverseText,fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:1,padding:"1px 5px",borderRadius:20,margin:"2px 0px"})),xr=F.div({flex:1,padding:"0 0 0 5px"}),Nr=({children:e,className:t})=>o.createElement(Pe,{horizontal:!0,vertical:!0,className:t},e),Lr=F(Nr)({margin:0,padding:"10px 5px 20px"}),Ir=He(({theme:e,...t})=>o.createElement(Rr,{theme:e.addonActionsTheme||"chromeLight",table:!1,...t})),Dr=({actions:e,onClear:t})=>o.createElement(Ce,null,o.createElement(Lr,null,e.map(r=>o.createElement(Cr,{key:r.id},r.count>1&&o.createElement(wr,null,r.count),o.createElement(xr,null,o.createElement(Ir,{sortObjectKeys:!0,showNonenumerable:!1,name:r.data.name,data:r.data.args||r.data}))))),o.createElement(De,{actionItems:[{title:"Clear",onClick:t}]})),Mr="actions",k="storybook/actions",Pr=`${k}/panel`,me=`${k}/action-event`,at=`${k}/action-clear`,Br=(e,t)=>{try{return L(e,t)}catch{return!1}},Fr=class extends Re{constructor(e){super(e),this.handleStoryChange=()=>{let{actions:t}=this.state;t.length>0&&t[0].options.clearOnStoryChange&&this.clearActions()},this.addAction=t=>{this.setState(r=>{let n=[...r.actions],a=n.length&&n[0];return a&&Br(a.data,t.data)?a.count++:(t.count=1,n.unshift(t)),{actions:n.slice(0,t.options.limit)}})},this.clearActions=()=>{let{api:t}=this.props;t.emit(at),this.setState({actions:[]})},this.mounted=!1,this.state={actions:[]}}componentDidMount(){this.mounted=!0;let{api:e}=this.props;e.on(me,this.addAction),e.on(V,this.handleStoryChange)}componentWillUnmount(){this.mounted=!1;let{api:e}=this.props;e.off(V,this.handleStoryChange),e.off(me,this.addAction)}render(){let{actions:e=[]}=this.state,{active:t}=this.props,r={actions:e,onClear:this.clearActions};return t?o.createElement(Dr,{...r}):null}};function zr(){let[{count:e},t]=Le(k,{count:0});return Ie({[me]:()=>{t(r=>({...r,count:r.count+1}))},[V]:()=>{t(r=>({...r,count:0}))},[at]:()=>{t(r=>({...r,count:0}))}}),o.createElement("div",null,o.createElement(Be,{col:1},o.createElement("span",{style:{display:"inline-block",verticalAlign:"middle"}},"Actions"),e===0?"":o.createElement(Me,{status:"neutral"},e)))}ee.register(k,e=>{ee.add(Pr,{title:zr,type:Ne.PANEL,render:({active:t})=>o.createElement(Fr,{api:e,active:!!t}),paramKey:Mr})});})(); -}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/sb-addons/essentials-actions-2/manager-bundle.js b/sb-addons/essentials-actions-2/manager-bundle.js new file mode 100644 index 000000000..ac3a950af --- /dev/null +++ b/sb-addons/essentials-actions-2/manager-bundle.js @@ -0,0 +1,3 @@ +try{ +(()=>{var o=__REACT__,{Children:Te,Component:_e,Fragment:ve,Profiler:Jr,PureComponent:qr,StrictMode:Xr,Suspense:Zr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Kr,cloneElement:Qr,createContext:Z,createElement:en,createFactory:tn,createRef:rn,forwardRef:Se,isValidElement:nn,lazy:an,memo:j,startTransition:on,unstable_act:sn,useCallback:x,useContext:K,useDebugValue:ln,useDeferredValue:un,useEffect:Re,useId:cn,useImperativeHandle:pn,useInsertionEffect:fn,useLayoutEffect:Ae,useMemo:Ce,useReducer:dn,useRef:we,useState:U,useSyncExternalStore:mn,useTransition:gn,version:bn}=__REACT__;var Tn=__STORYBOOK_COMPONENTS__,{A:_n,ActionBar:Ne,AddonPanel:vn,Badge:xe,Bar:Sn,Blockquote:Rn,Button:An,ClipboardCode:Cn,Code:wn,DL:Nn,Div:xn,DocumentWrapper:Ln,EmptyTabContent:In,ErrorFormatter:Dn,FlexBar:Mn,Form:Pn,H1:Bn,H2:Fn,H3:zn,H4:Hn,H5:jn,H6:Un,HR:kn,IconButton:Gn,IconButtonSkeleton:Wn,Icons:Vn,Img:$n,LI:Yn,Link:Jn,ListItem:qn,Loader:Xn,Modal:Zn,OL:Kn,P:Qn,Placeholder:ea,Pre:ta,ResetWrapper:ra,ScrollArea:Le,Separator:na,Spaced:Ie,Span:aa,StorybookIcon:oa,StorybookLogo:ia,Symbols:sa,SyntaxHighlighter:la,TT:ua,TabBar:ca,TabButton:pa,TabWrapper:fa,Table:da,Tabs:ma,TabsState:ga,TooltipLinkList:ba,TooltipMessage:ha,TooltipNote:Ea,UL:ya,WithTooltip:Oa,WithTooltipPure:Ta,Zoom:_a,codeCommon:va,components:Sa,createCopyToClipboardFunction:Ra,getStoryHref:Aa,icons:Ca,interleaveSeparators:wa,nameSpaceClassNames:Na,resetComponents:xa,withReset:La}=__STORYBOOK_COMPONENTS__;var Ba=__STORYBOOK_CORE_EVENTS__,{ARGTYPES_INFO_REQUEST:Fa,ARGTYPES_INFO_RESPONSE:za,CHANNEL_CREATED:Ha,CHANNEL_WS_DISCONNECT:ja,CONFIG_ERROR:Ua,CREATE_NEW_STORYFILE_REQUEST:ka,CREATE_NEW_STORYFILE_RESPONSE:Ga,CURRENT_STORY_WAS_SET:Wa,DOCS_PREPARED:Va,DOCS_RENDERED:$a,FILE_COMPONENT_SEARCH_REQUEST:Ya,FILE_COMPONENT_SEARCH_RESPONSE:Ja,FORCE_REMOUNT:qa,FORCE_RE_RENDER:Xa,GLOBALS_UPDATED:Za,NAVIGATE_URL:Ka,PLAY_FUNCTION_THREW_EXCEPTION:Qa,PRELOAD_ENTRIES:eo,PREVIEW_BUILDER_PROGRESS:to,PREVIEW_KEYDOWN:ro,REGISTER_SUBSCRIPTION:no,REQUEST_WHATS_NEW_DATA:ao,RESET_STORY_ARGS:oo,RESULT_WHATS_NEW_DATA:io,SAVE_STORY_REQUEST:so,SAVE_STORY_RESPONSE:lo,SELECT_STORY:uo,SET_CONFIG:co,SET_CURRENT_STORY:po,SET_FILTER:fo,SET_GLOBALS:mo,SET_INDEX:go,SET_STORIES:bo,SET_WHATS_NEW_CACHE:ho,SHARED_STATE_CHANGED:Eo,SHARED_STATE_SET:yo,STORIES_COLLAPSE_ALL:Oo,STORIES_EXPAND_ALL:To,STORY_ARGS_UPDATED:_o,STORY_CHANGED:k,STORY_ERRORED:vo,STORY_INDEX_INVALIDATED:So,STORY_MISSING:Ro,STORY_PREPARED:Ao,STORY_RENDERED:Co,STORY_RENDER_PHASE_CHANGED:wo,STORY_SPECIFIED:No,STORY_THREW_EXCEPTION:xo,STORY_UNCHANGED:Lo,TELEMETRY_ERROR:Io,TOGGLE_WHATS_NEW_NOTIFICATIONS:Do,UNHANDLED_ERRORS_WHILE_PLAYING:Mo,UPDATE_GLOBALS:Po,UPDATE_QUERY_PARAMS:Bo,UPDATE_STORY_ARGS:Fo}=__STORYBOOK_CORE_EVENTS__;var Yo=__STORYBOOK_API__,{ActiveTabs:Jo,Consumer:qo,ManagerContext:Xo,Provider:Zo,RequestResponseError:Ko,addons:Q,combineParameters:Qo,controlOrMetaKey:ei,controlOrMetaSymbol:ti,eventMatchesShortcut:ri,eventToShortcut:ni,experimental_requestResponse:ai,isMacLike:oi,isShortcutTaken:ii,keyToSymbol:si,merge:li,mockChannel:ui,optionOrAltSymbol:ci,shortcutMatchesShortcut:pi,shortcutToHumanString:fi,types:De,useAddonState:Me,useArgTypes:di,useArgs:mi,useChannel:Pe,useGlobalTypes:gi,useGlobals:bi,useParameter:hi,useSharedState:Ei,useStoryPrepared:yi,useStorybookApi:Oi,useStorybookState:Ti}=__STORYBOOK_API__;var Be=Object.prototype.hasOwnProperty;function Fe(e,t,r){for(r of e.keys())if(L(r,t))return r}function L(e,t){var r,n,a;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&L(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(a=n,a&&typeof a=="object"&&(a=Fe(t,a),!a)||!t.has(a))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(a=n[0],a&&typeof a=="object"&&(a=Fe(t,a),!a)||!L(n[1],t.get(a)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Be.call(e,r)&&++n&&!Be.call(t,r)||!(r in t)||!L(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}var xi=__STORYBOOK_THEMING__,{CacheProvider:Li,ClassNames:Ii,Global:Di,ThemeProvider:Mi,background:Pi,color:Bi,convert:Fi,create:zi,createCache:Hi,createGlobal:ji,createReset:Ui,css:ki,darken:Gi,ensure:Wi,ignoreSsrWarning:Vi,isPropValid:$i,jsx:Yi,keyframes:Ji,lighten:qi,styled:B,themes:Xi,typography:Zi,useTheme:Ki,withTheme:ze}=__STORYBOOK_THEMING__;function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&a<1?(l=i,u=s):a>=1&&a<2?(l=s,u=i):a>=2&&a<3?(u=i,c=s):a>=3&&a<4?(u=s,c=i):a>=4&&a<5?(l=s,c=i):a>=5&&a<6&&(l=i,c=s);var p=r-i/2,d=l+p,f=u+p,E=c+p;return n(d,f,E)}var Ve={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function mt(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Ve[t]?"#"+Ve[t]:e}var gt=/^#[a-fA-F0-9]{6}$/,bt=/^#[a-fA-F0-9]{8}$/,ht=/^#[a-fA-F0-9]{3}$/,Et=/^#[a-fA-F0-9]{4}$/,re=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,yt=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Ot=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Tt=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function I(e){if(typeof e!="string")throw new _(3);var t=mt(e);if(t.match(gt))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(bt)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(ht))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(Et)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=re.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var i=yt.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var s=Ot.exec(t);if(s){var l=parseInt(""+s[1],10),u=parseInt(""+s[2],10)/100,c=parseInt(""+s[3],10)/100,p="rgb("+F(l,u,c)+")",d=re.exec(p);if(!d)throw new _(4,t,p);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var f=Tt.exec(t.substring(0,50));if(f){var E=parseInt(""+f[1],10),m=parseInt(""+f[2],10)/100,y=parseInt(""+f[3],10)/100,O="rgb("+F(E,m,y)+")",N=re.exec(O);if(!N)throw new _(4,t,O);return{red:parseInt(""+N[1],10),green:parseInt(""+N[2],10),blue:parseInt(""+N[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new _(5)}function _t(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),i=Math.min(t,r,n),s=(a+i)/2;if(a===i)return e.alpha!==void 0?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var l,u=a-i,c=s>.5?u/(2-a-i):u/(a+i);switch(a){case t:l=(r-n)/u+(r=1?V(e,t,r):"rgba("+F(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?V(e.hue,e.saturation,e.lightness):"rgba("+F(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new _(2)}function oe(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return ae("#"+w(e)+w(t)+w(r));if(typeof e=="object"&&t===void 0&&r===void 0)return ae("#"+w(e.red)+w(e.green)+w(e.blue));throw new _(6)}function $(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=I(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?oe(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?oe(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new _(7)}var Ct=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},wt=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&typeof t.alpha=="number"},Nt=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},xt=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&typeof t.alpha=="number"};function C(e){if(typeof e!="object")throw new _(8);if(wt(e))return $(e);if(Ct(e))return oe(e);if(xt(e))return At(e);if(Nt(e))return Rt(e);throw new _(8)}function Ye(e,t,r){return function(){var a=r.concat(Array.prototype.slice.call(arguments));return a.length>=t?e.apply(this,a):Ye(e,t,a)}}function v(e){return Ye(e,e.length,[])}function Lt(e,t){if(t==="transparent")return t;var r=A(t);return C(T({},r,{hue:r.hue+parseFloat(e)}))}var al=v(Lt);function D(e,t,r){return Math.max(e,Math.min(t,r))}function It(e,t){if(t==="transparent")return t;var r=A(t);return C(T({},r,{lightness:D(0,1,r.lightness-parseFloat(e))}))}var ol=v(It);function Dt(e,t){if(t==="transparent")return t;var r=A(t);return C(T({},r,{saturation:D(0,1,r.saturation-parseFloat(e))}))}var il=v(Dt);function Mt(e,t){if(t==="transparent")return t;var r=A(t);return C(T({},r,{lightness:D(0,1,r.lightness+parseFloat(e))}))}var sl=v(Mt);function Pt(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=I(t),a=T({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),i=I(r),s=T({},i,{alpha:typeof i.alpha=="number"?i.alpha:1}),l=a.alpha-s.alpha,u=parseFloat(e)*2-1,c=u*l===-1?u:u+l,p=1+u*l,d=(c/p+1)/2,f=1-d,E={red:Math.floor(a.red*d+s.red*f),green:Math.floor(a.green*d+s.green*f),blue:Math.floor(a.blue*d+s.blue*f),alpha:a.alpha*parseFloat(e)+s.alpha*(1-parseFloat(e))};return $(E)}var Bt=v(Pt),Je=Bt;function Ft(e,t){if(t==="transparent")return t;var r=I(t),n=typeof r.alpha=="number"?r.alpha:1,a=T({},r,{alpha:D(0,1,(n*100+parseFloat(e)*100)/100)});return $(a)}var zt=v(Ft),qe=zt;function Ht(e,t){if(t==="transparent")return t;var r=A(t);return C(T({},r,{saturation:D(0,1,r.saturation+parseFloat(e))}))}var ll=v(Ht);function jt(e,t){return t==="transparent"?t:C(T({},A(t),{hue:parseFloat(e)}))}var ul=v(jt);function Ut(e,t){return t==="transparent"?t:C(T({},A(t),{lightness:parseFloat(e)}))}var cl=v(Ut);function kt(e,t){return t==="transparent"?t:C(T({},A(t),{saturation:parseFloat(e)}))}var pl=v(kt);function Gt(e,t){return t==="transparent"?t:Je(parseFloat(e),"rgb(0, 0, 0)",t)}var fl=v(Gt);function Wt(e,t){return t==="transparent"?t:Je(parseFloat(e),"rgb(255, 255, 255)",t)}var dl=v(Wt);function Vt(e,t){if(t==="transparent")return t;var r=I(t),n=typeof r.alpha=="number"?r.alpha:1,a=T({},r,{alpha:D(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return $(a)}var ml=v(Vt);var $t="actions",H="storybook/actions",Yt=`${H}/panel`,se=`${H}/action-event`,et=`${H}/action-clear`,Jt=Object.create,pe=Object.defineProperty,qt=Object.getOwnPropertyDescriptor,tt=Object.getOwnPropertyNames,Xt=Object.getPrototypeOf,Zt=Object.prototype.hasOwnProperty,fe=(e,t)=>function(){return t||(0,e[tt(e)[0]])((t={exports:{}}).exports,t),t.exports},Kt=(e,t)=>{for(var r in t)pe(e,r,{get:t[r],enumerable:!0})},Qt=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of tt(t))!Zt.call(e,a)&&a!==r&&pe(e,a,{get:()=>t[a],enumerable:!(n=qt(t,a))||n.enumerable});return e},er=(e,t,r)=>(r=e!=null?Jt(Xt(e)):{},Qt(t||!e||!e.__esModule?pe(r,"default",{value:e,enumerable:!0}):r,e)),tr=fe({"node_modules/is-object/index.js"(e,t){t.exports=function(r){return typeof r=="object"&&r!==null}}}),rr=fe({"node_modules/is-window/index.js"(e,t){t.exports=function(r){if(r==null)return!1;var n=Object(r);return n===n.window}}}),nr=fe({"node_modules/is-dom/index.js"(e,t){var r=tr(),n=rr();function a(i){return!r(i)||!n(window)||typeof window.Node!="function"?!1:typeof i.nodeType=="number"&&typeof i.nodeName=="string"}t.exports=a}}),q={};Kt(q,{chromeDark:()=>ar,chromeLight:()=>or});var ar={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},or={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},rt=Z([{},()=>{}]),ie={WebkitTouchCallout:"none",WebkitUserSelect:"none",KhtmlUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",OUserSelect:"none",userSelect:"none"},Y=e=>({DOMNodePreview:{htmlOpenTag:{base:{color:e.HTML_TAG_COLOR},tagName:{color:e.HTML_TAGNAME_COLOR,textTransform:e.HTML_TAGNAME_TEXT_TRANSFORM},htmlAttributeName:{color:e.HTML_ATTRIBUTE_NAME_COLOR},htmlAttributeValue:{color:e.HTML_ATTRIBUTE_VALUE_COLOR}},htmlCloseTag:{base:{color:e.HTML_TAG_COLOR},offsetLeft:{marginLeft:-e.TREENODE_PADDING_LEFT},tagName:{color:e.HTML_TAGNAME_COLOR,textTransform:e.HTML_TAGNAME_TEXT_TRANSFORM}},htmlComment:{color:e.HTML_COMMENT_COLOR},htmlDoctype:{color:e.HTML_DOCTYPE_COLOR}},ObjectPreview:{objectDescription:{fontStyle:"italic"},preview:{fontStyle:"italic"},arrayMaxProperties:e.OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES,objectMaxProperties:e.OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES},ObjectName:{base:{color:e.OBJECT_NAME_COLOR},dimmed:{opacity:.6}},ObjectValue:{objectValueNull:{color:e.OBJECT_VALUE_NULL_COLOR},objectValueUndefined:{color:e.OBJECT_VALUE_UNDEFINED_COLOR},objectValueRegExp:{color:e.OBJECT_VALUE_REGEXP_COLOR},objectValueString:{color:e.OBJECT_VALUE_STRING_COLOR},objectValueSymbol:{color:e.OBJECT_VALUE_SYMBOL_COLOR},objectValueNumber:{color:e.OBJECT_VALUE_NUMBER_COLOR},objectValueBoolean:{color:e.OBJECT_VALUE_BOOLEAN_COLOR},objectValueFunctionPrefix:{color:e.OBJECT_VALUE_FUNCTION_PREFIX_COLOR,fontStyle:"italic"},objectValueFunctionName:{fontStyle:"italic"}},TreeView:{treeViewOutline:{padding:0,margin:0,listStyleType:"none"}},TreeNode:{treeNodeBase:{color:e.BASE_COLOR,backgroundColor:e.BASE_BACKGROUND_COLOR,lineHeight:e.TREENODE_LINE_HEIGHT,cursor:"default",boxSizing:"border-box",listStyle:"none",fontFamily:e.TREENODE_FONT_FAMILY,fontSize:e.TREENODE_FONT_SIZE},treeNodePreviewContainer:{},treeNodePlaceholder:{whiteSpace:"pre",fontSize:e.ARROW_FONT_SIZE,marginRight:e.ARROW_MARGIN_RIGHT,...ie},treeNodeArrow:{base:{color:e.ARROW_COLOR,display:"inline-block",fontSize:e.ARROW_FONT_SIZE,marginRight:e.ARROW_MARGIN_RIGHT,...parseFloat(e.ARROW_ANIMATION_DURATION)>0?{transition:`transform ${e.ARROW_ANIMATION_DURATION} ease 0s`}:{},...ie},expanded:{WebkitTransform:"rotateZ(90deg)",MozTransform:"rotateZ(90deg)",transform:"rotateZ(90deg)"},collapsed:{WebkitTransform:"rotateZ(0deg)",MozTransform:"rotateZ(0deg)",transform:"rotateZ(0deg)"}},treeNodeChildNodesContainer:{margin:0,paddingLeft:e.TREENODE_PADDING_LEFT}},TableInspector:{base:{color:e.BASE_COLOR,position:"relative",border:`1px solid ${e.TABLE_BORDER_COLOR}`,fontFamily:e.BASE_FONT_FAMILY,fontSize:e.BASE_FONT_SIZE,lineHeight:"120%",boxSizing:"border-box",cursor:"default"}},TableInspectorHeaderContainer:{base:{top:0,height:"17px",left:0,right:0,overflowX:"hidden"},table:{tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",height:"100%",width:"100%",margin:0}},TableInspectorDataContainer:{tr:{display:"table-row"},td:{boxSizing:"border-box",border:"none",height:"16px",verticalAlign:"top",padding:"1px 4px",WebkitUserSelect:"text",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px"},div:{position:"static",top:"17px",bottom:0,overflowY:"overlay",transform:"translateZ(0)",left:0,right:0,overflowX:"hidden"},table:{positon:"static",left:0,top:0,right:0,bottom:0,borderTop:"0 none transparent",margin:0,backgroundImage:e.TABLE_DATA_BACKGROUND_IMAGE,backgroundSize:e.TABLE_DATA_BACKGROUND_SIZE,tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",width:"100%",fontSize:e.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorTH:{base:{position:"relative",height:"auto",textAlign:"left",backgroundColor:e.TABLE_TH_BACKGROUND_COLOR,borderBottom:`1px solid ${e.TABLE_BORDER_COLOR}`,fontWeight:"normal",verticalAlign:"middle",padding:"0 4px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px",":hover":{backgroundColor:e.TABLE_TH_HOVER_COLOR}},div:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontSize:e.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorLeftBorder:{none:{borderLeft:"none"},solid:{borderLeft:`1px solid ${e.TABLE_BORDER_COLOR}`}},TableInspectorSortIcon:{display:"block",marginRight:3,width:8,height:7,marginTop:-7,color:e.TABLE_SORT_ICON_COLOR,fontSize:12,...ie}}),le="chromeLight",nt=Z(Y(q[le])),S=e=>K(nt)[e],de=e=>({theme:t=le,...r})=>{let n=Ce(()=>{switch(Object.prototype.toString.call(t)){case"[object String]":return Y(q[t]);case"[object Object]":return Y(t);default:return Y(q[le])}},[t]);return o.createElement(nt.Provider,{value:n},o.createElement(e,{...r}))},ir=({expanded:e,styles:t})=>o.createElement("span",{style:{...t.base,...e?t.expanded:t.collapsed}},"\u25B6"),sr=j(e=>{e={expanded:!0,nodeRenderer:({name:p})=>o.createElement("span",null,p),onClick:()=>{},shouldShowArrow:!1,shouldShowPlaceholder:!0,...e};let{expanded:t,onClick:r,children:n,nodeRenderer:a,title:i,shouldShowArrow:s,shouldShowPlaceholder:l}=e,u=S("TreeNode"),c=a;return o.createElement("li",{"aria-expanded":t,role:"treeitem",style:u.treeNodeBase,title:i},o.createElement("div",{style:u.treeNodePreviewContainer,onClick:r},s||Te.count(n)>0?o.createElement(ir,{expanded:t,styles:u.treeNodeArrow}):l&&o.createElement("span",{style:u.treeNodePlaceholder},"\xA0"),o.createElement(c,{...e})),o.createElement("ol",{role:"group",style:u.treeNodeChildNodesContainer},t?n:void 0))}),X="$",Xe="*";function J(e,t){return!t(e).next().done}var lr=e=>Array.from({length:e},(t,r)=>[X].concat(Array.from({length:r},()=>"*")).join(".")),ur=(e,t,r,n,a)=>{let i=[].concat(lr(n)).concat(r).filter(l=>typeof l=="string"),s=[];return i.forEach(l=>{let u=l.split("."),c=(p,d,f)=>{if(f===u.length){s.push(d);return}let E=u[f];if(f===0)J(p,t)&&(E===X||E===Xe)&&c(p,X,f+1);else if(E===Xe)for(let{name:m,data:y}of t(p))J(y,t)&&c(y,`${d}.${m}`,f+1);else{let m=p[E];J(m,t)&&c(m,`${d}.${E}`,f+1)}};c(e,"",0)}),s.reduce((l,u)=>(l[u]=!0,l),{...a})},at=j(e=>{let{data:t,dataIterator:r,path:n,depth:a,nodeRenderer:i}=e,[s,l]=K(rt),u=J(t,r),c=!!s[n],p=x(()=>u&&l(d=>({...d,[n]:!c})),[u,l,n,c]);return o.createElement(sr,{expanded:c,onClick:p,shouldShowArrow:u,shouldShowPlaceholder:a>0,nodeRenderer:i,...e},c?[...r(t)].map(({name:d,data:f,...E})=>o.createElement(at,{name:d,data:f,depth:a+1,path:`${n}.${d}`,key:d,dataIterator:r,nodeRenderer:i,...E})):null)}),ot=j(({name:e,data:t,dataIterator:r,nodeRenderer:n,expandPaths:a,expandLevel:i})=>{let s=S("TreeView"),l=U({}),[,u]=l;return Ae(()=>u(c=>ur(t,r,a,i,c)),[t,r,a,i]),o.createElement(rt.Provider,{value:l},o.createElement("ol",{role:"tree",style:s.treeViewOutline},o.createElement(at,{name:e,data:t,dataIterator:r,depth:0,path:X,nodeRenderer:n})))}),me=({name:e,dimmed:t=!1,styles:r={}})=>{let n=S("ObjectName"),a={...n.base,...t?n.dimmed:{},...r};return o.createElement("span",{style:a},e)},z=({object:e,styles:t})=>{let r=S("ObjectValue"),n=a=>({...r[a],...t});switch(typeof e){case"bigint":return o.createElement("span",{style:n("objectValueNumber")},String(e),"n");case"number":return o.createElement("span",{style:n("objectValueNumber")},String(e));case"string":return o.createElement("span",{style:n("objectValueString")},'"',e,'"');case"boolean":return o.createElement("span",{style:n("objectValueBoolean")},String(e));case"undefined":return o.createElement("span",{style:n("objectValueUndefined")},"undefined");case"object":return e===null?o.createElement("span",{style:n("objectValueNull")},"null"):e instanceof Date?o.createElement("span",null,e.toString()):e instanceof RegExp?o.createElement("span",{style:n("objectValueRegExp")},e.toString()):Array.isArray(e)?o.createElement("span",null,`Array(${e.length})`):e.constructor?typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)?o.createElement("span",null,`Buffer[${e.length}]`):o.createElement("span",null,e.constructor.name):o.createElement("span",null,"Object");case"function":return o.createElement("span",null,o.createElement("span",{style:n("objectValueFunctionPrefix")},"\u0192\xA0"),o.createElement("span",{style:n("objectValueFunctionName")},e.name,"()"));case"symbol":return o.createElement("span",{style:n("objectValueSymbol")},e.toString());default:return o.createElement("span",null)}},it=Object.prototype.hasOwnProperty,cr=Object.prototype.propertyIsEnumerable;function ue(e,t){let r=Object.getOwnPropertyDescriptor(e,t);if(r.get)try{return r.get()}catch{return r.get}return e[t]}function Ze(e,t){return e.length===0?[]:e.slice(1).reduce((r,n)=>r.concat([t,n]),[e[0]])}var ce=({data:e})=>{let t=S("ObjectPreview"),r=e;if(typeof r!="object"||r===null||r instanceof Date||r instanceof RegExp)return o.createElement(z,{object:r});if(Array.isArray(r)){let n=t.arrayMaxProperties,a=r.slice(0,n).map((s,l)=>o.createElement(z,{key:l,object:s}));r.length>n&&a.push(o.createElement("span",{key:"ellipsis"},"\u2026"));let i=r.length;return o.createElement(o.Fragment,null,o.createElement("span",{style:t.objectDescription},i===0?"":`(${i})\xA0`),o.createElement("span",{style:t.preview},"[",Ze(a,", "),"]"))}else{let n=t.objectMaxProperties,a=[];for(let s in r)if(it.call(r,s)){let l;a.length===n-1&&Object.keys(r).length>n&&(l=o.createElement("span",{key:"ellipsis"},"\u2026"));let u=ue(r,s);if(a.push(o.createElement("span",{key:s},o.createElement(me,{name:s||'""'}),":\xA0",o.createElement(z,{object:u}),l)),l)break}let i=r.constructor?r.constructor.name:"Object";return o.createElement(o.Fragment,null,o.createElement("span",{style:t.objectDescription},i==="Object"?"":`${i} `),o.createElement("span",{style:t.preview},"{",Ze(a,", "),"}"))}},pr=({name:e,data:t})=>typeof e=="string"?o.createElement("span",null,o.createElement(me,{name:e}),o.createElement("span",null,": "),o.createElement(ce,{data:t})):o.createElement(ce,{data:t}),fr=({name:e,data:t,isNonenumerable:r=!1})=>{let n=t;return o.createElement("span",null,typeof e=="string"?o.createElement(me,{name:e,dimmed:r}):o.createElement(ce,{data:e}),o.createElement("span",null,": "),o.createElement(z,{object:n}))},dr=(e,t)=>function*(r){if(!(typeof r=="object"&&r!==null||typeof r=="function"))return;let n=Array.isArray(r);if(!n&&r[Symbol.iterator]){let a=0;for(let i of r){if(Array.isArray(i)&&i.length===2){let[s,l]=i;yield{name:s,data:l}}else yield{name:a.toString(),data:i};a++}}else{let a=Object.getOwnPropertyNames(r);t===!0&&!n?a.sort():typeof t=="function"&&a.sort(t);for(let i of a)if(cr.call(r,i)){let s=ue(r,i);yield{name:i||'""',data:s}}else if(e){let s;try{s=ue(r,i)}catch{}s!==void 0&&(yield{name:i,data:s,isNonenumerable:!0})}e&&r!==Object.prototype&&(yield{name:"__proto__",data:Object.getPrototypeOf(r),isNonenumerable:!0})}},mr=({depth:e,name:t,data:r,isNonenumerable:n})=>e===0?o.createElement(pr,{name:t,data:r}):o.createElement(fr,{name:t,data:r,isNonenumerable:n}),gr=({showNonenumerable:e=!1,sortObjectKeys:t,nodeRenderer:r,...n})=>{let a=dr(e,t),i=r||mr;return o.createElement(ot,{nodeRenderer:i,dataIterator:a,...n})},br=de(gr);function hr(e){if(typeof e=="object"){let t=[];if(Array.isArray(e)){let n=e.length;t=[...Array(n).keys()]}else e!==null&&(t=Object.keys(e));let r=t.reduce((n,a)=>{let i=e[a];return typeof i=="object"&&i!==null&&Object.keys(i).reduce((s,l)=>(s.includes(l)||s.push(l),s),n),n},[]);return{rowHeaders:t,colHeaders:r}}}var Er=({rows:e,columns:t,rowsData:r})=>{let n=S("TableInspectorDataContainer"),a=S("TableInspectorLeftBorder");return o.createElement("div",{style:n.div},o.createElement("table",{style:n.table},o.createElement("colgroup",null),o.createElement("tbody",null,e.map((i,s)=>o.createElement("tr",{key:i,style:n.tr},o.createElement("td",{style:{...n.td,...a.none}},i),t.map(l=>{let u=r[s];return typeof u=="object"&&u!==null&&it.call(u,l)?o.createElement("td",{key:l,style:{...n.td,...a.solid}},o.createElement(z,{object:u[l]})):o.createElement("td",{key:l,style:{...n.td,...a.solid}})}))))))},yr=e=>o.createElement("div",{style:{position:"absolute",top:1,right:0,bottom:1,display:"flex",alignItems:"center"}},e.children),Or=({sortAscending:e})=>{let t=S("TableInspectorSortIcon"),r=e?"\u25B2":"\u25BC";return o.createElement("div",{style:t},r)},Ke=({sortAscending:e=!1,sorted:t=!1,onClick:r=void 0,borderStyle:n={},children:a,...i})=>{let s=S("TableInspectorTH"),[l,u]=U(!1),c=x(()=>u(!0),[]),p=x(()=>u(!1),[]);return o.createElement("th",{...i,style:{...s.base,...n,...l?s.base[":hover"]:{}},onMouseEnter:c,onMouseLeave:p,onClick:r},o.createElement("div",{style:s.div},a),t&&o.createElement(yr,null,o.createElement(Or,{sortAscending:e})))},Tr=({indexColumnText:e="(index)",columns:t=[],sorted:r,sortIndexColumn:n,sortColumn:a,sortAscending:i,onTHClick:s,onIndexTHClick:l})=>{let u=S("TableInspectorHeaderContainer"),c=S("TableInspectorLeftBorder");return o.createElement("div",{style:u.base},o.createElement("table",{style:u.table},o.createElement("tbody",null,o.createElement("tr",null,o.createElement(Ke,{borderStyle:c.none,sorted:r&&n,sortAscending:i,onClick:l},e),t.map(p=>o.createElement(Ke,{borderStyle:c.solid,key:p,sorted:r&&a===p,sortAscending:i,onClick:s.bind(null,p)},p))))))},_r=({data:e,columns:t})=>{let r=S("TableInspector"),[{sorted:n,sortIndexColumn:a,sortColumn:i,sortAscending:s},l]=U({sorted:!1,sortIndexColumn:!1,sortColumn:void 0,sortAscending:!1}),u=x(()=>{l(({sortIndexColumn:m,sortAscending:y})=>({sorted:!0,sortIndexColumn:!0,sortColumn:void 0,sortAscending:m?!y:!0}))},[]),c=x(m=>{l(({sortColumn:y,sortAscending:O})=>({sorted:!0,sortIndexColumn:!1,sortColumn:m,sortAscending:m===y?!O:!0}))},[]);if(typeof e!="object"||e===null)return o.createElement("div",null);let{rowHeaders:p,colHeaders:d}=hr(e);t!==void 0&&(d=t);let f=p.map(m=>e[m]),E;if(i!==void 0?E=f.map((m,y)=>typeof m=="object"&&m!==null?[m[i],y]:[void 0,y]):a&&(E=p.map((m,y)=>[p[y],y])),E!==void 0){let m=(O,N)=>(ut,ct)=>{let ge=O(ut),be=O(ct),he=typeof ge,Ee=typeof be,ye=(P,Oe)=>POe?1:0,M;if(he===Ee)M=ye(ge,be);else{let P={string:0,number:1,object:2,symbol:3,boolean:4,undefined:5,function:6};M=ye(P[he],P[Ee])}return N||(M=-M),M},y=E.sort(m(O=>O[0],s)).map(O=>O[1]);p=y.map(O=>p[O]),f=y.map(O=>f[O])}return o.createElement("div",{style:r.base},o.createElement(Tr,{columns:d,sorted:n,sortIndexColumn:a,sortColumn:i,sortAscending:s,onTHClick:c,onIndexTHClick:u}),o.createElement(Er,{rows:p,columns:d,rowsData:f}))},vr=de(_r),Sr=80,st=e=>e.childNodes.length===0||e.childNodes.length===1&&e.childNodes[0].nodeType===Node.TEXT_NODE&&e.textContent.lengtho.createElement("span",{style:r.base},"<",o.createElement("span",{style:r.tagName},e),(()=>{if(t){let n=[];for(let a=0;a"),Qe=({tagName:e,isChildNode:t=!1,styles:r})=>o.createElement("span",{style:Object.assign({},r.base,t&&r.offsetLeft)},""),Ar={1:"ELEMENT_NODE",3:"TEXT_NODE",7:"PROCESSING_INSTRUCTION_NODE",8:"COMMENT_NODE",9:"DOCUMENT_NODE",10:"DOCUMENT_TYPE_NODE",11:"DOCUMENT_FRAGMENT_NODE"},Cr=({isCloseTag:e,data:t,expanded:r})=>{let n=S("DOMNodePreview");if(e)return o.createElement(Qe,{styles:n.htmlCloseTag,isChildNode:!0,tagName:t.tagName});switch(t.nodeType){case Node.ELEMENT_NODE:return o.createElement("span",null,o.createElement(Rr,{tagName:t.tagName,attributes:t.attributes,styles:n.htmlOpenTag}),st(t)?t.textContent:!r&&"\u2026",!r&&o.createElement(Qe,{tagName:t.tagName,styles:n.htmlCloseTag}));case Node.TEXT_NODE:return o.createElement("span",null,t.textContent);case Node.CDATA_SECTION_NODE:return o.createElement("span",null,"");case Node.COMMENT_NODE:return o.createElement("span",{style:n.htmlComment},"");case Node.PROCESSING_INSTRUCTION_NODE:return o.createElement("span",null,t.nodeName);case Node.DOCUMENT_TYPE_NODE:return o.createElement("span",{style:n.htmlDoctype},"");case Node.DOCUMENT_NODE:return o.createElement("span",null,t.nodeName);case Node.DOCUMENT_FRAGMENT_NODE:return o.createElement("span",null,t.nodeName);default:return o.createElement("span",null,Ar[t.nodeType])}},wr=function*(e){if(e&&e.childNodes){if(st(e))return;for(let t=0;to.createElement(ot,{nodeRenderer:Cr,dataIterator:wr,...e}),xr=de(Nr),Lr=er(nr()),Ir=({table:e=!1,data:t,...r})=>e?o.createElement(vr,{data:t,...r}):(0,Lr.default)(t)?o.createElement(xr,{data:t,...r}):o.createElement(br,{data:t,...r}),Dr=B.div({display:"flex",padding:0,borderLeft:"5px solid transparent",borderBottom:"1px solid transparent",transition:"all 0.1s",alignItems:"flex-start",whiteSpace:"pre"}),Mr=B.div(({theme:e})=>({backgroundColor:qe(.5,e.appBorderColor),color:e.color.inverseText,fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:1,padding:"1px 5px",borderRadius:20,margin:"2px 0px"})),Pr=B.div({flex:1,padding:"0 0 0 5px"}),lt=Se(({children:e,className:t},r)=>o.createElement(Le,{ref:r,horizontal:!0,vertical:!0,className:t},e));lt.displayName="UnstyledWrapped";var Br=B(lt)({margin:0,padding:"10px 5px 20px"}),Fr=ze(({theme:e,...t})=>o.createElement(Ir,{theme:e.addonActionsTheme||"chromeLight",table:!1,...t})),zr=({actions:e,onClear:t})=>{let r=we(null),n=r.current,a=n&&n.scrollHeight-n.scrollTop===n.clientHeight;return Re(()=>{a&&(r.current.scrollTop=r.current.scrollHeight)},[a,e.length]),o.createElement(ve,null,o.createElement(Br,{ref:r},e.map(i=>o.createElement(Dr,{key:i.id},i.count>1&&o.createElement(Mr,null,i.count),o.createElement(Pr,null,o.createElement(Fr,{sortObjectKeys:!0,showNonenumerable:!1,name:i.data.name,data:i.data.args??i.data}))))),o.createElement(Ne,{actionItems:[{title:"Clear",onClick:t}]}))},Hr=(e,t)=>{try{return L(e,t)}catch{return!1}},jr=class extends _e{constructor(e){super(e),this.handleStoryChange=()=>{let{actions:t}=this.state;t.length>0&&t[0].options.clearOnStoryChange&&this.clearActions()},this.addAction=t=>{this.setState(r=>{let n=[...r.actions],a=n.length&&n[n.length-1];return a&&Hr(a.data,t.data)?a.count++:(t.count=1,n.push(t)),{actions:n.slice(0,t.options.limit)}})},this.clearActions=()=>{let{api:t}=this.props;t.emit(et),this.setState({actions:[]})},this.mounted=!1,this.state={actions:[]}}componentDidMount(){this.mounted=!0;let{api:e}=this.props;e.on(se,this.addAction),e.on(k,this.handleStoryChange)}componentWillUnmount(){this.mounted=!1;let{api:e}=this.props;e.off(k,this.handleStoryChange),e.off(se,this.addAction)}render(){let{actions:e=[]}=this.state,{active:t}=this.props,r={actions:e,onClear:this.clearActions};return t?o.createElement(zr,{...r}):null}};function Ur(){let[{count:e},t]=Me(H,{count:0});return Pe({[se]:()=>{t(r=>({...r,count:r.count+1}))},[k]:()=>{t(r=>({...r,count:0}))},[et]:()=>{t(r=>({...r,count:0}))}}),o.createElement("div",null,o.createElement(Ie,{col:1},o.createElement("span",{style:{display:"inline-block",verticalAlign:"middle"}},"Actions"),e===0?"":o.createElement(xe,{status:"neutral"},e)))}Q.register(H,e=>{Q.add(Yt,{title:Ur,type:De.PANEL,render:({active:t})=>o.createElement(jr,{api:e,active:!!t}),paramKey:$t})});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/sb-addons/essentials-actions-1/manager-bundle.js.LEGAL.txt b/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt similarity index 100% rename from sb-addons/essentials-actions-1/manager-bundle.js.LEGAL.txt rename to sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt diff --git a/sb-addons/essentials-controls-0/manager-bundle.js b/sb-addons/essentials-controls-0/manager-bundle.js deleted file mode 100644 index 08154552e..000000000 --- a/sb-addons/essentials-controls-0/manager-bundle.js +++ /dev/null @@ -1,63 +0,0 @@ -try{ -(()=>{var Wy=Object.create;var ma=Object.defineProperty;var Vy=Object.getOwnPropertyDescriptor;var Ky=Object.getOwnPropertyNames;var Yy=Object.getPrototypeOf,Xy=Object.prototype.hasOwnProperty;var sr=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Ye=(e,t)=>()=>(e&&(t=e(e=0)),t);var F=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),tu=(e,t)=>{for(var r in t)ma(e,r,{get:t[r],enumerable:!0})},Jy=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ky(t))!Xy.call(e,a)&&a!==r&&ma(e,a,{get:()=>t[a],enumerable:!(n=Vy(t,a))||n.enumerable});return e};var fe=(e,t,r)=>(r=e!=null?Wy(Yy(e)):{},Jy(t||!e||!e.__esModule?ma(r,"default",{value:e,enumerable:!0}):r,e));var l=Ye(()=>{});var c=Ye(()=>{});var d=Ye(()=>{});var g,ru,et,nu,sI,lI,cI,au,dI,he,lr,ga,pI,fI,hI,mI,ou,gI,ge,Xr,yI,me,bI,iu,tt,EI,Be,ne,AI,wt=Ye(()=>{l();c();d();g=__REACT__,{Children:ru,Component:et,Fragment:nu,Profiler:sI,PureComponent:lI,StrictMode:cI,Suspense:au,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:dI,cloneElement:he,createContext:lr,createElement:ga,createFactory:pI,createRef:fI,forwardRef:hI,isValidElement:mI,lazy:ou,memo:gI,useCallback:ge,useContext:Xr,useDebugValue:yI,useEffect:me,useImperativeHandle:bI,useLayoutEffect:iu,useMemo:tt,useReducer:EI,useRef:Be,useState:ne,version:AI}=__REACT__});var yu={};tu(yu,{A:()=>e2,ActionBar:()=>Ea,AddonPanel:()=>Aa,Badge:()=>va,Bar:()=>t2,Blockquote:()=>r2,Button:()=>n2,ClipboardCode:()=>a2,Code:()=>pu,DL:()=>o2,Div:()=>i2,DocumentWrapper:()=>u2,ErrorFormatter:()=>fu,FlexBar:()=>Da,Form:()=>_e,H1:()=>s2,H2:()=>Ca,H3:()=>hu,H4:()=>l2,H5:()=>c2,H6:()=>d2,HR:()=>p2,IconButton:()=>ht,IconButtonSkeleton:()=>xa,Icons:()=>Te,Img:()=>f2,LI:()=>h2,Link:()=>mt,ListItem:()=>m2,Loader:()=>mu,OL:()=>g2,P:()=>y2,Placeholder:()=>b2,Pre:()=>E2,ResetWrapper:()=>Sa,ScrollArea:()=>A2,Separator:()=>v2,Spaced:()=>Fa,Span:()=>D2,StorybookIcon:()=>C2,StorybookLogo:()=>x2,Symbols:()=>S2,SyntaxHighlighter:()=>Jr,TT:()=>F2,TabBar:()=>w2,TabButton:()=>B2,TabWrapper:()=>T2,Table:()=>_2,Tabs:()=>O2,TabsState:()=>wa,TooltipLinkList:()=>R2,TooltipMessage:()=>P2,TooltipNote:()=>Ba,UL:()=>I2,WithTooltip:()=>Qr,WithTooltipPure:()=>Ta,Zoom:()=>_a,codeCommon:()=>Bt,components:()=>Oa,createCopyToClipboardFunction:()=>k2,default:()=>Zy,getStoryHref:()=>gu,icons:()=>N2,interleaveSeparators:()=>L2,nameSpaceClassNames:()=>Ra,resetComponents:()=>j2,withReset:()=>Tt});var Zy,e2,Ea,Aa,va,t2,r2,n2,a2,pu,o2,i2,u2,fu,Da,_e,s2,Ca,hu,l2,c2,d2,p2,ht,xa,Te,f2,h2,mt,m2,mu,g2,y2,b2,E2,Sa,A2,v2,Fa,D2,C2,x2,S2,Jr,F2,w2,B2,T2,_2,O2,wa,R2,P2,Ba,I2,Qr,Ta,_a,Bt,Oa,k2,gu,N2,L2,Ra,j2,Tt,cr=Ye(()=>{l();c();d();Zy=__STORYBOOK_COMPONENTS__,{A:e2,ActionBar:Ea,AddonPanel:Aa,Badge:va,Bar:t2,Blockquote:r2,Button:n2,ClipboardCode:a2,Code:pu,DL:o2,Div:i2,DocumentWrapper:u2,ErrorFormatter:fu,FlexBar:Da,Form:_e,H1:s2,H2:Ca,H3:hu,H4:l2,H5:c2,H6:d2,HR:p2,IconButton:ht,IconButtonSkeleton:xa,Icons:Te,Img:f2,LI:h2,Link:mt,ListItem:m2,Loader:mu,OL:g2,P:y2,Placeholder:b2,Pre:E2,ResetWrapper:Sa,ScrollArea:A2,Separator:v2,Spaced:Fa,Span:D2,StorybookIcon:C2,StorybookLogo:x2,Symbols:S2,SyntaxHighlighter:Jr,TT:F2,TabBar:w2,TabButton:B2,TabWrapper:T2,Table:_2,Tabs:O2,TabsState:wa,TooltipLinkList:R2,TooltipMessage:P2,TooltipNote:Ba,UL:I2,WithTooltip:Qr,WithTooltipPure:Ta,Zoom:_a,codeCommon:Bt,components:Oa,createCopyToClipboardFunction:k2,getStoryHref:gu,icons:N2,interleaveSeparators:L2,nameSpaceClassNames:Ra,resetComponents:j2,withReset:Tt}=__STORYBOOK_COMPONENTS__});var Oe,dr,Pa=Ye(()=>{l();c();d();Oe=e=>`control-${e.replace(/\s+/g,"-")}`,dr=e=>`set-${e.replace(/\s+/g,"-")}`});var ok,ik,uk,sk,bu,lk,ck,Eu,dk,pk,fk,hk,mk,gk,M2,Au,yk,bk,Ek,Ak,M,Ia,vk,vu,Dk,ka=Ye(()=>{l();c();d();ok=__STORYBOOK_THEMING__,{CacheProvider:ik,ClassNames:uk,Global:sk,ThemeProvider:bu,background:lk,color:ck,convert:Eu,create:dk,createCache:pk,createGlobal:fk,createReset:hk,css:mk,darken:gk,ensure:M2,ignoreSsrWarning:Au,isPropValid:yk,jsx:bk,keyframes:Ek,lighten:Ak,styled:M,themes:Ia,typography:vk,useTheme:vu,withTheme:Dk}=__STORYBOOK_THEMING__});var Ga=F((z7,Bu)=>{l();c();d();function x1(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r{l();c();d();function S1(){this.__data__=[],this.size=0}Tu.exports=S1});var en=F((Q7,Ou)=>{l();c();d();function F1(e,t){return e===t||e!==e&&t!==t}Ou.exports=F1});var gr=F((rN,Ru)=>{l();c();d();var w1=en();function B1(e,t){for(var r=e.length;r--;)if(w1(e[r][0],t))return r;return-1}Ru.exports=B1});var Iu=F((iN,Pu)=>{l();c();d();var T1=gr(),_1=Array.prototype,O1=_1.splice;function R1(e){var t=this.__data__,r=T1(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():O1.call(t,r,1),--this.size,!0}Pu.exports=R1});var Nu=F((cN,ku)=>{l();c();d();var P1=gr();function I1(e){var t=this.__data__,r=P1(t,e);return r<0?void 0:t[r][1]}ku.exports=I1});var ju=F((hN,Lu)=>{l();c();d();var k1=gr();function N1(e){return k1(this.__data__,e)>-1}Lu.exports=N1});var qu=F((bN,Mu)=>{l();c();d();var L1=gr();function j1(e,t){var r=this.__data__,n=L1(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}Mu.exports=j1});var yr=F((DN,$u)=>{l();c();d();var M1=_u(),q1=Iu(),$1=Nu(),H1=ju(),U1=qu();function Pt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{l();c();d();var z1=yr();function G1(){this.__data__=new z1,this.size=0}Hu.exports=G1});var Gu=F((_N,zu)=>{l();c();d();function W1(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}zu.exports=W1});var Vu=F((IN,Wu)=>{l();c();d();function V1(e){return this.__data__.get(e)}Wu.exports=V1});var Yu=F((jN,Ku)=>{l();c();d();function K1(e){return this.__data__.has(e)}Ku.exports=K1});var Wa=F((HN,Xu)=>{l();c();d();var Y1=typeof window=="object"&&window&&window.Object===Object&&window;Xu.exports=Y1});var je=F((WN,Ju)=>{l();c();d();var X1=Wa(),J1=typeof self=="object"&&self&&self.Object===Object&&self,Q1=X1||J1||Function("return this")();Ju.exports=Q1});var yt=F((XN,Qu)=>{l();c();d();var Z1=je(),eb=Z1.Symbol;Qu.exports=eb});var rs=F((eL,ts)=>{l();c();d();var Zu=yt(),es=Object.prototype,tb=es.hasOwnProperty,rb=es.toString,br=Zu?Zu.toStringTag:void 0;function nb(e){var t=tb.call(e,br),r=e[br];try{e[br]=void 0;var n=!0}catch{}var a=rb.call(e);return n&&(t?e[br]=r:delete e[br]),a}ts.exports=nb});var as=F((aL,ns)=>{l();c();d();var ab=Object.prototype,ob=ab.toString;function ib(e){return ob.call(e)}ns.exports=ib});var bt=F((sL,us)=>{l();c();d();var os=yt(),ub=rs(),sb=as(),lb="[object Null]",cb="[object Undefined]",is=os?os.toStringTag:void 0;function db(e){return e==null?e===void 0?cb:lb:is&&is in Object(e)?ub(e):sb(e)}us.exports=db});var He=F((pL,ss)=>{l();c();d();function pb(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}ss.exports=pb});var Va=F((gL,ls)=>{l();c();d();var fb=bt(),hb=He(),mb="[object AsyncFunction]",gb="[object Function]",yb="[object GeneratorFunction]",bb="[object Proxy]";function Eb(e){if(!hb(e))return!1;var t=fb(e);return t==gb||t==yb||t==mb||t==bb}ls.exports=Eb});var ds=F((AL,cs)=>{l();c();d();var Ab=je(),vb=Ab["__core-js_shared__"];cs.exports=vb});var hs=F((xL,fs)=>{l();c();d();var Ka=ds(),ps=function(){var e=/[^.]+$/.exec(Ka&&Ka.keys&&Ka.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Db(e){return!!ps&&ps in e}fs.exports=Db});var Ya=F((BL,ms)=>{l();c();d();var Cb=Function.prototype,xb=Cb.toString;function Sb(e){if(e!=null){try{return xb.call(e)}catch{}try{return e+""}catch{}}return""}ms.exports=Sb});var ys=F((RL,gs)=>{l();c();d();var Fb=Va(),wb=hs(),Bb=He(),Tb=Ya(),_b=/[\\^$.*+?()[\]{}|]/g,Ob=/^\[object .+?Constructor\]$/,Rb=Function.prototype,Pb=Object.prototype,Ib=Rb.toString,kb=Pb.hasOwnProperty,Nb=RegExp("^"+Ib.call(kb).replace(_b,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Lb(e){if(!Bb(e)||wb(e))return!1;var t=Fb(e)?Nb:Ob;return t.test(Tb(e))}gs.exports=Lb});var Es=F((NL,bs)=>{l();c();d();function jb(e,t){return e?.[t]}bs.exports=jb});var ot=F((qL,As)=>{l();c();d();var Mb=ys(),qb=Es();function $b(e,t){var r=qb(e,t);return Mb(r)?r:void 0}As.exports=$b});var tn=F((zL,vs)=>{l();c();d();var Hb=ot(),Ub=je(),zb=Hb(Ub,"Map");vs.exports=zb});var Er=F((KL,Ds)=>{l();c();d();var Gb=ot(),Wb=Gb(Object,"create");Ds.exports=Wb});var Ss=F((QL,xs)=>{l();c();d();var Cs=Er();function Vb(){this.__data__=Cs?Cs(null):{},this.size=0}xs.exports=Vb});var ws=F((rj,Fs)=>{l();c();d();function Kb(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}Fs.exports=Kb});var Ts=F((ij,Bs)=>{l();c();d();var Yb=Er(),Xb="__lodash_hash_undefined__",Jb=Object.prototype,Qb=Jb.hasOwnProperty;function Zb(e){var t=this.__data__;if(Yb){var r=t[e];return r===Xb?void 0:r}return Qb.call(t,e)?t[e]:void 0}Bs.exports=Zb});var Os=F((cj,_s)=>{l();c();d();var eE=Er(),tE=Object.prototype,rE=tE.hasOwnProperty;function nE(e){var t=this.__data__;return eE?t[e]!==void 0:rE.call(t,e)}_s.exports=nE});var Ps=F((hj,Rs)=>{l();c();d();var aE=Er(),oE="__lodash_hash_undefined__";function iE(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=aE&&t===void 0?oE:t,this}Rs.exports=iE});var ks=F((bj,Is)=>{l();c();d();var uE=Ss(),sE=ws(),lE=Ts(),cE=Os(),dE=Ps();function It(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{l();c();d();var Ns=ks(),pE=yr(),fE=tn();function hE(){this.size=0,this.__data__={hash:new Ns,map:new(fE||pE),string:new Ns}}Ls.exports=hE});var qs=F((Fj,Ms)=>{l();c();d();function mE(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}Ms.exports=mE});var Ar=F((_j,$s)=>{l();c();d();var gE=qs();function yE(e,t){var r=e.__data__;return gE(t)?r[typeof t=="string"?"string":"hash"]:r.map}$s.exports=yE});var Us=F((Ij,Hs)=>{l();c();d();var bE=Ar();function EE(e){var t=bE(this,e).delete(e);return this.size-=t?1:0,t}Hs.exports=EE});var Gs=F((jj,zs)=>{l();c();d();var AE=Ar();function vE(e){return AE(this,e).get(e)}zs.exports=vE});var Vs=F((Hj,Ws)=>{l();c();d();var DE=Ar();function CE(e){return DE(this,e).has(e)}Ws.exports=CE});var Ys=F((Wj,Ks)=>{l();c();d();var xE=Ar();function SE(e,t){var r=xE(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}Ks.exports=SE});var rn=F((Xj,Xs)=>{l();c();d();var FE=js(),wE=Us(),BE=Gs(),TE=Vs(),_E=Ys();function kt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{l();c();d();var OE=yr(),RE=tn(),PE=rn(),IE=200;function kE(e,t){var r=this.__data__;if(r instanceof OE){var n=r.__data__;if(!RE||n.length{l();c();d();var NE=yr(),LE=Uu(),jE=Gu(),ME=Vu(),qE=Yu(),$E=Qs();function Nt(e){var t=this.__data__=new NE(e);this.size=t.size}Nt.prototype.clear=LE;Nt.prototype.delete=jE;Nt.prototype.get=ME;Nt.prototype.has=qE;Nt.prototype.set=$E;Zs.exports=Nt});var tl=F((sM,el)=>{l();c();d();var HE="__lodash_hash_undefined__";function UE(e){return this.__data__.set(e,HE),this}el.exports=UE});var nl=F((pM,rl)=>{l();c();d();function zE(e){return this.__data__.has(e)}rl.exports=zE});var Xa=F((gM,al)=>{l();c();d();var GE=rn(),WE=tl(),VE=nl();function an(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new GE;++t{l();c();d();function KE(e,t){for(var r=-1,n=e==null?0:e.length;++r{l();c();d();function YE(e,t){return e.has(t)}ul.exports=YE});var Qa=F((BM,sl)=>{l();c();d();var XE=Xa(),JE=il(),QE=Ja(),ZE=1,eA=2;function tA(e,t,r,n,a,o){var i=r&ZE,u=e.length,s=t.length;if(u!=s&&!(i&&s>u))return!1;var p=o.get(e),y=o.get(t);if(p&&y)return p==t&&y==e;var A=-1,m=!0,h=r&eA?new XE:void 0;for(o.set(e,t),o.set(t,e);++A{l();c();d();var rA=je(),nA=rA.Uint8Array;ll.exports=nA});var dl=F((NM,cl)=>{l();c();d();function aA(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}cl.exports=aA});var on=F((qM,pl)=>{l();c();d();function oA(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}pl.exports=oA});var yl=F((zM,gl)=>{l();c();d();var fl=yt(),hl=Za(),iA=en(),uA=Qa(),sA=dl(),lA=on(),cA=1,dA=2,pA="[object Boolean]",fA="[object Date]",hA="[object Error]",mA="[object Map]",gA="[object Number]",yA="[object RegExp]",bA="[object Set]",EA="[object String]",AA="[object Symbol]",vA="[object ArrayBuffer]",DA="[object DataView]",ml=fl?fl.prototype:void 0,eo=ml?ml.valueOf:void 0;function CA(e,t,r,n,a,o,i){switch(r){case DA:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case vA:return!(e.byteLength!=t.byteLength||!o(new hl(e),new hl(t)));case pA:case fA:case gA:return iA(+e,+t);case hA:return e.name==t.name&&e.message==t.message;case yA:case EA:return e==t+"";case mA:var u=sA;case bA:var s=n&cA;if(u||(u=lA),e.size!=t.size&&!s)return!1;var p=i.get(e);if(p)return p==t;n|=dA,i.set(e,t);var y=uA(u(e),u(t),n,a,o,i);return i.delete(e),y;case AA:if(eo)return eo.call(e)==eo.call(t)}return!1}gl.exports=CA});var un=F((KM,bl)=>{l();c();d();function xA(e,t){for(var r=-1,n=t.length,a=e.length;++r{l();c();d();var SA=Array.isArray;El.exports=SA});var to=F((rq,Al)=>{l();c();d();var FA=un(),wA=Ue();function BA(e,t,r){var n=t(e);return wA(e)?n:FA(n,r(e))}Al.exports=BA});var Dl=F((iq,vl)=>{l();c();d();function TA(e,t){for(var r=-1,n=e==null?0:e.length,a=0,o=[];++r{l();c();d();function _A(){return[]}Cl.exports=_A});var sn=F((hq,Sl)=>{l();c();d();var OA=Dl(),RA=ro(),PA=Object.prototype,IA=PA.propertyIsEnumerable,xl=Object.getOwnPropertySymbols,kA=xl?function(e){return e==null?[]:(e=Object(e),OA(xl(e),function(t){return IA.call(e,t)}))}:RA;Sl.exports=kA});var wl=F((bq,Fl)=>{l();c();d();function NA(e,t){for(var r=-1,n=Array(e);++r{l();c();d();function LA(e){return e!=null&&typeof e=="object"}Bl.exports=LA});var _l=F((Fq,Tl)=>{l();c();d();var jA=bt(),MA=Je(),qA="[object Arguments]";function $A(e){return MA(e)&&jA(e)==qA}Tl.exports=$A});var ln=F((_q,Pl)=>{l();c();d();var Ol=_l(),HA=Je(),Rl=Object.prototype,UA=Rl.hasOwnProperty,zA=Rl.propertyIsEnumerable,GA=Ol(function(){return arguments}())?Ol:function(e){return HA(e)&&UA.call(e,"callee")&&!zA.call(e,"callee")};Pl.exports=GA});var kl=F((Iq,Il)=>{l();c();d();function WA(){return!1}Il.exports=WA});var cn=F((vr,Lt)=>{l();c();d();var VA=je(),KA=kl(),jl=typeof vr=="object"&&vr&&!vr.nodeType&&vr,Nl=jl&&typeof Lt=="object"&&Lt&&!Lt.nodeType&&Lt,YA=Nl&&Nl.exports===jl,Ll=YA?VA.Buffer:void 0,XA=Ll?Ll.isBuffer:void 0,JA=XA||KA;Lt.exports=JA});var dn=F(($q,Ml)=>{l();c();d();var QA=9007199254740991,ZA=/^(?:0|[1-9]\d*)$/;function ev(e,t){var r=typeof e;return t=t??QA,!!t&&(r=="number"||r!="symbol"&&ZA.test(e))&&e>-1&&e%1==0&&e{l();c();d();var tv=9007199254740991;function rv(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=tv}ql.exports=rv});var Hl=F((Yq,$l)=>{l();c();d();var nv=bt(),av=pn(),ov=Je(),iv="[object Arguments]",uv="[object Array]",sv="[object Boolean]",lv="[object Date]",cv="[object Error]",dv="[object Function]",pv="[object Map]",fv="[object Number]",hv="[object Object]",mv="[object RegExp]",gv="[object Set]",yv="[object String]",bv="[object WeakMap]",Ev="[object ArrayBuffer]",Av="[object DataView]",vv="[object Float32Array]",Dv="[object Float64Array]",Cv="[object Int8Array]",xv="[object Int16Array]",Sv="[object Int32Array]",Fv="[object Uint8Array]",wv="[object Uint8ClampedArray]",Bv="[object Uint16Array]",Tv="[object Uint32Array]",ce={};ce[vv]=ce[Dv]=ce[Cv]=ce[xv]=ce[Sv]=ce[Fv]=ce[wv]=ce[Bv]=ce[Tv]=!0;ce[iv]=ce[uv]=ce[Ev]=ce[sv]=ce[Av]=ce[lv]=ce[cv]=ce[dv]=ce[pv]=ce[fv]=ce[hv]=ce[mv]=ce[gv]=ce[yv]=ce[bv]=!1;function _v(e){return ov(e)&&av(e.length)&&!!ce[nv(e)]}$l.exports=_v});var fn=F((Zq,Ul)=>{l();c();d();function Ov(e){return function(t){return e(t)}}Ul.exports=Ov});var hn=F((Dr,jt)=>{l();c();d();var Rv=Wa(),zl=typeof Dr=="object"&&Dr&&!Dr.nodeType&&Dr,Cr=zl&&typeof jt=="object"&&jt&&!jt.nodeType&&jt,Pv=Cr&&Cr.exports===zl,no=Pv&&Rv.process,Iv=function(){try{var e=Cr&&Cr.require&&Cr.require("util").types;return e||no&&no.binding&&no.binding("util")}catch{}}();jt.exports=Iv});var ao=F((i$,Vl)=>{l();c();d();var kv=Hl(),Nv=fn(),Gl=hn(),Wl=Gl&&Gl.isTypedArray,Lv=Wl?Nv(Wl):kv;Vl.exports=Lv});var oo=F((c$,Kl)=>{l();c();d();var jv=wl(),Mv=ln(),qv=Ue(),$v=cn(),Hv=dn(),Uv=ao(),zv=Object.prototype,Gv=zv.hasOwnProperty;function Wv(e,t){var r=qv(e),n=!r&&Mv(e),a=!r&&!n&&$v(e),o=!r&&!n&&!a&&Uv(e),i=r||n||a||o,u=i?jv(e.length,String):[],s=u.length;for(var p in e)(t||Gv.call(e,p))&&!(i&&(p=="length"||a&&(p=="offset"||p=="parent")||o&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||Hv(p,s)))&&u.push(p);return u}Kl.exports=Wv});var mn=F((h$,Yl)=>{l();c();d();var Vv=Object.prototype;function Kv(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Vv;return e===r}Yl.exports=Kv});var io=F((b$,Xl)=>{l();c();d();function Yv(e,t){return function(r){return e(t(r))}}Xl.exports=Yv});var Ql=F((D$,Jl)=>{l();c();d();var Xv=io(),Jv=Xv(Object.keys,Object);Jl.exports=Jv});var ec=F((F$,Zl)=>{l();c();d();var Qv=mn(),Zv=Ql(),eD=Object.prototype,tD=eD.hasOwnProperty;function rD(e){if(!Qv(e))return Zv(e);var t=[];for(var r in Object(e))tD.call(e,r)&&r!="constructor"&&t.push(r);return t}Zl.exports=rD});var uo=F((_$,tc)=>{l();c();d();var nD=Va(),aD=pn();function oD(e){return e!=null&&aD(e.length)&&!nD(e)}tc.exports=oD});var Mt=F((I$,rc)=>{l();c();d();var iD=oo(),uD=ec(),sD=uo();function lD(e){return sD(e)?iD(e):uD(e)}rc.exports=lD});var so=F((j$,nc)=>{l();c();d();var cD=to(),dD=sn(),pD=Mt();function fD(e){return cD(e,pD,dD)}nc.exports=fD});var ic=F((H$,oc)=>{l();c();d();var ac=so(),hD=1,mD=Object.prototype,gD=mD.hasOwnProperty;function yD(e,t,r,n,a,o){var i=r&hD,u=ac(e),s=u.length,p=ac(t),y=p.length;if(s!=y&&!i)return!1;for(var A=s;A--;){var m=u[A];if(!(i?m in t:gD.call(t,m)))return!1}var h=o.get(e),E=o.get(t);if(h&&E)return h==t&&E==e;var b=!0;o.set(e,t),o.set(t,e);for(var S=i;++A{l();c();d();var bD=ot(),ED=je(),AD=bD(ED,"DataView");uc.exports=AD});var cc=F((X$,lc)=>{l();c();d();var vD=ot(),DD=je(),CD=vD(DD,"Promise");lc.exports=CD});var lo=F((eH,dc)=>{l();c();d();var xD=ot(),SD=je(),FD=xD(SD,"Set");dc.exports=FD});var fc=F((aH,pc)=>{l();c();d();var wD=ot(),BD=je(),TD=wD(BD,"WeakMap");pc.exports=TD});var xr=F((sH,Ac)=>{l();c();d();var co=sc(),po=tn(),fo=cc(),ho=lo(),mo=fc(),Ec=bt(),qt=Ya(),hc="[object Map]",_D="[object Object]",mc="[object Promise]",gc="[object Set]",yc="[object WeakMap]",bc="[object DataView]",OD=qt(co),RD=qt(po),PD=qt(fo),ID=qt(ho),kD=qt(mo),Et=Ec;(co&&Et(new co(new ArrayBuffer(1)))!=bc||po&&Et(new po)!=hc||fo&&Et(fo.resolve())!=mc||ho&&Et(new ho)!=gc||mo&&Et(new mo)!=yc)&&(Et=function(e){var t=Ec(e),r=t==_D?e.constructor:void 0,n=r?qt(r):"";if(n)switch(n){case OD:return bc;case RD:return hc;case PD:return mc;case ID:return gc;case kD:return yc}return t});Ac.exports=Et});var Bc=F((pH,wc)=>{l();c();d();var go=nn(),ND=Qa(),LD=yl(),jD=ic(),vc=xr(),Dc=Ue(),Cc=cn(),MD=ao(),qD=1,xc="[object Arguments]",Sc="[object Array]",gn="[object Object]",$D=Object.prototype,Fc=$D.hasOwnProperty;function HD(e,t,r,n,a,o){var i=Dc(e),u=Dc(t),s=i?Sc:vc(e),p=u?Sc:vc(t);s=s==xc?gn:s,p=p==xc?gn:p;var y=s==gn,A=p==gn,m=s==p;if(m&&Cc(e)){if(!Cc(t))return!1;i=!0,y=!1}if(m&&!y)return o||(o=new go),i||MD(e)?ND(e,t,r,n,a,o):LD(e,t,s,r,n,a,o);if(!(r&qD)){var h=y&&Fc.call(e,"__wrapped__"),E=A&&Fc.call(t,"__wrapped__");if(h||E){var b=h?e.value():e,S=E?t.value():t;return o||(o=new go),a(b,S,r,n,o)}}return m?(o||(o=new go),jD(e,t,r,n,a,o)):!1}wc.exports=HD});var yo=F((gH,Oc)=>{l();c();d();var UD=Bc(),Tc=Je();function _c(e,t,r,n,a){return e===t?!0:e==null||t==null||!Tc(e)&&!Tc(t)?e!==e&&t!==t:UD(e,t,r,n,_c,a)}Oc.exports=_c});var Pc=F((AH,Rc)=>{l();c();d();var zD=nn(),GD=yo(),WD=1,VD=2;function KD(e,t,r,n){var a=r.length,o=a,i=!n;if(e==null)return!o;for(e=Object(e);a--;){var u=r[a];if(i&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a{l();c();d();var YD=He();function XD(e){return e===e&&!YD(e)}Ic.exports=XD});var Nc=F((BH,kc)=>{l();c();d();var JD=bo(),QD=Mt();function ZD(e){for(var t=QD(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,JD(a)]}return t}kc.exports=ZD});var Eo=F((RH,Lc)=>{l();c();d();function eC(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}Lc.exports=eC});var Mc=F((NH,jc)=>{l();c();d();var tC=Pc(),rC=Nc(),nC=Eo();function aC(e){var t=rC(e);return t.length==1&&t[0][2]?nC(t[0][0],t[0][1]):function(r){return r===e||tC(r,e,t)}}jc.exports=aC});var Sr=F((qH,qc)=>{l();c();d();var oC=bt(),iC=Je(),uC="[object Symbol]";function sC(e){return typeof e=="symbol"||iC(e)&&oC(e)==uC}qc.exports=sC});var yn=F((zH,$c)=>{l();c();d();var lC=Ue(),cC=Sr(),dC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pC=/^\w*$/;function fC(e,t){if(lC(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||cC(e)?!0:pC.test(e)||!dC.test(e)||t!=null&&e in Object(t)}$c.exports=fC});var zc=F((KH,Uc)=>{l();c();d();var Hc=rn(),hC="Expected a function";function Ao(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(hC);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var i=e.apply(this,n);return r.cache=o.set(a,i)||o,i};return r.cache=new(Ao.Cache||Hc),r}Ao.Cache=Hc;Uc.exports=Ao});var Wc=F((QH,Gc)=>{l();c();d();var mC=zc(),gC=500;function yC(e){var t=mC(e,function(n){return r.size===gC&&r.clear(),n}),r=t.cache;return t}Gc.exports=yC});var Kc=F((rU,Vc)=>{l();c();d();var bC=Wc(),EC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,AC=/\\(\\)?/g,vC=bC(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(EC,function(r,n,a,o){t.push(a?o.replace(AC,"$1"):n||r)}),t});Vc.exports=vC});var ed=F((iU,Zc)=>{l();c();d();var Yc=yt(),DC=Ga(),CC=Ue(),xC=Sr(),SC=1/0,Xc=Yc?Yc.prototype:void 0,Jc=Xc?Xc.toString:void 0;function Qc(e){if(typeof e=="string")return e;if(CC(e))return DC(e,Qc)+"";if(xC(e))return Jc?Jc.call(e):"";var t=e+"";return t=="0"&&1/e==-SC?"-0":t}Zc.exports=Qc});var rd=F((cU,td)=>{l();c();d();var FC=ed();function wC(e){return e==null?"":FC(e)}td.exports=wC});var Fr=F((hU,nd)=>{l();c();d();var BC=Ue(),TC=yn(),_C=Kc(),OC=rd();function RC(e,t){return BC(e)?e:TC(e,t)?[e]:_C(OC(e))}nd.exports=RC});var $t=F((bU,ad)=>{l();c();d();var PC=Sr(),IC=1/0;function kC(e){if(typeof e=="string"||PC(e))return e;var t=e+"";return t=="0"&&1/e==-IC?"-0":t}ad.exports=kC});var bn=F((DU,od)=>{l();c();d();var NC=Fr(),LC=$t();function jC(e,t){t=NC(t,e);for(var r=0,n=t.length;e!=null&&r{l();c();d();var MC=bn();function qC(e,t,r){var n=e==null?void 0:MC(e,t);return n===void 0?r:n}id.exports=qC});var ld=F((_U,sd)=>{l();c();d();function $C(e,t){return e!=null&&t in Object(e)}sd.exports=$C});var dd=F((IU,cd)=>{l();c();d();var HC=Fr(),UC=ln(),zC=Ue(),GC=dn(),WC=pn(),VC=$t();function KC(e,t,r){t=HC(t,e);for(var n=-1,a=t.length,o=!1;++n{l();c();d();var YC=ld(),XC=dd();function JC(e,t){return e!=null&&XC(e,t,YC)}pd.exports=JC});var hd=F((HU,fd)=>{l();c();d();var QC=yo(),ZC=ud(),ex=vo(),tx=yn(),rx=bo(),nx=Eo(),ax=$t(),ox=1,ix=2;function ux(e,t){return tx(e)&&rx(t)?nx(ax(e),t):function(r){var n=ZC(r,e);return n===void 0&&n===t?ex(r,e):QC(t,n,ox|ix)}}fd.exports=ux});var Do=F((WU,md)=>{l();c();d();function sx(e){return e}md.exports=sx});var yd=F((XU,gd)=>{l();c();d();function lx(e){return function(t){return t?.[e]}}gd.exports=lx});var Ed=F((ez,bd)=>{l();c();d();var cx=bn();function dx(e){return function(t){return cx(t,e)}}bd.exports=dx});var vd=F((az,Ad)=>{l();c();d();var px=yd(),fx=Ed(),hx=yn(),mx=$t();function gx(e){return hx(e)?px(mx(e)):fx(e)}Ad.exports=gx});var Co=F((sz,Dd)=>{l();c();d();var yx=Mc(),bx=hd(),Ex=Do(),Ax=Ue(),vx=vd();function Dx(e){return typeof e=="function"?e:e==null?Ex:typeof e=="object"?Ax(e)?bx(e[0],e[1]):yx(e):vx(e)}Dd.exports=Dx});var xo=F((pz,Cd)=>{l();c();d();var Cx=ot(),xx=function(){try{var e=Cx(Object,"defineProperty");return e({},"",{}),e}catch{}}();Cd.exports=xx});var En=F((gz,Sd)=>{l();c();d();var xd=xo();function Sx(e,t,r){t=="__proto__"&&xd?xd(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}Sd.exports=Sx});var An=F((Az,Fd)=>{l();c();d();var Fx=En(),wx=en(),Bx=Object.prototype,Tx=Bx.hasOwnProperty;function _x(e,t,r){var n=e[t];(!(Tx.call(e,t)&&wx(n,r))||r===void 0&&!(t in e))&&Fx(e,t,r)}Fd.exports=_x});var Td=F((xz,Bd)=>{l();c();d();var Ox=An(),Rx=Fr(),Px=dn(),wd=He(),Ix=$t();function kx(e,t,r,n){if(!wd(e))return e;t=Rx(t,e);for(var a=-1,o=t.length,i=o-1,u=e;u!=null&&++a{l();c();d();var Nx=bn(),Lx=Td(),jx=Fr();function Mx(e,t,r){for(var n=-1,a=t.length,o={};++n{l();c();d();var qx=io(),$x=qx(Object.getPrototypeOf,Object);Od.exports=$x});var Fo=F((Nz,Rd)=>{l();c();d();var Hx=un(),Ux=vn(),zx=sn(),Gx=ro(),Wx=Object.getOwnPropertySymbols,Vx=Wx?function(e){for(var t=[];e;)Hx(t,zx(e)),e=Ux(e);return t}:Gx;Rd.exports=Vx});var Id=F((qz,Pd)=>{l();c();d();function Kx(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}Pd.exports=Kx});var Nd=F((zz,kd)=>{l();c();d();var Yx=He(),Xx=mn(),Jx=Id(),Qx=Object.prototype,Zx=Qx.hasOwnProperty;function eS(e){if(!Yx(e))return Jx(e);var t=Xx(e),r=[];for(var n in e)n=="constructor"&&(t||!Zx.call(e,n))||r.push(n);return r}kd.exports=eS});var Dn=F((Kz,Ld)=>{l();c();d();var tS=oo(),rS=Nd(),nS=uo();function aS(e){return nS(e)?tS(e,!0):rS(e)}Ld.exports=aS});var wo=F((Qz,jd)=>{l();c();d();var oS=to(),iS=Fo(),uS=Dn();function sS(e){return oS(e,uS,iS)}jd.exports=sS});var Bo=F((rG,Md)=>{l();c();d();var lS=Ga(),cS=Co(),dS=So(),pS=wo();function fS(e,t){if(e==null)return{};var r=lS(pS(e),function(n){return[n]});return t=cS(t),dS(e,r,function(n,a){return t(n,a[0])})}Md.exports=fS});var Fn=F((gp,jo)=>{l();c();d();(function(e){if(typeof gp=="object"&&typeof jo<"u")jo.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var t;typeof window<"u"||typeof window<"u"?t=window:typeof self<"u"?t=self:t=this,t.memoizerific=e()}})(function(){var e,t,r;return function n(a,o,i){function u(y,A){if(!o[y]){if(!a[y]){var m=typeof sr=="function"&&sr;if(!A&&m)return m(y,!0);if(s)return s(y,!0);var h=new Error("Cannot find module '"+y+"'");throw h.code="MODULE_NOT_FOUND",h}var E=o[y]={exports:{}};a[y][0].call(E.exports,function(b){var S=a[y][1][b];return u(S||b)},E,E.exports,n,a,o,i)}return o[y].exports}for(var s=typeof sr=="function"&&sr,p=0;p=0)return this.lastItem=this.list[s],this.list[s].val},i.prototype.set=function(u,s){var p;return this.lastItem&&this.isEqual(this.lastItem.key,u)?(this.lastItem.val=s,this):(p=this.indexOf(u),p>=0?(this.lastItem=this.list[p],this.list[p].val=s,this):(this.lastItem={key:u,val:s},this.list.push(this.lastItem),this.size++,this))},i.prototype.delete=function(u){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,u)&&(this.lastItem=void 0),s=this.indexOf(u),s>=0)return this.size--,this.list.splice(s,1)[0]},i.prototype.has=function(u){var s;return this.lastItem&&this.isEqual(this.lastItem.key,u)?!0:(s=this.indexOf(u),s>=0?(this.lastItem=this.list[s],!0):!1)},i.prototype.forEach=function(u,s){var p;for(p=0;p0&&(I[B]={cacheItem:b,arg:arguments[B]},j?u(m,I):m.push(I),m.length>y&&s(m.shift())),E.wasMemoized=j,E.numArgs=B+1,x};return E.limit=y,E.wasMemoized=!1,E.cache=A,E.lru=m,E}};function u(y,A){var m=y.length,h=A.length,E,b,S;for(b=0;b=0&&(m=y[E],h=m.cacheItem.get(m.arg),!h||!h.size);E--)m.cacheItem.delete(m.arg)}function p(y,A){return y===A||y!==y&&A!==A}},{"map-or-similar":1}]},{},[3])(3)})});var bp=F((xG,yp)=>{l();c();d();function wF(e,t,r,n){for(var a=e.length,o=r+(n?1:-1);n?o--:++o{l();c();d();function BF(e){return e!==e}Ep.exports=BF});var Dp=F((RG,vp)=>{l();c();d();function TF(e,t,r){for(var n=r-1,a=e.length;++n{l();c();d();var _F=bp(),OF=Ap(),RF=Dp();function PF(e,t,r){return t===t?RF(e,t,r):_F(e,OF,r)}Cp.exports=PF});var Fp=F((qG,Sp)=>{l();c();d();var IF=xp();function kF(e,t){var r=e==null?0:e.length;return!!r&&IF(e,t,0)>-1}Sp.exports=kF});var Bp=F((zG,wp)=>{l();c();d();function NF(e,t,r){for(var n=-1,a=e==null?0:e.length;++n{l();c();d();function LF(){}Tp.exports=LF});var Rp=F((QG,Op)=>{l();c();d();var Mo=lo(),jF=_p(),MF=on(),qF=1/0,$F=Mo&&1/MF(new Mo([,-0]))[1]==qF?function(e){return new Mo(e)}:jF;Op.exports=$F});var Ip=F((rW,Pp)=>{l();c();d();var HF=Xa(),UF=Fp(),zF=Bp(),GF=Ja(),WF=Rp(),VF=on(),KF=200;function YF(e,t,r){var n=-1,a=UF,o=e.length,i=!0,u=[],s=u;if(r)i=!1,a=zF;else if(o>=KF){var p=t?null:WF(e);if(p)return VF(p);i=!1,a=GF,s=new HF}else s=t?[]:u;e:for(;++n{l();c();d();var XF=Ip();function JF(e){return e&&e.length?XF(e):[]}kp.exports=JF});var jp=F((cW,Lp)=>{l();c();d();function QF(e,t){for(var r=-1,n=e==null?0:e.length;++r{l();c();d();var ZF=An(),ew=En();function tw(e,t,r,n){var a=!r;r||(r={});for(var o=-1,i=t.length;++o{l();c();d();var rw=Br(),nw=Mt();function aw(e,t){return e&&rw(t,nw(t),e)}qp.exports=aw});var Up=F((DW,Hp)=>{l();c();d();var ow=Br(),iw=Dn();function uw(e,t){return e&&ow(t,iw(t),e)}Hp.exports=uw});var Kp=F((Tr,Ut)=>{l();c();d();var sw=je(),Vp=typeof Tr=="object"&&Tr&&!Tr.nodeType&&Tr,zp=Vp&&typeof Ut=="object"&&Ut&&!Ut.nodeType&&Ut,lw=zp&&zp.exports===Vp,Gp=lw?sw.Buffer:void 0,Wp=Gp?Gp.allocUnsafe:void 0;function cw(e,t){if(t)return e.slice();var r=e.length,n=Wp?Wp(r):new e.constructor(r);return e.copy(n),n}Ut.exports=cw});var Xp=F((TW,Yp)=>{l();c();d();function dw(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r{l();c();d();var pw=Br(),fw=sn();function hw(e,t){return pw(e,fw(e),t)}Jp.exports=hw});var ef=F((LW,Zp)=>{l();c();d();var mw=Br(),gw=Fo();function yw(e,t){return mw(e,gw(e),t)}Zp.exports=yw});var rf=F(($W,tf)=>{l();c();d();var bw=Object.prototype,Ew=bw.hasOwnProperty;function Aw(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Ew.call(e,"index")&&(r.index=e.index,r.input=e.input),r}tf.exports=Aw});var wn=F((GW,af)=>{l();c();d();var nf=Za();function vw(e){var t=new e.constructor(e.byteLength);return new nf(t).set(new nf(e)),t}af.exports=vw});var uf=F((YW,of)=>{l();c();d();var Dw=wn();function Cw(e,t){var r=t?Dw(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}of.exports=Cw});var lf=F((ZW,sf)=>{l();c();d();var xw=/\w*$/;function Sw(e){var t=new e.constructor(e.source,xw.exec(e));return t.lastIndex=e.lastIndex,t}sf.exports=Sw});var hf=F((nV,ff)=>{l();c();d();var cf=yt(),df=cf?cf.prototype:void 0,pf=df?df.valueOf:void 0;function Fw(e){return pf?Object(pf.call(e)):{}}ff.exports=Fw});var gf=F((uV,mf)=>{l();c();d();var ww=wn();function Bw(e,t){var r=t?ww(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}mf.exports=Bw});var bf=F((dV,yf)=>{l();c();d();var Tw=wn(),_w=uf(),Ow=lf(),Rw=hf(),Pw=gf(),Iw="[object Boolean]",kw="[object Date]",Nw="[object Map]",Lw="[object Number]",jw="[object RegExp]",Mw="[object Set]",qw="[object String]",$w="[object Symbol]",Hw="[object ArrayBuffer]",Uw="[object DataView]",zw="[object Float32Array]",Gw="[object Float64Array]",Ww="[object Int8Array]",Vw="[object Int16Array]",Kw="[object Int32Array]",Yw="[object Uint8Array]",Xw="[object Uint8ClampedArray]",Jw="[object Uint16Array]",Qw="[object Uint32Array]";function Zw(e,t,r){var n=e.constructor;switch(t){case Hw:return Tw(e);case Iw:case kw:return new n(+e);case Uw:return _w(e,r);case zw:case Gw:case Ww:case Vw:case Kw:case Yw:case Xw:case Jw:case Qw:return Pw(e,r);case Nw:return new n;case Lw:case qw:return new n(e);case jw:return Ow(e);case Mw:return new n;case $w:return Rw(e)}}yf.exports=Zw});var vf=F((mV,Af)=>{l();c();d();var e5=He(),Ef=Object.create,t5=function(){function e(){}return function(t){if(!e5(t))return{};if(Ef)return Ef(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();Af.exports=t5});var Cf=F((EV,Df)=>{l();c();d();var r5=vf(),n5=vn(),a5=mn();function o5(e){return typeof e.constructor=="function"&&!a5(e)?r5(n5(e)):{}}Df.exports=o5});var Sf=F((CV,xf)=>{l();c();d();var i5=xr(),u5=Je(),s5="[object Map]";function l5(e){return u5(e)&&i5(e)==s5}xf.exports=l5});var Tf=F((wV,Bf)=>{l();c();d();var c5=Sf(),d5=fn(),Ff=hn(),wf=Ff&&Ff.isMap,p5=wf?d5(wf):c5;Bf.exports=p5});var Of=F((OV,_f)=>{l();c();d();var f5=xr(),h5=Je(),m5="[object Set]";function g5(e){return h5(e)&&f5(e)==m5}_f.exports=g5});var kf=F((kV,If)=>{l();c();d();var y5=Of(),b5=fn(),Rf=hn(),Pf=Rf&&Rf.isSet,E5=Pf?b5(Pf):y5;If.exports=E5});var qf=F((MV,Mf)=>{l();c();d();var A5=nn(),v5=jp(),D5=An(),C5=$p(),x5=Up(),S5=Kp(),F5=Xp(),w5=Qp(),B5=ef(),T5=so(),_5=wo(),O5=xr(),R5=rf(),P5=bf(),I5=Cf(),k5=Ue(),N5=cn(),L5=Tf(),j5=He(),M5=kf(),q5=Mt(),$5=Dn(),H5=1,U5=2,z5=4,Nf="[object Arguments]",G5="[object Array]",W5="[object Boolean]",V5="[object Date]",K5="[object Error]",Lf="[object Function]",Y5="[object GeneratorFunction]",X5="[object Map]",J5="[object Number]",jf="[object Object]",Q5="[object RegExp]",Z5="[object Set]",e3="[object String]",t3="[object Symbol]",r3="[object WeakMap]",n3="[object ArrayBuffer]",a3="[object DataView]",o3="[object Float32Array]",i3="[object Float64Array]",u3="[object Int8Array]",s3="[object Int16Array]",l3="[object Int32Array]",c3="[object Uint8Array]",d3="[object Uint8ClampedArray]",p3="[object Uint16Array]",f3="[object Uint32Array]",le={};le[Nf]=le[G5]=le[n3]=le[a3]=le[W5]=le[V5]=le[o3]=le[i3]=le[u3]=le[s3]=le[l3]=le[X5]=le[J5]=le[jf]=le[Q5]=le[Z5]=le[e3]=le[t3]=le[c3]=le[d3]=le[p3]=le[f3]=!0;le[K5]=le[Lf]=le[r3]=!1;function Bn(e,t,r,n,a,o){var i,u=t&H5,s=t&U5,p=t&z5;if(r&&(i=a?r(e,n,a,o):r(e)),i!==void 0)return i;if(!j5(e))return e;var y=k5(e);if(y){if(i=R5(e),!u)return F5(e,i)}else{var A=O5(e),m=A==Lf||A==Y5;if(N5(e))return S5(e,u);if(A==jf||A==Nf||m&&!a){if(i=s||m?{}:I5(e),!u)return s?B5(e,x5(i,e)):w5(e,C5(i,e))}else{if(!le[A])return a?e:{};i=P5(e,A,u)}}o||(o=new A5);var h=o.get(e);if(h)return h;o.set(e,i),M5(e)?e.forEach(function(S){i.add(Bn(S,t,r,S,e,o))}):L5(e)&&e.forEach(function(S,x){i.set(x,Bn(S,t,r,x,e,o))});var E=p?s?_5:T5:s?$5:q5,b=y?void 0:E(e);return v5(b||e,function(S,x){b&&(x=S,S=e[x]),D5(i,x,Bn(S,t,r,x,e,o))}),i}Mf.exports=Bn});var Hf=F((UV,$f)=>{l();c();d();var h3=qf(),m3=1,g3=4;function y3(e){return h3(e,m3|g3)}$f.exports=y3});var Jf=F((_K,Xf)=>{l();c();d();function Y3(e){return function(t,r,n){for(var a=-1,o=Object(t),i=n(t),u=i.length;u--;){var s=i[e?u:++a];if(r(o[s],s,o)===!1)break}return t}}Xf.exports=Y3});var Zf=F((IK,Qf)=>{l();c();d();var X3=Jf(),J3=X3();Qf.exports=J3});var t0=F((jK,e0)=>{l();c();d();var Q3=Zf(),Z3=Mt();function eB(e,t){return e&&Q3(e,t,Z3)}e0.exports=eB});var In=F((HK,r0)=>{l();c();d();var tB=En(),rB=t0(),nB=Co();function aB(e,t){var r={};return t=nB(t,3),rB(e,function(n,a,o){tB(r,a,t(n,a,o))}),r}r0.exports=aB});var a0=F((WK,n0)=>{l();c();d();var oB=So(),iB=vo();function uB(e,t){return oB(e,t,function(r,n){return iB(e,n)})}n0.exports=uB});var s0=F((XK,u0)=>{l();c();d();var o0=yt(),sB=ln(),lB=Ue(),i0=o0?o0.isConcatSpreadable:void 0;function cB(e){return lB(e)||sB(e)||!!(i0&&e&&e[i0])}u0.exports=cB});var d0=F((eY,c0)=>{l();c();d();var dB=un(),pB=s0();function l0(e,t,r,n,a){var o=-1,i=e.length;for(r||(r=pB),a||(a=[]);++o0&&r(u)?t>1?l0(u,t-1,r,n,a):dB(a,u):n||(a[a.length]=u)}return a}c0.exports=l0});var f0=F((aY,p0)=>{l();c();d();var fB=d0();function hB(e){var t=e==null?0:e.length;return t?fB(e,1):[]}p0.exports=hB});var m0=F((sY,h0)=>{l();c();d();function mB(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}h0.exports=mB});var b0=F((pY,y0)=>{l();c();d();var gB=m0(),g0=Math.max;function yB(e,t,r){return t=g0(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,o=g0(n.length-t,0),i=Array(o);++a{l();c();d();function bB(e){return function(){return e}}E0.exports=bB});var C0=F((AY,D0)=>{l();c();d();var EB=A0(),v0=xo(),AB=Do(),vB=v0?function(e,t){return v0(e,"toString",{configurable:!0,enumerable:!1,value:EB(t),writable:!0})}:AB;D0.exports=vB});var S0=F((xY,x0)=>{l();c();d();var DB=800,CB=16,xB=Date.now;function SB(e){var t=0,r=0;return function(){var n=xB(),a=CB-(n-r);if(r=n,a>0){if(++t>=DB)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}x0.exports=SB});var w0=F((BY,F0)=>{l();c();d();var FB=C0(),wB=S0(),BB=wB(FB);F0.exports=BB});var T0=F((RY,B0)=>{l();c();d();var TB=f0(),_B=b0(),OB=w0();function RB(e){return OB(_B(e,void 0,TB),e+"")}B0.exports=RB});var O0=F((NY,_0)=>{l();c();d();var PB=a0(),IB=T0(),kB=IB(function(e,t){return e==null?{}:PB(e,t)});_0.exports=kB});var Nn=F((qY,L0)=>{"use strict";l();c();d();function kn(e){return Array.prototype.slice.apply(e)}var k0="pending",R0="resolved",P0="rejected";function ae(e){this.status=k0,this._continuations=[],this._parent=null,this._paused=!1,e&&e.call(this,this._continueWith.bind(this),this._failWith.bind(this))}function _r(e){return e&&typeof e.then=="function"}function NB(e){return e}ae.prototype={then:function(e,t){var r=ae.unresolved()._setParent(this);if(this._isRejected()){if(this._paused)return this._continuations.push({promise:r,nextFn:e,catchFn:t}),r;if(t)try{var n=t(this._error);return _r(n)?(this._chainPromiseData(n,r),r):ae.resolve(n)._setParent(this)}catch(a){return ae.reject(a)._setParent(this)}return ae.reject(this._error)._setParent(this)}return this._continuations.push({promise:r,nextFn:e,catchFn:t}),this._runResolutions(),r},catch:function(e){if(this._isResolved())return ae.resolve(this._data)._setParent(this);var t=ae.unresolved()._setParent(this);return this._continuations.push({promise:t,catchFn:e}),this._runRejections(),t},finally:function(e){var t=!1;function r(n,a){if(!t){t=!0,e||(e=NB);var o=e(n);return _r(o)?o.then(function(){if(a)throw a;return n}):n}}return this.then(function(n){return r(n)}).catch(function(n){return r(null,n)})},pause:function(){return this._paused=!0,this},resume:function(){var e=this._findFirstPaused();return e&&(e._paused=!1,e._runResolutions(),e._runRejections()),this},_findAncestry:function(){return this._continuations.reduce(function(e,t){if(t.promise){var r={promise:t.promise,children:t.promise._findAncestry()};e.push(r)}return e},[])},_setParent:function(e){if(this._parent)throw new Error("parent already set");return this._parent=e,this},_continueWith:function(e){var t=this._findFirstPending();t&&(t._data=e,t._setResolved())},_findFirstPending:function(){return this._findFirstAncestor(function(e){return e._isPending&&e._isPending()})},_findFirstPaused:function(){return this._findFirstAncestor(function(e){return e._paused})},_findFirstAncestor:function(e){for(var t=this,r;t;)e(t)&&(r=t),t=t._parent;return r},_failWith:function(e){var t=this._findFirstPending();t&&(t._error=e,t._setRejected())},_takeContinuations:function(){return this._continuations.splice(0,this._continuations.length)},_runRejections:function(){if(!(this._paused||!this._isRejected())){var e=this._error,t=this._takeContinuations(),r=this;t.forEach(function(n){if(n.catchFn)try{var a=n.catchFn(e);r._handleUserFunctionResult(a,n.promise)}catch(o){n.promise.reject(o)}else n.promise.reject(e)})}},_runResolutions:function(){if(!(this._paused||!this._isResolved()||this._isPending())){var e=this._takeContinuations(),t=this._data,r=this;if(e.forEach(function(n){if(n.nextFn)try{var a=n.nextFn(t);r._handleUserFunctionResult(a,n.promise)}catch(o){r._handleResolutionError(o,n)}else n.promise&&n.promise.resolve(t)}),_r(this._data))return this._handleWhenResolvedDataIsPromise(this._data)}},_handleResolutionError:function(e,t){if(this._setRejected(),t.catchFn)try{t.catchFn(e);return}catch(r){e=r}t.promise&&t.promise.reject(e)},_handleWhenResolvedDataIsPromise:function(e){var t=this;return e.then(function(r){t._data=r,t._runResolutions()}).catch(function(r){t._error=r,t._setRejected(),t._runRejections()})},_handleUserFunctionResult:function(e,t){_r(e)?this._chainPromiseData(e,t):t.resolve(e)},_chainPromiseData:function(e,t){e.then(function(r){t.resolve(r)}).catch(function(r){t.reject(r)})},_setResolved:function(){this.status=R0,this._paused||this._runResolutions()},_setRejected:function(){this.status=P0,this._paused||this._runRejections()},_isPending:function(){return this.status===k0},_isResolved:function(){return this.status===R0},_isRejected:function(){return this.status===P0}};ae.resolve=function(e){return new ae(function(t,r){_r(e)?e.then(function(n){t(n)}).catch(function(n){r(n)}):t(e)})};ae.reject=function(e){return new ae(function(t,r){r(e)})};ae.unresolved=function(){return new ae(function(e,t){this.resolve=e,this.reject=t})};ae.all=function(){var e=kn(arguments);return Array.isArray(e[0])&&(e=e[0]),e.length?new ae(function(t,r){var n=[],a=0,o=function(){a===e.length&&t(n)},i=!1,u=function(s){i||(i=!0,r(s))};e.forEach(function(s,p){ae.resolve(s).then(function(y){n[p]=y,a+=1,o()}).catch(function(y){u(y)})})}):ae.resolve([])};function I0(e){return typeof window<"u"&&"AggregateError"in window?new window.AggregateError(e):{errors:e}}ae.any=function(){var e=kn(arguments);return Array.isArray(e[0])&&(e=e[0]),e.length?new ae(function(t,r){var n=[],a=0,o=function(){a===e.length&&r(I0(n))},i=!1,u=function(s){i||(i=!0,t(s))};e.forEach(function(s,p){ae.resolve(s).then(function(y){u(y)}).catch(function(y){n[p]=y,a+=1,o()})})}):ae.reject(I0([]))};ae.allSettled=function(){var e=kn(arguments);return Array.isArray(e[0])&&(e=e[0]),e.length?new ae(function(t){var r=[],n=0,a=function(){n+=1,n===e.length&&t(r)};e.forEach(function(o,i){ae.resolve(o).then(function(u){r[i]={status:"fulfilled",value:u},a()}).catch(function(u){r[i]={status:"rejected",reason:u},a()})})}):ae.resolve([])};if(Promise===ae)throw new Error("Please use SynchronousPromise.installGlobally() to install globally");var N0=Promise;ae.installGlobally=function(e){if(Promise===ae)return e;var t=LB(e);return Promise=ae,t};ae.uninstallGlobally=function(){Promise===ae&&(Promise=N0)};function LB(e){if(typeof e>"u"||e.__patched)return e;var t=e;return e=function(){var r=N0;t.apply(this,kn(arguments))},e.__patched=!0,e}L0.exports={SynchronousPromise:ae}});var Uo=F((lX,M0)=>{l();c();d();var MB=bt(),qB=vn(),$B=Je(),HB="[object Object]",UB=Function.prototype,zB=Object.prototype,j0=UB.toString,GB=zB.hasOwnProperty,WB=j0.call(Object);function VB(e){if(!$B(e)||MB(e)!=HB)return!1;var t=qB(e);if(t===null)return!0;var r=GB.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&j0.call(r)==WB}M0.exports=VB});var $0=F((fX,q0)=>{l();c();d();q0.exports=KB;function KB(e,t){if(zo("noDeprecation"))return e;var r=!1;function n(){if(!r){if(zo("throwDeprecation"))throw new Error(t);zo("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function zo(e){try{if(!window.localStorage)return!1}catch{return!1}var t=window.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}});var K0=F((NX,V0)=>{"use strict";l();c();d();V0.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;t[r]=a;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(t,r);if(i.value!==a||i.enumerable!==!0)return!1}return!0}});var J0=F((qX,X0)=>{"use strict";l();c();d();var Y0=typeof Symbol<"u"&&Symbol,cT=K0();X0.exports=function(){return typeof Y0!="function"||typeof Symbol!="function"||typeof Y0("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:cT()}});var eh=F((zX,Z0)=>{"use strict";l();c();d();var Q0={foo:{}},dT=Object;Z0.exports=function(){return{__proto__:Q0}.foo===Q0.foo&&!({__proto__:null}instanceof dT)}});var nh=F((KX,rh)=>{"use strict";l();c();d();var pT="Function.prototype.bind called on incompatible ",fT=Object.prototype.toString,hT=Math.max,mT="[object Function]",th=function(t,r){for(var n=[],a=0;a{"use strict";l();c();d();var bT=nh();ah.exports=Function.prototype.bind||bT});var ih=F((rJ,oh)=>{"use strict";l();c();d();var ET=Function.prototype.call,AT=Object.prototype.hasOwnProperty,vT=$n();oh.exports=vT.call(ET,AT)});var st=F((iJ,dh)=>{"use strict";l();c();d();var te,Kt=SyntaxError,ch=Function,Vt=TypeError,Ko=function(e){try{return ch('"use strict"; return ('+e+").constructor;")()}catch{}},Dt=Object.getOwnPropertyDescriptor;if(Dt)try{Dt({},"")}catch{Dt=null}var Yo=function(){throw new Vt},DT=Dt?function(){try{return arguments.callee,Yo}catch{try{return Dt(arguments,"callee").get}catch{return Yo}}}():Yo,Gt=J0()(),CT=eh()(),Ae=Object.getPrototypeOf||(CT?function(e){return e.__proto__}:null),Wt={},xT=typeof Uint8Array>"u"||!Ae?te:Ae(Uint8Array),Ct={"%AggregateError%":typeof AggregateError>"u"?te:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?te:ArrayBuffer,"%ArrayIteratorPrototype%":Gt&&Ae?Ae([][Symbol.iterator]()):te,"%AsyncFromSyncIteratorPrototype%":te,"%AsyncFunction%":Wt,"%AsyncGenerator%":Wt,"%AsyncGeneratorFunction%":Wt,"%AsyncIteratorPrototype%":Wt,"%Atomics%":typeof Atomics>"u"?te:Atomics,"%BigInt%":typeof BigInt>"u"?te:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?te:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?te:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?te:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?te:Float32Array,"%Float64Array%":typeof Float64Array>"u"?te:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?te:FinalizationRegistry,"%Function%":ch,"%GeneratorFunction%":Wt,"%Int8Array%":typeof Int8Array>"u"?te:Int8Array,"%Int16Array%":typeof Int16Array>"u"?te:Int16Array,"%Int32Array%":typeof Int32Array>"u"?te:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Gt&&Ae?Ae(Ae([][Symbol.iterator]())):te,"%JSON%":typeof JSON=="object"?JSON:te,"%Map%":typeof Map>"u"?te:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Gt||!Ae?te:Ae(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?te:Promise,"%Proxy%":typeof Proxy>"u"?te:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?te:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?te:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Gt||!Ae?te:Ae(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?te:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Gt&&Ae?Ae(""[Symbol.iterator]()):te,"%Symbol%":Gt?Symbol:te,"%SyntaxError%":Kt,"%ThrowTypeError%":DT,"%TypedArray%":xT,"%TypeError%":Vt,"%Uint8Array%":typeof Uint8Array>"u"?te:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?te:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?te:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?te:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?te:WeakMap,"%WeakRef%":typeof WeakRef>"u"?te:WeakRef,"%WeakSet%":typeof WeakSet>"u"?te:WeakSet};if(Ae)try{null.error}catch(e){uh=Ae(Ae(e)),Ct["%Error.prototype%"]=uh}var uh,ST=function e(t){var r;if(t==="%AsyncFunction%")r=Ko("async function () {}");else if(t==="%GeneratorFunction%")r=Ko("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Ko("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&Ae&&(r=Ae(a.prototype))}return Ct[t]=r,r},sh={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},kr=$n(),Hn=ih(),FT=kr.call(Function.call,Array.prototype.concat),wT=kr.call(Function.apply,Array.prototype.splice),lh=kr.call(Function.call,String.prototype.replace),Un=kr.call(Function.call,String.prototype.slice),BT=kr.call(Function.call,RegExp.prototype.exec),TT=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_T=/\\(\\)?/g,OT=function(t){var r=Un(t,0,1),n=Un(t,-1);if(r==="%"&&n!=="%")throw new Kt("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Kt("invalid intrinsic syntax, expected opening `%`");var a=[];return lh(t,TT,function(o,i,u,s){a[a.length]=u?lh(s,_T,"$1"):i||o}),a},RT=function(t,r){var n=t,a;if(Hn(sh,n)&&(a=sh[n],n="%"+a[0]+"%"),Hn(Ct,n)){var o=Ct[n];if(o===Wt&&(o=ST(n)),typeof o>"u"&&!r)throw new Vt("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new Kt("intrinsic "+t+" does not exist!")};dh.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new Vt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Vt('"allowMissing" argument must be a boolean');if(BT(/^%?[^%]*%?$/,t)===null)throw new Kt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=OT(t),a=n.length>0?n[0]:"",o=RT("%"+a+"%",r),i=o.name,u=o.value,s=!1,p=o.alias;p&&(a=p[0],wT(n,FT([0,1],p)));for(var y=1,A=!0;y=n.length){var b=Dt(u,m);A=!!b,A&&"get"in b&&!("originalValue"in b.get)?u=b.get:u=u[m]}else A=Hn(u,m),u=u[m];A&&!s&&(Ct[i]=u)}}return u}});var Qo=F((cJ,ph)=>{"use strict";l();c();d();var PT=st(),Xo=PT("%Object.defineProperty%",!0),Jo=function(){if(Xo)try{return Xo({},"a",{value:1}),!0}catch{return!1}return!1};Jo.hasArrayLengthDefineBug=function(){if(!Jo())return null;try{return Xo([],"length",{value:1}).length!==1}catch{return!0}};ph.exports=Jo});var Zo=F((hJ,fh)=>{"use strict";l();c();d();var IT=st(),zn=IT("%Object.getOwnPropertyDescriptor%",!0);if(zn)try{zn([],"length")}catch{zn=null}fh.exports=zn});var gh=F((bJ,mh)=>{"use strict";l();c();d();var kT=Qo()(),ei=st(),Nr=kT&&ei("%Object.defineProperty%",!0);if(Nr)try{Nr({},"a",{value:1})}catch{Nr=!1}var NT=ei("%SyntaxError%"),Yt=ei("%TypeError%"),hh=Zo();mh.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new Yt("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new Yt("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Yt("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Yt("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Yt("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Yt("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,u=arguments.length>6?arguments[6]:!1,s=!!hh&&hh(t,r);if(Nr)Nr(t,r,{configurable:i===null&&s?s.configurable:!i,enumerable:a===null&&s?s.enumerable:!a,value:n,writable:o===null&&s?s.writable:!o});else if(u||!a&&!o&&!i)t[r]=n;else throw new NT("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Dh=F((DJ,vh)=>{"use strict";l();c();d();var Ah=st(),yh=gh(),LT=Qo()(),bh=Zo(),Eh=Ah("%TypeError%"),jT=Ah("%Math.floor%");vh.exports=function(t,r){if(typeof t!="function")throw new Eh("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||jT(r)!==r)throw new Eh("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],a=!0,o=!0;if("length"in t&&bh){var i=bh(t,"length");i&&!i.configurable&&(a=!1),i&&!i.writable&&(o=!1)}return(a||o||!n)&&(LT?yh(t,"length",r,!0,!0):yh(t,"length",r)),t}});var wh=F((FJ,Gn)=>{"use strict";l();c();d();var ti=$n(),Xt=st(),MT=Dh(),qT=Xt("%TypeError%"),xh=Xt("%Function.prototype.apply%"),Sh=Xt("%Function.prototype.call%"),Fh=Xt("%Reflect.apply%",!0)||ti.call(Sh,xh),Lr=Xt("%Object.defineProperty%",!0),$T=Xt("%Math.max%");if(Lr)try{Lr({},"a",{value:1})}catch{Lr=null}Gn.exports=function(t){if(typeof t!="function")throw new qT("a function is required");var r=Fh(ti,Sh,arguments);return MT(r,1+$T(0,t.length-(arguments.length-1)),!0)};var Ch=function(){return Fh(ti,xh,arguments)};Lr?Lr(Gn.exports,"apply",{value:Ch}):Gn.exports.apply=Ch});var Oh=F((_J,_h)=>{"use strict";l();c();d();var Bh=st(),Th=wh(),HT=Th(Bh("String.prototype.indexOf"));_h.exports=function(t,r){var n=Bh(t,!!r);return typeof n=="function"&&HT(t,".prototype.")>-1?Th(n):n}});var Rh=F(()=>{l();c();d()});var Qh=F((MJ,Jh)=>{l();c();d();var di=typeof Map=="function"&&Map.prototype,ri=Object.getOwnPropertyDescriptor&&di?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Vn=di&&ri&&typeof ri.get=="function"?ri.get:null,Ph=di&&Map.prototype.forEach,pi=typeof Set=="function"&&Set.prototype,ni=Object.getOwnPropertyDescriptor&&pi?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Kn=pi&&ni&&typeof ni.get=="function"?ni.get:null,Ih=pi&&Set.prototype.forEach,UT=typeof WeakMap=="function"&&WeakMap.prototype,Mr=UT?WeakMap.prototype.has:null,zT=typeof WeakSet=="function"&&WeakSet.prototype,qr=zT?WeakSet.prototype.has:null,GT=typeof WeakRef=="function"&&WeakRef.prototype,kh=GT?WeakRef.prototype.deref:null,WT=Boolean.prototype.valueOf,VT=Object.prototype.toString,KT=Function.prototype.toString,YT=String.prototype.match,fi=String.prototype.slice,ct=String.prototype.replace,XT=String.prototype.toUpperCase,Nh=String.prototype.toLowerCase,Gh=RegExp.prototype.test,Lh=Array.prototype.concat,We=Array.prototype.join,JT=Array.prototype.slice,jh=Math.floor,ii=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ai=Object.getOwnPropertySymbols,ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Jt=typeof Symbol=="function"&&typeof Symbol.iterator=="object",xe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Jt||"symbol")?Symbol.toStringTag:null,Wh=Object.prototype.propertyIsEnumerable,Mh=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function qh(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Gh.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-jh(-e):jh(e);if(n!==e){var a=String(n),o=fi.call(t,a.length+1);return ct.call(a,r,"$&_")+"."+ct.call(ct.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ct.call(t,r,"$&_")}var si=Rh(),$h=si.custom,Hh=Kh($h)?$h:null;Jh.exports=function e(t,r,n,a){var o=r||{};if(lt(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(lt(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=lt(o,"customInspect")?o.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(lt(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(lt(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Xh(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var s=String(t);return u?qh(t,s):s}if(typeof t=="bigint"){var p=String(t)+"n";return u?qh(t,p):p}var y=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=y&&y>0&&typeof t=="object")return li(t)?"[Array]":"[Object]";var A=m_(o,n);if(typeof a>"u")a=[];else if(Yh(a,t)>=0)return"[Circular]";function m(Y,R,_){if(R&&(a=JT.call(a),a.push(R)),_){var q={depth:o.depth};return lt(o,"quoteStyle")&&(q.quoteStyle=o.quoteStyle),e(Y,q,n+1,a)}return e(Y,o,n+1,a)}if(typeof t=="function"&&!Uh(t)){var h=i_(t),E=Wn(t,m);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(E.length>0?" { "+We.call(E,", ")+" }":"")}if(Kh(t)){var b=Jt?ct.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):ui.call(t);return typeof t=="object"&&!Jt?jr(b):b}if(p_(t)){for(var S="<"+Nh.call(String(t.nodeName)),x=t.attributes||[],B=0;B",S}if(li(t)){if(t.length===0)return"[]";var I=Wn(t,m);return A&&!h_(I)?"["+ci(I,A)+"]":"[ "+We.call(I,", ")+" ]"}if(e_(t)){var j=Wn(t,m);return!("cause"in Error.prototype)&&"cause"in t&&!Wh.call(t,"cause")?"{ ["+String(t)+"] "+We.call(Lh.call("[cause]: "+m(t.cause),j),", ")+" }":j.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+We.call(j,", ")+" }"}if(typeof t=="object"&&i){if(Hh&&typeof t[Hh]=="function"&&si)return si(t,{depth:y-n});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(u_(t)){var w=[];return Ph&&Ph.call(t,function(Y,R){w.push(m(R,t,!0)+" => "+m(Y,t))}),zh("Map",Vn.call(t),w,A)}if(c_(t)){var k=[];return Ih&&Ih.call(t,function(Y){k.push(m(Y,t))}),zh("Set",Kn.call(t),k,A)}if(s_(t))return oi("WeakMap");if(d_(t))return oi("WeakSet");if(l_(t))return oi("WeakRef");if(r_(t))return jr(m(Number(t)));if(a_(t))return jr(m(ii.call(t)));if(n_(t))return jr(WT.call(t));if(t_(t))return jr(m(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(t===window)return"{ [object globalThis] }";if(!ZT(t)&&!Uh(t)){var N=Wn(t,m),H=Mh?Mh(t)===Object.prototype:t instanceof Object||t.constructor===Object,V=t instanceof Object?"":"null prototype",U=!H&&xe&&Object(t)===t&&xe in t?fi.call(dt(t),8,-1):V?"Object":"",ee=H||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Q=ee+(U||V?"["+We.call(Lh.call([],U||[],V||[]),": ")+"] ":"");return N.length===0?Q+"{}":A?Q+"{"+ci(N,A)+"}":Q+"{ "+We.call(N,", ")+" }"}return String(t)};function Vh(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function QT(e){return ct.call(String(e),/"/g,""")}function li(e){return dt(e)==="[object Array]"&&(!xe||!(typeof e=="object"&&xe in e))}function ZT(e){return dt(e)==="[object Date]"&&(!xe||!(typeof e=="object"&&xe in e))}function Uh(e){return dt(e)==="[object RegExp]"&&(!xe||!(typeof e=="object"&&xe in e))}function e_(e){return dt(e)==="[object Error]"&&(!xe||!(typeof e=="object"&&xe in e))}function t_(e){return dt(e)==="[object String]"&&(!xe||!(typeof e=="object"&&xe in e))}function r_(e){return dt(e)==="[object Number]"&&(!xe||!(typeof e=="object"&&xe in e))}function n_(e){return dt(e)==="[object Boolean]"&&(!xe||!(typeof e=="object"&&xe in e))}function Kh(e){if(Jt)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!ui)return!1;try{return ui.call(e),!0}catch{}return!1}function a_(e){if(!e||typeof e!="object"||!ii)return!1;try{return ii.call(e),!0}catch{}return!1}var o_=Object.prototype.hasOwnProperty||function(e){return e in this};function lt(e,t){return o_.call(e,t)}function dt(e){return VT.call(e)}function i_(e){if(e.name)return e.name;var t=YT.call(KT.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Yh(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Xh(fi.call(e,0,t.maxStringLength),t)+n}var a=ct.call(ct.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,f_);return Vh(a,"single",t)}function f_(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+XT.call(t.toString(16))}function jr(e){return"Object("+e+")"}function oi(e){return e+" { ? }"}function zh(e,t,r,n){var a=n?ci(r,n):We.call(r,", ");return e+" ("+t+") {"+a+"}"}function h_(e){for(var t=0;t=0)return!1;return!0}function m_(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=We.call(Array(e.indent+1)," ");else return null;return{base:r,prev:We.call(Array(t+1),r)}}function ci(e,t){if(e.length===0)return"";var r=` -`+t.prev+t.base;return r+We.call(e,","+r)+` -`+t.prev}function Wn(e,t){var r=li(e),n=[];if(r){n.length=e.length;for(var a=0;a{"use strict";l();c();d();var hi=st(),Qt=Oh(),g_=Qh(),y_=hi("%TypeError%"),Yn=hi("%WeakMap%",!0),Xn=hi("%Map%",!0),b_=Qt("WeakMap.prototype.get",!0),E_=Qt("WeakMap.prototype.set",!0),A_=Qt("WeakMap.prototype.has",!0),v_=Qt("Map.prototype.get",!0),D_=Qt("Map.prototype.set",!0),C_=Qt("Map.prototype.has",!0),mi=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},x_=function(e,t){var r=mi(e,t);return r&&r.value},S_=function(e,t,r){var n=mi(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},F_=function(e,t){return!!mi(e,t)};Zh.exports=function(){var t,r,n,a={assert:function(o){if(!a.has(o))throw new y_("Side channel does not contain "+g_(o))},get:function(o){if(Yn&&o&&(typeof o=="object"||typeof o=="function")){if(t)return b_(t,o)}else if(Xn){if(r)return v_(r,o)}else if(n)return x_(n,o)},has:function(o){if(Yn&&o&&(typeof o=="object"||typeof o=="function")){if(t)return A_(t,o)}else if(Xn){if(r)return C_(r,o)}else if(n)return F_(n,o);return!1},set:function(o,i){Yn&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new Yn),E_(t,o,i)):Xn?(r||(r=new Xn),D_(r,o,i)):(n||(n={key:{},next:null}),S_(n,o,i))}};return a}});var Jn=F((VJ,tm)=>{"use strict";l();c();d();var w_=String.prototype.replace,B_=/%20/g,gi={RFC1738:"RFC1738",RFC3986:"RFC3986"};tm.exports={default:gi.RFC3986,formatters:{RFC1738:function(e){return w_.call(e,B_,"+")},RFC3986:function(e){return String(e)}},RFC1738:gi.RFC1738,RFC3986:gi.RFC3986}});var bi=F((JJ,nm)=>{"use strict";l();c();d();var T_=Jn(),yi=Object.prototype.hasOwnProperty,xt=Array.isArray,Ve=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),__=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(xt(n)){for(var a=[],o=0;o=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||o===T_.RFC1738&&(p===40||p===41)){u+=i.charAt(s);continue}if(p<128){u=u+Ve[p];continue}if(p<2048){u=u+(Ve[192|p>>6]+Ve[128|p&63]);continue}if(p<55296||p>=57344){u=u+(Ve[224|p>>12]+Ve[128|p>>6&63]+Ve[128|p&63]);continue}s+=1,p=65536+((p&1023)<<10|i.charCodeAt(s)&1023),u+=Ve[240|p>>18]+Ve[128|p>>12&63]+Ve[128|p>>6&63]+Ve[128|p&63]}return u},k_=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],a=0;a{"use strict";l();c();d();var im=em(),Qn=bi(),$r=Jn(),q_=Object.prototype.hasOwnProperty,am={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Ze=Array.isArray,$_=Array.prototype.push,um=function(e,t){$_.apply(e,Ze(t)?t:[t])},H_=Date.prototype.toISOString,om=$r.default,Se={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Qn.encode,encodeValuesOnly:!1,format:om,formatter:$r.formatters[om],indices:!1,serializeDate:function(t){return H_.call(t)},skipNulls:!1,strictNullHandling:!1},U_=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Ei={},z_=function e(t,r,n,a,o,i,u,s,p,y,A,m,h,E,b,S){for(var x=t,B=S,I=0,j=!1;(B=B.get(Ei))!==void 0&&!j;){var w=B.get(t);if(I+=1,typeof w<"u"){if(w===I)throw new RangeError("Cyclic object value");j=!0}typeof B.get(Ei)>"u"&&(I=0)}if(typeof s=="function"?x=s(r,x):x instanceof Date?x=A(x):n==="comma"&&Ze(x)&&(x=Qn.maybeMap(x,function(q){return q instanceof Date?A(q):q})),x===null){if(o)return u&&!E?u(r,Se.encoder,b,"key",m):r;x=""}if(U_(x)||Qn.isBuffer(x)){if(u){var k=E?r:u(r,Se.encoder,b,"key",m);return[h(k)+"="+h(u(x,Se.encoder,b,"value",m))]}return[h(r)+"="+h(String(x))]}var N=[];if(typeof x>"u")return N;var H;if(n==="comma"&&Ze(x))E&&u&&(x=Qn.maybeMap(x,u)),H=[{value:x.length>0?x.join(",")||null:void 0}];else if(Ze(s))H=s;else{var V=Object.keys(x);H=p?V.sort(p):V}for(var U=a&&Ze(x)&&x.length===1?r+"[]":r,ee=0;ee"u"?Se.allowDots:!!t.allowDots,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Se.charsetSentinel,delimiter:typeof t.delimiter>"u"?Se.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Se.encode,encoder:typeof t.encoder=="function"?t.encoder:Se.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Se.encodeValuesOnly,filter:o,format:n,formatter:a,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Se.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Se.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Se.strictNullHandling}};sm.exports=function(e,t){var r=e,n=G_(t),a,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):Ze(n.filter)&&(o=n.filter,a=o);var i=[];if(typeof r!="object"||r===null)return"";var u;t&&t.arrayFormat in am?u=t.arrayFormat:t&&"indices"in t?u=t.indices?"indices":"repeat":u="indices";var s=am[u];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var p=s==="comma"&&t&&t.commaRoundTrip;a||(a=Object.keys(r)),n.sort&&a.sort(n.sort);for(var y=im(),A=0;A0?E+h:""}});var pm=F((oQ,dm)=>{"use strict";l();c();d();var Zt=bi(),Ai=Object.prototype.hasOwnProperty,W_=Array.isArray,ve={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Zt.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},V_=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},cm=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},K_="utf8=%26%2310003%3B",Y_="utf8=%E2%9C%93",X_=function(t,r){var n={__proto__:null},a=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=r.parameterLimit===1/0?void 0:r.parameterLimit,i=a.split(r.delimiter,o),u=-1,s,p=r.charset;if(r.charsetSentinel)for(s=0;s-1&&(E=W_(E)?[E]:E),Ai.call(n,h)?n[h]=Zt.combine(n[h],E):n[h]=E}return n},J_=function(e,t,r,n){for(var a=n?t:cm(t,r),o=e.length-1;o>=0;--o){var i,u=e[o];if(u==="[]"&&r.parseArrays)i=[].concat(a);else{i=r.plainObjects?Object.create(null):{};var s=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,p=parseInt(s,10);!r.parseArrays&&s===""?i={0:a}:!isNaN(p)&&u!==s&&String(p)===s&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(i=[],i[p]=a):s!=="__proto__"&&(i[s]=a)}a=i}return a},Q_=function(t,r,n,a){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,i=/(\[[^[\]]*])/,u=/(\[[^[\]]*])/g,s=n.depth>0&&i.exec(o),p=s?o.slice(0,s.index):o,y=[];if(p){if(!n.plainObjects&&Ai.call(Object.prototype,p)&&!n.allowPrototypes)return;y.push(p)}for(var A=0;n.depth>0&&(s=u.exec(o))!==null&&A"u"?ve.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?ve.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:ve.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:ve.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:ve.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:ve.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:ve.comma,decoder:typeof t.decoder=="function"?t.decoder:ve.decoder,delimiter:typeof t.delimiter=="string"||Zt.isRegExp(t.delimiter)?t.delimiter:ve.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:ve.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:ve.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:ve.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:ve.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:ve.strictNullHandling}};dm.exports=function(e,t){var r=Z_(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?X_(e,r):e,a=r.plainObjects?Object.create(null):{},o=Object.keys(n),i=0;i{"use strict";l();c();d();var e8=lm(),t8=pm(),r8=Jn();fm.exports={formats:r8,parse:t8,stringify:e8}});var Em=F((KZ,bm)=>{l();c();d();(function(){"use strict";function e(i){if(i==null)return!1;switch(i.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function t(i){if(i==null)return!1;switch(i.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function r(i){if(i==null)return!1;switch(i.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function n(i){return r(i)||i!=null&&i.type==="FunctionDeclaration"}function a(i){switch(i.type){case"IfStatement":return i.alternate!=null?i.alternate:i.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return i.body}return null}function o(i){var u;if(i.type!=="IfStatement"||i.alternate==null)return!1;u=i.consequent;do{if(u.type==="IfStatement"&&u.alternate==null)return!0;u=a(u)}while(u);return!1}bm.exports={isExpression:e,isStatement:r,isIterationStatement:t,isSourceElement:n,isProblematicIfStatement:o,trailingStatement:a}})()});var Di=F((QZ,Am)=>{l();c();d();(function(){"use strict";var e,t,r,n,a,o;t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function i(S){return 48<=S&&S<=57}function u(S){return 48<=S&&S<=57||97<=S&&S<=102||65<=S&&S<=70}function s(S){return S>=48&&S<=55}r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function p(S){return S===32||S===9||S===11||S===12||S===160||S>=5760&&r.indexOf(S)>=0}function y(S){return S===10||S===13||S===8232||S===8233}function A(S){if(S<=65535)return String.fromCharCode(S);var x=String.fromCharCode(Math.floor((S-65536)/1024)+55296),B=String.fromCharCode((S-65536)%1024+56320);return x+B}for(n=new Array(128),o=0;o<128;++o)n[o]=o>=97&&o<=122||o>=65&&o<=90||o===36||o===95;for(a=new Array(128),o=0;o<128;++o)a[o]=o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===36||o===95;function m(S){return S<128?n[S]:t.NonAsciiIdentifierStart.test(A(S))}function h(S){return S<128?a[S]:t.NonAsciiIdentifierPart.test(A(S))}function E(S){return S<128?n[S]:e.NonAsciiIdentifierStart.test(A(S))}function b(S){return S<128?a[S]:e.NonAsciiIdentifierPart.test(A(S))}Am.exports={isDecimalDigit:i,isHexDigit:u,isOctalDigit:s,isWhiteSpace:p,isLineTerminator:y,isIdentifierStartES5:m,isIdentifierPartES5:h,isIdentifierStartES6:E,isIdentifierPartES6:b}})()});var Dm=F((ree,vm)=>{l();c();d();(function(){"use strict";var e=Di();function t(m){switch(m){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function r(m,h){return!h&&m==="yield"?!1:n(m,h)}function n(m,h){if(h&&t(m))return!0;switch(m.length){case 2:return m==="if"||m==="in"||m==="do";case 3:return m==="var"||m==="for"||m==="new"||m==="try";case 4:return m==="this"||m==="else"||m==="case"||m==="void"||m==="with"||m==="enum";case 5:return m==="while"||m==="break"||m==="catch"||m==="throw"||m==="const"||m==="yield"||m==="class"||m==="super";case 6:return m==="return"||m==="typeof"||m==="delete"||m==="switch"||m==="export"||m==="import";case 7:return m==="default"||m==="finally"||m==="extends";case 8:return m==="function"||m==="continue"||m==="debugger";case 10:return m==="instanceof";default:return!1}}function a(m,h){return m==="null"||m==="true"||m==="false"||r(m,h)}function o(m,h){return m==="null"||m==="true"||m==="false"||n(m,h)}function i(m){return m==="eval"||m==="arguments"}function u(m){var h,E,b;if(m.length===0||(b=m.charCodeAt(0),!e.isIdentifierStartES5(b)))return!1;for(h=1,E=m.length;h=E||(S=m.charCodeAt(h),!(56320<=S&&S<=57343)))return!1;b=s(b,S)}if(!x(b))return!1;x=e.isIdentifierPartES6}return!0}function y(m,h){return u(m)&&!a(m,h)}function A(m,h){return p(m)&&!o(m,h)}vm.exports={isKeywordES5:r,isKeywordES6:n,isReservedWordES5:a,isReservedWordES6:o,isRestrictedWord:i,isIdentifierNameES5:u,isIdentifierNameES6:p,isIdentifierES5:y,isIdentifierES6:A}})()});var Ci=F(Zn=>{l();c();d();(function(){"use strict";Zn.ast=Em(),Zn.code=Di(),Zn.keyword=Dm()})()});var Cm=F((cee,v8)=>{v8.exports={name:"doctrine",description:"JSDoc parser",homepage:"https://github.com/eslint/doctrine",main:"lib/doctrine.js",version:"3.0.0",engines:{node:">=6.0.0"},directories:{lib:"./lib"},files:["lib"],maintainers:[{name:"Nicholas C. Zakas",email:"nicholas+npm@nczconsulting.com",web:"https://www.nczonline.net"},{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"https://github.com/Constellation"}],repository:"eslint/doctrine",devDependencies:{coveralls:"^3.0.1",dateformat:"^1.0.11",eslint:"^1.10.3","eslint-release":"^1.0.0",linefix:"^0.1.1",mocha:"^3.4.2","npm-license":"^0.3.1",nyc:"^10.3.2",semver:"^5.0.3",shelljs:"^0.5.3","shelljs-nodecli":"^0.1.1",should:"^5.0.1"},license:"Apache-2.0",scripts:{pretest:"npm run lint",test:"nyc mocha",coveralls:"nyc report --reporter=text-lcov | coveralls",lint:"eslint lib/","generate-release":"eslint-generate-release","generate-alpharelease":"eslint-generate-prerelease alpha","generate-betarelease":"eslint-generate-prerelease beta","generate-rcrelease":"eslint-generate-prerelease rc","publish-release":"eslint-publish-release"},dependencies:{esutils:"^2.0.2"}}});var Sm=F((dee,xm)=>{l();c();d();function D8(e,t){if(!e)throw new Error(t||"unknown assertion error")}xm.exports=D8});var xi=F(Hr=>{l();c();d();(function(){"use strict";var e;e=Cm().version,Hr.VERSION=e;function t(n){this.name="DoctrineError",this.message=n}t.prototype=function(){var n=function(){};return n.prototype=Error.prototype,new n}(),t.prototype.constructor=t,Hr.DoctrineError=t;function r(n){throw new t(n)}Hr.throwError=r,Hr.assert=Sm()})()});var Fm=F(Ur=>{l();c();d();(function(){"use strict";var e,t,r,n,a,o,i,u,s,p,y,A;s=Ci(),p=xi(),e={NullableLiteral:"NullableLiteral",AllLiteral:"AllLiteral",NullLiteral:"NullLiteral",UndefinedLiteral:"UndefinedLiteral",VoidLiteral:"VoidLiteral",UnionType:"UnionType",ArrayType:"ArrayType",RecordType:"RecordType",FieldType:"FieldType",FunctionType:"FunctionType",ParameterType:"ParameterType",RestType:"RestType",NonNullableType:"NonNullableType",OptionalType:"OptionalType",NullableType:"NullableType",NameExpression:"NameExpression",TypeApplication:"TypeApplication",StringLiteralType:"StringLiteralType",NumericLiteralType:"NumericLiteralType",BooleanLiteralType:"BooleanLiteralType"},t={ILLEGAL:0,DOT_LT:1,REST:2,LT:3,GT:4,LPAREN:5,RPAREN:6,LBRACE:7,RBRACE:8,LBRACK:9,RBRACK:10,COMMA:11,COLON:12,STAR:13,PIPE:14,QUESTION:15,BANG:16,EQUAL:17,NAME:18,STRING:19,NUMBER:20,EOF:21};function m(T){return"><(){}[],:*|?!=".indexOf(String.fromCharCode(T))===-1&&!s.code.isWhiteSpace(T)&&!s.code.isLineTerminator(T)}function h(T,P,L,O){this._previous=T,this._index=P,this._token=L,this._value=O}h.prototype.restore=function(){o=this._previous,a=this._index,i=this._token,u=this._value},h.save=function(){return new h(o,a,i,u)};function E(T,P){return A&&(T.range=[P[0]+y,P[1]+y]),T}function b(){var T=r.charAt(a);return a+=1,T}function S(T){var P,L,O,$=0;for(L=T==="u"?4:2,P=0;P=0&&a=n)return t.ILLEGAL;if(P=r.charCodeAt(a+1),P===60)break}u+=b()}return t.NAME}function j(){var T;for(o=a;a=n)return i=t.EOF,i;switch(T=r.charCodeAt(a),T){case 39:case 34:return i=x(),i;case 58:return b(),i=t.COLON,i;case 44:return b(),i=t.COMMA,i;case 40:return b(),i=t.LPAREN,i;case 41:return b(),i=t.RPAREN,i;case 91:return b(),i=t.LBRACK,i;case 93:return b(),i=t.RBRACK,i;case 123:return b(),i=t.LBRACE,i;case 125:return b(),i=t.RBRACE,i;case 46:if(a+1{l();c();d();(function(){"use strict";var e,t,r,n,a;n=Ci(),e=Fm(),t=xi();function o(w,k,N){return w.slice(k,N)}a=function(){var w=Object.prototype.hasOwnProperty;return function(N,H){return w.call(N,H)}}();function i(w){var k={},N;for(N in w)w.hasOwnProperty(N)&&(k[N]=w[N]);return k}function u(w){return w>=97&&w<=122||w>=65&&w<=90||w>=48&&w<=57}function s(w){return w==="param"||w==="argument"||w==="arg"}function p(w){return w==="return"||w==="returns"}function y(w){return w==="property"||w==="prop"}function A(w){return s(w)||y(w)||w==="alias"||w==="this"||w==="mixes"||w==="requires"}function m(w){return A(w)||w==="const"||w==="constant"}function h(w){return y(w)||s(w)}function E(w){return y(w)||s(w)}function b(w){return s(w)||p(w)||w==="define"||w==="enum"||w==="implements"||w==="this"||w==="type"||w==="typedef"||y(w)}function S(w){return b(w)||w==="throws"||w==="const"||w==="constant"||w==="namespace"||w==="member"||w==="var"||w==="module"||w==="constructor"||w==="class"||w==="extends"||w==="augments"||w==="public"||w==="private"||w==="protected"}var x="[ \\f\\t\\v\\u00a0\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]",B="("+x+"*(?:\\*"+x+`?)?)(.+|[\r -\u2028\u2029])`;function I(w){return w.replace(/^\/\*\*?/,"").replace(/\*\/$/,"").replace(new RegExp(B,"g"),"$2").replace(/\s*$/,"")}function j(w,k){for(var N=w.replace(/^\/\*\*?/,""),H=0,V=new RegExp(B,"g"),U;U=V.exec(N);)if(H+=U[1].length,U.index+U[0].length>k+H)return k+H+w.length-N.length;return w.replace(/\*\/$/,"").replace(/\s*$/,"").length}(function(w){var k,N,H,V,U,ee,Q,Y,R;function _(){var L=U.charCodeAt(N);return N+=1,n.code.isLineTerminator(L)&&!(L===13&&U.charCodeAt(N)===10)&&(H+=1),String.fromCharCode(L)}function q(){var L="";for(_();N=L)return null;if(U.charCodeAt(N)===91)if(O)pe=!0,z=_();else return null;if(z+=K(L),$)for(U.charCodeAt(N)===58&&(z==="module"||z==="external"||z==="event")&&(z+=_(),z+=K(L)),U.charCodeAt(N)===91&&U.charCodeAt(N+1)===93&&(z+=_(),z+=_());U.charCodeAt(N)===46||U.charCodeAt(N)===47||U.charCodeAt(N)===35||U.charCodeAt(N)===45||U.charCodeAt(N)===126;)z+=_(),z+=K(L);if(pe){if(Z(L),U.charCodeAt(N)===61){z+=_(),Z(L);for(var ie,Ee=1;N=L||U.charCodeAt(N)!==93)return null;z+=_()}return z}function Pe(){for(;N=V?!1:(t.assert(U.charCodeAt(N)===64),!0)}function Ie(L){return U===ee?L:j(ee,L)}function J(L,O){this._options=L,this._title=O.toLowerCase(),this._tag={title:O,description:null},this._options.lineNumbers&&(this._tag.lineNumber=H),this._first=N-O.length-1,this._last=0,this._extra={}}J.prototype.addError=function(O){var $=Array.prototype.slice.call(arguments,1),z=O.replace(/%(\d)/g,function(pe,oe){return t.assert(oe<$.length,"Message reference must be in range"),$[oe]});return this._tag.errors||(this._tag.errors=[]),R&&t.throwError(z),this._tag.errors.push(z),Q},J.prototype.parseType=function(){if(b(this._title))try{if(this._tag.type=X(this._title,this._last,this._options.range),!this._tag.type&&!s(this._title)&&!p(this._title)&&!this.addError("Missing or invalid tag type"))return!1}catch(L){if(this._tag.type=null,!this.addError(L.message))return!1}else if(S(this._title))try{this._tag.type=X(this._title,this._last,this._options.range)}catch{}return!0},J.prototype._parseNamePath=function(L){var O;return O=se(this._last,Y&&E(this._title),!0),!O&&!L&&!this.addError("Missing or invalid tag name")?!1:(this._tag.name=O,!0)},J.prototype.parseNamePath=function(){return this._parseNamePath(!1)},J.prototype.parseNamePathOptional=function(){return this._parseNamePath(!0)},J.prototype.parseName=function(){var L,O;if(m(this._title))if(this._tag.name=se(this._last,Y&&E(this._title),h(this._title)),this._tag.name)O=this._tag.name,O.charAt(0)==="["&&O.charAt(O.length-1)==="]"&&(L=O.substring(1,O.length-1).split("="),L.length>1&&(this._tag.default=L.slice(1).join("=")),this._tag.name=L[0],this._tag.type&&this._tag.type.type!=="OptionalType"&&(this._tag.type={type:"OptionalType",expression:this._tag.type}));else{if(!A(this._title))return!0;if(s(this._title)&&this._tag.type&&this._tag.type.name)this._extra.name=this._tag.type,this._tag.name=this._tag.type.name,this._tag.type=null;else if(!this.addError("Missing or invalid tag name"))return!1}return!0},J.prototype.parseDescription=function(){var O=o(U,N,this._last).trim();return O&&(/^-\s+/.test(O)&&(O=O.substring(2)),this._tag.description=O),!0},J.prototype.parseCaption=function(){var O=o(U,N,this._last).trim(),$="
",pe=O.indexOf($),oe=O.indexOf(z);return pe>=0&&oe>=0?(this._tag.caption=O.substring(pe+$.length,oe).trim(),this._tag.description=O.substring(oe+z.length).trim()):this._tag.description=O,!0},J.prototype.parseKind=function(){var O,$;return $={class:!0,constant:!0,event:!0,external:!0,file:!0,function:!0,member:!0,mixin:!0,module:!0,namespace:!0,typedef:!0},O=o(U,N,this._last).trim(),this._tag.kind=O,!(!a($,O)&&!this.addError("Invalid kind name '%0'",O))},J.prototype.parseAccess=function(){var O;return O=o(U,N,this._last).trim(),this._tag.access=O,!(O!=="private"&&O!=="protected"&&O!=="public"&&!this.addError("Invalid access name '%0'",O))},J.prototype.parseThis=function(){var O=o(U,N,this._last).trim();if(O&&O.charAt(0)==="{"){var $=this.parseType();return $&&this._tag.type.type==="NameExpression"||this._tag.type.type==="UnionType"?(this._tag.name=this._tag.type.name,!0):this.addError("Invalid name for this")}else return this.parseNamePath()},J.prototype.parseVariation=function(){var O,$;return $=o(U,N,this._last).trim(),O=parseFloat($,10),this._tag.variation=O,!(isNaN(O)&&!this.addError("Invalid variation '%0'",$))},J.prototype.ensureEnd=function(){var L=o(U,N,this._last).trim();return!(L&&!this.addError("Unknown content '%0'",L))},J.prototype.epilogue=function(){var O;return O=this._tag.description,!(E(this._title)&&!this._tag.type&&O&&O.charAt(0)==="["&&(this._tag.type=this._extra.name,this._tag.name||(this._tag.name=void 0),!Y&&!this.addError("Missing or invalid tag name")))},k={access:["parseAccess"],alias:["parseNamePath","ensureEnd"],augments:["parseType","parseNamePathOptional","ensureEnd"],constructor:["parseType","parseNamePathOptional","ensureEnd"],class:["parseType","parseNamePathOptional","ensureEnd"],extends:["parseType","parseNamePathOptional","ensureEnd"],example:["parseCaption"],deprecated:["parseDescription"],global:["ensureEnd"],inner:["ensureEnd"],instance:["ensureEnd"],kind:["parseKind"],mixes:["parseNamePath","ensureEnd"],mixin:["parseNamePathOptional","ensureEnd"],member:["parseType","parseNamePathOptional","ensureEnd"],method:["parseNamePathOptional","ensureEnd"],module:["parseType","parseNamePathOptional","ensureEnd"],func:["parseNamePathOptional","ensureEnd"],function:["parseNamePathOptional","ensureEnd"],var:["parseType","parseNamePathOptional","ensureEnd"],name:["parseNamePath","ensureEnd"],namespace:["parseType","parseNamePathOptional","ensureEnd"],private:["parseType","parseDescription"],protected:["parseType","parseDescription"],public:["parseType","parseDescription"],readonly:["ensureEnd"],requires:["parseNamePath","ensureEnd"],since:["parseDescription"],static:["ensureEnd"],summary:["parseDescription"],this:["parseThis","ensureEnd"],todo:["parseDescription"],typedef:["parseType","parseNamePathOptional"],variation:["parseVariation"],version:["parseDescription"]},J.prototype.parse=function(){var O,$,z,pe;if(!this._title&&!this.addError("Missing or invalid title"))return null;for(this._last=G(this._title),this._options.range&&(this._tag.range=[this._first,U.slice(0,this._last).replace(/\s*$/,"").length].map(Ie)),a(k,this._title)?z=k[this._title]:z=["parseType","parseName","parseDescription","epilogue"],O=0,$=z.length;O<$;++O)if(pe=z[O],!this[pe]())return null;return this._tag};function Me(L){var O,$,z;if(!Pe())return null;for(O=q(),$=new J(L,O),z=$.parse();N<$._last;)_();return z}function T(L){var O="",$,z;for(z=!0;N{l();c();d();Xm.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0}});var Zm=F((Vee,Qm)=>{l();c();d();Qm.exports=function(e){var t=[].forEach,r=[].some,n=document.body,a,o=!0,i=" ";function u(x,B){var I=B.appendChild(p(x));if(x.children.length){var j=y(x.isCollapsed);x.children.forEach(function(w){u(w,j)}),I.appendChild(j)}}function s(x,B){var I=!1,j=y(I);if(B.forEach(function(w){u(w,j)}),a=x||a,a!==null)return a.firstChild&&a.removeChild(a.firstChild),B.length===0?a:a.appendChild(j)}function p(x){var B=document.createElement("li"),I=document.createElement("a");return e.listItemClass&&B.setAttribute("class",e.listItemClass),e.onClick&&(I.onclick=e.onClick),e.includeTitleTags&&I.setAttribute("title",x.textContent),e.includeHtml&&x.childNodes.length?t.call(x.childNodes,function(j){I.appendChild(j.cloneNode(!0))}):I.textContent=x.textContent,I.setAttribute("href",e.basePath+"#"+x.id),I.setAttribute("class",e.linkClass+i+"node-name--"+x.nodeName+i+e.extraLinkClasses),B.appendChild(I),B}function y(x){var B=e.orderedList?"ol":"ul",I=document.createElement(B),j=e.listClass+i+e.extraListClasses;return x&&(j=j+i+e.collapsibleClass,j=j+i+e.isCollapsedClass),I.setAttribute("class",j),I}function A(){if(e.scrollContainer&&document.querySelector(e.scrollContainer)){var x;x=document.querySelector(e.scrollContainer).scrollTop}else x=document.documentElement.scrollTop||n.scrollTop;var B=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset==="auto"&&(e.fixedSidebarOffset=a.offsetTop),x>e.fixedSidebarOffset?B.className.indexOf(e.positionFixedClass)===-1&&(B.className+=i+e.positionFixedClass):B.className=B.className.split(i+e.positionFixedClass).join("")}function m(x){var B=0;return x!==null&&(B=x.offsetTop,e.hasInnerContainers&&(B+=m(x.offsetParent))),B}function h(x){if(e.scrollContainer&&document.querySelector(e.scrollContainer)){var B;B=document.querySelector(e.scrollContainer).scrollTop}else B=document.documentElement.scrollTop||n.scrollTop;e.positionFixedSelector&&A();var I=x,j;if(o&&a!==null&&I.length>0){r.call(I,function(ee,Q){if(m(ee)>B+e.headingsOffset+10){var Y=Q===0?Q:Q-1;return j=I[Y],!0}else if(Q===I.length-1)return j=I[I.length-1],!0});var w=a.querySelector("."+e.activeLinkClass),k=a.querySelector("."+e.linkClass+".node-name--"+j.nodeName+'[href="'+e.basePath+"#"+j.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1")+'"]');if(w===k)return;var N=a.querySelectorAll("."+e.linkClass);t.call(N,function(ee){ee.className=ee.className.split(i+e.activeLinkClass).join("")});var H=a.querySelectorAll("."+e.listItemClass);t.call(H,function(ee){ee.className=ee.className.split(i+e.activeListItemClass).join("")}),k&&k.className.indexOf(e.activeLinkClass)===-1&&(k.className+=i+e.activeLinkClass);var V=k&&k.parentNode;V&&V.className.indexOf(e.activeListItemClass)===-1&&(V.className+=i+e.activeListItemClass);var U=a.querySelectorAll("."+e.listClass+"."+e.collapsibleClass);t.call(U,function(ee){ee.className.indexOf(e.isCollapsedClass)===-1&&(ee.className+=i+e.isCollapsedClass)}),k&&k.nextSibling&&k.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&(k.nextSibling.className=k.nextSibling.className.split(i+e.isCollapsedClass).join("")),E(k&&k.parentNode.parentNode)}}function E(x){return x&&x.className.indexOf(e.collapsibleClass)!==-1&&x.className.indexOf(e.isCollapsedClass)!==-1?(x.className=x.className.split(i+e.isCollapsedClass).join(""),E(x.parentNode.parentNode)):x}function b(x){var B=x.target||x.srcElement;typeof B.className!="string"||B.className.indexOf(e.linkClass)===-1||(o=!1)}function S(){o=!0}return{enableTocAnimation:S,disableTocAnimation:b,render:s,updateToc:h}}});var tg=F((Jee,eg)=>{l();c();d();eg.exports=function(t){var r=[].reduce;function n(y){return y[y.length-1]}function a(y){return+y.nodeName.toUpperCase().replace("H","")}function o(y){try{return y instanceof window.HTMLElement||y instanceof window.parent.HTMLElement}catch{return y instanceof window.HTMLElement}}function i(y){if(!o(y))return y;if(t.ignoreHiddenElements&&(!y.offsetHeight||!y.offsetParent))return null;let A=y.getAttribute("data-heading-label")||(t.headingLabelCallback?String(t.headingLabelCallback(y.textContent)):y.textContent.trim());var m={id:y.id,children:[],nodeName:y.nodeName,headingLevel:a(y),textContent:A};return t.includeHtml&&(m.childNodes=y.childNodes),t.headingObjectCallback?t.headingObjectCallback(m,y):m}function u(y,A){for(var m=i(y),h=m.headingLevel,E=A,b=n(E),S=b?b.headingLevel:0,x=h-S;x>0&&(b=n(E),!(b&&h===b.headingLevel));)b&&b.children!==void 0&&(E=b.children),x--;return h>=t.collapseDepth&&(m.isCollapsed=!0),E.push(m),E}function s(y,A){var m=A;t.ignoreSelector&&(m=A.split(",").map(function(E){return E.trim()+":not("+t.ignoreSelector+")"}));try{return y.querySelectorAll(m)}catch{return console.warn("Headers not found with selector: "+m),null}}function p(y){return r.call(y,function(m,h){var E=i(h);return E&&u(E,m.nest),m},{nest:[]})}return{nestHeadingsArray:p,selectHeadings:s}}});var ng=F((tte,rg)=>{l();c();d();rg.exports=function(t){var r=t.tocElement||document.querySelector(t.tocSelector);if(r&&r.scrollHeight>r.clientHeight){var n=r.querySelector("."+t.activeListItemClass);n&&(r.scrollTop=n.offsetTop-t.tocScrollOffset)}}});var og=F(ag=>{l();c();d();ag.initSmoothScrolling=gR;function gR(e){var t=e.duration,r=e.offset,n=location.hash?i(location.href):location.href;a();function a(){document.body.addEventListener("click",s,!1);function s(p){!o(p.target)||p.target.className.indexOf("no-smooth-scroll")>-1||p.target.href.charAt(p.target.href.length-2)==="#"&&p.target.href.charAt(p.target.href.length-1)==="!"||p.target.className.indexOf(e.linkClass)===-1||yR(p.target.hash,{duration:t,offset:r,callback:function(){u(p.target.hash)}})}}function o(s){return s.tagName.toLowerCase()==="a"&&(s.hash.length>0||s.href.charAt(s.href.length-1)==="#")&&(i(s.href)===n||i(s.href)+"#"===n)}function i(s){return s.slice(0,s.lastIndexOf("#"))}function u(s){var p=document.getElementById(s.substring(1));p&&(/^(?:a|select|input|button|textarea)$/i.test(p.tagName)||(p.tabIndex=-1),p.focus())}}function yR(e,t){var r=window.pageYOffset,n={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||A},a=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]')||document.querySelector('[id="'+e.split("#").join("")+'"]'),o=typeof e=="string"?n.offset+(e?a&&a.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,i=typeof n.duration=="function"?n.duration(o):n.duration,u,s;requestAnimationFrame(function(m){u=m,p(m)});function p(m){s=m-u,window.scrollTo(0,n.easing(s,r,o,i)),s{l();c();d();(function(e,t){typeof define=="function"&&define.amd?define([],t(e)):typeof ig=="object"?ug.exports=t(e):e.tocbot=t(e)})(typeof window<"u"?window:window||window,function(e){"use strict";var t=Jm(),r={},n={},a=Zm(),o=tg(),i=ng(),u,s,p=!!e&&!!e.document&&!!e.document.querySelector&&!!e.addEventListener;if(typeof window>"u"&&!p)return;var y,A=Object.prototype.hasOwnProperty;function m(){for(var S={},x=0;x=0||(a[r]=e[r]);return a}function Oi(e){var t=Be(e),r=Be(function(n){t.current&&t.current(n)});return t.current=e,r.current}function Eg(e,t,r){var n=Oi(r),a=ne(function(){return e.toHsva(t)}),o=a[0],i=a[1],u=Be({color:t,hsva:o});me(function(){if(!e.equal(t,u.current.color)){var p=e.toHsva(t);u.current={hsva:p,color:t},i(p)}},[t,e]),me(function(){var p;yg(o,u.current.hsva)||e.equal(p=e.fromHsva(o),u.current.color)||(u.current={hsva:o,color:p},n(p))},[o,e,n]);var s=ge(function(p){i(function(y){return Object.assign({},y,p)})},[]);return[o,s]}var ar,Wr,Ri,lg,cg,Ni,Vr,Li,De,bR,ER,Pi,AR,vR,DR,CR,pg,Ii,oa,fg,xR,aa,SR,hg,mg,gg,yg,bg,FR,wR,BR,TR,dg,Ag,_R,OR,vg,RR,Dg,PR,Cg,IR,xg,Sg=Ye(()=>{l();c();d();wt();ar=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e0:S.buttons>0)&&a.current?o(lg(a.current,S,u.current)):b(!1)},E=function(){return b(!1)};function b(S){var x=s.current,B=Ri(a.current),I=S?B.addEventListener:B.removeEventListener;I(x?"touchmove":"mousemove",h),I(x?"touchend":"mouseup",E)}return[function(S){var x=S.nativeEvent,B=a.current;if(B&&(cg(x),!function(j,w){return w&&!Wr(j)}(x,s.current)&&B)){if(Wr(x)){s.current=!0;var I=x.changedTouches||[];I.length&&(u.current=I[0].identifier)}B.focus(),o(lg(B,x,u.current)),b(!0)}},function(S){var x=S.which||S.keyCode;x<37||x>40||(S.preventDefault(),i({left:x===39?.05:x===37?-.05:0,top:x===40?.05:x===38?-.05:0}))},b]},[i,o]),y=p[0],A=p[1],m=p[2];return me(function(){return m},[m]),g.createElement("div",St({},n,{onTouchStart:y,onMouseDown:y,className:"react-colorful__interactive",ref:a,onKeyDown:A,tabIndex:0,role:"slider"}))}),Vr=function(e){return e.filter(Boolean).join(" ")},Li=function(e){var t=e.color,r=e.left,n=e.top,a=n===void 0?.5:n,o=Vr(["react-colorful__pointer",e.className]);return g.createElement("div",{className:o,style:{top:100*a+"%",left:100*r+"%"}},g.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},De=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r},bR={grad:.9,turn:360,rad:360/(2*Math.PI)},ER=function(e){return hg(Pi(e))},Pi=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?De(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?De(parseInt(e.substring(6,8),16)/255,2):1}},AR=function(e,t){return t===void 0&&(t="deg"),Number(e)*(bR[t]||1)},vR=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?DR({h:AR(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},DR=function(e){var t=e.s,r=e.l;return{h:e.h,s:(t*=(r<50?r:100-r)/100)>0?2*t/(r+t)*100:0,v:r+t,a:e.a}},CR=function(e){return SR(fg(e))},pg=function(e){var t=e.s,r=e.v,n=e.a,a=(200-t)*r/100;return{h:De(e.h),s:De(a>0&&a<200?t*r/100/(a<=100?a:200-a)*100:0),l:De(a/2),a:De(n,2)}},Ii=function(e){var t=pg(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},oa=function(e){var t=pg(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},fg=function(e){var t=e.h,r=e.s,n=e.v,a=e.a;t=t/360*6,r/=100,n/=100;var o=Math.floor(t),i=n*(1-r),u=n*(1-(t-o)*r),s=n*(1-(1-t+o)*r),p=o%6;return{r:De(255*[n,u,i,i,s,n][p]),g:De(255*[s,n,n,u,i,i][p]),b:De(255*[i,i,s,n,n,u][p]),a:De(a,2)}},xR=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?hg({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},aa=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},SR=function(e){var t=e.r,r=e.g,n=e.b,a=e.a,o=a<1?aa(De(255*a)):"";return"#"+aa(t)+aa(r)+aa(n)+o},hg=function(e){var t=e.r,r=e.g,n=e.b,a=e.a,o=Math.max(t,r,n),i=o-Math.min(t,r,n),u=i?o===t?(r-n)/i:o===r?2+(n-t)/i:4+(t-r)/i:0;return{h:De(60*(u<0?u+6:u)),s:De(o?i/o*100:0),v:De(o/255*100),a}},mg=g.memo(function(e){var t=e.hue,r=e.onChange,n=Vr(["react-colorful__hue",e.className]);return g.createElement("div",{className:n},g.createElement(Ni,{onMove:function(a){r({h:360*a.left})},onKey:function(a){r({h:ar(t+360*a.left,0,360)})},"aria-label":"Hue","aria-valuenow":De(t),"aria-valuemax":"360","aria-valuemin":"0"},g.createElement(Li,{className:"react-colorful__hue-pointer",left:t/360,color:Ii({h:t,s:100,v:100,a:1})})))}),gg=g.memo(function(e){var t=e.hsva,r=e.onChange,n={backgroundColor:Ii({h:t.h,s:100,v:100,a:1})};return g.createElement("div",{className:"react-colorful__saturation",style:n},g.createElement(Ni,{onMove:function(a){r({s:100*a.left,v:100-100*a.top})},onKey:function(a){r({s:ar(t.s+100*a.left,0,100),v:ar(t.v-100*a.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+De(t.s)+"%, Brightness "+De(t.v)+"%"},g.createElement(Li,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Ii(t)})))}),yg=function(e,t){if(e===t)return!0;for(var r in e)if(e[r]!==t[r])return!1;return!0},bg=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},FR=function(e,t){return e.toLowerCase()===t.toLowerCase()||yg(Pi(e),Pi(t))};BR=typeof window<"u"?iu:me,TR=function(){return wR||(typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0)},dg=new Map,Ag=function(e){BR(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!dg.has(t)){var r=t.createElement("style");r.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,dg.set(t,r);var n=TR();n&&r.setAttribute("nonce",n),t.head.appendChild(r)}},[])},_R=function(e){var t=e.className,r=e.colorModel,n=e.color,a=n===void 0?r.defaultColor:n,o=e.onChange,i=ki(e,["className","colorModel","color","onChange"]),u=Be(null);Ag(u);var s=Eg(r,a,o),p=s[0],y=s[1],A=Vr(["react-colorful",t]);return g.createElement("div",St({},i,{ref:u,className:A}),g.createElement(gg,{hsva:p,onChange:y}),g.createElement(mg,{hue:p.h,onChange:y,className:"react-colorful__last-control"}))},OR={defaultColor:"000",toHsva:ER,fromHsva:function(e){return CR({h:e.h,s:e.s,v:e.v,a:1})},equal:FR},vg=function(e){return g.createElement(_R,St({},e,{colorModel:OR}))},RR=function(e){var t=e.className,r=e.hsva,n=e.onChange,a={backgroundImage:"linear-gradient(90deg, "+oa(Object.assign({},r,{a:0}))+", "+oa(Object.assign({},r,{a:1}))+")"},o=Vr(["react-colorful__alpha",t]),i=De(100*r.a);return g.createElement("div",{className:o},g.createElement("div",{className:"react-colorful__alpha-gradient",style:a}),g.createElement(Ni,{onMove:function(u){n({a:u.left})},onKey:function(u){n({a:ar(r.a+u.left)})},"aria-label":"Alpha","aria-valuetext":i+"%","aria-valuenow":i,"aria-valuemin":"0","aria-valuemax":"100"},g.createElement(Li,{className:"react-colorful__alpha-pointer",left:r.a,color:oa(r)})))},Dg=function(e){var t=e.className,r=e.colorModel,n=e.color,a=n===void 0?r.defaultColor:n,o=e.onChange,i=ki(e,["className","colorModel","color","onChange"]),u=Be(null);Ag(u);var s=Eg(r,a,o),p=s[0],y=s[1],A=Vr(["react-colorful",t]);return g.createElement("div",St({},i,{ref:u,className:A}),g.createElement(gg,{hsva:p,onChange:y}),g.createElement(mg,{hue:p.h,onChange:y}),g.createElement(RR,{hsva:p,onChange:y,className:"react-colorful__last-control"}))},PR={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:vR,fromHsva:oa,equal:bg},Cg=function(e){return g.createElement(Dg,St({},e,{colorModel:PR}))},IR={defaultColor:"rgba(0, 0, 0, 1)",toHsva:xR,fromHsva:function(e){var t=fg(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:bg},xg=function(e){return g.createElement(Dg,St({},e,{colorModel:IR}))}});var wg=F((yte,Fg)=>{"use strict";l();c();d();Fg.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var ji=F((vte,Tg)=>{l();c();d();var Kr=wg(),Bg={};for(let e of Object.keys(Kr))Bg[Kr[e]]=e;var W={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};Tg.exports=W;for(let e of Object.keys(W)){if(!("channels"in W[e]))throw new Error("missing channels property: "+e);if(!("labels"in W[e]))throw new Error("missing channel labels property: "+e);if(W[e].labels.length!==W[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=W[e];delete W[e].channels,delete W[e].labels,Object.defineProperty(W[e],"channels",{value:t}),Object.defineProperty(W[e],"labels",{value:r})}W.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(t,r,n),o=Math.max(t,r,n),i=o-a,u,s;o===a?u=0:t===o?u=(r-n)/i:r===o?u=2+(n-t)/i:n===o&&(u=4+(t-r)/i),u=Math.min(u*60,360),u<0&&(u+=360);let p=(a+o)/2;return o===a?s=0:p<=.5?s=i/(o+a):s=i/(2-o-a),[u,s*100,p*100]};W.rgb.hsv=function(e){let t,r,n,a,o,i=e[0]/255,u=e[1]/255,s=e[2]/255,p=Math.max(i,u,s),y=p-Math.min(i,u,s),A=function(m){return(p-m)/6/y+1/2};return y===0?(a=0,o=0):(o=y/p,t=A(i),r=A(u),n=A(s),i===p?a=n-r:u===p?a=1/3+t-n:s===p&&(a=2/3+r-t),a<0?a+=1:a>1&&(a-=1)),[a*360,o*100,p*100]};W.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],a=W.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[a,o*100,n*100]};W.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(1-t,1-r,1-n),o=(1-t-a)/(1-a)||0,i=(1-r-a)/(1-a)||0,u=(1-n-a)/(1-a)||0;return[o*100,i*100,u*100,a*100]};function kR(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}W.rgb.keyword=function(e){let t=Bg[e];if(t)return t;let r=1/0,n;for(let a of Object.keys(Kr)){let o=Kr[a],i=kR(e,o);i.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let a=t*.4124+r*.3576+n*.1805,o=t*.2126+r*.7152+n*.0722,i=t*.0193+r*.1192+n*.9505;return[a*100,o*100,i*100]};W.rgb.lab=function(e){let t=W.rgb.xyz(e),r=t[0],n=t[1],a=t[2];r/=95.047,n/=100,a/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;let o=116*n-16,i=500*(r-n),u=200*(n-a);return[o,i,u]};W.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,a,o,i;if(r===0)return i=n*255,[i,i,i];n<.5?a=n*(1+r):a=n+r-n*r;let u=2*n-a,s=[0,0,0];for(let p=0;p<3;p++)o=t+1/3*-(p-1),o<0&&o++,o>1&&o--,6*o<1?i=u+(a-u)*6*o:2*o<1?i=a:3*o<2?i=u+(a-u)*(2/3-o)*6:i=u,s[p]=i*255;return s};W.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,a=r,o=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,a*=o<=1?o:2-o;let i=(n+r)/2,u=n===0?2*a/(o+a):2*r/(n+r);return[t,u*100,i*100]};W.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,a=Math.floor(t)%6,o=t-Math.floor(t),i=255*n*(1-r),u=255*n*(1-r*o),s=255*n*(1-r*(1-o));switch(n*=255,a){case 0:return[n,s,i];case 1:return[u,n,i];case 2:return[i,n,s];case 3:return[i,u,n];case 4:return[s,i,n];case 5:return[n,i,u]}};W.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,a=Math.max(n,.01),o,i;i=(2-r)*n;let u=(2-r)*a;return o=r*a,o/=u<=1?u:2-u,o=o||0,i/=2,[t,o*100,i*100]};W.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,a=r+n,o;a>1&&(r/=a,n/=a);let i=Math.floor(6*t),u=1-n;o=6*t-i,i&1&&(o=1-o);let s=r+o*(u-r),p,y,A;switch(i){default:case 6:case 0:p=u,y=s,A=r;break;case 1:p=s,y=u,A=r;break;case 2:p=r,y=u,A=s;break;case 3:p=r,y=s,A=u;break;case 4:p=s,y=r,A=u;break;case 5:p=u,y=r,A=s;break}return[p*255,y*255,A*255]};W.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,a=e[3]/100,o=1-Math.min(1,t*(1-a)+a),i=1-Math.min(1,r*(1-a)+a),u=1-Math.min(1,n*(1-a)+a);return[o*255,i*255,u*255]};W.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,a,o,i;return a=t*3.2406+r*-1.5372+n*-.4986,o=t*-.9689+r*1.8758+n*.0415,i=t*.0557+r*-.204+n*1.057,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),[a*255,o*255,i*255]};W.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let a=116*r-16,o=500*(t-r),i=200*(r-n);return[a,o,i]};W.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],a,o,i;o=(t+16)/116,a=r/500+o,i=o-n/200;let u=o**3,s=a**3,p=i**3;return o=u>.008856?u:(o-16/116)/7.787,a=s>.008856?s:(a-16/116)/7.787,i=p>.008856?p:(i-16/116)/7.787,a*=95.047,o*=100,i*=108.883,[a,o,i]};W.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],a;a=Math.atan2(n,r)*360/2/Math.PI,a<0&&(a+=360);let i=Math.sqrt(r*r+n*n);return[t,i,a]};W.lch.lab=function(e){let t=e[0],r=e[1],a=e[2]/360*2*Math.PI,o=r*Math.cos(a),i=r*Math.sin(a);return[t,o,i]};W.rgb.ansi16=function(e,t=null){let[r,n,a]=e,o=t===null?W.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let i=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return o===2&&(i+=60),i};W.hsv.ansi16=function(e){return W.rgb.ansi16(W.hsv.rgb(e),e[2])};W.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};W.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,n=(t&1)*r*255,a=(t>>1&1)*r*255,o=(t>>2&1)*r*255;return[n,a,o]};W.ansi256.rgb=function(e){if(e>=232){let o=(e-232)*10+8;return[o,o,o]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,a=t%6/5*255;return[r,n,a]};W.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};W.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(u=>u+u).join(""));let n=parseInt(r,16),a=n>>16&255,o=n>>8&255,i=n&255;return[a,o,i]};W.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.max(Math.max(t,r),n),o=Math.min(Math.min(t,r),n),i=a-o,u,s;return i<1?u=o/(1-i):u=0,i<=0?s=0:a===t?s=(r-n)/i%6:a===r?s=2+(n-t)/i:s=4+(t-r)/i,s/=6,s%=1,[s*360,i*100,u*100]};W.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),a=0;return n<1&&(a=(r-.5*n)/(1-n)),[e[0],n*100,a*100]};W.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],n*100,a*100]};W.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let a=[0,0,0],o=t%1*6,i=o%1,u=1-i,s=0;switch(Math.floor(o)){case 0:a[0]=1,a[1]=i,a[2]=0;break;case 1:a[0]=u,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=i;break;case 3:a[0]=0,a[1]=u,a[2]=1;break;case 4:a[0]=i,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=u}return s=(1-r)*n,[(r*a[0]+s)*255,(r*a[1]+s)*255,(r*a[2]+s)*255]};W.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),a=0;return n>0&&(a=t/n),[e[0],a*100,n*100]};W.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,a=0;return n>0&&n<.5?a=t/(2*n):n>=.5&&n<1&&(a=t/(2*(1-n))),[e[0],a*100,n*100]};W.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};W.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,a=n-t,o=0;return a<1&&(o=(n-a)/(1-a)),[e[0],a*100,o*100]};W.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};W.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};W.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};W.gray.hsl=function(e){return[0,0,e[0]]};W.gray.hsv=W.gray.hsl;W.gray.hwb=function(e){return[0,100,e[0]]};W.gray.cmyk=function(e){return[0,0,0,e[0]]};W.gray.lab=function(e){return[e[0],0,0]};W.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};W.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var Og=F((Ste,_g)=>{l();c();d();var ia=ji();function NR(){let e={},t=Object.keys(ia);for(let r=t.length,n=0;n{l();c();d();var Mi=ji(),qR=Og(),or={},$R=Object.keys(Mi);function HR(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function UR(e){let t=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let a=e(r);if(typeof a=="object")for(let o=a.length,i=0;i{or[e]={},Object.defineProperty(or[e],"channels",{value:Mi[e].channels}),Object.defineProperty(or[e],"labels",{value:Mi[e].labels});let t=qR(e);Object.keys(t).forEach(n=>{let a=t[n];or[e][n]=UR(a),or[e][n].raw=HR(a)})});Rg.exports=or});var kg=F((Pte,Ig)=>{l();c();d();var zR=je(),GR=function(){return zR.Date.now()};Ig.exports=GR});var Lg=F((Lte,Ng)=>{l();c();d();var WR=/\s/;function VR(e){for(var t=e.length;t--&&WR.test(e.charAt(t)););return t}Ng.exports=VR});var Mg=F(($te,jg)=>{l();c();d();var KR=Lg(),YR=/^\s+/;function XR(e){return e&&e.slice(0,KR(e)+1).replace(YR,"")}jg.exports=XR});var Ug=F((Gte,Hg)=>{l();c();d();var JR=Mg(),qg=He(),QR=Sr(),$g=0/0,ZR=/^[-+]0x[0-9a-f]+$/i,e4=/^0b[01]+$/i,t4=/^0o[0-7]+$/i,r4=parseInt;function n4(e){if(typeof e=="number")return e;if(QR(e))return $g;if(qg(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=qg(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=JR(e);var r=e4.test(e);return r||t4.test(e)?r4(e.slice(2),r?2:8):ZR.test(e)?$g:+e}Hg.exports=n4});var Wg=F((Yte,Gg)=>{l();c();d();var a4=He(),qi=kg(),zg=Ug(),o4="Expected a function",i4=Math.max,u4=Math.min;function s4(e,t,r){var n,a,o,i,u,s,p=0,y=!1,A=!1,m=!0;if(typeof e!="function")throw new TypeError(o4);t=zg(t)||0,a4(r)&&(y=!!r.leading,A="maxWait"in r,o=A?i4(zg(r.maxWait)||0,t):o,m="trailing"in r?!!r.trailing:m);function h(k){var N=n,H=a;return n=a=void 0,p=k,i=e.apply(H,N),i}function E(k){return p=k,u=setTimeout(x,t),y?h(k):i}function b(k){var N=k-s,H=k-p,V=t-N;return A?u4(V,o-H):V}function S(k){var N=k-s,H=k-p;return s===void 0||N>=t||N<0||A&&H>=o}function x(){var k=qi();if(S(k))return B(k);u=setTimeout(x,b(k))}function B(k){return u=void 0,m&&n?h(k):(n=a=void 0,i)}function I(){u!==void 0&&clearTimeout(u),p=0,n=s=a=u=void 0}function j(){return u===void 0?i:B(qi())}function w(){var k=qi(),N=S(k);if(n=arguments,a=this,s=k,N){if(u===void 0)return E(s);if(A)return clearTimeout(u),u=setTimeout(x,t),h(s)}return u===void 0&&(u=setTimeout(x,t)),i}return w.cancel=I,w.flush=j,w}Gg.exports=s4});var Kg=F((Zte,Vg)=>{l();c();d();var l4=Wg(),c4=He(),d4="Expected a function";function p4(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(d4);return c4(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),l4(e,t,{leading:n,maxWait:t,trailing:a})}Vg.exports=p4});var ey={};tu(ey,{ColorControl:()=>Zg,default:()=>_4});var Le,Jg,f4,h4,m4,g4,y4,b4,E4,Yg,A4,v4,Qg,ua,D4,C4,x4,$i,S4,F4,sa,Xg,ir,w4,B4,la,T4,Zg,_4,ty=Ye(()=>{l();c();d();Pa();wt();Sg();Le=fe(Pg(),1),Jg=fe(Kg(),1);ka();cr();f4=M.div({position:"relative",maxWidth:250}),h4=M(Qr)({position:"absolute",zIndex:1,top:4,left:4}),m4=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),g4=M(Ba)(({theme:e})=>({fontFamily:e.typography.fonts.base})),y4=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),b4=M.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),E4=`url('data:image/svg+xml;charset=utf-8,')`,Yg=({value:e,active:t,onClick:r,style:n,...a})=>{let o=`linear-gradient(${e}, ${e}), ${E4}, linear-gradient(#fff, #fff)`;return g.createElement(b4,{...a,active:t,onClick:r,style:{...n,backgroundImage:o}})},A4=M(_e.Input)(({theme:e})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),v4=M(Te)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Qg=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Qg||{}),ua=Object.values(Qg),D4=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,C4=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,x4=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,$i=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,S4=/^\s*#?([0-9a-f]{3})\s*$/i,F4={hex:vg,rgb:xg,hsl:Cg},sa={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},Xg=e=>{let t=e?.match(D4);if(!t)return[0,0,0,1];let[,r,n,a,o=1]=t;return[r,n,a,o].map(Number)},ir=e=>{if(!e)return;let t=!0;if(C4.test(e)){let[i,u,s,p]=Xg(e),[y,A,m]=Le.default.rgb.hsl([i,u,s])||[0,0,0];return{valid:t,value:e,keyword:Le.default.rgb.keyword([i,u,s]),colorSpace:"rgb",rgb:e,hsl:`hsla(${y}, ${A}%, ${m}%, ${p})`,hex:`#${Le.default.rgb.hex([i,u,s]).toLowerCase()}`}}if(x4.test(e)){let[i,u,s,p]=Xg(e),[y,A,m]=Le.default.hsl.rgb([i,u,s])||[0,0,0];return{valid:t,value:e,keyword:Le.default.hsl.keyword([i,u,s]),colorSpace:"hsl",rgb:`rgba(${y}, ${A}, ${m}, ${p})`,hsl:e,hex:`#${Le.default.hsl.hex([i,u,s]).toLowerCase()}`}}let r=e.replace("#",""),n=Le.default.keyword.rgb(r)||Le.default.hex.rgb(r),a=Le.default.rgb.hsl(n),o=e;if(/[^#a-f0-9]/i.test(e)?o=r:$i.test(e)&&(o=`#${r}`),o.startsWith("#"))t=$i.test(o);else try{Le.default.keyword.hex(o)}catch{t=!1}return{valid:t,value:o,keyword:Le.default.rgb.keyword(n),colorSpace:"hex",rgb:`rgba(${n[0]}, ${n[1]}, ${n[2]}, 1)`,hsl:`hsla(${a[0]}, ${a[1]}%, ${a[2]}%, 1)`,hex:o}},w4=(e,t,r)=>{if(!e||!t?.valid)return sa[r];if(r!=="hex")return t?.[r]||sa[r];if(!t.hex.startsWith("#"))try{return`#${Le.default.keyword.hex(t.hex)}`}catch{return sa.hex}let n=t.hex.match(S4);if(!n)return $i.test(t.hex)?t.hex:sa.hex;let[a,o,i]=n[1].split("");return`#${a}${a}${o}${o}${i}${i}`},B4=(e,t)=>{let[r,n]=ne(e||""),[a,o]=ne(()=>ir(r)),[i,u]=ne(a?.colorSpace||"hex");me(()=>{let A=e||"",m=ir(A);n(A),o(m),u(m?.colorSpace||"hex")},[e]);let s=tt(()=>w4(r,a,i).toLowerCase(),[r,a,i]),p=ge(A=>{let m=ir(A),h=m?.value||A||"";n(h),h===""&&(o(void 0),t(void 0)),m&&(o(m),u(m.colorSpace),t(m.value))},[t]),y=ge(()=>{let A=ua.indexOf(i)+1;A>=ua.length&&(A=0),u(ua[A]);let m=a?.[ua[A]]||"";n(m),t(m)},[a,i,t]);return{value:r,realValue:s,updateValue:p,color:a,colorSpace:i,cycleColorSpace:y}},la=e=>e.replace(/\s*/,"").toLowerCase(),T4=(e,t,r)=>{let[n,a]=ne(t?.valid?[t]:[]);me(()=>{t===void 0&&a([])},[t]);let o=tt(()=>(e||[]).map(u=>typeof u=="string"?ir(u):u.title?{...ir(u.color),keyword:u.title}:ir(u.color)).concat(n).filter(Boolean).slice(-27),[e,n]),i=ge(u=>{u?.valid&&(o.some(s=>la(s[r])===la(u[r]))||a(s=>s.concat(u)))},[r,o]);return{presets:o,addPreset:i}},Zg=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,presetColors:o,startOpen:i=!1})=>{let u=ge((0,Jg.default)(r,200),[r]),{value:s,realValue:p,updateValue:y,color:A,colorSpace:m,cycleColorSpace:h}=B4(t,u),{presets:E,addPreset:b}=T4(o,A,m),S=F4[m];return g.createElement(f4,null,g.createElement(h4,{startOpen:i,closeOnOutsideClick:!0,onVisibleChange:()=>b(A),tooltip:g.createElement(m4,null,g.createElement(S,{color:p==="transparent"?"#000000":p,onChange:y,onFocus:n,onBlur:a}),E.length>0&&g.createElement(y4,null,E.map((x,B)=>g.createElement(Qr,{key:`${x.value}-${B}`,hasChrome:!1,tooltip:g.createElement(g4,{note:x.keyword||x.value})},g.createElement(Yg,{value:x[m],active:A&&la(x[m])===la(A[m]),onClick:()=>y(x.value)})))))},g.createElement(Yg,{value:p,style:{margin:4}})),g.createElement(A4,{id:Oe(e),value:s,onChange:x=>y(x.target.value),onFocus:x=>x.target.select(),placeholder:"Choose color..."}),s?g.createElement(v4,{icon:"markup",onClick:h}):null)},_4=Zg});l();c();d();l();c();d();l();c();d();wt();l();c();d();var xI=__STORYBOOK_API__,{ActiveTabs:SI,Consumer:FI,ManagerContext:wI,Provider:BI,addons:ya,combineParameters:TI,controlOrMetaKey:_I,controlOrMetaSymbol:OI,eventMatchesShortcut:RI,eventToShortcut:PI,isMacLike:II,isShortcutTaken:kI,keyToSymbol:NI,merge:LI,mockChannel:jI,optionOrAltSymbol:MI,shortcutMatchesShortcut:qI,shortcutToHumanString:$I,types:uu,useAddonState:HI,useArgTypes:ba,useArgs:su,useChannel:UI,useGlobalTypes:zI,useGlobals:lu,useParameter:cu,useSharedState:GI,useStoryPrepared:WI,useStorybookApi:VI,useStorybookState:du}=__STORYBOOK_API__;cr();l();c();d();Pa();ka();wt();cr();l();c();d();l();c();d();function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _t(e,t,r){return Ma()?_t=Reflect.construct.bind():_t=function(a,o,i){var u=[null];u.push.apply(u,o);var s=Function.bind.apply(a,u),p=new s;return i&&Xe(p,i.prototype),p},_t.apply(null,arguments)}function fr(e){var t=typeof Map=="function"?new Map:void 0;return fr=function(n){if(n===null||!ja(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return _t(n,arguments,pr(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Xe(a,n)},fr(e)}l();c();d();var Re=function(e){La(t,e);function t(r){var n;if(!0)n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+r+" for more information.")||this;else for(var a,o,i;i=0&&a<1?(u=o,s=i):a>=1&&a<2?(u=i,s=o):a>=2&&a<3?(s=o,p=i):a>=3&&a<4?(s=i,p=o):a>=4&&a<5?(u=i,p=o):a>=5&&a<6&&(u=o,p=i);var y=r-o/2,A=u+y,m=s+y,h=p+y;return n(A,m,h)}var xu={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function U2(e){if(typeof e!="string")return e;var t=e.toLowerCase();return xu[t]?"#"+xu[t]:e}var z2=/^#[a-fA-F0-9]{6}$/,G2=/^#[a-fA-F0-9]{8}$/,W2=/^#[a-fA-F0-9]{3}$/,V2=/^#[a-fA-F0-9]{4}$/,$a=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,K2=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Y2=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,X2=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Ot(e){if(typeof e!="string")throw new Re(3);var t=U2(e);if(t.match(z2))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(G2)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(W2))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(V2)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=$a.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var o=K2.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var i=Y2.exec(t);if(i){var u=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,p=parseInt(""+i[3],10)/100,y="rgb("+hr(u,s,p)+")",A=$a.exec(y);if(!A)throw new Re(4,t,y);return{red:parseInt(""+A[1],10),green:parseInt(""+A[2],10),blue:parseInt(""+A[3],10)}}var m=X2.exec(t.substring(0,50));if(m){var h=parseInt(""+m[1],10),E=parseInt(""+m[2],10)/100,b=parseInt(""+m[3],10)/100,S="rgb("+hr(h,E,b)+")",x=$a.exec(S);if(!x)throw new Re(4,t,S);return{red:parseInt(""+x[1],10),green:parseInt(""+x[2],10),blue:parseInt(""+x[3],10),alpha:parseFloat(""+m[4])>1?parseFloat(""+m[4])/100:parseFloat(""+m[4])}}throw new Re(5)}function J2(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),o=Math.min(t,r,n),i=(a+o)/2;if(a===o)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var u,s=a-o,p=i>.5?s/(2-a-o):s/(a+o);switch(a){case t:u=(r-n)/s+(r=1?Zr(e,t,r):"rgba("+hr(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Zr(e.hue,e.saturation,e.lightness):"rgba("+hr(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Re(2)}function za(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Ua("#"+gt(e)+gt(t)+gt(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Ua("#"+gt(e.red)+gt(e.green)+gt(e.blue));throw new Re(6)}function qe(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var a=Ot(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?za(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?za(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Re(7)}var r1=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},n1=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&typeof t.alpha=="number"},a1=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},o1=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&typeof t.alpha=="number"};function nt(e){if(typeof e!="object")throw new Re(8);if(n1(e))return qe(e);if(r1(e))return za(e);if(o1(e))return t1(e);if(a1(e))return e1(e);throw new Re(8)}function Fu(e,t,r){return function(){var a=r.concat(Array.prototype.slice.call(arguments));return a.length>=t?e.apply(this,a):Fu(e,t,a)}}function ke(e){return Fu(e,e.length,[])}function i1(e,t){if(t==="transparent")return t;var r=rt(t);return nt(Ce({},r,{hue:r.hue+parseFloat(e)}))}var B7=ke(i1);function Rt(e,t,r){return Math.max(e,Math.min(t,r))}function u1(e,t){if(t==="transparent")return t;var r=rt(t);return nt(Ce({},r,{lightness:Rt(0,1,r.lightness-parseFloat(e))}))}var s1=ke(u1),$e=s1;function l1(e,t){if(t==="transparent")return t;var r=rt(t);return nt(Ce({},r,{saturation:Rt(0,1,r.saturation-parseFloat(e))}))}var T7=ke(l1);function c1(e,t){if(t==="transparent")return t;var r=rt(t);return nt(Ce({},r,{lightness:Rt(0,1,r.lightness+parseFloat(e))}))}var d1=ke(c1),at=d1;function p1(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=Ot(t),a=Ce({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),o=Ot(r),i=Ce({},o,{alpha:typeof o.alpha=="number"?o.alpha:1}),u=a.alpha-i.alpha,s=parseFloat(e)*2-1,p=s*u===-1?s:s+u,y=1+s*u,A=(p/y+1)/2,m=1-A,h={red:Math.floor(a.red*A+i.red*m),green:Math.floor(a.green*A+i.green*m),blue:Math.floor(a.blue*A+i.blue*m),alpha:a.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))};return qe(h)}var f1=ke(p1),wu=f1;function h1(e,t){if(t==="transparent")return t;var r=Ot(t),n=typeof r.alpha=="number"?r.alpha:1,a=Ce({},r,{alpha:Rt(0,1,(n*100+parseFloat(e)*100)/100)});return qe(a)}var m1=ke(h1),mr=m1;function g1(e,t){if(t==="transparent")return t;var r=rt(t);return nt(Ce({},r,{saturation:Rt(0,1,r.saturation+parseFloat(e))}))}var _7=ke(g1);function y1(e,t){return t==="transparent"?t:nt(Ce({},rt(t),{hue:parseFloat(e)}))}var O7=ke(y1);function b1(e,t){return t==="transparent"?t:nt(Ce({},rt(t),{lightness:parseFloat(e)}))}var R7=ke(b1);function E1(e,t){return t==="transparent"?t:nt(Ce({},rt(t),{saturation:parseFloat(e)}))}var P7=ke(E1);function A1(e,t){return t==="transparent"?t:wu(parseFloat(e),"rgb(0, 0, 0)",t)}var I7=ke(A1);function v1(e,t){return t==="transparent"?t:wu(parseFloat(e),"rgb(255, 255, 255)",t)}var k7=ke(v1);function D1(e,t){if(t==="transparent")return t;var r=Ot(t),n=typeof r.alpha=="number"?r.alpha:1,a=Ce({},r,{alpha:Rt(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return qe(a)}var C1=ke(D1),de=C1;l();c();d();var ue=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof window<"u"?e=window:typeof self<"u"?e=self:e={},e})();var gy=fe(Bo(),1);l();c();d();var hS=Object.create,$d=Object.defineProperty,mS=Object.getOwnPropertyDescriptor,gS=Object.getOwnPropertyNames,yS=Object.getPrototypeOf,bS=Object.prototype.hasOwnProperty,ES=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),AS=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of gS(t))!bS.call(e,a)&&a!==r&&$d(e,a,{get:()=>t[a],enumerable:!(n=mS(t,a))||n.enumerable});return e},vS=(e,t,r)=>(r=e!=null?hS(yS(e)):{},AS(t||!e||!e.__esModule?$d(r,"default",{value:e,enumerable:!0}):r,e)),DS=ES(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(a){return Object.keys(a).concat(Object.getOwnPropertySymbols(a))}:Object.keys;return function(a,o){return function i(u,s,p){var y,A,m,h=t.call(u),E=t.call(s);if(u===s)return!0;if(u==null||s==null)return!1;if(p.indexOf(u)>-1&&p.indexOf(s)>-1)return!0;if(p.push(u,s),h!=E||(y=n(u),A=n(s),y.length!=A.length||y.some(function(b){return!i(u[b],s[b],p)})))return!1;switch(h.slice(8,-1)){case"Symbol":return u.valueOf()==s.valueOf();case"Date":case"Number":return+u==+s||+u!=+u&&+s!=+s;case"RegExp":case"Function":case"String":case"Boolean":return""+u==""+s;case"Set":case"Map":y=u.entries(),A=s.entries();do if(!i((m=y.next()).value,A.next().value,p))return!1;while(!m.done);return!0;case"ArrayBuffer":u=new Uint8Array(u),s=new Uint8Array(s);case"DataView":u=new Uint8Array(u.buffer),s=new Uint8Array(s.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(u.length!=s.length)return!1;for(m=0;me.map(t=>typeof t<"u").filter(Boolean).length,CS=(e,t)=>{let{exists:r,eq:n,neq:a,truthy:o}=e;if(Hd([r,n,a,o])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:a})}`);if(typeof n<"u")return(0,qd.isEqual)(t,n);if(typeof a<"u")return!(0,qd.isEqual)(t,a);if(typeof r<"u"){let i=typeof t<"u";return r?i:!i}return typeof o>"u"||o?!!t:!t},To=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:a}=e.if;if(Hd([n,a])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:a})}`);let o=n?t[n]:r[a];return CS(e.if,o)};l();c();d();var cG=__STORYBOOK_CLIENT_LOGGER__,{deprecate:Cn,logger:ze,once:xn,pretty:dG}=__STORYBOOK_CLIENT_LOGGER__;l();c();d();wt();function At(){return At=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),zd={amp:"&",apos:"'",gt:">",lt:"<",nbsp:"\xA0",quot:"\u201C"},SS=["style","script"],FS=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,wS=/mailto:/i,BS=/\n{2,}$/,Xd=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,TS=/^ *> ?/gm,_S=/^ {2,}\n/,OS=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Jd=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,Qd=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,RS=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,PS=/^(?:\n *)*\n/,IS=/\r\n?/g,kS=/^\[\^([^\]]+)](:.*)\n/,NS=/^\[\^([^\]]+)]/,LS=/\f/g,jS=/^\s*?\[(x|\s)\]/,Zd=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,ep=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,tp=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Io=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,MS=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,rp=/^)/,qS=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,ko=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,$S=/^\{.*\}$/,HS=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,US=/^<([^ >]+@[^ >]+)>/,zS=/^<([^ >]+:\/[^ >]+)>/,GS=/-([a-z])?/gi,np=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,WS=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,VS=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,KS=/^\[([^\]]*)\] ?\[([^\]]*)\]/,YS=/(\[|\])/g,XS=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,JS=/\t/g,QS=/^ *\| */,ZS=/(^ *\||\| *$)/g,eF=/ *$/,tF=/^ *:-+: *$/,rF=/^ *:-+ *$/,nF=/^ *-+: *$/,aF=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,oF=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,iF=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,uF=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,sF=/^\\([^0-9A-Za-z\s])/,lF=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,cF=/^\n+/,dF=/^([ \t]*)/,pF=/\\([^\\])/g,Gd=/ *\n+$/,fF=/(?:^|\n)( *)$/,No="(?:\\d+\\.)",Lo="(?:[*+-])";function ap(e){return"( *)("+(e===1?No:Lo)+") +"}var op=ap(1),ip=ap(2);function up(e){return new RegExp("^"+(e===1?op:ip))}var hF=up(1),mF=up(2);function sp(e){return new RegExp("^"+(e===1?op:ip)+"[^\\n]*(?:\\n(?!\\1"+(e===1?No:Lo)+" )[^\\n]*)*(\\n|$)","gm")}var lp=sp(1),cp=sp(2);function dp(e){let t=e===1?No:Lo;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var pp=dp(1),fp=dp(2);function Wd(e,t){let r=t===1,n=r?pp:fp,a=r?lp:cp,o=r?hF:mF;return{t(i,u,s){let p=fF.exec(s);return p&&(u.o||!u._&&!u.u)?n.exec(i=p[1]+i):null},i:re.HIGH,l(i,u,s){let p=r?+i[2]:void 0,y=i[0].replace(BS,` -`).match(a),A=!1;return{p:y.map(function(m,h){let E=o.exec(m)[0].length,b=new RegExp("^ {1,"+E+"}","gm"),S=m.replace(b,"").replace(o,""),x=h===y.length-1,B=S.indexOf(` - -`)!==-1||x&&A;A=B;let I=s._,j=s.o,w;s.o=!0,B?(s._=!1,w=S.replace(Gd,` - -`)):(s._=!0,w=S.replace(Gd,""));let k=u(w,s);return s._=I,s.o=j,k}),m:r,g:p}},h:(i,u,s)=>e(i.m?"ol":"ul",{key:s.k,start:i.g},i.p.map(function(p,y){return e("li",{key:y},u(p,s))}))}}var gF=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,yF=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,hp=[Xd,Jd,Qd,Zd,tp,ep,rp,np,lp,pp,cp,fp],bF=[...hp,/^[^\n]+(?: \n|\n{2,})/,Io,ko];function EF(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function AF(e){return nF.test(e)?"right":tF.test(e)?"center":rF.test(e)?"left":null}function Vd(e,t,r){let n=r.$;r.$=!0;let a=t(e.trim(),r);r.$=n;let o=[[]];return a.forEach(function(i,u){i.type==="tableSeparator"?u!==0&&u!==a.length-1&&o.push([]):(i.type!=="text"||a[u+1]!=null&&a[u+1].type!=="tableSeparator"||(i.v=i.v.replace(eF,"")),o[o.length-1].push(i))}),o}function vF(e,t,r){r._=!0;let n=Vd(e[1],t,r),a=e[2].replace(ZS,"").split("|").map(AF),o=function(i,u,s){return i.trim().split(` -`).map(function(p){return Vd(p,u,s)})}(e[3],t,r);return r._=!1,{S:a,A:o,L:n,type:"table"}}function Kd(e,t){return e.S[t]==null?{}:{textAlign:e.S[t]}}function it(e){return function(t,r){return r._?e.exec(t):null}}function ut(e){return function(t,r){return r._||r.u?e.exec(t):null}}function Qe(e){return function(t,r){return r._||r.u?null:e.exec(t)}}function wr(e){return function(t){return e.exec(t)}}function DF(e,t,r){if(t._||t.u||r&&!r.endsWith(` -`))return null;let n="";e.split(` -`).every(o=>!hp.some(i=>i.test(o))&&(n+=o+` -`,o.trim()));let a=n.trimEnd();return a==""?null:[n,a]}function Ht(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return e}function Yd(e){return e.replace(pF,"$1")}function Sn(e,t,r){let n=r._||!1,a=r.u||!1;r._=!0,r.u=!0;let o=e(t,r);return r._=n,r.u=a,o}function CF(e,t,r){let n=r._||!1,a=r.u||!1;r._=!1,r.u=!0;let o=e(t,r);return r._=n,r.u=a,o}function xF(e,t,r){return r._=!1,e(t,r)}var _o=(e,t,r)=>({v:Sn(t,e[1],r)});function Oo(){return{}}function Ro(){return null}function SF(...e){return e.filter(Boolean).join(" ")}function Po(e,t,r){let n=e,a=t.split(".");for(;a.length&&(n=n[a[0]],n!==void 0);)a.shift();return n||r}var re;function FF(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||EF,t.namedCodesToUnicode=t.namedCodesToUnicode?At({},zd,t.namedCodesToUnicode):zd;let r=t.createElement||ga;function n(h,E,...b){let S=Po(t.overrides,`${h}.props`,{});return r(function(x,B){let I=Po(B,x);return I?typeof I=="function"||typeof I=="object"&&"render"in I?I:Po(B,`${x}.component`,x):x}(h,t.overrides),At({},E,S,{className:SF(E?.className,S.className)||void 0}),...b)}function a(h){let E=!1;t.forceInline?E=!0:t.forceBlock||(E=XS.test(h)===!1);let b=y(p(E?h:`${h.trimEnd().replace(cF,"")} - -`,{_:E}));for(;typeof b[b.length-1]=="string"&&!b[b.length-1].trim();)b.pop();if(t.wrapper===null)return b;let S=t.wrapper||(E?"span":"div"),x;if(b.length>1||t.forceWrapper)x=b;else{if(b.length===1)return x=b[0],typeof x=="string"?n("span",{key:"outer"},x):x;x=null}return ga(S,{key:"outer"},x)}function o(h){let E=h.match(FS);return E?E.reduce(function(b,S,x){let B=S.indexOf("=");if(B!==-1){let I=function(N){return N.indexOf("-")!==-1&&N.match(qS)===null&&(N=N.replace(GS,function(H,V){return V.toUpperCase()})),N}(S.slice(0,B)).trim(),j=function(N){let H=N[0];return(H==='"'||H==="'")&&N.length>=2&&N[N.length-1]===H?N.slice(1,-1):N}(S.slice(B+1).trim()),w=Ud[I]||I,k=b[w]=function(N,H){return N==="style"?H.split(/;\s?/).reduce(function(V,U){let ee=U.slice(0,U.indexOf(":"));return V[ee.replace(/(-[a-z])/g,Q=>Q[1].toUpperCase())]=U.slice(ee.length+1).trim(),V},{}):N==="href"?Ht(H):(H.match($S)&&(H=H.slice(1,H.length-1)),H==="true"||H!=="false"&&H)}(I,j);typeof k=="string"&&(Io.test(k)||ko.test(k))&&(b[w]=he(a(k.trim()),{key:x}))}else S!=="style"&&(b[Ud[S]||S]=!0);return b},{}):null}let i=[],u={},s={blockQuote:{t:Qe(Xd),i:re.HIGH,l:(h,E,b)=>({v:E(h[0].replace(TS,""),b)}),h:(h,E,b)=>n("blockquote",{key:b.k},E(h.v,b))},breakLine:{t:wr(_S),i:re.HIGH,l:Oo,h:(h,E,b)=>n("br",{key:b.k})},breakThematic:{t:Qe(OS),i:re.HIGH,l:Oo,h:(h,E,b)=>n("hr",{key:b.k})},codeBlock:{t:Qe(Qd),i:re.MAX,l:h=>({v:h[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(h,E,b)=>n("pre",{key:b.k},n("code",At({},h.O,{className:h.M?`lang-${h.M}`:""}),h.v))},codeFenced:{t:Qe(Jd),i:re.MAX,l:h=>({O:o(h[3]||""),v:h[4],M:h[2]||void 0,type:"codeBlock"})},codeInline:{t:ut(RS),i:re.LOW,l:h=>({v:h[2]}),h:(h,E,b)=>n("code",{key:b.k},h.v)},footnote:{t:Qe(kS),i:re.MAX,l:h=>(i.push({I:h[2],j:h[1]}),{}),h:Ro},footnoteReference:{t:it(NS),i:re.HIGH,l:h=>({v:h[1],B:`#${t.slugify(h[1])}`}),h:(h,E,b)=>n("a",{key:b.k,href:Ht(h.B)},n("sup",{key:b.k},h.v))},gfmTask:{t:it(jS),i:re.HIGH,l:h=>({R:h[1].toLowerCase()==="x"}),h:(h,E,b)=>n("input",{checked:h.R,key:b.k,readOnly:!0,type:"checkbox"})},heading:{t:Qe(t.enforceAtxHeadings?ep:Zd),i:re.HIGH,l:(h,E,b)=>({v:Sn(E,h[2],b),T:t.slugify(h[2]),C:h[1].length}),h:(h,E,b)=>n(`h${h.C}`,{id:h.T,key:b.k},E(h.v,b))},headingSetext:{t:Qe(tp),i:re.MAX,l:(h,E,b)=>({v:Sn(E,h[1],b),C:h[2]==="="?1:2,type:"heading"})},htmlComment:{t:wr(rp),i:re.HIGH,l:()=>({}),h:Ro},image:{t:ut(yF),i:re.HIGH,l:h=>({D:h[1],B:Yd(h[2]),F:h[3]}),h:(h,E,b)=>n("img",{key:b.k,alt:h.D||void 0,title:h.F||void 0,src:Ht(h.B)})},link:{t:it(gF),i:re.LOW,l:(h,E,b)=>({v:CF(E,h[1],b),B:Yd(h[2]),F:h[3]}),h:(h,E,b)=>n("a",{key:b.k,href:Ht(h.B),title:h.F},E(h.v,b))},linkAngleBraceStyleDetector:{t:it(zS),i:re.MAX,l:h=>({v:[{v:h[1],type:"text"}],B:h[1],type:"link"})},linkBareUrlDetector:{t:(h,E)=>E.N?null:it(HS)(h,E),i:re.MAX,l:h=>({v:[{v:h[1],type:"text"}],B:h[1],F:void 0,type:"link"})},linkMailtoDetector:{t:it(US),i:re.MAX,l(h){let E=h[1],b=h[1];return wS.test(b)||(b="mailto:"+b),{v:[{v:E.replace("mailto:",""),type:"text"}],B:b,type:"link"}}},orderedList:Wd(n,1),unorderedList:Wd(n,2),newlineCoalescer:{t:Qe(PS),i:re.LOW,l:Oo,h:()=>` -`},paragraph:{t:DF,i:re.LOW,l:_o,h:(h,E,b)=>n("p",{key:b.k},E(h.v,b))},ref:{t:it(WS),i:re.MAX,l:h=>(u[h[1]]={B:h[2],F:h[4]},{}),h:Ro},refImage:{t:ut(VS),i:re.MAX,l:h=>({D:h[1]||void 0,P:h[2]}),h:(h,E,b)=>n("img",{key:b.k,alt:h.D,src:Ht(u[h.P].B),title:u[h.P].F})},refLink:{t:it(KS),i:re.MAX,l:(h,E,b)=>({v:E(h[1],b),Z:E(h[0].replace(YS,"\\$1"),b),P:h[2]}),h:(h,E,b)=>u[h.P]?n("a",{key:b.k,href:Ht(u[h.P].B),title:u[h.P].F},E(h.v,b)):n("span",{key:b.k},E(h.Z,b))},table:{t:Qe(np),i:re.HIGH,l:vF,h:(h,E,b)=>n("table",{key:b.k},n("thead",null,n("tr",null,h.L.map(function(S,x){return n("th",{key:x,style:Kd(h,x)},E(S,b))}))),n("tbody",null,h.A.map(function(S,x){return n("tr",{key:x},S.map(function(B,I){return n("td",{key:I,style:Kd(h,I)},E(B,b))}))})))},tableSeparator:{t:function(h,E){return E.$?(E._=!0,QS.exec(h)):null},i:re.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:wr(lF),i:re.MIN,l:h=>({v:h[0].replace(MS,(E,b)=>t.namedCodesToUnicode[b]?t.namedCodesToUnicode[b]:E)}),h:h=>h.v},textBolded:{t:ut(aF),i:re.MED,l:(h,E,b)=>({v:E(h[2],b)}),h:(h,E,b)=>n("strong",{key:b.k},E(h.v,b))},textEmphasized:{t:ut(oF),i:re.LOW,l:(h,E,b)=>({v:E(h[2],b)}),h:(h,E,b)=>n("em",{key:b.k},E(h.v,b))},textEscaped:{t:ut(sF),i:re.HIGH,l:h=>({v:h[1],type:"text"})},textMarked:{t:ut(iF),i:re.LOW,l:_o,h:(h,E,b)=>n("mark",{key:b.k},E(h.v,b))},textStrikethroughed:{t:ut(uF),i:re.LOW,l:_o,h:(h,E,b)=>n("del",{key:b.k},E(h.v,b))}};t.disableParsingRawHTML!==!0&&(s.htmlBlock={t:wr(Io),i:re.HIGH,l(h,E,b){let[,S]=h[3].match(dF),x=new RegExp(`^${S}`,"gm"),B=h[3].replace(x,""),I=(j=B,bF.some(H=>H.test(j))?xF:Sn);var j;let w=h[1].toLowerCase(),k=SS.indexOf(w)!==-1;b.N=b.N||w==="a";let N=k?h[3]:I(E,B,b);return b.N=!1,{O:o(h[2]),v:N,G:k,H:k?w:h[1]}},h:(h,E,b)=>n(h.H,At({key:b.k},h.O),h.G?h.v:E(h.v,b))},s.htmlSelfClosing={t:wr(ko),i:re.HIGH,l:h=>({O:o(h[2]||""),H:h[1]}),h:(h,E,b)=>n(h.H,At({},h.O,{key:b.k}))});let p=function(h){let E=Object.keys(h);function b(S,x){let B=[],I="";for(;S;){let j=0;for(;j{let{children:t,options:r}=e,n=function(a,o){if(a==null)return{};var i,u,s={},p=Object.keys(a);for(u=0;u=0||(s[i]=a[i]);return s}(e,xS);return he(FF(t,r),n)};var yy=fe(Fn(),1),by=fe(Np(),1),Ey=fe(Hf(),1);l();c();d();l();c();d();l();c();d();l();c();d();l();c();d();l();c();d();var VV=__STORYBOOK_CHANNELS__,{Channel:qo,PostMessageTransport:KV,WebsocketTransport:YV,createBrowserChannel:b3,createPostMessageChannel:XV,createWebSocketChannel:JV}=__STORYBOOK_CHANNELS__;l();c();d();var rK=__STORYBOOK_CORE_EVENTS__,{CHANNEL_CREATED:nK,CONFIG_ERROR:E3,CURRENT_STORY_WAS_SET:A3,DOCS_PREPARED:v3,DOCS_RENDERED:D3,FORCE_REMOUNT:C3,FORCE_RE_RENDER:$o,GLOBALS_UPDATED:Tn,IGNORED_EXCEPTION:aK,NAVIGATE_URL:Uf,PLAY_FUNCTION_THREW_EXCEPTION:x3,PRELOAD_ENTRIES:S3,PREVIEW_BUILDER_PROGRESS:oK,PREVIEW_KEYDOWN:F3,REGISTER_SUBSCRIPTION:iK,REQUEST_WHATS_NEW_DATA:uK,RESET_STORY_ARGS:_n,RESULT_WHATS_NEW_DATA:sK,SELECT_STORY:lK,SET_CONFIG:cK,SET_CURRENT_STORY:w3,SET_GLOBALS:B3,SET_INDEX:T3,SET_STORIES:dK,SET_WHATS_NEW_CACHE:pK,SHARED_STATE_CHANGED:_3,SHARED_STATE_SET:O3,STORIES_COLLAPSE_ALL:fK,STORIES_EXPAND_ALL:hK,STORY_ARGS_UPDATED:On,STORY_CHANGED:R3,STORY_ERRORED:P3,STORY_INDEX_INVALIDATED:I3,STORY_MISSING:k3,STORY_PREPARED:N3,STORY_RENDERED:zf,STORY_RENDER_PHASE_CHANGED:L3,STORY_SPECIFIED:j3,STORY_THREW_EXCEPTION:M3,STORY_UNCHANGED:q3,TELEMETRY_ERROR:mK,TOGGLE_WHATS_NEW_NOTIFICATIONS:gK,UPDATE_GLOBALS:Gf,UPDATE_QUERY_PARAMS:$3,UPDATE_STORY_ARGS:Rn}=__STORYBOOK_CORE_EVENTS__;var H3=Object.create,Wf=Object.defineProperty,U3=Object.getOwnPropertyDescriptor,Vf=Object.getOwnPropertyNames,z3=Object.getPrototypeOf,G3=Object.prototype.hasOwnProperty,Ge=(e,t)=>function(){return t||(0,e[Vf(e)[0]])((t={exports:{}}).exports,t),t.exports},W3=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Vf(t))!G3.call(e,a)&&a!==r&&Wf(e,a,{get:()=>t[a],enumerable:!(n=U3(t,a))||n.enumerable});return e},Kf=(e,t,r)=>(r=e!=null?H3(z3(e)):{},W3(t||!e||!e.__esModule?Wf(r,"default",{value:e,enumerable:!0}):r,e));function Yf(){let e={setHandler:()=>{},send:()=>{}};return new qo({transport:e})}var V3=class{constructor(){this.getChannel=()=>{if(!this.channel){let e=Yf();return this.setChannel(e),e}return this.channel},this.getServerChannel=()=>{if(!this.serverChannel)throw new Error("Accessing non-existent serverChannel");return this.serverChannel},this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel,this.hasServerChannel=()=>!!this.serverChannel,this.setChannel=e=>{this.channel=e,this.resolve()},this.setServerChannel=e=>{this.serverChannel=e},this.promise=new Promise(e=>{this.resolve=()=>e(this.getChannel())})}},Ho="__STORYBOOK_ADDONS_PREVIEW";function K3(){return ue[Ho]||(ue[Ho]=new V3),ue[Ho]}var Pn=K3();var U0=fe(Fn(),1),Rr=fe(In(),1),oT=fe(O0(),1),iT=fe(Nn(),1);l();c();d();l();c();d();l();c();d();function zt(e){for(var t=[],r=1;r(e.PREVIEW_CLIENT_LOGGER="PREVIEW_CLIENT-LOGGER",e.PREVIEW_CHANNELS="PREVIEW_CHANNELS",e.PREVIEW_CORE_EVENTS="PREVIEW_CORE-EVENTS",e.PREVIEW_INSTRUMENTER="PREVIEW_INSTRUMENTER",e.PREVIEW_API="PREVIEW_API",e.PREVIEW_REACT_DOM_SHIM="PREVIEW_REACT-DOM-SHIM",e.PREVIEW_ROUTER="PREVIEW_ROUTER",e.PREVIEW_THEMING="PREVIEW_THEMING",e.RENDERER_HTML="RENDERER_HTML",e.RENDERER_PREACT="RENDERER_PREACT",e.RENDERER_REACT="RENDERER_REACT",e.RENDERER_SERVER="RENDERER_SERVER",e.RENDERER_SVELTE="RENDERER_SVELTE",e.RENDERER_VUE="RENDERER_VUE",e.RENDERER_VUE3="RENDERER_VUE3",e.RENDERER_WEB_COMPONENTS="RENDERER_WEB-COMPONENTS",e))(jB||{});l();c();d();var qn=fe(Uo(),1);var z0=fe($0(),1);var G0=fe(Bo(),1);var wX=(0,U0.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{}));var BX=Symbol("incompatible");var TX=Symbol("Deeply equal");var uT=zt` -CSF .story annotations deprecated; annotate story functions directly: -- StoryFn.story.name => StoryFn.storyName -- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators) -See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod. -`,_X=(0,z0.default)(()=>{},uT);var vt=(...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((a,o)=>(Object.entries(o).forEach(([i,u])=>{let s=a[i];Array.isArray(u)||typeof s>"u"?a[i]=u:(0,qn.default)(u)&&(0,qn.default)(s)?t[i]=!0:typeof u<"u"&&(a[i]=u)}),a),{});return Object.keys(t).forEach(a=>{let o=r.filter(Boolean).map(i=>i[a]).filter(i=>typeof i<"u");o.every(i=>(0,qn.default)(i))?n[a]=vt(...o):n[a]=o[o.length-1]}),n};var Go=(e,t,r)=>{let n=typeof e;switch(n){case"boolean":case"string":case"number":case"function":case"symbol":return{name:n}}return e?r.has(e)?(ze.warn(zt` - We've detected a cycle in arg '${t}'. Args should be JSON-serializable. - - Consider using the mapping feature or fully custom args: - - Mapping: https://storybook.js.org/docs/react/writing-stories/args#mapping-to-complex-arg-values - - Custom args: https://storybook.js.org/docs/react/essentials/controls#fully-custom-args - `),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?Go(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:(0,Rr.default)(e,a=>Go(a,t,new Set(r)))}):{name:"object",value:{}}},sT=e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,a=(0,Rr.default)(n,(i,u)=>({name:u,type:Go(i,`${t}.${u}`,new Set)})),o=(0,Rr.default)(r,(i,u)=>({name:u}));return vt(a,o,r)};sT.secondPass=!0;var H0=(e,t)=>Array.isArray(t)?t.includes(e):e.match(t),Ir=(e,t,r)=>!t&&!r?e:e&&(0,G0.default)(e,(n,a)=>{let o=n.name||a;return(!t||H0(o,t))&&(!r||!H0(o,r))}),lT=(e,t,r)=>{let{type:n,options:a}=e;if(n){if(r.color&&r.color.test(t)){let o=n.name;if(o==="string")return{control:{type:"color"}};o!=="enum"&&ze.warn(`Addon controls: Control of type color only supports string, received "${o}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(n.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:o}=n;return{control:{type:o?.length<=5?"radio":"select"},options:o}}case"function":case"symbol":return null;default:return{control:{type:a?"select":"object"}}}}},W0=e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:a=null,matchers:o={}}={}}}=e;if(!r)return t;let i=Ir(t,n,a),u=(0,Rr.default)(i,(s,p)=>s?.type&&lT(s,p,o));return vt(u,i)};W0.secondPass=!0;function Wo(e){return async(t,r,n)=>{await e.reduceRight((a,o)=>async()=>o(t,a,n),async()=>r(n))()}}function Pr(e,t){return e.map(r=>r.default?.[t]??r[t]).filter(Boolean)}function Ln(e,t,r={}){return Pr(e,t).reduce((n,a)=>r.reverseFileOrder?[...a,...n]:[...n,...a],[])}function jn(e,t){return Object.assign({},...Pr(e,t))}function Mn(e,t){return Pr(e,t).pop()}function Vo(e){let t=Ln(e,"argTypesEnhancers"),r=Pr(e,"runStep");return{parameters:vt(...Pr(e,"parameters")),decorators:Ln(e,"decorators",{reverseFileOrder:!(ue.FEATURES?.legacyDecoratorFileOrder??!1)}),args:jn(e,"args"),argsEnhancers:Ln(e,"argsEnhancers"),argTypes:jn(e,"argTypes"),argTypesEnhancers:[...t.filter(n=>!n.secondPass),...t.filter(n=>n.secondPass)],globals:jn(e,"globals"),globalTypes:jn(e,"globalTypes"),loaders:Ln(e,"loaders"),render:Mn(e,"render"),renderToCanvas:Mn(e,"renderToCanvas"),renderToDOM:Mn(e,"renderToDOM"),applyDecorators:Mn(e,"applyDecorators"),runStep:Wo(r)}}var OX=Vo([]);var a8=fe(Nn(),1),o8=fe(vi(),1);l();c();d();var u8=fe(Nn(),1);var s8=fe(vi(),1),l8=fe(Uo(),1),gm=Ge({"../../node_modules/entities/lib/maps/entities.json"(e,t){t.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` -`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}}}),c8=Ge({"../../node_modules/entities/lib/maps/legacy.json"(e,t){t.exports={Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",AElig:"\xC6",aelig:"\xE6",Agrave:"\xC0",agrave:"\xE0",amp:"&",AMP:"&",Aring:"\xC5",aring:"\xE5",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",brvbar:"\xA6",Ccedil:"\xC7",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",COPY:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Egrave:"\xC8",egrave:"\xE8",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",GT:">",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",iexcl:"\xA1",Igrave:"\xCC",igrave:"\xEC",iquest:"\xBF",Iuml:"\xCF",iuml:"\xEF",laquo:"\xAB",lt:"<",LT:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",Ntilde:"\xD1",ntilde:"\xF1",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Ograve:"\xD2",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",Oslash:"\xD8",oslash:"\xF8",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',QUOT:'"',raquo:"\xBB",reg:"\xAE",REG:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",THORN:"\xDE",thorn:"\xFE",times:"\xD7",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Ugrave:"\xD9",ugrave:"\xF9",uml:"\xA8",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}}}),ym=Ge({"../../node_modules/entities/lib/maps/xml.json"(e,t){t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}}),d8=Ge({"../../node_modules/entities/lib/maps/decode.json"(e,t){t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}}),p8=Ge({"../../node_modules/entities/lib/decode_codepoint.js"(e){var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0});var r=t(d8()),n=String.fromCodePoint||function(o){var i="";return o>65535&&(o-=65536,i+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),i+=String.fromCharCode(o),i};function a(o){return o>=55296&&o<=57343||o>1114111?"\uFFFD":(o in r.default&&(o=r.default[o]),n(o))}e.default=a}}),hm=Ge({"../../node_modules/entities/lib/decode.js"(e){var t=e&&e.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var r=t(gm()),n=t(c8()),a=t(ym()),o=t(p8()),i=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=u(a.default),e.decodeHTMLStrict=u(r.default);function u(y){var A=p(y);return function(m){return String(m).replace(i,A)}}var s=function(y,A){return y1?A(B):B.charCodeAt(0)).toString(16).toUpperCase()+";"}function h(B,I){return function(j){return j.replace(I,function(w){return B[w]}).replace(y,m)}}var E=new RegExp(a.source+"|"+y.source,"g");function b(B){return B.replace(E,m)}e.escape=b;function S(B){return B.replace(a,m)}e.escapeUTF8=S;function x(B){return function(I){return I.replace(E,function(j){return B[j]||m(j)})}}}}),f8=Ge({"../../node_modules/entities/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=hm(),r=mm();function n(s,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(s)}e.decode=n;function a(s,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(s)}e.decodeStrict=a;function o(s,p){return(!p||p<=0?r.encodeXML:r.encodeHTML)(s)}e.encode=o;var i=mm();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return i.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return i.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return i.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return i.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return i.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return i.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return i.encodeHTML}});var u=hm();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return u.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return u.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return u.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return u.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return u.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return u.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return u.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return u.decodeXML}})}}),h8=Ge({"../../node_modules/ansi-to-html/lib/ansi_to_html.js"(e,t){function r(R,_){if(!(R instanceof _))throw new TypeError("Cannot call a class as a function")}function n(R,_){for(var q=0;q<_.length;q++){var G=_[q];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(R,G.key,G)}}function a(R,_,q){return _&&n(R.prototype,_),q&&n(R,q),R}function o(R){if(typeof Symbol>"u"||R[Symbol.iterator]==null){if(Array.isArray(R)||(R=i(R))){var _=0,q=function(){};return{s:q,n:function(){return _>=R.length?{done:!0}:{done:!1,value:R[_++]}},e:function(se){throw se},f:q}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var G,X=!0,K=!1,Z;return{s:function(){G=R[Symbol.iterator]()},n:function(){var se=G.next();return X=se.done,se},e:function(se){K=!0,Z=se},f:function(){try{!X&&G.return!=null&&G.return()}finally{if(K)throw Z}}}}function i(R,_){if(R){if(typeof R=="string")return u(R,_);var q=Object.prototype.toString.call(R).slice(8,-1);if(q==="Object"&&R.constructor&&(q=R.constructor.name),q==="Map"||q==="Set")return Array.from(q);if(q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(q))return u(R,_)}}function u(R,_){(_==null||_>R.length)&&(_=R.length);for(var q=0,G=new Array(_);q<_;q++)G[q]=R[q];return G}var s=f8(),p={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:y()};function y(){var R={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return B(0,5).forEach(function(_){B(0,5).forEach(function(q){B(0,5).forEach(function(G){return A(_,q,G,R)})})}),B(0,23).forEach(function(_){var q=_+232,G=m(_*10+8);R[q]="#"+G+G+G}),R}function A(R,_,q,G){var X=16+R*36+_*6+q,K=R>0?R*40+55:0,Z=_>0?_*40+55:0,se=q>0?q*40+55:0;G[X]=h([K,Z,se])}function m(R){for(var _=R.toString(16);_.length<2;)_="0"+_;return _}function h(R){var _=[],q=o(R),G;try{for(q.s();!(G=q.n()).done;){var X=G.value;_.push(m(X))}}catch(K){q.e(K)}finally{q.f()}return"#"+_.join("")}function E(R,_,q,G){var X;return _==="text"?X=w(q,G):_==="display"?X=S(R,q,G):_==="xterm256"?X=H(R,G.colors[q]):_==="rgb"&&(X=b(R,q)),X}function b(R,_){_=_.substring(2).slice(0,-1);var q=+_.substr(0,2),G=_.substring(5).split(";"),X=G.map(function(K){return("0"+Number(K).toString(16)).substr(-2)}).join("");return N(R,(q===38?"color:#":"background-color:#")+X)}function S(R,_,q){_=parseInt(_,10);var G={"-1":function(){return"
"},0:function(){return R.length&&x(R)},1:function(){return k(R,"b")},3:function(){return k(R,"i")},4:function(){return k(R,"u")},8:function(){return N(R,"display:none")},9:function(){return k(R,"strike")},22:function(){return N(R,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return U(R,"i")},24:function(){return U(R,"u")},39:function(){return H(R,q.fg)},49:function(){return V(R,q.bg)},53:function(){return N(R,"text-decoration:overline")}},X;return G[_]?X=G[_]():4<_&&_<7?X=k(R,"blink"):29<_&&_<38?X=H(R,q.colors[_-30]):39<_&&_<48?X=V(R,q.colors[_-40]):89<_&&_<98?X=H(R,q.colors[8+(_-90)]):99<_&&_<108&&(X=V(R,q.colors[8+(_-100)])),X}function x(R){var _=R.slice(0);return R.length=0,_.reverse().map(function(q){return""}).join("")}function B(R,_){for(var q=[],G=R;G<=_;G++)q.push(G);return q}function I(R){return function(_){return(R===null||_.category!==R)&&R!=="all"}}function j(R){R=parseInt(R,10);var _=null;return R===0?_="all":R===1?_="bold":2")}function N(R,_){return k(R,"span",_)}function H(R,_){return k(R,"span","color:"+_)}function V(R,_){return k(R,"span","background-color:"+_)}function U(R,_){var q;if(R.slice(-1)[0]===_&&(q=R.pop()),q)return""}function ee(R,_,q){var G=!1,X=3;function K(){return""}function Z(ie,Ee){return q("xterm256",Ee),""}function se(ie){return _.newline?q("display",-1):q("text",ie),""}function Pe(ie,Ee){G=!0,Ee.trim().length===0&&(Ee="0"),Ee=Ee.trimRight(";").split(";");var Yr=o(Ee),eu;try{for(Yr.s();!(eu=Yr.n()).done;){var zy=eu.value;q("display",zy)}}catch(Gy){Yr.e(Gy)}finally{Yr.f()}return""}function Ie(ie){return q("text",ie),""}function J(ie){return q("rgb",ie),""}var Me=[{pattern:/^\x08+/,sub:K},{pattern:/^\x1b\[[012]?K/,sub:K},{pattern:/^\x1b\[\(B/,sub:K},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:J},{pattern:/^\x1b\[38;5;(\d+)m/,sub:Z},{pattern:/^\n/,sub:se},{pattern:/^\r+\n/,sub:se},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Pe},{pattern:/^\x1b\[\d?J/,sub:K},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:K},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:K},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:Ie}];function T(ie,Ee){Ee>X&&G||(G=!1,R=R.replace(ie.pattern,ie.sub))}var P=[],L=R,O=L.length;e:for(;O>0;){for(var $=0,z=0,pe=Me.length;z(e.MAIN="MAIN",e.NOPREVIEW="NOPREVIEW",e.PREPARING_STORY="PREPARING_STORY",e.PREPARING_DOCS="PREPARING_DOCS",e.ERROR="ERROR",e))(g8||{});var NQ=new m8.default({escapeXML:!0});var{document:LQ}=ue;var{FEATURES:YQ}=ue;l();c();d();var Ay=fe(In(),1);l();c();d();var C8=fe(In(),1),x8=fe(wm(),1);var S8=(e=>(e.JAVASCRIPT="JavaScript",e.FLOW="Flow",e.TYPESCRIPT="TypeScript",e.UNKNOWN="Unknown",e))(S8||{});var Bm="storybook/docs",Bee=`${Bm}/panel`;var F8=`${Bm}/snippet-rendered`,Tm=(e=>(e.AUTO="auto",e.CODE="code",e.DYNAMIC="dynamic",e))(Tm||{});l();c();d();l();c();d();var w8=Object.create,_m=Object.defineProperty,B8=Object.getOwnPropertyDescriptor,Om=Object.getOwnPropertyNames,T8=Object.getPrototypeOf,_8=Object.prototype.hasOwnProperty,Ne=(e,t)=>function(){return t||(0,e[Om(e)[0]])((t={exports:{}}).exports,t),t.exports},O8=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Om(t))!_8.call(e,a)&&a!==r&&_m(e,a,{get:()=>t[a],enumerable:!(n=B8(t,a))||n.enumerable});return e},ea=(e,t,r)=>(r=e!=null?w8(T8(e)):{},O8(t||!e||!e.__esModule?_m(r,"default",{value:e,enumerable:!0}):r,e)),R8=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],P8=["detail"];function Rm(e){let t=R8.filter(r=>e[r]!==void 0).reduce((r,n)=>({...r,[n]:e[n]}),{});return e instanceof CustomEvent&&P8.filter(r=>e[r]!==void 0).forEach(r=>{t[r]=e[r]}),t}var Vm=fe(Fn(),1),jm=Ne({"node_modules/has-symbols/shams.js"(e,t){"use strict";t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var n={},a=Symbol("test"),o=Object(a);if(typeof a=="string"||Object.prototype.toString.call(a)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var i=42;n[a]=i;for(a in n)return!1;if(typeof Object.keys=="function"&&Object.keys(n).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0)return!1;var u=Object.getOwnPropertySymbols(n);if(u.length!==1||u[0]!==a||!Object.prototype.propertyIsEnumerable.call(n,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(n,a);if(s.value!==i||s.enumerable!==!0)return!1}return!0}}}),Mm=Ne({"node_modules/has-symbols/index.js"(e,t){"use strict";var r=typeof Symbol<"u"&&Symbol,n=jm();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),I8=Ne({"node_modules/function-bind/implementation.js"(e,t){"use strict";var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,a=Object.prototype.toString,o="[object Function]";t.exports=function(u){var s=this;if(typeof s!="function"||a.call(s)!==o)throw new TypeError(r+s);for(var p=n.call(arguments,1),y,A=function(){if(this instanceof y){var S=s.apply(this,p.concat(n.call(arguments)));return Object(S)===S?S:this}else return s.apply(u,p.concat(n.call(arguments)))},m=Math.max(0,s.length-p.length),h=[],E=0;E"u"?r:A(Uint8Array),E={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":y?A([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":m,"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":m,"%AsyncIteratorPrototype%":m,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":m,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y?A(A([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!y?r:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!y?r:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y?A(""[Symbol.iterator]()):r,"%Symbol%":y?Symbol:r,"%SyntaxError%":n,"%ThrowTypeError%":p,"%TypedArray%":h,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},b=function Q(Y){var R;if(Y==="%AsyncFunction%")R=i("async function () {}");else if(Y==="%GeneratorFunction%")R=i("function* () {}");else if(Y==="%AsyncGeneratorFunction%")R=i("async function* () {}");else if(Y==="%AsyncGenerator%"){var _=Q("%AsyncGeneratorFunction%");_&&(R=_.prototype)}else if(Y==="%AsyncIteratorPrototype%"){var q=Q("%AsyncGenerator%");q&&(R=A(q.prototype))}return E[Y]=R,R},S={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=Fi(),B=k8(),I=x.call(Function.call,Array.prototype.concat),j=x.call(Function.apply,Array.prototype.splice),w=x.call(Function.call,String.prototype.replace),k=x.call(Function.call,String.prototype.slice),N=x.call(Function.call,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,U=function(Y){var R=k(Y,0,1),_=k(Y,-1);if(R==="%"&&_!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(_==="%"&&R!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var q=[];return w(Y,H,function(G,X,K,Z){q[q.length]=K?w(Z,V,"$1"):X||G}),q},ee=function(Y,R){var _=Y,q;if(B(S,_)&&(q=S[_],_="%"+q[0]+"%"),B(E,_)){var G=E[_];if(G===m&&(G=b(_)),typeof G>"u"&&!R)throw new o("intrinsic "+Y+" exists, but is not available. Please file an issue!");return{alias:q,name:_,value:G}}throw new n("intrinsic "+Y+" does not exist!")};t.exports=function(Y,R){if(typeof Y!="string"||Y.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof R!="boolean")throw new o('"allowMissing" argument must be a boolean');if(N(/^%?[^%]*%?$/,Y)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var _=U(Y),q=_.length>0?_[0]:"",G=ee("%"+q+"%",R),X=G.name,K=G.value,Z=!1,se=G.alias;se&&(q=se[0],j(_,I([0,1],se)));for(var Pe=1,Ie=!0;Pe<_.length;Pe+=1){var J=_[Pe],Me=k(J,0,1),T=k(J,-1);if((Me==='"'||Me==="'"||Me==="`"||T==='"'||T==="'"||T==="`")&&Me!==T)throw new n("property names with quotes must have matching quotes");if((J==="constructor"||!Ie)&&(Z=!0),q+="."+J,X="%"+q+"%",B(E,X))K=E[X];else if(K!=null){if(!(J in K)){if(!R)throw new o("base intrinsic for "+Y+" exists, but the property is not available.");return}if(u&&Pe+1>=_.length){var P=u(K,J);Ie=!!P,Ie&&"get"in P&&!("originalValue"in P.get)?K=P.get:K=K[J]}else Ie=B(K,J),K=K[J];Ie&&!Z&&(E[X]=K)}}return K}}}),N8=Ne({"node_modules/call-bind/index.js"(e,t){"use strict";var r=Fi(),n=qm(),a=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||r.call(o,a),u=n("%Object.getOwnPropertyDescriptor%",!0),s=n("%Object.defineProperty%",!0),p=n("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}t.exports=function(m){var h=i(r,o,arguments);if(u&&s){var E=u(h,"length");E.configurable&&s(h,"length",{value:1+p(0,m.length-(arguments.length-1))})}return h};var y=function(){return i(r,a,arguments)};s?s(t.exports,"apply",{value:y}):t.exports.apply=y}}),L8=Ne({"node_modules/call-bind/callBound.js"(e,t){"use strict";var r=qm(),n=N8(),a=n(r("String.prototype.indexOf"));t.exports=function(i,u){var s=r(i,!!u);return typeof s=="function"&&a(i,".prototype.")>-1?n(s):s}}}),j8=Ne({"node_modules/has-tostringtag/shams.js"(e,t){"use strict";var r=jm();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),M8=Ne({"node_modules/is-regex/index.js"(e,t){"use strict";var r=L8(),n=j8()(),a,o,i,u;n&&(a=r("Object.prototype.hasOwnProperty"),o=r("RegExp.prototype.exec"),i={},s=function(){throw i},u={toString:s,valueOf:s},typeof Symbol.toPrimitive=="symbol"&&(u[Symbol.toPrimitive]=s));var s,p=r("Object.prototype.toString"),y=Object.getOwnPropertyDescriptor,A="[object RegExp]";t.exports=n?function(h){if(!h||typeof h!="object")return!1;var E=y(h,"lastIndex"),b=E&&a(E,"value");if(!b)return!1;try{o(h,u)}catch(S){return S===i}}:function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:p(h)===A}}}),q8=Ne({"node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(a){if(!a)return!1;var o=r.call(a);return o==="[object Function]"||typeof a=="function"&&o!=="[object RegExp]"||typeof window<"u"&&(a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt)}}}),$8=Ne({"node_modules/is-symbol/index.js"(e,t){"use strict";var r=Object.prototype.toString,n=Mm()();n?(a=Symbol.prototype.toString,o=/^Symbol\(.*\)$/,i=function(s){return typeof s.valueOf()!="symbol"?!1:o.test(a.call(s))},t.exports=function(s){if(typeof s=="symbol")return!0;if(r.call(s)!=="[object Symbol]")return!1;try{return i(s)}catch{return!1}}):t.exports=function(s){return!1};var a,o,i}}),H8=ea(M8()),U8=ea(q8()),z8=ea($8());function G8(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var W8=typeof window=="object"&&window&&window.Object===Object&&window,V8=W8,K8=typeof self=="object"&&self&&self.Object===Object&&self,Y8=V8||K8||Function("return this")(),wi=Y8,X8=wi.Symbol,er=X8,$m=Object.prototype,J8=$m.hasOwnProperty,Q8=$m.toString,zr=er?er.toStringTag:void 0;function Z8(e){var t=J8.call(e,zr),r=e[zr];try{e[zr]=void 0;var n=!0}catch{}var a=Q8.call(e);return n&&(t?e[zr]=r:delete e[zr]),a}var eO=Z8,tO=Object.prototype,rO=tO.toString;function nO(e){return rO.call(e)}var aO=nO,oO="[object Null]",iO="[object Undefined]",Pm=er?er.toStringTag:void 0;function uO(e){return e==null?e===void 0?iO:oO:Pm&&Pm in Object(e)?eO(e):aO(e)}var Hm=uO;function sO(e){return e!=null&&typeof e=="object"}var lO=sO,cO="[object Symbol]";function dO(e){return typeof e=="symbol"||lO(e)&&Hm(e)==cO}var Bi=dO;function pO(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r-1}var D6=v6;function C6(e,t){var r=this.__data__,n=ra(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var x6=C6;function rr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{let t=null,r=!1,n=!1,a=!1,o="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let i=0;iuR(e).replace(/\n\s*/g,"").trim()),lR=function(t,r){let n=r.slice(0,r.indexOf("{")),a=r.slice(r.indexOf("{"));if(n.includes("=>")||n.includes("function"))return r;let o=n;return o=o.replace(t,"function"),o+a},cR=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,dR=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/);function Km(e){if(!ta(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=Rm(t),r=!0),t=Object.keys(t).reduce((n,a)=>{try{t[a]&&t[a].toJSON,n[a]=t[a]}catch{r=!0}return n},{}),r?t:e}var pR=function(t){let r,n,a,o;return function(u,s){try{if(u==="")return o=[],r=new Map([[s,"[]"]]),n=new Map,a=[],s;let p=n.get(this)||this;for(;a.length&&p!==a[0];)a.shift(),o.pop();if(typeof s=="boolean")return s;if(s===void 0)return t.allowUndefined?"_undefined_":void 0;if(s===null)return null;if(typeof s=="number")return s===-1/0?"_-Infinity_":s===1/0?"_Infinity_":Number.isNaN(s)?"_NaN_":s;if(typeof s=="bigint")return`_bigint_${s.toString()}`;if(typeof s=="string")return cR.test(s)?t.allowDate?`_date_${s}`:void 0:s;if((0,H8.default)(s))return t.allowRegExp?`_regexp_${s.flags}|${s.source}`:void 0;if((0,U8.default)(s)){if(!t.allowFunction)return;let{name:A}=s,m=s.toString();return m.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${A}|${(()=>{}).toString()}`:`_function_${A}|${sR(lR(u,m))}`}if((0,z8.default)(s)){if(!t.allowSymbol)return;let A=Symbol.keyFor(s);return A!==void 0?`_gsymbol_${A}`:`_symbol_${s.toString().slice(7,-1)}`}if(a.length>=t.maxDepth)return Array.isArray(s)?`[Array(${s.length})]`:"[Object]";if(s===this)return`_duplicate_${JSON.stringify(o)}`;if(s instanceof Error&&t.allowError)return{__isConvertedError__:!0,errorProperties:{...s.cause?{cause:s.cause}:{},...s,name:s.name,message:s.message,stack:s.stack,"_constructor-name_":s.constructor.name}};if(s.constructor&&s.constructor.name&&s.constructor.name!=="Object"&&!Array.isArray(s)&&!t.allowClass)return;let y=r.get(s);if(!y){let A=Array.isArray(s)?s:Km(s);if(s.constructor&&s.constructor.name&&s.constructor.name!=="Object"&&!Array.isArray(s)&&t.allowClass)try{Object.assign(A,{"_constructor-name_":s.constructor.name})}catch{}return o.push(u),a.unshift(A),r.set(s,JSON.stringify(o)),s!==A&&n.set(s,A),A}return`_duplicate_${y}`}catch{return}}},fR=function reviver(options){let refs=[],root;return function revive(key,value){if(key===""&&(root=value,refs.forEach(({target:e,container:t,replacement:r})=>{let n=dR(r)?JSON.parse(r):r.split(".");n.length===0?t[e]=root:t[e]=iR(root,n)})),key==="_constructor-name_")return value;if(ta(value)&&value.__isConvertedError__){let{message:e,...t}=value.errorProperties,r=new Error(e);return Object.assign(r,t),r}if(ta(value)&&value["_constructor-name_"]&&options.allowFunction){let e=value["_constructor-name_"];if(e!=="Object"){let t=new Function(`return function ${e.replace(/[^a-zA-Z0-9$_]+/g,"")}(){}`)();Object.setPrototypeOf(value,new t)}return delete value["_constructor-name_"],value}if(typeof value=="string"&&value.startsWith("_function_")&&options.allowFunction){let[,name,source]=value.match(/_function_([^|]*)\|(.*)/)||[],sourceSanitized=source.replace(/[(\(\))|\\| |\]|`]*$/,"");if(!options.lazyEval)return eval(`(${sourceSanitized})`);let result=(...args)=>{let f=eval(`(${sourceSanitized})`);return f(...args)};return Object.defineProperty(result,"toString",{value:()=>sourceSanitized}),Object.defineProperty(result,"name",{value:name}),result}if(typeof value=="string"&&value.startsWith("_regexp_")&&options.allowRegExp){let[,e,t]=value.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(t,e)}return typeof value=="string"&&value.startsWith("_date_")&&options.allowDate?new Date(value.replace("_date_","")):typeof value=="string"&&value.startsWith("_duplicate_")?(refs.push({target:key,container:this,replacement:value.replace(/^_duplicate_/,"")}),null):typeof value=="string"&&value.startsWith("_symbol_")&&options.allowSymbol?Symbol(value.replace("_symbol_","")):typeof value=="string"&&value.startsWith("_gsymbol_")&&options.allowSymbol?Symbol.for(value.replace("_gsymbol_","")):typeof value=="string"&&value==="_-Infinity_"?-1/0:typeof value=="string"&&value==="_Infinity_"?1/0:typeof value=="string"&&value==="_NaN_"?NaN:typeof value=="string"&&value.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(value.replace("_bigint_","")):value}},Ym={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},hR=(e,t={})=>{let r={...Ym,...t};return JSON.stringify(Km(e),pR(r),t.space)},mR=()=>{let e=new Map;return function t(r){ta(r)&&Object.entries(r).forEach(([n,a])=>{a==="_undefined_"?r[n]=void 0:e.get(a)||(e.set(a,!0),t(a))}),Array.isArray(r)&&r.forEach((n,a)=>{n==="_undefined_"?(e.set(n,!0),r[a]=void 0):e.get(n)||(e.set(n,!0),t(n))})}},jee=(e,t={})=>{let r={...Ym,...t},n=JSON.parse(e,fR(r));return mR()(n),n};var vy=fe(sg(),1);var O4=M.div(Tt,({theme:e})=>({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:de(.3,e.color.defaultText),fontSize:e.typography.size.s2})),Dy=e=>g.createElement(O4,{...e,className:"docblock-emptyblock sb-unstyled"}),R4=M(Jr)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),P4=M.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),ca=M.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${Au}`]:{margin:0}})),I4=()=>g.createElement(P4,null,g.createElement(ca,null),g.createElement(ca,{style:{width:"80%"}}),g.createElement(ca,{style:{width:"30%"}}),g.createElement(ca,{style:{width:"80%"}})),Cy=({isLoading:e,error:t,language:r,code:n,dark:a,format:o,...i})=>{if(e)return g.createElement(I4,null);if(t)return g.createElement(Dy,null,t);let u=g.createElement(R4,{bordered:!0,copyable:!0,format:o,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof a>"u")return u;let s=a?Ia.dark:Ia.light;return g.createElement(bu,{theme:Eu(s)},u)};Cy.defaultProps={format:!1};var ye=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,Yi=600,wre=M.h1(Tt,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Yi}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),Bre=M.h2(Tt,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Yi}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:de(.25,e.color.defaultText)})),Tre=M.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?de(.1,e.color.defaultText):de(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[ye("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[ye("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[ye("div")]:t,[ye("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[ye("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[ye("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[ye("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[ye("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[ye("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[ye("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[ye("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[ye("img")]:{maxWidth:"100%"},[ye("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[ye("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[ye("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[ye("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[ye("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[ye("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[ye("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),_re=M.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Yi}px)`]:{}}));var fa=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),k4=({zoom:e,resetZoom:t})=>g.createElement(g.Fragment,null,g.createElement(ht,{key:"zoomin",onClick:r=>{r.preventDefault(),e(.8)},title:"Zoom in"},g.createElement(Te,{icon:"zoom"})),g.createElement(ht,{key:"zoomout",onClick:r=>{r.preventDefault(),e(1.25)},title:"Zoom out"},g.createElement(Te,{icon:"zoomout"})),g.createElement(ht,{key:"zoomreset",onClick:r=>{r.preventDefault(),t()},title:"Reset zoom"},g.createElement(Te,{icon:"zoomreset"}))),N4=M(Da)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),L4=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:a,...o})=>g.createElement(N4,{...o},g.createElement(nu,{key:"left"},e?[1,2,3].map(i=>g.createElement(xa,{key:i})):g.createElement(k4,{zoom:n,resetZoom:a}))),j4=lr({scale:1}),{window:Ore}=ue;var{PREVIEW_URL:Rre}=ue;var M4=M.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded"})=>e==="centered"||e==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:e="padded"})=>e==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),ry=M(Cy)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":$e(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":$e(.05,e.background.content)}})),q4=M.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...fa(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),$4=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:g.createElement(ry,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:g.createElement(ry,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function H4(e){if(ru.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var U4=M(L4)({position:"absolute",top:0,left:0,right:0,height:40}),z4=M.div({overflow:"hidden",position:"relative"}),G4=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:o=!1,isExpanded:i=!1,additionalActions:u,className:s,layout:p="padded",...y})=>{let[A,m]=ne(i),{source:h,actionItem:E}=$4(a,A,m),[b,S]=ne(1),x=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),B=a?[E]:[],[I,j]=ne(u?[...u]:[]),w=[...B,...I],{window:k}=ue,N=ge(async V=>{let{createCopyToClipboardFunction:U}=await Promise.resolve().then(()=>(cr(),yu));U()},[]),H=V=>{let U=k.getSelection();U&&U.type==="Range"||(V.preventDefault(),I.filter(ee=>ee.title==="Copied").length===0&&N(h.props.code).then(()=>{j([...I,{title:"Copied",onClick:()=>{}}]),k.setTimeout(()=>j(I.filter(ee=>ee.title!=="Copied")),1500)}))};return g.createElement(q4,{withSource:a,withToolbar:o,...y,className:x.join(" ")},o&&g.createElement(U4,{isLoading:e,border:!0,zoom:V=>S(b*V),resetZoom:()=>S(1),storyId:H4(n),baseUrl:"./iframe.html"}),g.createElement(j4.Provider,{value:{scale:b}},g.createElement(z4,{className:"docs-story",onCopyCapture:a&&H},g.createElement(M4,{isColumn:t||!Array.isArray(n),columns:r,layout:p},g.createElement(_a.Element,{scale:b},Array.isArray(n)?n.map((V,U)=>g.createElement("div",{key:U},V)):g.createElement("div",null,n))),g.createElement(Ea,{actionItems:w}))),a&&A&&h)},Pre=M(G4)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var W4=M.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Bt({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),V4=({tags:e})=>{let t=(e.params||[]).filter(o=>o.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:g.createElement(g.Fragment,null,g.createElement(W4,null,g.createElement("tbody",null,n&&g.createElement("tr",{key:"deprecated"},g.createElement("td",{colSpan:2},g.createElement("strong",null,"Deprecated"),": ",e.deprecated)),r&&t.map(o=>g.createElement("tr",{key:o.name},g.createElement("td",null,g.createElement("code",null,o.name)),g.createElement("td",null,o.description))),a&&g.createElement("tr",{key:"returns"},g.createElement("td",null,g.createElement("code",null,"Returns")),g.createElement("td",null,e.returns.description)))))},Gi=8,ny=M.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),K4=M.span(Bt,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),Y4=M.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),X4=M.div(Bt,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),J4=M.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),Q4=M(Te)({height:10,width:10,minWidth:10,marginLeft:4}),Z4=()=>g.createElement("span",null,"-"),xy=({text:e,simple:t})=>g.createElement(K4,{simple:t},e),e9=(0,yy.default)(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),t9=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return(0,by.default)(t)},ay=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,Gi)),r.map(n=>g.createElement(xy,{key:n,text:n===""?'""':n}))},r9=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,o]=ne(!1),[i,u]=ne(t||!1);if(r==null)return null;let s=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(s))return g.createElement(xy,{text:s});let p=t9(s),y=p.length;return y>Gi?g.createElement(ny,{isExpanded:i},ay(p,i),g.createElement(Y4,{onClick:()=>u(!i)},i?"Show less...":`Show ${y-Gi} more...`)):g.createElement(ny,null,ay(p))}return g.createElement(Ta,{closeOnOutsideClick:!0,placement:"bottom",visible:a,onVisibleChange:p=>{o(p)},tooltip:g.createElement(J4,{width:e9(n)},g.createElement(Jr,{language:"jsx",format:!1},n))},g.createElement(X4,{className:"sbdocs-expandable"},g.createElement("span",null,s),g.createElement(Q4,{icon:a?"arrowup":"arrowdown"})))},Hi=({value:e,initialExpandedArgs:t})=>e==null?g.createElement(Z4,null):g.createElement(r9,{value:e,initialExpandedArgs:t}),n9=M.label(({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:de(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${mr(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${mr(.05,e.appBorderColor)} 0 0 0 2px inset`,color:mr(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${mr(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px"}})),a9=e=>e==="true",o9=({name:e,value:t,onChange:r,onBlur:n,onFocus:a})=>{let o=ge(()=>r(!1),[r]);if(t===void 0)return g.createElement(_e.Button,{id:dr(e),onClick:o},"Set boolean");let i=Oe(e),u=typeof t=="string"?a9(t):t;return g.createElement(n9,{htmlFor:i,"aria-label":e},g.createElement("input",{id:i,type:"checkbox",onChange:s=>r(s.target.checked),checked:u,role:"switch",name:e,onBlur:n,onFocus:a}),g.createElement("span",{"aria-hidden":"true"},"False"),g.createElement("span",{"aria-hidden":"true"},"True"))},i9=e=>{let[t,r,n]=e.split("-"),a=new Date;return a.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),a},u9=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},s9=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),a=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${a}`},l9=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},c9=M.div(({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),d9=({name:e,value:t,onChange:r,onFocus:n,onBlur:a})=>{let[o,i]=ne(!0),u=Be(),s=Be();me(()=>{o!==!1&&(u&&u.current&&(u.current.value=s9(t)),s&&s.current&&(s.current.value=l9(t)))},[t]);let p=m=>{let h=i9(m.target.value),E=new Date(t);E.setFullYear(h.getFullYear(),h.getMonth(),h.getDate());let b=E.getTime();b&&r(b),i(!!b)},y=m=>{let h=u9(m.target.value),E=new Date(t);E.setHours(h.getHours()),E.setMinutes(h.getMinutes());let b=E.getTime();b&&r(b),i(!!b)},A=Oe(e);return g.createElement(c9,null,g.createElement(_e.Input,{type:"date",max:"9999-12-31",ref:u,id:`${A}-date`,name:`${A}-date`,onChange:p,onFocus:n,onBlur:a}),g.createElement(_e.Input,{type:"time",id:`${A}-time`,name:`${A}-time`,ref:s,onChange:y,onFocus:n,onBlur:a}),o?null:g.createElement("div",null,"invalid"))},p9=M.label({display:"flex"}),f9=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t};var h9=({name:e,value:t,onChange:r,min:n,max:a,step:o,onBlur:i,onFocus:u})=>{let[s,p]=ne(typeof t=="number"?t:""),[y,A]=ne(!1),[m,h]=ne(null),E=ge(x=>{p(x.target.value);let B=parseFloat(x.target.value);Number.isNaN(B)?h(new Error(`'${x.target.value}' is not a number`)):(r(B),h(null))},[r,h]),b=ge(()=>{p("0"),r(0),A(!0)},[A]),S=Be(null);return me(()=>{y&&S.current&&S.current.select()},[y]),me(()=>{s!==(typeof t=="number"?t:"")&&p(t)},[t]),!y&&t===void 0?g.createElement(_e.Button,{id:dr(e),onClick:b},"Set number"):g.createElement(p9,null,g.createElement(_e.Input,{ref:S,id:Oe(e),type:"number",onChange:E,size:"flex",placeholder:"Edit number...",value:s,valid:m?"error":null,autoFocus:y,name:e,min:n,max:a,step:o,onFocus:u,onBlur:i}))},Sy=(e,t)=>{let r=t&&Object.entries(t).find(([n,a])=>a===e);return r?r[0]:void 0},Wi=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],Fy=(e,t)=>e&&t&&e.map(r=>t[r]),m9=M.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}}),g9=M.span({}),y9=M.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),oy=({name:e,options:t,value:r,onChange:n,isInline:a})=>{if(!t)return ze.warn(`Checkbox with no options: ${e}`),g.createElement(g.Fragment,null,"-");let o=Wi(r,t),[i,u]=ne(o),s=y=>{let A=y.target.value,m=[...i];m.includes(A)?m.splice(m.indexOf(A),1):m.push(A),n(Fy(m,t)),u(m)};me(()=>{u(Wi(r,t))},[r]);let p=Oe(e);return g.createElement(m9,{isInline:a},Object.keys(t).map((y,A)=>{let m=`${p}-${A}`;return g.createElement(y9,{key:m,htmlFor:m},g.createElement("input",{type:"checkbox",id:m,name:m,value:y,onChange:s,checked:i?.includes(y)}),g.createElement(g9,null,y))}))},b9=M.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}}),E9=M.span({}),A9=M.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),iy=({name:e,options:t,value:r,onChange:n,isInline:a})=>{if(!t)return ze.warn(`Radio with no options: ${e}`),g.createElement(g.Fragment,null,"-");let o=Sy(r,t),i=Oe(e);return g.createElement(b9,{isInline:a},Object.keys(t).map((u,s)=>{let p=`${i}-${s}`;return g.createElement(A9,{key:p,htmlFor:p},g.createElement("input",{type:"radio",id:p,name:p,value:u,onChange:y=>n(t[y.currentTarget.value]),checked:u===o}),g.createElement(E9,null,u))}))},v9={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},wy=M.select(({theme:e})=>({...v9,boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}})),By=M.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),uy="Choose option...",D9=({name:e,value:t,options:r,onChange:n})=>{let a=u=>{n(r[u.currentTarget.value])},o=Sy(t,r)||uy,i=Oe(e);return g.createElement(By,null,g.createElement(Te,{icon:"arrowdown"}),g.createElement(wy,{id:i,value:o,onChange:a},g.createElement("option",{key:"no-selection",disabled:!0},uy),Object.keys(r).map(u=>g.createElement("option",{key:u,value:u},u))))},C9=({name:e,value:t,options:r,onChange:n})=>{let a=u=>{let s=Array.from(u.currentTarget.options).filter(p=>p.selected).map(p=>p.value);n(Fy(s,r))},o=Wi(t,r),i=Oe(e);return g.createElement(By,null,g.createElement(wy,{id:i,multiple:!0,value:o,onChange:a},Object.keys(r).map(u=>g.createElement("option",{key:u,value:u},u))))},sy=e=>{let{name:t,options:r}=e;return r?e.isMulti?g.createElement(C9,{...e}):g.createElement(D9,{...e}):(ze.warn(`Select with no options: ${t}`),g.createElement(g.Fragment,null,"-"))},x9=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[t?.[n]||String(n)]=n,r),{}):e,S9={check:oy,"inline-check":oy,radio:iy,"inline-radio":iy,select:sy,"multi-select":sy},ur=e=>{let{type:t="select",labels:r,argType:n}=e,a={...e,options:n?x9(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},o=S9[t];if(o)return g.createElement(o,{...a});throw new Error(`Unknown options type: ${t}`)},Xi="value",F9="key",w9="Error",B9="Object",T9="Array",_9="String",O9="Number",R9="Boolean",P9="Date",I9="Null",k9="Undefined",N9="Function",L9="Symbol",Ty="ADD_DELTA_TYPE",_y="REMOVE_DELTA_TYPE",Oy="UPDATE_DELTA_TYPE";function ft(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function Ry(e,t){let r=ft(e),n=ft(t);return(r==="Function"||n==="Function")&&n!==r}var Ji=class extends et{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&t&&typeof t.focus=="function"&&t.focus(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:a}=this.props,{inputRefKey:o,inputRefValue:i}=this.state,u={};if(!t){if(!o.value)return;u.key=o.value}u.newValue=r(!1,n,a,u.key,i.value),e(u)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:a,keyPath:o,deep:i}=this.props,u=he(r,{onClick:this.onSubmit}),s=he(n,{onClick:e}),p=a(Xi,o,i),y=he(p,{placeholder:"Value",ref:this.refInputValue}),A=null;if(!t){let m=a(F9,o,i);A=he(m,{placeholder:"Key",ref:this.refInputKey})}return g.createElement("span",{className:"rejt-add-value-node"},A,y,s,u)}};Ji.defaultProps={onlyValue:!1,addButtonElement:g.createElement("button",null,"+"),cancelButtonElement:g.createElement("button",null,"c")};var Py=class extends et{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={data:e.data,name:e.name,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,i=n[e];t(e,a,o,i).then(()=>{let u={keyPath:a,deep:o,key:e,oldValue:i,type:_y};n.splice(e,1),this.setState({data:n});let{onUpdate:s,onDeltaUpdate:p}=this.props;s(a[a.length-1],n),p(u)}).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r,nextDeep:n}=this.state,{beforeAddAction:a,logger:o}=this.props;a(t.length,r,n,e).then(()=>{let i=[...t,e];this.setState({data:i}),this.handleAddValueCancel();let{onUpdate:u,onDeltaUpdate:s}=this.props;u(r[r.length-1],i),s({type:Ty,keyPath:r,deep:n,key:i.length-1,newValue:e})}).catch(o.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:i,nextDeep:u}=this.state,s=o[e];a(e,i,u,s,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:p,onDeltaUpdate:y}=this.props;p(i[i.length-1],o),y({type:Oy,keyPath:i,deep:u,key:e,newValue:t,oldValue:s}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:a,readOnly:o,getStyle:i,dataType:u,minusMenuElement:s}=this.props,{minus:p,collapsed:y}=i(e,t,r,n,u),A=o(e,t,r,n,u),m=he(s,{onClick:a,className:"rejt-minus-menu",style:p});return g.createElement("span",{className:"rejt-collapsed"},g.createElement("span",{className:"rejt-collapsed-text",style:y,onClick:this.handleCollapseMode},"[...] ",t.length," ",t.length===1?"item":"items"),!A&&m)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:a,nextDeep:o}=this.state,{isCollapsed:i,handleRemove:u,onDeltaUpdate:s,readOnly:p,getStyle:y,dataType:A,addButtonElement:m,cancelButtonElement:h,editButtonElement:E,inputElementGenerator:b,textareaElementGenerator:S,minusMenuElement:x,plusMenuElement:B,beforeRemoveAction:I,beforeAddAction:j,beforeUpdateAction:w,logger:k,onSubmitValueParser:N}=this.props,{minus:H,plus:V,delimiter:U,ul:ee,addForm:Q}=y(e,t,r,n,A),Y=p(e,t,r,n,A),R=he(B,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:V}),_=he(x,{onClick:u,className:"rejt-minus-menu",style:H}),q=!0,G="[",X="]";return g.createElement("span",{className:"rejt-not-collapsed"},g.createElement("span",{className:"rejt-not-collapsed-delimiter",style:U},G),!a&&R,g.createElement("ul",{className:"rejt-not-collapsed-list",style:ee},t.map((K,Z)=>g.createElement(ha,{key:Z,name:Z.toString(),data:K,keyPath:r,deep:o,isCollapsed:i,handleRemove:this.handleRemoveItem(Z),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:p,getStyle:y,addButtonElement:m,cancelButtonElement:h,editButtonElement:E,inputElementGenerator:b,textareaElementGenerator:S,minusMenuElement:x,plusMenuElement:B,beforeRemoveAction:I,beforeAddAction:j,beforeUpdateAction:w,logger:k,onSubmitValueParser:N}))),!Y&&a&&g.createElement("div",{className:"rejt-add-form",style:Q},g.createElement(Ji,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:q,addButtonElement:m,cancelButtonElement:h,inputElementGenerator:b,keyPath:r,deep:n,onSubmitValueParser:N})),g.createElement("span",{className:"rejt-not-collapsed-delimiter",style:U},X),!Y&&_)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{dataType:o,getStyle:i}=this.props,u=t?this.renderCollapsed():this.renderNotCollapsed(),s=i(e,r,n,a,o);return g.createElement("div",{className:"rejt-array-node"},g.createElement("span",{onClick:this.handleCollapseMode},g.createElement("span",{className:"rejt-name",style:s.name},e," :"," ")),u)}};Py.defaultProps={keyPath:[],deep:0,minusMenuElement:g.createElement("span",null," - "),plusMenuElement:g.createElement("span",null," + ")};var Iy=class extends et{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:i,dataType:u}=this.props,s=i(r,n,a,o,u);e&&!s&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:i,deep:u}=this.state;if(!o)return;let s=n(!0,a,u,i,o.value);e({value:s,key:i}).then(()=>{Ry(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:i,readOnly:u,dataType:s,getStyle:p,editButtonElement:y,cancelButtonElement:A,textareaElementGenerator:m,minusMenuElement:h,keyPath:E}=this.props,b=p(e,i,n,a,s),S=null,x=null,B=u(e,i,n,a,s);if(r&&!B){let I=m(Xi,E,a,e,i,s),j=he(y,{onClick:this.handleEdit}),w=he(A,{onClick:this.handleCancelEdit}),k=he(I,{ref:this.refInput,defaultValue:i});S=g.createElement("span",{className:"rejt-edit-form",style:b.editForm},k," ",w,j),x=null}else{S=g.createElement("span",{className:"rejt-value",style:b.value,onClick:B?null:this.handleEditMode},t);let I=he(h,{onClick:o,className:"rejt-minus-menu",style:b.minus});x=B?null:I}return g.createElement("li",{className:"rejt-function-value-node",style:b.li},g.createElement("span",{className:"rejt-name",style:b.name},e," :"," "),S,x)}};Iy.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:g.createElement("button",null,"e"),cancelButtonElement:g.createElement("button",null,"c"),minusMenuElement:g.createElement("span",null," - ")};var ha=class extends et{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath,deep:e.deep}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:a,handleRemove:o,handleUpdateValue:i,onUpdate:u,onDeltaUpdate:s,readOnly:p,getStyle:y,addButtonElement:A,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:E,textareaElementGenerator:b,minusMenuElement:S,plusMenuElement:x,beforeRemoveAction:B,beforeAddAction:I,beforeUpdateAction:j,logger:w,onSubmitValueParser:k}=this.props,N=()=>!0,H=ft(e);switch(H){case w9:return g.createElement(Vi,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:u,onDeltaUpdate:s,readOnly:N,dataType:H,getStyle:y,addButtonElement:A,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:E,textareaElementGenerator:b,minusMenuElement:S,plusMenuElement:x,beforeRemoveAction:B,beforeAddAction:I,beforeUpdateAction:j,logger:w,onSubmitValueParser:k});case B9:return g.createElement(Vi,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:u,onDeltaUpdate:s,readOnly:p,dataType:H,getStyle:y,addButtonElement:A,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:E,textareaElementGenerator:b,minusMenuElement:S,plusMenuElement:x,beforeRemoveAction:B,beforeAddAction:I,beforeUpdateAction:j,logger:w,onSubmitValueParser:k});case T9:return g.createElement(Py,{data:e,name:t,isCollapsed:a,keyPath:r,deep:n,handleRemove:o,onUpdate:u,onDeltaUpdate:s,readOnly:p,dataType:H,getStyle:y,addButtonElement:A,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:E,textareaElementGenerator:b,minusMenuElement:S,plusMenuElement:x,beforeRemoveAction:B,beforeAddAction:I,beforeUpdateAction:j,logger:w,onSubmitValueParser:k});case _9:return g.createElement(pt,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:p,dataType:H,getStyle:y,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:E,minusMenuElement:S,logger:w,onSubmitValueParser:k});case O9:return g.createElement(pt,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:p,dataType:H,getStyle:y,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:E,minusMenuElement:S,logger:w,onSubmitValueParser:k});case R9:return g.createElement(pt,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:p,dataType:H,getStyle:y,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:E,minusMenuElement:S,logger:w,onSubmitValueParser:k});case P9:return g.createElement(pt,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:N,dataType:H,getStyle:y,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:E,minusMenuElement:S,logger:w,onSubmitValueParser:k});case I9:return g.createElement(pt,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:p,dataType:H,getStyle:y,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:E,minusMenuElement:S,logger:w,onSubmitValueParser:k});case k9:return g.createElement(pt,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:p,dataType:H,getStyle:y,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:E,minusMenuElement:S,logger:w,onSubmitValueParser:k});case N9:return g.createElement(Iy,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:p,dataType:H,getStyle:y,cancelButtonElement:m,editButtonElement:h,textareaElementGenerator:b,minusMenuElement:S,logger:w,onSubmitValueParser:k});case L9:return g.createElement(pt,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:o,handleUpdateValue:i,readOnly:N,dataType:H,getStyle:y,cancelButtonElement:m,editButtonElement:h,inputElementGenerator:E,minusMenuElement:S,logger:w,onSubmitValueParser:k});default:return null}}};ha.defaultProps={keyPath:[],deep:0};var Vi=class extends et{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath,e.name];this.state={name:e.name,data:e.data,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:a}=this.props,o=n.length;a(n[o-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n,nextDeep:a}=this.state,{beforeAddAction:o,logger:i}=this.props;o(e,n,a,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:u,onDeltaUpdate:s}=this.props;u(n[n.length-1],r),s({type:Ty,keyPath:n,deep:a,key:e,newValue:t})}).catch(i.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:a,nextDeep:o}=this.state,i=n[e];t(e,a,o,i).then(()=>{let u={keyPath:a,deep:o,key:e,oldValue:i,type:_y};delete n[e],this.setState({data:n});let{onUpdate:s,onDeltaUpdate:p}=this.props;s(a[a.length-1],n),p(u)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:a}=this.props,{data:o,keyPath:i,nextDeep:u}=this.state,s=o[e];a(e,i,u,s,t).then(()=>{o[e]=t,this.setState({data:o});let{onUpdate:p,onDeltaUpdate:y}=this.props;p(i[i.length-1],o),y({type:Oy,keyPath:i,deep:u,key:e,newValue:t,oldValue:s}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:a,readOnly:o,dataType:i,getStyle:u,minusMenuElement:s}=this.props,{minus:p,collapsed:y}=u(e,n,t,r,i),A=Object.getOwnPropertyNames(n),m=o(e,n,t,r,i),h=he(s,{onClick:a,className:"rejt-minus-menu",style:p});return g.createElement("span",{className:"rejt-collapsed"},g.createElement("span",{className:"rejt-collapsed-text",style:y,onClick:this.handleCollapseMode},"{...}"," ",A.length," ",A.length===1?"key":"keys"),!m&&h)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:a,addFormVisible:o}=this.state,{isCollapsed:i,handleRemove:u,onDeltaUpdate:s,readOnly:p,getStyle:y,dataType:A,addButtonElement:m,cancelButtonElement:h,editButtonElement:E,inputElementGenerator:b,textareaElementGenerator:S,minusMenuElement:x,plusMenuElement:B,beforeRemoveAction:I,beforeAddAction:j,beforeUpdateAction:w,logger:k,onSubmitValueParser:N}=this.props,{minus:H,plus:V,addForm:U,ul:ee,delimiter:Q}=y(e,t,r,n,A),Y=Object.getOwnPropertyNames(t),R=p(e,t,r,n,A),_=he(B,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:V}),q=he(x,{onClick:u,className:"rejt-minus-menu",style:H}),G=Y.map(Z=>g.createElement(ha,{key:Z,name:Z,data:t[Z],keyPath:r,deep:a,isCollapsed:i,handleRemove:this.handleRemoveValue(Z),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:p,getStyle:y,addButtonElement:m,cancelButtonElement:h,editButtonElement:E,inputElementGenerator:b,textareaElementGenerator:S,minusMenuElement:x,plusMenuElement:B,beforeRemoveAction:I,beforeAddAction:j,beforeUpdateAction:w,logger:k,onSubmitValueParser:N})),X="{",K="}";return g.createElement("span",{className:"rejt-not-collapsed"},g.createElement("span",{className:"rejt-not-collapsed-delimiter",style:Q},X),!R&&_,g.createElement("ul",{className:"rejt-not-collapsed-list",style:ee},G),!R&&o&&g.createElement("div",{className:"rejt-add-form",style:U},g.createElement(Ji,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:m,cancelButtonElement:h,inputElementGenerator:b,keyPath:r,deep:n,onSubmitValueParser:N})),g.createElement("span",{className:"rejt-not-collapsed-delimiter",style:Q},K),!R&&q)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:a}=this.state,{getStyle:o,dataType:i}=this.props,u=t?this.renderCollapsed():this.renderNotCollapsed(),s=o(e,r,n,a,i);return g.createElement("div",{className:"rejt-object-node"},g.createElement("span",{onClick:this.handleCollapseMode},g.createElement("span",{className:"rejt-name",style:s.name},e," :"," ")),u)}};Vi.defaultProps={keyPath:[],deep:0,minusMenuElement:g.createElement("span",null," - "),plusMenuElement:g.createElement("span",null," + ")};var pt=class extends et{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:a,deep:o}=this.state,{readOnly:i,dataType:u}=this.props,s=i(r,n,a,o,u);e&&!s&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:a}=this.props,{inputRef:o,name:i,deep:u}=this.state;if(!o)return;let s=n(!0,a,u,i,o.value);e({value:s,key:i}).then(()=>{Ry(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:a}=this.state,{handleRemove:o,originalValue:i,readOnly:u,dataType:s,getStyle:p,editButtonElement:y,cancelButtonElement:A,inputElementGenerator:m,minusMenuElement:h,keyPath:E}=this.props,b=p(e,i,n,a,s),S=u(e,i,n,a,s),x=r&&!S,B=m(Xi,E,a,e,i,s),I=he(y,{onClick:this.handleEdit}),j=he(A,{onClick:this.handleCancelEdit}),w=he(B,{ref:this.refInput,defaultValue:JSON.stringify(i)}),k=he(h,{onClick:o,className:"rejt-minus-menu",style:b.minus});return g.createElement("li",{className:"rejt-value-node",style:b.li},g.createElement("span",{className:"rejt-name",style:b.name},e," : "),x?g.createElement("span",{className:"rejt-edit-form",style:b.editForm},w," ",j,I):g.createElement("span",{className:"rejt-value",style:b.value,onClick:S?null:this.handleEditMode},String(t)),!S&&!x&&k)}};pt.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:g.createElement("button",null,"e"),cancelButtonElement:g.createElement("button",null,"c"),minusMenuElement:g.createElement("span",null," - ")};var j9={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},M9={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},q9={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}};function $9(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var ky=class extends et{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:a,getStyle:o,addButtonElement:i,cancelButtonElement:u,editButtonElement:s,inputElement:p,textareaElement:y,minusMenuElement:A,plusMenuElement:m,beforeRemoveAction:h,beforeAddAction:E,beforeUpdateAction:b,logger:S,onSubmitValueParser:x,fallback:B=null}=this.props,I=ft(e),j=a;ft(a)==="Boolean"&&(j=()=>a);let w=p;p&&ft(p)!=="Function"&&(w=()=>p);let k=y;return y&&ft(y)!=="Function"&&(k=()=>y),I==="Object"||I==="Array"?g.createElement("div",{className:"rejt-tree"},g.createElement(ha,{data:e,name:t,deep:-1,isCollapsed:r,onUpdate:this.onUpdate,onDeltaUpdate:n,readOnly:j,getStyle:o,addButtonElement:i,cancelButtonElement:u,editButtonElement:s,inputElementGenerator:w,textareaElementGenerator:k,minusMenuElement:A,plusMenuElement:m,handleRemove:this.removeRoot,beforeRemoveAction:h,beforeAddAction:E,beforeUpdateAction:b,logger:S,onSubmitValueParser:x})):B}};ky.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,a)=>{switch(a){case"Object":case"Error":return j9;case"Array":return M9;default:return q9}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,a)=>$9(a),inputElement:()=>g.createElement("input",null),textareaElement:()=>g.createElement("textarea",null),fallback:null};var{window:H9}=ue,U9=M.div(({theme:e})=>({position:"relative",display:"flex",".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:e.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.color.lighter,borderColor:e.appBorderColor}})),Ui=M.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer",order:t?"initial":9})),ly=M(Te)(({theme:e,icon:t,disabled:r})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:r?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":r?{}:{color:t==="subtract"?e.color.negative:e.color.ancillary},"svg + &":{marginLeft:0}})),cy=M.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),z9=M(ht)(({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),G9=M(_e.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),W9={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},V9=e=>{e.currentTarget.dispatchEvent(new H9.KeyboardEvent("keydown",W9))},K9=e=>{e.currentTarget.select()},Y9=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),dy=({name:e,value:t,onChange:r})=>{let n=vu(),a=tt(()=>t&&(0,Ey.default)(t),[t]),o=a!=null,[i,u]=ne(!o),[s,p]=ne(null),y=ge(S=>{try{S&&r(JSON.parse(S)),p(void 0)}catch(x){p(x)}},[r]),[A,m]=ne(!1),h=ge(()=>{r({}),m(!0)},[m]),E=Be(null);if(me(()=>{A&&E.current&&E.current.select()},[A]),!o)return g.createElement(_e.Button,{id:dr(e),onClick:h},"Set object");let b=g.createElement(G9,{ref:E,id:Oe(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:S=>y(S.target.value),placeholder:"Edit JSON string...",autoFocus:A,valid:s?"error":null});return g.createElement(U9,null,["Object","Array"].includes(ft(a))&&g.createElement(z9,{href:"#",onClick:S=>{S.preventDefault(),u(x=>!x)}},g.createElement(Te,{icon:i?"eyeclose":"eye"}),g.createElement("span",null,"RAW")),i?b:g.createElement(ky,{data:a,rootName:e,onFullyUpdate:r,getStyle:Y9(n),cancelButtonElement:g.createElement(Ui,{type:"button"},"Cancel"),editButtonElement:g.createElement(Ui,{type:"submit"},"Save"),addButtonElement:g.createElement(Ui,{type:"submit",primary:!0},"Save"),plusMenuElement:g.createElement(ly,{icon:"add"}),minusMenuElement:g.createElement(ly,{icon:"subtract"}),inputElement:(S,x,B,I)=>I?g.createElement(cy,{onFocus:K9,onBlur:V9}):g.createElement(cy,null),fallback:b}))},X9=M.input(({theme:e,min:t,max:r,value:n})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:e.base==="light"?`linear-gradient(to right, - ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, - ${$e(.02,e.input.background)} ${(n-t)/(r-t)*100}%, - ${$e(.02,e.input.background)} 100%)`:`linear-gradient(to right, - ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, - ${at(.02,e.input.background)} ${(n-t)/(r-t)*100}%, - ${at(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${qe(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${qe(e.appBorderColor,.2)}`,cursor:"grab",appearance:"none",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${$e(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:qe(e.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:e.color.secondary,boxShadow:`0 0px 5px 0px ${e.color.secondary}`}},"&::-moz-range-track":{background:e.base==="light"?`linear-gradient(to right, - ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, - ${$e(.02,e.input.background)} ${(n-t)/(r-t)*100}%, - ${$e(.02,e.input.background)} 100%)`:`linear-gradient(to right, - ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, - ${at(.02,e.input.background)} ${(n-t)/(r-t)*100}%, - ${at(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${qe(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${qe(e.appBorderColor,.2)}`,cursor:"grab",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${$e(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:e.base==="light"?`linear-gradient(to right, - ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, - ${$e(.02,e.input.background)} ${(n-t)/(r-t)*100}%, - ${$e(.02,e.input.background)} 100%)`:`linear-gradient(to right, - ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, - ${at(.02,e.input.background)} ${(n-t)/(r-t)*100}%, - ${at(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${qe(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),Ny=M.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),J9=M(Ny)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),Q9=M.div({display:"flex",alignItems:"center",width:"100%"});function Z9(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var eP=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:o=1,onBlur:i,onFocus:u})=>{let s=A=>{r(f9(A.target.value))},p=t!==void 0,y=tt(()=>Z9(o),[o]);return g.createElement(Q9,null,g.createElement(Ny,null,n),g.createElement(X9,{id:Oe(e),type:"range",onChange:s,name:e,value:t,min:n,max:a,step:o,onFocus:u,onBlur:i}),g.createElement(J9,{numberOFDecimalsPlaces:y,max:a},p?t.toFixed(y):"--"," / ",a))},tP=M.label({display:"flex"}),rP=M.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),nP=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:o})=>{let i=A=>{r(A.target.value)},[u,s]=ne(!1),p=ge(()=>{r(""),s(!0)},[s]);if(t===void 0)return g.createElement(_e.Button,{id:dr(e),onClick:p},"Set string");let y=typeof t=="string";return g.createElement(tP,null,g.createElement(_e.Textarea,{id:Oe(e),maxLength:o,onChange:i,size:"flex",placeholder:"Edit string...",autoFocus:u,valid:y?null:"error",name:e,value:y?t:"",onFocus:n,onBlur:a}),o&&g.createElement(rP,{isMaxed:t?.length===o},t?.length??0," / ",o))},aP=M(_e.Input)({padding:10});function oP(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var iP=({onChange:e,name:t,accept:r="image/*",value:n})=>{let a=Be(null);function o(i){if(!i.target.files)return;let u=Array.from(i.target.files).map(s=>URL.createObjectURL(s));e(u),oP(n)}return me(()=>{n==null&&a.current&&(a.current.value=null)},[n,t]),g.createElement(aP,{ref:a,id:Oe(t),type:"file",name:t,multiple:!0,onChange:o,accept:r,size:"flex"})},uP=ou(()=>Promise.resolve().then(()=>(ty(),ey))),sP=e=>g.createElement(au,{fallback:g.createElement("div",null)},g.createElement(uP,{...e})),lP={array:dy,object:dy,boolean:o9,color:sP,date:d9,number:h9,check:ur,"inline-check":ur,radio:ur,"inline-radio":ur,select:ur,"multi-select":ur,range:eP,text:nP,file:iP},py=()=>g.createElement(g.Fragment,null,"-"),cP=({row:e,arg:t,updateArgs:r,isHovered:n})=>{let{key:a,control:o}=e,[i,u]=ne(!1),[s,p]=ne({value:t});me(()=>{i||p({value:t})},[i,t]);let y=ge(b=>(p({value:b}),r({[a]:b}),b),[r,a]),A=ge(()=>u(!1),[]),m=ge(()=>u(!0),[]);if(!o||o.disable)return n?g.createElement(mt,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):g.createElement(py,null);let h={name:a,argType:e,value:s.value,onChange:y,onBlur:A,onFocus:m},E=lP[o.type]||py;return g.createElement(E,{...h,...o,controlType:o.type})},dP=M.span({fontWeight:"bold"}),pP=M.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),fP=M.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Bt({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),hP=M.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?de(.1,e.color.defaultText):de(.2,e.color.defaultText),marginTop:t?4:0})),mP=M.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?de(.1,e.color.defaultText):de(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),gP=M.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),da=e=>{let[t,r]=ne(!1),{row:n,updateArgs:a,compact:o,expandable:i,initialExpandedArgs:u}=e,{name:s,description:p}=n,y=n.table||{},A=y.type||n.type,m=y.defaultValue||n.defaultValue,h=n.type?.required,E=p!=null&&p!=="";return g.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},g.createElement(gP,{expandable:i},g.createElement(dP,null,s),h?g.createElement(pP,{title:"Required"},"*"):null),o?null:g.createElement("td",null,E&&g.createElement(fP,null,g.createElement(mp,null,p)),y.jsDocTags!=null?g.createElement(g.Fragment,null,g.createElement(mP,{hasDescription:E},g.createElement(Hi,{value:A,initialExpandedArgs:u})),g.createElement(V4,{tags:y.jsDocTags})):g.createElement(hP,{hasDescription:E},g.createElement(Hi,{value:A,initialExpandedArgs:u}))),o?null:g.createElement("td",null,g.createElement(Hi,{value:m,initialExpandedArgs:u})),a?g.createElement("td",null,g.createElement(cP,{...e,isHovered:t})):null)},yP=M(Te)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?de(.25,e.color.defaultText):de(.3,e.color.defaultText),border:"none",display:"inline-block"})),bP=M.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),EP=M.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?de(.4,e.color.defaultText):de(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),AP=M.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),vP=M.td(()=>({position:"relative"})),DP=M.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${at(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),fy=M.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),zi=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[o,i]=ne(n),u=e==="subsection"?AP:EP,s=r?.length||0,p=e==="subsection"?`${s} item${s!==1?"s":""}`:"",y=o?"arrowdown":"arrowright",A=`${o?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return g.createElement(g.Fragment,null,g.createElement(DP,{title:A},g.createElement(u,{colSpan:1},g.createElement(fy,{onClick:m=>i(!o),tabIndex:0},A),g.createElement(bP,null,g.createElement(yP,{icon:y}),t)),g.createElement(vP,{colSpan:a-1},g.createElement(fy,{onClick:m=>i(!o),tabIndex:-1,style:{outline:"none"}},A),o?null:p)),o?r:null)},pa=M.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Fe=M.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),be=M.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),we=[2,4,2,2],CP=()=>g.createElement(g.Fragment,null,g.createElement(pa,null,g.createElement(Fe,{numColumn:we[0]},g.createElement(be,{width:"60%"})),g.createElement(Fe,{numColumn:we[1]},g.createElement(be,{width:"30%"})),g.createElement(Fe,{numColumn:we[2]},g.createElement(be,{width:"60%"})),g.createElement(Fe,{numColumn:we[3]},g.createElement(be,{width:"60%"}))),g.createElement(pa,null,g.createElement(Fe,{numColumn:we[0]},g.createElement(be,{width:"60%"})),g.createElement(Fe,{numColumn:we[1]},g.createElement(be,{width:"80%"}),g.createElement(be,{width:"30%"})),g.createElement(Fe,{numColumn:we[2]},g.createElement(be,{width:"60%"})),g.createElement(Fe,{numColumn:we[3]},g.createElement(be,{width:"60%"}))),g.createElement(pa,null,g.createElement(Fe,{numColumn:we[0]},g.createElement(be,{width:"60%"})),g.createElement(Fe,{numColumn:we[1]},g.createElement(be,{width:"80%"}),g.createElement(be,{width:"30%"})),g.createElement(Fe,{numColumn:we[2]},g.createElement(be,{width:"60%"})),g.createElement(Fe,{numColumn:we[3]},g.createElement(be,{width:"60%"}))),g.createElement(pa,null,g.createElement(Fe,{numColumn:we[0]},g.createElement(be,{width:"60%"})),g.createElement(Fe,{numColumn:we[1]},g.createElement(be,{width:"80%"}),g.createElement(be,{width:"30%"})),g.createElement(Fe,{numColumn:we[2]},g.createElement(be,{width:"60%"})),g.createElement(Fe,{numColumn:we[3]},g.createElement(be,{width:"60%"})))),xP=M.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),SP=M.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),FP=M.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textColor})),wP=M.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),BP=M.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),TP=M.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),_P=({inAddonPanel:e})=>{let[t,r]=ne(!0);return me(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:g.createElement(xP,{inAddonPanel:e},g.createElement(SP,null,g.createElement(FP,null,e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated"),g.createElement(wP,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically.")),g.createElement(BP,null,e&&g.createElement(g.Fragment,null,g.createElement(mt,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},g.createElement(Te,{icon:"video"})," Watch 5m video"),g.createElement(TP,null),g.createElement(mt,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Read docs")),!e&&g.createElement(mt,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Learn how to set that up")))},OP=M.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?de(.25,e.color.defaultText):de(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),RP=M(ht)(({theme:e})=>({color:e.barTextColor,margin:"-4px -12px -4px 0"})),PP=M.span({display:"flex",justifyContent:"space-between"}),IP={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>+!!t.type?.required-+!!e.type?.required||e.name.localeCompare(t.name),none:void 0},kP=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([o,i])=>{let{category:u,subcategory:s}=i?.table||{};if(u){let p=r.sections[u]||{ungrouped:[],subsections:{}};if(!s)p.ungrouped.push({key:o,...i});else{let y=p.subsections[s]||[];y.push({key:o,...i}),p.subsections[s]=y}r.sections[u]=p}else if(s){let p=r.ungroupedSubsections[s]||[];p.push({key:o,...i}),r.ungroupedSubsections[s]=p}else r.ungrouped.push({key:o,...i})});let n=IP[t],a=o=>n?Object.keys(o).reduce((i,u)=>({...i,[u]:o[u].sort(n)}),{}):o;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((o,i)=>({...o,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:a(r.sections[i].subsections)}}),{})}},NP=(e,t,r)=>{try{return To(e,t,r)}catch(n){return xn.warn(n.message),!1}},Ft=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,initialExpandedArgs:o,sort:i="none",isLoading:u}=e;if("error"in e){let{error:B}=e;return g.createElement(Dy,null,B,"\xA0",g.createElement(mt,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},"Read the docs"))}if(u)return g.createElement(CP,null);let{rows:s,args:p,globals:y}="rows"in e&&e,A=kP((0,gy.default)(s,B=>!B?.table?.disable&&NP(B,p||{},y||{})),i),m=A.ungrouped.length===0,h=Object.entries(A.sections).length===0,E=Object.entries(A.ungroupedSubsections).length===0;if(m&&h&&E)return g.createElement(_P,{inAddonPanel:a});let b=1;t&&(b+=1),n||(b+=2);let S=Object.keys(A.sections).length>0,x={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:o};return g.createElement(Sa,null,g.createElement(OP,{compact:n,inAddonPanel:a,className:"docblock-argstable sb-unstyled"},g.createElement("thead",{className:"docblock-argstable-head"},g.createElement("tr",null,g.createElement("th",null,g.createElement("span",null,"Name")),n?null:g.createElement("th",null,g.createElement("span",null,"Description")),n?null:g.createElement("th",null,g.createElement("span",null,"Default")),t?g.createElement("th",null,g.createElement(PP,null,"Control"," ",!u&&r&&g.createElement(RP,{onClick:()=>r(),title:"Reset controls"},g.createElement(Te,{icon:"undo","aria-hidden":!0})))):null)),g.createElement("tbody",{className:"docblock-argstable-body"},A.ungrouped.map(B=>g.createElement(da,{key:B.key,row:B,arg:p&&p[B.key],...x})),Object.entries(A.ungroupedSubsections).map(([B,I])=>g.createElement(zi,{key:B,label:B,level:"subsection",colSpan:b},I.map(j=>g.createElement(da,{key:j.key,row:j,arg:p&&p[j.key],expandable:S,...x})))),Object.entries(A.sections).map(([B,I])=>g.createElement(zi,{key:B,label:B,level:"section",colSpan:b},I.ungrouped.map(j=>g.createElement(da,{key:j.key,row:j,arg:p&&p[j.key],...x})),Object.entries(I.subsections).map(([j,w])=>g.createElement(zi,{key:j,label:j,level:"subsection",colSpan:b},w.map(k=>g.createElement(da,{key:k.key,row:k,arg:p&&p[k.key],expandable:S,...x})))))))))},Ly=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?g.createElement(Ft,{...r[0][1],...t}):g.createElement(wa,null,r.map(n=>{let[a,o]=n,i=`prop_table_div_${a}`;return g.createElement("div",{key:i,id:i,title:a},({active:u})=>u?g.createElement(Ft,{key:`prop_table_${a}`,...o,...t}):null)}))},Ire=M.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?de(.4,e.color.defaultText):de(.6,e.color.defaultText)})),kre=M.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),Nre=M.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}}),Lre=M.div(Tt,({theme:e})=>({...fa(e),margin:"25px 0 40px",padding:"30px 20px"}));var jre=M.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText})),Mre=M.div(({theme:e})=>({color:e.base==="light"?de(.2,e.color.defaultText):de(.6,e.color.defaultText)})),qre=M.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5}),$re=M.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?de(.4,e.color.defaultText):de(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}})),Hre=M.div({display:"flex",flexDirection:"row"}),Ure=M.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}})),zre=M.div(({theme:e})=>({...fa(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"})),Gre=M.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30}),Wre=M.div({flex:1,display:"flex",flexDirection:"row"}),Vre=M.div({display:"flex",alignItems:"flex-start"}),Kre=M.div({flex:"0 0 30%"}),Yre=M.div({flex:1}),Xre=M.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?de(.4,e.color.defaultText):de(.6,e.color.defaultText)})),Jre=M.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));var Qre=M.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2})),Zre=M.div(({theme:e})=>({...fa(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}})),ene=M.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"}),tne=M.div({display:"flex",flexFlow:"row wrap"});ue&&ue.__DOCS_CONTEXT__===void 0&&(ue.__DOCS_CONTEXT__=lr(null),ue.__DOCS_CONTEXT__.displayName="DocsContext");var Qi=ue?ue.__DOCS_CONTEXT__:lr(null);var Zi="^",LP=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),jy=e=>{if(e)return typeof e=="string"?e.includes("-")?LP(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function jP(e,t){let r=MP([e],t);return r&&r[0]}function MP(e,t){let[r,n]=ne({});return me(()=>{Promise.all(e.map(async a=>{let o=await t.loadStory(a);n(i=>i[a]===o?i:{...i,[a]:o})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return null}})}var qP=(e,t)=>{let r=t.getStoryContext(t.storyById()),[n,a]=ne(r.args);me(()=>{let u=s=>{s.storyId===e&&a(s.args)};return t.channel.on(On,u),()=>t.channel.off(On,u)},[e]);let o=ge(u=>t.channel.emit(Rn,{storyId:e,updatedArgs:u}),[e]),i=ge(u=>t.channel.emit(_n,{storyId:e,argNames:u}),[e]);return[n,o,i]},$P=e=>{let t=e.getStoryContext(e.storyById()),[r,n]=ne(t.globals);return me(()=>{let a=o=>{n(o.globals)};return e.channel.on(Tn,a),()=>e.channel.off(Tn,a)},[]),[r]},My=(e,t,r,n)=>{let{extractArgTypes:a}=t.docs||{};if(!a)throw new Error("Args unsupported. See Args documentation for your framework.");let o=a(e);return o=Ir(o,r,n),o},hy=e=>e&&[Zi].includes(e),HP=(e={},t)=>{let{of:r}=e,{story:n}=e;if(hy(r)||hy(n))return t||null;if(!r)throw new Error("No component found.");return r},Ki=(e,t,r,n,a,o)=>({...e,...(0,Ay.default)(t,i=>({rows:My(i,r,n,a),sort:o}))}),UP=e=>{let t=Xr(Qi),{story:r,component:n,subcomponents:a,showComponent:o,include:i,exclude:u,sort:s}=e;try{let p;switch(r){case Zi:{p=t.storyById().id;break}default:p=t.storyIdByName(r)}let y=jP(p,t),[A,m,h]=qP(p,t),[E]=$P(t);if(!y)return g.createElement(Ft,{isLoading:!0,updateArgs:m,resetArgs:h});let b=Ir(y.argTypes,i,u),S=jy(n)||"Story",x={[S]:{rows:b,args:A,globals:E,updateArgs:m,resetArgs:h}},B=b&&Object.values(b).find(I=>!!I?.control);if(B||(m=null,h=null,x={}),n&&(!B||o)&&(x=Ki(x,{[S]:n},y.parameters,i,u)),a){if(Array.isArray(a))throw new Error("Unexpected subcomponents array. Expected an object whose keys are tab labels and whose values are components.");x=Ki(x,a,y.parameters,i,u)}return g.createElement(Ly,{tabs:x,sort:s})}catch(p){return g.createElement(Ft,{error:p.message})}},my=e=>{let{components:t,include:r,exclude:n,sort:a,parameters:o}=e,i=Ki({},t,o,r,n);return g.createElement(Ly,{tabs:i,sort:a})},zP=e=>{Cn(Or`The ArgsTable doc block is deprecated. Instead use the ArgTypes doc block for static tables or the Controls doc block for tables with controls. - - Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#argstable-block - `);let t=Xr(Qi),r,n,a;try{({parameters:r,component:n,subcomponents:a}=t.storyById())}catch{let{of:h}=e;if("of"in e&&h===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");({projectAnnotations:{parameters:r}}=t.resolveOf(h,["component"]))}let{include:o,exclude:i,components:u,sort:s}=e,{story:p}=e,y=s||r.controls?.sort,A=HP(e,n);if(p)return g.createElement(UP,{...e,component:A,subcomponents:a,sort:y});if(!u&&!a){let h;try{h={rows:My(A,r,o,i)}}catch(E){h={error:E.message}}return g.createElement(Ft,{...h,sort:y})}if(u)return g.createElement(my,{...e,components:u,sort:y,parameters:r});let m=jy(A);return g.createElement(my,{...e,components:{[m]:A,...a},sort:y,parameters:r})};zP.defaultProps={of:Zi};var rne=lr({sources:{}});var GP=(e=>(e.OPEN="open",e.CLOSED="closed",e.NONE="none",e))(GP||{});var{document:WP}=ue;function VP(e,t){e.channel.emit(Uf,t)}var nne=Oa.a;var qy=["h1","h2","h3","h4","h5","h6"],KP=qy.reduce((e,t)=>({...e,[t]:M(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),YP=M.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),XP=({as:e,id:t,children:r,...n})=>{let a=Xr(Qi),o=KP[e],i=`#${t}`;return g.createElement(o,{id:t,...n},g.createElement(YP,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:u=>{WP.getElementById(t)&&VP(a,i)}},g.createElement(Te,{icon:"link"})),r)},$y=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return g.createElement(XP,{as:t,id:r,...a},n);let o=t,{as:i,...u}=e;return g.createElement(o,{...Ra(u,t)})},ane=qy.reduce((e,t)=>({...e,[t]:r=>g.createElement($y,{as:t,...r})}),{});var JP=(e=>(e.INFO="info",e.NOTES="notes",e.DOCGEN="docgen",e.AUTO="auto",e))(JP||{});var one=M.div(({theme:e})=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),ine=M.div(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}})),une=M.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.textColor,textTransform:"uppercase",marginBottom:10}));var{document:sne,window:lne}=ue;var QP=({children:e,disableAnchor:t,...r})=>{if(t||typeof e!="string")return g.createElement(Ca,null,e);let n=e.toLowerCase().replace(/[^a-z0-9]/gi,"-");return g.createElement($y,{as:"h2",id:n,...r},e)},cne=M(QP)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,fontWeight:e.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:e.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}}));var Hy="addon-controls",Uy="controls",ZP=()=>{let[e,t]=ne(!0),[r,n,a]=su(),[o]=lu(),i=ba(),{expanded:u,sort:s,presetColors:p}=cu(Uy,{}),{path:y,previewInitialized:A}=du();me(()=>{A&&t(!1)},[A]);let m=Object.values(i).some(E=>E?.control),h=Object.entries(i).reduce((E,[b,S])=>(S?.control?.type!=="color"||S?.control?.presetColors?E[b]=S:E[b]={...S,control:{...S.control,presetColors:p}},E),{});return g.createElement(Ft,{key:y,compact:!u&&m,rows:h,args:r,globals:o,updateArgs:n,resetArgs:a,inAddonPanel:!0,sort:s,isLoading:e})};function eI(){let e=ba(),t=Object.values(e).filter(r=>r?.control&&!r?.table?.disable).length;return g.createElement("div",null,g.createElement(Fa,{col:1},g.createElement("span",{style:{display:"inline-block",verticalAlign:"middle"}},"Controls"),t===0?"":g.createElement(va,{status:"neutral"},t)))}ya.register(Hy,e=>{ya.add(Hy,{title:eI,type:uu.PANEL,paramKey:Uy,render:({active:t})=>!t||!e.getCurrentStoryData()?null:g.createElement(Aa,{active:t},g.createElement(ZP,null))})});})(); -}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/sb-addons/essentials-controls-1/manager-bundle.js b/sb-addons/essentials-controls-1/manager-bundle.js new file mode 100644 index 000000000..73d164090 --- /dev/null +++ b/sb-addons/essentials-controls-1/manager-bundle.js @@ -0,0 +1,394 @@ +try{ +(()=>{var P2=Object.create;var ka=Object.defineProperty;var R2=Object.getOwnPropertyDescriptor;var D2=Object.getOwnPropertyNames;var F2=Object.getPrototypeOf,j2=Object.prototype.hasOwnProperty;var et=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var St=(e,t)=>()=>(e&&(t=e(e=0)),t);var U=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),zl=(e,t)=>{for(var r in t)ka(e,r,{get:t[r],enumerable:!0})},N2=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of D2(t))!j2.call(e,o)&&o!==r&&ka(e,o,{get:()=>t[o],enumerable:!(n=R2(t,o))||n.enumerable});return e};var on=(e,t,r)=>(r=e!=null?P2(F2(e)):{},N2(t||!e||!e.__esModule?ka(r,"default",{value:e,enumerable:!0}):r,e));var w=St(()=>{});var S=St(()=>{});var A=St(()=>{});var B2,Vl,L2,Hl,q2,M2,an,Yt,U2,sn,$2,Jl,z2,Gl,V2,H2,Xt,J2,Wl,tt,ln,Pa=St(()=>{w();S();A();B2=Object.create,Vl=Object.defineProperty,L2=Object.getOwnPropertyDescriptor,Hl=Object.getOwnPropertyNames,q2=Object.getPrototypeOf,M2=Object.prototype.hasOwnProperty,an=(e=>typeof et<"u"?et:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof et<"u"?et:t)[r]}):e)(function(e){if(typeof et<"u")return et.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Yt=(e,t)=>function(){return t||(0,e[Hl(e)[0]])((t={exports:{}}).exports,t),t.exports},U2=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Hl(t))!M2.call(e,o)&&o!==r&&Vl(e,o,{get:()=>t[o],enumerable:!(n=L2(t,o))||n.enumerable});return e},sn=(e,t,r)=>(r=e!=null?B2(q2(e)):{},U2(t||!e||!e.__esModule?Vl(r,"default",{value:e,enumerable:!0}):r,e)),$2=Object.create,Jl=Object.defineProperty,z2=Object.getOwnPropertyDescriptor,Gl=Object.getOwnPropertyNames,V2=Object.getPrototypeOf,H2=Object.prototype.hasOwnProperty,Xt=(e,t)=>function(){return t||(0,e[Gl(e)[0]])((t={exports:{}}).exports,t),t.exports},J2=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Gl(t))!H2.call(e,o)&&o!==r&&Jl(e,o,{get:()=>t[o],enumerable:!(n=z2(t,o))||n.enumerable});return e},Wl=(e,t,r)=>(r=e!=null?$2(V2(e)):{},J2(t||!e||!e.__esModule?Jl(r,"default",{value:e,enumerable:!0}):r,e)),tt=e=>`control-${e.replace(/\s+/g,"-")}`,ln=e=>`set-${e.replace(/\s+/g,"-")}`});var v,Kl,Ft,I6,k6,P6,R6,Yl,D6,Ae,un,Ra,F6,j6,N6,B6,Xl,L6,q6,M6,Ve,Ql,U6,$6,He,z6,V6,H6,Zl,jt,J6,Xe,me,G6,W6,K6,no=St(()=>{w();S();A();v=__REACT__,{Children:Kl,Component:Ft,Fragment:I6,Profiler:k6,PureComponent:P6,StrictMode:R6,Suspense:Yl,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:D6,cloneElement:Ae,createContext:un,createElement:Ra,createFactory:F6,createRef:j6,forwardRef:N6,isValidElement:B6,lazy:Xl,memo:L6,startTransition:q6,unstable_act:M6,useCallback:Ve,useContext:Ql,useDebugValue:U6,useDeferredValue:$6,useEffect:He,useId:z6,useImperativeHandle:V6,useInsertionEffect:H6,useLayoutEffect:Zl,useMemo:jt,useReducer:J6,useRef:Xe,useState:me,useSyncExternalStore:G6,useTransition:W6,version:K6}=__REACT__});var eu={};zl(eu,{A:()=>K2,ActionBar:()=>Da,AddonPanel:()=>Fa,Badge:()=>ja,Bar:()=>Na,Blockquote:()=>Y2,Button:()=>Nt,ClipboardCode:()=>X2,Code:()=>Q2,DL:()=>Z2,Div:()=>e1,DocumentWrapper:()=>t1,EmptyTabContent:()=>Ba,ErrorFormatter:()=>r1,FlexBar:()=>La,Form:()=>ut,H1:()=>n1,H2:()=>qa,H3:()=>o1,H4:()=>a1,H5:()=>i1,H6:()=>s1,HR:()=>l1,IconButton:()=>yt,IconButtonSkeleton:()=>u1,Icons:()=>c1,Img:()=>p1,LI:()=>d1,Link:()=>Qt,ListItem:()=>f1,Loader:()=>y1,Modal:()=>ht,OL:()=>h1,P:()=>m1,Placeholder:()=>g1,Pre:()=>b1,ResetWrapper:()=>Ma,ScrollArea:()=>v1,Separator:()=>E1,Spaced:()=>Ua,Span:()=>x1,StorybookIcon:()=>w1,StorybookLogo:()=>S1,Symbols:()=>A1,SyntaxHighlighter:()=>oo,TT:()=>T1,TabBar:()=>C1,TabButton:()=>_1,TabWrapper:()=>O1,Table:()=>I1,Tabs:()=>k1,TabsState:()=>P1,TooltipLinkList:()=>R1,TooltipMessage:()=>D1,TooltipNote:()=>Zt,UL:()=>F1,WithTooltip:()=>Bt,WithTooltipPure:()=>$a,Zoom:()=>za,codeCommon:()=>vr,components:()=>Va,createCopyToClipboardFunction:()=>j1,default:()=>W2,getStoryHref:()=>N1,icons:()=>B1,interleaveSeparators:()=>L1,nameSpaceClassNames:()=>Ha,resetComponents:()=>q1,withReset:()=>Er});var W2,K2,Da,Fa,ja,Na,Y2,Nt,X2,Q2,Z2,e1,t1,Ba,r1,La,ut,n1,qa,o1,a1,i1,s1,l1,yt,u1,c1,p1,d1,Qt,f1,y1,ht,h1,m1,g1,b1,Ma,v1,E1,Ua,x1,w1,S1,A1,oo,T1,C1,_1,O1,I1,k1,P1,R1,D1,Zt,F1,Bt,$a,za,vr,Va,j1,N1,B1,L1,Ha,q1,Er,ao=St(()=>{w();S();A();W2=__STORYBOOK_COMPONENTS__,{A:K2,ActionBar:Da,AddonPanel:Fa,Badge:ja,Bar:Na,Blockquote:Y2,Button:Nt,ClipboardCode:X2,Code:Q2,DL:Z2,Div:e1,DocumentWrapper:t1,EmptyTabContent:Ba,ErrorFormatter:r1,FlexBar:La,Form:ut,H1:n1,H2:qa,H3:o1,H4:a1,H5:i1,H6:s1,HR:l1,IconButton:yt,IconButtonSkeleton:u1,Icons:c1,Img:p1,LI:d1,Link:Qt,ListItem:f1,Loader:y1,Modal:ht,OL:h1,P:m1,Placeholder:g1,Pre:b1,ResetWrapper:Ma,ScrollArea:v1,Separator:E1,Spaced:Ua,Span:x1,StorybookIcon:w1,StorybookLogo:S1,Symbols:A1,SyntaxHighlighter:oo,TT:T1,TabBar:C1,TabButton:_1,TabWrapper:O1,Table:I1,Tabs:k1,TabsState:P1,TooltipLinkList:R1,TooltipMessage:D1,TooltipNote:Zt,UL:F1,WithTooltip:Bt,WithTooltipPure:$a,Zoom:za,codeCommon:vr,components:Va,createCopyToClipboardFunction:j1,getStoryHref:N1,icons:B1,interleaveSeparators:L1,nameSpaceClassNames:Ha,resetComponents:q1,withReset:Er}=__STORYBOOK_COMPONENTS__});var u9,c9,p9,d9,Cu,f9,yo,_u,y9,h9,m9,g9,b9,v9,E9,Ou,x9,w9,Qa,S9,W,Za,A9,ei,T9,ti=St(()=>{w();S();A();u9=__STORYBOOK_THEMING__,{CacheProvider:c9,ClassNames:p9,Global:d9,ThemeProvider:Cu,background:f9,color:yo,convert:_u,create:y9,createCache:h9,createGlobal:m9,createReset:g9,css:b9,darken:v9,ensure:E9,ignoreSsrWarning:Ou,isPropValid:x9,jsx:w9,keyframes:Qa,lighten:S9,styled:W,themes:Za,typography:A9,useTheme:ei,withTheme:T9}=__STORYBOOK_THEMING__});var L9,q9,M9,ri,U9,$9,z9,V9,H9,J9,G9,W9,K9,Y9,X9,Q9,Z9,eU,tU,rU,nU,oU,aU,iU,sU,lU,uU,cU,pU,dU,fU,yU,hU,mU,gU,bU,vU,EU,xU,wU,SU,AU,TU,CU,_U,OU,IU,Pu,Ru,kU,Du,ni,PU,RU,Fu,DU,FU,jU,NU,BU,LU,qU,MU,UU,$U,zU,VU,HU,JU,GU,WU,KU,YU,XU,QU,ZU,e$,t$,r$,n$,o$,a$,i$,s$,l$,u$,c$,p$,ho,d$,f$,y$,h$,m$,g$,b$,ju,Nu,v$,E$,x$,w$,S$,A$,T$,C$,_$,O$,I$,k$,P$,R$,D$,F$,j$,N$,B$,L$,q$,M$,U$,$$,z$,V$,H$,J$,G$,W$,K$,Y$,X$,Bu,Q$,Z$,ez,tz,rz,nz,oz,Lu,az,iz,sz,lz,uz,cz,pz,dz,fz,yz,hz,mz,gz,bz,vz,Ez,xz,wz,Sz,Az,Tz,Cz,_z,Oz,Iz,kz,Pz,Rz,Dz,Fz,jz,Nz,Bz,Lz,qz,Mz,Uz,$z,zz,Vz,Hz,Jz,Gz,Wz,Kz,Yz,Xz,Qz,Zz,e7,t7,r7,n7,o7,a7,i7,s7,l7,u7,c7,p7,qu,d7,f7,y7,h7,m7,g7,b7,v7,E7,x7,w7,S7,A7,oi,T7,C7,_7,O7,I7,k7,P7,R7,D7,F7,Mu,j7,N7,B7,L7,q7,M7,Uu,$u,zu,U7,ai=St(()=>{w();S();A();L9=__STORYBOOK_ICONS__,{AccessibilityAltIcon:q9,AccessibilityIcon:M9,AddIcon:ri,AdminIcon:U9,AlertAltIcon:$9,AlertIcon:z9,AlignLeftIcon:V9,AlignRightIcon:H9,AppleIcon:J9,ArrowBottomLeftIcon:G9,ArrowBottomRightIcon:W9,ArrowDownIcon:K9,ArrowLeftIcon:Y9,ArrowRightIcon:X9,ArrowSolidDownIcon:Q9,ArrowSolidLeftIcon:Z9,ArrowSolidRightIcon:eU,ArrowSolidUpIcon:tU,ArrowTopLeftIcon:rU,ArrowTopRightIcon:nU,ArrowUpIcon:oU,AzureDevOpsIcon:aU,BackIcon:iU,BasketIcon:sU,BatchAcceptIcon:lU,BatchDenyIcon:uU,BeakerIcon:cU,BellIcon:pU,BitbucketIcon:dU,BoldIcon:fU,BookIcon:yU,BookmarkHollowIcon:hU,BookmarkIcon:mU,BottomBarIcon:gU,BottomBarToggleIcon:bU,BoxIcon:vU,BranchIcon:EU,BrowserIcon:xU,ButtonIcon:wU,CPUIcon:SU,CalendarIcon:AU,CameraIcon:TU,CategoryIcon:CU,CertificateIcon:_U,ChangedIcon:OU,ChatIcon:IU,CheckIcon:Pu,ChevronDownIcon:Ru,ChevronLeftIcon:kU,ChevronRightIcon:Du,ChevronSmallDownIcon:ni,ChevronSmallLeftIcon:PU,ChevronSmallRightIcon:RU,ChevronSmallUpIcon:Fu,ChevronUpIcon:DU,ChromaticIcon:FU,ChromeIcon:jU,CircleHollowIcon:NU,CircleIcon:BU,ClearIcon:LU,CloseAltIcon:qU,CloseIcon:MU,CloudHollowIcon:UU,CloudIcon:$U,CogIcon:zU,CollapseIcon:VU,CommandIcon:HU,CommentAddIcon:JU,CommentIcon:GU,CommentsIcon:WU,CommitIcon:KU,CompassIcon:YU,ComponentDrivenIcon:XU,ComponentIcon:QU,ContrastIcon:ZU,ControlsIcon:e$,CopyIcon:t$,CreditIcon:r$,CrossIcon:n$,DashboardIcon:o$,DatabaseIcon:a$,DeleteIcon:i$,DiamondIcon:s$,DirectionIcon:l$,DiscordIcon:u$,DocChartIcon:c$,DocListIcon:p$,DocumentIcon:ho,DownloadIcon:d$,DragIcon:f$,EditIcon:y$,EllipsisIcon:h$,EmailIcon:m$,ExpandAltIcon:g$,ExpandIcon:b$,EyeCloseIcon:ju,EyeIcon:Nu,FaceHappyIcon:v$,FaceNeutralIcon:E$,FaceSadIcon:x$,FacebookIcon:w$,FailedIcon:S$,FastForwardIcon:A$,FigmaIcon:T$,FilterIcon:C$,FlagIcon:_$,FolderIcon:O$,FormIcon:I$,GDriveIcon:k$,GithubIcon:P$,GitlabIcon:R$,GlobeIcon:D$,GoogleIcon:F$,GraphBarIcon:j$,GraphLineIcon:N$,GraphqlIcon:B$,GridAltIcon:L$,GridIcon:q$,GrowIcon:M$,HeartHollowIcon:U$,HeartIcon:$$,HomeIcon:z$,HourglassIcon:V$,InfoIcon:H$,ItalicIcon:J$,JumpToIcon:G$,KeyIcon:W$,LightningIcon:K$,LightningOffIcon:Y$,LinkBrokenIcon:X$,LinkIcon:Bu,LinkedinIcon:Q$,LinuxIcon:Z$,ListOrderedIcon:ez,ListUnorderedIcon:tz,LocationIcon:rz,LockIcon:nz,MarkdownIcon:oz,MarkupIcon:Lu,MediumIcon:az,MemoryIcon:iz,MenuIcon:sz,MergeIcon:lz,MirrorIcon:uz,MobileIcon:cz,MoonIcon:pz,NutIcon:dz,OutboxIcon:fz,OutlineIcon:yz,PaintBrushIcon:hz,PaperClipIcon:mz,ParagraphIcon:gz,PassedIcon:bz,PhoneIcon:vz,PhotoDragIcon:Ez,PhotoIcon:xz,PinAltIcon:wz,PinIcon:Sz,PlayBackIcon:Az,PlayIcon:Tz,PlayNextIcon:Cz,PlusIcon:_z,PointerDefaultIcon:Oz,PointerHandIcon:Iz,PowerIcon:kz,PrintIcon:Pz,ProceedIcon:Rz,ProfileIcon:Dz,PullRequestIcon:Fz,QuestionIcon:jz,RSSIcon:Nz,RedirectIcon:Bz,ReduxIcon:Lz,RefreshIcon:qz,ReplyIcon:Mz,RepoIcon:Uz,RequestChangeIcon:$z,RewindIcon:zz,RulerIcon:Vz,SearchIcon:Hz,ShareAltIcon:Jz,ShareIcon:Gz,ShieldIcon:Wz,SideBySideIcon:Kz,SidebarAltIcon:Yz,SidebarAltToggleIcon:Xz,SidebarIcon:Qz,SidebarToggleIcon:Zz,SpeakerIcon:e7,StackedIcon:t7,StarHollowIcon:r7,StarIcon:n7,StatusFailIcon:o7,StatusPassIcon:a7,StatusWarnIcon:i7,StickerIcon:s7,StopAltIcon:l7,StopIcon:u7,StorybookIcon:c7,StructureIcon:p7,SubtractIcon:qu,SunIcon:d7,SupportIcon:f7,SwitchAltIcon:y7,SyncIcon:h7,TabletIcon:m7,ThumbsUpIcon:g7,TimeIcon:b7,TimerIcon:v7,TransferIcon:E7,TrashIcon:x7,TwitterIcon:w7,TypeIcon:S7,UbuntuIcon:A7,UndoIcon:oi,UnfoldIcon:T7,UnlockIcon:C7,UnpinIcon:_7,UploadIcon:O7,UserAddIcon:I7,UserAltIcon:k7,UserIcon:P7,UsersIcon:R7,VSCodeIcon:D7,VerifiedIcon:F7,VideoIcon:Mu,WandIcon:j7,WatchIcon:N7,WindowsIcon:B7,WrenchIcon:L7,XIcon:q7,YoutubeIcon:M7,ZoomIcon:Uu,ZoomOutIcon:$u,ZoomResetIcon:zu,iconList:U7}=__STORYBOOK_ICONS__});var ii=U((Z7,Hu)=>{w();S();A();function M1(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r{w();S();A();function U1(){this.__data__=[],this.size=0}Ju.exports=U1});var go=U((sV,Wu)=>{w();S();A();function $1(e,t){return e===t||e!==e&&t!==t}Wu.exports=$1});var pn=U((pV,Ku)=>{w();S();A();var z1=go();function V1(e,t){for(var r=e.length;r--;)if(z1(e[r][0],t))return r;return-1}Ku.exports=V1});var Xu=U((hV,Yu)=>{w();S();A();var H1=pn(),J1=Array.prototype,G1=J1.splice;function W1(e){var t=this.__data__,r=H1(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():G1.call(t,r,1),--this.size,!0}Yu.exports=W1});var Zu=U((vV,Qu)=>{w();S();A();var K1=pn();function Y1(e){var t=this.__data__,r=K1(t,e);return r<0?void 0:t[r][1]}Qu.exports=Y1});var tc=U((SV,ec)=>{w();S();A();var X1=pn();function Q1(e){return X1(this.__data__,e)>-1}ec.exports=Q1});var nc=U((_V,rc)=>{w();S();A();var Z1=pn();function eE(e,t){var r=this.__data__,n=Z1(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}rc.exports=eE});var dn=U((PV,oc)=>{w();S();A();var tE=Gu(),rE=Xu(),nE=Zu(),oE=tc(),aE=nc();function Sr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{w();S();A();var iE=dn();function sE(){this.__data__=new iE,this.size=0}ac.exports=sE});var lc=U((qV,sc)=>{w();S();A();function lE(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}sc.exports=lE});var cc=U((zV,uc)=>{w();S();A();function uE(e){return this.__data__.get(e)}uc.exports=uE});var dc=U((GV,pc)=>{w();S();A();function cE(e){return this.__data__.has(e)}pc.exports=cE});var si=U((XV,fc)=>{w();S();A();var pE=typeof window=="object"&&window&&window.Object===Object&&window;fc.exports=pE});var ot=U((tH,yc)=>{w();S();A();var dE=si(),fE=typeof self=="object"&&self&&self.Object===Object&&self,yE=dE||fE||Function("return this")();yc.exports=yE});var Ar=U((aH,hc)=>{w();S();A();var hE=ot(),mE=hE.Symbol;hc.exports=mE});var vc=U((uH,bc)=>{w();S();A();var mc=Ar(),gc=Object.prototype,gE=gc.hasOwnProperty,bE=gc.toString,fn=mc?mc.toStringTag:void 0;function vE(e){var t=gE.call(e,fn),r=e[fn];try{e[fn]=void 0;var n=!0}catch{}var o=bE.call(e);return n&&(t?e[fn]=r:delete e[fn]),o}bc.exports=vE});var xc=U((fH,Ec)=>{w();S();A();var EE=Object.prototype,xE=EE.toString;function wE(e){return xE.call(e)}Ec.exports=wE});var Tr=U((gH,Ac)=>{w();S();A();var wc=Ar(),SE=vc(),AE=xc(),TE="[object Null]",CE="[object Undefined]",Sc=wc?wc.toStringTag:void 0;function _E(e){return e==null?e===void 0?CE:TE:Sc&&Sc in Object(e)?SE(e):AE(e)}Ac.exports=_E});var mt=U((xH,Tc)=>{w();S();A();function OE(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}Tc.exports=OE});var li=U((TH,Cc)=>{w();S();A();var IE=Tr(),kE=mt(),PE="[object AsyncFunction]",RE="[object Function]",DE="[object GeneratorFunction]",FE="[object Proxy]";function jE(e){if(!kE(e))return!1;var t=IE(e);return t==RE||t==DE||t==PE||t==FE}Cc.exports=jE});var Oc=U((IH,_c)=>{w();S();A();var NE=ot(),BE=NE["__core-js_shared__"];_c.exports=BE});var Pc=U((DH,kc)=>{w();S();A();var ui=Oc(),Ic=function(){var e=/[^.]+$/.exec(ui&&ui.keys&&ui.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function LE(e){return!!Ic&&Ic in e}kc.exports=LE});var ci=U((BH,Rc)=>{w();S();A();var qE=Function.prototype,ME=qE.toString;function UE(e){if(e!=null){try{return ME.call(e)}catch{}try{return e+""}catch{}}return""}Rc.exports=UE});var Fc=U((UH,Dc)=>{w();S();A();var $E=li(),zE=Pc(),VE=mt(),HE=ci(),JE=/[\\^$.*+?()[\]{}|]/g,GE=/^\[object .+?Constructor\]$/,WE=Function.prototype,KE=Object.prototype,YE=WE.toString,XE=KE.hasOwnProperty,QE=RegExp("^"+YE.call(XE).replace(JE,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ZE(e){if(!VE(e)||zE(e))return!1;var t=$E(e)?QE:GE;return t.test(HE(e))}Dc.exports=ZE});var Nc=U((HH,jc)=>{w();S();A();function ex(e,t){return e?.[t]}jc.exports=ex});var Lt=U((KH,Bc)=>{w();S();A();var tx=Fc(),rx=Nc();function nx(e,t){var r=rx(e,t);return tx(r)?r:void 0}Bc.exports=nx});var bo=U((ZH,Lc)=>{w();S();A();var ox=Lt(),ax=ot(),ix=ox(ax,"Map");Lc.exports=ix});var yn=U((nJ,qc)=>{w();S();A();var sx=Lt(),lx=sx(Object,"create");qc.exports=lx});var $c=U((sJ,Uc)=>{w();S();A();var Mc=yn();function ux(){this.__data__=Mc?Mc(null):{},this.size=0}Uc.exports=ux});var Vc=U((pJ,zc)=>{w();S();A();function cx(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}zc.exports=cx});var Jc=U((hJ,Hc)=>{w();S();A();var px=yn(),dx="__lodash_hash_undefined__",fx=Object.prototype,yx=fx.hasOwnProperty;function hx(e){var t=this.__data__;if(px){var r=t[e];return r===dx?void 0:r}return yx.call(t,e)?t[e]:void 0}Hc.exports=hx});var Wc=U((vJ,Gc)=>{w();S();A();var mx=yn(),gx=Object.prototype,bx=gx.hasOwnProperty;function vx(e){var t=this.__data__;return mx?t[e]!==void 0:bx.call(t,e)}Gc.exports=vx});var Yc=U((SJ,Kc)=>{w();S();A();var Ex=yn(),xx="__lodash_hash_undefined__";function wx(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ex&&t===void 0?xx:t,this}Kc.exports=wx});var Qc=U((_J,Xc)=>{w();S();A();var Sx=$c(),Ax=Vc(),Tx=Jc(),Cx=Wc(),_x=Yc();function Cr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{w();S();A();var Zc=Qc(),Ox=dn(),Ix=bo();function kx(){this.size=0,this.__data__={hash:new Zc,map:new(Ix||Ox),string:new Zc}}ep.exports=kx});var np=U((jJ,rp)=>{w();S();A();function Px(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}rp.exports=Px});var hn=U((qJ,op)=>{w();S();A();var Rx=np();function Dx(e,t){var r=e.__data__;return Rx(t)?r[typeof t=="string"?"string":"hash"]:r.map}op.exports=Dx});var ip=U((zJ,ap)=>{w();S();A();var Fx=hn();function jx(e){var t=Fx(this,e).delete(e);return this.size-=t?1:0,t}ap.exports=jx});var lp=U((GJ,sp)=>{w();S();A();var Nx=hn();function Bx(e){return Nx(this,e).get(e)}sp.exports=Bx});var cp=U((XJ,up)=>{w();S();A();var Lx=hn();function qx(e){return Lx(this,e).has(e)}up.exports=qx});var dp=U((tG,pp)=>{w();S();A();var Mx=hn();function Ux(e,t){var r=Mx(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}pp.exports=Ux});var vo=U((aG,fp)=>{w();S();A();var $x=tp(),zx=ip(),Vx=lp(),Hx=cp(),Jx=dp();function _r(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{w();S();A();var Gx=dn(),Wx=bo(),Kx=vo(),Yx=200;function Xx(e,t){var r=this.__data__;if(r instanceof Gx){var n=r.__data__;if(!Wx||n.length{w();S();A();var Qx=dn(),Zx=ic(),ew=lc(),tw=cc(),rw=dc(),nw=hp();function Or(e){var t=this.__data__=new Qx(e);this.size=t.size}Or.prototype.clear=Zx;Or.prototype.delete=ew;Or.prototype.get=tw;Or.prototype.has=rw;Or.prototype.set=nw;mp.exports=Or});var bp=U((gG,gp)=>{w();S();A();var ow="__lodash_hash_undefined__";function aw(e){return this.__data__.set(e,ow),this}gp.exports=aw});var Ep=U((xG,vp)=>{w();S();A();function iw(e){return this.__data__.has(e)}vp.exports=iw});var pi=U((TG,xp)=>{w();S();A();var sw=vo(),lw=bp(),uw=Ep();function xo(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new sw;++t{w();S();A();function cw(e,t){for(var r=-1,n=e==null?0:e.length;++r{w();S();A();function pw(e,t){return e.has(t)}Ap.exports=pw});var fi=U((BG,Tp)=>{w();S();A();var dw=pi(),fw=Sp(),yw=di(),hw=1,mw=2;function gw(e,t,r,n,o,a){var i=r&hw,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var d=-1,y=!0,f=r&mw?new dw:void 0;for(a.set(e,t),a.set(t,e);++d{w();S();A();var bw=ot(),vw=bw.Uint8Array;Cp.exports=vw});var Op=U((HG,_p)=>{w();S();A();function Ew(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}_p.exports=Ew});var wo=U((KG,Ip)=>{w();S();A();function xw(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}Ip.exports=xw});var Fp=U((ZG,Dp)=>{w();S();A();var kp=Ar(),Pp=yi(),ww=go(),Sw=fi(),Aw=Op(),Tw=wo(),Cw=1,_w=2,Ow="[object Boolean]",Iw="[object Date]",kw="[object Error]",Pw="[object Map]",Rw="[object Number]",Dw="[object RegExp]",Fw="[object Set]",jw="[object String]",Nw="[object Symbol]",Bw="[object ArrayBuffer]",Lw="[object DataView]",Rp=kp?kp.prototype:void 0,hi=Rp?Rp.valueOf:void 0;function qw(e,t,r,n,o,a,i){switch(r){case Lw:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Bw:return!(e.byteLength!=t.byteLength||!a(new Pp(e),new Pp(t)));case Ow:case Iw:case Rw:return ww(+e,+t);case kw:return e.name==t.name&&e.message==t.message;case Dw:case jw:return e==t+"";case Pw:var s=Aw;case Fw:var l=n&Cw;if(s||(s=Tw),e.size!=t.size&&!l)return!1;var u=i.get(e);if(u)return u==t;n|=_w,i.set(e,t);var c=Sw(s(e),s(t),n,o,a,i);return i.delete(e),c;case Nw:if(hi)return hi.call(e)==hi.call(t)}return!1}Dp.exports=qw});var mi=U((nW,jp)=>{w();S();A();function Mw(e,t){for(var r=-1,n=t.length,o=e.length;++r{w();S();A();var Uw=Array.isArray;Np.exports=Uw});var gi=U((pW,Bp)=>{w();S();A();var $w=mi(),zw=gt();function Vw(e,t,r){var n=t(e);return zw(e)?n:$w(n,r(e))}Bp.exports=Vw});var qp=U((hW,Lp)=>{w();S();A();function Hw(e,t){for(var r=-1,n=e==null?0:e.length,o=0,a=[];++r{w();S();A();function Jw(){return[]}Mp.exports=Jw});var So=U((SW,$p)=>{w();S();A();var Gw=qp(),Ww=bi(),Kw=Object.prototype,Yw=Kw.propertyIsEnumerable,Up=Object.getOwnPropertySymbols,Xw=Up?function(e){return e==null?[]:(e=Object(e),Gw(Up(e),function(t){return Yw.call(e,t)}))}:Ww;$p.exports=Xw});var Vp=U((_W,zp)=>{w();S();A();function Qw(e,t){for(var r=-1,n=Array(e);++r{w();S();A();function Zw(e){return e!=null&&typeof e=="object"}Hp.exports=Zw});var Gp=U((jW,Jp)=>{w();S();A();var eS=Tr(),tS=qt(),rS="[object Arguments]";function nS(e){return tS(e)&&eS(e)==rS}Jp.exports=nS});var vi=U((qW,Yp)=>{w();S();A();var Wp=Gp(),oS=qt(),Kp=Object.prototype,aS=Kp.hasOwnProperty,iS=Kp.propertyIsEnumerable,sS=Wp(function(){return arguments}())?Wp:function(e){return oS(e)&&aS.call(e,"callee")&&!iS.call(e,"callee")};Yp.exports=sS});var Qp=U((zW,Xp)=>{w();S();A();function lS(){return!1}Xp.exports=lS});var Ao=U((mn,Ir)=>{w();S();A();var uS=ot(),cS=Qp(),td=typeof mn=="object"&&mn&&!mn.nodeType&&mn,Zp=td&&typeof Ir=="object"&&Ir&&!Ir.nodeType&&Ir,pS=Zp&&Zp.exports===td,ed=pS?uS.Buffer:void 0,dS=ed?ed.isBuffer:void 0,fS=dS||cS;Ir.exports=fS});var To=U((YW,rd)=>{w();S();A();var yS=9007199254740991,hS=/^(?:0|[1-9]\d*)$/;function mS(e,t){var r=typeof e;return t=t??yS,!!t&&(r=="number"||r!="symbol"&&hS.test(e))&&e>-1&&e%1==0&&e{w();S();A();var gS=9007199254740991;function bS(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=gS}nd.exports=bS});var ad=U((oK,od)=>{w();S();A();var vS=Tr(),ES=Co(),xS=qt(),wS="[object Arguments]",SS="[object Array]",AS="[object Boolean]",TS="[object Date]",CS="[object Error]",_S="[object Function]",OS="[object Map]",IS="[object Number]",kS="[object Object]",PS="[object RegExp]",RS="[object Set]",DS="[object String]",FS="[object WeakMap]",jS="[object ArrayBuffer]",NS="[object DataView]",BS="[object Float32Array]",LS="[object Float64Array]",qS="[object Int8Array]",MS="[object Int16Array]",US="[object Int32Array]",$S="[object Uint8Array]",zS="[object Uint8ClampedArray]",VS="[object Uint16Array]",HS="[object Uint32Array]",Ee={};Ee[BS]=Ee[LS]=Ee[qS]=Ee[MS]=Ee[US]=Ee[$S]=Ee[zS]=Ee[VS]=Ee[HS]=!0;Ee[wS]=Ee[SS]=Ee[jS]=Ee[AS]=Ee[NS]=Ee[TS]=Ee[CS]=Ee[_S]=Ee[OS]=Ee[IS]=Ee[kS]=Ee[PS]=Ee[RS]=Ee[DS]=Ee[FS]=!1;function JS(e){return xS(e)&&ES(e.length)&&!!Ee[vS(e)]}od.exports=JS});var _o=U((lK,id)=>{w();S();A();function GS(e){return function(t){return e(t)}}id.exports=GS});var Oo=U((gn,kr)=>{w();S();A();var WS=si(),sd=typeof gn=="object"&&gn&&!gn.nodeType&&gn,bn=sd&&typeof kr=="object"&&kr&&!kr.nodeType&&kr,KS=bn&&bn.exports===sd,Ei=KS&&WS.process,YS=function(){try{var e=bn&&bn.require&&bn.require("util").types;return e||Ei&&Ei.binding&&Ei.binding("util")}catch{}}();kr.exports=YS});var xi=U((hK,cd)=>{w();S();A();var XS=ad(),QS=_o(),ld=Oo(),ud=ld&&ld.isTypedArray,ZS=ud?QS(ud):XS;cd.exports=ZS});var wi=U((vK,pd)=>{w();S();A();var eA=Vp(),tA=vi(),rA=gt(),nA=Ao(),oA=To(),aA=xi(),iA=Object.prototype,sA=iA.hasOwnProperty;function lA(e,t){var r=rA(e),n=!r&&tA(e),o=!r&&!n&&nA(e),a=!r&&!n&&!o&&aA(e),i=r||n||o||a,s=i?eA(e.length,String):[],l=s.length;for(var u in e)(t||sA.call(e,u))&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||oA(u,l)))&&s.push(u);return s}pd.exports=lA});var Io=U((SK,dd)=>{w();S();A();var uA=Object.prototype;function cA(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||uA;return e===r}dd.exports=cA});var Si=U((_K,fd)=>{w();S();A();function pA(e,t){return function(r){return e(t(r))}}fd.exports=pA});var hd=U((PK,yd)=>{w();S();A();var dA=Si(),fA=dA(Object.keys,Object);yd.exports=fA});var gd=U((jK,md)=>{w();S();A();var yA=Io(),hA=hd(),mA=Object.prototype,gA=mA.hasOwnProperty;function bA(e){if(!yA(e))return hA(e);var t=[];for(var r in Object(e))gA.call(e,r)&&r!="constructor"&&t.push(r);return t}md.exports=bA});var Ai=U((qK,bd)=>{w();S();A();var vA=li(),EA=Co();function xA(e){return e!=null&&EA(e.length)&&!vA(e)}bd.exports=xA});var vn=U((zK,vd)=>{w();S();A();var wA=wi(),SA=gd(),AA=Ai();function TA(e){return AA(e)?wA(e):SA(e)}vd.exports=TA});var Ti=U((GK,Ed)=>{w();S();A();var CA=gi(),_A=So(),OA=vn();function IA(e){return CA(e,OA,_A)}Ed.exports=IA});var Sd=U((XK,wd)=>{w();S();A();var xd=Ti(),kA=1,PA=Object.prototype,RA=PA.hasOwnProperty;function DA(e,t,r,n,o,a){var i=r&kA,s=xd(e),l=s.length,u=xd(t),c=u.length;if(l!=c&&!i)return!1;for(var d=l;d--;){var y=s[d];if(!(i?y in t:RA.call(t,y)))return!1}var f=a.get(e),h=a.get(t);if(f&&h)return f==t&&h==e;var g=!0;a.set(e,t),a.set(t,e);for(var C=i;++d{w();S();A();var FA=Lt(),jA=ot(),NA=FA(jA,"DataView");Ad.exports=NA});var _d=U((aY,Cd)=>{w();S();A();var BA=Lt(),LA=ot(),qA=BA(LA,"Promise");Cd.exports=qA});var Ci=U((uY,Od)=>{w();S();A();var MA=Lt(),UA=ot(),$A=MA(UA,"Set");Od.exports=$A});var kd=U((fY,Id)=>{w();S();A();var zA=Lt(),VA=ot(),HA=zA(VA,"WeakMap");Id.exports=HA});var En=U((gY,Bd)=>{w();S();A();var _i=Td(),Oi=bo(),Ii=_d(),ki=Ci(),Pi=kd(),Nd=Tr(),Pr=ci(),Pd="[object Map]",JA="[object Object]",Rd="[object Promise]",Dd="[object Set]",Fd="[object WeakMap]",jd="[object DataView]",GA=Pr(_i),WA=Pr(Oi),KA=Pr(Ii),YA=Pr(ki),XA=Pr(Pi),tr=Nd;(_i&&tr(new _i(new ArrayBuffer(1)))!=jd||Oi&&tr(new Oi)!=Pd||Ii&&tr(Ii.resolve())!=Rd||ki&&tr(new ki)!=Dd||Pi&&tr(new Pi)!=Fd)&&(tr=function(e){var t=Nd(e),r=t==JA?e.constructor:void 0,n=r?Pr(r):"";if(n)switch(n){case GA:return jd;case WA:return Pd;case KA:return Rd;case YA:return Dd;case XA:return Fd}return t});Bd.exports=tr});var Hd=U((xY,Vd)=>{w();S();A();var Ri=Eo(),QA=fi(),ZA=Fp(),eT=Sd(),Ld=En(),qd=gt(),Md=Ao(),tT=xi(),rT=1,Ud="[object Arguments]",$d="[object Array]",ko="[object Object]",nT=Object.prototype,zd=nT.hasOwnProperty;function oT(e,t,r,n,o,a){var i=qd(e),s=qd(t),l=i?$d:Ld(e),u=s?$d:Ld(t);l=l==Ud?ko:l,u=u==Ud?ko:u;var c=l==ko,d=u==ko,y=l==u;if(y&&Md(e)){if(!Md(t))return!1;i=!0,c=!1}if(y&&!c)return a||(a=new Ri),i||tT(e)?QA(e,t,r,n,o,a):ZA(e,t,l,r,n,o,a);if(!(r&rT)){var f=c&&zd.call(e,"__wrapped__"),h=d&&zd.call(t,"__wrapped__");if(f||h){var g=f?e.value():e,C=h?t.value():t;return a||(a=new Ri),o(g,C,r,n,a)}}return y?(a||(a=new Ri),eT(e,t,r,n,o,a)):!1}Vd.exports=oT});var Di=U((TY,Wd)=>{w();S();A();var aT=Hd(),Jd=qt();function Gd(e,t,r,n,o){return e===t?!0:e==null||t==null||!Jd(e)&&!Jd(t)?e!==e&&t!==t:aT(e,t,r,n,Gd,o)}Wd.exports=Gd});var Yd=U((IY,Kd)=>{w();S();A();var iT=Eo(),sT=Di(),lT=1,uT=2;function cT(e,t,r,n){var o=r.length,a=o,i=!n;if(e==null)return!a;for(e=Object(e);o--;){var s=r[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o{w();S();A();var pT=mt();function dT(e){return e===e&&!pT(e)}Xd.exports=dT});var Zd=U((BY,Qd)=>{w();S();A();var fT=Fi(),yT=vn();function hT(e){for(var t=yT(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,fT(o)]}return t}Qd.exports=hT});var ji=U((UY,ef)=>{w();S();A();function mT(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}ef.exports=mT});var rf=U((HY,tf)=>{w();S();A();var gT=Yd(),bT=Zd(),vT=ji();function ET(e){var t=bT(e);return t.length==1&&t[0][2]?vT(t[0][0],t[0][1]):function(r){return r===e||gT(r,e,t)}}tf.exports=ET});var xn=U((KY,nf)=>{w();S();A();var xT=Tr(),wT=qt(),ST="[object Symbol]";function AT(e){return typeof e=="symbol"||wT(e)&&xT(e)==ST}nf.exports=AT});var Po=U((ZY,of)=>{w();S();A();var TT=gt(),CT=xn(),_T=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,OT=/^\w*$/;function IT(e,t){if(TT(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||CT(e)?!0:OT.test(e)||!_T.test(e)||t!=null&&e in Object(t)}of.exports=IT});var lf=U((nX,sf)=>{w();S();A();var af=vo(),kT="Expected a function";function Ni(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(kT);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Ni.Cache||af),r}Ni.Cache=af;sf.exports=Ni});var cf=U((sX,uf)=>{w();S();A();var PT=lf(),RT=500;function DT(e){var t=PT(e,function(n){return r.size===RT&&r.clear(),n}),r=t.cache;return t}uf.exports=DT});var df=U((pX,pf)=>{w();S();A();var FT=cf(),jT=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,NT=/\\(\\)?/g,BT=FT(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(jT,function(r,n,o,a){t.push(o?a.replace(NT,"$1"):n||r)}),t});pf.exports=BT});var bf=U((hX,gf)=>{w();S();A();var ff=Ar(),LT=ii(),qT=gt(),MT=xn(),UT=1/0,yf=ff?ff.prototype:void 0,hf=yf?yf.toString:void 0;function mf(e){if(typeof e=="string")return e;if(qT(e))return LT(e,mf)+"";if(MT(e))return hf?hf.call(e):"";var t=e+"";return t=="0"&&1/e==-UT?"-0":t}gf.exports=mf});var Ef=U((vX,vf)=>{w();S();A();var $T=bf();function zT(e){return e==null?"":$T(e)}vf.exports=zT});var wn=U((SX,xf)=>{w();S();A();var VT=gt(),HT=Po(),JT=df(),GT=Ef();function WT(e,t){return VT(e)?e:HT(e,t)?[e]:JT(GT(e))}xf.exports=WT});var Rr=U((_X,wf)=>{w();S();A();var KT=xn(),YT=1/0;function XT(e){if(typeof e=="string"||KT(e))return e;var t=e+"";return t=="0"&&1/e==-YT?"-0":t}wf.exports=XT});var Ro=U((PX,Sf)=>{w();S();A();var QT=wn(),ZT=Rr();function eC(e,t){t=QT(t,e);for(var r=0,n=t.length;e!=null&&r{w();S();A();var tC=Ro();function rC(e,t,r){var n=e==null?void 0:tC(e,t);return n===void 0?r:n}Af.exports=rC});var _f=U((qX,Cf)=>{w();S();A();function nC(e,t){return e!=null&&t in Object(e)}Cf.exports=nC});var If=U((zX,Of)=>{w();S();A();var oC=wn(),aC=vi(),iC=gt(),sC=To(),lC=Co(),uC=Rr();function cC(e,t,r){t=oC(t,e);for(var n=-1,o=t.length,a=!1;++n{w();S();A();var pC=_f(),dC=If();function fC(e,t){return e!=null&&dC(e,t,pC)}kf.exports=fC});var Df=U((XX,Rf)=>{w();S();A();var yC=Di(),hC=Tf(),mC=Pf(),gC=Po(),bC=Fi(),vC=ji(),EC=Rr(),xC=1,wC=2;function SC(e,t){return gC(e)&&bC(t)?vC(EC(e),t):function(r){var n=hC(r,e);return n===void 0&&n===t?mC(r,e):yC(t,n,xC|wC)}}Rf.exports=SC});var jf=U((tQ,Ff)=>{w();S();A();function AC(e){return e}Ff.exports=AC});var Bf=U((aQ,Nf)=>{w();S();A();function TC(e){return function(t){return t?.[e]}}Nf.exports=TC});var qf=U((uQ,Lf)=>{w();S();A();var CC=Ro();function _C(e){return function(t){return CC(t,e)}}Lf.exports=_C});var Uf=U((fQ,Mf)=>{w();S();A();var OC=Bf(),IC=qf(),kC=Po(),PC=Rr();function RC(e){return kC(e)?OC(PC(e)):IC(e)}Mf.exports=RC});var zf=U((gQ,$f)=>{w();S();A();var DC=rf(),FC=Df(),jC=jf(),NC=gt(),BC=Uf();function LC(e){return typeof e=="function"?e:e==null?jC:typeof e=="object"?NC(e)?FC(e[0],e[1]):DC(e):BC(e)}$f.exports=LC});var Hf=U((xQ,Vf)=>{w();S();A();var qC=Lt(),MC=function(){try{var e=qC(Object,"defineProperty");return e({},"",{}),e}catch{}}();Vf.exports=MC});var Bi=U((TQ,Gf)=>{w();S();A();var Jf=Hf();function UC(e,t,r){t=="__proto__"&&Jf?Jf(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}Gf.exports=UC});var Do=U((IQ,Wf)=>{w();S();A();var $C=Bi(),zC=go(),VC=Object.prototype,HC=VC.hasOwnProperty;function JC(e,t,r){var n=e[t];(!(HC.call(e,t)&&zC(n,r))||r===void 0&&!(t in e))&&$C(e,t,r)}Wf.exports=JC});var Xf=U((DQ,Yf)=>{w();S();A();var GC=Do(),WC=wn(),KC=To(),Kf=mt(),YC=Rr();function XC(e,t,r,n){if(!Kf(e))return e;t=WC(t,e);for(var o=-1,a=t.length,i=a-1,s=e;s!=null&&++o{w();S();A();var QC=Ro(),ZC=Xf(),e_=wn();function t_(e,t,r){for(var n=-1,o=t.length,a={};++n{w();S();A();var r_=Si(),n_=r_(Object.getPrototypeOf,Object);ey.exports=n_});var qi=U((HQ,ty)=>{w();S();A();var o_=mi(),a_=Li(),i_=So(),s_=bi(),l_=Object.getOwnPropertySymbols,u_=l_?function(e){for(var t=[];e;)o_(t,i_(e)),e=a_(e);return t}:s_;ty.exports=u_});var ny=U((KQ,ry)=>{w();S();A();function c_(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}ry.exports=c_});var ay=U((ZQ,oy)=>{w();S();A();var p_=mt(),d_=Io(),f_=ny(),y_=Object.prototype,h_=y_.hasOwnProperty;function m_(e){if(!p_(e))return f_(e);var t=d_(e),r=[];for(var n in e)n=="constructor"&&(t||!h_.call(e,n))||r.push(n);return r}oy.exports=m_});var Fo=U((nZ,iy)=>{w();S();A();var g_=wi(),b_=ay(),v_=Ai();function E_(e){return v_(e)?g_(e,!0):b_(e)}iy.exports=E_});var Mi=U((sZ,sy)=>{w();S();A();var x_=gi(),w_=qi(),S_=Fo();function A_(e){return x_(e,S_,w_)}sy.exports=A_});var uy=U((pZ,ly)=>{w();S();A();var T_=ii(),C_=zf(),__=Zf(),O_=Mi();function I_(e,t){if(e==null)return{};var r=T_(O_(e),function(n){return[n]});return t=C_(t),__(e,r,function(n,o){return t(n,o[0])})}ly.exports=I_});var py=U((hZ,cy)=>{w();S();A();function k_(e,t){for(var r=-1,n=e==null?0:e.length;++r{w();S();A();var P_=Do(),R_=Bi();function D_(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a{w();S();A();var F_=Sn(),j_=vn();function N_(e,t){return e&&F_(t,j_(t),e)}fy.exports=N_});var my=U((_Z,hy)=>{w();S();A();var B_=Sn(),L_=Fo();function q_(e,t){return e&&B_(t,L_(t),e)}hy.exports=q_});var xy=U((An,Dr)=>{w();S();A();var M_=ot(),Ey=typeof An=="object"&&An&&!An.nodeType&&An,gy=Ey&&typeof Dr=="object"&&Dr&&!Dr.nodeType&&Dr,U_=gy&&gy.exports===Ey,by=U_?M_.Buffer:void 0,vy=by?by.allocUnsafe:void 0;function $_(e,t){if(t)return e.slice();var r=e.length,n=vy?vy(r):new e.constructor(r);return e.copy(n),n}Dr.exports=$_});var Sy=U((FZ,wy)=>{w();S();A();function z_(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r{w();S();A();var V_=Sn(),H_=So();function J_(e,t){return V_(e,H_(e),t)}Ay.exports=J_});var _y=U(($Z,Cy)=>{w();S();A();var G_=Sn(),W_=qi();function K_(e,t){return G_(e,W_(e),t)}Cy.exports=K_});var Iy=U((JZ,Oy)=>{w();S();A();var Y_=Object.prototype,X_=Y_.hasOwnProperty;function Q_(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&X_.call(e,"index")&&(r.index=e.index,r.input=e.input),r}Oy.exports=Q_});var jo=U((YZ,Py)=>{w();S();A();var ky=yi();function Z_(e){var t=new e.constructor(e.byteLength);return new ky(t).set(new ky(e)),t}Py.exports=Z_});var Dy=U((eee,Ry)=>{w();S();A();var eO=jo();function tO(e,t){var r=t?eO(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}Ry.exports=tO});var jy=U((oee,Fy)=>{w();S();A();var rO=/\w*$/;function nO(e){var t=new e.constructor(e.source,rO.exec(e));return t.lastIndex=e.lastIndex,t}Fy.exports=nO});var My=U((lee,qy)=>{w();S();A();var Ny=Ar(),By=Ny?Ny.prototype:void 0,Ly=By?By.valueOf:void 0;function oO(e){return Ly?Object(Ly.call(e)):{}}qy.exports=oO});var $y=U((dee,Uy)=>{w();S();A();var aO=jo();function iO(e,t){var r=t?aO(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}Uy.exports=iO});var Vy=U((mee,zy)=>{w();S();A();var sO=jo(),lO=Dy(),uO=jy(),cO=My(),pO=$y(),dO="[object Boolean]",fO="[object Date]",yO="[object Map]",hO="[object Number]",mO="[object RegExp]",gO="[object Set]",bO="[object String]",vO="[object Symbol]",EO="[object ArrayBuffer]",xO="[object DataView]",wO="[object Float32Array]",SO="[object Float64Array]",AO="[object Int8Array]",TO="[object Int16Array]",CO="[object Int32Array]",_O="[object Uint8Array]",OO="[object Uint8ClampedArray]",IO="[object Uint16Array]",kO="[object Uint32Array]";function PO(e,t,r){var n=e.constructor;switch(t){case EO:return sO(e);case dO:case fO:return new n(+e);case xO:return lO(e,r);case wO:case SO:case AO:case TO:case CO:case _O:case OO:case IO:case kO:return pO(e,r);case yO:return new n;case hO:case bO:return new n(e);case mO:return uO(e);case gO:return new n;case vO:return cO(e)}}zy.exports=PO});var Gy=U((Eee,Jy)=>{w();S();A();var RO=mt(),Hy=Object.create,DO=function(){function e(){}return function(t){if(!RO(t))return{};if(Hy)return Hy(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();Jy.exports=DO});var Ky=U((Aee,Wy)=>{w();S();A();var FO=Gy(),jO=Li(),NO=Io();function BO(e){return typeof e.constructor=="function"&&!NO(e)?FO(jO(e)):{}}Wy.exports=BO});var Xy=U((Oee,Yy)=>{w();S();A();var LO=En(),qO=qt(),MO="[object Map]";function UO(e){return qO(e)&&LO(e)==MO}Yy.exports=UO});var th=U((Ree,eh)=>{w();S();A();var $O=Xy(),zO=_o(),Qy=Oo(),Zy=Qy&&Qy.isMap,VO=Zy?zO(Zy):$O;eh.exports=VO});var nh=U((Nee,rh)=>{w();S();A();var HO=En(),JO=qt(),GO="[object Set]";function WO(e){return JO(e)&&HO(e)==GO}rh.exports=WO});var sh=U((Mee,ih)=>{w();S();A();var KO=nh(),YO=_o(),oh=Oo(),ah=oh&&oh.isSet,XO=ah?YO(ah):KO;ih.exports=XO});var dh=U((Vee,ph)=>{w();S();A();var QO=Eo(),ZO=py(),eI=Do(),tI=yy(),rI=my(),nI=xy(),oI=Sy(),aI=Ty(),iI=_y(),sI=Ti(),lI=Mi(),uI=En(),cI=Iy(),pI=Vy(),dI=Ky(),fI=gt(),yI=Ao(),hI=th(),mI=mt(),gI=sh(),bI=vn(),vI=Fo(),EI=1,xI=2,wI=4,lh="[object Arguments]",SI="[object Array]",AI="[object Boolean]",TI="[object Date]",CI="[object Error]",uh="[object Function]",_I="[object GeneratorFunction]",OI="[object Map]",II="[object Number]",ch="[object Object]",kI="[object RegExp]",PI="[object Set]",RI="[object String]",DI="[object Symbol]",FI="[object WeakMap]",jI="[object ArrayBuffer]",NI="[object DataView]",BI="[object Float32Array]",LI="[object Float64Array]",qI="[object Int8Array]",MI="[object Int16Array]",UI="[object Int32Array]",$I="[object Uint8Array]",zI="[object Uint8ClampedArray]",VI="[object Uint16Array]",HI="[object Uint32Array]",ve={};ve[lh]=ve[SI]=ve[jI]=ve[NI]=ve[AI]=ve[TI]=ve[BI]=ve[LI]=ve[qI]=ve[MI]=ve[UI]=ve[OI]=ve[II]=ve[ch]=ve[kI]=ve[PI]=ve[RI]=ve[DI]=ve[$I]=ve[zI]=ve[VI]=ve[HI]=!0;ve[CI]=ve[uh]=ve[FI]=!1;function No(e,t,r,n,o,a){var i,s=t&EI,l=t&xI,u=t&wI;if(r&&(i=o?r(e,n,o,a):r(e)),i!==void 0)return i;if(!mI(e))return e;var c=fI(e);if(c){if(i=cI(e),!s)return oI(e,i)}else{var d=uI(e),y=d==uh||d==_I;if(yI(e))return nI(e,s);if(d==ch||d==lh||y&&!o){if(i=l||y?{}:dI(e),!s)return l?iI(e,rI(i,e)):aI(e,tI(i,e))}else{if(!ve[d])return o?e:{};i=pI(e,d,s)}}a||(a=new QO);var f=a.get(e);if(f)return f;a.set(e,i),gI(e)?e.forEach(function(C){i.add(No(C,t,r,C,e,a))}):hI(e)&&e.forEach(function(C,b){i.set(b,No(C,t,r,b,e,a))});var h=u?l?lI:sI:l?vI:bI,g=c?void 0:h(e);return ZO(g||e,function(C,b){g&&(b=C,C=e[b]),eI(i,b,No(C,t,r,b,e,a))}),i}ph.exports=No});var yh=U((Wee,fh)=>{w();S();A();var JI=dh(),GI=1,WI=4;function KI(e){return JI(e,GI|WI)}fh.exports=KI});var mh=U((Qee,hh)=>{w();S();A();function YI(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a{w();S();A();function XI(e){return e!==e}gh.exports=XI});var Eh=U((ite,vh)=>{w();S();A();function QI(e,t,r){for(var n=r-1,o=e.length;++n{w();S();A();var ZI=mh(),ek=bh(),tk=Eh();function rk(e,t,r){return t===t?tk(e,t,r):ZI(e,ek,r)}xh.exports=rk});var Ah=U((yte,Sh)=>{w();S();A();var nk=wh();function ok(e,t){var r=e==null?0:e.length;return!!r&&nk(e,t,0)>-1}Sh.exports=ok});var Ch=U((bte,Th)=>{w();S();A();function ak(e,t,r){for(var n=-1,o=e==null?0:e.length;++n{w();S();A();function ik(){}_h.exports=ik});var kh=U((Cte,Ih)=>{w();S();A();var Ui=Ci(),sk=Oh(),lk=wo(),uk=1/0,ck=Ui&&1/lk(new Ui([,-0]))[1]==uk?function(e){return new Ui(e)}:sk;Ih.exports=ck});var Rh=U((kte,Ph)=>{w();S();A();var pk=pi(),dk=Ah(),fk=Ch(),yk=di(),hk=kh(),mk=wo(),gk=200;function bk(e,t,r){var n=-1,o=dk,a=e.length,i=!0,s=[],l=s;if(r)i=!1,o=fk;else if(a>=gk){var u=t?null:hk(e);if(u)return mk(u);i=!1,o=yk,l=new pk}else l=t?[]:s;e:for(;++n{w();S();A();var vk=Rh();function Ek(e){return e&&e.length?vk(e):[]}Dh.exports=Ek});var ub=U((na,lb)=>{w();S();A();(function(e,t){typeof na=="object"&&typeof lb<"u"?t(na):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.jtpp={}))})(na,function(e){"use strict";function t(p){return p.text!==void 0&&p.text!==""?`'${p.type}' with value '${p.text}'`:`'${p.type}'`}class r extends Error{constructor(x){super(`No parslet found for token: ${t(x)}`),this.token=x,Object.setPrototypeOf(this,r.prototype)}getToken(){return this.token}}class n extends Error{constructor(x){super(`The parsing ended early. The next token was: ${t(x)}`),this.token=x,Object.setPrototypeOf(this,n.prototype)}getToken(){return this.token}}class o extends Error{constructor(x,k){let H=`Unexpected type: '${x.type}'.`;k!==void 0&&(H+=` Message: ${k}`),super(H),Object.setPrototypeOf(this,o.prototype)}}function a(p){return x=>x.startsWith(p)?{type:p,text:p}:null}function i(p){let x=0,k,H=p[0],Q=!1;if(H!=="'"&&H!=='"')return null;for(;x{let x=u(p);return x==null?null:{type:"Identifier",text:x}};function f(p){return x=>{if(!x.startsWith(p))return null;let k=x[p.length];return k!==void 0&&l.test(k)?null:{type:p,text:p}}}let h=p=>{let x=i(p);return x==null?null:{type:"StringValue",text:x}},g=p=>p.length>0?null:{type:"EOF",text:""},C=p=>{let x=d(p);return x===null?null:{type:"Number",text:x}},b=[g,a("=>"),a("("),a(")"),a("{"),a("}"),a("["),a("]"),a("|"),a("&"),a("<"),a(">"),a(","),a(";"),a("*"),a("?"),a("!"),a("="),a(":"),a("..."),a("."),a("#"),a("~"),a("/"),a("@"),f("undefined"),f("null"),f("function"),f("this"),f("new"),f("module"),f("event"),f("external"),f("typeof"),f("keyof"),f("readonly"),f("import"),f("is"),f("in"),f("asserts"),C,y,h],E=/^\s*\n\s*/;class _{static create(x){let k=this.read(x);x=k.text;let H=this.read(x);return x=H.text,new _(x,void 0,k.token,H.token)}constructor(x,k,H,Q){this.text="",this.text=x,this.previous=k,this.current=H,this.next=Q}static read(x,k=!1){k=k||E.test(x),x=x.trim();for(let H of b){let Q=H(x);if(Q!==null){let ne=Object.assign(Object.assign({},Q),{startOfLine:k});return x=x.slice(ne.text.length),{text:x,token:ne}}}throw new Error("Unexpected Token "+x)}advance(){let x=_.read(this.text);return new _(x.text,this.current,this.next,x.token)}}function T(p){if(p===void 0)throw new Error("Unexpected undefined");if(p.type==="JsdocTypeKeyValue"||p.type==="JsdocTypeParameterList"||p.type==="JsdocTypeProperty"||p.type==="JsdocTypeReadonlyProperty"||p.type==="JsdocTypeObjectField"||p.type==="JsdocTypeJsdocObjectField"||p.type==="JsdocTypeIndexSignature"||p.type==="JsdocTypeMappedType")throw new o(p);return p}function O(p){return p.type==="JsdocTypeKeyValue"?D(p):T(p)}function I(p){return p.type==="JsdocTypeName"?p:D(p)}function D(p){if(p.type!=="JsdocTypeKeyValue")throw new o(p);return p}function R(p){var x;if(p.type==="JsdocTypeVariadic"){if(((x=p.element)===null||x===void 0?void 0:x.type)==="JsdocTypeName")return p;throw new o(p)}if(p.type!=="JsdocTypeNumber"&&p.type!=="JsdocTypeName")throw new o(p);return p}function M(p){return p.type==="JsdocTypeIndexSignature"||p.type==="JsdocTypeMappedType"}var z;(function(p){p[p.ALL=0]="ALL",p[p.PARAMETER_LIST=1]="PARAMETER_LIST",p[p.OBJECT=2]="OBJECT",p[p.KEY_VALUE=3]="KEY_VALUE",p[p.INDEX_BRACKETS=4]="INDEX_BRACKETS",p[p.UNION=5]="UNION",p[p.INTERSECTION=6]="INTERSECTION",p[p.PREFIX=7]="PREFIX",p[p.INFIX=8]="INFIX",p[p.TUPLE=9]="TUPLE",p[p.SYMBOL=10]="SYMBOL",p[p.OPTIONAL=11]="OPTIONAL",p[p.NULLABLE=12]="NULLABLE",p[p.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",p[p.FUNCTION=14]="FUNCTION",p[p.ARROW=15]="ARROW",p[p.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",p[p.GENERIC=17]="GENERIC",p[p.NAME_PATH=18]="NAME_PATH",p[p.PARENTHESIS=19]="PARENTHESIS",p[p.SPECIAL_TYPES=20]="SPECIAL_TYPES"})(z||(z={}));class Y{constructor(x,k,H){this.grammar=x,typeof k=="string"?this._lexer=_.create(k):this._lexer=k,this.baseParser=H}get lexer(){return this._lexer}parse(){let x=this.parseType(z.ALL);if(this.lexer.current.type!=="EOF")throw new n(this.lexer.current);return x}parseType(x){return T(this.parseIntermediateType(x))}parseIntermediateType(x){let k=this.tryParslets(null,x);if(k===null)throw new r(this.lexer.current);return this.parseInfixIntermediateType(k,x)}parseInfixIntermediateType(x,k){let H=this.tryParslets(x,k);for(;H!==null;)x=H,H=this.tryParslets(x,k);return x}tryParslets(x,k){for(let H of this.grammar){let Q=H(this,k,x);if(Q!==null)return Q}return null}consume(x){return Array.isArray(x)||(x=[x]),x.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(x){this._lexer=x.lexer}}function Z(p){return p==="EOF"||p==="|"||p===","||p===")"||p===">"}let V=(p,x,k)=>{let H=p.lexer.current.type,Q=p.lexer.next.type;return k==null&&H==="?"&&!Z(Q)||k!=null&&H==="?"?(p.consume("?"),k==null?{type:"JsdocTypeNullable",element:p.parseType(z.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:T(k),meta:{position:"suffix"}}):null};function P(p){let x=(k,H,Q)=>{let ne=k.lexer.current.type,ae=k.lexer.next.type;if(Q===null){if("parsePrefix"in p&&p.accept(ne,ae))return p.parsePrefix(k)}else if("parseInfix"in p&&p.precedence>H&&p.accept(ne,ae))return p.parseInfix(k,Q);return null};return Object.defineProperty(x,"name",{value:p.name}),x}let q=P({name:"optionalParslet",accept:p=>p==="=",precedence:z.OPTIONAL,parsePrefix:p=>(p.consume("="),{type:"JsdocTypeOptional",element:p.parseType(z.OPTIONAL),meta:{position:"prefix"}}),parseInfix:(p,x)=>(p.consume("="),{type:"JsdocTypeOptional",element:T(x),meta:{position:"suffix"}})}),J=P({name:"numberParslet",accept:p=>p==="Number",parsePrefix:p=>{let x=parseFloat(p.lexer.current.text);return p.consume("Number"),{type:"JsdocTypeNumber",value:x}}}),X=P({name:"parenthesisParslet",accept:p=>p==="(",parsePrefix:p=>{if(p.consume("("),p.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let x=p.parseIntermediateType(z.ALL);if(!p.consume(")"))throw new Error("Unterminated parenthesis");return x.type==="JsdocTypeParameterList"?x:x.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[x]}:{type:"JsdocTypeParenthesis",element:T(x)}}}),te=P({name:"specialTypesParslet",accept:(p,x)=>p==="?"&&Z(x)||p==="null"||p==="undefined"||p==="*",parsePrefix:p=>{if(p.consume("null"))return{type:"JsdocTypeNull"};if(p.consume("undefined"))return{type:"JsdocTypeUndefined"};if(p.consume("*"))return{type:"JsdocTypeAny"};if(p.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+p.lexer.current.text)}}),re=P({name:"notNullableParslet",accept:p=>p==="!",precedence:z.NULLABLE,parsePrefix:p=>(p.consume("!"),{type:"JsdocTypeNotNullable",element:p.parseType(z.NULLABLE),meta:{position:"prefix"}}),parseInfix:(p,x)=>(p.consume("!"),{type:"JsdocTypeNotNullable",element:T(x),meta:{position:"suffix"}})});function ee({allowTrailingComma:p}){return P({name:"parameterListParslet",accept:x=>x===",",precedence:z.PARAMETER_LIST,parseInfix:(x,k)=>{let H=[O(k)];x.consume(",");do try{let Q=x.parseIntermediateType(z.PARAMETER_LIST);H.push(O(Q))}catch(Q){if(p&&Q instanceof r)break;throw Q}while(x.consume(","));if(H.length>0&&H.slice(0,-1).some(Q=>Q.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:H}}})}let oe=P({name:"genericParslet",accept:(p,x)=>p==="<"||p==="."&&x==="<",precedence:z.GENERIC,parseInfix:(p,x)=>{let k=p.consume(".");p.consume("<");let H=[];do H.push(p.parseType(z.PARAMETER_LIST));while(p.consume(","));if(!p.consume(">"))throw new Error("Unterminated generic parameter list");return{type:"JsdocTypeGeneric",left:T(x),elements:H,meta:{brackets:"angle",dot:k}}}}),ie=P({name:"unionParslet",accept:p=>p==="|",precedence:z.UNION,parseInfix:(p,x)=>{p.consume("|");let k=[];do k.push(p.parseType(z.UNION));while(p.consume("|"));return{type:"JsdocTypeUnion",elements:[T(x),...k]}}}),ce=[V,q,J,X,te,re,ee({allowTrailingComma:!0}),oe,ie,q];function be({allowSquareBracketsOnAnyType:p,allowJsdocNamePaths:x,pathGrammar:k}){return function(Q,ne,ae){if(ae==null||ne>=z.NAME_PATH)return null;let de=Q.lexer.current.type,Ne=Q.lexer.next.type;if(!(de==="."&&Ne!=="<"||de==="["&&(p||ae.type==="JsdocTypeName")||x&&(de==="~"||de==="#")))return null;let nt,ro=!1;Q.consume(".")?nt="property":Q.consume("[")?(nt="property-brackets",ro=!0):Q.consume("~")?nt="inner":(Q.consume("#"),nt="instance");let Ul=k!==null?new Y(k,Q.lexer,Q):Q,wt=Ul.parseIntermediateType(z.NAME_PATH);Q.acceptLexerState(Ul);let nn;switch(wt.type){case"JsdocTypeName":nn={type:"JsdocTypeProperty",value:wt.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":nn={type:"JsdocTypeProperty",value:wt.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":nn={type:"JsdocTypeProperty",value:wt.value,meta:{quote:wt.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(wt.specialType==="event")nn=wt;else throw new o(wt,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new o(wt,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(ro&&!Q.consume("]")){let $l=Q.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${$l.type}' with text '${$l.text}'`)}return{type:"JsdocTypeNamePath",left:T(ae),right:nn,pathType:nt}}}function pe({allowedAdditionalTokens:p}){return P({name:"nameParslet",accept:x=>x==="Identifier"||x==="this"||x==="new"||p.includes(x),parsePrefix:x=>{let{type:k,text:H}=x.lexer.current;return x.consume(k),{type:"JsdocTypeName",value:H}}})}let ye=P({name:"stringValueParslet",accept:p=>p==="StringValue",parsePrefix:p=>{let x=p.lexer.current.text;return p.consume("StringValue"),{type:"JsdocTypeStringValue",value:x.slice(1,-1),meta:{quote:x[0]==="'"?"single":"double"}}}});function _e({pathGrammar:p,allowedTypes:x}){return P({name:"specialNamePathParslet",accept:k=>x.includes(k),parsePrefix:k=>{let H=k.lexer.current.type;if(k.consume(H),!k.consume(":"))return{type:"JsdocTypeName",value:H};let Q,ne=k.lexer.current;if(k.consume("StringValue"))Q={type:"JsdocTypeSpecialNamePath",value:ne.text.slice(1,-1),specialType:H,meta:{quote:ne.text[0]==="'"?"single":"double"}};else{let Ne="",Ie=["Identifier","@","/"];for(;Ie.some(nt=>k.consume(nt));)Ne+=ne.text,ne=k.lexer.current;Q={type:"JsdocTypeSpecialNamePath",value:Ne,specialType:H,meta:{quote:void 0}}}let ae=new Y(p,k.lexer,k),de=ae.parseInfixIntermediateType(Q,z.ALL);return k.acceptLexerState(ae),T(de)}})}let Me=[pe({allowedAdditionalTokens:["external","module"]}),ye,J,be({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],Oe=[...Me,_e({allowedTypes:["event"],pathGrammar:Me})];function he(p){let x;if(p.type==="JsdocTypeParameterList")x=p.elements;else if(p.type==="JsdocTypeParenthesis")x=[p.element];else throw new o(p);return x.map(k=>O(k))}function Ue(p){let x=he(p);if(x.some(k=>k.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return x}function Te({allowNamedParameters:p,allowNoReturnType:x,allowWithoutParenthesis:k,allowNewAsFunctionKeyword:H}){return P({name:"functionParslet",accept:(Q,ne)=>Q==="function"||H&&Q==="new"&&ne==="(",parsePrefix:Q=>{let ne=Q.consume("new");Q.consume("function");let ae=Q.lexer.current.type==="(";if(!ae){if(!k)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let de={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:ne,parenthesis:ae},Ne=Q.parseIntermediateType(z.FUNCTION);if(p===void 0)de.parameters=Ue(Ne);else{if(ne&&Ne.type==="JsdocTypeFunction"&&Ne.arrow)return de=Ne,de.constructor=!0,de;de.parameters=he(Ne);for(let Ie of de.parameters)if(Ie.type==="JsdocTypeKeyValue"&&!p.includes(Ie.key))throw new Error(`only allowed named parameters are ${p.join(", ")} but got ${Ie.type}`)}if(Q.consume(":"))de.returnType=Q.parseType(z.PREFIX);else if(!x)throw new Error("function is missing return type");return de}})}function $e({allowPostfix:p,allowEnclosingBrackets:x}){return P({name:"variadicParslet",accept:k=>k==="...",precedence:z.PREFIX,parsePrefix:k=>{k.consume("...");let H=x&&k.consume("[");try{let Q=k.parseType(z.PREFIX);if(H&&!k.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:T(Q),meta:{position:"prefix",squareBrackets:H}}}catch(Q){if(Q instanceof r){if(H)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw Q}},parseInfix:p?(k,H)=>(k.consume("..."),{type:"JsdocTypeVariadic",element:T(H),meta:{position:"suffix",squareBrackets:!1}}):void 0})}let lt=P({name:"symbolParslet",accept:p=>p==="(",precedence:z.SYMBOL,parseInfix:(p,x)=>{if(x.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");p.consume("(");let k={type:"JsdocTypeSymbol",value:x.value};if(!p.consume(")")){let H=p.parseIntermediateType(z.SYMBOL);if(k.element=R(H),!p.consume(")"))throw new Error("Symbol does not end after value")}return k}}),je=P({name:"arrayBracketsParslet",precedence:z.ARRAY_BRACKETS,accept:(p,x)=>p==="["&&x==="]",parseInfix:(p,x)=>(p.consume("["),p.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[T(x)],meta:{brackets:"square",dot:!1}})});function fe({objectFieldGrammar:p,allowKeyTypes:x}){return P({name:"objectParslet",accept:k=>k==="{",parsePrefix:k=>{k.consume("{");let H={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!k.consume("}")){let Q,ne=new Y(p,k.lexer,k);for(;;){ne.acceptLexerState(k);let ae=ne.parseIntermediateType(z.OBJECT);k.acceptLexerState(ne),ae===void 0&&x&&(ae=k.parseIntermediateType(z.OBJECT));let de=!1;if(ae.type==="JsdocTypeNullable"&&(de=!0,ae=ae.element),ae.type==="JsdocTypeNumber"||ae.type==="JsdocTypeName"||ae.type==="JsdocTypeStringValue"){let Ie;ae.type==="JsdocTypeStringValue"&&(Ie=ae.meta.quote),H.elements.push({type:"JsdocTypeObjectField",key:ae.value.toString(),right:void 0,optional:de,readonly:!1,meta:{quote:Ie}})}else if(ae.type==="JsdocTypeObjectField"||ae.type==="JsdocTypeJsdocObjectField")H.elements.push(ae);else throw new o(ae);if(k.lexer.current.startOfLine)Q="linebreak";else if(k.consume(","))Q="comma";else if(k.consume(";"))Q="semicolon";else break;if(k.lexer.current.type==="}")break}if(H.meta.separator=Q??"comma",!k.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return H}})}function Se({allowSquaredProperties:p,allowKeyTypes:x,allowReadonly:k,allowOptional:H}){return P({name:"objectFieldParslet",precedence:z.KEY_VALUE,accept:Q=>Q===":",parseInfix:(Q,ne)=>{var ae;let de=!1,Ne=!1;H&&ne.type==="JsdocTypeNullable"&&(de=!0,ne=ne.element),k&&ne.type==="JsdocTypeReadonlyProperty"&&(Ne=!0,ne=ne.element);let Ie=(ae=Q.baseParser)!==null&&ae!==void 0?ae:Q;if(Ie.acceptLexerState(Q),ne.type==="JsdocTypeNumber"||ne.type==="JsdocTypeName"||ne.type==="JsdocTypeStringValue"||M(ne)){if(M(ne)&&!p)throw new o(ne);Ie.consume(":");let nt;ne.type==="JsdocTypeStringValue"&&(nt=ne.meta.quote);let ro=Ie.parseType(z.KEY_VALUE);return Q.acceptLexerState(Ie),{type:"JsdocTypeObjectField",key:M(ne)?ne:ne.value.toString(),right:ro,optional:de,readonly:Ne,meta:{quote:nt}}}else{if(!x)throw new o(ne);Ie.consume(":");let nt=Ie.parseType(z.KEY_VALUE);return Q.acceptLexerState(Ie),{type:"JsdocTypeJsdocObjectField",left:T(ne),right:nt}}}})}function Et({allowOptional:p,allowVariadic:x}){return P({name:"keyValueParslet",precedence:z.KEY_VALUE,accept:k=>k===":",parseInfix:(k,H)=>{let Q=!1,ne=!1;if(p&&H.type==="JsdocTypeNullable"&&(Q=!0,H=H.element),x&&H.type==="JsdocTypeVariadic"&&H.element!==void 0&&(ne=!0,H=H.element),H.type!=="JsdocTypeName")throw new o(H);k.consume(":");let ae=k.parseType(z.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:H.value,right:ae,optional:Q,variadic:ne}}})}let Rt=[...ce,Te({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),ye,_e({allowedTypes:["module","external","event"],pathGrammar:Oe}),$e({allowEnclosingBrackets:!0,allowPostfix:!0}),pe({allowedAdditionalTokens:["keyof"]}),lt,je,be({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:Oe})],fr=[...Rt,fe({objectFieldGrammar:[pe({allowedAdditionalTokens:["module","in"]}),Se({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...Rt],allowKeyTypes:!0}),Et({allowOptional:!0,allowVariadic:!0})],Xr=P({name:"typeOfParslet",accept:p=>p==="typeof",parsePrefix:p=>(p.consume("typeof"),{type:"JsdocTypeTypeof",element:T(p.parseType(z.KEY_OF_TYPE_OF))})}),Jn=[pe({allowedAdditionalTokens:["module","keyof","event","external","in"]}),V,q,ye,J,Se({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],Gn=[...ce,fe({allowKeyTypes:!1,objectFieldGrammar:Jn}),pe({allowedAdditionalTokens:["event","external","in"]}),Xr,Te({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),$e({allowEnclosingBrackets:!1,allowPostfix:!1}),pe({allowedAdditionalTokens:["keyof"]}),_e({allowedTypes:["module"],pathGrammar:Oe}),be({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:Oe}),Et({allowOptional:!1,allowVariadic:!1}),lt],Wn=P({name:"assertsParslet",accept:p=>p==="asserts",parsePrefix:p=>{p.consume("asserts");let x=p.parseIntermediateType(z.SYMBOL);if(x.type!=="JsdocTypeName")throw new o(x,"A typescript asserts always has to have a name on the left side.");return p.consume("is"),{type:"JsdocTypeAsserts",left:x,right:T(p.parseIntermediateType(z.INFIX))}}});function Kn({allowQuestionMark:p}){return P({name:"tupleParslet",accept:x=>x==="[",parsePrefix:x=>{x.consume("[");let k={type:"JsdocTypeTuple",elements:[]};if(x.consume("]"))return k;let H=x.parseIntermediateType(z.ALL);if(H.type==="JsdocTypeParameterList"?H.elements[0].type==="JsdocTypeKeyValue"?k.elements=H.elements.map(D):k.elements=H.elements.map(T):H.type==="JsdocTypeKeyValue"?k.elements=[D(H)]:k.elements=[T(H)],!x.consume("]"))throw new Error("Unterminated '['");if(!p&&k.elements.some(Q=>Q.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return k}})}let Qr=P({name:"keyOfParslet",accept:p=>p==="keyof",parsePrefix:p=>(p.consume("keyof"),{type:"JsdocTypeKeyof",element:T(p.parseType(z.KEY_OF_TYPE_OF))})}),Yn=P({name:"importParslet",accept:p=>p==="import",parsePrefix:p=>{if(p.consume("import"),!p.consume("("))throw new Error("Missing parenthesis after import keyword");let x=p.parseType(z.PREFIX);if(x.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!p.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:x}}}),Dt=P({name:"readonlyPropertyParslet",accept:p=>p==="readonly",parsePrefix:p=>(p.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:p.parseType(z.KEY_VALUE)})}),yr=P({name:"arrowFunctionParslet",precedence:z.ARROW,accept:p=>p==="=>",parseInfix:(p,x)=>(p.consume("=>"),{type:"JsdocTypeFunction",parameters:he(x).map(I),arrow:!0,constructor:!1,parenthesis:!0,returnType:p.parseType(z.OBJECT)})}),Zr=P({name:"intersectionParslet",accept:p=>p==="&",precedence:z.INTERSECTION,parseInfix:(p,x)=>{p.consume("&");let k=[];do k.push(p.parseType(z.INTERSECTION));while(p.consume("&"));return{type:"JsdocTypeIntersection",elements:[T(x),...k]}}}),Xn=P({name:"predicateParslet",precedence:z.INFIX,accept:p=>p==="is",parseInfix:(p,x)=>{if(x.type!=="JsdocTypeName")throw new o(x,"A typescript predicate always has to have a name on the left side.");return p.consume("is"),{type:"JsdocTypePredicate",left:x,right:T(p.parseIntermediateType(z.INFIX))}}}),Qn=P({name:"objectSquareBracketPropertyParslet",accept:p=>p==="[",parsePrefix:p=>{if(p.baseParser===void 0)throw new Error("Only allowed inside object grammar");p.consume("[");let x=p.lexer.current.text;p.consume("Identifier");let k;if(p.consume(":")){let H=p.baseParser;H.acceptLexerState(p),k={type:"JsdocTypeIndexSignature",key:x,right:H.parseType(z.INDEX_BRACKETS)},p.acceptLexerState(H)}else if(p.consume("in")){let H=p.baseParser;H.acceptLexerState(p),k={type:"JsdocTypeMappedType",key:x,right:H.parseType(z.ARRAY_BRACKETS)},p.acceptLexerState(H)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!p.consume("]"))throw new Error("Unterminated square brackets");return k}}),hr=[Dt,pe({allowedAdditionalTokens:["module","event","keyof","event","external","in"]}),V,q,ye,J,Se({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),Qn],Kt=[...ce,fe({allowKeyTypes:!1,objectFieldGrammar:hr}),Xr,Qr,Yn,ye,Te({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),Kn({allowQuestionMark:!1}),$e({allowEnclosingBrackets:!1,allowPostfix:!1}),Wn,pe({allowedAdditionalTokens:["event","external","in"]}),_e({allowedTypes:["module"],pathGrammar:Oe}),je,yr,be({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:Oe}),Zr,Xn,Et({allowVariadic:!0,allowOptional:!0})];function $(p,x){switch(x){case"closure":return new Y(Gn,p).parse();case"jsdoc":return new Y(fr,p).parse();case"typescript":return new Y(Kt,p).parse()}}function G(p,x=["typescript","closure","jsdoc"]){let k;for(let H of x)try{return $(p,H)}catch(Q){k=Q}throw k}function ue(p,x){let k=p[x.type];if(k===void 0)throw new Error(`In this set of transform rules exists no rule for type ${x.type}.`);return k(x,H=>ue(p,H))}function se(p){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}function we(p){let x={params:[]};for(let k of p.parameters)k.type==="JsdocTypeKeyValue"?k.key==="this"?x.this=k.right:k.key==="new"?x.new=k.right:x.params.push(k):x.params.push(k);return x}function le(p,x,k){return p==="prefix"?k+x:x+k}function ze(p,x){switch(x){case"double":return`"${p}"`;case"single":return`'${p}'`;case void 0:return p}}function pt(){return{JsdocTypeParenthesis:(p,x)=>`(${p.element!==void 0?x(p.element):""})`,JsdocTypeKeyof:(p,x)=>`keyof ${x(p.element)}`,JsdocTypeFunction:(p,x)=>{if(p.arrow){if(p.returnType===void 0)throw new Error("Arrow function needs a return type.");let k=`(${p.parameters.map(x).join(", ")}) => ${x(p.returnType)}`;return p.constructor&&(k="new "+k),k}else{let k=p.constructor?"new":"function";return p.parenthesis&&(k+=`(${p.parameters.map(x).join(", ")})`,p.returnType!==void 0&&(k+=`: ${x(p.returnType)}`)),k}},JsdocTypeName:p=>p.value,JsdocTypeTuple:(p,x)=>`[${p.elements.map(x).join(", ")}]`,JsdocTypeVariadic:(p,x)=>p.meta.position===void 0?"...":le(p.meta.position,x(p.element),"..."),JsdocTypeNamePath:(p,x)=>{let k=x(p.left),H=x(p.right);switch(p.pathType){case"inner":return`${k}~${H}`;case"instance":return`${k}#${H}`;case"property":return`${k}.${H}`;case"property-brackets":return`${k}[${H}]`}},JsdocTypeStringValue:p=>ze(p.value,p.meta.quote),JsdocTypeAny:()=>"*",JsdocTypeGeneric:(p,x)=>{if(p.meta.brackets==="square"){let k=p.elements[0],H=x(k);return k.type==="JsdocTypeUnion"||k.type==="JsdocTypeIntersection"?`(${H})[]`:`${H}[]`}else return`${x(p.left)}${p.meta.dot?".":""}<${p.elements.map(x).join(", ")}>`},JsdocTypeImport:(p,x)=>`import(${x(p.element)})`,JsdocTypeObjectField:(p,x)=>{let k="";return p.readonly&&(k+="readonly "),typeof p.key=="string"?k+=ze(p.key,p.meta.quote):k+=x(p.key),p.optional&&(k+="?"),p.right===void 0?k:k+`: ${x(p.right)}`},JsdocTypeJsdocObjectField:(p,x)=>`${x(p.left)}: ${x(p.right)}`,JsdocTypeKeyValue:(p,x)=>{let k=p.key;return p.optional&&(k+="?"),p.variadic&&(k="..."+k),p.right===void 0?k:k+`: ${x(p.right)}`},JsdocTypeSpecialNamePath:p=>`${p.specialType}:${ze(p.value,p.meta.quote)}`,JsdocTypeNotNullable:(p,x)=>le(p.meta.position,x(p.element),"!"),JsdocTypeNull:()=>"null",JsdocTypeNullable:(p,x)=>le(p.meta.position,x(p.element),"?"),JsdocTypeNumber:p=>p.value.toString(),JsdocTypeObject:(p,x)=>`{${p.elements.map(x).join((p.meta.separator==="comma"?",":";")+" ")}}`,JsdocTypeOptional:(p,x)=>le(p.meta.position,x(p.element),"="),JsdocTypeSymbol:(p,x)=>`${p.value}(${p.element!==void 0?x(p.element):""})`,JsdocTypeTypeof:(p,x)=>`typeof ${x(p.element)}`,JsdocTypeUndefined:()=>"undefined",JsdocTypeUnion:(p,x)=>p.elements.map(x).join(" | "),JsdocTypeUnknown:()=>"?",JsdocTypeIntersection:(p,x)=>p.elements.map(x).join(" & "),JsdocTypeProperty:p=>ze(p.value,p.meta.quote),JsdocTypePredicate:(p,x)=>`${x(p.left)} is ${x(p.right)}`,JsdocTypeIndexSignature:(p,x)=>`[${p.key}: ${x(p.right)}]`,JsdocTypeMappedType:(p,x)=>`[${p.key} in ${x(p.right)}]`,JsdocTypeAsserts:(p,x)=>`asserts ${x(p.left)} is ${x(p.right)}`}}let Ke=pt();function dt(p){return ue(Ke,p)}let en=["null","true","false","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield"];function Ye(p){let x={type:"NameExpression",name:p};return en.includes(p)&&(x.reservedWord=!0),x}let Ze={JsdocTypeOptional:(p,x)=>{let k=x(p.element);return k.optional=!0,k},JsdocTypeNullable:(p,x)=>{let k=x(p.element);return k.nullable=!0,k},JsdocTypeNotNullable:(p,x)=>{let k=x(p.element);return k.nullable=!1,k},JsdocTypeVariadic:(p,x)=>{if(p.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let k=x(p.element);return k.repeatable=!0,k},JsdocTypeAny:()=>({type:"AllLiteral"}),JsdocTypeNull:()=>({type:"NullLiteral"}),JsdocTypeStringValue:p=>Ye(ze(p.value,p.meta.quote)),JsdocTypeUndefined:()=>({type:"UndefinedLiteral"}),JsdocTypeUnknown:()=>({type:"UnknownLiteral"}),JsdocTypeFunction:(p,x)=>{let k=we(p),H={type:"FunctionType",params:k.params.map(x)};return k.this!==void 0&&(H.this=x(k.this)),k.new!==void 0&&(H.new=x(k.new)),p.returnType!==void 0&&(H.result=x(p.returnType)),H},JsdocTypeGeneric:(p,x)=>({type:"TypeApplication",applications:p.elements.map(k=>x(k)),expression:x(p.left)}),JsdocTypeSpecialNamePath:p=>Ye(p.specialType+":"+ze(p.value,p.meta.quote)),JsdocTypeName:p=>p.value!=="function"?Ye(p.value):{type:"FunctionType",params:[]},JsdocTypeNumber:p=>Ye(p.value.toString()),JsdocTypeObject:(p,x)=>{let k={type:"RecordType",fields:[]};for(let H of p.elements)H.type!=="JsdocTypeObjectField"&&H.type!=="JsdocTypeJsdocObjectField"?k.fields.push({type:"FieldType",key:x(H),value:void 0}):k.fields.push(x(H));return k},JsdocTypeObjectField:(p,x)=>{if(typeof p.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:Ye(ze(p.key,p.meta.quote)),value:p.right===void 0?void 0:x(p.right)}},JsdocTypeJsdocObjectField:(p,x)=>({type:"FieldType",key:x(p.left),value:x(p.right)}),JsdocTypeUnion:(p,x)=>({type:"TypeUnion",elements:p.elements.map(k=>x(k))}),JsdocTypeKeyValue:(p,x)=>({type:"FieldType",key:Ye(p.key),value:p.right===void 0?void 0:x(p.right)}),JsdocTypeNamePath:(p,x)=>{let k=x(p.left),H;p.right.type==="JsdocTypeSpecialNamePath"?H=x(p.right).name:H=ze(p.right.value,p.right.meta.quote);let Q=p.pathType==="inner"?"~":p.pathType==="instance"?"#":".";return Ye(`${k.name}${Q}${H}`)},JsdocTypeSymbol:p=>{let x="",k=p.element,H=!1;return k?.type==="JsdocTypeVariadic"&&(k.meta.position==="prefix"?x="...":H=!0,k=k.element),k?.type==="JsdocTypeName"?x+=k.value:k?.type==="JsdocTypeNumber"&&(x+=k.value.toString()),H&&(x+="..."),Ye(`${p.value}(${x})`)},JsdocTypeParenthesis:(p,x)=>x(T(p.element)),JsdocTypeMappedType:se,JsdocTypeIndexSignature:se,JsdocTypeImport:se,JsdocTypeKeyof:se,JsdocTypeTuple:se,JsdocTypeTypeof:se,JsdocTypeIntersection:se,JsdocTypeProperty:se,JsdocTypePredicate:se,JsdocTypeAsserts:se};function Zn(p){return ue(Ze,p)}function ft(p){switch(p){case void 0:return"none";case"single":return"single";case"double":return"double"}}function eo(p){switch(p){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}function xt(p,x){return x.length===2?{type:p,left:x[0],right:x[1]}:{type:p,left:x[0],right:xt(p,x.slice(1))}}let tn={JsdocTypeOptional:(p,x)=>({type:"OPTIONAL",value:x(p.element),meta:{syntax:p.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),JsdocTypeNullable:(p,x)=>({type:"NULLABLE",value:x(p.element),meta:{syntax:p.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),JsdocTypeNotNullable:(p,x)=>({type:"NOT_NULLABLE",value:x(p.element),meta:{syntax:p.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),JsdocTypeVariadic:(p,x)=>{let k={type:"VARIADIC",meta:{syntax:p.meta.position==="prefix"?"PREFIX_DOTS":p.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return p.element!==void 0&&(k.value=x(p.element)),k},JsdocTypeName:p=>({type:"NAME",name:p.value}),JsdocTypeTypeof:(p,x)=>({type:"TYPE_QUERY",name:x(p.element)}),JsdocTypeTuple:(p,x)=>({type:"TUPLE",entries:p.elements.map(x)}),JsdocTypeKeyof:(p,x)=>({type:"KEY_QUERY",value:x(p.element)}),JsdocTypeImport:p=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:ft(p.element.meta.quote),string:p.element.value}}),JsdocTypeUndefined:()=>({type:"NAME",name:"undefined"}),JsdocTypeAny:()=>({type:"ANY"}),JsdocTypeFunction:(p,x)=>{let k=we(p),H={type:p.arrow?"ARROW":"FUNCTION",params:k.params.map(Q=>{if(Q.type==="JsdocTypeKeyValue"){if(Q.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:Q.key,typeName:x(Q.right)}}else return x(Q)}),new:null,returns:null};return k.this!==void 0?H.this=x(k.this):p.arrow||(H.this=null),k.new!==void 0&&(H.new=x(k.new)),p.returnType!==void 0&&(H.returns=x(p.returnType)),H},JsdocTypeGeneric:(p,x)=>{let k={type:"GENERIC",subject:x(p.left),objects:p.elements.map(x),meta:{syntax:p.meta.brackets==="square"?"SQUARE_BRACKET":p.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return p.meta.brackets==="square"&&p.elements[0].type==="JsdocTypeFunction"&&!p.elements[0].parenthesis&&(k.objects[0]={type:"NAME",name:"function"}),k},JsdocTypeObjectField:(p,x)=>{if(typeof p.key!="string")throw new Error("Index signatures and mapped types are not supported");if(p.right===void 0)return{type:"RECORD_ENTRY",key:p.key,quoteStyle:ft(p.meta.quote),value:null,readonly:!1};let k=x(p.right);return p.optional&&(k={type:"OPTIONAL",value:k,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:p.key.toString(),quoteStyle:ft(p.meta.quote),value:k,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},JsdocTypeKeyValue:(p,x)=>{if(p.right===void 0)return{type:"RECORD_ENTRY",key:p.key,quoteStyle:"none",value:null,readonly:!1};let k=x(p.right);return p.optional&&(k={type:"OPTIONAL",value:k,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:p.key,quoteStyle:"none",value:k,readonly:!1}},JsdocTypeObject:(p,x)=>{let k=[];for(let H of p.elements)(H.type==="JsdocTypeObjectField"||H.type==="JsdocTypeJsdocObjectField")&&k.push(x(H));return{type:"RECORD",entries:k}},JsdocTypeSpecialNamePath:p=>{if(p.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${p.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:ft(p.meta.quote),path:p.value}}},JsdocTypeNamePath:(p,x)=>{let k=!1,H,Q;p.right.type==="JsdocTypeSpecialNamePath"&&p.right.specialType==="event"?(k=!0,H=p.right.value,Q=ft(p.right.meta.quote)):(H=p.right.value,Q=ft(p.right.meta.quote));let ne={type:eo(p.pathType),owner:x(p.left),name:H,quoteStyle:Q,hasEventPrefix:k};if(ne.owner.type==="MODULE"){let ae=ne.owner;return ne.owner=ne.owner.value,ae.value=ne,ae}else return ne},JsdocTypeUnion:(p,x)=>xt("UNION",p.elements.map(x)),JsdocTypeParenthesis:(p,x)=>({type:"PARENTHESIS",value:x(T(p.element))}),JsdocTypeNull:()=>({type:"NAME",name:"null"}),JsdocTypeUnknown:()=>({type:"UNKNOWN"}),JsdocTypeStringValue:p=>({type:"STRING_VALUE",quoteStyle:ft(p.meta.quote),string:p.value}),JsdocTypeIntersection:(p,x)=>xt("INTERSECTION",p.elements.map(x)),JsdocTypeNumber:p=>({type:"NUMBER_VALUE",number:p.value.toString()}),JsdocTypeSymbol:se,JsdocTypeProperty:se,JsdocTypePredicate:se,JsdocTypeMappedType:se,JsdocTypeIndexSignature:se,JsdocTypeAsserts:se};function mr(p){return ue(tn,p)}function rn(){return{JsdocTypeIntersection:(p,x)=>({type:"JsdocTypeIntersection",elements:p.elements.map(x)}),JsdocTypeGeneric:(p,x)=>({type:"JsdocTypeGeneric",left:x(p.left),elements:p.elements.map(x),meta:{dot:p.meta.dot,brackets:p.meta.brackets}}),JsdocTypeNullable:p=>p,JsdocTypeUnion:(p,x)=>({type:"JsdocTypeUnion",elements:p.elements.map(x)}),JsdocTypeUnknown:p=>p,JsdocTypeUndefined:p=>p,JsdocTypeTypeof:(p,x)=>({type:"JsdocTypeTypeof",element:x(p.element)}),JsdocTypeSymbol:(p,x)=>{let k={type:"JsdocTypeSymbol",value:p.value};return p.element!==void 0&&(k.element=x(p.element)),k},JsdocTypeOptional:(p,x)=>({type:"JsdocTypeOptional",element:x(p.element),meta:{position:p.meta.position}}),JsdocTypeObject:(p,x)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:p.elements.map(x)}),JsdocTypeNumber:p=>p,JsdocTypeNull:p=>p,JsdocTypeNotNullable:(p,x)=>({type:"JsdocTypeNotNullable",element:x(p.element),meta:{position:p.meta.position}}),JsdocTypeSpecialNamePath:p=>p,JsdocTypeObjectField:(p,x)=>({type:"JsdocTypeObjectField",key:p.key,right:p.right===void 0?void 0:x(p.right),optional:p.optional,readonly:p.readonly,meta:p.meta}),JsdocTypeJsdocObjectField:(p,x)=>({type:"JsdocTypeJsdocObjectField",left:x(p.left),right:x(p.right)}),JsdocTypeKeyValue:(p,x)=>({type:"JsdocTypeKeyValue",key:p.key,right:p.right===void 0?void 0:x(p.right),optional:p.optional,variadic:p.variadic}),JsdocTypeImport:(p,x)=>({type:"JsdocTypeImport",element:x(p.element)}),JsdocTypeAny:p=>p,JsdocTypeStringValue:p=>p,JsdocTypeNamePath:p=>p,JsdocTypeVariadic:(p,x)=>{let k={type:"JsdocTypeVariadic",meta:{position:p.meta.position,squareBrackets:p.meta.squareBrackets}};return p.element!==void 0&&(k.element=x(p.element)),k},JsdocTypeTuple:(p,x)=>({type:"JsdocTypeTuple",elements:p.elements.map(x)}),JsdocTypeName:p=>p,JsdocTypeFunction:(p,x)=>{let k={type:"JsdocTypeFunction",arrow:p.arrow,parameters:p.parameters.map(x),constructor:p.constructor,parenthesis:p.parenthesis};return p.returnType!==void 0&&(k.returnType=x(p.returnType)),k},JsdocTypeKeyof:(p,x)=>({type:"JsdocTypeKeyof",element:x(p.element)}),JsdocTypeParenthesis:(p,x)=>({type:"JsdocTypeParenthesis",element:x(p.element)}),JsdocTypeProperty:p=>p,JsdocTypePredicate:(p,x)=>({type:"JsdocTypePredicate",left:x(p.left),right:x(p.right)}),JsdocTypeIndexSignature:(p,x)=>({type:"JsdocTypeIndexSignature",key:p.key,right:x(p.right)}),JsdocTypeMappedType:(p,x)=>({type:"JsdocTypeMappedType",key:p.key,right:x(p.right)}),JsdocTypeAsserts:(p,x)=>({type:"JsdocTypeAsserts",left:x(p.left),right:x(p.right)})}}let gr={JsdocTypeAny:[],JsdocTypeFunction:["parameters","returnType"],JsdocTypeGeneric:["left","elements"],JsdocTypeImport:[],JsdocTypeIndexSignature:["right"],JsdocTypeIntersection:["elements"],JsdocTypeKeyof:["element"],JsdocTypeKeyValue:["right"],JsdocTypeMappedType:["right"],JsdocTypeName:[],JsdocTypeNamePath:["left","right"],JsdocTypeNotNullable:["element"],JsdocTypeNull:[],JsdocTypeNullable:["element"],JsdocTypeNumber:[],JsdocTypeObject:["elements"],JsdocTypeObjectField:["right"],JsdocTypeJsdocObjectField:["left","right"],JsdocTypeOptional:["element"],JsdocTypeParenthesis:["element"],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:["element"],JsdocTypeTuple:["elements"],JsdocTypeTypeof:["element"],JsdocTypeUndefined:[],JsdocTypeUnion:["elements"],JsdocTypeUnknown:[],JsdocTypeVariadic:["element"],JsdocTypeProperty:[],JsdocTypePredicate:["left","right"],JsdocTypeAsserts:["left","right"]};function br(p,x,k,H,Q){H?.(p,x,k);let ne=gr[p.type];for(let ae of ne){let de=p[ae];if(de!==void 0)if(Array.isArray(de))for(let Ne of de)br(Ne,p,ae,H,Q);else br(de,p,ae,H,Q)}Q?.(p,x,k)}function to(p,x,k){br(p,void 0,void 0,x,k)}e.catharsisTransform=Zn,e.identityTransformRules=rn,e.jtpTransform=mr,e.parse=$,e.stringify=dt,e.stringifyRules=pt,e.transform=ue,e.traverse=to,e.tryParse=G,e.visitorKeys=gr})});var x0=U((foe,E0)=>{w();S();A();var Ij=ot(),kj=function(){return Ij.Date.now()};E0.exports=kj});var S0=U((goe,w0)=>{w();S();A();var Pj=/\s/;function Rj(e){for(var t=e.length;t--&&Pj.test(e.charAt(t)););return t}w0.exports=Rj});var T0=U((xoe,A0)=>{w();S();A();var Dj=S0(),Fj=/^\s+/;function jj(e){return e&&e.slice(0,Dj(e)+1).replace(Fj,"")}A0.exports=jj});var I0=U((Toe,O0)=>{w();S();A();var Nj=T0(),C0=mt(),Bj=xn(),_0=NaN,Lj=/^[-+]0x[0-9a-f]+$/i,qj=/^0b[01]+$/i,Mj=/^0o[0-7]+$/i,Uj=parseInt;function $j(e){if(typeof e=="number")return e;if(Bj(e))return _0;if(C0(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=C0(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Nj(e);var r=qj.test(e);return r||Mj.test(e)?Uj(e.slice(2),r?2:8):Lj.test(e)?_0:+e}O0.exports=$j});var R0=U((Ioe,P0)=>{w();S();A();var zj=mt(),rl=x0(),k0=I0(),Vj="Expected a function",Hj=Math.max,Jj=Math.min;function Gj(e,t,r){var n,o,a,i,s,l,u=0,c=!1,d=!1,y=!0;if(typeof e!="function")throw new TypeError(Vj);t=k0(t)||0,zj(r)&&(c=!!r.leading,d="maxWait"in r,a=d?Hj(k0(r.maxWait)||0,t):a,y="trailing"in r?!!r.trailing:y);function f(I){var D=n,R=o;return n=o=void 0,u=I,i=e.apply(R,D),i}function h(I){return u=I,s=setTimeout(b,t),c?f(I):i}function g(I){var D=I-l,R=I-u,M=t-D;return d?Jj(M,a-R):M}function C(I){var D=I-l,R=I-u;return l===void 0||D>=t||D<0||d&&R>=a}function b(){var I=rl();if(C(I))return E(I);s=setTimeout(b,g(I))}function E(I){return s=void 0,y&&n?f(I):(n=o=void 0,i)}function _(){s!==void 0&&clearTimeout(s),u=0,n=l=o=s=void 0}function T(){return s===void 0?i:E(rl())}function O(){var I=rl(),D=C(I);if(n=arguments,o=this,l=I,D){if(s===void 0)return h(l);if(d)return clearTimeout(s),s=setTimeout(b,t),f(l)}return s===void 0&&(s=setTimeout(b,t)),i}return O.cancel=_,O.flush=T,O}P0.exports=Gj});var Q0={};zl(Q0,{ColorControl:()=>X0,default:()=>DN});function lr(){return(lr=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}function nl(e){var t=Xe(e),r=Xe(function(n){t.current&&t.current(n)});return t.current=e,r.current}function G0(e,t,r){var n=nl(r),o=me(function(){return e.toHsva(t)}),a=o[0],i=o[1],s=Xe({color:t,hsva:a});He(function(){if(!e.equal(t,s.current.color)){var u=e.toHsva(t);s.current={hsva:u,color:t},i(u)}},[t,e]),He(function(){var u;H0(a,s.current.hsva)||e.equal(u=e.fromHsva(a),s.current.color)||(s.current={hsva:a,color:u},n(u))},[a,e,n]);var l=Ve(function(u){i(function(c){return Object.assign({},c,u)})},[]);return[a,l]}var L0,Wj,q0,Kj,Yj,it,zr,qn,ol,D0,F0,ul,Mn,cl,qe,Xj,Qj,al,Zj,eN,tN,rN,M0,il,ya,U0,nN,pa,oN,$0,z0,V0,H0,J0,aN,iN,sN,j0,W0,lN,uN,cN,pN,K0,dN,fN,yN,hN,mN,gN,bN,vN,EN,xN,wN,N0,SN,AN,Y0,da,TN,CN,_N,sl,ON,IN,fa,B0,$r,kN,PN,ha,RN,X0,DN,Z0=St(()=>{w();S();A();Pa();no();ao();ti();ai();L0=on(R0()),Wj=Yt({"../../node_modules/color-name/index.js"(e,t){t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}}),q0=Yt({"../../node_modules/color-convert/conversions.js"(e,t){var r=Wj(),n={};for(let i of Object.keys(r))n[r[i]]=i;var o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};t.exports=o;for(let i of Object.keys(o)){if(!("channels"in o[i]))throw new Error("missing channels property: "+i);if(!("labels"in o[i]))throw new Error("missing channel labels property: "+i);if(o[i].labels.length!==o[i].channels)throw new Error("channel and label counts mismatch: "+i);let{channels:s,labels:l}=o[i];delete o[i].channels,delete o[i].labels,Object.defineProperty(o[i],"channels",{value:s}),Object.defineProperty(o[i],"labels",{value:l})}o.rgb.hsl=function(i){let s=i[0]/255,l=i[1]/255,u=i[2]/255,c=Math.min(s,l,u),d=Math.max(s,l,u),y=d-c,f,h;d===c?f=0:s===d?f=(l-u)/y:l===d?f=2+(u-s)/y:u===d&&(f=4+(s-l)/y),f=Math.min(f*60,360),f<0&&(f+=360);let g=(c+d)/2;return d===c?h=0:g<=.5?h=y/(d+c):h=y/(2-d-c),[f,h*100,g*100]},o.rgb.hsv=function(i){let s,l,u,c,d,y=i[0]/255,f=i[1]/255,h=i[2]/255,g=Math.max(y,f,h),C=g-Math.min(y,f,h),b=function(E){return(g-E)/6/C+1/2};return C===0?(c=0,d=0):(d=C/g,s=b(y),l=b(f),u=b(h),y===g?c=u-l:f===g?c=1/3+s-u:h===g&&(c=2/3+l-s),c<0?c+=1:c>1&&(c-=1)),[c*360,d*100,g*100]},o.rgb.hwb=function(i){let s=i[0],l=i[1],u=i[2],c=o.rgb.hsl(i)[0],d=1/255*Math.min(s,Math.min(l,u));return u=1-1/255*Math.max(s,Math.max(l,u)),[c,d*100,u*100]},o.rgb.cmyk=function(i){let s=i[0]/255,l=i[1]/255,u=i[2]/255,c=Math.min(1-s,1-l,1-u),d=(1-s-c)/(1-c)||0,y=(1-l-c)/(1-c)||0,f=(1-u-c)/(1-c)||0;return[d*100,y*100,f*100,c*100]};function a(i,s){return(i[0]-s[0])**2+(i[1]-s[1])**2+(i[2]-s[2])**2}o.rgb.keyword=function(i){let s=n[i];if(s)return s;let l=1/0,u;for(let c of Object.keys(r)){let d=r[c],y=a(i,d);y.04045?((s+.055)/1.055)**2.4:s/12.92,l=l>.04045?((l+.055)/1.055)**2.4:l/12.92,u=u>.04045?((u+.055)/1.055)**2.4:u/12.92;let c=s*.4124+l*.3576+u*.1805,d=s*.2126+l*.7152+u*.0722,y=s*.0193+l*.1192+u*.9505;return[c*100,d*100,y*100]},o.rgb.lab=function(i){let s=o.rgb.xyz(i),l=s[0],u=s[1],c=s[2];l/=95.047,u/=100,c/=108.883,l=l>.008856?l**(1/3):7.787*l+16/116,u=u>.008856?u**(1/3):7.787*u+16/116,c=c>.008856?c**(1/3):7.787*c+16/116;let d=116*u-16,y=500*(l-u),f=200*(u-c);return[d,y,f]},o.hsl.rgb=function(i){let s=i[0]/360,l=i[1]/100,u=i[2]/100,c,d,y;if(l===0)return y=u*255,[y,y,y];u<.5?c=u*(1+l):c=u+l-u*l;let f=2*u-c,h=[0,0,0];for(let g=0;g<3;g++)d=s+1/3*-(g-1),d<0&&d++,d>1&&d--,6*d<1?y=f+(c-f)*6*d:2*d<1?y=c:3*d<2?y=f+(c-f)*(2/3-d)*6:y=f,h[g]=y*255;return h},o.hsl.hsv=function(i){let s=i[0],l=i[1]/100,u=i[2]/100,c=l,d=Math.max(u,.01);u*=2,l*=u<=1?u:2-u,c*=d<=1?d:2-d;let y=(u+l)/2,f=u===0?2*c/(d+c):2*l/(u+l);return[s,f*100,y*100]},o.hsv.rgb=function(i){let s=i[0]/60,l=i[1]/100,u=i[2]/100,c=Math.floor(s)%6,d=s-Math.floor(s),y=255*u*(1-l),f=255*u*(1-l*d),h=255*u*(1-l*(1-d));switch(u*=255,c){case 0:return[u,h,y];case 1:return[f,u,y];case 2:return[y,u,h];case 3:return[y,f,u];case 4:return[h,y,u];case 5:return[u,y,f]}},o.hsv.hsl=function(i){let s=i[0],l=i[1]/100,u=i[2]/100,c=Math.max(u,.01),d,y;y=(2-l)*u;let f=(2-l)*c;return d=l*c,d/=f<=1?f:2-f,d=d||0,y/=2,[s,d*100,y*100]},o.hwb.rgb=function(i){let s=i[0]/360,l=i[1]/100,u=i[2]/100,c=l+u,d;c>1&&(l/=c,u/=c);let y=Math.floor(6*s),f=1-u;d=6*s-y,y&1&&(d=1-d);let h=l+d*(f-l),g,C,b;switch(y){default:case 6:case 0:g=f,C=h,b=l;break;case 1:g=h,C=f,b=l;break;case 2:g=l,C=f,b=h;break;case 3:g=l,C=h,b=f;break;case 4:g=h,C=l,b=f;break;case 5:g=f,C=l,b=h;break}return[g*255,C*255,b*255]},o.cmyk.rgb=function(i){let s=i[0]/100,l=i[1]/100,u=i[2]/100,c=i[3]/100,d=1-Math.min(1,s*(1-c)+c),y=1-Math.min(1,l*(1-c)+c),f=1-Math.min(1,u*(1-c)+c);return[d*255,y*255,f*255]},o.xyz.rgb=function(i){let s=i[0]/100,l=i[1]/100,u=i[2]/100,c,d,y;return c=s*3.2406+l*-1.5372+u*-.4986,d=s*-.9689+l*1.8758+u*.0415,y=s*.0557+l*-.204+u*1.057,c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92,d=d>.0031308?1.055*d**(1/2.4)-.055:d*12.92,y=y>.0031308?1.055*y**(1/2.4)-.055:y*12.92,c=Math.min(Math.max(0,c),1),d=Math.min(Math.max(0,d),1),y=Math.min(Math.max(0,y),1),[c*255,d*255,y*255]},o.xyz.lab=function(i){let s=i[0],l=i[1],u=i[2];s/=95.047,l/=100,u/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,l=l>.008856?l**(1/3):7.787*l+16/116,u=u>.008856?u**(1/3):7.787*u+16/116;let c=116*l-16,d=500*(s-l),y=200*(l-u);return[c,d,y]},o.lab.xyz=function(i){let s=i[0],l=i[1],u=i[2],c,d,y;d=(s+16)/116,c=l/500+d,y=d-u/200;let f=d**3,h=c**3,g=y**3;return d=f>.008856?f:(d-16/116)/7.787,c=h>.008856?h:(c-16/116)/7.787,y=g>.008856?g:(y-16/116)/7.787,c*=95.047,d*=100,y*=108.883,[c,d,y]},o.lab.lch=function(i){let s=i[0],l=i[1],u=i[2],c;c=Math.atan2(u,l)*360/2/Math.PI,c<0&&(c+=360);let d=Math.sqrt(l*l+u*u);return[s,d,c]},o.lch.lab=function(i){let s=i[0],l=i[1],u=i[2]/360*2*Math.PI,c=l*Math.cos(u),d=l*Math.sin(u);return[s,c,d]},o.rgb.ansi16=function(i,s=null){let[l,u,c]=i,d=s===null?o.rgb.hsv(i)[2]:s;if(d=Math.round(d/50),d===0)return 30;let y=30+(Math.round(c/255)<<2|Math.round(u/255)<<1|Math.round(l/255));return d===2&&(y+=60),y},o.hsv.ansi16=function(i){return o.rgb.ansi16(o.hsv.rgb(i),i[2])},o.rgb.ansi256=function(i){let s=i[0],l=i[1],u=i[2];return s===l&&l===u?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(l/255*5)+Math.round(u/255*5)},o.ansi16.rgb=function(i){let s=i%10;if(s===0||s===7)return i>50&&(s+=3.5),s=s/10.5*255,[s,s,s];let l=(~~(i>50)+1)*.5,u=(s&1)*l*255,c=(s>>1&1)*l*255,d=(s>>2&1)*l*255;return[u,c,d]},o.ansi256.rgb=function(i){if(i>=232){let d=(i-232)*10+8;return[d,d,d]}i-=16;let s,l=Math.floor(i/36)/5*255,u=Math.floor((s=i%36)/6)/5*255,c=s%6/5*255;return[l,u,c]},o.rgb.hex=function(i){let s=(((Math.round(i[0])&255)<<16)+((Math.round(i[1])&255)<<8)+(Math.round(i[2])&255)).toString(16).toUpperCase();return"000000".substring(s.length)+s},o.hex.rgb=function(i){let s=i.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!s)return[0,0,0];let l=s[0];s[0].length===3&&(l=l.split("").map(f=>f+f).join(""));let u=parseInt(l,16),c=u>>16&255,d=u>>8&255,y=u&255;return[c,d,y]},o.rgb.hcg=function(i){let s=i[0]/255,l=i[1]/255,u=i[2]/255,c=Math.max(Math.max(s,l),u),d=Math.min(Math.min(s,l),u),y=c-d,f,h;return y<1?f=d/(1-y):f=0,y<=0?h=0:c===s?h=(l-u)/y%6:c===l?h=2+(u-s)/y:h=4+(s-l)/y,h/=6,h%=1,[h*360,y*100,f*100]},o.hsl.hcg=function(i){let s=i[1]/100,l=i[2]/100,u=l<.5?2*s*l:2*s*(1-l),c=0;return u<1&&(c=(l-.5*u)/(1-u)),[i[0],u*100,c*100]},o.hsv.hcg=function(i){let s=i[1]/100,l=i[2]/100,u=s*l,c=0;return u<1&&(c=(l-u)/(1-u)),[i[0],u*100,c*100]},o.hcg.rgb=function(i){let s=i[0]/360,l=i[1]/100,u=i[2]/100;if(l===0)return[u*255,u*255,u*255];let c=[0,0,0],d=s%1*6,y=d%1,f=1-y,h=0;switch(Math.floor(d)){case 0:c[0]=1,c[1]=y,c[2]=0;break;case 1:c[0]=f,c[1]=1,c[2]=0;break;case 2:c[0]=0,c[1]=1,c[2]=y;break;case 3:c[0]=0,c[1]=f,c[2]=1;break;case 4:c[0]=y,c[1]=0,c[2]=1;break;default:c[0]=1,c[1]=0,c[2]=f}return h=(1-l)*u,[(l*c[0]+h)*255,(l*c[1]+h)*255,(l*c[2]+h)*255]},o.hcg.hsv=function(i){let s=i[1]/100,l=i[2]/100,u=s+l*(1-s),c=0;return u>0&&(c=s/u),[i[0],c*100,u*100]},o.hcg.hsl=function(i){let s=i[1]/100,l=i[2]/100*(1-s)+.5*s,u=0;return l>0&&l<.5?u=s/(2*l):l>=.5&&l<1&&(u=s/(2*(1-l))),[i[0],u*100,l*100]},o.hcg.hwb=function(i){let s=i[1]/100,l=i[2]/100,u=s+l*(1-s);return[i[0],(u-s)*100,(1-u)*100]},o.hwb.hcg=function(i){let s=i[1]/100,l=1-i[2]/100,u=l-s,c=0;return u<1&&(c=(l-u)/(1-u)),[i[0],u*100,c*100]},o.apple.rgb=function(i){return[i[0]/65535*255,i[1]/65535*255,i[2]/65535*255]},o.rgb.apple=function(i){return[i[0]/255*65535,i[1]/255*65535,i[2]/255*65535]},o.gray.rgb=function(i){return[i[0]/100*255,i[0]/100*255,i[0]/100*255]},o.gray.hsl=function(i){return[0,0,i[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(i){return[0,100,i[0]]},o.gray.cmyk=function(i){return[0,0,0,i[0]]},o.gray.lab=function(i){return[i[0],0,0]},o.gray.hex=function(i){let s=Math.round(i[0]/100*255)&255,l=((s<<16)+(s<<8)+s).toString(16).toUpperCase();return"000000".substring(l.length)+l},o.rgb.gray=function(i){return[(i[0]+i[1]+i[2])/3/255*100]}}}),Kj=Yt({"../../node_modules/color-convert/route.js"(e,t){var r=q0();function n(){let s={},l=Object.keys(r);for(let u=l.length,c=0;c1&&(c=d),l(c))};return"conversion"in l&&(u.conversion=l.conversion),u}function s(l){let u=function(...c){let d=c[0];if(d==null)return d;d.length>1&&(c=d);let y=l(c);if(typeof y=="object")for(let f=y.length,h=0;h{o[l]={},Object.defineProperty(o[l],"channels",{value:r[l].channels}),Object.defineProperty(o[l],"labels",{value:r[l].labels});let u=n(l);Object.keys(u).forEach(c=>{let d=u[c];o[l][c]=s(d),o[l][c].raw=i(d)})}),t.exports=o}}),it=sn(Yj(),1);zr=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e0:C.buttons>0)&&o.current?a(D0(o.current,C,s.current)):g(!1)},h=function(){return g(!1)};function g(C){var b=l.current,E=ol(o.current),_=C?E.addEventListener:E.removeEventListener;_(b?"touchmove":"mousemove",f),_(b?"touchend":"mouseup",h)}return[function(C){var b=C.nativeEvent,E=o.current;if(E&&(F0(b),!function(T,O){return O&&!qn(T)}(b,l.current)&&E)){if(qn(b)){l.current=!0;var _=b.changedTouches||[];_.length&&(s.current=_[0].identifier)}E.focus(),a(D0(E,b,s.current)),g(!0)}},function(C){var b=C.which||C.keyCode;b<37||b>40||(C.preventDefault(),i({left:b===39?.05:b===37?-.05:0,top:b===40?.05:b===38?-.05:0}))},g]},[i,a]),c=u[0],d=u[1],y=u[2];return He(function(){return y},[y]),v.createElement("div",lr({},n,{onTouchStart:c,onMouseDown:c,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))}),Mn=function(e){return e.filter(Boolean).join(" ")},cl=function(e){var t=e.color,r=e.left,n=e.top,o=n===void 0?.5:n,a=Mn(["react-colorful__pointer",e.className]);return v.createElement("div",{className:a,style:{top:100*o+"%",left:100*r+"%"}},v.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},qe=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r},Xj={grad:.9,turn:360,rad:360/(2*Math.PI)},Qj=function(e){return $0(al(e))},al=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?qe(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?qe(parseInt(e.substring(6,8),16)/255,2):1}},Zj=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Xj[t]||1)},eN=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?tN({h:Zj(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},tN=function(e){var t=e.s,r=e.l;return{h:e.h,s:(t*=(r<50?r:100-r)/100)>0?2*t/(r+t)*100:0,v:r+t,a:e.a}},rN=function(e){return oN(U0(e))},M0=function(e){var t=e.s,r=e.v,n=e.a,o=(200-t)*r/100;return{h:qe(e.h),s:qe(o>0&&o<200?t*r/100/(o<=100?o:200-o)*100:0),l:qe(o/2),a:qe(n,2)}},il=function(e){var t=M0(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},ya=function(e){var t=M0(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},U0=function(e){var t=e.h,r=e.s,n=e.v,o=e.a;t=t/360*6,r/=100,n/=100;var a=Math.floor(t),i=n*(1-r),s=n*(1-(t-a)*r),l=n*(1-(1-t+a)*r),u=a%6;return{r:qe(255*[n,s,i,i,l,n][u]),g:qe(255*[l,n,n,s,i,i][u]),b:qe(255*[i,i,l,n,n,s][u]),a:qe(o,2)}},nN=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?$0({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},pa=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},oN=function(e){var t=e.r,r=e.g,n=e.b,o=e.a,a=o<1?pa(qe(255*o)):"";return"#"+pa(t)+pa(r)+pa(n)+a},$0=function(e){var t=e.r,r=e.g,n=e.b,o=e.a,a=Math.max(t,r,n),i=a-Math.min(t,r,n),s=i?a===t?(r-n)/i:a===r?2+(n-t)/i:4+(t-r)/i:0;return{h:qe(60*(s<0?s+6:s)),s:qe(a?i/a*100:0),v:qe(a/255*100),a:o}},z0=v.memo(function(e){var t=e.hue,r=e.onChange,n=Mn(["react-colorful__hue",e.className]);return v.createElement("div",{className:n},v.createElement(ul,{onMove:function(o){r({h:360*o.left})},onKey:function(o){r({h:zr(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":qe(t),"aria-valuemax":"360","aria-valuemin":"0"},v.createElement(cl,{className:"react-colorful__hue-pointer",left:t/360,color:il({h:t,s:100,v:100,a:1})})))}),V0=v.memo(function(e){var t=e.hsva,r=e.onChange,n={backgroundColor:il({h:t.h,s:100,v:100,a:1})};return v.createElement("div",{className:"react-colorful__saturation",style:n},v.createElement(ul,{onMove:function(o){r({s:100*o.left,v:100-100*o.top})},onKey:function(o){r({s:zr(t.s+100*o.left,0,100),v:zr(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+qe(t.s)+"%, Brightness "+qe(t.v)+"%"},v.createElement(cl,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:il(t)})))}),H0=function(e,t){if(e===t)return!0;for(var r in e)if(e[r]!==t[r])return!1;return!0},J0=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},aN=function(e,t){return e.toLowerCase()===t.toLowerCase()||H0(al(e),al(t))};iN=typeof window<"u"?Zl:He,sN=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},j0=new Map,W0=function(e){iN(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!j0.has(t)){var r=t.createElement("style");r.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,j0.set(t,r);var n=sN();n&&r.setAttribute("nonce",n),t.head.appendChild(r)}},[])},lN=function(e){var t=e.className,r=e.colorModel,n=e.color,o=n===void 0?r.defaultColor:n,a=e.onChange,i=ll(e,["className","colorModel","color","onChange"]),s=Xe(null);W0(s);var l=G0(r,o,a),u=l[0],c=l[1],d=Mn(["react-colorful",t]);return v.createElement("div",lr({},i,{ref:s,className:d}),v.createElement(V0,{hsva:u,onChange:c}),v.createElement(z0,{hue:u.h,onChange:c,className:"react-colorful__last-control"}))},uN={defaultColor:"000",toHsva:Qj,fromHsva:function(e){return rN({h:e.h,s:e.s,v:e.v,a:1})},equal:aN},cN=function(e){return v.createElement(lN,lr({},e,{colorModel:uN}))},pN=function(e){var t=e.className,r=e.hsva,n=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+ya(Object.assign({},r,{a:0}))+", "+ya(Object.assign({},r,{a:1}))+")"},a=Mn(["react-colorful__alpha",t]),i=qe(100*r.a);return v.createElement("div",{className:a},v.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),v.createElement(ul,{onMove:function(s){n({a:s.left})},onKey:function(s){n({a:zr(r.a+s.left)})},"aria-label":"Alpha","aria-valuetext":i+"%","aria-valuenow":i,"aria-valuemin":"0","aria-valuemax":"100"},v.createElement(cl,{className:"react-colorful__alpha-pointer",left:r.a,color:ya(r)})))},K0=function(e){var t=e.className,r=e.colorModel,n=e.color,o=n===void 0?r.defaultColor:n,a=e.onChange,i=ll(e,["className","colorModel","color","onChange"]),s=Xe(null);W0(s);var l=G0(r,o,a),u=l[0],c=l[1],d=Mn(["react-colorful",t]);return v.createElement("div",lr({},i,{ref:s,className:d}),v.createElement(V0,{hsva:u,onChange:c}),v.createElement(z0,{hue:u.h,onChange:c}),v.createElement(pN,{hsva:u,onChange:c,className:"react-colorful__last-control"}))},dN={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:eN,fromHsva:ya,equal:J0},fN=function(e){return v.createElement(K0,lr({},e,{colorModel:dN}))},yN={defaultColor:"rgba(0, 0, 0, 1)",toHsva:nN,fromHsva:function(e){var t=U0(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:J0},hN=function(e){return v.createElement(K0,lr({},e,{colorModel:yN}))},mN=W.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),gN=W(Bt)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),bN=W.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),vN=W(Zt)(({theme:e})=>({fontFamily:e.typography.fonts.base})),EN=W.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),xN=W.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),wN=`url('data:image/svg+xml;charset=utf-8,')`,N0=({value:e,style:t,...r})=>{let n=`linear-gradient(${e}, ${e}), ${wN}, linear-gradient(#fff, #fff)`;return v.createElement(xN,{...r,style:{...t,backgroundImage:n}})},SN=W(ut.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),AN=W(Lu)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Y0=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Y0||{}),da=Object.values(Y0),TN=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,CN=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,_N=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,sl=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,ON=/^\s*#?([0-9a-f]{3})\s*$/i,IN={hex:cN,rgb:hN,hsl:fN},fa={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},B0=e=>{let t=e?.match(TN);if(!t)return[0,0,0,1];let[,r,n,o,a=1]=t;return[r,n,o,a].map(Number)},$r=e=>{if(!e)return;let t=!0;if(CN.test(e)){let[i,s,l,u]=B0(e),[c,d,y]=it.default.rgb.hsl([i,s,l])||[0,0,0];return{valid:t,value:e,keyword:it.default.rgb.keyword([i,s,l]),colorSpace:"rgb",rgb:e,hsl:`hsla(${c}, ${d}%, ${y}%, ${u})`,hex:`#${it.default.rgb.hex([i,s,l]).toLowerCase()}`}}if(_N.test(e)){let[i,s,l,u]=B0(e),[c,d,y]=it.default.hsl.rgb([i,s,l])||[0,0,0];return{valid:t,value:e,keyword:it.default.hsl.keyword([i,s,l]),colorSpace:"hsl",rgb:`rgba(${c}, ${d}, ${y}, ${u})`,hsl:e,hex:`#${it.default.hsl.hex([i,s,l]).toLowerCase()}`}}let r=e.replace("#",""),n=it.default.keyword.rgb(r)||it.default.hex.rgb(r),o=it.default.rgb.hsl(n),a=e;if(/[^#a-f0-9]/i.test(e)?a=r:sl.test(e)&&(a=`#${r}`),a.startsWith("#"))t=sl.test(a);else try{it.default.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:it.default.rgb.keyword(n),colorSpace:"hex",rgb:`rgba(${n[0]}, ${n[1]}, ${n[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},kN=(e,t,r)=>{if(!e||!t?.valid)return fa[r];if(r!=="hex")return t?.[r]||fa[r];if(!t.hex.startsWith("#"))try{return`#${it.default.keyword.hex(t.hex)}`}catch{return fa.hex}let n=t.hex.match(ON);if(!n)return sl.test(t.hex)?t.hex:fa.hex;let[o,a,i]=n[1].split("");return`#${o}${o}${a}${a}${i}${i}`},PN=(e,t)=>{let[r,n]=me(e||""),[o,a]=me(()=>$r(r)),[i,s]=me(o?.colorSpace||"hex");He(()=>{let d=e||"",y=$r(d);n(d),a(y),s(y?.colorSpace||"hex")},[e]);let l=jt(()=>kN(r,o,i).toLowerCase(),[r,o,i]),u=Ve(d=>{let y=$r(d),f=y?.value||d||"";n(f),f===""&&(a(void 0),t(void 0)),y&&(a(y),s(y.colorSpace),t(y.value))},[t]),c=Ve(()=>{let d=da.indexOf(i)+1;d>=da.length&&(d=0),s(da[d]);let y=o?.[da[d]]||"";n(y),t(y)},[o,i,t]);return{value:r,realValue:l,updateValue:u,color:o,colorSpace:i,cycleColorSpace:c}},ha=e=>e.replace(/\s*/,"").toLowerCase(),RN=(e,t,r)=>{let[n,o]=me(t?.valid?[t]:[]);He(()=>{t===void 0&&o([])},[t]);let a=jt(()=>(e||[]).map(s=>typeof s=="string"?$r(s):s.title?{...$r(s.color),keyword:s.title}:$r(s.color)).concat(n).filter(Boolean).slice(-27),[e,n]),i=Ve(s=>{s?.valid&&(a.some(l=>ha(l[r])===ha(s[r]))||o(l=>l.concat(s)))},[r,a]);return{presets:a,addPreset:i}},X0=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,presetColors:a,startOpen:i=!1,argType:s})=>{let l=Ve((0,L0.default)(r,200),[r]),{value:u,realValue:c,updateValue:d,color:y,colorSpace:f,cycleColorSpace:h}=PN(t,l),{presets:g,addPreset:C}=RN(a,y,f),b=IN[f],E=!!s?.table?.readonly;return v.createElement(mN,{"aria-readonly":E},v.createElement(gN,{startOpen:i,trigger:E?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>C(y),tooltip:v.createElement(bN,null,v.createElement(b,{color:c==="transparent"?"#000000":c,onChange:d,onFocus:n,onBlur:o}),g.length>0&&v.createElement(EN,null,g.map((_,T)=>v.createElement(Bt,{key:`${_.value}-${T}`,hasChrome:!1,tooltip:v.createElement(vN,{note:_.keyword||_.value})},v.createElement(N0,{value:_[f],active:y&&ha(_[f])===ha(y[f]),onClick:()=>d(_.value)})))))},v.createElement(N0,{value:c,style:{margin:4}})),v.createElement(SN,{id:tt(e),value:u,onChange:_=>d(_.target.value),onFocus:_=>_.target.select(),readOnly:E,placeholder:"Choose color..."}),u?v.createElement(AN,{onClick:h}):null)},DN=X0});w();S();A();w();S();A();w();S();A();Pa();no();no();ao();w();S();A();w();S();A();var r8=__STORYBOOK_CORE_EVENTS__,{ARGTYPES_INFO_REQUEST:tu,ARGTYPES_INFO_RESPONSE:Ja,CHANNEL_CREATED:n8,CHANNEL_WS_DISCONNECT:o8,CONFIG_ERROR:ru,CREATE_NEW_STORYFILE_REQUEST:a8,CREATE_NEW_STORYFILE_RESPONSE:i8,CURRENT_STORY_WAS_SET:Ga,DOCS_PREPARED:nu,DOCS_RENDERED:io,FILE_COMPONENT_SEARCH_REQUEST:s8,FILE_COMPONENT_SEARCH_RESPONSE:l8,FORCE_REMOUNT:ou,FORCE_RE_RENDER:so,GLOBALS_UPDATED:xr,NAVIGATE_URL:au,PLAY_FUNCTION_THREW_EXCEPTION:iu,PRELOAD_ENTRIES:su,PREVIEW_BUILDER_PROGRESS:u8,PREVIEW_KEYDOWN:lu,REGISTER_SUBSCRIPTION:c8,REQUEST_WHATS_NEW_DATA:p8,RESET_STORY_ARGS:lo,RESULT_WHATS_NEW_DATA:d8,SAVE_STORY_REQUEST:Wa,SAVE_STORY_RESPONSE:uo,SELECT_STORY:f8,SET_CONFIG:y8,SET_CURRENT_STORY:uu,SET_FILTER:h8,SET_GLOBALS:cu,SET_INDEX:m8,SET_STORIES:g8,SET_WHATS_NEW_CACHE:b8,SHARED_STATE_CHANGED:v8,SHARED_STATE_SET:E8,STORIES_COLLAPSE_ALL:x8,STORIES_EXPAND_ALL:w8,STORY_ARGS_UPDATED:pu,STORY_CHANGED:du,STORY_ERRORED:fu,STORY_INDEX_INVALIDATED:yu,STORY_MISSING:Ka,STORY_PREPARED:hu,STORY_RENDERED:cn,STORY_RENDER_PHASE_CHANGED:wr,STORY_SPECIFIED:mu,STORY_THREW_EXCEPTION:gu,STORY_UNCHANGED:bu,TELEMETRY_ERROR:S8,TOGGLE_WHATS_NEW_NOTIFICATIONS:A8,UNHANDLED_ERRORS_WHILE_PLAYING:vu,UPDATE_GLOBALS:co,UPDATE_QUERY_PARAMS:Eu,UPDATE_STORY_ARGS:po}=__STORYBOOK_CORE_EVENTS__;w();S();A();var F8=__STORYBOOK_API__,{ActiveTabs:j8,Consumer:N8,ManagerContext:B8,Provider:L8,RequestResponseError:q8,addons:fo,combineParameters:M8,controlOrMetaKey:U8,controlOrMetaSymbol:$8,eventMatchesShortcut:z8,eventToShortcut:V8,experimental_requestResponse:Ya,isMacLike:H8,isShortcutTaken:J8,keyToSymbol:G8,merge:W8,mockChannel:K8,optionOrAltSymbol:Y8,shortcutMatchesShortcut:X8,shortcutToHumanString:Q8,types:xu,useAddonState:Z8,useArgTypes:Xa,useArgs:wu,useChannel:e9,useGlobalTypes:t9,useGlobals:Su,useParameter:Au,useSharedState:r9,useStoryPrepared:n9,useStorybookApi:o9,useStorybookState:Tu}=__STORYBOOK_API__;ti();w();S();A();var Iu=Object.prototype.hasOwnProperty;function ku(e,t,r){for(r of e.keys())if(er(r,t))return r}function er(e,t){var r,n,o;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&er(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(o=n,o&&typeof o=="object"&&(o=ku(t,o),!o)||!t.has(o))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(o=n[0],o&&typeof o=="object"&&(o=ku(t,o),!o)||!er(n[1],t.get(o)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Iu.call(e,r)&&++n&&!Iu.call(t,r)||!(r in t)||!er(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}w();S();A();var ct=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof window<"u"?e=window:typeof self<"u"?e=self:e={},e})();ai();w();S();A();var J7=__STORYBOOK_CLIENT_LOGGER__,{deprecate:G7,logger:mo,once:Vu,pretty:W7}=__STORYBOOK_CLIENT_LOGGER__;var kv=on(uy()),Pv=on(yh()),Rv=on(Fh());w();S();A();w();S();A();w();S();A();var Lte=__STORYBOOK_CHANNELS__,{Channel:jh,PostMessageTransport:qte,WebsocketTransport:Mte,createBrowserChannel:Ute}=__STORYBOOK_CHANNELS__;w();S();A();var Jte=__STORYBOOK_CLIENT_LOGGER__,{deprecate:At,logger:ge,once:Mt,pretty:Gte}=__STORYBOOK_CLIENT_LOGGER__;w();S();A();var xk=Object.defineProperty,Ce=(e,t)=>xk(e,"name",{value:t,configurable:!0});function ke(e){for(var t=[],r=1;r` - ${i}`).join(` +`)}`),`${o}${a!=null?` + +More info: ${a} +`:""}`}};Ce(Nh,"StorybookError");var Be=Nh,wk=(e=>(e.BLOCKS="BLOCKS",e.DOCS_TOOLS="DOCS-TOOLS",e.PREVIEW_CLIENT_LOGGER="PREVIEW_CLIENT-LOGGER",e.PREVIEW_CHANNELS="PREVIEW_CHANNELS",e.PREVIEW_CORE_EVENTS="PREVIEW_CORE-EVENTS",e.PREVIEW_INSTRUMENTER="PREVIEW_INSTRUMENTER",e.PREVIEW_API="PREVIEW_API",e.PREVIEW_REACT_DOM_SHIM="PREVIEW_REACT-DOM-SHIM",e.PREVIEW_ROUTER="PREVIEW_ROUTER",e.PREVIEW_THEMING="PREVIEW_THEMING",e.RENDERER_HTML="RENDERER_HTML",e.RENDERER_PREACT="RENDERER_PREACT",e.RENDERER_REACT="RENDERER_REACT",e.RENDERER_SERVER="RENDERER_SERVER",e.RENDERER_SVELTE="RENDERER_SVELTE",e.RENDERER_VUE="RENDERER_VUE",e.RENDERER_VUE3="RENDERER_VUE3",e.RENDERER_WEB_COMPONENTS="RENDERER_WEB-COMPONENTS",e.FRAMEWORK_NEXTJS="FRAMEWORK_NEXTJS",e.ADDON_VITEST="ADDON_VITEST",e))(wk||{}),Lh=class extends Be{constructor(t){super({category:"PREVIEW_API",code:1,message:ke` + Couldn't find story matching id '${t.storyId}' after HMR. + - Did you just rename a story? + - Did you remove it from your CSF file? + - Are you sure a story with the id '${t.storyId}' exists? + - Please check the values in the stories field of your main.js config and see if they would match your CSF File. + - Also check the browser console and terminal for potential error messages.`}),this.data=t}};Ce(Lh,"MissingStoryAfterHmrError");var qh=Lh,Sk=class extends Be{constructor(t){super({category:"PREVIEW_API",code:2,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function",message:ke` + We detected that you use an implicit action arg while ${t.phase} of your story. + ${t.deprecated?` +This is deprecated and won't work in Storybook 8 anymore. +`:""} + Please provide an explicit spy to your args like this: + import { fn } from '@storybook/test'; + ... + args: { + ${t.name}: fn() + }`}),this.data=t}};Ce(Sk,"ImplicitActionsDuringRendering");var Mh=class extends Be{constructor(){super({category:"PREVIEW_API",code:3,message:ke` + Cannot call \`storyStore.extract()\` without calling \`storyStore.cacheAllCsfFiles()\` first. + + You probably meant to call \`await preview.extract()\` which does the above for you.`})}};Ce(Mh,"CalledExtractOnStoreError");var Uh=Mh,$h=class extends Be{constructor(){super({category:"PREVIEW_API",code:4,message:ke` + Expected your framework's preset to export a \`renderToCanvas\` field. + + Perhaps it needs to be upgraded for Storybook 7.0?`,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field"})}};Ce($h,"MissingRenderToCanvasError");var zh=$h,Vh=class extends Be{constructor(t){super({category:"PREVIEW_API",code:5,message:ke` + Called \`Preview.${t.methodName}()\` before initialization. + + The preview needs to load the story index before most methods can be called. If you want + to call \`${t.methodName}\`, try \`await preview.initializationPromise;\` first. + + If you didn't call the above code, then likely it was called by an addon that needs to + do the above.`}),this.data=t}};Ce(Vh,"CalledPreviewMethodBeforeInitializationError");var rt=Vh,Hh=class extends Be{constructor(t){super({category:"PREVIEW_API",code:6,message:ke` + Error fetching \`/index.json\`: + + ${t.text} + + If you are in development, this likely indicates a problem with your Storybook process, + check the terminal for errors. + + If you are in a deployed Storybook, there may have been an issue deploying the full Storybook + build.`}),this.data=t}};Ce(Hh,"StoryIndexFetchError");var Jh=Hh,Gh=class extends Be{constructor(t){super({category:"PREVIEW_API",code:7,message:ke` + Tried to render docs entry ${t.storyId} but it is a MDX file that has no CSF + references, or autodocs for a CSF file that some doesn't refer to itself. + + This likely is an internal error in Storybook's indexing, or you've attached the + \`attached-mdx\` tag to an MDX file that is not attached.`}),this.data=t}};Ce(Gh,"MdxFileWithNoCsfReferencesError");var Wh=Gh,Kh=class extends Be{constructor(){super({category:"PREVIEW_API",code:8,message:ke` + Couldn't find any stories in your Storybook. + + - Please check your stories field of your main.js config: does it match correctly? + - Also check the browser console and terminal for error messages.`})}};Ce(Kh,"EmptyIndexError");var Yh=Kh,Xh=class extends Be{constructor(t){super({category:"PREVIEW_API",code:9,message:ke` + Couldn't find story matching '${t.storySpecifier}'. + + - Are you sure a story with that id exists? + - Please check your stories field of your main.js config. + - Also check the browser console and terminal for error messages.`}),this.data=t}};Ce(Xh,"NoStoryMatchError");var Qh=Xh,Zh=class extends Be{constructor(t){super({category:"PREVIEW_API",code:10,message:ke` + Couldn't find story matching id '${t.storyId}' after importing a CSF file. + + The file was indexed as if the story was there, but then after importing the file in the browser + we didn't find the story. Possible reasons: + - You are using a custom story indexer that is misbehaving. + - You have a custom file loader that is removing or renaming exports. + + Please check your browser console and terminal for errors that may explain the issue.`}),this.data=t}};Ce(Zh,"MissingStoryFromCsfFileError");var em=Zh,tm=class extends Be{constructor(){super({category:"PREVIEW_API",code:11,message:ke` + Cannot access the Story Store until the index is ready. + + It is not recommended to use methods directly on the Story Store anyway, in Storybook 9 we will + remove access to the store entirely`})}};Ce(tm,"StoryStoreAccessedBeforeInitializationError");var rm=tm,nm=class extends Be{constructor(t){super({category:"PREVIEW_API",code:12,message:ke` + Incorrect use of mount in the play function. + + To use mount in the play function, you must satisfy the following two requirements: + + 1. You *must* destructure the mount property from the \`context\` (the argument passed to your play function). + This makes sure that Storybook does not start rendering the story before the play function begins. + + 2. Your Storybook framework or builder must be configured to transpile to ES2017 or newer. + This is because destructuring statements and async/await usages are otherwise transpiled away, + which prevents Storybook from recognizing your usage of \`mount\`. + + Note that Angular is not supported. As async/await is transpiled to support the zone.js polyfill. + + More info: https://storybook.js.org/docs/writing-tests/interaction-testing#run-code-before-the-component-gets-rendered + + Received the following play function: + ${t.playFunction}`}),this.data=t}};Ce(nm,"MountMustBeDestructuredError");var Bo=nm,om=class extends Be{constructor(t){super({category:"PREVIEW_API",code:14,message:ke` + No render function available for storyId '${t.id}' + `}),this.data=t}};Ce(om,"NoRenderFunctionError");var am=om,im=class extends Be{constructor(){super({category:"PREVIEW_API",code:15,message:ke` + No component is mounted in your story. + + This usually occurs when you destructure mount in the play function, but forget to call it. + + For example: + + async play({ mount, canvasElement }) { + // 👈 mount should be called: await mount(); + const canvas = within(canvasElement); + const button = await canvas.findByRole('button'); + await userEvent.click(button); + }; + + Make sure to either remove it or call mount in your play function. + `})}};Ce(im,"NoStoryMountedError");var sm=im,Ak=class extends Be{constructor(){super({category:"FRAMEWORK_NEXTJS",code:1,documentation:"https://storybook.js.org/docs/get-started/nextjs#faq",message:ke` + You are importing avif images, but you don't have sharp installed. + + You have to install sharp in order to use image optimization features in Next.js. + `})}};Ce(Ak,"NextJsSharpError");var Tk=class extends Be{constructor(t){super({category:"FRAMEWORK_NEXTJS",code:2,message:ke` + Tried to access router mocks from "${t.importType}" but they were not created yet. You might be running code in an unsupported environment. + `}),this.data=t}};Ce(Tk,"NextjsRouterMocksNotAvailable");var lm=class extends Be{constructor(t){super({category:"DOCS-TOOLS",code:1,documentation:"https://github.com/storybookjs/storybook/issues/26606",message:ke` + There was a failure when generating detailed ArgTypes in ${t.language} for: + ${JSON.stringify(t.type,null,2)} + + Storybook will fall back to use a generic type description instead. + + This type is either not supported or it is a bug in the docgen generation in Storybook. + If you think this is a bug, please detail it as much as possible in the Github issue. + `}),this.data=t}};Ce(lm,"UnknownArgTypesError");var Lo=lm,Ck=class extends Be{constructor(t){super({category:"ADDON_VITEST",code:1,message:ke` + Encountered an unsupported value "${t.value}" when setting the viewport ${t.dimension} dimension. + + The Storybook plugin only supports values in the following units: + - px, vh, vw, em, rem and %. + + You can either change the viewport for this story to use one of the supported units or skip the test by adding '!test' to the story's tags per https://storybook.js.org/docs/writing-stories/tags + `}),this.data=t}};Ce(Ck,"UnsupportedViewportDimensionError");w();S();A();var _k=Object.create,dm=Object.defineProperty,Ok=Object.getOwnPropertyDescriptor,Ik=Object.getOwnPropertyNames,kk=Object.getPrototypeOf,Pk=Object.prototype.hasOwnProperty,Rk=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Dk=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ik(t))!Pk.call(e,o)&&o!==r&&dm(e,o,{get:()=>t[o],enumerable:!(n=Ok(t,o))||n.enumerable});return e},Fk=(e,t,r)=>(r=e!=null?_k(kk(e)):{},Dk(t||!e||!e.__esModule?dm(r,"default",{value:e,enumerable:!0}):r,e)),jk=Rk(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,a){return function i(s,l,u){var c,d,y,f=t.call(s),h=t.call(l);if(s===l)return!0;if(s==null||l==null)return!1;if(u.indexOf(s)>-1&&u.indexOf(l)>-1)return!0;if(u.push(s,l),f!=h||(c=n(s),d=n(l),c.length!=d.length||c.some(function(g){return!i(s[g],l[g],u)})))return!1;switch(f.slice(8,-1)){case"Symbol":return s.valueOf()==l.valueOf();case"Date":case"Number":return+s==+l||+s!=+s&&+l!=+l;case"RegExp":case"Function":case"String":case"Boolean":return""+s==""+l;case"Set":case"Map":c=s.entries(),d=l.entries();do if(!i((y=c.next()).value,d.next().value,u))return!1;while(!y.done);return!0;case"ArrayBuffer":s=new Uint8Array(s),l=new Uint8Array(l);case"DataView":s=new Uint8Array(s.buffer),l=new Uint8Array(l.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(s.length!=l.length)return!1;for(y=0;y`${r} ${n}${o}`).replace(/([a-z])([A-Z])/g,(t,r,n)=>`${r} ${n}`).replace(/([a-z])([0-9])/gi,(t,r,n)=>`${r} ${n}`).replace(/([0-9])([a-z])/gi,(t,r,n)=>`${r} ${n}`).replace(/(\s|^)(\w)/g,(t,r,n)=>`${r}${n.toUpperCase()}`).replace(/ +/g," ").trim()}var um=Fk(jk()),fm=e=>e.map(t=>typeof t<"u").filter(Boolean).length,Bk=(e,t)=>{let{exists:r,eq:n,neq:o,truthy:a}=e;if(fm([r,n,o,a])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:o})}`);if(typeof n<"u")return(0,um.isEqual)(t,n);if(typeof o<"u")return!(0,um.isEqual)(t,o);if(typeof r<"u"){let i=typeof t<"u";return r?i:!i}return typeof a>"u"||a?!!t:!t},ym=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(fm([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let a=n?t[n]:r[o];return Bk(e.if,a)},zi=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),cm=(e,t)=>{let r=zi(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},hm=(e,t)=>`${cm(e,"kind")}${t?`--${cm(t,"name")}`:""}`,mm=e=>Nk(e);function pm(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}function qo(e,{includeStories:t,excludeStories:r}){return e!=="__esModule"&&(!t||pm(e,t))&&(!r||!pm(e,r))}var gm=(...e)=>{let t=e.reduce((r,n)=>(n.startsWith("!")?r.delete(n.slice(1)):r.add(n),r),new Set);return Array.from(t)};var Lk=Object.create,cs=Object.defineProperty,qk=Object.getOwnPropertyDescriptor,Mk=Object.getOwnPropertyNames,Uk=Object.getPrototypeOf,$k=Object.prototype.hasOwnProperty,m=(e,t)=>cs(e,"name",{value:t,configurable:!0}),Mo=(e=>typeof et<"u"?et:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof et<"u"?et:t)[r]}):e)(function(e){if(typeof et<"u")return et.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),L=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),zk=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Mk(t))!$k.call(e,o)&&o!==r&&cs(e,o,{get:()=>t[o],enumerable:!(n=qk(t,o))||n.enumerable});return e},Qe=(e,t,r)=>(r=e!=null?Lk(Uk(e)):{},zk(t||!e||!e.__esModule?cs(r,"default",{value:e,enumerable:!0}):r,e)),Fm=L((e,t)=>{var r=typeof window=="object"&&window&&window.Object===Object&&window;t.exports=r}),_t=L((e,t)=>{var r=Fm(),n=typeof self=="object"&&self&&self.Object===Object&&self,o=r||n||Function("return this")();t.exports=o}),On=L((e,t)=>{var r=_t(),n=r.Symbol;t.exports=n}),Vk=L((e,t)=>{var r=On(),n=Object.prototype,o=n.hasOwnProperty,a=n.toString,i=r?r.toStringTag:void 0;function s(l){var u=o.call(l,i),c=l[i];try{l[i]=void 0;var d=!0}catch{}var y=a.call(l);return d&&(u?l[i]=c:delete l[i]),y}m(s,"getRawTag"),t.exports=s}),Hk=L((e,t)=>{var r=Object.prototype,n=r.toString;function o(a){return n.call(a)}m(o,"objectToString"),t.exports=o}),Lr=L((e,t)=>{var r=On(),n=Vk(),o=Hk(),a="[object Null]",i="[object Undefined]",s=r?r.toStringTag:void 0;function l(u){return u==null?u===void 0?i:a:s&&s in Object(u)?n(u):o(u)}m(l,"baseGetTag"),t.exports=l}),In=L((e,t)=>{function r(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}m(r,"isObject"),t.exports=r}),jm=L((e,t)=>{var r=Lr(),n=In(),o="[object AsyncFunction]",a="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function l(u){if(!n(u))return!1;var c=r(u);return c==a||c==i||c==o||c==s}m(l,"isFunction"),t.exports=l}),Jk=L((e,t)=>{var r=_t(),n=r["__core-js_shared__"];t.exports=n}),Gk=L((e,t)=>{var r=Jk(),n=function(){var a=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}();function o(a){return!!n&&n in a}m(o,"isMasked"),t.exports=o}),Nm=L((e,t)=>{var r=Function.prototype,n=r.toString;function o(a){if(a!=null){try{return n.call(a)}catch{}try{return a+""}catch{}}return""}m(o,"toSource"),t.exports=o}),Wk=L((e,t)=>{var r=jm(),n=Gk(),o=In(),a=Nm(),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,d=u.hasOwnProperty,y=RegExp("^"+c.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(h){if(!o(h)||n(h))return!1;var g=r(h)?y:s;return g.test(a(h))}m(f,"baseIsNative"),t.exports=f}),Kk=L((e,t)=>{function r(n,o){return n?.[o]}m(r,"getValue"),t.exports=r}),ar=L((e,t)=>{var r=Wk(),n=Kk();function o(a,i){var s=n(a,i);return r(s)?s:void 0}m(o,"getNative"),t.exports=o}),Bm=L((e,t)=>{var r=ar(),n=function(){try{var o=r(Object,"defineProperty");return o({},"",{}),o}catch{}}();t.exports=n}),Lm=L((e,t)=>{var r=Bm();function n(o,a,i){a=="__proto__"&&r?r(o,a,{configurable:!0,enumerable:!0,value:i,writable:!0}):o[a]=i}m(n,"baseAssignValue"),t.exports=n}),Yk=L((e,t)=>{function r(n){return function(o,a,i){for(var s=-1,l=Object(o),u=i(o),c=u.length;c--;){var d=u[n?c:++s];if(a(l[d],d,l)===!1)break}return o}}m(r,"createBaseFor"),t.exports=r}),Xk=L((e,t)=>{var r=Yk(),n=r();t.exports=n}),Qk=L((e,t)=>{function r(n,o){for(var a=-1,i=Array(n);++a{function r(n){return n!=null&&typeof n=="object"}m(r,"isObjectLike"),t.exports=r}),Zk=L((e,t)=>{var r=Lr(),n=qr(),o="[object Arguments]";function a(i){return n(i)&&r(i)==o}m(a,"baseIsArguments"),t.exports=a}),ps=L((e,t)=>{var r=Zk(),n=qr(),o=Object.prototype,a=o.hasOwnProperty,i=o.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(l){return n(l)&&a.call(l,"callee")&&!i.call(l,"callee")};t.exports=s}),Ot=L((e,t)=>{var r=Array.isArray;t.exports=r}),eP=L((e,t)=>{function r(){return!1}m(r,"stubFalse"),t.exports=r}),qm=L((e,t)=>{var r=_t(),n=eP(),o=typeof e=="object"&&e&&!e.nodeType&&e,a=o&&typeof t=="object"&&t&&!t.nodeType&&t,i=a&&a.exports===o,s=i?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;t.exports=u}),ds=L((e,t)=>{var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function o(a,i){var s=typeof a;return i=i??r,!!i&&(s=="number"||s!="symbol"&&n.test(a))&&a>-1&&a%1==0&&a{var r=9007199254740991;function n(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=r}m(n,"isLength"),t.exports=n}),tP=L((e,t)=>{var r=Lr(),n=fs(),o=qr(),a="[object Arguments]",i="[object Array]",s="[object Boolean]",l="[object Date]",u="[object Error]",c="[object Function]",d="[object Map]",y="[object Number]",f="[object Object]",h="[object RegExp]",g="[object Set]",C="[object String]",b="[object WeakMap]",E="[object ArrayBuffer]",_="[object DataView]",T="[object Float32Array]",O="[object Float64Array]",I="[object Int8Array]",D="[object Int16Array]",R="[object Int32Array]",M="[object Uint8Array]",z="[object Uint8ClampedArray]",Y="[object Uint16Array]",Z="[object Uint32Array]",V={};V[T]=V[O]=V[I]=V[D]=V[R]=V[M]=V[z]=V[Y]=V[Z]=!0,V[a]=V[i]=V[E]=V[s]=V[_]=V[l]=V[u]=V[c]=V[d]=V[y]=V[f]=V[h]=V[g]=V[C]=V[b]=!1;function P(q){return o(q)&&n(q.length)&&!!V[r(q)]}m(P,"baseIsTypedArray"),t.exports=P}),rP=L((e,t)=>{function r(n){return function(o){return n(o)}}m(r,"baseUnary"),t.exports=r}),nP=L((e,t)=>{var r=Fm(),n=typeof e=="object"&&e&&!e.nodeType&&e,o=n&&typeof t=="object"&&t&&!t.nodeType&&t,a=o&&o.exports===n,i=a&&r.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();t.exports=s}),Mm=L((e,t)=>{var r=tP(),n=rP(),o=nP(),a=o&&o.isTypedArray,i=a?n(a):r;t.exports=i}),Um=L((e,t)=>{var r=Qk(),n=ps(),o=Ot(),a=qm(),i=ds(),s=Mm(),l=Object.prototype,u=l.hasOwnProperty;function c(d,y){var f=o(d),h=!f&&n(d),g=!f&&!h&&a(d),C=!f&&!h&&!g&&s(d),b=f||h||g||C,E=b?r(d.length,String):[],_=E.length;for(var T in d)(y||u.call(d,T))&&!(b&&(T=="length"||g&&(T=="offset"||T=="parent")||C&&(T=="buffer"||T=="byteLength"||T=="byteOffset")||i(T,_)))&&E.push(T);return E}m(c,"arrayLikeKeys"),t.exports=c}),$m=L((e,t)=>{var r=Object.prototype;function n(o){var a=o&&o.constructor,i=typeof a=="function"&&a.prototype||r;return o===i}m(n,"isPrototype"),t.exports=n}),zm=L((e,t)=>{function r(n,o){return function(a){return n(o(a))}}m(r,"overArg"),t.exports=r}),oP=L((e,t)=>{var r=zm(),n=r(Object.keys,Object);t.exports=n}),aP=L((e,t)=>{var r=$m(),n=oP(),o=Object.prototype,a=o.hasOwnProperty;function i(s){if(!r(s))return n(s);var l=[];for(var u in Object(s))a.call(s,u)&&u!="constructor"&&l.push(u);return l}m(i,"baseKeys"),t.exports=i}),Vm=L((e,t)=>{var r=jm(),n=fs();function o(a){return a!=null&&n(a.length)&&!r(a)}m(o,"isArrayLike"),t.exports=o}),ys=L((e,t)=>{var r=Um(),n=aP(),o=Vm();function a(i){return o(i)?r(i):n(i)}m(a,"keys"),t.exports=a}),iP=L((e,t)=>{var r=Xk(),n=ys();function o(a,i){return a&&r(a,i,n)}m(o,"baseForOwn"),t.exports=o}),sP=L((e,t)=>{function r(){this.__data__=[],this.size=0}m(r,"listCacheClear"),t.exports=r}),hs=L((e,t)=>{function r(n,o){return n===o||n!==n&&o!==o}m(r,"eq"),t.exports=r}),Wo=L((e,t)=>{var r=hs();function n(o,a){for(var i=o.length;i--;)if(r(o[i][0],a))return i;return-1}m(n,"assocIndexOf"),t.exports=n}),lP=L((e,t)=>{var r=Wo(),n=Array.prototype,o=n.splice;function a(i){var s=this.__data__,l=r(s,i);if(l<0)return!1;var u=s.length-1;return l==u?s.pop():o.call(s,l,1),--this.size,!0}m(a,"listCacheDelete"),t.exports=a}),uP=L((e,t)=>{var r=Wo();function n(o){var a=this.__data__,i=r(a,o);return i<0?void 0:a[i][1]}m(n,"listCacheGet"),t.exports=n}),cP=L((e,t)=>{var r=Wo();function n(o){return r(this.__data__,o)>-1}m(n,"listCacheHas"),t.exports=n}),pP=L((e,t)=>{var r=Wo();function n(o,a){var i=this.__data__,s=r(i,o);return s<0?(++this.size,i.push([o,a])):i[s][1]=a,this}m(n,"listCacheSet"),t.exports=n}),Ko=L((e,t)=>{var r=sP(),n=lP(),o=uP(),a=cP(),i=pP();function s(l){var u=-1,c=l==null?0:l.length;for(this.clear();++u{var r=Ko();function n(){this.__data__=new r,this.size=0}m(n,"stackClear"),t.exports=n}),fP=L((e,t)=>{function r(n){var o=this.__data__,a=o.delete(n);return this.size=o.size,a}m(r,"stackDelete"),t.exports=r}),yP=L((e,t)=>{function r(n){return this.__data__.get(n)}m(r,"stackGet"),t.exports=r}),hP=L((e,t)=>{function r(n){return this.__data__.has(n)}m(r,"stackHas"),t.exports=r}),ms=L((e,t)=>{var r=ar(),n=_t(),o=r(n,"Map");t.exports=o}),Yo=L((e,t)=>{var r=ar(),n=r(Object,"create");t.exports=n}),mP=L((e,t)=>{var r=Yo();function n(){this.__data__=r?r(null):{},this.size=0}m(n,"hashClear"),t.exports=n}),gP=L((e,t)=>{function r(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}m(r,"hashDelete"),t.exports=r}),bP=L((e,t)=>{var r=Yo(),n="__lodash_hash_undefined__",o=Object.prototype,a=o.hasOwnProperty;function i(s){var l=this.__data__;if(r){var u=l[s];return u===n?void 0:u}return a.call(l,s)?l[s]:void 0}m(i,"hashGet"),t.exports=i}),vP=L((e,t)=>{var r=Yo(),n=Object.prototype,o=n.hasOwnProperty;function a(i){var s=this.__data__;return r?s[i]!==void 0:o.call(s,i)}m(a,"hashHas"),t.exports=a}),EP=L((e,t)=>{var r=Yo(),n="__lodash_hash_undefined__";function o(a,i){var s=this.__data__;return this.size+=this.has(a)?0:1,s[a]=r&&i===void 0?n:i,this}m(o,"hashSet"),t.exports=o}),xP=L((e,t)=>{var r=mP(),n=gP(),o=bP(),a=vP(),i=EP();function s(l){var u=-1,c=l==null?0:l.length;for(this.clear();++u{var r=xP(),n=Ko(),o=ms();function a(){this.size=0,this.__data__={hash:new r,map:new(o||n),string:new r}}m(a,"mapCacheClear"),t.exports=a}),SP=L((e,t)=>{function r(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}m(r,"isKeyable"),t.exports=r}),Xo=L((e,t)=>{var r=SP();function n(o,a){var i=o.__data__;return r(a)?i[typeof a=="string"?"string":"hash"]:i.map}m(n,"getMapData"),t.exports=n}),AP=L((e,t)=>{var r=Xo();function n(o){var a=r(this,o).delete(o);return this.size-=a?1:0,a}m(n,"mapCacheDelete"),t.exports=n}),TP=L((e,t)=>{var r=Xo();function n(o){return r(this,o).get(o)}m(n,"mapCacheGet"),t.exports=n}),CP=L((e,t)=>{var r=Xo();function n(o){return r(this,o).has(o)}m(n,"mapCacheHas"),t.exports=n}),_P=L((e,t)=>{var r=Xo();function n(o,a){var i=r(this,o),s=i.size;return i.set(o,a),this.size+=i.size==s?0:1,this}m(n,"mapCacheSet"),t.exports=n}),gs=L((e,t)=>{var r=wP(),n=AP(),o=TP(),a=CP(),i=_P();function s(l){var u=-1,c=l==null?0:l.length;for(this.clear();++u{var r=Ko(),n=ms(),o=gs(),a=200;function i(s,l){var u=this.__data__;if(u instanceof r){var c=u.__data__;if(!n||c.length{var r=Ko(),n=dP(),o=fP(),a=yP(),i=hP(),s=OP();function l(u){var c=this.__data__=new r(u);this.size=c.size}m(l,"Stack"),l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,t.exports=l}),IP=L((e,t)=>{var r="__lodash_hash_undefined__";function n(o){return this.__data__.set(o,r),this}m(n,"setCacheAdd"),t.exports=n}),kP=L((e,t)=>{function r(n){return this.__data__.has(n)}m(r,"setCacheHas"),t.exports=r}),PP=L((e,t)=>{var r=gs(),n=IP(),o=kP();function a(i){var s=-1,l=i==null?0:i.length;for(this.__data__=new r;++s{function r(n,o){for(var a=-1,i=n==null?0:n.length;++a{function r(n,o){return n.has(o)}m(r,"cacheHas"),t.exports=r}),Jm=L((e,t)=>{var r=PP(),n=RP(),o=DP(),a=1,i=2;function s(l,u,c,d,y,f){var h=c&a,g=l.length,C=u.length;if(g!=C&&!(h&&C>g))return!1;var b=f.get(l),E=f.get(u);if(b&&E)return b==u&&E==l;var _=-1,T=!0,O=c&i?new r:void 0;for(f.set(l,u),f.set(u,l);++_{var r=_t(),n=r.Uint8Array;t.exports=n}),jP=L((e,t)=>{function r(n){var o=-1,a=Array(n.size);return n.forEach(function(i,s){a[++o]=[s,i]}),a}m(r,"mapToArray"),t.exports=r}),NP=L((e,t)=>{function r(n){var o=-1,a=Array(n.size);return n.forEach(function(i){a[++o]=i}),a}m(r,"setToArray"),t.exports=r}),BP=L((e,t)=>{var r=On(),n=FP(),o=hs(),a=Jm(),i=jP(),s=NP(),l=1,u=2,c="[object Boolean]",d="[object Date]",y="[object Error]",f="[object Map]",h="[object Number]",g="[object RegExp]",C="[object Set]",b="[object String]",E="[object Symbol]",_="[object ArrayBuffer]",T="[object DataView]",O=r?r.prototype:void 0,I=O?O.valueOf:void 0;function D(R,M,z,Y,Z,V,P){switch(z){case T:if(R.byteLength!=M.byteLength||R.byteOffset!=M.byteOffset)return!1;R=R.buffer,M=M.buffer;case _:return!(R.byteLength!=M.byteLength||!V(new n(R),new n(M)));case c:case d:case h:return o(+R,+M);case y:return R.name==M.name&&R.message==M.message;case g:case b:return R==M+"";case f:var q=i;case C:var J=Y&l;if(q||(q=s),R.size!=M.size&&!J)return!1;var X=P.get(R);if(X)return X==M;Y|=u,P.set(R,M);var te=a(q(R),q(M),Y,Z,V,P);return P.delete(R),te;case E:if(I)return I.call(R)==I.call(M)}return!1}m(D,"equalByTag"),t.exports=D}),bs=L((e,t)=>{function r(n,o){for(var a=-1,i=o.length,s=n.length;++a{var r=bs(),n=Ot();function o(a,i,s){var l=i(a);return n(a)?l:r(l,s(a))}m(o,"baseGetAllKeys"),t.exports=o}),LP=L((e,t)=>{function r(n,o){for(var a=-1,i=n==null?0:n.length,s=0,l=[];++a{function r(){return[]}m(r,"stubArray"),t.exports=r}),Km=L((e,t)=>{var r=LP(),n=Wm(),o=Object.prototype,a=o.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(l){return l==null?[]:(l=Object(l),r(i(l),function(u){return a.call(l,u)}))}:n;t.exports=s}),qP=L((e,t)=>{var r=Gm(),n=Km(),o=ys();function a(i){return r(i,o,n)}m(a,"getAllKeys"),t.exports=a}),MP=L((e,t)=>{var r=qP(),n=1,o=Object.prototype,a=o.hasOwnProperty;function i(s,l,u,c,d,y){var f=u&n,h=r(s),g=h.length,C=r(l),b=C.length;if(g!=b&&!f)return!1;for(var E=g;E--;){var _=h[E];if(!(f?_ in l:a.call(l,_)))return!1}var T=y.get(s),O=y.get(l);if(T&&O)return T==l&&O==s;var I=!0;y.set(s,l),y.set(l,s);for(var D=f;++E{var r=ar(),n=_t(),o=r(n,"DataView");t.exports=o}),$P=L((e,t)=>{var r=ar(),n=_t(),o=r(n,"Promise");t.exports=o}),zP=L((e,t)=>{var r=ar(),n=_t(),o=r(n,"Set");t.exports=o}),VP=L((e,t)=>{var r=ar(),n=_t(),o=r(n,"WeakMap");t.exports=o}),HP=L((e,t)=>{var r=UP(),n=ms(),o=$P(),a=zP(),i=VP(),s=Lr(),l=Nm(),u="[object Map]",c="[object Object]",d="[object Promise]",y="[object Set]",f="[object WeakMap]",h="[object DataView]",g=l(r),C=l(n),b=l(o),E=l(a),_=l(i),T=s;(r&&T(new r(new ArrayBuffer(1)))!=h||n&&T(new n)!=u||o&&T(o.resolve())!=d||a&&T(new a)!=y||i&&T(new i)!=f)&&(T=m(function(O){var I=s(O),D=I==c?O.constructor:void 0,R=D?l(D):"";if(R)switch(R){case g:return h;case C:return u;case b:return d;case E:return y;case _:return f}return I},"getTag")),t.exports=T}),JP=L((e,t)=>{var r=Hm(),n=Jm(),o=BP(),a=MP(),i=HP(),s=Ot(),l=qm(),u=Mm(),c=1,d="[object Arguments]",y="[object Array]",f="[object Object]",h=Object.prototype,g=h.hasOwnProperty;function C(b,E,_,T,O,I){var D=s(b),R=s(E),M=D?y:i(b),z=R?y:i(E);M=M==d?f:M,z=z==d?f:z;var Y=M==f,Z=z==f,V=M==z;if(V&&l(b)){if(!l(E))return!1;D=!0,Y=!1}if(V&&!Y)return I||(I=new r),D||u(b)?n(b,E,_,T,O,I):o(b,E,M,_,T,O,I);if(!(_&c)){var P=Y&&g.call(b,"__wrapped__"),q=Z&&g.call(E,"__wrapped__");if(P||q){var J=P?b.value():b,X=q?E.value():E;return I||(I=new r),O(J,X,_,T,I)}}return V?(I||(I=new r),a(b,E,_,T,O,I)):!1}m(C,"baseIsEqualDeep"),t.exports=C}),Ym=L((e,t)=>{var r=JP(),n=qr();function o(a,i,s,l,u){return a===i?!0:a==null||i==null||!n(a)&&!n(i)?a!==a&&i!==i:r(a,i,s,l,o,u)}m(o,"baseIsEqual"),t.exports=o}),GP=L((e,t)=>{var r=Hm(),n=Ym(),o=1,a=2;function i(s,l,u,c){var d=u.length,y=d,f=!c;if(s==null)return!y;for(s=Object(s);d--;){var h=u[d];if(f&&h[2]?h[1]!==s[h[0]]:!(h[0]in s))return!1}for(;++d{var r=In();function n(o){return o===o&&!r(o)}m(n,"isStrictComparable"),t.exports=n}),WP=L((e,t)=>{var r=Xm(),n=ys();function o(a){for(var i=n(a),s=i.length;s--;){var l=i[s],u=a[l];i[s]=[l,u,r(u)]}return i}m(o,"getMatchData"),t.exports=o}),Qm=L((e,t)=>{function r(n,o){return function(a){return a==null?!1:a[n]===o&&(o!==void 0||n in Object(a))}}m(r,"matchesStrictComparable"),t.exports=r}),KP=L((e,t)=>{var r=GP(),n=WP(),o=Qm();function a(i){var s=n(i);return s.length==1&&s[0][2]?o(s[0][0],s[0][1]):function(l){return l===i||r(l,i,s)}}m(a,"baseMatches"),t.exports=a}),vs=L((e,t)=>{var r=Lr(),n=qr(),o="[object Symbol]";function a(i){return typeof i=="symbol"||n(i)&&r(i)==o}m(a,"isSymbol"),t.exports=a}),Es=L((e,t)=>{var r=Ot(),n=vs(),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function i(s,l){if(r(s))return!1;var u=typeof s;return u=="number"||u=="symbol"||u=="boolean"||s==null||n(s)?!0:a.test(s)||!o.test(s)||l!=null&&s in Object(l)}m(i,"isKey"),t.exports=i}),YP=L((e,t)=>{var r=gs(),n="Expected a function";function o(a,i){if(typeof a!="function"||i!=null&&typeof i!="function")throw new TypeError(n);var s=m(function(){var l=arguments,u=i?i.apply(this,l):l[0],c=s.cache;if(c.has(u))return c.get(u);var d=a.apply(this,l);return s.cache=c.set(u,d)||c,d},"memoized");return s.cache=new(o.Cache||r),s}m(o,"memoize"),o.Cache=r,t.exports=o}),XP=L((e,t)=>{var r=YP(),n=500;function o(a){var i=r(a,function(l){return s.size===n&&s.clear(),l}),s=i.cache;return i}m(o,"memoizeCapped"),t.exports=o}),QP=L((e,t)=>{var r=XP(),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(n,function(l,u,c,d){s.push(c?d.replace(o,"$1"):u||l)}),s});t.exports=a}),Zm=L((e,t)=>{function r(n,o){for(var a=-1,i=n==null?0:n.length,s=Array(i);++a{var r=On(),n=Zm(),o=Ot(),a=vs(),i=1/0,s=r?r.prototype:void 0,l=s?s.toString:void 0;function u(c){if(typeof c=="string")return c;if(o(c))return n(c,u)+"";if(a(c))return l?l.call(c):"";var d=c+"";return d=="0"&&1/c==-i?"-0":d}m(u,"baseToString"),t.exports=u}),eR=L((e,t)=>{var r=ZP();function n(o){return o==null?"":r(o)}m(n,"toString"),t.exports=n}),Qo=L((e,t)=>{var r=Ot(),n=Es(),o=QP(),a=eR();function i(s,l){return r(s)?s:n(s,l)?[s]:o(a(s))}m(i,"castPath"),t.exports=i}),kn=L((e,t)=>{var r=vs(),n=1/0;function o(a){if(typeof a=="string"||r(a))return a;var i=a+"";return i=="0"&&1/a==-n?"-0":i}m(o,"toKey"),t.exports=o}),xs=L((e,t)=>{var r=Qo(),n=kn();function o(a,i){i=r(i,a);for(var s=0,l=i.length;a!=null&&s{var r=xs();function n(o,a,i){var s=o==null?void 0:r(o,a);return s===void 0?i:s}m(n,"get"),t.exports=n}),rR=L((e,t)=>{function r(n,o){return n!=null&&o in Object(n)}m(r,"baseHasIn"),t.exports=r}),nR=L((e,t)=>{var r=Qo(),n=ps(),o=Ot(),a=ds(),i=fs(),s=kn();function l(u,c,d){c=r(c,u);for(var y=-1,f=c.length,h=!1;++y{var r=rR(),n=nR();function o(a,i){return a!=null&&n(a,i,r)}m(o,"hasIn"),t.exports=o}),oR=L((e,t)=>{var r=Ym(),n=tR(),o=eg(),a=Es(),i=Xm(),s=Qm(),l=kn(),u=1,c=2;function d(y,f){return a(y)&&i(f)?s(l(y),f):function(h){var g=n(h,y);return g===void 0&&g===f?o(h,y):r(f,g,u|c)}}m(d,"baseMatchesProperty"),t.exports=d}),tg=L((e,t)=>{function r(n){return n}m(r,"identity"),t.exports=r}),aR=L((e,t)=>{function r(n){return function(o){return o?.[n]}}m(r,"baseProperty"),t.exports=r}),iR=L((e,t)=>{var r=xs();function n(o){return function(a){return r(a,o)}}m(n,"basePropertyDeep"),t.exports=n}),sR=L((e,t)=>{var r=aR(),n=iR(),o=Es(),a=kn();function i(s){return o(s)?r(a(s)):n(s)}m(i,"property"),t.exports=i}),rg=L((e,t)=>{var r=KP(),n=oR(),o=tg(),a=Ot(),i=sR();function s(l){return typeof l=="function"?l:l==null?o:typeof l=="object"?a(l)?n(l[0],l[1]):r(l):i(l)}m(s,"baseIteratee"),t.exports=s}),Zo=L((e,t)=>{var r=Lm(),n=iP(),o=rg();function a(i,s){var l={};return s=o(s,3),n(i,function(u,c,d){r(l,c,s(u,c,d))}),l}m(a,"mapValues"),t.exports=a}),lR=L((e,t)=>{var r=Lm(),n=hs(),o=Object.prototype,a=o.hasOwnProperty;function i(s,l,u){var c=s[l];(!(a.call(s,l)&&n(c,u))||u===void 0&&!(l in s))&&r(s,l,u)}m(i,"assignValue"),t.exports=i}),uR=L((e,t)=>{var r=lR(),n=Qo(),o=ds(),a=In(),i=kn();function s(l,u,c,d){if(!a(l))return l;u=n(u,l);for(var y=-1,f=u.length,h=f-1,g=l;g!=null&&++y{var r=xs(),n=uR(),o=Qo();function a(i,s,l){for(var u=-1,c=s.length,d={};++u{var r=ng(),n=eg();function o(a,i){return r(a,i,function(s,l){return n(a,l)})}m(o,"basePick"),t.exports=o}),pR=L((e,t)=>{var r=On(),n=ps(),o=Ot(),a=r?r.isConcatSpreadable:void 0;function i(s){return o(s)||n(s)||!!(a&&s&&s[a])}m(i,"isFlattenable"),t.exports=i}),dR=L((e,t)=>{var r=bs(),n=pR();function o(a,i,s,l,u){var c=-1,d=a.length;for(s||(s=n),u||(u=[]);++c0&&s(y)?i>1?o(y,i-1,s,l,u):r(u,y):l||(u[u.length]=y)}return u}m(o,"baseFlatten"),t.exports=o}),fR=L((e,t)=>{var r=dR();function n(o){var a=o==null?0:o.length;return a?r(o,1):[]}m(n,"flatten"),t.exports=n}),yR=L((e,t)=>{function r(n,o,a){switch(a.length){case 0:return n.call(o);case 1:return n.call(o,a[0]);case 2:return n.call(o,a[0],a[1]);case 3:return n.call(o,a[0],a[1],a[2])}return n.apply(o,a)}m(r,"apply"),t.exports=r}),hR=L((e,t)=>{var r=yR(),n=Math.max;function o(a,i,s){return i=n(i===void 0?a.length-1:i,0),function(){for(var l=arguments,u=-1,c=n(l.length-i,0),d=Array(c);++u{function r(n){return function(){return n}}m(r,"constant"),t.exports=r}),gR=L((e,t)=>{var r=mR(),n=Bm(),o=tg(),a=n?function(i,s){return n(i,"toString",{configurable:!0,enumerable:!1,value:r(s),writable:!0})}:o;t.exports=a}),bR=L((e,t)=>{var r=800,n=16,o=Date.now;function a(i){var s=0,l=0;return function(){var u=o(),c=n-(u-l);if(l=u,c>0){if(++s>=r)return arguments[0]}else s=0;return i.apply(void 0,arguments)}}m(a,"shortOut"),t.exports=a}),vR=L((e,t)=>{var r=gR(),n=bR(),o=n(r);t.exports=o}),ER=L((e,t)=>{var r=fR(),n=hR(),o=vR();function a(i){return o(n(i,void 0,r),i+"")}m(a,"flatRest"),t.exports=a}),xR=L((e,t)=>{var r=cR(),n=ER(),o=n(function(a,i){return a==null?{}:r(a,i)});t.exports=o}),og=L((e,t)=>{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"||typeof window<"u"?n=window:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){var r,n,o;return m(function a(i,s,l){function u(y,f){if(!s[y]){if(!i[y]){var h=typeof Mo=="function"&&Mo;if(!f&&h)return h(y,!0);if(c)return c(y,!0);var g=new Error("Cannot find module '"+y+"'");throw g.code="MODULE_NOT_FOUND",g}var C=s[y]={exports:{}};i[y][0].call(C.exports,function(b){var E=i[y][1][b];return u(E||b)},C,C.exports,a,i,s,l)}return s[y].exports}m(u,"s");for(var c=typeof Mo=="function"&&Mo,d=0;d=0)return this.lastItem=this.list[c],this.list[c].val},l.prototype.set=function(u,c){var d;return this.lastItem&&this.isEqual(this.lastItem.key,u)?(this.lastItem.val=c,this):(d=this.indexOf(u),d>=0?(this.lastItem=this.list[d],this.list[d].val=c,this):(this.lastItem={key:u,val:c},this.list.push(this.lastItem),this.size++,this))},l.prototype.delete=function(u){var c;if(this.lastItem&&this.isEqual(this.lastItem.key,u)&&(this.lastItem=void 0),c=this.indexOf(u),c>=0)return this.size--,this.list.splice(c,1)[0]},l.prototype.has=function(u){var c;return this.lastItem&&this.isEqual(this.lastItem.key,u)?!0:(c=this.indexOf(u),c>=0?(this.lastItem=this.list[c],!0):!1)},l.prototype.forEach=function(u,c){var d;for(d=0;d0&&(O[T]={cacheItem:b,arg:arguments[T]},I?u(h,O):h.push(O),h.length>y&&c(h.shift())),C.wasMemoized=I,C.numArgs=T+1,_},"memoizerific");return C.limit=y,C.wasMemoized=!1,C.cache=f,C.lru=h,C}};function u(y,f){var h=y.length,g=f.length,C,b,E;for(b=0;b=0&&(h=y[C],g=h.cacheItem.get(h.arg),!g||!g.size);C--)h.cacheItem.delete(h.arg)}m(c,"removeCachedResult");function d(y,f){return y===f||y!==y&&f!==f}m(d,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})}),ag=L((e,t)=>{var r=zm(),n=r(Object.getPrototypeOf,Object);t.exports=n}),ws=L((e,t)=>{var r=Lr(),n=ag(),o=qr(),a="[object Object]",i=Function.prototype,s=Object.prototype,l=i.toString,u=s.hasOwnProperty,c=l.call(Object);function d(y){if(!o(y)||r(y)!=a)return!1;var f=n(y);if(f===null)return!0;var h=u.call(f,"constructor")&&f.constructor;return typeof h=="function"&&h instanceof h&&l.call(h)==c}m(d,"isPlainObject"),t.exports=d}),wR=L((e,t)=>{var r=bs(),n=ag(),o=Km(),a=Wm(),i=Object.getOwnPropertySymbols,s=i?function(l){for(var u=[];l;)r(u,o(l)),l=n(l);return u}:a;t.exports=s}),SR=L((e,t)=>{function r(n){var o=[];if(n!=null)for(var a in Object(n))o.push(a);return o}m(r,"nativeKeysIn"),t.exports=r}),AR=L((e,t)=>{var r=In(),n=$m(),o=SR(),a=Object.prototype,i=a.hasOwnProperty;function s(l){if(!r(l))return o(l);var u=n(l),c=[];for(var d in l)d=="constructor"&&(u||!i.call(l,d))||c.push(d);return c}m(s,"baseKeysIn"),t.exports=s}),TR=L((e,t)=>{var r=Um(),n=AR(),o=Vm();function a(i){return o(i)?r(i,!0):n(i)}m(a,"keysIn"),t.exports=a}),CR=L((e,t)=>{var r=Gm(),n=wR(),o=TR();function a(i){return r(i,o,n)}m(a,"getAllKeysIn"),t.exports=a}),_R=L((e,t)=>{var r=Zm(),n=rg(),o=ng(),a=CR();function i(s,l){if(s==null)return{};var u=r(a(s),function(c){return[c]});return l=n(l),o(s,u,function(c,d){return l(c,d[0])})}m(i,"pickBy"),t.exports=i}),OR=L((e,t)=>{"use strict";t.exports=Error}),IR=L((e,t)=>{"use strict";t.exports=EvalError}),kR=L((e,t)=>{"use strict";t.exports=RangeError}),PR=L((e,t)=>{"use strict";t.exports=ReferenceError}),ig=L((e,t)=>{"use strict";t.exports=SyntaxError}),Pn=L((e,t)=>{"use strict";t.exports=TypeError}),RR=L((e,t)=>{"use strict";t.exports=URIError}),DR=L((e,t)=>{"use strict";t.exports=m(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var a=42;r[n]=a;for(n in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var i=Object.getOwnPropertySymbols(r);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==a||s.enumerable!==!0)return!1}return!0},"hasSymbols")}),FR=L((e,t)=>{"use strict";var r=typeof Symbol<"u"&&Symbol,n=DR();t.exports=m(function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()},"hasNativeSymbols")}),jR=L((e,t)=>{"use strict";var r={__proto__:null,foo:{}},n=Object;t.exports=m(function(){return{__proto__:r}.foo===r.foo&&!(r instanceof n)},"hasProto")}),NR=L((e,t)=>{"use strict";var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,o=Math.max,a="[object Function]",i=m(function(u,c){for(var d=[],y=0;y{"use strict";var r=NR();t.exports=Function.prototype.bind||r}),BR=L((e,t)=>{"use strict";var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=Ss();t.exports=o.call(r,n)}),Mr=L((e,t)=>{"use strict";var r,n=OR(),o=IR(),a=kR(),i=PR(),s=ig(),l=Pn(),u=RR(),c=Function,d=m(function(re){try{return c('"use strict"; return ('+re+").constructor;")()}catch{}},"getEvalledConstructor"),y=Object.getOwnPropertyDescriptor;if(y)try{y({},"")}catch{y=null}var f=m(function(){throw new l},"throwTypeError"),h=y?function(){try{return arguments.callee,f}catch{try{return y(arguments,"callee").get}catch{return f}}}():f,g=FR()(),C=jR()(),b=Object.getPrototypeOf||(C?function(re){return re.__proto__}:null),E={},_=typeof Uint8Array>"u"||!b?r:b(Uint8Array),T={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&b?b([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":E,"%AsyncGenerator%":E,"%AsyncGeneratorFunction%":E,"%AsyncIteratorPrototype%":E,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":o,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":c,"%GeneratorFunction%":E,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&b?b(b([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!g||!b?r:b(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":a,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!g||!b?r:b(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&b?b(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":h,"%TypedArray%":_,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet};if(b)try{null.error}catch(re){O=b(b(re)),T["%Error.prototype%"]=O}var O,I=m(function re(ee){var oe;if(ee==="%AsyncFunction%")oe=d("async function () {}");else if(ee==="%GeneratorFunction%")oe=d("function* () {}");else if(ee==="%AsyncGeneratorFunction%")oe=d("async function* () {}");else if(ee==="%AsyncGenerator%"){var ie=re("%AsyncGeneratorFunction%");ie&&(oe=ie.prototype)}else if(ee==="%AsyncIteratorPrototype%"){var ce=re("%AsyncGenerator%");ce&&b&&(oe=b(ce.prototype))}return T[ee]=oe,oe},"doEval"),D={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},R=Ss(),M=BR(),z=R.call(Function.call,Array.prototype.concat),Y=R.call(Function.apply,Array.prototype.splice),Z=R.call(Function.call,String.prototype.replace),V=R.call(Function.call,String.prototype.slice),P=R.call(Function.call,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,J=/\\(\\)?/g,X=m(function(re){var ee=V(re,0,1),oe=V(re,-1);if(ee==="%"&&oe!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(oe==="%"&&ee!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var ie=[];return Z(re,q,function(ce,be,pe,ye){ie[ie.length]=pe?Z(ye,J,"$1"):be||ce}),ie},"stringToPath"),te=m(function(re,ee){var oe=re,ie;if(M(D,oe)&&(ie=D[oe],oe="%"+ie[0]+"%"),M(T,oe)){var ce=T[oe];if(ce===E&&(ce=I(oe)),typeof ce>"u"&&!ee)throw new l("intrinsic "+re+" exists, but is not available. Please file an issue!");return{alias:ie,name:oe,value:ce}}throw new s("intrinsic "+re+" does not exist!")},"getBaseIntrinsic");t.exports=m(function(re,ee){if(typeof re!="string"||re.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ee!="boolean")throw new l('"allowMissing" argument must be a boolean');if(P(/^%?[^%]*%?$/,re)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var oe=X(re),ie=oe.length>0?oe[0]:"",ce=te("%"+ie+"%",ee),be=ce.name,pe=ce.value,ye=!1,_e=ce.alias;_e&&(ie=_e[0],Y(oe,z([0,1],_e)));for(var Me=1,Oe=!0;Me=oe.length){var $e=y(pe,he);Oe=!!$e,Oe&&"get"in $e&&!("originalValue"in $e.get)?pe=$e.get:pe=pe[he]}else Oe=M(pe,he),pe=pe[he];Oe&&!ye&&(T[be]=pe)}}return pe},"GetIntrinsic")}),As=L((e,t)=>{"use strict";var r=Mr(),n=r("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}t.exports=n}),sg=L((e,t)=>{"use strict";var r=Mr(),n=r("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch{n=null}t.exports=n}),LR=L((e,t)=>{"use strict";var r=As(),n=ig(),o=Pn(),a=sg();t.exports=m(function(i,s,l){if(!i||typeof i!="object"&&typeof i!="function")throw new o("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new o("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,d=arguments.length>5?arguments[5]:null,y=arguments.length>6?arguments[6]:!1,f=!!a&&a(i,s);if(r)r(i,s,{configurable:d===null&&f?f.configurable:!d,enumerable:u===null&&f?f.enumerable:!u,value:l,writable:c===null&&f?f.writable:!c});else if(y||!u&&!c&&!d)i[s]=l;else throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},"defineDataProperty")}),qR=L((e,t)=>{"use strict";var r=As(),n=m(function(){return!!r},"hasPropertyDescriptors");n.hasArrayLengthDefineBug=m(function(){if(!r)return null;try{return r([],"length",{value:1}).length!==1}catch{return!0}},"hasArrayLengthDefineBug"),t.exports=n}),MR=L((e,t)=>{"use strict";var r=Mr(),n=LR(),o=qR()(),a=sg(),i=Pn(),s=r("%Math.floor%");t.exports=m(function(l,u){if(typeof l!="function")throw new i("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||s(u)!==u)throw new i("`length` must be a positive 32-bit integer");var c=arguments.length>2&&!!arguments[2],d=!0,y=!0;if("length"in l&&a){var f=a(l,"length");f&&!f.configurable&&(d=!1),f&&!f.writable&&(y=!1)}return(d||y||!c)&&(o?n(l,"length",u,!0,!0):n(l,"length",u)),l},"setFunctionLength")}),UR=L((e,t)=>{"use strict";var r=Ss(),n=Mr(),o=MR(),a=Pn(),i=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),l=n("%Reflect.apply%",!0)||r.call(s,i),u=As(),c=n("%Math.max%");t.exports=m(function(y){if(typeof y!="function")throw new a("a function is required");var f=l(r,s,arguments);return o(f,1+c(0,y.length-(arguments.length-1)),!0)},"callBind");var d=m(function(){return l(r,i,arguments)},"applyBind");u?u(t.exports,"apply",{value:d}):t.exports.apply=d}),$R=L((e,t)=>{"use strict";var r=Mr(),n=UR(),o=n(r("String.prototype.indexOf"));t.exports=m(function(a,i){var s=r(a,!!i);return typeof s=="function"&&o(a,".prototype.")>-1?n(s):s},"callBoundIntrinsic")}),zR=L(()=>{}),VR=L((e,t)=>{var r=typeof Map=="function"&&Map.prototype,n=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&n&&typeof n.get=="function"?n.get:null,a=r&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,s=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=i&&s&&typeof s.get=="function"?s.get:null,u=i&&Set.prototype.forEach,c=typeof WeakMap=="function"&&WeakMap.prototype,d=c?WeakMap.prototype.has:null,y=typeof WeakSet=="function"&&WeakSet.prototype,f=y?WeakSet.prototype.has:null,h=typeof WeakRef=="function"&&WeakRef.prototype,g=h?WeakRef.prototype.deref:null,C=Boolean.prototype.valueOf,b=Object.prototype.toString,E=Function.prototype.toString,_=String.prototype.match,T=String.prototype.slice,O=String.prototype.replace,I=String.prototype.toUpperCase,D=String.prototype.toLowerCase,R=RegExp.prototype.test,M=Array.prototype.concat,z=Array.prototype.join,Y=Array.prototype.slice,Z=Math.floor,V=typeof BigInt=="function"?BigInt.prototype.valueOf:null,P=Object.getOwnPropertySymbols,q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,J=typeof Symbol=="function"&&typeof Symbol.iterator=="object",X=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===J||!0)?Symbol.toStringTag:null,te=Object.prototype.propertyIsEnumerable,re=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function($){return $.__proto__}:null);function ee($,G){if($===1/0||$===-1/0||$!==$||$&&$>-1e3&&$<1e3||R.call(/e/,G))return G;var ue=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof $=="number"){var se=$<0?-Z(-$):Z($);if(se!==$){var we=String(se),le=T.call(G,we.length+1);return O.call(we,ue,"$&_")+"."+O.call(O.call(le,/([0-9]{3})/g,"$&_"),/_$/,"")}}return O.call(G,ue,"$&_")}m(ee,"addNumericSeparator");var oe=zR(),ie=oe.custom,ce=$e(ie)?ie:null;t.exports=m(function $(G,ue,se,we){var le=ue||{};if(fe(le,"quoteStyle")&&le.quoteStyle!=="single"&&le.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(fe(le,"maxStringLength")&&(typeof le.maxStringLength=="number"?le.maxStringLength<0&&le.maxStringLength!==1/0:le.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var ze=fe(le,"customInspect")?le.customInspect:!0;if(typeof ze!="boolean"&&ze!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(fe(le,"indent")&&le.indent!==null&&le.indent!==" "&&!(parseInt(le.indent,10)===le.indent&&le.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(fe(le,"numericSeparator")&&typeof le.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var pt=le.numericSeparator;if(typeof G>"u")return"undefined";if(G===null)return"null";if(typeof G=="boolean")return G?"true":"false";if(typeof G=="string")return Qr(G,le);if(typeof G=="number"){if(G===0)return 1/0/G>0?"0":"-0";var Ke=String(G);return pt?ee(G,Ke):Ke}if(typeof G=="bigint"){var dt=String(G)+"n";return pt?ee(G,dt):dt}var en=typeof le.depth>"u"?5:le.depth;if(typeof se>"u"&&(se=0),se>=en&&en>0&&typeof G=="object")return ye(G)?"[Array]":"[Object]";var Ye=Qn(le,se);if(typeof we>"u")we=[];else if(Rt(we,G)>=0)return"[Circular]";function Ze(ae,de,Ne){if(de&&(we=Y.call(we),we.push(de)),Ne){var Ie={depth:le.depth};return fe(le,"quoteStyle")&&(Ie.quoteStyle=le.quoteStyle),$(ae,Ie,se+1,we)}return $(ae,le,se+1,we)}if(m(Ze,"inspect"),typeof G=="function"&&!Me(G)){var Zn=Et(G),ft=Kt(G,Ze);return"[Function"+(Zn?": "+Zn:" (anonymous)")+"]"+(ft.length>0?" { "+z.call(ft,", ")+" }":"")}if($e(G)){var eo=J?O.call(String(G),/^(Symbol\(.*\))_[^)]*$/,"$1"):q.call(G);return typeof G=="object"&&!J?Dt(eo):eo}if(Kn(G)){for(var xt="<"+D.call(String(G.nodeName)),tn=G.attributes||[],mr=0;mr",xt}if(ye(G)){if(G.length===0)return"[]";var rn=Kt(G,Ze);return Ye&&!Xn(rn)?"["+hr(rn,Ye)+"]":"[ "+z.call(rn,", ")+" ]"}if(Oe(G)){var gr=Kt(G,Ze);return!("cause"in Error.prototype)&&"cause"in G&&!te.call(G,"cause")?"{ ["+String(G)+"] "+z.call(M.call("[cause]: "+Ze(G.cause),gr),", ")+" }":gr.length===0?"["+String(G)+"]":"{ ["+String(G)+"] "+z.call(gr,", ")+" }"}if(typeof G=="object"&&ze){if(ce&&typeof G[ce]=="function"&&oe)return oe(G,{depth:en-se});if(ze!=="symbol"&&typeof G.inspect=="function")return G.inspect()}if(fr(G)){var br=[];return a&&a.call(G,function(ae,de){br.push(Ze(de,G,!0)+" => "+Ze(ae,G))}),Zr("Map",o.call(G),br,Ye)}if(Gn(G)){var to=[];return u&&u.call(G,function(ae){to.push(Ze(ae,G))}),Zr("Set",l.call(G),to,Ye)}if(Xr(G))return yr("WeakMap");if(Wn(G))return yr("WeakSet");if(Jn(G))return yr("WeakRef");if(Ue(G))return Dt(Ze(Number(G)));if(lt(G))return Dt(Ze(V.call(G)));if(Te(G))return Dt(C.call(G));if(he(G))return Dt(Ze(String(G)));if(typeof window<"u"&&G===window)return"{ [object Window] }";if(G===window)return"{ [object globalThis] }";if(!_e(G)&&!Me(G)){var p=Kt(G,Ze),x=re?re(G)===Object.prototype:G instanceof Object||G.constructor===Object,k=G instanceof Object?"":"null prototype",H=!x&&X&&Object(G)===G&&X in G?T.call(Se(G),8,-1):k?"Object":"",Q=x||typeof G.constructor!="function"?"":G.constructor.name?G.constructor.name+" ":"",ne=Q+(H||k?"["+z.call(M.call([],H||[],k||[]),": ")+"] ":"");return p.length===0?ne+"{}":Ye?ne+"{"+hr(p,Ye)+"}":ne+"{ "+z.call(p,", ")+" }"}return String(G)},"inspect_");function be($,G,ue){var se=(ue.quoteStyle||G)==="double"?'"':"'";return se+$+se}m(be,"wrapQuotes");function pe($){return O.call(String($),/"/g,""")}m(pe,"quote");function ye($){return Se($)==="[object Array]"&&(!X||!(typeof $=="object"&&X in $))}m(ye,"isArray");function _e($){return Se($)==="[object Date]"&&(!X||!(typeof $=="object"&&X in $))}m(_e,"isDate");function Me($){return Se($)==="[object RegExp]"&&(!X||!(typeof $=="object"&&X in $))}m(Me,"isRegExp");function Oe($){return Se($)==="[object Error]"&&(!X||!(typeof $=="object"&&X in $))}m(Oe,"isError");function he($){return Se($)==="[object String]"&&(!X||!(typeof $=="object"&&X in $))}m(he,"isString");function Ue($){return Se($)==="[object Number]"&&(!X||!(typeof $=="object"&&X in $))}m(Ue,"isNumber");function Te($){return Se($)==="[object Boolean]"&&(!X||!(typeof $=="object"&&X in $))}m(Te,"isBoolean");function $e($){if(J)return $&&typeof $=="object"&&$ instanceof Symbol;if(typeof $=="symbol")return!0;if(!$||typeof $!="object"||!q)return!1;try{return q.call($),!0}catch{}return!1}m($e,"isSymbol");function lt($){if(!$||typeof $!="object"||!V)return!1;try{return V.call($),!0}catch{}return!1}m(lt,"isBigInt");var je=Object.prototype.hasOwnProperty||function($){return $ in this};function fe($,G){return je.call($,G)}m(fe,"has");function Se($){return b.call($)}m(Se,"toStr");function Et($){if($.name)return $.name;var G=_.call(E.call($),/^function\s*([\w$]+)/);return G?G[1]:null}m(Et,"nameOf");function Rt($,G){if($.indexOf)return $.indexOf(G);for(var ue=0,se=$.length;ueG.maxStringLength){var ue=$.length-G.maxStringLength,se="... "+ue+" more character"+(ue>1?"s":"");return Qr(T.call($,0,G.maxStringLength),G)+se}var we=O.call(O.call($,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Yn);return be(we,"single",G)}m(Qr,"inspectString");function Yn($){var G=$.charCodeAt(0),ue={8:"b",9:"t",10:"n",12:"f",13:"r"}[G];return ue?"\\"+ue:"\\x"+(G<16?"0":"")+I.call(G.toString(16))}m(Yn,"lowbyte");function Dt($){return"Object("+$+")"}m(Dt,"markBoxed");function yr($){return $+" { ? }"}m(yr,"weakCollectionOf");function Zr($,G,ue,se){var we=se?hr(ue,se):z.call(ue,", ");return $+" ("+G+") {"+we+"}"}m(Zr,"collectionOf");function Xn($){for(var G=0;G<$.length;G++)if(Rt($[G],` +`)>=0)return!1;return!0}m(Xn,"singleLineValues");function Qn($,G){var ue;if($.indent===" ")ue=" ";else if(typeof $.indent=="number"&&$.indent>0)ue=z.call(Array($.indent+1)," ");else return null;return{base:ue,prev:z.call(Array(G+1),ue)}}m(Qn,"getIndent");function hr($,G){if($.length===0)return"";var ue=` +`+G.prev+G.base;return ue+z.call($,","+ue)+` +`+G.prev}m(hr,"indentedJoin");function Kt($,G){var ue=ye($),se=[];if(ue){se.length=$.length;for(var we=0;we<$.length;we++)se[we]=fe($,we)?G($[we],$):""}var le=typeof P=="function"?P($):[],ze;if(J){ze={};for(var pt=0;pt{"use strict";var r=Mr(),n=$R(),o=VR(),a=Pn(),i=r("%WeakMap%",!0),s=r("%Map%",!0),l=n("WeakMap.prototype.get",!0),u=n("WeakMap.prototype.set",!0),c=n("WeakMap.prototype.has",!0),d=n("Map.prototype.get",!0),y=n("Map.prototype.set",!0),f=n("Map.prototype.has",!0),h=m(function(E,_){for(var T=E,O;(O=T.next)!==null;T=O)if(O.key===_)return T.next=O.next,O.next=E.next,E.next=O,O},"listGetNode"),g=m(function(E,_){var T=h(E,_);return T&&T.value},"listGet"),C=m(function(E,_,T){var O=h(E,_);O?O.value=T:E.next={key:_,next:E.next,value:T}},"listSet"),b=m(function(E,_){return!!h(E,_)},"listHas");t.exports=m(function(){var E,_,T,O={assert:m(function(I){if(!O.has(I))throw new a("Side channel does not contain "+o(I))},"assert"),get:m(function(I){if(i&&I&&(typeof I=="object"||typeof I=="function")){if(E)return l(E,I)}else if(s){if(_)return d(_,I)}else if(T)return g(T,I)},"get"),has:m(function(I){if(i&&I&&(typeof I=="object"||typeof I=="function")){if(E)return c(E,I)}else if(s){if(_)return f(_,I)}else if(T)return b(T,I);return!1},"has"),set:m(function(I,D){i&&I&&(typeof I=="object"||typeof I=="function")?(E||(E=new i),u(E,I,D)):s?(_||(_=new s),y(_,I,D)):(T||(T={key:{},next:null}),C(T,I,D))},"set")};return O},"getSideChannel")}),Ts=L((e,t)=>{"use strict";var r=String.prototype.replace,n=/%20/g,o={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports={default:o.RFC3986,formatters:{RFC1738:m(function(a){return r.call(a,n,"+")},"RFC1738"),RFC3986:m(function(a){return String(a)},"RFC3986")},RFC1738:o.RFC1738,RFC3986:o.RFC3986}}),lg=L((e,t)=>{"use strict";var r=Ts(),n=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var E=[],_=0;_<256;++_)E.push("%"+((_<16?"0":"")+_.toString(16)).toUpperCase());return E}(),i=m(function(E){for(;E.length>1;){var _=E.pop(),T=_.obj[_.prop];if(o(T)){for(var O=[],I=0;I=d?D.slice(M,M+d):D,Y=[],Z=0;Z=48&&V<=57||V>=65&&V<=90||V>=97&&V<=122||I===r.RFC1738&&(V===40||V===41)){Y[Y.length]=z.charAt(Z);continue}if(V<128){Y[Y.length]=a[V];continue}if(V<2048){Y[Y.length]=a[192|V>>6]+a[128|V&63];continue}if(V<55296||V>=57344){Y[Y.length]=a[224|V>>12]+a[128|V>>6&63]+a[128|V&63];continue}Z+=1,V=65536+((V&1023)<<10|z.charCodeAt(Z)&1023),Y[Y.length]=a[240|V>>18]+a[128|V>>12&63]+a[128|V>>6&63]+a[128|V&63]}R+=Y.join("")}return R},"encode"),f=m(function(E){for(var _=[{obj:{o:E},prop:"o"}],T=[],O=0;O<_.length;++O)for(var I=_[O],D=I.obj[I.prop],R=Object.keys(D),M=0;M{"use strict";var r=HR(),n=lg(),o=Ts(),a=Object.prototype.hasOwnProperty,i={brackets:m(function(b){return b+"[]"},"brackets"),comma:"comma",indices:m(function(b,E){return b+"["+E+"]"},"indices"),repeat:m(function(b){return b},"repeat")},s=Array.isArray,l=Array.prototype.push,u=m(function(b,E){l.apply(b,s(E)?E:[E])},"pushToArray"),c=Date.prototype.toISOString,d=o.default,y={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:m(function(b){return c.call(b)},"serializeDate"),skipNulls:!1,strictNullHandling:!1},f=m(function(b){return typeof b=="string"||typeof b=="number"||typeof b=="boolean"||typeof b=="symbol"||typeof b=="bigint"},"isNonNullishPrimitive"),h={},g=m(function b(E,_,T,O,I,D,R,M,z,Y,Z,V,P,q,J,X,te,re){for(var ee=E,oe=re,ie=0,ce=!1;(oe=oe.get(h))!==void 0&&!ce;){var be=oe.get(E);if(ie+=1,typeof be<"u"){if(be===ie)throw new RangeError("Cyclic object value");ce=!0}typeof oe.get(h)>"u"&&(ie=0)}if(typeof Y=="function"?ee=Y(_,ee):ee instanceof Date?ee=P(ee):T==="comma"&&s(ee)&&(ee=n.maybeMap(ee,function(Se){return Se instanceof Date?P(Se):Se})),ee===null){if(D)return z&&!X?z(_,y.encoder,te,"key",q):_;ee=""}if(f(ee)||n.isBuffer(ee)){if(z){var pe=X?_:z(_,y.encoder,te,"key",q);return[J(pe)+"="+J(z(ee,y.encoder,te,"value",q))]}return[J(_)+"="+J(String(ee))]}var ye=[];if(typeof ee>"u")return ye;var _e;if(T==="comma"&&s(ee))X&&z&&(ee=n.maybeMap(ee,z)),_e=[{value:ee.length>0?ee.join(",")||null:void 0}];else if(s(Y))_e=Y;else{var Me=Object.keys(ee);_e=Z?Me.sort(Z):Me}var Oe=M?_.replace(/\./g,"%2E"):_,he=O&&s(ee)&&ee.length===1?Oe+"[]":Oe;if(I&&s(ee)&&ee.length===0)return he+"[]";for(var Ue=0;Ue<_e.length;++Ue){var Te=_e[Ue],$e=typeof Te=="object"&&typeof Te.value<"u"?Te.value:ee[Te];if(!(R&&$e===null)){var lt=V&&M?Te.replace(/\./g,"%2E"):Te,je=s(ee)?typeof T=="function"?T(he,lt):he:he+(V?"."+lt:"["+lt+"]");re.set(E,ie);var fe=r();fe.set(h,re),u(ye,b($e,je,T,O,I,D,R,M,T==="comma"&&X&&s(ee)?null:z,Y,Z,V,P,q,J,X,te,fe))}}return ye},"stringify"),C=m(function(b){if(!b)return y;if(typeof b.allowEmptyArrays<"u"&&typeof b.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof b.encodeDotInKeys<"u"&&typeof b.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(b.encoder!==null&&typeof b.encoder<"u"&&typeof b.encoder!="function")throw new TypeError("Encoder has to be a function.");var E=b.charset||y.charset;if(typeof b.charset<"u"&&b.charset!=="utf-8"&&b.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var _=o.default;if(typeof b.format<"u"){if(!a.call(o.formatters,b.format))throw new TypeError("Unknown format option provided.");_=b.format}var T=o.formatters[_],O=y.filter;(typeof b.filter=="function"||s(b.filter))&&(O=b.filter);var I;if(b.arrayFormat in i?I=b.arrayFormat:"indices"in b?I=b.indices?"indices":"repeat":I=y.arrayFormat,"commaRoundTrip"in b&&typeof b.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var D=typeof b.allowDots>"u"?b.encodeDotInKeys===!0?!0:y.allowDots:!!b.allowDots;return{addQueryPrefix:typeof b.addQueryPrefix=="boolean"?b.addQueryPrefix:y.addQueryPrefix,allowDots:D,allowEmptyArrays:typeof b.allowEmptyArrays=="boolean"?!!b.allowEmptyArrays:y.allowEmptyArrays,arrayFormat:I,charset:E,charsetSentinel:typeof b.charsetSentinel=="boolean"?b.charsetSentinel:y.charsetSentinel,commaRoundTrip:b.commaRoundTrip,delimiter:typeof b.delimiter>"u"?y.delimiter:b.delimiter,encode:typeof b.encode=="boolean"?b.encode:y.encode,encodeDotInKeys:typeof b.encodeDotInKeys=="boolean"?b.encodeDotInKeys:y.encodeDotInKeys,encoder:typeof b.encoder=="function"?b.encoder:y.encoder,encodeValuesOnly:typeof b.encodeValuesOnly=="boolean"?b.encodeValuesOnly:y.encodeValuesOnly,filter:O,format:_,formatter:T,serializeDate:typeof b.serializeDate=="function"?b.serializeDate:y.serializeDate,skipNulls:typeof b.skipNulls=="boolean"?b.skipNulls:y.skipNulls,sort:typeof b.sort=="function"?b.sort:null,strictNullHandling:typeof b.strictNullHandling=="boolean"?b.strictNullHandling:y.strictNullHandling}},"normalizeStringifyOptions");t.exports=function(b,E){var _=b,T=C(E),O,I;typeof T.filter=="function"?(I=T.filter,_=I("",_)):s(T.filter)&&(I=T.filter,O=I);var D=[];if(typeof _!="object"||_===null)return"";var R=i[T.arrayFormat],M=R==="comma"&&T.commaRoundTrip;O||(O=Object.keys(_)),T.sort&&O.sort(T.sort);for(var z=r(),Y=0;Y0?P+V:""}}),GR=L((e,t)=>{"use strict";var r=lg(),n=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},i=m(function(h){return h.replace(/&#(\d+);/g,function(g,C){return String.fromCharCode(parseInt(C,10))})},"interpretNumericEntities"),s=m(function(h,g){return h&&typeof h=="string"&&g.comma&&h.indexOf(",")>-1?h.split(","):h},"parseArrayValue"),l="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",c=m(function(h,g){var C={__proto__:null},b=g.ignoreQueryPrefix?h.replace(/^\?/,""):h;b=b.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var E=g.parameterLimit===1/0?void 0:g.parameterLimit,_=b.split(g.delimiter,E),T=-1,O,I=g.charset;if(g.charsetSentinel)for(O=0;O<_.length;++O)_[O].indexOf("utf8=")===0&&(_[O]===u?I="utf-8":_[O]===l&&(I="iso-8859-1"),T=O,O=_.length);for(O=0;O<_.length;++O)if(O!==T){var D=_[O],R=D.indexOf("]="),M=R===-1?D.indexOf("="):R+1,z,Y;M===-1?(z=g.decoder(D,a.decoder,I,"key"),Y=g.strictNullHandling?null:""):(z=g.decoder(D.slice(0,M),a.decoder,I,"key"),Y=r.maybeMap(s(D.slice(M+1),g),function(V){return g.decoder(V,a.decoder,I,"value")})),Y&&g.interpretNumericEntities&&I==="iso-8859-1"&&(Y=i(Y)),D.indexOf("[]=")>-1&&(Y=o(Y)?[Y]:Y);var Z=n.call(C,z);Z&&g.duplicates==="combine"?C[z]=r.combine(C[z],Y):(!Z||g.duplicates==="last")&&(C[z]=Y)}return C},"parseQueryStringValues"),d=m(function(h,g,C,b){for(var E=b?g:s(g,C),_=h.length-1;_>=0;--_){var T,O=h[_];if(O==="[]"&&C.parseArrays)T=C.allowEmptyArrays&&(E===""||C.strictNullHandling&&E===null)?[]:[].concat(E);else{T=C.plainObjects?Object.create(null):{};var I=O.charAt(0)==="["&&O.charAt(O.length-1)==="]"?O.slice(1,-1):O,D=C.decodeDotInKeys?I.replace(/%2E/g,"."):I,R=parseInt(D,10);!C.parseArrays&&D===""?T={0:E}:!isNaN(R)&&O!==D&&String(R)===D&&R>=0&&C.parseArrays&&R<=C.arrayLimit?(T=[],T[R]=E):D!=="__proto__"&&(T[D]=E)}E=T}return E},"parseObject"),y=m(function(h,g,C,b){if(h){var E=C.allowDots?h.replace(/\.([^.[]+)/g,"[$1]"):h,_=/(\[[^[\]]*])/,T=/(\[[^[\]]*])/g,O=C.depth>0&&_.exec(E),I=O?E.slice(0,O.index):E,D=[];if(I){if(!C.plainObjects&&n.call(Object.prototype,I)&&!C.allowPrototypes)return;D.push(I)}for(var R=0;C.depth>0&&(O=T.exec(E))!==null&&R"u"?a.charset:h.charset,C=typeof h.duplicates>"u"?a.duplicates:h.duplicates;if(C!=="combine"&&C!=="first"&&C!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var b=typeof h.allowDots>"u"?h.decodeDotInKeys===!0?!0:a.allowDots:!!h.allowDots;return{allowDots:b,allowEmptyArrays:typeof h.allowEmptyArrays=="boolean"?!!h.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof h.allowPrototypes=="boolean"?h.allowPrototypes:a.allowPrototypes,allowSparse:typeof h.allowSparse=="boolean"?h.allowSparse:a.allowSparse,arrayLimit:typeof h.arrayLimit=="number"?h.arrayLimit:a.arrayLimit,charset:g,charsetSentinel:typeof h.charsetSentinel=="boolean"?h.charsetSentinel:a.charsetSentinel,comma:typeof h.comma=="boolean"?h.comma:a.comma,decodeDotInKeys:typeof h.decodeDotInKeys=="boolean"?h.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof h.decoder=="function"?h.decoder:a.decoder,delimiter:typeof h.delimiter=="string"||r.isRegExp(h.delimiter)?h.delimiter:a.delimiter,depth:typeof h.depth=="number"||h.depth===!1?+h.depth:a.depth,duplicates:C,ignoreQueryPrefix:h.ignoreQueryPrefix===!0,interpretNumericEntities:typeof h.interpretNumericEntities=="boolean"?h.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof h.parameterLimit=="number"?h.parameterLimit:a.parameterLimit,parseArrays:h.parseArrays!==!1,plainObjects:typeof h.plainObjects=="boolean"?h.plainObjects:a.plainObjects,strictNullHandling:typeof h.strictNullHandling=="boolean"?h.strictNullHandling:a.strictNullHandling}},"normalizeParseOptions");t.exports=function(h,g){var C=f(g);if(h===""||h===null||typeof h>"u")return C.plainObjects?Object.create(null):{};for(var b=typeof h=="string"?c(h,C):h,E=C.plainObjects?Object.create(null):{},_=Object.keys(b),T=0;T<_.length;++T){var O=_[T],I=y(O,b[O],C,typeof h=="string");E=r.merge(E,I,C)}return C.allowSparse===!0?E:r.compact(E)}}),Cs=L((e,t)=>{"use strict";var r=JR(),n=GR(),o=Ts();t.exports={formats:o,parse:n,stringify:r}}),ug=L((e,t)=>{t.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` +`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}}),WR=L((e,t)=>{t.exports={Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",AElig:"\xC6",aelig:"\xE6",Agrave:"\xC0",agrave:"\xE0",amp:"&",AMP:"&",Aring:"\xC5",aring:"\xE5",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",brvbar:"\xA6",Ccedil:"\xC7",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",COPY:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Egrave:"\xC8",egrave:"\xE8",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",GT:">",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",iexcl:"\xA1",Igrave:"\xCC",igrave:"\xEC",iquest:"\xBF",Iuml:"\xCF",iuml:"\xEF",laquo:"\xAB",lt:"<",LT:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",Ntilde:"\xD1",ntilde:"\xF1",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Ograve:"\xD2",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",Oslash:"\xD8",oslash:"\xF8",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',QUOT:'"',raquo:"\xBB",reg:"\xAE",REG:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",THORN:"\xDE",thorn:"\xFE",times:"\xD7",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Ugrave:"\xD9",ugrave:"\xF9",uml:"\xA8",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}}),cg=L((e,t)=>{t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}),KR=L((e,t)=>{t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}),YR=L(e=>{"use strict";var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0});var r=t(KR()),n=String.fromCodePoint||function(a){var i="";return a>65535&&(a-=65536,i+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023),i+=String.fromCharCode(a),i};function o(a){return a>=55296&&a<=57343||a>1114111?"\uFFFD":(a in r.default&&(a=r.default[a]),n(a))}m(o,"decodeCodePoint"),e.default=o}),bm=L(e=>{"use strict";var t=e&&e.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var r=t(ug()),n=t(WR()),o=t(cg()),a=t(YR()),i=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=s(o.default),e.decodeHTMLStrict=s(r.default);function s(c){var d=u(c);return function(y){return String(y).replace(i,d)}}m(s,"getStrictDecoder");var l=m(function(c,d){return c{"use strict";var t=e&&e.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(e,"__esModule",{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var r=t(cg()),n=l(r.default),o=u(n);e.encodeXML=b(n);var a=t(ug()),i=l(a.default),s=u(i);e.encodeHTML=f(i,s),e.encodeNonAsciiHTML=b(i);function l(E){return Object.keys(E).sort().reduce(function(_,T){return _[E[T]]="&"+T+";",_},{})}m(l,"getInverseObj");function u(E){for(var _=[],T=[],O=0,I=Object.keys(E);O1?d(E):E.charCodeAt(0)).toString(16).toUpperCase()+";"}m(y,"singleCharReplacer");function f(E,_){return function(T){return T.replace(_,function(O){return E[O]}).replace(c,y)}}m(f,"getInverse");var h=new RegExp(o.source+"|"+c.source,"g");function g(E){return E.replace(h,y)}m(g,"escape"),e.escape=g;function C(E){return E.replace(o,y)}m(C,"escapeUTF8"),e.escapeUTF8=C;function b(E){return function(_){return _.replace(h,function(T){return E[T]||y(T)})}}m(b,"getASCIIEncoder")}),XR=L(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=bm(),r=vm();function n(l,u){return(!u||u<=0?t.decodeXML:t.decodeHTML)(l)}m(n,"decode"),e.decode=n;function o(l,u){return(!u||u<=0?t.decodeXML:t.decodeHTMLStrict)(l)}m(o,"decodeStrict"),e.decodeStrict=o;function a(l,u){return(!u||u<=0?r.encodeXML:r.encodeHTML)(l)}m(a,"encode"),e.encode=a;var i=vm();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:m(function(){return i.encodeXML},"get")}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:m(function(){return i.encodeHTML},"get")}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:m(function(){return i.encodeNonAsciiHTML},"get")}),Object.defineProperty(e,"escape",{enumerable:!0,get:m(function(){return i.escape},"get")}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:m(function(){return i.escapeUTF8},"get")}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:m(function(){return i.encodeHTML},"get")}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:m(function(){return i.encodeHTML},"get")});var s=bm();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:m(function(){return s.decodeXML},"get")}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:m(function(){return s.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:m(function(){return s.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:m(function(){return s.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:m(function(){return s.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:m(function(){return s.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:m(function(){return s.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:m(function(){return s.decodeXML},"get")})}),QR=L((e,t)=>{"use strict";function r(P,q){if(!(P instanceof q))throw new TypeError("Cannot call a class as a function")}m(r,"_classCallCheck");function n(P,q){for(var J=0;J=P.length?{done:!0}:{done:!1,value:P[X++]}},"n"),e:m(function(ie){throw ie},"e"),f:te}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var re=!0,ee=!1,oe;return{s:m(function(){J=J.call(P)},"s"),n:m(function(){var ie=J.next();return re=ie.done,ie},"n"),e:m(function(ie){ee=!0,oe=ie},"e"),f:m(function(){try{!re&&J.return!=null&&J.return()}finally{if(ee)throw oe}},"f")}}m(a,"_createForOfIteratorHelper");function i(P,q){if(P){if(typeof P=="string")return s(P,q);var J=Object.prototype.toString.call(P).slice(8,-1);if(J==="Object"&&P.constructor&&(J=P.constructor.name),J==="Map"||J==="Set")return Array.from(P);if(J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J))return s(P,q)}}m(i,"_unsupportedIterableToArray");function s(P,q){(q==null||q>P.length)&&(q=P.length);for(var J=0,X=new Array(q);J0?P*40+55:0,ee=q>0?q*40+55:0,oe=J>0?J*40+55:0;X[te]=f([re,ee,oe])}m(d,"setStyleColor");function y(P){for(var q=P.toString(16);q.length<2;)q="0"+q;return q}m(y,"toHexString");function f(P){var q=[],J=a(P),X;try{for(J.s();!(X=J.n()).done;){var te=X.value;q.push(y(te))}}catch(re){J.e(re)}finally{J.f()}return"#"+q.join("")}m(f,"toColorHexString");function h(P,q,J,X){var te;return q==="text"?te=O(J,X):q==="display"?te=C(P,J,X):q==="xterm256Foreground"?te=R(P,X.colors[J]):q==="xterm256Background"?te=M(P,X.colors[J]):q==="rgb"&&(te=g(P,J)),te}m(h,"generateOutput");function g(P,q){q=q.substring(2).slice(0,-1);var J=+q.substr(0,2),X=q.substring(5).split(";"),te=X.map(function(re){return("0"+Number(re).toString(16)).substr(-2)}).join("");return D(P,(J===38?"color:#":"background-color:#")+te)}m(g,"handleRgb");function C(P,q,J){q=parseInt(q,10);var X={"-1":m(function(){return"
"},"_"),0:m(function(){return P.length&&b(P)},"_"),1:m(function(){return I(P,"b")},"_"),3:m(function(){return I(P,"i")},"_"),4:m(function(){return I(P,"u")},"_"),8:m(function(){return D(P,"display:none")},"_"),9:m(function(){return I(P,"strike")},"_"),22:m(function(){return D(P,"font-weight:normal;text-decoration:none;font-style:normal")},"_"),23:m(function(){return z(P,"i")},"_"),24:m(function(){return z(P,"u")},"_"),39:m(function(){return R(P,J.fg)},"_"),49:m(function(){return M(P,J.bg)},"_"),53:m(function(){return D(P,"text-decoration:overline")},"_")},te;return X[q]?te=X[q]():4"}).join("")}m(b,"resetStyles");function E(P,q){for(var J=[],X=P;X<=q;X++)J.push(X);return J}m(E,"range");function _(P){return function(q){return(P===null||q.category!==P)&&P!=="all"}}m(_,"notCategory");function T(P){P=parseInt(P,10);var q=null;return P===0?q="all":P===1?q="bold":2")}m(I,"pushTag");function D(P,q){return I(P,"span",q)}m(D,"pushStyle");function R(P,q){return I(P,"span","color:"+q)}m(R,"pushForegroundColor");function M(P,q){return I(P,"span","background-color:"+q)}m(M,"pushBackgroundColor");function z(P,q){var J;if(P.slice(-1)[0]===q&&(J=P.pop()),J)return""}m(z,"closeTag");function Y(P,q,J){var X=!1,te=3;function re(){return""}m(re,"remove");function ee(je,fe){return J("xterm256Foreground",fe),""}m(ee,"removeXterm256Foreground");function oe(je,fe){return J("xterm256Background",fe),""}m(oe,"removeXterm256Background");function ie(je){return q.newline?J("display",-1):J("text",je),""}m(ie,"newline");function ce(je,fe){X=!0,fe.trim().length===0&&(fe="0"),fe=fe.trimRight(";").split(";");var Se=a(fe),Et;try{for(Se.s();!(Et=Se.n()).done;){var Rt=Et.value;J("display",Rt)}}catch(fr){Se.e(fr)}finally{Se.f()}return""}m(ce,"ansiMess");function be(je){return J("text",je),""}m(be,"realText");function pe(je){return J("rgb",je),""}m(pe,"rgb");var ye=[{pattern:/^\x08+/,sub:re},{pattern:/^\x1b\[[012]?K/,sub:re},{pattern:/^\x1b\[\(B/,sub:re},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:pe},{pattern:/^\x1b\[38;5;(\d+)m/,sub:ee},{pattern:/^\x1b\[48;5;(\d+)m/,sub:oe},{pattern:/^\n/,sub:ie},{pattern:/^\r+\n/,sub:ie},{pattern:/^\r/,sub:ie},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:ce},{pattern:/^\x1b\[\d?J/,sub:re},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:re},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:re},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:be}];function _e(je,fe){fe>te&&X||(X=!1,P=P.replace(je.pattern,je.sub))}m(_e,"process");var Me=[],Oe=P,he=Oe.length;e:for(;he>0;){for(var Ue=0,Te=0,$e=ye.length;Te<$e;Ue=++Te){var lt=ye[Ue];if(_e(lt,Ue),P.length!==he){he=P.length;continue e}}if(P.length===he)break;Me.push(0),he=P.length}return Me}m(Y,"tokenize");function Z(P,q,J){return q!=="text"&&(P=P.filter(_(T(J))),P.push({token:q,data:J,category:T(J)})),P}m(Z,"updateStickyStack");var V=function(){function P(q){r(this,P),q=q||{},q.colors&&(q.colors=Object.assign({},u.colors,q.colors)),this.options=Object.assign({},u,q),this.stack=[],this.stickyStack=[]}return m(P,"Filter"),o(P,[{key:"toHtml",value:m(function(q){var J=this;q=typeof q=="string"?[q]:q;var X=this.stack,te=this.options,re=[];return this.stickyStack.forEach(function(ee){var oe=h(X,ee.token,ee.data,te);oe&&re.push(oe)}),Y(q.join(""),te,function(ee,oe){var ie=h(X,ee,oe,te);ie&&re.push(ie),te.stream&&(J.stickyStack=Z(J.stickyStack,ee,oe))}),X.length&&re.push(b(X)),re.join("")},"toHtml")}]),P}();t.exports=V}),Le=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof window<"u"?e=window:typeof self<"u"?e=self:e={},e})();function pg(){let e={setHandler:m(()=>{},"setHandler"),send:m(()=>{},"send")};return new jh({transport:e})}m(pg,"mockChannel");var dg=class{constructor(){this.getChannel=m(()=>{if(!this.channel){let t=pg();return this.setChannel(t),t}return this.channel},"getChannel"),this.ready=m(()=>this.promise,"ready"),this.hasChannel=m(()=>!!this.channel,"hasChannel"),this.setChannel=m(t=>{this.channel=t,this.resolve()},"setChannel"),this.promise=new Promise(t=>{this.resolve=()=>t(this.getChannel())})}};m(dg,"AddonStore");var ZR=dg,Vi="__STORYBOOK_ADDONS_PREVIEW";function fg(){return Le[Vi]||(Le[Vi]=new ZR),Le[Vi]}m(fg,"getAddonsStore");var or=fg(),yg=class{constructor(){this.hookListsMap=void 0,this.mountedDecorators=void 0,this.prevMountedDecorators=void 0,this.currentHooks=void 0,this.nextHookIndex=void 0,this.currentPhase=void 0,this.currentEffects=void 0,this.prevEffects=void 0,this.currentDecoratorName=void 0,this.hasUpdates=void 0,this.currentContext=void 0,this.renderListener=m(t=>{t===this.currentContext?.id&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},"renderListener"),this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase="NONE",this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach(t=>{t.destroy&&t.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let t=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,t}triggerEffects(){this.prevEffects.forEach(t=>{!this.currentEffects.includes(t)&&t.destroy&&t.destroy()}),this.currentEffects.forEach(t=>{this.prevEffects.includes(t)||(t.destroy=t.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),or.getChannel().on(cn,this.renderListener)}removeRenderListeners(){or.getChannel().removeListener(cn,this.renderListener)}};m(yg,"HooksContext");var hg=yg;function Xi(e){let t=m((...r)=>{let{hooks:n}=typeof r[0]=="function"?r[1]:r[0],o=n.currentPhase,a=n.currentHooks,i=n.nextHookIndex,s=n.currentDecoratorName;n.currentDecoratorName=e.name,n.prevMountedDecorators.has(e)?(n.currentPhase="UPDATE",n.currentHooks=n.hookListsMap.get(e)||[]):(n.currentPhase="MOUNT",n.currentHooks=[],n.hookListsMap.set(e,n.currentHooks),n.prevMountedDecorators.add(e)),n.nextHookIndex=0;let l=Le.STORYBOOK_HOOKS_CONTEXT;Le.STORYBOOK_HOOKS_CONTEXT=n;let u=e(...r);if(Le.STORYBOOK_HOOKS_CONTEXT=l,n.currentPhase==="UPDATE"&&n.getNextHook()!=null)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return n.currentPhase=o,n.currentHooks=a,n.nextHookIndex=i,n.currentDecoratorName=s,u},"hookified");return t.originalFn=e,t}m(Xi,"hookify");var Hi=0,e5=25,t5=m(e=>(t,r)=>{let n=e(Xi(t),r.map(o=>Xi(o)));return o=>{let{hooks:a}=o;a.prevMountedDecorators??=new Set,a.mountedDecorators=new Set([t,...r]),a.currentContext=o,a.hasUpdates=!1;let i=n(o);for(Hi=1;a.hasUpdates;)if(a.hasUpdates=!1,a.currentEffects=[],i=n(o),Hi+=1,Hi>e5)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return a.addRenderListeners(),i}},"applyHooks"),r5=m((e,t)=>e.length===t.length&&e.every((r,n)=>r===t[n]),"areDepsEqual"),_s=m(()=>new Error("Storybook preview hooks can only be called inside decorators and story functions."),"invalidHooksError");function Os(){return Le.STORYBOOK_HOOKS_CONTEXT||null}m(Os,"getHooksContextOrNull");function ea(){let e=Os();if(e==null)throw _s();return e}m(ea,"getHooksContextOrThrow");function mg(e,t,r){let n=ea();if(n.currentPhase==="MOUNT"){r!=null&&!Array.isArray(r)&&ge.warn(`${e} received a final argument that is not an array (instead, received ${r}). When specified, the final argument must be an array.`);let o={name:e,deps:r};return n.currentHooks.push(o),t(o),o}if(n.currentPhase==="UPDATE"){let o=n.getNextHook();if(o==null)throw new Error("Rendered more hooks than during the previous render.");return o.name!==e&&ge.warn(`Storybook has detected a change in the order of Hooks${n.currentDecoratorName?` called by ${n.currentDecoratorName}`:""}. This will lead to bugs and errors if not fixed.`),r!=null&&o.deps==null&&ge.warn(`${e} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),r!=null&&o.deps!=null&&r.length!==o.deps.length&&ge.warn(`The final argument passed to ${e} changed size between renders. The order and size of this array must remain constant. +Previous: ${o.deps} +Incoming: ${r}`),(r==null||o.deps==null||!r5(r,o.deps))&&(t(o),o.deps=r),o}throw _s()}m(mg,"useHook");function Rn(e,t,r){let{memoizedState:n}=mg(e,o=>{o.memoizedState=t()},r);return n}m(Rn,"useMemoLike");function n5(e,t){return Rn("useMemo",e,t)}m(n5,"useMemo");function _n(e,t){return Rn("useCallback",()=>e,t)}m(_n,"useCallback");function Is(e,t){return Rn(e,()=>({current:t}),[])}m(Is,"useRefLike");function o5(e){return Is("useRef",e)}m(o5,"useRef");function gg(){let e=Os();if(e!=null&&e.currentPhase!=="NONE")e.hasUpdates=!0;else try{or.getChannel().emit(so)}catch{ge.warn("State updates of Storybook preview hooks work only in browser")}}m(gg,"triggerUpdate");function ks(e,t){let r=Is(e,typeof t=="function"?t():t),n=m(o=>{r.current=typeof o=="function"?o(r.current):o,gg()},"setState");return[r.current,n]}m(ks,"useStateLike");function a5(e){return ks("useState",e)}m(a5,"useState");function i5(e,t,r){let n=r!=null?()=>r(t):t,[o,a]=ks("useReducer",n);return[o,m(i=>a(s=>e(s,i)),"dispatch")]}m(i5,"useReducer");function bg(e,t){let r=ea(),n=Rn("useEffect",()=>({create:e}),t);r.currentEffects.includes(n)||r.currentEffects.push(n)}m(bg,"useEffect");function s5(e,t=[]){let r=or.getChannel();return bg(()=>(Object.entries(e).forEach(([n,o])=>r.on(n,o)),()=>{Object.entries(e).forEach(([n,o])=>r.removeListener(n,o))}),[...Object.keys(e),...t]),_n(r.emit.bind(r),[r])}m(s5,"useChannel");function ta(){let{currentContext:e}=ea();if(e==null)throw _s();return e}m(ta,"useStoryContext");function l5(e,t){let{parameters:r}=ta();if(e)return r[e]??t}m(l5,"useParameter");function u5(){let e=or.getChannel(),{id:t,args:r}=ta(),n=_n(a=>e.emit(po,{storyId:t,updatedArgs:a}),[e,t]),o=_n(a=>e.emit(lo,{storyId:t,argNames:a}),[e,t]);return[r,n,o]}m(u5,"useArgs");function c5(){let e=or.getChannel(),{globals:t}=ta(),r=_n(n=>e.emit(co,{globals:n}),[e]);return[t,r]}m(c5,"useGlobals");var Ire=m(({name:e,parameterName:t,wrapper:r,skipIfNoParametersOrOptions:n=!1})=>{let o=m(a=>(i,s)=>{let l=s.parameters&&s.parameters[t];return l&&l.disable||n&&!a&&!l?i(s):r(i,s,{options:a,parameters:l})},"decorator");return(...a)=>typeof a[0]=="function"?o()(...a):(...i)=>{if(i.length>1)return a.length>1?o(a)(...i):o(...a)(...i);throw new Error(`Passing stories directly into ${e}() is not allowed, + instead use addDecorator(${e}) and pass options with the '${t}' parameter`)}},"makeDecorator"),p5=Qe(Zo(),1),Em=Qe(xR(),1),Ji=Qe(og(),1),xm=Object.prototype.hasOwnProperty;function Qi(e,t,r){for(r of e.keys())if(Nr(r,t))return r}m(Qi,"find");function Nr(e,t){var r,n,o;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&Nr(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(o=n,o&&typeof o=="object"&&(o=Qi(t,o),!o)||!t.has(o))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(o=n[0],o&&typeof o=="object"&&(o=Qi(t,o),!o)||!Nr(n[1],t.get(o)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(xm.call(e,r)&&++n&&!xm.call(t,r)||!(r in t)||!Nr(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}m(Nr,"dequal");var zo=Qe(ws(),1);function at(e){for(var t=[],r=1;r{let r=t.type;if(e==null||!r||t.mapping)return e;switch(r.name){case"string":return String(e);case"enum":return e;case"number":return Number(e);case"boolean":return String(e)==="true";case"array":return!r.value||!Array.isArray(e)?Fr:e.reduce((n,o,a)=>{let i=Zi(o,{type:r.value});return i!==Fr&&(n[a]=i),n},new Array(e.length));case"object":return typeof e=="string"||typeof e=="number"?e:!r.value||typeof e!="object"?Fr:Object.entries(e).reduce((n,[o,a])=>{let i=Zi(a,{type:r.value[o]});return i===Fr?n:Object.assign(n,{[o]:i})},{});default:return Fr}},"map"),d5=m((e,t)=>Object.entries(e).reduce((r,[n,o])=>{if(!t[n])return r;let a=Zi(o,t[n]);return a===Fr?r:Object.assign(r,{[n]:a})},{}),"mapArgsToTypes"),es=m((e,t)=>Array.isArray(e)&&Array.isArray(t)?t.reduce((r,n,o)=>(r[o]=es(e[o],t[o]),r),[...e]).filter(r=>r!==void 0):!(0,zo.default)(e)||!(0,zo.default)(t)?t:Object.keys({...e,...t}).reduce((r,n)=>{if(n in t){let o=es(e[n],t[n]);o!==void 0&&(r[n]=o)}else r[n]=e[n];return r},{}),"combineArgs"),f5=m((e,t)=>Object.entries(t).reduce((r,[n,{options:o}])=>{function a(){return n in e&&(r[n]=e[n]),r}if(m(a,"allowArg"),!o)return a();if(!Array.isArray(o))return Mt.error(at` + Invalid argType: '${n}.options' should be an array. + + More info: https://storybook.js.org/docs/react/api/argtypes + `),a();if(o.some(d=>d&&["object","function"].includes(typeof d)))return Mt.error(at` + Invalid argType: '${n}.options' should only contain primitives. Use a 'mapping' for complex values. + + More info: https://storybook.js.org/docs/react/writing-stories/args#mapping-to-complex-arg-values + `),a();let i=Array.isArray(e[n]),s=i&&e[n].findIndex(d=>!o.includes(d)),l=i&&s===-1;if(e[n]===void 0||o.includes(e[n])||l)return a();let u=i?`${n}[${s}]`:n,c=o.map(d=>typeof d=="string"?`'${d}'`:String(d)).join(", ");return Mt.warn(`Received illegal value for '${u}'. Supported options: ${c}`),r},{}),"validateOptions"),Tn=Symbol("Deeply equal"),Vo=m((e,t)=>{if(typeof e!=typeof t)return t;if(Nr(e,t))return Tn;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,o,a)=>{let i=Vo(e[a],o);return i!==Tn&&(n[a]=i),n},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return(0,zo.default)(e)&&(0,zo.default)(t)?Object.keys({...e,...t}).reduce((r,n)=>{let o=Vo(e?.[n],t?.[n]);return o===Tn?r:Object.assign(r,{[n]:o})},{}):t},"deepDiff"),vg="UNTARGETED";function Eg({args:e,argTypes:t}){let r={};return Object.entries(e).forEach(([n,o])=>{let{target:a=vg}=t[n]||{};r[a]=r[a]||{},r[a][n]=o}),r}m(Eg,"groupArgsByTarget");function xg(e){return Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e}m(xg,"deleteUndefined");var wg=class{constructor(){this.initialArgsByStoryId={},this.argsByStoryId={}}get(t){if(!(t in this.argsByStoryId))throw new Error(`No args known for ${t} -- has it been rendered yet?`);return this.argsByStoryId[t]}setInitial(t){if(!this.initialArgsByStoryId[t.id])this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs;else if(this.initialArgsByStoryId[t.id]!==t.initialArgs){let r=Vo(this.initialArgsByStoryId[t.id],this.argsByStoryId[t.id]);this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs,r!==Tn&&this.updateFromDelta(t,r)}}updateFromDelta(t,r){let n=f5(r,t.argTypes);this.argsByStoryId[t.id]=es(this.argsByStoryId[t.id],n)}updateFromPersisted(t,r){let n=d5(r,t.argTypes);return this.updateFromDelta(t,n)}update(t,r){if(!(t in this.argsByStoryId))throw new Error(`No args known for ${t} -- has it been rendered yet?`);this.argsByStoryId[t]=xg({...this.argsByStoryId[t],...r})}};m(wg,"ArgsStore");var y5=wg,Sg=m((e={})=>Object.entries(e).reduce((t,[r,{defaultValue:n}])=>(typeof n<"u"&&(t[r]=n),t),{}),"getValuesFromArgTypes"),Ag=class{constructor({globals:t={},globalTypes:r={}}){this.set({globals:t,globalTypes:r})}set({globals:t={},globalTypes:r={}}){let n=this.initialGlobals&&Vo(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(t),...Object.keys(r)]);let o=Sg(r);this.initialGlobals={...o,...t},this.globals=this.initialGlobals,n&&n!==Tn&&this.updateFromPersisted(n)}filterAllowedGlobals(t){return Object.entries(t).reduce((r,[n,o])=>(this.allowedGlobalNames.has(n)?r[n]=o:ge.warn(`Attempted to set a global (${n}) that is not defined in initial globals or globalTypes`),r),{})}updateFromPersisted(t){let r=this.filterAllowedGlobals(t);this.globals={...this.globals,...r}}get(){return this.globals}update(t){this.globals={...this.globals,...this.filterAllowedGlobals(t)}}};m(Ag,"GlobalsStore");var h5=Ag,m5=Qe(og(),1),g5=(0,m5.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{})),Tg=class{constructor({entries:t}={v:5,entries:{}}){this.entries=t}entryFromSpecifier(t){let r=Object.values(this.entries);if(t==="*")return r[0];if(typeof t=="string")return this.entries[t]?this.entries[t]:r.find(a=>a.id.startsWith(t));let{name:n,title:o}=t;return r.find(a=>a.name===n&&a.title===o)}storyIdToEntry(t){let r=this.entries[t];if(!r)throw new qh({storyId:t});return r}importPathToEntry(t){return g5(this.entries)[t]}};m(Tg,"StoryIndexStore");var b5=Tg,v5=Qe(Zo(),1),E5=m(e=>typeof e=="string"?{name:e}:e,"normalizeType"),x5=m(e=>typeof e=="string"?{type:e}:e,"normalizeControl"),w5=m((e,t)=>{let{type:r,control:n,...o}=e,a={name:t,...o};return r&&(a.type=E5(r)),n?a.control=x5(n):n===!1&&(a.control={disable:!0}),a},"normalizeInputType"),Ho=m(e=>(0,v5.default)(e,w5),"normalizeInputTypes"),Pe=m(e=>Array.isArray(e)?e:e?[e]:[],"normalizeArrays"),S5=at` +CSF .story annotations deprecated; annotate story functions directly: +- StoryFn.story.name => StoryFn.storyName +- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators) +See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod. +`;function Ps(e,t,r){let n=t,o=typeof t=="function"?t:null,{story:a}=n;a&&(ge.debug("deprecated story",a),At(S5));let i=mm(e),s=typeof n!="function"&&n.name||n.storyName||a?.name||i,l=[...Pe(n.decorators),...Pe(a?.decorators)],u={...a?.parameters,...n.parameters},c={...a?.args,...n.args},d={...a?.argTypes,...n.argTypes},y=[...Pe(n.loaders),...Pe(a?.loaders)],f=[...Pe(n.beforeEach),...Pe(a?.beforeEach)],{render:h,play:g,tags:C=[],globals:b={}}=n,E=u.__id||hm(r.id,i);return{moduleExport:t,id:E,name:s,tags:C,decorators:l,parameters:u,args:c,argTypes:Ho(d),loaders:y,beforeEach:f,globals:b,...h&&{render:h},...o&&{userStoryFn:o},...g&&{play:g}}}m(Ps,"normalizeStory");function Rs(e,t=e.title,r){let{id:n,argTypes:o}=e;return{id:zi(n||t),...e,title:t,...o&&{argTypes:Ho(o)},parameters:{fileName:r,...e.parameters}}}m(Rs,"normalizeComponentAnnotations");var A5=m(e=>{let{globals:t,globalTypes:r}=e;(t||r)&&ge.error("Global args/argTypes can only be set globally",JSON.stringify({globals:t,globalTypes:r}))},"checkGlobals"),T5=m(e=>{let{options:t}=e;t?.storySort&&ge.error("The storySort option parameter can only be set globally")},"checkStorySort"),wm=m(e=>{e&&(A5(e),T5(e))},"checkDisallowedParameters");function Cg(e,t,r){let{default:n,__namedExportsOrder:o,...a}=e,i=Rs(n,r,t);wm(i.parameters);let s={meta:i,stories:{},moduleExports:e};return Object.keys(a).forEach(l=>{if(qo(l,i)){let u=Ps(l,a[l],i);wm(u.parameters),s.stories[u.id]=u}}),s}m(Cg,"processCSFFile");function _g(e){return e!=null&&Og(e).includes("mount")}m(_g,"mountDestructured");function Og(e){let t=e.toString().match(/[^(]*\(([^)]*)/);if(!t)return[];let r=ts(t[1]);if(!r.length)return[];let n=r[0];return n.startsWith("{")&&n.endsWith("}")?ts(n.slice(1,-1).replace(/\s/g,"")).map(o=>o.replace(/:.*|=.*/g,"")):[]}m(Og,"getUsedProps");function ts(e){let t=[],r=[],n=0;for(let a=0;at(n,o)}m(Ig,"decorateStory");function kg({componentId:e,title:t,kind:r,id:n,name:o,story:a,parameters:i,initialArgs:s,argTypes:l,...u}={}){return u}m(kg,"sanitizeStoryContextUpdate");function Pg(e,t){let r={},n=m(a=>i=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,...kg(i)},a(r.value)},"bindWithContext"),o=t.reduce((a,i)=>Ig(a,i,n),e);return a=>(r.value=a,o(a))}m(Pg,"defaultDecorateStory");var Gi=Qe(ws(),1),Ct=m((...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((o,a)=>(Object.entries(a).forEach(([i,s])=>{let l=o[i];Array.isArray(s)||typeof l>"u"?o[i]=s:(0,Gi.default)(s)&&(0,Gi.default)(l)?t[i]=!0:typeof s<"u"&&(o[i]=s)}),o),{});return Object.keys(t).forEach(o=>{let a=r.filter(Boolean).map(i=>i[o]).filter(i=>typeof i<"u");a.every(i=>(0,Gi.default)(i))?n[o]=Ct(...a):n[o]=a[a.length-1]}),n},"combineParameters");function Ds(e,t,r){let{moduleExport:n,id:o,name:a}=e||{},i=Fs(e,t,r),s=m(async O=>{let I={};for(let D of[..."__STORYBOOK_TEST_LOADERS__"in Le&&Array.isArray(Le.__STORYBOOK_TEST_LOADERS__)?[Le.__STORYBOOK_TEST_LOADERS__]:[],Pe(r.loaders),Pe(t.loaders),Pe(e.loaders)]){if(O.abortSignal.aborted)return I;let R=await Promise.all(D.map(M=>M(O)));Object.assign(I,...R)}return I},"applyLoaders"),l=m(async O=>{let I=new Array;for(let D of[...Pe(r.beforeEach),...Pe(t.beforeEach),...Pe(e.beforeEach)]){if(O.abortSignal.aborted)return I;let R=await D(O);R&&I.push(R)}return I},"applyBeforeEach"),u=m(O=>O.originalStoryFn(O.args,O),"undecoratedStoryFn"),{applyDecorators:c=Pg,runStep:d}=r,y=[...Pe(e?.decorators),...Pe(t?.decorators),...Pe(r?.decorators)],f=e?.userStoryFn||e?.render||t.render||r.render,h=t5(c)(u,y),g=m(O=>h(O),"unboundStoryFn"),C=e?.play??t?.play,b=_g(C);if(!f&&!b)throw new am({id:o});let E=m(O=>async()=>(await O.renderToCanvas(),O.canvas),"defaultMount"),_=e.mount??t.mount??r.mount??E,T=r.testingLibraryRender;return{storyGlobals:{},...i,moduleExport:n,id:o,name:a,story:a,originalStoryFn:f,undecoratedStoryFn:u,unboundStoryFn:g,applyLoaders:s,applyBeforeEach:l,playFunction:C,runStep:d,mount:_,testingLibraryRender:T,renderToCanvas:r.renderToCanvas,usesMount:b}}m(Ds,"prepareStory");function Rg(e,t,r){return{...Fs(void 0,e,t),moduleExport:r}}m(Rg,"prepareMeta");function Fs(e,t,r){let n=["dev","test"],o=Le.DOCS_OPTIONS?.autodocs===!0?["autodocs"]:[],a=gm(...n,...o,...r.tags??[],...t.tags??[],...e?.tags??[]),i=Ct(r.parameters,t.parameters,e?.parameters),{argTypesEnhancers:s=[],argsEnhancers:l=[]}=r,u=Ct(r.argTypes,t.argTypes,e?.argTypes);if(e){let b=e?.userStoryFn||e?.render||t.render||r.render;i.__isArgsStory=b&&b.length>0}let c={...r.args,...t.args,...e?.args},d={...t.globals,...e?.globals},y={componentId:t.id,title:t.title,kind:t.title,id:e?.id||t.id,name:e?.name||"__meta",story:e?.name||"__meta",component:t.component,subcomponents:t.subcomponents,tags:a,parameters:i,initialArgs:c,argTypes:u,storyGlobals:d};y.argTypes=s.reduce((b,E)=>E({...y,argTypes:b}),y.argTypes);let f={...c};y.initialArgs=l.reduce((b,E)=>({...b,...E({...y,initialArgs:b})}),f);let{name:h,story:g,...C}=y;return C}m(Fs,"preparePartialAnnotations");function js(e){let{args:t}=e,r={...e,allArgs:void 0,argsByTarget:void 0};if(Le.FEATURES?.argTypeTargetsV7){let a=Eg(e);r={...e,allArgs:e.args,argsByTarget:a,args:a[vg]||{}}}let n=Object.entries(r.args).reduce((a,[i,s])=>{if(!r.argTypes[i]?.mapping)return a[i]=s,a;let l=m(u=>{let c=r.argTypes[i].mapping;return c&&u in c?c[u]:u},"mappingFn");return a[i]=Array.isArray(s)?s.map(l):l(s),a},{}),o=Object.entries(n).reduce((a,[i,s])=>{let l=r.argTypes[i]||{};return ym(l,n,r.globals)&&(a[i]=s),a},{});return{...r,unmappedArgs:t,args:o}}m(js,"prepareContext");var rs=Qe(Zo(),1),ns=m((e,t,r)=>{let n=typeof e;switch(n){case"boolean":case"string":case"number":case"function":case"symbol":return{name:n};default:break}return e?r.has(e)?(ge.warn(at` + We've detected a cycle in arg '${t}'. Args should be JSON-serializable. + + Consider using the mapping feature or fully custom args: + - Mapping: https://storybook.js.org/docs/react/writing-stories/args#mapping-to-complex-arg-values + - Custom args: https://storybook.js.org/docs/react/essentials/controls#fully-custom-args + `),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?ns(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:(0,rs.default)(e,o=>ns(o,t,new Set(r)))}):{name:"object",value:{}}},"inferType"),Dg=m(e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,o=(0,rs.default)(n,(i,s)=>({name:s,type:ns(i,`${t}.${s}`,new Set)})),a=(0,rs.default)(r,(i,s)=>({name:s}));return Ct(o,a,r)},"inferArgTypes");Dg.secondPass=!0;var C5=Qe(Zo(),1),_5=Qe(_R(),1),Sm=m((e,t)=>Array.isArray(t)?t.includes(e):e.match(t),"matches"),O5=m((e,t,r)=>!t&&!r?e:e&&(0,_5.default)(e,(n,o)=>{let a=n.name||o;return(!t||Sm(a,t))&&(!r||!Sm(a,r))}),"filterArgTypes"),I5=m((e,t,r)=>{let{type:n,options:o}=e;if(n){if(r.color&&r.color.test(t)){let a=n.name;if(a==="string")return{control:{type:"color"}};a!=="enum"&&ge.warn(`Addon controls: Control of type color only supports string, received "${a}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(n.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:a}=n;return{control:{type:a?.length<=5?"radio":"select"},options:a}}case"function":case"symbol":return null;default:return{control:{type:o?"select":"object"}}}}},"inferControl"),Fg=m(e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:o=null,matchers:a={}}={}}}=e;if(!r)return t;let i=O5(t,n,o),s=(0,C5.default)(i,(l,u)=>l?.type&&I5(l,u,a));return Ct(s,i)},"inferControls");Fg.secondPass=!0;function Jo({argTypes:e,globalTypes:t,argTypesEnhancers:r,decorators:n,loaders:o,beforeEach:a,globals:i,initialGlobals:s,...l}){return i&&Object.keys(i).length>0&&At(at` + The preview.js 'globals' field is deprecated and will be removed in Storybook 9.0. + Please use 'initialGlobals' instead. Learn more: + + https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#previewjs-globals-renamed-to-initialglobals + `),{...e&&{argTypes:Ho(e)},...t&&{globalTypes:Ho(t)},decorators:Pe(n),loaders:Pe(o),beforeEach:Pe(a),argTypesEnhancers:[...r||[],Dg,Fg],initialGlobals:Ct(s,i),...l}}m(Jo,"normalizeProjectAnnotations");var k5=m(e=>async()=>{let t=[];for(let r of e){let n=await r();n&&t.unshift(n)}return async()=>{for(let r of t)await r()}},"composeBeforeAllHooks");function jg(e){return async(t,r,n)=>{await e.reduceRight((o,a)=>async()=>a(t,o,n),async()=>r(n))()}}m(jg,"composeStepRunners");function Br(e,t){return e.map(r=>r.default?.[t]??r[t]).filter(Boolean)}m(Br,"getField");function Ut(e,t,r={}){return Br(e,t).reduce((n,o)=>{let a=Pe(o);return r.reverseFileOrder?[...a,...n]:[...n,...a]},[])}m(Ut,"getArrayField");function jr(e,t){return Object.assign({},...Br(e,t))}m(jr,"getObjectField");function rr(e,t){return Br(e,t).pop()}m(rr,"getSingletonField");function Go(e){let t=Ut(e,"argTypesEnhancers"),r=Br(e,"runStep"),n=Ut(e,"beforeAll");return{parameters:Ct(...Br(e,"parameters")),decorators:Ut(e,"decorators",{reverseFileOrder:!(Le.FEATURES?.legacyDecoratorFileOrder??!1)}),args:jr(e,"args"),argsEnhancers:Ut(e,"argsEnhancers"),argTypes:jr(e,"argTypes"),argTypesEnhancers:[...t.filter(o=>!o.secondPass),...t.filter(o=>o.secondPass)],globals:jr(e,"globals"),initialGlobals:jr(e,"initialGlobals"),globalTypes:jr(e,"globalTypes"),loaders:Ut(e,"loaders"),beforeAll:k5(n),beforeEach:Ut(e,"beforeEach"),render:rr(e,"render"),renderToCanvas:rr(e,"renderToCanvas"),renderToDOM:rr(e,"renderToDOM"),applyDecorators:rr(e,"applyDecorators"),runStep:jg(r),tags:Ut(e,"tags"),mount:rr(e,"mount"),testingLibraryRender:rr(e,"testingLibraryRender")}}m(Go,"composeConfigs");function P5(e){globalThis.defaultProjectAnnotations=e}m(P5,"setDefaultProjectAnnotations");var R5="ComposedStory",D5="Unnamed Story";function Ng(e){return e?"default"in e?e.default:e:{}}m(Ng,"extractAnnotation");function F5(e){let t=Array.isArray(e)?e:[e];return globalThis.globalProjectAnnotations=Go(t.map(Ng)),Go([globalThis.defaultProjectAnnotations??{},globalThis.globalProjectAnnotations??{}])}m(F5,"setProjectAnnotations");var $t=[];function Bg(e,t,r,n,o){if(e===void 0)throw new Error("Expected a story but received undefined.");t.title=t.title??R5;let a=Rs(t),i=o||e.storyName||e.story?.name||e.name||D5,s=Ps(i,e,a),l=Jo(Go([n&&Object.keys(n).length>0?n:globalThis.defaultProjectAnnotations??{},globalThis.globalProjectAnnotations??{},r??{}])),u=Ds(s,a,l),c=Sg(l.globalTypes),d=m(()=>{let C=js({hooks:new hg,globals:{...c,...l.initialGlobals,...u.storyGlobals},args:{...u.initialArgs},viewMode:"story",loaded:{},abortSignal:new AbortController().signal,step:m((b,E)=>u.runStep(b,E,C),"step"),canvasElement:null,canvas:{},globalTypes:l.globalTypes,...u,context:null,mount:null});return C.context=C,u.renderToCanvas&&(C.renderToCanvas=async()=>{let b=await u.renderToCanvas?.({componentId:u.componentId,title:u.title,id:u.id,name:u.name,tags:u.tags,showMain:m(()=>{},"showMain"),showError:m(E=>{throw new Error(`${E.title} +${E.description}`)},"showError"),showException:m(E=>{throw E},"showException"),forceRemount:!0,storyContext:C,storyFn:m(()=>u.unboundStoryFn(C),"storyFn"),unboundStoryFn:u.unboundStoryFn},C.canvasElement);b&&$t.push(b)}),C.mount=u.mount(C),C},"initializeContext"),y,f=m(async C=>{let b=d();return b.canvasElement??=globalThis?.document?.body,y&&(b.loaded=y.loaded),Object.assign(b,C),u.playFunction(b)},"play"),h=m(C=>{let b=d();return Object.assign(b,C),Lg(u,b)},"run"),g=u.playFunction?f:void 0;return Object.assign(m(function(C){let b=d();return y&&(b.loaded=y.loaded),b.args={...b.initialArgs,...C},u.unboundStoryFn(b)},"storyFn"),{id:u.id,storyName:i,load:m(async()=>{for(let b of[...$t].reverse())await b();$t.length=0;let C=d();C.loaded=await u.applyLoaders(C),$t.push(...(await u.applyBeforeEach(C)).filter(Boolean)),y=C},"load"),args:u.initialArgs,parameters:u.parameters,argTypes:u.argTypes,play:g,run:h,tags:u.tags})}m(Bg,"composeStory");var j5=m((e,t,r,n)=>Bg(e,t,r,{},n),"defaultComposeStory");function N5(e,t,r=j5){let{default:n,__esModule:o,__namedExportsOrder:a,...i}=e;return Object.entries(i).reduce((s,[l,u])=>qo(l,n)?Object.assign(s,{[l]:r(u,n,t,l)}):s,{})}m(N5,"composeStories");function B5(e){return e.extend({mount:m(async({mount:t,page:r},n)=>{await n(async(o,...a)=>{if(!("__pw_type"in o)||"__pw_type"in o&&o.__pw_type!=="jsx")throw new Error(at` + Portable stories in Playwright CT only work when referencing JSX elements. + Please use JSX format for your components such as: + + instead of: + await mount(MyComponent, { props: { foo: 'bar' } }) + + do: + await mount() + + More info: https://storybook.js.org/docs/api/portable-stories-playwright + `);await r.evaluate(async s=>{let l=await globalThis.__pwUnwrapObject?.(s);return("__pw_type"in l?l.type:l)?.load?.()},o);let i=await t(o,...a);return await r.evaluate(async s=>{let l=await globalThis.__pwUnwrapObject?.(s),u="__pw_type"in l?l.type:l,c=document.querySelector("#root");return u?.play?.({canvasElement:c})},o),i})},"mount")})}m(B5,"createPlaywrightTest");async function Lg(e,t){for(let o of[...$t].reverse())await o();if($t.length=0,!t.canvasElement){let o=document.createElement("div");globalThis?.document?.body?.appendChild(o),t.canvasElement=o,$t.push(()=>{globalThis?.document?.body?.contains(o)&&globalThis?.document?.body?.removeChild(o)})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;$t.push(...(await e.applyBeforeEach(t)).filter(Boolean));let r=e.playFunction,n=e.usesMount;n||await t.mount(),!t.abortSignal.aborted&&r&&(n||(t.mount=async()=>{throw new Bo({playFunction:r.toString()})}),await r(t))}m(Lg,"runStory");var Am=1e3,L5=1e4,qg=class{constructor(t,r,n){this.importFn=r,this.getStoriesJsonData=m(()=>{let i=this.getSetStoriesPayload(),s=["fileName","docsOnly","framework","__id","__isArgsStory"];return{v:3,stories:(0,p5.default)(i.stories,l=>{let{importPath:u}=this.storyIndex.entries[l.id];return{...(0,Em.default)(l,["id","name","title"]),importPath:u,kind:l.title,story:l.name,parameters:{...(0,Em.default)(l.parameters,s),fileName:u}}})}},"getStoriesJsonData"),this.storyIndex=new b5(t),this.projectAnnotations=Jo(n);let{initialGlobals:o,globalTypes:a}=this.projectAnnotations;this.args=new y5,this.userGlobals=new h5({globals:o,globalTypes:a}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,Ji.default)(Am)(Cg),this.prepareMetaWithCache=(0,Ji.default)(Am)(Rg),this.prepareStoryWithCache=(0,Ji.default)(L5)(Ds)}setProjectAnnotations(t){this.projectAnnotations=Jo(t);let{initialGlobals:r,globalTypes:n}=t;this.userGlobals.set({globals:r,globalTypes:n})}async onStoriesChanged({importFn:t,storyIndex:r}){t&&(this.importFn=t),r&&(this.storyIndex.entries=r.entries),this.cachedCSFFiles&&await this.cacheAllCSFFiles()}async storyIdToEntry(t){return this.storyIndex.storyIdToEntry(t)}async loadCSFFileByStoryId(t){let{importPath:r,title:n}=this.storyIndex.storyIdToEntry(t),o=await this.importFn(r);return this.processCSFFileWithCache(o,r,n)}async loadAllCSFFiles(){let t={};return Object.entries(this.storyIndex.entries).forEach(([r,{importPath:n}])=>{t[n]=r}),(await Promise.all(Object.entries(t).map(async([r,n])=>({importPath:r,csfFile:await this.loadCSFFileByStoryId(n)})))).reduce((r,{importPath:n,csfFile:o})=>(r[n]=o,r),{})}async cacheAllCSFFiles(){this.cachedCSFFiles=await this.loadAllCSFFiles()}preparedMetaFromCSFFile({csfFile:t}){let r=t.meta;return this.prepareMetaWithCache(r,this.projectAnnotations,t.moduleExports.default)}async loadStory({storyId:t}){let r=await this.loadCSFFileByStoryId(t);return this.storyFromCSFFile({storyId:t,csfFile:r})}storyFromCSFFile({storyId:t,csfFile:r}){let n=r.stories[t];if(!n)throw new em({storyId:t});let o=r.meta,a=this.prepareStoryWithCache(n,o,this.projectAnnotations);return this.args.setInitial(a),this.hooks[a.id]=this.hooks[a.id]||new hg,a}componentStoriesFromCSFFile({csfFile:t}){return Object.keys(this.storyIndex.entries).filter(r=>!!t.stories[r]).map(r=>this.storyFromCSFFile({storyId:r,csfFile:t}))}async loadEntry(t){let r=await this.storyIdToEntry(t),n=r.type==="docs"?r.storiesImports:[],[o,...a]=await Promise.all([this.importFn(r.importPath),...n.map(i=>{let s=this.storyIndex.importPathToEntry(i);return this.loadCSFFileByStoryId(s.id)})]);return{entryExports:o,csfFiles:a}}getStoryContext(t,{forceInitialArgs:r=!1}={}){let n=this.userGlobals.get(),{initialGlobals:o}=this.userGlobals;return js({...t,args:r?t.initialArgs:this.args.get(t.id),initialGlobals:o,globalTypes:this.projectAnnotations.globalTypes,userGlobals:n,globals:{...n,...t.storyGlobals},hooks:this.hooks[t.id]})}addCleanupCallbacks(t,r){this.cleanupCallbacks[t.id]=r}async cleanupStory(t){this.hooks[t.id].clean();let r=this.cleanupCallbacks[t.id];if(r)for(let n of[...r].reverse())await n();delete this.cleanupCallbacks[t.id]}extract(t={includeDocsOnly:!1}){let{cachedCSFFiles:r}=this;if(!r)throw new Uh;return Object.entries(this.storyIndex.entries).reduce((n,[o,{type:a,importPath:i}])=>{if(a==="docs")return n;let s=r[i],l=this.storyFromCSFFile({storyId:o,csfFile:s});return!t.includeDocsOnly&&l.parameters.docsOnly||(n[o]=Object.entries(l).reduce((u,[c,d])=>c==="moduleExport"||typeof d=="function"?u:Array.isArray(d)?Object.assign(u,{[c]:d.slice().sort()}):Object.assign(u,{[c]:d}),{args:l.initialArgs})),n},{})}getSetStoriesPayload(){let t=this.extract({includeDocsOnly:!0}),r=Object.values(t).reduce((n,{title:o})=>(n[o]={},n),{});return{v:2,globals:this.userGlobals.get(),globalParameters:{},kindParameters:r,stories:t}}raw(){return At("StoryStore.raw() is deprecated and will be removed in 9.0, please use extract() instead"),Object.values(this.extract()).map(({id:t})=>this.fromId(t)).filter(Boolean)}fromId(t){if(At("StoryStore.fromId() is deprecated and will be removed in 9.0, please use loadStory() instead"),!this.cachedCSFFiles)throw new Error("Cannot call fromId/raw() unless you call cacheAllCSFFiles() first.");let r;try{({importPath:r}=this.storyIndex.storyIdToEntry(t))}catch{return null}let n=this.cachedCSFFiles[r],o=this.storyFromCSFFile({storyId:t,csfFile:n});return{...o,storyFn:m(a=>{let i={...this.getStoryContext(o),abortSignal:new AbortController().signal,canvasElement:null,loaded:{},step:m((s,l)=>o.runStep(s,l,i),"step"),context:null,mount:null,canvas:{},viewMode:"story"};return o.unboundStoryFn({...i,...a})},"storyFn")}}};m(qg,"StoryStore");var q5=qg;function Mg(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}m(Mg,"slash");var M5=m(e=>{if(e.length===0)return e;let t=e[e.length-1],r=t?.replace(/(?:[.](?:story|stories))?([.][^.]+)$/i,"");if(e.length===1)return[r];let n=e[e.length-2];return r&&n&&r.toLowerCase()===n.toLowerCase()?[...e.slice(0,-2),r]:r&&(/^(story|stories)([.][^.]+)$/i.test(t)||/^index$/i.test(r))?e.slice(0,-1):[...e.slice(0,-1),r]},"sanitize");function os(e){return e.flatMap(t=>t.split("/")).filter(Boolean).join("/")}m(os,"pathJoin");var U5=m((e,t,r)=>{let{directory:n,importPathMatcher:o,titlePrefix:a=""}=t||{};typeof e=="number"&&Mt.warn(at` + CSF Auto-title received a numeric fileName. This typically happens when + webpack is mis-configured in production mode. To force webpack to produce + filenames, set optimization.moduleIds = "named" in your webpack config. + `);let i=Mg(String(e));if(o.exec(i)){if(!r){let s=i.replace(n,""),l=os([a,s]).split("/");return l=M5(l),l.join("/")}return a?os([a,r]):r}},"userOrAutoTitleFromSpecifier"),Qre=m((e,t,r)=>{for(let n=0;n(t,r)=>{if(t.title===r.title&&!e.includeNames)return 0;let n=e.method||"configure",o=e.order||[],a=t.title.trim().split(Tm),i=r.title.trim().split(Tm);e.includeNames&&(a.push(t.name),i.push(r.name));let s=0;for(;a[s]||i[s];){if(!a[s])return-1;if(!i[s])return 1;let l=a[s],u=i[s];if(l!==u){let d=o.indexOf(l),y=o.indexOf(u),f=o.indexOf("*");return d!==-1||y!==-1?(d===-1&&(f!==-1?d=f:d=o.length),y===-1&&(f!==-1?y=f:y=o.length),d-y):n==="configure"?0:l.localeCompare(u,e.locales?e.locales:void 0,{numeric:!0,sensitivity:"accent"})}let c=o.indexOf(l);c===-1&&(c=o.indexOf("*")),o=c!==-1&&Array.isArray(o[c+1])?o[c+1]:[],s+=1}return 0},"storySort"),z5=m((e,t,r)=>{if(t){let n;typeof t=="function"?n=t:n=$5(t),e.sort(n)}else e.sort((n,o)=>r.indexOf(n.importPath)-r.indexOf(o.importPath));return e},"sortStoriesCommon"),Zre=m((e,t,r)=>{try{return z5(e,t,r)}catch(n){throw new Error(at` + Error sorting stories with sort parameter ${t}: + + > ${n.message} + + Are you using a V6-style sort function in V7 mode? + + More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort + `)}},"sortStoriesV7"),ra=new Error("prepareAborted"),{AbortController:Cm}=globalThis;function as(e){try{let{name:t="Error",message:r=String(e),stack:n}=e;return{name:t,message:r,stack:n}}catch{return{name:"Error",message:String(e)}}}m(as,"serializeError");var Ug=class{constructor(t,r,n,o,a,i,s={autoplay:!0,forceInitialArgs:!1},l){this.channel=t,this.store=r,this.renderToScreen=n,this.callbacks=o,this.id=a,this.viewMode=i,this.renderOptions=s,this.type="story",this.notYetRendered=!0,this.rerenderEnqueued=!1,this.disableKeyListeners=!1,this.teardownRender=m(()=>{},"teardownRender"),this.torndown=!1,this.abortController=new Cm,l&&(this.story=l,this.phase="preparing")}async runPhase(t,r,n){this.phase=r,this.channel.emit(wr,{newPhase:this.phase,storyId:this.id}),n&&(await n(),this.checkIfAborted(t))}checkIfAborted(t){return t.aborted?(this.phase="aborted",this.channel.emit(wr,{newPhase:this.phase,storyId:this.id}),!0):!1}async prepare(){if(await this.runPhase(this.abortController.signal,"preparing",async()=>{this.story=await this.store.loadStory({storyId:this.id})}),this.abortController.signal.aborted)throw await this.store.cleanupStory(this.story),ra}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}isPreparing(){return["preparing"].includes(this.phase)}isPending(){return["loading","beforeEach","rendering","playing"].includes(this.phase)}async renderToElement(t){return this.canvasElement=t,this.render({initial:!0,forceRemount:!0})}storyContext(){if(!this.story)throw new Error("Cannot call storyContext before preparing");let{forceInitialArgs:t}=this.renderOptions;return this.store.getStoryContext(this.story,{forceInitialArgs:t})}async render({initial:t=!1,forceRemount:r=!1}={}){let{canvasElement:n}=this;if(!this.story)throw new Error("cannot render when not prepared");let o=this.story;if(!n)throw new Error("cannot render when canvasElement is unset");let{id:a,componentId:i,title:s,name:l,tags:u,applyLoaders:c,applyBeforeEach:d,unboundStoryFn:y,playFunction:f,runStep:h}=o;r&&!t&&(this.cancelRender(),this.abortController=new Cm);let g=this.abortController.signal,C=!1,b=o.usesMount;try{let E={...this.storyContext(),viewMode:this.viewMode,abortSignal:g,canvasElement:n,loaded:{},step:m((R,M)=>h(R,M,E),"step"),context:null,canvas:{},renderToCanvas:m(async()=>{let R=await this.renderToScreen(_,n);this.teardownRender=R||(()=>{}),C=!0},"renderToCanvas"),mount:m(async(...R)=>{this.callbacks.showStoryDuringRender?.();let M=null;return await this.runPhase(g,"rendering",async()=>{M=await o.mount(E)(...R)}),b&&await this.runPhase(g,"playing"),M},"mount")};E.context=E;let _={componentId:i,title:s,kind:s,id:a,name:l,story:l,tags:u,...this.callbacks,showError:m(R=>(this.phase="errored",this.callbacks.showError(R)),"showError"),showException:m(R=>(this.phase="errored",this.callbacks.showException(R)),"showException"),forceRemount:r||this.notYetRendered,storyContext:E,storyFn:m(()=>y(E),"storyFn"),unboundStoryFn:y};if(await this.runPhase(g,"loading",async()=>{E.loaded=await c(E)}),g.aborted)return;let T=await d(E);if(this.store.addCleanupCallbacks(o,T),this.checkIfAborted(g)||(!C&&!b&&await E.mount(),this.notYetRendered=!1,g.aborted))return;let O=this.story.parameters?.test?.dangerouslyIgnoreUnhandledErrors===!0,I=new Set,D=m(R=>I.add("error"in R?R.error:R.reason),"onError");if(this.renderOptions.autoplay&&r&&f&&this.phase!=="errored"){window.addEventListener("error",D),window.addEventListener("unhandledrejection",D),this.disableKeyListeners=!0;try{if(b?await f(E):(E.mount=async()=>{throw new Bo({playFunction:f.toString()})},await this.runPhase(g,"playing",async()=>f(E))),!C)throw new sm;this.checkIfAborted(g),!O&&I.size>0?await this.runPhase(g,"errored"):await this.runPhase(g,"played")}catch(R){if(this.callbacks.showStoryDuringRender?.(),await this.runPhase(g,"errored",async()=>{this.channel.emit(iu,as(R))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw R;console.error(R)}if(!O&&I.size>0&&this.channel.emit(vu,Array.from(I).map(as)),this.disableKeyListeners=!1,window.removeEventListener("unhandledrejection",D),window.removeEventListener("error",D),g.aborted)return}await this.runPhase(g,"completed",async()=>this.channel.emit(cn,a))}catch(E){this.phase="errored",this.callbacks.showException(E)}this.rerenderEnqueued&&(this.rerenderEnqueued=!1,this.render())}async rerender(){if(this.isPending()&&this.phase!=="playing")this.rerenderEnqueued=!0;else return this.render()}async remount(){return await this.teardown(),this.render({forceRemount:!0})}cancelRender(){this.abortController?.abort()}async teardown(){this.torndown=!0,this.cancelRender(),this.story&&await this.store.cleanupStory(this.story);for(let t=0;t<3;t+=1){if(!this.isPending()){await this.teardownRender();return}await new Promise(r=>setTimeout(r,0))}window.location.reload(),await new Promise(()=>{})}};m(Ug,"StoryRender");var is=Ug,{fetch:V5}=Le,H5="./index.json",$g=class{constructor(t,r,n=or.getChannel(),o=!0){this.importFn=t,this.getProjectAnnotations=r,this.channel=n,this.storyRenders=[],this.storeInitializationPromise=new Promise((a,i)=>{this.resolveStoreInitializationPromise=a,this.rejectStoreInitializationPromise=i}),o&&this.initialize()}get storyStore(){return new Proxy({},{get:m((t,r)=>{if(this.storyStoreValue)return At("Accessing the Story Store is deprecated and will be removed in 9.0"),this.storyStoreValue[r];throw new rm},"get")})}async initialize(){this.setupListeners();try{let t=await this.getProjectAnnotationsOrRenderError();await this.runBeforeAllHook(t),await this.initializeWithProjectAnnotations(t)}catch(t){this.rejectStoreInitializationPromise(t)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(yu,this.onStoryIndexChanged.bind(this)),this.channel.on(co,this.onUpdateGlobals.bind(this)),this.channel.on(po,this.onUpdateArgs.bind(this)),this.channel.on(tu,this.onRequestArgTypesInfo.bind(this)),this.channel.on(lo,this.onResetArgs.bind(this)),this.channel.on(so,this.onForceReRender.bind(this)),this.channel.on(ou,this.onForceRemount.bind(this))}async getProjectAnnotationsOrRenderError(){try{let t=await this.getProjectAnnotations();if(this.renderToCanvas=t.renderToCanvas,!this.renderToCanvas)throw new zh;return t}catch(t){throw this.renderPreviewEntryError("Error reading preview.js:",t),t}}async initializeWithProjectAnnotations(t){this.projectAnnotationsBeforeInitialization=t;try{let r=await this.getStoryIndexFromServer();return this.initializeWithStoryIndex(r)}catch(r){throw this.renderPreviewEntryError("Error loading story index:",r),r}}async runBeforeAllHook(t){try{await this.beforeAllCleanup?.(),this.beforeAllCleanup=await t.beforeAll?.()}catch(r){throw this.renderPreviewEntryError("Error in beforeAll hook:",r),r}}async getStoryIndexFromServer(){let t=await V5(H5);if(t.status===200)return t.json();throw new Jh({text:await t.text()})}initializeWithStoryIndex(t){if(!this.projectAnnotationsBeforeInitialization)throw new Error("Cannot call initializeWithStoryIndex until project annotations resolve");this.storyStoreValue=new q5(t,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new rt({methodName:"emitGlobals"});let t={globals:this.storyStoreValue.userGlobals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(cu,t)}async onGetProjectAnnotationsChanged({getProjectAnnotations:t}){delete this.previewEntryError,this.getProjectAnnotations=t;let r=await this.getProjectAnnotationsOrRenderError();if(await this.runBeforeAllHook(r),!this.storyStoreValue){await this.initializeWithProjectAnnotations(r);return}this.storyStoreValue.setProjectAnnotations(r),this.emitGlobals()}async onStoryIndexChanged(){if(delete this.previewEntryError,!(!this.storyStoreValue&&!this.projectAnnotationsBeforeInitialization))try{let t=await this.getStoryIndexFromServer();if(this.projectAnnotationsBeforeInitialization){this.initializeWithStoryIndex(t);return}await this.onStoriesChanged({storyIndex:t})}catch(t){throw this.renderPreviewEntryError("Error loading story index:",t),t}}async onStoriesChanged({importFn:t,storyIndex:r}){if(!this.storyStoreValue)throw new rt({methodName:"onStoriesChanged"});await this.storyStoreValue.onStoriesChanged({importFn:t,storyIndex:r})}async onUpdateGlobals({globals:t,currentStory:r}){if(this.storyStoreValue||await this.storeInitializationPromise,!this.storyStoreValue)throw new rt({methodName:"onUpdateGlobals"});if(this.storyStoreValue.userGlobals.update(t),r){let{initialGlobals:n,storyGlobals:o,userGlobals:a,globals:i}=this.storyStoreValue.getStoryContext(r);this.channel.emit(xr,{initialGlobals:n,userGlobals:a,storyGlobals:o,globals:i})}else{let{initialGlobals:n,globals:o}=this.storyStoreValue.userGlobals;this.channel.emit(xr,{initialGlobals:n,userGlobals:o,storyGlobals:{},globals:o})}await Promise.all(this.storyRenders.map(n=>n.rerender()))}async onUpdateArgs({storyId:t,updatedArgs:r}){if(!this.storyStoreValue)throw new rt({methodName:"onUpdateArgs"});this.storyStoreValue.args.update(t,r),await Promise.all(this.storyRenders.filter(n=>n.id===t&&!n.renderOptions.forceInitialArgs).map(n=>n.story&&n.story.usesMount?n.remount():n.rerender())),this.channel.emit(pu,{storyId:t,args:this.storyStoreValue.args.get(t)})}async onRequestArgTypesInfo({id:t,payload:r}){try{await this.storeInitializationPromise;let n=await this.storyStoreValue?.loadStory(r);this.channel.emit(Ja,{id:t,success:!0,payload:{argTypes:n?.argTypes||{}},error:null})}catch(n){this.channel.emit(Ja,{id:t,success:!1,error:n?.message})}}async onResetArgs({storyId:t,argNames:r}){if(!this.storyStoreValue)throw new rt({methodName:"onResetArgs"});let n=this.storyRenders.find(a=>a.id===t)?.story||await this.storyStoreValue.loadStory({storyId:t}),o=(r||[...new Set([...Object.keys(n.initialArgs),...Object.keys(this.storyStoreValue.args.get(t))])]).reduce((a,i)=>(a[i]=n.initialArgs[i],a),{});await this.onUpdateArgs({storyId:t,updatedArgs:o})}async onForceReRender(){await Promise.all(this.storyRenders.map(t=>t.rerender()))}async onForceRemount({storyId:t}){await Promise.all(this.storyRenders.filter(r=>r.id===t).map(r=>r.remount()))}renderStoryToElement(t,r,n,o){if(!this.renderToCanvas||!this.storyStoreValue)throw new rt({methodName:"renderStoryToElement"});let a=new is(this.channel,this.storyStoreValue,this.renderToCanvas,n,t.id,"docs",o,t);return a.renderToElement(r),this.storyRenders.push(a),async()=>{await this.teardownRender(a)}}async teardownRender(t,{viewModeChanged:r}={}){this.storyRenders=this.storyRenders.filter(n=>n!==t),await t?.teardown?.({viewModeChanged:r})}async loadStory({storyId:t}){if(!this.storyStoreValue)throw new rt({methodName:"loadStory"});return this.storyStoreValue.loadStory({storyId:t})}getStoryContext(t,{forceInitialArgs:r=!1}={}){if(!this.storyStoreValue)throw new rt({methodName:"getStoryContext"});return this.storyStoreValue.getStoryContext(t,{forceInitialArgs:r})}async extract(t){if(!this.storyStoreValue)throw new rt({methodName:"extract"});if(this.previewEntryError)throw this.previewEntryError;return await this.storyStoreValue.cacheAllCSFFiles(),this.storyStoreValue.extract(t)}renderPreviewEntryError(t,r){this.previewEntryError=r,ge.error(t),ge.error(r),this.channel.emit(ru,r)}};m($g,"Preview");var J5=$g,G5=!1,Wi="Invariant failed";function Uo(e,t){if(!e){if(G5)throw new Error(Wi);var r=typeof t=="function"?t():t,n=r?"".concat(Wi,": ").concat(r):Wi;throw new Error(n)}}m(Uo,"invariant");var zg=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.renderStoryToElement=n,this.storyIdByName=m(a=>{let i=this.nameToStoryId.get(a);if(i)return i;throw new Error(`No story found with that name: ${a}`)},"storyIdByName"),this.componentStories=m(()=>this.componentStoriesValue,"componentStories"),this.componentStoriesFromCSFFile=m(a=>this.store.componentStoriesFromCSFFile({csfFile:a}),"componentStoriesFromCSFFile"),this.storyById=m(a=>{if(!a){if(!this.primaryStory)throw new Error("No primary story defined for docs entry. Did you forget to use ``?");return this.primaryStory}let i=this.storyIdToCSFFile.get(a);if(!i)throw new Error(`Called \`storyById\` for story that was never loaded: ${a}`);return this.store.storyFromCSFFile({storyId:a,csfFile:i})},"storyById"),this.getStoryContext=m(a=>({...this.store.getStoryContext(a),loaded:{},viewMode:"docs"}),"getStoryContext"),this.loadStory=m(a=>this.store.loadStory({storyId:a}),"loadStory"),this.componentStoriesValue=[],this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.attachedCSFFiles=new Set,o.forEach((a,i)=>{this.referenceCSFFile(a)})}referenceCSFFile(t){this.exportsToCSFFile.set(t.moduleExports,t),this.exportsToCSFFile.set(t.moduleExports.default,t),this.store.componentStoriesFromCSFFile({csfFile:t}).forEach(r=>{let n=t.stories[r.id];this.storyIdToCSFFile.set(n.id,t),this.exportToStory.set(n.moduleExport,r)})}attachCSFFile(t){if(!this.exportsToCSFFile.has(t.moduleExports))throw new Error("Cannot attach a CSF file that has not been referenced");this.attachedCSFFiles.has(t)||(this.attachedCSFFiles.add(t),this.store.componentStoriesFromCSFFile({csfFile:t}).forEach(r=>{this.nameToStoryId.set(r.name,r.id),this.componentStoriesValue.push(r),this.primaryStory||(this.primaryStory=r)}))}referenceMeta(t,r){let n=this.resolveModuleExport(t);if(n.type!=="meta")throw new Error(" must reference a CSF file module export or meta export. Did you mistakenly reference your component instead of your CSF file?");r&&this.attachCSFFile(n.csfFile)}get projectAnnotations(){let{projectAnnotations:t}=this.store;if(!t)throw new Error("Can't get projectAnnotations from DocsContext before they are initialized");return t}resolveAttachedModuleExportType(t){if(t==="story"){if(!this.primaryStory)throw new Error("No primary story attached to this docs file, did you forget to use ?");return{type:"story",story:this.primaryStory}}if(this.attachedCSFFiles.size===0)throw new Error("No CSF file attached to this docs file, did you forget to use ?");let r=Array.from(this.attachedCSFFiles)[0];if(t==="meta")return{type:"meta",csfFile:r};let{component:n}=r.meta;if(!n)throw new Error("Attached CSF file does not defined a component, did you forget to export one?");return{type:"component",component:n}}resolveModuleExport(t){let r=this.exportsToCSFFile.get(t);if(r)return{type:"meta",csfFile:r};let n=this.exportToStory.get(t);return n?{type:"story",story:n}:{type:"component",component:t}}resolveOf(t,r=[]){let n;if(["component","meta","story"].includes(t)){let o=t;n=this.resolveAttachedModuleExportType(o)}else n=this.resolveModuleExport(t);if(r.length&&!r.includes(n.type)){let o=n.type==="component"?"component or unknown":n.type;throw new Error(at`Invalid value passed to the 'of' prop. The value was resolved to a '${o}' type but the only types for this block are: ${r.join(", ")}. + - Did you pass a component to the 'of' prop when the block only supports a story or a meta? + - ... or vice versa? + - Did you pass a story, CSF file or meta to the 'of' prop that is not indexed, ie. is not targeted by the 'stories' globs in the main configuration?`)}switch(n.type){case"component":return{...n,projectAnnotations:this.projectAnnotations};case"meta":return{...n,preparedMeta:this.store.preparedMetaFromCSFFile({csfFile:n.csfFile})};case"story":default:return n}}};m(zg,"DocsContext");var Vg=zg,Hg=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.entry=n,this.callbacks=o,this.type="docs",this.subtype="csf",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=n.id}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:t,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw ra;let{importPath:n,title:o}=this.entry,a=this.store.processCSFFileWithCache(t,n,o),i=Object.keys(a.stories)[0];this.story=this.store.storyFromCSFFile({storyId:i,csfFile:a}),this.csfFiles=[a,...r],this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");let r=new Vg(this.channel,this.store,t,this.csfFiles);return this.csfFiles.forEach(n=>r.attachCSFFile(n)),r}async renderToElement(t,r){if(!this.story||!this.csfFiles)throw new Error("Cannot render docs before preparing");let n=this.docsContext(r),{docs:o}=this.story.parameters||{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let a=await o.renderer(),{render:i}=a,s=m(async()=>{try{await i(n,o,t),this.channel.emit(io,this.id)}catch(l){this.callbacks.showException(l)}},"renderDocs");return this.rerender=async()=>s(),this.teardownRender=async({viewModeChanged:l})=>{!l||!t||a.unmount(t)},s()}async teardown({viewModeChanged:t}={}){this.teardownRender?.({viewModeChanged:t}),this.torndown=!0}};m(Hg,"CsfDocsRender");var _m=Hg,Jg=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.entry=n,this.callbacks=o,this.type="docs",this.subtype="mdx",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=n.id}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:t,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw ra;this.csfFiles=r,this.exports=t,this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.exports&&this.exports===t.exports)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");return new Vg(this.channel,this.store,t,this.csfFiles)}async renderToElement(t,r){if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw new Error("Cannot render docs before preparing");let n=this.docsContext(r),{docs:o}=this.store.projectAnnotations.parameters||{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let a={...o,page:this.exports.default},i=await o.renderer(),{render:s}=i,l=m(async()=>{try{await s(n,a,t),this.channel.emit(io,this.id)}catch(u){this.callbacks.showException(u)}},"renderDocs");return this.rerender=async()=>l(),this.teardownRender=async({viewModeChanged:u}={})=>{!u||!t||(i.unmount(t),this.torndown=!0)},l()}async teardown({viewModeChanged:t}={}){this.teardownRender?.({viewModeChanged:t}),this.torndown=!0}};m(Jg,"MdxDocsRender");var Om=Jg,W5=globalThis;function Gg(e){let t=e.composedPath&&e.composedPath()[0]||e.target;return/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null}m(Gg,"focusInInput");var Wg="attached-mdx",K5="unattached-mdx";function Kg({tags:e}){return e?.includes(K5)||e?.includes(Wg)}m(Kg,"isMdxEntry");function $o(e){return e.type==="story"}m($o,"isStoryRender");function Yg(e){return e.type==="docs"}m(Yg,"isDocsRender");function Xg(e){return Yg(e)&&e.subtype==="csf"}m(Xg,"isCsfDocsRender");var Qg=class extends J5{constructor(t,r,n,o){super(t,r,void 0,!1),this.importFn=t,this.getProjectAnnotations=r,this.selectionStore=n,this.view=o,this.initialize()}setupListeners(){super.setupListeners(),W5.onkeydown=this.onKeydown.bind(this),this.channel.on(uu,this.onSetCurrentStory.bind(this)),this.channel.on(Eu,this.onUpdateQueryParams.bind(this)),this.channel.on(su,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new rt({methodName:"setInitialGlobals"});let{globals:t}=this.selectionStore.selectionSpecifier||{};t&&this.storyStoreValue.userGlobals.updateFromPersisted(t),this.emitGlobals()}async initializeWithStoryIndex(t){return await super.initializeWithStoryIndex(t),this.selectSpecifiedStory()}async selectSpecifiedStory(){if(!this.storyStoreValue)throw new rt({methodName:"selectSpecifiedStory"});if(this.selectionStore.selection){await this.renderSelection();return}if(!this.selectionStore.selectionSpecifier){this.renderMissingStory();return}let{storySpecifier:t,args:r}=this.selectionStore.selectionSpecifier,n=this.storyStoreValue.storyIndex.entryFromSpecifier(t);if(!n){t==="*"?this.renderStoryLoadingException(t,new Yh):this.renderStoryLoadingException(t,new Qh({storySpecifier:t.toString()}));return}let{id:o,type:a}=n;this.selectionStore.setSelection({storyId:o,viewMode:a}),this.channel.emit(mu,this.selectionStore.selection),this.channel.emit(Ga,this.selectionStore.selection),await this.renderSelection({persistedArgs:r})}async onGetProjectAnnotationsChanged({getProjectAnnotations:t}){await super.onGetProjectAnnotationsChanged({getProjectAnnotations:t}),this.selectionStore.selection&&this.renderSelection()}async onStoriesChanged({importFn:t,storyIndex:r}){await super.onStoriesChanged({importFn:t,storyIndex:r}),this.selectionStore.selection?await this.renderSelection():await this.selectSpecifiedStory()}onKeydown(t){if(!this.storyRenders.find(r=>r.disableKeyListeners)&&!Gg(t)){let{altKey:r,ctrlKey:n,metaKey:o,shiftKey:a,key:i,code:s,keyCode:l}=t;this.channel.emit(lu,{event:{altKey:r,ctrlKey:n,metaKey:o,shiftKey:a,key:i,code:s,keyCode:l}})}}async onSetCurrentStory(t){this.selectionStore.setSelection({viewMode:"story",...t}),await this.storeInitializationPromise,this.channel.emit(Ga,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(t){this.selectionStore.setQueryParams(t)}async onUpdateGlobals({globals:t}){let r=this.currentRender instanceof is&&this.currentRender.story||void 0;super.onUpdateGlobals({globals:t,currentStory:r}),(this.currentRender instanceof Om||this.currentRender instanceof _m)&&await this.currentRender.rerender?.()}async onUpdateArgs({storyId:t,updatedArgs:r}){super.onUpdateArgs({storyId:t,updatedArgs:r})}async onPreloadStories({ids:t}){await this.storeInitializationPromise,this.storyStoreValue&&await Promise.allSettled(t.map(r=>this.storyStoreValue?.loadEntry(r)))}async renderSelection({persistedArgs:t}={}){let{renderToCanvas:r}=this;if(!this.storyStoreValue||!r)throw new rt({methodName:"renderSelection"});let{selection:n}=this.selectionStore;if(!n)throw new Error("Cannot call renderSelection as no selection was made");let{storyId:o}=n,a;try{a=await this.storyStoreValue.storyIdToEntry(o)}catch(y){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(o,y);return}let i=this.currentSelection?.storyId!==o,s=this.currentRender?.type!==a.type;a.type==="story"?this.view.showPreparingStory({immediate:s}):this.view.showPreparingDocs({immediate:s}),this.currentRender?.isPreparing()&&await this.teardownRender(this.currentRender);let l;a.type==="story"?l=new is(this.channel,this.storyStoreValue,r,this.mainStoryCallbacks(o),o,"story"):Kg(a)?l=new Om(this.channel,this.storyStoreValue,a,this.mainStoryCallbacks(o)):l=new _m(this.channel,this.storyStoreValue,a,this.mainStoryCallbacks(o));let u=this.currentSelection;this.currentSelection=n;let c=this.currentRender;this.currentRender=l;try{await l.prepare()}catch(y){c&&await this.teardownRender(c),y!==ra&&this.renderStoryLoadingException(o,y);return}let d=!i&&c&&!l.isEqual(c);if(t&&$o(l)&&(Uo(!!l.story),this.storyStoreValue.args.updateFromPersisted(l.story,t)),c&&!c.torndown&&!i&&!d&&!s){this.currentRender=c,this.channel.emit(bu,o),this.view.showMain();return}if(c&&await this.teardownRender(c,{viewModeChanged:s}),u&&(i||s)&&this.channel.emit(du,o),$o(l)){Uo(!!l.story);let{parameters:y,initialArgs:f,argTypes:h,unmappedArgs:g,initialGlobals:C,userGlobals:b,storyGlobals:E,globals:_}=this.storyStoreValue.getStoryContext(l.story);this.channel.emit(hu,{id:o,parameters:y,initialArgs:f,argTypes:h,args:g}),this.channel.emit(xr,{userGlobals:b,storyGlobals:E,globals:_,initialGlobals:C})}else{let{parameters:y}=this.storyStoreValue.projectAnnotations,{initialGlobals:f,globals:h}=this.storyStoreValue.userGlobals;if(this.channel.emit(xr,{globals:h,initialGlobals:f,storyGlobals:{},userGlobals:h}),Xg(l)||l.entry.tags?.includes(Wg)){if(!l.csfFiles)throw new Wh({storyId:o});({parameters:y}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:l.csfFiles[0]}))}this.channel.emit(nu,{id:o,parameters:y})}$o(l)?(Uo(!!l.story),this.storyRenders.push(l),this.currentRender.renderToElement(this.view.prepareForStory(l.story))):this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))}async teardownRender(t,{viewModeChanged:r=!1}={}){this.storyRenders=this.storyRenders.filter(n=>n!==t),await t?.teardown?.({viewModeChanged:r})}mainStoryCallbacks(t){return{showStoryDuringRender:m(()=>this.view.showStoryDuringRender(),"showStoryDuringRender"),showMain:m(()=>this.view.showMain(),"showMain"),showError:m(r=>this.renderError(t,r),"showError"),showException:m(r=>this.renderException(t,r),"showException")}}renderPreviewEntryError(t,r){super.renderPreviewEntryError(t,r),this.view.showErrorDisplay(r)}renderMissingStory(){this.view.showNoPreview(),this.channel.emit(Ka)}renderStoryLoadingException(t,r){ge.error(r),this.view.showErrorDisplay(r),this.channel.emit(Ka,t)}renderException(t,r){let{name:n="Error",message:o=String(r),stack:a}=r;this.channel.emit(gu,{name:n,message:o,stack:a}),this.channel.emit(wr,{newPhase:"errored",storyId:t}),this.view.showErrorDisplay(r),ge.error(`Error rendering story '${t}':`),ge.error(r)}renderError(t,{title:r,description:n}){ge.error(`Error rendering story ${r}: ${n}`),this.channel.emit(fu,{title:r,description:n}),this.channel.emit(wr,{newPhase:"errored",storyId:t}),this.view.showErrorDisplay({message:r,stack:n})}};m(Qg,"PreviewWithSelection");var Y5=Qg,ss=Qe(Cs(),1),X5=Qe(ws(),1),Q5=Qe(Cs(),1),Im=/^[a-zA-Z0-9 _-]*$/,Zg=/^-?[0-9]+(\.[0-9]+)?$/,Z5=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,eb=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,ls=m((e="",t)=>e===null||e===""||!Im.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?Im.test(t)||Zg.test(t)||Z5.test(t)||eb.test(t):Array.isArray(t)?t.every(r=>ls(e,r)):(0,X5.default)(t)?Object.entries(t).every(([r,n])=>ls(r,n)):!1,"validateArgs"),eD={delimiter:";",allowDots:!0,allowSparse:!0,decoder(e,t,r,n){if(n==="value"&&e.startsWith("!")){if(e==="!undefined")return;if(e==="!null")return null;if(e==="!true")return!0;if(e==="!false")return!1;if(e.startsWith("!date(")&&e.endsWith(")"))return new Date(e.slice(6,-1));if(e.startsWith("!hex(")&&e.endsWith(")"))return`#${e.slice(5,-1)}`;let o=e.slice(1).match(eb);if(o)return e.startsWith("!rgba")?`${o[1]}(${o[2]}, ${o[3]}, ${o[4]}, ${o[5]})`:e.startsWith("!hsla")?`${o[1]}(${o[2]}, ${o[3]}%, ${o[4]}%, ${o[5]})`:e.startsWith("!rgb")?`${o[1]}(${o[2]}, ${o[3]}, ${o[4]})`:`${o[1]}(${o[2]}, ${o[3]}%, ${o[4]}%)`}return n==="value"&&Zg.test(e)?Number(e):t(e,t,r)}},km=m(e=>{let t=e.split(";").map(r=>r.replace("=","~").replace(":","="));return Object.entries(Q5.default.parse(t.join(";"),eD)).reduce((r,[n,o])=>ls(n,o)?Object.assign(r,{[n]:o}):(Mt.warn(at` + Omitted potentially unsafe URL args. + + More info: https://storybook.js.org/docs/react/writing-stories/args#setting-args-through-the-url + `),r),{})},"parseArgsParam"),{history:tb,document:Tt}=Le;function rb(e){let t=(e||"").match(/^\/story\/(.+)/);if(!t)throw new Error(`Invalid path '${e}', must start with '/story/'`);return t[1]}m(rb,"pathToId");var nb=m(({selection:e,extraParams:t})=>{let r=typeof Tt<"u"?Tt.location.search:"",{path:n,selectedKind:o,selectedStory:a,...i}=ss.default.parse(r,{ignoreQueryPrefix:!0});return ss.default.stringify({...i,...t,...e&&{id:e.storyId,viewMode:e.viewMode}},{encode:!1,addQueryPrefix:!0})},"getQueryString"),tD=m(e=>{if(!e)return;let t=nb({selection:e}),{hash:r=""}=Tt.location;Tt.title=e.storyId,tb.replaceState({},"",`${Tt.location.pathname}${t}${r}`)},"setPath"),rD=m(e=>e!=null&&typeof e=="object"&&Array.isArray(e)===!1,"isObject"),Cn=m(e=>{if(e!==void 0){if(typeof e=="string")return e;if(Array.isArray(e))return Cn(e[0]);if(rD(e))return Cn(Object.values(e).filter(Boolean))}},"getFirstString"),nD=m(()=>{if(typeof Tt<"u"){let e=ss.default.parse(Tt.location.search,{ignoreQueryPrefix:!0}),t=typeof e.args=="string"?km(e.args):void 0,r=typeof e.globals=="string"?km(e.globals):void 0,n=Cn(e.viewMode);(typeof n!="string"||!n.match(/docs|story/))&&(n="story");let o=Cn(e.path),a=o?rb(o):Cn(e.id);if(a)return{storySpecifier:a,args:t,globals:r,viewMode:n}}return null},"getSelectionSpecifierFromPath"),ob=class{constructor(){this.selectionSpecifier=nD()}setSelection(t){this.selection=t,tD(this.selection)}setQueryParams(t){let r=nb({extraParams:t}),{hash:n=""}=Tt.location;tb.replaceState({},"",`${Tt.location.pathname}${r}${n}`)}};m(ob,"UrlStore");var oD=ob,aD=Qe(QR(),1),iD=Qe(Cs(),1),{document:Je}=Le,Pm=100,ab=(e=>(e.MAIN="MAIN",e.NOPREVIEW="NOPREVIEW",e.PREPARING_STORY="PREPARING_STORY",e.PREPARING_DOCS="PREPARING_DOCS",e.ERROR="ERROR",e))(ab||{}),Ki={PREPARING_STORY:"sb-show-preparing-story",PREPARING_DOCS:"sb-show-preparing-docs",MAIN:"sb-show-main",NOPREVIEW:"sb-show-nopreview",ERROR:"sb-show-errordisplay"},Yi={centered:"sb-main-centered",fullscreen:"sb-main-fullscreen",padded:"sb-main-padded"},Rm=new aD.default({escapeXML:!0}),ib=class{constructor(){if(this.testing=!1,typeof Je<"u"){let{__SPECIAL_TEST_PARAMETER__:t}=iD.default.parse(Je.location.search,{ignoreQueryPrefix:!0});switch(t){case"preparing-story":{this.showPreparingStory(),this.testing=!0;break}case"preparing-docs":{this.showPreparingDocs(),this.testing=!0;break}default:}}}prepareForStory(t){return this.showStory(),this.applyLayout(t.parameters.layout),Je.documentElement.scrollTop=0,Je.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return Je.getElementById("storybook-root")}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout("fullscreen"),Je.documentElement.scrollTop=0,Je.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return Je.getElementById("storybook-docs")}applyLayout(t="padded"){if(t==="none"){Je.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(t);let r=Yi[t];Je.body.classList.remove(this.currentLayoutClass),Je.body.classList.add(r),this.currentLayoutClass=r}checkIfLayoutExists(t){Yi[t]||ge.warn(at` + The desired layout: ${t} is not a valid option. + The possible options are: ${Object.keys(Yi).join(", ")}, none. + `)}showMode(t){clearTimeout(this.preparingTimeout),Object.keys(ab).forEach(r=>{r===t?Je.body.classList.add(Ki[r]):Je.body.classList.remove(Ki[r])})}showErrorDisplay({message:t="",stack:r=""}){let n=t,o=r,a=t.split(` +`);a.length>1&&([n]=a,o=a.slice(1).join(` +`).replace(/^\n/,"")),Je.getElementById("error-message").innerHTML=Rm.toHtml(n),Je.getElementById("error-stack").innerHTML=Rm.toHtml(o),this.showMode("ERROR")}showNoPreview(){this.testing||(this.showMode("NOPREVIEW"),this.storyRoot()?.setAttribute("hidden","true"),this.docsRoot()?.setAttribute("hidden","true"))}showPreparingStory({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_STORY"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_STORY"),Pm)}showPreparingDocs({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_DOCS"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_DOCS"),Pm)}showMain(){this.showMode("MAIN")}showDocs(){this.storyRoot().setAttribute("hidden","true"),this.docsRoot().removeAttribute("hidden")}showStory(){this.docsRoot().setAttribute("hidden","true"),this.storyRoot().removeAttribute("hidden")}showStoryDuringRender(){Je.body.classList.add(Ki.MAIN)}};m(ib,"WebView");var sD=ib,lD=class extends Y5{constructor(t,r){super(t,r,new oD,new sD),this.importFn=t,this.getProjectAnnotations=r,Le.__STORYBOOK_PREVIEW__=this}};m(lD,"PreviewWeb");var{document:nr}=Le,uD=["application/javascript","application/ecmascript","application/x-ecmascript","application/x-javascript","text/ecmascript","text/javascript","text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-ecmascript","text/x-javascript","module"],cD="script",Dm="scripts-root";function us(){let e=nr.createEvent("Event");e.initEvent("DOMContentLoaded",!0,!0),nr.dispatchEvent(e)}m(us,"simulateDOMContentLoaded");function sb(e,t,r){let n=nr.createElement("script");n.type=e.type==="module"?"module":"text/javascript",e.src?(n.onload=t,n.onerror=t,n.src=e.src):n.textContent=e.innerText,r?r.appendChild(n):nr.head.appendChild(n),e.parentNode.removeChild(e),e.src||t()}m(sb,"insertScript");function Ns(e,t,r=0){e[r](()=>{r++,r===e.length?t():Ns(e,t,r)})}m(Ns,"insertScriptsSequentially");function pD(e){let t=nr.getElementById(Dm);t?t.innerHTML="":(t=nr.createElement("div"),t.id=Dm,nr.body.appendChild(t));let r=Array.from(e.querySelectorAll(cD));if(r.length){let n=[];r.forEach(o=>{let a=o.getAttribute("type");(!a||uD.includes(a))&&n.push(i=>sb(o,i,t))}),n.length&&Ns(n,us,void 0)}else us()}m(pD,"simulatePageLoad");w();S();A();w();S();A();var Ur=on(ub(),1);var dD=Object.create,Bs=Object.defineProperty,fD=Object.getOwnPropertyDescriptor,yD=Object.getOwnPropertyNames,hD=Object.getPrototypeOf,mD=Object.prototype.hasOwnProperty,F=(e,t)=>Bs(e,"name",{value:t,configurable:!0}),K=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),gD=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of yD(t))!mD.call(e,o)&&o!==r&&Bs(e,o,{get:()=>t[o],enumerable:!(n=fD(t,o))||n.enumerable});return e},bD=(e,t,r)=>(r=e!=null?dD(hD(e)):{},gD(t||!e||!e.__esModule?Bs(r,"default",{value:e,enumerable:!0}):r,e)),cb=K((e,t)=>{var r=typeof window=="object"&&window&&window.Object===Object&&window;t.exports=r}),It=K((e,t)=>{var r=cb(),n=typeof self=="object"&&self&&self.Object===Object&&self,o=r||n||Function("return this")();t.exports=o}),oa=K((e,t)=>{var r=It(),n=r.Symbol;t.exports=n}),vD=K((e,t)=>{var r=oa(),n=Object.prototype,o=n.hasOwnProperty,a=n.toString,i=r?r.toStringTag:void 0;function s(l){var u=o.call(l,i),c=l[i];try{l[i]=void 0;var d=!0}catch{}var y=a.call(l);return d&&(u?l[i]=c:delete l[i]),y}F(s,"getRawTag"),t.exports=s}),ED=K((e,t)=>{var r=Object.prototype,n=r.toString;function o(a){return n.call(a)}F(o,"objectToString"),t.exports=o}),Nn=K((e,t)=>{var r=oa(),n=vD(),o=ED(),a="[object Null]",i="[object Undefined]",s=r?r.toStringTag:void 0;function l(u){return u==null?u===void 0?i:a:s&&s in Object(u)?n(u):o(u)}F(l,"baseGetTag"),t.exports=l}),Ls=K((e,t)=>{function r(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}F(r,"isObject"),t.exports=r}),pb=K((e,t)=>{var r=Nn(),n=Ls(),o="[object AsyncFunction]",a="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function l(u){if(!n(u))return!1;var c=r(u);return c==a||c==i||c==o||c==s}F(l,"isFunction"),t.exports=l}),xD=K((e,t)=>{var r=It(),n=r["__core-js_shared__"];t.exports=n}),wD=K((e,t)=>{var r=xD(),n=function(){var a=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}();function o(a){return!!n&&n in a}F(o,"isMasked"),t.exports=o}),db=K((e,t)=>{var r=Function.prototype,n=r.toString;function o(a){if(a!=null){try{return n.call(a)}catch{}try{return a+""}catch{}}return""}F(o,"toSource"),t.exports=o}),SD=K((e,t)=>{var r=pb(),n=wD(),o=Ls(),a=db(),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,d=u.hasOwnProperty,y=RegExp("^"+c.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(h){if(!o(h)||n(h))return!1;var g=r(h)?y:s;return g.test(a(h))}F(f,"baseIsNative"),t.exports=f}),AD=K((e,t)=>{function r(n,o){return n?.[o]}F(r,"getValue"),t.exports=r}),sr=K((e,t)=>{var r=SD(),n=AD();function o(a,i){var s=n(a,i);return r(s)?s:void 0}F(o,"getNative"),t.exports=o}),TD=K((e,t)=>{var r=sr(),n=function(){try{var o=r(Object,"defineProperty");return o({},"",{}),o}catch{}}();t.exports=n}),CD=K((e,t)=>{var r=TD();function n(o,a,i){a=="__proto__"&&r?r(o,a,{configurable:!0,enumerable:!0,value:i,writable:!0}):o[a]=i}F(n,"baseAssignValue"),t.exports=n}),_D=K((e,t)=>{function r(n){return function(o,a,i){for(var s=-1,l=Object(o),u=i(o),c=u.length;c--;){var d=u[n?c:++s];if(a(l[d],d,l)===!1)break}return o}}F(r,"createBaseFor"),t.exports=r}),OD=K((e,t)=>{var r=_D(),n=r();t.exports=n}),ID=K((e,t)=>{function r(n,o){for(var a=-1,i=Array(n);++a{function r(n){return n!=null&&typeof n=="object"}F(r,"isObjectLike"),t.exports=r}),kD=K((e,t)=>{var r=Nn(),n=Bn(),o="[object Arguments]";function a(i){return n(i)&&r(i)==o}F(a,"baseIsArguments"),t.exports=a}),fb=K((e,t)=>{var r=kD(),n=Bn(),o=Object.prototype,a=o.hasOwnProperty,i=o.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(l){return n(l)&&a.call(l,"callee")&&!i.call(l,"callee")};t.exports=s}),Vt=K((e,t)=>{var r=Array.isArray;t.exports=r}),PD=K((e,t)=>{function r(){return!1}F(r,"stubFalse"),t.exports=r}),yb=K((e,t)=>{var r=It(),n=PD(),o=typeof e=="object"&&e&&!e.nodeType&&e,a=o&&typeof t=="object"&&t&&!t.nodeType&&t,i=a&&a.exports===o,s=i?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;t.exports=u}),hb=K((e,t)=>{var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function o(a,i){var s=typeof a;return i=i??r,!!i&&(s=="number"||s!="symbol"&&n.test(a))&&a>-1&&a%1==0&&a{var r=9007199254740991;function n(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=r}F(n,"isLength"),t.exports=n}),RD=K((e,t)=>{var r=Nn(),n=qs(),o=Bn(),a="[object Arguments]",i="[object Array]",s="[object Boolean]",l="[object Date]",u="[object Error]",c="[object Function]",d="[object Map]",y="[object Number]",f="[object Object]",h="[object RegExp]",g="[object Set]",C="[object String]",b="[object WeakMap]",E="[object ArrayBuffer]",_="[object DataView]",T="[object Float32Array]",O="[object Float64Array]",I="[object Int8Array]",D="[object Int16Array]",R="[object Int32Array]",M="[object Uint8Array]",z="[object Uint8ClampedArray]",Y="[object Uint16Array]",Z="[object Uint32Array]",V={};V[T]=V[O]=V[I]=V[D]=V[R]=V[M]=V[z]=V[Y]=V[Z]=!0,V[a]=V[i]=V[E]=V[s]=V[_]=V[l]=V[u]=V[c]=V[d]=V[y]=V[f]=V[h]=V[g]=V[C]=V[b]=!1;function P(q){return o(q)&&n(q.length)&&!!V[r(q)]}F(P,"baseIsTypedArray"),t.exports=P}),DD=K((e,t)=>{function r(n){return function(o){return n(o)}}F(r,"baseUnary"),t.exports=r}),FD=K((e,t)=>{var r=cb(),n=typeof e=="object"&&e&&!e.nodeType&&e,o=n&&typeof t=="object"&&t&&!t.nodeType&&t,a=o&&o.exports===n,i=a&&r.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();t.exports=s}),mb=K((e,t)=>{var r=RD(),n=DD(),o=FD(),a=o&&o.isTypedArray,i=a?n(a):r;t.exports=i}),jD=K((e,t)=>{var r=ID(),n=fb(),o=Vt(),a=yb(),i=hb(),s=mb(),l=Object.prototype,u=l.hasOwnProperty;function c(d,y){var f=o(d),h=!f&&n(d),g=!f&&!h&&a(d),C=!f&&!h&&!g&&s(d),b=f||h||g||C,E=b?r(d.length,String):[],_=E.length;for(var T in d)(y||u.call(d,T))&&!(b&&(T=="length"||g&&(T=="offset"||T=="parent")||C&&(T=="buffer"||T=="byteLength"||T=="byteOffset")||i(T,_)))&&E.push(T);return E}F(c,"arrayLikeKeys"),t.exports=c}),ND=K((e,t)=>{var r=Object.prototype;function n(o){var a=o&&o.constructor,i=typeof a=="function"&&a.prototype||r;return o===i}F(n,"isPrototype"),t.exports=n}),BD=K((e,t)=>{function r(n,o){return function(a){return n(o(a))}}F(r,"overArg"),t.exports=r}),LD=K((e,t)=>{var r=BD(),n=r(Object.keys,Object);t.exports=n}),qD=K((e,t)=>{var r=ND(),n=LD(),o=Object.prototype,a=o.hasOwnProperty;function i(s){if(!r(s))return n(s);var l=[];for(var u in Object(s))a.call(s,u)&&u!="constructor"&&l.push(u);return l}F(i,"baseKeys"),t.exports=i}),MD=K((e,t)=>{var r=pb(),n=qs();function o(a){return a!=null&&n(a.length)&&!r(a)}F(o,"isArrayLike"),t.exports=o}),Ms=K((e,t)=>{var r=jD(),n=qD(),o=MD();function a(i){return o(i)?r(i):n(i)}F(a,"keys"),t.exports=a}),UD=K((e,t)=>{var r=OD(),n=Ms();function o(a,i){return a&&r(a,i,n)}F(o,"baseForOwn"),t.exports=o}),$D=K((e,t)=>{function r(){this.__data__=[],this.size=0}F(r,"listCacheClear"),t.exports=r}),gb=K((e,t)=>{function r(n,o){return n===o||n!==n&&o!==o}F(r,"eq"),t.exports=r}),aa=K((e,t)=>{var r=gb();function n(o,a){for(var i=o.length;i--;)if(r(o[i][0],a))return i;return-1}F(n,"assocIndexOf"),t.exports=n}),zD=K((e,t)=>{var r=aa(),n=Array.prototype,o=n.splice;function a(i){var s=this.__data__,l=r(s,i);if(l<0)return!1;var u=s.length-1;return l==u?s.pop():o.call(s,l,1),--this.size,!0}F(a,"listCacheDelete"),t.exports=a}),VD=K((e,t)=>{var r=aa();function n(o){var a=this.__data__,i=r(a,o);return i<0?void 0:a[i][1]}F(n,"listCacheGet"),t.exports=n}),HD=K((e,t)=>{var r=aa();function n(o){return r(this.__data__,o)>-1}F(n,"listCacheHas"),t.exports=n}),JD=K((e,t)=>{var r=aa();function n(o,a){var i=this.__data__,s=r(i,o);return s<0?(++this.size,i.push([o,a])):i[s][1]=a,this}F(n,"listCacheSet"),t.exports=n}),ia=K((e,t)=>{var r=$D(),n=zD(),o=VD(),a=HD(),i=JD();function s(l){var u=-1,c=l==null?0:l.length;for(this.clear();++u{var r=ia();function n(){this.__data__=new r,this.size=0}F(n,"stackClear"),t.exports=n}),WD=K((e,t)=>{function r(n){var o=this.__data__,a=o.delete(n);return this.size=o.size,a}F(r,"stackDelete"),t.exports=r}),KD=K((e,t)=>{function r(n){return this.__data__.get(n)}F(r,"stackGet"),t.exports=r}),YD=K((e,t)=>{function r(n){return this.__data__.has(n)}F(r,"stackHas"),t.exports=r}),Us=K((e,t)=>{var r=sr(),n=It(),o=r(n,"Map");t.exports=o}),sa=K((e,t)=>{var r=sr(),n=r(Object,"create");t.exports=n}),XD=K((e,t)=>{var r=sa();function n(){this.__data__=r?r(null):{},this.size=0}F(n,"hashClear"),t.exports=n}),QD=K((e,t)=>{function r(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}F(r,"hashDelete"),t.exports=r}),ZD=K((e,t)=>{var r=sa(),n="__lodash_hash_undefined__",o=Object.prototype,a=o.hasOwnProperty;function i(s){var l=this.__data__;if(r){var u=l[s];return u===n?void 0:u}return a.call(l,s)?l[s]:void 0}F(i,"hashGet"),t.exports=i}),eF=K((e,t)=>{var r=sa(),n=Object.prototype,o=n.hasOwnProperty;function a(i){var s=this.__data__;return r?s[i]!==void 0:o.call(s,i)}F(a,"hashHas"),t.exports=a}),tF=K((e,t)=>{var r=sa(),n="__lodash_hash_undefined__";function o(a,i){var s=this.__data__;return this.size+=this.has(a)?0:1,s[a]=r&&i===void 0?n:i,this}F(o,"hashSet"),t.exports=o}),rF=K((e,t)=>{var r=XD(),n=QD(),o=ZD(),a=eF(),i=tF();function s(l){var u=-1,c=l==null?0:l.length;for(this.clear();++u{var r=rF(),n=ia(),o=Us();function a(){this.size=0,this.__data__={hash:new r,map:new(o||n),string:new r}}F(a,"mapCacheClear"),t.exports=a}),oF=K((e,t)=>{function r(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}F(r,"isKeyable"),t.exports=r}),la=K((e,t)=>{var r=oF();function n(o,a){var i=o.__data__;return r(a)?i[typeof a=="string"?"string":"hash"]:i.map}F(n,"getMapData"),t.exports=n}),aF=K((e,t)=>{var r=la();function n(o){var a=r(this,o).delete(o);return this.size-=a?1:0,a}F(n,"mapCacheDelete"),t.exports=n}),iF=K((e,t)=>{var r=la();function n(o){return r(this,o).get(o)}F(n,"mapCacheGet"),t.exports=n}),sF=K((e,t)=>{var r=la();function n(o){return r(this,o).has(o)}F(n,"mapCacheHas"),t.exports=n}),lF=K((e,t)=>{var r=la();function n(o,a){var i=r(this,o),s=i.size;return i.set(o,a),this.size+=i.size==s?0:1,this}F(n,"mapCacheSet"),t.exports=n}),$s=K((e,t)=>{var r=nF(),n=aF(),o=iF(),a=sF(),i=lF();function s(l){var u=-1,c=l==null?0:l.length;for(this.clear();++u{var r=ia(),n=Us(),o=$s(),a=200;function i(s,l){var u=this.__data__;if(u instanceof r){var c=u.__data__;if(!n||c.length{var r=ia(),n=GD(),o=WD(),a=KD(),i=YD(),s=uF();function l(u){var c=this.__data__=new r(u);this.size=c.size}F(l,"Stack"),l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,t.exports=l}),cF=K((e,t)=>{var r="__lodash_hash_undefined__";function n(o){return this.__data__.set(o,r),this}F(n,"setCacheAdd"),t.exports=n}),pF=K((e,t)=>{function r(n){return this.__data__.has(n)}F(r,"setCacheHas"),t.exports=r}),dF=K((e,t)=>{var r=$s(),n=cF(),o=pF();function a(i){var s=-1,l=i==null?0:i.length;for(this.__data__=new r;++s{function r(n,o){for(var a=-1,i=n==null?0:n.length;++a{function r(n,o){return n.has(o)}F(r,"cacheHas"),t.exports=r}),vb=K((e,t)=>{var r=dF(),n=fF(),o=yF(),a=1,i=2;function s(l,u,c,d,y,f){var h=c&a,g=l.length,C=u.length;if(g!=C&&!(h&&C>g))return!1;var b=f.get(l),E=f.get(u);if(b&&E)return b==u&&E==l;var _=-1,T=!0,O=c&i?new r:void 0;for(f.set(l,u),f.set(u,l);++_{var r=It(),n=r.Uint8Array;t.exports=n}),mF=K((e,t)=>{function r(n){var o=-1,a=Array(n.size);return n.forEach(function(i,s){a[++o]=[s,i]}),a}F(r,"mapToArray"),t.exports=r}),gF=K((e,t)=>{function r(n){var o=-1,a=Array(n.size);return n.forEach(function(i){a[++o]=i}),a}F(r,"setToArray"),t.exports=r}),bF=K((e,t)=>{var r=oa(),n=hF(),o=gb(),a=vb(),i=mF(),s=gF(),l=1,u=2,c="[object Boolean]",d="[object Date]",y="[object Error]",f="[object Map]",h="[object Number]",g="[object RegExp]",C="[object Set]",b="[object String]",E="[object Symbol]",_="[object ArrayBuffer]",T="[object DataView]",O=r?r.prototype:void 0,I=O?O.valueOf:void 0;function D(R,M,z,Y,Z,V,P){switch(z){case T:if(R.byteLength!=M.byteLength||R.byteOffset!=M.byteOffset)return!1;R=R.buffer,M=M.buffer;case _:return!(R.byteLength!=M.byteLength||!V(new n(R),new n(M)));case c:case d:case h:return o(+R,+M);case y:return R.name==M.name&&R.message==M.message;case g:case b:return R==M+"";case f:var q=i;case C:var J=Y&l;if(q||(q=s),R.size!=M.size&&!J)return!1;var X=P.get(R);if(X)return X==M;Y|=u,P.set(R,M);var te=a(q(R),q(M),Y,Z,V,P);return P.delete(R),te;case E:if(I)return I.call(R)==I.call(M)}return!1}F(D,"equalByTag"),t.exports=D}),vF=K((e,t)=>{function r(n,o){for(var a=-1,i=o.length,s=n.length;++a{var r=vF(),n=Vt();function o(a,i,s){var l=i(a);return n(a)?l:r(l,s(a))}F(o,"baseGetAllKeys"),t.exports=o}),xF=K((e,t)=>{function r(n,o){for(var a=-1,i=n==null?0:n.length,s=0,l=[];++a{function r(){return[]}F(r,"stubArray"),t.exports=r}),SF=K((e,t)=>{var r=xF(),n=wF(),o=Object.prototype,a=o.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(l){return l==null?[]:(l=Object(l),r(i(l),function(u){return a.call(l,u)}))}:n;t.exports=s}),AF=K((e,t)=>{var r=EF(),n=SF(),o=Ms();function a(i){return r(i,o,n)}F(a,"getAllKeys"),t.exports=a}),TF=K((e,t)=>{var r=AF(),n=1,o=Object.prototype,a=o.hasOwnProperty;function i(s,l,u,c,d,y){var f=u&n,h=r(s),g=h.length,C=r(l),b=C.length;if(g!=b&&!f)return!1;for(var E=g;E--;){var _=h[E];if(!(f?_ in l:a.call(l,_)))return!1}var T=y.get(s),O=y.get(l);if(T&&O)return T==l&&O==s;var I=!0;y.set(s,l),y.set(l,s);for(var D=f;++E{var r=sr(),n=It(),o=r(n,"DataView");t.exports=o}),_F=K((e,t)=>{var r=sr(),n=It(),o=r(n,"Promise");t.exports=o}),OF=K((e,t)=>{var r=sr(),n=It(),o=r(n,"Set");t.exports=o}),IF=K((e,t)=>{var r=sr(),n=It(),o=r(n,"WeakMap");t.exports=o}),kF=K((e,t)=>{var r=CF(),n=Us(),o=_F(),a=OF(),i=IF(),s=Nn(),l=db(),u="[object Map]",c="[object Object]",d="[object Promise]",y="[object Set]",f="[object WeakMap]",h="[object DataView]",g=l(r),C=l(n),b=l(o),E=l(a),_=l(i),T=s;(r&&T(new r(new ArrayBuffer(1)))!=h||n&&T(new n)!=u||o&&T(o.resolve())!=d||a&&T(new a)!=y||i&&T(new i)!=f)&&(T=F(function(O){var I=s(O),D=I==c?O.constructor:void 0,R=D?l(D):"";if(R)switch(R){case g:return h;case C:return u;case b:return d;case E:return y;case _:return f}return I},"getTag")),t.exports=T}),PF=K((e,t)=>{var r=bb(),n=vb(),o=bF(),a=TF(),i=kF(),s=Vt(),l=yb(),u=mb(),c=1,d="[object Arguments]",y="[object Array]",f="[object Object]",h=Object.prototype,g=h.hasOwnProperty;function C(b,E,_,T,O,I){var D=s(b),R=s(E),M=D?y:i(b),z=R?y:i(E);M=M==d?f:M,z=z==d?f:z;var Y=M==f,Z=z==f,V=M==z;if(V&&l(b)){if(!l(E))return!1;D=!0,Y=!1}if(V&&!Y)return I||(I=new r),D||u(b)?n(b,E,_,T,O,I):o(b,E,M,_,T,O,I);if(!(_&c)){var P=Y&&g.call(b,"__wrapped__"),q=Z&&g.call(E,"__wrapped__");if(P||q){var J=P?b.value():b,X=q?E.value():E;return I||(I=new r),O(J,X,_,T,I)}}return V?(I||(I=new r),a(b,E,_,T,O,I)):!1}F(C,"baseIsEqualDeep"),t.exports=C}),Eb=K((e,t)=>{var r=PF(),n=Bn();function o(a,i,s,l,u){return a===i?!0:a==null||i==null||!n(a)&&!n(i)?a!==a&&i!==i:r(a,i,s,l,o,u)}F(o,"baseIsEqual"),t.exports=o}),RF=K((e,t)=>{var r=bb(),n=Eb(),o=1,a=2;function i(s,l,u,c){var d=u.length,y=d,f=!c;if(s==null)return!y;for(s=Object(s);d--;){var h=u[d];if(f&&h[2]?h[1]!==s[h[0]]:!(h[0]in s))return!1}for(;++d{var r=Ls();function n(o){return o===o&&!r(o)}F(n,"isStrictComparable"),t.exports=n}),DF=K((e,t)=>{var r=xb(),n=Ms();function o(a){for(var i=n(a),s=i.length;s--;){var l=i[s],u=a[l];i[s]=[l,u,r(u)]}return i}F(o,"getMatchData"),t.exports=o}),wb=K((e,t)=>{function r(n,o){return function(a){return a==null?!1:a[n]===o&&(o!==void 0||n in Object(a))}}F(r,"matchesStrictComparable"),t.exports=r}),FF=K((e,t)=>{var r=RF(),n=DF(),o=wb();function a(i){var s=n(i);return s.length==1&&s[0][2]?o(s[0][0],s[0][1]):function(l){return l===i||r(l,i,s)}}F(a,"baseMatches"),t.exports=a}),zs=K((e,t)=>{var r=Nn(),n=Bn(),o="[object Symbol]";function a(i){return typeof i=="symbol"||n(i)&&r(i)==o}F(a,"isSymbol"),t.exports=a}),Vs=K((e,t)=>{var r=Vt(),n=zs(),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function i(s,l){if(r(s))return!1;var u=typeof s;return u=="number"||u=="symbol"||u=="boolean"||s==null||n(s)?!0:a.test(s)||!o.test(s)||l!=null&&s in Object(l)}F(i,"isKey"),t.exports=i}),jF=K((e,t)=>{var r=$s(),n="Expected a function";function o(a,i){if(typeof a!="function"||i!=null&&typeof i!="function")throw new TypeError(n);var s=F(function(){var l=arguments,u=i?i.apply(this,l):l[0],c=s.cache;if(c.has(u))return c.get(u);var d=a.apply(this,l);return s.cache=c.set(u,d)||c,d},"memoized");return s.cache=new(o.Cache||r),s}F(o,"memoize"),o.Cache=r,t.exports=o}),NF=K((e,t)=>{var r=jF(),n=500;function o(a){var i=r(a,function(l){return s.size===n&&s.clear(),l}),s=i.cache;return i}F(o,"memoizeCapped"),t.exports=o}),BF=K((e,t)=>{var r=NF(),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(n,function(l,u,c,d){s.push(c?d.replace(o,"$1"):u||l)}),s});t.exports=a}),LF=K((e,t)=>{function r(n,o){for(var a=-1,i=n==null?0:n.length,s=Array(i);++a{var r=oa(),n=LF(),o=Vt(),a=zs(),i=1/0,s=r?r.prototype:void 0,l=s?s.toString:void 0;function u(c){if(typeof c=="string")return c;if(o(c))return n(c,u)+"";if(a(c))return l?l.call(c):"";var d=c+"";return d=="0"&&1/c==-i?"-0":d}F(u,"baseToString"),t.exports=u}),MF=K((e,t)=>{var r=qF();function n(o){return o==null?"":r(o)}F(n,"toString"),t.exports=n}),Sb=K((e,t)=>{var r=Vt(),n=Vs(),o=BF(),a=MF();function i(s,l){return r(s)?s:n(s,l)?[s]:o(a(s))}F(i,"castPath"),t.exports=i}),ua=K((e,t)=>{var r=zs(),n=1/0;function o(a){if(typeof a=="string"||r(a))return a;var i=a+"";return i=="0"&&1/a==-n?"-0":i}F(o,"toKey"),t.exports=o}),Ab=K((e,t)=>{var r=Sb(),n=ua();function o(a,i){i=r(i,a);for(var s=0,l=i.length;a!=null&&s{var r=Ab();function n(o,a,i){var s=o==null?void 0:r(o,a);return s===void 0?i:s}F(n,"get"),t.exports=n}),$F=K((e,t)=>{function r(n,o){return n!=null&&o in Object(n)}F(r,"baseHasIn"),t.exports=r}),zF=K((e,t)=>{var r=Sb(),n=fb(),o=Vt(),a=hb(),i=qs(),s=ua();function l(u,c,d){c=r(c,u);for(var y=-1,f=c.length,h=!1;++y{var r=$F(),n=zF();function o(a,i){return a!=null&&n(a,i,r)}F(o,"hasIn"),t.exports=o}),HF=K((e,t)=>{var r=Eb(),n=UF(),o=VF(),a=Vs(),i=xb(),s=wb(),l=ua(),u=1,c=2;function d(y,f){return a(y)&&i(f)?s(l(y),f):function(h){var g=n(h,y);return g===void 0&&g===f?o(h,y):r(f,g,u|c)}}F(d,"baseMatchesProperty"),t.exports=d}),JF=K((e,t)=>{function r(n){return n}F(r,"identity"),t.exports=r}),GF=K((e,t)=>{function r(n){return function(o){return o?.[n]}}F(r,"baseProperty"),t.exports=r}),WF=K((e,t)=>{var r=Ab();function n(o){return function(a){return r(a,o)}}F(n,"basePropertyDeep"),t.exports=n}),KF=K((e,t)=>{var r=GF(),n=WF(),o=Vs(),a=ua();function i(s){return o(s)?r(a(s)):n(s)}F(i,"property"),t.exports=i}),YF=K((e,t)=>{var r=FF(),n=HF(),o=JF(),a=Vt(),i=KF();function s(l){return typeof l=="function"?l:l==null?o:typeof l=="object"?a(l)?n(l[0],l[1]):r(l):i(l)}F(s,"baseIteratee"),t.exports=s}),XF=K((e,t)=>{var r=CD(),n=UD(),o=YF();function a(i,s){var l={};return s=o(s,3),n(i,function(u,c,d){r(l,c,s(u,c,d))}),l}F(a,"mapValues"),t.exports=a}),QF=F(e=>e.name==="literal","isLiteral"),ZF=F(e=>e.value.replace(/['|"]/g,""),"toEnumOption"),ej=F(e=>{switch(e.type){case"function":return{name:"function"};case"object":let t={};return e.signature.properties.forEach(r=>{t[r.key]=Fn(r.value)}),{name:"object",value:t};default:throw new Lo({type:e,language:"Flow"})}},"convertSig"),Fn=F(e=>{let{name:t,raw:r}=e,n={};switch(typeof r<"u"&&(n.raw=r),e.name){case"literal":return{...n,name:"other",value:e.value};case"string":case"number":case"symbol":case"boolean":return{...n,name:t};case"Array":return{...n,name:"array",value:e.elements.map(Fn)};case"signature":return{...n,...ej(e)};case"union":return e.elements?.every(QF)?{...n,name:"enum",value:e.elements?.map(ZF)}:{...n,name:t,value:e.elements?.map(Fn)};case"intersection":return{...n,name:t,value:e.elements?.map(Fn)};default:return{...n,name:"other",value:t}}},"convert"),tj=bD(XF(),1),Tb=/^['"]|['"]$/g,rj=F(e=>e.replace(Tb,""),"trimQuotes"),nj=F(e=>Tb.test(e),"includesQuotes"),Cb=F(e=>{let t=rj(e);return nj(e)||Number.isNaN(Number(t))?t:Number(t)},"parseLiteral"),oj=/^\(.*\) => /,Dn=F(e=>{let{name:t,raw:r,computed:n,value:o}=e,a={};switch(typeof r<"u"&&(a.raw=r),t){case"enum":{let s=n?o:o.map(l=>Cb(l.value));return{...a,name:t,value:s}}case"string":case"number":case"symbol":return{...a,name:t};case"func":return{...a,name:"function"};case"bool":case"boolean":return{...a,name:"boolean"};case"arrayOf":case"array":return{...a,name:"array",value:o&&Dn(o)};case"object":return{...a,name:t};case"objectOf":return{...a,name:t,value:Dn(o)};case"shape":case"exact":let i=(0,tj.default)(o,s=>Dn(s));return{...a,name:"object",value:i};case"union":return{...a,name:"union",value:o.map(s=>Dn(s))};case"instanceOf":case"element":case"elementType":default:{if(t?.indexOf("|")>0)try{let u=t.split("|").map(c=>JSON.parse(c));return{...a,name:"enum",value:u}}catch{}let s=o?`${t}(${o})`:t,l=oj.test(t)?"function":"other";return{...a,name:l,value:s}}}},"convert"),aj=F(e=>{switch(e.type){case"function":return{name:"function"};case"object":let t={};return e.signature.properties.forEach(r=>{t[r.key]=jn(r.value)}),{name:"object",value:t};default:throw new Lo({type:e,language:"Typescript"})}},"convertSig"),jn=F(e=>{let{name:t,raw:r}=e,n={};switch(typeof r<"u"&&(n.raw=r),e.name){case"string":case"number":case"symbol":case"boolean":return{...n,name:t};case"Array":return{...n,name:"array",value:e.elements.map(jn)};case"signature":return{...n,...aj(e)};case"union":let o;return e.elements?.every(a=>a.name==="literal")?o={...n,name:"enum",value:e.elements?.map(a=>Cb(a.value))}:o={...n,name:t,value:e.elements?.map(jn)},o;case"intersection":return{...n,name:t,value:e.elements?.map(jn)};default:return{...n,name:"other",value:t}}},"convert"),Hs=F(e=>{let{type:t,tsType:r,flowType:n}=e;try{if(t!=null)return Dn(t);if(r!=null)return jn(r);if(n!=null)return Fn(n)}catch(o){console.error(o)}return null},"convert"),ij=(e=>(e.JAVASCRIPT="JavaScript",e.FLOW="Flow",e.TYPESCRIPT="TypeScript",e.UNKNOWN="Unknown",e))(ij||{}),sj=["null","undefined"];function ca(e){return sj.some(t=>t===e)}F(ca,"isDefaultValueBlacklisted");var lj=F(e=>{if(!e)return"";if(typeof e=="string")return e;throw new Error(`Description: expected string, got: ${JSON.stringify(e)}`)},"str");function Js(e){return!!e.__docgenInfo}F(Js,"hasDocgen");function _b(e){return e!=null&&Object.keys(e).length>0}F(_b,"isValidDocgenSection");function Ob(e,t){return Js(e)?e.__docgenInfo[t]:null}F(Ob,"getDocgenSection");function Ib(e){return Js(e)?lj(e.__docgenInfo.description):""}F(Ib,"getDocgenDescription");var zt;(function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"})(zt=zt||(zt={}));function kb(e){return/^\s+$/.test(e)}F(kb,"isSpace");function Pb(e){let t=e.match(/\r+$/);return t==null?["",e]:[e.slice(-t[0].length),e.slice(0,-t[0].length)]}F(Pb,"splitCR");function ir(e){let t=e.match(/^\s+/);return t==null?["",e]:[e.slice(0,t[0].length),e.slice(t[0].length)]}F(ir,"splitSpace");function Rb(e){return e.split(/\n/)}F(Rb,"splitLines");function Db(e={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},e)}F(Db,"seedSpec");function Fb(e={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},e)}F(Fb,"seedTokens");var uj=/^@\S+/;function jb({fence:e="```"}={}){let t=Nb(e),r=F((n,o)=>t(n)?!o:o,"toggleFence");return F(function(n){let o=[[]],a=!1;for(let i of n)uj.test(i.tokens.description)&&!a?o.push([i]):o[o.length-1].push(i),a=r(i.tokens.description,a);return o},"parseBlock")}F(jb,"getParser");function Nb(e){return typeof e=="string"?t=>t.split(e).length%2===0:e}F(Nb,"getFencer");function Bb({startLine:e=0,markers:t=zt}={}){let r=null,n=e;return F(function(o){let a=o,i=Fb();if([i.lineEnd,a]=Pb(a),[i.start,a]=ir(a),r===null&&a.startsWith(t.start)&&!a.startsWith(t.nostart)&&(r=[],i.delimiter=a.slice(0,t.start.length),a=a.slice(t.start.length),[i.postDelimiter,a]=ir(a)),r===null)return n++,null;let s=a.trimRight().endsWith(t.end);if(i.delimiter===""&&a.startsWith(t.delim)&&!a.startsWith(t.end)&&(i.delimiter=t.delim,a=a.slice(t.delim.length),[i.postDelimiter,a]=ir(a)),s){let l=a.trimRight();i.end=a.slice(l.length-t.end.length),a=l.slice(0,-t.end.length)}if(i.description=a,r.push({number:n,source:o,tokens:i}),n++,s){let l=r.slice();return r=null,l}return null},"parseSource")}F(Bb,"getParser");function Lb({tokenizers:e}){return F(function(t){var r;let n=Db({source:t});for(let o of e)if(n=o(n),!((r=n.problems[n.problems.length-1])===null||r===void 0)&&r.critical)break;return n},"parseSpec")}F(Lb,"getParser");function qb(){return e=>{let{tokens:t}=e.source[0],r=t.description.match(/\s*(@(\S+))(\s*)/);return r===null?(e.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:e.source[0].number,critical:!0}),e):(t.tag=r[1],t.postTag=r[3],t.description=t.description.slice(r[0].length),e.tag=r[2],e)}}F(qb,"tagTokenizer");function Mb(e="compact"){let t=Ub(e);return r=>{let n=0,o=[];for(let[s,{tokens:l}]of r.source.entries()){let u="";if(s===0&&l.description[0]!=="{")return r;for(let c of l.description)if(c==="{"&&n++,c==="}"&&n--,u+=c,n===0)break;if(o.push([l,u]),n===0)break}if(n!==0)return r.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:r.source[0].number,critical:!0}),r;let a=[],i=o[0][0].postDelimiter.length;for(let[s,[l,u]]of o.entries())l.type=u,s>0&&(l.type=l.postDelimiter.slice(i)+u,l.postDelimiter=l.postDelimiter.slice(0,i)),[l.postType,l.description]=ir(l.description.slice(u.length)),a.push(l.type);return a[0]=a[0].slice(1),a[a.length-1]=a[a.length-1].slice(0,-1),r.type=t(a),r}}F(Mb,"typeTokenizer");var cj=F(e=>e.trim(),"trim");function Ub(e){return e==="compact"?t=>t.map(cj).join(""):e==="preserve"?t=>t.join(` +`):e}F(Ub,"getJoiner");var pj=F(e=>e&&e.startsWith('"')&&e.endsWith('"'),"isQuoted");function $b(){let e=F((t,{tokens:r},n)=>r.type===""?t:n,"typeEnd");return t=>{let{tokens:r}=t.source[t.source.reduce(e,0)],n=r.description.trimLeft(),o=n.split('"');if(o.length>1&&o[0]===""&&o.length%2===1)return t.name=o[1],r.name=`"${o[1]}"`,[r.postName,r.description]=ir(n.slice(r.name.length)),t;let a=0,i="",s=!1,l;for(let c of n){if(a===0&&kb(c))break;c==="["&&a++,c==="]"&&a--,i+=c}if(a!==0)return t.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:t.source[0].number,critical:!0}),t;let u=i;if(i[0]==="["&&i[i.length-1]==="]"){s=!0,i=i.slice(1,-1);let c=i.split("=");if(i=c[0].trim(),c[1]!==void 0&&(l=c.slice(1).join("=").trim()),i==="")return t.problems.push({code:"spec:name:empty-name",message:"empty name",line:t.source[0].number,critical:!0}),t;if(l==="")return t.problems.push({code:"spec:name:empty-default",message:"empty default value",line:t.source[0].number,critical:!0}),t;if(!pj(l)&&/=(?!>)/.test(l))return t.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:t.source[0].number,critical:!0}),t}return t.optional=s,t.name=i,r.name=u,l!==void 0&&(t.default=l),[r.postName,r.description]=ir(n.slice(r.name.length)),t}}F($b,"nameTokenizer");function zb(e="compact",t=zt){let r=Gs(e);return n=>(n.description=r(n.source,t),n)}F(zb,"descriptionTokenizer");function Gs(e){return e==="compact"?Vb:e==="preserve"?Hb:e}F(Gs,"getJoiner");function Vb(e,t=zt){return e.map(({tokens:{description:r}})=>r.trim()).filter(r=>r!=="").join(" ")}F(Vb,"compactJoiner");var dj=F((e,{tokens:t},r)=>t.type===""?e:r,"lineNo"),fj=F(({tokens:e})=>(e.delimiter===""?e.start:e.postDelimiter.slice(1))+e.description,"getDescription");function Hb(e,t=zt){if(e.length===0)return"";e[0].tokens.description===""&&e[0].tokens.delimiter===t.start&&(e=e.slice(1));let r=e[e.length-1];return r!==void 0&&r.tokens.description===""&&r.tokens.end.endsWith(t.end)&&(e=e.slice(0,-1)),e=e.slice(e.reduce(dj,0)),e.map(fj).join(` +`)}F(Hb,"preserveJoiner");function Jb({startLine:e=0,fence:t="```",spacing:r="compact",markers:n=zt,tokenizers:o=[qb(),Mb(r),$b(),zb(r)]}={}){if(e<0||e%1>0)throw new Error("Invalid startLine");let a=Bb({startLine:e,markers:n}),i=jb({fence:t}),s=Lb({tokenizers:o}),l=Gs(r);return function(u){let c=[];for(let d of Rb(u)){let y=a(d);if(y===null)continue;let f=i(y),h=f.slice(1).map(s);c.push({description:l(f[0],n),tags:h,source:y,problems:h.reduce((g,C)=>g.concat(C.problems),[])})}return c}}F(Jb,"getParser");function Gb(e){return e.start+e.delimiter+e.postDelimiter+e.tag+e.postTag+e.type+e.postType+e.name+e.postName+e.description+e.end+e.lineEnd}F(Gb,"join");function Wb(){return e=>e.source.map(({tokens:t})=>Gb(t)).join(` +`)}F(Wb,"getStringifier");var yj={line:0,start:0,delimiter:0,postDelimiter:0,tag:0,postTag:0,name:0,postName:0,type:0,postType:0,description:0,end:0,lineEnd:0},Nne=Object.keys(yj);function Kb(e,t={}){return Jb(t)(e)}F(Kb,"parse");var Bne=Wb();function Yb(e){return e!=null&&e.includes("@")}F(Yb,"containsJsDoc");function Xb(e){let t=`/** +`+(e??"").split(` +`).map(n=>` * ${n}`).join(` +`)+` +*/`,r=Kb(t,{spacing:"preserve"});if(!r||r.length===0)throw new Error("Cannot parse JSDoc tags.");return r[0]}F(Xb,"parse");var hj={tags:["param","arg","argument","returns","ignore","deprecated"]},mj=F((e,t=hj)=>{if(!Yb(e))return{includesJsDoc:!1,ignore:!1};let r=Xb(e),n=Qb(r,t.tags);return n.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:r.description.trim(),extractedTags:n}},"parseJsDoc");function Qb(e,t){let r={params:null,deprecated:null,returns:null,ignore:!1};for(let n of e.tags)if(!(t!==void 0&&!t.includes(n.tag)))if(n.tag==="ignore"){r.ignore=!0;break}else switch(n.tag){case"param":case"arg":case"argument":{let o=e0(n);o!=null&&(r.params==null&&(r.params=[]),r.params.push(o));break}case"deprecated":{let o=t0(n);o!=null&&(r.deprecated=o);break}case"returns":{let o=r0(n);o!=null&&(r.returns=o);break}default:break}return r}F(Qb,"extractJsDocTags");function Zb(e){return e.replace(/[\.-]$/,"")}F(Zb,"normaliseParamName");function e0(e){if(!e.name||e.name==="-")return null;let t=Ys(e.type);return{name:e.name,type:t,description:Ks(e.description),getPrettyName:F(()=>Zb(e.name),"getPrettyName"),getTypeName:F(()=>t?Xs(t):null,"getTypeName")}}F(e0,"extractParam");function t0(e){return e.name?Ws(e.name,e.description):null}F(t0,"extractDeprecated");function Ws(e,t){let r=e===""?t:`${e} ${t}`;return Ks(r)}F(Ws,"joinNameAndDescription");function Ks(e){let t=e.replace(/^- /g,"").trim();return t===""?null:t}F(Ks,"normaliseDescription");function r0(e){let t=Ys(e.type);return t?{type:t,description:Ws(e.name,e.description),getTypeName:F(()=>Xs(t),"getTypeName")}:null}F(r0,"extractReturns");var Ht=(0,Ur.stringifyRules)(),gj=Ht.JsdocTypeObject;Ht.JsdocTypeAny=()=>"any";Ht.JsdocTypeObject=(e,t)=>`(${gj(e,t)})`;Ht.JsdocTypeOptional=(e,t)=>t(e.element);Ht.JsdocTypeNullable=(e,t)=>t(e.element);Ht.JsdocTypeNotNullable=(e,t)=>t(e.element);Ht.JsdocTypeUnion=(e,t)=>e.elements.map(t).join("|");function Ys(e){try{return(0,Ur.parse)(e,"typescript")}catch{return null}}F(Ys,"extractType");function Xs(e){return(0,Ur.transform)(Ht,e)}F(Xs,"extractTypeName");function Qs(e){return e.length>90}F(Qs,"isTooLongForTypeSummary");function n0(e){return e.length>50}F(n0,"isTooLongForDefaultValueSummary");function Re(e,t){return e===t?{summary:e}:{summary:e,detail:t}}F(Re,"createSummaryValue");var Lne=F(e=>e.replace(/\\r\\n/g,"\\n"),"normalizeNewlines");function o0(e,t){if(e!=null){let{value:r}=e;if(!ca(r))return n0(r)?Re(t?.name,r):Re(r)}return null}F(o0,"createDefaultValue");function Zs({name:e,value:t,elements:r,raw:n}){return t??(r!=null?r.map(Zs).join(" | "):n??e)}F(Zs,"generateUnionElement");function a0({name:e,raw:t,elements:r}){return r!=null?Re(r.map(Zs).join(" | ")):t!=null?Re(t.replace(/^\|\s*/,"")):Re(e)}F(a0,"generateUnion");function i0({type:e,raw:t}){return t!=null?Re(t):Re(e)}F(i0,"generateFuncSignature");function s0({type:e,raw:t}){return t!=null?Qs(t)?Re(e,t):Re(t):Re(e)}F(s0,"generateObjectSignature");function l0(e){let{type:t}=e;return t==="object"?s0(e):i0(e)}F(l0,"generateSignature");function u0({name:e,raw:t}){return t!=null?Qs(t)?Re(e,t):Re(t):Re(e)}F(u0,"generateDefault");function c0(e){if(e==null)return null;switch(e.name){case"union":return a0(e);case"signature":return l0(e);default:return u0(e)}}F(c0,"createType");var bj=F((e,t)=>{let{flowType:r,description:n,required:o,defaultValue:a}=t;return{name:e,type:c0(r),required:o,description:n,defaultValue:o0(a??null,r??null)}},"createFlowPropDef");function p0({defaultValue:e}){if(e!=null){let{value:t}=e;if(!ca(t))return Re(t)}return null}F(p0,"createDefaultValue");function d0({tsType:e,required:t}){if(e==null)return null;let r=e.name;return t||(r=r.replace(" | undefined","")),Re(["Array","Record","signature"].includes(e.name)?e.raw:r)}F(d0,"createType");var vj=F((e,t)=>{let{description:r,required:n}=t;return{name:e,type:d0(t),required:n,description:r,defaultValue:p0(t)}},"createTsPropDef");function f0(e){return e!=null?Re(e.name):null}F(f0,"createType");function y0(e){let{computed:t,func:r}=e;return typeof t>"u"&&typeof r>"u"}F(y0,"isReactDocgenTypescript");function h0(e){return e?e.name==="string"?!0:e.name==="enum"?Array.isArray(e.value)&&e.value.every(({value:t})=>typeof t=="string"&&t[0]==='"'&&t[t.length-1]==='"'):!1:!1}F(h0,"isStringValued");function m0(e,t){if(e!=null){let{value:r}=e;if(!ca(r))return y0(e)&&h0(t)?Re(JSON.stringify(r)):Re(r)}return null}F(m0,"createDefaultValue");function el(e,t,r){let{description:n,required:o,defaultValue:a}=r;return{name:e,type:f0(t),required:o,description:n,defaultValue:m0(a,t)}}F(el,"createBasicPropDef");function Ln(e,t){if(t?.includesJsDoc){let{description:r,extractedTags:n}=t;r!=null&&(e.description=t.description);let o={...n,params:n?.params?.map(a=>({name:a.getPrettyName(),description:a.description}))};Object.values(o).filter(Boolean).length>0&&(e.jsDocTags=o)}return e}F(Ln,"applyJsDocResult");var Ej=F((e,t,r)=>{let n=el(e,t.type,t);return n.sbType=Hs(t),Ln(n,r)},"javaScriptFactory"),xj=F((e,t,r)=>{let n=vj(e,t);return n.sbType=Hs(t),Ln(n,r)},"tsFactory"),wj=F((e,t,r)=>{let n=bj(e,t);return n.sbType=Hs(t),Ln(n,r)},"flowFactory"),Sj=F((e,t,r)=>{let n=el(e,{name:"unknown"},t);return Ln(n,r)},"unknownFactory"),g0=F(e=>{switch(e){case"JavaScript":return Ej;case"TypeScript":return xj;case"Flow":return wj;default:return Sj}},"getPropDefFactory"),b0=F(e=>e.type!=null?"JavaScript":e.flowType!=null?"Flow":e.tsType!=null?"TypeScript":"Unknown","getTypeSystem"),Aj=F(e=>{let t=b0(e[0]),r=g0(t);return e.map(n=>{let o=n;return n.type?.elements&&(o={...n,type:{...n.type,value:n.type.elements}}),tl(o.name,o,t,r)})},"extractComponentSectionArray"),Tj=F(e=>{let t=Object.keys(e),r=b0(e[t[0]]),n=g0(r);return t.map(o=>{let a=e[o];return a!=null?tl(o,a,r,n):null}).filter(Boolean)},"extractComponentSectionObject"),qne=F((e,t)=>{let r=Ob(e,t);return _b(r)?Array.isArray(r)?Aj(r):Tj(r):[]},"extractComponentProps");function tl(e,t,r,n){let o=mj(t.description);return o.includesJsDoc&&o.ignore?null:{propDef:n(e,t,o),jsDocTags:o.extractedTags,docgenInfo:t,typeSystem:r}}F(tl,"extractProp");function Cj(e){return e!=null?Ib(e):""}F(Cj,"extractComponentDescription");var Une=F(e=>{let{component:t,argTypes:r,parameters:{docs:n={}}}=e,{extractArgTypes:o}=n,a=o&&t?o(t):{};return a?Ct(a,r):r},"enhanceArgTypes"),v0="storybook/docs",$ne=`${v0}/panel`;var zne=`${v0}/snippet-rendered`,_j=(e=>(e.AUTO="auto",e.CODE="code",e.DYNAMIC="dynamic",e))(_j||{}),Oj=/(addons\/|addon-|addon-essentials\/)(docs|controls)/,Vne=F(e=>e.presetsList?.some(t=>Oj.test(t.name)),"hasDocsOrControls");w();S();A();w();S();A();var ooe=__STORYBOOK_CHANNELS__,{Channel:aoe,PostMessageTransport:ioe,WebsocketTransport:soe,createBrowserChannel:loe}=__STORYBOOK_CHANNELS__;var Dv=Yt({"../../node_modules/memoizerific/memoizerific.js"(e,t){(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"||typeof window<"u"?n=window:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return function r(n,o,a){function i(u,c){if(!o[u]){if(!n[u]){var d=typeof an=="function"&&an;if(!c&&d)return d(u,!0);if(s)return s(u,!0);var y=new Error("Cannot find module '"+u+"'");throw y.code="MODULE_NOT_FOUND",y}var f=o[u]={exports:{}};n[u][0].call(f.exports,function(h){var g=n[u][1][h];return i(g||h)},f,f.exports,r,n,o,a)}return o[u].exports}for(var s=typeof an=="function"&&an,l=0;l=0)return this.lastItem=this.list[s],this.list[s].val},a.prototype.set=function(i,s){var l;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=s,this):(l=this.indexOf(i),l>=0?(this.lastItem=this.list[l],this.list[l].val=s,this):(this.lastItem={key:i,val:s},this.list.push(this.lastItem),this.size++,this))},a.prototype.delete=function(i){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),s=this.indexOf(i),s>=0)return this.size--,this.list.splice(s,1)[0]},a.prototype.has=function(i){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],!0):!1)},a.prototype.forEach=function(i,s){var l;for(l=0;l0&&(E[b]={cacheItem:h,arg:arguments[b]},_?i(d,E):d.push(E),d.length>u&&s(d.shift())),f.wasMemoized=_,f.numArgs=b+1,C};return f.limit=u,f.wasMemoized=!1,f.cache=c,f.lru=d,f}};function i(u,c){var d=u.length,y=c.length,f,h,g;for(h=0;h=0&&(d=u[f],y=d.cacheItem.get(d.arg),!y||!y.size);f--)d.cacheItem.delete(d.arg)}function l(u,c){return u===c||u!==u&&c!==c}},{"map-or-similar":1}]},{},[3])(3)})}});function Jr(){return Jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?o-1:0),i=1;i=0&&o<1?(s=a,l=i):o>=1&&o<2?(s=i,l=a):o>=2&&o<3?(l=a,u=i):o>=3&&o<4?(l=i,u=a):o>=4&&o<5?(s=i,u=a):o>=5&&o<6&&(s=a,u=i);var c=r-a/2,d=s+c,y=l+c,f=u+c;return n(d,y,f)}var ev={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function UN(e){if(typeof e!="string")return e;var t=e.toLowerCase();return ev[t]?"#"+ev[t]:e}var $N=/^#[a-fA-F0-9]{6}$/,zN=/^#[a-fA-F0-9]{8}$/,VN=/^#[a-fA-F0-9]{3}$/,HN=/^#[a-fA-F0-9]{4}$/,dl=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,JN=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,GN=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,WN=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function wa(e){if(typeof e!="string")throw new vt(3);var t=UN(e);if(t.match($N))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(zN)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(VN))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(HN)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var o=dl.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=JN.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=GN.exec(t);if(i){var s=parseInt(""+i[1],10),l=parseInt(""+i[2],10)/100,u=parseInt(""+i[3],10)/100,c="rgb("+Vn(s,l,u)+")",d=dl.exec(c);if(!d)throw new vt(4,t,c);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var y=WN.exec(t.substring(0,50));if(y){var f=parseInt(""+y[1],10),h=parseInt(""+y[2],10)/100,g=parseInt(""+y[3],10)/100,C="rgb("+Vn(f,h,g)+")",b=dl.exec(C);if(!b)throw new vt(4,t,C);return{red:parseInt(""+b[1],10),green:parseInt(""+b[2],10),blue:parseInt(""+b[3],10),alpha:parseFloat(""+y[4])>1?parseFloat(""+y[4])/100:parseFloat(""+y[4])}}throw new vt(5)}function KN(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),a=Math.min(t,r,n),i=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var s,l=o-a,u=i>.5?l/(2-o-a):l/(o+a);switch(o){case t:s=(r-n)/l+(r=1?xa(e,t,r):"rgba("+Vn(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?xa(e.hue,e.saturation,e.lightness):"rgba("+Vn(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new vt(2)}function Cl(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Tl("#"+ur(e)+ur(t)+ur(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Tl("#"+ur(e.red)+ur(e.green)+ur(e.blue));throw new vt(6)}function Pt(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=wa(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Cl(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Cl(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new vt(7)}var e3=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},t3=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},r3=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},n3=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Nv(e){if(typeof e!="object")throw new vt(8);if(t3(e))return Pt(e);if(e3(e))return Cl(e);if(n3(e))return ZN(e);if(r3(e))return QN(e);throw new vt(8)}function Bv(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):Bv(e,t,n)}}function Sa(e){return Bv(e,e.length,[])}function Aa(e,t,r){return Math.max(e,Math.min(t,r))}function o3(e,t){if(t==="transparent")return t;var r=jv(t);return Nv(Jr({},r,{lightness:Aa(0,1,r.lightness-parseFloat(e))}))}var a3=Sa(o3),bt=a3;function i3(e,t){if(t==="transparent")return t;var r=jv(t);return Nv(Jr({},r,{lightness:Aa(0,1,r.lightness+parseFloat(e))}))}var s3=Sa(i3),cr=s3;function l3(e,t){if(t==="transparent")return t;var r=wa(t),n=typeof r.alpha=="number"?r.alpha:1,o=Jr({},r,{alpha:Aa(0,1,(n*100+parseFloat(e)*100)/100)});return Pt(o)}var u3=Sa(l3),ma=u3;function c3(e,t){if(t==="transparent")return t;var r=wa(t),n=typeof r.alpha=="number"?r.alpha:1,o=Jr({},r,{alpha:Aa(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Pt(o)}var p3=Sa(c3),xe=p3,d3=Object.create,Lv=Object.defineProperty,f3=Object.getOwnPropertyDescriptor,y3=Object.getOwnPropertyNames,h3=Object.getPrototypeOf,m3=Object.prototype.hasOwnProperty,g3=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),b3=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of y3(t))!m3.call(e,o)&&o!==r&&Lv(e,o,{get:()=>t[o],enumerable:!(n=f3(t,o))||n.enumerable});return e},v3=(e,t,r)=>(r=e!=null?d3(h3(e)):{},b3(t||!e||!e.__esModule?Lv(r,"default",{value:e,enumerable:!0}):r,e)),E3=g3(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,a){return function i(s,l,u){var c,d,y,f=t.call(s),h=t.call(l);if(s===l)return!0;if(s==null||l==null)return!1;if(u.indexOf(s)>-1&&u.indexOf(l)>-1)return!0;if(u.push(s,l),f!=h||(c=n(s),d=n(l),c.length!=d.length||c.some(function(g){return!i(s[g],l[g],u)})))return!1;switch(f.slice(8,-1)){case"Symbol":return s.valueOf()==l.valueOf();case"Date":case"Number":return+s==+l||+s!=+s&&+l!=+l;case"RegExp":case"Function":case"String":case"Boolean":return""+s==""+l;case"Set":case"Map":c=s.entries(),d=l.entries();do if(!i((y=c.next()).value,d.next().value,u))return!1;while(!y.done);return!0;case"ArrayBuffer":s=new Uint8Array(s),l=new Uint8Array(l);case"DataView":s=new Uint8Array(s.buffer),l=new Uint8Array(l.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(s.length!=l.length)return!1;for(y=0;ye.map(t=>typeof t<"u").filter(Boolean).length,x3=(e,t)=>{let{exists:r,eq:n,neq:o,truthy:a}=e;if(qv([r,n,o,a])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:o})}`);if(typeof n<"u")return(0,tv.isEqual)(t,n);if(typeof o<"u")return!(0,tv.isEqual)(t,o);if(typeof r<"u"){let i=typeof t<"u";return r?i:!i}return typeof a>"u"||a?!!t:!t},w3=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(qv([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let a=n?t[n]:r[o];return x3(e.if,a)};function pr(){return pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),av={amp:"&",apos:"'",gt:">",lt:"<",nbsp:"\xA0",quot:"\u201C"},A3=["style","script"],T3=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,C3=/mailto:/i,_3=/\n{2,}$/,Mv=/^(\s*>[\s\S]*?)(?=\n{2,})/,O3=/^ *> ?/gm,I3=/^ {2,}\n/,k3=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Uv=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,$v=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,P3=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,R3=/^(?:\n *)*\n/,D3=/\r\n?/g,F3=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,j3=/^\[\^([^\]]+)]/,N3=/\f/g,B3=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,L3=/^\s*?\[(x|\s)\]/,zv=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Vv=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Hv=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,_l=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,q3=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Jv=/^)/,M3=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Ol=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,U3=/^\{.*\}$/,$3=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,z3=/^<([^ >]+@[^ >]+)>/,V3=/^<([^ >]+:\/[^ >]+)>/,H3=/-([a-z])?/gi,Gv=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,J3=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,G3=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,W3=/^\[([^\]]*)\] ?\[([^\]]*)\]/,K3=/(\[|\])/g,Y3=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,X3=/\t/g,Q3=/^ *\| */,Z3=/(^ *\||\| *$)/g,eB=/ *$/,tB=/^ *:-+: *$/,rB=/^ *:-+ *$/,nB=/^ *-+: *$/,Ta="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",oB=new RegExp(`^([*_])\\1${Ta}\\1\\1(?!\\1)`),aB=new RegExp(`^([*_])${Ta}\\1(?!\\1|\\w)`),iB=new RegExp(`^==${Ta}==`),sB=new RegExp(`^~~${Ta}~~`),lB=/^\\([^0-9A-Za-z\s])/,uB=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,cB=/^\n+/,pB=/^([ \t]*)/,dB=/\\([^\\])/g,iv=/ *\n+$/,fB=/(?:^|\n)( *)$/,Rl="(?:\\d+\\.)",Dl="(?:[*+-])";function Wv(e){return"( *)("+(e===1?Rl:Dl)+") +"}var Kv=Wv(1),Yv=Wv(2);function Xv(e){return new RegExp("^"+(e===1?Kv:Yv))}var yB=Xv(1),hB=Xv(2);function Qv(e){return new RegExp("^"+(e===1?Kv:Yv)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Rl:Dl)+" )[^\\n]*)*(\\n|$)","gm")}var Zv=Qv(1),e2=Qv(2);function t2(e){let t=e===1?Rl:Dl;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var r2=t2(1),n2=t2(2);function sv(e,t){let r=t===1,n=r?r2:n2,o=r?Zv:e2,a=r?yB:hB;return{match(i,s,l){let u=fB.exec(l);return u&&(s.list||!s.inline&&!s.simple)?n.exec(i=u[1]+i):null},order:1,parse(i,s,l){let u=r?+i[2]:void 0,c=i[0].replace(_3,` +`).match(o),d=!1;return{items:c.map(function(y,f){let h=a.exec(y)[0].length,g=new RegExp("^ {1,"+h+"}","gm"),C=y.replace(g,"").replace(a,""),b=f===c.length-1,E=C.indexOf(` + +`)!==-1||b&&d;d=E;let _=l.inline,T=l.list,O;l.list=!0,E?(l.inline=!1,O=C.replace(iv,` + +`)):(l.inline=!0,O=C.replace(iv,""));let I=s(O,l);return l.inline=_,l.list=T,I}),ordered:r,start:u}},render:(i,s,l)=>e(i.ordered?"ol":"ul",{key:l.key,start:i.type==="20"?i.start:void 0},i.items.map(function(u,c){return e("li",{key:c},s(u,l))}))}}var mB=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),gB=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,o2=[Mv,Uv,$v,zv,Hv,Vv,Jv,Gv,Zv,r2,e2,n2],bB=[...o2,/^[^\n]+(?: \n|\n{2,})/,_l,Ol];function vB(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function EB(e){return nB.test(e)?"right":tB.test(e)?"center":rB.test(e)?"left":null}function lv(e,t,r){let n=r.inTable;r.inTable=!0;let o=t(e.trim(),r);r.inTable=n;let a=[[]];return o.forEach(function(i,s){i.type==="26"?s!==0&&s!==o.length-1&&a.push([]):(i.type!=="27"||o[s+1]!=null&&o[s+1].type!=="26"||(i.text=i.text.replace(eB,"")),a[a.length-1].push(i))}),a}function xB(e,t,r){r.inline=!0;let n=lv(e[1],t,r),o=e[2].replace(Z3,"").split("|").map(EB),a=function(i,s,l){return i.trim().split(` +`).map(function(u){return lv(u,s,l)})}(e[3],t,r);return r.inline=!1,{align:o,cells:a,header:n,type:"25"}}function uv(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function Jt(e){return function(t,r){return r.inline?e.exec(t):null}}function Gt(e){return function(t,r){return r.inline||r.simple?e.exec(t):null}}function kt(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function Un(e){return function(t){return e.exec(t)}}function wB(e,t,r){if(t.inline||t.simple||r&&!r.endsWith(` +`))return null;let n="";e.split(` +`).every(a=>!o2.some(i=>i.test(a))&&(n+=a+` +`,a.trim()));let o=n.trimEnd();return o==""?null:[n,o]}function Vr(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return e}function cv(e){return e.replace(dB,"$1")}function Ea(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!0,r.simple=!0;let a=e(t,r);return r.inline=n,r.simple=o,a}function SB(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!1,r.simple=!0;let a=e(t,r);return r.inline=n,r.simple=o,a}function AB(e,t,r){return r.inline=!1,e(t,r)}var yl=(e,t,r)=>({children:Ea(t,e[1],r)});function hl(){return{}}function ml(){return null}function TB(...e){return e.filter(Boolean).join(" ")}function gl(e,t,r){let n=e,o=t.split(".");for(;o.length&&(n=n[o[0]],n!==void 0);)o.shift();return n||r}function CB(e="",t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||vB,t.namedCodesToUnicode=t.namedCodesToUnicode?pr({},av,t.namedCodesToUnicode):av;let r=t.createElement||Ra;function n(f,h,...g){let C=gl(t.overrides,`${f}.props`,{});return r(function(b,E){let _=gl(E,b);return _?typeof _=="function"||typeof _=="object"&&"render"in _?_:gl(E,`${b}.component`,b):b}(f,t.overrides),pr({},h,C,{className:TB(h?.className,C.className)||void 0}),...g)}function o(f){f=f.replace(B3,"");let h=!1;t.forceInline?h=!0:t.forceBlock||(h=Y3.test(f)===!1);let g=c(u(h?f:`${f.trimEnd().replace(cB,"")} + +`,{inline:h}));for(;typeof g[g.length-1]=="string"&&!g[g.length-1].trim();)g.pop();if(t.wrapper===null)return g;let C=t.wrapper||(h?"span":"div"),b;if(g.length>1||t.forceWrapper)b=g;else{if(g.length===1)return b=g[0],typeof b=="string"?n("span",{key:"outer"},b):b;b=null}return Ra(C,{key:"outer"},b)}function a(f){let h=f.match(T3);return h?h.reduce(function(g,C,b){let E=C.indexOf("=");if(E!==-1){let _=function(D){return D.indexOf("-")!==-1&&D.match(M3)===null&&(D=D.replace(H3,function(R,M){return M.toUpperCase()})),D}(C.slice(0,E)).trim(),T=function(D){let R=D[0];return(R==='"'||R==="'")&&D.length>=2&&D[D.length-1]===R?D.slice(1,-1):D}(C.slice(E+1).trim()),O=ov[_]||_,I=g[O]=function(D,R){return D==="style"?R.split(/;\s?/).reduce(function(M,z){let Y=z.slice(0,z.indexOf(":"));return M[Y.trim().replace(/(-[a-z])/g,Z=>Z[1].toUpperCase())]=z.slice(Y.length+1).trim(),M},{}):D==="href"||D==="src"?Vr(R):(R.match(U3)&&(R=R.slice(1,R.length-1)),R==="true"||R!=="false"&&R)}(_,T);typeof I=="string"&&(_l.test(I)||Ol.test(I))&&(g[O]=Ae(o(I.trim()),{key:b}))}else C!=="style"&&(g[ov[C]||C]=!0);return g},{}):null}let i=[],s={},l={0:{match:kt(Mv),order:1,parse:(f,h,g)=>({children:h(f[0].replace(O3,""),g)}),render:(f,h,g)=>n("blockquote",{key:g.key},h(f.children,g))},1:{match:Un(I3),order:1,parse:hl,render:(f,h,g)=>n("br",{key:g.key})},2:{match:kt(k3),order:1,parse:hl,render:(f,h,g)=>n("hr",{key:g.key})},3:{match:kt($v),order:0,parse:f=>({lang:void 0,text:f[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(f,h,g)=>n("pre",{key:g.key},n("code",pr({},f.attrs,{className:f.lang?`lang-${f.lang}`:""}),f.text))},4:{match:kt(Uv),order:0,parse:f=>({attrs:a(f[3]||""),lang:f[2]||void 0,text:f[4],type:"3"})},5:{match:Gt(P3),order:3,parse:f=>({text:f[2]}),render:(f,h,g)=>n("code",{key:g.key},f.text)},6:{match:kt(F3),order:0,parse:f=>(i.push({footnote:f[2],identifier:f[1]}),{}),render:ml},7:{match:Jt(j3),order:1,parse:f=>({target:`#${t.slugify(f[1])}`,text:f[1]}),render:(f,h,g)=>n("a",{key:g.key,href:Vr(f.target)},n("sup",{key:g.key},f.text))},8:{match:Jt(L3),order:1,parse:f=>({completed:f[1].toLowerCase()==="x"}),render:(f,h,g)=>n("input",{checked:f.completed,key:g.key,readOnly:!0,type:"checkbox"})},9:{match:kt(t.enforceAtxHeadings?Vv:zv),order:1,parse:(f,h,g)=>({children:Ea(h,f[2],g),id:t.slugify(f[2]),level:f[1].length}),render:(f,h,g)=>n(`h${f.level}`,{id:f.id,key:g.key},h(f.children,g))},10:{match:kt(Hv),order:0,parse:(f,h,g)=>({children:Ea(h,f[1],g),level:f[2]==="="?1:2,type:"9"})},11:{match:Un(_l),order:1,parse(f,h,g){let[,C]=f[3].match(pB),b=new RegExp(`^${C}`,"gm"),E=f[3].replace(b,""),_=(T=E,bB.some(R=>R.test(T))?AB:Ea);var T;let O=f[1].toLowerCase(),I=A3.indexOf(O)!==-1,D={attrs:a(f[2]),noInnerParse:I,tag:(I?O:f[1]).trim()};return g.inAnchor=g.inAnchor||O==="a",I?D.text=f[3]:D.children=_(h,E,g),g.inAnchor=!1,D},render:(f,h,g)=>n(f.tag,pr({key:g.key},f.attrs),f.text||h(f.children,g))},13:{match:Un(Ol),order:1,parse:f=>({attrs:a(f[2]||""),tag:f[1].trim()}),render:(f,h,g)=>n(f.tag,pr({},f.attrs,{key:g.key}))},12:{match:Un(Jv),order:1,parse:()=>({}),render:ml},14:{match:Gt(gB),order:1,parse:f=>({alt:f[1],target:cv(f[2]),title:f[3]}),render:(f,h,g)=>n("img",{key:g.key,alt:f.alt||void 0,title:f.title||void 0,src:Vr(f.target)})},15:{match:Jt(mB),order:3,parse:(f,h,g)=>({children:SB(h,f[1],g),target:cv(f[2]),title:f[3]}),render:(f,h,g)=>n("a",{key:g.key,href:Vr(f.target),title:f.title},h(f.children,g))},16:{match:Jt(V3),order:0,parse:f=>({children:[{text:f[1],type:"27"}],target:f[1],type:"15"})},17:{match:(f,h)=>h.inAnchor?null:Jt($3)(f,h),order:0,parse:f=>({children:[{text:f[1],type:"27"}],target:f[1],title:void 0,type:"15"})},18:{match:Jt(z3),order:0,parse(f){let h=f[1],g=f[1];return C3.test(g)||(g="mailto:"+g),{children:[{text:h.replace("mailto:",""),type:"27"}],target:g,type:"15"}}},20:sv(n,1),33:sv(n,2),19:{match:kt(R3),order:3,parse:hl,render:()=>` +`},21:{match:wB,order:3,parse:yl,render:(f,h,g)=>n("p",{key:g.key},h(f.children,g))},22:{match:Jt(J3),order:0,parse:f=>(s[f[1]]={target:f[2],title:f[4]},{}),render:ml},23:{match:Gt(G3),order:0,parse:f=>({alt:f[1]||void 0,ref:f[2]}),render:(f,h,g)=>s[f.ref]?n("img",{key:g.key,alt:f.alt,src:Vr(s[f.ref].target),title:s[f.ref].title}):null},24:{match:Jt(W3),order:0,parse:(f,h,g)=>({children:h(f[1],g),fallbackChildren:h(f[0].replace(K3,"\\$1"),g),ref:f[2]}),render:(f,h,g)=>s[f.ref]?n("a",{key:g.key,href:Vr(s[f.ref].target),title:s[f.ref].title},h(f.children,g)):n("span",{key:g.key},h(f.fallbackChildren,g))},25:{match:kt(Gv),order:1,parse:xB,render:(f,h,g)=>n("table",{key:g.key},n("thead",null,n("tr",null,f.header.map(function(C,b){return n("th",{key:b,style:uv(f,b)},h(C,g))}))),n("tbody",null,f.cells.map(function(C,b){return n("tr",{key:b},C.map(function(E,_){return n("td",{key:_,style:uv(f,_)},h(E,g))}))})))},26:{match:function(f,h){return h.inTable?(h.inline=!0,Q3.exec(f)):null},order:1,parse:function(){return{type:"26"}},render:()=>" | "},27:{match:Un(uB),order:4,parse:f=>({text:f[0].replace(q3,(h,g)=>t.namedCodesToUnicode[g]?t.namedCodesToUnicode[g]:h)}),render:f=>f.text},28:{match:Gt(oB),order:2,parse:(f,h,g)=>({children:h(f[2],g)}),render:(f,h,g)=>n("strong",{key:g.key},h(f.children,g))},29:{match:Gt(aB),order:3,parse:(f,h,g)=>({children:h(f[2],g)}),render:(f,h,g)=>n("em",{key:g.key},h(f.children,g))},30:{match:Gt(lB),order:1,parse:f=>({text:f[1],type:"27"})},31:{match:Gt(iB),order:3,parse:yl,render:(f,h,g)=>n("mark",{key:g.key},h(f.children,g))},32:{match:Gt(sB),order:3,parse:yl,render:(f,h,g)=>n("del",{key:g.key},h(f.children,g))}};t.disableParsingRawHTML===!0&&(delete l[11],delete l[13]);let u=function(f){let h=Object.keys(f);function g(C,b){let E=[],_="";for(;C;){let T=0;for(;TE(g,C,b),g,C,b):E(g,C,b)}}(l,t.renderRule),function f(h,g={}){if(Array.isArray(h)){let C=g.key,b=[],E=!1;for(let _=0;_{let{children:t="",options:r}=e,n=function(o,a){if(o==null)return{};var i,s,l={},u=Object.keys(o);for(s=0;s=0||(l[i]=o[i]);return l}(e,S3);return Ae(CB(t,r),n)},OB=sn(Dv(),1),IB=Object.create,a2=Object.defineProperty,kB=Object.getOwnPropertyDescriptor,i2=Object.getOwnPropertyNames,PB=Object.getPrototypeOf,RB=Object.prototype.hasOwnProperty,st=(e,t)=>function(){return t||(0,e[i2(e)[0]])((t={exports:{}}).exports,t),t.exports},DB=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of i2(t))!RB.call(e,o)&&o!==r&&a2(e,o,{get:()=>t[o],enumerable:!(n=kB(t,o))||n.enumerable});return e},Fl=(e,t,r)=>(r=e!=null?IB(PB(e)):{},DB(t||!e||!e.__esModule?a2(r,"default",{value:e,enumerable:!0}):r,e)),FB=sn(Dv(),1),s2=st({"node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var a=42;r[n]=a;for(n in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var i=Object.getOwnPropertySymbols(r);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==a||s.enumerable!==!0)return!1}return!0}}}),l2=st({"node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=s2();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),jB=st({"node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,o=Object.prototype.toString,a="[object Function]";t.exports=function(i){var s=this;if(typeof s!="function"||o.call(s)!==a)throw new TypeError(r+s);for(var l=n.call(arguments,1),u,c=function(){if(this instanceof u){var g=s.apply(this,l.concat(n.call(arguments)));return Object(g)===g?g:this}else return s.apply(i,l.concat(n.call(arguments)))},d=Math.max(0,s.length-l.length),y=[],f=0;f"u"?r:d(Uint8Array),h={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":c?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":y,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c?d(d([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!c?r:d(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!c?r:d(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c?d(""[Symbol.iterator]()):r,"%Symbol%":c?Symbol:r,"%SyntaxError%":n,"%ThrowTypeError%":u,"%TypedArray%":f,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet},g=function Z(V){var P;if(V==="%AsyncFunction%")P=i("async function () {}");else if(V==="%GeneratorFunction%")P=i("function* () {}");else if(V==="%AsyncGeneratorFunction%")P=i("async function* () {}");else if(V==="%AsyncGenerator%"){var q=Z("%AsyncGeneratorFunction%");q&&(P=q.prototype)}else if(V==="%AsyncIteratorPrototype%"){var J=Z("%AsyncGenerator%");J&&(P=d(J.prototype))}return h[V]=P,P},C={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=jl(),E=NB(),_=b.call(Function.call,Array.prototype.concat),T=b.call(Function.apply,Array.prototype.splice),O=b.call(Function.call,String.prototype.replace),I=b.call(Function.call,String.prototype.slice),D=b.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,M=/\\(\\)?/g,z=function(Z){var V=I(Z,0,1),P=I(Z,-1);if(V==="%"&&P!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(P==="%"&&V!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var q=[];return O(Z,R,function(J,X,te,re){q[q.length]=te?O(re,M,"$1"):X||J}),q},Y=function(Z,V){var P=Z,q;if(E(C,P)&&(q=C[P],P="%"+q[0]+"%"),E(h,P)){var J=h[P];if(J===y&&(J=g(P)),typeof J>"u"&&!V)throw new a("intrinsic "+Z+" exists, but is not available. Please file an issue!");return{alias:q,name:P,value:J}}throw new n("intrinsic "+Z+" does not exist!")};t.exports=function(Z,V){if(typeof Z!="string"||Z.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof V!="boolean")throw new a('"allowMissing" argument must be a boolean');if(D(/^%?[^%]*%?$/,Z)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var P=z(Z),q=P.length>0?P[0]:"",J=Y("%"+q+"%",V),X=J.name,te=J.value,re=!1,ee=J.alias;ee&&(q=ee[0],T(P,_([0,1],ee)));for(var oe=1,ie=!0;oe=P.length){var ye=s(te,ce);ie=!!ye,ie&&"get"in ye&&!("originalValue"in ye.get)?te=ye.get:te=te[ce]}else ie=E(te,ce),te=te[ce];ie&&!re&&(h[X]=te)}}return te}}}),BB=st({"node_modules/call-bind/index.js"(e,t){var r=jl(),n=u2(),o=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||r.call(a,o),s=n("%Object.getOwnPropertyDescriptor%",!0),l=n("%Object.defineProperty%",!0),u=n("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}t.exports=function(d){var y=i(r,a,arguments);if(s&&l){var f=s(y,"length");f.configurable&&l(y,"length",{value:1+u(0,d.length-(arguments.length-1))})}return y};var c=function(){return i(r,o,arguments)};l?l(t.exports,"apply",{value:c}):t.exports.apply=c}}),LB=st({"node_modules/call-bind/callBound.js"(e,t){var r=u2(),n=BB(),o=n(r("String.prototype.indexOf"));t.exports=function(a,i){var s=r(a,!!i);return typeof s=="function"&&o(a,".prototype.")>-1?n(s):s}}}),qB=st({"node_modules/has-tostringtag/shams.js"(e,t){var r=s2();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),MB=st({"node_modules/is-regex/index.js"(e,t){var r=LB(),n=qB()(),o,a,i,s;n&&(o=r("Object.prototype.hasOwnProperty"),a=r("RegExp.prototype.exec"),i={},l=function(){throw i},s={toString:l,valueOf:l},typeof Symbol.toPrimitive=="symbol"&&(s[Symbol.toPrimitive]=l));var l,u=r("Object.prototype.toString"),c=Object.getOwnPropertyDescriptor,d="[object RegExp]";t.exports=n?function(y){if(!y||typeof y!="object")return!1;var f=c(y,"lastIndex"),h=f&&o(f,"value");if(!h)return!1;try{a(y,s)}catch(g){return g===i}}:function(y){return!y||typeof y!="object"&&typeof y!="function"?!1:u(y)===d}}}),UB=st({"node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(o){if(!o)return!1;var a=r.call(o);return a==="[object Function]"||typeof o=="function"&&a!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),$B=st({"node_modules/is-symbol/index.js"(e,t){var r=Object.prototype.toString,n=l2()();n?(o=Symbol.prototype.toString,a=/^Symbol\(.*\)$/,i=function(s){return typeof s.valueOf()!="symbol"?!1:a.test(o.call(s))},t.exports=function(s){if(typeof s=="symbol")return!0;if(r.call(s)!=="[object Symbol]")return!1;try{return i(s)}catch{return!1}}):t.exports=function(s){return!1};var o,a,i}});Fl(MB());Fl(UB());Fl($B());var zB=typeof window=="object"&&window&&window.Object===Object&&window,VB=zB,HB=typeof self=="object"&&self&&self.Object===Object&&self,JB=VB||HB||Function("return this")(),Nl=JB,GB=Nl.Symbol,Gr=GB,c2=Object.prototype,WB=c2.hasOwnProperty,KB=c2.toString,$n=Gr?Gr.toStringTag:void 0;function YB(e){var t=WB.call(e,$n),r=e[$n];try{e[$n]=void 0;var n=!0}catch{}var o=KB.call(e);return n&&(t?e[$n]=r:delete e[$n]),o}var XB=YB,QB=Object.prototype,ZB=QB.toString;function eL(e){return ZB.call(e)}var tL=eL,rL="[object Null]",nL="[object Undefined]",pv=Gr?Gr.toStringTag:void 0;function oL(e){return e==null?e===void 0?nL:rL:pv&&pv in Object(e)?XB(e):tL(e)}var aL=oL,dv=Gr?Gr.prototype:void 0;dv&&dv.toString;function iL(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var p2=iL,sL="[object AsyncFunction]",lL="[object Function]",uL="[object GeneratorFunction]",cL="[object Proxy]";function pL(e){if(!p2(e))return!1;var t=aL(e);return t==lL||t==uL||t==sL||t==cL}var dL=pL,fL=Nl["__core-js_shared__"],bl=fL,fv=function(){var e=/[^.]+$/.exec(bl&&bl.keys&&bl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function yL(e){return!!fv&&fv in e}var hL=yL,mL=Function.prototype,gL=mL.toString;function bL(e){if(e!=null){try{return gL.call(e)}catch{}try{return e+""}catch{}}return""}var vL=bL,EL=/[\\^$.*+?()[\]{}|]/g,xL=/^\[object .+?Constructor\]$/,wL=Function.prototype,SL=Object.prototype,AL=wL.toString,TL=SL.hasOwnProperty,CL=RegExp("^"+AL.call(TL).replace(EL,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _L(e){if(!p2(e)||hL(e))return!1;var t=dL(e)?CL:xL;return t.test(vL(e))}var OL=_L;function IL(e,t){return e?.[t]}var kL=IL;function PL(e,t){var r=kL(e,t);return OL(r)?r:void 0}var d2=PL;function RL(e,t){return e===t||e!==e&&t!==t}var DL=RL,FL=d2(Object,"create"),Hn=FL;function jL(){this.__data__=Hn?Hn(null):{},this.size=0}var NL=jL;function BL(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var LL=BL,qL="__lodash_hash_undefined__",ML=Object.prototype,UL=ML.hasOwnProperty;function $L(e){var t=this.__data__;if(Hn){var r=t[e];return r===qL?void 0:r}return UL.call(t,e)?t[e]:void 0}var zL=$L,VL=Object.prototype,HL=VL.hasOwnProperty;function JL(e){var t=this.__data__;return Hn?t[e]!==void 0:HL.call(t,e)}var GL=JL,WL="__lodash_hash_undefined__";function KL(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Hn&&t===void 0?WL:t,this}var YL=KL;function Wr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var sq=iq;function lq(e,t){var r=this.__data__,n=Ca(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var uq=lq;function Kr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{let t=null,r=!1,n=!1,o=!1,a="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let i=0;iDq(e).replace(/\n\s*/g,"").trim());var Fq=Xt({"../../node_modules/tocbot/src/js/default-options.js"(e,t){t.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(r){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(r){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0}}}),jq=Xt({"../../node_modules/tocbot/src/js/build-html.js"(e,t){t.exports=function(r){var n=[].forEach,o=[].some,a=document.body,i,s=!0,l=" ";function u(T,O){var I=O.appendChild(d(T));if(T.children.length){var D=y(T.isCollapsed);T.children.forEach(function(R){u(R,D)}),I.appendChild(D)}}function c(T,O){var I=!1,D=y(I);if(O.forEach(function(R){u(R,D)}),i=T||i,i!==null)return i.firstChild&&i.removeChild(i.firstChild),O.length===0?i:i.appendChild(D)}function d(T){var O=document.createElement("li"),I=document.createElement("a");return r.listItemClass&&O.setAttribute("class",r.listItemClass),r.onClick&&(I.onclick=r.onClick),r.includeTitleTags&&I.setAttribute("title",T.textContent),r.includeHtml&&T.childNodes.length?n.call(T.childNodes,function(D){I.appendChild(D.cloneNode(!0))}):I.textContent=T.textContent,I.setAttribute("href",r.basePath+"#"+T.id),I.setAttribute("class",r.linkClass+l+"node-name--"+T.nodeName+l+r.extraLinkClasses),O.appendChild(I),O}function y(T){var O=r.orderedList?"ol":"ul",I=document.createElement(O),D=r.listClass+l+r.extraListClasses;return T&&(D=D+l+r.collapsibleClass,D=D+l+r.isCollapsedClass),I.setAttribute("class",D),I}function f(){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var T;T=document.querySelector(r.scrollContainer).scrollTop}else T=document.documentElement.scrollTop||a.scrollTop;var O=document.querySelector(r.positionFixedSelector);r.fixedSidebarOffset==="auto"&&(r.fixedSidebarOffset=i.offsetTop),T>r.fixedSidebarOffset?O.className.indexOf(r.positionFixedClass)===-1&&(O.className+=l+r.positionFixedClass):O.className=O.className.replace(l+r.positionFixedClass,"")}function h(T){var O=0;return T!==null&&(O=T.offsetTop,r.hasInnerContainers&&(O+=h(T.offsetParent))),O}function g(T,O){return T&&T.className!==O&&(T.className=O),T}function C(T){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var O;O=document.querySelector(r.scrollContainer).scrollTop}else O=document.documentElement.scrollTop||a.scrollTop;r.positionFixedSelector&&f();var I=T,D;if(s&&i!==null&&I.length>0){o.call(I,function(P,q){if(h(P)>O+r.headingsOffset+10){var J=q===0?q:q-1;return D=I[J],!0}else if(q===I.length-1)return D=I[I.length-1],!0});var R=i.querySelector("."+r.activeLinkClass),M=i.querySelector("."+r.linkClass+".node-name--"+D.nodeName+'[href="'+r.basePath+"#"+D.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1")+'"]');if(R===M)return;var z=i.querySelectorAll("."+r.linkClass);n.call(z,function(P){g(P,P.className.replace(l+r.activeLinkClass,""))});var Y=i.querySelectorAll("."+r.listItemClass);n.call(Y,function(P){g(P,P.className.replace(l+r.activeListItemClass,""))}),M&&M.className.indexOf(r.activeLinkClass)===-1&&(M.className+=l+r.activeLinkClass);var Z=M&&M.parentNode;Z&&Z.className.indexOf(r.activeListItemClass)===-1&&(Z.className+=l+r.activeListItemClass);var V=i.querySelectorAll("."+r.listClass+"."+r.collapsibleClass);n.call(V,function(P){P.className.indexOf(r.isCollapsedClass)===-1&&(P.className+=l+r.isCollapsedClass)}),M&&M.nextSibling&&M.nextSibling.className.indexOf(r.isCollapsedClass)!==-1&&g(M.nextSibling,M.nextSibling.className.replace(l+r.isCollapsedClass,"")),b(M&&M.parentNode.parentNode)}}function b(T){return T&&T.className.indexOf(r.collapsibleClass)!==-1&&T.className.indexOf(r.isCollapsedClass)!==-1?(g(T,T.className.replace(l+r.isCollapsedClass,"")),b(T.parentNode.parentNode)):T}function E(T){var O=T.target||T.srcElement;typeof O.className!="string"||O.className.indexOf(r.linkClass)===-1||(s=!1)}function _(){s=!0}return{enableTocAnimation:_,disableTocAnimation:E,render:c,updateToc:C}}}}),Nq=Xt({"../../node_modules/tocbot/src/js/parse-content.js"(e,t){t.exports=function(r){var n=[].reduce;function o(d){return d[d.length-1]}function a(d){return+d.nodeName.toUpperCase().replace("H","")}function i(d){try{return d instanceof window.HTMLElement||d instanceof window.parent.HTMLElement}catch{return d instanceof window.HTMLElement}}function s(d){if(!i(d))return d;if(r.ignoreHiddenElements&&(!d.offsetHeight||!d.offsetParent))return null;let y=d.getAttribute("data-heading-label")||(r.headingLabelCallback?String(r.headingLabelCallback(d.innerText)):(d.innerText||d.textContent).trim());var f={id:d.id,children:[],nodeName:d.nodeName,headingLevel:a(d),textContent:y};return r.includeHtml&&(f.childNodes=d.childNodes),r.headingObjectCallback?r.headingObjectCallback(f,d):f}function l(d,y){for(var f=s(d),h=f.headingLevel,g=y,C=o(g),b=C?C.headingLevel:0,E=h-b;E>0&&(C=o(g),!(C&&h===C.headingLevel));)C&&C.children!==void 0&&(g=C.children),E--;return h>=r.collapseDepth&&(f.isCollapsed=!0),g.push(f),g}function u(d,y){var f=y;r.ignoreSelector&&(f=y.split(",").map(function(h){return h.trim()+":not("+r.ignoreSelector+")"}));try{return d.querySelectorAll(f)}catch{return console.warn("Headers not found with selector: "+f),null}}function c(d){return n.call(d,function(y,f){var h=s(f);return h&&l(h,y.nest),y},{nest:[]})}return{nestHeadingsArray:c,selectHeadings:u}}}}),Bq=Xt({"../../node_modules/tocbot/src/js/update-toc-scroll.js"(e,t){t.exports=function(r){var n=r.tocElement||document.querySelector(r.tocSelector);if(n&&n.scrollHeight>n.clientHeight){var o=n.querySelector("."+r.activeListItemClass);o&&(n.scrollTop=o.offsetTop-r.tocScrollOffset)}}}}),Lq=Xt({"../../node_modules/tocbot/src/js/scroll-smooth/index.js"(e){e.initSmoothScrolling=t;function t(n){var o=n.duration,a=n.offset,i=location.hash?u(location.href):location.href;s();function s(){document.body.addEventListener("click",d,!1);function d(y){!l(y.target)||y.target.className.indexOf("no-smooth-scroll")>-1||y.target.href.charAt(y.target.href.length-2)==="#"&&y.target.href.charAt(y.target.href.length-1)==="!"||y.target.className.indexOf(n.linkClass)===-1||r(y.target.hash,{duration:o,offset:a,callback:function(){c(y.target.hash)}})}}function l(d){return d.tagName.toLowerCase()==="a"&&(d.hash.length>0||d.href.charAt(d.href.length-1)==="#")&&(u(d.href)===i||u(d.href)+"#"===i)}function u(d){return d.slice(0,d.lastIndexOf("#"))}function c(d){var y=document.getElementById(d.substring(1));y&&(/^(?:a|select|input|button|textarea)$/i.test(y.tagName)||(y.tabIndex=-1),y.focus())}}function r(n,o){var a=window.pageYOffset,i={duration:o.duration,offset:o.offset||0,callback:o.callback,easing:o.easing||h},s=document.querySelector('[id="'+decodeURI(n).split("#").join("")+'"]')||document.querySelector('[id="'+n.split("#").join("")+'"]'),l=typeof n=="string"?i.offset+(n?s&&s.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):n,u=typeof i.duration=="function"?i.duration(l):i.duration,c,d;requestAnimationFrame(function(g){c=g,y(g)});function y(g){d=g-c,window.scrollTo(0,i.easing(d,a,l,u)),d"u"&&!d)return;var y,f=Object.prototype.hasOwnProperty;function h(){for(var E={},_=0;_({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:xe(.3,e.color.defaultText),fontSize:e.typography.size.s2})),y2=e=>v.createElement(Mq,{...e,className:"docblock-emptyblock sb-unstyled"}),Uq=W(oo)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),$q=W.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),ga=W.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${Ou}`]:{margin:0}})),zq=()=>v.createElement($q,null,v.createElement(ga,null),v.createElement(ga,{style:{width:"80%"}}),v.createElement(ga,{style:{width:"30%"}}),v.createElement(ga,{style:{width:"80%"}})),Vq=({isLoading:e,error:t,language:r,code:n,dark:o,format:a=!1,...i})=>{let{typography:s}=ei();if(e)return v.createElement(zq,null);if(t)return v.createElement(y2,null,t);let l=v.createElement(Uq,{bordered:!0,copyable:!0,format:a,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof o>"u")return l;let u=o?Za.dark:Za.light;return v.createElement(Cu,{theme:_u({...u,fontCode:s.fonts.mono,fontBase:s.fonts.base})},l)},De=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,Ll=600;W.h1(Er,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Ll}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}}));W.h2(Er,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Ll}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:xe(.25,e.color.defaultText)}));W.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?xe(.1,e.color.defaultText):xe(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",[De("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[De("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[De("div")]:t,[De("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[De("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[De("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[De("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[De("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[De("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[De("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[De("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[De("img")]:{maxWidth:"100%"},[De("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[De("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[De("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[De("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[De("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[De("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[De("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}});W.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Ll}px)`]:{}}));var Oa=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),Hq=un({scale:1});W.strong(({theme:e})=>({color:e.color.orange}));var Jq=W(La)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),Gq=W.div({display:"flex",alignItems:"center",gap:4}),Wq=W.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),Kq=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:o,...a})=>v.createElement(Jq,{...a},v.createElement(Gq,{key:"left"},e?[1,2,3].map(i=>v.createElement(Wq,{key:i})):v.createElement(v.Fragment,null,v.createElement(yt,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},v.createElement(Uu,null)),v.createElement(yt,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},v.createElement($u,null)),v.createElement(yt,{key:"zoomreset",onClick:i=>{i.preventDefault(),o()},title:"Reset zoom"},v.createElement(zu,null))))),Yq=W.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded"})=>e==="centered"||e==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:e="padded"})=>e==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),hv=W(Vq)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":bt(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":bt(.05,e.background.content)}})),Xq=W.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Oa(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),Qq=(e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>r(!1)}};case t:return{source:v.createElement(hv,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:v.createElement(hv,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function Zq(e){if(Kl.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var eM=W(Kq)({position:"absolute",top:0,left:0,right:0,height:40}),tM=W.div({overflow:"hidden",position:"relative"}),rM=({isLoading:e,isColumn:t,columns:r,children:n,withSource:o,withToolbar:a=!1,isExpanded:i=!1,additionalActions:s,className:l,layout:u="padded",...c})=>{let[d,y]=me(i),{source:f,actionItem:h}=Qq(o,d,y),[g,C]=me(1),b=[l].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),E=o?[h]:[],[_,T]=me(s?[...s]:[]),O=[...E,..._],{window:I}=ct,D=Ve(async M=>{let{createCopyToClipboardFunction:z}=await Promise.resolve().then(()=>(ao(),eu));z()},[]),R=M=>{let z=I.getSelection();z&&z.type==="Range"||(M.preventDefault(),_.filter(Y=>Y.title==="Copied").length===0&&D(f.props.code).then(()=>{T([..._,{title:"Copied",onClick:()=>{}}]),I.setTimeout(()=>T(_.filter(Y=>Y.title!=="Copied")),1500)}))};return v.createElement(Xq,{withSource:o,withToolbar:a,...c,className:b.join(" ")},a&&v.createElement(eM,{isLoading:e,border:!0,zoom:M=>C(g*M),resetZoom:()=>C(1),storyId:Zq(n),baseUrl:"./iframe.html"}),v.createElement(Hq.Provider,{value:{scale:g}},v.createElement(tM,{className:"docs-story",onCopyCapture:o&&R},v.createElement(Yq,{isColumn:t||!Array.isArray(n),columns:r,layout:u},v.createElement(za.Element,{scale:g},Array.isArray(n)?n.map((M,z)=>v.createElement("div",{key:z},M)):v.createElement("div",null,n))),v.createElement(Da,{actionItems:O}))),o&&d&&f)};W(rM)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var nM=W.label(({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:xe(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${ma(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${ma(.05,e.appBorderColor)} 0 0 0 2px inset`,color:ma(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${ma(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px"}})),oM=e=>e==="true",aM=({name:e,value:t,onChange:r,onBlur:n,onFocus:o,argType:a})=>{let i=Ve(()=>r(!1),[r]),s=!!a?.table?.readonly;if(t===void 0)return v.createElement(Nt,{variant:"outline",size:"medium",id:ln(e),onClick:i,disabled:s},"Set boolean");let l=tt(e),u=typeof t=="string"?oM(t):t;return v.createElement(nM,{"aria-disabled":s,htmlFor:l,"aria-label":e},v.createElement("input",{id:l,type:"checkbox",onChange:c=>r(c.target.checked),checked:u,role:"switch",disabled:s,name:e,onBlur:n,onFocus:o}),v.createElement("span",{"aria-hidden":"true"},"False"),v.createElement("span",{"aria-hidden":"true"},"True"))},iM=e=>{let[t,r,n]=e.split("-"),o=new Date;return o.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),o},sM=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},lM=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),o=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${o}`},uM=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},mv=W(ut.Input)(({readOnly:e})=>({opacity:e?.5:1})),cM=W.div(({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),pM=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,argType:a})=>{let[i,s]=me(!0),l=Xe(),u=Xe(),c=!!a?.table?.readonly;He(()=>{i!==!1&&(l&&l.current&&(l.current.value=t?lM(t):""),u&&u.current&&(u.current.value=t?uM(t):""))},[t]);let d=h=>{if(!h.target.value)return r();let g=iM(h.target.value),C=new Date(t);C.setFullYear(g.getFullYear(),g.getMonth(),g.getDate());let b=C.getTime();b&&r(b),s(!!b)},y=h=>{if(!h.target.value)return r();let g=sM(h.target.value),C=new Date(t);C.setHours(g.getHours()),C.setMinutes(g.getMinutes());let b=C.getTime();b&&r(b),s(!!b)},f=tt(e);return v.createElement(cM,null,v.createElement(mv,{type:"date",max:"9999-12-31",ref:l,id:`${f}-date`,name:`${f}-date`,readOnly:c,onChange:d,onFocus:n,onBlur:o}),v.createElement(mv,{type:"time",id:`${f}-time`,name:`${f}-time`,ref:u,onChange:y,readOnly:c,onFocus:n,onBlur:o}),i?null:v.createElement("div",null,"invalid"))},dM=W.label({display:"flex"}),fM=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},yM=W(ut.Input)(({readOnly:e})=>({opacity:e?.5:1})),hM=({name:e,value:t,onChange:r,min:n,max:o,step:a,onBlur:i,onFocus:s,argType:l})=>{let[u,c]=me(typeof t=="number"?t:""),[d,y]=me(!1),[f,h]=me(null),g=!!l?.table?.readonly,C=Ve(_=>{c(_.target.value);let T=parseFloat(_.target.value);Number.isNaN(T)?h(new Error(`'${_.target.value}' is not a number`)):(r(T),h(null))},[r,h]),b=Ve(()=>{c("0"),r(0),y(!0)},[y]),E=Xe(null);return He(()=>{d&&E.current&&E.current.select()},[d]),He(()=>{u!==(typeof t=="number"?t:"")&&c(t)},[t]),t===void 0?v.createElement(Nt,{variant:"outline",size:"medium",id:ln(e),onClick:b,disabled:g},"Set number"):v.createElement(dM,null,v.createElement(yM,{ref:E,id:tt(e),type:"number",onChange:C,size:"flex",placeholder:"Edit number...",value:u,valid:f?"error":null,autoFocus:d,readOnly:g,name:e,min:n,max:o,step:a,onFocus:s,onBlur:i}))},h2=(e,t)=>{let r=t&&Object.entries(t).find(([n,o])=>o===e);return r?r[0]:void 0},Il=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],m2=(e,t)=>e&&t&&e.map(r=>t[r]),mM=W.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),gM=W.span({"[aria-readonly=true] &":{opacity:.5}}),bM=W.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),gv=({name:e,options:t,value:r,onChange:n,isInline:o,argType:a})=>{if(!t)return mo.warn(`Checkbox with no options: ${e}`),v.createElement(v.Fragment,null,"-");let i=Il(r,t),[s,l]=me(i),u=!!a?.table?.readonly,c=y=>{let f=y.target.value,h=[...s];h.includes(f)?h.splice(h.indexOf(f),1):h.push(f),n(m2(h,t)),l(h)};He(()=>{l(Il(r,t))},[r]);let d=tt(e);return v.createElement(mM,{"aria-readonly":u,isInline:o},Object.keys(t).map((y,f)=>{let h=`${d}-${f}`;return v.createElement(bM,{key:h,htmlFor:h},v.createElement("input",{type:"checkbox",disabled:u,id:h,name:h,value:y,onChange:c,checked:s?.includes(y)}),v.createElement(gM,null,y))}))},vM=W.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),EM=W.span({"[aria-readonly=true] &":{opacity:.5}}),xM=W.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),bv=({name:e,options:t,value:r,onChange:n,isInline:o,argType:a})=>{if(!t)return mo.warn(`Radio with no options: ${e}`),v.createElement(v.Fragment,null,"-");let i=h2(r,t),s=tt(e),l=!!a?.table?.readonly;return v.createElement(vM,{"aria-readonly":l,isInline:o},Object.keys(t).map((u,c)=>{let d=`${s}-${c}`;return v.createElement(xM,{key:d,htmlFor:d},v.createElement("input",{type:"radio",id:d,name:s,disabled:l,value:u,onChange:y=>n(t[y.currentTarget.value]),checked:u===i}),v.createElement(EM,null,u))}))},wM={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},g2=W.select(wM,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}})),b2=W.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),vv="Choose option...",SM=({name:e,value:t,options:r,onChange:n,argType:o})=>{let a=u=>{n(r[u.currentTarget.value])},i=h2(t,r)||vv,s=tt(e),l=!!o?.table?.readonly;return v.createElement(b2,null,v.createElement(ni,null),v.createElement(g2,{disabled:l,id:s,value:i,onChange:a},v.createElement("option",{key:"no-selection",disabled:!0},vv),Object.keys(r).map(u=>v.createElement("option",{key:u,value:u},u))))},AM=({name:e,value:t,options:r,onChange:n,argType:o})=>{let a=u=>{let c=Array.from(u.currentTarget.options).filter(d=>d.selected).map(d=>d.value);n(m2(c,r))},i=Il(t,r),s=tt(e),l=!!o?.table?.readonly;return v.createElement(b2,null,v.createElement(g2,{disabled:l,id:s,multiple:!0,value:i,onChange:a},Object.keys(r).map(u=>v.createElement("option",{key:u,value:u},u))))},Ev=e=>{let{name:t,options:r}=e;return r?e.isMulti?v.createElement(AM,{...e}):v.createElement(SM,{...e}):(mo.warn(`Select with no options: ${t}`),v.createElement(v.Fragment,null,"-"))},TM=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[t?.[n]||String(n)]=n,r),{}):e,CM={check:gv,"inline-check":gv,radio:bv,"inline-radio":bv,select:Ev,"multi-select":Ev},Hr=e=>{let{type:t="select",labels:r,argType:n}=e,o={...e,argType:n,options:n?TM(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},a=CM[t];if(a)return v.createElement(a,{...o});throw new Error(`Unknown options type: ${t}`)},_M="Error",OM="Object",IM="Array",kM="String",PM="Number",RM="Boolean",DM="Date",FM="Null",jM="Undefined",NM="Function",BM="Symbol",v2="ADD_DELTA_TYPE",E2="REMOVE_DELTA_TYPE",x2="UPDATE_DELTA_TYPE",ql="value",LM="key";function dr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function w2(e,t){let r=dr(e),n=dr(t);return(r==="Function"||n==="Function")&&n!==r}var Ml=class extends Ft{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&t&&typeof t.focus=="function"&&t.focus(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:o}=this.props,{inputRefKey:a,inputRefValue:i}=this.state,s={};if(!t){if(!a.value)return;s.key=a.value}s.newValue=r(!1,n,o,s.key,i.value),e(s)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:o,keyPath:a,deep:i}=this.props,s=Ae(r,{onClick:this.onSubmit}),l=Ae(n,{onClick:e}),u=o(ql,a,i),c=Ae(u,{placeholder:"Value",ref:this.refInputValue}),d=null;if(!t){let y=o(LM,a,i);d=Ae(y,{placeholder:"Key",ref:this.refInputKey})}return v.createElement("span",{className:"rejt-add-value-node"},d,c,l,s)}};Ml.defaultProps={onlyValue:!1,addButtonElement:v.createElement("button",null,"+"),cancelButtonElement:v.createElement("button",null,"c")};var S2=class extends Ft{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={data:e.data,name:e.name,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:o}=this.props,a=n.length;o(n[a-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:o,nextDeep:a}=this.state,i=n[e];t(e,o,a,i).then(()=>{let s={keyPath:o,deep:a,key:e,oldValue:i,type:E2};n.splice(e,1),this.setState({data:n});let{onUpdate:l,onDeltaUpdate:u}=this.props;l(o[o.length-1],n),u(s)}).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r,nextDeep:n}=this.state,{beforeAddAction:o,logger:a}=this.props;o(t.length,r,n,e).then(()=>{let i=[...t,e];this.setState({data:i}),this.handleAddValueCancel();let{onUpdate:s,onDeltaUpdate:l}=this.props;s(r[r.length-1],i),l({type:v2,keyPath:r,deep:n,key:i.length-1,newValue:e})}).catch(a.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:o}=this.props,{data:a,keyPath:i,nextDeep:s}=this.state,l=a[e];o(e,i,s,l,t).then(()=>{a[e]=t,this.setState({data:a});let{onUpdate:u,onDeltaUpdate:c}=this.props;u(i[i.length-1],a),c({type:x2,keyPath:i,deep:s,key:e,newValue:t,oldValue:l}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:o,readOnly:a,getStyle:i,dataType:s,minusMenuElement:l}=this.props,{minus:u,collapsed:c}=i(e,t,r,n,s),d=a(e,t,r,n,s),y=Ae(l,{onClick:o,className:"rejt-minus-menu",style:u});return v.createElement("span",{className:"rejt-collapsed"},v.createElement("span",{className:"rejt-collapsed-text",style:c,onClick:this.handleCollapseMode},"[...] ",t.length," ",t.length===1?"item":"items"),!d&&y)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:o,nextDeep:a}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:l,readOnly:u,getStyle:c,dataType:d,addButtonElement:y,cancelButtonElement:f,editButtonElement:h,inputElementGenerator:g,textareaElementGenerator:C,minusMenuElement:b,plusMenuElement:E,beforeRemoveAction:_,beforeAddAction:T,beforeUpdateAction:O,logger:I,onSubmitValueParser:D}=this.props,{minus:R,plus:M,delimiter:z,ul:Y,addForm:Z}=c(e,t,r,n,d),V=u(e,t,r,n,d),P=Ae(E,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:M}),q=Ae(b,{onClick:s,className:"rejt-minus-menu",style:R});return v.createElement("span",{className:"rejt-not-collapsed"},v.createElement("span",{className:"rejt-not-collapsed-delimiter",style:z},"["),!o&&P,v.createElement("ul",{className:"rejt-not-collapsed-list",style:Y},t.map((J,X)=>v.createElement(Ia,{key:X,name:X.toString(),data:J,keyPath:r,deep:a,isCollapsed:i,handleRemove:this.handleRemoveItem(X),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:l,readOnly:u,getStyle:c,addButtonElement:y,cancelButtonElement:f,editButtonElement:h,inputElementGenerator:g,textareaElementGenerator:C,minusMenuElement:b,plusMenuElement:E,beforeRemoveAction:_,beforeAddAction:T,beforeUpdateAction:O,logger:I,onSubmitValueParser:D}))),!V&&o&&v.createElement("div",{className:"rejt-add-form",style:Z},v.createElement(Ml,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:y,cancelButtonElement:f,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:D})),v.createElement("span",{className:"rejt-not-collapsed-delimiter",style:z},"]"),!V&&q)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:o}=this.state,{dataType:a,getStyle:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),l=i(e,r,n,o,a);return v.createElement("div",{className:"rejt-array-node"},v.createElement("span",{onClick:this.handleCollapseMode},v.createElement("span",{className:"rejt-name",style:l.name},e," :"," ")),s)}};S2.defaultProps={keyPath:[],deep:0,minusMenuElement:v.createElement("span",null," - "),plusMenuElement:v.createElement("span",null," + ")};var A2=class extends Ft{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:o,deep:a}=this.state,{readOnly:i,dataType:s}=this.props,l=i(r,n,o,a,s);e&&!l&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:o}=this.props,{inputRef:a,name:i,deep:s}=this.state;if(!a)return;let l=n(!0,o,s,i,a.value);e({value:l,key:i}).then(()=>{w2(t,l)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:a,originalValue:i,readOnly:s,dataType:l,getStyle:u,editButtonElement:c,cancelButtonElement:d,textareaElementGenerator:y,minusMenuElement:f,keyPath:h}=this.props,g=u(e,i,n,o,l),C=null,b=null,E=s(e,i,n,o,l);if(r&&!E){let _=y(ql,h,o,e,i,l),T=Ae(c,{onClick:this.handleEdit}),O=Ae(d,{onClick:this.handleCancelEdit}),I=Ae(_,{ref:this.refInput,defaultValue:i});C=v.createElement("span",{className:"rejt-edit-form",style:g.editForm},I," ",O,T),b=null}else{C=v.createElement("span",{className:"rejt-value",style:g.value,onClick:E?null:this.handleEditMode},t);let _=Ae(f,{onClick:a,className:"rejt-minus-menu",style:g.minus});b=E?null:_}return v.createElement("li",{className:"rejt-function-value-node",style:g.li},v.createElement("span",{className:"rejt-name",style:g.name},e," :"," "),C,b)}};A2.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:v.createElement("button",null,"e"),cancelButtonElement:v.createElement("button",null,"c"),minusMenuElement:v.createElement("span",null," - ")};var Ia=class extends Ft{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath,deep:e.deep}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:o,handleRemove:a,handleUpdateValue:i,onUpdate:s,onDeltaUpdate:l,readOnly:u,getStyle:c,addButtonElement:d,cancelButtonElement:y,editButtonElement:f,inputElementGenerator:h,textareaElementGenerator:g,minusMenuElement:C,plusMenuElement:b,beforeRemoveAction:E,beforeAddAction:_,beforeUpdateAction:T,logger:O,onSubmitValueParser:I}=this.props,D=()=>!0,R=dr(e);switch(R){case _M:return v.createElement(kl,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:s,onDeltaUpdate:l,readOnly:D,dataType:R,getStyle:c,addButtonElement:d,cancelButtonElement:y,editButtonElement:f,inputElementGenerator:h,textareaElementGenerator:g,minusMenuElement:C,plusMenuElement:b,beforeRemoveAction:E,beforeAddAction:_,beforeUpdateAction:T,logger:O,onSubmitValueParser:I});case OM:return v.createElement(kl,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:s,onDeltaUpdate:l,readOnly:u,dataType:R,getStyle:c,addButtonElement:d,cancelButtonElement:y,editButtonElement:f,inputElementGenerator:h,textareaElementGenerator:g,minusMenuElement:C,plusMenuElement:b,beforeRemoveAction:E,beforeAddAction:_,beforeUpdateAction:T,logger:O,onSubmitValueParser:I});case IM:return v.createElement(S2,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:s,onDeltaUpdate:l,readOnly:u,dataType:R,getStyle:c,addButtonElement:d,cancelButtonElement:y,editButtonElement:f,inputElementGenerator:h,textareaElementGenerator:g,minusMenuElement:C,plusMenuElement:b,beforeRemoveAction:E,beforeAddAction:_,beforeUpdateAction:T,logger:O,onSubmitValueParser:I});case kM:return v.createElement(Wt,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:R,getStyle:c,cancelButtonElement:y,editButtonElement:f,inputElementGenerator:h,minusMenuElement:C,logger:O,onSubmitValueParser:I});case PM:return v.createElement(Wt,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:R,getStyle:c,cancelButtonElement:y,editButtonElement:f,inputElementGenerator:h,minusMenuElement:C,logger:O,onSubmitValueParser:I});case RM:return v.createElement(Wt,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:R,getStyle:c,cancelButtonElement:y,editButtonElement:f,inputElementGenerator:h,minusMenuElement:C,logger:O,onSubmitValueParser:I});case DM:return v.createElement(Wt,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:D,dataType:R,getStyle:c,cancelButtonElement:y,editButtonElement:f,inputElementGenerator:h,minusMenuElement:C,logger:O,onSubmitValueParser:I});case FM:return v.createElement(Wt,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:R,getStyle:c,cancelButtonElement:y,editButtonElement:f,inputElementGenerator:h,minusMenuElement:C,logger:O,onSubmitValueParser:I});case jM:return v.createElement(Wt,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:R,getStyle:c,cancelButtonElement:y,editButtonElement:f,inputElementGenerator:h,minusMenuElement:C,logger:O,onSubmitValueParser:I});case NM:return v.createElement(A2,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:R,getStyle:c,cancelButtonElement:y,editButtonElement:f,textareaElementGenerator:g,minusMenuElement:C,logger:O,onSubmitValueParser:I});case BM:return v.createElement(Wt,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:D,dataType:R,getStyle:c,cancelButtonElement:y,editButtonElement:f,inputElementGenerator:h,minusMenuElement:C,logger:O,onSubmitValueParser:I});default:return null}}};Ia.defaultProps={keyPath:[],deep:0};var kl=class extends Ft{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath,e.name];this.state={name:e.name,data:e.data,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:o}=this.props,a=n.length;o(n[a-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n,nextDeep:o}=this.state,{beforeAddAction:a,logger:i}=this.props;a(e,n,o,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:s,onDeltaUpdate:l}=this.props;s(n[n.length-1],r),l({type:v2,keyPath:n,deep:o,key:e,newValue:t})}).catch(i.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:o,nextDeep:a}=this.state,i=n[e];t(e,o,a,i).then(()=>{let s={keyPath:o,deep:a,key:e,oldValue:i,type:E2};delete n[e],this.setState({data:n});let{onUpdate:l,onDeltaUpdate:u}=this.props;l(o[o.length-1],n),u(s)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:o}=this.props,{data:a,keyPath:i,nextDeep:s}=this.state,l=a[e];o(e,i,s,l,t).then(()=>{a[e]=t,this.setState({data:a});let{onUpdate:u,onDeltaUpdate:c}=this.props;u(i[i.length-1],a),c({type:x2,keyPath:i,deep:s,key:e,newValue:t,oldValue:l}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:o,readOnly:a,dataType:i,getStyle:s,minusMenuElement:l}=this.props,{minus:u,collapsed:c}=s(e,n,t,r,i),d=Object.getOwnPropertyNames(n),y=a(e,n,t,r,i),f=Ae(l,{onClick:o,className:"rejt-minus-menu",style:u});return v.createElement("span",{className:"rejt-collapsed"},v.createElement("span",{className:"rejt-collapsed-text",style:c,onClick:this.handleCollapseMode},"{...}"," ",d.length," ",d.length===1?"key":"keys"),!y&&f)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:o,addFormVisible:a}=this.state,{isCollapsed:i,handleRemove:s,onDeltaUpdate:l,readOnly:u,getStyle:c,dataType:d,addButtonElement:y,cancelButtonElement:f,editButtonElement:h,inputElementGenerator:g,textareaElementGenerator:C,minusMenuElement:b,plusMenuElement:E,beforeRemoveAction:_,beforeAddAction:T,beforeUpdateAction:O,logger:I,onSubmitValueParser:D}=this.props,{minus:R,plus:M,addForm:z,ul:Y,delimiter:Z}=c(e,t,r,n,d),V=Object.getOwnPropertyNames(t),P=u(e,t,r,n,d),q=Ae(E,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:M}),J=Ae(b,{onClick:s,className:"rejt-minus-menu",style:R}),X=V.map(te=>v.createElement(Ia,{key:te,name:te,data:t[te],keyPath:r,deep:o,isCollapsed:i,handleRemove:this.handleRemoveValue(te),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:l,readOnly:u,getStyle:c,addButtonElement:y,cancelButtonElement:f,editButtonElement:h,inputElementGenerator:g,textareaElementGenerator:C,minusMenuElement:b,plusMenuElement:E,beforeRemoveAction:_,beforeAddAction:T,beforeUpdateAction:O,logger:I,onSubmitValueParser:D}));return v.createElement("span",{className:"rejt-not-collapsed"},v.createElement("span",{className:"rejt-not-collapsed-delimiter",style:Z},"{"),!P&&q,v.createElement("ul",{className:"rejt-not-collapsed-list",style:Y},X),!P&&a&&v.createElement("div",{className:"rejt-add-form",style:z},v.createElement(Ml,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:y,cancelButtonElement:f,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:D})),v.createElement("span",{className:"rejt-not-collapsed-delimiter",style:Z},"}"),!P&&J)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:o}=this.state,{getStyle:a,dataType:i}=this.props,s=t?this.renderCollapsed():this.renderNotCollapsed(),l=a(e,r,n,o,i);return v.createElement("div",{className:"rejt-object-node"},v.createElement("span",{onClick:this.handleCollapseMode},v.createElement("span",{className:"rejt-name",style:l.name},e," :"," ")),s)}};kl.defaultProps={keyPath:[],deep:0,minusMenuElement:v.createElement("span",null," - "),plusMenuElement:v.createElement("span",null," + ")};var Wt=class extends Ft{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:o,deep:a}=this.state,{readOnly:i,dataType:s}=this.props,l=i(r,n,o,a,s);e&&!l&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:o}=this.props,{inputRef:a,name:i,deep:s}=this.state;if(!a)return;let l=n(!0,o,s,i,a.value);e({value:l,key:i}).then(()=>{w2(t,l)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:a,originalValue:i,readOnly:s,dataType:l,getStyle:u,editButtonElement:c,cancelButtonElement:d,inputElementGenerator:y,minusMenuElement:f,keyPath:h}=this.props,g=u(e,i,n,o,l),C=s(e,i,n,o,l),b=r&&!C,E=y(ql,h,o,e,i,l),_=Ae(c,{onClick:this.handleEdit}),T=Ae(d,{onClick:this.handleCancelEdit}),O=Ae(E,{ref:this.refInput,defaultValue:JSON.stringify(i)}),I=Ae(f,{onClick:a,className:"rejt-minus-menu",style:g.minus});return v.createElement("li",{className:"rejt-value-node",style:g.li},v.createElement("span",{className:"rejt-name",style:g.name},e," : "),b?v.createElement("span",{className:"rejt-edit-form",style:g.editForm},O," ",T,_):v.createElement("span",{className:"rejt-value",style:g.value,onClick:C?null:this.handleEditMode},String(t)),!C&&!b&&I)}};Wt.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:v.createElement("button",null,"e"),cancelButtonElement:v.createElement("button",null,"c"),minusMenuElement:v.createElement("span",null," - ")};function qM(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var MM={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},UM={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},$M={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}},T2=class extends Ft{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:o,getStyle:a,addButtonElement:i,cancelButtonElement:s,editButtonElement:l,inputElement:u,textareaElement:c,minusMenuElement:d,plusMenuElement:y,beforeRemoveAction:f,beforeAddAction:h,beforeUpdateAction:g,logger:C,onSubmitValueParser:b,fallback:E=null}=this.props,_=dr(e),T=o;dr(o)==="Boolean"&&(T=()=>o);let O=u;u&&dr(u)!=="Function"&&(O=()=>u);let I=c;return c&&dr(c)!=="Function"&&(I=()=>c),_==="Object"||_==="Array"?v.createElement("div",{className:"rejt-tree"},v.createElement(Ia,{data:e,name:t,deep:-1,isCollapsed:r,onUpdate:this.onUpdate,onDeltaUpdate:n,readOnly:T,getStyle:a,addButtonElement:i,cancelButtonElement:s,editButtonElement:l,inputElementGenerator:O,textareaElementGenerator:I,minusMenuElement:d,plusMenuElement:y,handleRemove:this.removeRoot,beforeRemoveAction:f,beforeAddAction:h,beforeUpdateAction:g,logger:C,onSubmitValueParser:b})):E}};T2.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,o)=>{switch(o){case"Object":case"Error":return MM;case"Array":return UM;default:return $M}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,o)=>qM(o),inputElement:()=>v.createElement("input",null),textareaElement:()=>v.createElement("textarea",null),fallback:null};var{window:zM}=ct,VM=W.div(({theme:e})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:e.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.color.lighter,borderColor:e.appBorderColor}})),vl=W.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer",order:t?"initial":9})),HM=W(ri)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.ancillary},"svg + &":{marginLeft:0}})),JM=W(qu)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.negative},"svg + &":{marginLeft:0}})),xv=W.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),GM=W(yt)(({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),WM=W(ut.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),KM={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},YM=e=>{e.currentTarget.dispatchEvent(new zM.KeyboardEvent("keydown",KM))},XM=e=>{e.currentTarget.select()},QM=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),wv=({name:e,value:t,onChange:r,argType:n})=>{let o=ei(),a=jt(()=>t&&(0,Pv.default)(t),[t]),i=a!=null,[s,l]=me(!i),[u,c]=me(null),d=!!n?.table?.readonly,y=Ve(_=>{try{_&&r(JSON.parse(_)),c(void 0)}catch(T){c(T)}},[r]),[f,h]=me(!1),g=Ve(()=>{r({}),h(!0)},[h]),C=Xe(null);if(He(()=>{f&&C.current&&C.current.select()},[f]),!i)return v.createElement(Nt,{disabled:d,id:ln(e),onClick:g},"Set object");let b=v.createElement(WM,{ref:C,id:tt(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:_=>y(_.target.value),placeholder:"Edit JSON string...",autoFocus:f,valid:u?"error":null,readOnly:d}),E=Array.isArray(t)||typeof t=="object"&&t?.constructor===Object;return v.createElement(VM,{"aria-readonly":d},E&&v.createElement(GM,{onClick:_=>{_.preventDefault(),l(T=>!T)}},s?v.createElement(ju,null):v.createElement(Nu,null),v.createElement("span",null,"RAW")),s?b:v.createElement(T2,{readOnly:d||!E,isCollapsed:E?void 0:()=>!0,data:a,rootName:e,onFullyUpdate:r,getStyle:QM(o),cancelButtonElement:v.createElement(vl,{type:"button"},"Cancel"),editButtonElement:v.createElement(vl,{type:"submit"},"Save"),addButtonElement:v.createElement(vl,{type:"submit",primary:!0},"Save"),plusMenuElement:v.createElement(HM,null),minusMenuElement:v.createElement(JM,null),inputElement:(_,T,O,I)=>I?v.createElement(xv,{onFocus:XM,onBlur:YM}):v.createElement(xv,null),fallback:b}))},ZM=W.input(({theme:e,min:t,max:r,value:n,disabled:o})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:e.base==="light"?`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${bt(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${bt(.02,e.input.background)} 100%)`:`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${cr(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${cr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:o?"not-allowed":"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${Pt(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Pt(e.appBorderColor,.2)}`,cursor:o?"not-allowed":"grab",appearance:"none",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${bt(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:o?"not-allowed":"grab"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:Pt(e.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:e.color.secondary,boxShadow:`0 0px 5px 0px ${e.color.secondary}`}},"&::-moz-range-track":{background:e.base==="light"?`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${bt(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${bt(.02,e.input.background)} 100%)`:`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${cr(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${cr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:o?"not-allowed":"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${Pt(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Pt(e.appBorderColor,.2)}`,cursor:o?"not-allowed":"grap",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${bt(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:e.base==="light"?`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${bt(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${bt(.02,e.input.background)} 100%)`:`linear-gradient(to right, + ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, + ${cr(.02,e.input.background)} ${(n-t)/(r-t)*100}%, + ${cr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${Pt(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),C2=W.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),e4=W(C2)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),t4=W.div({display:"flex",alignItems:"center",width:"100%"});function r4(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var n4=({name:e,value:t,onChange:r,min:n=0,max:o=100,step:a=1,onBlur:i,onFocus:s,argType:l})=>{let u=f=>{r(fM(f.target.value))},c=t!==void 0,d=jt(()=>r4(a),[a]),y=!!l?.table?.readonly;return v.createElement(t4,{"aria-readonly":y},v.createElement(C2,null,n),v.createElement(ZM,{id:tt(e),type:"range",disabled:y,onChange:u,name:e,value:t,min:n,max:o,step:a,onFocus:s,onBlur:i}),v.createElement(e4,{numberOFDecimalsPlaces:d,max:o},c?t.toFixed(d):"--"," / ",o))},o4=W.label({display:"flex"}),a4=W.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),i4=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,maxLength:a,argType:i})=>{let s=f=>{r(f.target.value)},l=!!i?.table?.readonly,[u,c]=me(!1),d=Ve(()=>{r(""),c(!0)},[c]);if(t===void 0)return v.createElement(Nt,{variant:"outline",size:"medium",disabled:l,id:ln(e),onClick:d},"Set string");let y=typeof t=="string";return v.createElement(o4,null,v.createElement(ut.Textarea,{id:tt(e),maxLength:a,onChange:s,disabled:l,size:"flex",placeholder:"Edit string...",autoFocus:u,valid:y?null:"error",name:e,value:y?t:"",onFocus:n,onBlur:o}),a&&v.createElement(a4,{isMaxed:t?.length===a},t?.length??0," / ",a))},s4=W(ut.Input)({padding:10});function l4(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var u4=({onChange:e,name:t,accept:r="image/*",value:n,argType:o})=>{let a=Xe(null),i=o?.control?.readOnly;function s(l){if(!l.target.files)return;let u=Array.from(l.target.files).map(c=>URL.createObjectURL(c));e(u),l4(n)}return He(()=>{n==null&&a.current&&(a.current.value=null)},[n,t]),v.createElement(s4,{ref:a,id:tt(t),type:"file",name:t,multiple:!0,disabled:i,onChange:s,accept:r,size:"flex"})},c4=Xl(()=>Promise.resolve().then(()=>(Z0(),Q0))),p4=e=>v.createElement(Yl,{fallback:v.createElement("div",null)},v.createElement(c4,{...e})),d4={array:wv,object:wv,boolean:aM,color:p4,date:pM,number:hM,check:Hr,"inline-check":Hr,radio:Hr,"inline-radio":Hr,select:Hr,"multi-select":Hr,range:n4,text:i4,file:u4},Sv=()=>v.createElement(v.Fragment,null,"-"),f4=({row:e,arg:t,updateArgs:r,isHovered:n})=>{let{key:o,control:a}=e,[i,s]=me(!1),[l,u]=me({value:t});He(()=>{i||u({value:t})},[i,t]);let c=Ve(g=>(u({value:g}),r({[o]:g}),g),[r,o]),d=Ve(()=>s(!1),[]),y=Ve(()=>s(!0),[]);if(!a||a.disable){let g=a?.disable!==!0&&e?.type?.name!=="function";return n&&g?v.createElement(Qt,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):v.createElement(Sv,null)}let f={name:o,argType:e,value:l.value,onChange:c,onBlur:d,onFocus:y},h=d4[a.type]||Sv;return v.createElement(h,{...f,...a,controlType:a.type})},y4=W.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:vr({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),h4=({tags:e})=>{let t=(e.params||[]).filter(a=>a.description),r=t.length!==0,n=e.deprecated!=null,o=e.returns!=null&&e.returns.description!=null;return!r&&!o&&!n?null:v.createElement(v.Fragment,null,v.createElement(y4,null,v.createElement("tbody",null,n&&v.createElement("tr",{key:"deprecated"},v.createElement("td",{colSpan:2},v.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(a=>v.createElement("tr",{key:a.name},v.createElement("td",null,v.createElement("code",null,a.name)),v.createElement("td",null,a.description))),o&&v.createElement("tr",{key:"returns"},v.createElement("td",null,v.createElement("code",null,"Returns")),v.createElement("td",null,e.returns.description)))))},Pl=8,Av=W.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),m4=W.span(vr,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),g4=W.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),b4=W.div(vr,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),v4=W.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),E4=W(Fu)({marginLeft:4}),x4=W(ni)({marginLeft:4}),w4=()=>v.createElement("span",null,"-"),_2=({text:e,simple:t})=>v.createElement(m4,{simple:t},e),S4=(0,OB.default)(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),A4=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return(0,Rv.default)(t)},Tv=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,Pl)),r.map(n=>v.createElement(_2,{key:n,text:n===""?'""':n}))},T4=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[o,a]=me(!1),[i,s]=me(t||!1);if(r==null)return null;let l=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(l))return v.createElement(_2,{text:l});let u=A4(l),c=u.length;return c>Pl?v.createElement(Av,{isExpanded:i},Tv(u,i),v.createElement(g4,{onClick:()=>s(!i)},i?"Show less...":`Show ${c-Pl} more...`)):v.createElement(Av,null,Tv(u))}return v.createElement($a,{closeOnOutsideClick:!0,placement:"bottom",visible:o,onVisibleChange:u=>{a(u)},tooltip:v.createElement(v4,{width:S4(n)},v.createElement(oo,{language:"jsx",format:!1},n))},v.createElement(b4,{className:"sbdocs-expandable"},v.createElement("span",null,l),o?v.createElement(E4,null):v.createElement(x4,null)))},El=({value:e,initialExpandedArgs:t})=>e==null?v.createElement(w4,null):v.createElement(T4,{value:e,initialExpandedArgs:t}),C4=W.span({fontWeight:"bold"}),_4=W.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),O4=W.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...vr({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),I4=W.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?xe(.1,e.color.defaultText):xe(.2,e.color.defaultText),marginTop:t?4:0})),k4=W.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?xe(.1,e.color.defaultText):xe(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),P4=W.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),R4=e=>e&&{summary:typeof e=="string"?e:e.name},ba=e=>{let[t,r]=me(!1),{row:n,updateArgs:o,compact:a,expandable:i,initialExpandedArgs:s}=e,{name:l,description:u}=n,c=n.table||{},d=c.type||R4(n.type),y=c.defaultValue||n.defaultValue,f=n.type?.required,h=u!=null&&u!=="";return v.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},v.createElement(P4,{expandable:i},v.createElement(C4,null,l),f?v.createElement(_4,{title:"Required"},"*"):null),a?null:v.createElement("td",null,h&&v.createElement(O4,null,v.createElement(_B,null,u)),c.jsDocTags!=null?v.createElement(v.Fragment,null,v.createElement(k4,{hasDescription:h},v.createElement(El,{value:d,initialExpandedArgs:s})),v.createElement(h4,{tags:c.jsDocTags})):v.createElement(I4,{hasDescription:h},v.createElement(El,{value:d,initialExpandedArgs:s}))),a?null:v.createElement("td",null,v.createElement(El,{value:y,initialExpandedArgs:s})),o?v.createElement("td",null,v.createElement(f4,{...e,isHovered:t})):null)},D4=W.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),F4=W.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),j4=W.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),N4=({inAddonPanel:e})=>{let[t,r]=me(!0);return He(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:v.createElement(D4,{inAddonPanel:e},v.createElement(Ba,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:v.createElement(v.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:v.createElement(F4,null,e&&v.createElement(v.Fragment,null,v.createElement(Qt,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},v.createElement(Mu,null)," Watch 5m video"),v.createElement(j4,null),v.createElement(Qt,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},v.createElement(ho,null)," Read docs")),!e&&v.createElement(Qt,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},v.createElement(ho,null)," Learn how to set that up"))}))},B4=W(Ru)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?xe(.25,e.color.defaultText):xe(.3,e.color.defaultText),border:"none",display:"inline-block"})),L4=W(Du)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?xe(.25,e.color.defaultText):xe(.3,e.color.defaultText),border:"none",display:"inline-block"})),q4=W.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),M4=W.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?xe(.4,e.color.defaultText):xe(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),U4=W.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),$4=W.td(()=>({position:"relative"})),z4=W.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${cr(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),Cv=W.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),xl=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[a,i]=me(n),s=e==="subsection"?U4:M4,l=r?.length||0,u=e==="subsection"?`${l} item${l!==1?"s":""}`:"",c=`${a?"Hide":"Show"} ${e==="subsection"?l:t} item${l!==1?"s":""}`;return v.createElement(v.Fragment,null,v.createElement(z4,{title:c},v.createElement(s,{colSpan:1},v.createElement(Cv,{onClick:d=>i(!a),tabIndex:0},c),v.createElement(q4,null,a?v.createElement(B4,null):v.createElement(L4,null),t)),v.createElement($4,{colSpan:o-1},v.createElement(Cv,{onClick:d=>i(!a),tabIndex:-1,style:{outline:"none"}},c),a?null:u)),a?r:null)},va=W.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Ge=W.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),Fe=W.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),We=[2,4,2,2],V4=()=>v.createElement(v.Fragment,null,v.createElement(va,null,v.createElement(Ge,{numColumn:We[0]},v.createElement(Fe,{width:"60%"})),v.createElement(Ge,{numColumn:We[1]},v.createElement(Fe,{width:"30%"})),v.createElement(Ge,{numColumn:We[2]},v.createElement(Fe,{width:"60%"})),v.createElement(Ge,{numColumn:We[3]},v.createElement(Fe,{width:"60%"}))),v.createElement(va,null,v.createElement(Ge,{numColumn:We[0]},v.createElement(Fe,{width:"60%"})),v.createElement(Ge,{numColumn:We[1]},v.createElement(Fe,{width:"80%"}),v.createElement(Fe,{width:"30%"})),v.createElement(Ge,{numColumn:We[2]},v.createElement(Fe,{width:"60%"})),v.createElement(Ge,{numColumn:We[3]},v.createElement(Fe,{width:"60%"}))),v.createElement(va,null,v.createElement(Ge,{numColumn:We[0]},v.createElement(Fe,{width:"60%"})),v.createElement(Ge,{numColumn:We[1]},v.createElement(Fe,{width:"80%"}),v.createElement(Fe,{width:"30%"})),v.createElement(Ge,{numColumn:We[2]},v.createElement(Fe,{width:"60%"})),v.createElement(Ge,{numColumn:We[3]},v.createElement(Fe,{width:"60%"}))),v.createElement(va,null,v.createElement(Ge,{numColumn:We[0]},v.createElement(Fe,{width:"60%"})),v.createElement(Ge,{numColumn:We[1]},v.createElement(Fe,{width:"80%"}),v.createElement(Fe,{width:"30%"})),v.createElement(Ge,{numColumn:We[2]},v.createElement(Fe,{width:"60%"})),v.createElement(Ge,{numColumn:We[3]},v.createElement(Fe,{width:"60%"})))),H4=W.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?xe(.25,e.color.defaultText):xe(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),J4=W(yt)(({theme:e})=>({margin:"-4px -12px -4px 0"})),G4=W.span({display:"flex",justifyContent:"space-between"}),W4={alpha:(e,t)=>e.name.localeCompare(t.name),requiredFirst:(e,t)=>+!!t.type?.required-+!!e.type?.required||e.name.localeCompare(t.name),none:void 0},K4=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([a,i])=>{let{category:s,subcategory:l}=i?.table||{};if(s){let u=r.sections[s]||{ungrouped:[],subsections:{}};if(!l)u.ungrouped.push({key:a,...i});else{let c=u.subsections[l]||[];c.push({key:a,...i}),u.subsections[l]=c}r.sections[s]=u}else if(l){let u=r.ungroupedSubsections[l]||[];u.push({key:a,...i}),r.ungroupedSubsections[l]=u}else r.ungrouped.push({key:a,...i})});let n=W4[t],o=a=>n?Object.keys(a).reduce((i,s)=>({...i,[s]:a[s].sort(n)}),{}):a;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:o(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((a,i)=>({...a,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:o(r.sections[i].subsections)}}),{})}},Y4=(e,t,r)=>{try{return w3(e,t,r)}catch(n){return Vu.warn(n.message),!1}},X4=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,initialExpandedArgs:a,sort:i="none",isLoading:s}=e;if("error"in e){let{error:E}=e;return v.createElement(y2,null,E,"\xA0",v.createElement(Qt,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},v.createElement(ho,null)," Read the docs"))}if(s)return v.createElement(V4,null);let{rows:l,args:u,globals:c}="rows"in e&&e,d=K4((0,kv.default)(l,E=>!E?.table?.disable&&Y4(E,u||{},c||{})),i),y=d.ungrouped.length===0,f=Object.entries(d.sections).length===0,h=Object.entries(d.ungroupedSubsections).length===0;if(y&&f&&h)return v.createElement(N4,{inAddonPanel:o});let g=1;t&&(g+=1),n||(g+=2);let C=Object.keys(d.sections).length>0,b={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:a};return v.createElement(Ma,null,v.createElement(H4,{compact:n,inAddonPanel:o,className:"docblock-argstable sb-unstyled"},v.createElement("thead",{className:"docblock-argstable-head"},v.createElement("tr",null,v.createElement("th",null,v.createElement("span",null,"Name")),n?null:v.createElement("th",null,v.createElement("span",null,"Description")),n?null:v.createElement("th",null,v.createElement("span",null,"Default")),t?v.createElement("th",null,v.createElement(G4,null,"Control"," ",!s&&r&&v.createElement(J4,{onClick:()=>r(),title:"Reset controls"},v.createElement(oi,{"aria-hidden":!0})))):null)),v.createElement("tbody",{className:"docblock-argstable-body"},d.ungrouped.map(E=>v.createElement(ba,{key:E.key,row:E,arg:u&&u[E.key],...b})),Object.entries(d.ungroupedSubsections).map(([E,_])=>v.createElement(xl,{key:E,label:E,level:"subsection",colSpan:g},_.map(T=>v.createElement(ba,{key:T.key,row:T,arg:u&&u[T.key],expandable:C,...b})))),Object.entries(d.sections).map(([E,_])=>v.createElement(xl,{key:E,label:E,level:"section",colSpan:g},_.ungrouped.map(T=>v.createElement(ba,{key:T.key,row:T,arg:u&&u[T.key],...b})),Object.entries(_.subsections).map(([T,O])=>v.createElement(xl,{key:T,label:T,level:"subsection",colSpan:g},O.map(I=>v.createElement(ba,{key:I.key,row:I,arg:u&&u[I.key],expandable:C,...b})))))))))};W.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?xe(.4,e.color.defaultText):xe(.6,e.color.defaultText)}));W.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});W.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});W.div(Er,({theme:e})=>({...Oa(e),margin:"25px 0 40px",padding:"30px 20px"}));W.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));W.div(({theme:e})=>({color:e.base==="light"?xe(.2,e.color.defaultText):xe(.6,e.color.defaultText)}));W.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});W.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?xe(.4,e.color.defaultText):xe(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));W.div({display:"flex",flexDirection:"row"});W.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));W.div(({theme:e})=>({...Oa(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));W.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});W.div({flex:1,display:"flex",flexDirection:"row"});W.div({display:"flex",alignItems:"flex-start"});W.div({flex:"0 0 30%"});W.div({flex:1});W.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?xe(.4,e.color.defaultText):xe(.6,e.color.defaultText)}));W.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));W.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));W.div(({theme:e})=>({...Oa(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));W.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});W.div({display:"flex",flexFlow:"row wrap"});ct&&ct.__DOCS_CONTEXT__===void 0&&(ct.__DOCS_CONTEXT__=un(null),ct.__DOCS_CONTEXT__.displayName="DocsContext");var Q4=ct?ct.__DOCS_CONTEXT__:un(null);un({sources:{}});var{document:Z4}=ct;function e6(e,t){e.channel.emit(au,t)}Va.a;var O2=["h1","h2","h3","h4","h5","h6"],t6=O2.reduce((e,t)=>({...e,[t]:W(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),r6=W.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),n6=({as:e,id:t,children:r,...n})=>{let o=Ql(Q4),a=t6[e],i=`#${t}`;return v.createElement(a,{id:t,...n},v.createElement(r6,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:s=>{Z4.getElementById(t)&&e6(o,i)}},v.createElement(Bu,null)),r)},I2=e=>{let{as:t,id:r,children:n,...o}=e;if(r)return v.createElement(n6,{as:t,id:r,...o},n);let a=t,{as:i,...s}=e;return v.createElement(a,{...Ha(s,t)})};O2.reduce((e,t)=>({...e,[t]:r=>v.createElement(I2,{as:t,...r})}),{});var o6=(e=>(e.INFO="info",e.NOTES="notes",e.DOCGEN="docgen",e.AUTO="auto",e))(o6||{});Wl(qq());W.div(({theme:e})=>({width:"10rem","@media (max-width: 768px)":{display:"none"}}));W.div(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}}));W.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.textColor,textTransform:"uppercase",marginBottom:10}));var a6=({children:e,disableAnchor:t,...r})=>{if(t||typeof e!="string")return v.createElement(qa,null,e);let n=e.toLowerCase().replace(/[^a-z0-9]/gi,"-");return v.createElement(I2,{as:"h2",id:n,...r},e)};W(a6)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,fontWeight:e.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:e.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}}));var i6=Qa({from:{transform:"translateY(40px)"},to:{transform:"translateY(0)"}}),s6=Qa({from:{background:"var(--highlight-bg-color)"},to:{}}),l6=W.div({containerType:"size",position:"sticky",bottom:0,height:39,overflow:"hidden",zIndex:1}),u6=W(Na)(({theme:e})=>({"--highlight-bg-color":e.base==="dark"?"#153B5B":"#E0F0FF",display:"flex",flexDirection:"row-reverse",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:6,padding:"6px 10px",animation:`${i6} 300ms, ${s6} 2s`,background:e.background.bar,borderTop:`1px solid ${e.appBorderColor}`,fontSize:e.typography.size.s2,"@container (max-width: 799px)":{flexDirection:"row",justifyContent:"flex-end"}})),c6=W.div({display:"flex",flex:"99 0 auto",alignItems:"center",marginLeft:10,gap:6}),p6=W.div(({theme:e})=>({display:"flex",flex:"1 0 0",alignItems:"center",gap:2,color:e.color.mediumdark,fontSize:e.typography.size.s2})),wl=W.div({"@container (max-width: 799px)":{lineHeight:0,textIndent:"-9999px","&::after":{content:"attr(data-short-label)",display:"block",lineHeight:"initial",textIndent:"0"}}}),d6=W(ut.Input)(({theme:e})=>({"::placeholder":{color:e.color.mediumdark},"&:invalid:not(:placeholder-shown)":{boxShadow:`${e.color.negative} 0 0 0 1px inset`}})),f6=({saveStory:e,createStory:t,resetArgs:r})=>{let n=v.useRef(null),[o,a]=v.useState(!1),[i,s]=v.useState(!1),[l,u]=v.useState(""),[c,d]=v.useState(null),y=async()=>{o||(a(!0),await e().catch(()=>{}),a(!1))},f=()=>{s(!0),u(""),setTimeout(()=>n.current?.focus(),0)},h=g=>{let C=g.target.value.replace(/^[^a-z]/i,"").replace(/[^a-z0-9-_ ]/gi,"").replaceAll(/([-_ ]+[a-z0-9])/gi,b=>b.toUpperCase().replace(/[-_ ]/g,""));u(C.charAt(0).toUpperCase()+C.slice(1))};return v.createElement(l6,{id:"save-from-controls"},v.createElement(u6,null,v.createElement(p6,null,v.createElement(Bt,{as:"div",hasChrome:!1,trigger:"hover",tooltip:v.createElement(Zt,{note:"Save changes to story"})},v.createElement(yt,{"aria-label":"Save changes to story",disabled:o,onClick:y},v.createElement(Pu,null),v.createElement(wl,{"data-short-label":"Save"},"Update story"))),v.createElement(Bt,{as:"div",hasChrome:!1,trigger:"hover",tooltip:v.createElement(Zt,{note:"Create new story with these settings"})},v.createElement(yt,{"aria-label":"Create new story with these settings",onClick:f},v.createElement(ri,null),v.createElement(wl,{"data-short-label":"New"},"Create new story"))),v.createElement(Bt,{as:"div",hasChrome:!1,trigger:"hover",tooltip:v.createElement(Zt,{note:"Reset changes"})},v.createElement(yt,{"aria-label":"Reset changes",onClick:()=>r()},v.createElement(oi,null),v.createElement("span",null,"Reset")))),v.createElement(c6,null,v.createElement(wl,{"data-short-label":"Unsaved changes"},"You modified this story. Do you want to save your changes?")),v.createElement(ht,{width:350,open:i,onOpenChange:s},v.createElement(ut,{onSubmit:async g=>{if(g.preventDefault(),!o)try{d(null),a(!0),await t(l.replace(/^[^a-z]/i,"").replaceAll(/[^a-z0-9]/gi,"")),s(!1),a(!1)}catch(C){d(C.message),a(!1)}},id:"create-new-story-form"},v.createElement(ht.Content,null,v.createElement(ht.Header,null,v.createElement(ht.Title,null,"Create new story"),v.createElement(ht.Description,null,"This will add a new story to your existing stories file.")),v.createElement(d6,{onChange:h,placeholder:"Story export name",readOnly:o,ref:n,value:l}),v.createElement(ht.Actions,null,v.createElement(Nt,{disabled:o||!l,size:"medium",type:"submit",variant:"solid"},"Create"),v.createElement(ht.Dialog.Close,{asChild:!0},v.createElement(Nt,{disabled:o,size:"medium",type:"reset"},"Cancel"))))),c&&v.createElement(ht.Error,null,c))))},_v="addon-controls",k2="controls",Ov=e=>Object.entries(e).reduce((t,[r,n])=>n!==void 0?Object.assign(t,{[r]:n}):t,{}),y6=W.div({display:"grid",gridTemplateRows:"1fr 39px",height:"100%",maxHeight:"100vh",overflowY:"auto"}),h6=({saveStory:e,createStory:t})=>{let[r,n]=me(!0),[o,a,i,s]=wu(),[l]=Su(),u=Xa(),{expanded:c,sort:d,presetColors:y,disableSaveFromUI:f=!1}=Au(k2,{}),{path:h,previewInitialized:g}=Tu();He(()=>{g&&n(!1)},[g]);let C=Object.values(u).some(_=>_?.control),b=Object.entries(u).reduce((_,[T,O])=>{let I=O?.control;return typeof I!="object"||I?.type!=="color"||I?.presetColors?_[T]=O:_[T]={...O,control:{...I,presetColors:y}},_},{}),E=jt(()=>!!o&&!!s&&!er(Ov(o),Ov(s)),[o,s]);return v.createElement(y6,null,v.createElement(X4,{key:h,compact:!c&&C,rows:b,args:o,globals:l,updateArgs:a,resetArgs:i,inAddonPanel:!0,sort:d,isLoading:r}),C&&E&&ct.CONFIG_TYPE==="DEVELOPMENT"&&f!==!0&&v.createElement(f6,{resetArgs:i,saveStory:e,createStory:t}))};function m6(){let e=Xa(),t=Object.values(e).filter(r=>r?.control&&!r?.table?.disable).length;return v.createElement("div",null,v.createElement(Ua,{col:1},v.createElement("span",{style:{display:"inline-block",verticalAlign:"middle"}},"Controls"),t===0?"":v.createElement(ja,{status:"neutral"},t)))}var Iv=e=>JSON.stringify(e,(t,r)=>typeof r=="function"?"__sb_empty_function_arg__":r);fo.register(_v,e=>{let t=fo.getChannel(),r=async()=>{let o=e.getCurrentStoryData();if(o.type!=="story")throw new Error("Not a story");try{let a=await Ya(t,Wa,uo,{args:Iv(Object.entries(o.args||{}).reduce((i,[s,l])=>(er(l,o.initialArgs?.[s])||(i[s]=l),i),{})),csfId:o.id,importPath:o.importPath});e.addNotification({id:"save-story-success",icon:{name:"passed",color:yo.positive},content:{headline:"Story saved",subHeadline:v.createElement(v.Fragment,null,"Updated story ",v.createElement("b",null,a.sourceStoryName),".")},duration:8e3})}catch(a){throw e.addNotification({id:"save-story-error",icon:{name:"failed",color:yo.negative},content:{headline:"Failed to save story",subHeadline:a?.message||"Check the Storybook process on the command line for more details."},duration:8e3}),a}},n=async o=>{let a=e.getCurrentStoryData();if(a.type!=="story")throw new Error("Not a story");let i=await Ya(t,Wa,uo,{args:a.args&&Iv(a.args),csfId:a.id,importPath:a.importPath,name:o});e.addNotification({id:"save-story-success",icon:{name:"passed",color:yo.positive},content:{headline:"Story created",subHeadline:v.createElement(v.Fragment,null,"Added story ",v.createElement("b",null,i.newStoryName)," based on ",v.createElement("b",null,i.sourceStoryName),".")},duration:8e3,onClick:({onDismiss:s})=>{s(),e.selectStory(i.newStoryId)}})};fo.add(_v,{title:m6,type:xu.PANEL,paramKey:k2,render:({active:o})=>!o||!e.getCurrentStoryData()?null:v.createElement(Fa,{active:o},v.createElement(h6,{saveStory:r,createStory:n}))}),t.on(uo,o=>{if(!o.success)return;let a=e.getCurrentStoryData();a.type==="story"&&(e.resetStoryArgs(a),o.payload.newStoryId&&e.selectStory(o.payload.newStoryId))})});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/sb-addons/essentials-toolbars-2/manager-bundle.js.LEGAL.txt b/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt similarity index 100% rename from sb-addons/essentials-toolbars-2/manager-bundle.js.LEGAL.txt rename to sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt diff --git a/sb-addons/essentials-toolbars-2/manager-bundle.js b/sb-addons/essentials-toolbars-2/manager-bundle.js deleted file mode 100644 index 301fbcb61..000000000 --- a/sb-addons/essentials-toolbars-2/manager-bundle.js +++ /dev/null @@ -1,3 +0,0 @@ -try{ -(()=>{var l=__REACT__,{Children:le,Component:ne,Fragment:ie,Profiler:se,PureComponent:ce,StrictMode:ue,Suspense:me,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:pe,cloneElement:de,createContext:be,createElement:Se,createFactory:Te,createRef:ye,forwardRef:_e,isValidElement:fe,lazy:Ce,memo:ve,useCallback:v,useContext:Ie,useDebugValue:Oe,useEffect:E,useImperativeHandle:xe,useLayoutEffect:Ee,useMemo:ge,useReducer:he,useRef:L,useState:R,version:ke}=__REACT__;var Pe=__STORYBOOK_API__,{ActiveTabs:Me,Consumer:Ne,ManagerContext:we,Provider:He,addons:g,combineParameters:Ve,controlOrMetaKey:De,controlOrMetaSymbol:Fe,eventMatchesShortcut:Ge,eventToShortcut:We,isMacLike:Ke,isShortcutTaken:Ye,keyToSymbol:$e,merge:ze,mockChannel:Ue,optionOrAltSymbol:je,shortcutMatchesShortcut:qe,shortcutToHumanString:Ze,types:B,useAddonState:Je,useArgTypes:Qe,useArgs:Xe,useChannel:et,useGlobalTypes:P,useGlobals:h,useParameter:tt,useSharedState:ot,useStoryPrepared:rt,useStorybookApi:M,useStorybookState:at}=__STORYBOOK_API__;var ct=__STORYBOOK_COMPONENTS__,{A:ut,ActionBar:mt,AddonPanel:pt,Badge:dt,Bar:bt,Blockquote:St,Button:Tt,ClipboardCode:yt,Code:_t,DL:ft,Div:Ct,DocumentWrapper:vt,ErrorFormatter:It,FlexBar:Ot,Form:xt,H1:Et,H2:gt,H3:ht,H4:kt,H5:At,H6:Lt,HR:Rt,IconButton:N,IconButtonSkeleton:Bt,Icons:k,Img:Pt,LI:Mt,Link:Nt,ListItem:wt,Loader:Ht,OL:Vt,P:Dt,Placeholder:Ft,Pre:Gt,ResetWrapper:Wt,ScrollArea:Kt,Separator:w,Spaced:Yt,Span:$t,StorybookIcon:zt,StorybookLogo:Ut,Symbols:jt,SyntaxHighlighter:qt,TT:Zt,TabBar:Jt,TabButton:Qt,TabWrapper:Xt,Table:eo,Tabs:to,TabsState:oo,TooltipLinkList:H,TooltipMessage:ro,TooltipNote:ao,UL:lo,WithTooltip:V,WithTooltipPure:no,Zoom:io,codeCommon:so,components:co,createCopyToClipboardFunction:uo,getStoryHref:mo,icons:po,interleaveSeparators:bo,nameSpaceClassNames:So,resetComponents:To,withReset:yo}=__STORYBOOK_COMPONENTS__;var G=({active:o,title:t,icon:e,description:r,onClick:a})=>l.createElement(N,{active:o,title:r,onClick:a},e&&l.createElement(k,{icon:e}),t?`\xA0${t}`:null),W=["reset"],K=o=>o.filter(t=>!W.includes(t.type)).map(t=>t.value),b="addon-toolbars",Y=async(o,t,e)=>{e&&e.next&&await o.setAddonShortcut(b,{label:e.next.label,defaultShortcut:e.next.keys,actionName:`${t}:next`,action:e.next.action}),e&&e.previous&&await o.setAddonShortcut(b,{label:e.previous.label,defaultShortcut:e.previous.keys,actionName:`${t}:previous`,action:e.previous.action}),e&&e.reset&&await o.setAddonShortcut(b,{label:e.reset.label,defaultShortcut:e.reset.keys,actionName:`${t}:reset`,action:e.reset.action})},$=o=>t=>{let{id:e,toolbar:{items:r,shortcuts:a}}=t,d=M(),[S,i]=h(),n=L([]),s=S[e],I=v(()=>{i({[e]:""})},[i]),O=v(()=>{let p=n.current,c=p.indexOf(s),m=c===p.length-1?0:c+1,T=n.current[m];i({[e]:T})},[n,s,i]),u=v(()=>{let p=n.current,c=p.indexOf(s),m=c>-1?c:0,T=m===0?p.length-1:m-1,y=n.current[T];i({[e]:y})},[n,s,i]);return E(()=>{a&&Y(d,e,{next:{...a.next,action:O},previous:{...a.previous,action:u},reset:{...a.reset,action:I}})},[d,e,a,O,u,I]),E(()=>{n.current=K(r)},[]),l.createElement(o,{cycleValues:n.current,...t})},D=({currentValue:o,items:t})=>o!=null&&t.find(e=>e.value===o&&e.type!=="reset"),z=({currentValue:o,items:t})=>{let e=D({currentValue:o,items:t});if(e)return e.icon},U=({currentValue:o,items:t})=>{let e=D({currentValue:o,items:t});if(e)return e.title},j=({left:o,right:t,title:e,value:r,icon:a,hideIcon:d,onClick:S,currentValue:i})=>{let n=a&&l.createElement(k,{style:{opacity:1},icon:a}),s={id:r??"_reset",active:i===r,right:t,title:e,left:o,onClick:S};return a&&!d&&(s.left=n),s},q=$(({id:o,name:t,description:e,toolbar:{icon:r,items:a,title:d,preventDynamicIcon:S,dynamicTitle:i}})=>{let[n,s]=h(),[I,O]=R(!1),u=n[o],p=!!u,c=r,m=d;S||(c=z({currentValue:u,items:a})||c),i&&(m=U({currentValue:u,items:a})||m),!m&&!c&&console.warn(`Toolbar '${t}' has no title or icon`);let T=v(y=>{s({[o]:y})},[u,s]);return l.createElement(V,{placement:"top",tooltip:({onHide:y})=>{let F=a.filter(({type:x})=>{let A=!0;return x==="reset"&&!u&&(A=!1),A}).map(x=>j({...x,currentValue:u,onClick:()=>{T(x.value),y()}}));return l.createElement(H,{links:F})},closeOnOutsideClick:!0,onVisibleChange:O},l.createElement(G,{active:I||p,description:e||"",icon:c,title:m||""}))}),Z={type:"item",value:""},J=(o,t)=>({...t,name:t.name||o,description:t.description||o,toolbar:{...t.toolbar,items:t.toolbar.items.map(e=>{let r=typeof e=="string"?{value:e,title:e}:e;return r.type==="reset"&&t.toolbar.icon&&(r.icon=t.toolbar.icon,r.hideIcon=!0),{...Z,...r}})}}),Q=()=>{let o=P(),t=Object.keys(o).filter(e=>!!o[e].toolbar);return t.length?l.createElement(l.Fragment,null,l.createElement(w,null),t.map(e=>{let r=J(e,o[e]);return l.createElement(q,{key:e,id:e,...r})})):null};g.register(b,()=>g.add(b,{title:b,type:B.TOOL,match:()=>!0,render:()=>l.createElement(Q,null)}));})(); -}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/sb-addons/essentials-toolbars-3/manager-bundle.js b/sb-addons/essentials-toolbars-3/manager-bundle.js new file mode 100644 index 000000000..aa88ebe08 --- /dev/null +++ b/sb-addons/essentials-toolbars-3/manager-bundle.js @@ -0,0 +1,3 @@ +try{ +(()=>{var l=__REACT__,{Children:se,Component:ie,Fragment:ue,Profiler:ce,PureComponent:pe,StrictMode:me,Suspense:de,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:be,cloneElement:Se,createContext:Te,createElement:ye,createFactory:_e,createRef:fe,forwardRef:Ce,isValidElement:ve,lazy:Ie,memo:Oe,startTransition:Ee,unstable_act:xe,useCallback:C,useContext:ge,useDebugValue:ke,useDeferredValue:he,useEffect:g,useId:Ae,useImperativeHandle:Re,useInsertionEffect:Le,useLayoutEffect:Be,useMemo:Me,useReducer:Pe,useRef:L,useState:B,useSyncExternalStore:Ne,useTransition:we,version:Ve}=__REACT__;var We=__STORYBOOK_API__,{ActiveTabs:Ke,Consumer:Ye,ManagerContext:$e,Provider:qe,RequestResponseError:ze,addons:k,combineParameters:Ue,controlOrMetaKey:je,controlOrMetaSymbol:Ze,eventMatchesShortcut:Je,eventToShortcut:Qe,experimental_requestResponse:Xe,isMacLike:et,isShortcutTaken:tt,keyToSymbol:ot,merge:rt,mockChannel:at,optionOrAltSymbol:lt,shortcutMatchesShortcut:nt,shortcutToHumanString:st,types:M,useAddonState:it,useArgTypes:ut,useArgs:ct,useChannel:pt,useGlobalTypes:P,useGlobals:h,useParameter:mt,useSharedState:dt,useStoryPrepared:bt,useStorybookApi:N,useStorybookState:St}=__STORYBOOK_API__;var Ct=__STORYBOOK_COMPONENTS__,{A:vt,ActionBar:It,AddonPanel:Ot,Badge:Et,Bar:xt,Blockquote:gt,Button:kt,ClipboardCode:ht,Code:At,DL:Rt,Div:Lt,DocumentWrapper:Bt,EmptyTabContent:Mt,ErrorFormatter:Pt,FlexBar:Nt,Form:wt,H1:Vt,H2:Dt,H3:Ht,H4:Ft,H5:Gt,H6:Wt,HR:Kt,IconButton:w,IconButtonSkeleton:Yt,Icons:A,Img:$t,LI:qt,Link:zt,ListItem:Ut,Loader:jt,Modal:Zt,OL:Jt,P:Qt,Placeholder:Xt,Pre:eo,ResetWrapper:to,ScrollArea:oo,Separator:V,Spaced:ro,Span:ao,StorybookIcon:lo,StorybookLogo:no,Symbols:so,SyntaxHighlighter:io,TT:uo,TabBar:co,TabButton:po,TabWrapper:mo,Table:bo,Tabs:So,TabsState:To,TooltipLinkList:D,TooltipMessage:yo,TooltipNote:_o,UL:fo,WithTooltip:H,WithTooltipPure:Co,Zoom:vo,codeCommon:Io,components:Oo,createCopyToClipboardFunction:Eo,getStoryHref:xo,icons:go,interleaveSeparators:ko,nameSpaceClassNames:ho,resetComponents:Ao,withReset:Ro}=__STORYBOOK_COMPONENTS__;var K={type:"item",value:""},Y=(o,t)=>({...t,name:t.name||o,description:t.description||o,toolbar:{...t.toolbar,items:t.toolbar.items.map(e=>{let r=typeof e=="string"?{value:e,title:e}:e;return r.type==="reset"&&t.toolbar.icon&&(r.icon=t.toolbar.icon,r.hideIcon=!0),{...K,...r}})}}),$=["reset"],q=o=>o.filter(t=>!$.includes(t.type)).map(t=>t.value),S="addon-toolbars",z=async(o,t,e)=>{e&&e.next&&await o.setAddonShortcut(S,{label:e.next.label,defaultShortcut:e.next.keys,actionName:`${t}:next`,action:e.next.action}),e&&e.previous&&await o.setAddonShortcut(S,{label:e.previous.label,defaultShortcut:e.previous.keys,actionName:`${t}:previous`,action:e.previous.action}),e&&e.reset&&await o.setAddonShortcut(S,{label:e.reset.label,defaultShortcut:e.reset.keys,actionName:`${t}:reset`,action:e.reset.action})},U=o=>t=>{let{id:e,toolbar:{items:r,shortcuts:a}}=t,c=N(),[T,i]=h(),n=L([]),u=T[e],v=C(()=>{i({[e]:""})},[i]),I=C(()=>{let s=n.current,m=s.indexOf(u),d=m===s.length-1?0:m+1,p=n.current[d];i({[e]:p})},[n,u,i]),O=C(()=>{let s=n.current,m=s.indexOf(u),d=m>-1?m:0,p=d===0?s.length-1:d-1,b=n.current[p];i({[e]:b})},[n,u,i]);return g(()=>{a&&z(c,e,{next:{...a.next,action:I},previous:{...a.previous,action:O},reset:{...a.reset,action:v}})},[c,e,a,I,O,v]),g(()=>{n.current=q(r)},[]),l.createElement(o,{cycleValues:n.current,...t})},F=({currentValue:o,items:t})=>o!=null&&t.find(e=>e.value===o&&e.type!=="reset"),j=({currentValue:o,items:t})=>{let e=F({currentValue:o,items:t});if(e)return e.icon},Z=({currentValue:o,items:t})=>{let e=F({currentValue:o,items:t});if(e)return e.title},J=({active:o,disabled:t,title:e,icon:r,description:a,onClick:c})=>l.createElement(w,{active:o,title:a,disabled:t,onClick:t?()=>{}:c},r&&l.createElement(A,{icon:r,__suppressDeprecationWarning:!0}),e?`\xA0${e}`:null),Q=({right:o,title:t,value:e,icon:r,hideIcon:a,onClick:c,disabled:T,currentValue:i})=>{let n=r&&l.createElement(A,{style:{opacity:1},icon:r}),u={id:e??"_reset",active:i===e,right:o,title:t,disabled:T,onClick:c};return r&&!a&&(u.icon=n),u},X=U(({id:o,name:t,description:e,toolbar:{icon:r,items:a,title:c,preventDynamicIcon:T,dynamicTitle:i}})=>{let[n,u,v]=h(),[I,O]=B(!1),s=n[o],m=!!s,d=o in v,p=r,b=c;T||(p=j({currentValue:s,items:a})||p),i&&(b=Z({currentValue:s,items:a})||b),!b&&!p&&console.warn(`Toolbar '${t}' has no title or icon`);let G=C(x=>{u({[o]:x})},[o,u]);return l.createElement(H,{placement:"top",tooltip:({onHide:x})=>{let W=a.filter(({type:E})=>{let R=!0;return E==="reset"&&!s&&(R=!1),R}).map(E=>Q({...E,currentValue:s,disabled:d,onClick:()=>{G(E.value),x()}}));return l.createElement(D,{links:W})},closeOnOutsideClick:!0,onVisibleChange:O},l.createElement(J,{active:I||m,disabled:d,description:e||"",icon:p,title:b||""}))}),ee=()=>{let o=P(),t=Object.keys(o).filter(e=>!!o[e].toolbar);return t.length?l.createElement(l.Fragment,null,l.createElement(V,null),t.map(e=>{let r=Y(e,o[e]);return l.createElement(X,{key:e,id:e,...r})})):null};k.register(S,()=>k.add(S,{title:S,type:M.TOOL,match:({tabId:o})=>!o,render:()=>l.createElement(ee,null)}));})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/sb-addons/storysource-4/manager-bundle.js.LEGAL.txt b/sb-addons/essentials-toolbars-3/manager-bundle.js.LEGAL.txt similarity index 100% rename from sb-addons/storysource-4/manager-bundle.js.LEGAL.txt rename to sb-addons/essentials-toolbars-3/manager-bundle.js.LEGAL.txt diff --git a/sb-addons/storybook-5/manager-bundle.js b/sb-addons/storybook-5/manager-bundle.js deleted file mode 100644 index afedef9cf..000000000 --- a/sb-addons/storybook-5/manager-bundle.js +++ /dev/null @@ -1,1344 +0,0 @@ -try{ -(()=>{var Q1=Object.create;var Ea=Object.defineProperty;var Z1=Object.getOwnPropertyDescriptor;var J1=Object.getOwnPropertyNames;var eA=Object.getPrototypeOf,tA=Object.prototype.hasOwnProperty;var _i=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var Et=(r,e)=>()=>(r&&(e=r(r=0)),e);var T=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Nt=(r,e)=>{for(var t in e)Ea(r,t,{get:e[t],enumerable:!0})},rA=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of J1(e))!tA.call(r,s)&&s!==t&&Ea(r,s,{get:()=>e[s],enumerable:!(i=Z1(e,s))||i.enumerable});return r};var Ce=(r,e,t)=>(t=r!=null?Q1(eA(r)):{},rA(e||!r||!r.__esModule?Ea(t,"default",{value:r,enumerable:!0}):t,r));var u=Et(()=>{});var h=Et(()=>{});var c=Et(()=>{});var S,hd,Ut,cd,Rj,Pj,Oj,dd,Lj,Fe,bi,Ma,kj,Mj,Nj,zj,pd,rn,ve,sn,Uj,me,Hj,fd,Ht,Wj,Ye,ne,jj,Be=Et(()=>{u();h();c();S=__REACT__,{Children:hd,Component:Ut,Fragment:cd,Profiler:Rj,PureComponent:Pj,StrictMode:Oj,Suspense:dd,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Lj,cloneElement:Fe,createContext:bi,createElement:Ma,createFactory:kj,createRef:Mj,forwardRef:Nj,isValidElement:zj,lazy:pd,memo:rn,useCallback:ve,useContext:sn,useDebugValue:Uj,useEffect:me,useImperativeHandle:Hj,useLayoutEffect:fd,useMemo:Ht,useReducer:Wj,useRef:Ye,useState:ne,version:jj}=__REACT__});var bd={};Nt(bd,{A:()=>XA,ActionBar:()=>Na,AddonPanel:()=>za,Badge:()=>KA,Bar:()=>QA,Blockquote:()=>ZA,Button:()=>JA,ClipboardCode:()=>e2,Code:()=>gd,DL:()=>t2,Div:()=>r2,DocumentWrapper:()=>i2,ErrorFormatter:()=>_d,FlexBar:()=>Ua,Form:()=>Qe,H1:()=>s2,H2:()=>Ha,H3:()=>md,H4:()=>n2,H5:()=>o2,H6:()=>a2,HR:()=>l2,IconButton:()=>Xe,IconButtonSkeleton:()=>Wa,Icons:()=>De,Img:()=>u2,LI:()=>h2,Link:()=>ar,ListItem:()=>c2,Loader:()=>yd,OL:()=>d2,P:()=>p2,Placeholder:()=>f2,Pre:()=>g2,ResetWrapper:()=>ja,ScrollArea:()=>_2,Separator:()=>m2,Spaced:()=>y2,Span:()=>x2,StorybookIcon:()=>b2,StorybookLogo:()=>S2,Symbols:()=>C2,SyntaxHighlighter:()=>nn,TT:()=>A2,TabBar:()=>v2,TabButton:()=>qa,TabWrapper:()=>w2,Table:()=>E2,Tabs:()=>T2,TabsState:()=>$a,TooltipLinkList:()=>Ga,TooltipMessage:()=>D2,TooltipNote:()=>Va,UL:()=>F2,WithTooltip:()=>wr,WithTooltipPure:()=>Ya,Zoom:()=>Xa,codeCommon:()=>Er,components:()=>Ka,createCopyToClipboardFunction:()=>I2,default:()=>YA,getStoryHref:()=>xd,icons:()=>B2,interleaveSeparators:()=>R2,nameSpaceClassNames:()=>Qa,resetComponents:()=>P2,withReset:()=>Tr});var YA,XA,Na,za,KA,QA,ZA,JA,e2,gd,t2,r2,i2,_d,Ua,Qe,s2,Ha,md,n2,o2,a2,l2,Xe,Wa,De,u2,h2,ar,c2,yd,d2,p2,f2,g2,ja,_2,m2,y2,x2,b2,S2,C2,nn,A2,v2,qa,w2,E2,T2,$a,Ga,D2,Va,F2,wr,Ya,Xa,Er,Ka,I2,xd,B2,R2,Qa,P2,Tr,bt=Et(()=>{u();h();c();YA=__STORYBOOK_COMPONENTS__,{A:XA,ActionBar:Na,AddonPanel:za,Badge:KA,Bar:QA,Blockquote:ZA,Button:JA,ClipboardCode:e2,Code:gd,DL:t2,Div:r2,DocumentWrapper:i2,ErrorFormatter:_d,FlexBar:Ua,Form:Qe,H1:s2,H2:Ha,H3:md,H4:n2,H5:o2,H6:a2,HR:l2,IconButton:Xe,IconButtonSkeleton:Wa,Icons:De,Img:u2,LI:h2,Link:ar,ListItem:c2,Loader:yd,OL:d2,P:p2,Placeholder:f2,Pre:g2,ResetWrapper:ja,ScrollArea:_2,Separator:m2,Spaced:y2,Span:x2,StorybookIcon:b2,StorybookLogo:S2,Symbols:C2,SyntaxHighlighter:nn,TT:A2,TabBar:v2,TabButton:qa,TabWrapper:w2,Table:E2,Tabs:T2,TabsState:$a,TooltipLinkList:Ga,TooltipMessage:D2,TooltipNote:Va,UL:F2,WithTooltip:wr,WithTooltipPure:Ya,Zoom:Xa,codeCommon:Er,components:Ka,createCopyToClipboardFunction:I2,getStoryHref:xd,icons:B2,interleaveSeparators:R2,nameSpaceClassNames:Qa,resetComponents:P2,withReset:Tr}=__STORYBOOK_COMPONENTS__});var bp=T((Cce,xp)=>{u();h();c();function vu(r,e,t){var i,s,n,o,a;e==null&&(e=100);function l(){var p=Date.now()-o;p=0?i=setTimeout(l,e-p):(i=null,t||(a=r.apply(n,s),n=s=null))}var d=function(){n=this,s=arguments,o=Date.now();var p=t&&!i;return i||(i=setTimeout(l,e)),p&&(a=r.apply(n,s),n=s=null),a};return d.clear=function(){i&&(clearTimeout(i),i=null)},d.flush=function(){i&&(a=r.apply(n,s),n=s=null,clearTimeout(i),i=null)},d}vu.debounce=vu;xp.exports=vu});var tt,es,Eu=Et(()=>{u();h();c();tt=r=>`control-${r.replace(/\s+/g,"-")}`,es=r=>`set-${r.replace(/\s+/g,"-")}`});var hde,cde,dde,pde,vp,fde,gde,wp,_de,mde,yde,xde,bde,Sde,Xw,Ep,Cde,Ade,vde,wde,U,Tu,Ede,Tp,Tde,Du=Et(()=>{u();h();c();hde=__STORYBOOK_THEMING__,{CacheProvider:cde,ClassNames:dde,Global:pde,ThemeProvider:vp,background:fde,color:gde,convert:wp,create:_de,createCache:mde,createGlobal:yde,createReset:xde,css:bde,darken:Sde,ensure:Xw,ignoreSsrWarning:Ep,isPropValid:Cde,jsx:Ade,keyframes:vde,lighten:wde,styled:U,themes:Tu,typography:Ede,useTheme:Tp,withTheme:Tde}=__STORYBOOK_THEMING__});var Nu=T(($pe,Op)=>{u();h();c();function OE(r,e){for(var t=-1,i=r==null?0:r.length,s=Array(i);++t{u();h();c();function LE(){this.__data__=[],this.size=0}Lp.exports=LE});var ao=T((Jpe,Mp)=>{u();h();c();function kE(r,e){return r===e||r!==r&&e!==e}Mp.exports=kE});var ns=T((ife,Np)=>{u();h();c();var ME=ao();function NE(r,e){for(var t=r.length;t--;)if(ME(r[t][0],e))return t;return-1}Np.exports=NE});var Up=T((afe,zp)=>{u();h();c();var zE=ns(),UE=Array.prototype,HE=UE.splice;function WE(r){var e=this.__data__,t=zE(e,r);if(t<0)return!1;var i=e.length-1;return t==i?e.pop():HE.call(e,t,1),--this.size,!0}zp.exports=WE});var Wp=T((cfe,Hp)=>{u();h();c();var jE=ns();function qE(r){var e=this.__data__,t=jE(e,r);return t<0?void 0:e[t][1]}Hp.exports=qE});var qp=T((gfe,jp)=>{u();h();c();var $E=ns();function GE(r){return $E(this.__data__,r)>-1}jp.exports=GE});var Gp=T((xfe,$p)=>{u();h();c();var VE=ns();function YE(r,e){var t=this.__data__,i=VE(t,r);return i<0?(++this.size,t.push([r,e])):t[i][1]=e,this}$p.exports=YE});var os=T((Afe,Vp)=>{u();h();c();var XE=kp(),KE=Up(),QE=Wp(),ZE=qp(),JE=Gp();function Wr(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e{u();h();c();var eT=os();function tT(){this.__data__=new eT,this.size=0}Yp.exports=tT});var Qp=T((Bfe,Kp)=>{u();h();c();function rT(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}Kp.exports=rT});var Jp=T((Lfe,Zp)=>{u();h();c();function iT(r){return this.__data__.get(r)}Zp.exports=iT});var tf=T((zfe,ef)=>{u();h();c();function sT(r){return this.__data__.has(r)}ef.exports=sT});var zu=T((jfe,rf)=>{u();h();c();var nT=typeof window=="object"&&window&&window.Object===Object&&window;rf.exports=nT});var dt=T((Vfe,sf)=>{u();h();c();var oT=zu(),aT=typeof self=="object"&&self&&self.Object===Object&&self,lT=oT||aT||Function("return this")();sf.exports=lT});var fr=T((Qfe,nf)=>{u();h();c();var uT=dt(),hT=uT.Symbol;nf.exports=hT});var uf=T((tge,lf)=>{u();h();c();var of=fr(),af=Object.prototype,cT=af.hasOwnProperty,dT=af.toString,as=of?of.toStringTag:void 0;function pT(r){var e=cT.call(r,as),t=r[as];try{r[as]=void 0;var i=!0}catch{}var s=dT.call(r);return i&&(e?r[as]=t:delete r[as]),s}lf.exports=pT});var cf=T((nge,hf)=>{u();h();c();var fT=Object.prototype,gT=fT.toString;function _T(r){return gT.call(r)}hf.exports=_T});var gr=T((uge,ff)=>{u();h();c();var df=fr(),mT=uf(),yT=cf(),xT="[object Null]",bT="[object Undefined]",pf=df?df.toStringTag:void 0;function ST(r){return r==null?r===void 0?bT:xT:pf&&pf in Object(r)?mT(r):yT(r)}ff.exports=ST});var _t=T((pge,gf)=>{u();h();c();function CT(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}gf.exports=CT});var Uu=T((mge,_f)=>{u();h();c();var AT=gr(),vT=_t(),wT="[object AsyncFunction]",ET="[object Function]",TT="[object GeneratorFunction]",DT="[object Proxy]";function FT(r){if(!vT(r))return!1;var e=AT(r);return e==ET||e==TT||e==wT||e==DT}_f.exports=FT});var yf=T((Sge,mf)=>{u();h();c();var IT=dt(),BT=IT["__core-js_shared__"];mf.exports=BT});var Sf=T((wge,bf)=>{u();h();c();var Hu=yf(),xf=function(){var r=/[^.]+$/.exec(Hu&&Hu.keys&&Hu.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function RT(r){return!!xf&&xf in r}bf.exports=RT});var Wu=T((Fge,Cf)=>{u();h();c();var PT=Function.prototype,OT=PT.toString;function LT(r){if(r!=null){try{return OT.call(r)}catch{}try{return r+""}catch{}}return""}Cf.exports=LT});var vf=T((Pge,Af)=>{u();h();c();var kT=Uu(),MT=Sf(),NT=_t(),zT=Wu(),UT=/[\\^$.*+?()[\]{}|]/g,HT=/^\[object .+?Constructor\]$/,WT=Function.prototype,jT=Object.prototype,qT=WT.toString,$T=jT.hasOwnProperty,GT=RegExp("^"+qT.call($T).replace(UT,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function VT(r){if(!NT(r)||MT(r))return!1;var e=kT(r)?GT:HT;return e.test(zT(r))}Af.exports=VT});var Ef=T((Mge,wf)=>{u();h();c();function YT(r,e){return r?.[e]}wf.exports=YT});var Kt=T((Hge,Tf)=>{u();h();c();var XT=vf(),KT=Ef();function QT(r,e){var t=KT(r,e);return XT(t)?t:void 0}Tf.exports=QT});var lo=T(($ge,Df)=>{u();h();c();var ZT=Kt(),JT=dt(),eD=ZT(JT,"Map");Df.exports=eD});var ls=T((Xge,Ff)=>{u();h();c();var tD=Kt(),rD=tD(Object,"create");Ff.exports=rD});var Rf=T((Jge,Bf)=>{u();h();c();var If=ls();function iD(){this.__data__=If?If(null):{},this.size=0}Bf.exports=iD});var Of=T((i_e,Pf)=>{u();h();c();function sD(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}Pf.exports=sD});var kf=T((a_e,Lf)=>{u();h();c();var nD=ls(),oD="__lodash_hash_undefined__",aD=Object.prototype,lD=aD.hasOwnProperty;function uD(r){var e=this.__data__;if(nD){var t=e[r];return t===oD?void 0:t}return lD.call(e,r)?e[r]:void 0}Lf.exports=uD});var Nf=T((c_e,Mf)=>{u();h();c();var hD=ls(),cD=Object.prototype,dD=cD.hasOwnProperty;function pD(r){var e=this.__data__;return hD?e[r]!==void 0:dD.call(e,r)}Mf.exports=pD});var Uf=T((g_e,zf)=>{u();h();c();var fD=ls(),gD="__lodash_hash_undefined__";function _D(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=fD&&e===void 0?gD:e,this}zf.exports=_D});var Wf=T((x_e,Hf)=>{u();h();c();var mD=Rf(),yD=Of(),xD=kf(),bD=Nf(),SD=Uf();function jr(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e{u();h();c();var jf=Wf(),CD=os(),AD=lo();function vD(){this.size=0,this.__data__={hash:new jf,map:new(AD||CD),string:new jf}}qf.exports=vD});var Vf=T((T_e,Gf)=>{u();h();c();function wD(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}Gf.exports=wD});var us=T((B_e,Yf)=>{u();h();c();var ED=Vf();function TD(r,e){var t=r.__data__;return ED(e)?t[typeof e=="string"?"string":"hash"]:t.map}Yf.exports=TD});var Kf=T((L_e,Xf)=>{u();h();c();var DD=us();function FD(r){var e=DD(this,r).delete(r);return this.size-=e?1:0,e}Xf.exports=FD});var Zf=T((z_e,Qf)=>{u();h();c();var ID=us();function BD(r){return ID(this,r).get(r)}Qf.exports=BD});var eg=T((j_e,Jf)=>{u();h();c();var RD=us();function PD(r){return RD(this,r).has(r)}Jf.exports=PD});var rg=T((V_e,tg)=>{u();h();c();var OD=us();function LD(r,e){var t=OD(this,r),i=t.size;return t.set(r,e),this.size+=t.size==i?0:1,this}tg.exports=LD});var uo=T((Q_e,ig)=>{u();h();c();var kD=$f(),MD=Kf(),ND=Zf(),zD=eg(),UD=rg();function qr(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e{u();h();c();var HD=os(),WD=lo(),jD=uo(),qD=200;function $D(r,e){var t=this.__data__;if(t instanceof HD){var i=t.__data__;if(!WD||i.length{u();h();c();var GD=os(),VD=Xp(),YD=Qp(),XD=Jp(),KD=tf(),QD=ng();function $r(r){var e=this.__data__=new GD(r);this.size=e.size}$r.prototype.clear=VD;$r.prototype.delete=YD;$r.prototype.get=XD;$r.prototype.has=KD;$r.prototype.set=QD;og.exports=$r});var lg=T((ume,ag)=>{u();h();c();var ZD="__lodash_hash_undefined__";function JD(r){return this.__data__.set(r,ZD),this}ag.exports=JD});var hg=T((pme,ug)=>{u();h();c();function eF(r){return this.__data__.has(r)}ug.exports=eF});var ju=T((mme,cg)=>{u();h();c();var tF=uo(),rF=lg(),iF=hg();function co(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new tF;++e{u();h();c();function sF(r,e){for(var t=-1,i=r==null?0:r.length;++t{u();h();c();function nF(r,e){return r.has(e)}fg.exports=nF});var $u=T((Fme,gg)=>{u();h();c();var oF=ju(),aF=pg(),lF=qu(),uF=1,hF=2;function cF(r,e,t,i,s,n){var o=t&uF,a=r.length,l=e.length;if(a!=l&&!(o&&l>a))return!1;var d=n.get(r),p=n.get(e);if(d&&p)return d==e&&p==r;var _=-1,g=!0,m=t&hF?new oF:void 0;for(n.set(r,e),n.set(e,r);++_{u();h();c();var dF=dt(),pF=dF.Uint8Array;_g.exports=pF});var yg=T((Mme,mg)=>{u();h();c();function fF(r){var e=-1,t=Array(r.size);return r.forEach(function(i,s){t[++e]=[s,i]}),t}mg.exports=fF});var po=T((Hme,xg)=>{u();h();c();function gF(r){var e=-1,t=Array(r.size);return r.forEach(function(i){t[++e]=i}),t}xg.exports=gF});var vg=T(($me,Ag)=>{u();h();c();var bg=fr(),Sg=Gu(),_F=ao(),mF=$u(),yF=yg(),xF=po(),bF=1,SF=2,CF="[object Boolean]",AF="[object Date]",vF="[object Error]",wF="[object Map]",EF="[object Number]",TF="[object RegExp]",DF="[object Set]",FF="[object String]",IF="[object Symbol]",BF="[object ArrayBuffer]",RF="[object DataView]",Cg=bg?bg.prototype:void 0,Vu=Cg?Cg.valueOf:void 0;function PF(r,e,t,i,s,n,o){switch(t){case RF:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case BF:return!(r.byteLength!=e.byteLength||!n(new Sg(r),new Sg(e)));case CF:case AF:case EF:return _F(+r,+e);case vF:return r.name==e.name&&r.message==e.message;case TF:case FF:return r==e+"";case wF:var a=yF;case DF:var l=i&bF;if(a||(a=xF),r.size!=e.size&&!l)return!1;var d=o.get(r);if(d)return d==e;i|=SF,o.set(r,e);var p=mF(a(r),a(e),i,s,n,o);return o.delete(r),p;case IF:if(Vu)return Vu.call(r)==Vu.call(e)}return!1}Ag.exports=PF});var fo=T((Xme,wg)=>{u();h();c();function OF(r,e){for(var t=-1,i=e.length,s=r.length;++t{u();h();c();var LF=Array.isArray;Eg.exports=LF});var Yu=T((i0e,Tg)=>{u();h();c();var kF=fo(),MF=mt();function NF(r,e,t){var i=e(r);return MF(r)?i:kF(i,t(r))}Tg.exports=NF});var Fg=T((a0e,Dg)=>{u();h();c();function zF(r,e){for(var t=-1,i=r==null?0:r.length,s=0,n=[];++t{u();h();c();function UF(){return[]}Ig.exports=UF});var go=T((g0e,Rg)=>{u();h();c();var HF=Fg(),WF=Xu(),jF=Object.prototype,qF=jF.propertyIsEnumerable,Bg=Object.getOwnPropertySymbols,$F=Bg?function(r){return r==null?[]:(r=Object(r),HF(Bg(r),function(e){return qF.call(r,e)}))}:WF;Rg.exports=$F});var Og=T((x0e,Pg)=>{u();h();c();function GF(r,e){for(var t=-1,i=Array(r);++t{u();h();c();function VF(r){return r!=null&&typeof r=="object"}Lg.exports=VF});var Mg=T((T0e,kg)=>{u();h();c();var YF=gr(),XF=Lt(),KF="[object Arguments]";function QF(r){return XF(r)&&YF(r)==KF}kg.exports=QF});var _o=T((B0e,Ug)=>{u();h();c();var Ng=Mg(),ZF=Lt(),zg=Object.prototype,JF=zg.hasOwnProperty,eI=zg.propertyIsEnumerable,tI=Ng(function(){return arguments}())?Ng:function(r){return ZF(r)&&JF.call(r,"callee")&&!eI.call(r,"callee")};Ug.exports=tI});var Wg=T((L0e,Hg)=>{u();h();c();function rI(){return!1}Hg.exports=rI});var mo=T((hs,Gr)=>{u();h();c();var iI=dt(),sI=Wg(),$g=typeof hs=="object"&&hs&&!hs.nodeType&&hs,jg=$g&&typeof Gr=="object"&&Gr&&!Gr.nodeType&&Gr,nI=jg&&jg.exports===$g,qg=nI?iI.Buffer:void 0,oI=qg?qg.isBuffer:void 0,aI=oI||sI;Gr.exports=aI});var yo=T((W0e,Gg)=>{u();h();c();var lI=9007199254740991,uI=/^(?:0|[1-9]\d*)$/;function hI(r,e){var t=typeof r;return e=e??lI,!!e&&(t=="number"||t!="symbol"&&uI.test(r))&&r>-1&&r%1==0&&r{u();h();c();var cI=9007199254740991;function dI(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=cI}Vg.exports=dI});var Xg=T((K0e,Yg)=>{u();h();c();var pI=gr(),fI=xo(),gI=Lt(),_I="[object Arguments]",mI="[object Array]",yI="[object Boolean]",xI="[object Date]",bI="[object Error]",SI="[object Function]",CI="[object Map]",AI="[object Number]",vI="[object Object]",wI="[object RegExp]",EI="[object Set]",TI="[object String]",DI="[object WeakMap]",FI="[object ArrayBuffer]",II="[object DataView]",BI="[object Float32Array]",RI="[object Float64Array]",PI="[object Int8Array]",OI="[object Int16Array]",LI="[object Int32Array]",kI="[object Uint8Array]",MI="[object Uint8ClampedArray]",NI="[object Uint16Array]",zI="[object Uint32Array]",Se={};Se[BI]=Se[RI]=Se[PI]=Se[OI]=Se[LI]=Se[kI]=Se[MI]=Se[NI]=Se[zI]=!0;Se[_I]=Se[mI]=Se[FI]=Se[yI]=Se[II]=Se[xI]=Se[bI]=Se[SI]=Se[CI]=Se[AI]=Se[vI]=Se[wI]=Se[EI]=Se[TI]=Se[DI]=!1;function UI(r){return gI(r)&&fI(r.length)&&!!Se[pI(r)]}Yg.exports=UI});var bo=T((eye,Kg)=>{u();h();c();function HI(r){return function(e){return r(e)}}Kg.exports=HI});var So=T((cs,Vr)=>{u();h();c();var WI=zu(),Qg=typeof cs=="object"&&cs&&!cs.nodeType&&cs,ds=Qg&&typeof Vr=="object"&&Vr&&!Vr.nodeType&&Vr,jI=ds&&ds.exports===Qg,Ku=jI&&WI.process,qI=function(){try{var r=ds&&ds.require&&ds.require("util").types;return r||Ku&&Ku.binding&&Ku.binding("util")}catch{}}();Vr.exports=qI});var Qu=T((aye,e_)=>{u();h();c();var $I=Xg(),GI=bo(),Zg=So(),Jg=Zg&&Zg.isTypedArray,VI=Jg?GI(Jg):$I;e_.exports=VI});var Zu=T((cye,t_)=>{u();h();c();var YI=Og(),XI=_o(),KI=mt(),QI=mo(),ZI=yo(),JI=Qu(),eB=Object.prototype,tB=eB.hasOwnProperty;function rB(r,e){var t=KI(r),i=!t&&XI(r),s=!t&&!i&&QI(r),n=!t&&!i&&!s&&JI(r),o=t||i||s||n,a=o?YI(r.length,String):[],l=a.length;for(var d in r)(e||tB.call(r,d))&&!(o&&(d=="length"||s&&(d=="offset"||d=="parent")||n&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||ZI(d,l)))&&a.push(d);return a}t_.exports=rB});var Co=T((gye,r_)=>{u();h();c();var iB=Object.prototype;function sB(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||iB;return r===t}r_.exports=sB});var Ju=T((xye,i_)=>{u();h();c();function nB(r,e){return function(t){return r(e(t))}}i_.exports=nB});var n_=T((Aye,s_)=>{u();h();c();var oB=Ju(),aB=oB(Object.keys,Object);s_.exports=aB});var a_=T((Tye,o_)=>{u();h();c();var lB=Co(),uB=n_(),hB=Object.prototype,cB=hB.hasOwnProperty;function dB(r){if(!lB(r))return uB(r);var e=[];for(var t in Object(r))cB.call(r,t)&&t!="constructor"&&e.push(t);return e}o_.exports=dB});var eh=T((Bye,l_)=>{u();h();c();var pB=Uu(),fB=xo();function gB(r){return r!=null&&fB(r.length)&&!pB(r)}l_.exports=gB});var Yr=T((Lye,u_)=>{u();h();c();var _B=Zu(),mB=a_(),yB=eh();function xB(r){return yB(r)?_B(r):mB(r)}u_.exports=xB});var th=T((zye,h_)=>{u();h();c();var bB=Yu(),SB=go(),CB=Yr();function AB(r){return bB(r,CB,SB)}h_.exports=AB});var p_=T((jye,d_)=>{u();h();c();var c_=th(),vB=1,wB=Object.prototype,EB=wB.hasOwnProperty;function TB(r,e,t,i,s,n){var o=t&vB,a=c_(r),l=a.length,d=c_(e),p=d.length;if(l!=p&&!o)return!1;for(var _=l;_--;){var g=a[_];if(!(o?g in e:EB.call(e,g)))return!1}var m=n.get(r),A=n.get(e);if(m&&A)return m==e&&A==r;var C=!0;n.set(r,e),n.set(e,r);for(var v=o;++_{u();h();c();var DB=Kt(),FB=dt(),IB=DB(FB,"DataView");f_.exports=IB});var m_=T((Qye,__)=>{u();h();c();var BB=Kt(),RB=dt(),PB=BB(RB,"Promise");__.exports=PB});var rh=T((txe,y_)=>{u();h();c();var OB=Kt(),LB=dt(),kB=OB(LB,"Set");y_.exports=kB});var b_=T((nxe,x_)=>{u();h();c();var MB=Kt(),NB=dt(),zB=MB(NB,"WeakMap");x_.exports=zB});var ps=T((uxe,T_)=>{u();h();c();var ih=g_(),sh=lo(),nh=m_(),oh=rh(),ah=b_(),E_=gr(),Xr=Wu(),S_="[object Map]",UB="[object Object]",C_="[object Promise]",A_="[object Set]",v_="[object WeakMap]",w_="[object DataView]",HB=Xr(ih),WB=Xr(sh),jB=Xr(nh),qB=Xr(oh),$B=Xr(ah),_r=E_;(ih&&_r(new ih(new ArrayBuffer(1)))!=w_||sh&&_r(new sh)!=S_||nh&&_r(nh.resolve())!=C_||oh&&_r(new oh)!=A_||ah&&_r(new ah)!=v_)&&(_r=function(r){var e=E_(r),t=e==UB?r.constructor:void 0,i=t?Xr(t):"";if(i)switch(i){case HB:return w_;case WB:return S_;case jB:return C_;case qB:return A_;case $B:return v_}return e});T_.exports=_r});var L_=T((pxe,O_)=>{u();h();c();var lh=ho(),GB=$u(),VB=vg(),YB=p_(),D_=ps(),F_=mt(),I_=mo(),XB=Qu(),KB=1,B_="[object Arguments]",R_="[object Array]",Ao="[object Object]",QB=Object.prototype,P_=QB.hasOwnProperty;function ZB(r,e,t,i,s,n){var o=F_(r),a=F_(e),l=o?R_:D_(r),d=a?R_:D_(e);l=l==B_?Ao:l,d=d==B_?Ao:d;var p=l==Ao,_=d==Ao,g=l==d;if(g&&I_(r)){if(!I_(e))return!1;o=!0,p=!1}if(g&&!p)return n||(n=new lh),o||XB(r)?GB(r,e,t,i,s,n):VB(r,e,l,t,i,s,n);if(!(t&KB)){var m=p&&P_.call(r,"__wrapped__"),A=_&&P_.call(e,"__wrapped__");if(m||A){var C=m?r.value():r,v=A?e.value():e;return n||(n=new lh),s(C,v,t,i,n)}}return g?(n||(n=new lh),YB(r,e,t,i,s,n)):!1}O_.exports=ZB});var uh=T((mxe,N_)=>{u();h();c();var JB=L_(),k_=Lt();function M_(r,e,t,i,s){return r===e?!0:r==null||e==null||!k_(r)&&!k_(e)?r!==r&&e!==e:JB(r,e,t,i,M_,s)}N_.exports=M_});var U_=T((Sxe,z_)=>{u();h();c();var eR=ho(),tR=uh(),rR=1,iR=2;function sR(r,e,t,i){var s=t.length,n=s,o=!i;if(r==null)return!n;for(r=Object(r);s--;){var a=t[s];if(o&&a[2]?a[1]!==r[a[0]]:!(a[0]in r))return!1}for(;++s{u();h();c();var nR=_t();function oR(r){return r===r&&!nR(r)}H_.exports=oR});var j_=T((Fxe,W_)=>{u();h();c();var aR=hh(),lR=Yr();function uR(r){for(var e=lR(r),t=e.length;t--;){var i=e[t],s=r[i];e[t]=[i,s,aR(s)]}return e}W_.exports=uR});var ch=T((Pxe,q_)=>{u();h();c();function hR(r,e){return function(t){return t==null?!1:t[r]===e&&(e!==void 0||r in Object(t))}}q_.exports=hR});var G_=T((Mxe,$_)=>{u();h();c();var cR=U_(),dR=j_(),pR=ch();function fR(r){var e=dR(r);return e.length==1&&e[0][2]?pR(e[0][0],e[0][1]):function(t){return t===r||cR(t,r,e)}}$_.exports=fR});var fs=T((Hxe,V_)=>{u();h();c();var gR=gr(),_R=Lt(),mR="[object Symbol]";function yR(r){return typeof r=="symbol"||_R(r)&&gR(r)==mR}V_.exports=yR});var vo=T(($xe,Y_)=>{u();h();c();var xR=mt(),bR=fs(),SR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,CR=/^\w*$/;function AR(r,e){if(xR(r))return!1;var t=typeof r;return t=="number"||t=="symbol"||t=="boolean"||r==null||bR(r)?!0:CR.test(r)||!SR.test(r)||e!=null&&r in Object(e)}Y_.exports=AR});var Q_=T((Xxe,K_)=>{u();h();c();var X_=uo(),vR="Expected a function";function dh(r,e){if(typeof r!="function"||e!=null&&typeof e!="function")throw new TypeError(vR);var t=function(){var i=arguments,s=e?e.apply(this,i):i[0],n=t.cache;if(n.has(s))return n.get(s);var o=r.apply(this,i);return t.cache=n.set(s,o)||n,o};return t.cache=new(dh.Cache||X_),t}dh.Cache=X_;K_.exports=dh});var J_=T((Jxe,Z_)=>{u();h();c();var wR=Q_(),ER=500;function TR(r){var e=wR(r,function(i){return t.size===ER&&t.clear(),i}),t=e.cache;return e}Z_.exports=TR});var tm=T((ibe,em)=>{u();h();c();var DR=J_(),FR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,IR=/\\(\\)?/g,BR=DR(function(r){var e=[];return r.charCodeAt(0)===46&&e.push(""),r.replace(FR,function(t,i,s,n){e.push(s?n.replace(IR,"$1"):i||t)}),e});em.exports=BR});var am=T((abe,om)=>{u();h();c();var rm=fr(),RR=Nu(),PR=mt(),OR=fs(),LR=1/0,im=rm?rm.prototype:void 0,sm=im?im.toString:void 0;function nm(r){if(typeof r=="string")return r;if(PR(r))return RR(r,nm)+"";if(OR(r))return sm?sm.call(r):"";var e=r+"";return e=="0"&&1/r==-LR?"-0":e}om.exports=nm});var um=T((cbe,lm)=>{u();h();c();var kR=am();function MR(r){return r==null?"":kR(r)}lm.exports=MR});var gs=T((gbe,hm)=>{u();h();c();var NR=mt(),zR=vo(),UR=tm(),HR=um();function WR(r,e){return NR(r)?r:zR(r,e)?[r]:UR(HR(r))}hm.exports=WR});var Kr=T((xbe,cm)=>{u();h();c();var jR=fs(),qR=1/0;function $R(r){if(typeof r=="string"||jR(r))return r;var e=r+"";return e=="0"&&1/r==-qR?"-0":e}cm.exports=$R});var wo=T((Abe,dm)=>{u();h();c();var GR=gs(),VR=Kr();function YR(r,e){e=GR(e,r);for(var t=0,i=e.length;r!=null&&t{u();h();c();var XR=wo();function KR(r,e,t){var i=r==null?void 0:XR(r,e);return i===void 0?t:i}pm.exports=KR});var _m=T((Bbe,gm)=>{u();h();c();function QR(r,e){return r!=null&&e in Object(r)}gm.exports=QR});var ym=T((Lbe,mm)=>{u();h();c();var ZR=gs(),JR=_o(),eP=mt(),tP=yo(),rP=xo(),iP=Kr();function sP(r,e,t){e=ZR(e,r);for(var i=-1,s=e.length,n=!1;++i{u();h();c();var nP=_m(),oP=ym();function aP(r,e){return r!=null&&oP(r,e,nP)}xm.exports=aP});var Sm=T((jbe,bm)=>{u();h();c();var lP=uh(),uP=fm(),hP=ph(),cP=vo(),dP=hh(),pP=ch(),fP=Kr(),gP=1,_P=2;function mP(r,e){return cP(r)&&dP(e)?pP(fP(r),e):function(t){var i=uP(t,r);return i===void 0&&i===e?hP(t,r):lP(e,i,gP|_P)}}bm.exports=mP});var fh=T((Vbe,Cm)=>{u();h();c();function yP(r){return r}Cm.exports=yP});var vm=T((Qbe,Am)=>{u();h();c();function xP(r){return function(e){return e?.[r]}}Am.exports=xP});var Em=T((tSe,wm)=>{u();h();c();var bP=wo();function SP(r){return function(e){return bP(e,r)}}wm.exports=SP});var Dm=T((nSe,Tm)=>{u();h();c();var CP=vm(),AP=Em(),vP=vo(),wP=Kr();function EP(r){return vP(r)?CP(wP(r)):AP(r)}Tm.exports=EP});var gh=T((uSe,Fm)=>{u();h();c();var TP=G_(),DP=Sm(),FP=fh(),IP=mt(),BP=Dm();function RP(r){return typeof r=="function"?r:r==null?FP:typeof r=="object"?IP(r)?DP(r[0],r[1]):TP(r):BP(r)}Fm.exports=RP});var _h=T((pSe,Im)=>{u();h();c();var PP=Kt(),OP=function(){try{var r=PP(Object,"defineProperty");return r({},"",{}),r}catch{}}();Im.exports=OP});var Eo=T((mSe,Rm)=>{u();h();c();var Bm=_h();function LP(r,e,t){e=="__proto__"&&Bm?Bm(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}Rm.exports=LP});var To=T((SSe,Pm)=>{u();h();c();var kP=Eo(),MP=ao(),NP=Object.prototype,zP=NP.hasOwnProperty;function UP(r,e,t){var i=r[e];(!(zP.call(r,e)&&MP(i,t))||t===void 0&&!(e in r))&&kP(r,e,t)}Pm.exports=UP});var km=T((wSe,Lm)=>{u();h();c();var HP=To(),WP=gs(),jP=yo(),Om=_t(),qP=Kr();function $P(r,e,t,i){if(!Om(r))return r;e=WP(e,r);for(var s=-1,n=e.length,o=n-1,a=r;a!=null&&++s{u();h();c();var GP=wo(),VP=km(),YP=gs();function XP(r,e,t){for(var i=-1,s=e.length,n={};++i{u();h();c();var KP=Ju(),QP=KP(Object.getPrototypeOf,Object);Nm.exports=QP});var yh=T((MSe,zm)=>{u();h();c();var ZP=fo(),JP=Do(),e5=go(),t5=Xu(),r5=Object.getOwnPropertySymbols,i5=r5?function(r){for(var e=[];r;)ZP(e,e5(r)),r=JP(r);return e}:t5;zm.exports=i5});var Hm=T((HSe,Um)=>{u();h();c();function s5(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}Um.exports=s5});var jm=T(($Se,Wm)=>{u();h();c();var n5=_t(),o5=Co(),a5=Hm(),l5=Object.prototype,u5=l5.hasOwnProperty;function h5(r){if(!n5(r))return a5(r);var e=o5(r),t=[];for(var i in r)i=="constructor"&&(e||!u5.call(r,i))||t.push(i);return t}Wm.exports=h5});var Fo=T((XSe,qm)=>{u();h();c();var c5=Zu(),d5=jm(),p5=eh();function f5(r){return p5(r)?c5(r,!0):d5(r)}qm.exports=f5});var xh=T((JSe,$m)=>{u();h();c();var g5=Yu(),_5=yh(),m5=Fo();function y5(r){return g5(r,m5,_5)}$m.exports=y5});var bh=T((iCe,Gm)=>{u();h();c();var x5=Nu(),b5=gh(),S5=mh(),C5=xh();function A5(r,e){if(r==null)return{};var t=x5(C5(r),function(i){return[i]});return e=b5(e),S5(r,t,function(i,s){return e(i,s[0])})}Gm.exports=A5});var Bo=T((A0,Ih)=>{u();h();c();(function(r){if(typeof A0=="object"&&typeof Ih<"u")Ih.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var e;typeof window<"u"||typeof window<"u"?e=window:typeof self<"u"?e=self:e=this,e.memoizerific=r()}})(function(){var r,e,t;return function i(s,n,o){function a(p,_){if(!n[p]){if(!s[p]){var g=typeof _i=="function"&&_i;if(!_&&g)return g(p,!0);if(l)return l(p,!0);var m=new Error("Cannot find module '"+p+"'");throw m.code="MODULE_NOT_FOUND",m}var A=n[p]={exports:{}};s[p][0].call(A.exports,function(C){var v=s[p][1][C];return a(v||C)},A,A.exports,i,s,n,o)}return n[p].exports}for(var l=typeof _i=="function"&&_i,d=0;d=0)return this.lastItem=this.list[l],this.list[l].val},o.prototype.set=function(a,l){var d;return this.lastItem&&this.isEqual(this.lastItem.key,a)?(this.lastItem.val=l,this):(d=this.indexOf(a),d>=0?(this.lastItem=this.list[d],this.list[d].val=l,this):(this.lastItem={key:a,val:l},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(a){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,a)&&(this.lastItem=void 0),l=this.indexOf(a),l>=0)return this.size--,this.list.splice(l,1)[0]},o.prototype.has=function(a){var l;return this.lastItem&&this.isEqual(this.lastItem.key,a)?!0:(l=this.indexOf(a),l>=0?(this.lastItem=this.list[l],!0):!1)},o.prototype.forEach=function(a,l){var d;for(d=0;d0&&(B[D]={cacheItem:C,arg:arguments[D]},F?a(g,B):g.push(B),g.length>p&&l(g.shift())),A.wasMemoized=F,A.numArgs=D+1,w};return A.limit=p,A.wasMemoized=!1,A.cache=_,A.lru=g,A}};function a(p,_){var g=p.length,m=_.length,A,C,v;for(C=0;C=0&&(g=p[A],m=g.cacheItem.get(g.arg),!m||!m.size);A--)g.cacheItem.delete(g.arg)}function d(p,_){return p===_||p!==p&&_!==_}},{"map-or-similar":1}]},{},[3])(3)})});var w0=T((xCe,v0)=>{u();h();c();function MO(r,e,t,i){for(var s=r.length,n=t+(i?1:-1);i?n--:++n{u();h();c();function NO(r){return r!==r}E0.exports=NO});var F0=T((TCe,D0)=>{u();h();c();function zO(r,e,t){for(var i=t-1,s=r.length;++i{u();h();c();var UO=w0(),HO=T0(),WO=F0();function jO(r,e,t){return e===e?WO(r,e,t):UO(r,HO,t)}I0.exports=jO});var P0=T((LCe,R0)=>{u();h();c();var qO=B0();function $O(r,e){var t=r==null?0:r.length;return!!t&&qO(r,e,0)>-1}R0.exports=$O});var L0=T((zCe,O0)=>{u();h();c();function GO(r,e,t){for(var i=-1,s=r==null?0:r.length;++i{u();h();c();function VO(){}k0.exports=VO});var z0=T((VCe,N0)=>{u();h();c();var Bh=rh(),YO=M0(),XO=po(),KO=1/0,QO=Bh&&1/XO(new Bh([,-0]))[1]==KO?function(r){return new Bh(r)}:YO;N0.exports=QO});var H0=T((QCe,U0)=>{u();h();c();var ZO=ju(),JO=P0(),eL=L0(),tL=qu(),rL=z0(),iL=po(),sL=200;function nL(r,e,t){var i=-1,s=JO,n=r.length,o=!0,a=[],l=a;if(t)o=!1,s=eL;else if(n>=sL){var d=e?null:rL(r);if(d)return iL(d);o=!1,s=tL,l=new ZO}else l=e?[]:a;e:for(;++i{u();h();c();var oL=H0();function aL(r){return r&&r.length?oL(r):[]}W0.exports=aL});var $0=T((n1e,q0)=>{u();h();c();function lL(r,e){for(var t=-1,i=r==null?0:r.length;++t{u();h();c();var uL=To(),hL=Eo();function cL(r,e,t,i){var s=!t;t||(t={});for(var n=-1,o=e.length;++n{u();h();c();var dL=ms(),pL=Yr();function fL(r,e){return r&&dL(e,pL(e),r)}V0.exports=fL});var K0=T((m1e,X0)=>{u();h();c();var gL=ms(),_L=Fo();function mL(r,e){return r&&gL(e,_L(e),r)}X0.exports=mL});var ty=T((ys,Zr)=>{u();h();c();var yL=dt(),ey=typeof ys=="object"&&ys&&!ys.nodeType&&ys,Q0=ey&&typeof Zr=="object"&&Zr&&!Zr.nodeType&&Zr,xL=Q0&&Q0.exports===ey,Z0=xL?yL.Buffer:void 0,J0=Z0?Z0.allocUnsafe:void 0;function bL(r,e){if(e)return r.slice();var t=r.length,i=J0?J0(t):new r.constructor(t);return r.copy(i),i}Zr.exports=bL});var iy=T((v1e,ry)=>{u();h();c();function SL(r,e){var t=-1,i=r.length;for(e||(e=Array(i));++t{u();h();c();var CL=ms(),AL=go();function vL(r,e){return CL(r,AL(r),e)}sy.exports=vL});var ay=T((R1e,oy)=>{u();h();c();var wL=ms(),EL=yh();function TL(r,e){return wL(r,EL(r),e)}oy.exports=TL});var uy=T((k1e,ly)=>{u();h();c();var DL=Object.prototype,FL=DL.hasOwnProperty;function IL(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&FL.call(r,"index")&&(t.index=r.index,t.input=r.input),t}ly.exports=IL});var Ro=T((U1e,cy)=>{u();h();c();var hy=Gu();function BL(r){var e=new r.constructor(r.byteLength);return new hy(e).set(new hy(r)),e}cy.exports=BL});var py=T((q1e,dy)=>{u();h();c();var RL=Ro();function PL(r,e){var t=e?RL(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}dy.exports=PL});var gy=T((Y1e,fy)=>{u();h();c();var OL=/\w*$/;function LL(r){var e=new r.constructor(r.source,OL.exec(r));return e.lastIndex=r.lastIndex,e}fy.exports=LL});var by=T((Z1e,xy)=>{u();h();c();var _y=fr(),my=_y?_y.prototype:void 0,yy=my?my.valueOf:void 0;function kL(r){return yy?Object(yy.call(r)):{}}xy.exports=kL});var Cy=T((rAe,Sy)=>{u();h();c();var ML=Ro();function NL(r,e){var t=e?ML(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}Sy.exports=NL});var vy=T((oAe,Ay)=>{u();h();c();var zL=Ro(),UL=py(),HL=gy(),WL=by(),jL=Cy(),qL="[object Boolean]",$L="[object Date]",GL="[object Map]",VL="[object Number]",YL="[object RegExp]",XL="[object Set]",KL="[object String]",QL="[object Symbol]",ZL="[object ArrayBuffer]",JL="[object DataView]",ek="[object Float32Array]",tk="[object Float64Array]",rk="[object Int8Array]",ik="[object Int16Array]",sk="[object Int32Array]",nk="[object Uint8Array]",ok="[object Uint8ClampedArray]",ak="[object Uint16Array]",lk="[object Uint32Array]";function uk(r,e,t){var i=r.constructor;switch(e){case ZL:return zL(r);case qL:case $L:return new i(+r);case JL:return UL(r,t);case ek:case tk:case rk:case ik:case sk:case nk:case ok:case ak:case lk:return jL(r,t);case GL:return new i;case VL:case KL:return new i(r);case YL:return HL(r);case XL:return new i;case QL:return WL(r)}}Ay.exports=uk});var Ty=T((hAe,Ey)=>{u();h();c();var hk=_t(),wy=Object.create,ck=function(){function r(){}return function(e){if(!hk(e))return{};if(wy)return wy(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();Ey.exports=ck});var Fy=T((fAe,Dy)=>{u();h();c();var dk=Ty(),pk=Do(),fk=Co();function gk(r){return typeof r.constructor=="function"&&!fk(r)?dk(pk(r)):{}}Dy.exports=gk});var By=T((yAe,Iy)=>{u();h();c();var _k=ps(),mk=Lt(),yk="[object Map]";function xk(r){return mk(r)&&_k(r)==yk}Iy.exports=xk});var Ly=T((CAe,Oy)=>{u();h();c();var bk=By(),Sk=bo(),Ry=So(),Py=Ry&&Ry.isMap,Ck=Py?Sk(Py):bk;Oy.exports=Ck});var My=T((EAe,ky)=>{u();h();c();var Ak=ps(),vk=Lt(),wk="[object Set]";function Ek(r){return vk(r)&&Ak(r)==wk}ky.exports=Ek});var Hy=T((IAe,Uy)=>{u();h();c();var Tk=My(),Dk=bo(),Ny=So(),zy=Ny&&Ny.isSet,Fk=zy?Dk(zy):Tk;Uy.exports=Fk});var Gy=T((OAe,$y)=>{u();h();c();var Ik=ho(),Bk=$0(),Rk=To(),Pk=Y0(),Ok=K0(),Lk=ty(),kk=iy(),Mk=ny(),Nk=ay(),zk=th(),Uk=xh(),Hk=ps(),Wk=uy(),jk=vy(),qk=Fy(),$k=mt(),Gk=mo(),Vk=Ly(),Yk=_t(),Xk=Hy(),Kk=Yr(),Qk=Fo(),Zk=1,Jk=2,e3=4,Wy="[object Arguments]",t3="[object Array]",r3="[object Boolean]",i3="[object Date]",s3="[object Error]",jy="[object Function]",n3="[object GeneratorFunction]",o3="[object Map]",a3="[object Number]",qy="[object Object]",l3="[object RegExp]",u3="[object Set]",h3="[object String]",c3="[object Symbol]",d3="[object WeakMap]",p3="[object ArrayBuffer]",f3="[object DataView]",g3="[object Float32Array]",_3="[object Float64Array]",m3="[object Int8Array]",y3="[object Int16Array]",x3="[object Int32Array]",b3="[object Uint8Array]",S3="[object Uint8ClampedArray]",C3="[object Uint16Array]",A3="[object Uint32Array]",be={};be[Wy]=be[t3]=be[p3]=be[f3]=be[r3]=be[i3]=be[g3]=be[_3]=be[m3]=be[y3]=be[x3]=be[o3]=be[a3]=be[qy]=be[l3]=be[u3]=be[h3]=be[c3]=be[b3]=be[S3]=be[C3]=be[A3]=!0;be[s3]=be[jy]=be[d3]=!1;function Po(r,e,t,i,s,n){var o,a=e&Zk,l=e&Jk,d=e&e3;if(t&&(o=s?t(r,i,s,n):t(r)),o!==void 0)return o;if(!Yk(r))return r;var p=$k(r);if(p){if(o=Wk(r),!a)return kk(r,o)}else{var _=Hk(r),g=_==jy||_==n3;if(Gk(r))return Lk(r,a);if(_==qy||_==Wy||g&&!s){if(o=l||g?{}:qk(r),!a)return l?Nk(r,Ok(o,r)):Mk(r,Pk(o,r))}else{if(!be[_])return s?r:{};o=jk(r,_,a)}}n||(n=new Ik);var m=n.get(r);if(m)return m;n.set(r,o),Xk(r)?r.forEach(function(v){o.add(Po(v,e,t,v,r,n))}):Vk(r)&&r.forEach(function(v,w){o.set(w,Po(v,e,t,w,r,n))});var A=d?l?Uk:zk:l?Qk:Kk,C=p?void 0:A(r);return Bk(C||r,function(v,w){C&&(w=v,v=r[w]),Rk(o,w,Po(v,e,t,w,r,n))}),o}$y.exports=Po});var Yy=T((NAe,Vy)=>{u();h();c();var v3=Gy(),w3=1,E3=4;function T3(r){return v3(r,w3|E3)}Vy.exports=T3});var ix=T((w2e,rx)=>{u();h();c();function nM(r){return function(e,t,i){for(var s=-1,n=Object(e),o=i(e),a=o.length;a--;){var l=o[r?a:++s];if(t(n[l],l,n)===!1)break}return e}}rx.exports=nM});var nx=T((F2e,sx)=>{u();h();c();var oM=ix(),aM=oM();sx.exports=aM});var ax=T((P2e,ox)=>{u();h();c();var lM=nx(),uM=Yr();function hM(r,e){return r&&lM(r,e,uM)}ox.exports=hM});var zo=T((M2e,lx)=>{u();h();c();var cM=Eo(),dM=ax(),pM=gh();function fM(r,e){var t={};return e=pM(e,3),dM(r,function(i,s,n){cM(t,s,e(i,s,n))}),t}lx.exports=fM});var hx=T((H2e,ux)=>{u();h();c();var gM=mh(),_M=ph();function mM(r,e){return gM(r,e,function(t,i){return _M(r,i)})}ux.exports=mM});var fx=T(($2e,px)=>{u();h();c();var cx=fr(),yM=_o(),xM=mt(),dx=cx?cx.isConcatSpreadable:void 0;function bM(r){return xM(r)||yM(r)||!!(dx&&r&&r[dx])}px.exports=bM});var mx=T((X2e,_x)=>{u();h();c();var SM=fo(),CM=fx();function gx(r,e,t,i,s){var n=-1,o=r.length;for(t||(t=CM),s||(s=[]);++n0&&t(a)?e>1?gx(a,e-1,t,i,s):SM(s,a):i||(s[s.length]=a)}return s}_x.exports=gx});var xx=T((J2e,yx)=>{u();h();c();var AM=mx();function vM(r){var e=r==null?0:r.length;return e?AM(r,1):[]}yx.exports=vM});var Sx=T((ive,bx)=>{u();h();c();function wM(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}bx.exports=wM});var vx=T((ave,Ax)=>{u();h();c();var EM=Sx(),Cx=Math.max;function TM(r,e,t){return e=Cx(e===void 0?r.length-1:e,0),function(){for(var i=arguments,s=-1,n=Cx(i.length-e,0),o=Array(n);++s{u();h();c();function DM(r){return function(){return r}}wx.exports=DM});var Fx=T((gve,Dx)=>{u();h();c();var FM=Ex(),Tx=_h(),IM=fh(),BM=Tx?function(r,e){return Tx(r,"toString",{configurable:!0,enumerable:!1,value:FM(e),writable:!0})}:IM;Dx.exports=BM});var Bx=T((xve,Ix)=>{u();h();c();var RM=800,PM=16,OM=Date.now;function LM(r){var e=0,t=0;return function(){var i=OM(),s=PM-(i-t);if(t=i,s>0){if(++e>=RM)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}Ix.exports=LM});var Px=T((Ave,Rx)=>{u();h();c();var kM=Fx(),MM=Bx(),NM=MM(kM);Rx.exports=NM});var Lx=T((Tve,Ox)=>{u();h();c();var zM=xx(),UM=vx(),HM=Px();function WM(r){return HM(UM(r,void 0,zM),r+"")}Ox.exports=WM});var Mx=T((Bve,kx)=>{u();h();c();var jM=hx(),qM=Lx(),$M=qM(function(r,e){return r==null?{}:jM(r,e)});kx.exports=$M});var Ho=T((Lve,jx)=>{"use strict";u();h();c();function Uo(r){return Array.prototype.slice.apply(r)}var Hx="pending",Nx="resolved",zx="rejected";function de(r){this.status=Hx,this._continuations=[],this._parent=null,this._paused=!1,r&&r.call(this,this._continueWith.bind(this),this._failWith.bind(this))}function xs(r){return r&&typeof r.then=="function"}function GM(r){return r}de.prototype={then:function(r,e){var t=de.unresolved()._setParent(this);if(this._isRejected()){if(this._paused)return this._continuations.push({promise:t,nextFn:r,catchFn:e}),t;if(e)try{var i=e(this._error);return xs(i)?(this._chainPromiseData(i,t),t):de.resolve(i)._setParent(this)}catch(s){return de.reject(s)._setParent(this)}return de.reject(this._error)._setParent(this)}return this._continuations.push({promise:t,nextFn:r,catchFn:e}),this._runResolutions(),t},catch:function(r){if(this._isResolved())return de.resolve(this._data)._setParent(this);var e=de.unresolved()._setParent(this);return this._continuations.push({promise:e,catchFn:r}),this._runRejections(),e},finally:function(r){var e=!1;function t(i,s){if(!e){e=!0,r||(r=GM);var n=r(i);return xs(n)?n.then(function(){if(s)throw s;return i}):i}}return this.then(function(i){return t(i)}).catch(function(i){return t(null,i)})},pause:function(){return this._paused=!0,this},resume:function(){var r=this._findFirstPaused();return r&&(r._paused=!1,r._runResolutions(),r._runRejections()),this},_findAncestry:function(){return this._continuations.reduce(function(r,e){if(e.promise){var t={promise:e.promise,children:e.promise._findAncestry()};r.push(t)}return r},[])},_setParent:function(r){if(this._parent)throw new Error("parent already set");return this._parent=r,this},_continueWith:function(r){var e=this._findFirstPending();e&&(e._data=r,e._setResolved())},_findFirstPending:function(){return this._findFirstAncestor(function(r){return r._isPending&&r._isPending()})},_findFirstPaused:function(){return this._findFirstAncestor(function(r){return r._paused})},_findFirstAncestor:function(r){for(var e=this,t;e;)r(e)&&(t=e),e=e._parent;return t},_failWith:function(r){var e=this._findFirstPending();e&&(e._error=r,e._setRejected())},_takeContinuations:function(){return this._continuations.splice(0,this._continuations.length)},_runRejections:function(){if(!(this._paused||!this._isRejected())){var r=this._error,e=this._takeContinuations(),t=this;e.forEach(function(i){if(i.catchFn)try{var s=i.catchFn(r);t._handleUserFunctionResult(s,i.promise)}catch(n){i.promise.reject(n)}else i.promise.reject(r)})}},_runResolutions:function(){if(!(this._paused||!this._isResolved()||this._isPending())){var r=this._takeContinuations(),e=this._data,t=this;if(r.forEach(function(i){if(i.nextFn)try{var s=i.nextFn(e);t._handleUserFunctionResult(s,i.promise)}catch(n){t._handleResolutionError(n,i)}else i.promise&&i.promise.resolve(e)}),xs(this._data))return this._handleWhenResolvedDataIsPromise(this._data)}},_handleResolutionError:function(r,e){if(this._setRejected(),e.catchFn)try{e.catchFn(r);return}catch(t){r=t}e.promise&&e.promise.reject(r)},_handleWhenResolvedDataIsPromise:function(r){var e=this;return r.then(function(t){e._data=t,e._runResolutions()}).catch(function(t){e._error=t,e._setRejected(),e._runRejections()})},_handleUserFunctionResult:function(r,e){xs(r)?this._chainPromiseData(r,e):e.resolve(r)},_chainPromiseData:function(r,e){r.then(function(t){e.resolve(t)}).catch(function(t){e.reject(t)})},_setResolved:function(){this.status=Nx,this._paused||this._runResolutions()},_setRejected:function(){this.status=zx,this._paused||this._runRejections()},_isPending:function(){return this.status===Hx},_isResolved:function(){return this.status===Nx},_isRejected:function(){return this.status===zx}};de.resolve=function(r){return new de(function(e,t){xs(r)?r.then(function(i){e(i)}).catch(function(i){t(i)}):e(r)})};de.reject=function(r){return new de(function(e,t){t(r)})};de.unresolved=function(){return new de(function(r,e){this.resolve=r,this.reject=e})};de.all=function(){var r=Uo(arguments);return Array.isArray(r[0])&&(r=r[0]),r.length?new de(function(e,t){var i=[],s=0,n=function(){s===r.length&&e(i)},o=!1,a=function(l){o||(o=!0,t(l))};r.forEach(function(l,d){de.resolve(l).then(function(p){i[d]=p,s+=1,n()}).catch(function(p){a(p)})})}):de.resolve([])};function Ux(r){return typeof window<"u"&&"AggregateError"in window?new window.AggregateError(r):{errors:r}}de.any=function(){var r=Uo(arguments);return Array.isArray(r[0])&&(r=r[0]),r.length?new de(function(e,t){var i=[],s=0,n=function(){s===r.length&&t(Ux(i))},o=!1,a=function(l){o||(o=!0,e(l))};r.forEach(function(l,d){de.resolve(l).then(function(p){a(p)}).catch(function(p){i[d]=p,s+=1,n()})})}):de.reject(Ux([]))};de.allSettled=function(){var r=Uo(arguments);return Array.isArray(r[0])&&(r=r[0]),r.length?new de(function(e){var t=[],i=0,s=function(){i+=1,i===r.length&&e(t)};r.forEach(function(n,o){de.resolve(n).then(function(a){t[o]={status:"fulfilled",value:a},s()}).catch(function(a){t[o]={status:"rejected",reason:a},s()})})}):de.resolve([])};if(Promise===de)throw new Error("Please use SynchronousPromise.installGlobally() to install globally");var Wx=Promise;de.installGlobally=function(r){if(Promise===de)return r;var e=VM(r);return Promise=de,e};de.uninstallGlobally=function(){Promise===de&&(Promise=Wx)};function VM(r){if(typeof r>"u"||r.__patched)return r;var e=r;return r=function(){var t=Wx;e.apply(this,Uo(arguments))},r.__patched=!0,r}jx.exports={SynchronousPromise:de}});var Lh=T((swe,$x)=>{u();h();c();var XM=gr(),KM=Do(),QM=Lt(),ZM="[object Object]",JM=Function.prototype,e4=Object.prototype,qx=JM.toString,t4=e4.hasOwnProperty,r4=qx.call(Object);function i4(r){if(!QM(r)||XM(r)!=ZM)return!1;var e=KM(r);if(e===null)return!0;var t=t4.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&qx.call(t)==r4}$x.exports=i4});var Vx=T((lwe,Gx)=>{u();h();c();Gx.exports=s4;function s4(r,e){if(kh("noDeprecation"))return r;var t=!1;function i(){if(!t){if(kh("throwDeprecation"))throw new Error(e);kh("traceDeprecation")?console.trace(e):console.warn(e),t=!0}return r.apply(this,arguments)}return i}function kh(r){try{if(!window.localStorage)return!1}catch{return!1}var e=window.localStorage[r];return e==null?!1:String(e).toLowerCase()==="true"}});var eb=T((Bwe,Jx)=>{"use strict";u();h();c();Jx.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var s=42;e[t]=s;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var n=Object.getOwnPropertySymbols(e);if(n.length!==1||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==s||o.enumerable!==!0)return!1}return!0}});var ib=T((Lwe,rb)=>{"use strict";u();h();c();var tb=typeof Symbol<"u"&&Symbol,b4=eb();rb.exports=function(){return typeof tb!="function"||typeof Symbol!="function"||typeof tb("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:b4()}});var ob=T((zwe,nb)=>{"use strict";u();h();c();var sb={foo:{}},S4=Object;nb.exports=function(){return{__proto__:sb}.foo===sb.foo&&!({__proto__:null}instanceof S4)}});var ub=T((jwe,lb)=>{"use strict";u();h();c();var C4="Function.prototype.bind called on incompatible ",A4=Object.prototype.toString,v4=Math.max,w4="[object Function]",ab=function(e,t){for(var i=[],s=0;s{"use strict";u();h();c();var D4=ub();hb.exports=Function.prototype.bind||D4});var db=T((Qwe,cb)=>{"use strict";u();h();c();var F4=Function.prototype.call,I4=Object.prototype.hasOwnProperty,B4=Go();cb.exports=B4.call(F4,I4)});var Jt=T((tEe,mb)=>{"use strict";u();h();c();var ue,ii=SyntaxError,_b=Function,ri=TypeError,Uh=function(r){try{return _b('"use strict"; return ('+r+").constructor;")()}catch{}},xr=Object.getOwnPropertyDescriptor;if(xr)try{xr({},"")}catch{xr=null}var Hh=function(){throw new ri},R4=xr?function(){try{return arguments.callee,Hh}catch{try{return xr(arguments,"callee").get}catch{return Hh}}}():Hh,ei=ib()(),P4=ob()(),ke=Object.getPrototypeOf||(P4?function(r){return r.__proto__}:null),ti={},O4=typeof Uint8Array>"u"||!ke?ue:ke(Uint8Array),br={"%AggregateError%":typeof AggregateError>"u"?ue:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ue:ArrayBuffer,"%ArrayIteratorPrototype%":ei&&ke?ke([][Symbol.iterator]()):ue,"%AsyncFromSyncIteratorPrototype%":ue,"%AsyncFunction%":ti,"%AsyncGenerator%":ti,"%AsyncGeneratorFunction%":ti,"%AsyncIteratorPrototype%":ti,"%Atomics%":typeof Atomics>"u"?ue:Atomics,"%BigInt%":typeof BigInt>"u"?ue:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ue:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ue:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ue:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?ue:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ue:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ue:FinalizationRegistry,"%Function%":_b,"%GeneratorFunction%":ti,"%Int8Array%":typeof Int8Array>"u"?ue:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ue:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ue:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ei&&ke?ke(ke([][Symbol.iterator]())):ue,"%JSON%":typeof JSON=="object"?JSON:ue,"%Map%":typeof Map>"u"?ue:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ei||!ke?ue:ke(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ue:Promise,"%Proxy%":typeof Proxy>"u"?ue:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?ue:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ue:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ei||!ke?ue:ke(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ue:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ei&&ke?ke(""[Symbol.iterator]()):ue,"%Symbol%":ei?Symbol:ue,"%SyntaxError%":ii,"%ThrowTypeError%":R4,"%TypedArray%":O4,"%TypeError%":ri,"%Uint8Array%":typeof Uint8Array>"u"?ue:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ue:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ue:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ue:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?ue:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ue:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ue:WeakSet};if(ke)try{null.error}catch(r){pb=ke(ke(r)),br["%Error.prototype%"]=pb}var pb,L4=function r(e){var t;if(e==="%AsyncFunction%")t=Uh("async function () {}");else if(e==="%GeneratorFunction%")t=Uh("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=Uh("async function* () {}");else if(e==="%AsyncGenerator%"){var i=r("%AsyncGeneratorFunction%");i&&(t=i.prototype)}else if(e==="%AsyncIteratorPrototype%"){var s=r("%AsyncGenerator%");s&&ke&&(t=ke(s.prototype))}return br[e]=t,t},fb={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},vs=Go(),Vo=db(),k4=vs.call(Function.call,Array.prototype.concat),M4=vs.call(Function.apply,Array.prototype.splice),gb=vs.call(Function.call,String.prototype.replace),Yo=vs.call(Function.call,String.prototype.slice),N4=vs.call(Function.call,RegExp.prototype.exec),z4=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,U4=/\\(\\)?/g,H4=function(e){var t=Yo(e,0,1),i=Yo(e,-1);if(t==="%"&&i!=="%")throw new ii("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&t!=="%")throw new ii("invalid intrinsic syntax, expected opening `%`");var s=[];return gb(e,z4,function(n,o,a,l){s[s.length]=a?gb(l,U4,"$1"):o||n}),s},W4=function(e,t){var i=e,s;if(Vo(fb,i)&&(s=fb[i],i="%"+s[0]+"%"),Vo(br,i)){var n=br[i];if(n===ti&&(n=L4(i)),typeof n>"u"&&!t)throw new ri("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:s,name:i,value:n}}throw new ii("intrinsic "+e+" does not exist!")};mb.exports=function(e,t){if(typeof e!="string"||e.length===0)throw new ri("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new ri('"allowMissing" argument must be a boolean');if(N4(/^%?[^%]*%?$/,e)===null)throw new ii("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=H4(e),s=i.length>0?i[0]:"",n=W4("%"+s+"%",t),o=n.name,a=n.value,l=!1,d=n.alias;d&&(s=d[0],M4(i,k4([0,1],d)));for(var p=1,_=!0;p=i.length){var C=xr(a,g);_=!!C,_&&"get"in C&&!("originalValue"in C.get)?a=C.get:a=a[g]}else _=Vo(a,g),a=a[g];_&&!l&&(br[o]=a)}}return a}});var qh=T((nEe,yb)=>{"use strict";u();h();c();var j4=Jt(),Wh=j4("%Object.defineProperty%",!0),jh=function(){if(Wh)try{return Wh({},"a",{value:1}),!0}catch{return!1}return!1};jh.hasArrayLengthDefineBug=function(){if(!jh())return null;try{return Wh([],"length",{value:1}).length!==1}catch{return!0}};yb.exports=jh});var $h=T((uEe,xb)=>{"use strict";u();h();c();var q4=Jt(),Xo=q4("%Object.getOwnPropertyDescriptor%",!0);if(Xo)try{Xo([],"length")}catch{Xo=null}xb.exports=Xo});var Cb=T((pEe,Sb)=>{"use strict";u();h();c();var $4=qh()(),Gh=Jt(),ws=$4&&Gh("%Object.defineProperty%",!0);if(ws)try{ws({},"a",{value:1})}catch{ws=!1}var G4=Gh("%SyntaxError%"),si=Gh("%TypeError%"),bb=$h();Sb.exports=function(e,t,i){if(!e||typeof e!="object"&&typeof e!="function")throw new si("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new si("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new si("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new si("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new si("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new si("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,n=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!bb&&bb(e,t);if(ws)ws(e,t,{configurable:o===null&&l?l.configurable:!o,enumerable:s===null&&l?l.enumerable:!s,value:i,writable:n===null&&l?l.writable:!n});else if(a||!s&&!n&&!o)e[t]=i;else throw new G4("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Db=T((mEe,Tb)=>{"use strict";u();h();c();var Eb=Jt(),Ab=Cb(),V4=qh()(),vb=$h(),wb=Eb("%TypeError%"),Y4=Eb("%Math.floor%");Tb.exports=function(e,t){if(typeof e!="function")throw new wb("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||Y4(t)!==t)throw new wb("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],s=!0,n=!0;if("length"in e&&vb){var o=vb(e,"length");o&&!o.configurable&&(s=!1),o&&!o.writable&&(n=!1)}return(s||n||!i)&&(V4?Ab(e,"length",t,!0,!0):Ab(e,"length",t)),e}});var Pb=T((SEe,Ko)=>{"use strict";u();h();c();var Vh=Go(),ni=Jt(),X4=Db(),K4=ni("%TypeError%"),Ib=ni("%Function.prototype.apply%"),Bb=ni("%Function.prototype.call%"),Rb=ni("%Reflect.apply%",!0)||Vh.call(Bb,Ib),Es=ni("%Object.defineProperty%",!0),Q4=ni("%Math.max%");if(Es)try{Es({},"a",{value:1})}catch{Es=null}Ko.exports=function(e){if(typeof e!="function")throw new K4("a function is required");var t=Rb(Vh,Bb,arguments);return X4(t,1+Q4(0,e.length-(arguments.length-1)),!0)};var Fb=function(){return Rb(Vh,Ib,arguments)};Es?Es(Ko.exports,"apply",{value:Fb}):Ko.exports.apply=Fb});var Mb=T((wEe,kb)=>{"use strict";u();h();c();var Ob=Jt(),Lb=Pb(),Z4=Lb(Ob("String.prototype.indexOf"));kb.exports=function(e,t){var i=Ob(e,!!t);return typeof i=="function"&&Z4(e,".prototype.")>-1?Lb(i):i}});var Nb=T(()=>{u();h();c()});var sS=T((OEe,iS)=>{u();h();c();var ic=typeof Map=="function"&&Map.prototype,Yh=Object.getOwnPropertyDescriptor&&ic?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Zo=ic&&Yh&&typeof Yh.get=="function"?Yh.get:null,zb=ic&&Map.prototype.forEach,sc=typeof Set=="function"&&Set.prototype,Xh=Object.getOwnPropertyDescriptor&&sc?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Jo=sc&&Xh&&typeof Xh.get=="function"?Xh.get:null,Ub=sc&&Set.prototype.forEach,J4=typeof WeakMap=="function"&&WeakMap.prototype,Ds=J4?WeakMap.prototype.has:null,e6=typeof WeakSet=="function"&&WeakSet.prototype,Fs=e6?WeakSet.prototype.has:null,t6=typeof WeakRef=="function"&&WeakRef.prototype,Hb=t6?WeakRef.prototype.deref:null,r6=Boolean.prototype.valueOf,i6=Object.prototype.toString,s6=Function.prototype.toString,n6=String.prototype.match,nc=String.prototype.slice,tr=String.prototype.replace,o6=String.prototype.toUpperCase,Wb=String.prototype.toLowerCase,Qb=RegExp.prototype.test,jb=Array.prototype.concat,At=Array.prototype.join,a6=Array.prototype.slice,qb=Math.floor,Zh=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Kh=Object.getOwnPropertySymbols,Jh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,oi=typeof Symbol=="function"&&typeof Symbol.iterator=="object",je=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===oi||"symbol")?Symbol.toStringTag:null,Zb=Object.prototype.propertyIsEnumerable,$b=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function Gb(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||Qb.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var i=r<0?-qb(-r):qb(r);if(i!==r){var s=String(i),n=nc.call(e,s.length+1);return tr.call(s,t,"$&_")+"."+tr.call(tr.call(n,/([0-9]{3})/g,"$&_"),/_$/,"")}}return tr.call(e,t,"$&_")}var ec=Nb(),Vb=ec.custom,Yb=eS(Vb)?Vb:null;iS.exports=function r(e,t,i,s){var n=t||{};if(er(n,"quoteStyle")&&n.quoteStyle!=="single"&&n.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(er(n,"maxStringLength")&&(typeof n.maxStringLength=="number"?n.maxStringLength<0&&n.maxStringLength!==1/0:n.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=er(n,"customInspect")?n.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(er(n,"indent")&&n.indent!==null&&n.indent!==" "&&!(parseInt(n.indent,10)===n.indent&&n.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(er(n,"numericSeparator")&&typeof n.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=n.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return rS(e,n);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return a?Gb(e,l):l}if(typeof e=="bigint"){var d=String(e)+"n";return a?Gb(e,d):d}var p=typeof n.depth>"u"?5:n.depth;if(typeof i>"u"&&(i=0),i>=p&&p>0&&typeof e=="object")return tc(e)?"[Array]":"[Object]";var _=w6(n,i);if(typeof s>"u")s=[];else if(tS(s,e)>=0)return"[Circular]";function g(Q,L,R){if(L&&(s=a6.call(s),s.push(L)),R){var H={depth:n.depth};return er(n,"quoteStyle")&&(H.quoteStyle=n.quoteStyle),r(Q,H,i+1,s)}return r(Q,n,i+1,s)}if(typeof e=="function"&&!Xb(e)){var m=_6(e),A=Qo(e,g);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(A.length>0?" { "+At.call(A,", ")+" }":"")}if(eS(e)){var C=oi?tr.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Jh.call(e);return typeof e=="object"&&!oi?Ts(C):C}if(C6(e)){for(var v="<"+Wb.call(String(e.nodeName)),w=e.attributes||[],D=0;D",v}if(tc(e)){if(e.length===0)return"[]";var B=Qo(e,g);return _&&!v6(B)?"["+rc(B,_)+"]":"[ "+At.call(B,", ")+" ]"}if(h6(e)){var F=Qo(e,g);return!("cause"in Error.prototype)&&"cause"in e&&!Zb.call(e,"cause")?"{ ["+String(e)+"] "+At.call(jb.call("[cause]: "+g(e.cause),F),", ")+" }":F.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+At.call(F,", ")+" }"}if(typeof e=="object"&&o){if(Yb&&typeof e[Yb]=="function"&&ec)return ec(e,{depth:p-i});if(o!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(m6(e)){var E=[];return zb&&zb.call(e,function(Q,L){E.push(g(L,e,!0)+" => "+g(Q,e))}),Kb("Map",Zo.call(e),E,_)}if(b6(e)){var O=[];return Ub&&Ub.call(e,function(Q){O.push(g(Q,e))}),Kb("Set",Jo.call(e),O,_)}if(y6(e))return Qh("WeakMap");if(S6(e))return Qh("WeakSet");if(x6(e))return Qh("WeakRef");if(d6(e))return Ts(g(Number(e)));if(f6(e))return Ts(g(Zh.call(e)));if(p6(e))return Ts(r6.call(e));if(c6(e))return Ts(g(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===window)return"{ [object globalThis] }";if(!u6(e)&&!Xb(e)){var M=Qo(e,g),W=$b?$b(e)===Object.prototype:e instanceof Object||e.constructor===Object,$=e instanceof Object?"":"null prototype",j=!W&&je&&Object(e)===e&&je in e?nc.call(rr(e),8,-1):$?"Object":"",se=W||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",J=se+(j||$?"["+At.call(jb.call([],j||[],$||[]),": ")+"] ":"");return M.length===0?J+"{}":_?J+"{"+rc(M,_)+"}":J+"{ "+At.call(M,", ")+" }"}return String(e)};function Jb(r,e,t){var i=(t.quoteStyle||e)==="double"?'"':"'";return i+r+i}function l6(r){return tr.call(String(r),/"/g,""")}function tc(r){return rr(r)==="[object Array]"&&(!je||!(typeof r=="object"&&je in r))}function u6(r){return rr(r)==="[object Date]"&&(!je||!(typeof r=="object"&&je in r))}function Xb(r){return rr(r)==="[object RegExp]"&&(!je||!(typeof r=="object"&&je in r))}function h6(r){return rr(r)==="[object Error]"&&(!je||!(typeof r=="object"&&je in r))}function c6(r){return rr(r)==="[object String]"&&(!je||!(typeof r=="object"&&je in r))}function d6(r){return rr(r)==="[object Number]"&&(!je||!(typeof r=="object"&&je in r))}function p6(r){return rr(r)==="[object Boolean]"&&(!je||!(typeof r=="object"&&je in r))}function eS(r){if(oi)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!Jh)return!1;try{return Jh.call(r),!0}catch{}return!1}function f6(r){if(!r||typeof r!="object"||!Zh)return!1;try{return Zh.call(r),!0}catch{}return!1}var g6=Object.prototype.hasOwnProperty||function(r){return r in this};function er(r,e){return g6.call(r,e)}function rr(r){return i6.call(r)}function _6(r){if(r.name)return r.name;var e=n6.call(s6.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function tS(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,i=r.length;te.maxStringLength){var t=r.length-e.maxStringLength,i="... "+t+" more character"+(t>1?"s":"");return rS(nc.call(r,0,e.maxStringLength),e)+i}var s=tr.call(tr.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,A6);return Jb(s,"single",e)}function A6(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+o6.call(e.toString(16))}function Ts(r){return"Object("+r+")"}function Qh(r){return r+" { ? }"}function Kb(r,e,t,i){var s=i?rc(t,i):At.call(t,", ");return r+" ("+e+") {"+s+"}"}function v6(r){for(var e=0;e=0)return!1;return!0}function w6(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=At.call(Array(r.indent+1)," ");else return null;return{base:t,prev:At.call(Array(e+1),t)}}function rc(r,e){if(r.length===0)return"";var t=` -`+e.prev+e.base;return t+At.call(r,","+t)+` -`+e.prev}function Qo(r,e){var t=tc(r),i=[];if(t){i.length=r.length;for(var s=0;s{"use strict";u();h();c();var oc=Jt(),ai=Mb(),E6=sS(),T6=oc("%TypeError%"),ea=oc("%WeakMap%",!0),ta=oc("%Map%",!0),D6=ai("WeakMap.prototype.get",!0),F6=ai("WeakMap.prototype.set",!0),I6=ai("WeakMap.prototype.has",!0),B6=ai("Map.prototype.get",!0),R6=ai("Map.prototype.set",!0),P6=ai("Map.prototype.has",!0),ac=function(r,e){for(var t=r,i;(i=t.next)!==null;t=i)if(i.key===e)return t.next=i.next,i.next=r.next,r.next=i,i},O6=function(r,e){var t=ac(r,e);return t&&t.value},L6=function(r,e,t){var i=ac(r,e);i?i.value=t:r.next={key:e,next:r.next,value:t}},k6=function(r,e){return!!ac(r,e)};nS.exports=function(){var e,t,i,s={assert:function(n){if(!s.has(n))throw new T6("Side channel does not contain "+E6(n))},get:function(n){if(ea&&n&&(typeof n=="object"||typeof n=="function")){if(e)return D6(e,n)}else if(ta){if(t)return B6(t,n)}else if(i)return O6(i,n)},has:function(n){if(ea&&n&&(typeof n=="object"||typeof n=="function")){if(e)return I6(e,n)}else if(ta){if(t)return P6(t,n)}else if(i)return k6(i,n);return!1},set:function(n,o){ea&&n&&(typeof n=="object"||typeof n=="function")?(e||(e=new ea),F6(e,n,o)):ta?(t||(t=new ta),R6(t,n,o)):(i||(i={key:{},next:null}),L6(i,n,o))}};return s}});var ra=T((WEe,aS)=>{"use strict";u();h();c();var M6=String.prototype.replace,N6=/%20/g,lc={RFC1738:"RFC1738",RFC3986:"RFC3986"};aS.exports={default:lc.RFC3986,formatters:{RFC1738:function(r){return M6.call(r,N6,"+")},RFC3986:function(r){return String(r)}},RFC1738:lc.RFC1738,RFC3986:lc.RFC3986}});var hc=T((GEe,uS)=>{"use strict";u();h();c();var z6=ra(),uc=Object.prototype.hasOwnProperty,Sr=Array.isArray,vt=function(){for(var r=[],e=0;e<256;++e)r.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return r}(),U6=function(e){for(;e.length>1;){var t=e.pop(),i=t.obj[t.prop];if(Sr(i)){for(var s=[],n=0;n=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||n===z6.RFC1738&&(d===40||d===41)){a+=o.charAt(l);continue}if(d<128){a=a+vt[d];continue}if(d<2048){a=a+(vt[192|d>>6]+vt[128|d&63]);continue}if(d<55296||d>=57344){a=a+(vt[224|d>>12]+vt[128|d>>6&63]+vt[128|d&63]);continue}l+=1,d=65536+((d&1023)<<10|o.charCodeAt(l)&1023),a+=vt[240|d>>18]+vt[128|d>>12&63]+vt[128|d>>6&63]+vt[128|d&63]}return a},$6=function(e){for(var t=[{obj:{o:e},prop:"o"}],i=[],s=0;s{"use strict";u();h();c();var dS=oS(),ia=hc(),Is=ra(),K6=Object.prototype.hasOwnProperty,hS={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Mt=Array.isArray,Q6=Array.prototype.push,pS=function(r,e){Q6.apply(r,Mt(e)?e:[e])},Z6=Date.prototype.toISOString,cS=Is.default,qe={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:ia.encode,encodeValuesOnly:!1,format:cS,formatter:Is.formatters[cS],indices:!1,serializeDate:function(e){return Z6.call(e)},skipNulls:!1,strictNullHandling:!1},J6=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},cc={},eN=function r(e,t,i,s,n,o,a,l,d,p,_,g,m,A,C,v){for(var w=e,D=v,B=0,F=!1;(D=D.get(cc))!==void 0&&!F;){var E=D.get(e);if(B+=1,typeof E<"u"){if(E===B)throw new RangeError("Cyclic object value");F=!0}typeof D.get(cc)>"u"&&(B=0)}if(typeof l=="function"?w=l(t,w):w instanceof Date?w=_(w):i==="comma"&&Mt(w)&&(w=ia.maybeMap(w,function(H){return H instanceof Date?_(H):H})),w===null){if(n)return a&&!A?a(t,qe.encoder,C,"key",g):t;w=""}if(J6(w)||ia.isBuffer(w)){if(a){var O=A?t:a(t,qe.encoder,C,"key",g);return[m(O)+"="+m(a(w,qe.encoder,C,"value",g))]}return[m(t)+"="+m(String(w))]}var M=[];if(typeof w>"u")return M;var W;if(i==="comma"&&Mt(w))A&&a&&(w=ia.maybeMap(w,a)),W=[{value:w.length>0?w.join(",")||null:void 0}];else if(Mt(l))W=l;else{var $=Object.keys(w);W=d?$.sort(d):$}for(var j=s&&Mt(w)&&w.length===1?t+"[]":t,se=0;se"u"?qe.allowDots:!!e.allowDots,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:qe.charsetSentinel,delimiter:typeof e.delimiter>"u"?qe.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:qe.encode,encoder:typeof e.encoder=="function"?e.encoder:qe.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:qe.encodeValuesOnly,filter:n,format:i,formatter:s,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:qe.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:qe.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:qe.strictNullHandling}};fS.exports=function(r,e){var t=r,i=tN(e),s,n;typeof i.filter=="function"?(n=i.filter,t=n("",t)):Mt(i.filter)&&(n=i.filter,s=n);var o=[];if(typeof t!="object"||t===null)return"";var a;e&&e.arrayFormat in hS?a=e.arrayFormat:e&&"indices"in e?a=e.indices?"indices":"repeat":a="indices";var l=hS[a];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=l==="comma"&&e&&e.commaRoundTrip;s||(s=Object.keys(t)),i.sort&&s.sort(i.sort);for(var p=dS(),_=0;_0?A+m:""}});var yS=T((eTe,mS)=>{"use strict";u();h();c();var li=hc(),dc=Object.prototype.hasOwnProperty,rN=Array.isArray,Me={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:li.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},iN=function(r){return r.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},_S=function(r,e){return r&&typeof r=="string"&&e.comma&&r.indexOf(",")>-1?r.split(","):r},sN="utf8=%26%2310003%3B",nN="utf8=%E2%9C%93",oN=function(e,t){var i={__proto__:null},s=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,n=t.parameterLimit===1/0?void 0:t.parameterLimit,o=s.split(t.delimiter,n),a=-1,l,d=t.charset;if(t.charsetSentinel)for(l=0;l-1&&(A=rN(A)?[A]:A),dc.call(i,m)?i[m]=li.combine(i[m],A):i[m]=A}return i},aN=function(r,e,t,i){for(var s=i?e:_S(e,t),n=r.length-1;n>=0;--n){var o,a=r[n];if(a==="[]"&&t.parseArrays)o=[].concat(s);else{o=t.plainObjects?Object.create(null):{};var l=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,d=parseInt(l,10);!t.parseArrays&&l===""?o={0:s}:!isNaN(d)&&a!==l&&String(d)===l&&d>=0&&t.parseArrays&&d<=t.arrayLimit?(o=[],o[d]=s):l!=="__proto__"&&(o[l]=s)}s=o}return s},lN=function(e,t,i,s){if(e){var n=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=i.depth>0&&o.exec(n),d=l?n.slice(0,l.index):n,p=[];if(d){if(!i.plainObjects&&dc.call(Object.prototype,d)&&!i.allowPrototypes)return;p.push(d)}for(var _=0;i.depth>0&&(l=a.exec(n))!==null&&_"u"?Me.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?Me.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Me.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Me.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Me.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Me.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Me.comma,decoder:typeof e.decoder=="function"?e.decoder:Me.decoder,delimiter:typeof e.delimiter=="string"||li.isRegExp(e.delimiter)?e.delimiter:Me.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Me.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Me.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Me.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Me.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Me.strictNullHandling}};mS.exports=function(r,e){var t=uN(e);if(r===""||r===null||typeof r>"u")return t.plainObjects?Object.create(null):{};for(var i=typeof r=="string"?oN(r,t):r,s=t.plainObjects?Object.create(null):{},n=Object.keys(i),o=0;o{"use strict";u();h();c();var hN=gS(),cN=yS(),dN=ra();xS.exports={formats:dN,parse:cN,stringify:hN}});var wS=T((jDe,vS)=>{u();h();c();(function(){"use strict";function r(o){if(o==null)return!1;switch(o.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function e(o){if(o==null)return!1;switch(o.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function t(o){if(o==null)return!1;switch(o.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function i(o){return t(o)||o!=null&&o.type==="FunctionDeclaration"}function s(o){switch(o.type){case"IfStatement":return o.alternate!=null?o.alternate:o.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return o.body}return null}function n(o){var a;if(o.type!=="IfStatement"||o.alternate==null)return!1;a=o.consequent;do{if(a.type==="IfStatement"&&a.alternate==null)return!0;a=s(a)}while(a);return!1}vS.exports={isExpression:r,isStatement:t,isIterationStatement:e,isSourceElement:i,isProblematicIfStatement:n,trailingStatement:s}})()});var fc=T((VDe,ES)=>{u();h();c();(function(){"use strict";var r,e,t,i,s,n;e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},r={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function o(v){return 48<=v&&v<=57}function a(v){return 48<=v&&v<=57||97<=v&&v<=102||65<=v&&v<=70}function l(v){return v>=48&&v<=55}t=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function d(v){return v===32||v===9||v===11||v===12||v===160||v>=5760&&t.indexOf(v)>=0}function p(v){return v===10||v===13||v===8232||v===8233}function _(v){if(v<=65535)return String.fromCharCode(v);var w=String.fromCharCode(Math.floor((v-65536)/1024)+55296),D=String.fromCharCode((v-65536)%1024+56320);return w+D}for(i=new Array(128),n=0;n<128;++n)i[n]=n>=97&&n<=122||n>=65&&n<=90||n===36||n===95;for(s=new Array(128),n=0;n<128;++n)s[n]=n>=97&&n<=122||n>=65&&n<=90||n>=48&&n<=57||n===36||n===95;function g(v){return v<128?i[v]:e.NonAsciiIdentifierStart.test(_(v))}function m(v){return v<128?s[v]:e.NonAsciiIdentifierPart.test(_(v))}function A(v){return v<128?i[v]:r.NonAsciiIdentifierStart.test(_(v))}function C(v){return v<128?s[v]:r.NonAsciiIdentifierPart.test(_(v))}ES.exports={isDecimalDigit:o,isHexDigit:a,isOctalDigit:l,isWhiteSpace:d,isLineTerminator:p,isIdentifierStartES5:g,isIdentifierPartES5:m,isIdentifierStartES6:A,isIdentifierPartES6:C}})()});var DS=T((QDe,TS)=>{u();h();c();(function(){"use strict";var r=fc();function e(g){switch(g){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function t(g,m){return!m&&g==="yield"?!1:i(g,m)}function i(g,m){if(m&&e(g))return!0;switch(g.length){case 2:return g==="if"||g==="in"||g==="do";case 3:return g==="var"||g==="for"||g==="new"||g==="try";case 4:return g==="this"||g==="else"||g==="case"||g==="void"||g==="with"||g==="enum";case 5:return g==="while"||g==="break"||g==="catch"||g==="throw"||g==="const"||g==="yield"||g==="class"||g==="super";case 6:return g==="return"||g==="typeof"||g==="delete"||g==="switch"||g==="export"||g==="import";case 7:return g==="default"||g==="finally"||g==="extends";case 8:return g==="function"||g==="continue"||g==="debugger";case 10:return g==="instanceof";default:return!1}}function s(g,m){return g==="null"||g==="true"||g==="false"||t(g,m)}function n(g,m){return g==="null"||g==="true"||g==="false"||i(g,m)}function o(g){return g==="eval"||g==="arguments"}function a(g){var m,A,C;if(g.length===0||(C=g.charCodeAt(0),!r.isIdentifierStartES5(C)))return!1;for(m=1,A=g.length;m=A||(v=g.charCodeAt(m),!(56320<=v&&v<=57343)))return!1;C=l(C,v)}if(!w(C))return!1;w=r.isIdentifierPartES6}return!0}function p(g,m){return a(g)&&!s(g,m)}function _(g,m){return d(g)&&!n(g,m)}TS.exports={isKeywordES5:t,isKeywordES6:i,isReservedWordES5:s,isReservedWordES6:n,isRestrictedWord:o,isIdentifierNameES5:a,isIdentifierNameES6:d,isIdentifierES5:p,isIdentifierES6:_}})()});var gc=T(sa=>{u();h();c();(function(){"use strict";sa.ast=wS(),sa.code=fc(),sa.keyword=DS()})()});var FS=T((nFe,BN)=>{BN.exports={name:"doctrine",description:"JSDoc parser",homepage:"https://github.com/eslint/doctrine",main:"lib/doctrine.js",version:"3.0.0",engines:{node:">=6.0.0"},directories:{lib:"./lib"},files:["lib"],maintainers:[{name:"Nicholas C. Zakas",email:"nicholas+npm@nczconsulting.com",web:"https://www.nczonline.net"},{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"https://github.com/Constellation"}],repository:"eslint/doctrine",devDependencies:{coveralls:"^3.0.1",dateformat:"^1.0.11",eslint:"^1.10.3","eslint-release":"^1.0.0",linefix:"^0.1.1",mocha:"^3.4.2","npm-license":"^0.3.1",nyc:"^10.3.2",semver:"^5.0.3",shelljs:"^0.5.3","shelljs-nodecli":"^0.1.1",should:"^5.0.1"},license:"Apache-2.0",scripts:{pretest:"npm run lint",test:"nyc mocha",coveralls:"nyc report --reporter=text-lcov | coveralls",lint:"eslint lib/","generate-release":"eslint-generate-release","generate-alpharelease":"eslint-generate-prerelease alpha","generate-betarelease":"eslint-generate-prerelease beta","generate-rcrelease":"eslint-generate-prerelease rc","publish-release":"eslint-publish-release"},dependencies:{esutils:"^2.0.2"}}});var BS=T((oFe,IS)=>{u();h();c();function RN(r,e){if(!r)throw new Error(e||"unknown assertion error")}IS.exports=RN});var _c=T(Bs=>{u();h();c();(function(){"use strict";var r;r=FS().version,Bs.VERSION=r;function e(i){this.name="DoctrineError",this.message=i}e.prototype=function(){var i=function(){};return i.prototype=Error.prototype,new i}(),e.prototype.constructor=e,Bs.DoctrineError=e;function t(i){throw new e(i)}Bs.throwError=t,Bs.assert=BS()})()});var RS=T(Rs=>{u();h();c();(function(){"use strict";var r,e,t,i,s,n,o,a,l,d,p,_;l=gc(),d=_c(),r={NullableLiteral:"NullableLiteral",AllLiteral:"AllLiteral",NullLiteral:"NullLiteral",UndefinedLiteral:"UndefinedLiteral",VoidLiteral:"VoidLiteral",UnionType:"UnionType",ArrayType:"ArrayType",RecordType:"RecordType",FieldType:"FieldType",FunctionType:"FunctionType",ParameterType:"ParameterType",RestType:"RestType",NonNullableType:"NonNullableType",OptionalType:"OptionalType",NullableType:"NullableType",NameExpression:"NameExpression",TypeApplication:"TypeApplication",StringLiteralType:"StringLiteralType",NumericLiteralType:"NumericLiteralType",BooleanLiteralType:"BooleanLiteralType"},e={ILLEGAL:0,DOT_LT:1,REST:2,LT:3,GT:4,LPAREN:5,RPAREN:6,LBRACE:7,RBRACE:8,LBRACK:9,RBRACK:10,COMMA:11,COLON:12,STAR:13,PIPE:14,QUESTION:15,BANG:16,EQUAL:17,NAME:18,STRING:19,NUMBER:20,EOF:21};function g(I){return"><(){}[],:*|?!=".indexOf(String.fromCharCode(I))===-1&&!l.code.isWhiteSpace(I)&&!l.code.isLineTerminator(I)}function m(I,k,N,P){this._previous=I,this._index=k,this._token=N,this._value=P}m.prototype.restore=function(){n=this._previous,s=this._index,o=this._token,a=this._value},m.save=function(){return new m(n,s,o,a)};function A(I,k){return _&&(I.range=[k[0]+p,k[1]+p]),I}function C(){var I=t.charAt(s);return s+=1,I}function v(I){var k,N,P,q=0;for(N=I==="u"?4:2,k=0;k=0&&s=i)return e.ILLEGAL;if(k=t.charCodeAt(s+1),k===60)break}a+=C()}return e.NAME}function F(){var I;for(n=s;s=i)return o=e.EOF,o;switch(I=t.charCodeAt(s),I){case 39:case 34:return o=w(),o;case 58:return C(),o=e.COLON,o;case 44:return C(),o=e.COMMA,o;case 40:return C(),o=e.LPAREN,o;case 41:return C(),o=e.RPAREN,o;case 91:return C(),o=e.LBRACK,o;case 93:return C(),o=e.RBRACK,o;case 123:return C(),o=e.LBRACE,o;case 125:return C(),o=e.RBRACE,o;case 46:if(s+1{u();h();c();(function(){"use strict";var r,e,t,i,s;i=gc(),r=RS(),e=_c();function n(E,O,M){return E.slice(O,M)}s=function(){var E=Object.prototype.hasOwnProperty;return function(M,W){return E.call(M,W)}}();function o(E){var O={},M;for(M in E)E.hasOwnProperty(M)&&(O[M]=E[M]);return O}function a(E){return E>=97&&E<=122||E>=65&&E<=90||E>=48&&E<=57}function l(E){return E==="param"||E==="argument"||E==="arg"}function d(E){return E==="return"||E==="returns"}function p(E){return E==="property"||E==="prop"}function _(E){return l(E)||p(E)||E==="alias"||E==="this"||E==="mixes"||E==="requires"}function g(E){return _(E)||E==="const"||E==="constant"}function m(E){return p(E)||l(E)}function A(E){return p(E)||l(E)}function C(E){return l(E)||d(E)||E==="define"||E==="enum"||E==="implements"||E==="this"||E==="type"||E==="typedef"||p(E)}function v(E){return C(E)||E==="throws"||E==="const"||E==="constant"||E==="namespace"||E==="member"||E==="var"||E==="module"||E==="constructor"||E==="class"||E==="extends"||E==="augments"||E==="public"||E==="private"||E==="protected"}var w="[ \\f\\t\\v\\u00a0\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]",D="("+w+"*(?:\\*"+w+`?)?)(.+|[\r -\u2028\u2029])`;function B(E){return E.replace(/^\/\*\*?/,"").replace(/\*\/$/,"").replace(new RegExp(D,"g"),"$2").replace(/\s*$/,"")}function F(E,O){for(var M=E.replace(/^\/\*\*?/,""),W=0,$=new RegExp(D,"g"),j;j=$.exec(M);)if(W+=j[1].length,j.index+j[0].length>O+W)return O+W+E.length-M.length;return E.replace(/\*\/$/,"").replace(/\s*$/,"").length}(function(E){var O,M,W,$,j,se,J,Q,L;function R(){var N=j.charCodeAt(M);return M+=1,i.code.isLineTerminator(N)&&!(N===13&&j.charCodeAt(M)===10)&&(W+=1),String.fromCharCode(N)}function H(){var N="";for(R();M<$&&a(j.charCodeAt(M));)N+=R();return N}function V(){var N,P,q=M;for(P=!1;q<$;){if(N=j.charCodeAt(q),i.code.isLineTerminator(N)&&!(N===13&&j.charCodeAt(q+1)===10))P=!0;else if(P){if(N===64)break;i.code.isWhiteSpace(N)||(P=!1)}q+=1}return q}function Z(N,P,q){for(var G,Te,pe,_e,Oe=!1;M=N)return null;if(j.charCodeAt(M)===91)if(P)Te=!0,G=R();else return null;if(G+=K(N),q)for(j.charCodeAt(M)===58&&(G==="module"||G==="external"||G==="event")&&(G+=R(),G+=K(N)),j.charCodeAt(M)===91&&j.charCodeAt(M+1)===93&&(G+=R(),G+=R());j.charCodeAt(M)===46||j.charCodeAt(M)===47||j.charCodeAt(M)===35||j.charCodeAt(M)===45||j.charCodeAt(M)===126;)G+=R(),G+=K(N);if(Te){if(ae(N),j.charCodeAt(M)===61){G+=R(),ae(N);for(var _e,Oe=1;M=N||j.charCodeAt(M)!==93)return null;G+=R()}return G}function it(){for(;M<$&&j.charCodeAt(M)!==64;)R();return M>=$?!1:(e.assert(j.charCodeAt(M)===64),!0)}function st(N){return j===se?N:F(se,N)}function ee(N,P){this._options=N,this._title=P.toLowerCase(),this._tag={title:P,description:null},this._options.lineNumbers&&(this._tag.lineNumber=W),this._first=M-P.length-1,this._last=0,this._extra={}}ee.prototype.addError=function(P){var q=Array.prototype.slice.call(arguments,1),G=P.replace(/%(\d)/g,function(Te,pe){return e.assert(pe1&&(this._tag.default=N.slice(1).join("=")),this._tag.name=N[0],this._tag.type&&this._tag.type.type!=="OptionalType"&&(this._tag.type={type:"OptionalType",expression:this._tag.type}));else{if(!_(this._title))return!0;if(l(this._title)&&this._tag.type&&this._tag.type.name)this._extra.name=this._tag.type,this._tag.name=this._tag.type.name,this._tag.type=null;else if(!this.addError("Missing or invalid tag name"))return!1}return!0},ee.prototype.parseDescription=function(){var P=n(j,M,this._last).trim();return P&&(/^-\s+/.test(P)&&(P=P.substring(2)),this._tag.description=P),!0},ee.prototype.parseCaption=function(){var P=n(j,M,this._last).trim(),q="
",Te=P.indexOf(q),pe=P.indexOf(G);return Te>=0&&pe>=0?(this._tag.caption=P.substring(Te+q.length,pe).trim(),this._tag.description=P.substring(pe+G.length).trim()):this._tag.description=P,!0},ee.prototype.parseKind=function(){var P,q;return q={class:!0,constant:!0,event:!0,external:!0,file:!0,function:!0,member:!0,mixin:!0,module:!0,namespace:!0,typedef:!0},P=n(j,M,this._last).trim(),this._tag.kind=P,!(!s(q,P)&&!this.addError("Invalid kind name '%0'",P))},ee.prototype.parseAccess=function(){var P;return P=n(j,M,this._last).trim(),this._tag.access=P,!(P!=="private"&&P!=="protected"&&P!=="public"&&!this.addError("Invalid access name '%0'",P))},ee.prototype.parseThis=function(){var P=n(j,M,this._last).trim();if(P&&P.charAt(0)==="{"){var q=this.parseType();return q&&this._tag.type.type==="NameExpression"||this._tag.type.type==="UnionType"?(this._tag.name=this._tag.type.name,!0):this.addError("Invalid name for this")}else return this.parseNamePath()},ee.prototype.parseVariation=function(){var P,q;return q=n(j,M,this._last).trim(),P=parseFloat(q,10),this._tag.variation=P,!(isNaN(P)&&!this.addError("Invalid variation '%0'",q))},ee.prototype.ensureEnd=function(){var N=n(j,M,this._last).trim();return!(N&&!this.addError("Unknown content '%0'",N))},ee.prototype.epilogue=function(){var P;return P=this._tag.description,!(A(this._title)&&!this._tag.type&&P&&P.charAt(0)==="["&&(this._tag.type=this._extra.name,this._tag.name||(this._tag.name=void 0),!Q&&!this.addError("Missing or invalid tag name")))},O={access:["parseAccess"],alias:["parseNamePath","ensureEnd"],augments:["parseType","parseNamePathOptional","ensureEnd"],constructor:["parseType","parseNamePathOptional","ensureEnd"],class:["parseType","parseNamePathOptional","ensureEnd"],extends:["parseType","parseNamePathOptional","ensureEnd"],example:["parseCaption"],deprecated:["parseDescription"],global:["ensureEnd"],inner:["ensureEnd"],instance:["ensureEnd"],kind:["parseKind"],mixes:["parseNamePath","ensureEnd"],mixin:["parseNamePathOptional","ensureEnd"],member:["parseType","parseNamePathOptional","ensureEnd"],method:["parseNamePathOptional","ensureEnd"],module:["parseType","parseNamePathOptional","ensureEnd"],func:["parseNamePathOptional","ensureEnd"],function:["parseNamePathOptional","ensureEnd"],var:["parseType","parseNamePathOptional","ensureEnd"],name:["parseNamePath","ensureEnd"],namespace:["parseType","parseNamePathOptional","ensureEnd"],private:["parseType","parseDescription"],protected:["parseType","parseDescription"],public:["parseType","parseDescription"],readonly:["ensureEnd"],requires:["parseNamePath","ensureEnd"],since:["parseDescription"],static:["ensureEnd"],summary:["parseDescription"],this:["parseThis","ensureEnd"],todo:["parseDescription"],typedef:["parseType","parseNamePathOptional"],variation:["parseVariation"],version:["parseDescription"]},ee.prototype.parse=function(){var P,q,G,Te;if(!this._title&&!this.addError("Missing or invalid title"))return null;for(this._last=V(this._title),this._options.range&&(this._tag.range=[this._first,j.slice(0,this._last).replace(/\s*$/,"").length].map(st)),s(O,this._title)?G=O[this._title]:G=["parseType","parseName","parseDescription","epilogue"],P=0,q=G.length;P{u();h();c();rC.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(r){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(r){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0}});var nC=T((WFe,sC)=>{u();h();c();sC.exports=function(r){var e=[].forEach,t=[].some,i=document.body,s,n=!0,o=" ";function a(w,D){var B=D.appendChild(d(w));if(w.children.length){var F=p(w.isCollapsed);w.children.forEach(function(E){a(E,F)}),B.appendChild(F)}}function l(w,D){var B=!1,F=p(B);if(D.forEach(function(E){a(E,F)}),s=w||s,s!==null)return s.firstChild&&s.removeChild(s.firstChild),D.length===0?s:s.appendChild(F)}function d(w){var D=document.createElement("li"),B=document.createElement("a");return r.listItemClass&&D.setAttribute("class",r.listItemClass),r.onClick&&(B.onclick=r.onClick),r.includeTitleTags&&B.setAttribute("title",w.textContent),r.includeHtml&&w.childNodes.length?e.call(w.childNodes,function(F){B.appendChild(F.cloneNode(!0))}):B.textContent=w.textContent,B.setAttribute("href",r.basePath+"#"+w.id),B.setAttribute("class",r.linkClass+o+"node-name--"+w.nodeName+o+r.extraLinkClasses),D.appendChild(B),D}function p(w){var D=r.orderedList?"ol":"ul",B=document.createElement(D),F=r.listClass+o+r.extraListClasses;return w&&(F=F+o+r.collapsibleClass,F=F+o+r.isCollapsedClass),B.setAttribute("class",F),B}function _(){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var w;w=document.querySelector(r.scrollContainer).scrollTop}else w=document.documentElement.scrollTop||i.scrollTop;var D=document.querySelector(r.positionFixedSelector);r.fixedSidebarOffset==="auto"&&(r.fixedSidebarOffset=s.offsetTop),w>r.fixedSidebarOffset?D.className.indexOf(r.positionFixedClass)===-1&&(D.className+=o+r.positionFixedClass):D.className=D.className.split(o+r.positionFixedClass).join("")}function g(w){var D=0;return w!==null&&(D=w.offsetTop,r.hasInnerContainers&&(D+=g(w.offsetParent))),D}function m(w){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var D;D=document.querySelector(r.scrollContainer).scrollTop}else D=document.documentElement.scrollTop||i.scrollTop;r.positionFixedSelector&&_();var B=w,F;if(n&&s!==null&&B.length>0){t.call(B,function(se,J){if(g(se)>D+r.headingsOffset+10){var Q=J===0?J:J-1;return F=B[Q],!0}else if(J===B.length-1)return F=B[B.length-1],!0});var E=s.querySelector("."+r.activeLinkClass),O=s.querySelector("."+r.linkClass+".node-name--"+F.nodeName+'[href="'+r.basePath+"#"+F.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1")+'"]');if(E===O)return;var M=s.querySelectorAll("."+r.linkClass);e.call(M,function(se){se.className=se.className.split(o+r.activeLinkClass).join("")});var W=s.querySelectorAll("."+r.listItemClass);e.call(W,function(se){se.className=se.className.split(o+r.activeListItemClass).join("")}),O&&O.className.indexOf(r.activeLinkClass)===-1&&(O.className+=o+r.activeLinkClass);var $=O&&O.parentNode;$&&$.className.indexOf(r.activeListItemClass)===-1&&($.className+=o+r.activeListItemClass);var j=s.querySelectorAll("."+r.listClass+"."+r.collapsibleClass);e.call(j,function(se){se.className.indexOf(r.isCollapsedClass)===-1&&(se.className+=o+r.isCollapsedClass)}),O&&O.nextSibling&&O.nextSibling.className.indexOf(r.isCollapsedClass)!==-1&&(O.nextSibling.className=O.nextSibling.className.split(o+r.isCollapsedClass).join("")),A(O&&O.parentNode.parentNode)}}function A(w){return w&&w.className.indexOf(r.collapsibleClass)!==-1&&w.className.indexOf(r.isCollapsedClass)!==-1?(w.className=w.className.split(o+r.isCollapsedClass).join(""),A(w.parentNode.parentNode)):w}function C(w){var D=w.target||w.srcElement;typeof D.className!="string"||D.className.indexOf(r.linkClass)===-1||(n=!1)}function v(){n=!0}return{enableTocAnimation:v,disableTocAnimation:C,render:l,updateToc:m}}});var aC=T((GFe,oC)=>{u();h();c();oC.exports=function(e){var t=[].reduce;function i(p){return p[p.length-1]}function s(p){return+p.nodeName.toUpperCase().replace("H","")}function n(p){try{return p instanceof window.HTMLElement||p instanceof window.parent.HTMLElement}catch{return p instanceof window.HTMLElement}}function o(p){if(!n(p))return p;if(e.ignoreHiddenElements&&(!p.offsetHeight||!p.offsetParent))return null;let _=p.getAttribute("data-heading-label")||(e.headingLabelCallback?String(e.headingLabelCallback(p.textContent)):p.textContent.trim());var g={id:p.id,children:[],nodeName:p.nodeName,headingLevel:s(p),textContent:_};return e.includeHtml&&(g.childNodes=p.childNodes),e.headingObjectCallback?e.headingObjectCallback(g,p):g}function a(p,_){for(var g=o(p),m=g.headingLevel,A=_,C=i(A),v=C?C.headingLevel:0,w=m-v;w>0&&(C=i(A),!(C&&m===C.headingLevel));)C&&C.children!==void 0&&(A=C.children),w--;return m>=e.collapseDepth&&(g.isCollapsed=!0),A.push(g),A}function l(p,_){var g=_;e.ignoreSelector&&(g=_.split(",").map(function(A){return A.trim()+":not("+e.ignoreSelector+")"}));try{return p.querySelectorAll(g)}catch{return console.warn("Headers not found with selector: "+g),null}}function d(p){return t.call(p,function(g,m){var A=o(m);return A&&a(A,g.nest),g},{nest:[]})}return{nestHeadingsArray:d,selectHeadings:l}}});var uC=T((KFe,lC)=>{u();h();c();lC.exports=function(e){var t=e.tocElement||document.querySelector(e.tocSelector);if(t&&t.scrollHeight>t.clientHeight){var i=t.querySelector("."+e.activeListItemClass);i&&(t.scrollTop=i.offsetTop-e.tocScrollOffset)}}});var cC=T(hC=>{u();h();c();hC.initSmoothScrolling=E9;function E9(r){var e=r.duration,t=r.offset,i=location.hash?o(location.href):location.href;s();function s(){document.body.addEventListener("click",l,!1);function l(d){!n(d.target)||d.target.className.indexOf("no-smooth-scroll")>-1||d.target.href.charAt(d.target.href.length-2)==="#"&&d.target.href.charAt(d.target.href.length-1)==="!"||d.target.className.indexOf(r.linkClass)===-1||T9(d.target.hash,{duration:e,offset:t,callback:function(){a(d.target.hash)}})}}function n(l){return l.tagName.toLowerCase()==="a"&&(l.hash.length>0||l.href.charAt(l.href.length-1)==="#")&&(o(l.href)===i||o(l.href)+"#"===i)}function o(l){return l.slice(0,l.lastIndexOf("#"))}function a(l){var d=document.getElementById(l.substring(1));d&&(/^(?:a|select|input|button|textarea)$/i.test(d.tagName)||(d.tabIndex=-1),d.focus())}}function T9(r,e){var t=window.pageYOffset,i={duration:e.duration,offset:e.offset||0,callback:e.callback,easing:e.easing||_},s=document.querySelector('[id="'+decodeURI(r).split("#").join("")+'"]')||document.querySelector('[id="'+r.split("#").join("")+'"]'),n=typeof r=="string"?i.offset+(r?s&&s.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):r,o=typeof i.duration=="function"?i.duration(n):i.duration,a,l;requestAnimationFrame(function(g){a=g,d(g)});function d(g){l=g-a,window.scrollTo(0,i.easing(l,t,n,o)),l{u();h();c();(function(r,e){typeof define=="function"&&define.amd?define([],e(r)):typeof dC=="object"?pC.exports=e(r):r.tocbot=e(r)})(typeof window<"u"?window:window||window,function(r){"use strict";var e=iC(),t={},i={},s=nC(),n=aC(),o=uC(),a,l,d=!!r&&!!r.document&&!!r.document.querySelector&&!!r.addEventListener;if(typeof window>"u"&&!d)return;var p,_=Object.prototype.hasOwnProperty;function g(){for(var v={},w=0;w=0||(s[t]=r[t]);return s}function Ac(r){var e=Ye(r),t=Ye(function(i){e.current&&e.current(i)});return e.current=r,t.current}function wC(r,e,t){var i=Ac(t),s=ne(function(){return r.toHsva(e)}),n=s[0],o=s[1],a=Ye({color:e,hsva:n});me(function(){if(!r.equal(e,a.current.color)){var d=r.toHsva(e);a.current={hsva:d,color:e},o(d)}},[e,r]),me(function(){var d;AC(n,a.current.hsva)||r.equal(d=r.fromHsva(n),a.current.color)||(a.current={hsva:n,color:d},i(d))},[n,r,i]);var l=ve(function(d){o(function(p){return Object.assign({},p,d)})},[]);return[n,l]}var pi,Ls,vc,gC,_C,Dc,ks,Fc,Ne,D9,F9,wc,I9,B9,R9,P9,yC,Ec,ha,xC,O9,ua,L9,bC,SC,CC,AC,vC,k9,M9,N9,z9,mC,EC,U9,H9,TC,W9,DC,j9,FC,q9,IC,BC=Et(()=>{u();h();c();Be();pi=function(r,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),r>t?t:r0:v.buttons>0)&&s.current?n(gC(s.current,v,a.current)):C(!1)},A=function(){return C(!1)};function C(v){var w=l.current,D=vc(s.current),B=v?D.addEventListener:D.removeEventListener;B(w?"touchmove":"mousemove",m),B(w?"touchend":"mouseup",A)}return[function(v){var w=v.nativeEvent,D=s.current;if(D&&(_C(w),!function(F,E){return E&&!Ls(F)}(w,l.current)&&D)){if(Ls(w)){l.current=!0;var B=w.changedTouches||[];B.length&&(a.current=B[0].identifier)}D.focus(),n(gC(D,w,a.current)),C(!0)}},function(v){var w=v.which||v.keyCode;w<37||w>40||(v.preventDefault(),o({left:w===39?.05:w===37?-.05:0,top:w===40?.05:w===38?-.05:0}))},C]},[o,n]),p=d[0],_=d[1],g=d[2];return me(function(){return g},[g]),S.createElement("div",Cr({},i,{onTouchStart:p,onMouseDown:p,className:"react-colorful__interactive",ref:s,onKeyDown:_,tabIndex:0,role:"slider"}))}),ks=function(r){return r.filter(Boolean).join(" ")},Fc=function(r){var e=r.color,t=r.left,i=r.top,s=i===void 0?.5:i,n=ks(["react-colorful__pointer",r.className]);return S.createElement("div",{className:n,style:{top:100*s+"%",left:100*t+"%"}},S.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},Ne=function(r,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*r)/t},D9={grad:.9,turn:360,rad:360/(2*Math.PI)},F9=function(r){return bC(wc(r))},wc=function(r){return r[0]==="#"&&(r=r.substring(1)),r.length<6?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:r.length===4?Ne(parseInt(r[3]+r[3],16)/255,2):1}:{r:parseInt(r.substring(0,2),16),g:parseInt(r.substring(2,4),16),b:parseInt(r.substring(4,6),16),a:r.length===8?Ne(parseInt(r.substring(6,8),16)/255,2):1}},I9=function(r,e){return e===void 0&&(e="deg"),Number(r)*(D9[e]||1)},B9=function(r){var e=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(r);return e?R9({h:I9(e[1],e[2]),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)}):{h:0,s:0,v:0,a:1}},R9=function(r){var e=r.s,t=r.l;return{h:r.h,s:(e*=(t<50?t:100-t)/100)>0?2*e/(t+e)*100:0,v:t+e,a:r.a}},P9=function(r){return L9(xC(r))},yC=function(r){var e=r.s,t=r.v,i=r.a,s=(200-e)*t/100;return{h:Ne(r.h),s:Ne(s>0&&s<200?e*t/100/(s<=100?s:200-s)*100:0),l:Ne(s/2),a:Ne(i,2)}},Ec=function(r){var e=yC(r);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},ha=function(r){var e=yC(r);return"hsla("+e.h+", "+e.s+"%, "+e.l+"%, "+e.a+")"},xC=function(r){var e=r.h,t=r.s,i=r.v,s=r.a;e=e/360*6,t/=100,i/=100;var n=Math.floor(e),o=i*(1-t),a=i*(1-(e-n)*t),l=i*(1-(1-e+n)*t),d=n%6;return{r:Ne(255*[i,a,o,o,l,i][d]),g:Ne(255*[l,i,i,a,o,o][d]),b:Ne(255*[o,o,l,i,i,a][d]),a:Ne(s,2)}},O9=function(r){var e=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(r);return e?bC({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):{h:0,s:0,v:0,a:1}},ua=function(r){var e=r.toString(16);return e.length<2?"0"+e:e},L9=function(r){var e=r.r,t=r.g,i=r.b,s=r.a,n=s<1?ua(Ne(255*s)):"";return"#"+ua(e)+ua(t)+ua(i)+n},bC=function(r){var e=r.r,t=r.g,i=r.b,s=r.a,n=Math.max(e,t,i),o=n-Math.min(e,t,i),a=o?n===e?(t-i)/o:n===t?2+(i-e)/o:4+(e-t)/o:0;return{h:Ne(60*(a<0?a+6:a)),s:Ne(n?o/n*100:0),v:Ne(n/255*100),a:s}},SC=S.memo(function(r){var e=r.hue,t=r.onChange,i=ks(["react-colorful__hue",r.className]);return S.createElement("div",{className:i},S.createElement(Dc,{onMove:function(s){t({h:360*s.left})},onKey:function(s){t({h:pi(e+360*s.left,0,360)})},"aria-label":"Hue","aria-valuenow":Ne(e),"aria-valuemax":"360","aria-valuemin":"0"},S.createElement(Fc,{className:"react-colorful__hue-pointer",left:e/360,color:Ec({h:e,s:100,v:100,a:1})})))}),CC=S.memo(function(r){var e=r.hsva,t=r.onChange,i={backgroundColor:Ec({h:e.h,s:100,v:100,a:1})};return S.createElement("div",{className:"react-colorful__saturation",style:i},S.createElement(Dc,{onMove:function(s){t({s:100*s.left,v:100-100*s.top})},onKey:function(s){t({s:pi(e.s+100*s.left,0,100),v:pi(e.v-100*s.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Ne(e.s)+"%, Brightness "+Ne(e.v)+"%"},S.createElement(Fc,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:Ec(e)})))}),AC=function(r,e){if(r===e)return!0;for(var t in r)if(r[t]!==e[t])return!1;return!0},vC=function(r,e){return r.replace(/\s/g,"")===e.replace(/\s/g,"")},k9=function(r,e){return r.toLowerCase()===e.toLowerCase()||AC(wc(r),wc(e))};N9=typeof window<"u"?fd:me,z9=function(){return M9||(typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0)},mC=new Map,EC=function(r){N9(function(){var e=r.current?r.current.ownerDocument:document;if(e!==void 0&&!mC.has(e)){var t=e.createElement("style");t.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,mC.set(e,t);var i=z9();i&&t.setAttribute("nonce",i),e.head.appendChild(t)}},[])},U9=function(r){var e=r.className,t=r.colorModel,i=r.color,s=i===void 0?t.defaultColor:i,n=r.onChange,o=Tc(r,["className","colorModel","color","onChange"]),a=Ye(null);EC(a);var l=wC(t,s,n),d=l[0],p=l[1],_=ks(["react-colorful",e]);return S.createElement("div",Cr({},o,{ref:a,className:_}),S.createElement(CC,{hsva:d,onChange:p}),S.createElement(SC,{hue:d.h,onChange:p,className:"react-colorful__last-control"}))},H9={defaultColor:"000",toHsva:F9,fromHsva:function(r){return P9({h:r.h,s:r.s,v:r.v,a:1})},equal:k9},TC=function(r){return S.createElement(U9,Cr({},r,{colorModel:H9}))},W9=function(r){var e=r.className,t=r.hsva,i=r.onChange,s={backgroundImage:"linear-gradient(90deg, "+ha(Object.assign({},t,{a:0}))+", "+ha(Object.assign({},t,{a:1}))+")"},n=ks(["react-colorful__alpha",e]),o=Ne(100*t.a);return S.createElement("div",{className:n},S.createElement("div",{className:"react-colorful__alpha-gradient",style:s}),S.createElement(Dc,{onMove:function(a){i({a:a.left})},onKey:function(a){i({a:pi(t.a+a.left)})},"aria-label":"Alpha","aria-valuetext":o+"%","aria-valuenow":o,"aria-valuemin":"0","aria-valuemax":"100"},S.createElement(Fc,{className:"react-colorful__alpha-pointer",left:t.a,color:ha(t)})))},DC=function(r){var e=r.className,t=r.colorModel,i=r.color,s=i===void 0?t.defaultColor:i,n=r.onChange,o=Tc(r,["className","colorModel","color","onChange"]),a=Ye(null);EC(a);var l=wC(t,s,n),d=l[0],p=l[1],_=ks(["react-colorful",e]);return S.createElement("div",Cr({},o,{ref:a,className:_}),S.createElement(CC,{hsva:d,onChange:p}),S.createElement(SC,{hue:d.h,onChange:p}),S.createElement(W9,{hsva:d,onChange:p,className:"react-colorful__last-control"}))},j9={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:B9,fromHsva:ha,equal:vC},FC=function(r){return S.createElement(DC,Cr({},r,{colorModel:j9}))},q9={defaultColor:"rgba(0, 0, 0, 1)",toHsva:O9,fromHsva:function(r){var e=xC(r);return"rgba("+e.r+", "+e.g+", "+e.b+", "+e.a+")"},equal:vC},IC=function(r){return S.createElement(DC,Cr({},r,{colorModel:q9}))}});var PC=T((dIe,RC)=>{"use strict";u();h();c();RC.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Ic=T((_Ie,LC)=>{u();h();c();var Ms=PC(),OC={};for(let r of Object.keys(Ms))OC[Ms[r]]=r;var Y={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};LC.exports=Y;for(let r of Object.keys(Y)){if(!("channels"in Y[r]))throw new Error("missing channels property: "+r);if(!("labels"in Y[r]))throw new Error("missing channel labels property: "+r);if(Y[r].labels.length!==Y[r].channels)throw new Error("channel and label counts mismatch: "+r);let{channels:e,labels:t}=Y[r];delete Y[r].channels,delete Y[r].labels,Object.defineProperty(Y[r],"channels",{value:e}),Object.defineProperty(Y[r],"labels",{value:t})}Y.rgb.hsl=function(r){let e=r[0]/255,t=r[1]/255,i=r[2]/255,s=Math.min(e,t,i),n=Math.max(e,t,i),o=n-s,a,l;n===s?a=0:e===n?a=(t-i)/o:t===n?a=2+(i-e)/o:i===n&&(a=4+(e-t)/o),a=Math.min(a*60,360),a<0&&(a+=360);let d=(s+n)/2;return n===s?l=0:d<=.5?l=o/(n+s):l=o/(2-n-s),[a,l*100,d*100]};Y.rgb.hsv=function(r){let e,t,i,s,n,o=r[0]/255,a=r[1]/255,l=r[2]/255,d=Math.max(o,a,l),p=d-Math.min(o,a,l),_=function(g){return(d-g)/6/p+1/2};return p===0?(s=0,n=0):(n=p/d,e=_(o),t=_(a),i=_(l),o===d?s=i-t:a===d?s=1/3+e-i:l===d&&(s=2/3+t-e),s<0?s+=1:s>1&&(s-=1)),[s*360,n*100,d*100]};Y.rgb.hwb=function(r){let e=r[0],t=r[1],i=r[2],s=Y.rgb.hsl(r)[0],n=1/255*Math.min(e,Math.min(t,i));return i=1-1/255*Math.max(e,Math.max(t,i)),[s,n*100,i*100]};Y.rgb.cmyk=function(r){let e=r[0]/255,t=r[1]/255,i=r[2]/255,s=Math.min(1-e,1-t,1-i),n=(1-e-s)/(1-s)||0,o=(1-t-s)/(1-s)||0,a=(1-i-s)/(1-s)||0;return[n*100,o*100,a*100,s*100]};function $9(r,e){return(r[0]-e[0])**2+(r[1]-e[1])**2+(r[2]-e[2])**2}Y.rgb.keyword=function(r){let e=OC[r];if(e)return e;let t=1/0,i;for(let s of Object.keys(Ms)){let n=Ms[s],o=$9(r,n);o.04045?((e+.055)/1.055)**2.4:e/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;let s=e*.4124+t*.3576+i*.1805,n=e*.2126+t*.7152+i*.0722,o=e*.0193+t*.1192+i*.9505;return[s*100,n*100,o*100]};Y.rgb.lab=function(r){let e=Y.rgb.xyz(r),t=e[0],i=e[1],s=e[2];t/=95.047,i/=100,s/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;let n=116*i-16,o=500*(t-i),a=200*(i-s);return[n,o,a]};Y.hsl.rgb=function(r){let e=r[0]/360,t=r[1]/100,i=r[2]/100,s,n,o;if(t===0)return o=i*255,[o,o,o];i<.5?s=i*(1+t):s=i+t-i*t;let a=2*i-s,l=[0,0,0];for(let d=0;d<3;d++)n=e+1/3*-(d-1),n<0&&n++,n>1&&n--,6*n<1?o=a+(s-a)*6*n:2*n<1?o=s:3*n<2?o=a+(s-a)*(2/3-n)*6:o=a,l[d]=o*255;return l};Y.hsl.hsv=function(r){let e=r[0],t=r[1]/100,i=r[2]/100,s=t,n=Math.max(i,.01);i*=2,t*=i<=1?i:2-i,s*=n<=1?n:2-n;let o=(i+t)/2,a=i===0?2*s/(n+s):2*t/(i+t);return[e,a*100,o*100]};Y.hsv.rgb=function(r){let e=r[0]/60,t=r[1]/100,i=r[2]/100,s=Math.floor(e)%6,n=e-Math.floor(e),o=255*i*(1-t),a=255*i*(1-t*n),l=255*i*(1-t*(1-n));switch(i*=255,s){case 0:return[i,l,o];case 1:return[a,i,o];case 2:return[o,i,l];case 3:return[o,a,i];case 4:return[l,o,i];case 5:return[i,o,a]}};Y.hsv.hsl=function(r){let e=r[0],t=r[1]/100,i=r[2]/100,s=Math.max(i,.01),n,o;o=(2-t)*i;let a=(2-t)*s;return n=t*s,n/=a<=1?a:2-a,n=n||0,o/=2,[e,n*100,o*100]};Y.hwb.rgb=function(r){let e=r[0]/360,t=r[1]/100,i=r[2]/100,s=t+i,n;s>1&&(t/=s,i/=s);let o=Math.floor(6*e),a=1-i;n=6*e-o,o&1&&(n=1-n);let l=t+n*(a-t),d,p,_;switch(o){default:case 6:case 0:d=a,p=l,_=t;break;case 1:d=l,p=a,_=t;break;case 2:d=t,p=a,_=l;break;case 3:d=t,p=l,_=a;break;case 4:d=l,p=t,_=a;break;case 5:d=a,p=t,_=l;break}return[d*255,p*255,_*255]};Y.cmyk.rgb=function(r){let e=r[0]/100,t=r[1]/100,i=r[2]/100,s=r[3]/100,n=1-Math.min(1,e*(1-s)+s),o=1-Math.min(1,t*(1-s)+s),a=1-Math.min(1,i*(1-s)+s);return[n*255,o*255,a*255]};Y.xyz.rgb=function(r){let e=r[0]/100,t=r[1]/100,i=r[2]/100,s,n,o;return s=e*3.2406+t*-1.5372+i*-.4986,n=e*-.9689+t*1.8758+i*.0415,o=e*.0557+t*-.204+i*1.057,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,n=n>.0031308?1.055*n**(1/2.4)-.055:n*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=Math.min(Math.max(0,s),1),n=Math.min(Math.max(0,n),1),o=Math.min(Math.max(0,o),1),[s*255,n*255,o*255]};Y.xyz.lab=function(r){let e=r[0],t=r[1],i=r[2];e/=95.047,t/=100,i/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*t-16,n=500*(e-t),o=200*(t-i);return[s,n,o]};Y.lab.xyz=function(r){let e=r[0],t=r[1],i=r[2],s,n,o;n=(e+16)/116,s=t/500+n,o=n-i/200;let a=n**3,l=s**3,d=o**3;return n=a>.008856?a:(n-16/116)/7.787,s=l>.008856?l:(s-16/116)/7.787,o=d>.008856?d:(o-16/116)/7.787,s*=95.047,n*=100,o*=108.883,[s,n,o]};Y.lab.lch=function(r){let e=r[0],t=r[1],i=r[2],s;s=Math.atan2(i,t)*360/2/Math.PI,s<0&&(s+=360);let o=Math.sqrt(t*t+i*i);return[e,o,s]};Y.lch.lab=function(r){let e=r[0],t=r[1],s=r[2]/360*2*Math.PI,n=t*Math.cos(s),o=t*Math.sin(s);return[e,n,o]};Y.rgb.ansi16=function(r,e=null){let[t,i,s]=r,n=e===null?Y.rgb.hsv(r)[2]:e;if(n=Math.round(n/50),n===0)return 30;let o=30+(Math.round(s/255)<<2|Math.round(i/255)<<1|Math.round(t/255));return n===2&&(o+=60),o};Y.hsv.ansi16=function(r){return Y.rgb.ansi16(Y.hsv.rgb(r),r[2])};Y.rgb.ansi256=function(r){let e=r[0],t=r[1],i=r[2];return e===t&&t===i?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(i/255*5)};Y.ansi16.rgb=function(r){let e=r%10;if(e===0||e===7)return r>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let t=(~~(r>50)+1)*.5,i=(e&1)*t*255,s=(e>>1&1)*t*255,n=(e>>2&1)*t*255;return[i,s,n]};Y.ansi256.rgb=function(r){if(r>=232){let n=(r-232)*10+8;return[n,n,n]}r-=16;let e,t=Math.floor(r/36)/5*255,i=Math.floor((e=r%36)/6)/5*255,s=e%6/5*255;return[t,i,s]};Y.rgb.hex=function(r){let t=(((Math.round(r[0])&255)<<16)+((Math.round(r[1])&255)<<8)+(Math.round(r[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t};Y.hex.rgb=function(r){let e=r.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let t=e[0];e[0].length===3&&(t=t.split("").map(a=>a+a).join(""));let i=parseInt(t,16),s=i>>16&255,n=i>>8&255,o=i&255;return[s,n,o]};Y.rgb.hcg=function(r){let e=r[0]/255,t=r[1]/255,i=r[2]/255,s=Math.max(Math.max(e,t),i),n=Math.min(Math.min(e,t),i),o=s-n,a,l;return o<1?a=n/(1-o):a=0,o<=0?l=0:s===e?l=(t-i)/o%6:s===t?l=2+(i-e)/o:l=4+(e-t)/o,l/=6,l%=1,[l*360,o*100,a*100]};Y.hsl.hcg=function(r){let e=r[1]/100,t=r[2]/100,i=t<.5?2*e*t:2*e*(1-t),s=0;return i<1&&(s=(t-.5*i)/(1-i)),[r[0],i*100,s*100]};Y.hsv.hcg=function(r){let e=r[1]/100,t=r[2]/100,i=e*t,s=0;return i<1&&(s=(t-i)/(1-i)),[r[0],i*100,s*100]};Y.hcg.rgb=function(r){let e=r[0]/360,t=r[1]/100,i=r[2]/100;if(t===0)return[i*255,i*255,i*255];let s=[0,0,0],n=e%1*6,o=n%1,a=1-o,l=0;switch(Math.floor(n)){case 0:s[0]=1,s[1]=o,s[2]=0;break;case 1:s[0]=a,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=o;break;case 3:s[0]=0,s[1]=a,s[2]=1;break;case 4:s[0]=o,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=a}return l=(1-t)*i,[(t*s[0]+l)*255,(t*s[1]+l)*255,(t*s[2]+l)*255]};Y.hcg.hsv=function(r){let e=r[1]/100,t=r[2]/100,i=e+t*(1-e),s=0;return i>0&&(s=e/i),[r[0],s*100,i*100]};Y.hcg.hsl=function(r){let e=r[1]/100,i=r[2]/100*(1-e)+.5*e,s=0;return i>0&&i<.5?s=e/(2*i):i>=.5&&i<1&&(s=e/(2*(1-i))),[r[0],s*100,i*100]};Y.hcg.hwb=function(r){let e=r[1]/100,t=r[2]/100,i=e+t*(1-e);return[r[0],(i-e)*100,(1-i)*100]};Y.hwb.hcg=function(r){let e=r[1]/100,i=1-r[2]/100,s=i-e,n=0;return s<1&&(n=(i-s)/(1-s)),[r[0],s*100,n*100]};Y.apple.rgb=function(r){return[r[0]/65535*255,r[1]/65535*255,r[2]/65535*255]};Y.rgb.apple=function(r){return[r[0]/255*65535,r[1]/255*65535,r[2]/255*65535]};Y.gray.rgb=function(r){return[r[0]/100*255,r[0]/100*255,r[0]/100*255]};Y.gray.hsl=function(r){return[0,0,r[0]]};Y.gray.hsv=Y.gray.hsl;Y.gray.hwb=function(r){return[0,100,r[0]]};Y.gray.cmyk=function(r){return[0,0,0,r[0]]};Y.gray.lab=function(r){return[r[0],0,0]};Y.gray.hex=function(r){let e=Math.round(r[0]/100*255)&255,i=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(i.length)+i};Y.rgb.gray=function(r){return[(r[0]+r[1]+r[2])/3/255*100]}});var MC=T((bIe,kC)=>{u();h();c();var ca=Ic();function G9(){let r={},e=Object.keys(ca);for(let t=e.length,i=0;i{u();h();c();var Bc=Ic(),K9=MC(),fi={},Q9=Object.keys(Bc);function Z9(r){let e=function(...t){let i=t[0];return i==null?i:(i.length>1&&(t=i),r(t))};return"conversion"in r&&(e.conversion=r.conversion),e}function J9(r){let e=function(...t){let i=t[0];if(i==null)return i;i.length>1&&(t=i);let s=r(t);if(typeof s=="object")for(let n=s.length,o=0;o{fi[r]={},Object.defineProperty(fi[r],"channels",{value:Bc[r].channels}),Object.defineProperty(fi[r],"labels",{value:Bc[r].labels});let e=K9(r);Object.keys(e).forEach(i=>{let s=e[i];fi[r][i]=J9(s),fi[r][i].raw=Z9(s)})});NC.exports=fi});var HC=T((DIe,UC)=>{u();h();c();var eU=dt(),tU=function(){return eU.Date.now()};UC.exports=tU});var jC=T((RIe,WC)=>{u();h();c();var rU=/\s/;function iU(r){for(var e=r.length;e--&&rU.test(r.charAt(e)););return e}WC.exports=iU});var $C=T((kIe,qC)=>{u();h();c();var sU=jC(),nU=/^\s+/;function oU(r){return r&&r.slice(0,sU(r)+1).replace(nU,"")}qC.exports=oU});var XC=T((UIe,YC)=>{u();h();c();var aU=$C(),GC=_t(),lU=fs(),VC=0/0,uU=/^[-+]0x[0-9a-f]+$/i,hU=/^0b[01]+$/i,cU=/^0o[0-7]+$/i,dU=parseInt;function pU(r){if(typeof r=="number")return r;if(lU(r))return VC;if(GC(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=GC(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=aU(r);var t=hU.test(r);return t||cU.test(r)?dU(r.slice(2),t?2:8):uU.test(r)?VC:+r}YC.exports=pU});var ZC=T((qIe,QC)=>{u();h();c();var fU=_t(),Rc=HC(),KC=XC(),gU="Expected a function",_U=Math.max,mU=Math.min;function yU(r,e,t){var i,s,n,o,a,l,d=0,p=!1,_=!1,g=!0;if(typeof r!="function")throw new TypeError(gU);e=KC(e)||0,fU(t)&&(p=!!t.leading,_="maxWait"in t,n=_?_U(KC(t.maxWait)||0,e):n,g="trailing"in t?!!t.trailing:g);function m(O){var M=i,W=s;return i=s=void 0,d=O,o=r.apply(W,M),o}function A(O){return d=O,a=setTimeout(w,e),p?m(O):o}function C(O){var M=O-l,W=O-d,$=e-M;return _?mU($,n-W):$}function v(O){var M=O-l,W=O-d;return l===void 0||M>=e||M<0||_&&W>=n}function w(){var O=Rc();if(v(O))return D(O);a=setTimeout(w,C(O))}function D(O){return a=void 0,g&&i?m(O):(i=s=void 0,o)}function B(){a!==void 0&&clearTimeout(a),d=0,i=l=s=a=void 0}function F(){return a===void 0?o:D(Rc())}function E(){var O=Rc(),M=v(O);if(i=arguments,s=this,l=O,M){if(a===void 0)return A(l);if(_)return clearTimeout(a),a=setTimeout(w,e),m(l)}return a===void 0&&(a=setTimeout(w,e)),o}return E.cancel=B,E.flush=F,E}QC.exports=yU});var e1=T((YIe,JC)=>{u();h();c();var xU=ZC(),bU=_t(),SU="Expected a function";function CU(r,e,t){var i=!0,s=!0;if(typeof r!="function")throw new TypeError(SU);return bU(t)&&(i="leading"in t?!!t.leading:i,s="trailing"in t?!!t.trailing:s),xU(r,e,{leading:i,maxWait:e,trailing:s})}JC.exports=CU});var o1={};Nt(o1,{ColorControl:()=>n1,default:()=>UU});var ct,i1,AU,vU,wU,EU,TU,DU,FU,t1,IU,BU,s1,da,RU,PU,OU,Pc,LU,kU,pa,r1,gi,MU,NU,fa,zU,n1,UU,a1=Et(()=>{u();h();c();Eu();Be();BC();ct=Ce(zC(),1),i1=Ce(e1(),1);Du();bt();AU=U.div({position:"relative",maxWidth:250}),vU=U(wr)({position:"absolute",zIndex:1,top:4,left:4}),wU=U.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),EU=U(Va)(({theme:r})=>({fontFamily:r.typography.fonts.base})),TU=U.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),DU=U.div(({theme:r,active:e})=>({width:16,height:16,boxShadow:e?`${r.appBorderColor} 0 0 0 1px inset, ${r.textMutedColor}50 0 0 0 4px`:`${r.appBorderColor} 0 0 0 1px inset`,borderRadius:r.appBorderRadius})),FU=`url('data:image/svg+xml;charset=utf-8,')`,t1=({value:r,active:e,onClick:t,style:i,...s})=>{let n=`linear-gradient(${r}, ${r}), ${FU}, linear-gradient(#fff, #fff)`;return S.createElement(DU,{...s,active:e,onClick:t,style:{...i,backgroundImage:n}})},IU=U(Qe.Input)(({theme:r})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:r.typography.fonts.base})),BU=U(De)(({theme:r})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:r.input.color})),s1=(r=>(r.RGB="rgb",r.HSL="hsl",r.HEX="hex",r))(s1||{}),da=Object.values(s1),RU=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,PU=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,OU=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Pc=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,LU=/^\s*#?([0-9a-f]{3})\s*$/i,kU={hex:TC,rgb:IC,hsl:FC},pa={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},r1=r=>{let e=r?.match(RU);if(!e)return[0,0,0,1];let[,t,i,s,n=1]=e;return[t,i,s,n].map(Number)},gi=r=>{if(!r)return;let e=!0;if(PU.test(r)){let[o,a,l,d]=r1(r),[p,_,g]=ct.default.rgb.hsl([o,a,l])||[0,0,0];return{valid:e,value:r,keyword:ct.default.rgb.keyword([o,a,l]),colorSpace:"rgb",rgb:r,hsl:`hsla(${p}, ${_}%, ${g}%, ${d})`,hex:`#${ct.default.rgb.hex([o,a,l]).toLowerCase()}`}}if(OU.test(r)){let[o,a,l,d]=r1(r),[p,_,g]=ct.default.hsl.rgb([o,a,l])||[0,0,0];return{valid:e,value:r,keyword:ct.default.hsl.keyword([o,a,l]),colorSpace:"hsl",rgb:`rgba(${p}, ${_}, ${g}, ${d})`,hsl:r,hex:`#${ct.default.hsl.hex([o,a,l]).toLowerCase()}`}}let t=r.replace("#",""),i=ct.default.keyword.rgb(t)||ct.default.hex.rgb(t),s=ct.default.rgb.hsl(i),n=r;if(/[^#a-f0-9]/i.test(r)?n=t:Pc.test(r)&&(n=`#${t}`),n.startsWith("#"))e=Pc.test(n);else try{ct.default.keyword.hex(n)}catch{e=!1}return{valid:e,value:n,keyword:ct.default.rgb.keyword(i),colorSpace:"hex",rgb:`rgba(${i[0]}, ${i[1]}, ${i[2]}, 1)`,hsl:`hsla(${s[0]}, ${s[1]}%, ${s[2]}%, 1)`,hex:n}},MU=(r,e,t)=>{if(!r||!e?.valid)return pa[t];if(t!=="hex")return e?.[t]||pa[t];if(!e.hex.startsWith("#"))try{return`#${ct.default.keyword.hex(e.hex)}`}catch{return pa.hex}let i=e.hex.match(LU);if(!i)return Pc.test(e.hex)?e.hex:pa.hex;let[s,n,o]=i[1].split("");return`#${s}${s}${n}${n}${o}${o}`},NU=(r,e)=>{let[t,i]=ne(r||""),[s,n]=ne(()=>gi(t)),[o,a]=ne(s?.colorSpace||"hex");me(()=>{let _=r||"",g=gi(_);i(_),n(g),a(g?.colorSpace||"hex")},[r]);let l=Ht(()=>MU(t,s,o).toLowerCase(),[t,s,o]),d=ve(_=>{let g=gi(_),m=g?.value||_||"";i(m),m===""&&(n(void 0),e(void 0)),g&&(n(g),a(g.colorSpace),e(g.value))},[e]),p=ve(()=>{let _=da.indexOf(o)+1;_>=da.length&&(_=0),a(da[_]);let g=s?.[da[_]]||"";i(g),e(g)},[s,o,e]);return{value:t,realValue:l,updateValue:d,color:s,colorSpace:o,cycleColorSpace:p}},fa=r=>r.replace(/\s*/,"").toLowerCase(),zU=(r,e,t)=>{let[i,s]=ne(e?.valid?[e]:[]);me(()=>{e===void 0&&s([])},[e]);let n=Ht(()=>(r||[]).map(a=>typeof a=="string"?gi(a):a.title?{...gi(a.color),keyword:a.title}:gi(a.color)).concat(i).filter(Boolean).slice(-27),[r,i]),o=ve(a=>{a?.valid&&(n.some(l=>fa(l[t])===fa(a[t]))||s(l=>l.concat(a)))},[t,n]);return{presets:n,addPreset:o}},n1=({name:r,value:e,onChange:t,onFocus:i,onBlur:s,presetColors:n,startOpen:o=!1})=>{let a=ve((0,i1.default)(t,200),[t]),{value:l,realValue:d,updateValue:p,color:_,colorSpace:g,cycleColorSpace:m}=NU(e,a),{presets:A,addPreset:C}=zU(n,_,g),v=kU[g];return S.createElement(AU,null,S.createElement(vU,{startOpen:o,closeOnOutsideClick:!0,onVisibleChange:()=>C(_),tooltip:S.createElement(wU,null,S.createElement(v,{color:d==="transparent"?"#000000":d,onChange:p,onFocus:i,onBlur:s}),A.length>0&&S.createElement(TU,null,A.map((w,D)=>S.createElement(wr,{key:`${w.value}-${D}`,hasChrome:!1,tooltip:S.createElement(EU,{note:w.keyword||w.value})},S.createElement(t1,{value:w[g],active:_&&fa(w[g])===fa(_[g]),onClick:()=>p(w.value)})))))},S.createElement(t1,{value:d,style:{margin:4}})),S.createElement(IU,{id:tt(r),value:l,onChange:w=>p(w.target.value),onFocus:w=>w.target.select(),placeholder:"Choose color..."}),l?S.createElement(BU,{icon:"markup",onClick:m}):null)},UU=n1});u();h();c();u();h();c();u();h();c();var xW=__STORYBOOK_API__,{ActiveTabs:bW,Consumer:SW,ManagerContext:CW,Provider:AW,addons:yt,combineParameters:vW,controlOrMetaKey:wW,controlOrMetaSymbol:EW,eventMatchesShortcut:TW,eventToShortcut:DW,isMacLike:FW,isShortcutTaken:IW,keyToSymbol:BW,merge:RW,mockChannel:PW,optionOrAltSymbol:OW,shortcutMatchesShortcut:LW,shortcutToHumanString:kW,types:zt,useAddonState:MW,useArgTypes:NW,useArgs:zW,useChannel:UW,useGlobalTypes:HW,useGlobals:Ve,useParameter:WW,useSharedState:jW,useStoryPrepared:qW,useStorybookApi:Ws,useStorybookState:$W}=__STORYBOOK_API__;u();h();c();u();h();c();u();h();c();u();h();c();var fe=(()=>{let r;return typeof window<"u"?r=window:typeof globalThis<"u"?r=globalThis:typeof window<"u"?r=window:typeof self<"u"?r=self:r={},r})();u();h();c();var ej=__STORYBOOK_CLIENT_LOGGER__,{deprecate:js,logger:nt,once:qs,pretty:tj}=__STORYBOOK_CLIENT_LOGGER__;function vr(){return vr=Object.assign?Object.assign.bind():function(r){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $s(r,e,t){return oA()?$s=Reflect.construct.bind():$s=function(i,s,n){var o=[null];o.push.apply(o,s);var a=Function.bind.apply(i,o),l=new a;return n&&mi(l,n.prototype),l},$s.apply(null,arguments)}function Pa(r){var e=typeof Map=="function"?new Map:void 0;return Pa=function(t){if(t===null||!nA(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return $s(t,arguments,Ra(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),mi(i,t)},Pa(r)}var aA={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }). - -`,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }). - -`,3:`Passed an incorrect argument to a color function, please pass a string representation of a color. - -`,4:`Couldn't generate valid rgb string from %s, it returned %s. - -`,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation. - -`,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }). - -`,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }). - -`,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object. - -`,9:`Please provide a number of steps to the modularScale helper. - -`,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio. - -`,11:`Invalid value passed as base to modularScale, expected number or em string but got "%s" - -`,12:`Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead. - -`,13:`Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead. - -`,14:`Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12. - -`,15:`Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12. - -`,16:`You must provide a template to this method. - -`,17:`You passed an unsupported selector state to this method. - -`,18:`minScreen and maxScreen must be provided as stringified numbers with the same units. - -`,19:`fromSize and toSize must be provided as stringified numbers with the same units. - -`,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize. - -`,21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:`fontFace expects a name of a font-family. - -`,24:`fontFace expects either the path to the font file(s) or a name of a local copy. - -`,25:`fontFace expects localFonts to be an array. - -`,26:`fontFace expects fileFormats to be an array. - -`,27:`radialGradient requries at least 2 color-stops to properly render. - -`,28:`Please supply a filename to retinaImage() as the first argument. - -`,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. - -`,30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation - -`,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s']) -To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s') - -`,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation - -`,34:`borderRadius expects a radius value as a string or number as the second argument. - -`,35:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. - -`,36:`Property must be a string value. - -`,37:`Syntax Error at %s. - -`,38:`Formula contains a function that needs parentheses at %s. - -`,39:`Formula is missing closing parenthesis at %s. - -`,40:`Formula has too many closing parentheses at %s. - -`,41:`All values in a formula must have the same unit or be unitless. - -`,42:`Please provide a number of steps to the modularScale helper. - -`,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio. - -`,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s. - -`,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object. - -`,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object. - -`,47:`minScreen and maxScreen must be provided as stringified numbers with the same units. - -`,48:`fromSize and toSize must be provided as stringified numbers with the same units. - -`,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize. - -`,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize. - -`,51:`Expects the first argument object to have the properties prop, fromSize, and toSize. - -`,52:`fontFace expects either the path to the font file(s) or a name of a local copy. - -`,53:`fontFace expects localFonts to be an array. - -`,54:`fontFace expects fileFormats to be an array. - -`,55:`fontFace expects a name of a font-family. - -`,56:`linearGradient requries at least 2 color-stops to properly render. - -`,57:`radialGradient requries at least 2 color-stops to properly render. - -`,58:`Please supply a filename to retinaImage() as the first argument. - -`,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. - -`,60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:`Property must be a string value. - -`,62:`borderRadius expects a radius value as a string or number as the second argument. - -`,63:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. - -`,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation. - -`,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s'). - -`,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation. - -`,67:`You must provide a template to this method. - -`,68:`You passed an unsupported selector state to this method. - -`,69:`Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead. - -`,70:`Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead. - -`,71:`Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12. - -`,72:`Passed invalid base value %s to %s(), please pass a value like "12px" or 12. - -`,73:`Please provide a valid CSS variable. - -`,74:`CSS variable not found and no default was provided. - -`,75:`important requires a valid style object, got a %s instead. - -`,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen. - -`,77:`remToPx expects a value in "rem" but you provided it in "%s". - -`,78:`base must be set in "px" or "%" but you set it in "%s". -`};function lA(){for(var r=arguments.length,e=new Array(r),t=0;t1?s-1:0),o=1;o=0&&s<1?(a=n,l=o):s>=1&&s<2?(a=o,l=n):s>=2&&s<3?(l=n,d=o):s>=3&&s<4?(l=o,d=n):s>=4&&s<5?(a=o,d=n):s>=5&&s<6&&(a=n,d=o);var p=t-n/2,_=a+p,g=l+p,m=d+p;return i(_,g,m)}var Zc={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function hA(r){if(typeof r!="string")return r;var e=r.toLowerCase();return Zc[e]?"#"+Zc[e]:r}var cA=/^#[a-fA-F0-9]{6}$/,dA=/^#[a-fA-F0-9]{8}$/,pA=/^#[a-fA-F0-9]{3}$/,fA=/^#[a-fA-F0-9]{4}$/,Da=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,gA=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,_A=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,mA=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Ys(r){if(typeof r!="string")throw new xt(3);var e=hA(r);if(e.match(cA))return{red:parseInt(""+e[1]+e[2],16),green:parseInt(""+e[3]+e[4],16),blue:parseInt(""+e[5]+e[6],16)};if(e.match(dA)){var t=parseFloat((parseInt(""+e[7]+e[8],16)/255).toFixed(2));return{red:parseInt(""+e[1]+e[2],16),green:parseInt(""+e[3]+e[4],16),blue:parseInt(""+e[5]+e[6],16),alpha:t}}if(e.match(pA))return{red:parseInt(""+e[1]+e[1],16),green:parseInt(""+e[2]+e[2],16),blue:parseInt(""+e[3]+e[3],16)};if(e.match(fA)){var i=parseFloat((parseInt(""+e[4]+e[4],16)/255).toFixed(2));return{red:parseInt(""+e[1]+e[1],16),green:parseInt(""+e[2]+e[2],16),blue:parseInt(""+e[3]+e[3],16),alpha:i}}var s=Da.exec(e);if(s)return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)};var n=gA.exec(e.substring(0,50));if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[3],10),alpha:parseFloat(""+n[4])>1?parseFloat(""+n[4])/100:parseFloat(""+n[4])};var o=_A.exec(e);if(o){var a=parseInt(""+o[1],10),l=parseInt(""+o[2],10)/100,d=parseInt(""+o[3],10)/100,p="rgb("+yi(a,l,d)+")",_=Da.exec(p);if(!_)throw new xt(4,e,p);return{red:parseInt(""+_[1],10),green:parseInt(""+_[2],10),blue:parseInt(""+_[3],10)}}var g=mA.exec(e.substring(0,50));if(g){var m=parseInt(""+g[1],10),A=parseInt(""+g[2],10)/100,C=parseInt(""+g[3],10)/100,v="rgb("+yi(m,A,C)+")",w=Da.exec(v);if(!w)throw new xt(4,e,v);return{red:parseInt(""+w[1],10),green:parseInt(""+w[2],10),blue:parseInt(""+w[3],10),alpha:parseFloat(""+g[4])>1?parseFloat(""+g[4])/100:parseFloat(""+g[4])}}throw new xt(5)}function yA(r){var e=r.red/255,t=r.green/255,i=r.blue/255,s=Math.max(e,t,i),n=Math.min(e,t,i),o=(s+n)/2;if(s===n)return r.alpha!==void 0?{hue:0,saturation:0,lightness:o,alpha:r.alpha}:{hue:0,saturation:0,lightness:o};var a,l=s-n,d=o>.5?l/(2-s-n):l/(s+n);switch(s){case e:a=(t-i)/l+(t=1?Gs(r,e,t):"rgba("+yi(r,e,t)+","+i+")";if(typeof r=="object"&&e===void 0&&t===void 0&&i===void 0)return r.alpha>=1?Gs(r.hue,r.saturation,r.lightness):"rgba("+yi(r.hue,r.saturation,r.lightness)+","+r.alpha+")";throw new xt(2)}function La(r,e,t){if(typeof r=="number"&&typeof e=="number"&&typeof t=="number")return Oa("#"+or(r)+or(e)+or(t));if(typeof r=="object"&&e===void 0&&t===void 0)return Oa("#"+or(r.red)+or(r.green)+or(r.blue));throw new xt(6)}function xi(r,e,t,i){if(typeof r=="string"&&typeof e=="number"){var s=Ys(r);return"rgba("+s.red+","+s.green+","+s.blue+","+e+")"}else{if(typeof r=="number"&&typeof e=="number"&&typeof t=="number"&&typeof i=="number")return i>=1?La(r,e,t):"rgba("+r+","+e+","+t+","+i+")";if(typeof r=="object"&&e===void 0&&t===void 0&&i===void 0)return r.alpha>=1?La(r.red,r.green,r.blue):"rgba("+r.red+","+r.green+","+r.blue+","+r.alpha+")"}throw new xt(7)}var AA=function(r){return typeof r.red=="number"&&typeof r.green=="number"&&typeof r.blue=="number"&&(typeof r.alpha!="number"||typeof r.alpha>"u")},vA=function(r){return typeof r.red=="number"&&typeof r.green=="number"&&typeof r.blue=="number"&&typeof r.alpha=="number"},wA=function(r){return typeof r.hue=="number"&&typeof r.saturation=="number"&&typeof r.lightness=="number"&&(typeof r.alpha!="number"||typeof r.alpha>"u")},EA=function(r){return typeof r.hue=="number"&&typeof r.saturation=="number"&&typeof r.lightness=="number"&&typeof r.alpha=="number"};function rd(r){if(typeof r!="object")throw new xt(8);if(vA(r))return xi(r);if(AA(r))return La(r);if(EA(r))return CA(r);if(wA(r))return SA(r);throw new xt(8)}function id(r,e,t){return function(){var i=t.concat(Array.prototype.slice.call(arguments));return i.length>=e?r.apply(this,i):id(r,e,i)}}function Xs(r){return id(r,r.length,[])}function Ks(r,e,t){return Math.max(r,Math.min(e,t))}function TA(r,e){if(e==="transparent")return e;var t=td(e);return rd(vr({},t,{lightness:Ks(0,1,t.lightness-parseFloat(r))}))}var DA=Xs(TA),FA=DA;function IA(r,e){if(e==="transparent")return e;var t=td(e);return rd(vr({},t,{lightness:Ks(0,1,t.lightness+parseFloat(r))}))}var BA=Xs(IA),RA=BA;function PA(r,e){if(e==="transparent")return e;var t=Ys(e),i=typeof t.alpha=="number"?t.alpha:1,s=vr({},t,{alpha:Ks(0,1,(i*100+parseFloat(r)*100)/100)});return xi(s)}var lj=Xs(PA);function OA(r,e){if(e==="transparent")return e;var t=Ys(e),i=typeof t.alpha=="number"?t.alpha:1,s=vr({},t,{alpha:Ks(0,1,+(i*100-parseFloat(r)*100).toFixed(2)/100)});return xi(s)}var LA=Xs(OA),kA=LA,Ae={primary:"#FF4785",secondary:"#029CFD",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F7FAFC",light:"#EEF3F6",mediumlight:"#ECF4F9",medium:"#D9E8F2",mediumdark:"#73828C",dark:"#5C6870",darker:"#454E54",darkest:"#2E3438",border:"hsla(203, 50%, 30%, 0.15)",positive:"#66BF3C",negative:"#FF4400",warning:"#E69D00",critical:"#FFFFFF",defaultText:"#2E3438",inverseText:"#FFFFFF",positiveText:"#448028",negativeText:"#D43900",warningText:"#A15C20"},Jc={app:"#F6F9FC",bar:Ae.lightest,content:Ae.lightest,preview:Ae.lightest,gridCellSize:10,hoverable:kA(.9,Ae.secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},Vs={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},MA={base:"light",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:Jc.app,appContentBg:Ae.lightest,appPreviewBg:Ae.lightest,appBorderColor:Ae.border,appBorderRadius:4,fontBase:Vs.fonts.base,fontCode:Vs.fonts.mono,textColor:Ae.darkest,textInverseColor:Ae.lightest,textMutedColor:Ae.dark,barTextColor:Ae.mediumdark,barHoverColor:Ae.secondary,barSelectedColor:Ae.secondary,barBg:Ae.lightest,buttonBg:Jc.app,buttonBorder:Ae.medium,booleanBg:Ae.mediumlight,booleanSelectedBg:Ae.lightest,inputBg:Ae.lightest,inputBorder:Ae.border,inputTextColor:Ae.darkest,inputBorderRadius:4},ed=MA,NA={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:"#222425",appContentBg:"#1B1C1D",appPreviewBg:Ae.lightest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:Vs.fonts.base,fontCode:Vs.fonts.mono,textColor:"#C9CDCF",textInverseColor:"#222425",textMutedColor:"#798186",barTextColor:"#798186",barHoverColor:Ae.secondary,barSelectedColor:Ae.secondary,barBg:"#292C2E",buttonBg:"#222425",buttonBorder:"rgba(255,255,255,.1)",booleanBg:"#222425",booleanSelectedBg:"#2E3438",inputBg:"#1B1C1D",inputBorder:"rgba(255,255,255,.1)",inputTextColor:Ae.lightest,inputBorderRadius:4},zA=NA,{window:Ia}=fe;var UA=r=>typeof r!="string"?(nt.warn(`Color passed to theme object should be a string. Instead ${r}(${typeof r}) was passed.`),!1):!0,HA=r=>!/(gradient|var|calc)/.test(r),WA=(r,e)=>r==="darken"?xi(`${FA(1,e)}`,.95):r==="lighten"?xi(`${RA(1,e)}`,.95):e,sd=r=>e=>{if(!UA(e)||!HA(e))return e;try{return WA(r,e)}catch{return e}},uj=sd("lighten"),hj=sd("darken"),jA=()=>!Ia||!Ia.matchMedia?"light":Ia.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",Ar={light:ed,dark:zA,normal:ed},Ba=jA(),ka=(r={base:Ba},e)=>{let t={...Ar[Ba],...Ar[r.base]||{},...r,base:Ar[r.base]?r.base:Ba};return{...e,...t,barSelectedColor:r.barSelectedColor||t.colorSecondary}};var nd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdQAAABiCAYAAADpwyKwAAAMZGlDQ1BJQ0MgUHJvZmlsZQAASImVlwdYU8kWgOeWVBJaIAJSQm+iSA0gJYQWQUCqICohCSSUGBOCiB1dVsG1iyiWFV0VcdHVFZC1IOJiWxR7XyyoKOtiwYbKm5CArr7yvfm+ufPnzJkz55zM3DsDgE4HXybLRXUByJPmy+PCg1kTUlJZpAeACAhAF/gCjC9QyDixsVEAlsH2n+X1FYCo2osuKlvf9v/Xoi8UKQQAIGmQM4QKQR7kJgDwYoFMng8AMQTKrafny1Qshmwghw5CnqXiLDUvV3GGmrcN6CTEcSE3AECm8fnyLAC0W6CcVSDIgna0H0B2lQolUgB0DCAHCMR8IeQEyCPy8qaqeB5kB6gvg7wTMjvjC5tZ/7CfMWSfz88aYnVcA4UcIlHIcvkz/s/U/O+Sl6scnMMOVppYHhGnih/m8FrO1EgV0yB3SzOiY1S5hvxWIlTnHQCUKlZGJKr1UVOBggvzB5iQXYX8kEjIppDDpLnRURp5RqYkjAcZrha0UJLPS9CMXSRShMZrbG6QT42LGeRMOZejGVvLlw/Mq9JvUeYkcjT2r4lFvEH7r4rECcmQqQBg1AJJUjRkbcgGipz4SLUOZlUk5kYP6siVcSr/bSCzRdLwYLV9LC1THhan0ZflKQbjxUrEEl60hivyxQkR6vxguwT8Af+NINeJpJzEQTsixYSowViEopBQdexYm0iaqIkXuyPLD47TjO2R5cZq9HGyKDdcJbeCbKIoiNeMxcfkw8Wpto9HyfJjE9R+4unZ/LGxan/wAhAFuCAEsIAS1gwwFWQDSVt3fTf8pe4JA3wgB1lABFw0ksERyQM9UviMB0XgL0gioBgaFzzQKwIFUP5xSKp+uoDMgd6CgRE54CHkPBAJcuFv5cAo6dBsSeABlEi+mV0Afc2FVdX3rYwDJVEaiXLQLktnUJMYSgwhRhDDiI64CR6A++FR8BkEqxvOxn0Gvf2sT3hIaCfcI1wmdBCuT5EUy7/yZRzogPbDNBFnfBkxbgdteuLBuD+0Di3jTNwEuOAecB4OHghn9oRSrsZvVeysfxPnUARf5FyjR3GloJRhlCCKw9cjtZ20PYesqDL6ZX7UvmYMZZU71PP1/Nwv8iyEbeTXmtgibD/Wih3DTmGHsHrAwo5iDdhZ7LCKh9bQg4E1NDhb3IA/OdCO5Jv5+Jo5VZlUuNa4drl+0PSBfFFhvmqDcafKZsglWeJ8Fgd+BUQsnlQwcgTLzdXNFQDVN0X9mnrJHPhWIMzTn2XFrQD4x/T39x/6LIsqBOAA3EvUF59l9msBoIsAODlXoJQXqGW46kGAbwMduKOMgTmwBg4wIjfgBfxAEAgFY0EMSAApYDLMsxiuZzmYDmaB+aAElIHlYA1YDzaDrWAn+BnsA/XgEDgGfgdnwHlwGdyE66cTPAU94DXoQxCEhNARBmKMWCC2iDPihrCRACQUiULikBQkHclCpIgSmYUsQMqQlch6ZAtSjfyCHESOIaeQduQ6chfpQl4g71EMpaEGqBlqh45C2SgHjUQT0EloFjoNLUIXokvRCrQK3Y3WocfQM+hltAN9ivZiANPCmJgl5oKxMS4Wg6VimZgcm4OVYuVYFVaLNcJ/+iLWgXVj73AizsBZuAtcwxF4Ii7Ap+Fz8CX4enwnXoe34Bfxu3gP/olAJ5gSnAm+BB5hAiGLMJ1QQignbCccIJyAu6mT8JpIJDKJ9kRvuBtTiNnEmcQlxI3EPcQmYjvxPrGXRCIZk5xJ/qQYEp+UTyohrSPtJh0lXSB1kt6StcgWZDdyGDmVLCUXk8vJu8hHyBfIj8h9FF2KLcWXEkMRUmZQllG2URop5yidlD6qHtWe6k9NoGZT51MrqLXUE9Rb1JdaWlpWWj5a47UkWvO0KrT2ap3Uuqv1jqZPc6JxaWk0JW0pbQetiXad9pJOp9vRg+ip9Hz6Uno1/Tj9Dv2tNkN7pDZPW6g9V7tSu077gvYzHYqOrQ5HZ7JOkU65zn6dczrduhRdO12uLl93jm6l7kHdq7q9egy90Xoxenl6S/R26Z3Se6xP0rfTD9UX6i/U36p/XP8+A2NYM7gMAWMBYxvjBKPTgGhgb8AzyDYoM/jZoM2gx1Df0MMwybDQsNLwsGEHE2PaMXnMXOYy5j7mFeb7YWbDOMNEwxYPqx12Ydgbo+FGQUYio1KjPUaXjd4bs4xDjXOMVxjXG982wU2cTMabTDfZZHLCpHu4wXC/4YLhpcP3Db9hipo6mcaZzjTdanrWtNfM3CzcTGa2zuy4Wbc50zzIPNt8tfkR8y4LhkWAhcRitcVRiycsQxaHlcuqYLWweixNLSMslZZbLNss+6zsrRKtiq32WN22plqzrTOtV1s3W/fYWNiMs5llU2Nzw5Ziy7YV2661bbV9Y2dvl2z3vV293WN7I3uefZF9jf0tB7pDoMM0hyqHS45ER7ZjjuNGx/NOqJOnk9ip0umcM+rs5Sxx3ujcPoIwwmeEdETViKsuNBeOS4FLjcvdkcyRUSOLR9aPfDbKZlTqqBWjWkd9cvV0zXXd5npztP7osaOLRzeOfuHm5CZwq3S75E53D3Of697g/tzD2UPkscnjmifDc5zn957Nnh+9vL3kXrVeXd423uneG7yvsg3Ysewl7JM+BJ9gn7k+h3ze+Xr55vvu8/3bz8Uvx2+X3+Mx9mNEY7aNue9v5c/33+LfEcAKSA/4MaAj0DKQH1gVeC/IOkgYtD3oEceRk83ZzXkW7BosDz4Q/Ibry53NbQrBQsJDSkPaQvVDE0PXh94JswrLCqsJ6wn3DJ8Z3hRBiIiMWBFxlWfGE/CqeT1jvcfOHtsSSYuMj1wfeS/KKUoe1TgOHTd23Kpxt6Jto6XR9TEghhezKuZ2rH3stNjfxhPHx46vHP8wbnTcrLjWeEb8lPhd8a8TghOWJdxMdEhUJjYn6SSlJVUnvUkOSV6Z3DFh1ITZE86kmKRIUhpSSalJqdtTeyeGTlwzsTPNM60k7cok+0mFk05NNpmcO/nwFJ0p/Cn70wnpyem70j/wY/hV/N4MXsaGjB4BV7BW8FQYJFwt7BL5i1aKHmX6Z67MfJzln7Uqq0scKC4Xd0u4kvWS59kR2Zuz3+TE5OzI6c9Nzt2TR85Lzzso1ZfmSFummk8tnNouc5aVyDqm+U5bM61HHinfrkAUkxQN+Qbw8H5W6aD8Tnm3IKCgsuDt9KTp+wv1CqWFZ2c4zVg841FRWNFPM/GZgpnNsyxnzZ91dzZn9pY5yJyMOc1zrecunNs5L3zezvnU+Tnz/yh2LV5Z/GpB8oLGhWYL5y28/134dzUl2iXykqvf+32/eRG+SLKobbH74nWLP5UKS0+XuZaVl31YIlhy+ofRP1T80L80c2nbMq9lm5YTl0uXX1kRuGLnSr2VRSvvrxq3qm41a3Xp6ldrpqw5Ve5Rvnktda1ybUdFVEXDOpt1y9d9WC9ef7kyuHLPBtMNize82SjceGFT0KbazWabyza//1Hy47Ut4VvqquyqyrcStxZsfbgtaVvrT+yfqrebbC/b/nGHdEfHzridLdXe1dW7THctq0FrlDVdu9N2n/855OeGWpfaLXuYe8r2gr3KvU9+Sf/lyr7Ifc372ftrf7X9dcMBxoHSOqRuRl1Pvbi+oyGlof3g2IPNjX6NB34b+duOQ5aHKg8bHl52hHpk4ZH+o0VHe5tkTd3Hso7db57SfPP4hOOXWsa3tJ2IPHHy97Dfj7dyWo+e9D956JTvqYOn2afrz3idqTvrefbAH55/HGjzaqs7532u4bzP+cb2Me1HLgReOHYx5OLvl3iXzlyOvtx+JfHKtatpVzuuCa89vp57/fmNght9N+fdItwqva17u/yO6Z2qPx3/3NPh1XH4bsjds/fi7928L7j/9IHiwYfOhQ/pD8sfWTyqfuz2+FBXWNf5JxOfdD6VPe3rLvlL768Nzxye/fp30N9neyb0dD6XP+9/seSl8csdrzxeNffG9t55nfe6703pW+O3O9+x37W+T37/qG/6B9KHio+OHxs/RX661Z/X3y/jy/kDRwEMVjQzE4AXO+A5IQUAxnl4fpiovvMNFER9Tx0g8J9YfS8cKF4A1MJGdVznNgGwF1a7efCIDlvVUT0hCKDu7kNVUxSZ7m5qWzR44yG87e9/aQYAqRGAj/L+/r6N/f0f4R0Vuw5A0zT1XVNViPBu8GOQii4bCeeBr4r6HvpFjF+3QOWBB/i6/Rdxi4lInc448gAAAIplWElmTU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAIdpAAQAAAABAAAATgAAAAAAAACQAAAAAQAAAJAAAAABAAOShgAHAAAAEgAAAHigAgAEAAAAAQAAAdSgAwAEAAAAAQAAAGIAAAAAQVNDSUkAAABTY3JlZW5zaG90kx7ieQAAAAlwSFlzAAAWJQAAFiUBSVIk8AAAAdVpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+NDY4PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6VXNlckNvbW1lbnQ+U2NyZWVuc2hvdDwvZXhpZjpVc2VyQ29tbWVudD4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjk4PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CjlohlkAAAAcaURPVAAAAAIAAAAAAAAAMQAAACgAAAAxAAAAMQAAFSrMXL20AAAU9klEQVR4AeydCXgV1RXHT/aFhIQdJFbysSPKEllkjSC0lTWsomirArKDYitWqwjIorQVi4qAgKBQCy2yFFF2WUQWURFUCAKCyhYCScjysvX877w7mbzkxbyXSUjpuV/yZubOvXdmfu/O/Oecuzyf6LpNckmCEBACQkAICAEhUCICPiKoJeInmYWAEBACQkAIKAIiqFIRhIAQEAJCQAjYQEAE1QaIUoQQEAJCQAgIARFUqQNCQAgIASEgBGwgIIJqA0QpQggIASEgBISACKrUASEgBISAEBACNhAQQbUBohQhBISAEBACQkAEVeqAEBACQkAICAEbCIig2gBRihACQkAICAEhIIIqdUAICAEhIASEgA0ERFBtgChFCAEhIASEgBAQQZU6IASEgBAQAkLABgIiqDZAlCKEgBAQAkJACIigSh0QAkJACAgBIWADARFUGyBKEUJACAgBISAERFClDggBISAEhIAQsIGACKoNEKUIISAEhIAQEAIiqFIHhIAQEAJCQAjYQEAE1QaIUoQQEAJCQAgIgTIXVB8wVx8ews/Nny8X2xKEgBAQAkJACJQTAmUmqD4QUacoeqOnVl5WLRVhtZKRdSEgBISAELhRBEpdUJWQ8tVpEXXdxoXrOHcQrKKpxVTHuW67K0PihYAQEAJCQAiUJoFSE1QloPyBpfpX6/jIdW4j1tiXf0Vt5X04FTNPOHOVoQtBRZxeIoMW2bzMsiYEhIAQEAJCoGwIlIqgKqlUAsqCyUtfvhYsffjD1xKv4qzXiQgdLOqoxJQ/cnifFtAcCCpvYFutO/NZsumSZCkEhIAQEAJCoNQJlJqgKuFUIsqC6hRSP972ZXXFto+yVLE0rFSrluqr1kKqRBORHJGtBDSXclhdsQ5RNcQ1T3B1flkKASEgBISAECgrArYLqhZICKrx70N+LKL49+cIxGE9T1gNQdUXzLuVK1dvQ0z5j0UzT0Szs1lMWUWzeEc2CytE1RBXIy3ySBACQkAICAEhUJYEbBVUiKESVCWmLKRO8fSHmPJGgJ8hqv68NPaxherM4+6iIY6wQCGgEM0sFtAsXslkUc2CqEJcsd8puEjPfxKEgBAQAkJACJQpAXsFVQlpnmWqhJRNUghpcIAPVeD/ztWDqVWVQCWoEFOlwEVdsjI3fVgk8zojpbOCfp3ooA9+SKeUzBwlrtqCRTsrgspmrMqnEBACQkAICIFSJ2CboGpL03Dz5lmigWyKBvoThQX6UvVQXxrXsCLVCPZTgurN1UEwr2bk0NxjyfRdYiYlOVhQOdJoUzXaU1GuCKo3dCWPEBACQkAIeEvANkGFkEJU0Tbqx35fuHUhpkEBREH+PlQl2Jd63laBOtYMpmD4e70IcOU62Drd/mMarYi/TtdZTNMyDfcv2lJhpcL9iyCCanCQTyEgBISAECgbArYIqtU69WNlhasXbt5AFtIQuHoDfahxpUB6tEk4hQX4qs5JHl8eCyXaUk8lZdJ7x1PomwSHEtOMLGKXLwspC6pqR+U0IqYe05UMQkAICAEhUEICtgkqLFSIqZ9vrhJMiCnaTUNZTCuH+NLABuHUhq1TZckWNkbmFy4EPXnRdrqeLdMdZ9PoUmoWZWQaFis6KClBZcWF6PKfBCEgBISAEBACZUqgxIJqtU4xvhSWKf7h5oV1Gh7kSy1rBVEfFtRaYf7KLezNFcIKPX2NrdOjSfT9lUxKceSyoOYqF7CDBTXHKaZoYxUL1RvCkkcICAEhIARKQsAWQYXV6ausUxZTdvca1qmzI1K4H/VtGE4xtUMomEXWmwCLM4U7Im1kV+/O06mUmJZtuHudFiqG0qj2U14irQiqN5QljxAQAkJACJSEQIkE1Wqd6okbVK9e7ogE6zSCXb1NqgXR0JaRVDnUT82Q5PHJskKibfS7ixm07PBVupicTcksruk8qwMsVPTwxVhUNWyG04qgekxYMggBISAEhIANBLwWVC2maA6FhYpZkFRHJO7BG8yCGsymas2KfjSwWQTF/CqU9xmTOHh6zmgbTWPVXLwvgY5dcChLNdXF3at7+Or2U7FQPaUs6YWAEBACQqCkBEosqBBT3bM3EG2nbJnCOg3jYTLN2c37SLvKFBrE407ZFexpgDA62BI9cOo6rT9yjS6nZFMqW6UYKuPg/wxuV0WHJOsYVLFQPaUs6YWAEBACQsAOAt4LqtMyxZBSJagYJsMbIWydQkyrcQekRztVoSa3hJi/NuPpCcPivMAdkVbtv0LxlxyUnI62UzLdvQ4MmeFEpoWKtlTnQW4WK3Xy05OoV8/7aMN/PqSZs+Z4irBY6Z+YOI7GjB6hOnbd0awVZWRkFCtfeUhUFnzKw3WWx3Pw5UHn9erVpdubNKb69etRdnYWnT59hg4cOEQ/nD1XHk9ZzkkIlCoBrwQVbl7+Mya65w1jEgcWVKd1GsntpZ0ahVHfuypxOyorrZchlbvvfnYihbYeSVIdkVIzeOgMW6zqH+2nvK7m9GXhhZVa3tpRw8LC6IvPP1VXv3r1Gpr8p+c9IlG3bjRt/miDmadrtx506tRpc9uulalTnqOhQ4eo4pre2YpSU1PtKrpUyykrPqV6EZbCH+Lv4IXn/6RiHhz6KH22/4Bl7y+vxh8/ohJ9uOljGjd+Ur4M+/buoKpVq9CZMz8Q6lFJQqXISJo8+Snq26cnBQTwG3QhISHhCr05fyEtXrKskL0SJQRuTgJeCyo8uNrdq9pO1bhTtk55mEwUz9X7u9iq1KBWsOrx6w06WJhnL6fTxoOJdOpCBl3njkhpbJGmO1296ejhy4KKmZP0ONTyJqh48Bw6uEdd/qZNm2n02Ikeobg1Kop27vjIzNM59td09pz9b/52CmqTxo3opelT1DlPfPKP6gFuXoDNK2XFx+bTdlvc6FEj6KlJE9T+x4aPpu3bd7pNW9iO7+OPqujdu/fSw78fni/JkS/3U4UKFejSpcvU5u7O+fZ5shEb24kWzJ9H/niLLkbANQx/fCy/8GrfUTEySRIh4CTw4AODaUD/OLp+/ToNffixcs/FY0G1WqcYd2rMimRMMYi208phftS+UTgN7FCFwtk6heh6GuDqxbjSnYcTad+xJCWmENJ0FlS0m6oevryO9tRU5+T4+OUZw0otP27fkgoquI18/DHq07snrV23gea/9banKIuV3k5Bjevbm/4yZ6Y6rjeiUKwTtiQqCz6Ww5XqankX1CH3D6Tp017g37Mwbuos7l7/0ceb6d9r1tGXXx6hOrf9irp370pt27SmO+9sarI6d+5H6tN3ECVevWrGyYoQKA6BBW/No3u73sNDIXOpbv28OlWcvDcijdeCirZTjD3FuNMAp3UayhPgR1cPpCGdq1Kz6AqqbdV573l0bbkskhk/ptPJ7QmUkpJF2XyQXG6XzeFhOMTu5Cw+TioL6K7TaXTwp3QlsBiLaralsiAj3Oh2VDsE1biS0v38XxbU0iVTtqWXZ0GtWbMG7f5kC9/z8E0RxZ/8nvrGDXbbPNC9W1ea9/e/siXLv4zBoaSWsSpEPv7vCPwfCSpPM8henwAWVfyaTAhPMYhZkTo3DaehXapRBe7Z642YYiBpDnc+SvrgIuXwmFMK4h8lr+hPfpHGP7GopnFv30M8/eBybl89z2k4uTmfr3b7ouaJoBbv/hNBLR6n0k5VngX1w/+soYYNGygE3357nHr27v+LbtyoqNq0aeNaCg0NUflmzf4LLVi4uLQxSvk3EYGbWlC1QMKNq9y9vET7KSzUcBa6Gix8T8bVonrcdoqev96EXLSLnkmj9K+TybcCD7eJ8CdfdiP7sJWancq9fK9m0hGeGH9JfApdScshjElV7aguFuqNFlNcux0WatOmt1Pt2rXop59+piNHjDaywrgGBgZSv7jehDbMKlWq0NFj39Cu3Xvy5bm7bWuqGFGRjh79huCG08GdoPbqdR+1aN6MataoQae5M8uBg4doz55PyeFw6KzmsnOnDhQcEkydOnYguAYRFr29lA59flit57D7YOu2HeZDODq6DjVoUI8uXbxMnx/+QqUJDw+nwYP6U33uORrCD+Fj33yreoweOmSUoRK5fBTFp2uXWPIP8Ke9ez+j5ORklbN9+7upY4d2hPbXhIQEOsjnt2vXXkpMTHQpufDNknAuvMS82PIqqOjFu37danWicPO2adup2O5b6zWdv3CB2rXvknfBLmu4X1Dn8P2jDiP98eMnVHNHWlq6S+q8zQiu0225bjscmWa7c6VKleiBIYNUHUtOTqF9+/Zz/dtOruWgzsXGdqQ2rVtRUFCQyo966q6ne2HHwpncxu7ue7h9uZF+6fjuOK1du6HYnFCGH1soPXr8RvWajqpdm5KSk+jEiZO06aPN6v5HGnehNOo6joX7+q67WlKdOrexNyKNTrJnYhN3eiuqF3d0dMnu7dDQUOrYsR0OT+PHjqbGjRuq9VFjjP4F2ECnt4MHP1fxrh/ofAc3Mb5TR2YmM4ynT3btUXXJNa3d2x65fCGokEksTUFl6xRTDaLttEdMJA1ob4w7RRqPg9M6dZxLp1zuhOTDbl4ILPHPtGVdz1a9eo/yD4uvPZNK3ydlqfZTdE4yf20G7agogw98swjq3j3blKAV5TKb9uKfafDgAaZ7zcod+YaNGK2E9fi3X6o0rh2kXAUVwgt3HR4wrgEPpEl/mMw31eZ8u3SHmHyRLhudYrubQv7+ymXUqlUMu/RT6M7mbWjKC88Sernq9jlr1p9/Pk+/f2QEnYg/aY1W6+74WF9mpk2fxW19W2j92lWEB61rQPvMkiXLafqM2a678m2XlHO+wgrZsIqPN+3P+juwu1MS2sTRNo6wZOlyAs/iBriIjx45qOoSODe+vWWBFzJ8VwsWvE4tWzQr9PtHh6adO3fRqDETC+TFeQwf9gg9w72OEdBLfdTIYQSWrnUJIokyduz4RKVFmokTxhbawWrL1u00gjtTuQbXYwUHB9PiRW/mazPWeXC9EOdRoyfwkCJ2oxURZs+azox7FXoPIxteLB4fNb7QTn6lUdcffugB1UEuLCys0LPGvfjYsFHm/WxNVNJ729oPw1qudR3PodvviLFGKWPi3eWLKTIyIl+83sAICXSULMow0Wm9XZZAUHl2JFZNf25MxcxI9W8Jokl9a9Et/DNtsFh1UGv8gaWO1cu8GCM1KmAOW6G5LKDZLJjZPAYVwgpR5f5HdJbbU1edvk7xHJ/EQ2gyYM3yP9pPy+P0g9aK7ipims8vLd0Jhs636p/vUUzL5npTNd6jsgWwZWYd0jCSb0bdpuV6LlZBHTDwQfoHi53uxYmHWVZWFsEys4ZJTz1Daz5YZ0ZBrPHwxENMP8jwfeJfh7btYuny5QS1ab3pXp37Oj337NM6mXpo+vr6meeAHTiPDp3upfPnL5jpsOKOj5X9y6/8lYYPf1R5DJAH5wQr2/WFYfOWbfT4yHFIUiDYwblAoS4R5VVQDx3Ybb6I3NW6I125csXlzIveRM/gVmzlwLqd+9rrppcCuRo0qE//Xr3SdAsjDvUN4hcUFJyvDsCL8NsecXTx4iUkM4NV5NCT/o15r5r7jHLyvxj27NWfhrD1ih6kOiAd6riuu4jH2O/xEwyh1umsx+r26560ccMa8z5T5831KoRFVrc1I99ZHpPb/Te9C7V6Q9irs2Hdvyg6ug6nNALqelp6Og9DDDDLxh6UDxHbxb24rcHuug5xHzggznoIdWxY0FY+mWz9Dbr/IdUhzZq4pPd2t3u70JtvzFVFWjmCiw6JiVepVZuOelO9jOOlXJ8f0l5LSqIw7tlufQ6CYVy/+5UHz8xs44rHgopjGy5fdlGwMhqC6kv3xURQr9aRaqYkuHuVgPIH0mI9kB+0obyBPOYkhNhhCblsXmZdcVAWT+KQy65crcB4JF9mYV0Rn0zfJWZSsvOHxTGxAwQV8/niuZ0NC9VZnuU5bjlC2a5aK7qriBX3TNwJBvJjUoMRLBQ6vLPsPUI7FR4OCHDVvTZ3jrpZEYeKhQrqei5WQYXQ4MHy8eat9Pbid5TLFWVVrlyZ3lm6QJWJbYh2i5i7C1gM1rfLoqwsfdNZBXfhoiW0YsX7pjupZYvmtGjhG+Yb51dffU19++U9BHEe7vhY2ePGx7XjwTZz9hzasmW7+YCYNXMa9e/XB0Wp0Kv3gAI3m12c9THcLcuroJ488bV6UOFlqHXbTu5O3+N41MWD+3eb3y8E88lJk2nnJ7vNslCfpk193hRcWBmu42itIocHJjpCzZ+/iBa+vVS58uGmXbp4ATVrdocqF72NIyMi1DW9x/Vt3utv0QV2LyNMGD+Gxo8bZT6YXcd+W4+FZpOoqNp07VoS/fHpZwkvZAi4rlEjh9MTE8eawrpt2w72FI1R+60fy5YupA4dDPcmzv3lV/6mxu5q8cA5v/bqHLr11iiVDXUZLzW6CQORdtb1+9nTNeOlF81TXLZ8BS1/dwW7ek8pl3S3bl3omaefMs8H1x7Tqn2+lyS77m2cRHHaUKtXr0af7tmuvjM8T1y9TXgOTuTvomuXWBSpmhKKanpQibz88EhQcQzWRXPmI0wnCPHET7VV4A5JFUN9lftXTZDPbatBrJ7YF8xu4SgeQhNXOUSl5/qWvyC1bURZf8w0l4/Fo2SUmK5ny/SLyxnqZ9vUXL4QUvaiZHECNWSG08Hdy39KXHGuNzpYK7qriBX33NwJBtp+Dh/aa96weIC8POdvBYrFw2XPrq1UrVpVc5/ruVgFFYnwkPnz81PN9NaVbVs2EtpTEJ59bgqt/Mcq627lGizOsBl90+nMeCCt/tcHetNcoj0Fk2PgOhAaNGqmxFAncMfHyh5p0Qbd5d77CrwAYN+sGVNp0KD+WFUuuuGWB5+dnNUBivgoj4IKl99XX3ymzhptVrBI7AqwKOBaRMCLHDwQ2oNhPQb6Baxjd722Vl6YMp0f8ivNJFaRQ6S7zk+6ruiMi1hwZ8x8RW+aS+t5wbthHa7meiwI3D1df1toG+fAgf1oNr+w6QDLGP0CdEAb38oVS/Umod7BRewa4EmBYGhXJvoxPPS7YWYyu+o67jG457VFB9c+XPyuAeeza+dmNVEI9uFF2DqLm133NsoujqCOHTOSnnzC8CzBqHhx6gxkLRBWvf8uxcS0UPHtOnQp4O0qkMGLiP8CAAD//04T0yIAABsnSURBVO1dB5gVRda9M0yAISdB139lJA1ZgVGyKCCKiCjKShQUiQKuaXEXUBAVFXVBd8WEShAVWJAMkiQokrOIIgZUJKchzQz891S/amp6Xr/YyMjc+mZeV1dXV1efV92nbqj7YpLLVj5HYaSYGCL+o1hs+T8PZ/LwNi6WKJ4zCXHE/7zlfF7e5ouPofwJMVSvSAI1KZaXYrl+LNe1GsCW21GNWWVoUx87y/mDp8/SnB/TaM3vp+nwybN0KuMcneb/M5lEGZnnKOMs0dmz54j/iLN0Lqy74RMuYCpapAitXbNCXWHu3M+o90MPh321L1YsotKlStG+ffvp+ro32Of36d2DHn2kn9pfu24D3dO2g33MmSlduhR9vngexcfHq0POvgx9eiB17NhOHftu5/d0c/PbnU3Y+9dfl0oTP3xf7X/yyRQa8M/B9jFk7mzdil4e8bwqe+DB3rR48edZjuudjyeOpdTUWmp3zpz51Kfv3/WhbNsXX3iW7m7TWpXf1aYdbdi4ya7jho+J/TkeFFWr16aTJ0/Z55mZhIQE2rZlLY/LWNq5cxc1a97SPuwlznajLpnevbrTY4/2V0cDYedyOn3/3VZ1aPnyL6hzlwezVNu8cRXlz58/2zjKUsnPTtWqVWj6tE/UkWDfk5/TAxatX/slFS5ciJ/Zc9S+Q1f6atVq1/r4/jEOkH744Ue6qWkLu+6D3brSkwMeU/uBxm+HDvfSM0MGqXppJ05QteqpdhtmJi4ujnZs36iKli1fQfd16W4fNq+Fwq7396DPly63jzszr7w8nFrfYT1PM2fNoX79rX6i3tj336YGDeqpU94Y/Ta9NOLfztPt/auu+it9Nm8mxcXloYyMTEqpfA2/9/DGI/JqrN/7t7vpuWeHqDanTptOjz72pMr7+yhWrBit/mopc0AM/b53L9Wtd6NdzatnGw2+9ebr1LTJjWqMlC1f1b6GmXn6qX9R507tVdEdd7alzZut58Csg3wpfo/e2LihKv7f1Ol05swZZ5Wo92MiIVRcFZwI8ovlD/AhCDWOSTQ+j0WoibzNy2SaFB9LRfLGUOvSSVStcIKqm5VE0Y5qiIkVjaLxGDrH20NMpp/vPkHLfjmpyDQtnYlUESpROpNpJo+nTH4YQaa8sf759JySzIHuJLFQ++hGGHNmTaWKFSuoZgINIn2dN0e/Rs2a3qR2nX0xCfW998fRM8OG69OybUE63+3YrMr9EXkkhIqXDF42bqntPW1o+PND1eGhzzxP738w3q7qho+JvXMyYp9sZDDxwTlHjx6ja2rWsY94ibPdqEsmJxIqxgzGDtKEDz+mQYOt78HlFkIuBkEsXmh9506CdGtkw7qVVKhQQfVyrVy1Fp0+fVpVNUluwoSPaNBTz/htony5sjRv7nR1bP2GjdTmbusl7K/y9m3rCROt77/fRU1vPj/BMq+1a9cP1KTZbf5Ot8tMcj58+AjVrG0RKCp8vXUdJSYmKmIsV6GafY5bZvy4MVSv7vXqsPnMeDXW/zdlIl1To7pqv+XtbWjb19vduqLK9bOHnUpVatrfh0moZj/9NRbo2Ub9UAi1a5dONGjgANU8JmXt2ndR+YvxETahopPgP/Ce4kHeKlJlMtSkmuAjU0iokE6TC8ZR678kUXIBFl990qgplSqC9REpGmbhk04zS6745RTN/yGNDpzIpBNnLMk0nQ+CTLHNQqZ8Dkg1JyVzoDtJLNR+6kHrJAVNAJjdu83czGvc37UzDfzXP1SRsy8mod7zt460du1689Rsef2y2brta7q91d1ZjkdCqObDmKUx306NGtVo6pSP1N6Il0fSf994y67mho+J/cJFS+jB7n3sc/xl5s+bQeXKXk0nTpxU0qyu4yXOuk23bU4kVBP7WbPnUt9+j7p1P6xyc5zMm7+AevW2JPNAjcyYPpmqVK6kqmDcYfwhmSTXpWt3WrrM0gqpg8bHZZeVpJVfLFElY8d9SE8PsSReo4qd3bThKypQoEBAQg0Vj82bVlP+pKQsxGlOTJ3Ptt0JR+bxxx6mXj0tzcOYMWNp2HMvqBpejfVVK5dSiRLFKT09nSpWusZx9ey7muxw5JYWrWnHjm9VJZNQo3m20Zi+RqD3HPr8xfLFSnrHOZgUT548lT4YO4F+3r0bRX9YioxQfd1TxMoECI7EP9S/LJAqlW8iS6f5mD8LJsbS9SUTqfkVSVQiHzMtH7ckUouQNcFqkRdS6kkmzDV7TtHM747T3uOZdJIlU6XmzbDIFGpeSKdnmUyUdMr9yWlkCojMge4kMR+EQTduhKFJzTnrdWuwbNlkpTLCcWdfTEKtymqwE6wOC5S2bl5L+fLlVS+0aAk1IyODKqTUCHQ5qlChPM2dPU3ViYRQg0ndaHj2zKmUklIhG6F6iXPAm+SDOZFQoZKFahbJy9l/v7696OH+D6l2hz37Ao15b6zKB/oY/txQatu2japiSj4mobZq3Za2bPGv8jMJNdiYCIVQn3p6GI0bPzFQl9UxjF2MYaTyFatTZmYmXXHF5bR86QJVtvKrVUrlrXYCfNRl6XQCS6lIpvrdfM8Euy+c6zbW9XONOiCwYEm9x32VevXpT/PmWfejCTXaZxtNh0KoqAe1+oiXnlNmG+zrBC0GzADA690xH9hStD7u9TYiQkUnmD/VB7ZZCJU5EzZUS90bw+reWLr1/5KoQem8Sv0LElbkiZN8Iq5Vhn2LTNczmc7ykenxM2ctMk33SaaKTH02U6h5ubkQvnuu9ccnc6A7SSzU3rgRKmw8UCft+f13qlf/pqDNJfEMeQvPlJGcfRFCdX/JeIlzsC/JJNSevfrR/M8WBjvFPm6qFr20oeICO7/doibBTluZffEIMoMHPUld7uuozry/Wy9asmRp0FZ69uxGTzxm2dpNMrtYhArVYiC7r76hD95/ixo2qK92a1/XkA4ePEjVqlWhT6datulg9krdTtGiRWnt6uVqd8WKL6nTfd1U3nzPREOoeqzr64Wzhb0V94F0MQgV14WvyFOD/8l20kZKXY8yM8HmPHXaDPrHgIG2/dk87kU+YkLFxZWE6tvm4Z08LF2yzZwSfYQKde/l+fNQ23IFqErxBLavcgX+O0+kMbbd9CyfD1Xv1n2nacb2Y7Tr8BklmZ5SdlOfZAo1LwiVGRQkytkcS6bctQsqoWonk1BmgehL8+ZN6Y3/jERWCFWhkPXDbdbuJc5Zr5h9D44VcLBACqaSdJ59c7MmNPqNUaoYRAxCNpO+j1DVi+a52naJshrX1qFjx46ZhyPK9+zxAD3x+CPq3JGj/kMjR/03aDujRo6glrfdqur16NmXPluwSOUvFqG+OOJVGj36naD9hq0YNmOkq8tVUVs49axZtUzlN27cTHe2uVflA32Yz/D06bPo4UeeUNW9ItQtm9ZQUlI+paVp1+G+QF3Jduzrr79hZ6kMVX6xCNXsVOVKKdSyZQtq2LAeVaxQwVYHo86mTVuo9V1/M6t7lo+aUNETCJuaUOHpm8iqXnj3FmLp9OrCcdS5ciEqzfZTePhCCoX9VDkg2eQaQ2dYd/vzkXSasuUofXvgDKWxzRQevWeYUM/bTJlEuR7UvDmdTIGLOdCdUiGOh5LcJFSoi6A2QqpTrzHt3bsvYHPwboSXI5KzLyKhukuoXuIc8Avig3XrXEcTxr+nqn373U5qfkurYKfYx01v0rffeY+eHz7CPoZMNIT62qiX6bYWt6j2QHwgwHASJLSa116j1Iip1zdSarcWtzan1197RTUDmydsn8GStnOjHrABRkgXi1CXfL6M7n+gp+pDoA/tfATv3Aop1e2q2is7VLMNpK/7OndQ54PIQehI5nsmGgl15RdLCGpxqHthQ9UEqS4SxkdOIFSzu7BX9+zRjR75e19bJRyJF73ZplveQ0K1vHyxXEYRKkunRfPFUs1SealdpUKUxPsWkVqkakuqvIt5zS9H02na1qP09d4zdOzUWToJMuX/dPwzeyqbqY9MmU+VZIptTk7mQHeSWKj9diNULE2BYwdSKDP8Jbxs5q//d6Wq7+yLEKo7oXqJswI/wEfBggVp4/qVqkaojiG6uaVL5tOVV/5F7T7U9xGaPWeePqS20RBqrVrX0qSPx6t20C94QbstQcpyUd4x7d+wZ8FJBcmU0H77bQ/Vb9hElQf60DY+qO5gd9fLRi4WoYZibjFt0M77NJcNwbaq78cNA9MLt0PHrvTlylWqqvmeiYZQx499l+rVq6PahBMfnPkiSTmNUPU9mBogLz3WdfvYRk2ozIeWDZWlzXiWPNX6UybPfPFEl+WPo9vK5acbrkqiBHgr6crgVJ+0CjXv3rQMmrzxCG367ZTy5oUTEsjU31pTRaZ8DlS+OT2ZA91JYqH23Y1Q4e0Ir0ckzCihwnBbfzXsmaeofbu29iWdffGSUOEcAGkJacCTg+mTSVPs65oZrx46N3xM7KN5yXiJs3n/bvmFn82i5OQy6nAo3smo+FCfnmr2jTzW1qVUvhbZLCkaQkVD5oQsHOek6Z9OoqpVKqu+OCXRFcsW0uWXl1bHnMuhVKHxYY5Rp8ruYhEquhdM7Wt6JsPrdMjQ5+y7+vcrL1KrVrepfX92b7siZxqzXXDMO2+oInNiggKvxrqpUg5lSRDME+XLl6MjvBzIXGPv1bONezOX+2ES5U9qHvfBO1SkaBHatm27so/iPH/JdOqaMXM29X/4cX/VoirzhFBZKKU8/IFlM4m8zZsAlW8s/aVQHupRuxj9tUi8WqMKqdRW97LNNINdig6fzKSpm47S+t0n6QjnT6WTUvXq5TEqcAMTBtS8IFFFqH8CMsW3Yg50J4mF+q25EQbON19WWO6BNXG/s5OSmTp1bEdDOHADSFd75Tn7Yr6sovXyNaUZ0xPR7BPyXj10bviY2EdDqOirVzijrWDJVIWibjC1Yv9+val/vz52s24z72gJFV7i8+fOsMfQmjXr6N7297lKVZBA8R3jPCSoO2GagEOOTqbEgPGJdaFm0A5d7/bbW9DIV1/Su0o9bC6NuZiEin537HS/LS3aneSM+VxB+sT9799/wK4Cu+qiBbNtTP898nUa9ZpFmnYlzsC0s2TRXOWEiPIPJ35CAwcNsat4OdZNe3kgkn/15Rfojjus9bnwqoZ3tU5ePdtozzRVmZ7d+lrYLpg/k66+2hpngVS5n3w0jmrXtjQkoXqWm9cJJR8dofIVWD2tJNQ4ljgR1AEOSSo6UmIMVSqZQH3qFqd8CbEWoTLxqsq8hRMSyHTRjmO09Ns0OoS1pr7lMUrNy6KrJlNeRfOnI1OAbw50LF6fPMVa+oFjgdJPP/1sBzpwIwycD3sHVH1YgI6EhxuLsX/99TdlK6hRvZpaV4ZjmB3jBQZSvZCEioXqsBkhoT/r1m1Q1/7mmx22zQvHvHro3PAxsY+WUL3CGfcdSoJtEcSq0y+//Eq4h7nzPlPfLbw9GzSoSw8+0IUQyUinn37eTY1vPH+eLsc2WkJFG2bUKOxDUsLL/aOPJtHO73dRwYIFqFGjBlS/bh26885WdmQukOmjjw+gGTNm47QsCYEWEHABCdIH2nrvg/GEZ6B8+bLUs3s3di651bZ9ISoRohOZ6WIRKlS4kLBxf9DEYFkGvit48P794b52EAb0dfSb79KLL71idlvlEZAAgQl0wv2NHPkf2rJ1m/Javefuu6jbA13UMjXUOXT4MKWyp7CpHvZyrNevX5cg8emEJSfzeNx9zFHR8uXNSy1aNKcmNzW2xx2e8YY3NFPjUp/j1bON9szADzA3LFy4hMZNmEg/81jfvfsXdclbbmlG/33dijKF/iAK0ii29WMNKt6Nqam1aNjQwbZjGMwV1a+5Ti1f0n32ahsxofJ7WSVobiGhIkqStp8mMYEW5OhILVIKUstKBSmOpVUQr7abIgoS7KJztxyhhd8cp4NpvNbUF7jhjC9oA49Re52pkk75dMbqT5XMgR5Ox/HQ1KpdX53iRhi6PcxeZ7BaDS9Zt6Q9AvXyhwtJqOiDfqCc/WnQqKn94Ok6eInm5HWo+h68wFm3FcoWLwi8KEJNmLBAYjxy5KjfU7wgVDSMEIAvDB9mS1V+L2YUHjp0iO5iyfPHH38ySs9nsZwL4zc5ucz5Qpfc6tVrqT3bDrGO00wXi1Bhx4RKEgEgAiXYs2HXdkumQ5lbHZQDy9s4gtGePVm1UOZ7JtrJI64D50VI11qjhTJ/CQQ3kCNnTZr0vyyHvXq20SgciuBXgLCZZgIpVqlWyy4yPcB1IcjVeQ8HDhyktvd2ol27ftDVPN1GTqjcDZCqIlT+gLrXWn9KHB0pVjkkPdSwOFXk9aexTLbaZgpOhMPRYl4as2DbUdrvI1Pl0cveSSo+Lz8vkEpzeuCGYN+E6WQSrK55HF966vUNVZH2Mg3mAIGZXOfO7anUZZfxbDYfHThwgL5jL8hXXn3NjiijvQqdhGrOkjFIgzmcaPd6N3d/vCQR1QUvX/NBaNT4ZntWCW9WeLXioQwWlSU5uQzBtogE71V4serkho+J/Vtvj6HhL7ysT/G71bautLQ0qlbjOr91UBgNzq6NuhxA2D8sLdFqU3/V4N0NycjExF89Hagg2Djyd66zLDm5DGEdacMG9WzJ0VkHUtvSpcuoZ+/+fu1ezvpYX9qx471+yQnPw5tvvUvvvPu+8zS1b4aeMyP2OCubjlDBxoR2GHJ6WzvJe/v2b3iC8Qzd0aplNiwwuYHDoBkq09knvQ9b6mOP9Lcdy3Q5ttAEfPrpTBr89DC/8WcvxFhHCMKhQwfZ9m+zP3hm163foJZm+ZvAefVs62tCNf6vfz5BjW9oaKu9nYSKuo0a1ufgDs9T8eLFshEpYjdDhY2JjXNCpq/jxTZyQvWRqSZU+BxB3YsISYiOlFwinvo2LkElOOygspsy+0IyPcGi6bofT9C0dYdp/7FMOs7xeq0oSFY4QaXmhVcvzy7+rJKpF1+M122YcUxDXUjuRR8wey7E0XYOHjzkyfpFL/p0Idu4EDgDQzhUlClzlQomD3s5JL41a9fZE5QLeU9ubWPihElRSkpFJoIr2I+CA43s2cORirbRgoWLs6gl3dpwlmNxPhzBChXCmDmoJoOm3dFZ/4/edxKqGZUJL378eMTx48dp0+YtEX038AquzPePifGp06cI6zvdpPs/4t4REa1SSgrHDS/Pk/SDylbsxTrkSPoOabVkyZKUmBDPAfn3BYx6hElorZo1ae++ffTll18FrBtJX9zOiZpQoe5VIQd99lMQahFeLtO4QgG6qya/TJP4gI9MsXZ03Q8naMb6w7Rr72k7pOBpn2SqlsdAMtXLYyDOcvJtrB35VAjkyZOHnuZ1abG8hSps2qczAiIDSQeL6ZEgrWGGLik4AoJzcIxyU41AhJqbcJB79Y9AxIQKyRQqXwR0iGPOjPcRKkIOFufoSJ3qFaPUq/Pz+lMWXbnyKRY9fzqYThOXH6Dv95+mtFP4KTa2parlMdbPsGm7KQunKnADmFTI1P8Xh9napg2rVGQTqNduanqr64wYMWpnTp+iVFKwK2Bxvelt6f8KUgoEBGcZByYCQqgmGpJ3IhAVoSp1r49Q8QszsKGCQK8qGU/dG5eksqUSWecdww5I5+g3joI0et5e+vVwOh1nMoVUqgI3sL0020+x+XoJYpXkjgA8Cfs+ZEVqgXPPrFlzadGSz5UnHALcJyeXof59e2fxkpw0eWrAtVruV8u9RwTn3PvdO+9cCNWJiOybCEREqJBM+c92SIL9VBEqS6cF2H5as0wSdb2R7aeF4tluyiEFD6TT5C8O0Ea2napfjuG1ppZkCm9f63dNlQMS64ShFkYSMrVwCPQJdeRHE8eyrSD4Ty2hnVAiKgW6Xm49Jjjn1m8++30LoWbHRErOIxAxoTKHsjrsvMoXS2YSOIZvUVb3NqlWiNo3KK68e/cfT6epXx6itTvT6AivNYVkqmLzYstkqteaclY5IaFrQqbnv6BQcggYPmTIQCpSuHA27zZ45P3GbvbP8k9k6WDiobQpdbIjIDhnxyS3lcDpaMA/HlW3/WCPPlkCNeQ2LOR+syMQGaFyO1D3KkJlUkVQB02oVxSLp3vYftqkemEOI3iWJq04QEu3HqOjHMRBSaVMpBnMnoiEZJEpiNT69RhoeIVMs39J4ZQgdmoqRwOBJ+iy5SvkgQ8HvDDqCs5hgCVVBYFcgkBkhAoyZYBsQmUdMH5lJp7tpSlXJlL3my+jK4ol0IzVh2jOmsMctOEsx+VFoHuLTOF8xL5I7M1rkSmkUyHTXDLi5DYFAUFAELhEEYiaUCGpnpdQYyi1fH7q2qwEreFwgtNXHaIjx1kyhWoXJMqkil+NyUamPkK9RDGW2xIEBAFBQBDIBQhERqgMjFb5xrJ0irWoVpSkGLqjTlEqVSSOnZAO0aFjGedJlElV/Ti4kkpFMs0FY0tuURAQBASBXIVAZITKBMp/FqmCUFn/q39YvGVqUfpqx3Haf5TJFCTKUilUugglCEKFjdQMKShrTXPVeJObFQQEAUHgkkUgKkLF8hklqXJGBXfgnYIcJQnrTDOZRS3yBIFa/9nIlGEVJ6RLdmzJjQkCgoAgkKsQiIxQAZFDSgWxgmD5z0qcAVmqfy4BqSJKj9ryvhCpDyfZCAKCgCAgCFwSCEREqLhzTZ5Zt/yrMjajMmlyPZCoJlW9FTXvJTF25CYEAUFAEBAEDASiIlS0A/7U/1pq1WKqTaBcx85DUsWJkgQBQUAQEAQEgUsIgYgJFRhoadQQShU0el8Tp9oKkV5Cw0ZuRRAQBAQBQcCJQFSEqhtTBKpZVBc6tpBQJQkCgoAgIAgIApcqAp4QqgmOllqFQE1UJC8ICAKCgCBwqSPgOaFe6oDJ/QkCgoAgIAgIAv4QEEL1h4qUCQKCgCAgCAgCYSIghBomYFJdEBAEBAFBQBDwh4AQqj9UpEwQEAQEAUFAEAgTASHUMAGT6oKAICAICAKCgD8EhFD9oSJlgoAgIAgIAoJAmAgIoYYJmFQXBAQBQUAQEAT8ISCE6g8VKRMEBAFBQBAQBMJEQAg1TMCkuiAgCAgCgoAg4A8BIVR/qEiZICAICAKCgCAQJgJCqGECJtUFAUFAEBAEBAF/CAih+kNFygQBQUAQEAQEgTAREEINEzCpLggIAoKAICAI+ENACNUfKlImCAgCgoAgIAiEiYAQapiASXVBQBAQBAQBQcAfAkKo/lCRMkFAEBAEBAFBIEwEhFDDBEyqCwKCgCAgCAgC/hAQQvWHipQJAoKAICAICAJhIvD/Jvuro6vjJZoAAAAASUVORK5CYII=";var od="2.21.9";var ad=ka({...Ar.dark,base:"dark",brandTitle:`Lightning UI Components v${od}`,brandUrl:"https://github.com/rdkcentral/Lightning-UI-Components",brandImage:nd});u();h();c();var ot="lui-addons",Qs=`${ot}/downloadbutton`,Zs=`${ot}/announcetoggle`,Js=`${ot}/gridoverlaypanel`,ld=`${ot}/themepanel`,ud=`${ot}/componentstylespanel`,en=`${ot}/stagecolortoggle`,tn=`${ot}/themepicker`;u();h();c();u();h();c();Be();bt();var Za=rn(function(){let[{announce:e},t]=Ve(),i=Ws(),s=[!0,"true"].includes(e),n=ve(()=>{t({announce:!s})},[s]);return me(()=>{i.setAddonShortcut(ot,{label:"Announce Toggle [0]",actionName:"Announce",action:n})},[n,i]),S.createElement(Xe,{key:Zs,active:s,title:"Toggle a11y announcing (voice guidance) of components",onClick:n},S.createElement(De,{icon:"speaker"}))});u();h();c();Be();bt();var Ja=rn(function(){let[{stageColor:e},t]=Ve(),i=Ws(),s=[!0,"true"].includes(e),n=ve(()=>{t({stageColor:!s})},[s]);return me(()=>{i.setAddonShortcut(ot,{label:"Stage Color Toggle",actionName:"stage color",showInMenu:!1,action:n})},[n,i]),S.createElement(Xe,{key:en,active:s,title:"Switch stage color",onClick:n},S.createElement(De,{icon:"paintbrush"}))});u();h();c();Be();bt();u();h();c();u();h();c();u();h();c();u();h();c();var ie=class r{static mergeNumbers(e,t,i){return e*i+t*(1-i)}static rgb(e,t,i){return(e<<16)+(t<<8)+i+255*16777216}static rgba(e,t,i,s){return(e<<16)+(t<<8)+i+(s*255|0)*16777216}static getRgbString(e){let t=(e/65536|0)%256,i=(e/256|0)%256,s=e%256;return"rgb("+t+","+i+","+s+")"}static getRgbaString(e){let t=(e/65536|0)%256,i=(e/256|0)%256,s=e%256,n=(e/16777216|0)/255;return"rgba("+t+","+i+","+s+","+n.toFixed(4)+")"}static getRgbaStringFromArray(e){let t=Math.floor(e[0]*255),i=Math.floor(e[1]*255),s=Math.floor(e[2]*255),n=Math.floor(e[3]*255)/255;return"rgba("+t+","+i+","+s+","+n.toFixed(4)+")"}static getRgbaComponentsNormalized(e){let t=(e/65536|0)%256,i=(e/256|0)%256,s=e%256,n=e/16777216|0;return[t/255,i/255,s/255,n/255]}static getRgbComponentsNormalized(e){let t=(e/65536|0)%256,i=(e/256|0)%256,s=e%256;return[t/255,i/255,s/255]}static getRgbaComponents(e){let t=(e/65536|0)%256,i=(e/256|0)%256,s=e%256,n=e/16777216|0;return[t,i,s,n]}static getArgbNumber(e){e[0]=Math.max(0,Math.min(255,e[0])),e[1]=Math.max(0,Math.min(255,e[1])),e[2]=Math.max(0,Math.min(255,e[2])),e[3]=Math.max(0,Math.min(255,e[3]));let t=((e[3]|0)<<24)+((e[0]|0)<<16)+((e[1]|0)<<8)+(e[2]|0);return t<0&&(t=4294967295+t+1),t}static mergeColors(e,t,i){let s=(e/65536|0)%256,n=(e/256|0)%256,o=e%256,a=e/16777216|0,l=(t/65536|0)%256,d=(t/256|0)%256,p=t%256,_=t/16777216|0,g=s*i+l*(1-i),m=n*i+d*(1-i),A=o*i+p*(1-i),C=a*i+_*(1-i);return Math.round(C)*16777216+Math.round(g)*65536+Math.round(m)*256+Math.round(A)}static mergeMultiColors(e,t){let i=0,s=0,n=0,o=0,a=0,l=e.length;for(let d=0;d>16&255)*i/255&255)+((e&65280)*i/255&65280)+(((e&255)<<16)*i/255&16711680)+(i<<24)}static rad(e){return e*(Math.PI/180)}static getTimingBezier(e,t,i,s){let n=3*e,o=3*(i-e)-n,a=1-n-o,l=3*t,d=3*(s-t)-l,p=1-l-d;return function(_){if(_>=1)return 1;if(_<=0)return 0;let g=.5,m,A,C;for(let D=0;D<20;D++){if(m=g*(g*(g*a+o)+n),C=_-m,C>-1e-8&&C<1e-8)return g*(g*(g*p+d)+l);if(A=g*(g*(3*a)+2*o)+n,A>1e-10&&A<1e-10)break;g+=C/A}let v=0,w=1;for(let D=0;D<20;D++){if(g=.5*(v+w),m=g*(g*(g*a+o)+n),C=_-m,C>-1e-8&&C<1e-8)return g*(g*(g*p+d)+l);C<0?w=g:v=g}}}static getTimingFunction(e){switch(e){case"linear":return function(i){return i};case"ease":return r.getTimingBezier(.25,.1,.25,1);case"ease-in":return r.getTimingBezier(.42,0,1,1);case"ease-out":return r.getTimingBezier(0,0,.58,1);case"ease-in-out":return r.getTimingBezier(.42,0,.58,1);case"step-start":return function(){return 1};case"step-end":return function(i){return i===1?1:0};default:let t="cubic-bezier(";if(e&&e.indexOf(t)===0){let i=e.substr(t.length,e.length-t.length-1).split(",");if(i.length!==4)return console.warn("[Lightning] Unknown timing function: "+e),function(l){return l};let s=parseFloat(i[0]),n=parseFloat(i[1]),o=parseFloat(i[2]),a=parseFloat(i[3]);return isNaN(s)||isNaN(n)||isNaN(o)||isNaN(a)?(console.warn("[Lightning] Unknown timing function: "+e),function(l){return l}):r.getTimingBezier(s,n,o,a)}else return console.warn("[Lightning] Unknown timing function: "+e),function(i){return i}}}},z=class{static isFunction(e){return typeof e=="function"}static isNumber(e){return typeof e=="number"}static isInteger(e){return typeof e=="number"&&e%1===0}static isBoolean(e){return e===!0||e===!1}static isString(e){return typeof e=="string"}static clone(e){return z.isObjectLiteral(e)||Array.isArray(e)?z.getDeepClone(e):e}static cloneObjShallow(e){let t=Object.keys(e),i={};for(let s=0;s=65&&e<=90}};z.isWeb=typeof window<"u"&&typeof sparkscene>"u";z.isWPE=z.isWeb&&navigator.userAgent.indexOf("WPE")!==-1;z.isSpark=typeof sparkscene<"u";z.isNode=typeof window>"u"||z.isSpark;z.isPS4=z.isWeb&&navigator.userAgent.indexOf("PlayStation 4")!==-1;z.isZiggo=z.isWeb&&(navigator.userAgent.indexOf("EOSSTB")!==-1||navigator.userAgent.indexOf("HZNSTB")!==-1);var He=class r{static defaultSetter(e,t,i){e[t]=i}static patchObject(e,t){if(!z.isObjectLiteral(t))console.error("[Lightning] Settings must be object literal");else{let i=Object.keys(t);for(let s=0,n=i.length;s0&&(a=t/n.length);let l=i;for(let d=0,p=n.length;d0&&(i=Math.max(i,s)),i}static getPlainAxisMinSize(e,t){return e.isFlexEnabled()?e._flex._layout.getAxisMinSize(t):e.flexItem.shrink!==0?0:this.getRelAxisSize(e,t)}static resizeAxis(e,t,i){e.isFlexEnabled()?e._flex._horizontal===t?e._flex._layout.resizeMainAxis(i):e._flex._layout.resizeCrossAxis(i):this.setAxisLayoutSize(e,t,i)}static getPaddingOffset(e,t){if(e.isFlexEnabled()){let i=e._flex;return t?i.paddingLeft:i.paddingTop}else return 0}static getTotalPadding(e,t){if(e.isFlexEnabled()){let i=e._flex;return t?i.paddingRight+i.paddingLeft:i.paddingTop+i.paddingBottom}else return 0}static getMarginOffset(e,t){let i=e.flexItem;return i?t?i.marginLeft:i.marginTop:0}static getTotalMargin(e,t){let i=e.flexItem;return i?t?i.marginRight+i.marginLeft:i.marginTop+i.marginBottom:0}},tl=class{constructor(e){this._line=e,this._amountRemaining=0,this._shrunkSize=0}shrink(e){this._shrunkSize=0,this._amountRemaining=e;let t=this._getTotalShrinkAmount();if(t){let i=this._line.items;do{let s=this._amountRemaining/t;for(let n=this._line.startIndex;n<=this._line.endIndex;n++){let a=i[n].flexItem,l=a.shrink;if(l>0){let p=l*s,_=a._getMainAxisMinSize(),g=a._getMainAxisLayoutSize();if(g>_){let m=g-_;p>=m&&(p=m,t-=l);let C=g-p;if(a._resizeMainAxis(C),this._shrunkSize+=p,this._amountRemaining-=p,Math.abs(this._amountRemaining)<1e-5)return}}}}while(t&&Math.abs(this._amountRemaining)>1e-5)}}_getTotalShrinkAmount(){let e=0,t=this._line.items;for(let i=this._line.startIndex;i<=this._line.endIndex;i++){let n=t[i].flexItem;if(n.shrink){let o=n._getMainAxisMinSize();n._getMainAxisLayoutSize()>o&&(e+=n.shrink)}}return e}getShrunkSize(){return this._shrunkSize}},rl=class{constructor(e){this._line=e,this._amountRemaining=0,this._grownSize=0}grow(e){this._grownSize=0,this._amountRemaining=e;let t=this._getTotalGrowAmount();if(t){let i=this._line.items;do{let s=this._amountRemaining/t;for(let n=this._line.startIndex;n<=this._line.endIndex;n++){let a=i[n].flexItem,l=a.grow;if(l>0){let p=l*s,_=a._getMainAxisMaxSizeSetting(),g=a._getMainAxisLayoutSize();if(_>0)if(g>=_)p=0;else{let m=_-g;p>=m&&(p=m,t-=l)}if(p>0){let m=g+p;if(a._resizeMainAxis(m),this._grownSize+=p,this._amountRemaining-=p,Math.abs(this._amountRemaining)<1e-5)return}}}}while(t&&Math.abs(this._amountRemaining)>1e-5)}}_getTotalGrowAmount(){let e=0,t=this._line.items;for(let i=this._line.startIndex;i<=this._line.endIndex;i++){let n=t[i].flexItem;if(n.grow){let o=n._getMainAxisMaxSizeSetting(),a=n._getMainAxisLayoutSize();(o===0||a0&&(i=Math.max(i,s));let n=e._getCrossAxisMaxSizeSetting();n>0&&(i=Math.min(i,n)),e._resizeCrossAxis(i),e._getMainAxisLayoutSize()!==t&&(this._recursiveResizeOccured=!0)}_preventStretch(e){let t=e._hasFixedCrossAxisSize(),i=e.alignSelf==="stretch";return t&&!i}},nl=class{constructor(e,t,i,s){this._layout=e,this.items=e.items,this.startIndex=t,this.endIndex=i,this._availableSpace=s}performLayout(){this._setItemSizes(),this.setItemPositions(),this._calcLayoutInfo()}_setItemSizes(){this._availableSpace>0?this._growItemSizes(this._availableSpace):this._availableSpace<0&&this._shrinkItemSizes(-this._availableSpace)}_growItemSizes(e){let t=new rl(this);t.grow(e),this._availableSpace-=t.getGrownSize()}_shrinkItemSizes(e){let t=new tl(this);t.shrink(e),this._availableSpace+=t.getShrunkSize()}setItemPositions(){new il(this).position()}createItemAligner(){return new sl(this)}_calcLayoutInfo(){this._calcCrossAxisMaxLayoutSize()}getMainAxisMinSize(){let e=0;for(let t=this.startIndex;t<=this.endIndex;t++){let i=this.items[t];e+=i.flexItem._getMainAxisMinSizeWithPaddingAndMargin()}return e}get numberOfItems(){return this.endIndex-this.startIndex+1}get crossAxisLayoutSize(){let e=this._layout.isCrossAxisFitToContents()&&!this._layout.resizingCrossAxis;return this._layout.isWrapping()||e?this._crossAxisMaxLayoutSize:this._layout.crossAxisSize}_calcCrossAxisMaxLayoutSize(){this._crossAxisMaxLayoutSize=this._getCrossAxisMaxLayoutSize()}_getCrossAxisMaxLayoutSize(){let e=0;for(let t=this.startIndex;t<=this.endIndex;t++){let i=this.items[t];e=Math.max(e,i.flexItem._getCrossAxisLayoutSizeWithPaddingAndMargin())}return e}},ol=class{constructor(e){this._layout=e,this._mainAxisMinSize=-1,this._crossAxisMinSize=-1,this._mainAxisContentSize=0}get lines(){return this._lines}get mainAxisMinSize(){return this._mainAxisMinSize===-1&&(this._mainAxisMinSize=this._getMainAxisMinSize()),this._mainAxisMinSize}get crossAxisMinSize(){return this._crossAxisMinSize===-1&&(this._crossAxisMinSize=this._getCrossAxisMinSize()),this._crossAxisMinSize}get mainAxisContentSize(){return this._mainAxisContentSize}layoutLines(){this._setup();let e=this._layout.items,t=this._layout.isWrapping(),i=0,s,n=e.length;for(s=0;si&&this._curMainAxisPos+a>this._mainAxisSize&&(this._layoutLine(i,s-1),this._curMainAxisPos=0,i=s),this._addToMainAxisPos(a)}ithis._maxMainAxisPos&&(this._maxMainAxisPos=this._curMainAxisPos)}_layoutLine(e,t){let i=this._getAvailableMainAxisLayoutSpace(),s=new nl(this._layout,e,t,i);s.performLayout(),this._lines.push(s),(this._mainAxisContentSize===0||this._curMainAxisPos>this._mainAxisContentSize)&&(this._mainAxisContentSize=this._curMainAxisPos)}_getAvailableMainAxisLayoutSpace(){return!this._layout.resizingMainAxis&&this._layout.isMainAxisFitToContents()?0:this._mainAxisSize-this._curMainAxisPos}_getCrossAxisMinSize(){let e=0,t=this._layout.items;for(let i=0,s=t.length;i0?this.performResizeMainAxis(e):this._checkValidCacheMainAxisResize()?(this.mainAxisSize=e,this._fitCrossAxisSizeToContents()):(this.item.enableLocalRecalcFlag(),this.performResizeMainAxis(e)))}_checkValidCacheMainAxisResize(e){return e===this.targetMainAxisSize||!this.isCrossAxisFitToContents()}performResizeMainAxis(e){let t=e0?this.performResizeCrossAxis(e):this.crossAxisSize=e)}performResizeCrossAxis(e){this.crossAxisSize=e,this._resizingCrossAxis=!0,this._layoutCrossAxis(),this._resizingCrossAxis=!1}get targetMainAxisSize(){return this._horizontal?this.item.target.w:this.item.target.h}get targetCrossAxisSize(){return this._horizontal?this.item.target.h:this.item.target.w}getParentFlexContainer(){return this.item.isFlexItemEnabled()?this.item.flexItem.ctr:null}_getHorizontalPadding(){return re.getTotalPadding(this.item,!0)}_getVerticalPadding(){return re.getTotalPadding(this.item,!1)}_getHorizontalPaddingOffset(){return re.getPaddingOffset(this.item,!0)}_getVerticalPaddingOffset(){return re.getPaddingOffset(this.item,!1)}_getMainAxisBasis(){return re.getRelAxisSize(this.item,this._horizontal)}_getCrossAxisBasis(){return re.getRelAxisSize(this.item,!this._horizontal)}get _horizontal(){return this._flexContainer._horizontal}get _reverse(){return this._flexContainer._reverse}get item(){return this._flexContainer.item}get items(){return this.item.items}get resizingMainAxis(){return this._resizingMainAxis}get resizingCrossAxis(){return this._resizingCrossAxis}get numberOfItems(){return this.items.length}get mainAxisSize(){return re.getAxisLayoutSize(this.item,this._horizontal)}get crossAxisSize(){return re.getAxisLayoutSize(this.item,!this._horizontal)}set mainAxisSize(e){re.setAxisLayoutSize(this.item,this._horizontal,e)}set crossAxisSize(e){re.setAxisLayoutSize(this.item,!this._horizontal,e)}},Wt=class r{constructor(e){this._item=e,this._layout=new ll(this),this._horizontal=!0,this._reverse=!1,this._wrap=!1,this._alignItems="stretch",this._justifyContent="flex-start",this._alignContent="flex-start",this._paddingLeft=0,this._paddingTop=0,this._paddingRight=0,this._paddingBottom=0}get item(){return this._item}_changedDimensions(){this._item.changedDimensions()}_changedContents(){this._item.changedContents()}get direction(){return(this._horizontal?"row":"column")+(this._reverse?"-reverse":"")}set direction(e){this.direction!==e&&(this._horizontal=e==="row"||e==="row-reverse",this._reverse=e==="row-reverse"||e==="column-reverse",this._changedContents())}set wrap(e){this._wrap=e,this._changedContents()}get wrap(){return this._wrap}get alignItems(){return this._alignItems}set alignItems(e){if(this._alignItems!==e){if(r.ALIGN_ITEMS.indexOf(e)===-1)throw new Error("Unknown alignItems, options: "+r.ALIGN_ITEMS.join(","));this._alignItems=e,this._changedContents()}}get alignContent(){return this._alignContent}set alignContent(e){if(this._alignContent!==e){if(r.ALIGN_CONTENT.indexOf(e)===-1)throw new Error("Unknown alignContent, options: "+r.ALIGN_CONTENT.join(","));this._alignContent=e,this._changedContents()}}get justifyContent(){return this._justifyContent}set justifyContent(e){if(this._justifyContent!==e){if(r.JUSTIFY_CONTENT.indexOf(e)===-1)throw new Error("Unknown justifyContent, options: "+r.JUSTIFY_CONTENT.join(","));this._justifyContent=e,this._changedContents()}}set padding(e){this.paddingLeft=e,this.paddingTop=e,this.paddingRight=e,this.paddingBottom=e}get padding(){return this.paddingLeft}set paddingLeft(e){this._paddingLeft=e,this._changedDimensions()}get paddingLeft(){return this._paddingLeft}set paddingTop(e){this._paddingTop=e,this._changedDimensions()}get paddingTop(){return this._paddingTop}set paddingRight(e){this._paddingRight=e,this._changedDimensions()}get paddingRight(){return this._paddingRight}set paddingBottom(e){this._paddingBottom=e,this._changedDimensions()}get paddingBottom(){return this._paddingBottom}patch(e){He.patchObject(this,e)}};Wt.ALIGN_ITEMS=["flex-start","flex-end","center","stretch"];Wt.ALIGN_CONTENT=["flex-start","flex-end","center","space-between","space-around","space-evenly","stretch"];Wt.JUSTIFY_CONTENT=["flex-start","flex-end","center","space-between","space-around","space-evenly"];var an=class r{constructor(e){this._ctr=null,this._item=e,this._grow=0,this._shrink=r.SHRINK_AUTO,this._alignSelf=void 0,this._minWidth=0,this._minHeight=0,this._maxWidth=0,this._maxHeight=0,this._marginLeft=0,this._marginTop=0,this._marginRight=0,this._marginBottom=0}get item(){return this._item}get grow(){return this._grow}set grow(e){this._grow!==e&&(this._grow=parseInt(e)||0,this._changed())}get shrink(){return this._shrink===r.SHRINK_AUTO?this._getDefaultShrink():this._shrink}_getDefaultShrink(){return this.item.isFlexEnabled()?1:0}set shrink(e){this._shrink!==e&&(this._shrink=parseInt(e)||0,this._changed())}get alignSelf(){return this._alignSelf}set alignSelf(e){if(this._alignSelf!==e){if(e===void 0)this._alignSelf=void 0;else{if(Wt.ALIGN_ITEMS.indexOf(e)===-1)throw new Error("Unknown alignSelf, options: "+Wt.ALIGN_ITEMS.join(","));this._alignSelf=e}this._changed()}}get minWidth(){return this._minWidth}set minWidth(e){this._minWidth=Math.max(0,e),this._item.changedDimensions(!0,!1)}get minHeight(){return this._minHeight}set minHeight(e){this._minHeight=Math.max(0,e),this._item.changedDimensions(!1,!0)}get maxWidth(){return this._maxWidth}set maxWidth(e){this._maxWidth=Math.max(0,e),this._item.changedDimensions(!0,!1)}get maxHeight(){return this._maxHeight}set maxHeight(e){this._maxHeight=Math.max(0,e),this._item.changedDimensions(!1,!0)}set margin(e){this.marginLeft=e,this.marginTop=e,this.marginRight=e,this.marginBottom=e}get margin(){return this.marginLeft}set marginLeft(e){this._marginLeft=e,this._changed()}get marginLeft(){return this._marginLeft}set marginTop(e){this._marginTop=e,this._changed()}get marginTop(){return this._marginTop}set marginRight(e){this._marginRight=e,this._changed()}get marginRight(){return this._marginRight}set marginBottom(e){this._marginBottom=e,this._changed()}get marginBottom(){return this._marginBottom}_changed(){this.ctr&&this.ctr._changedContents()}set ctr(e){this._ctr=e}get ctr(){return this._ctr}patch(e){He.patchObject(this,e)}_resetLayoutSize(){this._resetHorizontalAxisLayoutSize(),this._resetVerticalAxisLayoutSize()}_resetCrossAxisLayoutSize(){this.ctr._horizontal?this._resetVerticalAxisLayoutSize():this._resetHorizontalAxisLayoutSize()}_resetHorizontalAxisLayoutSize(){let e=re.getRelAxisSize(this.item,!0);this._minWidth&&(e=Math.max(this._minWidth,e)),this._maxWidth&&(e=Math.min(this._maxWidth,e)),re.setAxisLayoutSize(this.item,!0,e)}_resetVerticalAxisLayoutSize(){let e=re.getRelAxisSize(this.item,!1);this._minHeight&&(e=Math.max(this._minHeight,e)),this._maxHeight&&(e=Math.min(this._maxHeight,e)),re.setAxisLayoutSize(this.item,!1,e)}_getCrossAxisMinSizeSetting(){return this._getMinSizeSetting(!this.ctr._horizontal)}_getCrossAxisMaxSizeSetting(){return this._getMaxSizeSetting(!this.ctr._horizontal)}_getMainAxisMaxSizeSetting(){return this._getMaxSizeSetting(this.ctr._horizontal)}_getMinSizeSetting(e){return e?this._minWidth:this._minHeight}_getMaxSizeSetting(e){return e?this._maxWidth:this._maxHeight}_getMainAxisMinSize(){return re.getAxisMinSize(this.item,this.ctr._horizontal)}_getCrossAxisMinSize(){return re.getAxisMinSize(this.item,!this.ctr._horizontal)}_getMainAxisLayoutSize(){return re.getAxisLayoutSize(this.item,this.ctr._horizontal)}_getMainAxisLayoutPos(){return re.getAxisLayoutPos(this.item,this.ctr._horizontal)}_setMainAxisLayoutPos(e){return re.setAxisLayoutPos(this.item,this.ctr._horizontal,e)}_setCrossAxisLayoutPos(e){return re.setAxisLayoutPos(this.item,!this.ctr._horizontal,e)}_getCrossAxisLayoutSize(){return re.getAxisLayoutSize(this.item,!this.ctr._horizontal)}_resizeCrossAxis(e){return re.resizeAxis(this.item,!this.ctr._horizontal,e)}_resizeMainAxis(e){return re.resizeAxis(this.item,this.ctr._horizontal,e)}_getMainAxisPadding(){return re.getTotalPadding(this.item,this.ctr._horizontal)}_getCrossAxisPadding(){return re.getTotalPadding(this.item,!this.ctr._horizontal)}_getMainAxisMargin(){return re.getTotalMargin(this.item,this.ctr._horizontal)}_getCrossAxisMargin(){return re.getTotalMargin(this.item,!this.ctr._horizontal)}_getHorizontalMarginOffset(){return re.getMarginOffset(this.item,!0)}_getVerticalMarginOffset(){return re.getMarginOffset(this.item,!1)}_getMainAxisMinSizeWithPaddingAndMargin(){return this._getMainAxisMinSize()+this._getMainAxisPadding()+this._getMainAxisMargin()}_getCrossAxisMinSizeWithPaddingAndMargin(){return this._getCrossAxisMinSize()+this._getCrossAxisPadding()+this._getCrossAxisMargin()}_getMainAxisLayoutSizeWithPaddingAndMargin(){return this._getMainAxisLayoutSize()+this._getMainAxisPadding()+this._getMainAxisMargin()}_getCrossAxisLayoutSizeWithPaddingAndMargin(){return this._getCrossAxisLayoutSize()+this._getCrossAxisPadding()+this._getCrossAxisMargin()}_hasFixedCrossAxisSize(){return!re.isZeroAxisSize(this.item,!this.ctr._horizontal)}_hasRelCrossAxisSize(){return!!(this.ctr._horizontal?this.item.funcH:this.item.funcW)}};an.SHRINK_AUTO=-1;var ul=class{constructor(e){this._target=e,this._recalc=0,this._enabled=!1,this.x=0,this.y=0,this.w=0,this.h=0,this._originalX=0,this._originalY=0,this._originalWidth=0,this._originalHeight=0,this._flex=null,this._flexItem=null,this._flexItemDisabled=!1,this._items=null}get flexLayout(){return this.flex?this.flex._layout:null}layoutFlexTree(){this.isFlexEnabled()&&this.isChanged()&&this.flexLayout.layoutTree()}get target(){return this._target}get flex(){return this._flex}set flex(e){e?(this.isFlexEnabled()||this._enableFlex(),this._flex.patch(e)):this.isFlexEnabled()&&this._disableFlex()}get flexItem(){return this._flexItemDisabled?!1:(this._ensureFlexItem(),this._flexItem)}set flexItem(e){if(e===!1){if(!this._flexItemDisabled){let t=this.flexParent;this._flexItemDisabled=!0,this._checkEnabled(),t&&(t._clearFlexItemsCache(),t.changedContents())}}else if(this._ensureFlexItem(),this._flexItem.patch(e),this._flexItemDisabled){this._flexItemDisabled=!1,this._checkEnabled();let t=this.flexParent;t&&(t._clearFlexItemsCache(),t.changedContents())}}_enableFlex(){this._flex=new Wt(this),this._checkEnabled(),this.changedDimensions(),this._enableChildrenAsFlexItems()}_disableFlex(){this.changedDimensions(),this._flex=null,this._checkEnabled(),this._disableChildrenAsFlexItems()}_enableChildrenAsFlexItems(){let e=this._target._children;if(e)for(let t=0,i=e.length;t0}_updateRecalc(e=!1,t=!1){if(this.isFlexEnabled()){let n=this._flex._layout;e=e||n.isAxisFitToContents(!0),t=t||n.isAxisFitToContents(!1)}let i=1+(e?2:0)+(t?4:0),s=this.getNewRecalcFlags(i);this._recalc|=i,s>1?this.flexParent?this.flexParent._updateRecalcBottomUp(i):this._target.triggerLayout():this._target.triggerLayout()}getNewRecalcFlags(e){return 7-this._recalc&e}_updateRecalcBottomUp(e){let t=this._getRecalcFromChangedChildRecalc(e),i=this.getNewRecalcFlags(t);if(this._recalc|=t,i>1){let s=this.flexParent;s?s._updateRecalcBottomUp(t):this._target.triggerLayout()}else this._target.triggerLayout()}_getRecalcFromChangedChildRecalc(e){let t=this._flex._layout,i=t._horizontal?1:2,s=t._horizontal?2:1;e&s||e&i&&t.isWrapping()&&t.isCrossAxisFitToContents()&&(e+=s);let o=t.isAxisFitToContents(!0),a=t.isAxisFitToContents(!1);t.shrunk&&(t._horizontal?o=!0:a=!0);let l=1+(o?2:0)+(a?4:0);return e&l}get recalc(){return this._recalc}clearRecalcFlag(){this._recalc=0}enableLocalRecalcFlag(){this._recalc=1}get originalX(){return this._originalX}setOriginalXWithoutUpdatingLayout(e){this._originalX=e}get originalY(){return this._originalY}setOriginalYWithoutUpdatingLayout(e){this._originalY=e}get originalWidth(){return this._originalWidth}set originalWidth(e){this._originalWidth!==e&&(this._originalWidth=e,this.changedDimensions(!0,!1))}get originalHeight(){return this._originalHeight}set originalHeight(e){this._originalHeight!==e&&(this._originalHeight=e,this.changedDimensions(!1,!0))}get funcX(){return this._target.funcX}get funcY(){return this._target.funcY}get funcW(){return this._target.funcW}get funcH(){return this._target.funcH}},Fr=class r{constructor(e,t=null){this.id=r.id++,this.manager=e,this.stage=e.stage,this.textures=new Set,this._activeTextureCount=0,this.loader=t,this.lookupId=null,this._cancelCb=null,this.loadingSince=0,this.w=0,this.h=0,this._nativeTexture=null,this.permanent=!1,this.renderInfo=null,this._isResultTexture=!this.loader,this._loadError=null,this._imageRef=null,this._hasAlpha=!1}get hasAlpha(){return this._hasAlpha}get loadError(){return this._loadError}addTexture(e){this.textures.has(e)||this.textures.add(e)}removeTexture(e){this.textures.delete(e)}incActiveTextureCount(){this._activeTextureCount++,this._activeTextureCount===1&&this.becomesUsed()}decActiveTextureCount(){this._activeTextureCount--,this._activeTextureCount===0&&this.becomesUnused()}get isResultTexture(){return this._isResultTexture}set isResultTexture(e){this._isResultTexture=e}forEachEnabledElement(e){this.textures.forEach(t=>{t.elements.forEach(e)})}hasEnabledElements(){return this.textures.size>0}forEachActiveElement(e){this.textures.forEach(t=>{t.elements.forEach(i=>{i.active&&e(i)})})}getRenderWidth(){return this.w}getRenderHeight(){return this.h}allowCleanup(){return!this.permanent&&!this.isUsed()}becomesUsed(){this.load()}becomesUnused(){this.cancel()}cancel(){this.isLoading()&&(this._cancelCb&&(this._cancelCb(this),this._cancelCb=null),this.loadingSince=0)}isLoaded(){return!!this._nativeTexture}isLoading(){return this.loadingSince>0}isError(){return!!this._loadError}reload(){this.free(),this.isUsed()&&this.load()}load(e=!1){this.isResultTexture||!this._nativeTexture&&!this.isLoading()&&(this.loadingSince=new Date().getTime(),this._cancelCb=this.loader((t,i)=>{if(this.isLoading()){if(this._cancelCb=null,this.manager.stage.destroyed)return;if(t)this.onError(t);else if(i&&i.source)if(!this.stage.isUpdatingFrame()&&!e&&i.throttle!==!1){let s=this.stage.textureThrottler;this._cancelCb=s.genericCancelCb,s.add(this,i)}else this.processLoadedSource(i)}},this))}processLoadedSource(e){this.loadingSince=0,this.setSource(e)}setSource(e){let t=e.source;this._hasAlpha=e&&e.hasAlpha||!1,this.w=t.width||e&&e.w||0,this.h=t.height||e&&e.h||0,e&&e.renderInfo&&(this.renderInfo=e.renderInfo),this.permanent=!!e.permanent,e&&e.imageRef&&(this._imageRef=e.imageRef),e&&e.flipTextureY?this._flipTextureY=e.flipTextureY:this._flipTextureY=!1,this._isNativeTexture(t)?(this._nativeTexture=t,this.w=this.w||t.w,this.h=this.h||t.h,this.permanent=e.hasOwnProperty("permanent")?e.permanent:!0):this.manager.uploadTextureSource(this,e),this._loadError=null,this.onLoad()}isUsed(){return this._activeTextureCount>0}onLoad(){this.isUsed()&&this.textures.forEach(e=>{e.onLoad()})}forceRenderUpdate(){this._nativeTexture&&(this._nativeTexture.update=this.stage.frameCounter),this.forEachActiveElement(function(e){e.forceRenderUpdate()})}forceUpdateRenderCoords(){this.forEachActiveElement(function(e){e._updateTextureCoords()})}get nativeTexture(){return this._nativeTexture}clearNativeTexture(){this._nativeTexture=null,this._imageRef=null}replaceNativeTexture(e,t,i){let s=this._nativeTexture;this._nativeTexture=e,this.w=t,this.h=i,!s&&this._nativeTexture&&this.forEachActiveElement(n=>n.onTextureSourceLoaded()),this._nativeTexture||this.forEachActiveElement(n=>n._setDisplayedTexture(null)),this.forEachEnabledElement(n=>n._updateDimensions())}onError(e){this._loadError=e,this.loadingSince=0,console.error("[Lightning] texture load error",e,this.lookupId),this.forEachActiveElement(t=>t.onTextureSourceLoadError(e))}free(){this.isLoaded()&&this.manager.freeTextureSource(this)}_isNativeTexture(e){return z.isNode?e.constructor.name==="WebGLTexture":"WebGLTexture"in window?e instanceof WebGLTexture:!1}};Fr.prototype.isTextureSource=!0;Fr.id=1;var ln=class{constructor(e){this._element=e.element,this._core=e,this.ctx=this._core.ctx,this._enabled=!1,this.lazy=!1,this._colorize=!1,this._renderTexture=null,this._renderTextureReused=!1,this._resultTextureSource=null,this._renderOffscreen=!1,this.empty=!1}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._core.updateRenderToTextureEnabled()}get renderOffscreen(){return this._renderOffscreen}set renderOffscreen(e){this._renderOffscreen=e,this._core.setHasRenderUpdates(1),this._core._setRecalc(6)}get colorize(){return this._colorize}set colorize(e){this._colorize!==e&&(this._colorize=e,this._core.setHasRenderUpdates(1))}_getTextureSource(){return this._resultTextureSource||(this._resultTextureSource=new Fr(this._element.stage.textureManager),this.updateResultTexture()),this._resultTextureSource}hasResultTexture(){return!!this._resultTextureSource}resultTextureInUse(){return this._resultTextureSource&&this._resultTextureSource.hasEnabledElements()}updateResultTexture(){let e=this.getResultTexture();if(this._resultTextureSource){if(this._resultTextureSource.nativeTexture!==e){let t=e?e.w:0,i=e?e.h:0;this._resultTextureSource.replaceNativeTexture(e,t,i)}this._resultTextureSource.forEachEnabledElement(t=>{t._updateDimensions(),t.core.setHasRenderUpdates(3)})}}mustRenderToTexture(){return this._enabled&&!this.lazy?!0:!!(this._enabled&&this.lazy&&this._core._hasRenderUpdates<3)}deactivate(){this.release()}get renderTextureReused(){return this._renderTextureReused}release(){this.releaseRenderTexture()}releaseRenderTexture(){this._renderTexture&&(this._renderTextureReused||this.ctx.releaseRenderTexture(this._renderTexture),this._renderTexture=null,this._renderTextureReused=!1,this.updateResultTexture())}reuseTextureAsRenderTexture(e){this._renderTexture!==e&&(this.releaseRenderTexture(),this._renderTexture=e,this._renderTextureReused=!0)}hasRenderTexture(){return!!this._renderTexture}getRenderTexture(){return this._renderTexture||(this._renderTexture=this.ctx.allocateRenderTexture(this._core._w,this._core._h),this._renderTextureReused=!1),this._renderTexture}getResultTexture(){return this._renderTexture}},Si=class r{constructor(e){this._element=e,this.ctx=e.stage.ctx,this._recalc=0,this._parent=null,this._onUpdate=null,this._pRecalc=0,this._worldContext=new Tt,this._hasUpdates=!1,this._localAlpha=1,this._onAfterCalcs=null,this._onAfterUpdate=null,this._localPx=0,this._localPy=0,this._localTa=1,this._localTb=0,this._localTc=0,this._localTd=1,this._isComplex=!1,this._dimsUnknown=!1,this._clipping=!1,this._zSort=!1,this._outOfBounds=0,this._displayedTextureSource=null,this._zContextUsage=0,this._children=null,this._hasRenderUpdates=0,this._zIndexedChildren=null,this._renderContext=this._worldContext,this.renderState=this.ctx.renderState,this._scissor=null,this._shaderOwner=null,this._updateTreeOrder=0,this._colorUl=this._colorUr=this._colorBl=this._colorBr=4294967295,this._x=0,this._y=0,this._w=0,this._h=0,this._optFlags=0,this._funcX=null,this._funcY=null,this._funcW=null,this._funcH=null,this._scaleX=1,this._scaleY=1,this._pivotX=.5,this._pivotY=.5,this._mountX=0,this._mountY=0,this._rotation=0,this._alpha=1,this._visible=!0,this._ulx=0,this._uly=0,this._brx=1,this._bry=1,this._zIndex=0,this._forceZIndexContext=!1,this._zParent=null,this._isRoot=!1,this._zIndexResort=!1,this._shader=null,this._renderToTextureEnabled=!1,this._texturizer=null,this._useRenderToTexture=!1,this._boundsMargin=null,this._recBoundsMargin=null,this._withinBoundsMargin=!1,this._viewport=null,this._clipbox=!0,this.render=this._renderSimple,this._layout=null}get offsetX(){return this._funcX?this._funcX:this.hasFlexLayout()?this._layout.originalX:this._x}set offsetX(e){z.isFunction(e)?this.funcX=e:(this._disableFuncX(),this.hasFlexLayout()?(this.x+=e-this._layout.originalX,this._layout.setOriginalXWithoutUpdatingLayout(e)):this.x=e)}get x(){return this._x}set x(e){e!==this._x&&(this._updateLocalTranslateDelta(e-this._x,0),this._x=e)}get funcX(){return this._optFlags&1?this._funcX:null}set funcX(e){this._funcX!==e&&(this._optFlags|=1,this._funcX=e,this.hasFlexLayout()?(this._layout.setOriginalXWithoutUpdatingLayout(0),this.layout.forceLayout()):(this._x=0,this._triggerRecalcTranslate()))}_disableFuncX(){this._optFlags=this._optFlags&65535-1,this._funcX=null}get offsetY(){return this._funcY?this._funcY:this.hasFlexLayout()?this._layout.originalY:this._y}set offsetY(e){z.isFunction(e)?this.funcY=e:(this._disableFuncY(),this.hasFlexLayout()?(this.y+=e-this._layout.originalY,this._layout.setOriginalYWithoutUpdatingLayout(e)):this.y=e)}get y(){return this._y}set y(e){e!==this._y&&(this._updateLocalTranslateDelta(0,e-this._y),this._y=e)}get funcY(){return this._optFlags&2?this._funcY:null}set funcY(e){this._funcY!==e&&(this._optFlags|=2,this._funcY=e,this.hasFlexLayout()?(this._layout.setOriginalYWithoutUpdatingLayout(0),this.layout.forceLayout()):(this._y=0,this._triggerRecalcTranslate()))}_disableFuncY(){this._optFlags=this._optFlags&65535-2,this._funcY=null}get funcW(){return this._optFlags&4?this._funcW:null}set funcW(e){this._funcW!==e&&(this._optFlags|=4,this._funcW=e,this.hasFlexLayout()?(this._layout._originalWidth=0,this.layout.changedDimensions(!0,!1)):(this._w=0,this._triggerRecalcTranslate()))}disableFuncW(){this._optFlags=this._optFlags&65535-4,this._funcW=null}get funcH(){return this._optFlags&8?this._funcH:null}set funcH(e){this._funcH!==e&&(this._optFlags|=8,this._funcH=e,this.hasFlexLayout()?(this._layout._originalHeight=0,this.layout.changedDimensions(!1,!0)):(this._h=0,this._triggerRecalcTranslate()))}disableFuncH(){this._optFlags=this._optFlags&65535-8,this._funcH=null}get w(){return this._w}getRenderWidth(){return this.hasFlexLayout()?this._layout.originalWidth:this._w}get h(){return this._h}getRenderHeight(){return this.hasFlexLayout()?this._layout.originalHeight:this._h}get scaleX(){return this._scaleX}set scaleX(e){this._scaleX!==e&&(this._scaleX=e,this._updateLocalTransform())}get scaleY(){return this._scaleY}set scaleY(e){this._scaleY!==e&&(this._scaleY=e,this._updateLocalTransform())}get scale(){return this.scaleX}set scale(e){(this._scaleX!==e||this._scaleY!==e)&&(this._scaleX=e,this._scaleY=e,this._updateLocalTransform())}get pivotX(){return this._pivotX}set pivotX(e){this._pivotX!==e&&(this._pivotX=e,this._updateLocalTranslate())}get pivotY(){return this._pivotY}set pivotY(e){this._pivotY!==e&&(this._pivotY=e,this._updateLocalTranslate())}get pivot(){return this._pivotX}set pivot(e){(this._pivotX!==e||this._pivotY!==e)&&(this._pivotX=e,this._pivotY=e,this._updateLocalTranslate())}get mountX(){return this._mountX}set mountX(e){this._mountX!==e&&(this._mountX=e,this._updateLocalTranslate())}get mountY(){return this._mountY}set mountY(e){this._mountY!==e&&(this._mountY=e,this._updateLocalTranslate())}get mount(){return this._mountX}set mount(e){(this._mountX!==e||this._mountY!==e)&&(this._mountX=e,this._mountY=e,this._updateLocalTranslate())}get rotation(){return this._rotation}set rotation(e){this._rotation!==e&&(this._rotation=e,this._updateLocalTransform())}get alpha(){return this._alpha}set alpha(e){if(e=e>1?1:e<1e-14?0:e,this._alpha!==e){let t=this._alpha;this._alpha=e,this._updateLocalAlpha(),t===0!=(e===0)&&this._element._updateEnabledFlag()}}get visible(){return this._visible}set visible(e){this._visible!==e&&(this._visible=e,this._updateLocalAlpha(),this._element._updateEnabledFlag(),this.hasFlexLayout()&&this.layout.setVisible(e))}_updateLocalTransform(){if(this._rotation!==0&&this._rotation%(2*Math.PI)){let e=Math.sin(this._rotation),t=Math.cos(this._rotation);this._setLocalTransform(t*this._scaleX,-e*this._scaleY,e*this._scaleX,t*this._scaleY)}else this._setLocalTransform(this._scaleX,0,0,this._scaleY);this._updateLocalTranslate()}_updateLocalTranslate(){this._recalcLocalTranslate(),this._triggerRecalcTranslate()}_recalcLocalTranslate(){let e=this._pivotX*this._w,t=this._pivotY*this._h,i=this._x-(e*this._localTa+t*this._localTb)+e,s=this._y-(e*this._localTc+t*this._localTd)+t;i-=this._mountX*this._w,s-=this._mountY*this._h,this._localPx=i,this._localPy=s}_updateLocalTranslateDelta(e,t){this._addLocalTranslate(e,t)}_updateLocalAlpha(){this._setLocalAlpha(this._visible?this._alpha:0)}setHasRenderUpdates(e){if(this._worldContext.alpha){let t=this;for(t._hasRenderUpdates=Math.max(e,t._hasRenderUpdates);(t=t._parent)&&t._hasRenderUpdates!==3;)t._hasRenderUpdates=3}}_setRecalc(e){this._recalc|=e,this._setHasUpdates(),this._parent&&this._parent.setHasRenderUpdates(3)}_setHasUpdates(){let e=this;for(;e&&!e._hasUpdates;)e._hasUpdates=!0,e=e._parent}getParent(){return this._parent}setParent(e){if(e!==this._parent){let t=this.isZContext(),i=this._parent;if(this._parent=e,(this._layout||e&&e.isFlexContainer())&&this.layout.setParent(i,e),i&&i.setHasRenderUpdates(3),this._setRecalc(1+2+4),this._parent&&this._parent._setHasUpdates(),this._zIndex===0?this.setZParent(e):this.setZParent(e?e.findZContext():null),t!==this.isZContext()&&(this.isZContext()?this.enableZContext(i.findZContext()):this.disableZContext()),this._zIndexResort=!0,this._zParent&&this._zParent.enableZSort(),!this._shader){let s=e&&!e._renderToTextureEnabled?e._shaderOwner:null;s!==this._shaderOwner&&(this.setHasRenderUpdates(1),this._setShaderOwnerRecursive(s))}}}enableZSort(e=!1){!this._zSort&&this._zContextUsage>0&&(this._zSort=!0,e&&this.ctx.forceZSort(this))}addChildAt(e,t){this._children||(this._children=[]),this._children.splice(e,0,t),t.setParent(this)}setChildAt(e,t){this._children||(this._children=[]),this._children[e].setParent(null),this._children[e]=t,t.setParent(this)}removeChildAt(e){let t=this._children[e];this._children.splice(e,1),t.setParent(null)}removeChildren(){if(this._children){for(let e=0,t=this._children.length;e0;this._zIndex!==0&&e.incZContextUsage(),e._zContextUsage>0&&(!t&&this._parent===e||e._zIndexedChildren.push(this),e.enableZSort())}this._zParent=e,this._zIndexResort=!0}}incZContextUsage(){if(this._zContextUsage++,this._zContextUsage===1&&(this._zIndexedChildren||(this._zIndexedChildren=[]),this._children)){for(let e=0,t=this._children.length;e0&&this._getZIndexedDescs().forEach(i=>{this.isAncestorOf(i)&&i._zIndex!==0&&i.setZParent(this)})}_getZIndexedDescs(){let e=[];if(this._children)for(let t=0,i=this._children.length;t0){let e=this._parent.findZContext();this._zSort&&this.sortZIndexedChildren(),this._zIndexedChildren.slice().forEach(function(t){t._zIndex!==0&&t.setZParent(e)})}}get colorUl(){return this._colorUl}set colorUl(e){this._colorUl!==e&&(this.setHasRenderUpdates(this._displayedTextureSource?3:1),this._colorUl=e)}get colorUr(){return this._colorUr}set colorUr(e){this._colorUr!==e&&(this.setHasRenderUpdates(this._displayedTextureSource?3:1),this._colorUr=e)}get colorBl(){return this._colorBl}set colorBl(e){this._colorBl!==e&&(this.setHasRenderUpdates(this._displayedTextureSource?3:1),this._colorBl=e)}get colorBr(){return this._colorBr}set colorBr(e){this._colorBr!==e&&(this.setHasRenderUpdates(this._displayedTextureSource?3:1),this._colorBr=e)}set onUpdate(e){this._onUpdate=e,this._setRecalc(7)}set onAfterUpdate(e){this._onAfterUpdate=e,this._setRecalc(7)}set onAfterCalcs(e){this._onAfterCalcs=e,this._setRecalc(7)}get shader(){return this._shader}set shader(e){this.setHasRenderUpdates(1);let t=this._shader;if(this._shader=e,!e&&t){let i=this._parent&&!this._parent._renderToTextureEnabled?this._parent._shaderOwner:null;this._setShaderOwnerRecursive(i)}else e&&this._setShaderOwnerRecursive(this)}get activeShader(){return this._shaderOwner?this._shaderOwner.shader:this.renderState.defaultShader}get activeShaderOwner(){return this._shaderOwner}get clipping(){return this._clipping}set clipping(e){this._clipping!==e&&(this._clipping=e,this._setRecalc(1+2))}get clipbox(){return this._clipbox}set clipbox(e){this._clipbox=e}_setShaderOwnerRecursive(e){if(this._shaderOwner=e,this._children&&!this._renderToTextureEnabled)for(let t=0,i=this._children.length;t1e-14}get outOfBounds(){return this._outOfBounds}set boundsMargin(e){this._boundsMargin=e?e.slice():null,this._triggerRecalcTranslate()}get boundsMargin(){return this._boundsMargin}update(){this._recalc|=this._parent._pRecalc,this._layout&&this._layout.isEnabled()?this._recalc&256&&this._layout.layoutFlexTree():this._recalc&2&&this._optFlags&&this._applyRelativeDimFuncs(),this._onUpdate&&(this._hasUpdates=!0,this._onUpdate(this.element,this));let e=this._parent._worldContext,t=this._worldContext,i=e.alpha&&this._localAlpha;if(this._hasUpdates||this._recalc&&i||t.alpha&&!i){let s=this._recalc;s&1&&(!t.alpha&&i&&(this._hasRenderUpdates=3),t.alpha=e.alpha*this._localAlpha,t.alpha<1e-14&&(t.alpha=0)),s&6&&(t.px=e.px+this._localPx*e.ta,t.py=e.py+this._localPy*e.td,e.tb!==0&&(t.px+=this._localPy*e.tb),e.tc!==0&&(t.py+=this._localPx*e.tc)),s&4&&(t.ta=this._localTa*e.ta,t.tb=this._localTd*e.tb,t.tc=this._localTa*e.tc,t.td=this._localTd*e.td,this._isComplex&&(t.ta+=this._localTc*e.tb,t.tb+=this._localTb*e.ta,t.tc+=this._localTc*e.td,t.td+=this._localTb*e.tc));let n=this._parent._renderContext;if(this._parent._hasRenderContext()){let C=this._renderContext===this._worldContext;C&&(this._renderContext=new Tt);let v=this._renderContext;(C||s&1)&&(v.alpha=n.alpha*this._localAlpha,v.alpha<1e-14&&(v.alpha=0)),(C||s&6)&&(v.px=n.px+this._localPx*n.ta,v.py=n.py+this._localPy*n.td,n.tb!==0&&(v.px+=this._localPy*n.tb),n.tc!==0&&(v.py+=this._localPx*n.tc)),C&&(s|=2),(C||s&4)&&(v.ta=this._localTa*n.ta,v.tb=this._localTd*n.tb,v.tc=this._localTa*n.tc,v.td=this._localTd*n.td,this._isComplex&&(v.ta+=this._localTc*n.tb,v.tb+=this._localTb*n.ta,v.tc+=this._localTc*n.td,v.td+=this._localTb*n.tc))}else this._renderContext=this._worldContext;this.ctx.updateTreeOrder===-1?this.ctx.updateTreeOrder=this._updateTreeOrder+1:this._updateTreeOrder=this.ctx.updateTreeOrder++;let o=this._renderToTextureEnabled&&this._texturizer.mustRenderToTexture();this._useRenderToTexture!==o&&(this._recalc|=2+4,s|=2,this._useRenderToTexture||this._texturizer.release()),this._useRenderToTexture=o;let a=this._renderContext,l=this._dimsUnknown?2048:this._w,d=this._dimsUnknown?2048:this._h,p,_,g,m,A=a.tb!==0||a.tc!==0||a.ta<0||a.td<0;if(A?(p=Math.min(0,l*a.ta,l*a.ta+d*a.tb,d*a.tb)+a.px,g=Math.max(0,l*a.ta,l*a.ta+d*a.tb,d*a.tb)+a.px,_=Math.min(0,l*a.tc,l*a.tc+d*a.td,d*a.td)+a.py,m=Math.max(0,l*a.tc,l*a.tc+d*a.td,d*a.td)+a.py):(p=a.px,g=a.px+a.ta*l,_=a.py,m=a.py+a.td*d),this._dimsUnknown&&(A||this._localTa<1||this._localTb<1)){let C=this._x*n.ta+this._y*n.tb+n.px,v=this._x*n.tc+this._y*n.td+n.py;Cg&&(g=C),v>m&&(m=v)}if(s&6||!this._scissor)if(this._clipping&&a.isSquare()){let C=this._parent._useRenderToTexture?this._parent._viewport:this._parent._scissor;if(C){let v=Math.max(C[0],p),w=Math.max(C[1],_);this._scissor=[v,w,Math.min(C[2]+C[0],g)-v,Math.min(C[3]+C[1],m)-w]}else this._scissor=[p,_,g-p,m-_]}else this._scissor=this._parent._useRenderToTexture?this._parent._viewport:this._parent._scissor;if(this._boundsMargin?this._recBoundsMargin=this._boundsMargin:this._recBoundsMargin=this._parent._recBoundsMargin,this._onAfterCalcs&&this._onAfterCalcs(this.element)&&(A?(p=Math.min(0,l*a.ta,l*a.ta+d*a.tb,d*a.tb)+a.px,g=Math.max(0,l*a.ta,l*a.ta+d*a.tb,d*a.tb)+a.px,_=Math.min(0,l*a.tc,l*a.tc+d*a.td,d*a.td)+a.py,m=Math.max(0,l*a.tc,l*a.tc+d*a.td,d*a.td)+a.py):(p=a.px,g=a.px+a.ta*l,_=a.py,m=a.py+a.td*d),this._dimsUnknown&&(A||this._localTa<1||this._localTb<1))){let C=this._x*n.ta+this._y*n.tb+n.px,v=this._x*n.tc+this._y*n.td+n.py;Cg&&(g=C),v>m&&(m=v)}if(this._parent._outOfBounds===2)this._outOfBounds=2,this._withinBoundsMargin&&(this._withinBoundsMargin=!1,this.element._disableWithinBoundsMargin());else if(s&6){this._outOfBounds=0;let C=!0;if((!this._renderToTextureEnabled||!this._texturizer||!this._texturizer.renderOffscreen)&&(this._scissor&&(this._scissor[2]<=0||this._scissor[3]<=0)?this._outOfBounds=2:((this._scissor[0]>g||this._scissor[1]>m||p>this._scissor[0]+this._scissor[2]||_>this._scissor[1]+this._scissor[3])&&(this._outOfBounds=1),this._outOfBounds&&(this._clipping||this._useRenderToTexture||this._clipbox&&l&&d)&&(this._outOfBounds=2)),C=this._outOfBounds===0,C||(this._recBoundsMargin?C=!(gthis._scissor[0]+this._scissor[2]+this._recBoundsMargin[0]||_>this._scissor[1]+this._scissor[3]+this._recBoundsMargin[1]):C=!(gthis._scissor[0]+this._scissor[2]+100||_>this._scissor[1]+this._scissor[3]+100),C&&this._outOfBounds===2&&(this._outOfBounds=1))),this._withinBoundsMargin!==C)if(this._withinBoundsMargin=C,this._withinBoundsMargin){this._hasUpdates=!0;let v=this._recalc;if(this._recalc=0,this.element._enableWithinBoundsMargin(),this._recalc)return this.update();this._recalc=v}else this.element._disableWithinBoundsMargin()}if(this._useRenderToTexture&&(this._viewport?(this._viewport[2]=l,this._viewport[3]=d):this._viewport=[0,0,l,d]),this._pRecalc=this._recalc&135,this._recalc=0,this._hasUpdates=!1,this._outOfBounds<2){if(this._useRenderToTexture&&(this._worldContext.isIdentity()?this._renderContext=this._worldContext:this._renderContext=Tt.IDENTITY),this._children)for(let C=0,v=this._children.length;C=this.ctx.updateTreeOrder?this.ctx.updateTreeOrder=-1:this.updateTreeOrder()}_applyRelativeDimFuncs(){if(this._optFlags&1){let t=this._funcX(this._parent.w);t!==this._x&&(this._localPx+=t-this._x,this._x=t)}if(this._optFlags&2){let t=this._funcY(this._parent.h);t!==this._y&&(this._localPy+=t-this._y,this._y=t)}let e=!1;if(this._optFlags&4){let t=this._funcW(this._parent.w);t!==this._w&&(this._w=t,e=!0)}if(this._optFlags&8){let t=this._funcH(this._parent.h);t!==this._h&&(this._h=t,e=!0)}e&&(this._recalcLocalTranslate(),this.element.onDimensionsChanged(this._w,this._h))}updateOutOfBounds(){if(this._outOfBounds!==2&&this._renderContext.alpha>0&&(this._outOfBounds=2,this._withinBoundsMargin&&(this._withinBoundsMargin=!1,this.element._disableWithinBoundsMargin()),this._children))for(let e=0,t=this._children.length;e=3){if(this.ctx.renderToTextureCount++,t.setShader(t.defaultShader,this),n=t.renderTextureInfo,s={nativeTexture:null,offset:0,w:this._w,h:this._h,empty:!0,cleared:!1,ignore:!1,cache:!1},(this._texturizer.hasResultTexture()||!t.isCachingTexturizer&&e<3)&&(s.cache=!0,t.isCachingTexturizer=!0),this._texturizer.hasResultTexture()||this._texturizer.releaseRenderTexture(),t.setRenderTextureInfo(s),t.setScissor(null),this._displayedTextureSource){let o=this._renderContext;this._renderContext=Tt.IDENTITY,this.renderState.addQuad(this),this._renderContext=o}}else i=!1}else this._outOfBounds===0&&this._displayedTextureSource&&(t.setShader(this.activeShader,this._shaderOwner),t.setScissor(this._scissor),this.renderState.addQuad(this));if(i&&this._children)if(this._zContextUsage)for(let o=0,a=this._zIndexedChildren.length;o0?s[l++]:i[a++];if((t===0||d[t-1]!==_)&&(d[t++]=_),a>=o){do{let g=s[l++];(t===0||d[t-1]!==g)&&(d[t++]=g)}while(l=n){do{let g=i[a++];(t===0||d[t-1]!==g)&&(d[t++]=g)}while(at&&i.splice(t)}}else i.length>t&&i.splice(t);this._zSort=!1}get localTa(){return this._localTa}get localTb(){return this._localTb}get localTc(){return this._localTc}get localTd(){return this._localTd}get element(){return this._element}get renderUpdates(){return this._hasRenderUpdates}get texturizer(){return this._texturizer||(this._texturizer=new ln(this)),this._texturizer}getCornerPoints(){let e=this._worldContext;return[e.px,e.py,e.px+this._w*e.ta,e.py+this._w*e.tc,e.px+this._w*e.ta+this._h*e.tb,e.py+this._w*e.tc+this._h*e.td,e.px+this._h*e.tb,e.py+this._h*e.td]}getRenderTextureCoords(e,t){let i=this._renderContext;return[i.px+i.ta*e+i.tb*t,i.py+i.tc*e+i.td*t]}getAbsoluteCoords(e,t){let i=this._renderContext;return[i.px+i.ta*e+i.tb*t,i.py+i.tc*e+i.td*t]}collectAtCoord(e,t,i){if(this._renderContext.alpha!==0){if(this.inBound(e,t)&&(this._scissor?this.inScissor()&&i.push(this):i.push(this)),this._children){let s=this._children.length;for(let n=0;ni[0]&&ei[1]&&t=e[0]&&t[0]<=e[0]+e[2]&&t[7]>=e[1]&&t[1]<=e[1]+e[3]}get layout(){return this._ensureLayout(),this._layout}get flex(){return this._layout?this._layout.flex:null}set flex(e){this.layout.flex=e}get flexItem(){return this._layout?this._layout.flexItem:null}set flexItem(e){this.layout.flexItem=e}isFlexItem(){return!!this._layout&&this._layout.isFlexItemEnabled()}isFlexContainer(){return!!this._layout&&this._layout.isFlexEnabled()}enableFlexLayout(){this._ensureLayout()}_ensureLayout(){this._layout||(this._layout=new ul(this))}disableFlexLayout(){this._triggerRecalcTranslate()}hasFlexLayout(){return this._layout&&this._layout.isEnabled()}setLayout(e,t,i,s){this.x=e,this.y=t,this._updateDimensions(i,s)}triggerLayout(){this._setRecalc(256)}_triggerRecalcTranslate(){this._setRecalc(2)}},Tt=class{constructor(){this.alpha=1,this.px=0,this.py=0,this.ta=1,this.tb=0,this.tc=0,this.td=1}isIdentity(){return this.alpha===1&&this.px===0&&this.py===0&&this.ta===1&&this.tb===0&&this.tc===0&&this.td===1}isSquare(){return this.tb===0&&this.tc===0}};Tt.IDENTITY=new Tt;Si.sortZIndexedChildren=function(r,e){return r._zIndex===e._zIndex?r._updateTreeOrder-e._updateTreeOrder:r._zIndex-e._zIndex};var ze=class r{constructor(){this._hasEventListeners=!1}on(e,t){this._hasEventListeners||(this._eventFunction={},this._eventListeners={},this._hasEventListeners=!0),this._eventFunction[e]?this._eventFunction[e]!==r.combiner?(this._eventListeners[e]=[this._eventFunction[e],t],this._eventFunction[e]=r.combiner):this._eventListeners[e].push(t):this._eventFunction[e]=t}once(e,t){let i=(s,n,o)=>{t(s,n,o),this.off(e,i)};i.__originalFunc=t,this.on(e,i)}has(e,t){if(this._hasEventListeners){let i=this._eventFunction[e];if(i){if(i===r.combiner){let s=this._eventListeners[e];for(let n of s)if(n===t||n.__originalFunc==t)return!0}else if(this._eventFunction[e]===t||this._eventFunction[e].__originalFunc===t)return!0}}return!1}off(e,t){if(this._hasEventListeners){let i=this._eventFunction[e];if(i)if(i===r.combiner){let s=this._eventListeners[e],n=s.indexOf(t);n>=0&&s.splice(n,1),n=s.map(o=>o.__originalFunc).indexOf(t),n>=0&&s.splice(n,1),s.length===1&&(this._eventFunction[e]=s[0],this._eventListeners[e]=void 0)}else(this._eventFunction[e]===t||this._eventFunction[e].__originalFunc===t)&&(this._eventFunction[e]=void 0)}}removeListener(e,t){this.off(e,t)}emit(e,t,i,s){if(this._hasEventListeners){let n=this._eventFunction[e];n&&(n===r.combiner?n(this,e,t,i,s):n(t,i,s))}}listenerCount(e){if(this._hasEventListeners){let t=this._eventFunction[e];if(t)return t===r.combiner?this._eventListeners[e].length:1}return 0}removeAllListeners(e){this._hasEventListeners&&(delete this._eventFunction[e],delete this._eventListeners[e])}};ze.combiner=function(r,e,t,i,s){let n=r._eventListeners[e];if(n)for(let o of[...n])o(t,i,s)};ze.addAsMixin=function(r){r.prototype.on=ze.prototype.on,r.prototype.once=ze.prototype.once,r.prototype.has=ze.prototype.has,r.prototype.off=ze.prototype.off,r.prototype.removeListener=ze.prototype.removeListener,r.prototype.emit=ze.prototype.emit,r.prototype.listenerCount=ze.prototype.listenerCount,r.prototype.removeAllListeners=ze.prototype.removeAllListeners};var lr=class{constructor(e){this._initialized=!1,this.ctx=e,this._elements=new Set}static create(e,t){let i;if(z.isObjectLiteral(t))t.type?i=e.renderer.createShader(e.ctx,t):i=this.shader,i&&He.patchObject(i,t);else if(t===null)i=e.ctx.renderState.defaultShader;else if(t===void 0)i=null;else if(t.isShader)e.renderer.isValidShaderType(t.constructor)||(console.error("[Lightning] Invalid shader type"),t=null),i=t;else{console.error("[Lightning] Please specify a shader type.");return}return i}static getWebGL(){}static getC2d(){}addElement(e){this._elements.add(e)}removeElement(e){this._elements.delete(e),this._elements||this.cleanup()}redraw(){this._elements.forEach(e=>{e.setHasRenderUpdates(2)})}patch(e){He.patchObject(this,e)}useDefault(){return!1}addEmpty(){return!1}cleanup(){}get isShader(){return!0}},lt=class r{constructor(e){this.stage=e,this.manager=this.stage.textureManager,this.id=r.id++,this.elements=new Set,this._activeCount=0,this._source=null,this._resizeMode=null,this._x=0,this._y=0,this._w=0,this._h=0,this._precision=1,this.mw=0,this.mh=0,this.clipping=!1,this._mustUpdate=!0}get source(){return(this._mustUpdate||this.stage.hasUpdateSourceTexture(this))&&(this._performUpdateSource(!0),this.stage.removeUpdateSourceTexture(this)),this._source}addElement(e){this.elements.has(e)||(this.elements.add(e),this.elements.size===1&&this._source&&this._source.addTexture(this),e.active&&this.incActiveCount())}removeElement(e){this.elements.delete(e)&&(this.elements.size===0&&this._source&&this._source.removeTexture(this),e.active&&this.decActiveCount())}incActiveCount(){this.source&&this._checkForNewerReusableTextureSource(),this._activeCount++,this._activeCount===1&&this.becomesUsed()}decActiveCount(){this.source,this._activeCount--,this._activeCount||this.becomesUnused()}becomesUsed(){this.source&&this.source.incActiveTextureCount()}onLoad(){this._resizeMode&&this._applyResizeMode(),this.elements.forEach(e=>{e.active&&e.onTextureSourceLoaded()})}_checkForNewerReusableTextureSource(){let e=this.source;if(e.isLoaded())this._resizeMode&&this._applyResizeMode();else{let t=this._getReusableTextureSource();t&&t.isLoaded()&&t!==e&&this._replaceTextureSource(t)}}becomesUnused(){this.source&&this.source.decActiveTextureCount()}isUsed(){return this._activeCount>0}_getLookupId(){return null}_getSourceLoader(){throw new Error("Texture.generate must be implemented.")}get isValid(){return this._getIsValid()}_getIsValid(){return!0}_changed(){this.isUsed()?this._updateSource():this._mustUpdate=!0}_updateSource(){this.stage.addUpdateSourceTexture(this)}_performUpdateSource(e=!1){if(e||this.isUsed()){this._mustUpdate=!1;let t=this._getTextureSource();this._replaceTextureSource(t)}}_getTextureSource(){let e=null;if(this._getIsValid()){let t=this._getLookupId();e=this._getReusableTextureSource(t),e||(e=this.manager.getTextureSource(this._getSourceLoader(),t))}return e}_getReusableTextureSource(e=this._getLookupId()){return this._getIsValid()&&e?this.manager.getReusableTextureSource(e):null}_replaceTextureSource(e=null){let t=this._source;if(this._source=e,this.elements.size&&(t&&(this._activeCount&&t.decActiveTextureCount(),t.removeTexture(this),this.text&&!t.isUsed()&&this.manager.freeTextureSource(t)),e&&(e.addTexture(this),this._activeCount&&e.incActiveTextureCount())),this.isUsed())if(e)if(e.isLoaded())this._resizeMode&&this._applyResizeMode(),this.elements.forEach(i=>{i.active&&i._setDisplayedTexture(this)});else{let i=e.loadError;i&&this.elements.forEach(s=>{s.active&&s.onTextureSourceLoadError(i)})}else this.elements.forEach(i=>{i.active&&i._setDisplayedTexture(null)})}load(){this.source&&(this.isLoaded()||this.source.load(!0))}isLoaded(){return this._source&&this._source.isLoaded()}get loadError(){return this._source&&this._source.loadError}free(){this._source&&this._source.free()}set resizeMode({type:e="cover",w:t=0,h:i=0,clipX:s=.5,clipY:n=.5}){this._resizeMode={type:e,w:t,h:i,clipX:s,clipY:n},this.isLoaded()&&this._applyResizeMode()}get resizeMode(){return this._resizeMode}_clearResizeMode(){this._resizeMode=null}_applyResizeMode(){this._resizeMode.type==="cover"?this._applyResizeCover():this._resizeMode.type==="contain"&&this._applyResizeContain(),this._updatePrecision(),this._updateClipping()}_applyResizeCover(){let e=this._resizeMode.w/this._source.w,t=this._resizeMode.h/this._source.h,i=Math.max(e,t);if(i){if(this._precision=1/i,e&&e=65&&i<=90||i>=97&&i<=122||i==46)&&(e=this.stage.getOption("srcBasePath")+e)}return s=>this.stage.platform.loadSrcTexture({src:e,hasAlpha:t},s)}getNonDefaults(){let e=super.getNonDefaults();return this._src&&(e.src=this._src),e}};function un(r,e,t,i,s){let n=r;Array.isArray(n)||(n=[n]);let o=[];for(let a=0,l=n.length;an!="")}function hn(r,e,t=0){return t?e.split("").reduce((i,s)=>Cd(s)?i:i+r.measureText(s).width+t,0):r.measureText(e).width}function L2(r,e,t,i,s){let n=/ |\u200B/g,o=e.split(/\r?\n/g),a=[],l=[];for(let d=0;dg?(C>0&&(p.push(_),_=""),_+=w,g=t-D-(C===0?s:0)):(g-=B,_+=v+w)}p.push(_),_="",a=a.concat(p),d{console.warn("[Lightning] Font load error",t,e)}).then(()=>{document.fonts.check(e,this._settings.text)||console.warn("[Lightning] Font not found",e)})}catch{console.warn("[Lightning] Can't check font loading for "+e)}}}draw(){let e=this._load();return e?e.then(()=>z.isSpark?this._stage.platform.drawText(this):this._draw()):z.isSpark?this._stage.platform.drawText(this):this._draw()}_calculateRenderInfo(){let e={},t=this.getPrecision(),i=this._settings.paddingLeft*t,s=this._settings.paddingRight*t,n=this._settings.fontSize*t,o=this._settings.offsetY===null?null:this._settings.offsetY*t,a=this._settings.lineHeight*t,l=this._settings.w*t,d=this._settings.h*t,p=this._settings.wordWrapWidth*t,_=this._settings.cutSx*t,g=this._settings.cutEx*t,m=this._settings.cutSy*t,A=this._settings.cutEy*t,C=(this._settings.letterSpacing||0)*t,v=this._settings.textIndent*t;this.setFontProperties();let w=l||this._stage.getOption("w"),D=w-i;if(D<10&&(w+=10-D,D=10),p||(p=D),this._settings.textOverflow&&!this._settings.wordWrap){let W;switch(this._settings.textOverflow){case"clip":W="";break;case"ellipsis":W=this._settings.maxLinesSuffix;break;default:W=this._settings.textOverflow}this._settings.text=this.wrapWord(this._settings.text,p-v,W)}let B;if(this._settings.wordWrap)B=this.wrapText(this._settings.text,p,C,v);else{B={l:this._settings.text.split(/(?:\r\n|\r|\n)/),n:[]};let W=B.l.length;for(let $=0;$this._settings.maxLines){let W=F.slice(0,this._settings.maxLines),$=null;if(this._settings.maxLinesSuffix){let L=this._settings.maxLinesSuffix?this.measureText(this._settings.maxLinesSuffix):0,R=this.wrapText(W[W.length-1],p-L,C,v);W[W.length-1]=R.l[0]+this._settings.maxLinesSuffix,$=[R.l.length>1?R.l[1]:""]}else $=[""];let j,se=F.length,J=0,Q=B.n.length;for(j=this._settings.maxLines;j=128&&(this._context.globalAlpha=.01,this._context.fillRect(0,0,.01,.01),this._context.globalAlpha=1),(e.cutSx||e.cutSy)&&this._context.translate(-e.cutSx,-e.cutSy);let i,s,n=[];for(let a=0,l=e.lines.length;at)for(;a>0&&(l=this.measureText(e.substring(0,a))+s,l>t);)a-=1;else for(;a=s?i:"")}wrapText(e,t,i,s=0){return L2(this._context,e,t,i,s)}measureText(e,t=0){return hn(this._context,e,t)}},dn=class{constructor(e,t,i){this._stage=e,this._canvas=t,this._context=this._canvas.getContext("2d"),this._settings=i}getPrecision(){return this._settings.precision}setFontProperties(){let e=un(this._settings.fontFace,this._settings.fontStyle,this._settings.fontSize,this.getPrecision(),this._stage.getOption("defaultFontFace"));return this._context.font=e,this._context.textBaseline=this._settings.textBaseline,e}_load(){if(z.isWeb&&document.fonts){let e=un(this._settings.fontFace,this._settings.fontStyle,this._settings.fontSize,this.getPrecision(),this._stage.getOption("defaultFontFace"));try{if(!document.fonts.check(e,this._settings.text))return document.fonts.load(e,this._settings.text).catch(t=>{console.warn("Font load error",t,e)}).then(()=>{document.fonts.check(e,this._settings.text)||console.warn("Font not found",e)})}catch{console.warn("Can't check font loading for "+e)}}}draw(){let e=this._load();return e?e.then(()=>z.isSpark?this._stage.platform.drawText(this):this._draw()):z.isSpark?this._stage.platform.drawText(this):this._draw()}_calculateRenderInfo(){let e={},t=this.getPrecision(),i=this._settings.paddingLeft*t,s=this._settings.paddingRight*t,n=this._settings.fontSize*t,o=this._settings.lineHeight*t||n,a=this._settings.w!=0?this._settings.w*t:this._stage.getOption("w"),l=this._settings.wordWrapWidth*t,d=this._settings.cutSx*t,p=this._settings.cutEx*t,_=this._settings.cutSy*t,g=this._settings.cutEy*t,m=this._settings.letterSpacing||0;e.baseFont=this.setFontProperties(),e.w=a,e.width=a,e.text=this._settings.text,e.precision=t,e.fontSize=n,e.fontBaselineRatio=this._settings.fontBaselineRatio,e.lineHeight=o,e.letterSpacing=m,e.textAlign=this._settings.textAlign,e.textColor=this._settings.textColor,e.verticalAlign=this._settings.verticalAlign,e.highlight=this._settings.highlight,e.highlightColor=this._settings.highlightColor,e.highlightHeight=this._settings.highlightHeight,e.highlightPaddingLeft=this._settings.highlightPaddingLeft,e.highlightPaddingRight=this._settings.highlightPaddingRight,e.highlightOffset=this._settings.highlightOffset,e.paddingLeft=this._settings.paddingLeft,e.paddingRight=this._settings.paddingRight,e.maxLines=this._settings.maxLines,e.maxLinesSuffix=this._settings.maxLinesSuffix,e.textOverflow=this._settings.textOverflow,e.wordWrap=this._settings.wordWrap,e.wordWrapWidth=l,e.shadow=this._settings.shadow,e.shadowColor=this._settings.shadowColor,e.shadowOffsetX=this._settings.shadowOffsetX,e.shadowOffsetY=this._settings.shadowOffsetY,e.shadowBlur=this._settings.shadowBlur,e.cutSx=d,e.cutEx=p,e.cutSy=_,e.cutEy=g,e.textIndent=this._settings.textIndent*t,e.wordBreak=this._settings.wordBreak;let A=e.text,C=e.wordWrap&&e.wordWrapWidth||e.width;if(e.textOverflow&&!e.wordWrap){let F;switch(this._settings.textOverflow){case"clip":F="";break;case"ellipsis":F=this._settings.maxLinesSuffix;break;default:F=this._settings.textOverflow}A=this.wrapWord(A,l||e.w,F)}A=this.tokenize(A),A=this.parse(A),A=this.measure(A,m,e.baseFont),e.textIndent&&(A=this.indent(A,e.textIndent)),e.wordBreak&&(A=A.reduce((F,E)=>F.concat(this.wordBreak(E,C,e.baseFont)),[]),this.resetFontStyle());let v=i,w=0;for(let F of A)(e.wordWrap&&v+F.width>C||F.text==` -`)&&(v=i,w+=1),F.lineNo=w,F.text!=` -`&&(F.x=v,v+=F.width);e.lineNum=w+1,this._settings.h?e.h=this._settings.h:e.maxLines&&e.maxLinesE+O.width,0);if(e.width=this._settings.w!=0?this._settings.w*t:Math.max(...e.lines.map(F=>F.width))+s,e.w=e.width,e.maxLines&&e.lineNum>e.maxLines&&e.maxLinesSuffix){let F=e.maxLines-1,E=A.filter($=>$.lineNo==F),O=e.maxLinesSuffix;O=this.tokenize(O),O=this.parse(O),O=this.measure(O,e.letterSpacing,e.baseFont);for(let $ of O)$.lineNo=F,$.x=0,E.push($);let M=O.length+1,W=E.reduce(($,j)=>$+j.width,0);for(;(W>e.width||Sd(E[E.length-M].text))&&(E.splice(E.length-M,1),W=E.reduce(($,j)=>$+j.width,0),!(E.length=128&&(this._context.globalAlpha=.01,this._context.fillRect(0,0,.01,.01),this._context.globalAlpha=1),(e.cutSx||e.cutSy)&&this._context.translate(-e.cutSx,-e.cutSy),e.highlight){let d=e.highlightColor||0,p=e.highlightHeight?e.highlightHeight*t:e.fontSize*1.5,_=e.highlightOffset?e.highlightOffset*t:0,g=e.highlightPaddingLeft!==null?e.highlightPaddingLeft*t:e.paddingLeft,m=e.highlightPaddingRight!==null?e.highlightPaddingRight*t:e.paddingRight;this._context.fillStyle=ie.getRgbaString(d);let A=e.maxLines?Math.min(e.maxLines,e.lineNum):e.lineNum;for(let C=0;C=e.maxLines))if(p.color!=l&&(l=p.color,this._context.fillStyle=l),this._context.font=p.fontStyle,p.letters)for(let g of p.letters){let m=e.lines[p.lineNo].x+p.x+_;this._context.fillText(g.text,m,e.lines[p.lineNo].y+e.fontSize),_+=g.width}else{let g=e.lines[p.lineNo].x+p.x;this._context.fillText(p.text,g,e.lines[p.lineNo].y+e.fontSize)}}o&&(this._context.shadowColor=o[0],this._context.shadowOffsetX=o[1],this._context.shadowOffsetY=o[2],this._context.shadowBlur=o[3]),(e.cutSx||e.cutSy)&&this._context.translate(e.cutSx,e.cutSy),e.lines=e.lines.map(d=>d.text.reduce((p,_)=>p+_.text,"")),e.maxLines&&(e.lines=e.lines.slice(0,e.maxLines)),this.renderInfo=e}measureText(e,t=0){return hn(this._context,e,t)}tokenize(e){return O2(/ |\u200B|\n||<\/i>||<\/b>||<\/color>/g,e)}parse(e){let t=0,i=0,s=[ie.getRgbaString(this._settings.textColor)],n=0,o=//;return e.map(a=>{if(a=="")t+=1,a="";else if(a==""&&t>0)t-=1,a="";else if(a=="")i+=1,a="";else if(a==""&&i>0)i-=1,a="";else if(a=="")s.length>1&&(n-=1,s.pop()),a="";else if(o.test(a)){let l=o.exec(a);s.push(ie.getRgbaString(parseInt(l[1]))),n+=1,a=""}return{text:a,italic:t,bold:i,color:s[n]}}).filter(a=>a.text!="")}applyFontStyle(e,t){let i=t;e.bold&&(i="bold "+i),e.italic&&(i="italic "+i),this._context.font=i,e.fontStyle=i}resetFontStyle(e){this._context.font=e}measure(e,t=0,i){for(let s of e)if(this.applyFontStyle(s,i),s.width=this.measureText(s.text,t),t>0){s.letters=s.text.split("").map(n=>({text:n}));for(let n of s.letters)n.width=this.measureText(n.text,t)}return this.resetFontStyle(i),e}indent(e,t){return e.splice(0,0,{text:"",width:t}),e}wrapWord(e,t,i){let s=this.measureText(i),n=e.length,o=this.measureText(e);if(o<=t)return e;let a=Math.floor(t*n/o),l=this.measureText(e.substring(0,a))+s;if(l>t)for(;a>0&&(l=this.measureText(e.substring(0,a))+s,l>t);)a-=1;else for(;a=s?i:"")}_getBreakIndex(e,t){let i=e.length,s=this.measureText(e);if(s<=t)return{breakIndex:e.length,truncWordWidth:s};let n=Math.floor(t*i/s),o=this.measureText(e.substring(0,n));if(o>t)for(;n>0&&(o=this.measureText(e.substring(0,n)),o>t);)n-=1;else for(;n=t?(s.push({...e}),s[s.length-1].text=n.slice(0,l),s[s.length-1].width=o,s[s.length-1].letters=a,n=n.slice(l),o=0,a=[],l=0):(l+=1,a.push(d),o+=d.width);o>0&&(s.push({...e}),s[s.length-1].text=n.slice(0,l),s[s.length-1].width=o,s[s.length-1].letters=a)}else for(;;){let{breakIndex:o,truncWordWidth:a}=this._getBreakIndex(n,t);if(s.push({...e}),s[s.length-1].text=n.slice(0,o),s[s.length-1].width=a,o===n.length)break;n=n.slice(o)}return s}alignLine(e,t=0){let i=0,s=t;for(let n of e)n.text!=` -`&&(n.x=s+i,s=n.x,i=n.width)}},Dt=class extends lt{constructor(e){super(e),this._precision=this.stage.getOption("precision")}static renderer(e,t,i){return this.advancedRenderer?new dn(e,t,i):new cn(e,t,i)}get text(){return this._text}set text(e){this._text!==e&&(this._text=""+e,this._changed())}get w(){return this._w}set w(e){this._w!==e&&(this._w=e,this._changed())}get h(){return this._h}set h(e){this._h!==e&&(this._h=e,this._changed())}get fontStyle(){return this._fontStyle}set fontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this._changed())}get fontBaselineRatio(){return this._fontBaselineRatio}set fontBaselineRatio(e){this._fontBaselineRatio!==e&&(this._fontBaselineRatio=e,this._changed())}get fontSize(){return this._fontSize}set fontSize(e){this._fontSize!==e&&(this._fontSize=e,this._changed())}get fontFace(){return this._fontFace}set fontFace(e){this._fontFace!==e&&(this._fontFace=e,this._changed())}get wordWrap(){return this._wordWrap}set wordWrap(e){this._wordWrap!==e&&(this._wordWrap=e,this._changed())}get wordWrapWidth(){return this._wordWrapWidth}set wordWrapWidth(e){this._wordWrapWidth!==e&&(this._wordWrapWidth=e,this._changed())}get wordBreak(){return this._wordBreak}set wordBreak(e){this._wordBreak!==e&&(this._wordBreak=e,this._changed())}get textOverflow(){return this._textOverflow}set textOverflow(e){e!=this._textOverflow&&(this._textOverflow=e,this._changed())}get lineHeight(){return this._lineHeight}set lineHeight(e){this._lineHeight!==e&&(this._lineHeight=e,this._changed())}get textBaseline(){return this._textBaseline}set textBaseline(e){this._textBaseline!==e&&(this._textBaseline=e,this._changed())}get textAlign(){return this._textAlign}set textAlign(e){this._textAlign!==e&&(this._textAlign=e,this._changed())}get verticalAlign(){return this._verticalAlign}set verticalAlign(e){this._verticalAlign!==e&&(this._verticalAlign=e,this._changed())}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY!==e&&(this._offsetY=e,this._changed())}get maxLines(){return this._maxLines}set maxLines(e){this._maxLines!==e&&(this._maxLines=e,this._changed())}get maxLinesSuffix(){return this._maxLinesSuffix}set maxLinesSuffix(e){this._maxLinesSuffix!==e&&(this._maxLinesSuffix=e,this._changed())}get textColor(){return this._textColor}set textColor(e){this._textColor!==e&&(this._textColor=e,this._changed())}get paddingLeft(){return this._paddingLeft}set paddingLeft(e){this._paddingLeft!==e&&(this._paddingLeft=e,this._changed())}get paddingRight(){return this._paddingRight}set paddingRight(e){this._paddingRight!==e&&(this._paddingRight=e,this._changed())}get shadow(){return this._shadow}set shadow(e){this._shadow!==e&&(this._shadow=e,this._changed())}get shadowColor(){return this._shadowColor}set shadowColor(e){this._shadowColor!==e&&(this._shadowColor=e,this._changed())}get shadowOffsetX(){return this._shadowOffsetX}set shadowOffsetX(e){this._shadowOffsetX!==e&&(this._shadowOffsetX=e,this._changed())}get shadowOffsetY(){return this._shadowOffsetY}set shadowOffsetY(e){this._shadowOffsetY!==e&&(this._shadowOffsetY=e,this._changed())}get shadowBlur(){return this._shadowBlur}set shadowBlur(e){this._shadowBlur!==e&&(this._shadowBlur=e,this._changed())}get highlight(){return this._highlight}set highlight(e){this._highlight!==e&&(this._highlight=e,this._changed())}get highlightHeight(){return this._highlightHeight}set highlightHeight(e){this._highlightHeight!==e&&(this._highlightHeight=e,this._changed())}get highlightColor(){return this._highlightColor}set highlightColor(e){this._highlightColor!==e&&(this._highlightColor=e,this._changed())}get highlightOffset(){return this._highlightOffset}set highlightOffset(e){this._highlightOffset!==e&&(this._highlightOffset=e,this._changed())}get highlightPaddingLeft(){return this._highlightPaddingLeft}set highlightPaddingLeft(e){this._highlightPaddingLeft!==e&&(this._highlightPaddingLeft=e,this._changed())}get highlightPaddingRight(){return this._highlightPaddingRight}set highlightPaddingRight(e){this._highlightPaddingRight!==e&&(this._highlightPaddingRight=e,this._changed())}get cutSx(){return this._cutSx}set cutSx(e){this._cutSx!==e&&(this._cutSx=e,this._changed())}get cutEx(){return this._cutEx}set cutEx(e){this._cutEx!==e&&(this._cutEx=e,this._changed())}get cutSy(){return this._cutSy}set cutSy(e){this._cutSy!==e&&(this._cutSy=e,this._changed())}get cutEy(){return this._cutEy}set cutEy(e){this._cutEy!==e&&(this._cutEy=e,this._changed())}get advancedRenderer(){return this._advancedRenderer}set advancedRenderer(e){this._advancedRenderer!==e&&(this._advancedRenderer=e,this._changed())}set letterSpacing(e){this._letterSpacing!==e&&(this._letterSpacing=e,this._changed())}get letterSpacing(){return this._letterSpacing}set textIndent(e){this._textIndent!==e&&(this._textIndent=e,this._changed())}get textIndent(){return this._textIndent}get precision(){return super.precision}set precision(e){this.precision!==e&&(super.precision=e,this._changed())}_getIsValid(){return!!this.text}_getLookupId(){let e=[];return this.w!==0&&e.push("w "+this.w),this.h!==0&&e.push("h "+this.h),this.fontStyle!=="normal"&&e.push("fS"+this.fontStyle),this.fontSize!==40&&e.push("fs"+this.fontSize),this.fontBaselineRatio!==0&&e.push("fb"+this.fontBaselineRatio),this.fontFace!==null&&e.push("ff"+(Array.isArray(this.fontFace)?this.fontFace.join(","):this.fontFace)),this.wordWrap!==!0&&e.push("wr"+(this.wordWrap?1:0)),this.wordWrapWidth!==0&&e.push("ww"+this.wordWrapWidth),this.wordBreak!==!1&&e.push("wb"+this.wordBreak?1:0),this.textOverflow!=""&&e.push("to"+this.textOverflow),this.lineHeight!==null&&e.push("lh"+this.lineHeight),this.textBaseline!=="alphabetic"&&e.push("tb"+this.textBaseline),this.textAlign!=="left"&&e.push("ta"+this.textAlign),this.verticalAlign!=="top"&&e.push("va"+this.verticalAlign),this.offsetY!==null&&e.push("oy"+this.offsetY),this.maxLines!==0&&e.push("ml"+this.maxLines),this.maxLinesSuffix!==".."&&e.push("ms"+this.maxLinesSuffix),e.push("pc"+this.precision),this.textColor!==4294967295&&e.push("co"+this.textColor.toString(16)),this.paddingLeft!==0&&e.push("pl"+this.paddingLeft),this.paddingRight!==0&&e.push("pr"+this.paddingRight),this.shadow!==!1&&e.push("sh"+(this.shadow?1:0)),this.shadowColor!==4278190080&&e.push("sc"+this.shadowColor.toString(16)),this.shadowOffsetX!==0&&e.push("sx"+this.shadowOffsetX),this.shadowOffsetY!==0&&e.push("sy"+this.shadowOffsetY),this.shadowBlur!==5&&e.push("sb"+this.shadowBlur),this.highlight!==!1&&e.push("hL"+(this.highlight?1:0)),this.highlightHeight!==0&&e.push("hh"+this.highlightHeight),this.highlightColor!==4278190080&&e.push("hc"+this.highlightColor.toString(16)),this.highlightOffset!==null&&e.push("ho"+this.highlightOffset),this.highlightPaddingLeft!==null&&e.push("hl"+this.highlightPaddingLeft),this.highlightPaddingRight!==null&&e.push("hr"+this.highlightPaddingRight),this.letterSpacing!==null&&e.push("ls"+this.letterSpacing),this.textIndent!==null&&e.push("ti"+this.textIndent),this.cutSx&&e.push("csx"+this.cutSx),this.cutEx&&e.push("cex"+this.cutEx),this.cutSy&&e.push("csy"+this.cutSy),this.cutEy&&e.push("cey"+this.cutEy),this.advancedRenderer&&e.push("aR"+this.advancedRenderer?1:0),"TX$"+e.join("|")+":"+this.text}_getSourceLoader(){let e=this.cloneArgs(),t=this.stage.gl;return function(i){let s=this.stage.platform.getDrawingCanvas(),n=e.advancedRenderer?new dn(this.stage,s,e):new cn(this.stage,s,e),o=n.draw(),a={},l=this.stage.getOption("fontSharp"),d=!1;z.isBoolean(l)?d=l:z.isObject(l)&&(d=this.stage.getRenderPrecision()<=l.precision&&e.fontSize<=l.fontSize),t&&d&&(a[t.TEXTURE_MAG_FILTER]=t.NEAREST),o?o.then(()=>{i(null,Object.assign({renderInfo:n.renderInfo,throttle:!1,texParams:a},this.stage.platform.getTextureOptionsForDrawingCanvas(s)))}).catch(p=>{i(p)}):i(null,Object.assign({renderInfo:n.renderInfo,throttle:!1,texParams:a},this.stage.platform.getTextureOptionsForDrawingCanvas(s)))}}getNonDefaults(){let e=super.getNonDefaults();return this.text!==""&&(e.text=this.text),this.w!==0&&(e.w=this.w),this.h!==0&&(e.h=this.h),this.fontStyle!=="normal"&&(e.fontStyle=this.fontStyle),this.fontSize!==40&&(e.fontSize=this.fontSize),this.fontBaselineRatio!==0&&(e.fontBaselineRatio=this.fontBaselineRatio),this.fontFace!==null&&(e.fontFace=this.fontFace),this.wordWrap!==!0&&(e.wordWrap=this.wordWrap),this.wordWrapWidth!==0&&(e.wordWrapWidth=this.wordWrapWidth),this.wordBreak!==!1&&(e.wordBreak=this.wordBreak),this.textOverflow!=""&&(e.textOverflow=this.textOverflow),this.lineHeight!==null&&(e.lineHeight=this.lineHeight),this.textBaseline!=="alphabetic"&&(e.textBaseline=this.textBaseline),this.textAlign!=="left"&&(e.textAlign=this.textAlign),this.verticalAlign!=="top"&&(e.verticalAlign=this.verticalAlign),this.offsetY!==null&&(e.offsetY=this.offsetY),this.maxLines!==0&&(e.maxLines=this.maxLines),this.maxLinesSuffix!==".."&&(e.maxLinesSuffix=this.maxLinesSuffix),this.precision!==this.stage.getOption("precision")&&(e.precision=this.precision),this.textColor!==4294967295&&(e.textColor=this.textColor),this.paddingLeft!==0&&(e.paddingLeft=this.paddingLeft),this.paddingRight!==0&&(e.paddingRight=this.paddingRight),this.shadow!==!1&&(e.shadow=this.shadow),this.shadowColor!==4278190080&&(e.shadowColor=this.shadowColor),this.shadowOffsetX!==0&&(e.shadowOffsetX=this.shadowOffsetX),this.shadowOffsetY!==0&&(e.shadowOffsetY=this.shadowOffsetY),this.shadowBlur!==5&&(e.shadowBlur=this.shadowBlur),this.highlight!==!1&&(e.highlight=this.highlight),this.highlightHeight!==0&&(e.highlightHeight=this.highlightHeight),this.highlightColor!==4278190080&&(e.highlightColor=this.highlightColor),this.highlightOffset!==0&&(e.highlightOffset=this.highlightOffset),this.highlightPaddingLeft!==0&&(e.highlightPaddingLeft=this.highlightPaddingLeft),this.highlightPaddingRight!==0&&(e.highlightPaddingRight=this.highlightPaddingRight),this.letterSpacing!==0&&(e.letterSpacing=this.letterSpacing),this.textIndent!==0&&(e.textIndent=this.textIndent),this.cutSx&&(e.cutSx=this.cutSx),this.cutEx&&(e.cutEx=this.cutEx),this.cutSy&&(e.cutSy=this.cutSy),this.cutEy&&(e.cutEy=this.cutEy),this.advancedRenderer&&(e.renderer=this.advancedRenderer),e}cloneArgs(){let e={};return e.text=this._text,e.w=this._w,e.h=this._h,e.fontStyle=this._fontStyle,e.fontSize=this._fontSize,e.fontBaselineRatio=this._fontBaselineRatio,e.fontFace=this._fontFace,e.wordWrap=this._wordWrap,e.wordWrapWidth=this._wordWrapWidth,e.wordBreak=this._wordBreak,e.textOverflow=this._textOverflow,e.lineHeight=this._lineHeight,e.textBaseline=this._textBaseline,e.textAlign=this._textAlign,e.verticalAlign=this._verticalAlign,e.offsetY=this._offsetY,e.maxLines=this._maxLines,e.maxLinesSuffix=this._maxLinesSuffix,e.precision=this._precision,e.textColor=this._textColor,e.paddingLeft=this._paddingLeft,e.paddingRight=this._paddingRight,e.shadow=this._shadow,e.shadowColor=this._shadowColor,e.shadowOffsetX=this._shadowOffsetX,e.shadowOffsetY=this._shadowOffsetY,e.shadowBlur=this._shadowBlur,e.highlight=this._highlight,e.highlightHeight=this._highlightHeight,e.highlightColor=this._highlightColor,e.highlightOffset=this._highlightOffset,e.highlightPaddingLeft=this._highlightPaddingLeft,e.highlightPaddingRight=this._highlightPaddingRight,e.letterSpacing=this._letterSpacing,e.textIndent=this._textIndent,e.cutSx=this._cutSx,e.cutEx=this._cutEx,e.cutSy=this._cutSy,e.cutEy=this._cutEy,e.advancedRenderer=this._advancedRenderer,e}},oe=Dt.prototype;oe._text="";oe._w=0;oe._h=0;oe._fontStyle="normal";oe._fontSize=40;oe._fontFace=null;oe._wordWrap=!0;oe._wordWrapWidth=0;oe._wordBreak=!1;oe._textOverflow="";oe._lineHeight=null;oe._textBaseline="alphabetic";oe._textAlign="left";oe._verticalAlign="top";oe._offsetY=null;oe._maxLines=0;oe._maxLinesSuffix="..";oe._textColor=4294967295;oe._paddingLeft=0;oe._paddingRight=0;oe._shadow=!1;oe._shadowColor=4278190080;oe._shadowOffsetX=0;oe._shadowOffsetY=0;oe._shadowBlur=5;oe._highlight=!1;oe._highlightHeight=0;oe._highlightColor=4278190080;oe._highlightOffset=0;oe._highlightPaddingLeft=0;oe._highlightPaddingRight=0;oe._letterSpacing=0;oe._textIndent=0;oe._cutSx=0;oe._cutEx=0;oe._cutSy=0;oe._cutEy=0;oe._advancedRenderer=!1;oe._fontBaselineRatio=0;var pn=class extends lt{constructor(e){super(e),this._textureSource=void 0}get textureSource(){return this._textureSource}set textureSource(e){e!==this._textureSource&&(e.isResultTexture&&(this._precision=this.stage.getRenderPrecision()),this._textureSource=e,this._changed())}_getTextureSource(){return this._textureSource}},Ai=class extends ze{constructor(e,t,i,s){super(),this.manager=e,this._settings=t,this._element=i,this._getter=i.constructor.getGetter(s),this._setter=i.constructor.getSetter(s),this._merger=t.merger,this._merger||(this._merger=i.constructor.getMerger(s)),this._startValue=this._getter(this._element),this._targetValue=this._startValue,this._p=1,this._delayLeft=0}start(e){this._startValue=this._getter(this._element),this.isAttached()?e===this._startValue?this.reset(e,1):(this._targetValue=e,this._p=0,this._delayLeft=this._settings.delay,this.emit("start"),this.add()):(this._targetValue=e,this._p=1,this._updateDrawValue())}finish(){this._p<1&&(this._p=1)}stop(){this.emit("stop"),this.manager.removeActive(this)}pause(){this.stop()}play(){this.manager.addActive(this)}reset(e,t){this.isAttached()?(this._startValue=this._getter(this._element),this._targetValue=e,this._p=t,this.add()):(this._startValue=this._getter(this._element),this._targetValue=e,this._p=1,this._updateDrawValue())}_updateDrawValue(){this._setter(this._element,this.getDrawValue())}add(){this.manager.addActive(this)}isAttached(){return this._element.attached}isRunning(){return this._p<1}progress(e){if(this.isAttached()||(this._p=1),this.p<1){if(this.delayLeft>0)if(this._delayLeft-=e,this.delayLeft<0)e=-this.delayLeft,this._delayLeft=0,this.emit("delayEnd");else return;this._settings.duration==0?this._p=1:this._p+=e/this._settings.duration,this._p>=1&&(this._p=1)}this._updateDrawValue(),this.invokeListeners()}invokeListeners(){this.emit("progress",this.p),this.p===1&&this.emit("finish")}updateTargetValue(e){let t=this._settings.timingFunctionImpl(this.p);t===1?this._targetValue=e:t===0?(this._startValue=this._targetValue,this._targetValue=e):(this._startValue=e-(e-this._targetValue)/(1-t),this._targetValue=e)}getDrawValue(){if(this.p>=1)return this.targetValue;{let e=this._settings._timingFunctionImpl(this.p);return this._merger(this.targetValue,this.startValue,e)}}skipDelay(){this._delayLeft=0}get startValue(){return this._startValue}get targetValue(){return this._targetValue}get p(){return this._p}get delayLeft(){return this._delayLeft}get element(){return this._element}get settings(){return this._settings}set settings(e){this._settings=e}};Ai.prototype.isTransition=!0;var fn=class{constructor(){this._items=[],this._refs={}}get(){return this._items}get first(){return this._items[0]}get last(){return this._items.length?this._items[this._items.length-1]:void 0}add(e){this.addAt(e,this._items.length)}addAt(e,t){if(t>=0&&t<=this._items.length){let i=this._items.indexOf(e);if(i===t)return e;if(z.isObjectLiteral(e)){let s=e;e=this.createItem(s),e.patch(s)}i!=-1?this.setAt(e,t):(e.ref&&(this._refs[e.ref]=e),this._items.splice(t,0,e),this.onAdd(e,t))}else throw new Error("addAt: The index "+t+" is out of bounds "+this._items.length)}replaceByRef(e){if(e.ref){let t=this.getByRef(e.ref);if(!t)throw new Error("replaceByRef: no item found with reference: "+e.ref);this.replace(e,t)}else throw new Error("replaceByRef: no ref specified in item");this.addAt(e,this._items.length)}replace(e,t){let i=this.getIndex(t);if(i===-1)throw new Error("replace: The previous item does not exist");this.setAt(e,i)}setAt(e,t){if(t>=0&&t=0&&e{let o=n.marker;return delete n.marker,o}),s=e.filter(n=>t.indexOf(n)===-1);if(i.length||s.length){this._refs={};for(let n=0,o=this._items.length;nn.core;this._element.core.syncChildren(e.map(s),t.map(s),i.map(s))}onSet(e,t,i){i._setParent(null),this._connectParent(e),this._element.core.setChildAt(t,e.core)}onMove(e,t,i){this._element.core.moveChild(t,i)}createItem(e){return e.type?new e.type(this._element.stage):this._element.stage.createElement()}isItem(e){return e.isElement}},Ke=class r{constructor(e){this.stage=e,this.__id=r.id++,this.__start(),this._hasEventListeners=!1,this.__core=new Si(this),this.__ref=null,this.__attached=!1,this.__enabled=!1,this.__active=!1,this.__parent=null,this.__texture=null,this.__displayedTexture=null,this.__tags=null,this.__treeTags=null,this.__tagRoot=!1,this.__childList=null,this._w=0,this._h=0}__start(){}get id(){return this.__id}set ref(e){if(this.__ref!==e){let t=e.charCodeAt(0);z.isUcChar(t)||this._throwError("Ref must start with an upper case character: "+e),this.__ref!==null&&(this.removeTag(this.__ref),this.__parent&&this.__parent.__childList.clearRef(this.__ref)),this.__ref=e,this.__ref&&(this._addTag(this.__ref),this.__parent&&this.__parent.__childList.setRef(this.__ref,this))}}get ref(){return this.__ref}get core(){return this.__core}setAsRoot(){this.__core.setAsRoot(),this._updateAttachedFlag(),this._updateEnabledFlag()}get isRoot(){return this.__core.isRoot}_setParent(e){this.__parent!==e&&(this.__parent&&this._unsetTagsParent(),this.__parent=e,e&&this._setTagsParent(),this._updateAttachedFlag(),this._updateEnabledFlag(),this._updateCollision(),this.isRoot&&e&&this._throwError("Root should not be added as a child! Results are unspecified!"))}getDepth(){let e=0,t=this.__parent;for(;t;)e++,t=t.__parent;return e}getAncestor(e){let t=this;for(;e>0&&t.__parent;)t=t.__parent,e--;return t}getAncestors(){let e=[],t=this;for(;t;)e.push(t),t=t.__parent;return e}getAncestorAtDepth(e){let t=this.getDepth()-e;return t<0?null:this.getAncestor(t)}isAncestorOf(e){let t=e;for(;t=t.parent;)if(this===t)return!0;return!1}getSharedAncestor(e){let t=this,i=e,s=t.getDepth(),n=i.getDepth();s>n?t=t.getAncestor(s-n):n>s&&(i=i.getAncestor(n-s));do{if(t===i)return t;t=t.__parent,i=i.__parent}while(t&&i);return null}get attached(){return this.__attached}get enabled(){return this.__enabled}get active(){return this.__active}_isAttached(){return this.__parent?this.__parent.__attached:this.stage.root===this}_isEnabled(){return this.__core.visible&&this.__core.alpha>0&&(this.__parent?this.__parent.__enabled:this.stage.root===this)}_isActive(){return this._isEnabled()&&this.withinBoundsMargin}_updateAttachedFlag(){let e=this._isAttached();if(this.__attached!==e){this.__attached=e,e&&this._onSetup();let t=this._children.get();if(t){let i=t.length;if(i>0)for(let s=0;s0)for(let s=0;se.removeElement(this.__core)),this.__enabled=!1}_setActiveFlag(){this.__active=!0,this.__texture&&this.__texture.incActiveCount(),this.__texture&&this._enableTexture(),this._onActive()}_unsetActiveFlag(){this.__texture&&this.__texture.decActiveCount(),this.__active=!1,this.__texture&&this._disableTexture(),this._hasTexturizer()&&this.texturizer.deactivate(),this._onInactive()}_onSetup(){}_onAttach(){}_onDetach(){}_onEnabled(){}_onDisabled(){}_onActive(){}_onInactive(){}_onResize(){}_getRenderWidth(){return this._w?this._w:this.__displayedTexture?this.__displayedTexture.getRenderWidth():this.__texture?this.__texture.getRenderWidth():0}_getRenderHeight(){return this._h?this._h:this.__displayedTexture?this.__displayedTexture.getRenderHeight():this.__texture?this.__texture.getRenderHeight():0}get renderWidth(){return this.__enabled?this.__core.getRenderWidth():this._getRenderWidth()}get renderHeight(){return this.__enabled?this.__core.getRenderHeight():this._getRenderHeight()}get finalX(){return this.__core.x}get finalY(){return this.__core.y}get finalW(){return this.__core.w}get finalH(){return this.__core.h}textureIsLoaded(){return this.__texture&&this.__texture.isLoaded()}loadTexture(){this.__texture&&(this.__texture.load(),(!this.__texture.isUsed()||!this._isEnabled())&&this._updateDimensions())}_enableTextureError(){let e=this.__texture.loadError;e&&this.emit("txError",e,this.__texture._source)}_enableTexture(){this.__texture.isLoaded()?this._setDisplayedTexture(this.__texture):(this._setDisplayedTexture(null),this._enableTextureError())}_disableTexture(){this._setDisplayedTexture(null)}get texture(){return this.__texture}set texture(e){let t;if(z.isObjectLiteral(e))e.type?t=new e.type(this.stage):t=this.texture,t&&He.patchObject(t,e);else if(!e)t=null;else if(e.isTexture)t=e;else if(e.isTextureSource)t=new pn(this.stage),t.textureSource=e;else{console.error("[Lightning] Please specify a texture type.");return}let i=this.__texture;t!==i&&(this.__texture=t,this.__texture?this.__enabled&&(this.__texture.addElement(this),this.withinBoundsMargin&&(this.__texture.isLoaded()?this._setDisplayedTexture(this.__texture):this._enableTextureError())):this._setDisplayedTexture(null),i&&i!==this.__displayedTexture&&i.removeElement(this),this._updateDimensions())}get displayedTexture(){return this.__displayedTexture}_setDisplayedTexture(e){let t=this.__displayedTexture;t&&e!==t&&this.__texture!==t&&t.removeElement(this);let i=this.__core.displayedTextureSource?this.__core.displayedTextureSource._source:null,s=(e?e._source:null)!==i;this.__displayedTexture=e,this._updateDimensions(),this.__displayedTexture?s&&(this._updateTextureCoords(),this.__core.setDisplayedTextureSource(this.__displayedTexture._source)):this.__core.setDisplayedTextureSource(null),s&&(this.__displayedTexture?this.emit("txLoaded",this.__displayedTexture):this.emit("txUnloaded",this.__displayedTexture))}onTextureSourceLoaded(){this.active&&this._setDisplayedTexture(this.__texture)}onTextureSourceLoadError(e){this.emit("txError",e,this.__texture._source)}forceRenderUpdate(){this.__core.setHasRenderUpdates(3)}onDisplayedTextureClippingChanged(){this._updateDimensions(),this._updateTextureCoords()}onPrecisionChanged(){this._updateDimensions()}onDimensionsChanged(e,t){this.texture instanceof Dt&&(this.texture.w=e,this.texture.h=t,this.w=e,this.h=t)}_updateDimensions(){let e=this._getRenderWidth(),t=this._getRenderHeight(),i=!1;(!e||!t)&&!this.__displayedTexture&&this.__texture&&(e=e||this.__texture.mw,t=t||this.__texture.mh,(!e||!t)&&this.__texture.isAutosizeTexture()&&(i=!0)),this.__core.setDimensions(e,t,i)&&this._onResize()}_updateTextureCoords(){if(this.displayedTexture&&this.displayedTexture._source){let e=this.displayedTexture,t=this.displayedTexture._source,i=0,s=0,n=1,o=1;if(e.clipping){let a=t.getRenderWidth(),l=t.getRenderHeight(),d,p,_,g;d=1/a,p=1/l,e.pw?_=e.pw*d:_=(a-e.px)*d,e.ph?g=e.ph*p:g=(l-e.py)*p,d*=e.px,p*=e.py,i=d,s=p,n=n*_+d,o=o*g+p,i=Math.max(0,i),s=Math.max(0,s),n=Math.min(1,n),o=Math.min(1,o)}if(t._flipTextureY){let a=o;o=s,s=a}this.__core.setTextureCoords(i,s,n,o)}}getCornerPoints(){return this.__core.getCornerPoints()}_unsetTagsParent(){this.__tags&&this.__tags.forEach(i=>{let s=this;for(;(s=s.__parent)&&(s.__treeTags.get(i).delete(this),!s.__tagRoot););});let e=null,t=0;if(this.__treeTags&&!this.__tagRoot&&(e=z.iteratorToArray(this.__treeTags.keys()),t=e.length,t>0))for(let i=0;i{let t=this;for(;t=t.__parent;){t.__treeTags||(t.__treeTags=new Map);let i=t.__treeTags.get(e);if(i||(i=new Set,t.__treeTags.set(e,i)),i.add(this),t.__tagRoot)break}}),this.__treeTags&&this.__treeTags.size&&(this.__tagRoot||this.__treeTags.forEach((e,t)=>{let i=this;for(;!i.__tagRoot&&(i=i.__parent);){i.__tagRoot,i.__treeTags||(i.__treeTags=new Map);let s=i.__treeTags.get(t);s||(s=new Set,i.__treeTags.set(t,s)),e.forEach(function(n){s.add(n)})}}))}_getByTag(e){if(!this.__treeTags)return[];let t=this.__treeTags.get(e);return t?z.setToArray(t):[]}getTags(){return this.__tags?this.__tags:[]}setTags(e){e=e.reduce((a,l)=>a.concat(l.split(" ")),[]),this.__ref&&e.push(this.__ref);let t,i=e.length,s=[],n=[];for(t=0;t=0){let i=e.split("."),s=this._getByTag(i[0]),n=1,o=i.length;for(;s.length&&n");if(t===-1&&i===-1)return this.mtag(e);let s;return i===0?(s=!0,e=e.substr(1)):t===0?(s=!1,e=e.substr(1)):s=!1,this._selectChilds(e,s)}_selectChilds(e,t){let i=e.indexOf("."),s=e.indexOf(">");if(i===-1&&s===-1)if(t){let n=this.getByRef(e);return n?[n]:[]}else return this.mtag(e);if(s===-1||i!==-1&&i{e.children[o.ref]=o}))}}return e.id=this.id,e}getNonDefaults(){let e={};if(this.constructor!==r&&(e.type=this.constructor.name),this.__ref&&(e.ref=this.__ref),this.__tags&&this.__tags.length&&(e.tags=this.__tags),this.x!==0&&(e.x=this.x),this.y!==0&&(e.y=this.y),this.w!==0&&(e.w=this.w),this.h!==0&&(e.h=this.h),this.scaleX===this.scaleY?this.scaleX!==1&&(e.scale=this.scaleX):(this.scaleX!==1&&(e.scaleX=this.scaleX),this.scaleY!==1&&(e.scaleY=this.scaleY)),this.pivotX===this.pivotY?this.pivotX!==.5&&(e.pivot=this.pivotX):(this.pivotX!==.5&&(e.pivotX=this.pivotX),this.pivotY!==.5&&(e.pivotY=this.pivotY)),this.mountX===this.mountY?this.mountX!==0&&(e.mount=this.mountX):(this.mountX!==0&&(e.mountX=this.mountX),this.mountY!==0&&(e.mountY=this.mountY)),this.alpha!==1&&(e.alpha=this.alpha),this.visible||(e.visible=!1),this.rotation!==0&&(e.rotation=this.rotation),this.colorUl===this.colorUr&&this.colorBl===this.colorBr&&this.colorUl===this.colorBl?this.colorUl!==4294967295&&(e.color=this.colorUl.toString(16)):(this.colorUl!==4294967295&&(e.colorUl=this.colorUl.toString(16)),this.colorUr!==4294967295&&(e.colorUr=this.colorUr.toString(16)),this.colorBl!==4294967295&&(e.colorBl=this.colorBl.toString(16)),this.colorBr!==4294967295&&(e.colorBr=this.colorBr.toString(16))),this.zIndex&&(e.zIndex=this.zIndex),this.forceZIndexContext&&(e.forceZIndexContext=!0),this.clipping&&(e.clipping=this.clipping),this.clipbox||(e.clipbox=this.clipbox),this.__texture){let t=this.__texture.getNonDefaults();Object.keys(t).length&&(e.texture=t)}if(this.shader&&z.isFunction(this.shader.getNonDefaults)){let t=this.shader.getNonDefaults();Object.keys(t).length&&(e.shader=t)}return this._hasTexturizer()&&(this.texturizer.enabled&&(e.renderToTexture=this.texturizer.enabled),this.texturizer.lazy&&(e.renderToTextureLazy=this.texturizer.lazy),this.texturizer.colorize&&(e.colorizeResultTexture=this.texturizer.colorize),this.texturizer.renderOffscreen&&(e.renderOffscreen=this.texturizer.renderOffscreen)),e}static getGetter(e){let t=r.PROP_GETTERS.get(e);return t||(t=new Function("obj","return obj."+e),r.PROP_GETTERS.set(e,t)),t}static getSetter(e){let t=r.PROP_SETTERS.get(e);return t||(t=new Function("obj","v","obj."+e+" = v"),r.PROP_SETTERS.set(e,t)),t}get withinBoundsMargin(){return this.__core._withinBoundsMargin}_enableWithinBoundsMargin(){this.__enabled&&this._setActiveFlag()}_disableWithinBoundsMargin(){this.__active&&this._unsetActiveFlag()}set boundsMargin(e){if(!Array.isArray(e)&&e!==null)throw new Error("boundsMargin should be an array of left-top-right-bottom values or null (inherit margin)");this.__core.boundsMargin=e}get boundsMargin(){return this.__core.boundsMargin}get x(){return this.__core.offsetX}set x(e){this.__core.offsetX=e}get y(){return this.__core.offsetY}set y(e){this.__core.offsetY=e}get w(){return this._w}set w(e){z.isFunction(e)?(this._w=0,this.__core.funcW=e):(e=Math.max(e,0),this._w!==e&&(this.__core.disableFuncW(),this._w=e,this._updateDimensions()))}get h(){return this._h}set h(e){z.isFunction(e)?(this._h=0,this.__core.funcH=e):(e=Math.max(e,0),this._h!==e&&(this.__core.disableFuncH(),this._h=e,this._updateDimensions()))}get collision(){return this._collision}set collision(e){this._collision=e}_updateCollision(){this.collision&&this.__parent&&this.__parent.collision===void 0&&(this.__parent.collision=2)}get scaleX(){return this.__core.scaleX}set scaleX(e){this.__core.scaleX=e}get scaleY(){return this.__core.scaleY}set scaleY(e){this.__core.scaleY=e}get scale(){return this.__core.scale}set scale(e){this.__core.scale=e}get pivotX(){return this.__core.pivotX}set pivotX(e){this.__core.pivotX=e}get pivotY(){return this.__core.pivotY}set pivotY(e){this.__core.pivotY=e}get pivot(){return this.__core.pivot}set pivot(e){this.__core.pivot=e}get mountX(){return this.__core.mountX}set mountX(e){this.__core.mountX=e}get mountY(){return this.__core.mountY}set mountY(e){this.__core.mountY=e}get mount(){return this.__core.mount}set mount(e){this.__core.mount=e}get rotation(){return this.__core.rotation}set rotation(e){this.__core.rotation=e}get alpha(){return this.__core.alpha}set alpha(e){this.__core.alpha=e}get visible(){return this.__core.visible}set visible(e){this.__core.visible=e}get colorUl(){return this.__core.colorUl}set colorUl(e){this.__core.colorUl=e}get colorUr(){return this.__core.colorUr}set colorUr(e){this.__core.colorUr=e}get colorBl(){return this.__core.colorBl}set colorBl(e){this.__core.colorBl=e}get colorBr(){return this.__core.colorBr}set colorBr(e){this.__core.colorBr=e}get color(){return this.__core.colorUl}set color(e){(this.colorUl!==e||this.colorUr!==e||this.colorBl!==e||this.colorBr!==e)&&(this.colorUl=e,this.colorUr=e,this.colorBl=e,this.colorBr=e)}get colorTop(){return this.colorUl}set colorTop(e){(this.colorUl!==e||this.colorUr!==e)&&(this.colorUl=e,this.colorUr=e)}get colorBottom(){return this.colorBl}set colorBottom(e){(this.colorBl!==e||this.colorBr!==e)&&(this.colorBl=e,this.colorBr=e)}get colorLeft(){return this.colorUl}set colorLeft(e){(this.colorUl!==e||this.colorBl!==e)&&(this.colorUl=e,this.colorBl=e)}get colorRight(){return this.colorUr}set colorRight(e){(this.colorUr!==e||this.colorBr!==e)&&(this.colorUr=e,this.colorBr=e)}get zIndex(){return this.__core.zIndex}set zIndex(e){this.__core.zIndex=e}get forceZIndexContext(){return this.__core.forceZIndexContext}set forceZIndexContext(e){this.__core.forceZIndexContext=e}get clipping(){return this.__core.clipping}set clipping(e){this.__core.clipping=e}get clipbox(){return this.__core.clipbox}set clipbox(e){this.__core.clipbox=e}get tags(){return this.getTags()}set tags(e){Array.isArray(e)||(e=[e]),this.setTags(e)}set t(e){this.tags=e}get _children(){return this.__childList||(this.__childList=new hl(this,!1)),this.__childList}get childList(){return this._allowChildrenAccess()||this._throwError("Direct access to children is not allowed in "+this.getLocationString()),this._children}hasChildren(){return this._allowChildrenAccess()&&this.__childList&&this.__childList.length>0}_allowChildrenAccess(){return!0}get children(){return this.childList.get()}set children(e){this.childList.patch(e)}add(e){return this.childList.a(e)}get p(){return this.__parent}get parent(){return this.__parent}get src(){if(this.texture&&this.texture instanceof Ci)return this.texture._src}set src(e){let t=new Ci(this.stage);t.src=e,this.texture=t}set mw(e){this.texture?(this.texture.mw=e,this._updateDimensions()):this._throwError("Please set mw after setting a texture.")}set mh(e){this.texture?(this.texture.mh=e,this._updateDimensions()):this._throwError("Please set mh after setting a texture.")}get rect(){return this.texture===this.stage.rectangleTexture}set rect(e){e?this.texture=this.stage.rectangleTexture:this.texture=null}enableTextTexture(){return(!this.texture||!(this.texture instanceof Dt))&&(this.texture=new Dt(this.stage),!this.texture.w&&!this.texture.h&&(this.texture.w=this.w,this.texture.h=this.h)),this.texture}get text(){return this.texture&&this.texture instanceof Dt?this.texture:null}set text(e){(!this.texture||!(this.texture instanceof Dt))&&this.enableTextTexture(),z.isString(e)?this.texture.text=e:this.texture.patch(e)}set onUpdate(e){this.__core.onUpdate=e}set onAfterCalcs(e){this.__core.onAfterCalcs=e}set onAfterUpdate(e){this.__core.onAfterUpdate=e}forceUpdate(){this.__core._setHasUpdates()}get shader(){return this.__core.shader}set shader(e){if(z.isObjectLiteral(e)&&!e.type)this.shader&&this.shader.patch(e);else{let t=lr.create(this.stage,e);this.__enabled&&this.__core.shader&&this.__core.shader.removeElement(this.__core),this.__core.shader=t,this.__enabled&&this.__core.shader&&this.__core.shader.addElement(this.__core)}}_hasTexturizer(){return!!this.__core._texturizer}get renderToTexture(){return this.rtt}set renderToTexture(e){this.rtt=e}get rtt(){return this._hasTexturizer()&&this.texturizer.enabled}set rtt(e){this.texturizer.enabled=e}get rttLazy(){return this._hasTexturizer()&&this.texturizer.lazy}set rttLazy(e){this.texturizer.lazy=e}get renderOffscreen(){return this._hasTexturizer()&&this.texturizer.renderOffscreen}set renderOffscreen(e){this.texturizer.renderOffscreen=e}get colorizeResultTexture(){return this._hasTexturizer()&&this.texturizer.colorize}set colorizeResultTexture(e){this.texturizer.colorize=e}getTexture(){return this.texturizer._getTextureSource()}get texturizer(){return this.__core.texturizer}patch(e){let t=Object.keys(e);for(let i=0,s=t.length;i{this.transition(i,e[i])})}set smooth(e){Object.keys(e).forEach(i=>{let s=e[i];Array.isArray(s)?this.setSmooth(i,s[0],s[1]):this.setSmooth(i,s)})}fastForward(e){if(this._transitions){let t=this._transitions[e];t&&t.isTransition&&t.finish()}}_getTransition(e){this._transitions||(this._transitions={});let t=this._transitions[e];return t?t.isTransitionSettings&&(t=new Ai(this.stage.transitions,t,this,e)):t=new Ai(this.stage.transitions,this.stage.transitions.defaultTransitionSettings,this,e),this._transitions[e]=t,t}_setTransition(e,t){if(!t)this._removeTransition(e);else{z.isObjectLiteral(t)&&(t=this.stage.transitions.createSettings(t)),this._transitions||(this._transitions={});let i=this._transitions[e];if(i&&i.isTransition)return i.settings=t,i;this._transitions[e]=t}}_removeTransition(e){this._transitions&&delete this._transitions[e]}getSmooth(e,t){let i=this._getTransition(e);return i&&i.isAttached()?i.targetValue:t}setSmooth(e,t,i){i&&this._setTransition(e,i);let s=this._getTransition(e);return s.start(t),s}get flex(){return this.__core.flex}set flex(e){this.__core.flex=e}get flexItem(){return this.__core.flexItem}set flexItem(e){this.__core.flexItem=e}static isColorProperty(e){return e.toLowerCase().indexOf("color")>=0}static getMerger(e){return r.isColorProperty(e)?ie.mergeColors:ie.mergeNumbers}toJSON(){let e=[`${this.constructor.name}`],t={};return t[e]={},this.hasChildren()?r.collectChildren(t[e],this.__childList):t[e]={...r.getProperties(this)},t}static collectChildren(e,t){let i=t;for(let s=0,n=i.length;st;)i.push(e),e=e.__parent;return i}static _getSharedState(e,t){let i=r._getAncestorStates(e),s=r._getAncestorStates(t),n=Math.min(i.length,s.length);for(let o=0;oe.__level)){for(;t{this._addMemberRouter(t)})}_addMemberRouter(e){let t=Object.keys(this._stateMap),i=[],s=[];t.forEach((o,a)=>{let l=this._stateMap[o],d=this._getDescriptor(l,e);if(d){i[a]=d;let p=r.getStateMemberAlias(d._source.__path,e);s[a]=p,this._router.prototype.hasOwnProperty(p)||Object.defineProperty(this._router.prototype,p,d)}else i[a]=null,s[a]=null});let n;switch(i.forEach(o=>{if(o){let a=this._getDescriptorType(o);if(n&&n!==a){console.warn(`[Lightning] Member ${e} in ${this._type.name} has inconsistent types.`);return}n=a}}),n){case"method":this._addMethodRouter(e,i,s);break;case"getter":this._addGetterSetterRouters(e);break;case"property":console.warn("[Lightning] Fixed properties are not supported; please use a getter instead!");break}}_getDescriptor(e,t,i=()=>!0){let s=e,n=e;do{let o=Object.getOwnPropertyDescriptor(s.prototype,t);if(o&&i(o))return o._source=n,o;s=Object.getPrototypeOf(s),s&&s.hasOwnProperty("__state")&&(n=s)}while(s&&s.prototype)}_getDescriptorType(e){return e.get||e.set?"getter":typeof e.value=="function"?"method":"property"}static _supportsSpread(){if(this.__supportsSpread===void 0){this.__supportsSpread=!1;try{new Function("return [].concat(...arguments);")(),this.__supportsSpread=!0}catch{}}return this.__supportsSpread}_addMethodRouter(e,t,i){let s=["//@ sourceURL=StateMachineRouter.js","var i = this._stateIndex;"],n=i[0],o=r._supportsSpread();for(let p=1,_=i.length;p<_;p++){let g=i[p];g!==n&&(n?o?s.push(`if (i < ${p}) return this["${n}"](...arguments); else`):s.push(`if (i < ${p}) return this["${n}"].apply(this, arguments); else`):s.push(`if (i < ${p}) return ; else`)),n=g}n?o?s.push(`return this["${n}"](...arguments);`):s.push(`return this["${n}"].apply(this, arguments);`):s.push(";");let a=s.join(` -`),d={value:new Function([],a)};Object.defineProperty(this._router.prototype,e,d)}_addGetterSetterRouters(e){let t=this._getGetterRouter(e),i=this._getSetterRouter(e),s={get:t,set:i};Object.defineProperty(this._router.prototype,e,s)}_getGetterRouter(e){let t=Object.keys(this._stateMap),i=[];t.forEach((l,d)=>{let p=this._stateMap[l],_=this._getDescriptor(p,e,g=>g.get);if(_){let g=r.getStateMemberAlias(_._source.__path,e);i[d]=g,this._router.prototype.hasOwnProperty(g)||Object.defineProperty(this._router.prototype,g,_)}else i[d]=null});let s=["//@ sourceURL=StateMachineRouter.js","var i = this._stateIndex;"],n=i[0];for(let l=1,d=i.length;l{let p=this._stateMap[l],_=this._getDescriptor(p,e,g=>g.set);if(_){let g=r.getStateMemberAlias(_._source.__path,e);i[d]=g,this._router.prototype.hasOwnProperty(g)||Object.defineProperty(this._router.prototype,g,_)}else i[d]=null});let s=["//@ sourceURL=StateMachineRouter.js","var i = this._stateIndex;"],n=i[0];for(let l=1,d=i.length;l{if(s==="")return;let n=e[s];this._getStateMemberNames(n).forEach(a=>{i.add(a)})}),[...i]}_getStateMemberNames(e){let t=e,i=new Set,s=this._type===e;do this._getStateMemberNamesForType(t).forEach(o=>{i.add(o)}),t=Object.getPrototypeOf(t);while(t&&t.prototype&&(!t.hasOwnProperty("__state")||s));return i}_getStateMemberNamesForType(e){return Object.getOwnPropertyNames(e.prototype).filter(i=>i!=="constructor"&&!r._isStateLocalMember(i))}static _isStateLocalMember(e){return e==="$enter"||e==="$exit"}getStateByPath(e){if(this._stateMap[e])return this._stateMap[e];let t=e.split(".");for(;t.pop();){let i=t.join(".");if(this._stateMap[i])return this._stateMap[i]}}_getStateMap(){return this._stateMap||(this._stateMap=this._createStateMap()),this._stateMap}_createStateMap(){let e={};return this._addState(this._type,null,"",e),e}_addState(e,t,i,s){e.__state=!0,e.__name=i,this._addStaticStateProperty(e,t);let n=t?t.__path:"",o=(n?n+".":"")+i;e.__path=o,e.__level=t?t.__level+1:0,e.__parent=t,e.__index=Object.keys(s).length,s[o]=e;let a=e._states;a&&(t&&t._states===a||e._states().forEach(p=>{let _=r._getStateName(p);this._addState(p,e,_,s)}))}static _getStateName(e){let t=e.name,i=t.indexOf("$");return i>0?t.substr(0,i):t}_addStaticStateProperty(e,t){t&&(t&&!t.__parent?this._router[e.__name]=e:t[e.__name]=e)}},Ue=class r extends Ke{constructor(e,t){super(e),this.tagRoot=!0,z.isObjectLiteral(t)&&Object.assign(this,t),this.__initialized=!1,this.__firstActive=!1,this.__firstEnable=!1,this.__signals=void 0,this.__passSignals=void 0,this.__construct();let i=this.constructor.getTemplateFunc(this);i.f(this,i.a),this._build()}__start(){vi.setupStateMachine(this),this._onStateChange=r.prototype.__onStateChange}get state(){return this._getState()}__onStateChange(){this.application&&this.application.updateFocusPath()}_refocus(){this.application&&this.application.updateFocusPath()}static bindProp(e,t=null){return{__propertyBinding:!0,__name:e,__func:t}}__bindProperty(e,t,i){let s=t,n=i,o=Array.isArray(e.__name)?e.__name:[e.__name];for(let a=0;ap[l];this.hasOwnProperty(l)?this[`__prop_bindings_${l}`].push({__obj:s,__prop:n,__func:d}):(this[`__prop_bindings_${l}`]=[{__obj:s,__prop:n,__func:d}],Object.defineProperty(this,l,{set:p=>{this[`__prop_${l}`]=p;for(let{__obj:_,__prop:g,__func:m}of this[`__prop_bindings_${l}`])_[g]=m(this)},get:()=>this[`__prop_${l}`]}))}}static getTemplateFunc(e){let t="_templateFunc",i="__has"+t;return this[i]!==this&&(this[i]=this,this[t]=this.parseTemplate(this._template(e))),this[t]}static parseTemplate(e){let t={loc:[],store:[],rid:0};this.parseTemplateRec(e,t,"element");let i=t.loc.join(`; -`);return{f:new Function("element","store",i),a:t.store}}static parseTemplateRec(e,t,i){let s=t.store,n=t.loc;Object.keys(e).forEach(a=>{let l=e[a];if(z.isUcChar(a.charCodeAt(0)))if(z.isObjectLiteral(l)){let d=`r${a.replace(/[^a-z0-9]/gi,"")+t.rid}`,p=l.type?l.type:Ke;p===Ke?n.push(`var ${d} = element.stage.createElement()`):(s.push(p),n.push(`var ${d} = new store[${s.length-1}](${i}.stage)`)),n.push(`${d}.ref = "${a}"`),t.rid++,this.parseTemplateRec(l,t,d),n.push(`${i}.childList.add(${d})`)}else z.isObject(l)&&(s.push(l),n.push(`${i}.childList.add(store[${s.length-1}])`));else if(a==="text"){let d=i+"__text";n.push(`var ${d} = ${i}.enableTextTexture()`),l.__propertyBinding===!0?(s.push(l),n.push(`element.__bindProperty(store[${s.length-1}], ${i}, "${a}")`)):this.parseTemplatePropRec(l,t,d)}else if(a==="shader"&&z.isObjectLiteral(l)){let d=`${i}["shader"]`;s.push(l),n.push(`${i}["${a}"] = store[${s.length-1}]`),this.parsePropertyBindings(l,t,d)}else if(a==="texture"&&z.isObjectLiteral(l)){let d=i+"__texture",p=l.type;p?(s.push(p),n.push(`var ${d} = new store[${s.length-1}](${i}.stage)`),this.parseTemplatePropRec(l,t,d),n.push(`${i}["${a}"] = ${d}`)):(n.push(`${d} = ${i}.texture`),this.parseTemplatePropRec(l,t,d))}else z.isObjectLiteral(l)&&l.__propertyBinding===!0?(s.push(l),n.push(`element.__bindProperty(store[${s.length-1}], ${i}, "${a}")`)):z.isNumber(l)?n.push(`${i}["${a}"] = ${l}`):z.isBoolean(l)?n.push(`${i}["${a}"] = ${l?"true":"false"}`):z.isObject(l)||Array.isArray(l)?(s.push(l),n.push(`${i}["${a}"] = store[${s.length-1}]`)):n.push(`${i}["${a}"] = ${JSON.stringify(l)}`)})}static parseTemplatePropRec(e,t,i){let s=t.store,n=t.loc;Object.keys(e).forEach(a=>{if(a!=="type"){let l=e[a];z.isNumber(l)?n.push(`${i}["${a}"] = ${l}`):z.isBoolean(l)?n.push(`${i}["${a}"] = ${l?"true":"false"}`):z.isObject(l)&&l.__propertyBinding===!0?(s.push(l),n.push(`element.__bindProperty(store[${s.length-1}], ${i}, "${a}")`)):z.isObject(l)||Array.isArray(l)?(s.push(l),n.push(`${i}["${a}"] = store[${s.length-1}]`)):n.push(`${i}["${a}"] = ${JSON.stringify(l)}`)}})}static parsePropertyBindings(e,t,i){let s=t.store,n=t.loc;Object.keys(e).forEach(a=>{if(a!=="type"){let l=e[a];z.isObjectLiteral(l)&&l.__propertyBinding===!0&&(s.push(l),n.push(`element.__bindProperty(store[${s.length-1}], ${i}, "${a}")`))}})}_onSetup(){this.__initialized||this._setup()}_setup(){}_onAttach(){this.__initialized||(this.__init(),this.__initialized=!0),this._attach()}_attach(){}_onDetach(){this._detach()}_detach(){}_onEnabled(){this.__firstEnable||(this._firstEnable(),this.__firstEnable=!0),this._enable()}_firstEnable(){}_enable(){}_onDisabled(){this._disable()}_disable(){}_onActive(){this.__firstActive||(this._firstActive(),this.__firstActive=!0),this._active()}_firstActive(){}_active(){}_onInactive(){this._inactive()}_inactive(){}get application(){return this.stage.application}__construct(){this._construct()}_construct(){}_build(){}__init(){this._init()}_init(){}_focus(e,t){}_unfocus(e){}_focusChange(e,t){}_getFocused(){return this}_setFocusSettings(e){}_handleFocusSettings(e){}static _template(){return{}}hasFinalFocus(){let e=this.application._focusPath;return e&&e.length&&e[e.length-1]===this}hasFocus(){let e=this.application._focusPath;return e&&e.indexOf(this)>=0}get cparent(){return r.getParent(this)}seekAncestorByType(e){let t=this.cparent;for(;t;){if(t.constructor===e)return t;t=t.cparent}}getSharedAncestorComponent(e){let t=this.getSharedAncestor(e);for(;t&&!t.isComponent;)t=t.parent;return t}get signals(){return this.__signals}set signals(e){z.isObjectLiteral(e)||this._throwError("Signals: specify an object with signal-to-fire mappings"),this.__signals=e}set alterSignals(e){z.isObjectLiteral(e)||this._throwError("Signals: specify an object with signal-to-fire mappings"),this.__signals||(this.__signals={});for(let t in e)e[t]===void 0?delete this.__signals[t]:this.__signals[t]=e}get passSignals(){return this.__passSignals||{}}set passSignals(e){this.__passSignals=Object.assign(this.__passSignals||{},e)}set alterPassSignals(e){z.isObjectLiteral(e)||this._throwError("Signals: specify an object with signal-to-fire mappings"),this.__passSignals||(this.__passSignals={});for(let t in e)e[t]===void 0?delete this.__passSignals[t]:this.__passSignals[t]=e}signal(e,...t){return this._signal(e,t)}_signal(e,t){let i=this._getParentSignalHandler();if(i){if(this.__signals){let n=this.__signals[e];if(n===!1)return;if(n){if(n===!0&&(n=e),z.isFunction(n))return n(...t);if(i._hasMethod(n))return i[n](...t)}}let s=this.__passSignals&&this.__passSignals[e];if(s)return s&&s!==!0&&(e=s),i._signal(e,t)}}_getParentSignalHandler(){return this.cparent?this.cparent._getSignalHandler():null}_getSignalHandler(){return this._signalProxy?this.cparent?this.cparent._getSignalHandler():null:this}get _signalProxy(){return!1}fireAncestors(e,...t){if(!e.startsWith("$"))throw new Error("Ancestor event name must be prefixed by dollar sign.");let i=this._getParentSignalHandler();if(i)return i._doFireAncestors(e,t)}_doFireAncestors(e,t){if(this._hasMethod(e))return this.fire(e,...t);{let i=this._getParentSignalHandler();if(i)return i._doFireAncestors(e,t)}}static collectSubComponents(e,t){if(t.hasChildren()){let i=t.__childList;for(let s=0,n=i.length;s0&&this._quadOperation.scissor[3]>0)&&this.quadOperations.push(this._quadOperation),this._temporaryTexturizers.length){for(let t=0,i=this._temporaryTexturizers.length;t""+ ++s+": "+n).join(` -`)),null}return i}getUniformLocation(e){let t=this._uniformLocations.get(e);return t===void 0&&(t=this.gl.getUniformLocation(this._program,e),this._uniformLocations.set(e,t)),t}getAttribLocation(e){let t=this._attributeLocations.get(e);return t===void 0&&(t=this.gl.getAttribLocation(this._program,e),this._attributeLocations.set(e,t)),t}destroy(){this._program&&this.gl.deleteProgram(this._program),this._attributeLocations=null,this._currentUniformValues=null,this.fragmentShaderSource=null,this._program=null,this.gl=null,this._uniformLocations=null,this.vertexShaderSource=null,delete this.vertexShaderSource,delete this._program,delete this._currentUniformValues,delete this.fragmentShaderSource,delete this.gl,delete this._uniformLocations,delete this._attributeLocations}get glProgram(){return this._program}get compiled(){return!!this._program}_valueEquals(e,t){if(e.length&&t.length){for(let i=0,s=e.length;ie.destroy()),this.shaderPrograms=null,this._compressedTextureExtensions=null,delete this.shaderPrograms,delete this._compressedTextureExtensions}_createDefaultShader(e){return new ge(e)}_getShaderBaseType(){return Ir}_getShaderAlternative(e){return e.getWebGL&&e.getWebGL()}createCoreQuadList(e){return new cl(e)}createCoreQuadOperation(e,t,i,s,n,o){return new dl(e,t,i,s,n,o)}createCoreRenderExecutor(e){return new pl(e)}createCoreRenderState(e){return new xn(e)}createRenderTexture(e,t,i,s){let n=this.stage.gl,o=n.createTexture();return n.bindTexture(n.TEXTURE_2D,o),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,i,s,0,n.RGBA,n.UNSIGNED_BYTE,null),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),o.params={},o.params[n.TEXTURE_MAG_FILTER]=n.LINEAR,o.params[n.TEXTURE_MIN_FILTER]=n.LINEAR,o.params[n.TEXTURE_WRAP_S]=n.CLAMP_TO_EDGE,o.params[n.TEXTURE_WRAP_T]=n.CLAMP_TO_EDGE,o.options={format:n.RGBA,internalFormat:n.RGBA,type:n.UNSIGNED_BYTE},o.framebuffer=n.createFramebuffer(),o.projection=new Float32Array([2/e,2/t]),n.bindFramebuffer(n.FRAMEBUFFER,o.framebuffer),n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,o,0),o}freeRenderTexture(e){let t=this.stage.gl;t.deleteFramebuffer(e.framebuffer),t.deleteTexture(e)}_getBytesPerPixel(e,t){let i=this.stage.gl;if(e===i.RGBA)switch(t){case i.UNSIGNED_BYTE:return 4;case i.UNSIGNED_SHORT_4_4_4_4:return 2;case i.UNSIGNED_SHORT_5_5_5_1:return 2;default:throw new Error("Invalid type specified for GL_RGBA format")}else if(e===i.RGB)switch(t){case i.UNSIGNED_BYTE:return 3;case i.UNSIGNED_BYTE_5_6_5:return 2;default:throw new Error("Invalid type specified for GL_RGB format")}else throw new Error("Invalid format specified in call to _getBytesPerPixel()")}uploadTextureSource(e,t){let i=this.stage.gl,s=t.source,n=!1;t.renderInfo&&(n=t.renderInfo.compressed||!1);let o={premultiplyAlpha:!0,hasAlpha:!0};t&&t.hasOwnProperty("premultiplyAlpha")&&(o.premultiplyAlpha=t.premultiplyAlpha),t&&t.hasOwnProperty("flipBlueRed")&&(o.flipBlueRed=t.flipBlueRed),t&&t.hasOwnProperty("hasAlpha")&&(o.hasAlpha=t.hasAlpha),o.hasAlpha||(o.premultiplyAlpha=!1),o.texParams=t.texParams||{},o.texOptions=t.texOptions||{};let a=i.createTexture();i.bindTexture(i.TEXTURE_2D,a),i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,o.premultiplyAlpha),z.isNode&&i.pixelStorei(i.UNPACK_FLIP_BLUE_RED,!!o.flipBlueRed);let l=o.texParams;if(l[i.TEXTURE_MAG_FILTER]||(l[i.TEXTURE_MAG_FILTER]=i.LINEAR),l[i.TEXTURE_MIN_FILTER]||(l[i.TEXTURE_MIN_FILTER]=i.LINEAR),l[i.TEXTURE_WRAP_S]||(l[i.TEXTURE_WRAP_S]=i.CLAMP_TO_EDGE),l[i.TEXTURE_WRAP_T]||(l[i.TEXTURE_WRAP_T]=i.CLAMP_TO_EDGE),Object.keys(l).forEach(p=>{let _=l[p];i.texParameteri(i.TEXTURE_2D,parseInt(p),_)}),n)return this.stage.platform.uploadCompressedGlTexture(i,e,s),a;let d=o.texOptions;return d.format=d.format||(o.hasAlpha?i.RGBA:i.RGB),d.type=d.type||i.UNSIGNED_BYTE,d.internalFormat=d.internalFormat||d.format,t&&t.imageRef&&(d.imageRef=t.imageRef),this.stage.platform.uploadGlTexture(i,e,s,d),a.params=z.cloneObjShallow(l),a.options=z.cloneObjShallow(d),a.bytesPerPixel=this._getBytesPerPixel(d.format,d.type),a}freeTextureSource(e){this.stage.gl.deleteTexture(e.nativeTexture)}addQuad(e,t,i){let s=i*20,n=t.quadElements[i],o=n._renderContext,a=e.quads.floats,l=e.quads.uints,d=ie.mergeColorAlpha;if(o.tb!==0||o.tc!==0)a[s++]=o.px,a[s++]=o.py,a[s++]=n._ulx,a[s++]=n._uly,l[s++]=d(n._colorUl,o.alpha),a[s++]=o.px+n._w*o.ta,a[s++]=o.py+n._w*o.tc,a[s++]=n._brx,a[s++]=n._uly,l[s++]=d(n._colorUr,o.alpha),a[s++]=o.px+n._w*o.ta+n._h*o.tb,a[s++]=o.py+n._w*o.tc+n._h*o.td,a[s++]=n._brx,a[s++]=n._bry,l[s++]=d(n._colorBr,o.alpha),a[s++]=o.px+n._h*o.tb,a[s++]=o.py+n._h*o.td,a[s++]=n._ulx,a[s++]=n._bry,l[s]=d(n._colorBl,o.alpha);else{let p=o.px+n._w*o.ta,_=o.py+n._h*o.td;a[s++]=o.px,a[s++]=o.py,a[s++]=n._ulx,a[s++]=n._uly,l[s++]=d(n._colorUl,o.alpha),a[s++]=p,a[s++]=o.py,a[s++]=n._brx,a[s++]=n._uly,l[s++]=d(n._colorUr,o.alpha),a[s++]=p,a[s++]=_,a[s++]=n._brx,a[s++]=n._bry,l[s++]=d(n._colorBr,o.alpha),a[s++]=o.px,a[s++]=_,a[s++]=n._ulx,a[s++]=n._bry,l[s]=d(n._colorBl,o.alpha)}}isRenderTextureReusable(e,t){let i=e._renderTextureInfo.offset*80/4,s=e.quads.floats,n=e.quads.uints;return s[i]===0&&s[i+1]===0&&s[i+2]===0&&s[i+3]===0&&n[i+4]===4294967295&&s[i+5]===t.w&&s[i+6]===0&&s[i+7]===1&&s[i+8]===0&&n[i+9]===4294967295&&s[i+10]===t.w&&s[i+11]===t.h&&s[i+12]===1&&s[i+13]===1&&n[i+14]===4294967295&&s[i+15]===0&&s[i+16]===t.h&&s[i+17]===0&&s[i+18]===1&&n[i+19]===4294967295}finishRenderState(e){let t=e.length*80;for(let i=0,s=e.quadOperations.length;in.u&&this._tintTexture(n.tx,e,t),n.tx;{let o=s.memoryUsage,a=s.reuseTexture(i);a?a.ctx.clearRect(0,0,a.width,a.height):(a=document.createElement("canvas"),a.width=e.w,a.height=e.h,a.ctx=a.getContext("2d")),this._tintTexture(a,e,t),s.set(t,a,i);let l=s.memoryUsage;return l!==o&&this._addMemoryUsage(l-o),a}}_tintTexture(e,t,i){let s=i.toString(16);for(;s.length<6;)s="0"+s;e.ctx.fillStyle="#"+s,e.ctx.globalCompositeOperation="copy",e.ctx.fillRect(0,0,t.w,t.h),e.ctx.globalCompositeOperation="multiply",e.ctx.drawImage(t,0,0,t.w,t.h,0,0,e.width,e.height),e.ctx.globalCompositeOperation="destination-in",e.ctx.drawImage(t,0,0,t.w,t.h,0,0,e.width,e.height)}_hasCache(e){return!!e._tintCache}_getCache(e){return e._tintCache||(e._tintCache=new xl(e)),e._tintCache}gc(e=!1){let t=this.stage.frameCounter,i=0;this._cachedNativeTextures.forEach(s=>{let n=this._getCache(s);if(e)i+=n.memoryUsage,n.clear();else{let o=n.memoryUsage;n.cleanup(t),n.releaseBlancoTextures(),i+=n.memoryUsage-o}}),e&&this._cachedNativeTextures.clear(),i&&this._addMemoryUsage(i)}},xl=class{constructor(e){this._tx=e,this._colors=new Map,this._blancoTextures=null,this._lastCleanupFrame=0,this._memTextures=0}get memoryUsage(){return this._memTextures*this._tx.w*this._tx.h}releaseBlancoTextures(){this._memTextures-=this._blancoTextures.length,this._blancoTextures=[]}clear(){this._blancoTextures=null,this._colors.clear(),this._memTextures=0}get(e){let t=this._colors.get(e);return t||(t={lf:-1,tx:void 0,u:-1},this._colors.set(e,t)),t}set(e,t,i){let s=this.get(e);s.lf=i,s.tx=t,s.u=i,this._memTextures++}cleanup(e){this._lastCleanupFrame!==e&&(this._blancoTextures=[],this._colors.forEach((t,i)=>{t.lf0?o-1:o,d=this.ctx.stage.getOption("precision"),p=e.getElementCore(l);this.ctx.stage.platform.paint(t,s.options.imageRef,p._worldContext.px*d,p._worldContext.py*d,p._colorUl,p)}else t.bindTexture(t.TEXTURE_2D,s),t.drawElements(t.TRIANGLES,6*(o-n),t.UNSIGNED_SHORT,(n+e.index)*6*2);s=a,n=o}}if(n{if(s.data&&s.data.id){let n=s.data.id,o=this._items.get(n);o&&(s.data.type=="data"?this.finish(o,s.data.info):this.error(o,s.data.info))}}}create(e){let t=++this._id,i=new Al(this,t,e);return this._items.set(t,i),this._worker.postMessage({type:"add",id:t,src:e}),i}cancel(e){this._worker.postMessage({type:"cancel",id:e.id}),this._items.delete(e.id)}error(e,t){e.error(t),this._items.delete(e.id)}finish(e,t){e.load(t),this._items.delete(e.id)}},Al=class{constructor(e,t,i){this._manager=e,this._id=t,this._src=i,this._onError=null,this._onLoad=null}get id(){return this._id}get src(){return this._src}set onError(e){this._onError=e}set onLoad(e){this._onLoad=e}cancel(){this._manager.cancel(this)}load(e){this._onLoad&&this._onLoad(e)}error(e){this._onError&&this._onError(e)}},k2=function(){function r(){this.items=new Map;var t=this;onmessage=function(i){t._receiveMessage(i)}}r.isPathAbsolute=function(t){return/^(?:\/|[a-z]+:\/\/)/.test(t)||t.substr(0,5)=="data:"},r.prototype._receiveMessage=function(t){if(t.data.type==="config"){this.config=t.data.config;var i=this.config.path,s=/#.*?\//;s.test(i)&&(i=i.replace(/#.*$/,""));var n=i.split("/");n.pop(),this._relativeBase=n.join("/")+"/"}else t.data.type==="add"?this.add(t.data.id,t.data.src):t.data.type==="cancel"&&this.cancel(t.data.id)},r.prototype.add=function(t,i){r.isPathAbsolute(i)||(i=this._relativeBase+i),i.substr(0,2)==="//"&&(i=this.config.protocol+i);var s=new e(t,i),n=this;s.onFinish=function(o){n.finish(s,o)},s.onError=function(o){n.error(s,o)},this.items.set(t,s),s.start()},r.prototype.cancel=function(t){var i=this.items.get(t);i&&(i.cancel(),this.items.delete(t))},r.prototype.finish=function(t,{imageBitmap:i,hasAlphaChannel:s}){postMessage({type:"data",id:t.id,info:{imageBitmap:i,hasAlphaChannel:s}},[i]),this.items.delete(t.id)},r.prototype.error=function(t,{type:i,message:s}){postMessage({type:"error",id:t.id,info:{type:i,message:s}}),this.items.delete(t.id)},r.isWPEBrowser=function(){return navigator.userAgent.indexOf("WPE")!==-1};function e(t,i){this._onError=void 0,this._onFinish=void 0,this._id=t,this._src=i,this._xhr=void 0,this._mimeType=void 0,this._canceled=!1}Object.defineProperty(e.prototype,"id",{get:function(){return this._id}}),Object.defineProperty(e.prototype,"onFinish",{get:function(){return this._onFinish},set:function(t){this._onFinish=t}}),Object.defineProperty(e.prototype,"onError",{get:function(){return this._onError},set:function(t){this._onError=t}}),e.prototype.start=function(){this._xhr=new XMLHttpRequest,this._xhr.open("GET",this._src,!0),this._xhr.responseType="blob";var t=this;this._xhr.onerror=function(i){t.error({type:"connection",message:"Connection error"})},this._xhr.onload=function(i){var s=t._xhr.response;t._mimeType=s.type,t._createImageBitmap(s)},this._xhr.send()},e.prototype._createImageBitmap=function(t){var i=this;createImageBitmap(t,{premultiplyAlpha:"premultiply",colorSpaceConversion:"none",imageOrientation:"none"}).then(function(s){i.finish({imageBitmap:s,hasAlphaChannel:i._hasAlphaChannel()})}).catch(function(s){i.error({type:"parse",message:"Error parsing image data"})})},e.prototype._hasAlphaChannel=function(){return r.isWPEBrowser()?!0:this._mimeType.indexOf("image/png")!==-1},e.prototype.cancel=function(){this._canceled||(this._xhr&&this._xhr.abort(),this._canceled=!0)},e.prototype.error=function(t,i){!this._canceled&&this._onError&&this._onError({type:t,message:i})},e.prototype.finish=function(t){!this._canceled&&this._onFinish&&this._onFinish(t)},new r},vl=class{init(e){this.stage=e,this._looping=!1,this._awaitingLoop=!1,this._loopHandler=null,this._idleLoopCounter=0,this._idleLoopDelay=60,this.stage.getOption("useImageWorker")&&(!window.createImageBitmap||!window.Worker?console.warn("[Lightning] Can't use image worker because browser does not have createImageBitmap and Web Worker support"):this._imageWorker=new Cl),this._registerVisibilityChangeHandler()}destroy(){this._imageWorker&&this._imageWorker.destroy(),clearInterval(this._loopHandler),this._removeKeyHandler(),this._removeClickHandler(),this._removeHoverHandler(),this._removeScrollWheelHandler(),this._removeVisibilityChangeHandler(),this.stage=null,delete this.stage}startLoop(){this._looping=!0,this._awaitingLoop||this.loop()}stopLoop(){this._looping=!1}switchLoop(){if(this._idleLoopCounter{this.stage.updateFrame(),this.stage.idleFrame(),this.stage.ctx.hasRenderUpdates()&&(clearInterval(this._loopHandler),this.startLoop())},1e3/60))}loop(){let e=this,t=function(){e._awaitingLoop=!1,e._looping&&(e.stage.updateFrame(),e.stage.getOption("pauseRafLoopOnIdle")&&e.switchLoop(),e.stage.renderFrame(),requestAnimationFrame(t),e._awaitingLoop=!0)};requestAnimationFrame(t)}uploadCompressedGlTexture(e,t,i,s){let n=i.pvr?i.mipmaps[0]:new DataView(i.mipmaps[0]);e.compressedTexImage2D(e.TEXTURE_2D,0,i.glInternalFormat,i.pixelWidth,i.pixelHeight,0,n),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR)}uploadGlTexture(e,t,i,s){if(i instanceof ImageData||i instanceof HTMLImageElement||i instanceof HTMLVideoElement||window.ImageBitmap&&i instanceof ImageBitmap)e.texImage2D(e.TEXTURE_2D,0,s.internalFormat,s.format,s.type,i);else if(i instanceof HTMLCanvasElement){if(z.isZiggo||this.stage.getOption("forceTxCanvasSource"))e.texImage2D(e.TEXTURE_2D,0,s.internalFormat,s.format,s.type,i);else if(i.width>0&&i.height>0){let n=i.getContext("2d");e.texImage2D(e.TEXTURE_2D,0,s.internalFormat,s.format,s.type,n.getImageData(0,0,i.width,i.height))}}else e.texImage2D(e.TEXTURE_2D,0,s.internalFormat,t.w,t.h,0,s.format,s.type,i)}handleKtxLoad(e,t){var i=this;return function(){var s=this.response,n=new DataView(s),o=3632701469;o!==n.getUint32(0)+n.getUint32(4)+n.getUint32(8)&&e("Parsing failed: identifier ktx mismatch:",t);var a=n.getUint32(12)===16909060,l={glType:n.getUint32(16,a),glTypeSize:n.getUint32(20,a),glFormat:n.getUint32(24,a),glInternalFormat:n.getUint32(28,a),glBaseInternalFormat:n.getUint32(32,a),pixelWidth:n.getUint32(36,a),pixelHeight:n.getUint32(40,a),pixelDepth:n.getUint32(44,a),numberOfArrayElements:n.getUint32(48,a),numberOfFaces:n.getUint32(52,a),numberOfMipmapLevels:n.getUint32(56,a),bytesOfKeyValueData:n.getUint32(60,a),kvps:[],mipmaps:[],get width(){return this.pixelWidth},get height(){return this.pixelHeight}};let d=A=>{let C=[];for(let v in A)C.push(A[v]);return C};Object.values(i.stage.renderer.getCompressedTextureExtensions()).filter(A=>A!=null).map(A=>d(A)).reduce((A,C)=>A.concat(C)).includes(l.glInternalFormat)||console.warn("[Lightning] Unrecognized texture extension format:",t,l.glInternalFormat,i.stage.renderer.getCompressedTextureExtensions());var _=64;_+=l.bytesOfKeyValueData;for(var g=0;g>2)*(v+3>>2)*8,B=new Uint8Array(d,g.byteOffset+A,D);m.mipmaps.push(B),A+=D,C=C>>1,v=v>>1}e(null,{source:m,renderInfo:{src:t,compressed:!0}})}}loadSrcTexture({src:e,hasAlpha:t},i){let s,n=e.toLowerCase().indexOf(".png")>=0||e.substr(0,21)=="data:image/png;base64",o=e.indexOf(".ktx")>=0,a=e.indexOf(".pvr")>=0;if(o||a){let l=new XMLHttpRequest;l.addEventListener("load",o?this.handleKtxLoad(i,e):this.handlePvrLoad(i,e)),l.open("GET",e),l.responseType="arraybuffer",l.send(),s=function(){l.abort()}}else if(this._imageWorker){let l=this._imageWorker.create(e);l.onError=function(d){return i("Image load error")},l.onLoad=function({imageBitmap:d,hasAlphaChannel:p}){i(null,{source:d,renderInfo:{src:e,compressed:!1},hasAlpha:p,premultiplyAlpha:!0})},s=function(){l.cancel()}}else{let l=new Image;e.substr(0,5)!="data:"&&!z.isPS4&&(l.crossOrigin="Anonymous"),l.onerror=function(d){if(l.src)return i("Image load error")},l.onload=function(){i(null,{source:l,renderInfo:{src:e,compressed:!1},hasAlpha:n||t})},l.src=e,s=function(){l.onerror=null,l.onload=null,l.removeAttribute("src")}}return s}createWebGLContext(e,t){let i=this.stage.getOption("canvas")||document.createElement("canvas");e&&t&&(i.width=e,i.height=t);let s={alpha:!0,antialias:!1,premultipliedAlpha:!0,stencil:!0,preserveDrawingBuffer:!1},n=i.getContext("webgl",s)||i.getContext("experimental-webgl",s)||i.getContext("webgl2",s);if(!n)throw new Error("This browser does not support webGL.");return n}createCanvasContext(e,t){let i=this.stage.getOption("canvas")||document.createElement("canvas");e&&t&&(i.width=e,i.height=t);let s=i.getContext("2d");if(!s)throw new Error("This browser does not support 2d canvas.");return s}getHrTime(){return window.performance?window.performance.now():new Date().getTime()}getDrawingCanvas(){return document.createElement("canvas")}getTextureOptionsForDrawingCanvas(e){let t={};return t.source=e,t}nextFrame(e){}registerKeydownHandler(e){this._keydownListener=t=>{e(t)},window.addEventListener("keydown",this._keydownListener)}registerKeyupHandler(e){this._keyupListener=t=>{e(t)},window.addEventListener("keyup",this._keyupListener)}_removeKeyHandler(){this._keydownListener&&window.removeEventListener("keydown",this._keydownListener),this._keyupListener&&window.removeEventListener("keyup",this._keyupListener)}registerClickHandler(e){this._clickListener=t=>{e(t)},window.addEventListener("mousedown",this._clickListener)}_removeClickHandler(){this._clickListener&&window.removeEventListener("mousedown",this._clickListener)}registerHoverHandler(e){this._hoverListener=t=>{e(t)},window.addEventListener("mousemove",this._hoverListener)}_removeHoverHandler(){this._hoverListener&&window.removeEventListener("mousemove",this._hoverListener)}registerScrollWheelHandler(e){this._scrollWheelListener=t=>{e(t)},window.addEventListener("wheel",this._scrollWheelListener)}_removeScrollWheelHandler(){this._scrollWheelListener&&window.removeEventListener("wheel",this._scrollWheelListener)}_registerVisibilityChangeHandler(){this._visibilityChangeHandler=()=>{document.visibilityState==="visible"&&(this.stage.root.core.setHasRenderUpdates(2),this.stage.renderFrame())},document.addEventListener("visibilitychange",this._visibilityChangeHandler)}_removeVisibilityChangeHandler(){this._visibilityChangeHandler&&document.removeEventListener("visibilitychange",this._visibilityChangeHandler)}},wl=class{static load(e){return e.platform?e.platform:vl}},Dr=class r{static isFunction(e){return typeof e=="function"}static isNumber(e){return typeof e=="number"}static isInteger(e){return typeof e=="number"&&e%1===0}static isBoolean(e){return e===!0||e===!1}static isString(e){return typeof e=="string"}static isObject(e){let t=typeof e;return!!e&&(t=="object"||t=="function")}static isPlainObject(e){return!!e&&typeof e=="object"}static isObjectLiteral(e){return typeof e=="object"&&e&&e.constructor===Object}static getArrayIndex(e,t){return r.getModuloIndex(e,t.length)}static equalValues(e,t){return typeof e!=typeof t?!1:r.isObjectLiteral(e)?r.isObjectLiteral(t)&&r.equalObjectLiterals(e,t):Array.isArray(e)?Array.isArray(t)&&r.equalArrays(e,t):e===t}static equalObjectLiterals(e,t){let i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(let n=0,o=i.length;n{e._buffers.get(s)!==i&&this._gl._bindBuffer(s,i)}),e._buffers.forEach((i,s)=>{t._buffers.get(s)===void 0&&this._gl._bindBuffer(s,null)}),t._buffers.get(this._gl.ARRAY_BUFFER)!==e._buffers.get(this._gl.ARRAY_BUFFER)}_migrateFramebuffers(e,t){t._framebuffers.forEach((i,s)=>{e._framebuffers.get(s)!==i&&this._gl._bindFramebuffer(s,i)}),e._framebuffers.forEach((i,s)=>{t._framebuffers.get(s)===void 0&&this._gl._bindFramebuffer(s,null)})}_migrateRenderbuffers(e,t){t._renderbuffers.forEach((i,s)=>{e._renderbuffers.get(s)!==i&&this._gl._bindRenderbuffer(s,i)}),e._renderbuffers.forEach((i,s)=>{t._renderbuffers.get(s)===void 0&&this._gl._bindRenderbuffer(s,null)})}_migrateAttributes(e,t,i){i?t._vertexAttribs.forEach((s,n)=>{s[0]&&this._gl._vertexAttribPointer(n,s[0],s[1],s[2],s[3],s[4]),s[5]&&this._gl._enableVertexAttribArray(n)}):(e._vertexAttribs.forEach((s,n)=>{t._vertexAttribs[n]||this._gl._disableVertexAttribArray(n)}),t._vertexAttribs.forEach((s,n)=>{this._gl._vertexAttribPointer(n,s[0],s[1],s[2],s[4]),s[5]?this._gl._enableVertexAttribArray(n):this._gl._disableVertexAttribArray(n)}))}_migrateSettings(e,t){let i=this.constructor.getDefaultSettings();e._settings.forEach((s,n)=>{let o=n.name||n.xname;if(!t._settings.has(n)){let a=i.get(o);Dr.isFunction(a)&&(a=a(this._gl)),t._settings.set(n,a),n.apply(this._gl,a)}}),t._settings.forEach((s,n)=>{let o=e._settings.get(n);(!o||!Dr.equalValues(o,s))&&n.apply(this._gl,s)})}_migrateFlags(e,t){e._nonDefaultFlags.forEach(i=>{t._nonDefaultFlags.has(i)||(this._getDefaultFlag(i)?this._gl._enable(i):this._gl._disable(i))}),t._nonDefaultFlags.forEach(i=>{e._nonDefaultFlags.has(i)||(this._getDefaultFlag(i)?this._gl._disable(i):this._gl._enable(i))})}static getDefaultSettings(){if(!this._defaultSettings){this._defaultSettings=new Map;let e=this._defaultSettings,t=WebGLRenderingContext.prototype;e.set("viewport",function(i){return[0,0,i.canvas.width,i.canvas.height]}),e.set("scissor",function(i){return[0,0,i.canvas.width,i.canvas.height]}),e.set("blendColor",[0,0,0,0]),e.set("blendEquation",[t.FUNC_ADD]),e.set("blendEquationSeparate",[t.FUNC_ADD,t.FUNC_ADD]),e.set("blendFunc",[t.ONE,t.ZERO]),e.set("blendFuncSeparate",[t.ONE,t.ZERO,t.ONE,t.ZERO]),e.set("clearColor",[0,0,0,0]),e.set("clearDepth",[1]),e.set("clearStencil",[0]),e.set("colorMask",[!0,!0,!0,!0]),e.set("cullFace",[t.BACK]),e.set("depthFunc",[t.LESS]),e.set("depthMask",[!0]),e.set("depthRange",[0,1]),e.set("frontFace",[t.CCW]),e.set("lineWidth",[1]),e.set("polygonOffset",[0,0]),e.set("sampleCoverage",[1,!1]),e.set("stencilFunc",[t.ALWAYS,0,1]),e.set("_stencilFuncSeparateFront",[t.ALWAYS,0,1]),e.set("_stencilFuncSeparateBack",[t.ALWAYS,0,1]),e.set("_stencilFuncSeparateFrontAndBack",[t.ALWAYS,0,1]),e.set("stencilMask",[1]),e.set("_stencilMaskSeparateFront",[1]),e.set("_stencilMaskSeparateBack",[1]),e.set("_stencilMaskSeparateFrontAndBack",[1]),e.set("stencilOp",[t.KEEP,t.KEEP,t.KEEP]),e.set("_stencilOpSeparateFront",[t.KEEP,t.KEEP,t.KEEP]),e.set("_stencilOpSeparateBack",[t.KEEP,t.KEEP,t.KEEP]),e.set("_stencilOpSeparateFrontAndBack",[t.KEEP,t.KEEP,t.KEEP]),e.set("vertexAttrib1f",[]),e.set("vertexAttrib1fv",[]),e.set("vertexAttrib2f",[]),e.set("vertexAttrib2fv",[]),e.set("vertexAttrib3f",[]),e.set("vertexAttrib3fv",[]),e.set("vertexAttrib4f",[]),e.set("vertexAttrib4fv",[])}return this._defaultSettings}static _getTextureTargetIndex(e){switch(e){case 3553:return 0;case 34067:return 1;default:throw new Error("Unknown texture target: "+e)}}static _getTextureTargetByIndex(e){return this._textureTargetIndices||(this._textureTargetIndices=[3553,34067]),this._textureTargetIndices[e]}static _getTextureIndex(e){return e-33984}static _getTextureByIndex(e){return e+33984}static _getPixelStoreiIndex(e){switch(e){case 3333:return 0;case 3317:return 1;case 37440:return 2;case 37441:return 3;case 37443:return 4;case 37445:return 5;default:throw new Error("Unknown pixelstorei: "+e)}}static _getPixelStoreiByIndex(e){return this._pixelStoreiIndices||(this._pixelStoreiIndices=[3333,3317,37440,37441,37443]),this._pixelStoreiIndices[e]}static _getDefaultPixelStoreiByIndex(e){return this._pixelStoreiDefaults||(this._pixelStoreiDefaults=[4,4,!1,!1,WebGLRenderingContext.prototype.BROWSER_DEFAULT_WEBGL]),this._pixelStoreiDefaults[e]}},Tl=class r{_initStateManager(e="default"){this._states={},this._state=this._getState(e)}_getState(e){return this._states[e]||(this._states[e]=new El(e,this)),this._states[e]}switchState(e="default"){if(this._state._id!==e){let t=this._getState(e);this._state.migrate(t),this._state=t}}$useProgram(e){this._state.setProgram(e)&&this._useProgram(e)}$bindBuffer(e,t){this._state.setBuffer(e,t)&&this._bindBuffer(e,t)}$bindFramebuffer(e,t){this._state.setFramebuffer(e,t)&&this._bindFramebuffer(e,t)}$bindRenderbuffer(e,t){this._state.setRenderbuffer(e,t)&&this._bindRenderbuffer(e,t)}$enable(e){this._state.setFlag(e,!0)&&this._enable(e)}$disable(e){this._state.setFlag(e,!1)&&this._disable(e)}$viewport(e,t,i,s){this._state.setSetting(this._viewport,[e,t,i,s])&&this._viewport(e,t,i,s)}$scissor(e,t,i,s){this._state.setSetting(this._scissor,[e,t,i,s])&&this._scissor(e,t,i,s)}$disableVertexAttribArray(e){this._state.disableVertexAttribArray(e)&&this._disableVertexAttribArray(e)}$enableVertexAttribArray(e){this._state.enableVertexAttribArray(e)&&this._enableVertexAttribArray(e)}$vertexAttribPointer(e,t,i,s,n,o){this._state.vertexAttribPointer(e,[t,i,s,n,o])&&this._vertexAttribPointer(e,t,i,s,n,o)}$activeTexture(e){this._state.setActiveTexture(e)&&this._activeTexture(e)}$bindTexture(e,t){this._state.bindTexture(e,t)&&this._bindTexture(e,t)}$pixelStorei(e,t){this._state.setPixelStorei(e,t)&&this._pixelStorei(e,t)}$stencilFuncSeparate(e,t,i,s){let n;switch(e){case this.FRONT:n=this._stencilFuncSeparateFront;break;case this.BACK:n=this._stencilFuncSeparateBack;break;case this.FRONT_AND_BACK:n=this._stencilFuncSeparateFrontAndBack;break}this._state.setSetting(n,[t,i,s])&&n.apply(this,[t,i,s])}_stencilFuncSeparateFront(e,t,i){this._stencilFuncSeparate(this.FRONT,e,t,i)}_stencilFuncSeparateBack(e,t,i){this._stencilFuncSeparate(this.BACK,e,t,i)}_stencilFuncSeparateFrontAndBack(e,t,i){this._stencilFuncSeparate(this.FRONT_AND_BACK,e,t,i)}$stencilMaskSeparate(e,t){let i;switch(e){case this.FRONT:i=this._stencilMaskSeparateFront;break;case this.BACK:i=this._stencilMaskSeparateBack;break;case this.FRONT_AND_BACK:i=this._stencilMaskSeparateFrontAndBack;break}this._state.setSetting(i,[t])&&i.apply(this,[t])}_stencilMaskSeparateFront(e){this._stencilMaskSeparate(this.FRONT,e)}_stencilMaskSeparateBack(e){this._stencilMaskSeparate(this.BACK,e)}_stencilMaskSeparateFrontAndBack(e){this._stencilMaskSeparate(this.FRONT_AND_BACK,e)}$stencilOpSeparate(e,t,i,s){let n;switch(e){case this.FRONT:n=this._stencilOpSeparateFront;break;case this.BACK:n=this._stencilOpSeparateBack;break;case this.FRONT_AND_BACK:n=this._stencilOpSeparateFrontAndBack;break}this._state.setSetting(n,[t,i,s])&&n.apply(this,[t,i,s])}_stencilOpSeparateFront(e,t,i){this._stencilOpSeparate(this.FRONT,e,t,i)}_stencilOpSeparateBack(e,t,i){this._stencilOpSeparate(this.BACK,e,t,i)}_stencilOpSeparateFrontAndBack(e,t,i){this._stencilOpSeparate(this.FRONT_AND_BACK,e,t,i)}$blendColor(e,t,i,s){this._state.setSetting(this._blendColor,[e,t,i,s])&&this._blendColor(e,t,i,s)}$blendEquation(e){this._state.setSetting(this._blendEquation,[e])&&this._blendEquation(e)}$blendEquationSeparate(e,t){this._state.setSetting(this._blendEquationSeparate,[e,t])&&this._blendEquationSeparate(e,t)}$blendFunc(e,t){this._state.setSetting(this._blendFunc,[e,t])&&this._blendFunc(e,t)}$blendFuncSeparate(e,t,i,s){this._state.setSetting(this._blendFuncSeparate,[e,t,i,s])&&this._blendFuncSeparate(e,t,i,s)}$clearColor(e,t,i,s){this._state.setSetting(this._clearColor,[e,t,i,s])&&this._clearColor(e,t,i,s)}$clearDepth(e){this._state.setSetting(this._clearDepth,[e])&&this._clearDepth(e)}$clearStencil(e){this._state.setSetting(this._clearStencil,[e])&&this._clearStencil(e)}$colorMask(e,t,i,s){this._state.setSetting(this._colorMask,[e,t,i,s])&&this._colorMask(e,t,i,s)}$cullFace(e){this._state.setSetting(this._cullFace,[e])&&this._cullFace(e)}$depthFunc(e){this._state.setSetting(this._depthFunc,[e])&&this._depthFunc(e)}$depthMask(e){this._state.setSetting(this._depthMask,[e])&&this._depthMask(e)}$depthRange(e,t){this._state.setSetting(this._depthRange,[e,t])&&this._depthRange(e,t)}$frontFace(e){this._state.setSetting(this._frontFace,[e])&&this._frontFace(e)}$lineWidth(e){this._state.setSetting(this._lineWidth,[e])&&this._lineWidth(e)}$polygonOffset(e,t){this._state.setSetting(this._polygonOffset,[e,t])&&this._polygonOffset(e,t)}$sampleCoverage(e,t){this._state.setSetting(this._sampleCoverage,[e,t])&&this._sampleCoverage(e,t)}$stencilFunc(e,t,i){this._state.setSetting(this._stencilFunc,[e,t,i])&&this._stencilFunc(e,t,i)}$stencilMask(e){this._state.setSetting(this._stencilMask,[e])&&this._stencilMask(e)}$stencilOp(e,t,i){this._state.setSetting(this._stencilOp,[e,t,i])&&this._stencilOp(e,t,i)}$vertexAttrib1f(e,t){this._state.setSetting(this._vertexAttrib1f,[e,t])&&this._vertexAttrib1f(e,t)}$vertexAttrib1fv(e,t){this._state.setSetting(this._vertexAttrib1fv,[e,t])&&this._vertexAttrib1fv(e,t)}$vertexAttrib2f(e,t,i){this._state.setSetting(this._vertexAttrib2f,[e,t,i])&&this._vertexAttrib2f(e,t,i)}$vertexAttrib2fv(e,t){this._state.setSetting(this._vertexAttrib2fv,[e,t])&&this._vertexAttrib2fv(e,t)}$vertexAttrib3f(e,t,i,s){this._state.setSetting(this._vertexAttrib3f,[e,t,i,s])&&this._vertexAttrib3f(e,t,i,s)}$vertexAttrib3fv(e,t){this._state.setSetting(this._vertexAttrib3fv,[e,t])&&this._vertexAttrib3fv(e,t)}$vertexAttrib4f(e,t,i,s,n){this._state.setSetting(this._vertexAttrib4f,[e,t,i,s,n])&&this._vertexAttrib4f(e,t,i,s,n)}$vertexAttrib4fv(e,t){this._state.setSetting(this._vertexAttrib4fv,[e,t])&&this._vertexAttrib4fv(e,t)}static enable(e,t="default"){let i=Object.getOwnPropertyNames(r.prototype);return e.__proto__,i.forEach(s=>{if(s!=="constructor"){let n=r.prototype[s];s.charAt(0)==="$"&&(s=s.substr(1)),e[s]!==n&&(e[s]&&(e[s].name||(e[s].xname=s),e["_"+s]=e[s]),e[s]=n)}}),r.prototype._initStateManager.call(e,t),e}},Dl=class{constructor(e){this.stage=e,this._usedMemory=0,this._uploadedTextureSources=[],this.textureSourceHashmap=new Map}get usedMemory(){return this._usedMemory}destroy(){for(let e=0,t=this._uploadedTextureSources.length;e{!(e.isLoaded()||e.isLoading())&&!e.isUsed()&&this.textureSourceHashmap.delete(t)})}freeTextureSource(e){let t=this._uploadedTextureSources.indexOf(e),i=t!==-1;e.isLoaded()&&(i&&(this._addMemoryUsage(-e.w*e.h),this._uploadedTextureSources.splice(t,1)),this._nativeFreeTextureSource(e)),e.loadingSince=null}_nativeUploadTextureSource(e,t){return this.stage.renderer.uploadTextureSource(e,t)}_nativeFreeTextureSource(e){this.stage.renderer.freeTextureSource(e),e.clearNativeTexture()}},Cn=class r{constructor(e){this.stage=e,this.genericCancelCb=t=>{this._remove(t)},this._sources=[],this._data=[]}destroy(){this._sources=[],this._data=[],this.stage=null,delete this._sources,delete this._data,delete this.stage}processSome(){if(this._sources.length){let e=Date.now();do this._processItem();while(this._sources.length&&Date.now()-e=0&&(this._sources.splice(t,1),this._data.splice(t,1))}};Cn.MAX_UPLOAD_TIME_PER_FRAME=10;var Fl=class{constructor(e){this.stage=e,this.root=null,this.updateTreeOrder=0,this.renderState=this.stage.renderer.createCoreRenderState(this),this.renderExec=this.stage.renderer.createCoreRenderExecutor(this),this.renderExec.init(),this._usedMemory=0,this._renderTexturePool=[],this._renderTextureId=1,this._zSorts=[],this.renderToTextureCount=0}get usedMemory(){return this._usedMemory}destroy(){this._renderTexturePool.forEach(e=>this._freeRenderTexture(e)),this._usedMemory=0,this.stage=null,this.root=null,this.renderState=null,this.renderExec=null,this._renderTexturePool=null,this._zSorts=null,delete this.stage,delete this.root,delete this.renderState,delete this.renderExec,delete this._renderTexturePool,delete this._zSorts}hasRenderUpdates(){return!!this.root._parent._hasRenderUpdates}render(){this.root._parent._hasRenderUpdates=0,this._render()}update(){this._update(),this.root._hasUpdates&&this._update(),this._performForcedZSorts()}_performForcedZSorts(){if(this._zSorts.length){for(let t=0,i=this._zSorts.length;t=this.stage.getOption("readPixelsAfterDrawThreshold")&&(e&&console.log("[Lightning] readPixelsAfterDraw behavior triggered"),this._readPixels()),this.renderToTextureCount=0}_readPixels(){let e=new Uint8Array(4),t=this.stage.gl;t.readPixels(0,0,1,1,t.RGBA,t.UNSIGNED_BYTE,e)}_fillRenderState(){this.renderState.reset(),this.root.render(),this.renderState.finish()}_performRender(){this.renderExec.execute()}_addMemoryUsage(e){this._usedMemory+=e,this.stage.addMemoryUsage(e)}allocateRenderTexture(e,t){let i=this.stage.getRenderPrecision(),s=Math.max(1,Math.round(e*i)),n=Math.max(1,Math.round(t*i)),o=this._renderTexturePool.length;for(let l=o-1;l>=0;l--){let d=this._renderTexturePool[l];if(d.w===s&&d.h===n&&d.update!==this.stage.frameCounter)return d.f=this.stage.frameCounter,this._renderTexturePool.splice(l,1),d}let a=this._createRenderTexture(e,t,s,n);return a.precision=i,a}releaseRenderTexture(e){this._renderTexturePool.push(e)}freeUnusedRenderTextures(e=60){let t=this.stage.frameCounter-e;this._renderTexturePool=this._renderTexturePool.filter(i=>i.f<=t?(this._freeRenderTexture(i),!1):!0)}_createRenderTexture(e,t,i,s){this._addMemoryUsage(i*s);let n=this.stage.renderer.createRenderTexture(e,t,i,s);return n.id=this._renderTextureId++,n.f=this.stage.frameCounter,n.ow=e,n.oh=t,n.w=i,n.h=s,n}_freeRenderTexture(e){this.stage.renderer.freeRenderTexture(e),this._addMemoryUsage(-e.w*e.h)}copyRenderTexture(e,t,i){this.stage.renderer.copyRenderTexture(e,t,i)}forceZSort(e){this._zSorts.push(e)}},Ti=class{constructor(e){this.stage=e,this._timingFunction="ease",this._timingFunctionImpl=ie.getTimingFunction(this._timingFunction),this.delay=0,this.duration=.2,this.merger=null}get timingFunction(){return this._timingFunction}set timingFunction(e){this._timingFunction=e,this._timingFunctionImpl=ie.getTimingFunction(e)}get timingFunctionImpl(){return this._timingFunctionImpl}patch(e){He.patchObject(this,e)}};Ti.prototype.isTransitionSettings=!0;var Il=class{constructor(e){this.stage=e,this.stage.on("frameStart",()=>this.progress()),this.active=new Set,this.defaultTransitionSettings=new Ti(this.stage)}progress(){if(this.active.size){let e=this.stage.dt,t=!1;this.active.forEach(function(i){i.progress(e),i.isRunning()||(t=!0)}),t&&(this.active=new Set([...this.active].filter(i=>i.isRunning())))}}createSettings(e){let t=new Ti;return He.patchObject(t,e),t}addActive(e){this.active.add(e)}removeActive(e){this.active.delete(e)}},An=class r{constructor(){this._clear()}_clear(){this._p=[],this._pe=[],this._idp=[],this._f=[],this._v=[],this._lv=[],this._sm=[],this._s=[],this._ve=[],this._sme=[],this._se=[],this._length=0}parse(e,t){let i,s;z.isObjectLiteral(t)||(t={0:t});let n=.5,o=[];for(let a in t)if(t.hasOwnProperty(a)){let l=t[a];z.isObjectLiteral(l)||(l={v:l});let d=parseFloat(a);a==="sm"?n=l.v:!isNaN(d)&&d>=0&&d<=2&&(l.p=d,l.f=z.isFunction(l.v),l.lv=l.f?l.v(0,0):l.v,o.push(l))}for(o=o.sort(function(a,l){return a.p-l.p}),s=o.length,i=0;il&&(o[i].pe=l)}o[i].pe===o[i].p?o[i].idp=0:o[i].idp=1/(o[i].pe-o[i].p)}for(i=0;i-1e-8&&g<1e-8)return p*(p*(p*o+a)+l)+d;let v=p*(p*(3*i)+2*s)+n;if(v>1e-10&&v<1e-10)break;p+=g/v}let m=0,A=1;for(let C=0;C<20;C++){if(p=.5*(m+A),_=p*(p*(p*i+s)+n),g=t-_,g>-1e-8&&g<1e-8)return p*(p*(p*o+a)+l)+d;g<0?A=p:m=p}return p}static mergeColors(e,t,i){let s=(e/65536|0)%256,n=(e/256|0)%256,o=e%256,a=e/16777216|0,l=(t/65536|0)%256,d=(t/256|0)%256,p=t%256,_=t/16777216|0,g=s*i+l*(1-i),m=n*i+d*(1-i),A=o*i+p*(1-i),C=a*i+_*(1-i);return Math.round(C)*16777216+Math.round(g)*65536+Math.round(m)*256+Math.round(A)}static getArgbNumber(e){e[0]=Math.max(0,Math.min(255,e[0])),e[1]=Math.max(0,Math.min(255,e[1])),e[2]=Math.max(0,Math.min(255,e[2])),e[3]=Math.max(0,Math.min(255,e[3]));let t=((e[3]|0)<<24)+((e[0]|0)<<16)+((e[1]|0)<<8)+(e[2]|0);return t<0&&(t=4294967295+t+1),t}},vn=class{constructor(e){this.animationSettings=e,this._selector="",this._items=new An,this._props=[],this._propSetters=[],this._resetValue=void 0,this._hasResetValue=!1,this._hasColorProperty=void 0}getResetValue(){return this._hasResetValue?this._resetValue:this._items.getValue(0)}apply(e,t,i){let s=this.getAnimatedElements(e),n=this._items.getValue(t);if(n===void 0||!s.length)return;if(i!==1){let l=this.getResetValue();z.isNumber(n)&&z.isNumber(l)&&(this.hasColorProperty()?n=ie.mergeColors(n,l,i):n=ie.mergeNumbers(n,l,i))}let o=this._propSetters.length,a=s.length;for(let l=0;l{this._props.push(t),this._propSetters.push(Ke.getSetter(t))})}set property(e){this._hasColorProperty=void 0,this.properties=e}set p(e){this.properties=e}patch(e){He.patchObject(this,e)}hasColorProperty(){return this._hasColorProperty===void 0&&(this._hasColorProperty=this._props.length?Ke.isColorProperty(this._props[0]):!1),this._hasColorProperty}};vn.prototype.isAnimationActionSettings=!0;var Ze=class r{constructor(){this._actions=[],this.delay=0,this.duration=1,this.repeat=0,this.repeatOffset=0,this.repeatDelay=0,this.autostop=!1,this.stopMethod=r.STOP_METHODS.FADE,this._stopTimingFunction="ease",this._stopTimingFunctionImpl=ie.getTimingFunction(this._stopTimingFunction),this.stopDuration=0,this.stopDelay=0}get actions(){return this._actions}set actions(e){this._actions=[];for(let t=0,i=e.length;t0?(this._state=r.STATES.STOPPING,this.emit("stop")):(this.settings.stopMethod===Ze.STOP_METHODS.FADE&&(this._stopP=0),this._state=r.STATES.STOPPING,this.emit("stop")),this.checkActive())}stopNow(){(this._state!==r.STATES.STOPPED||this._state!==r.STATES.IDLE)&&(this._state=r.STATES.STOPPING,this._p=0,this.emit("stop"),this.reset(),this._state=r.STATES.STOPPED,this.emit("stopFinish"))}isPaused(){return this._state===r.STATES.PAUSED}isPlaying(){return this._state===r.STATES.PLAYING}isStopping(){return this._state===r.STATES.STOPPING}isFinished(){return this._state===r.STATES.FINISHED}checkActive(){this.isActive()&&this.manager.addActive(this)}isActive(){return(this._state==r.STATES.PLAYING||this._state==r.STATES.STOPPING)&&this._element&&this._element.attached}progress(e){this._element&&(this._progress(e),this.apply())}_progress(e){if(this._state==r.STATES.STOPPING){this._stopProgress(e);return}if(this._state==r.STATES.PLAYING){if(this._delayLeft>0)if(this._delayLeft-=e,this._delayLeft<0)e=-this._delayLeft,this._delayLeft=0,this.emit("delayEnd");else return;this.settings.duration===0?this._p=1:this.settings.duration>0&&(this._p+=e/this.settings.duration),this._p>=1?this.settings.repeat==-1||this._repeatsLeft>0?(this._repeatsLeft>0&&this._repeatsLeft--,this._p=this.settings.repeatOffset,this.emit("progress",this._p),this.settings.repeatDelay&&(this._delayLeft=this.settings.repeatDelay),this.emit("repeat",this._repeatsLeft)):(this._p=1,this.emit("progress",this._p),this._state=r.STATES.FINISHED,this.emit("finish"),this.settings.autostop&&this.stop()):this.emit("progress",this._p)}}_stopProgress(e){let t=this._getStopDuration();if(this._stopDelayLeft>0)if(this._stopDelayLeft-=e,this._stopDelayLeft<0)e=-this._stopDelayLeft,this._stopDelayLeft=0,this.emit("stopDelayEnd");else return;this.settings.stopMethod==Ze.STOP_METHODS.IMMEDIATE?(this._state=r.STATES.STOPPED,this.emit("stopFinish")):this.settings.stopMethod==Ze.STOP_METHODS.REVERSE?(t===0?this._p=0:t>0&&(this._p-=e/t),this._p<=0&&(this._p=0,this._state=r.STATES.STOPPED,this.emit("stopFinish"))):this.settings.stopMethod==Ze.STOP_METHODS.FADE?(this._progressStopTransition(e),this._stopP>=1&&(this._p=0,this._state=r.STATES.STOPPED,this.emit("stopFinish"))):this.settings.stopMethod==Ze.STOP_METHODS.ONETOTWO?this._p<2&&(t===0?this._p=2:t>0&&(this._p<1?this._p+=e/this.settings.duration:this._p+=e/t),this._p>=2?(this._p=2,this._state=r.STATES.STOPPED,this.emit("stopFinish")):this.emit("progress",this._p)):this.settings.stopMethod==Ze.STOP_METHODS.FORWARD&&this._p<1&&(this.settings.duration==0?this._p=1:this._p+=e/this.settings.duration,this._p>=1?this.settings.stopMethod==Ze.STOP_METHODS.FORWARD?(this._p=1,this._state=r.STATES.STOPPED,this.emit("stopFinish")):this._repeatsLeft>0?(this._repeatsLeft--,this._p=0,this.emit("repeat",this._repeatsLeft)):(this._p=1,this._state=r.STATES.STOPPED,this.emit("stopFinish")):this.emit("progress",this._p))}_progressStopTransition(e){if(this._stopP<1){if(this._stopDelayLeft>0)if(this._stopDelayLeft-=e,this._stopDelayLeft<0)e=-this._stopDelayLeft,this._stopDelayLeft=0,this.emit("delayEnd");else return;let t=this._getStopDuration();t==0?this._stopP=1:this._stopP+=e/t,this._stopP>=1&&(this._stopP=1)}}_getStopDuration(){return this.settings.stopDuration||this.settings.duration}apply(){if(this._state===r.STATES.STOPPED)this.reset();else{let e=1;this._state===r.STATES.STOPPING&&this.settings.stopMethod===Ze.STOP_METHODS.FADE&&(e=1-this.settings.stopTimingFunctionImpl(this._stopP)),this._settings.apply(this._element,this._p,e)}}reset(){this._settings.reset(this._element)}get state(){return this._state}get p(){return this._p}get delayLeft(){return this._delayLeft}get element(){return this._element}get frame(){return Math.round(this._p*this._settings.duration*60)}get settings(){return this._settings}};wn.STATES={IDLE:0,PLAYING:1,STOPPING:2,STOPPED:3,FINISHED:4,PAUSED:5};var Bl=class{constructor(e){this.stage=e,this.stage.on("frameStart",()=>this.progress()),this.active=new Set}progress(){if(this.active.size){let e=this.stage.dt,t=!1;this.active.forEach(function(i){i.isActive()?i.progress(e):t=!0}),t&&(this.active=new Set([...this.active].filter(i=>i.isActive())))}}createAnimation(e,t){return z.isObjectLiteral(t)&&(t=this.createSettings(t)),new wn(this,t,e)}createSettings(e){let t=new Ze;return He.patchObject(t,e),t}addActive(e){this.active.add(e)}},En=class extends lt{_getLookupId(){return"__whitepix"}_getSourceLoader(){return function(e){var t=new Uint8Array([255,255,255,255]);e(null,{source:t,w:1,h:1,permanent:!0})}}isAutosizeTexture(){return!1}},Di=class r extends ze{constructor(e={}){super(),this._setOptions(e),this._usedMemory=0,this._lastGcFrame=0,this._usedVramAlpha=0,this._usedVramNonAlpha=0;let t=r.platform?r.platform:wl.load(e);this.platform=new t,this.platform.init&&this.platform.init(this),this.gl=null,this.c2d=null;let i=this.getOption("context");if(i?i.useProgram?this.gl=i:this.c2d=i:z.isWeb&&(!r.isWebglSupported()||this.getOption("canvas2d"))?this.c2d=this.platform.createCanvasContext(this.getOption("w"),this.getOption("h")):this.gl=this.platform.createWebGLContext(this.getOption("w"),this.getOption("h")),this.gl&&Tl.enable(this.gl,"lightning"),this._mode=this.gl?0:1,this.getCanvas()){if(this.getOption("devicePixelRatio")!==1){let s=this.getOption("devicePixelRatio");this.getCanvas().style.width=this._options.w/s+"px",this.getCanvas().style.height=this._options.h/s+"px"}this._options.w=this.getCanvas().width,this._options.h=this.getCanvas().height}this._mode===0?z.isSpark?this._renderer=new Sl(this):this._renderer=new Sn(this):this._renderer=new bl(this),this.setClearColor(this.getOption("clearColor")),this.frameCounter=0,this.transitions=new Il(this),this.animations=new Bl(this),this.textureManager=new Dl(this),this.textureThrottler=new Cn(this),this.startTime=0,this.currentTime=0,this.dt=0,this.rectangleTexture=new En(this),this.rectangleTexture.load(),this.rectangleTexture.source.permanent=!0,this.ctx=new Fl(this),this._updateSourceTextures=new Set}get renderer(){return this._renderer}static isWebglSupported(){if(z.isNode)return!0;try{return!!window.WebGLRenderingContext}catch{return!1}}get mode(){return this._mode}isWebgl(){return this.mode===0}isC2d(){return this.mode===1}getOption(e){return this._options[e]}_setOptions(e){this._options={};let t=(i,s)=>{let n=e[i];n===void 0?this._options[i]=s:this._options[i]=n};t("canvas",null),t("context",null),t("w",1920),t("h",1080),t("srcBasePath",null),t("memoryPressure",24e6),t("bufferMemory",2e6),t("textRenderIssueMargin",0),t("fontSharp",{precision:.6666666667,fontSize:24}),t("clearColor",[0,0,0,0]),t("defaultFontFace","sans-serif"),t("fixedDt",0),t("useImageWorker",!0),t("autostart",!0),t("precision",1),t("canvas2d",!1),t("platform",null),t("readPixelsBeforeDraw",!1),t("devicePixelRatio",1),t("readPixelsAfterDraw",!1),t("readPixelsAfterDrawThreshold",0),t("debugFrame",!1),t("forceTxCanvasSource",!1),t("pauseRafLoopOnIdle",!1),e.devicePixelRatio!=null&&e.devicePixelRatio!==1&&(this._options.precision*=e.devicePixelRatio,this._options.w*=e.devicePixelRatio,this._options.h*=e.devicePixelRatio)}setApplication(e){this.application=e}init(){this.application.getOption("debug")&&this.platform._imageWorker&&console.log("[Lightning] Using image worker!"),this.application.getOption("debug")&&this.c2d&&console.log("[Lightning] Using canvas2d renderer"),this.application.setAsRoot(),this.getOption("autostart")&&this.platform.startLoop()}destroy(){this.platform.stopLoop(),this.platform.destroy(),this.ctx.destroy(),this.textureManager.destroy(),this._renderer.destroy(),this.gl?(this.gl.clearColor(0,0,0,0),this.gl.clear(this.gl.COLOR_BUFFER_BIT)):this.c2d&&this.c2d.clearRect(0,0,this.c2d.canvas.width,this.c2d.canvas.height),this.gl=null,this.c2d=null,this.ctx=null,this._options=null,this.platform=null,this.textureManager=null,this._renderer=null,delete this.gl,delete this.c2d,delete this.ctx,delete this._options,delete this.platform,delete this.textureManager,delete this._renderer}stop(){this.platform.stopLoop()}resume(){this.platform.startLoop()}get root(){return this.application}getCanvas(){return this._mode?this.c2d.canvas:this.gl.canvas}getRenderPrecision(){return this._options.precision}addUpdateSourceTexture(e){this._updatingFrame?e._performUpdateSource():this._updateSourceTextures.add(e)}removeUpdateSourceTexture(e){this._updateSourceTextures&&this._updateSourceTextures.delete(e)}hasUpdateSourceTexture(e){return this._updateSourceTextures&&this._updateSourceTextures.has(e)}_performUpdateSource(){this._updateSourceTextures.size&&(this._updateSourceTextures.forEach(e=>{e._performUpdateSource()}),this._updateSourceTextures=new Set)}_calculateDt(){this.startTime=this.currentTime,this.currentTime=this.platform.getHrTime(),this._options.fixedDt?this.dt=this._options.fixedDt:this.dt=this.startTime?.001*(this.currentTime-this.startTime):.02}updateFrame(){this._calculateDt(),this.emit("frameStart"),this._performUpdateSource(),this.emit("update")}idleFrame(){this.textureThrottler.processSome(),this.emit("frameEnd"),this.frameCounter++}renderFrame(){let e=this.ctx.hasRenderUpdates();this.textureThrottler.processSome(),e&&(this._updatingFrame=!0,this.ctx.update(),this.ctx.render(),this._updatingFrame=!1),this.platform.nextFrame(e),this.emit("frameEnd"),this.frameCounter++}isUpdatingFrame(){return this._updatingFrame}drawFrame(){this.updateFrame(),this.renderFrame()}forceRenderUpdate(){this.root&&this.root.core._parent.setHasRenderUpdates(1)}setClearColor(e){this.forceRenderUpdate(),e===null?this._clearColor=null:Array.isArray(e)?this._clearColor=e:this._clearColor=ie.getRgbaComponentsNormalized(e)}getClearColor(){return this._clearColor}createElement(e){return e?this.element(e):new Ke(this)}createShader(e){return lr.create(this,e)}element(e){if(e.isElement)return e;let t;return e.type?t=new e.type(this):t=new Ke(this),t.patch(e),t}c(e){return this.element(e)}get w(){return this._options.w}get h(){return this._options.h}get coordsWidth(){return this.w/this._options.precision}get coordsHeight(){return this.h/this._options.precision}addMemoryUsage(e){this._usedMemory+=e,this._lastGcFrame!==this.frameCounter&&this._usedMemory>this.getOption("memoryPressure")&&(this.gc(!1),this._usedMemory>this.getOption("memoryPressure")-2e6&&this.gc(!0))}get usedMemory(){return this._usedMemory}addVramUsage(e,t){t?this._usedVramAlpha+=e:this._usedVramNonAlpha+=e}get usedVramAlpha(){return this._usedVramAlpha}get usedVramNonAlpha(){return this._usedVramNonAlpha}get usedVram(){return this._usedVramAlpha+this._usedVramNonAlpha}gc(e){if(this._lastGcFrame!==this.frameCounter){this._lastGcFrame=this.frameCounter;let t=this._usedMemory;if(this.gcTextureMemory(e),this.gcRenderTextureMemory(e),this.renderer.gc(e),this.application.getOption("debug")){console.log(`[Lightning] GC${e?"[aggressive]":""}! Frame ${this._lastGcFrame} Freed ${((t-this._usedMemory)/1e6).toFixed(2)}MP from GPU memory. Remaining: ${(this._usedMemory/1e6).toFixed(2)}MP`);let i=this._usedMemory-this.textureManager.usedMemory-this.ctx.usedMemory;console.log(`[Lightning] Textures: ${(this.textureManager.usedMemory/1e6).toFixed(2)}MP, Render Textures: ${(this.ctx.usedMemory/1e6).toFixed(2)}MP, Renderer caches: ${(i/1e6).toFixed(2)}MP`)}}}gcTextureMemory(e=!1){e&&this.ctx.root.visible?(this.ctx.root.visible=!1,this.textureManager.gc(),this.ctx.root.visible=!0):this.textureManager.gc()}gcRenderTextureMemory(e=!1){e&&this.root.visible?(this.root.visible=!1,this.ctx.freeUnusedRenderTextures(0),this.root.visible=!0):this.ctx.freeUnusedRenderTextures(0)}getDrawingCanvas(){return this.platform.getDrawingCanvas()}update(){this.ctx.update()}addServiceProvider(e){z.isSpark&&this.platform.addServiceProvider(e)}getChildrenByPosition(e,t){let i=[];return this.root.core.update(),this.root.core.collectAtCoord(e,t,i),i}},Rl=class r extends Ue{constructor(e={},t){r._temp_options=e,r.booting=!0;let i=new Di(e.stage);super(i,t),r.booting=!1,this.__updateFocusCounter=0,this.__keypressTimers=new Map,this.__hoveredChild=null,this.stage.init(),this.updateFocusSettings(),this.__keymap=this.getOption("keys"),this.__keymap&&(this.stage.platform.registerKeydownHandler(s=>{this._receiveKeydown(s)}),this.stage.platform.registerKeyupHandler(s=>{this._receiveKeyup(s)})),this.getOption("enablePointer")&&(this.stage.platform.registerClickHandler(s=>{this._receiveClick(s)}),this.stage.platform.registerHoverHandler(s=>{this._receiveHover(s)}),this.stage.platform.registerScrollWheelHandler(s=>{this._recieveScrollWheel(s)}),this.cursor="default")}getOption(e){return this.__options[e]}_setOptions(e){this.__options={};let t=(i,s)=>{let n=e[i];n===void 0?this.__options[i]=s:this.__options[i]=n};t("debug",!1),t("keys",{38:"Up",40:"Down",37:"Left",39:"Right",13:"Enter",8:"Back",27:"Exit"}),t("enablePointer",!1)}__construct(){this.stage.setApplication(this),this._setOptions(r._temp_options),delete r._temp_options,super.__construct()}__init(){super.__init(),this.__updateFocus()}updateFocusPath(){this.__updateFocus()}__updateFocus(){let e=this.__updateFocusRec();!r.booting&&e&&this.updateFocusSettings()}__updateFocusRec(){let e=++this.__updateFocusCounter;this.__updateFocusId=e;let t=this.__getFocusPath(),i=t[t.length-1],s=this._focusPath?this._focusPath[this._focusPath.length-1]:void 0;if(s){let n=Math.min(this._focusPath.length,t.length),o;for(o=0;o=o;a--)if(this._focusPath.pop()._unfocus(i,s),this.__updateFocusId!==e)return!1;for(let a=o,l=t.length;a=0;n--){let o=i[n]._getMostSpecificHandledMember(e);if(o!==void 0&&i[n][o](...t)!==!1)return!0}return!1}_receiveKeydown(e){let t=e,i=this.__keymap[e.keyCode],s=this.focusPath,n;if(i&&(n=Array.isArray(i)?i:[i]),n)for(let a=0,l=n.length;a{this.stage.application.focusTopDownEvent([`_capture${e}Long`,"_captureKey"],{})||this.stage.application.focusBottomUpEvent([`_handle${e}Long`,"_handleKey"],{}),this.__keypressTimers.delete(e)},n||500)):t._throwError("config value for longpress must be a number")}}_recieveScrollWheel(e){let t=e,{clientX:i,clientY:s}=t;i<=this.stage.w&&s<=this.stage.h&&(this.fireTopDownScrollWheelHandler("_captureScroll",t)||this.fireBottomUpScrollWheelHandler("_handleScroll",t))}fireTopDownScrollWheelHandler(e,t){let i=this.stage.application.children,s=this._findChildren([],i).reverse(),n=s.length;for(;n--;){let o=s[n];if(o&&o[e])return o._captureScroll(t),!0}return!1}fireBottomUpScrollWheelHandler(e,t){let{clientX:i,clientY:s}=t,o=this._getTargetChild(i,s);for(;o!==null;){if(o&&o[e])return o._handleScroll(t),!0;o=o.parent}return!1}_receiveClick(e){let t=e,{clientX:i,clientY:s}=t;i<=this.stage.w&&s<=this.stage.h&&this.stage.application.fireBottomUpClickHandler(t)}fireBottomUpClickHandler(e){let{clientX:t,clientY:i}=e,s=this._getTargetChild(t,i),n=this.stage.getRenderPrecision()/this.stage.getOption("devicePixelRatio"),o=s;for(;o!==null;){if(o&&o._handleClick){let{px:a,py:l}=o.core._worldContext,d=a*n,p=l*n,_={x:t-d,y:i-p};if(o._handleClick(s,_)!==!1)break}o=o.parent}}_receiveHover(e){let t=e,{clientX:i,clientY:s}=t;i<=this.stage.w&&s<=this.stage.h&&this.stage.application.fireBottomUpHoverHandler(t)}fireBottomUpHoverHandler(e){let{clientX:t,clientY:i}=e,s=this._getTargetChild(t,i);if(s!==this.__hoveredChild){let n=new Set,o=new Set;if(s&&(o=new Set(s.getAncestors())),this.__hoveredChild){n=new Set(this.__hoveredChild.getAncestors());for(let d of[...n].filter(p=>!o.has(p))){let p=Ue.getComponent(d);p._handleUnhover&&p._handleUnhover(d),d.parent&&d.parent.cursor&&(this.stage.getCanvas().style.cursor=d.parent.cursor)}}this.__hoveredChild=s;let a=[...o].filter(d=>!n.has(d));for(let d of a){let p=Ue.getComponent(d);p._handleHover&&p._handleHover(d)}let l=a[0];if(l&&l.cursor&&(this.stage.getCanvas().style.cursor=l.cursor),a.length===0&&s){let d=Ue.getComponent(s);d._handleHover&&d._handleHover(s)}}}_getTargetChild(e,t){let i=this.stage.application.children,s=this._findChildren([],i),n=this._withinClickableRange(s,e,t);return n.sort((o,a)=>o.zIndex>a.zIndex?1:o.zIndexa.id?1:-1),n.length?n.slice(-1)[0]:null}_findChildren(e,t){let i=t.length;for(;i--;){let s=t[i];s.__active&&s.collision&&(s.collision===!0&&e.push(s),s.hasChildren()&&this._findChildren(e,s.children))}return e}_withinClickableRange(e,t,i){let s=e.length,n=[];for(;s--;){let o=e[s],a=this.stage.getRenderPrecision()/this.stage.getOption("devicePixelRatio"),l=o.core._worldContext,d=l.px*a,p=l.py*a,_=o.finalW*l.ta*a,g=o.finalH*l.td*a;if(!(d>this.stage.w||p>this.stage.h)){if(o.parent.core._scissor){let m=o.parent.core._scissor.map(A=>A*a);if(!this._testCollision(t,i,...m))continue}this._testCollision(t,i,d,p,_,g)&&n.push(o)}}return n}_testCollision(e,t,i,s,n,o){return e>=i&&e<=i+n&&t>=s&&t<=s+o}destroy(){this._destroyed||(this._destroy(),this.stage.destroy(),this._destroyed=!0)}_destroy(){if(this.stage.setApplication(void 0),this._updateAttachedFlag(),this._updateEnabledFlag(),this.__keypressTimers.size){for(let e of this.__keypressTimers.values())clearTimeout(e);this.__keypressTimers.clear()}}getCanvas(){return this.stage.getCanvas()}},Tn=class extends lt{constructor(e){super(e),this._factory=void 0,this._lookupId=void 0}set content({factory:e,lookupId:t=void 0}){this._factory=e,this._lookupId=t,this._changed()}_getIsValid(){return!!this._factory}_getLookupId(){return this._lookupId}_getSourceLoader(){let e=this._factory;return t=>e((i,s)=>{if(i)return t(i);t(null,this.stage.platform.getTextureOptionsForDrawingCanvas(s))},this.stage)}},Pl=class r{static getCanvasTexture(e,t){return{type:Tn,content:{factory:e,lookupId:t}}}static getRoundRect(e,t,i,s,n,o,a){Array.isArray(i)||(i=[i,i,i,i]);let l=(p,_)=>{z.isSpark?_.platform.createRoundRect(p,_,e,t,i,s,n,o,a):p(null,this.createRoundRect(_,e,t,i,s,n,o,a))},d="rect"+[e,t,s,n,o?1:0,a].concat(i).join(",");return r.getCanvasTexture(l,d)}static createRoundRect(e,t,i,s,n,o,a,l){a===void 0&&(a=!0),n===void 0&&(n=0);let d=e.platform.getDrawingCanvas(),p=d.getContext("2d");p.imageSmoothingEnabled=!0,d.width=t+n+2,d.height=i+n+2,p.beginPath();let _=.5*n+1,g=.5*n+1;return p.moveTo(_+s[0],g),p.lineTo(_+t-s[1],g),p.arcTo(_+t,g,_+t,g+s[1],s[1]),p.lineTo(_+t,g+i-s[2]),p.arcTo(_+t,g+i,_+t-s[2],g+i,s[2]),p.lineTo(_+s[3],g+i),p.arcTo(_,g+i,_,g+i-s[3],s[3]),p.lineTo(_,g+s[0]),p.arcTo(_,g,_+s[0],g,s[0]),p.closePath(),a&&(z.isNumber(l)?p.fillStyle=ie.getRgbaString(l):p.fillStyle="white",p.fill()),n&&(z.isNumber(o)?p.strokeStyle=ie.getRgbaString(o):p.strokeStyle="white",p.lineWidth=n,p.stroke()),d}static getShadowRect(e,t,i=0,s=5,n=s*2){Array.isArray(i)||(i=[i,i,i,i]);let o=(l,d)=>{z.isSpark?d.platform.createShadowRect(l,d,e,t,i,s,n):l(null,this.createShadowRect(d,e,t,i,s,n))},a="shadow"+[e,t,s,n].concat(i).join(",");return r.getCanvasTexture(o,a)}static createShadowRect(e,t,i,s,n,o){let a=e.platform.getDrawingCanvas(),l=a.getContext("2d");l.imageSmoothingEnabled=!0,a.width=t+o*2,a.height=i+o*2,l.globalAlpha=.01,l.fillRect(0,0,.01,.01),l.globalAlpha=1,l.shadowColor=ie.getRgbaString(4294967295),l.fillStyle=ie.getRgbaString(4294967295),l.shadowBlur=n,l.shadowOffsetX=t+10+o,l.shadowOffsetY=o,l.beginPath();let d=-(t+10),p=0;return l.moveTo(d+s[0],p),l.lineTo(d+t-s[1],p),l.arcTo(d+t,p,d+t,p+s[1],s[1]),l.lineTo(d+t,p+i-s[2]),l.arcTo(d+t,p+i,d+t-s[2],p+i,s[2]),l.lineTo(d+s[3],p+i),l.arcTo(d,p+i,d,p+i-s[3],s[3]),l.lineTo(d,p+s[0]),l.arcTo(d,p,d+s[0],p,s[0]),l.closePath(),l.fill(),a}static getSvgTexture(e,t,i){let s=(o,a)=>{z.isSpark?a.platform.createSvg(o,a,e,t,i):this.createSvg(o,a,e,t,i)},n="svg"+[t,i,e].join(",");return r.getCanvasTexture(s,n)}static createSvg(e,t,i,s,n){let o=t.platform.getDrawingCanvas(),a=o.getContext("2d");a.imageSmoothingEnabled=!0;let l=new Image;l.onload=()=>{o.width=s,o.height=n,a.drawImage(l,0,0,o.width,o.height),e(null,o)},l.onError=d=>{e(d)},z.isPS4||(l.crossOrigin="Anonymous"),l.src=i}},Ol=class r{static isMf(e){return z.isFunction(e)&&e.__mf}static mf(e){return e.__mf=!0,e}static merge(e,t){let i=Object.keys(e),s=Object.keys(t);if(!s.length)return e;let n={},o={};for(let p=0,_=s.length;p<_;p++){let g=s[p];n[g]=-1,o[g]=p}for(let p=0,_=i.length;p<_;p++){let g=i[p];n[g]=p,o[g]===void 0&&(o[g]=-1)}let a=i.length,l={};for(let p=0,_=s.length;p<_;p++){let g=s[p],m=n[g],A=m;for(;--A>=0;){let D=i[A];if(o[D]!==-1)break}for(;++A=0;){let p=i[d];if(o[p]!==-1)break}for(;++dthis.wrap(s)),i=i.map(s=>s._wrapper),super.onSync(e,t,i)}onSet(e,t){e=this.wrap(e),super.onSet(e,t)}onMove(e,t,i){super.onMove(e,t,i)}},In=class extends lt{_getLookupId(){return"__noise"}_getSourceLoader(){let e=this.stage.gl;return function(t){let i=new Uint8Array(65536);for(let n=0;n<128*128*4;n+=4){let o=Math.floor(Math.random()*256);i[n]=o,i[n+1]=o,i[n+2]=o,i[n+3]=255}let s={};e&&(s[e.TEXTURE_WRAP_S]=e.REPEAT,s[e.TEXTURE_WRAP_T]=e.REPEAT,s[e.TEXTURE_MIN_FILTER]=e.NEAREST,s[e.TEXTURE_MAG_FILTER]=e.NEAREST),t(null,{source:i,w:128,h:128,texParams:s})}}},Ll=class r extends lt{constructor(e){super(e),this._htmlElement=void 0,this._scale=1}set htmlElement(e){this._htmlElement=e,this._changed()}get htmlElement(){return this._htmlElement}set scale(e){this._scale=e,this._changed()}get scale(){return this._scale}set html(e){if(!e)this.htmlElement=void 0;else{let t=document.createElement("div");t.innerHTML="
"+e+"
",this.htmlElement=t.firstElementChild}}get html(){return this._htmlElement.innerHTML}_getIsValid(){return this.htmlElement}_getLookupId(){return this._scale+":"+this._htmlElement.innerHTML}_getSourceLoader(){let e=this._htmlElement,t=this._scale;return function(i){if(!window.html2canvas)return i(new Error("Please include html2canvas (https://html2canvas.hertzen.com/)"));let s=r.getPreloadArea();s.appendChild(e),html2canvas(e,{backgroundColor:null,scale:t}).then(function(n){if(s.removeChild(e),n.height===0)return i(new Error("Canvas height is 0"));i(null,{source:n,width:n.width,height:n.height})}).catch(n=>{console.error("[Lightning]",n)})}}static getPreloadArea(){return this._preloadArea||(this._preloadArea=document.createElement("div"),this._preloadArea.attachShadow&&this._preloadArea.attachShadow({mode:"closed"}),this._preloadArea.style.opacity=0,this._preloadArea.style.pointerEvents="none",this._preloadArea.style.position="fixed",this._preloadArea.style.display="block",this._preloadArea.style.top="100vh",this._preloadArea.style.overflow="hidden",document.body.appendChild(this._preloadArea)),this._preloadArea}},kl=class extends lt{constructor(e,t){super(e),this._options=t}set options(e){this._options!==e&&(this._options=e,this._changed())}get options(){return this._options}_getIsValid(){return!!this._options}_getSourceLoader(){return e=>{e(null,this._options)}}},Ml=class extends Ue{constructor(e){super(e),this._wrapper=super._children.a({}),this._reloadVisibleElements=!1,this._visibleItems=new Set,this._index=0,this._started=!1,this._scrollTransitionSettings=this.stage.transitions.createSettings({}),this._itemSize=100,this._viewportScrollOffset=0,this._itemScrollOffset=0,this._roll=!1,this._rollMin=0,this._rollMax=0,this._progressAnimation=null,this._invertDirection=!1,this._horizontal=!0,this.itemList=new Nl(this)}_allowChildrenAccess(){return!1}get items(){return this.itemList.get()}set items(e){this.itemList.patch(e)}start(){this._wrapper.transition(this.property,this._scrollTransitionSettings),this._scrollTransition=this._wrapper.transition(this.property),this._scrollTransition.on("progress",e=>this.update()),this.setIndex(0,!0,!0),this._started=!0,this.update()}setIndex(e,t=!1,i=!1){let s=this.length;if(!s)return;if(this.emit("unfocus",this.getElement(this.realIndex),this._index,this.realIndex),i){let a=z.getModuloIndex(e,s),l=z.getModuloIndex(this.index,s),d=a-l;d>.5*s?d-=s:d<-.5*s&&(d+=s),this._index+=d}else this._index=e;(this._roll||this.viewportSize>this._itemSize*s)&&(this._index=z.getModuloIndex(this._index,s));let n=this._horizontal^this._invertDirection?-1:1,o=n*this._index*this._itemSize;if(this._roll){let a,l,d;if(n==1)l=(s-1)*this._itemSize,d=this._viewportScrollOffset*this.viewportSize-this._itemScrollOffset*this._itemSize,l-=d,a=this.viewportSize-(this._itemSize+d),this._rollMin&&(a-=this._rollMin),this._rollMax&&(l+=this._rollMax),o=Math.max(Math.min(o,l),a);else{l=s*this._itemSize-this.viewportSize,d=this._viewportScrollOffset*this.viewportSize-this._itemScrollOffset*this._itemSize,l+=d;let p=d;this._rollMin&&(p-=this._rollMin),this._rollMax&&(l+=this._rollMax),o=Math.min(Math.max(-l,o),-p)}}this._scrollTransition.start(o),t&&this._scrollTransition.finish(),this.emit("focus",this.getElement(this.realIndex),this._index,this.realIndex)}getAxisPosition(){let e=-this._scrollTransition._targetValue,i=-(this._horizontal^this._invertDirection?-1:1)*this._index*this._itemSize;return this._viewportScrollOffset*this.viewportSize+(i-e)}update(){if(!this._started)return;let e=this.length;if(!e)return;let t=this._horizontal^this._invertDirection?-1:1,i=this._horizontal?this._wrapper.x:this._wrapper.y,s=this.viewportSize,n=this._viewportScrollOffset*s-this._itemScrollOffset*this._itemSize;i+=n;let o,a,l,d;t==-1?(o=Math.floor(-i/this._itemSize),l=1-(-i/this._itemSize-o),a=Math.floor((s-i)/this._itemSize),d=(s-i)/this._itemSize-a):(o=Math.ceil(i/this._itemSize),l=1+i/this._itemSize-o,a=Math.ceil((i-s)/this._itemSize),d=a-(i-s)/this._itemSize),(this._roll||s>this._itemSize*e)&&(a>=e&&(a=e-1,d=1),o>=e&&(o=e-1,l=1),a<=-1&&(a=0,d=1),o<=-1&&(o=0,l=1));let p=-t*o*this._itemSize,_;for(let m=o;t==-1?m<=a:m>=a;t==-1?m++:m--){let A=z.getModuloIndex(m,e),C=this.getElement(A);_=C.parent,this._visibleItems.delete(_),this._horizontal?_.x=p+n:_.y=p+n;let v=_.visible;if(_.visible=!0,(!v||this._reloadVisibleElements)&&this.emit("visible",m,A),this._progressAnimation){let w=1;m==o?w=l:m==a&&(w=d),this._progressAnimation.apply(C,w)}p+=this._itemSize}let g=this;this._visibleItems.forEach(function(m){m.visible=!1,g._visibleItems.delete(m)});for(let m=o;t==-1?m<=a:m>=a;t==-1?m++:m--){let A=z.getModuloIndex(m,e);this._visibleItems.add(this.getWrapper(A))}this._reloadVisibleElements=!1}setPrevious(){this.setIndex(this._index-1)}setNext(){this.setIndex(this._index+1)}getWrapper(e){return this._wrapper.children[e]}getElement(e){let t=this._wrapper.children[e];return t?t.children[0]:null}reload(){this._reloadVisibleElements=!0,this.update()}get element(){let e=this._wrapper.children[this.realIndex];return e?e.children[0]:null}get length(){return this._wrapper.children.length}get property(){return this._horizontal?"x":"y"}get viewportSize(){return this._horizontal?this.w:this.h}get index(){return this._index}get realIndex(){return z.getModuloIndex(this._index,this.length)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,this.update()}get viewportScrollOffset(){return this._viewportScrollOffset}set viewportScrollOffset(e){this._viewportScrollOffset=e,this.update()}get itemScrollOffset(){return this._itemScrollOffset}set itemScrollOffset(e){this._itemScrollOffset=e,this.update()}get scrollTransitionSettings(){return this._scrollTransitionSettings}set scrollTransitionSettings(e){this._scrollTransitionSettings.patch(e)}set scrollTransition(e){this._scrollTransitionSettings.patch(e)}get scrollTransition(){return this._scrollTransition}get progressAnimation(){return this._progressAnimation}set progressAnimation(e){z.isObjectLiteral(e)?this._progressAnimation=this.stage.animations.createSettings(e):this._progressAnimation=e,this.update()}get roll(){return this._roll}set roll(e){this._roll=e,this.update()}get rollMin(){return this._rollMin}set rollMin(e){this._rollMin=e,this.update()}get rollMax(){return this._rollMax}set rollMax(e){this._rollMax=e,this.update()}get invertDirection(){return this._invertDirection}set invertDirection(e){this._started||(this._invertDirection=e)}get horizontal(){return this._horizontal}set horizontal(e){e!==this._horizontal&&(this._started||(this._horizontal=e))}},Nl=class extends Fn{constructor(e){let t=i=>{let s=i.stage.createElement();return s.add(i),s.visible=!1,s};super(e._wrapper._children,t),this.list=e}onAdd(e,t){super.onAdd(e,t),this.checkStarted(t)}checkStarted(e){this.list._reloadVisibleElements=!0,this.list._started?(this.list.length===1?this.list.setIndex(0,!0,!0):this.list._index>=this.list.length&&this.list.setIndex(0),this.list.update()):this.list.start()}onRemove(e,t){super.onRemove(e,t);let i=this.list.realIndex;i===t?(i===this.list.length&&i--,i>=0&&this.list.setIndex(i)):i>t&&this.list.setIndex(i-1),this.list._reloadVisibleElements=!0}onSet(e,t){super.onSet(e,t),this.checkStarted(t)}onSync(e,t,i){super.onSync(e,t,i),this.checkStarted(0)}get _signalProxy(){return!0}},Rr=class extends ge{constructor(e){super(e),this._direction=new Float32Array([1,0]),this._kernelRadius=1}get x(){return this._direction[0]}set x(e){this._direction[0]=e,this.redraw()}get y(){return this._direction[1]}set y(e){this._direction[1]=e,this.redraw()}get kernelRadius(){return this._kernelRadius}set kernelRadius(e){this._kernelRadius=e,this.redraw()}useDefault(){return this._kernelRadius===0}setupUniforms(e){super.setupUniforms(e),this._setUniform("direction",this._direction,this.gl.uniform2fv),this._setUniform("kernelRadius",this._kernelRadius,this.gl.uniform1i);let t=e.getRenderWidth(),i=e.getRenderHeight();this._setUniform("resolution",new Float32Array([t,i]),this.gl.uniform2fv)}};Rr.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - uniform vec2 resolution; - varying vec2 vTextureCoord; - varying vec4 vColor; - uniform sampler2D uSampler; - uniform vec2 direction; - uniform int kernelRadius; - - vec4 blur1(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { - vec4 color = vec4(0.0); - vec2 off1 = vec2(1.3333333333333333) * direction; - color += texture2D(image, uv) * 0.29411764705882354; - color += texture2D(image, uv + (off1 / resolution)) * 0.35294117647058826; - color += texture2D(image, uv - (off1 / resolution)) * 0.35294117647058826; - return color; - } - - vec4 blur2(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { - vec4 color = vec4(0.0); - vec2 off1 = vec2(1.3846153846) * direction; - vec2 off2 = vec2(3.2307692308) * direction; - color += texture2D(image, uv) * 0.2270270270; - color += texture2D(image, uv + (off1 / resolution)) * 0.3162162162; - color += texture2D(image, uv - (off1 / resolution)) * 0.3162162162; - color += texture2D(image, uv + (off2 / resolution)) * 0.0702702703; - color += texture2D(image, uv - (off2 / resolution)) * 0.0702702703; - return color; - } - - vec4 blur3(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { - vec4 color = vec4(0.0); - vec2 off1 = vec2(1.411764705882353) * direction; - vec2 off2 = vec2(3.2941176470588234) * direction; - vec2 off3 = vec2(5.176470588235294) * direction; - color += texture2D(image, uv) * 0.1964825501511404; - color += texture2D(image, uv + (off1 / resolution)) * 0.2969069646728344; - color += texture2D(image, uv - (off1 / resolution)) * 0.2969069646728344; - color += texture2D(image, uv + (off2 / resolution)) * 0.09447039785044732; - color += texture2D(image, uv - (off2 / resolution)) * 0.09447039785044732; - color += texture2D(image, uv + (off3 / resolution)) * 0.010381362401148057; - color += texture2D(image, uv - (off3 / resolution)) * 0.010381362401148057; - return color; - } - - void main(void){ - if (kernelRadius == 1) { - gl_FragColor = blur1(uSampler, vTextureCoord, resolution, direction) * vColor; - } else if (kernelRadius == 2) { - gl_FragColor = blur2(uSampler, vTextureCoord, resolution, direction) * vColor; - } else { - gl_FragColor = blur3(uSampler, vTextureCoord, resolution, direction) * vColor; - } - } -`;var at=class extends ge{setupUniforms(e){super.setupUniforms(e);let t=1/e.getTextureWidth(0),i=1/e.getTextureHeight(0);this._setUniform("stepTextureCoord",new Float32Array([t,i]),this.gl.uniform2fv)}};at.vertexShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - uniform vec2 stepTextureCoord; - attribute vec2 aVertexPosition; - attribute vec2 aTextureCoord; - attribute vec4 aColor; - uniform vec2 projection; - varying vec4 vColor; - varying vec2 vTextureCoordUl; - varying vec2 vTextureCoordUr; - varying vec2 vTextureCoordBl; - varying vec2 vTextureCoordBr; - void main(void){ - gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0); - vTextureCoordUl = aTextureCoord - stepTextureCoord; - vTextureCoordBr = aTextureCoord + stepTextureCoord; - vTextureCoordUr = vec2(vTextureCoordBr.x, vTextureCoordUl.y); - vTextureCoordBl = vec2(vTextureCoordUl.x, vTextureCoordBr.y); - vColor = aColor; - gl_Position.y = -sign(projection.y) * gl_Position.y; - } -`;at.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoordUl; - varying vec2 vTextureCoordUr; - varying vec2 vTextureCoordBl; - varying vec2 vTextureCoordBr; - varying vec4 vColor; - uniform sampler2D uSampler; - void main(void){ - vec4 color = 0.25 * (texture2D(uSampler, vTextureCoordUl) + texture2D(uSampler, vTextureCoordUr) + texture2D(uSampler, vTextureCoordBl) + texture2D(uSampler, vTextureCoordBr)); - gl_FragColor = color * vColor; - } -`;var Bn=class extends Br{constructor(e){super(e),this._kernelRadius=1}get kernelRadius(){return this._kernelRadius}set kernelRadius(e){this._kernelRadius=e,this.redraw()}useDefault(){return this._amount===0}_beforeDrawEl({target:e}){e.ctx.filter="blur("+this._kernelRadius+"px)"}_afterDrawEl({target:e}){e.ctx.filter="none"}},zl=class extends Ue{static _template(){return{}}get wrap(){return this.tag("Wrap")}set content(e){return this.wrap.content=e}get content(){return this.wrap.content}set padding(e){this.wrap._paddingX=e,this.wrap._paddingY=e,this.wrap._updateBlurSize()}set paddingX(e){this.wrap._paddingX=e,this.wrap._updateBlurSize()}set paddingY(e){this.wrap._paddingY=e,this.wrap._updateBlurSize()}set amount(e){return this.wrap.amount=e}get amount(){return this.wrap.amount}_onResize(){this.wrap.w=this.renderWidth,this.wrap.h=this.renderHeight}get _signalProxy(){return!0}_build(){this.patch({Wrap:{type:this.stage.gl?Hl:Ul}})}},Ul=class r extends Ue{static _template(){return{forceZIndexContext:!0,rtt:!0,Textwrap:{shader:{type:Bn},Content:{}}}}constructor(e){super(e),this._textwrap=this.sel("Textwrap"),this._wrapper=this.sel("Textwrap>Content"),this._amount=0,this._paddingX=0,this._paddingY=0}static getSpline(){return this._multiSpline||(this._multiSpline=new An,this._multiSpline.parse(!1,{0:0,.25:1.5,.5:5.5,.75:18,1:39})),this._multiSpline}get content(){return this.sel("Textwrap>Content")}set content(e){this.sel("Textwrap>Content").patch(e,!0)}set padding(e){this._paddingX=e,this._paddingY=e,this._updateBlurSize()}set paddingX(e){this._paddingX=e,this._updateBlurSize()}set paddingY(e){this._paddingY=e,this._updateBlurSize()}_updateBlurSize(){let e=this.renderWidth,t=this.renderHeight,i=this._paddingX,s=this._paddingY;this._wrapper.x=i,this._textwrap.x=-i,this._wrapper.y=s,this._textwrap.y=-s,this._textwrap.w=e+i*2,this._textwrap.h=t+s*2}get amount(){return this._amount}set amount(e){this._amount=e,this._textwrap.shader.kernelRadius=r._amountToKernelRadius(e)}static _amountToKernelRadius(e){return r.getSpline().getValue(Math.min(1,e*.25))}get _signalProxy(){return!0}},Hl=class extends Ue{static _template(){let e=function(t,i){if(i._recalc&130){let s=i.w,n=i.h,o=i;do o=o._children[0],o._element.w=s,o._element.h=n;while(o._children)}};return{Textwrap:{rtt:!0,forceZIndexContext:!0,renderOffscreen:!0,Content:{}},Layers:{L0:{rtt:!0,onUpdate:e,renderOffscreen:!0,visible:!1,Content:{shader:{type:at}}},L1:{rtt:!0,onUpdate:e,renderOffscreen:!0,visible:!1,Content:{shader:{type:at}}},L2:{rtt:!0,onUpdate:e,renderOffscreen:!0,visible:!1,Content:{shader:{type:at}}},L3:{rtt:!0,onUpdate:e,renderOffscreen:!0,visible:!1,Content:{shader:{type:at}}}},Result:{shader:{type:Rn},visible:!1}}}get _signalProxy(){return!0}constructor(e){super(e),this._textwrap=this.sel("Textwrap"),this._wrapper=this.sel("Textwrap>Content"),this._layers=this.sel("Layers"),this._output=this.sel("Result"),this._amount=0,this._paddingX=0,this._paddingY=0}_buildLayers(){let t=[{x:1,y:0,kernelRadius:1},{x:0,y:1,kernelRadius:1},{x:1.5,y:0,kernelRadius:1},{x:0,y:1.5,kernelRadius:1}].map(i=>lr.create(this.stage,Object.assign({type:Rr},i)));this._setLayerTexture(this.getLayerContents(0),this._textwrap.getTexture(),[]),this._setLayerTexture(this.getLayerContents(1),this.getLayer(0).getTexture(),[t[0],t[1]]),this._setLayerTexture(this.getLayerContents(2),this.getLayer(1).getTexture(),[t[0],t[1],t[2],t[3]]),this._setLayerTexture(this.getLayerContents(3),this.getLayer(2).getTexture(),[t[0],t[1],t[2],t[3]])}_setLayerTexture(e,t,i){if(!i.length)e.texture=t;else{let s=i.pop(),n=e.stage.c({rtt:!0,shader:s});this._setLayerTexture(n,t,i),e.childList.add(n)}return e}get content(){return this.sel("Textwrap>Content")}set content(e){this.sel("Textwrap>Content").patch(e,!0)}set padding(e){this._paddingX=e,this._paddingY=e,this._updateBlurSize()}set paddingX(e){this._paddingX=e,this._updateBlurSize()}set paddingY(e){this._paddingY=e,this._updateBlurSize()}getLayer(e){return this._layers.sel("L"+e)}getLayerContents(e){return this.getLayer(e).sel("Content")}_onResize(){this._updateBlurSize()}_updateBlurSize(){let e=this.renderWidth,t=this.renderHeight,i=this._paddingX,s=this._paddingY,n=e+i*2,o=t+s*2;this._textwrap.w=n,this._wrapper.x=i,this.getLayer(0).w=this.getLayerContents(0).w=n/2,this.getLayer(1).w=this.getLayerContents(1).w=n/4,this.getLayer(2).w=this.getLayerContents(2).w=n/8,this.getLayer(3).w=this.getLayerContents(3).w=n/16,this._output.x=-i,this._textwrap.x=-i,this._output.w=n,this._textwrap.h=o,this._wrapper.y=s,this.getLayer(0).h=this.getLayerContents(0).h=o/2,this.getLayer(1).h=this.getLayerContents(1).h=o/4,this.getLayer(2).h=this.getLayerContents(2).h=o/8,this.getLayer(3).h=this.getLayerContents(3).h=o/16,this._output.y=-s,this._textwrap.y=-s,this._output.h=o,this.w=e,this.h=t}set amount(e){this._amount=e,this._update()}get amount(){return this._amount}_update(){let e=Math.min(4,Math.max(0,this._amount));e===0?(this._textwrap.renderToTexture=!1,this._output.shader.otherTextureSource=null,this._output.visible=!1):(this._textwrap.renderToTexture=!0,this._output.visible=!0,this.getLayer(0).visible=e>0,this.getLayer(1).visible=e>1,this.getLayer(2).visible=e>2,this.getLayer(3).visible=e>3,e<=1?(this._output.texture=this._textwrap.getTexture(),this._output.shader.otherTextureSource=this.getLayer(0).getTexture(),this._output.shader.a=e):e<=2?(this._output.texture=this.getLayer(0).getTexture(),this._output.shader.otherTextureSource=this.getLayer(1).getTexture(),this._output.shader.a=e-1):e<=3?(this._output.texture=this.getLayer(1).getTexture(),this._output.shader.otherTextureSource=this.getLayer(2).getTexture(),this._output.shader.a=e-2):e<=4&&(this._output.texture=this.getLayer(2).getTexture(),this._output.shader.otherTextureSource=this.getLayer(3).getTexture(),this._output.shader.a=e-3))}set shader(e){super.shader=e,this.renderToTexture||console.warn("[Lightning] Please enable renderToTexture to use with a shader.")}_firstActive(){this._buildLayers()}},Rn=class extends ge{constructor(e){super(e),this._a=0,this._otherTextureSource=null}get a(){return this._a}set a(e){this._a=e,this.redraw()}set otherTextureSource(e){this._otherTextureSource=e,this.redraw()}setupUniforms(e){super.setupUniforms(e),this._setUniform("a",this._a,this.gl.uniform1f),this._setUniform("uSampler2",1,this.gl.uniform1i)}beforeDraw(e){let t=this._otherTextureSource?this._otherTextureSource.nativeTexture:null,i=this.gl;i.activeTexture(i.TEXTURE1),i.bindTexture(i.TEXTURE_2D,t),i.activeTexture(i.TEXTURE0)}};Rn.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoord; - varying vec4 vColor; - uniform sampler2D uSampler; - uniform sampler2D uSampler2; - uniform float a; - void main(void){ - if (a == 1.0) { - gl_FragColor = texture2D(uSampler2, vTextureCoord) * vColor; - } else { - gl_FragColor = ((1.0 - a) * texture2D(uSampler, vTextureCoord) + (a * texture2D(uSampler2, vTextureCoord))) * vColor; - } - } -`;var Wl=class extends Ue{static _template(){let e=function(t,i){if(i._recalc&130){let s=i.w,n=i.h,o=i;do o=o._children[0],o._element.w=s,o._element.h=n;while(o._children)}};return{Textwrap:{rtt:!0,forceZIndexContext:!0,renderOffscreen:!0,BloomBase:{shader:{type:Pn},Content:{}}},Layers:{L0:{rtt:!0,onUpdate:e,scale:2,pivot:0,visible:!1,Content:{shader:{type:at}}},L1:{rtt:!0,onUpdate:e,scale:4,pivot:0,visible:!1,Content:{shader:{type:at}}},L2:{rtt:!0,onUpdate:e,scale:8,pivot:0,visible:!1,Content:{shader:{type:at}}},L3:{rtt:!0,onUpdate:e,scale:16,pivot:0,visible:!1,Content:{shader:{type:at}}}}}}get _signalProxy(){return!0}constructor(e){super(e),this._textwrap=this.sel("Textwrap"),this._wrapper=this.sel("Textwrap.Content"),this._layers=this.sel("Layers"),this._amount=0,this._paddingX=0,this._paddingY=0}_build(){let t=[{x:1,y:0,kernelRadius:3},{x:0,y:1,kernelRadius:3},{x:1.5,y:0,kernelRadius:3},{x:0,y:1.5,kernelRadius:3}].map(i=>this.stage.createShader(Object.assign({type:Rr},i)));this._setLayerTexture(this.getLayerContents(0),this._textwrap.getTexture(),[]),this._setLayerTexture(this.getLayerContents(1),this.getLayer(0).getTexture(),[t[0],t[1]]),this._setLayerTexture(this.getLayerContents(2),this.getLayer(1).getTexture(),[t[0],t[1],t[2],t[3]]),this._setLayerTexture(this.getLayerContents(3),this.getLayer(2).getTexture(),[t[0],t[1],t[2],t[3]])}_setLayerTexture(e,t,i){if(!i.length)e.texture=t;else{let s=i.pop(),n=e.stage.c({rtt:!0,shader:s});this._setLayerTexture(n,t,i),e.childList.add(n)}return e}get content(){return this.sel("Textwrap.Content")}set content(e){this.sel("Textwrap.Content").patch(e)}set padding(e){this._paddingX=e,this._paddingY=e,this._updateBlurSize()}set paddingX(e){this._paddingX=e,this._updateBlurSize()}set paddingY(e){this._paddingY=e,this._updateBlurSize()}getLayer(e){return this._layers.sel("L"+e)}getLayerContents(e){return this.getLayer(e).sel("Content")}_onResize(){this._updateBlurSize()}_updateBlurSize(){let e=this.renderWidth,t=this.renderHeight,i=this._paddingX,s=this._paddingY,n=e+i*2,o=t+s*2;this._textwrap.w=n,this._wrapper.x=i,this.getLayer(0).w=this.getLayerContents(0).w=n/2,this.getLayer(1).w=this.getLayerContents(1).w=n/4,this.getLayer(2).w=this.getLayerContents(2).w=n/8,this.getLayer(3).w=this.getLayerContents(3).w=n/16,this._textwrap.x=-i,this._textwrap.h=o,this._wrapper.y=s,this.getLayer(0).h=this.getLayerContents(0).h=o/2,this.getLayer(1).h=this.getLayerContents(1).h=o/4,this.getLayer(2).h=this.getLayerContents(2).h=o/8,this.getLayer(3).h=this.getLayerContents(3).h=o/16,this._textwrap.y=-s,this.w=e,this.h=t}set amount(e){this._amount=e,this._update()}get amount(){return this._amount}_update(){let e=Math.min(4,Math.max(0,this._amount));e>0&&(this.getLayer(0).visible=e>0,this.getLayer(1).visible=e>1,this.getLayer(2).visible=e>2,this.getLayer(3).visible=e>3)}set shader(e){super.shader=e,this.renderToTexture||console.warn("[Lightning] Please enable renderToTexture to use with a shader.")}_firstActive(){this._build()}},Pn=class extends ge{};Pn.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoord; - varying vec4 vColor; - uniform sampler2D uSampler; - void main(void){ - vec4 color = texture2D(uSampler, vTextureCoord) * vColor; - float m = max(max(color.r, color.g), color.b); - float c = max(0.0, (m - 0.80)) * 5.0; - color = color * c; - gl_FragColor = color; - } -`;var jl=class r extends Ue{static _template(){return{ContentWrap:{renderOffscreen:!0,forceZIndexContext:!0,onAfterUpdate:r._updateDimensions,Content:{}},Scale:{visible:!1}}}constructor(e){super(e),this._smoothScale=1,this._iterations=0}get content(){return this.tag("Content")}set content(e){this.tag("Content").patch(e,!0)}get smoothScale(){return this._smoothScale}set smoothScale(e){if(this._smoothScale!==e){let t=0;for(;e<.5&&t<12;)t++,e=e*2;this.scale=e,this._setIterations(t),this._smoothScale=e}}_setIterations(e){if(this._iterations!==e){let t=this.sel("Scale").childList,i=this.sel("ContentWrap");for(;t.length0;this.patch({ContentWrap:{renderToTexture:s},Scale:{visible:s}});for(let n=0,o=t.length;n0}set borderWidthRight(e){this._borderRight.w=e,this._borderRight.visible=e>0}set borderWidthBottom(e){this._borderBottom.h=e,this._borderBottom.visible=e>0}set borderWidthLeft(e){this._borderLeft.w=e,this._borderLeft.visible=e>0}get colorBorder(){return this.colorBorderTop}get colorBorderTop(){return this._borderTop.color}get colorBorderRight(){return this._borderRight.color}get colorBorderBottom(){return this._borderBottom.color}get colorBorderLeft(){return this._borderLeft.color}set colorBorder(e){this.colorBorderTop=e,this.colorBorderRight=e,this.colorBorderBottom=e,this.colorBorderLeft=e}set colorBorderTop(e){this._borderTop.color=e}set colorBorderRight(e){this._borderRight.color=e}set colorBorderBottom(e){this._borderBottom.color=e}set colorBorderLeft(e){this._borderLeft.color=e}get borderTop(){return this._borderTop}set borderTop(e){this.borderTop.patch(e)}get borderRight(){return this._borderRight}set borderRight(e){this.borderRight.patch(e)}get borderBottom(){return this._borderBottom}set borderBottom(e){this.borderBottom.patch(e)}get borderLeft(){return this._borderLeft}set borderLeft(e){this.borderLeft.patch(e)}set borders(e){this.borderTop=e,this.borderLeft=e,this.borderBottom=e,this.borderRight=e}},Fi=class extends ge{constructor(e){super(e),this._amount=1}static getC2d(){return On}set amount(e){this._amount=e,this.redraw()}get amount(){return this._amount}useDefault(){return this._amount===0}setupUniforms(e){super.setupUniforms(e),this._setUniform("amount",this._amount,this.gl.uniform1f)}};Fi.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoord; - varying vec4 vColor; - uniform sampler2D uSampler; - uniform float amount; - void main(void){ - vec4 color = texture2D(uSampler, vTextureCoord) * vColor; - float grayness = 0.2 * color.r + 0.6 * color.g + 0.2 * color.b; - gl_FragColor = vec4(amount * vec3(grayness, grayness, grayness) + (1.0 - amount) * color.rgb, color.a); - } -`;var On=class extends Br{constructor(e){super(e),this._amount=1}static getWebGL(){return Fi}set amount(e){this._amount=e,this.redraw()}get amount(){return this._amount}useDefault(){return this._amount===0}_beforeDrawEl({target:e}){e.ctx.filter="grayscale("+this._amount+")"}_afterDrawEl({target:e}){e.ctx.filter="none"}},Ii=class extends ge{constructor(e){super(e),this._noiseTexture=new In(e.stage),this._graining=1/256,this._random=!1}set graining(e){this._graining=e,this.redraw()}set random(e){this._random=e,this.redraw()}setExtraAttribsInBuffer(e){this._noiseTexture.load();let t=e.extraAttribsDataByteOffset/4,i=e.quads.floats,s=e.length;for(let n=0;n100&&(console.warn("[Lightning] CircularPushShader: supports max 100 buckets"),e=100),this._buckets=e,this._values=new Uint8Array(this._getValues(e)),this.redraw()}get buckets(){return this._buckets}_getValues(e){let t=[];for(let i=0;i=0;t--){let i=t-e;i<0?(this._normalizedValue=Math.min(this._normalizedValue+this._maxDerivative,Math.max(this._normalizedValue-this._maxDerivative,this._inputValue)),this._values[t]=255*this._normalizedValue):this._values[t]=this._values[i]}}set offset(e){this._offset=e,this.redraw()}setupUniforms(e){super.setupUniforms(e),this._setUniform("aspectRatio",this._aspectRatio,this.gl.uniform1f),this._setUniform("offsetX",this._offsetX,this.gl.uniform1f),this._setUniform("offsetY",this._offsetY,this.gl.uniform1f),this._setUniform("amount",this._amount,this.gl.uniform1f),this._setUniform("offset",this._offset,this.gl.uniform1f),this._setUniform("buckets",this._buckets,this.gl.uniform1f),this._setUniform("uValueSampler",1,this.gl.uniform1i)}useDefault(){return this._amount===0}beforeDraw(e){let t=this.gl;t.activeTexture(t.TEXTURE1),this._valuesTexture?t.bindTexture(t.TEXTURE_2D,this._valuesTexture):(this._valuesTexture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this._valuesTexture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),z.isNode&&t.pixelStorei(t.UNPACK_FLIP_BLUE_RED,!1),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1)),t.texImage2D(t.TEXTURE_2D,0,t.ALPHA,this._buckets,1,0,t.ALPHA,t.UNSIGNED_BYTE,this._values),t.activeTexture(t.TEXTURE0)}cleanup(){this._valuesTexture&&this.gl.deleteTexture(this._valuesTexture)}};Bi.vertexShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - attribute vec2 aVertexPosition; - attribute vec2 aTextureCoord; - attribute vec4 aColor; - uniform vec2 projection; - uniform float offsetX; - uniform float offsetY; - uniform float aspectRatio; - varying vec2 vTextureCoord; - varying vec2 vPos; - varying vec4 vColor; - void main(void){ - gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0); - vTextureCoord = aTextureCoord; - vPos = vTextureCoord * 2.0 - 1.0; - vPos.y = vPos.y * aspectRatio; - vPos.y = vPos.y + offsetY; - vPos.x = vPos.x + offsetX; - vColor = aColor; - gl_Position.y = -sign(projection.y) * gl_Position.y; - } -`;Bi.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoord; - varying vec4 vColor; - varying vec2 vPos; - uniform float amount; - uniform float offset; - uniform float values[100]; - uniform float buckets; - uniform sampler2D uSampler; - uniform sampler2D uValueSampler; - void main(void){ - float l = length(vPos); - float m = (l * buckets * 0.678 - offset) / buckets; - float f = texture2D(uValueSampler, vec2(m, 0.0)).a * amount; - vec2 unit = vPos / l; - gl_FragColor = texture2D(uSampler, vTextureCoord - f * unit) * vColor; - } -`;var Ln=class extends ge{constructor(e){super(e),this._amount=1}set amount(e){this._amount=e,this.redraw()}get amount(){return this._amount}useDefault(){return this._amount===0}setupUniforms(e){super.setupUniforms(e),this._setUniform("amount",this._amount,this.gl.uniform1f)}};Ln.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoord; - varying vec4 vColor; - uniform sampler2D uSampler; - uniform float amount; - void main(void){ - vec4 color = texture2D(uSampler, vTextureCoord); - color.rgb = color.rgb * (1.0 - amount) + amount * (1.0 * color.a - color.rgb); - gl_FragColor = color * vColor; - } -`;var Ri=class extends ge{constructor(e){super(e),this._width=5,this._col=4294967295,this._color=[1,1,1,1]}set width(e){this._width=e,this.redraw()}get color(){return this._col}set color(e){if(this._col!==e){let t=ie.getRgbaComponentsNormalized(e);t[0]=t[0]*t[3],t[1]=t[1]*t[3],t[2]=t[2]*t[3],this._color=t,this.redraw(),this._col=e}}useDefault(){return this._width===0||this._col[3]===0}setupUniforms(e){super.setupUniforms(e);let t=this.gl;this._setUniform("color",new Float32Array(this._color),t.uniform4fv)}enableAttribs(){super.enableAttribs(),this.gl.enableVertexAttribArray(this._attrib("aCorner"))}disableAttribs(){super.disableAttribs(),this.gl.disableVertexAttribArray(this._attrib("aCorner"))}setExtraAttribsInBuffer(e){let t=e.extraAttribsDataByteOffset/4,i=e.quads.floats,s=e.length;for(let n=0;n(n+.5)*i);this._setUniform("radius",new Float32Array(s),this.gl.uniform4fv),this._setUniform("alpha",e.getElementCore(0).renderContext.alpha,this.gl.uniform1f),this._setUniform("blend",this._blend,this.gl.uniform1f),this._setUniform("strokeColor",this._strokeColor,this.gl.uniform4fv),this._setUniform("fillColor",this._fillColor,this.gl.uniform4fv),this._setUniform("stroke",this._stroke*i,this.gl.uniform1f),this._setUniform("resolution",new Float32Array([t._w*i,t._h*i]),this.gl.uniform2fv)}};Li.vertexShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - attribute vec2 aVertexPosition; - attribute vec2 aTextureCoord; - - attribute vec4 aColor; - uniform vec2 projection; - varying vec2 vTextureCoord; - varying vec4 vColor; - - void main(void){ - gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0); - vTextureCoord = aTextureCoord; - vColor = aColor; - gl_Position.y = -sign(projection.y) * gl_Position.y; - } -`;Li.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - - #define PI 3.14159265359 - - varying vec2 vTextureCoord; - varying vec4 vColor; - - uniform sampler2D uSampler; - uniform vec2 resolution; - uniform vec4 radius; - uniform float stroke; - uniform vec4 strokeColor; - uniform vec4 fillColor; - uniform float alpha; - uniform float fill; - uniform float blend; - - float boxDist(vec2 p, vec2 size, float radius){ - size -= vec2(radius); - vec2 d = abs(p) - size; - return min(max(d.x, d.y), 0.0) + length(max(d, 0.0)) - radius; - } - - float fillMask(float dist){ - return clamp(-dist, 0.0, 1.0); - } - - float innerBorderMask(float dist, float width){ - float alpha1 = clamp(dist + width, 0.0, 1.0); - float alpha2 = clamp(dist, 0.0, 1.0); - return alpha1 - alpha2; - } - - void main() { - vec2 halfRes = 0.5 * resolution.xy; - float r = 0.0; - if (vTextureCoord.x < 0.5 && vTextureCoord.y < 0.5) { - r = radius[0]; - } else if (vTextureCoord.x >= 0.5 && vTextureCoord.y < 0.5) { - r = radius[1]; - } else if (vTextureCoord.x >= 0.5 && vTextureCoord.y >= 0.5) { - r = radius[2]; - } else { - r = radius[3]; - } - - float b = boxDist(vTextureCoord.xy * resolution - halfRes, halfRes - 0.005, r); - vec4 tex = texture2D(uSampler, vTextureCoord) * vColor; - vec4 blend = mix(vec4(1.0) * alpha, tex, blend); - vec4 layer1 = mix(vec4(0.0), tex * fillColor, fillMask(b)); - gl_FragColor = mix(layer1, blend * strokeColor, innerBorderMask(b, stroke)); - } -`;var kn=class extends ge{constructor(e){super(e),this._fade=[0,0,0,0]}set top(e){this._fade[0]=e,this.redraw()}get top(){return this._fade[0]}set right(e){this._fade[1]=e,this.redraw()}get right(){return this._fade[1]}set bottom(e){this._fade[2]=e,this.redraw()}get bottom(){return this._fade[2]}set left(e){this._fade[3]=e,this.redraw()}get left(){return this._fade[3]}set fade(e){Array.isArray(e)?e.length===2?this._fade=[e[0],e[1],e[0],e[1]]:e.length===3?this._fade=[e[0],e[1],e[2],this._fade[3]]:e.length===4?this._fade=e:this._fade=[e[0],e[0],e[0],e[0]]:this._fade=[e,e,e,e],this.redraw()}get fade(){return this._fade}setupUniforms(e){super.setupUniforms(e);let t=e.shaderOwner,i=this.ctx.stage.getRenderPrecision(),s=this._fade.map(n=>n*i);this._setUniform("fade",new Float32Array(s),this.gl.uniform4fv),this._setUniform("resolution",new Float32Array([t._w*i,t._h*i]),this.gl.uniform2fv)}};kn.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoord; - varying vec4 vColor; - uniform sampler2D uSampler; - uniform vec2 resolution; - uniform vec4 fade; - - void main() { - vec4 color = texture2D(uSampler, vTextureCoord) * vColor; - vec2 halfRes = 0.5 * resolution.xy; - vec2 point = vTextureCoord.xy * resolution.xy; - - vec2 pos1; - vec2 pos2; - vec2 d; - float c; - float t = 0.0; - - if(fade[0] > 0.0) { - pos1 = vec2(point.x, point.y); - pos2 = vec2(point.x, point.y + fade[0]); - d = pos2 - pos1; - c = dot(pos1, d) / dot(d, d); - t = smoothstep(0.0, 1.0, clamp(c, 0.0, 1.0)); - color = mix(vec4(0.0), color, t); - } - - if(fade[1] > 0.0) { - vec2 pos1 = vec2(point.x - resolution.x - fade[1], vTextureCoord.y); - vec2 pos2 = vec2(point.x - resolution.x, vTextureCoord.y); - d = pos1 - pos2; - c = dot(pos2, d) / dot(d, d); - t = smoothstep(0.0, 1.0, clamp(c, 0.0, 1.0)); - color = mix(vec4(0.0), color, t); - } - - if(fade[2] > 0.0) { - vec2 pos1 = vec2(vTextureCoord.x, point.y - resolution.y - fade[2]); - vec2 pos2 = vec2(vTextureCoord.x, point.y - resolution.y); - d = pos1 - pos2; - c = dot(pos2, d) / dot(d, d); - t = smoothstep(0.0, 1.0, clamp(c, 0.0, 1.0)); - color = mix(vec4(0.0), color, t); - } - - if(fade[3] > 0.0) { - pos1 = vec2(point.x, point.y); - pos2 = vec2(point.x + fade[3], point.y); - d = pos2 - pos1; - c = dot(pos1, d) / dot(d, d); - t = smoothstep(0.0, 1.0, clamp(c, 0.0, 1.0)); - color = mix(vec4(0.0), color, t); - } - - gl_FragColor = color; - } -`;var ki=class extends ge{constructor(e){super(e),this._magnitude=1.3,this._intensity=.7,this._pivot=[.5,.5]}setupUniforms(e){super.setupUniforms(e),this._setUniform("magnitude",this._magnitude,this.gl.uniform1f),this._setUniform("intensity",this._intensity,this.gl.uniform1f),this._setUniform("pivot",new Float32Array(this._pivot),this.gl.uniform2fv),this.redraw()}set pivot(e){Array.isArray(e)?this._pivot=e:this._pivot=[e,e],this.redraw()}get pivotX(){return this._pivot[0]}set pivotX(e){this._pivot[0]=e,this.redraw()}get pivotY(){return this._pivot[1]}set pivotY(e){this._pivot[1]=e,this.redraw()}get intensity(){return this._intensity}set intensity(e){this._intensity=e,this.redraw()}get magnitude(){return this._magnitude}set magnitude(e){this._magnitude=e,this.redraw()}};ki.vertexShaderSource=ge.vertexShaderSource;ki.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoord; - varying vec4 vColor; - uniform sampler2D uSampler; - - uniform float magnitude; - uniform float intensity; - uniform vec2 pivot; - - void main() { - vec2 uv = vTextureCoord.xy - pivot + vec2(0.5); - uv.x = clamp(uv.x, 0.0, 1.0); - uv.y = clamp(uv.y, 0.0, 1.0); - - uv *= 1.00 - uv.yx; - float vig = uv.x * uv.y * 25.0 * intensity; - vig = pow(vig, 0.45 * magnitude); - vec4 fragColor = vec4(vig) * vColor; - gl_FragColor = texture2D(uSampler, vTextureCoord) * fragColor; - - } -`;var Mi=class extends ge{constructor(e){super(e),this._radius=100,this._width=50,this._period=1,this._angle=.5,this._smooth=.005,this._color=4294967295,this._backgroundColor=4278190080,this._time=Date.now()}set radius(e){this._radius=e,this.redraw()}set width(e){this._width=e,this.redraw()}set period(e){this._period=e,this.redraw()}set angle(e){this._angle=e,this.redraw()}set smooth(e){this._smooth=e,this.redraw()}set color(e){this._color=e,this.redraw()}set backgroundColor(e){this._backgroundColor=e,this.redraw()}setupUniforms(e){super.setupUniforms(e);let t=e.shaderOwner;this._setUniform("iTime",Date.now()-this._time,this.gl.uniform1f);let i=this.ctx.stage.getRenderPrecision();this._setUniform("radius",this._radius*i,this.gl.uniform1f),this._setUniform("width",this._width*i,this.gl.uniform1f),this._setUniform("period",this._period,this.gl.uniform1f),this._setUniform("angle",this._angle,this.gl.uniform1f),this._setUniform("smooth",this._smooth,this.gl.uniform1f),this._setUniform("color",new Float32Array(ie.getRgbaComponentsNormalized(this._color)),this.gl.uniform4fv),this._setUniform("backgroundColor",new Float32Array(ie.getRgbaComponentsNormalized(this._backgroundColor)),this.gl.uniform4fv),this._setUniform("resolution",new Float32Array([t._w*i,t._h*i]),this.gl.uniform2fv),this.redraw()}};Mi.vertexShaderSource=ge.vertexShaderSource;Mi.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoord; - varying vec4 vColor; - uniform sampler2D uSampler; - - uniform float iTime; - uniform float radius; - uniform float width; - uniform float period; - uniform float angle; - uniform float smooth; - uniform vec2 resolution; - - uniform vec4 color; - uniform vec4 backgroundColor; - - float ratio = resolution.y / resolution.x; - - vec2 transpose_pos(vec2 pos) { - if (ratio < 1.) { - float diff = 0.5 - pos.x; - pos.x = 0.5 - diff / ratio; - } else { - float diff = 0.5 - pos.y; - pos.y = 0.5 - diff * ratio; - } - return pos; - } - - float get_angle(vec2 pos) { - pos = transpose_pos(pos); - float a = atan(pos.y - 0.5, pos.x - 0.5); - a = (1.0+a/3.14159)/2.0; - - return a; - } - - float dist(vec2 pos1, vec2 pos2) { - pos1 = transpose_pos(pos1); - return distance(pos1, pos2); - } - - void main() - { - vec2 fragCoord = vTextureCoord; - vec4 fragColor = vColor; - - vec2 st = vTextureCoord; - float pct = dist(st, vec2(0.5)); - - float a = get_angle(st); - float t = iTime / 1000.0 / period; - - float inner = max((radius - width) / resolution.x, (radius - width) / resolution.y); - float outer = max(radius / resolution.x, radius / resolution.y); - - float x1 = mod(t, 1.0); - float x2 = mod(t + angle, 1.0); - - if (x1 < x2) { - if (a > x1 && a < x2) { - float val = (1.0 - (x2 - a) / angle) * smoothstep(0.0, 3. * smooth, (x2 - a)); - fragColor = mix(backgroundColor, color, val); - } else { - fragColor = backgroundColor; - } - } else { - if (a < x2) { - float val = (1.0 - (x2 - a) / angle) * smoothstep(0.0, 3. * smooth, (x2 - a)); - fragColor = mix(backgroundColor, color, val); - } else if (a > x1) { - float val = (1.0 - (1.0 + x2 - a) / angle) * smoothstep(0.0, 3. * smooth, (1.0 + x2 - a)); - fragColor = mix(backgroundColor, color, val); - } else { - fragColor = backgroundColor; - } - } - - float s = smoothstep(inner, inner + smooth + 0.00001, pct) * (1.0 - smoothstep(outer, outer + smooth + 0.00001, pct)); - gl_FragColor = texture2D(uSampler, fragCoord) * vColor * (1. - s * fragColor.a) + fragColor * s; - } -`;var Ni=class extends ge{constructor(e){super(e),this._x=0,this._y=0,this._w=0,this._h=0,this._radius=0}get x(){return this._x}set x(e){this._x=e,this.redraw()}get y(){return this._y}set y(e){this._y=e,this.redraw()}get w(){return this._w}set w(e){this._w=e,this.redraw()}get h(){return this._h}set h(e){this._h=e,this.redraw()}get radius(){return this._radius}set radius(e){this._radius=e,this.redraw()}setupUniforms(e){super.setupUniforms(e);let t=e.shaderOwner,i=this.ctx.stage.getRenderPrecision();this._setUniform("x",this._x*i,this.gl.uniform1f),this._setUniform("y",this._y*i,this.gl.uniform1f),this._setUniform("w",this._w*i,this.gl.uniform1f),this._setUniform("h",this._h*i,this.gl.uniform1f),this._setUniform("radius",(this._radius+.5)*i,this.gl.uniform1f),this._setUniform("resolution",new Float32Array([t._w*i,t._h*i]),this.gl.uniform2fv)}useDefault(){return this._x===0&&this._y===0&&this._w===0&&this._h===0}};Ni.vertexShaderSource=ge.vertexShaderSource;Ni.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoord; - varying vec4 vColor; - uniform sampler2D uSampler; - uniform float x; - uniform float y; - uniform float w; - uniform float h; - uniform vec2 resolution; - uniform float radius; - - float roundBox(vec2 p, vec2 b, float r) { - float d = length(max(abs(p)-b+r, 0.1))-r; - return smoothstep(1.0, 0.0, d); - } - - void main(void){ - vec4 color = texture2D(uSampler, vTextureCoord); - vec2 pos = vTextureCoord.xy * resolution - vec2(x, y) - vec2(w, h) / 2.0; - vec2 size = vec2(w, h) / 2.0; - float b = roundBox(pos, size, radius); - gl_FragColor = mix(color, vec4(0.0), b) * vColor; - } -`;var Mn=class extends ge{constructor(e){super(e),this._pivot=[0,0],this._ic=4294967295,this._normalizedIC=this._getNormalizedColor(this._ic),this._oc=16777215,this._normalizedOC=this._getNormalizedColor(this._oc),this._radius=0}set radiusX(e){this.radius=e}get radiusX(){return this._radius}set radiusY(e){this._radiusY=e,this.redraw()}get radiusY(){return this._radiusY}set radius(e){this._radius=e,this.redraw()}set innerColor(e){this._ic=e,this._normalizedIC=this._getNormalizedColor(e),this.redraw()}get innerColor(){return this._ic}set outerColor(e){this._oc=e,this._normalizedOC=this._getNormalizedColor(e),this.redraw()}set color(e){this.innerColor=e}get color(){return this.innerColor}get outerColor(){return this._ic}set x(e){this._x=e,this.redraw()}set y(e){this._y=e,this.redraw()}set pivot(e){Array.isArray(e)&&e.length===2?this._pivot=e:Array.isArray(e)?this._pivot=[e[0],e[1]||e[0]]:this._pivot=[e,e],this.redraw()}get pivot(){return this._pivot[0]}set pivotY(e){this._pivot[1]=e,this.redraw()}get pivotY(){return this._pivot[1]}set pivotX(e){this._pivot[0]=e,this.redraw()}get pivotX(){return this._pivot[0]}_getNormalizedColor(e){let t=ie.getRgbaComponentsNormalized(e);return t[0]*=t[3],t[1]*=t[3],t[2]*=t[3],new Float32Array(t)}setupUniforms(e){super.setupUniforms(e);let t=e.shaderOwner;this._x&&(this._pivot[0]=this._x/t.w),this._y&&(this._pivot[1]=this._y/t.h),this._radius===0&&(this._radius=t.w*.5),this._setUniform("innerColor",this._normalizedIC,this.gl.uniform4fv),this._setUniform("fill",ie.getRgbaComponentsNormalized(this._oc)[3],this.gl.uniform1f),this._setUniform("outerColor",this._normalizedOC,this.gl.uniform4fv),this._setUniform("pivot",new Float32Array(this._pivot),this.gl.uniform2fv),this._setUniform("resolution",new Float32Array([t._w,t._h]),this.gl.uniform2fv),this._setUniform("alpha",e.getElementCore(0).renderContext.alpha,this.gl.uniform1f),this._setUniform("radius",this._radius,this.gl.uniform1f),this._setUniform("radiusY",this._radiusY||this._radius,this.gl.uniform1f)}};Mn.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - - #define PI 3.14159265359 - - varying vec2 vTextureCoord; - varying vec4 vColor; - uniform sampler2D uSampler; - uniform vec2 resolution; - uniform vec2 pivot; - uniform vec4 innerColor; - uniform vec4 outerColor; - uniform float radius; - uniform float radiusY; - uniform float alpha; - uniform float fill; - uniform float aspectRatio; - - void main() { - vec2 point = vTextureCoord.xy * resolution; - vec2 projection = vec2(pivot.x * resolution.x, pivot.y * resolution.y); - float d = length((point - projection) / vec2(radius * 2.0, radiusY * 2.0)); - vec4 color = mix(texture2D(uSampler, vTextureCoord) * vColor, outerColor * alpha, fill); - gl_FragColor = mix(innerColor * alpha, color, smoothstep(0.0, 1.0, d)); - } -`;var zi=class extends ge{constructor(e){super(e),this._strength=.5,this._ambient=.5,this._fudge=.4,this._rx=0,this._ry=0,this._z=0,this._pivotX=NaN,this._pivotY=NaN,this._pivotZ=0,this._lightY=0,this._lightZ=0}setupUniforms(e){super.setupUniforms(e);let t=e.shaderOwner,i=t.element,s=isNaN(this._pivotX)?i.pivotX*t.w:this._pivotX,n=isNaN(this._pivotY)?i.pivotY*t.h:this._pivotY,o=t.getRenderTextureCoords(s,n),a=-Math.atan2(t._renderContext.tc,t._renderContext.ta),l=this.gl;this._setUniform("pivot",new Float32Array([o[0],o[1],this._pivotZ]),l.uniform3fv),this._setUniform("rot",new Float32Array([this._rx,this._ry,a]),l.uniform3fv),this._setUniform("z",this._z,l.uniform1f),this._setUniform("lightY",this.lightY,l.uniform1f),this._setUniform("lightZ",this.lightZ,l.uniform1f),this._setUniform("strength",this._strength,l.uniform1f),this._setUniform("ambient",this._ambient,l.uniform1f),this._setUniform("fudge",this._fudge,l.uniform1f)}set strength(e){this._strength=e,this.redraw()}get strength(){return this._strength}set ambient(e){this._ambient=e,this.redraw()}get ambient(){return this._ambient}set fudge(e){this._fudge=e,this.redraw()}get fudge(){return this._fudge}get rx(){return this._rx}set rx(e){this._rx=e,this.redraw()}get ry(){return this._ry}set ry(e){this._ry=e,this.redraw()}get z(){return this._z}set z(e){this._z=e,this.redraw()}get pivotX(){return this._pivotX}set pivotX(e){this._pivotX=e+1,this.redraw()}get pivotY(){return this._pivotY}set pivotY(e){this._pivotY=e+1,this.redraw()}get lightY(){return this._lightY}set lightY(e){this._lightY=e,this.redraw()}get pivotZ(){return this._pivotZ}set pivotZ(e){this._pivotZ=e,this.redraw()}get lightZ(){return this._lightZ}set lightZ(e){this._lightZ=e,this.redraw()}useDefault(){return this._rx===0&&this._ry===0&&this._z===0&&this._strength===0&&this._ambient===1}};zi.vertexShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - attribute vec2 aVertexPosition; - attribute vec2 aTextureCoord; - attribute vec4 aColor; - uniform vec2 projection; - varying vec2 vTextureCoord; - varying vec4 vColor; - - uniform float fudge; - uniform float strength; - uniform float ambient; - uniform float z; - uniform float lightY; - uniform float lightZ; - uniform vec3 pivot; - uniform vec3 rot; - varying vec3 pos; - - void main(void) { - pos = vec3(aVertexPosition.xy, z); - - pos -= pivot; - - // Undo XY rotation - mat2 iRotXy = mat2( cos(rot.z), sin(rot.z), - -sin(rot.z), cos(rot.z)); - pos.xy = iRotXy * pos.xy; - - // Perform 3d rotations - gl_Position.x = cos(rot.x) * pos.x - sin(rot.x) * pos.z; - gl_Position.y = pos.y; - gl_Position.z = sin(rot.x) * pos.x + cos(rot.x) * pos.z; - - pos.x = gl_Position.x; - pos.y = cos(rot.y) * gl_Position.y - sin(rot.y) * gl_Position.z; - pos.z = sin(rot.y) * gl_Position.y + cos(rot.y) * gl_Position.z; - - // Redo XY rotation - iRotXy[0][1] = -iRotXy[0][1]; - iRotXy[1][0] = -iRotXy[1][0]; - pos.xy = iRotXy * pos.xy; - - // Undo translate to pivot position - pos.xyz += pivot; - - pos = vec3(pos.x * projection.x - 1.0, pos.y * -abs(projection.y) + 1.0, pos.z * projection.x); - - // Set depth perspective - float perspective = 1.0 + fudge * pos.z; - - pos.z += lightZ * projection.x; - - // Map coords to gl coordinate space. - // Set z to 0 because we don't want to perform z-clipping - gl_Position = vec4(pos.xy, 0.0, perspective); - - // Correct light source position. - pos.y += lightY * abs(projection.y); - - vTextureCoord = aTextureCoord; - vColor = aColor; - - gl_Position.y = -sign(projection.y) * gl_Position.y; - } -`;zi.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoord; - varying vec4 vColor; - varying vec3 pos; - uniform sampler2D uSampler; - uniform float ambient; - uniform float strength; - void main(void){ - vec4 rgba = texture2D(uSampler, vTextureCoord); - float d = length(pos); - float n = 1.0 / max(0.1, d); - rgba.rgb = rgba.rgb * (strength * n + ambient); - gl_FragColor = rgba * vColor; - } -`;var Ui=class extends ge{constructor(e){super(e),this._fudge=.2,this._rx=0,this._ry=0,this._z=1}setupUniforms(e){super.setupUniforms(e);let t=e.shaderOwner,i=t.element,s=i.pivotX*t.w,n=i.pivotY*t.h,o=t.getRenderTextureCoords(s,n),a=-Math.atan2(t._renderContext.tc,t._renderContext.ta),l=this.gl;this._setUniform("pivot",new Float32Array([o[0],o[1],0]),l.uniform3fv),this._setUniform("rot",new Float32Array([this._rx,this._ry,a]),l.uniform3fv),this._setUniform("z",this._z,l.uniform1f),this._setUniform("fudge",this._fudge,l.uniform1f)}set fudge(e){this._fudge=e,this.redraw()}get fudge(){return this._fudge}get rx(){return this._rx}set rx(e){this._rx=e,this.redraw()}get ry(){return this._ry}set ry(e){this._ry=e,this.redraw()}get z(){return this._z}set z(e){this._z=e,this.redraw()}useDefault(){return this._rx===0&&this._ry===0&&this._z===0}};Ui.vertexShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - attribute vec2 aVertexPosition; - attribute vec2 aTextureCoord; - attribute vec4 aColor; - uniform vec2 projection; - varying vec2 vTextureCoord; - varying vec4 vColor; - - uniform float z; - uniform vec3 pivot; - uniform vec3 rot; - varying vec3 pos; - - void main(void) { - pos = vec3(aVertexPosition.xy, z); - - pos -= pivot; - - // Undo XY rotation - mat2 iRotXy = mat2( cos(rot.z), sin(rot.z), - -sin(rot.z), cos(rot.z)); - pos.xy = iRotXy * pos.xy; - - // Perform 3d rotations - gl_Position.x = cos(rot.x) * pos.x - sin(rot.x) * pos.z; - gl_Position.y = pos.y; - gl_Position.z = sin(rot.x) * pos.x + cos(rot.x) * pos.z; - - pos.x = gl_Position.x; - pos.y = cos(rot.y) * gl_Position.y - sin(rot.y) * gl_Position.z; - pos.z = sin(rot.y) * gl_Position.y + cos(rot.y) * gl_Position.z; - - // Redo XY rotation - iRotXy[0][1] = -iRotXy[0][1]; - iRotXy[1][0] = -iRotXy[1][0]; - pos.xy = iRotXy * pos.xy; - - // Undo translate to pivot position - pos.xyz += pivot; - - pos = vec3(pos.x * projection.x - 1.0, pos.y * -abs(projection.y) + 1.0, pos.z * projection.x); - - // Map coords to gl coordinate space. - // Set z to 0 because we don't want to perform z-clipping - gl_Position = vec4(pos.xy, 0.0, z); - - vTextureCoord = aTextureCoord; - vColor = aColor; - - gl_Position.y = -sign(projection.y) * gl_Position.y; - } -`;Ui.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - varying vec2 vTextureCoord; - varying vec4 vColor; - uniform sampler2D uSampler; - - uniform vec3 rot; - uniform float fudge; - - void main(void) { - vec2 coords = vTextureCoord; - - coords.xy -= vec2(0.5); - coords.y = coords.y + (sign(rot[0]) * 0.5 - coords.x) * sin(rot[0]) * fudge * coords.y; - coords.x = coords.x + (sign(rot[1]) * 0.5 - coords.y) * sin(rot[1]) * fudge * coords.x; - coords.xy += vec2(0.5); - - if (coords.x < 0.0 || coords.x > 1.0 || coords.y < 0.0 || coords.y > 1.0) { - gl_FragColor = vec4(0.0); - } else { - gl_FragColor = texture2D(uSampler, coords) * vColor; - } - } -`;var Hi=class extends ge{constructor(e){super(e),this._x=0,this._y=0,this._w=0,this._h=0,this._radius=0,this._magnification=.6}get x(){return this._x}set x(e){this._x=e,this.redraw()}get y(){return this._y}set y(e){this._y=e,this.redraw()}get w(){return this._w}set w(e){this._w=e,this.redraw()}get h(){return this._h}set h(e){this._h=e,this.redraw()}get magnification(){return this._magnification}set magnification(e){this._magnification=e,this.redraw()}get radius(){return this._radius}set radius(e){this._radius=e,this.redraw()}setupUniforms(e){super.setupUniforms(e);let t=e.shaderOwner,i=this.ctx.stage.getRenderPrecision();this._setUniform("x",this._x*i,this.gl.uniform1f),this._setUniform("y",this._y*i,this.gl.uniform1f),this._setUniform("w",this._w*i,this.gl.uniform1f),this._setUniform("h",this._h*i,this.gl.uniform1f),this._setUniform("magnification",this._magnification,this.gl.uniform1f),this._setUniform("radius",(this._radius+.5)*i,this.gl.uniform1f),this._setUniform("resolution",new Float32Array([t._w*i,t._h*i]),this.gl.uniform2fv)}useDefault(){return this._w===0&&this._h===0}};Hi.vertexShaderSource=ge.vertexShaderSource;Hi.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - - varying vec2 vTextureCoord; - varying vec4 vColor; - uniform sampler2D uSampler; - uniform float x; - uniform float y; - uniform float w; - uniform float h; - uniform vec2 resolution; - uniform float radius; - uniform float magnification; - - float roundBox(vec2 p, vec2 b, float r) { - float d = length(max(abs(p)-b+r, 0.1))-r; - return smoothstep(1.0, 0.0, d); - } - - float inside(vec2 v) { - vec2 s = step(vec2(0.0, 0.0), v) - step(vec2(1.0, 1.0), v); - return s.x * s.y; - } - - void main(void) { - vec4 color = texture2D(uSampler, vTextureCoord); - vec2 pos = vTextureCoord.xy * resolution - vec2(x, y) - vec2(w, h) / 2.0; - vec2 size = vec2(w, h) / 2.0; - float b = roundBox(pos, size, radius); - vec2 pos2 = (vTextureCoord.xy * magnification * resolution + vec2(x, y) * magnification) / resolution; - gl_FragColor = mix(color, texture2D(uSampler, pos2) * inside(pos2), b) * vColor; - } - `;var Wi=class r extends ge{constructor(e){super(e),this._period=1,this._stroke=0,this._showDot=!0,this._clockwise=!0,this._bc=4278190080,this._normalizedBC=this._getNormalizedColor(this._bc),this._c=4294967295,this._normalizedC=this._getNormalizedColor(this._c)}set radius(e){e===0&&(e=1),this._radius=e}set stroke(e){this._stroke=Math.abs(e)}get stroke(){return this._stroke}set color(e){this._c=e,this._normalizedC=this._getNormalizedColor(e)}get color(){return this._c}set backgroundColor(e){this._bc=e,this._normalizedBC=this._getNormalizedColor(e)}get backgroundColor(){return this._sc}set showDot(e){this._showDot=e}get showDot(){return this._showDot}set clockwise(e){this._clockwise=e}get clockwise(){return this._clockwise}set period(e){this._period=e}get period(){return this._period}_getNormalizedColor(e){let t=ie.getRgbaComponentsNormalized(e);return t[0]*=t[3],t[1]*=t[3],t[2]*=t[3],new Float32Array(t)}setupUniforms(e){super.setupUniforms(e);let t=e.shaderOwner,i=this._radius||t._w/2;this._stroke===0&&(this._stroke=i*.33),this._setUniform("resolution",new Float32Array([t._w,t._h]),this.gl.uniform2fv),this._setUniform("color",this._normalizedC,this.gl.uniform4fv),this._setUniform("backgroundColor",this._normalizedBC,this.gl.uniform4fv),this._setUniform("stroke",this._stroke,this.gl.uniform1f),this._setUniform("radius",i,this.gl.uniform1f),this._setUniform("direction",this._clockwise?-1:1,this.gl.uniform1f),this._setUniform("showDot",!!this._showDot,this.gl.uniform1f),this._setUniform("time",Date.now()-r.spinSync,this.gl.uniform1f),this._setUniform("period",this._period,this.gl.uniform1f),this._setUniform("alpha",e.getElementCore(0).renderContext.alpha,this.gl.uniform1f),(this._sc!==this._bc||this._stroke!==i*.5)&&this.redraw()}};Wi.spinSync=Date.now();Wi.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - - #define PI 3.14159265359 - - varying vec2 vTextureCoord; - varying vec4 vColor; - - uniform sampler2D uSampler; - uniform vec2 resolution; - uniform vec4 color; - uniform vec4 backgroundColor; - uniform float direction; - uniform float radius; - uniform float time; - uniform float stroke; - uniform float showDot; - uniform float period; - uniform float alpha; - - float circleDist(vec2 p, float radius){ - return length(p) - radius; - } - - float fillMask(float dist){ - return clamp(-dist, 0.0, 1.0); - } - - void main() { - vec2 halfRes = 0.5 * resolution.xy; - vec2 center = vTextureCoord.xy * resolution - halfRes; - - float c = max(-circleDist(center, radius - stroke), circleDist(center, radius)); - float rot = -(time / 1000.0 / period) * 6.0 * direction; - center *= mat2(cos(rot), sin(rot), -sin(rot), cos(rot)); - - float a = direction * atan(center.x, center.y) * PI * 0.05 + 0.45; - - float strokeRad = stroke * 0.5; - a = mix(a, max(a, fillMask(circleDist(vec2(center.x, center.y + (radius - strokeRad)), strokeRad))), showDot); - vec4 base = mix(vec4(0.0), backgroundColor * alpha, fillMask(c)); - gl_FragColor = mix(base, color * alpha, fillMask(c) * a); - } -`;var X={Application:Rl,Component:Ue,Base:He,Utils:z,StageUtils:ie,Element:Ke,Tools:Pl,Stage:Di,ElementCore:Si,ElementTexturizer:ln,Texture:lt,EventEmitter:ze,shaders:{Grayscale:Fi,BoxBlur:at,Dithering:Ii,CircularPush:Bi,Inversion:Ln,LinearBlur:Rr,Outline:Ri,Pixelate:Pi,RadialFilter:Oi,RoundedRectangle:Li,Spinner2:Wi,FadeOut:kn,Hole:Ni,Vignette:ki,Spinner:Mi,RadialGradient:Mn,Light3d:zi,Perspective:Ui,Magnifier:Hi,WebGLShader:Ir,WebGLDefaultShader:ge,C2dShader:wi,C2dDefaultShader:Br,c2d:{Grayscale:On,Blur:Bn}},textures:{RectangleTexture:En,NoiseTexture:In,TextTexture:Dt,ImageTexture:Ci,HtmlTexture:Ll,StaticTexture:kl,StaticCanvasTexture:Tn,SourceTexture:pn},components:{FastBlurComponent:zl,BloomComponent:Wl,SmoothScaleComponent:jl,BorderComponent:ql,ListComponent:Ml},tools:{ObjMerger:Ol,ObjectListProxy:Dn,ObjectListWrapper:Fn}};z.isWeb&&(window.lng=X);u();h();c();var $l=class{constructor(){this._logCallback=void 0,this._prefix="LightningUI",this._debug=!1}get debug(){return this._debug}set debug(e){this._debug=!!e}get logCallback(){return this._logCallback}set logCallback(e){if(typeof e!="function"){this.warn(`logCallback value must be a function, instead received ${typeof e}`);return}this._logCallback=e}log(...e){this._logCallback&&this._logCallback({level:"log",payload:e}),this.debug&&console.log(this._prefix,...e)}info(...e){this._logCallback&&this._logCallback({level:"info",payload:e}),this.debug&&console.info(this._prefix,...e)}warn(...e){this._logCallback&&this._logCallback({level:"warn",payload:e}),this.debug&&console.warn(this._prefix,...e)}error(...e){this._logCallback&&this._logCallback({level:"error",payload:e}),this.debug&&console.error(this._prefix,...e)}},le=new $l;function Gl(r,e={}){if(!r)return!1;let{w:t,h:i,core:{renderContext:{px:s,py:n},_scissor:o=[]}={}}=r,a=r.stage.h/r.stage.getRenderPrecision(),l=r.stage.w/r.stage.getRenderPrecision(),d=s,p=n,_=s-r.x,g=n-r.y,m=e.offsetX-_||0,A=e.offsetY-g||0;r.transition("x")&&(d=s-r.x+r.transition("x").targetValue),r.transition("y")&&(p=n-r.y+r.transition("y").targetValue),d+=m,p+=A;let C=d>=0&&d+t<=l,v=p>=0&&p+i<=a;if(!C||!v)return!1;if(o&&o.length){let[w=null,D=null,B=null,F=null]=o,E=Math.round(d+t)>=Math.round(w),O=Math.round(d)<=Math.round(w+B),M=Math.round(p+i)>=Math.round(D),W=Math.round(p+i)<=Math.round(D+F);return E&&O&&M&&W}return!0}function Pr(r,e=1){let t=r.layout.screenW,i=r.layout.columnCount,s=r.layout.marginX,n=r.layout.gutterX;if(e<1||e>i){console.error(`Column expects a number between 1 & ${i}. Received ${e}`);return}let o=t-s*2,a=(e-1)*n;return(o-a)/e}function ji(r,e){let t=r.layout.columnCount,i=r.layout.gutterX;return Pr(r,t)*e+i*(e-1)}function Vl(r,e={},t={}){let{w:i,h:s,ratioX:n,ratioY:o,upCount:a}=e,l=t.w||0,d=t.h||0,p={};return i&&s?p={w:i,h:s}:s&&n&&o?p={w:Math.round(s*n/o),h:s}:n&&o&&a?p=M2(r,n,o,a):s&&a?p={w:Math.round(Pr(r,a)),h:s}:s?p={w:l,h:s}:i?p={w:i,h:d}:p={w:l,h:d},p={...p,ratioX:n,ratioY:o,upCount:a},p}function M2(r,e,t,i){let s,n;return e&&t&&i?(s=Math.round(Pr(r,i)),n=Math.round(s/e*t)):(s=0,n=0),{w:s,h:n}}function N2(r,e="16:9",t=":"){let[i,s]=e.split(t);return r*(i/s)}function z2(r,e="16:9",t=":"){let[i,s]=e.split(t);return r/(i/s)}function jt(r,e=1){if(!r)return 0;typeof r=="number"&&(r=r.toString(16).slice(2)),r=r.replace("#","");let i=`0x${Math.round(e*255).toString(16)}${r}`;return Number(i)}function Or(r){if(typeof r=="string"||typeof r=="number"){if(/^0x[0-9a-fA-F]{8}/g.test(r))return Number(r);if(/^#[0-9a-fA-F]{6}/g.test(r))return jt(r.substr(1,6));if(typeof r=="string"&&/^[0-9]{8,10}/g.test(r))return parseInt(r);if(typeof r=="number"&&/^[0-9]{8,10}/g.test(r.toString()))return r;if(typeof r=="string"&&r.indexOf("rgba")>-1)return vd(r);if(typeof r=="string"&&r.indexOf("rgb")>-1){let e=[...r.replace(/rgb\(|\)/g,"").split(","),"255"];return X.StageUtils.getArgbNumber(e)}}return null}function U2([r,e]){for(let t=r;t>0;t--)if(!(r%t)&&!(e%t))return[r/t,e/t]}function Ad(r){return U2(r.split("/").map(e=>+e)).join("/")}var qi=(r,e)=>(typeof e=="string"&&(e=e.split(".").filter(t=>t.length)),e.reduce((t,i)=>t&&t[i],r));function vd(r){let e=r.replace(/rgba\(|\)/g,"").split(",");return e[3]=e[3]*255,X.StageUtils.getArgbNumber(e)}function $i(r){return r.charAt(0).toUpperCase()+r.slice(1)}var H2={getWidth(r,e={}){let{padding:t,paddingLeft:i,paddingRight:s,strokeWidth:n}={padding:0,paddingLeft:0,paddingRight:0,strokeWidth:0,...e};return r?r-(i||t)-(s||t)-n:0},getHeight(r,e={}){let{padding:t,paddingBottom:i,paddingTop:s,strokeWidth:n}={padding:0,paddingBottom:0,paddingTop:0,strokeWidth:0,...e};return r?r-(i||t)-(s||t)-n:0}};function Le(r,e){let t=Object.create(Object.getPrototypeOf(r));if(Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)),!e||r===e)return t;for(let i in e){let s=e[i];r.hasOwnProperty(i)?t[i]=wd(i,r,e):t[i]=s}return t}function wd(r,e,t){let i=e[r],s=t[r],n=typeof i,o=typeof s;return n!==o||o==="function"||Array.isArray(s)?s:s&&o==="object"?Le(i,s):s}function Nn(r={}){let t=document.createElement("canvas").getContext("2d"),{fontStyle:i,fontWeight:s,fontSize:n,fontFamily:o=r.fontFace||"sans-serif"}=r,a=[i,s,n?`${n}px`:"0",`'${o}'`].filter(Boolean).join(" ");t.font=a;let l=t.measureText(r.text||"");return Math.round(l.width)}function W2(...r){return r.find(Number.isFinite)}function j2(r,e){if(!e)return 0;let t=e.transition(r);if(t.isRunning())return t.targetValue;let i=r;return r==="w"?i="renderWidth":r==="h"&&(i="renderHeight"),e[i]||e[r]}function zn(r){return r.reduce((e,t)=>e.concat(Array.isArray(t)?zn(t):t),[])}function q2(r,e){return e.reduce((t,i)=>t&&t[i]!=="undefined"?t[i]:void 0,r)}function Un(r,e){return JSON.stringify(r)===JSON.stringify(e)}function $2(r,e=16){setTimeout(r,e)}function G2(r,e,t){["plain","json"].includes(t)||(t="plain");let s=`data:text/${t};charset=utf-8,`+encodeURIComponent(JSON.stringify(r)),n=document.createElement("a");n.setAttribute("href",s),n.setAttribute("download",e),n.click()}var Ed=r=>r*(Math.PI/180),Td=/({ICON.*?}|{BADGE:.*?}|{NEWLINE}|{TEXT:.*?})/g;function V2(r=""){return typeof r!="string"?!1:Td.test(r)}function Dd(r=""){let e=[];if(r&&typeof r=="string"||r.text){let t=typeof r=="string"?r:r.text,i=/^{ICON:(.*?)?\|(.*?)?}$/g,s=/^{BADGE:(.*?)}$/g,n=/^{NEWLINE}$/g,o=/^{TEXT:(.*?)?\|(.*?)?}$/g,a=t.split(Td);a&&a.length&&a.forEach(l=>{let d=l,p=s.exec(l),_=i.exec(l),g=n.exec(l),m=o.exec(l);p&&p[1]?d={badge:p[1]}:_&&_[1]?d={title:_[1],icon:_[2]||_[1]}:g?d={newline:!0}:m&&m[1]&&(d={text:m[1],style:m[2]}),e.push(d)})}return e}function Y2(r,e){!r.zIndex&&typeof e<"u"&&e!==0&&(r.forceZIndexContext=!0,r.zIndex=0)}function Fd({element:r,watchProps:e=[],sideEffect:t=()=>{}}){r?.isElement||le.error(`watchForUpdates: Expected a Lightning Element passed to element parameter, received ${typeof r}`);let i=r.__core?._onAfterUpdate;return r.onAfterUpdate=(function(s){let n=!1;e.forEach(o=>{if(s.transition(o)&&s.transition(o).isRunning())return;let a=`__watchPrev${o}`,l=s[o];l!==s[a]&&(s[a]=l,n=!0)}),n&&t(),i&&i(s)}).bind(this),r}function X2(r){switch(r){case"left":return"flex-start";case"center":return"center";case"right":return"flex-end";default:return console.warn(`Expected "textAlign" values are "left," "center," and "right," but instead, ${r} was received and will fall back to "left."`),"flex-start"}}function Je(r,e,t,i=0){let s=n=>Math.max(0,Math.min(n,Math.min(e,t)/2)+i);return Array.isArray(r)?r.map(n=>Number(s(n))||0):Number(s(r))||0}var K2={isMarkupString:V2,capitalizeFirstLetter:$i,degreesToRadians:Ed,downloadFile:G2,delayForAnimation:$2,stringifyCompare:Un,objectPropertyOf:q2,flatten:zn,getDimension:j2,getFirstNumber:W2,measureTextWidth:Nn,clone:Le,getMergeValue:wd,RoundRect:H2,rgba2argb:vd,getValFromObjPath:qi,reduceFraction:Ad,getValidColor:Or,getHexColor:jt,getAspectRatioH:z2,getAspectRatioW:N2,getWidthByUpCount:Pr,getDimensions:Vl,getWidthByColumnSpan:ji,createConditionalZContext:Y2,watchForUpdates:Fd,convertTextAlignToFlexJustify:X2,getMaxRoundRadius:Je},xe=K2;u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();var Yl=class{constructor(){this._keyMetricsCallback=void 0}get keyMetricsCallback(){return this._keyMetricsCallback}set keyMetricsCallback(e){if(-1<["undefined","function"].indexOf(typeof e)){this._keyMetricsCallback=e;return}le.warn(`context keyMetricsCallback expected a function. Received ${typeof e}`)}},Xl=new Yl;u();h();c();var Q2=new X.EventEmitter,ur=Q2;u();h();c();u();h();c();var Hn={name:"Base Lightning TV",alpha:{primary:1,secondary:.7,tertiary:.1,inactive:.5,full:1,none:0,alpha1:.1,alpha2:.3,alpha3:.5,alpha4:.7,alpha5:.9},animation:{duration:{none:0,xfast:.1,fast:.25,normal:.5,slow:.75,xslow:.9},delay:{none:0,xfast:.01,fast:.025,normal:.05,slow:.075,xslow:.09},expressive:{timingFunction:"cubic-bezier(0, 0, 1, 1)",delay:0,duration:.25},expressiveEntrance:{timingFunction:"cubic-bezier(0, 0, 1, 1)",delay:0,duration:.25},expressiveExit:{timingFunction:"cubic-bezier(0, 0, 1, 1)",delay:0,duration:.25},standard:{timingFunction:"cubic-bezier(0, 0, 1, 1)",delay:0,duration:.25},standardEntrance:{timingFunction:"cubic-bezier(0, 0, 1, 1)",delay:0,duration:.25},standardExit:{timingFunction:"cubic-bezier(0, 0, 1, 1)",delay:0,duration:.25},utility:{timingFunction:"cubic-bezier(0, 0, 1, 1)",delay:0,duration:.25},utilityEntrance:{timingFunction:"cubic-bezier(0, 0, 1, 1)",delay:0,duration:.25},utilityExit:{timingFunction:"cubic-bezier(0, 0, 1, 1)",delay:0,duration:.25}},asset:{arrowLeft:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAGKADAAQAAAABAAAAGAAAAADiNXWtAAAAi0lEQVRIDWNgGAWjIfD//38JID5Fk5AAGqwKxPeA+D/VLQCaaQLEr0CGgwBVLQCa5wbEn0EGwwDVLAAaGA3Ev2AGw2iqWAA0rBiI/8EMRaYptgBoWDeygehsci1gIlcjWfqArqZdEMFcBLSEdpGMZAntkimSJbTLaEiW0K6oQLKEdoUdzJJRemiHAAD4n+yzPWCs7QAAAABJRU5ErkJggg==",arrowRight:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAGKADAAQAAAABAAAAGAAAAADiNXWtAAAAg0lEQVRIDWNgGAWjIYArBP7//38KiCVwyVMsDjQcBO4BsSrFhmEzAGw8hHgFpEywqaFIDMkCEPMzELtRZCC6ZjQLQNxfQByNro5sPhYLQEL/gLiYbEORNeKwACbcDVPLBGMMOhrmVDSapkFE00imaTKlaUajaVFB28Ju0CXrUQfhDAEAEgHss6NhpLQAAAAASUVORK5CYII=",backspaceOutline:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAACQCAYAAADnRuK4AAAAAXNSR0IArs4c6QAACmpJREFUeF7tnVmoZUcVhv/feY4gBEVEH/KgCCZxCK2itNo4xQQH+kUN0TjEiDGKKBqnaExwBjUaR6KY+NQgiQkOMSYhYEScIopGJOqDE2hHjfP0y4p1Oqdv33v2qr32Prv2Paug6Ye7Vu2qv75TtWvtGohMqUBAAQZ80zUVQAKUEIQUSIBC8qVzApQMhBRIgELypXMClAyEFEiAQvKlcwKUDIQUSIBC8qVzApQMhBRIgELypXMClAyEFEiAQvKlcwKUDIQUSIBC8qVzApQMhBRIgELypXMClAyEFEiAQvKlcwKUDIQUSIBC8qVzApQMhBRIgELypXMClAyEFEiAQvKlcwKUDIQUSIBC8qVzApQMhBRIgELypfPsAJJ0NYC92XRHKPB3AAfLv18BuBLAFSR/NKZWswJI0vkA3jCmILsw75sAvIfkR8eo22wAknQSgMvGEGFD8vwxgFeQvGrI+s4CIEnHAPgugHsMWfkNzevDAM4i+Z8h6t88QJLuXOB5yBAVzjxuVeBaAM8ieXNUjzkAdAmA50Yrmv5HKPATACeQ/GNEm6YBkvRyANblZhpHAXsfekpkOGsWIEmPAHA9gDuOo13mWhS4gOSZfdVoEiBJ9wFwA4D7961Y+lUpsK/v7KxVgL4K4ElOCS4l+Uyn7a41k3Q0gMcC2ANgH4CHV1T2OyStx69OzQEk6TwAZztr8lMAx5P8s9N+Y8wk2cTjfQDu66z080h+zml7yKwpgCSdCOByZyX+BuBRJH/otN84M0kWN/s0gOc4Kv8Nko922B1m0gxAkh4I4AcVwcL9JA/UVnjT7CXdHYD9yEzfVUkAjib5uxqNmgCoBAu/CeBhzsJ/kORZTtuNN5Nk70bXAZ0Hy59G8qIawVoB6LMAnu8suE3tH0/y3077NAMg6esAuoaoC0la7M2dJgdI0ssAXOgs8W8BHEvS/s9UoYCkdwN4bYfL5STto7U7TQpQZbDQehzreawHylSpgKSTAVza4XYDyeNqsp4MoB7BwteQfH9N5dL2NgWK3l0vyAdJWhDXnSYBSNLtANh3GO/KwgMk97trlYbbKiDJPpzea5U8JKuYqDIeql0kvQPAG5352ZLMR5L8q9M+zXZQYFcAJOnJAL7sbGWLMFuk2SLOmYIKzB6gEiz8HoB7O7U4meQXnLZp1qGApD8BuOcsh7AewcL3kuyadg4OjSSbhRxH0j4BjJok2Ufga0j+YdQHlcznDlBNsPAa+xpP8r/rEHbxjAKPbRuyHvKFY0Ik6QUALOprPfIT1gHRbAGSdDoA77aSX5Zg4e8nhGfx6FEgWoJn8Zy1QCTplq5vjc3NwnoEC/eQ/HYD8IwC0TbwrA2i2QHUI1h4JskLGoJnUIhWwLMWiGYFkCSLMX2t5WDhlneeLm5Dw5kDntEhkmRhEVvesWNqZgiTdC6AN3W1Svn72oOFkuxF+WcVIQUrai+IKuA5BBHJ453auc1mA1AJFn7Jsf7EKj9ZsLBHw1ZDtI5neAmaBUBzCxaO2cBj5u2FZtlO0l8A3K3ZIaxHsPB8kt5vYn00c/mM0dBj5OmqzAqjOQDUfLBwJ32HbPAh84pCM5seSNJLAHzcWeFJgoVdZRui4YfIo6ucff8uyVY03LW5IawyWPgvW5u77mChV/QIABFfb/kidk0CVKbDth3Huw35dJLeniqiV2/fniDYx1f7vlWTeoUFah6wZQhrqwcqwUKbrtsaH0+6mOQpHsOpbXpCVFPstcJjBZNkmzHv0swQJultAN7iVO375TyafzjtJzcbEaK1w9McQJXBQlvvYmtsfjE5FZUFGAGiSeBpCqDKYKFtmX0qya9Utl0z5gNCNBk8BSA7CtiODNwxjf4trEew8BySNtTNOg0A0aTwtARQTbDQeh3rfawXmn0KQDQ5PC0B9EkAL3LSkAD9X6hWALIJzJ3mNoSdS9I7U3NyuX6zQO+zKOzkEEmaHqDSFdpZM97tOfkSfRvvk0LUDEAFIgseetf85DS+AYgk/bPr1NvRZ2HLg4ektwI4xzmgZCBxYohaBMjWPeenDOcvaIvZ2oez5gAqQ5mtLbb3oa4z+Bb6nTHW1UP92vFIr54vzJ8BcGplGdYKkSRbCXGHSWdh2z1ckp1taGccroxyFt9cznG4iGuDqFmASk9kZxxakNGTckHZBBA1DVCB6BMAXuwhyA4VmGL/+05l6zlsbdt7DJmXU0uXmSQ7JvD2zQ1hiwJJsotRvlVxXO87SU5+heUYDT5Gni5KVhg1D1DphWqCjOYy6RlAYzb0mHn3gWkWABWIaoKMubHwSBpGebGWZNdc2vmUO6a1BhJXFUSSff/yLuOYamvzzwEcVfFr7tWwPXqi6uN2PXWYG0C1Qca1n8RaDlewl3kPRL3gWXo/XBwo1dXWdk/a3jEOnJoVQGUoqw0yvpLkh7oUHvLvTohC8FRANBo8pT3sxLeVJ/M2M4QtiVYTZJzkNPoOiAaBxwHRqPDMFqBS8Jog4yT3YewA0aDwrIBodHhmDVApvG0mtO3PnjTJjTxbIBoFnm0gWgs8pQ06lxY3N4QtCWZBRgPDezdnHvPr+alV2EiaL0DlF2Dbn20bdB40XtHwQ5nOHqAC0SyCjEM1Wkv57AqACkRvBvB2p7hrDzI6yzU7s90EUPNBxtnR4SjwrgGo9EK1Qca8cM4ByU4mkuz++F93ZHELyZX3iW31n+S+sKWZWfNBxkCbNeUq6ekArugo1I0kH1xT8EkBKj1R80HGGkFbtZVkZ3bb2d2r0tUkn1hTh8kBKhB9DMBLnQWfJMjoLFuTZpJsO/ONAB7UUcBLSHqvX781q1YAqg0yfoDkq5psrQYLJeldAF7nKFr1x+wmACq9kAUZLazvvTV4P8kDDlE22kTSQ4uuK9dCF5HuR/I3NYI1A1CBaB+AK50VsAMj7TJeixNl2kYBSccCsB/ZMQ6Brif5GIfdYSZNAVQg8rzsLSphl/Hapby2LDZTUaBcq/56ALb1fOVxLkuinULy4loRmwOoQGQX7T7DWZnPk3y203bXmkl6AIA91isDOBGADV3e1HsJbasA1QYZvUKl3fYKPI2knXFQnZoEqPRCNUHG6oqnwyEFLiJ5Wl89mgWoQFQTZOyrwSb7WUztcSRtu0+v1DRABaKPADijV+3SaZUCNgE5geTNEZnmAFBtkDGix6b4Xld2BNvJcaHUPEClF6oNMoZE2eXOtm3q1ZFha1mfWQBUINoL4Kqurbm7vPEj1bOAqx3udW0kk62+swGoQHQ2gPOGFGAD8roJgF0t+qkx6jorgApElwE4aQwxZp6n3YNxsPyzA7yst/4iSdvEMFqaHUCjKZEZ91IgAeolWzotFEiAkoWQAglQSL50ToCSgZACCVBIvnROgJKBkAIJUEi+dE6AkoGQAglQSL50ToCSgZACCVBIvnROgJKBkAIJUEi+dE6AkoGQAglQSL50ToCSgZACCVBIvnROgJKBkAIJUEi+dE6AkoGQAglQSL50ToCSgZACCVBIvnROgJKBkAIJUEi+dE6AkoGQAglQSL50ToCSgZACCVBIvnT+H0jPT81J3xWWAAAAAElFTkSuQmCC",check:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAOCAYAAAAi2ky3AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACtSURBVHgBvdPdDcIgEAfwoy8Nb45QN3AGF2s36Ahu4gpuIDoBfSgfpdoTlCbEWEMh6T8hFzjyg5AAkBHOcQe5UWqspRx435sDpMYj6IYQwwVSEiJ2MKVUBWuzLSLl2HL+uxmNCGFO8yaL7RHxve6qRZoAuS4hxac8735elWVx7jrtMKL1o0Gcat9jhExHSukN/kUIFZ7MpDRtzE1isDRkAUtDvrA8ZI597FUf8gWH9P0b4gko9wAAAABJRU5ErkJggg=="},color:{white:["#ffffff",1],black:["#000000",1],grey:["#929096",1],red:["#e74c3c",1],orange:["#dc7633",1],yellow:["#f7dc6f",1],green:["#2Ecc71",1],blue:["#93a9fd",1],purple:["#663399",1],palette:{"grey-05":["#f8f7fa",1],"grey-40":["#929096",1],"grey-70":["#48474b",1],"grey-90":["#181819",1],"blue-20":["#becffe",1],"blue-40":["#93a9fd",1],"blue-90":["#000033",1]},material:["#181819",1],materialBrand:["#000033",1],overlay:["#181819",.7],textNeutral:["#f8f7fa",1],textNeutralSecondary:["#f8f7fa",.7],textNeutralTertiary:["#f8f7fa",.1],textNeutralDisabled:["#f8f7fa",.5],textInverse:["#181819",1],textInverseSecondary:["#181819",.7],textInverseTertiary:["#181819",.1],textInverseDisabled:["#181819",.5],textBrand:["#93a9fd",1],textBrandSecondary:["#93a9fd",.7],textBrandTertiary:["#93a9fd",.1],textBrandDisabled:["#93a9fd",.5],textPositive:["#2Ecc71",1],textNegative:["#e74c3c",1],textInfo:["#93a9fd",1],textCaution:["#dc7633",1],fillTransparent:["#ffffff",0],fillNeutral:["#f8f7fa",1],fillNeutralSecondary:["#f8f7fa",.7],fillNeutralTertiary:["#f8f7fa",.1],fillNeutralDisabled:["#f8f7fa",.5],fillInverse:["#181819",1],fillInverseSecondary:["#181819",.7],fillInverseTertiary:["#181819",.1],fillInverseDisabled:["#181819",.5],fillBrand:["#93a9fd",1],fillBrandSecondary:["#93a9fd",.7],fillBrandTertiary:["#93a9fd",.1],fillBrandDisabled:["#93a9fd",.5],fillPositive:["#2Ecc71",1],fillNegative:["#e74c3c",1],fillInfo:["#93a9fd",1],fillCaution:["#dc7633",1],strokeNeutral:["#f8f7fa",1],strokeNeutralSecondary:["#f8f7fa",.7],strokeNeutralTertiary:["#f8f7fa",.1],strokeNeutralDisabled:["#f8f7fa",.5],strokeInverse:["#181819",1],strokeInverseSecondary:["#181819",.7],strokeInverseTertiary:["#181819",.1],strokeInverseDisabled:["#181819",.5],strokeBrand:["#93a9fd",1],strokeBrandSecondary:["#93a9fd",.7],strokeBrandTertiary:["#93a9fd",.1],strokeBrandDisabled:["#93a9fd",.5],strokePositive:["#2Ecc71",1],strokeNegative:["#e74c3c",1],strokeInfo:["#93a9fd",1],strokeCaution:["#dc7633",1],interactiveNeutral:["#ffffff",.1],interactiveNeutralFocus:["#ffffff",1],interactiveNeutralFocusSoft:["#ffffff",.1],interactiveInverse:["#48474b",void 0],interactiveInverseFocus:["#48474b",1],interactiveInverseFocusSoft:["#48474b",.1],interactiveBrand:["#becffe",.1],interactiveBrandFocus:["#becffe",1],interactiveBrandFocusSoft:["#becffe",.1],shadowNeutral:["#000000",.7],shadowNeutralFocus:["#000000",.7],shadowNeutralFocusSoft:["#000000",.7],shadowNeutralText:["#000000",1],shadowInverse:["#000000",.7],shadowInverseFocus:["#000000",.7],shadowInverseFocusSoft:["#000000",.7],shadowInverseText:["#000000",1],shadowBrand:["#000000",.7],shadowBrandFocus:["#000000",.7],shadowBrandFocusSoft:["#000000",.7],shadowBrandText:["#000000",1]},componentConfig:{Keyboard:{style:{keyProps:{delete:{title:null,icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAACQCAYAAADnRuK4AAAAAXNSR0IArs4c6QAACmpJREFUeF7tnVmoZUcVhv/feY4gBEVEH/KgCCZxCK2itNo4xQQH+kUN0TjEiDGKKBqnaExwBjUaR6KY+NQgiQkOMSYhYEScIopGJOqDE2hHjfP0y4p1Oqdv33v2qr32Prv2Paug6Ye7Vu2qv75TtWvtGohMqUBAAQZ80zUVQAKUEIQUSIBC8qVzApQMhBRIgELypXMClAyEFEiAQvKlcwKUDIQUSIBC8qVzApQMhBRIgELypXMClAyEFEiAQvKlcwKUDIQUSIBC8qVzApQMhBRIgELypXMClAyEFEiAQvKlcwKUDIQUSIBC8qVzApQMhBRIgELypXMClAyEFEiAQvKlcwKUDIQUSIBC8qVzApQMhBRIgELypfPsAJJ0NYC92XRHKPB3AAfLv18BuBLAFSR/NKZWswJI0vkA3jCmILsw75sAvIfkR8eo22wAknQSgMvGEGFD8vwxgFeQvGrI+s4CIEnHAPgugHsMWfkNzevDAM4i+Z8h6t88QJLuXOB5yBAVzjxuVeBaAM8ieXNUjzkAdAmA50Yrmv5HKPATACeQ/GNEm6YBkvRyANblZhpHAXsfekpkOGsWIEmPAHA9gDuOo13mWhS4gOSZfdVoEiBJ9wFwA4D7961Y+lUpsK/v7KxVgL4K4ElOCS4l+Uyn7a41k3Q0gMcC2ANgH4CHV1T2OyStx69OzQEk6TwAZztr8lMAx5P8s9N+Y8wk2cTjfQDu66z080h+zml7yKwpgCSdCOByZyX+BuBRJH/otN84M0kWN/s0gOc4Kv8Nko922B1m0gxAkh4I4AcVwcL9JA/UVnjT7CXdHYD9yEzfVUkAjib5uxqNmgCoBAu/CeBhzsJ/kORZTtuNN5Nk70bXAZ0Hy59G8qIawVoB6LMAnu8suE3tH0/y3077NAMg6esAuoaoC0la7M2dJgdI0ssAXOgs8W8BHEvS/s9UoYCkdwN4bYfL5STto7U7TQpQZbDQehzreawHylSpgKSTAVza4XYDyeNqsp4MoB7BwteQfH9N5dL2NgWK3l0vyAdJWhDXnSYBSNLtANh3GO/KwgMk97trlYbbKiDJPpzea5U8JKuYqDIeql0kvQPAG5352ZLMR5L8q9M+zXZQYFcAJOnJAL7sbGWLMFuk2SLOmYIKzB6gEiz8HoB7O7U4meQXnLZp1qGApD8BuOcsh7AewcL3kuyadg4OjSSbhRxH0j4BjJok2Ufga0j+YdQHlcznDlBNsPAa+xpP8r/rEHbxjAKPbRuyHvKFY0Ik6QUALOprPfIT1gHRbAGSdDoA77aSX5Zg4e8nhGfx6FEgWoJn8Zy1QCTplq5vjc3NwnoEC/eQ/HYD8IwC0TbwrA2i2QHUI1h4JskLGoJnUIhWwLMWiGYFkCSLMX2t5WDhlneeLm5Dw5kDntEhkmRhEVvesWNqZgiTdC6AN3W1Svn72oOFkuxF+WcVIQUrai+IKuA5BBHJ453auc1mA1AJFn7Jsf7EKj9ZsLBHw1ZDtI5neAmaBUBzCxaO2cBj5u2FZtlO0l8A3K3ZIaxHsPB8kt5vYn00c/mM0dBj5OmqzAqjOQDUfLBwJ32HbPAh84pCM5seSNJLAHzcWeFJgoVdZRui4YfIo6ucff8uyVY03LW5IawyWPgvW5u77mChV/QIABFfb/kidk0CVKbDth3Huw35dJLeniqiV2/fniDYx1f7vlWTeoUFah6wZQhrqwcqwUKbrtsaH0+6mOQpHsOpbXpCVFPstcJjBZNkmzHv0swQJultAN7iVO375TyafzjtJzcbEaK1w9McQJXBQlvvYmtsfjE5FZUFGAGiSeBpCqDKYKFtmX0qya9Utl0z5gNCNBk8BSA7CtiODNwxjf4trEew8BySNtTNOg0A0aTwtARQTbDQeh3rfawXmn0KQDQ5PC0B9EkAL3LSkAD9X6hWALIJzJ3mNoSdS9I7U3NyuX6zQO+zKOzkEEmaHqDSFdpZM97tOfkSfRvvk0LUDEAFIgseetf85DS+AYgk/bPr1NvRZ2HLg4ektwI4xzmgZCBxYohaBMjWPeenDOcvaIvZ2oez5gAqQ5mtLbb3oa4z+Bb6nTHW1UP92vFIr54vzJ8BcGplGdYKkSRbCXGHSWdh2z1ckp1taGccroxyFt9cznG4iGuDqFmASk9kZxxakNGTckHZBBA1DVCB6BMAXuwhyA4VmGL/+05l6zlsbdt7DJmXU0uXmSQ7JvD2zQ1hiwJJsotRvlVxXO87SU5+heUYDT5Gni5KVhg1D1DphWqCjOYy6RlAYzb0mHn3gWkWABWIaoKMubHwSBpGebGWZNdc2vmUO6a1BhJXFUSSff/yLuOYamvzzwEcVfFr7tWwPXqi6uN2PXWYG0C1Qca1n8RaDlewl3kPRL3gWXo/XBwo1dXWdk/a3jEOnJoVQGUoqw0yvpLkh7oUHvLvTohC8FRANBo8pT3sxLeVJ/M2M4QtiVYTZJzkNPoOiAaBxwHRqPDMFqBS8Jog4yT3YewA0aDwrIBodHhmDVApvG0mtO3PnjTJjTxbIBoFnm0gWgs8pQ06lxY3N4QtCWZBRgPDezdnHvPr+alV2EiaL0DlF2Dbn20bdB40XtHwQ5nOHqAC0SyCjEM1Wkv57AqACkRvBvB2p7hrDzI6yzU7s90EUPNBxtnR4SjwrgGo9EK1Qca8cM4ByU4mkuz++F93ZHELyZX3iW31n+S+sKWZWfNBxkCbNeUq6ekArugo1I0kH1xT8EkBKj1R80HGGkFbtZVkZ3bb2d2r0tUkn1hTh8kBKhB9DMBLnQWfJMjoLFuTZpJsO/ONAB7UUcBLSHqvX781q1YAqg0yfoDkq5psrQYLJeldAF7nKFr1x+wmACq9kAUZLazvvTV4P8kDDlE22kTSQ4uuK9dCF5HuR/I3NYI1A1CBaB+AK50VsAMj7TJeixNl2kYBSccCsB/ZMQ6Brif5GIfdYSZNAVQg8rzsLSphl/Hapby2LDZTUaBcq/56ALb1fOVxLkuinULy4loRmwOoQGQX7T7DWZnPk3y203bXmkl6AIA91isDOBGADV3e1HsJbasA1QYZvUKl3fYKPI2knXFQnZoEqPRCNUHG6oqnwyEFLiJ5Wl89mgWoQFQTZOyrwSb7WUztcSRtu0+v1DRABaKPADijV+3SaZUCNgE5geTNEZnmAFBtkDGix6b4Xld2BNvJcaHUPEClF6oNMoZE2eXOtm3q1ZFha1mfWQBUINoL4Kqurbm7vPEj1bOAqx3udW0kk62+swGoQHQ2gPOGFGAD8roJgF0t+qkx6jorgApElwE4aQwxZp6n3YNxsPyzA7yst/4iSdvEMFqaHUCjKZEZ91IgAeolWzotFEiAkoWQAglQSL50ToCSgZACCVBIvnROgJKBkAIJUEi+dE6AkoGQAglQSL50ToCSgZACCVBIvnROgJKBkAIJUEi+dE6AkoGQAglQSL50ToCSgZACCVBIvnROgJKBkAIJUEi+dE6AkoGQAglQSL50ToCSgZACCVBIvnROgJKBkAIJUEi+dE6AkoGQAglQSL50ToCSgZACCVBIvnT+H0jPT81J3xWWAAAAAElFTkSuQmCC"}}}}},font:[],layout:{columnCount:10,focusScale:1.2,gutterX:20,gutterY:20,marginX:150,marginY:150,safe:50,screenW:1920,screenH:1080},radius:{none:0,xs:2,sm:4,md:8,lg:16,xl:24},spacer:{none:0,xxs:2,xs:4,sm:8,md:10,lg:20,xl:30,xxl:40,xxxl:50},stroke:{none:0,sm:2,md:4,lg:6,xl:8},typography:{display1:{fontFamily:"Arial",fontSize:75,lineHeight:85,fontStyle:"500",verticalAlign:"middle",textBaseline:"bottom"},display2:{fontFamily:"Arial",fontSize:50,lineHeight:60,fontStyle:"500",verticalAlign:"middle",textBaseline:"bottom"},headline1:{fontFamily:"Arial",fontSize:35,fontStyle:"500",lineHeight:48,verticalAlign:"middle",textBaseline:"bottom"},headline2:{fontFamily:"Arial",fontSize:30,fontStyle:"500",lineHeight:40,verticalAlign:"middle",textBaseline:"bottom"},headline3:{fontFamily:"Arial",fontSize:25,fontStyle:"500",lineHeight:36,verticalAlign:"middle",textBaseline:"bottom"},body1:{fontFamily:"Arial",fontSize:25,fontStyle:"300",lineHeight:40,verticalAlign:"middle",textBaseline:"bottom"},body2:{fontFamily:"Arial",fontSize:22,fontStyle:"300",lineHeight:32,verticalAlign:"middle",textBaseline:"bottom"},body3:{fontFamily:"Arial",fontSize:20,fontStyle:"300",lineHeight:32,verticalAlign:"middle",textBaseline:"bottom"},button1:{fontFamily:"Arial",fontSize:25,fontStyle:"500",lineHeight:32,verticalAlign:"middle",textBaseline:"bottom"},button2:{fontFamily:"Arial",fontSize:20,fontStyle:"500",lineHeight:32,verticalAlign:"middle",textBaseline:"bottom"},callout1:{fontFamily:"Arial",fontSize:20,fontStyle:"500",lineHeight:32,verticalAlign:"middle",textBaseline:"bottom"},caption1:{fontFamily:"Arial",fontSize:15,fontStyle:"500",lineHeight:24,verticalAlign:"middle",textBaseline:"bottom"},tag1:{fontFamily:"Arial",fontSize:20,fontStyle:"500",lineHeight:24,verticalAlign:"middle",textBaseline:"bottom"},footnote1:{fontFamily:"Arial",fontSize:22,fontStyle:"300",lineHeight:30,verticalAlign:"middle",textBaseline:"bottom"}}};u();h();c();var Wn=[];var Id=r=>{let e=[];for(let t=0;tl.substr(0,5)==="local"?l:`url(${l})`).join(","):"url("+s+")",a=new FontFace(i,o,n||{});le.info("Loading font",i),document.fonts.add(a),e.push(new Promise(l=>{a.load().then(()=>{Wn.push(a),l(i)}).catch(d=>{l(new Error(`${i}: ${d.message}`))})}))}return Promise.all(e).then(t=>{let i=t.filter(n=>!(n instanceof Error)).join(", ");i&&le.log(`Fonts loaded: ${i}`);let s=t.filter(n=>n instanceof Error).map(n=>n.message).join(", ");s&&le.error(`Unable to load fonts: ${s}`)})},Bd=async r=>{if(document.fonts&&"delete"in document.fonts){if(!Wn.length)return;Wn=Wn.filter(e=>r.find(t=>t.family===e.family)?e:(le.info("Removing font",e.family),document.fonts.delete(e),!1))}else le.info("Unable to remove manually-added fonts")};u();h();c();var Kl={fontFamily:"fontFace"};var Ql={all:r=>{let e={};for(let t=0;tr.slice(0,8)==="subTheme";function Z2(r){let e=r.match(/^data:(.*?);base64,/);return e&&e.length===2?e[1]:null}function J2(r){let e=/^data:image\/(jpeg|jpg|png|gif);base64,/,t=e.test(r),i=t?Z2(r.match(e)[0]):null;return{isImage:t,mimeType:i}}function ev(r,e){let t=atob(r.substring(r.indexOf(",")+1)),i=[];try{for(let o=0;o"u")&&(window.LUI||(window.LUI={}),window.LUI.themeManagerInstances?window.LUI.themeManagerInstances.push({themeManager:this,events:ur}):window.LUI.themeManagerInstances=[{themeManager:this,events:ur}])}_setCache(e,t){typeof window>"u"||window.LUI.themeManagerInstances.forEach(({themeManager:i})=>{i&&i._cache.set(e,t)})}_deleteCache(e){typeof window>"u"||window.LUI.themeManagerInstances.forEach(({themeManager:t})=>{t&&t._cache.delete(e)})}_emit(e,t){typeof window>"u"||window.LUI.themeManagerInstances.forEach(({events:i})=>{i.emit(e,t)})}getTheme(){if(this._cache.has("theme"))return this._cache.get("theme");let e=this._processTheme.call(this);return this._setCache("theme",e),e}async setTheme(e){let t;if(Array.isArray(e)?t=Ql.all(e):t=e,typeof t!="object"||t===null){le.warn(`context theme expected an object. Received ${typeof t}`);return}this._clearCache();let i=this._processTheme.call(this,[t],t.extensions);return this._setCache("theme",i),await Bd(i.font),i.font&&i.font.length&&await this._loadFonts(i.font),this._refreshSubThemes(),this._emit("themeExtensionsUpdate"),this._emit("themeUpdate"),i}getSubTheme(e){if(this._cache.has(`subTheme${e}`))return this._cache.get(`subTheme${e}`).result}async setSubTheme(e,t,i=!0){if(!e){le.warn("Sub theme name not specified");return}if(typeof e!="string"){le.warn(`Sub theme name must be a string. Received an ${typeof e}`);return}if(typeof t!="object"||!Object.keys(t).length){le.warn(`Could not set subTheme ${e}, value should be an object with properties. Received an ${typeof t}`);return}let s=this.getTheme(),n=this._processTheme.call(this,[s,t]);return n.font&&n.font.length&&await this._loadFonts(n.font),this._setCache(`subTheme${e}`,{original:t,result:n}),i&&this._emit(`themeUpdate${e}`),n}_refreshSubThemes(){[...this._cache.keys()].forEach(e=>{if(typeof e=="string"&&Zl(e)){let t=this._cache.get(e);t.original&&this.updateSubTheme(e.replace(/^subTheme/,""),t.original)}})}async _loadFonts(e){try{await Id(e)}catch(t){le.error(`Unable to load font: ${t}`)}}async updateTheme(e){let t;Array.isArray(e)?t=Ql.all(e):t=e;let i={};this._cache.has("theme")&&(i=this._cache.get("theme")),this._clearCache();let s=this._processTheme.call(this,[i,t],t.extensions||i.extensions);return this._setCache("theme",s),s.font&&s.font.length&&await this._loadFonts(s.font),this._refreshSubThemes(),t.extensions&&this._emit("themeExtensionsUpdate"),this._emit("themeUpdate"),s}_clearCache(){Rd.filter(e=>(window.URL&&typeof window.URL.revokeObjectURL=="function"&&URL.revokeObjectURL(e),!1)),this._cache.forEach((e,t)=>{(typeof t!="string"||!Zl(t))&&this._deleteCache(t)}),this._cache.forEach((e,t)=>{typeof t=="string"&&Zl(t)&&this.setSubTheme(t.replace("subTheme",""),e.original,!1)})}async updateSubTheme(e,t,i=!0){if(!e){le.warn("Sub theme name not specified");return}if(typeof t!="object"||!Object.keys(t).length){le.warn(`Could not update subTheme ${e} due to invalid value`);return}let s=this.getTheme(),n={};this._cache.has(`subTheme${e}`)&&(n=this._cache.get(`subTheme${e}`).original);let o=this._processTheme.call(this,[s,n,t]);return o.font&&o.font.length&&await this._loadFonts(o.font),this._setCache(`subTheme${e}`,{original:Le(n,t),result:o}),i&&this._emit(`themeUpdate${e}`),o}removeSubTheme(e){this._cache.has(`subTheme${e}`)&&this._deleteCache(`subTheme${e}`),this._emit(`themeUpdate${e}`)}_getComponentUUID(e){return`componentStyle${e}`}_processTheme(e=[],t){if(!Array.isArray(e))throw new Error(`context processTheme expected an array. Received ${typeof e}`);let i=Ql.all([Hn,...e]),s={},n=JSON.stringify(i,(o,a)=>{let l=a;if(l&&typeof l=="object"){let g=a;for(var d in l)Object.hasOwnProperty.call(l,d)&&Kl[d]&&(g[d&&Kl[d]]=l[d],delete g[d]);l=g}let{isImage:p,mimeType:_}=J2(l);if(window.URL&&typeof window.URL.createObjectURL=="function"&&p)try{let g=ev(l,_);return Rd.push(g),g}catch{return l}if(Array.isArray(l)&&l.length===2&&!l[0].targetComponent&&l[0].length&&typeof l[0]=="string"&&l[0].substr(0,1)==="#"&&typeof l[1]=="number")return jt(l[0],l[1]);if(o==="extensions"||typeof l=="function"||typeof l=="object"&&l!==null&&l.constructor.name!=="Object"&&!Array.isArray(l)){s[o]=l;return}else if(typeof l=="string"&&l.includes("theme.")){let g=qi({theme:i},l);return g||l}else{let g=Or(l);return g||l}});return{...JSON.parse(n),...s,extensions:t}}},Ft=new Jl;var eu=class{get theme(){return Ft.getTheme()}set theme(e){le.warn("Context.theme must be set using context.setTheme or context.updateTheme")}get keyMetricsCallback(){return Xl.keyMetricsCallback}set keyMetricsCallback(e){le.warn("Context.keyMetricsCallback must be set using context.setKeyMetricsCallback")}get debug(){return le.debug}set debug(e){le.debug=e}on(){return ur.on(...arguments)}off(){return ur.off(...arguments)}emit(){return ur.emit(...arguments)}log(...e){le.log(...e)}info(...e){le.info(...e)}warn(...e){le.warn(...e)}error(...e){le.error(e)}setTheme(e){return Ft.setTheme(e)}updateTheme(e){return Ft.updateTheme(e)}getSubTheme(e){return Ft.getSubTheme(e)}setSubThemes(e){if(typeof e!="object"){le.warn("subThemes must be an object");return}for(let t in e)Ft.setSubTheme(t,e[t])}setSubTheme(e,t){return Ft.setSubTheme(e,t)}updateSubTheme(e,t){return Ft.updateSubTheme(e,t)}removeSubTheme(e){Ft.removeSubTheme(e)}setLogCallback(e){le.logCallback=e}setKeyMetricsCallback(e){Xl.keyMetricsCallback=e}config(e={}){let t=Object.keys(e);for(let i=0;i{try{e._updateThemeComponent()}catch(t){te.error("Error updating component themes",t)}}),this._updateThemeSet.clear(),this._requestUpdateSet.forEach(e=>{try{e.requestUpdate()}catch(t){te.error("Error updating component",t)}}),this._requestUpdateSet.clear()}flush(){this._timeout&&(clearTimeout(this._timeout),this._runUpdatesTimeoutHandler())}addUpdateTheme(e){this._updateThemeSet.add(e),this._timeout||(this._timeout=setTimeout(this._runUpdatesTimeoutHandler,0))}deleteUpdateTheme(e){this._updateThemeSet.delete(e)}addRequestUpdate(e){this._requestUpdateSet.add(e),this._timeout||(this._timeout=setTimeout(this._runUpdatesTimeoutHandler,0))}deleteRequestUpdate(e){this._requestUpdateSet.delete(e)}hasQueuedRequestFor(e){return this._requestUpdateSet.has(e)}},It=new tu;function Pd(r){return r.charAt(0).toUpperCase()+r.slice(1)}function Od(r,e){let t=e;return typeof r=="object"&&Object.keys(r).length&&typeof e=="object"&&(t=Le(r,e)),t??r}function tv(r,e){return{get(){let t=this[`_get${Pd(r)}`];if(t&&typeof t=="function"){let i=t.call(this,this[e]);return this[e]=i||this.__componentConfigProps?.[r],Od(this.__componentConfigProps?.[r],i)}return Od(this.__componentConfigProps?.[r],this[e])},set(t){let i=this[e];if(t!==i){let s=this[`_set${Pd(r)}`];s&&typeof s=="function"&&(t=s.call(this,t));let n=e==="style"?Le(this[e],t):t;if(typeof this[e]=="object"&&this[e]!==null&&this[e].style){let o=Le(this[e].style,t.style||{});n.style=o}this[e]=n,this.queueRequestUpdate()}},configurable:!0,enumerable:!0}}function rv(r,e){let t=`The property "${r}" is deprecated and will be removed in a future release. Please use "${e}" instead.`;return{get(){return console.warn(t),this[e]},set(i){console.warn(t),this[e]=i}}}function jn(r){return class extends r{static get name(){return r.name}_construct(){let e=Object.getPrototypeOf(this);e._withUpdatesInitialized||((this.constructor.properties||[]).forEach(s=>{let n="_"+s,o=tv(s,n);o!==void 0&&Object.defineProperty(e,s,o)}),(this.constructor.aliasProperties||[]).forEach(s=>{if(s&&typeof s.prev=="string"&&typeof s.curr=="string"){let n=rv(s.prev,s.curr);n!==void 0&&Object.defineProperty(e,s.prev,n)}}),e._withUpdatesInitialized=!0),this._whenEnabled=new Promise(t=>{this._whenEnabledResolver=t}),super._construct&&super._construct()}queueRequestUpdate(){this._isAttached()&&It.addRequestUpdate(this)}_firstEnable(){this._readyForUpdates=!0,this._whenEnabledResolver(),It.deleteRequestUpdate(this),this.requestUpdate(),super._firstEnable&&super._firstEnable()}requestEarlyUpdate(){return this._readyForUpdates=!0,It.hasQueuedRequestFor(this)?(It.deleteRequestUpdate(this),this._readyForUpdates=!0,this.requestUpdate(),!0):!1}_detach(){super._detach(),It.deleteRequestUpdate(this)}requestUpdate(e=!1){if(this._readyForUpdates||e){let t=this._update();typeof t=="object"&&t!==null&&t.catch&&t.catch(i=>{te.error(`asyncronous _update() error in '${this.constructor.__componentName}'`,this,i)})}}logPropTable(){console.table(this._propTable)}get _propTable(){return this.constructor.properties.reduce((e,t)=>(e[t]=this[t],e),{})}}}u();h();c();function iv(r){return{get(){return this.tag(r)},configurable:!0,enumerable:!0}}function qn(r){return class extends r{static get name(){return r.name}_construct(){let e=Object.getPrototypeOf(this);e._withTagsInitialized||((this.constructor.tags||[]).forEach(i=>{if(typeof i=="object")var{name:s,path:n}=i;else var s=i,n=i;let o="_"+s,a=iv(n);Object.defineProperty(e,o,a)}),e._withTagsInitialized=!0),super._construct&&super._construct()}}}u();h();c();function $n(r){return class extends r{static get name(){return r.name}_handleKey(e){return this._processEvent(e)}_handleKeyRelease(e){return this._processEvent(e,"Release")}_processEvent(e,t=""){let s=(this.stage.application.__keymap||{})[e.keyCode];return s||(s=e.key),s&&typeof this[`on${s}${t}`]=="function"?(this._invokeKeyPayloadCallback(s+t),this[`on${s}${t}`].call(this,this,e)):!1}_invokeKeyPayloadCallback(e){this.metricsPayload&&typeof te.keyMetricsCallback=="function"&&te.keyMetricsCallback(e,this.metricsPayload)}}}u();h();c();function Gn(r){return class extends r{_construct(){super._construct&&super._construct(),this._previousDimensionData=null}get itemLayout(){return this._itemLayout}set itemLayout(e){let t=this.constructor._componentName||this.constructor.name,i;e&&(i=JSON.parse(JSON.stringify(e,(s,n)=>{if(s!=="circle"&&n<0){te.error(`itemLayout for ${t} received an invalid value of ${n} for ${s}`);return}else if(s==="circle")return!!n;return n}))),Un(this._itemLayout,i)||(i&&!i.upCount?(this._originalW=this.w,this._originalH=this.h,this._itemLayout={w:this._originalW,h:this._originalH,...i}):this._itemLayout=i,this._updateItemLayout())}_allowUpdate(){let{w:e="",h:t="",circle:i="",ratioX:s="",ratioY:n="",upCount:o=""}=this._itemLayout||{},a=Object.values(te.theme.layout).join("")+`${e}${t}${i?1:0}${s}${n}${o}`;return a!==this._previousDimensionData?(this._previousDimensionData=a,!0):!1}_updateItemLayout(){if(!this._allowUpdate())return;let{w:e,h:t}=Vl(this.theme,this._itemLayout);if(t||e){let i=te.theme.layout.screenW,s=te.theme.layout.screenH,n=e||t*(i/s),o=t||e*(s/i);this.w=this._itemLayout&&this._itemLayout.circle?o:n,this.h=o,this._itemLayout&&this._itemLayout.circle&&this.style.radius?(this._circleSet=!0,this._originalRadius=this.style.radius,this.style={...this.style,radius:o/2}):this._circleSet&&(this.style={...this.style,radius:this._originalRadius},this._originalRadius=void 0,this._circleSet=!1),this.queueRequestUpdate&&this.queueRequestUpdate(),this.fireAncestors("$itemChanged")}}}}u();h();c();u();h();c();u();h();c();var sv=(r,e)=>r.charCodeAt(0)*(e+1),Nd=r=>{let e={};return Object.keys(r).sort().forEach(t=>{typeof r[t]=="object"&&r[t]!==null&&!Array.isArray(r[t])?e[t]=Nd(r[t]):e[t]=r[t]}),e},nv=r=>{let e=Nd(r),t=JSON.stringify(e).replace(/[{}:",\s]/g,""),i=0;for(let s=0;sJSON.stringify(r).length+"-"+nv(r);function Vn(r,e){if(typeof r=="function"){let t=r(e);return Vn(t,e)}else{if(Array.isArray(r))return r.map(t=>Vn(t,e));if(typeof r=="object"&&r!==null){let t={};for(let i in r)r.hasOwnProperty(i)&&(t[i]=Vn(r[i],e));return t}else return r}}function ru(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)&&!(r instanceof Date)&&!(r instanceof RegExp)&&!(r instanceof Function)&&!(r instanceof Error)}var Ud=r=>{for(;r&&(!r.subTheme||typeof r.subTheme!="string");)r=r.p;return r?r.subTheme:void 0},iu=r=>ru(r)?r?.theme?.componentConfig?.[r.constructor.__componentName]||{}:{};function Hd(r){for(let e in r)r.hasOwnProperty(e)&&ru(r[e])&&(Hd(r[e]),Object.keys(r[e]).length===0&&delete r[e]);return r}function ov(r={}){let e=new Map;function t(s){return JSON.stringify(s,Object.keys(s).sort())}function i(s){for(let n in s)if(s.hasOwnProperty(n)){let o=s[n];if(typeof o=="object"&&o!==null){let a=t(o);e.has(a)?s[n]=e.get(a):(e.set(a,o),i(o))}}}return i(r),r}function Ld(r=[]){if(!Array.isArray(r))throw new TypeError("Expected defaultProps to be an array of strings.");return[...new Set(r)]}function av(r,e,t,i,s,n){let o=Le(e,r);return o=Le(o,s?.[t]),o=Le(o,n?.[i]),o=Le(o,s?.[t]?.mode?.[i]||{}),o=Le(o,n?.[i]?.tone?.[t]||{}),o}function kd(r,e){let t=[];function i(n){if(typeof n=="object"&&n!==null)for(let o in n)n.hasOwnProperty(o)&&t.push(o)}function s(n){if(typeof n=="object"&&n!==null){for(let o in n)if(n.hasOwnProperty(o)){if(o===e){i(n[o]);break}s(n[o])}}}return s(r),t}var lv=({base:r={},tone:e={},mode:t={},defaultStyle:i={}},s=[],n=[])=>{let o={},a=Ld(["focused","disabled",...s,"unfocused"]),l=Ld(["neutral","inverse","brand",...n]);for(let d of a)for(let p of l){let _=av(r,i,p,d,e,t);o[`${d}_${p}`]=_}return o},Md=["unfocused_neutral","unfocused_inverse","unfocused_brand","focused_neutral","focused_inverse","focused_brand","disabled_neutral","disabled_inverse","disabled_brand"];function uv(r){let e={};for(let t of[...Md,...Object.keys(r)])if(r.hasOwnProperty(t))typeof r[t]!="object"?e[t]={}:e[t]=r[t];else{let i=Md.find(s=>r.hasOwnProperty(s));if(i){let s=r[i];e[t]=typeof s!="object"?{}:s}else e[t]={}}return e}var Wd=({theme:r={},styleChain:e=[],inlineStyle:t={},alias:i=[]}={})=>{if(typeof r!="object")throw new Error("Expected theme to be an object");if(!Array.isArray(e))throw new Error("Expected styleChain to be an array");if(typeof t!="object")throw new Error("Expected inlineStyle to be an object");if(!Array.isArray(i))throw new Error("Expected alias to be an array");let s=e.map(({style:A})=>{if(typeof A=="object"&&!A.base&&!A.mode&&!A.tone&&!A.default)return{base:A};{let{base:C={},mode:v={},tone:w={}}=A,D;if(A){let B=JSON.parse(JSON.stringify(A));delete B.base,delete B.tone,delete B.mode,D=B}return{defaultStyle:D||{},base:C,mode:v,tone:w}}}),n;if(t){let A=JSON.parse(JSON.stringify(t));delete A.base,delete A.tone,delete A.mode,n=A}let o={defaultStyle:n||{},base:t?.base||{},mode:t?.mode||{},tone:t?.tone||{}},l=[...s,o].map(A=>Vn(A,r)),d=kd(l,"mode"),p=kd(l,"tone"),_=l.reduce((A,C)=>Le(A,lv(C,d,p)),{}),g=dv(Hd(hv({theme:r},_))||{},i),m=ov(g);return uv(m)},hv=(r,e)=>{if(typeof r!="object"||r===null)throw new TypeError("targetObject must be an object.");if(typeof e!="object"||e===null)throw new TypeError("styleObj must be an object.");let t=JSON.stringify(e,(i,s)=>-1<["tone","mode"].indexOf(i)?s:typeof s=="string"&&s.startsWith("theme.")?qi(r,s):Array.isArray(s)&&s.length===2&&typeof s[0]=="string"&&s[0].substr(0,1)==="#"&&typeof s[1]=="number"&&jt(s[0],s[1])||s);return JSON.parse(t||{})},jd=(r,e={})=>{if(!ru(r))return{};let{mode:t="unfocused",tone:i="neutral"}=r;return e[`${t}_${i}`]||e.unfocused_neutral||{}};function qd(r,e=""){if(!r)return e;let t=Object.getPrototypeOf(r);if(!t||!t.constructor)return e;let i=`${e?e+".":""}${t?.constructor?.__componentName||""}`.replace(/\.*$/,"").trim();return qd(t,i)}var Lr={},$d=()=>{for(let r in Lr)Lr.hasOwnProperty(r)&&delete Lr[r]},Gd=r=>{let e=qd(r);if(Lr[e])return Lr[e];let t=cv(r);return Lr[e]=t,t},cv=r=>{let e=new Map,t;do{if(t=t?Object.getPrototypeOf(t):r,t?.constructor===Object)break;if(t&&typeof t=="object"&&t.hasOwnProperty("constructor")){let{style:s}=iu(t);Object.keys(s||{}).length&&(e.has(s)||e.set(s,{style:s}));let n=t.constructor.hasOwnProperty("__themeStyle")&&t.constructor.__themeStyle;Object.keys(n||{}).length?e.has(n)||e.set(n,{style:{...n}}):typeof n=="function"&&(e.has(n)||e.set(n,{style:n}));let o=t.constructor.hasOwnProperty("__mixinStyle")&&t.constructor.__mixinStyle;Object.keys(o||{}).length&&(e.has(o)||e.set(o,{style:o}))}}while(t);return Array.from(e.values()).map(s=>s).reverse()},dv=(r,e=[])=>{if(typeof r!="object"||r===null)throw new Error("The originalObj parameter must be an object.");let t=new Set;return t.add([pv,[e]]),Array.from(t).reduce((s,[n,o])=>n(s,...o),r)},pv=(r,e=[])=>{if(typeof r!="object"||r===null)throw new Error("Value must be an object");if(!Array.isArray(e))throw new Error("Alias styles must be an array");let t=JSON.stringify(r);return[{prev:"height",curr:"h",skipWarn:!0},{prev:"width",curr:"w",skipWarn:!0},...e||[]].forEach(s=>{s&&typeof s.prev=="string"&&typeof s.curr=="string"&&(!s.skipWarn&&t.search(`"${s.prev}":`)>=0&&le.warn(`The style property "${s.prev}" is deprecated and will be removed in a future release. Please use "${s.curr}" instead.`),t=t.replace(new RegExp(`"${s.prev}":`,"gi"),`"${s.curr}":`))}),JSON.parse(t)};u();h();c();var Vd=new Map;te.on("themeUpdate",()=>{Vd.clear()});var Bt=Vd;var Gi=class extends X.EventEmitter{constructor({component:e={}}={}){super(...arguments),this.init(e)}init(e){this.isActive=!0,this.component=e,this.setupListeners(),this._style={},this.update()}setupListeners(){this._boundThemeUpdate=this._onThemeUpdate.bind(this),this._hasSubTheme=!!this.component._targetSubTheme,this.component._targetSubTheme?te.on(`themeUpdate${this.component._targetSubTheme}`,this._boundThemeUpdate):te.on("themeUpdate",this._boundThemeUpdate)}clearListeners(){this._boundThemeUpdate&&(this.component._targetSubTheme?te.off(`themeUpdate${this.component._targetSubTheme}`,this._boundThemeUpdate):te.off("themeUpdate",this._boundThemeUpdate))}destroy(){this.isActive=!1,this._cleanupCache(),this.clearListeners(),this._styleCache=null,this._boundThemeUpdate=null,this.component=null}_onThemeUpdate(){$d(),this.clearSourceCache(),this.clearStyleCache(),this.update()}clearSourceCache(){if(!this.component)return;let e=this._generateCacheKey("styleSource");this._removeCache(e)}clearStyleCache(){if(!this.component)return;let{tone:e,mode:t}=this.component,i=this._generateCacheKey(`style_${t}_${e}`);Bt.delete(i)}_generateCacheKey(e){return[e,this.component.constructor.__componentName,this._customStyleHash].filter(Boolean).join("_")}_addCache(e,t){let i=this._generateCacheKey(e),s=Bt.get(i);Bt.set(i,{ids:[...new Set([...s?.ids||[],this.component.__id])],payload:t})}_cleanupCache(){this.component&&Bt.forEach(({ids:e,payload:t},i)=>{let s=e&&e.length&&e.indexOf(this.component.__id);s>-1&&e.length>1?Bt.set(i,{ids:e.slice(0,s).concat(e.slice(s+1)),payload:t}):s>-1&&Bt.delete(i)})}_removeCache(e){Bt.delete(e)}_getCache(e){let t=this._generateCacheKey(e);return Bt.get(t)}update(){if(!this.component)return;let{mode:e,tone:t}=this.component;try{let i=this._getCache("styleSource")?.payload;i||(i=Wd({alias:this.component.constructor.aliasStyles,componentConfig:this.component._componentConfig,inlineStyle:this.component._componentLevelStyle,styleChain:Gd(this.component),theme:this.component.theme}),this._addCache("styleSource",i));let s=this._getCache(`style_${e}_${t}`)?.payload;s||(s=jd(this.component,i),this._addCache(`style_${e}_${t}`,s)),this._style=s,this.emit("styleUpdate",this.style)}catch(i){te.error("styleManager: ",i.message)}}set style(e){te.warn("styleManager: Cannot mutate style directly")}get style(){return this._style}set props(e){te.warn("styleManager: Cannot mutate props directly")}get props(){return Object.keys(this.component._componentConfig).reduce((e,t)=>(["base","tone","mode","style","styleConfig"].includes(t)||(e[t]=this.component._componentConfig[t]),e),{})}get _customStyleHash(){if(!!Object.keys(this.component.constructor.__mixinStyle||{}).length||!!Object.keys(this.component._componentLevelStyle||{}).length)return zd(Le(this.component.constructor.__mixinStyle||{},this.component._componentLevelStyle||{}))}};function Yn(r,e){if(r!==null&&typeof r=="object"){if(Array.isArray(r))return r.map((t,i)=>Yn(t,Array.isArray(e)?e[i]:void 0));{let t={};return new Set([...Object.keys(r),...Object.keys(e)]).forEach(s=>{typeof r[s]=="object"&&r[s]!==null?t[s]=Yn(r[s],e[s]||{}):typeof e[s]=="object"&&e[s]!==null?t[s]=Yn(r[s]||{},e[s]):t[s]=e.hasOwnProperty(s)?e[s]:void 0}),t}}else return r}function Xn(r,e={}){return class extends r{_construct(){if(this._withThemeStylesSetupComplete){super._construct();return}this._hSetByUser=!1,this._wSetByUser=!1,this._styleManager=new Gi({component:this}),this._style=this._styleManager.style,this._updatePropDefaults(),this._styleManager.on("styleUpdate",()=>{this._style=this._styleManager.style,this._updatePropDefaults(),this.queueThemeUpdate()}),this._withThemeStylesSetupComplete=!0,super._construct()}_setup(){super._setup&&super._setup(),this._targetSubTheme=Ud(this),this._targetSubTheme&&(this._styleManager.clearListeners(),this._styleManager.setupListeners(),this._styleManager.clearStyleCache(),this._styleManager.clearSourceCache(),this._styleManager.update())}_updatePropDefaults(){if(!Object.keys(this._styleManager.props).length||JSON.stringify(this._styleManager.props)===JSON.stringify(this._prevComponentConfigProps))return;let t=this._prevComponentConfigProps?Yn(this._prevComponentConfigProps||{},this._styleManager.props||{}):this._styleManager.props||{};this._prevComponentConfigProps=this._styleManager.props&&JSON.parse(JSON.stringify(this._styleManager.props)),this.__componentConfigProps=t}_attach(){super._attach(),this._styleManager.isActive||this._styleManager.init(this)}_detach(){super._detach(),this._styleManager.destroy()}_unfocus(){this._isFocusedMode&&(this.mode="unfocused"),super._unfocus()}_focus(){this._isDisabledMode||(this.mode="focused"),super._focus()}_checkDimensionUpdates(){let t=!1;!this._wSetByUser&&this.style.w&&this._w!==this.style.w&&(this._w=this.style.w,t=!0),!this._hSetByUser&&this.style.h&&this._h!==this.style.h&&(this._h=this.style.h,t=!0),t&&this._updateDimensions()}_updateThemeComponent(){this.style&&this._isAttached()&&(this._checkDimensionUpdates(),this.queueRequestUpdate?this.queueRequestUpdate():this._update&&this._update(),this._updateItemLayout&&this._updateItemLayout())}queueThemeUpdate(){It.addUpdateTheme(this)}static get name(){return r.name}static get __componentName(){if(!super.__componentName)throw new Error(`A valid static __componentName property is required for theming to work properly. Please add this to the ${this.constructor.name} class.`);return super.__componentName}static get __mixinStyle(){return e}get theme(){return this._targetSubTheme&&te.getSubTheme(this._targetSubTheme)||te.theme}set style(t){if(Object.prototype.toString.call(t)!=="[object Object]"){te.error("style must be an object");return}this._componentLevelStyle=t,this._styleManager.clearStyleCache(),this._styleManager.update()}get style(){return this._style}get _componentStyle(){return te.info("_componentStyle will soon be deprecated. Please use Component.style"),this._style}set styleConfig(t){te.info("style config is deprecated. Please use style = { base: {}, tone: {}, mode: {} }"),this._styleConfig=t,this._styleManager.update()}get styleConfig(){return this._styleConfig}get _componentConfig(){return iu(this)}get mode(){return this._mode||this._componentConfig?.mode||"unfocused"}set mode(t){if(typeof t!="string"||this._mode===t)return;this._mode=t;let i=this[`on${$i(t)}`];i&&typeof i=="function"&&i.call(this),this._styleManager.update()}get tone(){return this._tone||this._componentConfig.tone||"neutral"}set tone(t){typeof t!="string"||this._tone===t||(this._tone=t,this._styleManager.update())}get w(){return this._wSetByUser&&this._w||this.style?.w||0}set w(t){this._w!==t&&(super.w=t,this._wSetByUser=!0,this._updateThemeComponent())}get h(){return this._hSetByUser&&this._h||this.style?.h||this._h||0}set h(t){this._h!==t&&(super.h=t,this._hSetByUser=!0,this._updateThemeComponent())}}}u();h();c();var kr="__original";function Kn(r){return r.prototype.constructor._withExtensionsApplied?r:class extends r{static get name(){return r.name}static get __componentName(){if(!super.__componentName)throw new Error(`A valid static __componentName property is required for theming to work properly. Please add this to the ${this.constructor.name} class.`);return super.__componentName}static get _withExtensionsApplied(){return!0}get _prototypeChain(){if(this.__prototypeChain)return this.__prototypeChain;let e=new Set,t=this;do if(t=Object.getPrototypeOf(t),t!==null&&typeof t=="object")try{t.constructor.__componentName&&e.add(t.constructor.__componentName)}catch{}while(t);return this.__prototypeChain=e,e}get _extensions(){let e=te&&te.theme&&te.theme.extensions;return!e||!Array.isArray(e)||Array.isArray(e)&&!e.length?[]:e.filter(({targetComponent:t,extension:i})=>(typeof t=="string"||Array.isArray(t))&&typeof i=="function").slice().reverse()||[]}get _componentExtensions(){return this._extensions.filter(({targetComponent:e})=>typeof e=="string"?e===this.constructor.__componentName||this._prototypeChain.has(e):Array.isArray(e)?e.find(t=>{if(t.startsWith("/")&&t.endsWith("/")){let i=new RegExp(t.slice(1,-1));return Array.from(this._prototypeChain).some(s=>i.test(s))}else return this._prototypeChain.has(t)}):!1).reduce((e,{extension:t})=>(e.push(t),e),[])}get _extensionApplied(){return this._currentComponentExtensionLength===this._appliedExtensionLength}_construct(){this._appliedExtensionLength=0,this._extendedList={},this._extensionInstance={},this._setupExtensionBound=this._setupExtension.bind(this),te.on("themeUpdate",this._setupExtensionBound),this._currentComponentExtensionLength=this._calculateComponentExtensionLength(),this._createExtension(),super._construct()}_detach(){super._detach(),te.off("themeUpdate",this._setupExtensionBound)}_setupExtension(){this._currentComponentExtensionLength=this._calculateComponentExtensionLength(),this._createExtension.call(this)}_resetComponent(){this._extensionInstance._extensionCleanup&&this._extensionInstance._extensionCleanup.call(this),(Object.keys(this._extendedList)||[]).forEach(e=>{delete this[e],delete this[e+kr]}),this._extensionInstance={},this._extendedList={}}_calculateComponentExtensionLength(){return this._componentExtensions.reduce((t,i)=>(t+=i.toString().length,t),0)}_createExtension(){if(this._extensionApplied)return;this._resetComponent();let e=this._createExtensionClass(),t=new e;this._extendedList=this._createExtensionAliases(t),this._extensionInstance=t,this._setComponentAliases(this._extendedList)}_createExtensionClass(){function e(){}let t=this._componentExtensions.reduce((i,s)=>s(i),e);return this._appliedExtensionLength=this._calculateComponentExtensionLength(),t}_createExtensionAliases(e){let t=e;for(let n=0;n{let a=new o(class{}),l=new a,d=Object.getOwnPropertyDescriptors(Object.getPrototypeOf(l));return Object.keys(d).forEach(p=>{if(!["constructor"].includes(p)){if(d[p].get||d[p].set){i[p]={type:"accessor"},n[p]={get:function(){return this[p+kr]},set:function(_){this[p+kr]=_}};return}i[p]={type:"method"},n[p]={value:function(){this[p+kr]&&this[p+kr]()}}}}),n},{});return Object.defineProperties(t,s),Object.setPrototypeOf(t,this),i}_setComponentAliases(e){Object.keys(e).forEach(t=>{this[t+kr]=this[t],e[t].type==="method"?this[t]=this._extensionInstance[t]:e[t].type==="accessor"&&Object.defineProperty(this,t,{configurable:!0,get(){return this._extensionInstance[t]},set(i){this._extensionInstance[t]=i}})})}}}var su=class extends X.Component{static get __componentName(){return"Base"}_construct(){this.constructor.__componentName,this.skipPlinko=!1,this.centerInParent=!1,this.loaded||(this.loaded=Promise.resolve())}_init(){this.queueRequestUpdate()}_resetLoadedPromise(){this.loaded=new Promise((e,t)=>{this._resolveLoadedPromise=e,this._rejectLoadedPromise=t})}_update(){}_focus(){this._updateShouldSmooth(),this.queueRequestUpdate()}_unfocus(){this.queueRequestUpdate()}_updateShouldSmooth(){this.shouldSmooth===void 0&&(this.shouldSmooth=!0)}applySmooth(e,t,i){this.shouldSmooth?e.smooth=i||t:e.patch(t)}get announce(){return this._announce}set announce(e){this._announce=e}get announceContext(){return this._announceContext}set announceContext(e){this._announceContext=e}get shouldSmooth(){return this._shouldSmooth}set shouldSmooth(e){this._shouldSmooth=e}get _isDisabledMode(){return this.mode==="disabled"}get _isUnfocusedMode(){return this.mode==="unfocused"}get _isFocusedMode(){return this.mode==="focused"}isFullyOnScreen(e){return Gl(this,e)}getFocusScale(){return te.theme.layout.focusScale}getUnfocusScale(){return 1}};function fv(r){return Kn(Gn(Xn(jn(qn($n(r))))))}var ce=fv(su);u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();function mv(r){return r.startsWith("{n.width=i,n.height=s,o.drawImage(a,0,0,n.width,n.height),r(null,{source:n,w:i,h:s})},a.onerror=l=>{r(l)},X.Utils.isPS4||(a.crossOrigin="Anonymous"),a.src=t}function xv({src:r},e){let t=new Image;return r.substr(0,5)!="data:"&&!X.Utils.isPS4&&(t.crossOrigin="Anonymous"),t.onerror=function(){if(t.src)return e("Image load error")},t.onload=function(){e(null,{source:t,renderInfo:{src:r,compressed:!1},hasAlpha:!0})},t.src=r,function(){t.onerror=null,t.onload=null,t.removeAttribute("src")}}var Mr=class extends X.Texture{constructor(e){super(e),this._src=void 0,this._hasAlpha=!1}get src(){return this._src}set src(e){this._src!==e&&(this._src=e,this._changed())}get hasAlpha(){return this._hasAlpha}set hasAlpha(e){this._hasAlpha!==e&&(this._hasAlpha=e,this._changed())}get w(){return this._w}set w(e){this._w=e,this._changed()}get h(){return this._h}set h(e){this._h=e,this._changed()}_getIsValid(){return!!this._src}_getLookupId(){return this._src}_getSourceLoader(){let e=this._w,t=this._h,i=this._src,s=this._hasAlpha;if(this.stage.getOption("srcBasePath")){let n=i.charCodeAt(0);i.indexOf("//")===-1&&(n>=65&&n<=90||n>=97&&n<=122||n==46)&&(i=this.stage.getOption("srcBasePath")+i)}return n=>{switch(mv(i)){case"SVG":return yv(n,this.stage,`data:image/svg+xml,${encodeURIComponent(i)}`,e,t);case"Blob":return xv({src:i},n);default:return this.stage.platform.loadSrcTexture({src:i,hasAlpha:s},n)}}}getNonDefaults(){let e=super.getNonDefaults();return this._src&&(e.src=this._src),e}};u();h();c();u();h();c();u();h();c();var nu={};Nt(nu,{tone:()=>bv});u();h();c();var bv=r=>({neutral:{color:r.color.fillNeutral},inverse:{color:r.color.fillInverse},brand:{color:r.color.fillBrand}});var Ie=class extends ce{static get __componentName(){return"Icon"}static get __themeStyle(){return nu}static get properties(){return["icon","fixed","color"]}_init(){this.on("txLoaded",()=>{this.fixed||this._notify.bind(this)()}),this.on("txError",this._handleTxtError.bind(this))}_getColor(){return this._color||this.style.color}_notify(){this.w=this.finalW,this.h=this.finalH,this.signal("itemChanged",this),this.fireAncestors("$itemChanged")}_handleTxtError(){te.error(`Unable to load icon ${this._icon}`),this._icon=null,this.texture=null}_update(){if(!this._icon){this.texture=null;return}this.patch(this._iconPatch)}get _iconPatch(){let[e,t]=[/^$/,/\.svg$/].map(l=>RegExp.prototype.test.bind(l)),i,s=e(this.icon),n=t(this.icon);s?i=X.Tools.getSvgTexture(`data:image/svg+xml,${encodeURIComponent(this.icon)}`,this.w,this.h):n?i=X.Tools.getSvgTexture(this.icon,this.w,this.h):i={type:Mr,w:this.w,h:this.h,src:this.icon};let o=Or(this._color||this.style.color),a=this.radius||this.style.radius?{radius:this.radius||this.style.radius,type:X.shaders.RoundedRectangle}:void 0;return{texture:i,shader:a,...o?{colorUl:o,colorUr:o,colorBl:o,colorBr:o}:{}}}};var ou={};Nt(ou,{base:()=>Sv,tone:()=>Cv});u();h();c();var Sv=r=>({contentSpacing:r.spacer.xs,offsetY:1,paddingX:r.spacer.md,paddingY:r.spacer.xs,radius:r.radius.sm,strokeWidth:r.stroke.sm,textStyle:{...r.typography.tag1,textAlign:"center"}}),Cv=r=>({neutral:{backgroundColor:r.color.fillInverseSecondary,iconColor:r.color.textNeutral,textStyle:{textColor:r.color.textNeutral},strokeColor:r.color.strokeNeutralSecondary},inverse:{backgroundColor:r.color.fillNeutralSecondary,iconColor:r.color.textInverse,textStyle:{textColor:r.color.textInverse},strokeColor:r.color.strokeInverseSecondary},brand:{backgroundColor:r.color.fillBrand,iconColor:r.color.textNeutral,textStyle:{textColor:r.color.textNeutral},strokeColor:r.color.strokeInverseSecondary}});var qt=class extends ce{static _template(){return{Text:{mountY:.5},Icon:{type:Ie,mountY:.5,signals:{itemChanged:"_updateLayout"}}}}static get __componentName(){return"Badge"}static get __themeStyle(){return ou}static get properties(){return["title","icon","iconAlign","iconWidth","iconHeight"]}static get tags(){return["Background","Text","Icon"]}_init(){this._Text.on("txLoaded",this._updateLayout.bind(this)),super._init()}_update(){this._updateText(),this._updateIcon(),this._updateLayout(),this._updateVisibility()}_updateVisibility(){this.alpha=this.title||this.icon?1:0}_updateLayout(){this._updateWidth(),this._updateBackground(),this._updatePositions(),this.signal("loadedBadge",this)}_updateBackground(){let e=Math.max(this._Text.renderHeight,this._Icon.h)+this.style.paddingY*2;this.patch({h:e,texture:X.Tools.getRoundRect(this.w,e,Je(this.style.radius,this.w,e),this.style.strokeWidth,this.style.strokeColor,!0,this.style.backgroundColor)})}_updateText(){this._Text&&this._Text.patch({text:{...this.style.textStyle,text:this.title||""}})}_updateIcon(){this._Icon.patch({icon:this.icon,w:this.iconWidth,h:this.iconHeight,style:{color:jt(this.style.iconColor)}})}_updateWidth(){let e=0;this.title&&this.icon?e=this._Text.renderWidth+this._Icon.finalW+this.style.contentSpacing+this.style.paddingX*2:this.title?e=this._Text.renderWidth+this.style.paddingX*2:this.icon&&(e=this._Icon.finalW+this.style.paddingX*2),this.w=e}_updatePositions(){this._Icon.y=this.h/2,this.iconAlign==="left"&&this.title&&this.icon?(this._Icon.x=this.style.paddingX,this._Text.x=this._Icon.x+this._Icon.finalW+this.style.contentSpacing):this.iconAlign==="right"&&this.title&&this.icon?(this._Text.x=this.style.paddingX,this._Icon.x=this._Text.x+this._Text.renderWidth+this.style.contentSpacing):(this._Text.x=this.style.paddingX,this._Icon.x=this.style.paddingX),this._Text.y=this._h/2+this.style.offsetY}_getIconHeight(){return this.icon?!this._Icon.finalH&&this._Text?this._Text.text.lineHeight:this._Icon.finalH:0}set announce(e){super.announce=e}get announce(){return this._announce||this.title}};u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();var lu={};Nt(lu,{base:()=>Tv,tone:()=>Dv});u();h();c();var Tv=r=>({offsetY:r.spacer.xxs,offsetX:0,textStyle:r.typography.body1}),Dv=r=>({neutral:{textStyle:{textColor:r.color.fillNeutral}},inverse:{textStyle:{textColor:r.color.fillInverse}},brand:{textStyle:{textColor:r.color.fillBrand}}});u();h();c();u();h();c();u();h();c();var uu={};Nt(uu,{base:()=>Fv});u();h();c();var Fv=r=>({textY:0,iconWidth:r.spacer.xxl+r.spacer.xs,iconHeight:r.spacer.xxl+r.spacer.xs,contentSpacing:r.spacer.md,marginBottom:0,strikethroughRatio:.08,strikethroughColor:r.color.textNeutral,textStyle:{...r.typography.body1},maxLines:1,justify:"flex-start"});var Yi=r=>typeof r=="string"||!!r.text,Zd=r=>!!r.icon,Iv=r=>!!r.badge,Rt=class extends ce{static get properties(){return["content","contentProperties","badgeY","badgeProperties","justify","contentWrap","customStyleMappings","maxLines","maxLinesSuffix"]}static get __componentName(){return"InlineContent"}static get __themeStyle(){return uu}static get aliasStyles(){return[{prev:"iconH",curr:"iconHeight"},{prev:"iconW",curr:"iconWidth"}]}_construct(){super._construct(),this._maxLinesSuffix=".."}_update(){this._updateContent(),this._waitForComponentLoad()}_updateContent(){this.childList.clear(),this._shouldTruncate&&(this.alpha=.001),this._parsedContent&&this._parsedContent.length&&(this.patch({flex:{direction:"row",wrap:!!this.contentWrap,justifyContent:this.justify!=null?this.justify:this.style.justify}}),this._parsedContent.forEach((e,t)=>{let i=t===this._parsedContent.length-1,s={flexItem:{...this.contentProperties,marginBottom:i?0:this._marginBottom,marginRight:i?0:this.contentProperties.marginRight||this.style.contentSpacing}};if(Yi(e)){let n=this._parsedContent[t+1];(n&&Yi(n)||this.contentWrap&&n&&n.newline&&this._parsedContent[t+2]&&Yi(this._parsedContent[t+2]))&&(s.flexItem.marginRight=0),this.childList.a(this._createText(s,e))}else Zd(e)?this.childList.a(this._createIcon(s,e)):Iv(e)?this.childList.a(this._createBadge(s,e.badge)):e.newline&&this.contentWrap&&this.childList.a({h:0,w:this.w})}))}_waitForComponentLoad(){this.children.length?Promise.all(this.children.map(e=>new Promise(t=>{e.h===0&&e.w===this.w?t():e.on("txLoaded",t)}))).finally(()=>this._contentLoaded()):(this.h=0,this._contentLoaded())}_notifyAncestors(){this.fireAncestors("$loadedInlineContent",this),this.signal("loadedInlineContent",this.finalW,this.multiLineHeight)}_contentLoaded(){this.children.length?setTimeout(()=>{if(this.multiLineHeight=this.finalH,this.flex&&this.flex._layout&&this.flex._layout._lineLayouter&&this.flex._layout._lineLayouter._lines){let e=0;this.flex._layout._lineLayouter._lines.forEach(t=>{e+=Object.entries(t.items).sort((i,s)=>s[1].h-i[1].h)[0][1].h}),this.multiLineHeight=e,this._shouldTruncate&&this._renderMaxLines(),this._notifyAncestors()}else this._contentLoaded()},10):this._notifyAncestors()}_renderMaxLines(){let e=this._calcChildrenDimensions();this.childList.clear();let t=!1;e.forEach((i,s)=>{if(t)return;let n=e[s+1];if(!n){this.childList.add(i.component);return}let o=i.line===this.maxLines,l=o&&n.line>this.maxLines&&i.hasSpaceForSuffix,d=o&&i.hasSpaceForSuffix&&!n.hasSpaceForSuffix,p=!n||l||d;i.line<=this.maxLines&&(p&&s!==e.length-1?(this.childList.add(this._addSuffix(i)),t=!0):this.childList.add(i.component))}),this.alpha=1}_calcChildrenDimensions(){let e=Nn({...this.style.textStyle,text:this.maxLinesSuffix}),t=0,i=1;return this.children.reduce((s,n)=>{let o=n,a,l,d;if(n.w==this.w&&n.h===0){i++,t=0;let m={type:"linebreak",component:o,content:l,line:i,hasSpaceForSuffix:!0};return s.push(m),s}Yi(n)?(a="text",l=n.text.text,d=n.texture.getRenderWidth()):Zd(n)?(a="icon",d=n.w):n.constructor.__componentName==="Badge"&&(a="badge",d=n.w),t+=d,t+=n.flexItem.marginRight,Math.ceil(t)>=this.w&&(i++,t=d);let _=Math.ceil(t)+e<=this.w,g={type:a,component:o,content:l,line:i,hasSpaceForSuffix:_};return s.push(g),s},[])}_addSuffix({type:e,component:t,content:i}){let s=t.flexItem.marginRight*-1,n;if(e==="text"){let{fontFace:o,fontSize:a,fontStyle:l,lineHeight:d,verticalAlign:p}=t.text;n=this._createText({flexItem:this.contentProperties},{text:`${i.trim()}${this.maxLinesSuffix}`,style:{fontFace:o,fontSize:a,fontStyle:l,lineHeight:d,verticalAlign:p}})}else this.childList.add(t),n=this._createText({flexItem:{...this.contentProperties,marginLeft:s}},this.maxLinesSuffix);return n}_createIcon(e,t){let i=(this.textHeight>this.style.textStyle.lineHeight?this.textHeight:this.style.textStyle.lineHeight)-this.style.iconHeight;return{...e,type:Ie,y:i,w:this.style.iconWidth,h:this.style.iconHeight,signals:{itemChanged:"_updateIconPosition"},...t}}_createText(e,t){let i=typeof t.style=="string"?this.customStyleMappings[t.style]:t.style,s={...e,y:this.textY!==void 0?this.textY:this.style.textY,h:i?.lineHeight||i?.fontSize||this.textHeight,text:{...this.style.textStyle,...i,text:t.text||t}};if(i?.textDecoration==="line-through"){let n=Nn({...this.style.textStyle,...i,text:t.text||t}),o={rect:!0,w:n,color:this.style.strikethroughColor||i?.textColor||this.style.textStyle.textColor,h:s.h*this.style.strikethroughRatio,y:s.h/2,mountY:1};return{type:X.Component,w:n+s.flexItem.marginRight,h:s.h,children:[{...s},{...o}]}}return s}_createBadge(e,t){return{...e,y:this.badgeY||0,...this.badgeProperties,type:qt,title:t,signals:{loadedBadge:"_loadedBadge"}}}_updateIconPosition(e){e.y=this.style.textStyle.lineHeight-e.h}_loadedBadge(e){this.badgeY===void 0&&(e.y=this.style.textStyle.lineHeight-e.h)}_formatSpaces(e){let t=/(.+?\s+)/;return zn((e||[]).reduce((i,s)=>{let n=s;if(Yi(s)){if(typeof s=="object"){let o=s.text.split(t).map(a=>a&&{...s,text:a});return i.push(...o),i}n=s.split(t)}return i.push(n),i},[])).map((i,s,n)=>i===" "?!1:n[s+1]===" "?i+" ":i).filter(Boolean)}_setContent(e){if(e!==this._content){this._content=e;let t=this._content;e&&!Array.isArray(e)&&(t=Dd(e)),this._parsedContent=this._formatSpaces(t)}return e}_setBadgeProperties(e){if(typeof e=="object")return e}_getBadgeProperties(){return this._badgeProperties||{}}_setContentProperties(e){if(typeof e=="object")return e}_getContentProperties(){return this._contentProperties||{}}_setCustomStyleMappings(e){if(typeof e=="object")return e}_getCustomStyleMappings(){return this._customStyleMappings||{}}_setMaxLines(e){return e>=1?Math.floor(e):0}get textHeight(){return this.style.textStyle.lineHeight||this.style.textStyle.fontSize}get _marginBottom(){return this.contentProperties.marginBottom!==void 0?this.contentProperties.marginBottom:this.style.marginBottom?this.style.marginBottom:0}get _shouldTruncate(){return this.contentWrap&&this.maxLines}set announce(e){super.announce=e}get announce(){if(this._announce)return this._announce;let e=this._parsedContent&&this._parsedContent.reduce((t,i)=>(typeof i=="string"?t+=i:i.announce?t+=i.announce:i.text?(t+=i.text,i.style?.textDecoration==="line-through"&&(t+="strikethrough")):i.title?t+=i.title:i.badge&&(t+=i.badge),t+" "),"");return e?e.replace(/\s+(?=\s)|\s$/g,""):""}};u();h();c();u();h();c();var hu={};Nt(hu,{base:()=>Bv});u();h();c();var Bv=r=>({fadeWidth:100,offset:r.spacer.xxl,shouldSmooth:!1,textStyle:r.typography.body1});u();h();c();var St=class extends X.shaders.WebGLDefaultShader{constructor(e){super(e),this._margin={left:0,right:0}}set positionLeft(e){this._positionLeft=e}set positionRight(e){this._positionRight=e}setupUniforms(e){super.setupUniforms(e);let t=e.shaderOwner;this._positionLeft===0&&(this._positionLeft=.001),this._positionRight===0&&(this._positionRight=.001);let i=this.ctx.stage.getRenderPrecision();this._setUniform("margin",[this._positionLeft*i,this._positionRight*i],this.gl.uniform1fv),this._setUniform("resolution",new Float32Array([t._w*i,t._h*i]),this.gl.uniform2fv)}};St.fragmentShaderSource=` - #ifdef GL_ES - # ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - # else - precision lowp float; - # endif - #endif - - #define PI 3.14159265359 - - varying vec2 vTextureCoord; - varying vec4 vColor; - - uniform sampler2D uSampler; - uniform vec2 resolution; - uniform float margin[2]; - - void main() { - vec4 color = texture2D(uSampler, vTextureCoord) * vColor; - vec2 halfRes = 0.5 * resolution.xy; - vec2 point = vTextureCoord.xy * resolution; - - - vec2 pos1 = vec2(point.x, point.y); - vec2 pos2 = pos1; - pos2.x += margin[0]; - - vec2 d = pos2 - pos1; - float t = dot(pos1, d) / dot(d, d); - t = smoothstep(0.0, 1.0, clamp(t, 0.0, 1.0)); - - vec2 pos3 = vec2(vTextureCoord.x * resolution.x, vTextureCoord.y); - pos3.x -= resolution.x - margin[1]; - vec2 pos4 = vec2(vTextureCoord.x + margin[1], vTextureCoord.y); - - vec2 d2 = pos4 - pos3; - float t2 = dot(pos3, d2) / dot(d2, d2); - t2 = smoothstep(0.0, 1.0, clamp(t2, 0.0, 1.0)); - - color = mix(vec4(0.0), color, t); - color = mix(color, vec4(0.0), t2); - - gl_FragColor = color; - } -`;var Gt=class extends ce{static _template(){return{ContentClipper:{boundsMargin:[],ContentBox:{Content:{},ContentLoopTexture:{}}}}}static get __componentName(){return"Marquee"}static get __themeStyle(){return hu}static get tags(){return["ContentClipper",{name:"ContentBox",path:"ContentClipper.ContentBox"},{name:"Content",path:"ContentClipper.ContentBox.Content"},{name:"ContentLoopTexture",path:"ContentClipper.ContentBox.ContentLoopTexture"}]}static get properties(){return["autoStart","title","contentTexture","color","centerAlign","delay","repeat","overrideLoopX"]}static get aliasStyles(){return[{prev:"fadeW",curr:"fadeWidth"}]}_construct(){super._construct(),this._scrolling=!1,this._autoStart=!1,this._centerAlign=!1}_init(){this._Content.on("txLoaded",this._updateContentTexture.bind(this)),super._init()}_updateContentTexture(){let e=this._restartScrolling;this.stopScrolling(),this._currentTexture.h||(this._ContentClipper.h=this._currentTexture.text&&this._currentTexture.text.lineHeight?this._currentTexture.text.lineHeight:this._Content.finalH),this._shouldClip?this._updateShader():(this._ContentClipper.shader=null,this._positionTexture()),e&&this.startScrolling(),this.signal("marqueeContentLoaded")}_update(){this._updateColor(),this._updateTexture(),this._updateShader(),this._restartScrolling&&this.startScrolling()}get _restartScrolling(){return this.autoStart||this._scrolling||this._shouldTryScrolling}_updateColor(){this.color&&(this._Content.smooth={color:xe.getValidColor(this.color)})}get _currentTexture(){return this._Content.text||this._Content.texture||{}}_updateTexture(){let e={rtt:!0};this.contentTexture?e.texture=this.contentTexture:this.title&&(e.text={...this.style.textStyle,...this.title,text:this.textContent}),this.patch({ContentClipper:{w:this.w+14,ContentBox:{Content:e,ContentLoopTexture:{}}}}),this.signal("marqueeContentLoaded")}_updateShader(){this._ContentClipper.patch({w:this.w>0?this.w+this.style.fadeWidth/2:0,shader:{type:St,positionLeft:0,positionRight:this.style.fadeWidth},rtt:!0})}_updateAnimation(){this._scrollAnimation&&this._scrollAnimation.stopNow(),this._scrollAnimation=this.animation({duration:this._loopWidth/50,delay:isNaN(this.delay)?1.5:this.delay,repeat:isNaN(this.repeat)?-1:this.repeat,actions:[{t:"ContentBox",p:"x",v:{sm:0,0:{v:0},.5:{v:-(this._loopWidth+this.style.offset)}}},{t:"ContentClipper",p:"shader.positionLeft",v:{sm:0,0:{v:0},.1:{v:this.style.fadeWidth},.4:{v:this.style.fadeWidth},.5:{v:0}}}]})}_positionTexture(){let e=this._shouldCenter()?(this.w-this._textRenderedW)/2:0;this.style.shouldSmooth?this._ContentBox.smooth={x:e}:this._ContentBox.x=e}startScrolling(){this._Content.off("txLoaded",this.startScrolling.bind(this)),this._shouldTryScrolling=!0,this._textRenderedW===0&&this._Content.on("txLoaded",this.startScrolling.bind(this)),this._shouldClip?(this._scrolling=!0,this._ContentLoopTexture.x=this._loopWidth+this.style.offset,this._ContentLoopTexture.texture=this._Content.getTexture(),this._updateAnimation(),this._scrollAnimation.start()):this._scrolling=!1}stopScrolling(){this._shouldTryScrolling=!1,this._scrolling=!1,this._scrollAnimation&&(this._scrollAnimation.stopNow(),this._ContentLoopTexture.texture=null)}get _shouldClip(){return this._textRenderedW>this.w-this.style.fadeWidth/4}_shouldCenter(){return this._centerAlign||this._Content.text&&this._Content.text.textAlign==="center"}_setAutoStart(e){return this.autoStart&&!e&&this._updateContentTexture(),e}_setCenterAlign(e){return this._centerAlign=e,this._updateContentTexture(),e}get textContent(){return this.title?.text??this.title??""}get _loopWidth(){return this.overrideLoopX||this._textRenderedW}get _textRenderedW(){return this._Content.renderWidth}set announce(e){super.announce=e}get announce(){return this._announce||this.title&&this.title.text}};var Rv=Object.entries(Object.getOwnPropertyDescriptors(X.textures.TextTexture.prototype)).reduce((r,[e])=>{let t=X.textures.TextTexture.prototype[e];return e.startsWith("_")||["undefined","function"].includes(typeof t)?r:{[e]:t,...r}},{}),we=class extends ce{static _template(){return{alpha:.001}}static get __componentName(){return"TextBox"}static get __themeStyle(){return lu}static get tags(){return["InlineContent","Marquee","Text"]}static get properties(){return[...Rt.properties,"content","fixed","marquee","marqueeProps","hideOnLoad"]}_setDimensions(e,t){let i=e,s=t;this._isInlineContent||(i=this._Text.texture.getRenderWidth(),s=this._Text.texture.getRenderHeight());let n=this.w!==i||this.h!==s;i&&s&&n&&(this.h=s,this.fixed||(this.w=i),!this.hideOnLoad&&this.alpha<1&&(this.alpha=1),this._notifyAncestors())}_setContent(e){return this._isInlineContent=!1,(Array.isArray(e)||xe.isMarkupString(e))&&(this._isInlineContent=!0),typeof e!="string"&&!this._isInlineContent?"":e}get title(){return this._content}_notifyAncestors(e=this.w,t=this.h){this.fireAncestors("$itemChanged"),this.signal("textBoxChanged",{w:e,h:t})}_construct(){super._construct(),this._marqueeContentListenerAttached=!1,this._marqueeOverrideLoopX=void 0,this._resetMarqueePromise()}_update(){if(!this.content){(this._Text||this._InlineContent)&&(this.w=this.h=0,this._notifyAncestors(),this._updateMarquee(),this.patch({Text:void 0,InlineContent:void 0}));return}this._isInlineContent?this._updateInlineContent():this._updateText(),this._updateMarquee()}_updateInlineContent(){this.patch({Text:void 0});let e=Rt.properties.reduce((t,i)=>(this[i]!=null&&(t[i]=this[i]),t),{style:{...this.style,textStyle:this._textStyleSet}});this._textStyleSet.wordWrapWidth&&(e.w=this._textStyleSet.wordWrapWidth,e.rtt=!0),this._textStyleSet.maxLines&&(e.maxLines=this._textStyleSet.maxLines),this._textStyleSet.maxLinesSuffix&&(e.maxLinesSuffix=this._textStyleSet.maxLinesSuffix),this.patch({alpha:1,InlineContent:{type:Rt,w:this.w,...e,signals:{loadedInlineContent:"_setDimensions"}}})}_updateText(){this.patch({InlineContent:void 0}),this._Text||(this.patch({Text:{}}),this._Text.on("txLoaded",this._setDimensions.bind(this)));let e=this._textStyleSet;this._Text&&this._Text.patch({y:this.style.offsetY,x:this.style.offsetX,text:{...Rv,...e}})}set marqueeOverrideLoopX(e){this._marqueeOverrideLoopX=e,this._Marquee&&(this._Marquee.overrideLoopX=this._marqueeOverrideLoopX),this._resolveAwaitMarqueeOverrideX()}get marqueeOverrideLoopX(){return this._marqueeOverrideLoopX}_resetMarqueePromise(){this._awaitMarqueeOverrideX=new Promise((e,t)=>{this._resolveAwaitMarqueeOverrideX=e,this._rejectAwaitMarqueeOverrideX=t})}_loadedMarqueeContent(){this.signal("willMarquee",this._Marquee)}_updateMarquee(){if(this._Marquee&&!this.marquee&&this._toggleMarquee(this._contentTag),this.marquee){this._resetMarqueePromise();let e={...this.marqueeProps,w:this._textStyleSet.wordWrapWidth||this.w,h:this.h,y:this.style.offsetY,x:this.style.offsetX,signals:{marqueeContentLoaded:"_loadedMarqueeContent"}};this._Marquee||(e.type=Gt),this._isInlineContent?(this._InlineContent.w=0,e.title=void 0,e.contentTexture=this._contentTag.getTexture(),e.w=this._textStyleSet.wordWrapWidth||this.w):(e.contentTexture=void 0,e.title={text:this._contentTag.text.text,...this._textStyleSet,wordWrapWidth:0,maxLines:1}),this.patch({Marquee:e}),this._marqueeContentListenerAttached||(this._marqueeContentListenerAttached=!0),typeof this._marqueeOverrideLoopX<"u"?this._awaitMarqueeOverrideX.then(()=>{this._toggleMarquee(this._contentTag)}):this._toggleMarquee(this._contentTag)}}_getMarqueeProps(){return this._marqueeProps??{}}get _textStyleSet(){let e={...this.theme.typography.body1,...this.style.textStyle!==null&&typeof this.style.textStyle=="object"&&Object.keys(this.style.textStyle)?this.style.textStyle:this.theme.typography[this.style.textStyle]};return this.constructor.properties.forEach(t=>{if(t!=="fontStyle"&&typeof this[`_${t}`]<"u"){let i=t==="content"?"text":t;e[i]=this[`_${t}`]}}),this.w&&!this._isInlineContent&&!this.style.textStyle.wordWrapWidth&&this.fixed&&(e.wordWrapWidth=this.w),e}get _contentTag(){return this._isInlineContent?this._InlineContent:this._Text}_toggleMarquee(e){this.marquee?(e&&(e.alpha=.001),this._Marquee&&(this._Marquee.alpha=1,this._Marquee.startScrolling())):(e&&(e.alpha=1),this._Marquee&&(this._Marquee.alpha=.001,this._Marquee.stopScrolling()))}toggleMarquee(){this._toggleMarquee(this._contentTag)}get announce(){return this._announce||(this._isInlineContent&&this._InlineContent?this._InlineContent.announce:this.content)}set announce(e){super.announce=e}set smooth(e){te.warn("warning: value smoothing is known to cause bugs with the TextBox - patch updated values instead."),super.smooth=e}};u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();function du(r){return class extends r{static get name(){return r.name}_init(){super._init(),this._shouldSync&&this._updateSignals()}_update(){super._update(),this._shouldSync?this._updateSignals():this._cleanupSyncValues()}_cleanupSyncValues(){this.syncArray.map(e=>{e.marqueeOverrideLoopX=void 0,e.signals&&e.signals.willMarquee&&delete e.signals.willMarquee})}_updateSignals(){this.syncArray&&this.syncArray.map(e=>{e.signals={...e.signals,willMarquee:"_willMarquee"}})}_willMarquee(e){this._shouldSync&&(this._longestMarqueeWidth=Math.max(e._textRenderedW||0,this._longestMarqueeWidth||0),this.syncArray.map(t=>{t.marqueeOverrideLoopX=this._longestMarqueeWidth}))}get _shouldSync(){return this.style.marqueeSync===!1?!1:this.syncArray?Array.isArray(this.syncArray)?this.syncArray.length<2?(le.warn("warning: syncArray must contain at least two component references."),!1):!0:(le.warn("warning: syncArray must be typeof array."),!1):(le.warn("warning: components using MarqueeSync must have a syncArray getter defined."),!1)}}}var pu=du;var fu={};Nt(fu,{base:()=>$v,mode:()=>Gv,tone:()=>Vv});u();h();c();var $v=r=>({descriptionTextStyle:{...r.typography.body2,maxLines:1},fadeWidth:100,logoWidth:r.typography.body3.lineHeight,logoHeight:r.typography.body3.lineHeight,logoPadding:r.spacer.lg,detailsTextStyle:r.typography.body3,subtitleTextStyle:r.typography.body3,titleTextStyle:{...r.typography.headline1,maxLines:1},marqueeSync:!0,alpha:r.alpha.primary}),Gv=r=>({disabled:{detailsTextStyle:{textColor:r.color.textNeutralDisabled},alpha:r.alpha.inactive}}),Vv=r=>({neutral:{titleTextStyle:{textColor:r.color.textNeutral},subtitleTextStyle:{textColor:r.color.textNeutralSecondary},detailsTextStyle:{textColor:r.color.textNeutral},descriptionTextStyle:{textColor:r.color.textNeutralSecondary},mode:{disabled:{titleTextStyle:{textColor:r.color.textNeutralDisabled},detailsTextStyle:{textColor:r.color.textNeutralDisabled},descriptionTextStyle:{textColor:r.color.textNeutralDisabled}}}},inverse:{titleTextStyle:{textColor:r.color.textInverse},subtitleTextStyle:{textColor:r.color.textInverseSecondary},detailsTextStyle:{textColor:r.color.textInverse},descriptionTextStyle:{textColor:r.color.textInverseSecondary},mode:{disabled:{titleTextStyle:{textColor:r.color.textNeutralDisabled},subtitleTextStyle:{textColor:r.color.textNeutralDisabled},detailsTextStyle:{textColor:r.color.textNeutralDisabled},descriptionTextStyle:{textColor:r.color.textNeutralDisabled}}}},brand:{titleTextStyle:{textColor:r.color.textNeutral},subtitleTextStyle:{textColor:r.color.textNeutralSecondary},detailsTextStyle:{textColor:r.color.textNeutral},descriptionTextStyle:{textColor:r.color.textNeutralSecondary},mode:{disabled:{titleTextStyle:{textColor:r.color.textNeutralDisabled},detailsTextStyle:{textColor:r.color.textNeutralDisabled},descriptionTextStyle:{textColor:r.color.textNeutralDisabled}}}}});var gu=class extends ce{static get __componentName(){return"MetadataBase"}static get __themeStyle(){return fu}static _template(){return{Text:{flex:{direction:"column",justifyContent:"flex-start"},DetailsWrapper:{}}}}static get properties(){return["description","logo","logoHeight","logoPosition","logoTitle","logoWidth","details","subtitle","title","marquee"]}static get tags(){return["Text",{name:"Title",path:"Text.Title"},{name:"Subtitle",path:"Text.Subtitle"},{name:"DetailsWrapper",path:"Text.DetailsWrapper"},{name:"Details",path:"Text.DetailsWrapper.Details"},{name:"Description",path:"Text.Description"},"Logo"]}_titleLoaded(){this._updateLayout()}_subtitleLoaded(){this._updateLayout()}_detailsLoaded({w:e,h:t}){this._updateDetailsLayout({w:e,h:t}),this._updateLayout()}_descriptionLoaded(){this._updateLayout()}_updateDetailsLayout({w:e,h:t}){!this.details&&!this._Details||this._DetailsWrapper&&(this._DetailsWrapper.alpha=this.style.alpha,this._DetailsWrapper.w=e,this._DetailsWrapper.h=t)}_update(){this._updateLines(),this._updateLayout()}_updateLines(){this._Text.w=this._textW(),this._updateTitle(),this._updateSubtitle(),this._updateDetails(),this._updateDescription()}_updateLayout(){this._Text.h=this._textH(),this._updateMetadataHeight(),this._updatePositions(),this._updateLogo()}_updatePositions(){this._Text.x=this.logo&&this.logoPosition==="left"?this.logoWidth+this.style.logoPadding:0,this._Text.y=(this.h-this._Text.h)/2}_updateMetadataHeight(){let e=Math.max(this.logoHeight,this._Text.h);this.h!==e&&(this.h=e,this.signal("updateComponentDimensions"))}_updateTitle(){!this.title&&!this._Title||(this._Title||this._Text.childList.addAt({ref:"Title",type:we,signals:{textBoxChanged:"_titleLoaded"}},0),this._Title.patch({content:this.title,marquee:this.marquee,style:{textStyle:{...this.style.titleTextStyle,maxLines:1,wordWrap:!0,wordWrapWidth:this._Text.w}}}))}_updateSubtitle(){!this.subtitle&&!this._Subtitle||(this._Subtitle||this._Text.childList.addAt({ref:"Subtitle",type:we,signals:{textBoxChanged:"_subtitleLoaded"}},1),this._Subtitle.patch({content:this.subtitle,marquee:this.marquee,style:{textStyle:{...this.style.subtitleTextStyle,maxLines:1,wordWrap:!0,wordWrapWidth:this._Text.w}}}))}resetMarquee(){this.marquee&&(this.title&&(this._Title||this._updateTitle(),this._Title.toggleMarquee()),this.description&&(this._Description||this._updateDescription(),this._Description.toggleMarquee()))}_updateDetails(){!this.details&&!this._Details||(this._Details||this._DetailsWrapper.patch({Details:{type:we,signals:{textBoxChanged:"_detailsLoaded"}}}),this._Details.patch({content:this.details,style:{textStyle:this.style.detailsTextStyle}}),this._Details.finalW>this._textW()?this._Details.patch({w:this._textW()+this.style.fadeWidth/2,shader:{type:St,positionLeft:0,positionRight:this.style.fadeWidth},rtt:!0}):this._DetailsWrapper.shader=void 0,this._DetailsWrapper.visible=!!this.details,this._DetailsWrapper.alpha=this.style.alpha)}_updateDescription(){!this.description&&!this._Description||(this._Description||this._Text.childList.add({ref:"Description",type:we,signals:{textBoxChanged:"_descriptionLoaded"}}),this._Description.patch({content:this.description,marquee:this.marquee,style:{textStyle:{...this.style.descriptionTextStyle,maxLines:1,wordWrap:!0,wordWrapWidth:this._Text.w}}}))}_updateLogo(){if(!this.logo&&!this._Logo)return;this._Logo||this.patch({Logo:{flexItem:!1,type:Ie}}),this.logoPosition=this.logoPosition||"right";let e=this.subtitle&&this._Subtitle&&this._Subtitle.h||0;this._Logo.patch({w:this.logoWidth,h:this.logoHeight,icon:this.logo,alpha:this.style.alpha}),this._Logo.x=this.logoPosition==="left"?0:this.w-this._Logo.w,this._Logo.y=(this.h-this.logoHeight+e)/2}_textW(){return this.w-(this.logo?this.logoWidth+this.style.logoPadding:0)}_textH(){let e=this.title&&this._Title&&this._Title.h||0,t=this.subtitle&&this._Subtitle&&this._Subtitle.h||0,i=this.details&&this._DetailsWrapper&&this._DetailsWrapper.h||0,s=this.description&&this._Description&&this._Description.h||0;return e+t+i+s}_getLogoWidth(){return this._logoWidth!==void 0?this._logoWidth:this.style.logoWidth}_setLogoWidth(e){return e!==void 0?e:this.logoWidth}_getLogoHeight(){return this._logoHeight!==void 0?this._logoHeight:this.style.logoHeight}_setLogoHeight(e){return e!==void 0?e:this.logoHeight}get syncArray(){return[...this._Title?[this._Title]:[],...this._Subtitle?[this._Subtitle]:[],...this._Description?[this._Description]:[],...this._Details?[this._Details]:[]]}set announce(e){super.announce=e}get announce(){return this._announce||[this._Title&&this._Title.announce,this._Subtitle&&this._Subtitle.announce,this._Details&&this._Details.announce,this._Description&&this._Description.announce,this.logoTitle]}},Xi=pu(gu);u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();var Ki=class extends X.Texture{constructor(e){super(e),this._w=0,this._h=0,this._radius=0,this._pointerWidth=0,this._pointerHeight=0,this._strokeWidth=0,this._color="white"}set w(e){this._w=e,this._changed()}get w(){return this._w}set h(e){this._h=e,this._changed()}get h(){return this._h}set radius(e){Array.isArray(e)?this._radius=new Array(4).fill().map((t,i)=>e[i]||0):this._radius=e,this._changed()}get radius(){return this._radius}set pointerWidth(e){this._pointerWidth=e,this._changed()}get pointerWidth(){return this._pointerWidth}set pointerHeight(e){this._pointerHeight=e,this._changed()}get pointerHeight(){return this._pointerHeight}set strokeWidth(e){this._strokeWidth=e,this._changed()}get strokeWidth(){return this._strokeWidth}set color(e){this._color=X.StageUtils.getRgbaString(e),this._changed()}get color(){return this._color}createBubble({stage:e,w:t=0,h:i=0,radius:s=0,pointerWidth:n=0,pointerHeight:o=0,strokeWidth:a=1,color:l="white"}){let d=e.platform.getDrawingCanvas(),p=d.getContext("2d");d.width=t+a+4,d.height=i+a+4,p.imageSmoothingEnabled=!0,p.fillStyle=l,p.strokeStyle=l,p.lineWidth=a,p.lineCap="round",p.lineJoin="round";let _=.5*a+1,g=_,m=g+t,A=_,C=A+i,v=C-o,w=Array.isArray(s);return p.beginPath(),p.moveTo(g+(w?s[0]:s),A),p.lineTo(m-(w?s[0]:s),A),p.arcTo(m,A,m,A+(w?s[1]:s),w?s[1]:s),p.lineTo(m,v-(w?s[2]:s)),p.arcTo(m,v,m-(w?s[2]:s),v,w?s[2]:s),p.lineTo(t/2+n/2,v),p.arcTo(t/2,C,t/2-n/2,v,2),p.lineTo(t/2-n/2,v),p.lineTo(g+(w?s[3]:s),v),p.arcTo(g,v,g,v-(w?s[3]:s),w?s[3]:s),p.lineTo(g,A+(w?s[0]:s)),p.arcTo(g,A,g+(w?s[0]:s),A,w?s[0]:s),p.stroke(),p.fill(),d}_getLookupId(){let{w:e,h:t,radius:i,pointerWidth:s,pointerHeight:n,color:o}=this;return`__bubble_${e}x${t}_radius-${i}_pointer-${s}x${n}_fill-${o}`}_getSourceLoader(){return e=>{e(null,{source:this.createBubble(this)})}}};u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();var xu=[{pattern:"TV-14",replacer:"Rated TV-14"},{pattern:"CC",replacer:"Closed Captions available"},{pattern:"HD",replacer:"High Definition available"},{pattern:/ENG(?!\+)/,replacer:"English Available"},{pattern:/ENG\+ES/,replacer:"Available in English and Spanish"},{pattern:"AD",replacer:"Audio Description available"},{pattern:"RT",replacer:"Rotten Tomatoes"},{pattern:/(S)+(\d+)+(E)+(\d+)+/,replacer:(r,e,t,i,s)=>`Season ${t} Episode ${s}`}],gp=bu(xu);function fp(r){return`\\b${r}\\b`}function Hw(r){return new RegExp(r.toString()+"|").exec("").length-1}function bu(r=xu,e){let t=e?[...xu,...r]:r,i={},s={},n="",o=0;return t.forEach(({pattern:a,replacer:l},d)=>{let p;if(a instanceof RegExp){let _=d+o;s[_]={pattern:a,replacer:l},p=fp(a.source),o+=Hw(a)}else i[a]={replacer:l},p=fp(a);n=n===""?`(${p})`:`${n}|(${p})`}),n=new RegExp(n,"g"),{abbreviationsPattern:n,stringPatternMap:i,regExpPatternMap:s}}var Nle=300*1e3;u();h();c();u();h();c();u();h();c();u();h();c();var Su=r=>r*Math.PI/180,jw=r=>r*180/Math.PI,qw=(r,e)=>{let t=e/2,i=r/2,s=Math.sqrt(Math.pow(t,2)+Math.pow(i,2)),n=90,o=Math.ceil(jw(Math.asin(t*Math.sin(Su(n))/s))),a=180-n-o;return[a,90,90+o,180,180+a,270,270+o,360]},$w=(r,e,t)=>{let i=qw(e,t),s=i.findIndex(A=>A>=r),n=t/2,o=e/2;[1,2,5,6].includes(s)&&(n=e/2,o=t/2),[2,4,6].includes(s)?r=r-i[s-1]:s>0&&(r=i[s]-r);let a=r,l=90-a,d=Math.ceil(Math.sin(Su(a))*n/Math.sin(Su(l)));d>o&&(d=o);let p=0,_=0,g=0,m=0;switch(s){case 0:p=e/2+d;break;case 1:p=e,_=t/2-d;break;case 2:p=e,_=t/2+d;break;case 3:p=e/2+d,_=t;break;case 4:p=e/2-d,_=t;break;case 5:_=t/2+d;break;case 6:_=t/2-d;break;case 7:p=e/2-d;break}return p==0&&(g=e,m=t-_),_==0&&(m=t,g=e-p),p==e&&(g=0,m=t-_),_==t&&(m=0,g=e-p),{x0:p,y0:_,x1:g,y1:m}},to=class extends X.Texture{constructor(e){super(e),this._w=0,this._h=0,this._steps=[],this._degrees=0}get w(){return this._w}set w(e){this._w=e,this._changed()}get h(){return this._h}set h(e){this._h=e,this._changed()}get steps(){return this._steps}set steps(e){this._steps=e,this._changed()}get degrees(){return this._degrees}set degrees(e){this._degrees=e,this._changed()}_getLookupId(){return`__linearGradient_${this._h}_${this._w}_${this._steps.count}_${this._degrees}`}_getSourceLoader(){let e=this._w,t=this._h,i=this._degrees,s=$w(i,e,t),{x0:n,y0:o,x1:a,y1:l}=s,d=this._steps,p=this.strokeWidth,_=this.strokeRadius?Array.isArray(this.strokeRadius)&&this.strokeRadius.length===4?this.strokeRadius:Array(4).fill(this.strokeRadius):Array(4).fill(0);return function(g){let m=this.stage.platform.getDrawingCanvas();m.width=e+p+2,m.height=t+p+2;var A=m.getContext("2d"),C=A.createLinearGradient(n,o,a,l);if(d.forEach(v=>{C.addColorStop(v.percent,v.color)}),p){let v=.5*p+1,w=.5*p+1;A.beginPath(),A.moveTo(v+_[0],w),A.lineTo(v+e-_[1],w),A.arcTo(v+e,w,v+e,w+_[1],_[1]),A.lineTo(v+e,w+t-_[2]),A.arcTo(v+e,w+t,v+e-_[2],w+t,_[2]),A.lineTo(v+_[3],w+t),A.arcTo(v,w+t,v,w+t-_[3],_[3]),A.lineTo(v,w+_[0]),A.arcTo(v,w,v+_[0],w,_[0]),A.closePath(),A.lineWidth=p,A.strokeStyle=C,A.stroke()}else A.fillStyle=C,A.fillRect(0,0,e,t);g(null,{source:m,w:e,h:t})}}};u();h();c();var ro=class extends X.Texture{constructor(e){super(e),this._color="rgb(0,0,0)",this._fill=!0,this._radius=100,this._stroke=!1,this._strokeColor="rgb(0,0,0)",this._strokeWidth=1}get fill(){return this._fill}set fill(e){this._fill=e,this._changed()}get radius(){return this._radius}set radius(e){this._radius=e,this._changed()}get color(){return this._color}set color(e){this._color=e,this._changed()}get stroke(){return this._stroke}set stroke(e){this._stroke=e,this._changed()}get strokeWidth(){return this._strokeWidth}set strokeWidth(e){this._strokeWidth=e,this._changed()}get strokeColor(){return this._strokeColor}set strokeColor(e){this._strokeColor=e,this._changed()}_getLookupId(){return`__circle_${this._radius}`}_getSourceLoader(){let e=this._color,t=this._fill,i=this._radius,s=this._stroke,n=this._strokeColor,o=this._strokeWidth,a=this.stage.platform.getDrawingCanvas(),l=i;return s&&(l=i+o*2),a.width=l*2,a.height=l*2,function(d){let p=a.getContext("2d");p.lineWidth=o,p.strokeStyle=n,p.fillStyle=e,p.beginPath(),p.arc(l,l,i,0,2*Math.PI),t&&p.fill(),s&&p.stroke(),d(null,{source:a,radius:i})}}};u();h();c();var io=class extends X.Texture{constructor(e){super(e),this._color="rgb(13, 13, 15)",this._w=0,this._h=0,this._direction="right"}get w(){return this._w}set w(e){this._w=e,this._changed()}get h(){return this._h}set h(e){this._h=e,this._changed()}get direction(){return this._direction}get color(){return this._color}set color(e){this._color=e,this._changed()}set direction(e){this._direction=e,this._changed()}_getLookupId(){return`__triangle_${this._direction}_${this._w}x${this._h}`}_getSourceLoader(){let e=this._color,t=this._w,i=this._h,s=this._direction;var n=this.stage.platform.getDrawingCanvas();return function(o){var a=n.getContext("2d");n.width=t,n.height=i,a.fillStyle=e,a.strokeStyle=a.fillStyle,a.lineWidth=2,a.lineCap="round",a.lineJoin="round";let l=a.lineWidth/2;a.beginPath(),s==="right"?(a.moveTo(l,l),a.lineTo(l,i-l),a.lineTo(t-l,i/2)):s==="down"?(a.moveTo(l,l),a.lineTo(t-l,l),a.lineTo(t/2,i-l)):(a.moveTo(l,i/2),a.lineTo(t-l,l),a.lineTo(t-l,i-l)),a.closePath(),a.stroke(),a.fill(),o(null,{source:n,w:t,h:i,direction:s})}}};u();h();c();var so=class extends X.Texture{constructor(e){super(e),this._w=0,this._h=0,this._rounded=!1}get w(){return this._w}set w(e){this._w=e,this._changed()}get h(){return this._h}set h(e){this._h=e,this._changed()}get rounded(){return this._rounded}set rounded(e){this._rounded=e,this._changed()}_getLookupId(){return`__line_${this._w}x${this._h}${this._rounded?"_rounded":""}`}_getSourceLoader(){let e=this._w,t=this._h,i=this._rounded;var s=this.stage.platform.getDrawingCanvas();return function(n){var o=s.getContext("2d");s.width=e,s.height=t,o.lineWidth=t,i&&(o.lineCap="round"),o.strokeStyle="white",o.beginPath(),o.moveTo(i?2:0,t/2),o.lineTo(i?e-2:e,t/2),o.stroke(),n(null,{source:s,w:e,h:t,rounded:i})}}};u();h();c();function _p(r){let[e,t,i,s]=Gw(r);return[Vw(e,t,i).toUpperCase(),s*100]}function Gw(r){let e=(r/65536|0)%256,t=(r/256|0)%256,i=r%256,s=(r/16777216|0)/255;return[e,t,i,s.toFixed(2)]}function Cu(r){let e=r.toString(16);return e.length==1?"0"+e:e}function Vw(r,e,t){return"#"+Cu(r)+Cu(e)+Cu(t)}function mp(r){try{if(xe.getValidColor(r))return"color";if(typeof r=="number")return"number"}catch(e){console.error(e)}}function yp(r){if(r!==void 0)return xe.capitalizeFirstLetter(r)}var Au=()=>S.createElement(Xe,{key:Qs,title:"Download LUI Theme JSON",onClick:()=>{console.log("Downloading LUI-Theme.json...");let e=document.querySelector("iframe").contentWindow.CONTEXT,t=JSON.parse(JSON.stringify(e.theme,(i,s)=>typeof s=="number"&&/^[0-9]{10}$/g.test(s.toString())?_p(s):s));xe.downloadFile(t,`LUI-Theme-${t.name}.json`,"json")}},S.createElement(De,{icon:"download"}));u();h();c();Be();bt();u();h();c();var Sp=Ce(bp()),Cp=()=>document&&document.querySelector("iframe")&&document.querySelector("iframe").contentWindow&&document.querySelector("iframe").contentWindow.APP,Qi=()=>document&&document.querySelector("iframe")&&document.querySelector("iframe").contentWindow&&document.querySelector("iframe").contentWindow.CONTEXT,dr=()=>{let r=Qi();return r&&r.theme},no=()=>dr()||Hn;function Zi(r,e){document&&document.querySelector("iframe")&&document.querySelector("iframe").contentWindow&&document.querySelector("iframe").contentWindow.postMessage({theme:r}),e&&e({LUITheme:r})}var Ji=(r,e,t=!0)=>{let i=Qi();if(i&&(i.updateTheme(r),t)){let s=dr(),n=Object.keys(s).reduce((o,a)=>(typeof s[a]=="function"&&(o[a]=s[a]),o),{});Qi().storybookCustomTheme={...JSON.parse(JSON.stringify(dr())),...n},e({LUITheme:"custom"})}},Yw=(0,Sp.default)((r,e,t)=>{Ji({color:{[r]:xe.getValidColor(e)}},t)},500);function Ap(){Yw(...arguments)}var wu=()=>{let[{LUITheme:r},e]=Ve(),[t,i]=ne([]),[s,n]=ne(!0);return me(()=>{if(r){if(s&&r==="custom"){e({LUITheme:"base"});return}else s&&r!=="base"&&Zi(r);n(!1),i(["base"].filter(o=>r==="custom"?o:o!=="custom").map((o,a)=>({active:o.toLowerCase()===r,id:a,title:xe.capitalizeFirstLetter(o),onClick(){Zi(o.toLowerCase(),e)}})))}},[r]),S.createElement("div",null,S.createElement(wr,{placement:"bottom",trigger:"click",closeOnOutsideClick:!0,tooltip:S.createElement(Ga,{links:t})},S.createElement(qa,{key:tn,title:"Theme"},"Theme")))};u();h();c();u();h();c();Be();bt();u();h();c();u();h();c();Be();function Pt({title:r,rows:e}){return S.createElement("div",{style:{marginBottom:"40px"}},S.createElement("h2",null,r),S.createElement("table",null,S.createElement("thead",null,S.createElement("tr",null,S.createElement("th",null,"Property"),S.createElement("th",null,"Value"))),S.createElement("tbody",null,e)))}u();h();c();Be();function et({label:r,control:e}){return S.createElement("tr",null,S.createElement("td",null,r),S.createElement("td",null,e))}u();h();c();Be();u();h();c();Eu();Du();Be();bt();u();h();c();u();h();c();function We(){return We=Object.assign?Object.assign.bind():function(r){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function zr(r,e,t){return Ru()?zr=Reflect.construct.bind():zr=function(s,n,o){var a=[null];a.push.apply(a,n);var l=Function.bind.apply(s,a),d=new l;return o&&Ot(d,o.prototype),d},zr.apply(null,arguments)}function rs(r){var e=typeof Map=="function"?new Map:void 0;return rs=function(i){if(i===null||!Bu(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(i))return e.get(i);e.set(i,s)}function s(){return zr(i,arguments,ts(this).constructor)}return s.prototype=Object.create(i.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),Ot(s,i)},rs(r)}u();h();c();var rt=function(r){Iu(e,r);function e(t){var i;if(!0)i=r.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this;else for(var s,n,o;o=0&&s<1?(a=n,l=o):s>=1&&s<2?(a=o,l=n):s>=2&&s<3?(l=n,d=o):s>=3&&s<4?(l=o,d=n):s>=4&&s<5?(a=o,d=n):s>=5&&s<6&&(a=n,d=o);var p=t-n/2,_=a+p,g=l+p,m=d+p;return i(_,g,m)}var Ip={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function Jw(r){if(typeof r!="string")return r;var e=r.toLowerCase();return Ip[e]?"#"+Ip[e]:r}var eE=/^#[a-fA-F0-9]{6}$/,tE=/^#[a-fA-F0-9]{8}$/,rE=/^#[a-fA-F0-9]{3}$/,iE=/^#[a-fA-F0-9]{4}$/,Ou=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,sE=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,nE=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,oE=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Ur(r){if(typeof r!="string")throw new rt(3);var e=Jw(r);if(e.match(eE))return{red:parseInt(""+e[1]+e[2],16),green:parseInt(""+e[3]+e[4],16),blue:parseInt(""+e[5]+e[6],16)};if(e.match(tE)){var t=parseFloat((parseInt(""+e[7]+e[8],16)/255).toFixed(2));return{red:parseInt(""+e[1]+e[2],16),green:parseInt(""+e[3]+e[4],16),blue:parseInt(""+e[5]+e[6],16),alpha:t}}if(e.match(rE))return{red:parseInt(""+e[1]+e[1],16),green:parseInt(""+e[2]+e[2],16),blue:parseInt(""+e[3]+e[3],16)};if(e.match(iE)){var i=parseFloat((parseInt(""+e[4]+e[4],16)/255).toFixed(2));return{red:parseInt(""+e[1]+e[1],16),green:parseInt(""+e[2]+e[2],16),blue:parseInt(""+e[3]+e[3],16),alpha:i}}var s=Ou.exec(e);if(s)return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)};var n=sE.exec(e.substring(0,50));if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[3],10),alpha:parseFloat(""+n[4])>1?parseFloat(""+n[4])/100:parseFloat(""+n[4])};var o=nE.exec(e);if(o){var a=parseInt(""+o[1],10),l=parseInt(""+o[2],10)/100,d=parseInt(""+o[3],10)/100,p="rgb("+is(a,l,d)+")",_=Ou.exec(p);if(!_)throw new rt(4,e,p);return{red:parseInt(""+_[1],10),green:parseInt(""+_[2],10),blue:parseInt(""+_[3],10)}}var g=oE.exec(e.substring(0,50));if(g){var m=parseInt(""+g[1],10),A=parseInt(""+g[2],10)/100,C=parseInt(""+g[3],10)/100,v="rgb("+is(m,A,C)+")",w=Ou.exec(v);if(!w)throw new rt(4,e,v);return{red:parseInt(""+w[1],10),green:parseInt(""+w[2],10),blue:parseInt(""+w[3],10),alpha:parseFloat(""+g[4])>1?parseFloat(""+g[4])/100:parseFloat(""+g[4])}}throw new rt(5)}function aE(r){var e=r.red/255,t=r.green/255,i=r.blue/255,s=Math.max(e,t,i),n=Math.min(e,t,i),o=(s+n)/2;if(s===n)return r.alpha!==void 0?{hue:0,saturation:0,lightness:o,alpha:r.alpha}:{hue:0,saturation:0,lightness:o};var a,l=s-n,d=o>.5?l/(2-s-n):l/(s+n);switch(s){case e:a=(t-i)/l+(t=1?oo(r,e,t):"rgba("+is(r,e,t)+","+i+")";if(typeof r=="object"&&e===void 0&&t===void 0&&i===void 0)return r.alpha>=1?oo(r.hue,r.saturation,r.lightness):"rgba("+is(r.hue,r.saturation,r.lightness)+","+r.alpha+")";throw new rt(2)}function Mu(r,e,t){if(typeof r=="number"&&typeof e=="number"&&typeof t=="number")return ku("#"+pr(r)+pr(e)+pr(t));if(typeof r=="object"&&e===void 0&&t===void 0)return ku("#"+pr(r.red)+pr(r.green)+pr(r.blue));throw new rt(6)}function ft(r,e,t,i){if(typeof r=="string"&&typeof e=="number"){var s=Ur(r);return"rgba("+s.red+","+s.green+","+s.blue+","+e+")"}else{if(typeof r=="number"&&typeof e=="number"&&typeof t=="number"&&typeof i=="number")return i>=1?Mu(r,e,t):"rgba("+r+","+e+","+t+","+i+")";if(typeof r=="object"&&e===void 0&&t===void 0&&i===void 0)return r.alpha>=1?Mu(r.red,r.green,r.blue):"rgba("+r.red+","+r.green+","+r.blue+","+r.alpha+")"}throw new rt(7)}var dE=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},pE=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},fE=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},gE=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Yt(r){if(typeof r!="object")throw new rt(8);if(pE(r))return ft(r);if(dE(r))return Mu(r);if(gE(r))return cE(r);if(fE(r))return hE(r);throw new rt(8)}function Rp(r,e,t){return function(){var s=t.concat(Array.prototype.slice.call(arguments));return s.length>=e?r.apply(this,s):Rp(r,e,s)}}function ut(r){return Rp(r,r.length,[])}function _E(r,e){if(e==="transparent")return e;var t=Vt(e);return Yt(We({},t,{hue:t.hue+parseFloat(r)}))}var Ppe=ut(_E);function Hr(r,e,t){return Math.max(r,Math.min(e,t))}function mE(r,e){if(e==="transparent")return e;var t=Vt(e);return Yt(We({},t,{lightness:Hr(0,1,t.lightness-parseFloat(r))}))}var yE=ut(mE),gt=yE;function xE(r,e){if(e==="transparent")return e;var t=Vt(e);return Yt(We({},t,{saturation:Hr(0,1,t.saturation-parseFloat(r))}))}var Ope=ut(xE);function bE(r,e){if(e==="transparent")return e;var t=Vt(e);return Yt(We({},t,{lightness:Hr(0,1,t.lightness+parseFloat(r))}))}var SE=ut(bE),Xt=SE;function CE(r,e,t){if(e==="transparent")return t;if(t==="transparent")return e;if(r===0)return t;var i=Ur(e),s=We({},i,{alpha:typeof i.alpha=="number"?i.alpha:1}),n=Ur(t),o=We({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),a=s.alpha-o.alpha,l=parseFloat(r)*2-1,d=l*a===-1?l:l+a,p=1+l*a,_=(d/p+1)/2,g=1-_,m={red:Math.floor(s.red*_+o.red*g),green:Math.floor(s.green*_+o.green*g),blue:Math.floor(s.blue*_+o.blue*g),alpha:s.alpha*parseFloat(r)+o.alpha*(1-parseFloat(r))};return ft(m)}var AE=ut(CE),Pp=AE;function vE(r,e){if(e==="transparent")return e;var t=Ur(e),i=typeof t.alpha=="number"?t.alpha:1,s=We({},t,{alpha:Hr(0,1,(i*100+parseFloat(r)*100)/100)});return ft(s)}var wE=ut(vE),ss=wE;function EE(r,e){if(e==="transparent")return e;var t=Vt(e);return Yt(We({},t,{saturation:Hr(0,1,t.saturation+parseFloat(r))}))}var Lpe=ut(EE);function TE(r,e){return e==="transparent"?e:Yt(We({},Vt(e),{hue:parseFloat(r)}))}var kpe=ut(TE);function DE(r,e){return e==="transparent"?e:Yt(We({},Vt(e),{lightness:parseFloat(r)}))}var Mpe=ut(DE);function FE(r,e){return e==="transparent"?e:Yt(We({},Vt(e),{saturation:parseFloat(r)}))}var Npe=ut(FE);function IE(r,e){return e==="transparent"?e:Pp(parseFloat(r),"rgb(0, 0, 0)",e)}var zpe=ut(IE);function BE(r,e){return e==="transparent"?e:Pp(parseFloat(r),"rgb(255, 255, 255)",e)}var Upe=ut(BE);function RE(r,e){if(e==="transparent")return e;var t=Ur(e),i=typeof t.alpha=="number"?t.alpha:1,s=We({},t,{alpha:Hr(0,1,+(i*100-parseFloat(r)*100).toFixed(2)/100)});return ft(s)}var PE=ut(RE),Ee=PE;var C1=Ce(bh(),1);u();h();c();var v5=Object.create,Ym=Object.defineProperty,w5=Object.getOwnPropertyDescriptor,E5=Object.getOwnPropertyNames,T5=Object.getPrototypeOf,D5=Object.prototype.hasOwnProperty,F5=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),I5=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E5(e))!D5.call(r,s)&&s!==t&&Ym(r,s,{get:()=>e[s],enumerable:!(i=w5(e,s))||i.enumerable});return r},B5=(r,e,t)=>(t=r!=null?v5(T5(r)):{},I5(e||!r||!r.__esModule?Ym(t,"default",{value:r,enumerable:!0}):t,r)),R5=F5(r=>{Object.defineProperty(r,"__esModule",{value:!0}),r.isEqual=function(){var e=Object.prototype.toString,t=Object.getPrototypeOf,i=Object.getOwnPropertySymbols?function(s){return Object.keys(s).concat(Object.getOwnPropertySymbols(s))}:Object.keys;return function(s,n){return function o(a,l,d){var p,_,g,m=e.call(a),A=e.call(l);if(a===l)return!0;if(a==null||l==null)return!1;if(d.indexOf(a)>-1&&d.indexOf(l)>-1)return!0;if(d.push(a,l),m!=A||(p=i(a),_=i(l),p.length!=_.length||p.some(function(C){return!o(a[C],l[C],d)})))return!1;switch(m.slice(8,-1)){case"Symbol":return a.valueOf()==l.valueOf();case"Date":case"Number":return+a==+l||+a!=+a&&+l!=+l;case"RegExp":case"Function":case"String":case"Boolean":return""+a==""+l;case"Set":case"Map":p=a.entries(),_=l.entries();do if(!o((g=p.next()).value,_.next().value,d))return!1;while(!g.done);return!0;case"ArrayBuffer":a=new Uint8Array(a),l=new Uint8Array(l);case"DataView":a=new Uint8Array(a.buffer),l=new Uint8Array(l.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(a.length!=l.length)return!1;for(g=0;gr.map(e=>typeof e<"u").filter(Boolean).length,P5=(r,e)=>{let{exists:t,eq:i,neq:s,truthy:n}=r;if(Xm([t,i,s,n])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:t,eq:i,neq:s})}`);if(typeof i<"u")return(0,Vm.isEqual)(e,i);if(typeof s<"u")return!(0,Vm.isEqual)(e,s);if(typeof t<"u"){let o=typeof e<"u";return t?o:!o}return typeof n>"u"||n?!!e:!e},Sh=(r,e,t)=>{if(!r.if)return!0;let{arg:i,global:s}=r.if;if(Xm([i,s])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:i,global:s})}`);let n=i?e[i]:t[s];return P5(r.if,n)};u();h();c();Be();function mr(){return mr=Object.assign?Object.assign.bind():function(r){for(var e=1;e(r[e.toLowerCase()]=e,r),{for:"htmlFor"}),Qm={amp:"&",apos:"'",gt:">",lt:"<",nbsp:"\xA0",quot:"\u201C"},L5=["style","script"],k5=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,M5=/mailto:/i,N5=/\n{2,}$/,i0=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,z5=/^ *> ?/gm,U5=/^ {2,}\n/,H5=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,s0=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,n0=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,W5=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,j5=/^(?:\n *)*\n/,q5=/\r\n?/g,$5=/^\[\^([^\]]+)](:.*)\n/,G5=/^\[\^([^\]]+)]/,V5=/\f/g,Y5=/^\s*?\[(x|\s)\]/,o0=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,a0=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,l0=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Eh=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,X5=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,u0=/^)/,K5=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Th=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,Q5=/^\{.*\}$/,Z5=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,J5=/^<([^ >]+@[^ >]+)>/,eO=/^<([^ >]+:\/[^ >]+)>/,tO=/-([a-z])?/gi,h0=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,rO=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,iO=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,sO=/^\[([^\]]*)\] ?\[([^\]]*)\]/,nO=/(\[|\])/g,oO=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,aO=/\t/g,lO=/^ *\| */,uO=/(^ *\||\| *$)/g,hO=/ *$/,cO=/^ *:-+: *$/,dO=/^ *:-+ *$/,pO=/^ *-+: *$/,fO=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,gO=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,_O=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,mO=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,yO=/^\\([^0-9A-Za-z\s])/,xO=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,bO=/^\n+/,SO=/^([ \t]*)/,CO=/\\([^\\])/g,Zm=/ *\n+$/,AO=/(?:^|\n)( *)$/,Dh="(?:\\d+\\.)",Fh="(?:[*+-])";function c0(r){return"( *)("+(r===1?Dh:Fh)+") +"}var d0=c0(1),p0=c0(2);function f0(r){return new RegExp("^"+(r===1?d0:p0))}var vO=f0(1),wO=f0(2);function g0(r){return new RegExp("^"+(r===1?d0:p0)+"[^\\n]*(?:\\n(?!\\1"+(r===1?Dh:Fh)+" )[^\\n]*)*(\\n|$)","gm")}var _0=g0(1),m0=g0(2);function y0(r){let e=r===1?Dh:Fh;return new RegExp("^( *)("+e+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+e+" (?!"+e+" ))\\n*|\\s*\\n*$)")}var x0=y0(1),b0=y0(2);function Jm(r,e){let t=e===1,i=t?x0:b0,s=t?_0:m0,n=t?vO:wO;return{t(o,a,l){let d=AO.exec(l);return d&&(a.o||!a._&&!a.u)?i.exec(o=d[1]+o):null},i:he.HIGH,l(o,a,l){let d=t?+o[2]:void 0,p=o[0].replace(N5,` -`).match(s),_=!1;return{p:p.map(function(g,m){let A=n.exec(g)[0].length,C=new RegExp("^ {1,"+A+"}","gm"),v=g.replace(C,"").replace(n,""),w=m===p.length-1,D=v.indexOf(` - -`)!==-1||w&&_;_=D;let B=l._,F=l.o,E;l.o=!0,D?(l._=!1,E=v.replace(Zm,` - -`)):(l._=!0,E=v.replace(Zm,""));let O=a(E,l);return l._=B,l.o=F,O}),m:t,g:d}},h:(o,a,l)=>r(o.m?"ol":"ul",{key:l.k,start:o.g},o.p.map(function(d,p){return r("li",{key:p},a(d,l))}))}}var EO=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,TO=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,S0=[i0,s0,n0,o0,l0,a0,u0,h0,_0,x0,m0,b0],DO=[...S0,/^[^\n]+(?: \n|\n{2,})/,Eh,Th];function FO(r){return r.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function IO(r){return pO.test(r)?"right":cO.test(r)?"center":dO.test(r)?"left":null}function e0(r,e,t){let i=t.$;t.$=!0;let s=e(r.trim(),t);t.$=i;let n=[[]];return s.forEach(function(o,a){o.type==="tableSeparator"?a!==0&&a!==s.length-1&&n.push([]):(o.type!=="text"||s[a+1]!=null&&s[a+1].type!=="tableSeparator"||(o.v=o.v.replace(hO,"")),n[n.length-1].push(o))}),n}function BO(r,e,t){t._=!0;let i=e0(r[1],e,t),s=r[2].replace(uO,"").split("|").map(IO),n=function(o,a,l){return o.trim().split(` -`).map(function(d){return e0(d,a,l)})}(r[3],e,t);return t._=!1,{S:s,A:n,L:i,type:"table"}}function t0(r,e){return r.S[e]==null?{}:{textAlign:r.S[e]}}function Qt(r){return function(e,t){return t._?r.exec(e):null}}function Zt(r){return function(e,t){return t._||t.u?r.exec(e):null}}function kt(r){return function(e,t){return t._||t.u?null:r.exec(e)}}function _s(r){return function(e){return r.exec(e)}}function RO(r,e,t){if(e._||e.u||t&&!t.endsWith(` -`))return null;let i="";r.split(` -`).every(n=>!S0.some(o=>o.test(n))&&(i+=n+` -`,n.trim()));let s=i.trimEnd();return s==""?null:[i,s]}function Qr(r){try{if(decodeURIComponent(r).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return r}function r0(r){return r.replace(CO,"$1")}function Io(r,e,t){let i=t._||!1,s=t.u||!1;t._=!0,t.u=!0;let n=r(e,t);return t._=i,t.u=s,n}function PO(r,e,t){let i=t._||!1,s=t.u||!1;t._=!1,t.u=!0;let n=r(e,t);return t._=i,t.u=s,n}function OO(r,e,t){return t._=!1,r(e,t)}var Ch=(r,e,t)=>({v:Io(e,r[1],t)});function Ah(){return{}}function vh(){return null}function LO(...r){return r.filter(Boolean).join(" ")}function wh(r,e,t){let i=r,s=e.split(".");for(;s.length&&(i=i[s[0]],i!==void 0);)s.shift();return i||t}var he;function kO(r,e={}){e.overrides=e.overrides||{},e.slugify=e.slugify||FO,e.namedCodesToUnicode=e.namedCodesToUnicode?mr({},Qm,e.namedCodesToUnicode):Qm;let t=e.createElement||Ma;function i(m,A,...C){let v=wh(e.overrides,`${m}.props`,{});return t(function(w,D){let B=wh(D,w);return B?typeof B=="function"||typeof B=="object"&&"render"in B?B:wh(D,`${w}.component`,w):w}(m,e.overrides),mr({},A,v,{className:LO(A?.className,v.className)||void 0}),...C)}function s(m){let A=!1;e.forceInline?A=!0:e.forceBlock||(A=oO.test(m)===!1);let C=p(d(A?m:`${m.trimEnd().replace(bO,"")} - -`,{_:A}));for(;typeof C[C.length-1]=="string"&&!C[C.length-1].trim();)C.pop();if(e.wrapper===null)return C;let v=e.wrapper||(A?"span":"div"),w;if(C.length>1||e.forceWrapper)w=C;else{if(C.length===1)return w=C[0],typeof w=="string"?i("span",{key:"outer"},w):w;w=null}return Ma(v,{key:"outer"},w)}function n(m){let A=m.match(k5);return A?A.reduce(function(C,v,w){let D=v.indexOf("=");if(D!==-1){let B=function(M){return M.indexOf("-")!==-1&&M.match(K5)===null&&(M=M.replace(tO,function(W,$){return $.toUpperCase()})),M}(v.slice(0,D)).trim(),F=function(M){let W=M[0];return(W==='"'||W==="'")&&M.length>=2&&M[M.length-1]===W?M.slice(1,-1):M}(v.slice(D+1).trim()),E=Km[B]||B,O=C[E]=function(M,W){return M==="style"?W.split(/;\s?/).reduce(function($,j){let se=j.slice(0,j.indexOf(":"));return $[se.replace(/(-[a-z])/g,J=>J[1].toUpperCase())]=j.slice(se.length+1).trim(),$},{}):M==="href"?Qr(W):(W.match(Q5)&&(W=W.slice(1,W.length-1)),W==="true"||W!=="false"&&W)}(B,F);typeof O=="string"&&(Eh.test(O)||Th.test(O))&&(C[E]=Fe(s(O.trim()),{key:w}))}else v!=="style"&&(C[Km[v]||v]=!0);return C},{}):null}let o=[],a={},l={blockQuote:{t:kt(i0),i:he.HIGH,l:(m,A,C)=>({v:A(m[0].replace(z5,""),C)}),h:(m,A,C)=>i("blockquote",{key:C.k},A(m.v,C))},breakLine:{t:_s(U5),i:he.HIGH,l:Ah,h:(m,A,C)=>i("br",{key:C.k})},breakThematic:{t:kt(H5),i:he.HIGH,l:Ah,h:(m,A,C)=>i("hr",{key:C.k})},codeBlock:{t:kt(n0),i:he.MAX,l:m=>({v:m[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(m,A,C)=>i("pre",{key:C.k},i("code",mr({},m.O,{className:m.M?`lang-${m.M}`:""}),m.v))},codeFenced:{t:kt(s0),i:he.MAX,l:m=>({O:n(m[3]||""),v:m[4],M:m[2]||void 0,type:"codeBlock"})},codeInline:{t:Zt(W5),i:he.LOW,l:m=>({v:m[2]}),h:(m,A,C)=>i("code",{key:C.k},m.v)},footnote:{t:kt($5),i:he.MAX,l:m=>(o.push({I:m[2],j:m[1]}),{}),h:vh},footnoteReference:{t:Qt(G5),i:he.HIGH,l:m=>({v:m[1],B:`#${e.slugify(m[1])}`}),h:(m,A,C)=>i("a",{key:C.k,href:Qr(m.B)},i("sup",{key:C.k},m.v))},gfmTask:{t:Qt(Y5),i:he.HIGH,l:m=>({R:m[1].toLowerCase()==="x"}),h:(m,A,C)=>i("input",{checked:m.R,key:C.k,readOnly:!0,type:"checkbox"})},heading:{t:kt(e.enforceAtxHeadings?a0:o0),i:he.HIGH,l:(m,A,C)=>({v:Io(A,m[2],C),T:e.slugify(m[2]),C:m[1].length}),h:(m,A,C)=>i(`h${m.C}`,{id:m.T,key:C.k},A(m.v,C))},headingSetext:{t:kt(l0),i:he.MAX,l:(m,A,C)=>({v:Io(A,m[1],C),C:m[2]==="="?1:2,type:"heading"})},htmlComment:{t:_s(u0),i:he.HIGH,l:()=>({}),h:vh},image:{t:Zt(TO),i:he.HIGH,l:m=>({D:m[1],B:r0(m[2]),F:m[3]}),h:(m,A,C)=>i("img",{key:C.k,alt:m.D||void 0,title:m.F||void 0,src:Qr(m.B)})},link:{t:Qt(EO),i:he.LOW,l:(m,A,C)=>({v:PO(A,m[1],C),B:r0(m[2]),F:m[3]}),h:(m,A,C)=>i("a",{key:C.k,href:Qr(m.B),title:m.F},A(m.v,C))},linkAngleBraceStyleDetector:{t:Qt(eO),i:he.MAX,l:m=>({v:[{v:m[1],type:"text"}],B:m[1],type:"link"})},linkBareUrlDetector:{t:(m,A)=>A.N?null:Qt(Z5)(m,A),i:he.MAX,l:m=>({v:[{v:m[1],type:"text"}],B:m[1],F:void 0,type:"link"})},linkMailtoDetector:{t:Qt(J5),i:he.MAX,l(m){let A=m[1],C=m[1];return M5.test(C)||(C="mailto:"+C),{v:[{v:A.replace("mailto:",""),type:"text"}],B:C,type:"link"}}},orderedList:Jm(i,1),unorderedList:Jm(i,2),newlineCoalescer:{t:kt(j5),i:he.LOW,l:Ah,h:()=>` -`},paragraph:{t:RO,i:he.LOW,l:Ch,h:(m,A,C)=>i("p",{key:C.k},A(m.v,C))},ref:{t:Qt(rO),i:he.MAX,l:m=>(a[m[1]]={B:m[2],F:m[4]},{}),h:vh},refImage:{t:Zt(iO),i:he.MAX,l:m=>({D:m[1]||void 0,P:m[2]}),h:(m,A,C)=>i("img",{key:C.k,alt:m.D,src:Qr(a[m.P].B),title:a[m.P].F})},refLink:{t:Qt(sO),i:he.MAX,l:(m,A,C)=>({v:A(m[1],C),Z:A(m[0].replace(nO,"\\$1"),C),P:m[2]}),h:(m,A,C)=>a[m.P]?i("a",{key:C.k,href:Qr(a[m.P].B),title:a[m.P].F},A(m.v,C)):i("span",{key:C.k},A(m.Z,C))},table:{t:kt(h0),i:he.HIGH,l:BO,h:(m,A,C)=>i("table",{key:C.k},i("thead",null,i("tr",null,m.L.map(function(v,w){return i("th",{key:w,style:t0(m,w)},A(v,C))}))),i("tbody",null,m.A.map(function(v,w){return i("tr",{key:w},v.map(function(D,B){return i("td",{key:B,style:t0(m,B)},A(D,C))}))})))},tableSeparator:{t:function(m,A){return A.$?(A._=!0,lO.exec(m)):null},i:he.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:_s(xO),i:he.MIN,l:m=>({v:m[0].replace(X5,(A,C)=>e.namedCodesToUnicode[C]?e.namedCodesToUnicode[C]:A)}),h:m=>m.v},textBolded:{t:Zt(fO),i:he.MED,l:(m,A,C)=>({v:A(m[2],C)}),h:(m,A,C)=>i("strong",{key:C.k},A(m.v,C))},textEmphasized:{t:Zt(gO),i:he.LOW,l:(m,A,C)=>({v:A(m[2],C)}),h:(m,A,C)=>i("em",{key:C.k},A(m.v,C))},textEscaped:{t:Zt(yO),i:he.HIGH,l:m=>({v:m[1],type:"text"})},textMarked:{t:Zt(_O),i:he.LOW,l:Ch,h:(m,A,C)=>i("mark",{key:C.k},A(m.v,C))},textStrikethroughed:{t:Zt(mO),i:he.LOW,l:Ch,h:(m,A,C)=>i("del",{key:C.k},A(m.v,C))}};e.disableParsingRawHTML!==!0&&(l.htmlBlock={t:_s(Eh),i:he.HIGH,l(m,A,C){let[,v]=m[3].match(SO),w=new RegExp(`^${v}`,"gm"),D=m[3].replace(w,""),B=(F=D,DO.some(W=>W.test(F))?OO:Io);var F;let E=m[1].toLowerCase(),O=L5.indexOf(E)!==-1;C.N=C.N||E==="a";let M=O?m[3]:B(A,D,C);return C.N=!1,{O:n(m[2]),v:M,G:O,H:O?E:m[1]}},h:(m,A,C)=>i(m.H,mr({key:C.k},m.O),m.G?m.v:A(m.v,C))},l.htmlSelfClosing={t:_s(Th),i:he.HIGH,l:m=>({O:n(m[2]||""),H:m[1]}),h:(m,A,C)=>i(m.H,mr({},m.O,{key:C.k}))});let d=function(m){let A=Object.keys(m);function C(v,w){let D=[],B="";for(;v;){let F=0;for(;F{let{children:e,options:t}=r,i=function(s,n){if(s==null)return{};var o,a,l={},d=Object.keys(s);for(a=0;a=0||(l[o]=s[o]);return l}(r,O5);return Fe(kO(e,t),i)};var A1=Ce(Bo(),1),v1=Ce(j0(),1),w1=Ce(Yy(),1);u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();u();h();c();var WAe=__STORYBOOK_CHANNELS__,{Channel:Rh,PostMessageTransport:jAe,WebsocketTransport:qAe,createBrowserChannel:D3,createPostMessageChannel:$Ae,createWebSocketChannel:GAe}=__STORYBOOK_CHANNELS__;u();h();c();var QAe=__STORYBOOK_CORE_EVENTS__,{CHANNEL_CREATED:ZAe,CONFIG_ERROR:F3,CURRENT_STORY_WAS_SET:I3,DOCS_PREPARED:B3,DOCS_RENDERED:R3,FORCE_REMOUNT:P3,FORCE_RE_RENDER:Ph,GLOBALS_UPDATED:Oo,IGNORED_EXCEPTION:JAe,NAVIGATE_URL:Xy,PLAY_FUNCTION_THREW_EXCEPTION:O3,PRELOAD_ENTRIES:L3,PREVIEW_BUILDER_PROGRESS:e2e,PREVIEW_KEYDOWN:k3,REGISTER_SUBSCRIPTION:t2e,REQUEST_WHATS_NEW_DATA:r2e,RESET_STORY_ARGS:Lo,RESULT_WHATS_NEW_DATA:i2e,SELECT_STORY:s2e,SET_CONFIG:n2e,SET_CURRENT_STORY:M3,SET_GLOBALS:N3,SET_INDEX:z3,SET_STORIES:o2e,SET_WHATS_NEW_CACHE:a2e,SHARED_STATE_CHANGED:U3,SHARED_STATE_SET:H3,STORIES_COLLAPSE_ALL:l2e,STORIES_EXPAND_ALL:u2e,STORY_ARGS_UPDATED:ko,STORY_CHANGED:W3,STORY_ERRORED:j3,STORY_INDEX_INVALIDATED:q3,STORY_MISSING:$3,STORY_PREPARED:G3,STORY_RENDERED:Ky,STORY_RENDER_PHASE_CHANGED:V3,STORY_SPECIFIED:Y3,STORY_THREW_EXCEPTION:X3,STORY_UNCHANGED:K3,TELEMETRY_ERROR:h2e,TOGGLE_WHATS_NEW_NOTIFICATIONS:c2e,UPDATE_GLOBALS:Qy,UPDATE_QUERY_PARAMS:Q3,UPDATE_STORY_ARGS:Mo}=__STORYBOOK_CORE_EVENTS__;var Z3=Object.create,Zy=Object.defineProperty,J3=Object.getOwnPropertyDescriptor,Jy=Object.getOwnPropertyNames,eM=Object.getPrototypeOf,tM=Object.prototype.hasOwnProperty,Ct=(r,e)=>function(){return e||(0,r[Jy(r)[0]])((e={exports:{}}).exports,e),e.exports},rM=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Jy(e))!tM.call(r,s)&&s!==t&&Zy(r,s,{get:()=>e[s],enumerable:!(i=J3(e,s))||i.enumerable});return r},ex=(r,e,t)=>(t=r!=null?Z3(eM(r)):{},rM(e||!r||!r.__esModule?Zy(t,"default",{value:r,enumerable:!0}):t,r));function tx(){let r={setHandler:()=>{},send:()=>{}};return new Rh({transport:r})}var iM=class{constructor(){this.getChannel=()=>{if(!this.channel){let r=tx();return this.setChannel(r),r}return this.channel},this.getServerChannel=()=>{if(!this.serverChannel)throw new Error("Accessing non-existent serverChannel");return this.serverChannel},this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel,this.hasServerChannel=()=>!!this.serverChannel,this.setChannel=r=>{this.channel=r,this.resolve()},this.setServerChannel=r=>{this.serverChannel=r},this.promise=new Promise(r=>{this.resolve=()=>r(this.getChannel())})}},Oh="__STORYBOOK_ADDONS_PREVIEW";function sM(){return fe[Oh]||(fe[Oh]=new iM),fe[Oh]}var No=sM();var Xx=Ce(Bo(),1),Ss=Ce(zo(),1),g4=Ce(Mx(),1),_4=Ce(Ho(),1);u();h();c();u();h();c();u();h();c();function Jr(r){for(var e=[],t=1;t(r.PREVIEW_CLIENT_LOGGER="PREVIEW_CLIENT-LOGGER",r.PREVIEW_CHANNELS="PREVIEW_CHANNELS",r.PREVIEW_CORE_EVENTS="PREVIEW_CORE-EVENTS",r.PREVIEW_INSTRUMENTER="PREVIEW_INSTRUMENTER",r.PREVIEW_API="PREVIEW_API",r.PREVIEW_REACT_DOM_SHIM="PREVIEW_REACT-DOM-SHIM",r.PREVIEW_ROUTER="PREVIEW_ROUTER",r.PREVIEW_THEMING="PREVIEW_THEMING",r.RENDERER_HTML="RENDERER_HTML",r.RENDERER_PREACT="RENDERER_PREACT",r.RENDERER_REACT="RENDERER_REACT",r.RENDERER_SERVER="RENDERER_SERVER",r.RENDERER_SVELTE="RENDERER_SVELTE",r.RENDERER_VUE="RENDERER_VUE",r.RENDERER_VUE3="RENDERER_VUE3",r.RENDERER_WEB_COMPONENTS="RENDERER_WEB-COMPONENTS",r))(YM||{});u();h();c();var $o=Ce(Lh(),1);var Kx=Ce(Vx(),1);var Qx=Ce(bh(),1);var Cwe=(0,Xx.default)(1)(r=>Object.values(r).reduce((e,t)=>(e[t.importPath]=e[t.importPath]||t,e),{}));var Awe=Symbol("incompatible");var vwe=Symbol("Deeply equal");var m4=Jr` -CSF .story annotations deprecated; annotate story functions directly: -- StoryFn.story.name => StoryFn.storyName -- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators) -See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod. -`,wwe=(0,Kx.default)(()=>{},m4);var yr=(...r)=>{let e={},t=r.filter(Boolean),i=t.reduce((s,n)=>(Object.entries(n).forEach(([o,a])=>{let l=s[o];Array.isArray(a)||typeof l>"u"?s[o]=a:(0,$o.default)(a)&&(0,$o.default)(l)?e[o]=!0:typeof a<"u"&&(s[o]=a)}),s),{});return Object.keys(e).forEach(s=>{let n=t.filter(Boolean).map(o=>o[s]).filter(o=>typeof o<"u");n.every(o=>(0,$o.default)(o))?i[s]=yr(...n):i[s]=n[n.length-1]}),i};var Mh=(r,e,t)=>{let i=typeof r;switch(i){case"boolean":case"string":case"number":case"function":case"symbol":return{name:i}}return r?t.has(r)?(nt.warn(Jr` - We've detected a cycle in arg '${e}'. Args should be JSON-serializable. - - Consider using the mapping feature or fully custom args: - - Mapping: https://storybook.js.org/docs/react/writing-stories/args#mapping-to-complex-arg-values - - Custom args: https://storybook.js.org/docs/react/essentials/controls#fully-custom-args - `),{name:"other",value:"cyclic object"}):(t.add(r),Array.isArray(r)?{name:"array",value:r.length>0?Mh(r[0],e,new Set(t)):{name:"other",value:"unknown"}}:{name:"object",value:(0,Ss.default)(r,s=>Mh(s,e,new Set(t)))}):{name:"object",value:{}}},y4=r=>{let{id:e,argTypes:t={},initialArgs:i={}}=r,s=(0,Ss.default)(i,(o,a)=>({name:a,type:Mh(o,`${e}.${a}`,new Set)})),n=(0,Ss.default)(t,(o,a)=>({name:a}));return yr(s,n,t)};y4.secondPass=!0;var Yx=(r,e)=>Array.isArray(e)?e.includes(r):r.match(e),As=(r,e,t)=>!e&&!t?r:r&&(0,Qx.default)(r,(i,s)=>{let n=i.name||s;return(!e||Yx(n,e))&&(!t||!Yx(n,t))}),x4=(r,e,t)=>{let{type:i,options:s}=r;if(i){if(t.color&&t.color.test(e)){let n=i.name;if(n==="string")return{control:{type:"color"}};n!=="enum"&&nt.warn(`Addon controls: Control of type color only supports string, received "${n}" instead`)}if(t.date&&t.date.test(e))return{control:{type:"date"}};switch(i.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:n}=i;return{control:{type:n?.length<=5?"radio":"select"},options:n}}case"function":case"symbol":return null;default:return{control:{type:s?"select":"object"}}}}},Zx=r=>{let{argTypes:e,parameters:{__isArgsStory:t,controls:{include:i=null,exclude:s=null,matchers:n={}}={}}}=r;if(!t)return e;let o=As(e,i,s),a=(0,Ss.default)(o,(l,d)=>l?.type&&x4(l,d,n));return yr(a,o)};Zx.secondPass=!0;function Nh(r){return async(e,t,i)=>{await r.reduceRight((s,n)=>async()=>n(e,s,i),async()=>t(i))()}}function Cs(r,e){return r.map(t=>t.default?.[e]??t[e]).filter(Boolean)}function Wo(r,e,t={}){return Cs(r,e).reduce((i,s)=>t.reverseFileOrder?[...s,...i]:[...i,...s],[])}function jo(r,e){return Object.assign({},...Cs(r,e))}function qo(r,e){return Cs(r,e).pop()}function zh(r){let e=Wo(r,"argTypesEnhancers"),t=Cs(r,"runStep");return{parameters:yr(...Cs(r,"parameters")),decorators:Wo(r,"decorators",{reverseFileOrder:!(fe.FEATURES?.legacyDecoratorFileOrder??!1)}),args:jo(r,"args"),argsEnhancers:Wo(r,"argsEnhancers"),argTypes:jo(r,"argTypes"),argTypesEnhancers:[...e.filter(i=>!i.secondPass),...e.filter(i=>i.secondPass)],globals:jo(r,"globals"),globalTypes:jo(r,"globalTypes"),loaders:Wo(r,"loaders"),render:qo(r,"render"),renderToCanvas:qo(r,"renderToCanvas"),renderToDOM:qo(r,"renderToDOM"),applyDecorators:qo(r,"applyDecorators"),runStep:Nh(t)}}var Ewe=zh([]);var fN=Ce(Ho(),1),gN=Ce(pc(),1);u();h();c();var mN=Ce(Ho(),1);var yN=Ce(pc(),1),xN=Ce(Lh(),1),CS=Ct({"../../node_modules/entities/lib/maps/entities.json"(r,e){e.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` -`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}}}),bN=Ct({"../../node_modules/entities/lib/maps/legacy.json"(r,e){e.exports={Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",AElig:"\xC6",aelig:"\xE6",Agrave:"\xC0",agrave:"\xE0",amp:"&",AMP:"&",Aring:"\xC5",aring:"\xE5",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",brvbar:"\xA6",Ccedil:"\xC7",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",COPY:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Egrave:"\xC8",egrave:"\xE8",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",GT:">",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",iexcl:"\xA1",Igrave:"\xCC",igrave:"\xEC",iquest:"\xBF",Iuml:"\xCF",iuml:"\xEF",laquo:"\xAB",lt:"<",LT:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",Ntilde:"\xD1",ntilde:"\xF1",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Ograve:"\xD2",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",Oslash:"\xD8",oslash:"\xF8",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',QUOT:'"',raquo:"\xBB",reg:"\xAE",REG:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",THORN:"\xDE",thorn:"\xFE",times:"\xD7",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Ugrave:"\xD9",ugrave:"\xF9",uml:"\xA8",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}}}),AS=Ct({"../../node_modules/entities/lib/maps/xml.json"(r,e){e.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}}),SN=Ct({"../../node_modules/entities/lib/maps/decode.json"(r,e){e.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}}),CN=Ct({"../../node_modules/entities/lib/decode_codepoint.js"(r){var e=r&&r.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(r,"__esModule",{value:!0});var t=e(SN()),i=String.fromCodePoint||function(n){var o="";return n>65535&&(n-=65536,o+=String.fromCharCode(n>>>10&1023|55296),n=56320|n&1023),o+=String.fromCharCode(n),o};function s(n){return n>=55296&&n<=57343||n>1114111?"\uFFFD":(n in t.default&&(n=t.default[n]),i(n))}r.default=s}}),bS=Ct({"../../node_modules/entities/lib/decode.js"(r){var e=r&&r.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(r,"__esModule",{value:!0}),r.decodeHTML=r.decodeHTMLStrict=r.decodeXML=void 0;var t=e(CS()),i=e(bN()),s=e(AS()),n=e(CN()),o=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;r.decodeXML=a(s.default),r.decodeHTMLStrict=a(t.default);function a(p){var _=d(p);return function(g){return String(g).replace(o,_)}}var l=function(p,_){return p<_?1:-1};r.decodeHTML=function(){for(var p=Object.keys(i.default).sort(l),_=Object.keys(t.default).sort(l),g=0,m=0;g<_.length;g++)p[m]===_[g]?(_[g]+=";?",m++):_[g]+=";";var A=new RegExp("&(?:"+_.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),C=d(t.default);function v(w){return w.substr(-1)!==";"&&(w+=";"),C(w)}return function(w){return String(w).replace(A,v)}}();function d(p){return function(_){if(_.charAt(1)==="#"){var g=_.charAt(2);return g==="X"||g==="x"?n.default(parseInt(_.substr(3),16)):n.default(parseInt(_.substr(2),10))}return p[_.slice(1,-1)]||_}}}}),SS=Ct({"../../node_modules/entities/lib/encode.js"(r){var e=r&&r.__importDefault||function(D){return D&&D.__esModule?D:{default:D}};Object.defineProperty(r,"__esModule",{value:!0}),r.escapeUTF8=r.escape=r.encodeNonAsciiHTML=r.encodeHTML=r.encodeXML=void 0;var t=e(AS()),i=l(t.default),s=d(i);r.encodeXML=w(i);var n=e(CS()),o=l(n.default),a=d(o);r.encodeHTML=m(o,a),r.encodeNonAsciiHTML=w(o);function l(D){return Object.keys(D).sort().reduce(function(B,F){return B[D[F]]="&"+F+";",B},{})}function d(D){for(var B=[],F=[],E=0,O=Object.keys(D);E1?_(D):D.charCodeAt(0)).toString(16).toUpperCase()+";"}function m(D,B){return function(F){return F.replace(B,function(E){return D[E]}).replace(p,g)}}var A=new RegExp(s.source+"|"+p.source,"g");function C(D){return D.replace(A,g)}r.escape=C;function v(D){return D.replace(s,g)}r.escapeUTF8=v;function w(D){return function(B){return B.replace(A,function(F){return D[F]||g(F)})}}}}),AN=Ct({"../../node_modules/entities/lib/index.js"(r){Object.defineProperty(r,"__esModule",{value:!0}),r.decodeXMLStrict=r.decodeHTML5Strict=r.decodeHTML4Strict=r.decodeHTML5=r.decodeHTML4=r.decodeHTMLStrict=r.decodeHTML=r.decodeXML=r.encodeHTML5=r.encodeHTML4=r.escapeUTF8=r.escape=r.encodeNonAsciiHTML=r.encodeHTML=r.encodeXML=r.encode=r.decodeStrict=r.decode=void 0;var e=bS(),t=SS();function i(l,d){return(!d||d<=0?e.decodeXML:e.decodeHTML)(l)}r.decode=i;function s(l,d){return(!d||d<=0?e.decodeXML:e.decodeHTMLStrict)(l)}r.decodeStrict=s;function n(l,d){return(!d||d<=0?t.encodeXML:t.encodeHTML)(l)}r.encode=n;var o=SS();Object.defineProperty(r,"encodeXML",{enumerable:!0,get:function(){return o.encodeXML}}),Object.defineProperty(r,"encodeHTML",{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(r,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return o.encodeNonAsciiHTML}}),Object.defineProperty(r,"escape",{enumerable:!0,get:function(){return o.escape}}),Object.defineProperty(r,"escapeUTF8",{enumerable:!0,get:function(){return o.escapeUTF8}}),Object.defineProperty(r,"encodeHTML4",{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(r,"encodeHTML5",{enumerable:!0,get:function(){return o.encodeHTML}});var a=bS();Object.defineProperty(r,"decodeXML",{enumerable:!0,get:function(){return a.decodeXML}}),Object.defineProperty(r,"decodeHTML",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(r,"decodeHTMLStrict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(r,"decodeHTML4",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(r,"decodeHTML5",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(r,"decodeHTML4Strict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(r,"decodeHTML5Strict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(r,"decodeXMLStrict",{enumerable:!0,get:function(){return a.decodeXML}})}}),vN=Ct({"../../node_modules/ansi-to-html/lib/ansi_to_html.js"(r,e){function t(L,R){if(!(L instanceof R))throw new TypeError("Cannot call a class as a function")}function i(L,R){for(var H=0;H"u"||L[Symbol.iterator]==null){if(Array.isArray(L)||(L=o(L))){var R=0,H=function(){};return{s:H,n:function(){return R>=L.length?{done:!0}:{done:!1,value:L[R++]}},e:function(ye){throw ye},f:H}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var V,Z=!0,K=!1,ae;return{s:function(){V=L[Symbol.iterator]()},n:function(){var ye=V.next();return Z=ye.done,ye},e:function(ye){K=!0,ae=ye},f:function(){try{!Z&&V.return!=null&&V.return()}finally{if(K)throw ae}}}}function o(L,R){if(L){if(typeof L=="string")return a(L,R);var H=Object.prototype.toString.call(L).slice(8,-1);if(H==="Object"&&L.constructor&&(H=L.constructor.name),H==="Map"||H==="Set")return Array.from(H);if(H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return a(L,R)}}function a(L,R){(R==null||R>L.length)&&(R=L.length);for(var H=0,V=new Array(R);H0?L*40+55:0,ae=R>0?R*40+55:0,ye=H>0?H*40+55:0;V[Z]=m([K,ae,ye])}function g(L){for(var R=L.toString(16);R.length<2;)R="0"+R;return R}function m(L){var R=[],H=n(L),V;try{for(H.s();!(V=H.n()).done;){var Z=V.value;R.push(g(Z))}}catch(K){H.e(K)}finally{H.f()}return"#"+R.join("")}function A(L,R,H,V){var Z;return R==="text"?Z=E(H,V):R==="display"?Z=v(L,H,V):R==="xterm256"?Z=W(L,V.colors[H]):R==="rgb"&&(Z=C(L,H)),Z}function C(L,R){R=R.substring(2).slice(0,-1);var H=+R.substr(0,2),V=R.substring(5).split(";"),Z=V.map(function(K){return("0"+Number(K).toString(16)).substr(-2)}).join("");return M(L,(H===38?"color:#":"background-color:#")+Z)}function v(L,R,H){R=parseInt(R,10);var V={"-1":function(){return"
"},0:function(){return L.length&&w(L)},1:function(){return O(L,"b")},3:function(){return O(L,"i")},4:function(){return O(L,"u")},8:function(){return M(L,"display:none")},9:function(){return O(L,"strike")},22:function(){return M(L,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return j(L,"i")},24:function(){return j(L,"u")},39:function(){return W(L,H.fg)},49:function(){return $(L,H.bg)},53:function(){return M(L,"text-decoration:overline")}},Z;return V[R]?Z=V[R]():4"}).join("")}function D(L,R){for(var H=[],V=L;V<=R;V++)H.push(V);return H}function B(L){return function(R){return(L===null||R.category!==L)&&L!=="all"}}function F(L){L=parseInt(L,10);var R=null;return L===0?R="all":L===1?R="bold":2")}function M(L,R){return O(L,"span",R)}function W(L,R){return O(L,"span","color:"+R)}function $(L,R){return O(L,"span","background-color:"+R)}function j(L,R){var H;if(L.slice(-1)[0]===R&&(H=L.pop()),H)return""}function se(L,R,H){var V=!1,Z=3;function K(){return""}function ae(_e,Oe){return H("xterm256",Oe),""}function ye(_e){return R.newline?H("display",-1):H("text",_e),""}function it(_e,Oe){V=!0,Oe.trim().length===0&&(Oe="0"),Oe=Oe.trimRight(";").split(";");var Hs=n(Oe),Qc;try{for(Hs.s();!(Qc=Hs.n()).done;){var X1=Qc.value;H("display",X1)}}catch(K1){Hs.e(K1)}finally{Hs.f()}return""}function st(_e){return H("text",_e),""}function ee(_e){return H("rgb",_e),""}var pt=[{pattern:/^\x08+/,sub:K},{pattern:/^\x1b\[[012]?K/,sub:K},{pattern:/^\x1b\[\(B/,sub:K},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:ee},{pattern:/^\x1b\[38;5;(\d+)m/,sub:ae},{pattern:/^\n/,sub:ye},{pattern:/^\r+\n/,sub:ye},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:it},{pattern:/^\x1b\[\d?J/,sub:K},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:K},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:K},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:st}];function I(_e,Oe){Oe>Z&&V||(V=!1,L=L.replace(_e.pattern,_e.sub))}var k=[],N=L,P=N.length;e:for(;P>0;){for(var q=0,G=0,Te=pt.length;G(r.MAIN="MAIN",r.NOPREVIEW="NOPREVIEW",r.PREPARING_STORY="PREPARING_STORY",r.PREPARING_DOCS="PREPARING_DOCS",r.ERROR="ERROR",r))(EN||{});var BTe=new wN.default({escapeXML:!0});var{document:RTe}=fe;var{FEATURES:qTe}=fe;u();h();c();var E1=Ce(zo(),1);u();h();c();var PN=Ce(zo(),1),ON=Ce(PS(),1);var LN=(r=>(r.JAVASCRIPT="JavaScript",r.FLOW="Flow",r.TYPESCRIPT="TypeScript",r.UNKNOWN="Unknown",r))(LN||{});var OS="storybook/docs",AFe=`${OS}/panel`;var kN=`${OS}/snippet-rendered`,LS=(r=>(r.AUTO="auto",r.CODE="code",r.DYNAMIC="dynamic",r))(LS||{});u();h();c();u();h();c();var MN=Object.create,kS=Object.defineProperty,NN=Object.getOwnPropertyDescriptor,MS=Object.getOwnPropertyNames,zN=Object.getPrototypeOf,UN=Object.prototype.hasOwnProperty,ht=(r,e)=>function(){return e||(0,r[MS(r)[0]])((e={exports:{}}).exports,e),e.exports},HN=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of MS(e))!UN.call(r,s)&&s!==t&&kS(r,s,{get:()=>e[s],enumerable:!(i=NN(e,s))||i.enumerable});return r},na=(r,e,t)=>(t=r!=null?MN(zN(r)):{},HN(e||!r||!r.__esModule?kS(t,"default",{value:r,enumerable:!0}):t,r)),WN=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],jN=["detail"];function NS(r){let e=WN.filter(t=>r[t]!==void 0).reduce((t,i)=>({...t,[i]:r[i]}),{});return r instanceof CustomEvent&&jN.filter(t=>r[t]!==void 0).forEach(t=>{e[t]=r[t]}),e}var JS=Ce(Bo(),1),qS=ht({"node_modules/has-symbols/shams.js"(r,e){"use strict";e.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var i={},s=Symbol("test"),n=Object(s);if(typeof s=="string"||Object.prototype.toString.call(s)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;i[s]=o;for(s in i)return!1;if(typeof Object.keys=="function"&&Object.keys(i).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(i).length!==0)return!1;var a=Object.getOwnPropertySymbols(i);if(a.length!==1||a[0]!==s||!Object.prototype.propertyIsEnumerable.call(i,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(i,s);if(l.value!==o||l.enumerable!==!0)return!1}return!0}}}),$S=ht({"node_modules/has-symbols/index.js"(r,e){"use strict";var t=typeof Symbol<"u"&&Symbol,i=qS();e.exports=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:i()}}}),qN=ht({"node_modules/function-bind/implementation.js"(r,e){"use strict";var t="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,s=Object.prototype.toString,n="[object Function]";e.exports=function(a){var l=this;if(typeof l!="function"||s.call(l)!==n)throw new TypeError(t+l);for(var d=i.call(arguments,1),p,_=function(){if(this instanceof p){var v=l.apply(this,d.concat(i.call(arguments)));return Object(v)===v?v:this}else return l.apply(a,d.concat(i.call(arguments)))},g=Math.max(0,l.length-d.length),m=[],A=0;A"u"?t:_(Uint8Array),A={"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":p?_([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":g,"%AsyncGenerator%":g,"%AsyncGeneratorFunction%":g,"%AsyncIteratorPrototype%":g,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":g,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?_(_([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!p?t:_(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!p?t:_(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?_(""[Symbol.iterator]()):t,"%Symbol%":p?Symbol:t,"%SyntaxError%":i,"%ThrowTypeError%":d,"%TypedArray%":m,"%TypeError%":n,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet},C=function J(Q){var L;if(Q==="%AsyncFunction%")L=o("async function () {}");else if(Q==="%GeneratorFunction%")L=o("function* () {}");else if(Q==="%AsyncGeneratorFunction%")L=o("async function* () {}");else if(Q==="%AsyncGenerator%"){var R=J("%AsyncGeneratorFunction%");R&&(L=R.prototype)}else if(Q==="%AsyncIteratorPrototype%"){var H=J("%AsyncGenerator%");H&&(L=_(H.prototype))}return A[Q]=L,L},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=yc(),D=$N(),B=w.call(Function.call,Array.prototype.concat),F=w.call(Function.apply,Array.prototype.splice),E=w.call(Function.call,String.prototype.replace),O=w.call(Function.call,String.prototype.slice),M=w.call(Function.call,RegExp.prototype.exec),W=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$=/\\(\\)?/g,j=function(Q){var L=O(Q,0,1),R=O(Q,-1);if(L==="%"&&R!=="%")throw new i("invalid intrinsic syntax, expected closing `%`");if(R==="%"&&L!=="%")throw new i("invalid intrinsic syntax, expected opening `%`");var H=[];return E(Q,W,function(V,Z,K,ae){H[H.length]=K?E(ae,$,"$1"):Z||V}),H},se=function(Q,L){var R=Q,H;if(D(v,R)&&(H=v[R],R="%"+H[0]+"%"),D(A,R)){var V=A[R];if(V===g&&(V=C(R)),typeof V>"u"&&!L)throw new n("intrinsic "+Q+" exists, but is not available. Please file an issue!");return{alias:H,name:R,value:V}}throw new i("intrinsic "+Q+" does not exist!")};e.exports=function(Q,L){if(typeof Q!="string"||Q.length===0)throw new n("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof L!="boolean")throw new n('"allowMissing" argument must be a boolean');if(M(/^%?[^%]*%?$/,Q)===null)throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var R=j(Q),H=R.length>0?R[0]:"",V=se("%"+H+"%",L),Z=V.name,K=V.value,ae=!1,ye=V.alias;ye&&(H=ye[0],F(R,B([0,1],ye)));for(var it=1,st=!0;it=R.length){var k=a(K,ee);st=!!k,st&&"get"in k&&!("originalValue"in k.get)?K=k.get:K=K[ee]}else st=D(K,ee),K=K[ee];st&&!ae&&(A[Z]=K)}}return K}}}),GN=ht({"node_modules/call-bind/index.js"(r,e){"use strict";var t=yc(),i=GS(),s=i("%Function.prototype.apply%"),n=i("%Function.prototype.call%"),o=i("%Reflect.apply%",!0)||t.call(n,s),a=i("%Object.getOwnPropertyDescriptor%",!0),l=i("%Object.defineProperty%",!0),d=i("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}e.exports=function(g){var m=o(t,n,arguments);if(a&&l){var A=a(m,"length");A.configurable&&l(m,"length",{value:1+d(0,g.length-(arguments.length-1))})}return m};var p=function(){return o(t,s,arguments)};l?l(e.exports,"apply",{value:p}):e.exports.apply=p}}),VN=ht({"node_modules/call-bind/callBound.js"(r,e){"use strict";var t=GS(),i=GN(),s=i(t("String.prototype.indexOf"));e.exports=function(o,a){var l=t(o,!!a);return typeof l=="function"&&s(o,".prototype.")>-1?i(l):l}}}),YN=ht({"node_modules/has-tostringtag/shams.js"(r,e){"use strict";var t=qS();e.exports=function(){return t()&&!!Symbol.toStringTag}}}),XN=ht({"node_modules/is-regex/index.js"(r,e){"use strict";var t=VN(),i=YN()(),s,n,o,a;i&&(s=t("Object.prototype.hasOwnProperty"),n=t("RegExp.prototype.exec"),o={},l=function(){throw o},a={toString:l,valueOf:l},typeof Symbol.toPrimitive=="symbol"&&(a[Symbol.toPrimitive]=l));var l,d=t("Object.prototype.toString"),p=Object.getOwnPropertyDescriptor,_="[object RegExp]";e.exports=i?function(m){if(!m||typeof m!="object")return!1;var A=p(m,"lastIndex"),C=A&&s(A,"value");if(!C)return!1;try{n(m,a)}catch(v){return v===o}}:function(m){return!m||typeof m!="object"&&typeof m!="function"?!1:d(m)===_}}}),KN=ht({"node_modules/is-function/index.js"(r,e){e.exports=i;var t=Object.prototype.toString;function i(s){if(!s)return!1;var n=t.call(s);return n==="[object Function]"||typeof s=="function"&&n!=="[object RegExp]"||typeof window<"u"&&(s===window.setTimeout||s===window.alert||s===window.confirm||s===window.prompt)}}}),QN=ht({"node_modules/is-symbol/index.js"(r,e){"use strict";var t=Object.prototype.toString,i=$S()();i?(s=Symbol.prototype.toString,n=/^Symbol\(.*\)$/,o=function(l){return typeof l.valueOf()!="symbol"?!1:n.test(s.call(l))},e.exports=function(l){if(typeof l=="symbol")return!0;if(t.call(l)!=="[object Symbol]")return!1;try{return o(l)}catch{return!1}}):e.exports=function(l){return!1};var s,n,o}}),ZN=na(XN()),JN=na(KN()),e8=na(QN());function t8(r){return r!=null&&typeof r=="object"&&Array.isArray(r)===!1}var r8=typeof window=="object"&&window&&window.Object===Object&&window,i8=r8,s8=typeof self=="object"&&self&&self.Object===Object&&self,n8=i8||s8||Function("return this")(),xc=n8,o8=xc.Symbol,ui=o8,VS=Object.prototype,a8=VS.hasOwnProperty,l8=VS.toString,Ps=ui?ui.toStringTag:void 0;function u8(r){var e=a8.call(r,Ps),t=r[Ps];try{r[Ps]=void 0;var i=!0}catch{}var s=l8.call(r);return i&&(e?r[Ps]=t:delete r[Ps]),s}var h8=u8,c8=Object.prototype,d8=c8.toString;function p8(r){return d8.call(r)}var f8=p8,g8="[object Null]",_8="[object Undefined]",zS=ui?ui.toStringTag:void 0;function m8(r){return r==null?r===void 0?_8:g8:zS&&zS in Object(r)?h8(r):f8(r)}var YS=m8;function y8(r){return r!=null&&typeof r=="object"}var x8=y8,b8="[object Symbol]";function S8(r){return typeof r=="symbol"||x8(r)&&YS(r)==b8}var bc=S8;function C8(r,e){for(var t=-1,i=r==null?0:r.length,s=Array(i);++t-1}var Rz=Bz;function Pz(r,e){var t=this.__data__,i=aa(t,r);return i<0?(++this.size,t.push([r,e])):t[i][1]=e,this}var Oz=Pz;function ci(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e{let e=null,t=!1,i=!1,s=!1,n="";if(r.indexOf("//")>=0||r.indexOf("/*")>=0)for(let o=0;om9(r).replace(/\n\s*/g,"").trim()),x9=function(e,t){let i=t.slice(0,t.indexOf("{")),s=t.slice(t.indexOf("{"));if(i.includes("=>")||i.includes("function"))return t;let n=i;return n=n.replace(e,"function"),n+s},b9=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,S9=r=>r.match(/^[\[\{\"\}].*[\]\}\"]$/);function eC(r){if(!oa(r))return r;let e=r,t=!1;return typeof Event<"u"&&r instanceof Event&&(e=NS(e),t=!0),e=Object.keys(e).reduce((i,s)=>{try{e[s]&&e[s].toJSON,i[s]=e[s]}catch{t=!0}return i},{}),t?e:r}var C9=function(e){let t,i,s,n;return function(a,l){try{if(a==="")return n=[],t=new Map([[l,"[]"]]),i=new Map,s=[],l;let d=i.get(this)||this;for(;s.length&&d!==s[0];)s.shift(),n.pop();if(typeof l=="boolean")return l;if(l===void 0)return e.allowUndefined?"_undefined_":void 0;if(l===null)return null;if(typeof l=="number")return l===-1/0?"_-Infinity_":l===1/0?"_Infinity_":Number.isNaN(l)?"_NaN_":l;if(typeof l=="bigint")return`_bigint_${l.toString()}`;if(typeof l=="string")return b9.test(l)?e.allowDate?`_date_${l}`:void 0:l;if((0,ZN.default)(l))return e.allowRegExp?`_regexp_${l.flags}|${l.source}`:void 0;if((0,JN.default)(l)){if(!e.allowFunction)return;let{name:_}=l,g=l.toString();return g.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${_}|${(()=>{}).toString()}`:`_function_${_}|${y9(x9(a,g))}`}if((0,e8.default)(l)){if(!e.allowSymbol)return;let _=Symbol.keyFor(l);return _!==void 0?`_gsymbol_${_}`:`_symbol_${l.toString().slice(7,-1)}`}if(s.length>=e.maxDepth)return Array.isArray(l)?`[Array(${l.length})]`:"[Object]";if(l===this)return`_duplicate_${JSON.stringify(n)}`;if(l instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...l.cause?{cause:l.cause}:{},...l,name:l.name,message:l.message,stack:l.stack,"_constructor-name_":l.constructor.name}};if(l.constructor&&l.constructor.name&&l.constructor.name!=="Object"&&!Array.isArray(l)&&!e.allowClass)return;let p=t.get(l);if(!p){let _=Array.isArray(l)?l:eC(l);if(l.constructor&&l.constructor.name&&l.constructor.name!=="Object"&&!Array.isArray(l)&&e.allowClass)try{Object.assign(_,{"_constructor-name_":l.constructor.name})}catch{}return n.push(a),s.unshift(_),t.set(l,JSON.stringify(n)),l!==_&&i.set(l,_),_}return`_duplicate_${p}`}catch{return}}},A9=function reviver(options){let refs=[],root;return function revive(key,value){if(key===""&&(root=value,refs.forEach(({target:r,container:e,replacement:t})=>{let i=S9(t)?JSON.parse(t):t.split(".");i.length===0?e[r]=root:e[r]=_9(root,i)})),key==="_constructor-name_")return value;if(oa(value)&&value.__isConvertedError__){let{message:r,...e}=value.errorProperties,t=new Error(r);return Object.assign(t,e),t}if(oa(value)&&value["_constructor-name_"]&&options.allowFunction){let r=value["_constructor-name_"];if(r!=="Object"){let e=new Function(`return function ${r.replace(/[^a-zA-Z0-9$_]+/g,"")}(){}`)();Object.setPrototypeOf(value,new e)}return delete value["_constructor-name_"],value}if(typeof value=="string"&&value.startsWith("_function_")&&options.allowFunction){let[,name,source]=value.match(/_function_([^|]*)\|(.*)/)||[],sourceSanitized=source.replace(/[(\(\))|\\| |\]|`]*$/,"");if(!options.lazyEval)return eval(`(${sourceSanitized})`);let result=(...args)=>{let f=eval(`(${sourceSanitized})`);return f(...args)};return Object.defineProperty(result,"toString",{value:()=>sourceSanitized}),Object.defineProperty(result,"name",{value:name}),result}if(typeof value=="string"&&value.startsWith("_regexp_")&&options.allowRegExp){let[,r,e]=value.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(e,r)}return typeof value=="string"&&value.startsWith("_date_")&&options.allowDate?new Date(value.replace("_date_","")):typeof value=="string"&&value.startsWith("_duplicate_")?(refs.push({target:key,container:this,replacement:value.replace(/^_duplicate_/,"")}),null):typeof value=="string"&&value.startsWith("_symbol_")&&options.allowSymbol?Symbol(value.replace("_symbol_","")):typeof value=="string"&&value.startsWith("_gsymbol_")&&options.allowSymbol?Symbol.for(value.replace("_gsymbol_","")):typeof value=="string"&&value==="_-Infinity_"?-1/0:typeof value=="string"&&value==="_Infinity_"?1/0:typeof value=="string"&&value==="_NaN_"?NaN:typeof value=="string"&&value.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(value.replace("_bigint_","")):value}},tC={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},v9=(r,e={})=>{let t={...tC,...e};return JSON.stringify(eC(r),C9(t),e.space)},w9=()=>{let r=new Map;return function e(t){oa(t)&&Object.entries(t).forEach(([i,s])=>{s==="_undefined_"?t[i]=void 0:r.get(s)||(r.set(s,!0),e(s))}),Array.isArray(t)&&t.forEach((i,s)=>{i==="_undefined_"?(r.set(i,!0),t[s]=void 0):r.get(i)||(r.set(i,!0),e(i))})}},PFe=(r,e={})=>{let t={...tC,...e},i=JSON.parse(r,A9(t));return w9()(i),i};var T1=Ce(fC(),1);var HU=U.div(Tr,({theme:r})=>({backgroundColor:r.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:r.appBorderRadius,border:`1px dashed ${r.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:Ee(.3,r.color.defaultText),fontSize:r.typography.size.s2})),D1=r=>S.createElement(HU,{...r,className:"docblock-emptyblock sb-unstyled"}),WU=U(nn)(({theme:r})=>({fontSize:`${r.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:r.appBorderRadius,boxShadow:r.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),jU=U.div(({theme:r})=>({background:r.background.content,borderRadius:r.appBorderRadius,border:`1px solid ${r.appBorderColor}`,boxShadow:r.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),ga=U.div(({theme:r})=>({animation:`${r.animation.glow} 1.5s ease-in-out infinite`,background:r.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${Ep}`]:{margin:0}})),qU=()=>S.createElement(jU,null,S.createElement(ga,null),S.createElement(ga,{style:{width:"80%"}}),S.createElement(ga,{style:{width:"30%"}}),S.createElement(ga,{style:{width:"80%"}})),F1=({isLoading:r,error:e,language:t,code:i,dark:s,format:n,...o})=>{if(r)return S.createElement(qU,null);if(e)return S.createElement(D1,null,e);let a=S.createElement(WU,{bordered:!0,copyable:!0,format:n,language:t,className:"docblock-source sb-unstyled",...o},i);if(typeof s>"u")return a;let l=s?Tu.dark:Tu.light;return S.createElement(vp,{theme:wp(l)},a)};F1.defaultProps={format:!1};var Re=r=>`& :where(${r}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${r}))`,Hc=600,CBe=U.h1(Tr,({theme:r})=>({color:r.color.defaultText,fontSize:r.typography.size.m3,fontWeight:r.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Hc}px)`]:{fontSize:r.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),ABe=U.h2(Tr,({theme:r})=>({fontWeight:r.typography.weight.regular,fontSize:r.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Hc}px)`]:{fontSize:r.typography.size.m1,lineHeight:"28px",marginBottom:24},color:Ee(.25,r.color.defaultText)})),vBe=U.div(({theme:r})=>{let e={fontFamily:r.typography.fonts.base,fontSize:r.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},t={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:r.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},i={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:r.typography.size.s2-1,border:r.base==="light"?`1px solid ${r.color.mediumlight}`:`1px solid ${r.color.darker}`,color:r.base==="light"?Ee(.1,r.color.defaultText):Ee(.3,r.color.defaultText),backgroundColor:r.base==="light"?r.color.lighter:r.color.border};return{maxWidth:1e3,width:"100%",[Re("a")]:{...e,fontSize:"inherit",lineHeight:"24px",color:r.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[Re("blockquote")]:{...e,margin:"16px 0",borderLeft:`4px solid ${r.color.medium}`,padding:"0 15px",color:r.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[Re("div")]:e,[Re("dl")]:{...e,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[Re("h1")]:{...e,...t,fontSize:`${r.typography.size.l1}px`,fontWeight:r.typography.weight.bold},[Re("h2")]:{...e,...t,fontSize:`${r.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${r.appBorderColor}`},[Re("h3")]:{...e,...t,fontSize:`${r.typography.size.m1}px`,fontWeight:r.typography.weight.bold},[Re("h4")]:{...e,...t,fontSize:`${r.typography.size.s3}px`},[Re("h5")]:{...e,...t,fontSize:`${r.typography.size.s2}px`},[Re("h6")]:{...e,...t,fontSize:`${r.typography.size.s2}px`,color:r.color.dark},[Re("hr")]:{border:"0 none",borderTop:`1px solid ${r.appBorderColor}`,height:4,padding:0},[Re("img")]:{maxWidth:"100%"},[Re("li")]:{...e,fontSize:r.typography.size.s2,color:r.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":i},[Re("ol")]:{...e,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[Re("p")]:{...e,margin:"16px 0",fontSize:r.typography.size.s2,lineHeight:"24px",color:r.color.defaultText,"& code":i},[Re("pre")]:{...e,fontFamily:r.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[Re("span")]:{...e,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${r.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:r.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[Re("table")]:{...e,margin:"16px 0",fontSize:r.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${r.appBorderColor}`,backgroundColor:r.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:r.base==="dark"?r.color.darker:r.color.lighter},"& tr th":{fontWeight:"bold",color:r.color.defaultText,border:`1px solid ${r.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${r.appBorderColor}`,color:r.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[Re("ul")]:{...e,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),wBe=U.div(({theme:r})=>({background:r.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Hc}px)`]:{}}));var ya=r=>({borderRadius:r.appBorderRadius,background:r.background.content,boxShadow:r.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${r.appBorderColor}`}),$U=({zoom:r,resetZoom:e})=>S.createElement(S.Fragment,null,S.createElement(Xe,{key:"zoomin",onClick:t=>{t.preventDefault(),r(.8)},title:"Zoom in"},S.createElement(De,{icon:"zoom"})),S.createElement(Xe,{key:"zoomout",onClick:t=>{t.preventDefault(),r(1.25)},title:"Zoom out"},S.createElement(De,{icon:"zoomout"})),S.createElement(Xe,{key:"zoomreset",onClick:t=>{t.preventDefault(),e()},title:"Reset zoom"},S.createElement(De,{icon:"zoomreset"}))),GU=U(Ua)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),VU=({isLoading:r,storyId:e,baseUrl:t,zoom:i,resetZoom:s,...n})=>S.createElement(GU,{...n},S.createElement(cd,{key:"left"},r?[1,2,3].map(o=>S.createElement(Wa,{key:o})):S.createElement($U,{zoom:i,resetZoom:s}))),YU=bi({scale:1}),{window:EBe}=fe;var{PREVIEW_URL:TBe}=fe;var XU=U.div(({isColumn:r,columns:e,layout:t})=>({display:r||!e?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:r?"column":"row","& .innerZoomElementWrapper > *":r?{width:t!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:t!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:r="padded"})=>r==="centered"||r==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:r="padded"})=>r==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:r})=>r&&r>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${r} - 20px)`}}:{}),l1=U(F1)(({theme:r})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:r.appBorderRadius,borderBottomRightRadius:r.appBorderRadius,border:"none",background:r.base==="light"?"rgba(0, 0, 0, 0.85)":gt(.05,r.background.content),color:r.color.lightest,button:{background:r.base==="light"?"rgba(0, 0, 0, 0.85)":gt(.05,r.background.content)}})),KU=U.div(({theme:r,withSource:e,isExpanded:t})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...ya(r),borderBottomLeftRadius:e&&t&&0,borderBottomRightRadius:e&&t&&0,borderBottomWidth:t&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:r})=>r&&{paddingTop:40}),QU=(r,e,t)=>{switch(!0){case!!(r&&r.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>t(!1)}};case e:return{source:S.createElement(l1,{...r,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>t(!1)}};default:return{source:S.createElement(l1,{...r,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>t(!0)}}}};function ZU(r){if(hd.count(r)===1){let e=r;if(e.props)return e.props.id}return null}var JU=U(VU)({position:"absolute",top:0,left:0,right:0,height:40}),e7=U.div({overflow:"hidden",position:"relative"}),t7=({isLoading:r,isColumn:e,columns:t,children:i,withSource:s,withToolbar:n=!1,isExpanded:o=!1,additionalActions:a,className:l,layout:d="padded",...p})=>{let[_,g]=ne(o),{source:m,actionItem:A}=QU(s,_,g),[C,v]=ne(1),w=[l].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),D=s?[A]:[],[B,F]=ne(a?[...a]:[]),E=[...D,...B],{window:O}=fe,M=ve(async $=>{let{createCopyToClipboardFunction:j}=await Promise.resolve().then(()=>(bt(),bd));j()},[]),W=$=>{let j=O.getSelection();j&&j.type==="Range"||($.preventDefault(),B.filter(se=>se.title==="Copied").length===0&&M(m.props.code).then(()=>{F([...B,{title:"Copied",onClick:()=>{}}]),O.setTimeout(()=>F(B.filter(se=>se.title!=="Copied")),1500)}))};return S.createElement(KU,{withSource:s,withToolbar:n,...p,className:w.join(" ")},n&&S.createElement(JU,{isLoading:r,border:!0,zoom:$=>v(C*$),resetZoom:()=>v(1),storyId:ZU(i),baseUrl:"./iframe.html"}),S.createElement(YU.Provider,{value:{scale:C}},S.createElement(e7,{className:"docs-story",onCopyCapture:s&&W},S.createElement(XU,{isColumn:e||!Array.isArray(i),columns:t,layout:d},S.createElement(Xa.Element,{scale:C},Array.isArray(i)?i.map(($,j)=>S.createElement("div",{key:j},$)):S.createElement("div",null,i))),S.createElement(Na,{actionItems:E}))),s&&_&&m)},DBe=U(t7)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var r7=U.table(({theme:r})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Er({theme:r}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:r.typography.size.s1}}})),i7=({tags:r})=>{let e=(r.params||[]).filter(n=>n.description),t=e.length!==0,i=r.deprecated!=null,s=r.returns!=null&&r.returns.description!=null;return!t&&!s&&!i?null:S.createElement(S.Fragment,null,S.createElement(r7,null,S.createElement("tbody",null,i&&S.createElement("tr",{key:"deprecated"},S.createElement("td",{colSpan:2},S.createElement("strong",null,"Deprecated"),": ",r.deprecated)),t&&e.map(n=>S.createElement("tr",{key:n.name},S.createElement("td",null,S.createElement("code",null,n.name)),S.createElement("td",null,n.description))),s&&S.createElement("tr",{key:"returns"},S.createElement("td",null,S.createElement("code",null,"Returns")),S.createElement("td",null,r.returns.description)))))},Mc=8,u1=U.div(({isExpanded:r})=>({display:"flex",flexDirection:r?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),s7=U.span(Er,({theme:r,simple:e=!1})=>({flex:"0 0 auto",fontFamily:r.typography.fonts.mono,fontSize:r.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...e&&{background:"transparent",border:"0 none",paddingLeft:0}})),n7=U.button(({theme:r})=>({fontFamily:r.typography.fonts.mono,color:r.color.secondary,marginBottom:"4px",background:"none",border:"none"})),o7=U.div(Er,({theme:r})=>({fontFamily:r.typography.fonts.mono,color:r.color.secondary,fontSize:r.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),a7=U.div(({theme:r,width:e})=>({width:e,minWidth:200,maxWidth:800,padding:15,fontFamily:r.typography.fonts.mono,fontSize:r.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),l7=U(De)({height:10,width:10,minWidth:10,marginLeft:4}),u7=()=>S.createElement("span",null,"-"),I1=({text:r,simple:e})=>S.createElement(s7,{simple:e},r),h7=(0,A1.default)(1e3)(r=>{let e=r.split(/\r?\n/);return`${Math.max(...e.map(t=>t.length))}ch`}),c7=r=>{if(!r)return[r];let e=r.split("|").map(t=>t.trim());return(0,v1.default)(e)},h1=(r,e=!0)=>{let t=r;return e||(t=r.slice(0,Mc)),t.map(i=>S.createElement(I1,{key:i,text:i===""?'""':i}))},d7=({value:r,initialExpandedArgs:e})=>{let{summary:t,detail:i}=r,[s,n]=ne(!1),[o,a]=ne(e||!1);if(t==null)return null;let l=typeof t.toString=="function"?t.toString():t;if(i==null){if(/[(){}[\]<>]/.test(l))return S.createElement(I1,{text:l});let d=c7(l),p=d.length;return p>Mc?S.createElement(u1,{isExpanded:o},h1(d,o),S.createElement(n7,{onClick:()=>a(!o)},o?"Show less...":`Show ${p-Mc} more...`)):S.createElement(u1,null,h1(d))}return S.createElement(Ya,{closeOnOutsideClick:!0,placement:"bottom",visible:s,onVisibleChange:d=>{n(d)},tooltip:S.createElement(a7,{width:h7(i)},S.createElement(nn,{language:"jsx",format:!1},i))},S.createElement(o7,{className:"sbdocs-expandable"},S.createElement("span",null,l),S.createElement(l7,{icon:s?"arrowup":"arrowdown"})))},Oc=({value:r,initialExpandedArgs:e})=>r==null?S.createElement(u7,null):S.createElement(d7,{value:r,initialExpandedArgs:e}),p7=U.label(({theme:r})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:r.boolean.background,borderRadius:"3em",padding:1,input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${r.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:r.typography.size.s1,fontWeight:r.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:Ee(.5,r.color.defaultText),background:"transparent","&:hover":{boxShadow:`${ss(.3,r.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${ss(.05,r.appBorderColor)} 0 0 0 2px inset`,color:ss(1,r.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:r.boolean.selectedBackground,boxShadow:r.base==="light"?`${ss(.1,r.appBorderColor)} 0 0 2px`:`${r.appBorderColor} 0 0 0 1px`,color:r.color.defaultText,padding:"7px 15px"}})),f7=r=>r==="true",Wc=({name:r,value:e,onChange:t,onBlur:i,onFocus:s})=>{let n=ve(()=>t(!1),[t]);if(e===void 0)return S.createElement(Qe.Button,{id:es(r),onClick:n},"Set boolean");let o=tt(r),a=typeof e=="string"?f7(e):e;return S.createElement(p7,{htmlFor:o,"aria-label":r},S.createElement("input",{id:o,type:"checkbox",onChange:l=>t(l.target.checked),checked:a,role:"switch",name:r,onBlur:i,onFocus:s}),S.createElement("span",{"aria-hidden":"true"},"False"),S.createElement("span",{"aria-hidden":"true"},"True"))},g7=r=>{let[e,t,i]=r.split("-"),s=new Date;return s.setFullYear(parseInt(e,10),parseInt(t,10)-1,parseInt(i,10)),s},_7=r=>{let[e,t]=r.split(":"),i=new Date;return i.setHours(parseInt(e,10)),i.setMinutes(parseInt(t,10)),i},m7=r=>{let e=new Date(r),t=`000${e.getFullYear()}`.slice(-4),i=`0${e.getMonth()+1}`.slice(-2),s=`0${e.getDate()}`.slice(-2);return`${t}-${i}-${s}`},y7=r=>{let e=new Date(r),t=`0${e.getHours()}`.slice(-2),i=`0${e.getMinutes()}`.slice(-2);return`${t}:${i}`},x7=U.div(({theme:r})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:r.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),b7=({name:r,value:e,onChange:t,onFocus:i,onBlur:s})=>{let[n,o]=ne(!0),a=Ye(),l=Ye();me(()=>{n!==!1&&(a&&a.current&&(a.current.value=m7(e)),l&&l.current&&(l.current.value=y7(e)))},[e]);let d=g=>{let m=g7(g.target.value),A=new Date(e);A.setFullYear(m.getFullYear(),m.getMonth(),m.getDate());let C=A.getTime();C&&t(C),o(!!C)},p=g=>{let m=_7(g.target.value),A=new Date(e);A.setHours(m.getHours()),A.setMinutes(m.getMinutes());let C=A.getTime();C&&t(C),o(!!C)},_=tt(r);return S.createElement(x7,null,S.createElement(Qe.Input,{type:"date",max:"9999-12-31",ref:a,id:`${_}-date`,name:`${_}-date`,onChange:d,onFocus:i,onBlur:s}),S.createElement(Qe.Input,{type:"time",id:`${_}-time`,name:`${_}-time`,ref:l,onChange:p,onFocus:i,onBlur:s}),n?null:S.createElement("div",null,"invalid"))},S7=U.label({display:"flex"}),C7=r=>{let e=parseFloat(r);return Number.isNaN(e)?void 0:e};var zs=({name:r,value:e,onChange:t,min:i,max:s,step:n,onBlur:o,onFocus:a})=>{let[l,d]=ne(typeof e=="number"?e:""),[p,_]=ne(!1),[g,m]=ne(null),A=ve(w=>{d(w.target.value);let D=parseFloat(w.target.value);Number.isNaN(D)?m(new Error(`'${w.target.value}' is not a number`)):(t(D),m(null))},[t,m]),C=ve(()=>{d("0"),t(0),_(!0)},[_]),v=Ye(null);return me(()=>{p&&v.current&&v.current.select()},[p]),me(()=>{l!==(typeof e=="number"?e:"")&&d(e)},[e]),!p&&e===void 0?S.createElement(Qe.Button,{id:es(r),onClick:C},"Set number"):S.createElement(S7,null,S.createElement(Qe.Input,{ref:v,id:tt(r),type:"number",onChange:A,size:"flex",placeholder:"Edit number...",value:l,valid:g?"error":null,autoFocus:p,name:r,min:i,max:s,step:n,onFocus:a,onBlur:o}))},B1=(r,e)=>{let t=e&&Object.entries(e).find(([i,s])=>s===r);return t?t[0]:void 0},Nc=(r,e)=>r&&e?Object.entries(e).filter(t=>r.includes(t[1])).map(t=>t[0]):[],R1=(r,e)=>r&&e&&r.map(t=>e[t]),A7=U.div(({isInline:r})=>r?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}}),v7=U.span({}),w7=U.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),c1=({name:r,options:e,value:t,onChange:i,isInline:s})=>{if(!e)return nt.warn(`Checkbox with no options: ${r}`),S.createElement(S.Fragment,null,"-");let n=Nc(t,e),[o,a]=ne(n),l=p=>{let _=p.target.value,g=[...o];g.includes(_)?g.splice(g.indexOf(_),1):g.push(_),i(R1(g,e)),a(g)};me(()=>{a(Nc(t,e))},[t]);let d=tt(r);return S.createElement(A7,{isInline:s},Object.keys(e).map((p,_)=>{let g=`${d}-${_}`;return S.createElement(w7,{key:g,htmlFor:g},S.createElement("input",{type:"checkbox",id:g,name:g,value:p,onChange:l,checked:o?.includes(p)}),S.createElement(v7,null,p))}))},E7=U.div(({isInline:r})=>r?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}}),T7=U.span({}),D7=U.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),d1=({name:r,options:e,value:t,onChange:i,isInline:s})=>{if(!e)return nt.warn(`Radio with no options: ${r}`),S.createElement(S.Fragment,null,"-");let n=B1(t,e),o=tt(r);return S.createElement(E7,{isInline:s},Object.keys(e).map((a,l)=>{let d=`${o}-${l}`;return S.createElement(D7,{key:d,htmlFor:d},S.createElement("input",{type:"radio",id:d,name:d,value:a,onChange:p=>i(e[p.currentTarget.value]),checked:a===n}),S.createElement(T7,null,a))}))},F7={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},P1=U.select(({theme:r})=>({...F7,boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:r.input.color||"inherit",background:r.input.background,borderRadius:r.input.borderRadius,boxShadow:`${r.input.border} 0 0 0 1px inset`,fontSize:r.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${r.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:r.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}})),O1=U.span(({theme:r})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:r.textMutedColor,path:{fill:r.textMutedColor}}})),p1="Choose option...",I7=({name:r,value:e,options:t,onChange:i})=>{let s=a=>{i(t[a.currentTarget.value])},n=B1(e,t)||p1,o=tt(r);return S.createElement(O1,null,S.createElement(De,{icon:"arrowdown"}),S.createElement(P1,{id:o,value:n,onChange:s},S.createElement("option",{key:"no-selection",disabled:!0},p1),Object.keys(t).map(a=>S.createElement("option",{key:a,value:a},a))))},B7=({name:r,value:e,options:t,onChange:i})=>{let s=a=>{let l=Array.from(a.currentTarget.options).filter(d=>d.selected).map(d=>d.value);i(R1(l,t))},n=Nc(e,t),o=tt(r);return S.createElement(O1,null,S.createElement(P1,{id:o,multiple:!0,value:n,onChange:s},Object.keys(t).map(a=>S.createElement("option",{key:a,value:a},a))))},f1=r=>{let{name:e,options:t}=r;return t?r.isMulti?S.createElement(B7,{...r}):S.createElement(I7,{...r}):(nt.warn(`Select with no options: ${e}`),S.createElement(S.Fragment,null,"-"))},R7=(r,e)=>Array.isArray(r)?r.reduce((t,i)=>(t[e?.[i]||String(i)]=i,t),{}):r,P7={check:c1,"inline-check":c1,radio:d1,"inline-radio":d1,select:f1,"multi-select":f1},sr=r=>{let{type:e="select",labels:t,argType:i}=r,s={...r,options:i?R7(i.options,t):{},isInline:e.includes("inline"),isMulti:e.includes("multi")},n=P7[e];if(n)return S.createElement(n,{...s});throw new Error(`Unknown options type: ${e}`)},jc="value",O7="key",L7="Error",k7="Object",M7="Array",N7="String",z7="Number",U7="Boolean",H7="Date",W7="Null",j7="Undefined",q7="Function",$7="Symbol",L1="ADD_DELTA_TYPE",k1="REMOVE_DELTA_TYPE",M1="UPDATE_DELTA_TYPE";function nr(r){return r!==null&&typeof r=="object"&&!Array.isArray(r)&&typeof r[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(r).slice(8,-1)}function N1(r,e){let t=nr(r),i=nr(e);return(t==="Function"||i==="Function")&&i!==t}var qc=class extends Ut{constructor(r){super(r),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:r,inputRefValue:e}=this.state,{onlyValue:t}=this.props;r&&typeof r.focus=="function"&&r.focus(),t&&e&&typeof e.focus=="function"&&e.focus(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(r){r.altKey||r.ctrlKey||r.metaKey||r.shiftKey||r.repeat||((r.code==="Enter"||r.key==="Enter")&&(r.preventDefault(),this.onSubmit()),(r.code==="Escape"||r.key==="Escape")&&(r.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd:r,onlyValue:e,onSubmitValueParser:t,keyPath:i,deep:s}=this.props,{inputRefKey:n,inputRefValue:o}=this.state,a={};if(!e){if(!n.value)return;a.key=n.value}a.newValue=t(!1,i,s,a.key,o.value),r(a)}refInputKey(r){this.state.inputRefKey=r}refInputValue(r){this.state.inputRefValue=r}render(){let{handleCancel:r,onlyValue:e,addButtonElement:t,cancelButtonElement:i,inputElementGenerator:s,keyPath:n,deep:o}=this.props,a=Fe(t,{onClick:this.onSubmit}),l=Fe(i,{onClick:r}),d=s(jc,n,o),p=Fe(d,{placeholder:"Value",ref:this.refInputValue}),_=null;if(!e){let g=s(O7,n,o);_=Fe(g,{placeholder:"Key",ref:this.refInputKey})}return S.createElement("span",{className:"rejt-add-value-node"},_,p,l,a)}};qc.defaultProps={onlyValue:!1,addButtonElement:S.createElement("button",null,"+"),cancelButtonElement:S.createElement("button",null,"c")};var z1=class extends Ut{constructor(r){super(r);let e=[...r.keyPath,r.name];this.state={data:r.data,name:r.name,keyPath:e,deep:r.deep,nextDeep:r.deep+1,collapsed:r.isCollapsed(e,r.deep,r.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(r,e){return r.data!==e.data?{data:r.data}:null}onChildUpdate(r,e){let{data:t,keyPath:i}=this.state;t[r]=e,this.setState({data:t});let{onUpdate:s}=this.props,n=i.length;s(i[n-1],t)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(r=>({collapsed:!r.collapsed}))}handleRemoveItem(r){return()=>{let{beforeRemoveAction:e,logger:t}=this.props,{data:i,keyPath:s,nextDeep:n}=this.state,o=i[r];e(r,s,n,o).then(()=>{let a={keyPath:s,deep:n,key:r,oldValue:o,type:k1};i.splice(r,1),this.setState({data:i});let{onUpdate:l,onDeltaUpdate:d}=this.props;l(s[s.length-1],i),d(a)}).catch(t.error)}}handleAddValueAdd({newValue:r}){let{data:e,keyPath:t,nextDeep:i}=this.state,{beforeAddAction:s,logger:n}=this.props;s(e.length,t,i,r).then(()=>{let o=[...e,r];this.setState({data:o}),this.handleAddValueCancel();let{onUpdate:a,onDeltaUpdate:l}=this.props;a(t[t.length-1],o),l({type:L1,keyPath:t,deep:i,key:o.length-1,newValue:r})}).catch(n.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:r,value:e}){return new Promise((t,i)=>{let{beforeUpdateAction:s}=this.props,{data:n,keyPath:o,nextDeep:a}=this.state,l=n[r];s(r,o,a,l,e).then(()=>{n[r]=e,this.setState({data:n});let{onUpdate:d,onDeltaUpdate:p}=this.props;d(o[o.length-1],n),p({type:M1,keyPath:o,deep:a,key:r,newValue:e,oldValue:l}),t(void 0)}).catch(i)})}renderCollapsed(){let{name:r,data:e,keyPath:t,deep:i}=this.state,{handleRemove:s,readOnly:n,getStyle:o,dataType:a,minusMenuElement:l}=this.props,{minus:d,collapsed:p}=o(r,e,t,i,a),_=n(r,e,t,i,a),g=Fe(l,{onClick:s,className:"rejt-minus-menu",style:d});return S.createElement("span",{className:"rejt-collapsed"},S.createElement("span",{className:"rejt-collapsed-text",style:p,onClick:this.handleCollapseMode},"[...] ",e.length," ",e.length===1?"item":"items"),!_&&g)}renderNotCollapsed(){let{name:r,data:e,keyPath:t,deep:i,addFormVisible:s,nextDeep:n}=this.state,{isCollapsed:o,handleRemove:a,onDeltaUpdate:l,readOnly:d,getStyle:p,dataType:_,addButtonElement:g,cancelButtonElement:m,editButtonElement:A,inputElementGenerator:C,textareaElementGenerator:v,minusMenuElement:w,plusMenuElement:D,beforeRemoveAction:B,beforeAddAction:F,beforeUpdateAction:E,logger:O,onSubmitValueParser:M}=this.props,{minus:W,plus:$,delimiter:j,ul:se,addForm:J}=p(r,e,t,i,_),Q=d(r,e,t,i,_),L=Fe(D,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:$}),R=Fe(w,{onClick:a,className:"rejt-minus-menu",style:W}),H=!0,V="[",Z="]";return S.createElement("span",{className:"rejt-not-collapsed"},S.createElement("span",{className:"rejt-not-collapsed-delimiter",style:j},V),!s&&L,S.createElement("ul",{className:"rejt-not-collapsed-list",style:se},e.map((K,ae)=>S.createElement(xa,{key:ae,name:ae.toString(),data:K,keyPath:t,deep:n,isCollapsed:o,handleRemove:this.handleRemoveItem(ae),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:l,readOnly:d,getStyle:p,addButtonElement:g,cancelButtonElement:m,editButtonElement:A,inputElementGenerator:C,textareaElementGenerator:v,minusMenuElement:w,plusMenuElement:D,beforeRemoveAction:B,beforeAddAction:F,beforeUpdateAction:E,logger:O,onSubmitValueParser:M}))),!Q&&s&&S.createElement("div",{className:"rejt-add-form",style:J},S.createElement(qc,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:H,addButtonElement:g,cancelButtonElement:m,inputElementGenerator:C,keyPath:t,deep:i,onSubmitValueParser:M})),S.createElement("span",{className:"rejt-not-collapsed-delimiter",style:j},Z),!Q&&R)}render(){let{name:r,collapsed:e,data:t,keyPath:i,deep:s}=this.state,{dataType:n,getStyle:o}=this.props,a=e?this.renderCollapsed():this.renderNotCollapsed(),l=o(r,t,i,s,n);return S.createElement("div",{className:"rejt-array-node"},S.createElement("span",{onClick:this.handleCollapseMode},S.createElement("span",{className:"rejt-name",style:l.name},r," :"," ")),a)}};z1.defaultProps={keyPath:[],deep:0,minusMenuElement:S.createElement("span",null," - "),plusMenuElement:S.createElement("span",null," + ")};var U1=class extends Ut{constructor(r){super(r);let e=[...r.keyPath,r.name];this.state={value:r.value,name:r.name,keyPath:e,deep:r.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(r,e){return r.value!==e.value?{value:r.value}:null}componentDidUpdate(){let{editEnabled:r,inputRef:e,name:t,value:i,keyPath:s,deep:n}=this.state,{readOnly:o,dataType:a}=this.props,l=o(t,i,s,n,a);r&&!l&&typeof e.focus=="function"&&e.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(r){r.altKey||r.ctrlKey||r.metaKey||r.shiftKey||r.repeat||((r.code==="Enter"||r.key==="Enter")&&(r.preventDefault(),this.handleEdit()),(r.code==="Escape"||r.key==="Escape")&&(r.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:r,originalValue:e,logger:t,onSubmitValueParser:i,keyPath:s}=this.props,{inputRef:n,name:o,deep:a}=this.state;if(!n)return;let l=i(!0,s,a,o,n.value);r({value:l,key:o}).then(()=>{N1(e,l)||this.handleCancelEdit()}).catch(t.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(r){this.state.inputRef=r}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:r,value:e,editEnabled:t,keyPath:i,deep:s}=this.state,{handleRemove:n,originalValue:o,readOnly:a,dataType:l,getStyle:d,editButtonElement:p,cancelButtonElement:_,textareaElementGenerator:g,minusMenuElement:m,keyPath:A}=this.props,C=d(r,o,i,s,l),v=null,w=null,D=a(r,o,i,s,l);if(t&&!D){let B=g(jc,A,s,r,o,l),F=Fe(p,{onClick:this.handleEdit}),E=Fe(_,{onClick:this.handleCancelEdit}),O=Fe(B,{ref:this.refInput,defaultValue:o});v=S.createElement("span",{className:"rejt-edit-form",style:C.editForm},O," ",E,F),w=null}else{v=S.createElement("span",{className:"rejt-value",style:C.value,onClick:D?null:this.handleEditMode},e);let B=Fe(m,{onClick:n,className:"rejt-minus-menu",style:C.minus});w=D?null:B}return S.createElement("li",{className:"rejt-function-value-node",style:C.li},S.createElement("span",{className:"rejt-name",style:C.name},r," :"," "),v,w)}};U1.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:S.createElement("button",null,"e"),cancelButtonElement:S.createElement("button",null,"c"),minusMenuElement:S.createElement("span",null," - ")};var xa=class extends Ut{constructor(r){super(r),this.state={data:r.data,name:r.name,keyPath:r.keyPath,deep:r.deep}}static getDerivedStateFromProps(r,e){return r.data!==e.data?{data:r.data}:null}render(){let{data:r,name:e,keyPath:t,deep:i}=this.state,{isCollapsed:s,handleRemove:n,handleUpdateValue:o,onUpdate:a,onDeltaUpdate:l,readOnly:d,getStyle:p,addButtonElement:_,cancelButtonElement:g,editButtonElement:m,inputElementGenerator:A,textareaElementGenerator:C,minusMenuElement:v,plusMenuElement:w,beforeRemoveAction:D,beforeAddAction:B,beforeUpdateAction:F,logger:E,onSubmitValueParser:O}=this.props,M=()=>!0,W=nr(r);switch(W){case L7:return S.createElement(zc,{data:r,name:e,isCollapsed:s,keyPath:t,deep:i,handleRemove:n,onUpdate:a,onDeltaUpdate:l,readOnly:M,dataType:W,getStyle:p,addButtonElement:_,cancelButtonElement:g,editButtonElement:m,inputElementGenerator:A,textareaElementGenerator:C,minusMenuElement:v,plusMenuElement:w,beforeRemoveAction:D,beforeAddAction:B,beforeUpdateAction:F,logger:E,onSubmitValueParser:O});case k7:return S.createElement(zc,{data:r,name:e,isCollapsed:s,keyPath:t,deep:i,handleRemove:n,onUpdate:a,onDeltaUpdate:l,readOnly:d,dataType:W,getStyle:p,addButtonElement:_,cancelButtonElement:g,editButtonElement:m,inputElementGenerator:A,textareaElementGenerator:C,minusMenuElement:v,plusMenuElement:w,beforeRemoveAction:D,beforeAddAction:B,beforeUpdateAction:F,logger:E,onSubmitValueParser:O});case M7:return S.createElement(z1,{data:r,name:e,isCollapsed:s,keyPath:t,deep:i,handleRemove:n,onUpdate:a,onDeltaUpdate:l,readOnly:d,dataType:W,getStyle:p,addButtonElement:_,cancelButtonElement:g,editButtonElement:m,inputElementGenerator:A,textareaElementGenerator:C,minusMenuElement:v,plusMenuElement:w,beforeRemoveAction:D,beforeAddAction:B,beforeUpdateAction:F,logger:E,onSubmitValueParser:O});case N7:return S.createElement(ir,{name:e,value:`"${r}"`,originalValue:r,keyPath:t,deep:i,handleRemove:n,handleUpdateValue:o,readOnly:d,dataType:W,getStyle:p,cancelButtonElement:g,editButtonElement:m,inputElementGenerator:A,minusMenuElement:v,logger:E,onSubmitValueParser:O});case z7:return S.createElement(ir,{name:e,value:r,originalValue:r,keyPath:t,deep:i,handleRemove:n,handleUpdateValue:o,readOnly:d,dataType:W,getStyle:p,cancelButtonElement:g,editButtonElement:m,inputElementGenerator:A,minusMenuElement:v,logger:E,onSubmitValueParser:O});case U7:return S.createElement(ir,{name:e,value:r?"true":"false",originalValue:r,keyPath:t,deep:i,handleRemove:n,handleUpdateValue:o,readOnly:d,dataType:W,getStyle:p,cancelButtonElement:g,editButtonElement:m,inputElementGenerator:A,minusMenuElement:v,logger:E,onSubmitValueParser:O});case H7:return S.createElement(ir,{name:e,value:r.toISOString(),originalValue:r,keyPath:t,deep:i,handleRemove:n,handleUpdateValue:o,readOnly:M,dataType:W,getStyle:p,cancelButtonElement:g,editButtonElement:m,inputElementGenerator:A,minusMenuElement:v,logger:E,onSubmitValueParser:O});case W7:return S.createElement(ir,{name:e,value:"null",originalValue:"null",keyPath:t,deep:i,handleRemove:n,handleUpdateValue:o,readOnly:d,dataType:W,getStyle:p,cancelButtonElement:g,editButtonElement:m,inputElementGenerator:A,minusMenuElement:v,logger:E,onSubmitValueParser:O});case j7:return S.createElement(ir,{name:e,value:"undefined",originalValue:"undefined",keyPath:t,deep:i,handleRemove:n,handleUpdateValue:o,readOnly:d,dataType:W,getStyle:p,cancelButtonElement:g,editButtonElement:m,inputElementGenerator:A,minusMenuElement:v,logger:E,onSubmitValueParser:O});case q7:return S.createElement(U1,{name:e,value:r.toString(),originalValue:r,keyPath:t,deep:i,handleRemove:n,handleUpdateValue:o,readOnly:d,dataType:W,getStyle:p,cancelButtonElement:g,editButtonElement:m,textareaElementGenerator:C,minusMenuElement:v,logger:E,onSubmitValueParser:O});case $7:return S.createElement(ir,{name:e,value:r.toString(),originalValue:r,keyPath:t,deep:i,handleRemove:n,handleUpdateValue:o,readOnly:M,dataType:W,getStyle:p,cancelButtonElement:g,editButtonElement:m,inputElementGenerator:A,minusMenuElement:v,logger:E,onSubmitValueParser:O});default:return null}}};xa.defaultProps={keyPath:[],deep:0};var zc=class extends Ut{constructor(r){super(r);let e=r.deep===-1?[]:[...r.keyPath,r.name];this.state={name:r.name,data:r.data,keyPath:e,deep:r.deep,nextDeep:r.deep+1,collapsed:r.isCollapsed(e,r.deep,r.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(r,e){return r.data!==e.data?{data:r.data}:null}onChildUpdate(r,e){let{data:t,keyPath:i}=this.state;t[r]=e,this.setState({data:t});let{onUpdate:s}=this.props,n=i.length;s(i[n-1],t)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:r,newValue:e}){let{data:t,keyPath:i,nextDeep:s}=this.state,{beforeAddAction:n,logger:o}=this.props;n(r,i,s,e).then(()=>{t[r]=e,this.setState({data:t}),this.handleAddValueCancel();let{onUpdate:a,onDeltaUpdate:l}=this.props;a(i[i.length-1],t),l({type:L1,keyPath:i,deep:s,key:r,newValue:e})}).catch(o.error)}handleRemoveValue(r){return()=>{let{beforeRemoveAction:e,logger:t}=this.props,{data:i,keyPath:s,nextDeep:n}=this.state,o=i[r];e(r,s,n,o).then(()=>{let a={keyPath:s,deep:n,key:r,oldValue:o,type:k1};delete i[r],this.setState({data:i});let{onUpdate:l,onDeltaUpdate:d}=this.props;l(s[s.length-1],i),d(a)}).catch(t.error)}}handleCollapseMode(){this.setState(r=>({collapsed:!r.collapsed}))}handleEditValue({key:r,value:e}){return new Promise((t,i)=>{let{beforeUpdateAction:s}=this.props,{data:n,keyPath:o,nextDeep:a}=this.state,l=n[r];s(r,o,a,l,e).then(()=>{n[r]=e,this.setState({data:n});let{onUpdate:d,onDeltaUpdate:p}=this.props;d(o[o.length-1],n),p({type:M1,keyPath:o,deep:a,key:r,newValue:e,oldValue:l}),t()}).catch(i)})}renderCollapsed(){let{name:r,keyPath:e,deep:t,data:i}=this.state,{handleRemove:s,readOnly:n,dataType:o,getStyle:a,minusMenuElement:l}=this.props,{minus:d,collapsed:p}=a(r,i,e,t,o),_=Object.getOwnPropertyNames(i),g=n(r,i,e,t,o),m=Fe(l,{onClick:s,className:"rejt-minus-menu",style:d});return S.createElement("span",{className:"rejt-collapsed"},S.createElement("span",{className:"rejt-collapsed-text",style:p,onClick:this.handleCollapseMode},"{...}"," ",_.length," ",_.length===1?"key":"keys"),!g&&m)}renderNotCollapsed(){let{name:r,data:e,keyPath:t,deep:i,nextDeep:s,addFormVisible:n}=this.state,{isCollapsed:o,handleRemove:a,onDeltaUpdate:l,readOnly:d,getStyle:p,dataType:_,addButtonElement:g,cancelButtonElement:m,editButtonElement:A,inputElementGenerator:C,textareaElementGenerator:v,minusMenuElement:w,plusMenuElement:D,beforeRemoveAction:B,beforeAddAction:F,beforeUpdateAction:E,logger:O,onSubmitValueParser:M}=this.props,{minus:W,plus:$,addForm:j,ul:se,delimiter:J}=p(r,e,t,i,_),Q=Object.getOwnPropertyNames(e),L=d(r,e,t,i,_),R=Fe(D,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:$}),H=Fe(w,{onClick:a,className:"rejt-minus-menu",style:W}),V=Q.map(ae=>S.createElement(xa,{key:ae,name:ae,data:e[ae],keyPath:t,deep:s,isCollapsed:o,handleRemove:this.handleRemoveValue(ae),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:l,readOnly:d,getStyle:p,addButtonElement:g,cancelButtonElement:m,editButtonElement:A,inputElementGenerator:C,textareaElementGenerator:v,minusMenuElement:w,plusMenuElement:D,beforeRemoveAction:B,beforeAddAction:F,beforeUpdateAction:E,logger:O,onSubmitValueParser:M})),Z="{",K="}";return S.createElement("span",{className:"rejt-not-collapsed"},S.createElement("span",{className:"rejt-not-collapsed-delimiter",style:J},Z),!L&&R,S.createElement("ul",{className:"rejt-not-collapsed-list",style:se},V),!L&&n&&S.createElement("div",{className:"rejt-add-form",style:j},S.createElement(qc,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:g,cancelButtonElement:m,inputElementGenerator:C,keyPath:t,deep:i,onSubmitValueParser:M})),S.createElement("span",{className:"rejt-not-collapsed-delimiter",style:J},K),!L&&H)}render(){let{name:r,collapsed:e,data:t,keyPath:i,deep:s}=this.state,{getStyle:n,dataType:o}=this.props,a=e?this.renderCollapsed():this.renderNotCollapsed(),l=n(r,t,i,s,o);return S.createElement("div",{className:"rejt-object-node"},S.createElement("span",{onClick:this.handleCollapseMode},S.createElement("span",{className:"rejt-name",style:l.name},r," :"," ")),a)}};zc.defaultProps={keyPath:[],deep:0,minusMenuElement:S.createElement("span",null," - "),plusMenuElement:S.createElement("span",null," + ")};var ir=class extends Ut{constructor(r){super(r);let e=[...r.keyPath,r.name];this.state={value:r.value,name:r.name,keyPath:e,deep:r.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(r,e){return r.value!==e.value?{value:r.value}:null}componentDidUpdate(){let{editEnabled:r,inputRef:e,name:t,value:i,keyPath:s,deep:n}=this.state,{readOnly:o,dataType:a}=this.props,l=o(t,i,s,n,a);r&&!l&&typeof e.focus=="function"&&e.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(r){r.altKey||r.ctrlKey||r.metaKey||r.shiftKey||r.repeat||((r.code==="Enter"||r.key==="Enter")&&(r.preventDefault(),this.handleEdit()),(r.code==="Escape"||r.key==="Escape")&&(r.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:r,originalValue:e,logger:t,onSubmitValueParser:i,keyPath:s}=this.props,{inputRef:n,name:o,deep:a}=this.state;if(!n)return;let l=i(!0,s,a,o,n.value);r({value:l,key:o}).then(()=>{N1(e,l)||this.handleCancelEdit()}).catch(t.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(r){this.state.inputRef=r}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:r,value:e,editEnabled:t,keyPath:i,deep:s}=this.state,{handleRemove:n,originalValue:o,readOnly:a,dataType:l,getStyle:d,editButtonElement:p,cancelButtonElement:_,inputElementGenerator:g,minusMenuElement:m,keyPath:A}=this.props,C=d(r,o,i,s,l),v=a(r,o,i,s,l),w=t&&!v,D=g(jc,A,s,r,o,l),B=Fe(p,{onClick:this.handleEdit}),F=Fe(_,{onClick:this.handleCancelEdit}),E=Fe(D,{ref:this.refInput,defaultValue:JSON.stringify(o)}),O=Fe(m,{onClick:n,className:"rejt-minus-menu",style:C.minus});return S.createElement("li",{className:"rejt-value-node",style:C.li},S.createElement("span",{className:"rejt-name",style:C.name},r," : "),w?S.createElement("span",{className:"rejt-edit-form",style:C.editForm},E," ",F,B):S.createElement("span",{className:"rejt-value",style:C.value,onClick:v?null:this.handleEditMode},String(e)),!v&&!w&&O)}};ir.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:S.createElement("button",null,"e"),cancelButtonElement:S.createElement("button",null,"c"),minusMenuElement:S.createElement("span",null," - ")};var G7={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},V7={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},Y7={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}};function X7(r){let e=r;if(e.indexOf("function")===0)return(0,eval)(`(${e})`);try{e=JSON.parse(r)}catch{}return e}var H1=class extends Ut{constructor(r){super(r),this.state={data:r.data,rootName:r.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(r,e){return r.data!==e.data||r.rootName!==e.rootName?{data:r.data,rootName:r.rootName}:null}onUpdate(r,e){this.setState({data:e}),this.props.onFullyUpdate(e)}removeRoot(){this.onUpdate(null,null)}render(){let{data:r,rootName:e}=this.state,{isCollapsed:t,onDeltaUpdate:i,readOnly:s,getStyle:n,addButtonElement:o,cancelButtonElement:a,editButtonElement:l,inputElement:d,textareaElement:p,minusMenuElement:_,plusMenuElement:g,beforeRemoveAction:m,beforeAddAction:A,beforeUpdateAction:C,logger:v,onSubmitValueParser:w,fallback:D=null}=this.props,B=nr(r),F=s;nr(s)==="Boolean"&&(F=()=>s);let E=d;d&&nr(d)!=="Function"&&(E=()=>d);let O=p;return p&&nr(p)!=="Function"&&(O=()=>p),B==="Object"||B==="Array"?S.createElement("div",{className:"rejt-tree"},S.createElement(xa,{data:r,name:e,deep:-1,isCollapsed:t,onUpdate:this.onUpdate,onDeltaUpdate:i,readOnly:F,getStyle:n,addButtonElement:o,cancelButtonElement:a,editButtonElement:l,inputElementGenerator:E,textareaElementGenerator:O,minusMenuElement:_,plusMenuElement:g,handleRemove:this.removeRoot,beforeRemoveAction:m,beforeAddAction:A,beforeUpdateAction:C,logger:v,onSubmitValueParser:w})):D}};H1.defaultProps={rootName:"root",isCollapsed:(r,e)=>e!==-1,getStyle:(r,e,t,i,s)=>{switch(s){case"Object":case"Error":return G7;case"Array":return V7;default:return Y7}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(r,e,t,i,s)=>X7(s),inputElement:()=>S.createElement("input",null),textareaElement:()=>S.createElement("textarea",null),fallback:null};var{window:K7}=fe,Q7=U.div(({theme:r})=>({position:"relative",display:"flex",".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:r.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:r.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:r.color.lighter,borderColor:r.appBorderColor}})),Lc=U.button(({theme:r,primary:e})=>({border:0,height:20,margin:1,borderRadius:4,background:e?r.color.secondary:"transparent",color:e?r.color.lightest:r.color.dark,fontWeight:e?"bold":"normal",cursor:"pointer",order:e?"initial":9})),g1=U(De)(({theme:r,icon:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:r.textMutedColor,"&:hover":t?{}:{color:e==="subtract"?r.color.negative:r.color.ancillary},"svg + &":{marginLeft:0}})),_1=U.input(({theme:r,placeholder:e})=>({outline:0,margin:e?1:"1px 0",padding:"3px 4px",color:r.color.defaultText,background:r.background.app,border:`1px solid ${r.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:e==="Key"?80:120,"&:focus":{border:`1px solid ${r.color.secondary}`}})),Z7=U(Xe)(({theme:r})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:r.background.bar,border:`1px solid ${r.appBorderColor}`,borderRadius:3,color:r.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),J7=U(Qe.Textarea)(({theme:r})=>({flex:1,padding:"7px 6px",fontFamily:r.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:r.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),eH={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},tH=r=>{r.currentTarget.dispatchEvent(new K7.KeyboardEvent("keydown",eH))},rH=r=>{r.currentTarget.select()},iH=r=>()=>({name:{color:r.color.secondary},collapsed:{color:r.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),m1=({name:r,value:e,onChange:t})=>{let i=Tp(),s=Ht(()=>e&&(0,w1.default)(e),[e]),n=s!=null,[o,a]=ne(!n),[l,d]=ne(null),p=ve(v=>{try{v&&t(JSON.parse(v)),d(void 0)}catch(w){d(w)}},[t]),[_,g]=ne(!1),m=ve(()=>{t({}),g(!0)},[g]),A=Ye(null);if(me(()=>{_&&A.current&&A.current.select()},[_]),!n)return S.createElement(Qe.Button,{id:es(r),onClick:m},"Set object");let C=S.createElement(J7,{ref:A,id:tt(r),name:r,defaultValue:e===null?"":JSON.stringify(e,null,2),onBlur:v=>p(v.target.value),placeholder:"Edit JSON string...",autoFocus:_,valid:l?"error":null});return S.createElement(Q7,null,["Object","Array"].includes(nr(s))&&S.createElement(Z7,{href:"#",onClick:v=>{v.preventDefault(),a(w=>!w)}},S.createElement(De,{icon:o?"eyeclose":"eye"}),S.createElement("span",null,"RAW")),o?C:S.createElement(H1,{data:s,rootName:r,onFullyUpdate:t,getStyle:iH(i),cancelButtonElement:S.createElement(Lc,{type:"button"},"Cancel"),editButtonElement:S.createElement(Lc,{type:"submit"},"Save"),addButtonElement:S.createElement(Lc,{type:"submit",primary:!0},"Save"),plusMenuElement:S.createElement(g1,{icon:"add"}),minusMenuElement:S.createElement(g1,{icon:"subtract"}),inputElement:(v,w,D,B)=>B?S.createElement(_1,{onFocus:rH,onBlur:tH}):S.createElement(_1,null),fallback:C}))},sH=U.input(({theme:r,min:e,max:t,value:i})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:r.base==="light"?`linear-gradient(to right, - ${r.color.green} 0%, ${r.color.green} ${(i-e)/(t-e)*100}%, - ${gt(.02,r.input.background)} ${(i-e)/(t-e)*100}%, - ${gt(.02,r.input.background)} 100%)`:`linear-gradient(to right, - ${r.color.green} 0%, ${r.color.green} ${(i-e)/(t-e)*100}%, - ${Xt(.02,r.input.background)} ${(i-e)/(t-e)*100}%, - ${Xt(.02,r.input.background)} 100%)`,boxShadow:`${r.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${ft(r.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${ft(r.appBorderColor,.2)}`,cursor:"grab",appearance:"none",background:`${r.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${gt(.05,r.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${r.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:ft(r.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:r.color.secondary,boxShadow:`0 0px 5px 0px ${r.color.secondary}`}},"&::-moz-range-track":{background:r.base==="light"?`linear-gradient(to right, - ${r.color.green} 0%, ${r.color.green} ${(i-e)/(t-e)*100}%, - ${gt(.02,r.input.background)} ${(i-e)/(t-e)*100}%, - ${gt(.02,r.input.background)} 100%)`:`linear-gradient(to right, - ${r.color.green} 0%, ${r.color.green} ${(i-e)/(t-e)*100}%, - ${Xt(.02,r.input.background)} ${(i-e)/(t-e)*100}%, - ${Xt(.02,r.input.background)} 100%)`,boxShadow:`${r.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${ft(r.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${ft(r.appBorderColor,.2)}`,cursor:"grab",background:`${r.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${gt(.05,r.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${r.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:r.base==="light"?`linear-gradient(to right, - ${r.color.green} 0%, ${r.color.green} ${(i-e)/(t-e)*100}%, - ${gt(.02,r.input.background)} ${(i-e)/(t-e)*100}%, - ${gt(.02,r.input.background)} 100%)`:`linear-gradient(to right, - ${r.color.green} 0%, ${r.color.green} ${(i-e)/(t-e)*100}%, - ${Xt(.02,r.input.background)} ${(i-e)/(t-e)*100}%, - ${Xt(.02,r.input.background)} 100%)`,boxShadow:`${r.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${r.input.background}`,border:`1px solid ${ft(r.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),W1=U.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),nH=U(W1)(({numberOFDecimalsPlaces:r,max:e})=>({width:`${r+e.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),oH=U.div({display:"flex",alignItems:"center",width:"100%"});function aH(r){let e=r.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}var $c=({name:r,value:e,onChange:t,min:i=0,max:s=100,step:n=1,onBlur:o,onFocus:a})=>{let l=_=>{t(C7(_.target.value))},d=e!==void 0,p=Ht(()=>aH(n),[n]);return S.createElement(oH,null,S.createElement(W1,null,i),S.createElement(sH,{id:tt(r),type:"range",onChange:l,name:r,value:e,min:i,max:s,step:n,onFocus:a,onBlur:o}),S.createElement(nH,{numberOFDecimalsPlaces:p,max:s},d?e.toFixed(p):"--"," / ",s))},lH=U.label({display:"flex"}),uH=U.div(({isMaxed:r})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:r?"red":void 0})),hH=({name:r,value:e,onChange:t,onFocus:i,onBlur:s,maxLength:n})=>{let o=_=>{t(_.target.value)},[a,l]=ne(!1),d=ve(()=>{t(""),l(!0)},[l]);if(e===void 0)return S.createElement(Qe.Button,{id:es(r),onClick:d},"Set string");let p=typeof e=="string";return S.createElement(lH,null,S.createElement(Qe.Textarea,{id:tt(r),maxLength:n,onChange:o,size:"flex",placeholder:"Edit string...",autoFocus:a,valid:p?null:"error",name:r,value:p?e:"",onFocus:i,onBlur:s}),n&&S.createElement(uH,{isMaxed:e?.length===n},e?.length??0," / ",n))},cH=U(Qe.Input)({padding:10});function dH(r){r.forEach(e=>{e.startsWith("blob:")&&URL.revokeObjectURL(e)})}var pH=({onChange:r,name:e,accept:t="image/*",value:i})=>{let s=Ye(null);function n(o){if(!o.target.files)return;let a=Array.from(o.target.files).map(l=>URL.createObjectURL(l));r(a),dH(i)}return me(()=>{i==null&&s.current&&(s.current.value=null)},[i,e]),S.createElement(cH,{ref:s,id:tt(e),type:"file",name:e,multiple:!0,onChange:n,accept:t,size:"flex"})},fH=pd(()=>Promise.resolve().then(()=>(a1(),o1))),Us=r=>S.createElement(dd,{fallback:S.createElement("div",null)},S.createElement(fH,{...r})),gH={array:m1,object:m1,boolean:Wc,color:Us,date:b7,number:zs,check:sr,"inline-check":sr,radio:sr,"inline-radio":sr,select:sr,"multi-select":sr,range:$c,text:hH,file:pH},y1=()=>S.createElement(S.Fragment,null,"-"),_H=({row:r,arg:e,updateArgs:t,isHovered:i})=>{let{key:s,control:n}=r,[o,a]=ne(!1),[l,d]=ne({value:e});me(()=>{o||d({value:e})},[o,e]);let p=ve(C=>(d({value:C}),t({[s]:C}),C),[t,s]),_=ve(()=>a(!1),[]),g=ve(()=>a(!0),[]);if(!n||n.disable)return i?S.createElement(ar,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):S.createElement(y1,null);let m={name:s,argType:r,value:l.value,onChange:p,onBlur:_,onFocus:g},A=gH[n.type]||y1;return S.createElement(A,{...m,...n,controlType:n.type})},mH=U.span({fontWeight:"bold"}),yH=U.span(({theme:r})=>({color:r.color.negative,fontFamily:r.typography.fonts.mono,cursor:"help"})),xH=U.div(({theme:r})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:r.color.secondary}},code:{...Er({theme:r}),fontSize:12,fontFamily:r.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),bH=U.div(({theme:r,hasDescription:e})=>({color:r.base==="light"?Ee(.1,r.color.defaultText):Ee(.2,r.color.defaultText),marginTop:e?4:0})),SH=U.div(({theme:r,hasDescription:e})=>({color:r.base==="light"?Ee(.1,r.color.defaultText):Ee(.2,r.color.defaultText),marginTop:e?12:0,marginBottom:12})),CH=U.td(({theme:r,expandable:e})=>({paddingLeft:e?"40px !important":"20px !important"})),_a=r=>{let[e,t]=ne(!1),{row:i,updateArgs:s,compact:n,expandable:o,initialExpandedArgs:a}=r,{name:l,description:d}=i,p=i.table||{},_=p.type||i.type,g=p.defaultValue||i.defaultValue,m=i.type?.required,A=d!=null&&d!=="";return S.createElement("tr",{onMouseEnter:()=>t(!0),onMouseLeave:()=>t(!1)},S.createElement(CH,{expandable:o},S.createElement(mH,null,l),m?S.createElement(yH,{title:"Required"},"*"):null),n?null:S.createElement("td",null,A&&S.createElement(xH,null,S.createElement(C0,null,d)),p.jsDocTags!=null?S.createElement(S.Fragment,null,S.createElement(SH,{hasDescription:A},S.createElement(Oc,{value:_,initialExpandedArgs:a})),S.createElement(i7,{tags:p.jsDocTags})):S.createElement(bH,{hasDescription:A},S.createElement(Oc,{value:_,initialExpandedArgs:a}))),n?null:S.createElement("td",null,S.createElement(Oc,{value:g,initialExpandedArgs:a})),s?S.createElement("td",null,S.createElement(_H,{...r,isHovered:e})):null)},AH=U(De)(({theme:r})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:r.base==="light"?Ee(.25,r.color.defaultText):Ee(.3,r.color.defaultText),border:"none",display:"inline-block"})),vH=U.span(({theme:r})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),wH=U.td(({theme:r})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:r.typography.weight.bold,fontSize:r.typography.size.s1-1,color:r.base==="light"?Ee(.4,r.color.defaultText):Ee(.6,r.color.defaultText),background:`${r.background.app} !important`,"& ~ td":{background:`${r.background.app} !important`}})),EH=U.td(({theme:r})=>({position:"relative",fontWeight:r.typography.weight.bold,fontSize:r.typography.size.s2-1,background:r.background.app})),TH=U.td(()=>({position:"relative"})),DH=U.tr(({theme:r})=>({"&:hover > td":{backgroundColor:`${Xt(.005,r.background.app)} !important`,boxShadow:`${r.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),x1=U.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"})),kc=({level:r="section",label:e,children:t,initialExpanded:i=!0,colSpan:s=3})=>{let[n,o]=ne(i),a=r==="subsection"?EH:wH,l=t?.length||0,d=r==="subsection"?`${l} item${l!==1?"s":""}`:"",p=n?"arrowdown":"arrowright",_=`${n?"Hide":"Show"} ${r==="subsection"?l:e} item${l!==1?"s":""}`;return S.createElement(S.Fragment,null,S.createElement(DH,{title:_},S.createElement(a,{colSpan:1},S.createElement(x1,{onClick:g=>o(!n),tabIndex:0},_),S.createElement(vH,null,S.createElement(AH,{icon:p}),e)),S.createElement(TH,{colSpan:s-1},S.createElement(x1,{onClick:g=>o(!n),tabIndex:-1,style:{outline:"none"}},_),n?null:d)),n?t:null)},ma=U.div(({theme:r})=>({display:"flex",gap:16,borderBottom:`1px solid ${r.appBorderColor}`,"&:last-child":{borderBottom:0}})),$e=U.div(({numColumn:r})=>({display:"flex",flexDirection:"column",flex:r||1,gap:5,padding:"12px 20px"})),Pe=U.div(({theme:r,width:e,height:t})=>({animation:`${r.animation.glow} 1.5s ease-in-out infinite`,background:r.appBorderColor,width:e||"100%",height:t||16,borderRadius:3})),Ge=[2,4,2,2],FH=()=>S.createElement(S.Fragment,null,S.createElement(ma,null,S.createElement($e,{numColumn:Ge[0]},S.createElement(Pe,{width:"60%"})),S.createElement($e,{numColumn:Ge[1]},S.createElement(Pe,{width:"30%"})),S.createElement($e,{numColumn:Ge[2]},S.createElement(Pe,{width:"60%"})),S.createElement($e,{numColumn:Ge[3]},S.createElement(Pe,{width:"60%"}))),S.createElement(ma,null,S.createElement($e,{numColumn:Ge[0]},S.createElement(Pe,{width:"60%"})),S.createElement($e,{numColumn:Ge[1]},S.createElement(Pe,{width:"80%"}),S.createElement(Pe,{width:"30%"})),S.createElement($e,{numColumn:Ge[2]},S.createElement(Pe,{width:"60%"})),S.createElement($e,{numColumn:Ge[3]},S.createElement(Pe,{width:"60%"}))),S.createElement(ma,null,S.createElement($e,{numColumn:Ge[0]},S.createElement(Pe,{width:"60%"})),S.createElement($e,{numColumn:Ge[1]},S.createElement(Pe,{width:"80%"}),S.createElement(Pe,{width:"30%"})),S.createElement($e,{numColumn:Ge[2]},S.createElement(Pe,{width:"60%"})),S.createElement($e,{numColumn:Ge[3]},S.createElement(Pe,{width:"60%"}))),S.createElement(ma,null,S.createElement($e,{numColumn:Ge[0]},S.createElement(Pe,{width:"60%"})),S.createElement($e,{numColumn:Ge[1]},S.createElement(Pe,{width:"80%"}),S.createElement(Pe,{width:"30%"})),S.createElement($e,{numColumn:Ge[2]},S.createElement(Pe,{width:"60%"})),S.createElement($e,{numColumn:Ge[3]},S.createElement(Pe,{width:"60%"})))),IH=U.div(({inAddonPanel:r,theme:e})=>({height:r?"100%":"auto",display:"flex",border:r?"none":`1px solid ${e.appBorderColor}`,borderRadius:r?0:e.appBorderRadius,padding:r?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),BH=U.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),RH=U.div(({theme:r})=>({fontWeight:r.typography.weight.bold,fontSize:r.typography.size.s2-1,textAlign:"center",color:r.textColor})),PH=U.div(({theme:r})=>({fontWeight:r.typography.weight.regular,fontSize:r.typography.size.s2-1,textAlign:"center",color:r.textMutedColor})),OH=U.div(({theme:r})=>({display:"flex",fontSize:r.typography.size.s2-1,gap:25})),LH=U.div(({theme:r})=>({width:1,height:16,backgroundColor:r.appBorderColor})),kH=({inAddonPanel:r})=>{let[e,t]=ne(!0);return me(()=>{let i=setTimeout(()=>{t(!1)},100);return()=>clearTimeout(i)},[]),e?null:S.createElement(IH,{inAddonPanel:r},S.createElement(BH,null,S.createElement(RH,null,r?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated"),S.createElement(PH,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically.")),S.createElement(OH,null,r&&S.createElement(S.Fragment,null,S.createElement(ar,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},S.createElement(De,{icon:"video"})," Watch 5m video"),S.createElement(LH,null),S.createElement(ar,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Read docs")),!r&&S.createElement(ar,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Learn how to set that up")))},MH=U.table(({theme:r,compact:e,inAddonPanel:t})=>({"&&":{borderSpacing:0,color:r.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:r.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:t?0:25,marginBottom:t?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...e?null:{width:"35%"}},"td:nth-of-type(3)":{...e?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...e?null:{width:"25%"}},th:{color:r.base==="light"?Ee(.25,r.color.defaultText):Ee(.45,r.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:t?0:1,marginRight:t?0:1,tbody:{...t?null:{filter:r.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:r.background.content,borderTop:`1px solid ${r.appBorderColor}`},...t?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${r.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${r.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${r.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${r.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:r.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:r.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:r.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:r.appBorderRadius}}}}})),NH=U(Xe)(({theme:r})=>({color:r.barTextColor,margin:"-4px -12px -4px 0"})),zH=U.span({display:"flex",justifyContent:"space-between"}),UH={alpha:(r,e)=>r.name.localeCompare(e.name),requiredFirst:(r,e)=>+!!e.type?.required-+!!r.type?.required||r.name.localeCompare(e.name),none:void 0},HH=(r,e)=>{let t={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!r)return t;Object.entries(r).forEach(([n,o])=>{let{category:a,subcategory:l}=o?.table||{};if(a){let d=t.sections[a]||{ungrouped:[],subsections:{}};if(!l)d.ungrouped.push({key:n,...o});else{let p=d.subsections[l]||[];p.push({key:n,...o}),d.subsections[l]=p}t.sections[a]=d}else if(l){let d=t.ungroupedSubsections[l]||[];d.push({key:n,...o}),t.ungroupedSubsections[l]=d}else t.ungrouped.push({key:n,...o})});let i=UH[e],s=n=>i?Object.keys(n).reduce((o,a)=>({...o,[a]:n[a].sort(i)}),{}):n;return{ungrouped:t.ungrouped.sort(i),ungroupedSubsections:s(t.ungroupedSubsections),sections:Object.keys(t.sections).reduce((n,o)=>({...n,[o]:{ungrouped:t.sections[o].ungrouped.sort(i),subsections:s(t.sections[o].subsections)}}),{})}},WH=(r,e,t)=>{try{return Sh(r,e,t)}catch(i){return qs.warn(i.message),!1}},Ns=r=>{let{updateArgs:e,resetArgs:t,compact:i,inAddonPanel:s,initialExpandedArgs:n,sort:o="none",isLoading:a}=r;if("error"in r){let{error:D}=r;return S.createElement(D1,null,D,"\xA0",S.createElement(ar,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},"Read the docs"))}if(a)return S.createElement(FH,null);let{rows:l,args:d,globals:p}="rows"in r&&r,_=HH((0,C1.default)(l,D=>!D?.table?.disable&&WH(D,d||{},p||{})),o),g=_.ungrouped.length===0,m=Object.entries(_.sections).length===0,A=Object.entries(_.ungroupedSubsections).length===0;if(g&&m&&A)return S.createElement(kH,{inAddonPanel:s});let C=1;e&&(C+=1),i||(C+=2);let v=Object.keys(_.sections).length>0,w={updateArgs:e,compact:i,inAddonPanel:s,initialExpandedArgs:n};return S.createElement(ja,null,S.createElement(MH,{compact:i,inAddonPanel:s,className:"docblock-argstable sb-unstyled"},S.createElement("thead",{className:"docblock-argstable-head"},S.createElement("tr",null,S.createElement("th",null,S.createElement("span",null,"Name")),i?null:S.createElement("th",null,S.createElement("span",null,"Description")),i?null:S.createElement("th",null,S.createElement("span",null,"Default")),e?S.createElement("th",null,S.createElement(zH,null,"Control"," ",!a&&t&&S.createElement(NH,{onClick:()=>t(),title:"Reset controls"},S.createElement(De,{icon:"undo","aria-hidden":!0})))):null)),S.createElement("tbody",{className:"docblock-argstable-body"},_.ungrouped.map(D=>S.createElement(_a,{key:D.key,row:D,arg:d&&d[D.key],...w})),Object.entries(_.ungroupedSubsections).map(([D,B])=>S.createElement(kc,{key:D,label:D,level:"subsection",colSpan:C},B.map(F=>S.createElement(_a,{key:F.key,row:F,arg:d&&d[F.key],expandable:v,...w})))),Object.entries(_.sections).map(([D,B])=>S.createElement(kc,{key:D,label:D,level:"section",colSpan:C},B.ungrouped.map(F=>S.createElement(_a,{key:F.key,row:F,arg:d&&d[F.key],...w})),Object.entries(B.subsections).map(([F,E])=>S.createElement(kc,{key:F,label:F,level:"subsection",colSpan:C},E.map(O=>S.createElement(_a,{key:O.key,row:O,arg:d&&d[O.key],expandable:v,...w})))))))))},j1=({tabs:r,...e})=>{let t=Object.entries(r);return t.length===1?S.createElement(Ns,{...t[0][1],...e}):S.createElement($a,null,t.map(i=>{let[s,n]=i,o=`prop_table_div_${s}`;return S.createElement("div",{key:o,id:o,title:s},({active:a})=>a?S.createElement(Ns,{key:`prop_table_${s}`,...n,...e}):null)}))},FBe=U.div(({theme:r})=>({marginRight:30,fontSize:`${r.typography.size.s1}px`,color:r.base==="light"?Ee(.4,r.color.defaultText):Ee(.6,r.color.defaultText)})),IBe=U.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),BBe=U.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}}),RBe=U.div(Tr,({theme:r})=>({...ya(r),margin:"25px 0 40px",padding:"30px 20px"}));var PBe=U.div(({theme:r})=>({fontWeight:r.typography.weight.bold,color:r.color.defaultText})),OBe=U.div(({theme:r})=>({color:r.base==="light"?Ee(.2,r.color.defaultText):Ee(.6,r.color.defaultText)})),LBe=U.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5}),kBe=U.div(({theme:r})=>({flex:1,textAlign:"center",fontFamily:r.typography.fonts.mono,fontSize:r.typography.size.s1,lineHeight:1,overflow:"hidden",color:r.base==="light"?Ee(.4,r.color.defaultText):Ee(.6,r.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}})),MBe=U.div({display:"flex",flexDirection:"row"}),NBe=U.div(({background:r})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:r,content:'""'}})),zBe=U.div(({theme:r})=>({...ya(r),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"})),UBe=U.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30}),HBe=U.div({flex:1,display:"flex",flexDirection:"row"}),WBe=U.div({display:"flex",alignItems:"flex-start"}),jBe=U.div({flex:"0 0 30%"}),qBe=U.div({flex:1}),$Be=U.div(({theme:r})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:r.typography.weight.bold,color:r.base==="light"?Ee(.4,r.color.defaultText):Ee(.6,r.color.defaultText)})),GBe=U.div(({theme:r})=>({fontSize:r.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));var VBe=U.div(({theme:r})=>({fontFamily:r.typography.fonts.base,fontSize:r.typography.size.s2,color:r.color.defaultText,marginLeft:10,lineHeight:1.2})),YBe=U.div(({theme:r})=>({...ya(r),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}})),XBe=U.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"}),KBe=U.div({display:"flex",flexFlow:"row wrap"});fe&&fe.__DOCS_CONTEXT__===void 0&&(fe.__DOCS_CONTEXT__=bi(null),fe.__DOCS_CONTEXT__.displayName="DocsContext");var Gc=fe?fe.__DOCS_CONTEXT__:bi(null);var Vc="^",jH=r=>r.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(""),q1=r=>{if(r)return typeof r=="string"?r.includes("-")?jH(r):r:r.__docgenInfo&&r.__docgenInfo.displayName?r.__docgenInfo.displayName:r.name};function qH(r,e){let t=$H([r],e);return t&&t[0]}function $H(r,e){let[t,i]=ne({});return me(()=>{Promise.all(r.map(async s=>{let n=await e.loadStory(s);i(o=>o[s]===n?o:{...o,[s]:n})}))}),r.map(s=>{if(t[s])return t[s];try{return e.storyById(s)}catch{return null}})}var GH=(r,e)=>{let t=e.getStoryContext(e.storyById()),[i,s]=ne(t.args);me(()=>{let a=l=>{l.storyId===r&&s(l.args)};return e.channel.on(ko,a),()=>e.channel.off(ko,a)},[r]);let n=ve(a=>e.channel.emit(Mo,{storyId:r,updatedArgs:a}),[r]),o=ve(a=>e.channel.emit(Lo,{storyId:r,argNames:a}),[r]);return[i,n,o]},VH=r=>{let e=r.getStoryContext(r.storyById()),[t,i]=ne(e.globals);return me(()=>{let s=n=>{i(n.globals)};return r.channel.on(Oo,s),()=>r.channel.off(Oo,s)},[]),[t]},$1=(r,e,t,i)=>{let{extractArgTypes:s}=e.docs||{};if(!s)throw new Error("Args unsupported. See Args documentation for your framework.");let n=s(r);return n=As(n,t,i),n},b1=r=>r&&[Vc].includes(r),YH=(r={},e)=>{let{of:t}=r,{story:i}=r;if(b1(t)||b1(i))return e||null;if(!t)throw new Error("No component found.");return t},Uc=(r,e,t,i,s,n)=>({...r,...(0,E1.default)(e,o=>({rows:$1(o,t,i,s),sort:n}))}),XH=r=>{let e=sn(Gc),{story:t,component:i,subcomponents:s,showComponent:n,include:o,exclude:a,sort:l}=r;try{let d;switch(t){case Vc:{d=e.storyById().id;break}default:d=e.storyIdByName(t)}let p=qH(d,e),[_,g,m]=GH(d,e),[A]=VH(e);if(!p)return S.createElement(Ns,{isLoading:!0,updateArgs:g,resetArgs:m});let C=As(p.argTypes,o,a),v=q1(i)||"Story",w={[v]:{rows:C,args:_,globals:A,updateArgs:g,resetArgs:m}},D=C&&Object.values(C).find(B=>!!B?.control);if(D||(g=null,m=null,w={}),i&&(!D||n)&&(w=Uc(w,{[v]:i},p.parameters,o,a)),s){if(Array.isArray(s))throw new Error("Unexpected subcomponents array. Expected an object whose keys are tab labels and whose values are components.");w=Uc(w,s,p.parameters,o,a)}return S.createElement(j1,{tabs:w,sort:l})}catch(d){return S.createElement(Ns,{error:d.message})}},S1=r=>{let{components:e,include:t,exclude:i,sort:s,parameters:n}=r,o=Uc({},e,n,t,i);return S.createElement(j1,{tabs:o,sort:s})},KH=r=>{js(bs`The ArgsTable doc block is deprecated. Instead use the ArgTypes doc block for static tables or the Controls doc block for tables with controls. - - Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#argstable-block - `);let e=sn(Gc),t,i,s;try{({parameters:t,component:i,subcomponents:s}=e.storyById())}catch{let{of:m}=r;if("of"in r&&m===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");({projectAnnotations:{parameters:t}}=e.resolveOf(m,["component"]))}let{include:n,exclude:o,components:a,sort:l}=r,{story:d}=r,p=l||t.controls?.sort,_=YH(r,i);if(d)return S.createElement(XH,{...r,component:_,subcomponents:s,sort:p});if(!a&&!s){let m;try{m={rows:$1(_,t,n,o)}}catch(A){m={error:A.message}}return S.createElement(Ns,{...m,sort:p})}if(a)return S.createElement(S1,{...r,components:a,sort:p,parameters:t});let g=q1(_);return S.createElement(S1,{...r,components:{[g]:_,...s},sort:p,parameters:t})};KH.defaultProps={of:Vc};var QBe=bi({sources:{}});var QH=(r=>(r.OPEN="open",r.CLOSED="closed",r.NONE="none",r))(QH||{});var{document:ZH}=fe;function JH(r,e){r.channel.emit(Xy,e)}var ZBe=Ka.a;var G1=["h1","h2","h3","h4","h5","h6"],eW=G1.reduce((r,e)=>({...r,[e]:U(e)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),tW=U.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),rW=({as:r,id:e,children:t,...i})=>{let s=sn(Gc),n=eW[r],o=`#${e}`;return S.createElement(n,{id:e,...i},S.createElement(tW,{"aria-hidden":"true",href:o,tabIndex:-1,target:"_self",onClick:a=>{ZH.getElementById(e)&&JH(s,o)}},S.createElement(De,{icon:"link"})),t)},V1=r=>{let{as:e,id:t,children:i,...s}=r;if(t)return S.createElement(rW,{as:e,id:t,...s},i);let n=e,{as:o,...a}=r;return S.createElement(n,{...Qa(a,e)})},JBe=G1.reduce((r,e)=>({...r,[e]:t=>S.createElement(V1,{as:e,...t})}),{});var iW=(r=>(r.INFO="info",r.NOTES="notes",r.DOCGEN="docgen",r.AUTO="auto",r))(iW||{});var eRe=U.div(({theme:r})=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),tRe=U.div(({theme:r})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:r.typography.fonts.base,fontSize:r.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${r.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${r.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${r.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${r.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:r.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:r.color.secondary,textDecoration:"none"}})),rRe=U.p(({theme:r})=>({fontWeight:600,fontSize:"0.875em",color:r.textColor,textTransform:"uppercase",marginBottom:10}));var{document:iRe,window:sRe}=fe;var sW=({children:r,disableAnchor:e,...t})=>{if(e||typeof r!="string")return S.createElement(Ha,null,r);let i=r.toLowerCase().replace(/[^a-z0-9]/gi,"-");return S.createElement(V1,{as:"h2",id:i,...t},r)},nRe=U(sW)(({theme:r})=>({fontSize:`${r.typography.size.s2-1}px`,fontWeight:r.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:r.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}}));u();h();c();var ba=(r,e,t,i)=>{Ji({componentConfig:{[r]:{style:{[e]:t}}}},i)};function Sa({styleProp:r,defaultValue:e,componentName:t,updateGlobals:i}){let[s,n]=ne(e);return S.createElement(et,{label:r,control:S.createElement(zs,{name:r,value:s,onChange:o=>{n(o),ba(t,r,o,i)}})})}u();h();c();Be();function Ca({styleProp:r,defaultValue:e,componentName:t,updateGlobals:i}){let[s,n]=ne(e);return S.createElement(et,{label:r,control:S.createElement(Us,{name:r,value:s,onChange:o=>{n(o),ba(t,r,o,i)}})})}u();h();c();Be();function Aa({defaultTone:r,componentName:e}){let[t,i]=ne(r);return me(()=>{let s=Qi();s&&s.updateTheme({componentConfig:{[e]:{tone:t}}})},[t]),S.createElement(et,{label:"tone",control:S.createElement(sr,{name:"tones",type:"inline-radio",value:t,argType:{options:["neutral","inverse","brand"]},onChange:s=>{i(s)}})})}u();h();c();Be();bt();function va(){let[{LUITheme:r},e]=Ve(),i=dr().name;return S.createElement(S.Fragment,null,S.createElement(Xe,{title:"reset styles",label:"reset-panel",onClick:()=>Zi(i,e)},S.createElement(De,{icon:"undo"})))}u();h();c();Be();function nW(r,e){let t,i=r._style,s=dr(),n=r.constructor.__componentName,a={defaultTone:s?.componentConfig?.[n]?.tone?s.componentConfig[n].tone:"neutral",componentName:n,updateGlobals:e},l=Object.keys(i||{}).reduce((d,p)=>{let _=mp(i[p]);t=new Date().valueOf();let g=_==="color"?X.StageUtils.getRgbaString(i[p]):i[p],m={version:t,defaultValue:g,componentName:n,styleProp:p,updateGlobals:e};return _==="color"?d.push(S.createElement(Ca,{key:`${n}-${p}-${t}`,...m})):_==="number"&&d.push(S.createElement(Sa,{key:`${n}-${p}-${t}`,...m})),d},[]);if(l&&l.length)return l.unshift(S.createElement(Aa,{key:`Tone-${n}-${t}`,...a})),l}function wa(r){let[{LUITheme:e},t]=Ve(),i=nW(r,t);return i&&i.length?S.createElement("div",null,S.createElement("div",{style:{display:"flex"}},S.createElement("h1",{style:{flex:1}},"Current Theme: ",yp(e)),S.createElement(va,{style:{flex:1}})),S.createElement("div",null,S.createElement(Pt,{title:"Component Level Theme Styles",rows:i}))):S.createElement("h3",null,"No theme values available on this component.")}var Y1,Yc=r=>{let e=Cp();return e&&(Y1=e._getFocused().childList.first),S.createElement(za,{...r},S.createElement("div",{className:"component-styles-panel-wrapper"},r.active?S.createElement(S.Fragment,null,S.createElement(wa,{...Y1})):S.createElement(S.Fragment,null)))};u();h();c();Be();function oW(){let[r,e]=Ve();if(!r)return S.createElement(S.Fragment,null);let t="GridOverlay-",i=`${t}toggle-`,s=Object.keys(r).filter(l=>l.startsWith(i));if(!s)return S.createElement(S.Fragment,null);let n=[],o="alpha",a=t+o;return r[a]&&n.push(S.createElement(et,{key:o,label:o,control:S.createElement($c,{key:a,name:o,value:parseFloat(r[a]),min:0,max:1,step:.1,onChange:l=>e({[a]:l.toString()})})})),n.push(...s.map(l=>{let d=l.replace(i,"");return S.createElement(et,{key:l,label:d,control:S.createElement(Wc,{key:l,name:d,value:r[l]==="true",onChange:p=>e({[l]:p.toString()})})})})),S.createElement(S.Fragment,null,n)}var aW=({active:r})=>S.createElement("div",{className:"grid-overlay-panel-wrapper",style:r?{}:{display:"none"}},S.createElement("div",{key:Js,className:"grid-overal-panel-controls"},S.createElement(Pt,{title:"Grid Overlay Controls",key:"controls",rows:S.createElement(oW,null)}))),Xc=r=>S.createElement(aW,{key:"GridOverlayPanel",active:r.active});u();h();c();Be();function lW(){let[{LUITheme:r},e]=Ve(),i=no().color,s=Object.keys(i).map(n=>{let o=Array.isArray(i[n])?xe.getHexColor(i[n][0],i[n][1]):xe.getValidColor(i[n]),a=X.StageUtils.getRgbaString(o);return S.createElement(et,{key:r?`${r}-${n}`:n,label:n,control:S.createElement(Us,{name:n,onChange:l=>Ap(n,l,e),value:a})})});return S.createElement(S.Fragment,null,s)}var uW=(r,e,t)=>{Ji({radius:{[r]:e}},t)};function hW(){let[{LUITheme:r},e]=Ve(),i=no().radius,s=Object.keys(i).map(n=>S.createElement(et,{key:r?`${r}-${n}`:n,label:n,control:S.createElement(zs,{name:n,onChange:o=>uW(n,o,e),value:parseInt(i[n]),min:0})}));return S.createElement(S.Fragment,null,s)}var cW=({active:r})=>S.createElement("div",{className:"theme-panel-wrapper",style:r?{}:{display:"none"}},S.createElement("div",{className:"theme-panel-controls"},S.createElement("h1",null,"Current Theme: ",no().name),S.createElement(Pt,{title:"Global Theme Color Values",rows:S.createElement(lW,null)}),S.createElement(Pt,{title:"Global Theme Radius Values",rows:S.createElement(hW,null)}))),Kc=r=>S.createElement(cW,{key:"ThemePanel",active:r.active});yt.setConfig({theme:ad,enableShortcuts:!1});yt.register(ot,()=>{yt.add(Zs,{type:zt.TOOL,title:"Announce Toggle",match:({viewMode:r})=>r==="story",render:Za}),yt.add(tn,{type:zt.TOOL,title:"Theme",match:({viewMode:r})=>r==="story",render:wu}),yt.add(Qs,{type:zt.TOOL,title:"Download Button",match:({viewMode:r})=>r==="story",render:Au}),yt.add(en,{type:zt.TOOL,title:"Stage Color",match:({viewMode:r})=>r==="story",render:Ja}),yt.add(Js,{type:zt.PANEL,title:"Grid Layout Overlay",match:({viewMode:r})=>r==="story",render:r=>Xc(r)}),yt.add(ud,{type:zt.PANEL,title:"Component Style Theme Values",match:({viewMode:r})=>r==="story",render:r=>Yc(r)}),yt.add(ld,{type:zt.PANEL,title:"Global Theme Values",match:({viewMode:r})=>r==="story",render:Kc})});})(); -}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/sb-addons/storybook-5/manager-bundle.js.LEGAL.txt b/sb-addons/storybook-5/manager-bundle.js.LEGAL.txt deleted file mode 100644 index cfea3e72c..000000000 --- a/sb-addons/storybook-5/manager-bundle.js.LEGAL.txt +++ /dev/null @@ -1,18 +0,0 @@ -Bundled license information: - -telejson/dist/index.mjs: - /*! - * isobject - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */ - /** - * @license - * Lodash (Custom Build) - * Build: `lodash modularize exports="es" -o ./` - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ diff --git a/sb-addons/storybook-6/manager-bundle.js b/sb-addons/storybook-6/manager-bundle.js new file mode 100644 index 000000000..d4cef4d5a --- /dev/null +++ b/sb-addons/storybook-6/manager-bundle.js @@ -0,0 +1,1366 @@ +try{ +(()=>{var XC=Object.create;var qn=Object.defineProperty;var KC=Object.getOwnPropertyDescriptor;var JC=Object.getOwnPropertyNames;var QC=Object.getPrototypeOf,ZC=Object.prototype.hasOwnProperty;var Ft=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')});var Vt=(r,e)=>()=>(r&&(e=r(r=0)),e);var H=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),rr=(r,e)=>{for(var t in e)qn(r,t,{get:e[t],enumerable:!0})},up=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of JC(e))!ZC.call(r,s)&&s!==t&&qn(r,s,{get:()=>e[s],enumerable:!(i=KC(e,s))||i.enumerable});return r};var ye=(r,e,t)=>(t=r!=null?XC(QC(r)):{},up(e||!r||!r.__esModule?qn(t,"default",{value:r,enumerable:!0}):t,r)),e1=r=>up(qn({},"__esModule",{value:!0}),r);var h=Vt(()=>{});var d=Vt(()=>{});var p=Vt(()=>{});var Rl={};rr(Rl,{Children:()=>Tl,Component:()=>ir,Fragment:()=>s1,Profiler:()=>n1,PureComponent:()=>o1,StrictMode:()=>a1,Suspense:()=>Cl,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>l1,cloneElement:()=>Ue,createContext:()=>fi,createElement:()=>_p,createFactory:()=>u1,createRef:()=>c1,default:()=>z,forwardRef:()=>h1,isValidElement:()=>d1,lazy:()=>Al,memo:()=>hs,startTransition:()=>p1,unstable_act:()=>f1,useCallback:()=>ut,useContext:()=>El,useDebugValue:()=>g1,useDeferredValue:()=>m1,useEffect:()=>He,useId:()=>_1,useImperativeHandle:()=>y1,useInsertionEffect:()=>x1,useLayoutEffect:()=>Il,useMemo:()=>vr,useReducer:()=>b1,useRef:()=>Bt,useState:()=>Fe,useSyncExternalStore:()=>v1,useTransition:()=>S1,version:()=>w1});var z,Tl,ir,s1,n1,o1,a1,Cl,l1,Ue,fi,_p,u1,c1,h1,d1,Al,hs,p1,f1,ut,El,g1,m1,He,_1,y1,x1,Il,vr,b1,Bt,Fe,v1,S1,w1,Ge=Vt(()=>{h();d();p();z=__REACT__,{Children:Tl,Component:ir,Fragment:s1,Profiler:n1,PureComponent:o1,StrictMode:a1,Suspense:Cl,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:l1,cloneElement:Ue,createContext:fi,createElement:_p,createFactory:u1,createRef:c1,forwardRef:h1,isValidElement:d1,lazy:Al,memo:hs,startTransition:p1,unstable_act:f1,useCallback:ut,useContext:El,useDebugValue:g1,useDeferredValue:m1,useEffect:He,useId:_1,useImperativeHandle:y1,useInsertionEffect:x1,useLayoutEffect:Il,useMemo:vr,useReducer:b1,useRef:Bt,useState:Fe,useSyncExternalStore:v1,useTransition:S1,version:w1}=__REACT__});var wp=H(Jn=>{"use strict";h();d();p();var T1=(Ge(),e1(Rl)),C1=Symbol.for("react.element"),A1=Symbol.for("react.fragment"),E1=Object.prototype.hasOwnProperty,I1=T1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,R1={key:!0,ref:!0,__self:!0,__source:!0};function Sp(r,e,t){var i,s={},n=null,o=null;t!==void 0&&(n=""+t),e.key!==void 0&&(n=""+e.key),e.ref!==void 0&&(o=e.ref);for(i in e)E1.call(e,i)&&!R1.hasOwnProperty(i)&&(s[i]=e[i]);if(r&&r.defaultProps)for(i in e=r.defaultProps,e)s[i]===void 0&&(s[i]=e[i]);return{$$typeof:C1,type:r,key:n,ref:o,props:s,_owner:I1.current}}Jn.Fragment=A1;Jn.jsx=Sp;Jn.jsxs=Sp});var Ce=H((RG,Tp)=>{"use strict";h();d();p();Tp.exports=wp()});var Cf=H((lfe,Tf)=>{h();d();p();function nc(r,e,t){var i,s,n,o,a;e==null&&(e=100);function l(){var c=Date.now()-o;c=0?i=setTimeout(l,e-c):(i=null,t||(a=r.apply(n,s),n=s=null))}var u=function(){n=this,s=arguments,o=Date.now();var c=t&&!i;return i||(i=setTimeout(l,e)),c&&(a=r.apply(n,s),n=s=null),a};return u.clear=function(){i&&(clearTimeout(i),i=null)},u.flush=function(){i&&(a=r.apply(n,s),n=s=null,clearTimeout(i),i=null)},u}nc.debounce=nc;Tf.exports=nc});var $A,Rf,VA,Pf,GA,YA,Xr,XA,kf,Kt,ac,lc=Vt(()=>{h();d();p();$A=Object.create,Rf=Object.defineProperty,VA=Object.getOwnPropertyDescriptor,Pf=Object.getOwnPropertyNames,GA=Object.getPrototypeOf,YA=Object.prototype.hasOwnProperty,Xr=(r,e)=>function(){return e||(0,r[Pf(r)[0]])((e={exports:{}}).exports,e),e.exports},XA=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Pf(e))!YA.call(r,s)&&s!==t&&Rf(r,s,{get:()=>e[s],enumerable:!(i=VA(e,s))||i.enumerable});return r},kf=(r,e,t)=>(t=r!=null?$A(GA(r)):{},XA(e||!r||!r.__esModule?Rf(t,"default",{value:r,enumerable:!0}):t,r)),Kt=r=>`control-${r.replace(/\s+/g,"-")}`,ac=r=>`set-${r.replace(/\s+/g,"-")}`});var Hf={};rr(Hf,{A:()=>JA,ActionBar:()=>uc,AddonPanel:()=>QA,Badge:()=>ZA,Bar:()=>eE,Blockquote:()=>tE,Button:()=>Zo,ClipboardCode:()=>rE,Code:()=>Of,DL:()=>iE,Div:()=>sE,DocumentWrapper:()=>nE,EmptyTabContent:()=>Lf,ErrorFormatter:()=>Df,FlexBar:()=>cc,Form:()=>Rr,H1:()=>oE,H2:()=>hc,H3:()=>Ff,H4:()=>aE,H5:()=>lE,H6:()=>uE,HR:()=>cE,IconButton:()=>Kr,IconButtonSkeleton:()=>hE,Icons:()=>dE,Img:()=>pE,LI:()=>fE,Link:()=>Bf,ListItem:()=>gE,Loader:()=>Mf,Modal:()=>mE,OL:()=>_E,P:()=>yE,Placeholder:()=>xE,Pre:()=>bE,ResetWrapper:()=>Nf,ScrollArea:()=>vE,Separator:()=>SE,Spaced:()=>wE,Span:()=>TE,StorybookIcon:()=>CE,StorybookLogo:()=>AE,Symbols:()=>EE,SyntaxHighlighter:()=>dc,TT:()=>IE,TabBar:()=>RE,TabButton:()=>PE,TabWrapper:()=>kE,Table:()=>OE,Tabs:()=>LE,TabsState:()=>zf,TooltipLinkList:()=>DE,TooltipMessage:()=>FE,TooltipNote:()=>pc,UL:()=>BE,WithTooltip:()=>ea,WithTooltipPure:()=>jf,Zoom:()=>fc,codeCommon:()=>Ai,components:()=>gc,createCopyToClipboardFunction:()=>ME,default:()=>KA,getStoryHref:()=>Uf,icons:()=>NE,interleaveSeparators:()=>zE,nameSpaceClassNames:()=>mc,resetComponents:()=>jE,withReset:()=>Ei});var KA,JA,uc,QA,ZA,eE,tE,Zo,rE,Of,iE,sE,nE,Lf,Df,cc,Rr,oE,hc,Ff,aE,lE,uE,cE,Kr,hE,dE,pE,fE,Bf,gE,Mf,mE,_E,yE,xE,bE,Nf,vE,SE,wE,TE,CE,AE,EE,dc,IE,RE,PE,kE,OE,LE,zf,DE,FE,pc,BE,ea,jf,fc,Ai,gc,ME,Uf,NE,zE,mc,jE,Ei,ta=Vt(()=>{h();d();p();KA=__STORYBOOK_COMPONENTS__,{A:JA,ActionBar:uc,AddonPanel:QA,Badge:ZA,Bar:eE,Blockquote:tE,Button:Zo,ClipboardCode:rE,Code:Of,DL:iE,Div:sE,DocumentWrapper:nE,EmptyTabContent:Lf,ErrorFormatter:Df,FlexBar:cc,Form:Rr,H1:oE,H2:hc,H3:Ff,H4:aE,H5:lE,H6:uE,HR:cE,IconButton:Kr,IconButtonSkeleton:hE,Icons:dE,Img:pE,LI:fE,Link:Bf,ListItem:gE,Loader:Mf,Modal:mE,OL:_E,P:yE,Placeholder:xE,Pre:bE,ResetWrapper:Nf,ScrollArea:vE,Separator:SE,Spaced:wE,Span:TE,StorybookIcon:CE,StorybookLogo:AE,Symbols:EE,SyntaxHighlighter:dc,TT:IE,TabBar:RE,TabButton:PE,TabWrapper:kE,Table:OE,Tabs:LE,TabsState:zf,TooltipLinkList:DE,TooltipMessage:FE,TooltipNote:pc,UL:BE,WithTooltip:ea,WithTooltipPure:jf,Zoom:fc,codeCommon:Ai,components:gc,createCopyToClipboardFunction:ME,getStoryHref:Uf,icons:NE,interleaveSeparators:zE,nameSpaceClassNames:mc,resetComponents:jE,withReset:Ei}=__STORYBOOK_COMPONENTS__});var rge,ige,sge,nge,Wf,oge,age,qf,lge,uge,cge,hge,dge,pge,UE,$f,fge,gge,mge,_ge,J,_c,yge,Vf,xge,yc=Vt(()=>{h();d();p();rge=__STORYBOOK_THEMING__,{CacheProvider:ige,ClassNames:sge,Global:nge,ThemeProvider:Wf,background:oge,color:age,convert:qf,create:lge,createCache:uge,createGlobal:cge,createReset:hge,css:dge,darken:pge,ensure:UE,ignoreSsrWarning:$f,isPropValid:fge,jsx:gge,keyframes:mge,lighten:_ge,styled:J,themes:_c,typography:yge,useTheme:Vf,withTheme:xge}=__STORYBOOK_THEMING__});var Ume,Hme,Wme,ig,qme,$me,Vme,Gme,Yme,Xme,Kme,Jme,Qme,Zme,e_e,t_e,r_e,i_e,s_e,n_e,o_e,a_e,l_e,u_e,c_e,h_e,d_e,p_e,f_e,g_e,m_e,__e,y_e,x_e,b_e,v_e,S_e,w_e,T_e,C_e,A_e,E_e,I_e,R_e,P_e,k_e,O_e,L_e,sg,D_e,ng,Cc,F_e,B_e,og,M_e,N_e,z_e,j_e,U_e,H_e,W_e,q_e,$_e,V_e,G_e,Y_e,X_e,K_e,J_e,Q_e,Z_e,eye,tye,rye,iye,sye,nye,oye,aye,lye,uye,cye,hye,dye,pye,fye,gye,AI,mye,_ye,yye,xye,bye,vye,Sye,EI,II,wye,Tye,Cye,Aye,Eye,Iye,Rye,Pye,kye,Oye,Lye,Dye,Fye,Bye,Mye,Nye,zye,jye,Uye,Hye,Wye,qye,$ye,Vye,Gye,Yye,Xye,Kye,Jye,Qye,Zye,exe,txe,ag,rxe,ixe,sxe,nxe,oxe,axe,lxe,lg,uxe,cxe,hxe,dxe,pxe,fxe,gxe,mxe,_xe,yxe,xxe,bxe,vxe,Sxe,wxe,Txe,Cxe,Axe,Exe,Ixe,Rxe,Pxe,kxe,Oxe,Lxe,Dxe,Fxe,Bxe,Mxe,Nxe,zxe,jxe,Uxe,Hxe,Wxe,qxe,$xe,Vxe,Gxe,Yxe,Xxe,Kxe,Jxe,Qxe,Zxe,ebe,tbe,rbe,ibe,sbe,nbe,obe,abe,lbe,ube,cbe,hbe,dbe,pbe,fbe,gbe,ug,mbe,_be,ybe,xbe,bbe,vbe,Sbe,wbe,Tbe,Cbe,Abe,Ebe,Ibe,RI,Rbe,Pbe,kbe,Obe,Lbe,Dbe,Fbe,Bbe,Mbe,Nbe,PI,zbe,jbe,Ube,Hbe,Wbe,qbe,cg,hg,dg,$be,Ac=Vt(()=>{h();d();p();Ume=__STORYBOOK_ICONS__,{AccessibilityAltIcon:Hme,AccessibilityIcon:Wme,AddIcon:ig,AdminIcon:qme,AlertAltIcon:$me,AlertIcon:Vme,AlignLeftIcon:Gme,AlignRightIcon:Yme,AppleIcon:Xme,ArrowBottomLeftIcon:Kme,ArrowBottomRightIcon:Jme,ArrowDownIcon:Qme,ArrowLeftIcon:Zme,ArrowRightIcon:e_e,ArrowSolidDownIcon:t_e,ArrowSolidLeftIcon:r_e,ArrowSolidRightIcon:i_e,ArrowSolidUpIcon:s_e,ArrowTopLeftIcon:n_e,ArrowTopRightIcon:o_e,ArrowUpIcon:a_e,AzureDevOpsIcon:l_e,BackIcon:u_e,BasketIcon:c_e,BatchAcceptIcon:h_e,BatchDenyIcon:d_e,BeakerIcon:p_e,BellIcon:f_e,BitbucketIcon:g_e,BoldIcon:m_e,BookIcon:__e,BookmarkHollowIcon:y_e,BookmarkIcon:x_e,BottomBarIcon:b_e,BottomBarToggleIcon:v_e,BoxIcon:S_e,BranchIcon:w_e,BrowserIcon:T_e,ButtonIcon:C_e,CPUIcon:A_e,CalendarIcon:E_e,CameraIcon:I_e,CategoryIcon:R_e,CertificateIcon:P_e,ChangedIcon:k_e,ChatIcon:O_e,CheckIcon:L_e,ChevronDownIcon:sg,ChevronLeftIcon:D_e,ChevronRightIcon:ng,ChevronSmallDownIcon:Cc,ChevronSmallLeftIcon:F_e,ChevronSmallRightIcon:B_e,ChevronSmallUpIcon:og,ChevronUpIcon:M_e,ChromaticIcon:N_e,ChromeIcon:z_e,CircleHollowIcon:j_e,CircleIcon:U_e,ClearIcon:H_e,CloseAltIcon:W_e,CloseIcon:q_e,CloudHollowIcon:$_e,CloudIcon:V_e,CogIcon:G_e,CollapseIcon:Y_e,CommandIcon:X_e,CommentAddIcon:K_e,CommentIcon:J_e,CommentsIcon:Q_e,CommitIcon:Z_e,CompassIcon:eye,ComponentDrivenIcon:tye,ComponentIcon:rye,ContrastIcon:iye,ControlsIcon:sye,CopyIcon:nye,CreditIcon:oye,CrossIcon:aye,DashboardIcon:lye,DatabaseIcon:uye,DeleteIcon:cye,DiamondIcon:hye,DirectionIcon:dye,DiscordIcon:pye,DocChartIcon:fye,DocListIcon:gye,DocumentIcon:AI,DownloadIcon:mye,DragIcon:_ye,EditIcon:yye,EllipsisIcon:xye,EmailIcon:bye,ExpandAltIcon:vye,ExpandIcon:Sye,EyeCloseIcon:EI,EyeIcon:II,FaceHappyIcon:wye,FaceNeutralIcon:Tye,FaceSadIcon:Cye,FacebookIcon:Aye,FailedIcon:Eye,FastForwardIcon:Iye,FigmaIcon:Rye,FilterIcon:Pye,FlagIcon:kye,FolderIcon:Oye,FormIcon:Lye,GDriveIcon:Dye,GithubIcon:Fye,GitlabIcon:Bye,GlobeIcon:Mye,GoogleIcon:Nye,GraphBarIcon:zye,GraphLineIcon:jye,GraphqlIcon:Uye,GridAltIcon:Hye,GridIcon:Wye,GrowIcon:qye,HeartHollowIcon:$ye,HeartIcon:Vye,HomeIcon:Gye,HourglassIcon:Yye,InfoIcon:Xye,ItalicIcon:Kye,JumpToIcon:Jye,KeyIcon:Qye,LightningIcon:Zye,LightningOffIcon:exe,LinkBrokenIcon:txe,LinkIcon:ag,LinkedinIcon:rxe,LinuxIcon:ixe,ListOrderedIcon:sxe,ListUnorderedIcon:nxe,LocationIcon:oxe,LockIcon:axe,MarkdownIcon:lxe,MarkupIcon:lg,MediumIcon:uxe,MemoryIcon:cxe,MenuIcon:hxe,MergeIcon:dxe,MirrorIcon:pxe,MobileIcon:fxe,MoonIcon:gxe,NutIcon:mxe,OutboxIcon:_xe,OutlineIcon:yxe,PaintBrushIcon:xxe,PaperClipIcon:bxe,ParagraphIcon:vxe,PassedIcon:Sxe,PhoneIcon:wxe,PhotoDragIcon:Txe,PhotoIcon:Cxe,PinAltIcon:Axe,PinIcon:Exe,PlayBackIcon:Ixe,PlayIcon:Rxe,PlayNextIcon:Pxe,PlusIcon:kxe,PointerDefaultIcon:Oxe,PointerHandIcon:Lxe,PowerIcon:Dxe,PrintIcon:Fxe,ProceedIcon:Bxe,ProfileIcon:Mxe,PullRequestIcon:Nxe,QuestionIcon:zxe,RSSIcon:jxe,RedirectIcon:Uxe,ReduxIcon:Hxe,RefreshIcon:Wxe,ReplyIcon:qxe,RepoIcon:$xe,RequestChangeIcon:Vxe,RewindIcon:Gxe,RulerIcon:Yxe,SearchIcon:Xxe,ShareAltIcon:Kxe,ShareIcon:Jxe,ShieldIcon:Qxe,SideBySideIcon:Zxe,SidebarAltIcon:ebe,SidebarAltToggleIcon:tbe,SidebarIcon:rbe,SidebarToggleIcon:ibe,SpeakerIcon:sbe,StackedIcon:nbe,StarHollowIcon:obe,StarIcon:abe,StatusFailIcon:lbe,StatusPassIcon:ube,StatusWarnIcon:cbe,StickerIcon:hbe,StopAltIcon:dbe,StopIcon:pbe,StorybookIcon:fbe,StructureIcon:gbe,SubtractIcon:ug,SunIcon:mbe,SupportIcon:_be,SwitchAltIcon:ybe,SyncIcon:xbe,TabletIcon:bbe,ThumbsUpIcon:vbe,TimeIcon:Sbe,TimerIcon:wbe,TransferIcon:Tbe,TrashIcon:Cbe,TwitterIcon:Abe,TypeIcon:Ebe,UbuntuIcon:Ibe,UndoIcon:RI,UnfoldIcon:Rbe,UnlockIcon:Pbe,UnpinIcon:kbe,UploadIcon:Obe,UserAddIcon:Lbe,UserAltIcon:Dbe,UserIcon:Fbe,UsersIcon:Bbe,VSCodeIcon:Mbe,VerifiedIcon:Nbe,VideoIcon:PI,WandIcon:zbe,WatchIcon:jbe,WindowsIcon:Ube,WrenchIcon:Hbe,XIcon:Wbe,YoutubeIcon:qbe,ZoomIcon:cg,ZoomOutIcon:hg,ZoomResetIcon:dg,iconList:$be}=__STORYBOOK_ICONS__});var Rc=H((o0e,vg)=>{h();d();p();function qI(r,e){for(var t=-1,i=r==null?0:r.length,s=Array(i);++t{h();d();p();function $I(){this.__data__=[],this.size=0}Sg.exports=$I});var aa=H((f0e,Tg)=>{h();d();p();function VI(r,e){return r===e||r!==r&&e!==e}Tg.exports=VI});var Xs=H((y0e,Cg)=>{h();d();p();var GI=aa();function YI(r,e){for(var t=r.length;t--;)if(GI(r[t][0],e))return t;return-1}Cg.exports=YI});var Eg=H((S0e,Ag)=>{h();d();p();var XI=Xs(),KI=Array.prototype,JI=KI.splice;function QI(r){var e=this.__data__,t=XI(e,r);if(t<0)return!1;var i=e.length-1;return t==i?e.pop():JI.call(e,t,1),--this.size,!0}Ag.exports=QI});var Rg=H((A0e,Ig)=>{h();d();p();var ZI=Xs();function eR(r){var e=this.__data__,t=ZI(e,r);return t<0?void 0:e[t][1]}Ig.exports=eR});var kg=H((P0e,Pg)=>{h();d();p();var tR=Xs();function rR(r){return tR(this.__data__,r)>-1}Pg.exports=rR});var Lg=H((D0e,Og)=>{h();d();p();var iR=Xs();function sR(r,e){var t=this.__data__,i=iR(t,r);return i<0?(++this.size,t.push([r,e])):t[i][1]=e,this}Og.exports=sR});var Ks=H((N0e,Dg)=>{h();d();p();var nR=wg(),oR=Eg(),aR=Rg(),lR=kg(),uR=Lg();function Pi(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e{h();d();p();var cR=Ks();function hR(){this.__data__=new cR,this.size=0}Fg.exports=hR});var Ng=H((V0e,Mg)=>{h();d();p();function dR(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}Mg.exports=dR});var jg=H((K0e,zg)=>{h();d();p();function pR(r){return this.__data__.get(r)}zg.exports=pR});var Hg=H((eve,Ug)=>{h();d();p();function fR(r){return this.__data__.has(r)}Ug.exports=fR});var Pc=H((sve,Wg)=>{h();d();p();var gR=typeof window=="object"&&window&&window.Object===Object&&window;Wg.exports=gR});var Mt=H((lve,qg)=>{h();d();p();var mR=Pc(),_R=typeof self=="object"&&self&&self.Object===Object&&self,yR=mR||_R||Function("return this")();qg.exports=yR});var ki=H((dve,$g)=>{h();d();p();var xR=Mt(),bR=xR.Symbol;$g.exports=bR});var Xg=H((mve,Yg)=>{h();d();p();var Vg=ki(),Gg=Object.prototype,vR=Gg.hasOwnProperty,SR=Gg.toString,Js=Vg?Vg.toStringTag:void 0;function wR(r){var e=vR.call(r,Js),t=r[Js];try{r[Js]=void 0;var i=!0}catch{}var s=SR.call(r);return i&&(e?r[Js]=t:delete r[Js]),s}Yg.exports=wR});var Jg=H((bve,Kg)=>{h();d();p();var TR=Object.prototype,CR=TR.toString;function AR(r){return CR.call(r)}Kg.exports=AR});var Oi=H((Tve,em)=>{h();d();p();var Qg=ki(),ER=Xg(),IR=Jg(),RR="[object Null]",PR="[object Undefined]",Zg=Qg?Qg.toStringTag:void 0;function kR(r){return r==null?r===void 0?PR:RR:Zg&&Zg in Object(r)?ER(r):IR(r)}em.exports=kR});var Jt=H((Ive,tm)=>{h();d();p();function OR(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}tm.exports=OR});var kc=H((Ove,rm)=>{h();d();p();var LR=Oi(),DR=Jt(),FR="[object AsyncFunction]",BR="[object Function]",MR="[object GeneratorFunction]",NR="[object Proxy]";function zR(r){if(!DR(r))return!1;var e=LR(r);return e==BR||e==MR||e==FR||e==NR}rm.exports=zR});var sm=H((Bve,im)=>{h();d();p();var jR=Mt(),UR=jR["__core-js_shared__"];im.exports=UR});var am=H((jve,om)=>{h();d();p();var Oc=sm(),nm=function(){var r=/[^.]+$/.exec(Oc&&Oc.keys&&Oc.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function HR(r){return!!nm&&nm in r}om.exports=HR});var Lc=H((qve,lm)=>{h();d();p();var WR=Function.prototype,qR=WR.toString;function $R(r){if(r!=null){try{return qR.call(r)}catch{}try{return r+""}catch{}}return""}lm.exports=$R});var cm=H((Yve,um)=>{h();d();p();var VR=kc(),GR=am(),YR=Jt(),XR=Lc(),KR=/[\\^$.*+?()[\]{}|]/g,JR=/^\[object .+?Constructor\]$/,QR=Function.prototype,ZR=Object.prototype,eP=QR.toString,tP=ZR.hasOwnProperty,rP=RegExp("^"+eP.call(tP).replace(KR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function iP(r){if(!YR(r)||GR(r))return!1;var e=VR(r)?rP:JR;return e.test(XR(r))}um.exports=iP});var dm=H((Qve,hm)=>{h();d();p();function sP(r,e){return r?.[e]}hm.exports=sP});var Dr=H((rSe,pm)=>{h();d();p();var nP=cm(),oP=dm();function aP(r,e){var t=oP(r,e);return nP(t)?t:void 0}pm.exports=aP});var la=H((oSe,fm)=>{h();d();p();var lP=Dr(),uP=Mt(),cP=lP(uP,"Map");fm.exports=cP});var Qs=H((cSe,gm)=>{h();d();p();var hP=Dr(),dP=hP(Object,"create");gm.exports=dP});var ym=H((fSe,_m)=>{h();d();p();var mm=Qs();function pP(){this.__data__=mm?mm(null):{},this.size=0}_m.exports=pP});var bm=H((ySe,xm)=>{h();d();p();function fP(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}xm.exports=fP});var Sm=H((SSe,vm)=>{h();d();p();var gP=Qs(),mP="__lodash_hash_undefined__",_P=Object.prototype,yP=_P.hasOwnProperty;function xP(r){var e=this.__data__;if(gP){var t=e[r];return t===mP?void 0:t}return yP.call(e,r)?e[r]:void 0}vm.exports=xP});var Tm=H((ASe,wm)=>{h();d();p();var bP=Qs(),vP=Object.prototype,SP=vP.hasOwnProperty;function wP(r){var e=this.__data__;return bP?e[r]!==void 0:SP.call(e,r)}wm.exports=wP});var Am=H((PSe,Cm)=>{h();d();p();var TP=Qs(),CP="__lodash_hash_undefined__";function AP(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=TP&&e===void 0?CP:e,this}Cm.exports=AP});var Im=H((DSe,Em)=>{h();d();p();var EP=ym(),IP=bm(),RP=Sm(),PP=Tm(),kP=Am();function Li(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e{h();d();p();var Rm=Im(),OP=Ks(),LP=la();function DP(){this.size=0,this.__data__={hash:new Rm,map:new(LP||OP),string:new Rm}}Pm.exports=DP});var Lm=H((HSe,Om)=>{h();d();p();function FP(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}Om.exports=FP});var Zs=H((VSe,Dm)=>{h();d();p();var BP=Lm();function MP(r,e){var t=r.__data__;return BP(e)?t[typeof e=="string"?"string":"hash"]:t.map}Dm.exports=MP});var Bm=H((KSe,Fm)=>{h();d();p();var NP=Zs();function zP(r){var e=NP(this,r).delete(r);return this.size-=e?1:0,e}Fm.exports=zP});var Nm=H((ewe,Mm)=>{h();d();p();var jP=Zs();function UP(r){return jP(this,r).get(r)}Mm.exports=UP});var jm=H((swe,zm)=>{h();d();p();var HP=Zs();function WP(r){return HP(this,r).has(r)}zm.exports=WP});var Hm=H((lwe,Um)=>{h();d();p();var qP=Zs();function $P(r,e){var t=qP(this,r),i=t.size;return t.set(r,e),this.size+=t.size==i?0:1,this}Um.exports=$P});var ua=H((dwe,Wm)=>{h();d();p();var VP=km(),GP=Bm(),YP=Nm(),XP=jm(),KP=Hm();function Di(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e{h();d();p();var JP=Ks(),QP=la(),ZP=ua(),ek=200;function tk(r,e){var t=this.__data__;if(t instanceof JP){var i=t.__data__;if(!QP||i.length{h();d();p();var rk=Ks(),ik=Bg(),sk=Ng(),nk=jg(),ok=Hg(),ak=$m();function Fi(r){var e=this.__data__=new rk(r);this.size=e.size}Fi.prototype.clear=ik;Fi.prototype.delete=sk;Fi.prototype.get=nk;Fi.prototype.has=ok;Fi.prototype.set=ak;Vm.exports=Fi});var Ym=H((Twe,Gm)=>{h();d();p();var lk="__lodash_hash_undefined__";function uk(r){return this.__data__.set(r,lk),this}Gm.exports=uk});var Km=H((Iwe,Xm)=>{h();d();p();function ck(r){return this.__data__.has(r)}Xm.exports=ck});var Dc=H((Owe,Jm)=>{h();d();p();var hk=ua(),dk=Ym(),pk=Km();function ha(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new hk;++e{h();d();p();function fk(r,e){for(var t=-1,i=r==null?0:r.length;++t{h();d();p();function gk(r,e){return r.has(e)}e_.exports=gk});var Bc=H((qwe,t_)=>{h();d();p();var mk=Dc(),_k=Zm(),yk=Fc(),xk=1,bk=2;function vk(r,e,t,i,s,n){var o=t&xk,a=r.length,l=e.length;if(a!=l&&!(o&&l>a))return!1;var u=n.get(r),c=n.get(e);if(u&&c)return u==e&&c==r;var g=-1,m=!0,y=t&bk?new mk:void 0;for(n.set(r,e),n.set(e,r);++g{h();d();p();var Sk=Mt(),wk=Sk.Uint8Array;r_.exports=wk});var s_=H((Qwe,i_)=>{h();d();p();function Tk(r){var e=-1,t=Array(r.size);return r.forEach(function(i,s){t[++e]=[s,i]}),t}i_.exports=Tk});var da=H((rTe,n_)=>{h();d();p();function Ck(r){var e=-1,t=Array(r.size);return r.forEach(function(i){t[++e]=i}),t}n_.exports=Ck});var c_=H((oTe,u_)=>{h();d();p();var o_=ki(),a_=Mc(),Ak=aa(),Ek=Bc(),Ik=s_(),Rk=da(),Pk=1,kk=2,Ok="[object Boolean]",Lk="[object Date]",Dk="[object Error]",Fk="[object Map]",Bk="[object Number]",Mk="[object RegExp]",Nk="[object Set]",zk="[object String]",jk="[object Symbol]",Uk="[object ArrayBuffer]",Hk="[object DataView]",l_=o_?o_.prototype:void 0,Nc=l_?l_.valueOf:void 0;function Wk(r,e,t,i,s,n,o){switch(t){case Hk:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case Uk:return!(r.byteLength!=e.byteLength||!n(new a_(r),new a_(e)));case Ok:case Lk:case Bk:return Ak(+r,+e);case Dk:return r.name==e.name&&r.message==e.message;case Mk:case zk:return r==e+"";case Fk:var a=Ik;case Nk:var l=i&Pk;if(a||(a=Rk),r.size!=e.size&&!l)return!1;var u=o.get(r);if(u)return u==e;i|=kk,o.set(r,e);var c=Ek(a(r),a(e),i,s,n,o);return o.delete(r),c;case jk:if(Nc)return Nc.call(r)==Nc.call(e)}return!1}u_.exports=Wk});var zc=H((cTe,h_)=>{h();d();p();function qk(r,e){for(var t=-1,i=e.length,s=r.length;++t{h();d();p();var $k=Array.isArray;d_.exports=$k});var jc=H((yTe,p_)=>{h();d();p();var Vk=zc(),Gk=Qt();function Yk(r,e,t){var i=e(r);return Gk(r)?i:Vk(i,t(r))}p_.exports=Yk});var g_=H((STe,f_)=>{h();d();p();function Xk(r,e){for(var t=-1,i=r==null?0:r.length,s=0,n=[];++t{h();d();p();function Kk(){return[]}m_.exports=Kk});var pa=H((PTe,y_)=>{h();d();p();var Jk=g_(),Qk=Uc(),Zk=Object.prototype,eO=Zk.propertyIsEnumerable,__=Object.getOwnPropertySymbols,tO=__?function(r){return r==null?[]:(r=Object(r),Jk(__(r),function(e){return eO.call(r,e)}))}:Qk;y_.exports=tO});var b_=H((DTe,x_)=>{h();d();p();function rO(r,e){for(var t=-1,i=Array(r);++t{h();d();p();function iO(r){return r!=null&&typeof r=="object"}v_.exports=iO});var w_=H((HTe,S_)=>{h();d();p();var sO=Oi(),nO=Fr(),oO="[object Arguments]";function aO(r){return nO(r)&&sO(r)==oO}S_.exports=aO});var Hc=H((VTe,A_)=>{h();d();p();var T_=w_(),lO=Fr(),C_=Object.prototype,uO=C_.hasOwnProperty,cO=C_.propertyIsEnumerable,hO=T_(function(){return arguments}())?T_:function(r){return lO(r)&&uO.call(r,"callee")&&!cO.call(r,"callee")};A_.exports=hO});var I_=H((KTe,E_)=>{h();d();p();function dO(){return!1}E_.exports=dO});var fa=H((en,Bi)=>{h();d();p();var pO=Mt(),fO=I_(),k_=typeof en=="object"&&en&&!en.nodeType&&en,R_=k_&&typeof Bi=="object"&&Bi&&!Bi.nodeType&&Bi,gO=R_&&R_.exports===k_,P_=gO?pO.Buffer:void 0,mO=P_?P_.isBuffer:void 0,_O=mO||fO;Bi.exports=_O});var ga=H((iCe,O_)=>{h();d();p();var yO=9007199254740991,xO=/^(?:0|[1-9]\d*)$/;function bO(r,e){var t=typeof r;return e=e??yO,!!e&&(t=="number"||t!="symbol"&&xO.test(r))&&r>-1&&r%1==0&&r{h();d();p();var vO=9007199254740991;function SO(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=vO}L_.exports=SO});var F_=H((hCe,D_)=>{h();d();p();var wO=Oi(),TO=ma(),CO=Fr(),AO="[object Arguments]",EO="[object Array]",IO="[object Boolean]",RO="[object Date]",PO="[object Error]",kO="[object Function]",OO="[object Map]",LO="[object Number]",DO="[object Object]",FO="[object RegExp]",BO="[object Set]",MO="[object String]",NO="[object WeakMap]",zO="[object ArrayBuffer]",jO="[object DataView]",UO="[object Float32Array]",HO="[object Float64Array]",WO="[object Int8Array]",qO="[object Int16Array]",$O="[object Int32Array]",VO="[object Uint8Array]",GO="[object Uint8ClampedArray]",YO="[object Uint16Array]",XO="[object Uint32Array]",Be={};Be[UO]=Be[HO]=Be[WO]=Be[qO]=Be[$O]=Be[VO]=Be[GO]=Be[YO]=Be[XO]=!0;Be[AO]=Be[EO]=Be[zO]=Be[IO]=Be[jO]=Be[RO]=Be[PO]=Be[kO]=Be[OO]=Be[LO]=Be[DO]=Be[FO]=Be[BO]=Be[MO]=Be[NO]=!1;function KO(r){return CO(r)&&TO(r.length)&&!!Be[wO(r)]}D_.exports=KO});var _a=H((gCe,B_)=>{h();d();p();function JO(r){return function(e){return r(e)}}B_.exports=JO});var ya=H((tn,Mi)=>{h();d();p();var QO=Pc(),M_=typeof tn=="object"&&tn&&!tn.nodeType&&tn,rn=M_&&typeof Mi=="object"&&Mi&&!Mi.nodeType&&Mi,ZO=rn&&rn.exports===M_,Wc=ZO&&QO.process,eL=function(){try{var r=rn&&rn.require&&rn.require("util").types;return r||Wc&&Wc.binding&&Wc.binding("util")}catch{}}();Mi.exports=eL});var qc=H((SCe,j_)=>{h();d();p();var tL=F_(),rL=_a(),N_=ya(),z_=N_&&N_.isTypedArray,iL=z_?rL(z_):tL;j_.exports=iL});var $c=H((ACe,U_)=>{h();d();p();var sL=b_(),nL=Hc(),oL=Qt(),aL=fa(),lL=ga(),uL=qc(),cL=Object.prototype,hL=cL.hasOwnProperty;function dL(r,e){var t=oL(r),i=!t&&nL(r),s=!t&&!i&&aL(r),n=!t&&!i&&!s&&uL(r),o=t||i||s||n,a=o?sL(r.length,String):[],l=a.length;for(var u in r)(e||hL.call(r,u))&&!(o&&(u=="length"||s&&(u=="offset"||u=="parent")||n&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||lL(u,l)))&&a.push(u);return a}U_.exports=dL});var xa=H((PCe,H_)=>{h();d();p();var pL=Object.prototype;function fL(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||pL;return r===t}H_.exports=fL});var Vc=H((DCe,W_)=>{h();d();p();function gL(r,e){return function(t){return r(e(t))}}W_.exports=gL});var $_=H((NCe,q_)=>{h();d();p();var mL=Vc(),_L=mL(Object.keys,Object);q_.exports=_L});var G_=H((HCe,V_)=>{h();d();p();var yL=xa(),xL=$_(),bL=Object.prototype,vL=bL.hasOwnProperty;function SL(r){if(!yL(r))return xL(r);var e=[];for(var t in Object(r))vL.call(r,t)&&t!="constructor"&&e.push(t);return e}V_.exports=SL});var Gc=H((VCe,Y_)=>{h();d();p();var wL=kc(),TL=ma();function CL(r){return r!=null&&TL(r.length)&&!wL(r)}Y_.exports=CL});var sn=H((KCe,X_)=>{h();d();p();var AL=$c(),EL=G_(),IL=Gc();function RL(r){return IL(r)?AL(r):EL(r)}X_.exports=RL});var Yc=H((e1e,K_)=>{h();d();p();var PL=jc(),kL=pa(),OL=sn();function LL(r){return PL(r,OL,kL)}K_.exports=LL});var Z_=H((s1e,Q_)=>{h();d();p();var J_=Yc(),DL=1,FL=Object.prototype,BL=FL.hasOwnProperty;function ML(r,e,t,i,s,n){var o=t&DL,a=J_(r),l=a.length,u=J_(e),c=u.length;if(l!=c&&!o)return!1;for(var g=l;g--;){var m=a[g];if(!(o?m in e:BL.call(e,m)))return!1}var y=n.get(r),b=n.get(e);if(y&&b)return y==e&&b==r;var C=!0;n.set(r,e),n.set(e,r);for(var A=o;++g{h();d();p();var NL=Dr(),zL=Mt(),jL=NL(zL,"DataView");ey.exports=jL});var iy=H((d1e,ry)=>{h();d();p();var UL=Dr(),HL=Mt(),WL=UL(HL,"Promise");ry.exports=WL});var Xc=H((m1e,sy)=>{h();d();p();var qL=Dr(),$L=Mt(),VL=qL($L,"Set");sy.exports=VL});var oy=H((b1e,ny)=>{h();d();p();var GL=Dr(),YL=Mt(),XL=GL(YL,"WeakMap");ny.exports=XL});var nn=H((T1e,py)=>{h();d();p();var Kc=ty(),Jc=la(),Qc=iy(),Zc=Xc(),eh=oy(),dy=Oi(),Ni=Lc(),ay="[object Map]",KL="[object Object]",ly="[object Promise]",uy="[object Set]",cy="[object WeakMap]",hy="[object DataView]",JL=Ni(Kc),QL=Ni(Jc),ZL=Ni(Qc),eD=Ni(Zc),tD=Ni(eh),Qr=dy;(Kc&&Qr(new Kc(new ArrayBuffer(1)))!=hy||Jc&&Qr(new Jc)!=ay||Qc&&Qr(Qc.resolve())!=ly||Zc&&Qr(new Zc)!=uy||eh&&Qr(new eh)!=cy)&&(Qr=function(r){var e=dy(r),t=e==KL?r.constructor:void 0,i=t?Ni(t):"";if(i)switch(i){case JL:return hy;case QL:return ay;case ZL:return ly;case eD:return uy;case tD:return cy}return e});py.exports=Qr});var vy=H((I1e,by)=>{h();d();p();var th=ca(),rD=Bc(),iD=c_(),sD=Z_(),fy=nn(),gy=Qt(),my=fa(),nD=qc(),oD=1,_y="[object Arguments]",yy="[object Array]",ba="[object Object]",aD=Object.prototype,xy=aD.hasOwnProperty;function lD(r,e,t,i,s,n){var o=gy(r),a=gy(e),l=o?yy:fy(r),u=a?yy:fy(e);l=l==_y?ba:l,u=u==_y?ba:u;var c=l==ba,g=u==ba,m=l==u;if(m&&my(r)){if(!my(e))return!1;o=!0,c=!1}if(m&&!c)return n||(n=new th),o||nD(r)?rD(r,e,t,i,s,n):iD(r,e,l,t,i,s,n);if(!(t&oD)){var y=c&&xy.call(r,"__wrapped__"),b=g&&xy.call(e,"__wrapped__");if(y||b){var C=y?r.value():r,A=b?e.value():e;return n||(n=new th),s(C,A,t,i,n)}}return m?(n||(n=new th),sD(r,e,t,i,s,n)):!1}by.exports=lD});var rh=H((O1e,Ty)=>{h();d();p();var uD=vy(),Sy=Fr();function wy(r,e,t,i,s){return r===e?!0:r==null||e==null||!Sy(r)&&!Sy(e)?r!==r&&e!==e:uD(r,e,t,i,wy,s)}Ty.exports=wy});var Ay=H((B1e,Cy)=>{h();d();p();var cD=ca(),hD=rh(),dD=1,pD=2;function fD(r,e,t,i){var s=t.length,n=s,o=!i;if(r==null)return!n;for(r=Object(r);s--;){var a=t[s];if(o&&a[2]?a[1]!==r[a[0]]:!(a[0]in r))return!1}for(;++s{h();d();p();var gD=Jt();function mD(r){return r===r&&!gD(r)}Ey.exports=mD});var Ry=H((q1e,Iy)=>{h();d();p();var _D=ih(),yD=sn();function xD(r){for(var e=yD(r),t=e.length;t--;){var i=e[t],s=r[i];e[t]=[i,s,_D(s)]}return e}Iy.exports=xD});var sh=H((Y1e,Py)=>{h();d();p();function bD(r,e){return function(t){return t==null?!1:t[r]===e&&(e!==void 0||r in Object(t))}}Py.exports=bD});var Oy=H((Q1e,ky)=>{h();d();p();var vD=Ay(),SD=Ry(),wD=sh();function TD(r){var e=SD(r);return e.length==1&&e[0][2]?wD(e[0][0],e[0][1]):function(t){return t===r||vD(t,r,e)}}ky.exports=TD});var on=H((r2e,Ly)=>{h();d();p();var CD=Oi(),AD=Fr(),ED="[object Symbol]";function ID(r){return typeof r=="symbol"||AD(r)&&CD(r)==ED}Ly.exports=ID});var va=H((o2e,Dy)=>{h();d();p();var RD=Qt(),PD=on(),kD=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,OD=/^\w*$/;function LD(r,e){if(RD(r))return!1;var t=typeof r;return t=="number"||t=="symbol"||t=="boolean"||r==null||PD(r)?!0:OD.test(r)||!kD.test(r)||e!=null&&r in Object(e)}Dy.exports=LD});var My=H((c2e,By)=>{h();d();p();var Fy=ua(),DD="Expected a function";function nh(r,e){if(typeof r!="function"||e!=null&&typeof e!="function")throw new TypeError(DD);var t=function(){var i=arguments,s=e?e.apply(this,i):i[0],n=t.cache;if(n.has(s))return n.get(s);var o=r.apply(this,i);return t.cache=n.set(s,o)||n,o};return t.cache=new(nh.Cache||Fy),t}nh.Cache=Fy;By.exports=nh});var zy=H((f2e,Ny)=>{h();d();p();var FD=My(),BD=500;function MD(r){var e=FD(r,function(i){return t.size===BD&&t.clear(),i}),t=e.cache;return e}Ny.exports=MD});var Uy=H((y2e,jy)=>{h();d();p();var ND=zy(),zD=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jD=/\\(\\)?/g,UD=ND(function(r){var e=[];return r.charCodeAt(0)===46&&e.push(""),r.replace(zD,function(t,i,s,n){e.push(s?n.replace(jD,"$1"):i||t)}),e});jy.exports=UD});var Gy=H((S2e,Vy)=>{h();d();p();var Hy=ki(),HD=Rc(),WD=Qt(),qD=on(),$D=1/0,Wy=Hy?Hy.prototype:void 0,qy=Wy?Wy.toString:void 0;function $y(r){if(typeof r=="string")return r;if(WD(r))return HD(r,$y)+"";if(qD(r))return qy?qy.call(r):"";var e=r+"";return e=="0"&&1/r==-$D?"-0":e}Vy.exports=$y});var Xy=H((A2e,Yy)=>{h();d();p();var VD=Gy();function GD(r){return r==null?"":VD(r)}Yy.exports=GD});var an=H((P2e,Ky)=>{h();d();p();var YD=Qt(),XD=va(),KD=Uy(),JD=Xy();function QD(r,e){return YD(r)?r:XD(r,e)?[r]:KD(JD(r))}Ky.exports=QD});var zi=H((D2e,Jy)=>{h();d();p();var ZD=on(),eF=1/0;function tF(r){if(typeof r=="string"||ZD(r))return r;var e=r+"";return e=="0"&&1/r==-eF?"-0":e}Jy.exports=tF});var Sa=H((N2e,Qy)=>{h();d();p();var rF=an(),iF=zi();function sF(r,e){e=rF(e,r);for(var t=0,i=e.length;r!=null&&t{h();d();p();var nF=Sa();function oF(r,e,t){var i=r==null?void 0:nF(r,e);return i===void 0?t:i}Zy.exports=oF});var rx=H((V2e,tx)=>{h();d();p();function aF(r,e){return r!=null&&e in Object(r)}tx.exports=aF});var sx=H((K2e,ix)=>{h();d();p();var lF=an(),uF=Hc(),cF=Qt(),hF=ga(),dF=ma(),pF=zi();function fF(r,e,t){e=lF(e,r);for(var i=-1,s=e.length,n=!1;++i{h();d();p();var gF=rx(),mF=sx();function _F(r,e){return r!=null&&mF(r,e,gF)}nx.exports=_F});var lx=H((sAe,ax)=>{h();d();p();var yF=rh(),xF=ex(),bF=ox(),vF=va(),SF=ih(),wF=sh(),TF=zi(),CF=1,AF=2;function EF(r,e){return vF(r)&&SF(e)?wF(TF(r),e):function(t){var i=xF(t,r);return i===void 0&&i===e?bF(t,r):yF(e,i,CF|AF)}}ax.exports=EF});var cx=H((lAe,ux)=>{h();d();p();function IF(r){return r}ux.exports=IF});var dx=H((dAe,hx)=>{h();d();p();function RF(r){return function(e){return e?.[r]}}hx.exports=RF});var fx=H((mAe,px)=>{h();d();p();var PF=Sa();function kF(r){return function(e){return PF(e,r)}}px.exports=kF});var mx=H((bAe,gx)=>{h();d();p();var OF=dx(),LF=fx(),DF=va(),FF=zi();function BF(r){return DF(r)?OF(FF(r)):LF(r)}gx.exports=BF});var yx=H((TAe,_x)=>{h();d();p();var MF=Oy(),NF=lx(),zF=cx(),jF=Qt(),UF=mx();function HF(r){return typeof r=="function"?r:r==null?zF:typeof r=="object"?jF(r)?NF(r[0],r[1]):MF(r):UF(r)}_x.exports=HF});var bx=H((IAe,xx)=>{h();d();p();var WF=Dr(),qF=function(){try{var r=WF(Object,"defineProperty");return r({},"",{}),r}catch{}}();xx.exports=qF});var oh=H((OAe,Sx)=>{h();d();p();var vx=bx();function $F(r,e,t){e=="__proto__"&&vx?vx(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}Sx.exports=$F});var wa=H((BAe,wx)=>{h();d();p();var VF=oh(),GF=aa(),YF=Object.prototype,XF=YF.hasOwnProperty;function KF(r,e,t){var i=r[e];(!(XF.call(r,e)&&GF(i,t))||t===void 0&&!(e in r))&&VF(r,e,t)}wx.exports=KF});var Ax=H((jAe,Cx)=>{h();d();p();var JF=wa(),QF=an(),ZF=ga(),Tx=Jt(),eB=zi();function tB(r,e,t,i){if(!Tx(r))return r;e=QF(e,r);for(var s=-1,n=e.length,o=n-1,a=r;a!=null&&++s{h();d();p();var rB=Sa(),iB=Ax(),sB=an();function nB(r,e,t){for(var i=-1,s=e.length,n={};++i{h();d();p();var oB=Vc(),aB=oB(Object.getPrototypeOf,Object);Rx.exports=aB});var lh=H((QAe,Px)=>{h();d();p();var lB=zc(),uB=ah(),cB=pa(),hB=Uc(),dB=Object.getOwnPropertySymbols,pB=dB?function(r){for(var e=[];r;)lB(e,cB(r)),r=uB(r);return e}:hB;Px.exports=pB});var Ox=H((rEe,kx)=>{h();d();p();function fB(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}kx.exports=fB});var Dx=H((oEe,Lx)=>{h();d();p();var gB=Jt(),mB=xa(),_B=Ox(),yB=Object.prototype,xB=yB.hasOwnProperty;function bB(r){if(!gB(r))return _B(r);var e=mB(r),t=[];for(var i in r)i=="constructor"&&(e||!xB.call(r,i))||t.push(i);return t}Lx.exports=bB});var Ta=H((cEe,Fx)=>{h();d();p();var vB=$c(),SB=Dx(),wB=Gc();function TB(r){return wB(r)?vB(r,!0):SB(r)}Fx.exports=TB});var uh=H((fEe,Bx)=>{h();d();p();var CB=jc(),AB=lh(),EB=Ta();function IB(r){return CB(r,EB,AB)}Bx.exports=IB});var Nx=H((yEe,Mx)=>{h();d();p();var RB=Rc(),PB=yx(),kB=Ix(),OB=uh();function LB(r,e){if(r==null)return{};var t=RB(OB(r),function(i){return[i]});return e=PB(e),kB(r,t,function(i,s){return e(i,s[0])})}Mx.exports=LB});var Gx=H((FEe,Vx)=>{h();d();p();function XB(r,e){for(var t=-1,i=r==null?0:r.length;++t{h();d();p();var KB=wa(),JB=oh();function QB(r,e,t,i){var s=!t;t||(t={});for(var n=-1,o=e.length;++n{h();d();p();var ZB=ln(),eM=sn();function tM(r,e){return r&&ZB(e,eM(e),r)}Xx.exports=tM});var Qx=H((GEe,Jx)=>{h();d();p();var rM=ln(),iM=Ta();function sM(r,e){return r&&rM(e,iM(e),r)}Jx.exports=sM});var ib=H((un,ji)=>{h();d();p();var nM=Mt(),rb=typeof un=="object"&&un&&!un.nodeType&&un,Zx=rb&&typeof ji=="object"&&ji&&!ji.nodeType&&ji,oM=Zx&&Zx.exports===rb,eb=oM?nM.Buffer:void 0,tb=eb?eb.allocUnsafe:void 0;function aM(r,e){if(e)return r.slice();var t=r.length,i=tb?tb(t):new r.constructor(t);return r.copy(i),i}ji.exports=aM});var nb=H((eIe,sb)=>{h();d();p();function lM(r,e){var t=-1,i=r.length;for(e||(e=Array(i));++t{h();d();p();var uM=ln(),cM=pa();function hM(r,e){return uM(r,cM(r),e)}ob.exports=hM});var ub=H((lIe,lb)=>{h();d();p();var dM=ln(),pM=lh();function fM(r,e){return dM(r,pM(r),e)}lb.exports=fM});var hb=H((dIe,cb)=>{h();d();p();var gM=Object.prototype,mM=gM.hasOwnProperty;function _M(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&mM.call(r,"index")&&(t.index=r.index,t.input=r.input),t}cb.exports=_M});var Aa=H((mIe,pb)=>{h();d();p();var db=Mc();function yM(r){var e=new r.constructor(r.byteLength);return new db(e).set(new db(r)),e}pb.exports=yM});var gb=H((bIe,fb)=>{h();d();p();var xM=Aa();function bM(r,e){var t=e?xM(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}fb.exports=bM});var _b=H((TIe,mb)=>{h();d();p();var vM=/\w*$/;function SM(r){var e=new r.constructor(r.source,vM.exec(r));return e.lastIndex=r.lastIndex,e}mb.exports=SM});var Sb=H((IIe,vb)=>{h();d();p();var yb=ki(),xb=yb?yb.prototype:void 0,bb=xb?xb.valueOf:void 0;function wM(r){return bb?Object(bb.call(r)):{}}vb.exports=wM});var Tb=H((OIe,wb)=>{h();d();p();var TM=Aa();function CM(r,e){var t=e?TM(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}wb.exports=CM});var Ab=H((BIe,Cb)=>{h();d();p();var AM=Aa(),EM=gb(),IM=_b(),RM=Sb(),PM=Tb(),kM="[object Boolean]",OM="[object Date]",LM="[object Map]",DM="[object Number]",FM="[object RegExp]",BM="[object Set]",MM="[object String]",NM="[object Symbol]",zM="[object ArrayBuffer]",jM="[object DataView]",UM="[object Float32Array]",HM="[object Float64Array]",WM="[object Int8Array]",qM="[object Int16Array]",$M="[object Int32Array]",VM="[object Uint8Array]",GM="[object Uint8ClampedArray]",YM="[object Uint16Array]",XM="[object Uint32Array]";function KM(r,e,t){var i=r.constructor;switch(e){case zM:return AM(r);case kM:case OM:return new i(+r);case jM:return EM(r,t);case UM:case HM:case WM:case qM:case $M:case VM:case GM:case YM:case XM:return PM(r,t);case LM:return new i;case DM:case MM:return new i(r);case FM:return IM(r);case BM:return new i;case NM:return RM(r)}}Cb.exports=KM});var Rb=H((jIe,Ib)=>{h();d();p();var JM=Jt(),Eb=Object.create,QM=function(){function r(){}return function(e){if(!JM(e))return{};if(Eb)return Eb(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();Ib.exports=QM});var kb=H((qIe,Pb)=>{h();d();p();var ZM=Rb(),e5=ah(),t5=xa();function r5(r){return typeof r.constructor=="function"&&!t5(r)?ZM(e5(r)):{}}Pb.exports=r5});var Lb=H((YIe,Ob)=>{h();d();p();var i5=nn(),s5=Fr(),n5="[object Map]";function o5(r){return s5(r)&&i5(r)==n5}Ob.exports=o5});var Mb=H((QIe,Bb)=>{h();d();p();var a5=Lb(),l5=_a(),Db=ya(),Fb=Db&&Db.isMap,u5=Fb?l5(Fb):a5;Bb.exports=u5});var zb=H((rRe,Nb)=>{h();d();p();var c5=nn(),h5=Fr(),d5="[object Set]";function p5(r){return h5(r)&&c5(r)==d5}Nb.exports=p5});var Wb=H((oRe,Hb)=>{h();d();p();var f5=zb(),g5=_a(),jb=ya(),Ub=jb&&jb.isSet,m5=Ub?g5(Ub):f5;Hb.exports=m5});var Yb=H((cRe,Gb)=>{h();d();p();var _5=ca(),y5=Gx(),x5=wa(),b5=Kx(),v5=Qx(),S5=ib(),w5=nb(),T5=ab(),C5=ub(),A5=Yc(),E5=uh(),I5=nn(),R5=hb(),P5=Ab(),k5=kb(),O5=Qt(),L5=fa(),D5=Mb(),F5=Jt(),B5=Wb(),M5=sn(),N5=Ta(),z5=1,j5=2,U5=4,qb="[object Arguments]",H5="[object Array]",W5="[object Boolean]",q5="[object Date]",$5="[object Error]",$b="[object Function]",V5="[object GeneratorFunction]",G5="[object Map]",Y5="[object Number]",Vb="[object Object]",X5="[object RegExp]",K5="[object Set]",J5="[object String]",Q5="[object Symbol]",Z5="[object WeakMap]",eN="[object ArrayBuffer]",tN="[object DataView]",rN="[object Float32Array]",iN="[object Float64Array]",sN="[object Int8Array]",nN="[object Int16Array]",oN="[object Int32Array]",aN="[object Uint8Array]",lN="[object Uint8ClampedArray]",uN="[object Uint16Array]",cN="[object Uint32Array]",Le={};Le[qb]=Le[H5]=Le[eN]=Le[tN]=Le[W5]=Le[q5]=Le[rN]=Le[iN]=Le[sN]=Le[nN]=Le[oN]=Le[G5]=Le[Y5]=Le[Vb]=Le[X5]=Le[K5]=Le[J5]=Le[Q5]=Le[aN]=Le[lN]=Le[uN]=Le[cN]=!0;Le[$5]=Le[$b]=Le[Z5]=!1;function Ea(r,e,t,i,s,n){var o,a=e&z5,l=e&j5,u=e&U5;if(t&&(o=s?t(r,i,s,n):t(r)),o!==void 0)return o;if(!F5(r))return r;var c=O5(r);if(c){if(o=R5(r),!a)return w5(r,o)}else{var g=I5(r),m=g==$b||g==V5;if(L5(r))return S5(r,a);if(g==Vb||g==qb||m&&!s){if(o=l||m?{}:k5(r),!a)return l?C5(r,v5(o,r)):T5(r,b5(o,r))}else{if(!Le[g])return s?r:{};o=P5(r,g,a)}}n||(n=new _5);var y=n.get(r);if(y)return y;n.set(r,o),B5(r)?r.forEach(function(A){o.add(Ea(A,e,t,A,r,n))}):D5(r)&&r.forEach(function(A,T){o.set(T,Ea(A,e,t,T,r,n))});var b=u?l?E5:A5:l?N5:M5,C=c?void 0:b(r);return y5(C||r,function(A,T){C&&(T=A,A=r[T]),x5(o,T,Ea(A,e,t,T,r,n))}),o}Gb.exports=Ea});var Kb=H((fRe,Xb)=>{h();d();p();var hN=Yb(),dN=1,pN=4;function fN(r){return hN(r,dN|pN)}Xb.exports=fN});var Qb=H((yRe,Jb)=>{h();d();p();function gN(r,e,t,i){for(var s=r.length,n=t+(i?1:-1);i?n--:++n{h();d();p();function mN(r){return r!==r}Zb.exports=mN});var r0=H((ARe,t0)=>{h();d();p();function _N(r,e,t){for(var i=t-1,s=r.length;++i{h();d();p();var yN=Qb(),xN=e0(),bN=r0();function vN(r,e,t){return e===e?bN(r,e,t):yN(r,xN,t)}i0.exports=vN});var o0=H((DRe,n0)=>{h();d();p();var SN=s0();function wN(r,e){var t=r==null?0:r.length;return!!t&&SN(r,e,0)>-1}n0.exports=wN});var l0=H((NRe,a0)=>{h();d();p();function TN(r,e,t){for(var i=-1,s=r==null?0:r.length;++i{h();d();p();function CN(){}u0.exports=CN});var d0=H((VRe,h0)=>{h();d();p();var dh=Xc(),AN=c0(),EN=da(),IN=1/0,RN=dh&&1/EN(new dh([,-0]))[1]==IN?function(r){return new dh(r)}:AN;h0.exports=RN});var f0=H((KRe,p0)=>{h();d();p();var PN=Dc(),kN=o0(),ON=l0(),LN=Fc(),DN=d0(),FN=da(),BN=200;function MN(r,e,t){var i=-1,s=kN,n=r.length,o=!0,a=[],l=a;if(t)o=!1,s=ON;else if(n>=BN){var u=e?null:DN(r);if(u)return FN(u);o=!1,s=LN,l=new PN}else l=e?[]:a;e:for(;++i{h();d();p();var NN=f0();function zN(r){return r&&r.length?NN(r):[]}g0.exports=zN});var fh=H((_0,ph)=>{h();d();p();(function(r){if(typeof _0=="object"&&typeof ph<"u")ph.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var e;typeof window<"u"||typeof window<"u"?e=window:typeof self<"u"?e=self:e=this,e.memoizerific=r()}})(function(){var r,e,t;return function i(s,n,o){function a(c,g){if(!n[c]){if(!s[c]){var m=typeof Ft=="function"&&Ft;if(!g&&m)return m(c,!0);if(l)return l(c,!0);var y=new Error("Cannot find module '"+c+"'");throw y.code="MODULE_NOT_FOUND",y}var b=n[c]={exports:{}};s[c][0].call(b.exports,function(C){var A=s[c][1][C];return a(A||C)},b,b.exports,i,s,n,o)}return n[c].exports}for(var l=typeof Ft=="function"&&Ft,u=0;u=0)return this.lastItem=this.list[l],this.list[l].val},o.prototype.set=function(a,l){var u;return this.lastItem&&this.isEqual(this.lastItem.key,a)?(this.lastItem.val=l,this):(u=this.indexOf(a),u>=0?(this.lastItem=this.list[u],this.list[u].val=l,this):(this.lastItem={key:a,val:l},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(a){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,a)&&(this.lastItem=void 0),l=this.indexOf(a),l>=0)return this.size--,this.list.splice(l,1)[0]},o.prototype.has=function(a){var l;return this.lastItem&&this.isEqual(this.lastItem.key,a)?!0:(l=this.indexOf(a),l>=0?(this.lastItem=this.list[l],!0):!1)},o.prototype.forEach=function(a,l){var u;for(u=0;u0&&(P[R]={cacheItem:C,arg:arguments[R]},E?a(m,P):m.push(P),m.length>c&&l(m.shift())),b.wasMemoized=E,b.numArgs=R+1,T};return b.limit=c,b.wasMemoized=!1,b.cache=g,b.lru=m,b}};function a(c,g){var m=c.length,y=g.length,b,C,A;for(C=0;C=0&&(m=c[b],y=m.cacheItem.get(m.arg),!y||!y.size);b--)m.cacheItem.delete(m.arg)}function u(c,g){return c===g||c!==c&&g!==g}},{"map-or-similar":1}]},{},[3])(3)})});var iw=H((Xa,rw)=>{h();d();p();(function(r,e){typeof Xa=="object"&&typeof rw<"u"?e(Xa):typeof define=="function"&&define.amd?define(["exports"],e):(r=typeof globalThis<"u"?globalThis:r||self,e(r.jtpp={}))})(Xa,function(r){"use strict";function e(_){return _.text!==void 0&&_.text!==""?`'${_.type}' with value '${_.text}'`:`'${_.type}'`}class t extends Error{constructor(I){super(`No parslet found for token: ${e(I)}`),this.token=I,Object.setPrototypeOf(this,t.prototype)}getToken(){return this.token}}class i extends Error{constructor(I){super(`The parsing ended early. The next token was: ${e(I)}`),this.token=I,Object.setPrototypeOf(this,i.prototype)}getToken(){return this.token}}class s extends Error{constructor(I,L){let V=`Unexpected type: '${I.type}'.`;L!==void 0&&(V+=` Message: ${L}`),super(V),Object.setPrototypeOf(this,s.prototype)}}function n(_){return I=>I.startsWith(_)?{type:_,text:_}:null}function o(_){let I=0,L,V=_[0],Z=!1;if(V!=="'"&&V!=='"')return null;for(;I<_.length;){if(I++,L=_[I],!Z&&L===V){I++;break}Z=!Z&&L==="\\"}if(L!==V)throw new Error("Unterminated String");return _.slice(0,I)}let a=new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u"),l=new RegExp("[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u");function u(_){let I=_[0];if(!a.test(I))return null;let L=1;do{if(I=_[L],!l.test(I))break;L++}while(L<_.length);return _.slice(0,L)}let c=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function g(_){var I,L;return(L=(I=c.exec(_))===null||I===void 0?void 0:I[0])!==null&&L!==void 0?L:null}let m=_=>{let I=u(_);return I==null?null:{type:"Identifier",text:I}};function y(_){return I=>{if(!I.startsWith(_))return null;let L=I[_.length];return L!==void 0&&l.test(L)?null:{type:_,text:_}}}let b=_=>{let I=o(_);return I==null?null:{type:"StringValue",text:I}},C=_=>_.length>0?null:{type:"EOF",text:""},A=_=>{let I=g(_);return I===null?null:{type:"Number",text:I}},T=[C,n("=>"),n("("),n(")"),n("{"),n("}"),n("["),n("]"),n("|"),n("&"),n("<"),n(">"),n(","),n(";"),n("*"),n("?"),n("!"),n("="),n(":"),n("..."),n("."),n("#"),n("~"),n("/"),n("@"),y("undefined"),y("null"),y("function"),y("this"),y("new"),y("module"),y("event"),y("external"),y("typeof"),y("keyof"),y("readonly"),y("import"),y("is"),y("in"),y("asserts"),A,m,b],R=/^\s*\n\s*/;class P{static create(I){let L=this.read(I);I=L.text;let V=this.read(I);return I=V.text,new P(I,void 0,L.token,V.token)}constructor(I,L,V,Z){this.text="",this.text=I,this.previous=L,this.current=V,this.next=Z}static read(I,L=!1){L=L||R.test(I),I=I.trim();for(let V of T){let Z=V(I);if(Z!==null){let oe=Object.assign(Object.assign({},Z),{startOfLine:L});return I=I.slice(oe.text.length),{text:I,token:oe}}}throw new Error("Unexpected Token "+I)}advance(){let I=P.read(this.text);return new P(I.text,this.current,this.next,I.token)}}function E(_){if(_===void 0)throw new Error("Unexpected undefined");if(_.type==="JsdocTypeKeyValue"||_.type==="JsdocTypeParameterList"||_.type==="JsdocTypeProperty"||_.type==="JsdocTypeReadonlyProperty"||_.type==="JsdocTypeObjectField"||_.type==="JsdocTypeJsdocObjectField"||_.type==="JsdocTypeIndexSignature"||_.type==="JsdocTypeMappedType")throw new s(_);return _}function k(_){return _.type==="JsdocTypeKeyValue"?B(_):E(_)}function O(_){return _.type==="JsdocTypeName"?_:B(_)}function B(_){if(_.type!=="JsdocTypeKeyValue")throw new s(_);return _}function F(_){var I;if(_.type==="JsdocTypeVariadic"){if(((I=_.element)===null||I===void 0?void 0:I.type)==="JsdocTypeName")return _;throw new s(_)}if(_.type!=="JsdocTypeNumber"&&_.type!=="JsdocTypeName")throw new s(_);return _}function U(_){return _.type==="JsdocTypeIndexSignature"||_.type==="JsdocTypeMappedType"}var q;(function(_){_[_.ALL=0]="ALL",_[_.PARAMETER_LIST=1]="PARAMETER_LIST",_[_.OBJECT=2]="OBJECT",_[_.KEY_VALUE=3]="KEY_VALUE",_[_.INDEX_BRACKETS=4]="INDEX_BRACKETS",_[_.UNION=5]="UNION",_[_.INTERSECTION=6]="INTERSECTION",_[_.PREFIX=7]="PREFIX",_[_.INFIX=8]="INFIX",_[_.TUPLE=9]="TUPLE",_[_.SYMBOL=10]="SYMBOL",_[_.OPTIONAL=11]="OPTIONAL",_[_.NULLABLE=12]="NULLABLE",_[_.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",_[_.FUNCTION=14]="FUNCTION",_[_.ARROW=15]="ARROW",_[_.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",_[_.GENERIC=17]="GENERIC",_[_.NAME_PATH=18]="NAME_PATH",_[_.PARENTHESIS=19]="PARENTHESIS",_[_.SPECIAL_TYPES=20]="SPECIAL_TYPES"})(q||(q={}));class ee{constructor(I,L,V){this.grammar=I,typeof L=="string"?this._lexer=P.create(L):this._lexer=L,this.baseParser=V}get lexer(){return this._lexer}parse(){let I=this.parseType(q.ALL);if(this.lexer.current.type!=="EOF")throw new i(this.lexer.current);return I}parseType(I){return E(this.parseIntermediateType(I))}parseIntermediateType(I){let L=this.tryParslets(null,I);if(L===null)throw new t(this.lexer.current);return this.parseInfixIntermediateType(L,I)}parseInfixIntermediateType(I,L){let V=this.tryParslets(I,L);for(;V!==null;)I=V,V=this.tryParslets(I,L);return I}tryParslets(I,L){for(let V of this.grammar){let Z=V(this,L,I);if(Z!==null)return Z}return null}consume(I){return Array.isArray(I)||(I=[I]),I.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(I){this._lexer=I.lexer}}function te(_){return _==="EOF"||_==="|"||_===","||_===")"||_===">"}let $=(_,I,L)=>{let V=_.lexer.current.type,Z=_.lexer.next.type;return L==null&&V==="?"&&!te(Z)||L!=null&&V==="?"?(_.consume("?"),L==null?{type:"JsdocTypeNullable",element:_.parseType(q.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:E(L),meta:{position:"suffix"}}):null};function D(_){let I=(L,V,Z)=>{let oe=L.lexer.current.type,ue=L.lexer.next.type;if(Z===null){if("parsePrefix"in _&&_.accept(oe,ue))return _.parsePrefix(L)}else if("parseInfix"in _&&_.precedence>V&&_.accept(oe,ue))return _.parseInfix(L,Z);return null};return Object.defineProperty(I,"name",{value:_.name}),I}let N=D({name:"optionalParslet",accept:_=>_==="=",precedence:q.OPTIONAL,parsePrefix:_=>(_.consume("="),{type:"JsdocTypeOptional",element:_.parseType(q.OPTIONAL),meta:{position:"prefix"}}),parseInfix:(_,I)=>(_.consume("="),{type:"JsdocTypeOptional",element:E(I),meta:{position:"suffix"}})}),G=D({name:"numberParslet",accept:_=>_==="Number",parsePrefix:_=>{let I=parseFloat(_.lexer.current.text);return _.consume("Number"),{type:"JsdocTypeNumber",value:I}}}),Q=D({name:"parenthesisParslet",accept:_=>_==="(",parsePrefix:_=>{if(_.consume("("),_.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let I=_.parseIntermediateType(q.ALL);if(!_.consume(")"))throw new Error("Unterminated parenthesis");return I.type==="JsdocTypeParameterList"?I:I.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[I]}:{type:"JsdocTypeParenthesis",element:E(I)}}}),ne=D({name:"specialTypesParslet",accept:(_,I)=>_==="?"&&te(I)||_==="null"||_==="undefined"||_==="*",parsePrefix:_=>{if(_.consume("null"))return{type:"JsdocTypeNull"};if(_.consume("undefined"))return{type:"JsdocTypeUndefined"};if(_.consume("*"))return{type:"JsdocTypeAny"};if(_.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+_.lexer.current.text)}}),ie=D({name:"notNullableParslet",accept:_=>_==="!",precedence:q.NULLABLE,parsePrefix:_=>(_.consume("!"),{type:"JsdocTypeNotNullable",element:_.parseType(q.NULLABLE),meta:{position:"prefix"}}),parseInfix:(_,I)=>(_.consume("!"),{type:"JsdocTypeNotNullable",element:E(I),meta:{position:"suffix"}})});function re({allowTrailingComma:_}){return D({name:"parameterListParslet",accept:I=>I===",",precedence:q.PARAMETER_LIST,parseInfix:(I,L)=>{let V=[k(L)];I.consume(",");do try{let Z=I.parseIntermediateType(q.PARAMETER_LIST);V.push(k(Z))}catch(Z){if(_&&Z instanceof t)break;throw Z}while(I.consume(","));if(V.length>0&&V.slice(0,-1).some(Z=>Z.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:V}}})}let ae=D({name:"genericParslet",accept:(_,I)=>_==="<"||_==="."&&I==="<",precedence:q.GENERIC,parseInfix:(_,I)=>{let L=_.consume(".");_.consume("<");let V=[];do V.push(_.parseType(q.PARAMETER_LIST));while(_.consume(","));if(!_.consume(">"))throw new Error("Unterminated generic parameter list");return{type:"JsdocTypeGeneric",left:E(I),elements:V,meta:{brackets:"angle",dot:L}}}}),ce=D({name:"unionParslet",accept:_=>_==="|",precedence:q.UNION,parseInfix:(_,I)=>{_.consume("|");let L=[];do L.push(_.parseType(q.UNION));while(_.consume("|"));return{type:"JsdocTypeUnion",elements:[E(I),...L]}}}),Se=[$,N,G,Q,ne,ie,re({allowTrailingComma:!0}),ae,ce,N];function we({allowSquareBracketsOnAnyType:_,allowJsdocNamePaths:I,pathGrammar:L}){return function(Z,oe,ue){if(ue==null||oe>=q.NAME_PATH)return null;let Te=Z.lexer.current.type,et=Z.lexer.next.type;if(!(Te==="."&&et!=="<"||Te==="["&&(_||ue.type==="JsdocTypeName")||I&&(Te==="~"||Te==="#")))return null;let Dt,Wn=!1;Z.consume(".")?Dt="property":Z.consume("[")?(Dt="property-brackets",Wn=!0):Z.consume("~")?Dt="inner":(Z.consume("#"),Dt="instance");let ap=L!==null?new ee(L,Z.lexer,Z):Z,tr=ap.parseIntermediateType(q.NAME_PATH);Z.acceptLexerState(ap);let cs;switch(tr.type){case"JsdocTypeName":cs={type:"JsdocTypeProperty",value:tr.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":cs={type:"JsdocTypeProperty",value:tr.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":cs={type:"JsdocTypeProperty",value:tr.value,meta:{quote:tr.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(tr.specialType==="event")cs=tr;else throw new s(tr,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new s(tr,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(Wn&&!Z.consume("]")){let lp=Z.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${lp.type}' with text '${lp.text}'`)}return{type:"JsdocTypeNamePath",left:E(ue),right:cs,pathType:Dt}}}function xe({allowedAdditionalTokens:_}){return D({name:"nameParslet",accept:I=>I==="Identifier"||I==="this"||I==="new"||_.includes(I),parsePrefix:I=>{let{type:L,text:V}=I.lexer.current;return I.consume(L),{type:"JsdocTypeName",value:V}}})}let Ie=D({name:"stringValueParslet",accept:_=>_==="StringValue",parsePrefix:_=>{let I=_.lexer.current.text;return _.consume("StringValue"),{type:"JsdocTypeStringValue",value:I.slice(1,-1),meta:{quote:I[0]==="'"?"single":"double"}}}});function De({pathGrammar:_,allowedTypes:I}){return D({name:"specialNamePathParslet",accept:L=>I.includes(L),parsePrefix:L=>{let V=L.lexer.current.type;if(L.consume(V),!L.consume(":"))return{type:"JsdocTypeName",value:V};let Z,oe=L.lexer.current;if(L.consume("StringValue"))Z={type:"JsdocTypeSpecialNamePath",value:oe.text.slice(1,-1),specialType:V,meta:{quote:oe.text[0]==="'"?"single":"double"}};else{let et="",Ve=["Identifier","@","/"];for(;Ve.some(Dt=>L.consume(Dt));)et+=oe.text,oe=L.lexer.current;Z={type:"JsdocTypeSpecialNamePath",value:et,specialType:V,meta:{quote:void 0}}}let ue=new ee(_,L.lexer,L),Te=ue.parseInfixIntermediateType(Z,q.ALL);return L.acceptLexerState(ue),E(Te)}})}let nt=[xe({allowedAdditionalTokens:["external","module"]}),Ie,G,we({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],$e=[...nt,De({allowedTypes:["event"],pathGrammar:nt})];function Re(_){let I;if(_.type==="JsdocTypeParameterList")I=_.elements;else if(_.type==="JsdocTypeParenthesis")I=[_.element];else throw new s(_);return I.map(L=>k(L))}function ot(_){let I=Re(_);if(I.some(L=>L.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return I}function je({allowNamedParameters:_,allowNoReturnType:I,allowWithoutParenthesis:L,allowNewAsFunctionKeyword:V}){return D({name:"functionParslet",accept:(Z,oe)=>Z==="function"||V&&Z==="new"&&oe==="(",parsePrefix:Z=>{let oe=Z.consume("new");Z.consume("function");let ue=Z.lexer.current.type==="(";if(!ue){if(!L)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let Te={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:oe,parenthesis:ue},et=Z.parseIntermediateType(q.FUNCTION);if(_===void 0)Te.parameters=ot(et);else{if(oe&&et.type==="JsdocTypeFunction"&&et.arrow)return Te=et,Te.constructor=!0,Te;Te.parameters=Re(et);for(let Ve of Te.parameters)if(Ve.type==="JsdocTypeKeyValue"&&!_.includes(Ve.key))throw new Error(`only allowed named parameters are ${_.join(", ")} but got ${Ve.type}`)}if(Z.consume(":"))Te.returnType=Z.parseType(q.PREFIX);else if(!I)throw new Error("function is missing return type");return Te}})}function at({allowPostfix:_,allowEnclosingBrackets:I}){return D({name:"variadicParslet",accept:L=>L==="...",precedence:q.PREFIX,parsePrefix:L=>{L.consume("...");let V=I&&L.consume("[");try{let Z=L.parseType(q.PREFIX);if(V&&!L.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:E(Z),meta:{position:"prefix",squareBrackets:V}}}catch(Z){if(Z instanceof t){if(V)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw Z}},parseInfix:_?(L,V)=>(L.consume("..."),{type:"JsdocTypeVariadic",element:E(V),meta:{position:"suffix",squareBrackets:!1}}):void 0})}let jt=D({name:"symbolParslet",accept:_=>_==="(",precedence:q.SYMBOL,parseInfix:(_,I)=>{if(I.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");_.consume("(");let L={type:"JsdocTypeSymbol",value:I.value};if(!_.consume(")")){let V=_.parseIntermediateType(q.SYMBOL);if(L.element=F(V),!_.consume(")"))throw new Error("Symbol does not end after value")}return L}}),Ze=D({name:"arrayBracketsParslet",precedence:q.ARRAY_BRACKETS,accept:(_,I)=>_==="["&&I==="]",parseInfix:(_,I)=>(_.consume("["),_.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[E(I)],meta:{brackets:"square",dot:!1}})});function Ee({objectFieldGrammar:_,allowKeyTypes:I}){return D({name:"objectParslet",accept:L=>L==="{",parsePrefix:L=>{L.consume("{");let V={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!L.consume("}")){let Z,oe=new ee(_,L.lexer,L);for(;;){oe.acceptLexerState(L);let ue=oe.parseIntermediateType(q.OBJECT);L.acceptLexerState(oe),ue===void 0&&I&&(ue=L.parseIntermediateType(q.OBJECT));let Te=!1;if(ue.type==="JsdocTypeNullable"&&(Te=!0,ue=ue.element),ue.type==="JsdocTypeNumber"||ue.type==="JsdocTypeName"||ue.type==="JsdocTypeStringValue"){let Ve;ue.type==="JsdocTypeStringValue"&&(Ve=ue.meta.quote),V.elements.push({type:"JsdocTypeObjectField",key:ue.value.toString(),right:void 0,optional:Te,readonly:!1,meta:{quote:Ve}})}else if(ue.type==="JsdocTypeObjectField"||ue.type==="JsdocTypeJsdocObjectField")V.elements.push(ue);else throw new s(ue);if(L.lexer.current.startOfLine)Z="linebreak";else if(L.consume(","))Z="comma";else if(L.consume(";"))Z="semicolon";else break;if(L.lexer.current.type==="}")break}if(V.meta.separator=Z??"comma",!L.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return V}})}function ze({allowSquaredProperties:_,allowKeyTypes:I,allowReadonly:L,allowOptional:V}){return D({name:"objectFieldParslet",precedence:q.KEY_VALUE,accept:Z=>Z===":",parseInfix:(Z,oe)=>{var ue;let Te=!1,et=!1;V&&oe.type==="JsdocTypeNullable"&&(Te=!0,oe=oe.element),L&&oe.type==="JsdocTypeReadonlyProperty"&&(et=!0,oe=oe.element);let Ve=(ue=Z.baseParser)!==null&&ue!==void 0?ue:Z;if(Ve.acceptLexerState(Z),oe.type==="JsdocTypeNumber"||oe.type==="JsdocTypeName"||oe.type==="JsdocTypeStringValue"||U(oe)){if(U(oe)&&!_)throw new s(oe);Ve.consume(":");let Dt;oe.type==="JsdocTypeStringValue"&&(Dt=oe.meta.quote);let Wn=Ve.parseType(q.KEY_VALUE);return Z.acceptLexerState(Ve),{type:"JsdocTypeObjectField",key:U(oe)?oe:oe.value.toString(),right:Wn,optional:Te,readonly:et,meta:{quote:Dt}}}else{if(!I)throw new s(oe);Ve.consume(":");let Dt=Ve.parseType(q.KEY_VALUE);return Z.acceptLexerState(Ve),{type:"JsdocTypeJsdocObjectField",left:E(oe),right:Dt}}}})}function Zt({allowOptional:_,allowVariadic:I}){return D({name:"keyValueParslet",precedence:q.KEY_VALUE,accept:L=>L===":",parseInfix:(L,V)=>{let Z=!1,oe=!1;if(_&&V.type==="JsdocTypeNullable"&&(Z=!0,V=V.element),I&&V.type==="JsdocTypeVariadic"&&V.element!==void 0&&(oe=!0,V=V.element),V.type!=="JsdocTypeName")throw new s(V);L.consume(":");let ue=L.parseType(q.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:V.value,right:ue,optional:Z,variadic:oe}}})}let yr=[...Se,je({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Ie,De({allowedTypes:["module","external","event"],pathGrammar:$e}),at({allowEnclosingBrackets:!0,allowPostfix:!0}),xe({allowedAdditionalTokens:["keyof"]}),jt,Ze,we({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:$e})],li=[...yr,Ee({objectFieldGrammar:[xe({allowedAdditionalTokens:["module","in"]}),ze({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...yr],allowKeyTypes:!0}),Zt({allowOptional:!0,allowVariadic:!0})],ss=D({name:"typeOfParslet",accept:_=>_==="typeof",parsePrefix:_=>(_.consume("typeof"),{type:"JsdocTypeTypeof",element:E(_.parseType(q.KEY_OF_TYPE_OF))})}),Ln=[xe({allowedAdditionalTokens:["module","keyof","event","external","in"]}),$,N,Ie,G,ze({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],Dn=[...Se,Ee({allowKeyTypes:!1,objectFieldGrammar:Ln}),xe({allowedAdditionalTokens:["event","external","in"]}),ss,je({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),at({allowEnclosingBrackets:!1,allowPostfix:!1}),xe({allowedAdditionalTokens:["keyof"]}),De({allowedTypes:["module"],pathGrammar:$e}),we({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:$e}),Zt({allowOptional:!1,allowVariadic:!1}),jt],Fn=D({name:"assertsParslet",accept:_=>_==="asserts",parsePrefix:_=>{_.consume("asserts");let I=_.parseIntermediateType(q.SYMBOL);if(I.type!=="JsdocTypeName")throw new s(I,"A typescript asserts always has to have a name on the left side.");return _.consume("is"),{type:"JsdocTypeAsserts",left:I,right:E(_.parseIntermediateType(q.INFIX))}}});function Bn({allowQuestionMark:_}){return D({name:"tupleParslet",accept:I=>I==="[",parsePrefix:I=>{I.consume("[");let L={type:"JsdocTypeTuple",elements:[]};if(I.consume("]"))return L;let V=I.parseIntermediateType(q.ALL);if(V.type==="JsdocTypeParameterList"?V.elements[0].type==="JsdocTypeKeyValue"?L.elements=V.elements.map(B):L.elements=V.elements.map(E):V.type==="JsdocTypeKeyValue"?L.elements=[B(V)]:L.elements=[E(V)],!I.consume("]"))throw new Error("Unterminated '['");if(!_&&L.elements.some(Z=>Z.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return L}})}let ns=D({name:"keyOfParslet",accept:_=>_==="keyof",parsePrefix:_=>(_.consume("keyof"),{type:"JsdocTypeKeyof",element:E(_.parseType(q.KEY_OF_TYPE_OF))})}),Mn=D({name:"importParslet",accept:_=>_==="import",parsePrefix:_=>{if(_.consume("import"),!_.consume("("))throw new Error("Missing parenthesis after import keyword");let I=_.parseType(q.PREFIX);if(I.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!_.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:I}}}),xr=D({name:"readonlyPropertyParslet",accept:_=>_==="readonly",parsePrefix:_=>(_.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:_.parseType(q.KEY_VALUE)})}),ui=D({name:"arrowFunctionParslet",precedence:q.ARROW,accept:_=>_==="=>",parseInfix:(_,I)=>(_.consume("=>"),{type:"JsdocTypeFunction",parameters:Re(I).map(O),arrow:!0,constructor:!1,parenthesis:!0,returnType:_.parseType(q.OBJECT)})}),os=D({name:"intersectionParslet",accept:_=>_==="&",precedence:q.INTERSECTION,parseInfix:(_,I)=>{_.consume("&");let L=[];do L.push(_.parseType(q.INTERSECTION));while(_.consume("&"));return{type:"JsdocTypeIntersection",elements:[E(I),...L]}}}),Nn=D({name:"predicateParslet",precedence:q.INFIX,accept:_=>_==="is",parseInfix:(_,I)=>{if(I.type!=="JsdocTypeName")throw new s(I,"A typescript predicate always has to have a name on the left side.");return _.consume("is"),{type:"JsdocTypePredicate",left:I,right:E(_.parseIntermediateType(q.INFIX))}}}),zn=D({name:"objectSquareBracketPropertyParslet",accept:_=>_==="[",parsePrefix:_=>{if(_.baseParser===void 0)throw new Error("Only allowed inside object grammar");_.consume("[");let I=_.lexer.current.text;_.consume("Identifier");let L;if(_.consume(":")){let V=_.baseParser;V.acceptLexerState(_),L={type:"JsdocTypeIndexSignature",key:I,right:V.parseType(q.INDEX_BRACKETS)},_.acceptLexerState(V)}else if(_.consume("in")){let V=_.baseParser;V.acceptLexerState(_),L={type:"JsdocTypeMappedType",key:I,right:V.parseType(q.ARRAY_BRACKETS)},_.acceptLexerState(V)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!_.consume("]"))throw new Error("Unterminated square brackets");return L}}),ci=[xr,xe({allowedAdditionalTokens:["module","event","keyof","event","external","in"]}),$,N,Ie,G,ze({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),zn],Wr=[...Se,Ee({allowKeyTypes:!1,objectFieldGrammar:ci}),ss,ns,Mn,Ie,je({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),Bn({allowQuestionMark:!1}),at({allowEnclosingBrackets:!1,allowPostfix:!1}),Fn,xe({allowedAdditionalTokens:["event","external","in"]}),De({allowedTypes:["module"],pathGrammar:$e}),Ze,ui,we({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:$e}),os,Nn,Zt({allowVariadic:!0,allowOptional:!0})];function W(_,I){switch(I){case"closure":return new ee(Dn,_).parse();case"jsdoc":return new ee(li,_).parse();case"typescript":return new ee(Wr,_).parse()}}function Y(_,I=["typescript","closure","jsdoc"]){let L;for(let V of I)try{return W(_,V)}catch(Z){L=Z}throw L}function _e(_,I){let L=_[I.type];if(L===void 0)throw new Error(`In this set of transform rules exists no rule for type ${I.type}.`);return L(I,V=>_e(_,V))}function de(_){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}function Me(_){let I={params:[]};for(let L of _.parameters)L.type==="JsdocTypeKeyValue"?L.key==="this"?I.this=L.right:L.key==="new"?I.new=L.right:I.params.push(L):I.params.push(L);return I}function ge(_,I,L){return _==="prefix"?L+I:I+L}function lt(_,I){switch(I){case"double":return`"${_}"`;case"single":return`'${_}'`;case void 0:return _}}function Wt(){return{JsdocTypeParenthesis:(_,I)=>`(${_.element!==void 0?I(_.element):""})`,JsdocTypeKeyof:(_,I)=>`keyof ${I(_.element)}`,JsdocTypeFunction:(_,I)=>{if(_.arrow){if(_.returnType===void 0)throw new Error("Arrow function needs a return type.");let L=`(${_.parameters.map(I).join(", ")}) => ${I(_.returnType)}`;return _.constructor&&(L="new "+L),L}else{let L=_.constructor?"new":"function";return _.parenthesis&&(L+=`(${_.parameters.map(I).join(", ")})`,_.returnType!==void 0&&(L+=`: ${I(_.returnType)}`)),L}},JsdocTypeName:_=>_.value,JsdocTypeTuple:(_,I)=>`[${_.elements.map(I).join(", ")}]`,JsdocTypeVariadic:(_,I)=>_.meta.position===void 0?"...":ge(_.meta.position,I(_.element),"..."),JsdocTypeNamePath:(_,I)=>{let L=I(_.left),V=I(_.right);switch(_.pathType){case"inner":return`${L}~${V}`;case"instance":return`${L}#${V}`;case"property":return`${L}.${V}`;case"property-brackets":return`${L}[${V}]`}},JsdocTypeStringValue:_=>lt(_.value,_.meta.quote),JsdocTypeAny:()=>"*",JsdocTypeGeneric:(_,I)=>{if(_.meta.brackets==="square"){let L=_.elements[0],V=I(L);return L.type==="JsdocTypeUnion"||L.type==="JsdocTypeIntersection"?`(${V})[]`:`${V}[]`}else return`${I(_.left)}${_.meta.dot?".":""}<${_.elements.map(I).join(", ")}>`},JsdocTypeImport:(_,I)=>`import(${I(_.element)})`,JsdocTypeObjectField:(_,I)=>{let L="";return _.readonly&&(L+="readonly "),typeof _.key=="string"?L+=lt(_.key,_.meta.quote):L+=I(_.key),_.optional&&(L+="?"),_.right===void 0?L:L+`: ${I(_.right)}`},JsdocTypeJsdocObjectField:(_,I)=>`${I(_.left)}: ${I(_.right)}`,JsdocTypeKeyValue:(_,I)=>{let L=_.key;return _.optional&&(L+="?"),_.variadic&&(L="..."+L),_.right===void 0?L:L+`: ${I(_.right)}`},JsdocTypeSpecialNamePath:_=>`${_.specialType}:${lt(_.value,_.meta.quote)}`,JsdocTypeNotNullable:(_,I)=>ge(_.meta.position,I(_.element),"!"),JsdocTypeNull:()=>"null",JsdocTypeNullable:(_,I)=>ge(_.meta.position,I(_.element),"?"),JsdocTypeNumber:_=>_.value.toString(),JsdocTypeObject:(_,I)=>`{${_.elements.map(I).join((_.meta.separator==="comma"?",":";")+" ")}}`,JsdocTypeOptional:(_,I)=>ge(_.meta.position,I(_.element),"="),JsdocTypeSymbol:(_,I)=>`${_.value}(${_.element!==void 0?I(_.element):""})`,JsdocTypeTypeof:(_,I)=>`typeof ${I(_.element)}`,JsdocTypeUndefined:()=>"undefined",JsdocTypeUnion:(_,I)=>_.elements.map(I).join(" | "),JsdocTypeUnknown:()=>"?",JsdocTypeIntersection:(_,I)=>_.elements.map(I).join(" & "),JsdocTypeProperty:_=>lt(_.value,_.meta.quote),JsdocTypePredicate:(_,I)=>`${I(_.left)} is ${I(_.right)}`,JsdocTypeIndexSignature:(_,I)=>`[${_.key}: ${I(_.right)}]`,JsdocTypeMappedType:(_,I)=>`[${_.key} in ${I(_.right)}]`,JsdocTypeAsserts:(_,I)=>`asserts ${I(_.left)} is ${I(_.right)}`}}let gt=Wt();function qt(_){return _e(gt,_)}let as=["null","true","false","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield"];function mt(_){let I={type:"NameExpression",name:_};return as.includes(_)&&(I.reservedWord=!0),I}let vt={JsdocTypeOptional:(_,I)=>{let L=I(_.element);return L.optional=!0,L},JsdocTypeNullable:(_,I)=>{let L=I(_.element);return L.nullable=!0,L},JsdocTypeNotNullable:(_,I)=>{let L=I(_.element);return L.nullable=!1,L},JsdocTypeVariadic:(_,I)=>{if(_.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let L=I(_.element);return L.repeatable=!0,L},JsdocTypeAny:()=>({type:"AllLiteral"}),JsdocTypeNull:()=>({type:"NullLiteral"}),JsdocTypeStringValue:_=>mt(lt(_.value,_.meta.quote)),JsdocTypeUndefined:()=>({type:"UndefinedLiteral"}),JsdocTypeUnknown:()=>({type:"UnknownLiteral"}),JsdocTypeFunction:(_,I)=>{let L=Me(_),V={type:"FunctionType",params:L.params.map(I)};return L.this!==void 0&&(V.this=I(L.this)),L.new!==void 0&&(V.new=I(L.new)),_.returnType!==void 0&&(V.result=I(_.returnType)),V},JsdocTypeGeneric:(_,I)=>({type:"TypeApplication",applications:_.elements.map(L=>I(L)),expression:I(_.left)}),JsdocTypeSpecialNamePath:_=>mt(_.specialType+":"+lt(_.value,_.meta.quote)),JsdocTypeName:_=>_.value!=="function"?mt(_.value):{type:"FunctionType",params:[]},JsdocTypeNumber:_=>mt(_.value.toString()),JsdocTypeObject:(_,I)=>{let L={type:"RecordType",fields:[]};for(let V of _.elements)V.type!=="JsdocTypeObjectField"&&V.type!=="JsdocTypeJsdocObjectField"?L.fields.push({type:"FieldType",key:I(V),value:void 0}):L.fields.push(I(V));return L},JsdocTypeObjectField:(_,I)=>{if(typeof _.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:mt(lt(_.key,_.meta.quote)),value:_.right===void 0?void 0:I(_.right)}},JsdocTypeJsdocObjectField:(_,I)=>({type:"FieldType",key:I(_.left),value:I(_.right)}),JsdocTypeUnion:(_,I)=>({type:"TypeUnion",elements:_.elements.map(L=>I(L))}),JsdocTypeKeyValue:(_,I)=>({type:"FieldType",key:mt(_.key),value:_.right===void 0?void 0:I(_.right)}),JsdocTypeNamePath:(_,I)=>{let L=I(_.left),V;_.right.type==="JsdocTypeSpecialNamePath"?V=I(_.right).name:V=lt(_.right.value,_.right.meta.quote);let Z=_.pathType==="inner"?"~":_.pathType==="instance"?"#":".";return mt(`${L.name}${Z}${V}`)},JsdocTypeSymbol:_=>{let I="",L=_.element,V=!1;return L?.type==="JsdocTypeVariadic"&&(L.meta.position==="prefix"?I="...":V=!0,L=L.element),L?.type==="JsdocTypeName"?I+=L.value:L?.type==="JsdocTypeNumber"&&(I+=L.value.toString()),V&&(I+="..."),mt(`${_.value}(${I})`)},JsdocTypeParenthesis:(_,I)=>I(E(_.element)),JsdocTypeMappedType:de,JsdocTypeIndexSignature:de,JsdocTypeImport:de,JsdocTypeKeyof:de,JsdocTypeTuple:de,JsdocTypeTypeof:de,JsdocTypeIntersection:de,JsdocTypeProperty:de,JsdocTypePredicate:de,JsdocTypeAsserts:de};function jn(_){return _e(vt,_)}function $t(_){switch(_){case void 0:return"none";case"single":return"single";case"double":return"double"}}function Un(_){switch(_){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}function er(_,I){return I.length===2?{type:_,left:I[0],right:I[1]}:{type:_,left:I[0],right:er(_,I.slice(1))}}let ls={JsdocTypeOptional:(_,I)=>({type:"OPTIONAL",value:I(_.element),meta:{syntax:_.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),JsdocTypeNullable:(_,I)=>({type:"NULLABLE",value:I(_.element),meta:{syntax:_.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),JsdocTypeNotNullable:(_,I)=>({type:"NOT_NULLABLE",value:I(_.element),meta:{syntax:_.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),JsdocTypeVariadic:(_,I)=>{let L={type:"VARIADIC",meta:{syntax:_.meta.position==="prefix"?"PREFIX_DOTS":_.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return _.element!==void 0&&(L.value=I(_.element)),L},JsdocTypeName:_=>({type:"NAME",name:_.value}),JsdocTypeTypeof:(_,I)=>({type:"TYPE_QUERY",name:I(_.element)}),JsdocTypeTuple:(_,I)=>({type:"TUPLE",entries:_.elements.map(I)}),JsdocTypeKeyof:(_,I)=>({type:"KEY_QUERY",value:I(_.element)}),JsdocTypeImport:_=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:$t(_.element.meta.quote),string:_.element.value}}),JsdocTypeUndefined:()=>({type:"NAME",name:"undefined"}),JsdocTypeAny:()=>({type:"ANY"}),JsdocTypeFunction:(_,I)=>{let L=Me(_),V={type:_.arrow?"ARROW":"FUNCTION",params:L.params.map(Z=>{if(Z.type==="JsdocTypeKeyValue"){if(Z.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:Z.key,typeName:I(Z.right)}}else return I(Z)}),new:null,returns:null};return L.this!==void 0?V.this=I(L.this):_.arrow||(V.this=null),L.new!==void 0&&(V.new=I(L.new)),_.returnType!==void 0&&(V.returns=I(_.returnType)),V},JsdocTypeGeneric:(_,I)=>{let L={type:"GENERIC",subject:I(_.left),objects:_.elements.map(I),meta:{syntax:_.meta.brackets==="square"?"SQUARE_BRACKET":_.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return _.meta.brackets==="square"&&_.elements[0].type==="JsdocTypeFunction"&&!_.elements[0].parenthesis&&(L.objects[0]={type:"NAME",name:"function"}),L},JsdocTypeObjectField:(_,I)=>{if(typeof _.key!="string")throw new Error("Index signatures and mapped types are not supported");if(_.right===void 0)return{type:"RECORD_ENTRY",key:_.key,quoteStyle:$t(_.meta.quote),value:null,readonly:!1};let L=I(_.right);return _.optional&&(L={type:"OPTIONAL",value:L,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:_.key.toString(),quoteStyle:$t(_.meta.quote),value:L,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},JsdocTypeKeyValue:(_,I)=>{if(_.right===void 0)return{type:"RECORD_ENTRY",key:_.key,quoteStyle:"none",value:null,readonly:!1};let L=I(_.right);return _.optional&&(L={type:"OPTIONAL",value:L,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:_.key,quoteStyle:"none",value:L,readonly:!1}},JsdocTypeObject:(_,I)=>{let L=[];for(let V of _.elements)(V.type==="JsdocTypeObjectField"||V.type==="JsdocTypeJsdocObjectField")&&L.push(I(V));return{type:"RECORD",entries:L}},JsdocTypeSpecialNamePath:_=>{if(_.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${_.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:$t(_.meta.quote),path:_.value}}},JsdocTypeNamePath:(_,I)=>{let L=!1,V,Z;_.right.type==="JsdocTypeSpecialNamePath"&&_.right.specialType==="event"?(L=!0,V=_.right.value,Z=$t(_.right.meta.quote)):(V=_.right.value,Z=$t(_.right.meta.quote));let oe={type:Un(_.pathType),owner:I(_.left),name:V,quoteStyle:Z,hasEventPrefix:L};if(oe.owner.type==="MODULE"){let ue=oe.owner;return oe.owner=oe.owner.value,ue.value=oe,ue}else return oe},JsdocTypeUnion:(_,I)=>er("UNION",_.elements.map(I)),JsdocTypeParenthesis:(_,I)=>({type:"PARENTHESIS",value:I(E(_.element))}),JsdocTypeNull:()=>({type:"NAME",name:"null"}),JsdocTypeUnknown:()=>({type:"UNKNOWN"}),JsdocTypeStringValue:_=>({type:"STRING_VALUE",quoteStyle:$t(_.meta.quote),string:_.value}),JsdocTypeIntersection:(_,I)=>er("INTERSECTION",_.elements.map(I)),JsdocTypeNumber:_=>({type:"NUMBER_VALUE",number:_.value.toString()}),JsdocTypeSymbol:de,JsdocTypeProperty:de,JsdocTypePredicate:de,JsdocTypeMappedType:de,JsdocTypeIndexSignature:de,JsdocTypeAsserts:de};function hi(_){return _e(ls,_)}function us(){return{JsdocTypeIntersection:(_,I)=>({type:"JsdocTypeIntersection",elements:_.elements.map(I)}),JsdocTypeGeneric:(_,I)=>({type:"JsdocTypeGeneric",left:I(_.left),elements:_.elements.map(I),meta:{dot:_.meta.dot,brackets:_.meta.brackets}}),JsdocTypeNullable:_=>_,JsdocTypeUnion:(_,I)=>({type:"JsdocTypeUnion",elements:_.elements.map(I)}),JsdocTypeUnknown:_=>_,JsdocTypeUndefined:_=>_,JsdocTypeTypeof:(_,I)=>({type:"JsdocTypeTypeof",element:I(_.element)}),JsdocTypeSymbol:(_,I)=>{let L={type:"JsdocTypeSymbol",value:_.value};return _.element!==void 0&&(L.element=I(_.element)),L},JsdocTypeOptional:(_,I)=>({type:"JsdocTypeOptional",element:I(_.element),meta:{position:_.meta.position}}),JsdocTypeObject:(_,I)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:_.elements.map(I)}),JsdocTypeNumber:_=>_,JsdocTypeNull:_=>_,JsdocTypeNotNullable:(_,I)=>({type:"JsdocTypeNotNullable",element:I(_.element),meta:{position:_.meta.position}}),JsdocTypeSpecialNamePath:_=>_,JsdocTypeObjectField:(_,I)=>({type:"JsdocTypeObjectField",key:_.key,right:_.right===void 0?void 0:I(_.right),optional:_.optional,readonly:_.readonly,meta:_.meta}),JsdocTypeJsdocObjectField:(_,I)=>({type:"JsdocTypeJsdocObjectField",left:I(_.left),right:I(_.right)}),JsdocTypeKeyValue:(_,I)=>({type:"JsdocTypeKeyValue",key:_.key,right:_.right===void 0?void 0:I(_.right),optional:_.optional,variadic:_.variadic}),JsdocTypeImport:(_,I)=>({type:"JsdocTypeImport",element:I(_.element)}),JsdocTypeAny:_=>_,JsdocTypeStringValue:_=>_,JsdocTypeNamePath:_=>_,JsdocTypeVariadic:(_,I)=>{let L={type:"JsdocTypeVariadic",meta:{position:_.meta.position,squareBrackets:_.meta.squareBrackets}};return _.element!==void 0&&(L.element=I(_.element)),L},JsdocTypeTuple:(_,I)=>({type:"JsdocTypeTuple",elements:_.elements.map(I)}),JsdocTypeName:_=>_,JsdocTypeFunction:(_,I)=>{let L={type:"JsdocTypeFunction",arrow:_.arrow,parameters:_.parameters.map(I),constructor:_.constructor,parenthesis:_.parenthesis};return _.returnType!==void 0&&(L.returnType=I(_.returnType)),L},JsdocTypeKeyof:(_,I)=>({type:"JsdocTypeKeyof",element:I(_.element)}),JsdocTypeParenthesis:(_,I)=>({type:"JsdocTypeParenthesis",element:I(_.element)}),JsdocTypeProperty:_=>_,JsdocTypePredicate:(_,I)=>({type:"JsdocTypePredicate",left:I(_.left),right:I(_.right)}),JsdocTypeIndexSignature:(_,I)=>({type:"JsdocTypeIndexSignature",key:_.key,right:I(_.right)}),JsdocTypeMappedType:(_,I)=>({type:"JsdocTypeMappedType",key:_.key,right:I(_.right)}),JsdocTypeAsserts:(_,I)=>({type:"JsdocTypeAsserts",left:I(_.left),right:I(_.right)})}}let di={JsdocTypeAny:[],JsdocTypeFunction:["parameters","returnType"],JsdocTypeGeneric:["left","elements"],JsdocTypeImport:[],JsdocTypeIndexSignature:["right"],JsdocTypeIntersection:["elements"],JsdocTypeKeyof:["element"],JsdocTypeKeyValue:["right"],JsdocTypeMappedType:["right"],JsdocTypeName:[],JsdocTypeNamePath:["left","right"],JsdocTypeNotNullable:["element"],JsdocTypeNull:[],JsdocTypeNullable:["element"],JsdocTypeNumber:[],JsdocTypeObject:["elements"],JsdocTypeObjectField:["right"],JsdocTypeJsdocObjectField:["left","right"],JsdocTypeOptional:["element"],JsdocTypeParenthesis:["element"],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:["element"],JsdocTypeTuple:["elements"],JsdocTypeTypeof:["element"],JsdocTypeUndefined:[],JsdocTypeUnion:["elements"],JsdocTypeUnknown:[],JsdocTypeVariadic:["element"],JsdocTypeProperty:[],JsdocTypePredicate:["left","right"],JsdocTypeAsserts:["left","right"]};function pi(_,I,L,V,Z){V?.(_,I,L);let oe=di[_.type];for(let ue of oe){let Te=_[ue];if(Te!==void 0)if(Array.isArray(Te))for(let et of Te)pi(et,_,ue,V,Z);else pi(Te,_,ue,V,Z)}Z?.(_,I,L)}function Hn(_,I,L){pi(_,void 0,void 0,I,L)}r.catharsisTransform=jn,r.identityTransformRules=us,r.jtpTransform=hi,r.parse=W,r.stringify=qt,r.stringifyRules=Wt,r.transform=_e,r.traverse=Hn,r.tryParse=Y,r.visitorKeys=di})});var BT=H((vLe,FT)=>{"use strict";h();d();p();FT.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var zd=H((CLe,NT)=>{h();d();p();var Pn=BT(),MT={};for(let r of Object.keys(Pn))MT[Pn[r]]=r;var se={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};NT.exports=se;for(let r of Object.keys(se)){if(!("channels"in se[r]))throw new Error("missing channels property: "+r);if(!("labels"in se[r]))throw new Error("missing channel labels property: "+r);if(se[r].labels.length!==se[r].channels)throw new Error("channel and label counts mismatch: "+r);let{channels:e,labels:t}=se[r];delete se[r].channels,delete se[r].labels,Object.defineProperty(se[r],"channels",{value:e}),Object.defineProperty(se[r],"labels",{value:t})}se.rgb.hsl=function(r){let e=r[0]/255,t=r[1]/255,i=r[2]/255,s=Math.min(e,t,i),n=Math.max(e,t,i),o=n-s,a,l;n===s?a=0:e===n?a=(t-i)/o:t===n?a=2+(i-e)/o:i===n&&(a=4+(e-t)/o),a=Math.min(a*60,360),a<0&&(a+=360);let u=(s+n)/2;return n===s?l=0:u<=.5?l=o/(n+s):l=o/(2-n-s),[a,l*100,u*100]};se.rgb.hsv=function(r){let e,t,i,s,n,o=r[0]/255,a=r[1]/255,l=r[2]/255,u=Math.max(o,a,l),c=u-Math.min(o,a,l),g=function(m){return(u-m)/6/c+1/2};return c===0?(s=0,n=0):(n=c/u,e=g(o),t=g(a),i=g(l),o===u?s=i-t:a===u?s=1/3+e-i:l===u&&(s=2/3+t-e),s<0?s+=1:s>1&&(s-=1)),[s*360,n*100,u*100]};se.rgb.hwb=function(r){let e=r[0],t=r[1],i=r[2],s=se.rgb.hsl(r)[0],n=1/255*Math.min(e,Math.min(t,i));return i=1-1/255*Math.max(e,Math.max(t,i)),[s,n*100,i*100]};se.rgb.cmyk=function(r){let e=r[0]/255,t=r[1]/255,i=r[2]/255,s=Math.min(1-e,1-t,1-i),n=(1-e-s)/(1-s)||0,o=(1-t-s)/(1-s)||0,a=(1-i-s)/(1-s)||0;return[n*100,o*100,a*100,s*100]};function Cq(r,e){return(r[0]-e[0])**2+(r[1]-e[1])**2+(r[2]-e[2])**2}se.rgb.keyword=function(r){let e=MT[r];if(e)return e;let t=1/0,i;for(let s of Object.keys(Pn)){let n=Pn[s],o=Cq(r,n);o.04045?((e+.055)/1.055)**2.4:e/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;let s=e*.4124+t*.3576+i*.1805,n=e*.2126+t*.7152+i*.0722,o=e*.0193+t*.1192+i*.9505;return[s*100,n*100,o*100]};se.rgb.lab=function(r){let e=se.rgb.xyz(r),t=e[0],i=e[1],s=e[2];t/=95.047,i/=100,s/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;let n=116*i-16,o=500*(t-i),a=200*(i-s);return[n,o,a]};se.hsl.rgb=function(r){let e=r[0]/360,t=r[1]/100,i=r[2]/100,s,n,o;if(t===0)return o=i*255,[o,o,o];i<.5?s=i*(1+t):s=i+t-i*t;let a=2*i-s,l=[0,0,0];for(let u=0;u<3;u++)n=e+1/3*-(u-1),n<0&&n++,n>1&&n--,6*n<1?o=a+(s-a)*6*n:2*n<1?o=s:3*n<2?o=a+(s-a)*(2/3-n)*6:o=a,l[u]=o*255;return l};se.hsl.hsv=function(r){let e=r[0],t=r[1]/100,i=r[2]/100,s=t,n=Math.max(i,.01);i*=2,t*=i<=1?i:2-i,s*=n<=1?n:2-n;let o=(i+t)/2,a=i===0?2*s/(n+s):2*t/(i+t);return[e,a*100,o*100]};se.hsv.rgb=function(r){let e=r[0]/60,t=r[1]/100,i=r[2]/100,s=Math.floor(e)%6,n=e-Math.floor(e),o=255*i*(1-t),a=255*i*(1-t*n),l=255*i*(1-t*(1-n));switch(i*=255,s){case 0:return[i,l,o];case 1:return[a,i,o];case 2:return[o,i,l];case 3:return[o,a,i];case 4:return[l,o,i];case 5:return[i,o,a]}};se.hsv.hsl=function(r){let e=r[0],t=r[1]/100,i=r[2]/100,s=Math.max(i,.01),n,o;o=(2-t)*i;let a=(2-t)*s;return n=t*s,n/=a<=1?a:2-a,n=n||0,o/=2,[e,n*100,o*100]};se.hwb.rgb=function(r){let e=r[0]/360,t=r[1]/100,i=r[2]/100,s=t+i,n;s>1&&(t/=s,i/=s);let o=Math.floor(6*e),a=1-i;n=6*e-o,o&1&&(n=1-n);let l=t+n*(a-t),u,c,g;switch(o){default:case 6:case 0:u=a,c=l,g=t;break;case 1:u=l,c=a,g=t;break;case 2:u=t,c=a,g=l;break;case 3:u=t,c=l,g=a;break;case 4:u=l,c=t,g=a;break;case 5:u=a,c=t,g=l;break}return[u*255,c*255,g*255]};se.cmyk.rgb=function(r){let e=r[0]/100,t=r[1]/100,i=r[2]/100,s=r[3]/100,n=1-Math.min(1,e*(1-s)+s),o=1-Math.min(1,t*(1-s)+s),a=1-Math.min(1,i*(1-s)+s);return[n*255,o*255,a*255]};se.xyz.rgb=function(r){let e=r[0]/100,t=r[1]/100,i=r[2]/100,s,n,o;return s=e*3.2406+t*-1.5372+i*-.4986,n=e*-.9689+t*1.8758+i*.0415,o=e*.0557+t*-.204+i*1.057,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,n=n>.0031308?1.055*n**(1/2.4)-.055:n*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=Math.min(Math.max(0,s),1),n=Math.min(Math.max(0,n),1),o=Math.min(Math.max(0,o),1),[s*255,n*255,o*255]};se.xyz.lab=function(r){let e=r[0],t=r[1],i=r[2];e/=95.047,t/=100,i/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*t-16,n=500*(e-t),o=200*(t-i);return[s,n,o]};se.lab.xyz=function(r){let e=r[0],t=r[1],i=r[2],s,n,o;n=(e+16)/116,s=t/500+n,o=n-i/200;let a=n**3,l=s**3,u=o**3;return n=a>.008856?a:(n-16/116)/7.787,s=l>.008856?l:(s-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,s*=95.047,n*=100,o*=108.883,[s,n,o]};se.lab.lch=function(r){let e=r[0],t=r[1],i=r[2],s;s=Math.atan2(i,t)*360/2/Math.PI,s<0&&(s+=360);let o=Math.sqrt(t*t+i*i);return[e,o,s]};se.lch.lab=function(r){let e=r[0],t=r[1],s=r[2]/360*2*Math.PI,n=t*Math.cos(s),o=t*Math.sin(s);return[e,n,o]};se.rgb.ansi16=function(r,e=null){let[t,i,s]=r,n=e===null?se.rgb.hsv(r)[2]:e;if(n=Math.round(n/50),n===0)return 30;let o=30+(Math.round(s/255)<<2|Math.round(i/255)<<1|Math.round(t/255));return n===2&&(o+=60),o};se.hsv.ansi16=function(r){return se.rgb.ansi16(se.hsv.rgb(r),r[2])};se.rgb.ansi256=function(r){let e=r[0],t=r[1],i=r[2];return e===t&&t===i?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(i/255*5)};se.ansi16.rgb=function(r){let e=r%10;if(e===0||e===7)return r>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let t=(~~(r>50)+1)*.5,i=(e&1)*t*255,s=(e>>1&1)*t*255,n=(e>>2&1)*t*255;return[i,s,n]};se.ansi256.rgb=function(r){if(r>=232){let n=(r-232)*10+8;return[n,n,n]}r-=16;let e,t=Math.floor(r/36)/5*255,i=Math.floor((e=r%36)/6)/5*255,s=e%6/5*255;return[t,i,s]};se.rgb.hex=function(r){let t=(((Math.round(r[0])&255)<<16)+((Math.round(r[1])&255)<<8)+(Math.round(r[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t};se.hex.rgb=function(r){let e=r.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let t=e[0];e[0].length===3&&(t=t.split("").map(a=>a+a).join(""));let i=parseInt(t,16),s=i>>16&255,n=i>>8&255,o=i&255;return[s,n,o]};se.rgb.hcg=function(r){let e=r[0]/255,t=r[1]/255,i=r[2]/255,s=Math.max(Math.max(e,t),i),n=Math.min(Math.min(e,t),i),o=s-n,a,l;return o<1?a=n/(1-o):a=0,o<=0?l=0:s===e?l=(t-i)/o%6:s===t?l=2+(i-e)/o:l=4+(e-t)/o,l/=6,l%=1,[l*360,o*100,a*100]};se.hsl.hcg=function(r){let e=r[1]/100,t=r[2]/100,i=t<.5?2*e*t:2*e*(1-t),s=0;return i<1&&(s=(t-.5*i)/(1-i)),[r[0],i*100,s*100]};se.hsv.hcg=function(r){let e=r[1]/100,t=r[2]/100,i=e*t,s=0;return i<1&&(s=(t-i)/(1-i)),[r[0],i*100,s*100]};se.hcg.rgb=function(r){let e=r[0]/360,t=r[1]/100,i=r[2]/100;if(t===0)return[i*255,i*255,i*255];let s=[0,0,0],n=e%1*6,o=n%1,a=1-o,l=0;switch(Math.floor(n)){case 0:s[0]=1,s[1]=o,s[2]=0;break;case 1:s[0]=a,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=o;break;case 3:s[0]=0,s[1]=a,s[2]=1;break;case 4:s[0]=o,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=a}return l=(1-t)*i,[(t*s[0]+l)*255,(t*s[1]+l)*255,(t*s[2]+l)*255]};se.hcg.hsv=function(r){let e=r[1]/100,t=r[2]/100,i=e+t*(1-e),s=0;return i>0&&(s=e/i),[r[0],s*100,i*100]};se.hcg.hsl=function(r){let e=r[1]/100,i=r[2]/100*(1-e)+.5*e,s=0;return i>0&&i<.5?s=e/(2*i):i>=.5&&i<1&&(s=e/(2*(1-i))),[r[0],s*100,i*100]};se.hcg.hwb=function(r){let e=r[1]/100,t=r[2]/100,i=e+t*(1-e);return[r[0],(i-e)*100,(1-i)*100]};se.hwb.hcg=function(r){let e=r[1]/100,i=1-r[2]/100,s=i-e,n=0;return s<1&&(n=(i-s)/(1-s)),[r[0],s*100,n*100]};se.apple.rgb=function(r){return[r[0]/65535*255,r[1]/65535*255,r[2]/65535*255]};se.rgb.apple=function(r){return[r[0]/255*65535,r[1]/255*65535,r[2]/255*65535]};se.gray.rgb=function(r){return[r[0]/100*255,r[0]/100*255,r[0]/100*255]};se.gray.hsl=function(r){return[0,0,r[0]]};se.gray.hsv=se.gray.hsl;se.gray.hwb=function(r){return[0,100,r[0]]};se.gray.cmyk=function(r){return[0,0,0,r[0]]};se.gray.lab=function(r){return[r[0],0,0]};se.gray.hex=function(r){let e=Math.round(r[0]/100*255)&255,i=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(i.length)+i};se.rgb.gray=function(r){return[(r[0]+r[1]+r[2])/3/255*100]}});var jT=H((RLe,zT)=>{h();d();p();var al=zd();function Aq(){let r={},e=Object.keys(al);for(let t=e.length,i=0;i{h();d();p();var jd=zd(),Pq=jT(),es={},kq=Object.keys(jd);function Oq(r){let e=function(...t){let i=t[0];return i==null?i:(i.length>1&&(t=i),r(t))};return"conversion"in r&&(e.conversion=r.conversion),e}function Lq(r){let e=function(...t){let i=t[0];if(i==null)return i;i.length>1&&(t=i);let s=r(t);if(typeof s=="object")for(let n=s.length,o=0;o{es[r]={},Object.defineProperty(es[r],"channels",{value:jd[r].channels}),Object.defineProperty(es[r],"labels",{value:jd[r].labels});let e=Pq(r);Object.keys(e).forEach(i=>{let s=e[i];es[r][i]=Lq(s),es[r][i].raw=Oq(s)})});UT.exports=es});var qT=H((MLe,WT)=>{h();d();p();var Dq=Mt(),Fq=function(){return Dq.Date.now()};WT.exports=Fq});var VT=H((ULe,$T)=>{h();d();p();var Bq=/\s/;function Mq(r){for(var e=r.length;e--&&Bq.test(r.charAt(e)););return e}$T.exports=Mq});var YT=H(($Le,GT)=>{h();d();p();var Nq=VT(),zq=/^\s+/;function jq(r){return r&&r.slice(0,Nq(r)+1).replace(zq,"")}GT.exports=jq});var QT=H((XLe,JT)=>{h();d();p();var Uq=YT(),XT=Jt(),Hq=on(),KT=NaN,Wq=/^[-+]0x[0-9a-f]+$/i,qq=/^0b[01]+$/i,$q=/^0o[0-7]+$/i,Vq=parseInt;function Gq(r){if(typeof r=="number")return r;if(Hq(r))return KT;if(XT(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=XT(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=Uq(r);var t=qq.test(r);return t||$q.test(r)?Vq(r.slice(2),t?2:8):Wq.test(r)?KT:+r}JT.exports=Gq});var tC=H((ZLe,eC)=>{h();d();p();var Yq=Jt(),Ud=qT(),ZT=QT(),Xq="Expected a function",Kq=Math.max,Jq=Math.min;function Qq(r,e,t){var i,s,n,o,a,l,u=0,c=!1,g=!1,m=!0;if(typeof r!="function")throw new TypeError(Xq);e=ZT(e)||0,Yq(t)&&(c=!!t.leading,g="maxWait"in t,n=g?Kq(ZT(t.maxWait)||0,e):n,m="trailing"in t?!!t.trailing:m);function y(O){var B=i,F=s;return i=s=void 0,u=O,o=r.apply(F,B),o}function b(O){return u=O,a=setTimeout(T,e),c?y(O):o}function C(O){var B=O-l,F=O-u,U=e-B;return g?Jq(U,n-F):U}function A(O){var B=O-l,F=O-u;return l===void 0||B>=e||B<0||g&&F>=n}function T(){var O=Ud();if(A(O))return R(O);a=setTimeout(T,C(O))}function R(O){return a=void 0,m&&i?y(O):(i=s=void 0,o)}function P(){a!==void 0&&clearTimeout(a),u=0,i=l=s=a=void 0}function E(){return a===void 0?o:R(Ud())}function k(){var O=Ud(),B=A(O);if(i=arguments,s=this,l=O,B){if(a===void 0)return b(l);if(g)return clearTimeout(a),a=setTimeout(T,e),y(l)}return a===void 0&&(a=setTimeout(T,e)),o}return k.cancel=P,k.flush=E,k}eC.exports=Qq});function oi(){return(oi=Object.assign||function(r){for(var e=1;e=0||(s[t]=r[t]);return s}function Hd(r){var e=Bt(r),t=Bt(function(i){e.current&&e.current(i)});return e.current=r,t.current}function dC(r,e,t){var i=Hd(t),s=Fe(function(){return r.toHsva(e)}),n=s[0],o=s[1],a=Bt({color:e,hsva:n});He(function(){if(!r.equal(e,a.current.color)){var u=r.toHsva(e);a.current={hsva:u,color:e},o(u)}},[e,r]),He(function(){var u;cC(n,a.current.hsva)||r.equal(u=r.fromHsva(n),a.current.color)||(a.current={hsva:n,color:u},i(u))},[n,r,i]);var l=ut(function(u){o(function(c){return Object.assign({},c,u)})},[]);return[n,l]}var ts,kn,Wd,rC,iC,Gd,On,Yd,st,Zq,e8,qd,t8,r8,i8,s8,nC,$d,ul,oC,n8,ll,o8,aC,lC,uC,cC,hC,a8,l8,u8,c8,sC,pC,h8,d8,fC,p8,gC,f8,mC,g8,_C,yC=Vt(()=>{h();d();p();Ge();ts=function(r,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),r>t?t:r0:A.buttons>0)&&s.current?n(rC(s.current,A,a.current)):C(!1)},b=function(){return C(!1)};function C(A){var T=l.current,R=Wd(s.current),P=A?R.addEventListener:R.removeEventListener;P(T?"touchmove":"mousemove",y),P(T?"touchend":"mouseup",b)}return[function(A){var T=A.nativeEvent,R=s.current;if(R&&(iC(T),!function(E,k){return k&&!kn(E)}(T,l.current)&&R)){if(kn(T)){l.current=!0;var P=T.changedTouches||[];P.length&&(a.current=P[0].identifier)}R.focus(),n(rC(R,T,a.current)),C(!0)}},function(A){var T=A.which||A.keyCode;T<37||T>40||(A.preventDefault(),o({left:T===39?.05:T===37?-.05:0,top:T===40?.05:T===38?-.05:0}))},C]},[o,n]),c=u[0],g=u[1],m=u[2];return He(function(){return m},[m]),z.createElement("div",oi({},i,{onTouchStart:c,onMouseDown:c,className:"react-colorful__interactive",ref:s,onKeyDown:g,tabIndex:0,role:"slider"}))}),On=function(r){return r.filter(Boolean).join(" ")},Yd=function(r){var e=r.color,t=r.left,i=r.top,s=i===void 0?.5:i,n=On(["react-colorful__pointer",r.className]);return z.createElement("div",{className:n,style:{top:100*s+"%",left:100*t+"%"}},z.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},st=function(r,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*r)/t},Zq={grad:.9,turn:360,rad:360/(2*Math.PI)},e8=function(r){return aC(qd(r))},qd=function(r){return r[0]==="#"&&(r=r.substring(1)),r.length<6?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:r.length===4?st(parseInt(r[3]+r[3],16)/255,2):1}:{r:parseInt(r.substring(0,2),16),g:parseInt(r.substring(2,4),16),b:parseInt(r.substring(4,6),16),a:r.length===8?st(parseInt(r.substring(6,8),16)/255,2):1}},t8=function(r,e){return e===void 0&&(e="deg"),Number(r)*(Zq[e]||1)},r8=function(r){var e=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(r);return e?i8({h:t8(e[1],e[2]),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)}):{h:0,s:0,v:0,a:1}},i8=function(r){var e=r.s,t=r.l;return{h:r.h,s:(e*=(t<50?t:100-t)/100)>0?2*e/(t+e)*100:0,v:t+e,a:r.a}},s8=function(r){return o8(oC(r))},nC=function(r){var e=r.s,t=r.v,i=r.a,s=(200-e)*t/100;return{h:st(r.h),s:st(s>0&&s<200?e*t/100/(s<=100?s:200-s)*100:0),l:st(s/2),a:st(i,2)}},$d=function(r){var e=nC(r);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},ul=function(r){var e=nC(r);return"hsla("+e.h+", "+e.s+"%, "+e.l+"%, "+e.a+")"},oC=function(r){var e=r.h,t=r.s,i=r.v,s=r.a;e=e/360*6,t/=100,i/=100;var n=Math.floor(e),o=i*(1-t),a=i*(1-(e-n)*t),l=i*(1-(1-e+n)*t),u=n%6;return{r:st(255*[i,a,o,o,l,i][u]),g:st(255*[l,i,i,a,o,o][u]),b:st(255*[o,o,l,i,i,a][u]),a:st(s,2)}},n8=function(r){var e=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(r);return e?aC({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):{h:0,s:0,v:0,a:1}},ll=function(r){var e=r.toString(16);return e.length<2?"0"+e:e},o8=function(r){var e=r.r,t=r.g,i=r.b,s=r.a,n=s<1?ll(st(255*s)):"";return"#"+ll(e)+ll(t)+ll(i)+n},aC=function(r){var e=r.r,t=r.g,i=r.b,s=r.a,n=Math.max(e,t,i),o=n-Math.min(e,t,i),a=o?n===e?(t-i)/o:n===t?2+(i-e)/o:4+(e-t)/o:0;return{h:st(60*(a<0?a+6:a)),s:st(n?o/n*100:0),v:st(n/255*100),a:s}},lC=z.memo(function(r){var e=r.hue,t=r.onChange,i=On(["react-colorful__hue",r.className]);return z.createElement("div",{className:i},z.createElement(Gd,{onMove:function(s){t({h:360*s.left})},onKey:function(s){t({h:ts(e+360*s.left,0,360)})},"aria-label":"Hue","aria-valuenow":st(e),"aria-valuemax":"360","aria-valuemin":"0"},z.createElement(Yd,{className:"react-colorful__hue-pointer",left:e/360,color:$d({h:e,s:100,v:100,a:1})})))}),uC=z.memo(function(r){var e=r.hsva,t=r.onChange,i={backgroundColor:$d({h:e.h,s:100,v:100,a:1})};return z.createElement("div",{className:"react-colorful__saturation",style:i},z.createElement(Gd,{onMove:function(s){t({s:100*s.left,v:100-100*s.top})},onKey:function(s){t({s:ts(e.s+100*s.left,0,100),v:ts(e.v-100*s.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+st(e.s)+"%, Brightness "+st(e.v)+"%"},z.createElement(Yd,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:$d(e)})))}),cC=function(r,e){if(r===e)return!0;for(var t in r)if(r[t]!==e[t])return!1;return!0},hC=function(r,e){return r.replace(/\s/g,"")===e.replace(/\s/g,"")},a8=function(r,e){return r.toLowerCase()===e.toLowerCase()||cC(qd(r),qd(e))};u8=typeof window<"u"?Il:He,c8=function(){return l8||(typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0)},sC=new Map,pC=function(r){u8(function(){var e=r.current?r.current.ownerDocument:document;if(e!==void 0&&!sC.has(e)){var t=e.createElement("style");t.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,sC.set(e,t);var i=c8();i&&t.setAttribute("nonce",i),e.head.appendChild(t)}},[])},h8=function(r){var e=r.className,t=r.colorModel,i=r.color,s=i===void 0?t.defaultColor:i,n=r.onChange,o=Vd(r,["className","colorModel","color","onChange"]),a=Bt(null);pC(a);var l=dC(t,s,n),u=l[0],c=l[1],g=On(["react-colorful",e]);return z.createElement("div",oi({},o,{ref:a,className:g}),z.createElement(uC,{hsva:u,onChange:c}),z.createElement(lC,{hue:u.h,onChange:c,className:"react-colorful__last-control"}))},d8={defaultColor:"000",toHsva:e8,fromHsva:function(r){return s8({h:r.h,s:r.s,v:r.v,a:1})},equal:a8},fC=function(r){return z.createElement(h8,oi({},r,{colorModel:d8}))},p8=function(r){var e=r.className,t=r.hsva,i=r.onChange,s={backgroundImage:"linear-gradient(90deg, "+ul(Object.assign({},t,{a:0}))+", "+ul(Object.assign({},t,{a:1}))+")"},n=On(["react-colorful__alpha",e]),o=st(100*t.a);return z.createElement("div",{className:n},z.createElement("div",{className:"react-colorful__alpha-gradient",style:s}),z.createElement(Gd,{onMove:function(a){i({a:a.left})},onKey:function(a){i({a:ts(t.a+a.left)})},"aria-label":"Alpha","aria-valuetext":o+"%","aria-valuenow":o,"aria-valuemin":"0","aria-valuemax":"100"},z.createElement(Yd,{className:"react-colorful__alpha-pointer",left:t.a,color:ul(t)})))},gC=function(r){var e=r.className,t=r.colorModel,i=r.color,s=i===void 0?t.defaultColor:i,n=r.onChange,o=Vd(r,["className","colorModel","color","onChange"]),a=Bt(null);pC(a);var l=dC(t,s,n),u=l[0],c=l[1],g=On(["react-colorful",e]);return z.createElement("div",oi({},o,{ref:a,className:g}),z.createElement(uC,{hsva:u,onChange:c}),z.createElement(lC,{hue:u.h,onChange:c}),z.createElement(p8,{hsva:u,onChange:c,className:"react-colorful__last-control"}))},f8={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:r8,fromHsva:ul,equal:hC},mC=function(r){return z.createElement(gC,oi({},r,{colorModel:f8}))},g8={defaultColor:"rgba(0, 0, 0, 1)",toHsva:n8,fromHsva:function(r){var e=oC(r);return"rgba("+e.r+", "+e.g+", "+e.b+", "+e.a+")"},equal:hC},_C=function(r){return z.createElement(gC,oi({},r,{colorModel:g8}))}});var TC={};rr(TC,{ColorControl:()=>wC,default:()=>L8});var Lt,vC,m8,_8,y8,x8,b8,v8,S8,xC,w8,T8,SC,cl,C8,A8,E8,Xd,I8,R8,hl,bC,rs,P8,k8,dl,O8,wC,L8,CC=Vt(()=>{h();d();p();lc();Ge();ta();yc();Ac();Lt=ye(HT(),1),vC=ye(tC(),1);yC();m8=J.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),_8=J(ea)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),y8=J.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),x8=J(pc)(({theme:r})=>({fontFamily:r.typography.fonts.base})),b8=J.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),v8=J.div(({theme:r,active:e})=>({width:16,height:16,boxShadow:e?`${r.appBorderColor} 0 0 0 1px inset, ${r.textMutedColor}50 0 0 0 4px`:`${r.appBorderColor} 0 0 0 1px inset`,borderRadius:r.appBorderRadius})),S8=`url('data:image/svg+xml;charset=utf-8,')`,xC=({value:r,style:e,...t})=>{let i=`linear-gradient(${r}, ${r}), ${S8}, linear-gradient(#fff, #fff)`;return z.createElement(v8,{...t,style:{...e,backgroundImage:i}})},w8=J(Rr.Input)(({theme:r,readOnly:e})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:r.typography.fonts.base})),T8=J(lg)(({theme:r})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:r.input.color})),SC=(r=>(r.RGB="rgb",r.HSL="hsl",r.HEX="hex",r))(SC||{}),cl=Object.values(SC),C8=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,A8=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,E8=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Xd=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,I8=/^\s*#?([0-9a-f]{3})\s*$/i,R8={hex:fC,rgb:_C,hsl:mC},hl={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},bC=r=>{let e=r?.match(C8);if(!e)return[0,0,0,1];let[,t,i,s,n=1]=e;return[t,i,s,n].map(Number)},rs=r=>{if(!r)return;let e=!0;if(A8.test(r)){let[o,a,l,u]=bC(r),[c,g,m]=Lt.default.rgb.hsl([o,a,l])||[0,0,0];return{valid:e,value:r,keyword:Lt.default.rgb.keyword([o,a,l]),colorSpace:"rgb",rgb:r,hsl:`hsla(${c}, ${g}%, ${m}%, ${u})`,hex:`#${Lt.default.rgb.hex([o,a,l]).toLowerCase()}`}}if(E8.test(r)){let[o,a,l,u]=bC(r),[c,g,m]=Lt.default.hsl.rgb([o,a,l])||[0,0,0];return{valid:e,value:r,keyword:Lt.default.hsl.keyword([o,a,l]),colorSpace:"hsl",rgb:`rgba(${c}, ${g}, ${m}, ${u})`,hsl:r,hex:`#${Lt.default.hsl.hex([o,a,l]).toLowerCase()}`}}let t=r.replace("#",""),i=Lt.default.keyword.rgb(t)||Lt.default.hex.rgb(t),s=Lt.default.rgb.hsl(i),n=r;if(/[^#a-f0-9]/i.test(r)?n=t:Xd.test(r)&&(n=`#${t}`),n.startsWith("#"))e=Xd.test(n);else try{Lt.default.keyword.hex(n)}catch{e=!1}return{valid:e,value:n,keyword:Lt.default.rgb.keyword(i),colorSpace:"hex",rgb:`rgba(${i[0]}, ${i[1]}, ${i[2]}, 1)`,hsl:`hsla(${s[0]}, ${s[1]}%, ${s[2]}%, 1)`,hex:n}},P8=(r,e,t)=>{if(!r||!e?.valid)return hl[t];if(t!=="hex")return e?.[t]||hl[t];if(!e.hex.startsWith("#"))try{return`#${Lt.default.keyword.hex(e.hex)}`}catch{return hl.hex}let i=e.hex.match(I8);if(!i)return Xd.test(e.hex)?e.hex:hl.hex;let[s,n,o]=i[1].split("");return`#${s}${s}${n}${n}${o}${o}`},k8=(r,e)=>{let[t,i]=Fe(r||""),[s,n]=Fe(()=>rs(t)),[o,a]=Fe(s?.colorSpace||"hex");He(()=>{let g=r||"",m=rs(g);i(g),n(m),a(m?.colorSpace||"hex")},[r]);let l=vr(()=>P8(t,s,o).toLowerCase(),[t,s,o]),u=ut(g=>{let m=rs(g),y=m?.value||g||"";i(y),y===""&&(n(void 0),e(void 0)),m&&(n(m),a(m.colorSpace),e(m.value))},[e]),c=ut(()=>{let g=cl.indexOf(o)+1;g>=cl.length&&(g=0),a(cl[g]);let m=s?.[cl[g]]||"";i(m),e(m)},[s,o,e]);return{value:t,realValue:l,updateValue:u,color:s,colorSpace:o,cycleColorSpace:c}},dl=r=>r.replace(/\s*/,"").toLowerCase(),O8=(r,e,t)=>{let[i,s]=Fe(e?.valid?[e]:[]);He(()=>{e===void 0&&s([])},[e]);let n=vr(()=>(r||[]).map(a=>typeof a=="string"?rs(a):a.title?{...rs(a.color),keyword:a.title}:rs(a.color)).concat(i).filter(Boolean).slice(-27),[r,i]),o=ut(a=>{a?.valid&&(n.some(l=>dl(l[t])===dl(a[t]))||s(l=>l.concat(a)))},[t,n]);return{presets:n,addPreset:o}},wC=({name:r,value:e,onChange:t,onFocus:i,onBlur:s,presetColors:n,startOpen:o=!1,argType:a})=>{let l=ut((0,vC.default)(t,200),[t]),{value:u,realValue:c,updateValue:g,color:m,colorSpace:y,cycleColorSpace:b}=k8(e,l),{presets:C,addPreset:A}=O8(n,m,y),T=R8[y],R=!!a?.table?.readonly;return z.createElement(m8,{"aria-readonly":R},z.createElement(_8,{startOpen:o,trigger:R?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>A(m),tooltip:z.createElement(y8,null,z.createElement(T,{color:c==="transparent"?"#000000":c,onChange:g,onFocus:i,onBlur:s}),C.length>0&&z.createElement(b8,null,C.map((P,E)=>z.createElement(ea,{key:`${P.value}-${E}`,hasChrome:!1,tooltip:z.createElement(x8,{note:P.keyword||P.value})},z.createElement(xC,{value:P[y],active:m&&dl(P[y])===dl(m[y]),onClick:()=>g(P.value)})))))},z.createElement(xC,{value:c,style:{margin:4}})),z.createElement(w8,{id:Kt(r),value:u,onChange:P=>g(P.target.value),onFocus:P=>P.target.select(),readOnly:R,placeholder:"Choose color..."}),u?z.createElement(T8,{onClick:b}):null)},L8=wC});h();d();p();h();d();p();h();d();p();var p$=__STORYBOOK_API__,{ActiveTabs:f$,Consumer:g$,ManagerContext:m$,Provider:_$,RequestResponseError:y$,addons:Gt,combineParameters:x$,controlOrMetaKey:b$,controlOrMetaSymbol:v$,eventMatchesShortcut:S$,eventToShortcut:w$,experimental_requestResponse:T$,isMacLike:C$,isShortcutTaken:A$,keyToSymbol:E$,merge:I$,mockChannel:R$,optionOrAltSymbol:P$,shortcutMatchesShortcut:k$,shortcutToHumanString:O$,types:br,useAddonState:L$,useArgTypes:D$,useArgs:F$,useChannel:B$,useGlobalTypes:M$,useGlobals:_t,useParameter:N$,useSharedState:z$,useStoryPrepared:j$,useStorybookApi:$n,useStorybookState:U$}=__STORYBOOK_API__;h();d();p();h();d();p();var V$=__STORYBOOK_THEMING_CREATE__,{create:cp,themes:hp}=__STORYBOOK_THEMING_CREATE__;var dp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdQAAABiCAYAAADpwyKwAAAMZGlDQ1BJQ0MgUHJvZmlsZQAASImVlwdYU8kWgOeWVBJaIAJSQm+iSA0gJYQWQUCqICohCSSUGBOCiB1dVsG1iyiWFV0VcdHVFZC1IOJiWxR7XyyoKOtiwYbKm5CArr7yvfm+ufPnzJkz55zM3DsDgE4HXybLRXUByJPmy+PCg1kTUlJZpAeACAhAF/gCjC9QyDixsVEAlsH2n+X1FYCo2osuKlvf9v/Xoi8UKQQAIGmQM4QKQR7kJgDwYoFMng8AMQTKrafny1Qshmwghw5CnqXiLDUvV3GGmrcN6CTEcSE3AECm8fnyLAC0W6CcVSDIgna0H0B2lQolUgB0DCAHCMR8IeQEyCPy8qaqeB5kB6gvg7wTMjvjC5tZ/7CfMWSfz88aYnVcA4UcIlHIcvkz/s/U/O+Sl6scnMMOVppYHhGnih/m8FrO1EgV0yB3SzOiY1S5hvxWIlTnHQCUKlZGJKr1UVOBggvzB5iQXYX8kEjIppDDpLnRURp5RqYkjAcZrha0UJLPS9CMXSRShMZrbG6QT42LGeRMOZejGVvLlw/Mq9JvUeYkcjT2r4lFvEH7r4rECcmQqQBg1AJJUjRkbcgGipz4SLUOZlUk5kYP6siVcSr/bSCzRdLwYLV9LC1THhan0ZflKQbjxUrEEl60hivyxQkR6vxguwT8Af+NINeJpJzEQTsixYSowViEopBQdexYm0iaqIkXuyPLD47TjO2R5cZq9HGyKDdcJbeCbKIoiNeMxcfkw8Wpto9HyfJjE9R+4unZ/LGxan/wAhAFuCAEsIAS1gwwFWQDSVt3fTf8pe4JA3wgB1lABFw0ksERyQM9UviMB0XgL0gioBgaFzzQKwIFUP5xSKp+uoDMgd6CgRE54CHkPBAJcuFv5cAo6dBsSeABlEi+mV0Afc2FVdX3rYwDJVEaiXLQLktnUJMYSgwhRhDDiI64CR6A++FR8BkEqxvOxn0Gvf2sT3hIaCfcI1wmdBCuT5EUy7/yZRzogPbDNBFnfBkxbgdteuLBuD+0Di3jTNwEuOAecB4OHghn9oRSrsZvVeysfxPnUARf5FyjR3GloJRhlCCKw9cjtZ20PYesqDL6ZX7UvmYMZZU71PP1/Nwv8iyEbeTXmtgibD/Wih3DTmGHsHrAwo5iDdhZ7LCKh9bQg4E1NDhb3IA/OdCO5Jv5+Jo5VZlUuNa4drl+0PSBfFFhvmqDcafKZsglWeJ8Fgd+BUQsnlQwcgTLzdXNFQDVN0X9mnrJHPhWIMzTn2XFrQD4x/T39x/6LIsqBOAA3EvUF59l9msBoIsAODlXoJQXqGW46kGAbwMduKOMgTmwBg4wIjfgBfxAEAgFY0EMSAApYDLMsxiuZzmYDmaB+aAElIHlYA1YDzaDrWAn+BnsA/XgEDgGfgdnwHlwGdyE66cTPAU94DXoQxCEhNARBmKMWCC2iDPihrCRACQUiULikBQkHclCpIgSmYUsQMqQlch6ZAtSjfyCHESOIaeQduQ6chfpQl4g71EMpaEGqBlqh45C2SgHjUQT0EloFjoNLUIXokvRCrQK3Y3WocfQM+hltAN9ivZiANPCmJgl5oKxMS4Wg6VimZgcm4OVYuVYFVaLNcJ/+iLWgXVj73AizsBZuAtcwxF4Ii7Ap+Fz8CX4enwnXoe34Bfxu3gP/olAJ5gSnAm+BB5hAiGLMJ1QQignbCccIJyAu6mT8JpIJDKJ9kRvuBtTiNnEmcQlxI3EPcQmYjvxPrGXRCIZk5xJ/qQYEp+UTyohrSPtJh0lXSB1kt6StcgWZDdyGDmVLCUXk8vJu8hHyBfIj8h9FF2KLcWXEkMRUmZQllG2URop5yidlD6qHtWe6k9NoGZT51MrqLXUE9Rb1JdaWlpWWj5a47UkWvO0KrT2ap3Uuqv1jqZPc6JxaWk0JW0pbQetiXad9pJOp9vRg+ip9Hz6Uno1/Tj9Dv2tNkN7pDZPW6g9V7tSu077gvYzHYqOrQ5HZ7JOkU65zn6dczrduhRdO12uLl93jm6l7kHdq7q9egy90Xoxenl6S/R26Z3Se6xP0rfTD9UX6i/U36p/XP8+A2NYM7gMAWMBYxvjBKPTgGhgb8AzyDYoM/jZoM2gx1Df0MMwybDQsNLwsGEHE2PaMXnMXOYy5j7mFeb7YWbDOMNEwxYPqx12Ydgbo+FGQUYio1KjPUaXjd4bs4xDjXOMVxjXG982wU2cTMabTDfZZHLCpHu4wXC/4YLhpcP3Db9hipo6mcaZzjTdanrWtNfM3CzcTGa2zuy4Wbc50zzIPNt8tfkR8y4LhkWAhcRitcVRiycsQxaHlcuqYLWweixNLSMslZZbLNss+6zsrRKtiq32WN22plqzrTOtV1s3W/fYWNiMs5llU2Nzw5Ziy7YV2661bbV9Y2dvl2z3vV293WN7I3uefZF9jf0tB7pDoMM0hyqHS45ER7ZjjuNGx/NOqJOnk9ip0umcM+rs5Sxx3ujcPoIwwmeEdETViKsuNBeOS4FLjcvdkcyRUSOLR9aPfDbKZlTqqBWjWkd9cvV0zXXd5npztP7osaOLRzeOfuHm5CZwq3S75E53D3Of697g/tzD2UPkscnjmifDc5zn957Nnh+9vL3kXrVeXd423uneG7yvsg3Ysewl7JM+BJ9gn7k+h3ze+Xr55vvu8/3bz8Uvx2+X3+Mx9mNEY7aNue9v5c/33+LfEcAKSA/4MaAj0DKQH1gVeC/IOkgYtD3oEceRk83ZzXkW7BosDz4Q/Ibry53NbQrBQsJDSkPaQvVDE0PXh94JswrLCqsJ6wn3DJ8Z3hRBiIiMWBFxlWfGE/CqeT1jvcfOHtsSSYuMj1wfeS/KKUoe1TgOHTd23Kpxt6Jto6XR9TEghhezKuZ2rH3stNjfxhPHx46vHP8wbnTcrLjWeEb8lPhd8a8TghOWJdxMdEhUJjYn6SSlJVUnvUkOSV6Z3DFh1ITZE86kmKRIUhpSSalJqdtTeyeGTlwzsTPNM60k7cok+0mFk05NNpmcO/nwFJ0p/Cn70wnpyem70j/wY/hV/N4MXsaGjB4BV7BW8FQYJFwt7BL5i1aKHmX6Z67MfJzln7Uqq0scKC4Xd0u4kvWS59kR2Zuz3+TE5OzI6c9Nzt2TR85Lzzso1ZfmSFummk8tnNouc5aVyDqm+U5bM61HHinfrkAUkxQN+Qbw8H5W6aD8Tnm3IKCgsuDt9KTp+wv1CqWFZ2c4zVg841FRWNFPM/GZgpnNsyxnzZ91dzZn9pY5yJyMOc1zrecunNs5L3zezvnU+Tnz/yh2LV5Z/GpB8oLGhWYL5y28/134dzUl2iXykqvf+32/eRG+SLKobbH74nWLP5UKS0+XuZaVl31YIlhy+ofRP1T80L80c2nbMq9lm5YTl0uXX1kRuGLnSr2VRSvvrxq3qm41a3Xp6ldrpqw5Ve5Rvnktda1ybUdFVEXDOpt1y9d9WC9ef7kyuHLPBtMNize82SjceGFT0KbazWabyza//1Hy47Ut4VvqquyqyrcStxZsfbgtaVvrT+yfqrebbC/b/nGHdEfHzridLdXe1dW7THctq0FrlDVdu9N2n/855OeGWpfaLXuYe8r2gr3KvU9+Sf/lyr7Ifc372ftrf7X9dcMBxoHSOqRuRl1Pvbi+oyGlof3g2IPNjX6NB34b+duOQ5aHKg8bHl52hHpk4ZH+o0VHe5tkTd3Hso7db57SfPP4hOOXWsa3tJ2IPHHy97Dfj7dyWo+e9D956JTvqYOn2afrz3idqTvrefbAH55/HGjzaqs7532u4bzP+cb2Me1HLgReOHYx5OLvl3iXzlyOvtx+JfHKtatpVzuuCa89vp57/fmNght9N+fdItwqva17u/yO6Z2qPx3/3NPh1XH4bsjds/fi7928L7j/9IHiwYfOhQ/pD8sfWTyqfuz2+FBXWNf5JxOfdD6VPe3rLvlL768Nzxye/fp30N9neyb0dD6XP+9/seSl8csdrzxeNffG9t55nfe6703pW+O3O9+x37W+T37/qG/6B9KHio+OHxs/RX661Z/X3y/jy/kDRwEMVjQzE4AXO+A5IQUAxnl4fpiovvMNFER9Tx0g8J9YfS8cKF4A1MJGdVznNgGwF1a7efCIDlvVUT0hCKDu7kNVUxSZ7m5qWzR44yG87e9/aQYAqRGAj/L+/r6N/f0f4R0Vuw5A0zT1XVNViPBu8GOQii4bCeeBr4r6HvpFjF+3QOWBB/i6/Rdxi4lInc448gAAAIplWElmTU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAIdpAAQAAAABAAAATgAAAAAAAACQAAAAAQAAAJAAAAABAAOShgAHAAAAEgAAAHigAgAEAAAAAQAAAdSgAwAEAAAAAQAAAGIAAAAAQVNDSUkAAABTY3JlZW5zaG90kx7ieQAAAAlwSFlzAAAWJQAAFiUBSVIk8AAAAdVpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+NDY4PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6VXNlckNvbW1lbnQ+U2NyZWVuc2hvdDwvZXhpZjpVc2VyQ29tbWVudD4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjk4PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CjlohlkAAAAcaURPVAAAAAIAAAAAAAAAMQAAACgAAAAxAAAAMQAAFSrMXL20AAAU9klEQVR4AeydCXgV1RXHT/aFhIQdJFbysSPKEllkjSC0lTWsomirArKDYitWqwjIorQVi4qAgKBQCy2yFFF2WUQWURFUCAKCyhYCScjysvX877w7mbzkxbyXSUjpuV/yZubOvXdmfu/O/Oecuzyf6LpNckmCEBACQkAICAEhUCICPiKoJeInmYWAEBACQkAIKAIiqFIRhIAQEAJCQAjYQEAE1QaIUoQQEAJCQAgIARFUqQNCQAgIASEgBGwgIIJqA0QpQggIASEgBISACKrUASEgBISAEBACNhAQQbUBohQhBISAEBACQkAEVeqAEBACQkAICAEbCIig2gBRihACQkAICAEhIIIqdUAICAEhIASEgA0ERFBtgChFCAEhIASEgBAQQZU6IASEgBAQAkLABgIiqDZAlCKEgBAQAkJACIigSh0QAkJACAgBIWADARFUGyBKEUJACAgBISAERFClDggBISAEhIAQsIGACKoNEKUIISAEhIAQEAIiqFIHhIAQEAJCQAjYQEAE1QaIUoQQEAJCQAgIgTIXVB8wVx8ews/Nny8X2xKEgBAQAkJACJQTAmUmqD4QUacoeqOnVl5WLRVhtZKRdSEgBISAELhRBEpdUJWQ8tVpEXXdxoXrOHcQrKKpxVTHuW67K0PihYAQEAJCQAiUJoFSE1QloPyBpfpX6/jIdW4j1tiXf0Vt5X04FTNPOHOVoQtBRZxeIoMW2bzMsiYEhIAQEAJCoGwIlIqgKqlUAsqCyUtfvhYsffjD1xKv4qzXiQgdLOqoxJQ/cnifFtAcCCpvYFutO/NZsumSZCkEhIAQEAJCoNQJlJqgKuFUIsqC6hRSP972ZXXFto+yVLE0rFSrluqr1kKqRBORHJGtBDSXclhdsQ5RNcQ1T3B1flkKASEgBISAECgrArYLqhZICKrx70N+LKL49+cIxGE9T1gNQdUXzLuVK1dvQ0z5j0UzT0Szs1lMWUWzeEc2CytE1RBXIy3ySBACQkAICAEhUJYEbBVUiKESVCWmLKRO8fSHmPJGgJ8hqv68NPaxherM4+6iIY6wQCGgEM0sFtAsXslkUc2CqEJcsd8puEjPfxKEgBAQAkJACJQpAXsFVQlpnmWqhJRNUghpcIAPVeD/ztWDqVWVQCWoEFOlwEVdsjI3fVgk8zojpbOCfp3ooA9+SKeUzBwlrtqCRTsrgspmrMqnEBACQkAICIFSJ2CboGpL03Dz5lmigWyKBvoThQX6UvVQXxrXsCLVCPZTgurN1UEwr2bk0NxjyfRdYiYlOVhQOdJoUzXaU1GuCKo3dCWPEBACQkAIeEvANkGFkEJU0Tbqx35fuHUhpkEBREH+PlQl2Jd63laBOtYMpmD4e70IcOU62Drd/mMarYi/TtdZTNMyDfcv2lJhpcL9iyCCanCQTyEgBISAECgbArYIqtU69WNlhasXbt5AFtIQuHoDfahxpUB6tEk4hQX4qs5JHl8eCyXaUk8lZdJ7x1PomwSHEtOMLGKXLwspC6pqR+U0IqYe05UMQkAICAEhUEICtgkqLFSIqZ9vrhJMiCnaTUNZTCuH+NLABuHUhq1TZckWNkbmFy4EPXnRdrqeLdMdZ9PoUmoWZWQaFis6KClBZcWF6PKfBCEgBISAEBACZUqgxIJqtU4xvhSWKf7h5oV1Gh7kSy1rBVEfFtRaYf7KLezNFcIKPX2NrdOjSfT9lUxKceSyoOYqF7CDBTXHKaZoYxUL1RvCkkcICAEhIARKQsAWQYXV6ausUxZTdvca1qmzI1K4H/VtGE4xtUMomEXWmwCLM4U7Im1kV+/O06mUmJZtuHudFiqG0qj2U14irQiqN5QljxAQAkJACJSEQIkE1Wqd6okbVK9e7ogE6zSCXb1NqgXR0JaRVDnUT82Q5PHJskKibfS7ixm07PBVupicTcksruk8qwMsVPTwxVhUNWyG04qgekxYMggBISAEhIANBLwWVC2maA6FhYpZkFRHJO7BG8yCGsymas2KfjSwWQTF/CqU9xmTOHh6zmgbTWPVXLwvgY5dcChLNdXF3at7+Or2U7FQPaUs6YWAEBACQqCkBEosqBBT3bM3EG2nbJnCOg3jYTLN2c37SLvKFBrE407ZFexpgDA62BI9cOo6rT9yjS6nZFMqW6UYKuPg/wxuV0WHJOsYVLFQPaUs6YWAEBACQsAOAt4LqtMyxZBSJagYJsMbIWydQkyrcQekRztVoSa3hJi/NuPpCcPivMAdkVbtv0LxlxyUnI62UzLdvQ4MmeFEpoWKtlTnQW4WK3Xy05OoV8/7aMN/PqSZs+Z4irBY6Z+YOI7GjB6hOnbd0awVZWRkFCtfeUhUFnzKw3WWx3Pw5UHn9erVpdubNKb69etRdnYWnT59hg4cOEQ/nD1XHk9ZzkkIlCoBrwQVbl7+Mya65w1jEgcWVKd1GsntpZ0ahVHfuypxOyorrZchlbvvfnYihbYeSVIdkVIzeOgMW6zqH+2nvK7m9GXhhZVa3tpRw8LC6IvPP1VXv3r1Gpr8p+c9IlG3bjRt/miDmadrtx506tRpc9uulalTnqOhQ4eo4pre2YpSU1PtKrpUyykrPqV6EZbCH+Lv4IXn/6RiHhz6KH22/4Bl7y+vxh8/ohJ9uOljGjd+Ur4M+/buoKpVq9CZMz8Q6lFJQqXISJo8+Snq26cnBQTwG3QhISHhCr05fyEtXrKskL0SJQRuTgJeCyo8uNrdq9pO1bhTtk55mEwUz9X7u9iq1KBWsOrx6w06WJhnL6fTxoOJdOpCBl3njkhpbJGmO1296ejhy4KKmZP0ONTyJqh48Bw6uEdd/qZNm2n02Ikeobg1Kop27vjIzNM59td09pz9b/52CmqTxo3opelT1DlPfPKP6gFuXoDNK2XFx+bTdlvc6FEj6KlJE9T+x4aPpu3bd7pNW9iO7+OPqujdu/fSw78fni/JkS/3U4UKFejSpcvU5u7O+fZ5shEb24kWzJ9H/niLLkbANQx/fCy/8GrfUTEySRIh4CTw4AODaUD/OLp+/ToNffixcs/FY0G1WqcYd2rMimRMMYi208phftS+UTgN7FCFwtk6heh6GuDqxbjSnYcTad+xJCWmENJ0FlS0m6oevryO9tRU5+T4+OUZw0otP27fkgoquI18/DHq07snrV23gea/9banKIuV3k5Bjevbm/4yZ6Y6rjeiUKwTtiQqCz6Ww5XqankX1CH3D6Tp017g37Mwbuos7l7/0ceb6d9r1tGXXx6hOrf9irp370pt27SmO+9sarI6d+5H6tN3ECVevWrGyYoQKA6BBW/No3u73sNDIXOpbv28OlWcvDcijdeCirZTjD3FuNMAp3UayhPgR1cPpCGdq1Kz6AqqbdV573l0bbkskhk/ptPJ7QmUkpJF2XyQXG6XzeFhOMTu5Cw+TioL6K7TaXTwp3QlsBiLaralsiAj3Oh2VDsE1biS0v38XxbU0iVTtqWXZ0GtWbMG7f5kC9/z8E0RxZ/8nvrGDXbbPNC9W1ea9/e/siXLv4zBoaSWsSpEPv7vCPwfCSpPM8henwAWVfyaTAhPMYhZkTo3DaehXapRBe7Z642YYiBpDnc+SvrgIuXwmFMK4h8lr+hPfpHGP7GopnFv30M8/eBybl89z2k4uTmfr3b7ouaJoBbv/hNBLR6n0k5VngX1w/+soYYNGygE3357nHr27v+LbtyoqNq0aeNaCg0NUflmzf4LLVi4uLQxSvk3EYGbWlC1QMKNq9y9vET7KSzUcBa6Gix8T8bVonrcdoqev96EXLSLnkmj9K+TybcCD7eJ8CdfdiP7sJWancq9fK9m0hGeGH9JfApdScshjElV7aguFuqNFlNcux0WatOmt1Pt2rXop59+piNHjDaywrgGBgZSv7jehDbMKlWq0NFj39Cu3Xvy5bm7bWuqGFGRjh79huCG08GdoPbqdR+1aN6MataoQae5M8uBg4doz55PyeFw6KzmsnOnDhQcEkydOnYguAYRFr29lA59flit57D7YOu2HeZDODq6DjVoUI8uXbxMnx/+QqUJDw+nwYP6U33uORrCD+Fj33yreoweOmSUoRK5fBTFp2uXWPIP8Ke9ez+j5ORklbN9+7upY4d2hPbXhIQEOsjnt2vXXkpMTHQpufDNknAuvMS82PIqqOjFu37danWicPO2adup2O5b6zWdv3CB2rXvknfBLmu4X1Dn8P2jDiP98eMnVHNHWlq6S+q8zQiu0225bjscmWa7c6VKleiBIYNUHUtOTqF9+/Zz/dtOruWgzsXGdqQ2rVtRUFCQyo966q6ne2HHwpncxu7ue7h9uZF+6fjuOK1du6HYnFCGH1soPXr8RvWajqpdm5KSk+jEiZO06aPN6v5HGnehNOo6joX7+q67WlKdOrexNyKNTrJnYhN3eiuqF3d0dMnu7dDQUOrYsR0OT+PHjqbGjRuq9VFjjP4F2ECnt4MHP1fxrh/ofAc3Mb5TR2YmM4ynT3btUXXJNa3d2x65fCGokEksTUFl6xRTDaLttEdMJA1ob4w7RRqPg9M6dZxLp1zuhOTDbl4ILPHPtGVdz1a9eo/yD4uvPZNK3ydlqfZTdE4yf20G7agogw98swjq3j3blKAV5TKb9uKfafDgAaZ7zcod+YaNGK2E9fi3X6o0rh2kXAUVwgt3HR4wrgEPpEl/mMw31eZ8u3SHmHyRLhudYrubQv7+ymXUqlUMu/RT6M7mbWjKC88Sernq9jlr1p9/Pk+/f2QEnYg/aY1W6+74WF9mpk2fxW19W2j92lWEB61rQPvMkiXLafqM2a678m2XlHO+wgrZsIqPN+3P+juwu1MS2sTRNo6wZOlyAs/iBriIjx45qOoSODe+vWWBFzJ8VwsWvE4tWzQr9PtHh6adO3fRqDETC+TFeQwf9gg9w72OEdBLfdTIYQSWrnUJIokyduz4RKVFmokTxhbawWrL1u00gjtTuQbXYwUHB9PiRW/mazPWeXC9EOdRoyfwkCJ2oxURZs+azox7FXoPIxteLB4fNb7QTn6lUdcffugB1UEuLCys0LPGvfjYsFHm/WxNVNJ729oPw1qudR3PodvviLFGKWPi3eWLKTIyIl+83sAICXSULMow0Wm9XZZAUHl2JFZNf25MxcxI9W8Jokl9a9Et/DNtsFh1UGv8gaWO1cu8GCM1KmAOW6G5LKDZLJjZPAYVwgpR5f5HdJbbU1edvk7xHJ/EQ2gyYM3yP9pPy+P0g9aK7ipims8vLd0Jhs636p/vUUzL5npTNd6jsgWwZWYd0jCSb0bdpuV6LlZBHTDwQfoHi53uxYmHWVZWFsEys4ZJTz1Daz5YZ0ZBrPHwxENMP8jwfeJfh7btYuny5QS1ab3pXp37Oj337NM6mXpo+vr6meeAHTiPDp3upfPnL5jpsOKOj5X9y6/8lYYPf1R5DJAH5wQr2/WFYfOWbfT4yHFIUiDYwblAoS4R5VVQDx3Ybb6I3NW6I125csXlzIveRM/gVmzlwLqd+9rrppcCuRo0qE//Xr3SdAsjDvUN4hcUFJyvDsCL8NsecXTx4iUkM4NV5NCT/o15r5r7jHLyvxj27NWfhrD1ih6kOiAd6riuu4jH2O/xEwyh1umsx+r26560ccMa8z5T5831KoRFVrc1I99ZHpPb/Te9C7V6Q9irs2Hdvyg6ug6nNALqelp6Og9DDDDLxh6UDxHbxb24rcHuug5xHzggznoIdWxY0FY+mWz9Dbr/IdUhzZq4pPd2t3u70JtvzFVFWjmCiw6JiVepVZuOelO9jOOlXJ8f0l5LSqIw7tlufQ6CYVy/+5UHz8xs44rHgopjGy5fdlGwMhqC6kv3xURQr9aRaqYkuHuVgPIH0mI9kB+0obyBPOYkhNhhCblsXmZdcVAWT+KQy65crcB4JF9mYV0Rn0zfJWZSsvOHxTGxAwQV8/niuZ0NC9VZnuU5bjlC2a5aK7qriBX3TNwJBvJjUoMRLBQ6vLPsPUI7FR4OCHDVvTZ3jrpZEYeKhQrqei5WQYXQ4MHy8eat9Pbid5TLFWVVrlyZ3lm6QJWJbYh2i5i7C1gM1rfLoqwsfdNZBXfhoiW0YsX7pjupZYvmtGjhG+Yb51dffU19++U9BHEe7vhY2ePGx7XjwTZz9hzasmW7+YCYNXMa9e/XB0Wp0Kv3gAI3m12c9THcLcuroJ488bV6UOFlqHXbTu5O3+N41MWD+3eb3y8E88lJk2nnJ7vNslCfpk193hRcWBmu42itIocHJjpCzZ+/iBa+vVS58uGmXbp4ATVrdocqF72NIyMi1DW9x/Vt3utv0QV2LyNMGD+Gxo8bZT6YXcd+W4+FZpOoqNp07VoS/fHpZwkvZAi4rlEjh9MTE8eawrpt2w72FI1R+60fy5YupA4dDPcmzv3lV/6mxu5q8cA5v/bqHLr11iiVDXUZLzW6CQORdtb1+9nTNeOlF81TXLZ8BS1/dwW7ek8pl3S3bl3omaefMs8H1x7Tqn2+lyS77m2cRHHaUKtXr0af7tmuvjM8T1y9TXgOTuTvomuXWBSpmhKKanpQibz88EhQcQzWRXPmI0wnCPHET7VV4A5JFUN9lftXTZDPbatBrJ7YF8xu4SgeQhNXOUSl5/qWvyC1bURZf8w0l4/Fo2SUmK5ny/SLyxnqZ9vUXL4QUvaiZHECNWSG08Hdy39KXHGuNzpYK7qriBX33NwJBtp+Dh/aa96weIC8POdvBYrFw2XPrq1UrVpVc5/ruVgFFYnwkPnz81PN9NaVbVs2EtpTEJ59bgqt/Mcq627lGizOsBl90+nMeCCt/tcHetNcoj0Fk2PgOhAaNGqmxFAncMfHyh5p0Qbd5d77CrwAYN+sGVNp0KD+WFUuuuGWB5+dnNUBivgoj4IKl99XX3ymzhptVrBI7AqwKOBaRMCLHDwQ2oNhPQb6Baxjd722Vl6YMp0f8ivNJFaRQ6S7zk+6ruiMi1hwZ8x8RW+aS+t5wbthHa7meiwI3D1df1toG+fAgf1oNr+w6QDLGP0CdEAb38oVS/Umod7BRewa4EmBYGhXJvoxPPS7YWYyu+o67jG457VFB9c+XPyuAeeza+dmNVEI9uFF2DqLm133NsoujqCOHTOSnnzC8CzBqHhx6gxkLRBWvf8uxcS0UPHtOnQp4O0qkMGLiP8CAAD//04T0yIAABsnSURBVO1dB5gVRda9M0yAISdB139lJA1ZgVGyKCCKiCjKShQUiQKuaXEXUBAVFXVBd8WEShAVWJAMkiQokrOIIgZUJKchzQz891S/amp6Xr/YyMjc+mZeV1dXV1efV92nbqj7YpLLVj5HYaSYGCL+o1hs+T8PZ/LwNi6WKJ4zCXHE/7zlfF7e5ouPofwJMVSvSAI1KZaXYrl+LNe1GsCW21GNWWVoUx87y/mDp8/SnB/TaM3vp+nwybN0KuMcneb/M5lEGZnnKOMs0dmz54j/iLN0Lqy74RMuYCpapAitXbNCXWHu3M+o90MPh321L1YsotKlStG+ffvp+ro32Of36d2DHn2kn9pfu24D3dO2g33MmSlduhR9vngexcfHq0POvgx9eiB17NhOHftu5/d0c/PbnU3Y+9dfl0oTP3xf7X/yyRQa8M/B9jFk7mzdil4e8bwqe+DB3rR48edZjuudjyeOpdTUWmp3zpz51Kfv3/WhbNsXX3iW7m7TWpXf1aYdbdi4ya7jho+J/TkeFFWr16aTJ0/Z55mZhIQE2rZlLY/LWNq5cxc1a97SPuwlznajLpnevbrTY4/2V0cDYedyOn3/3VZ1aPnyL6hzlwezVNu8cRXlz58/2zjKUsnPTtWqVWj6tE/UkWDfk5/TAxatX/slFS5ciJ/Zc9S+Q1f6atVq1/r4/jEOkH744Ue6qWkLu+6D3brSkwMeU/uBxm+HDvfSM0MGqXppJ05QteqpdhtmJi4ujnZs36iKli1fQfd16W4fNq+Fwq7396DPly63jzszr7w8nFrfYT1PM2fNoX79rX6i3tj336YGDeqpU94Y/Ta9NOLfztPt/auu+it9Nm8mxcXloYyMTEqpfA2/9/DGI/JqrN/7t7vpuWeHqDanTptOjz72pMr7+yhWrBit/mopc0AM/b53L9Wtd6NdzatnGw2+9ebr1LTJjWqMlC1f1b6GmXn6qX9R507tVdEdd7alzZut58Csg3wpfo/e2LihKv7f1Ol05swZZ5Wo92MiIVRcFZwI8ovlD/AhCDWOSTQ+j0WoibzNy2SaFB9LRfLGUOvSSVStcIKqm5VE0Y5qiIkVjaLxGDrH20NMpp/vPkHLfjmpyDQtnYlUESpROpNpJo+nTH4YQaa8sf759JySzIHuJLFQ++hGGHNmTaWKFSuoZgINIn2dN0e/Rs2a3qR2nX0xCfW998fRM8OG69OybUE63+3YrMr9EXkkhIqXDF42bqntPW1o+PND1eGhzzxP738w3q7qho+JvXMyYp9sZDDxwTlHjx6ja2rWsY94ibPdqEsmJxIqxgzGDtKEDz+mQYOt78HlFkIuBkEsXmh9506CdGtkw7qVVKhQQfVyrVy1Fp0+fVpVNUluwoSPaNBTz/htony5sjRv7nR1bP2GjdTmbusl7K/y9m3rCROt77/fRU1vPj/BMq+1a9cP1KTZbf5Ot8tMcj58+AjVrG0RKCp8vXUdJSYmKmIsV6GafY5bZvy4MVSv7vXqsPnMeDXW/zdlIl1To7pqv+XtbWjb19vduqLK9bOHnUpVatrfh0moZj/9NRbo2Ub9UAi1a5dONGjgANU8JmXt2ndR+YvxETahopPgP/Ce4kHeKlJlMtSkmuAjU0iokE6TC8ZR678kUXIBFl990qgplSqC9REpGmbhk04zS6745RTN/yGNDpzIpBNnLMk0nQ+CTLHNQqZ8Dkg1JyVzoDtJLNR+6kHrJAVNAJjdu83czGvc37UzDfzXP1SRsy8mod7zt460du1689Rsef2y2brta7q91d1ZjkdCqObDmKUx306NGtVo6pSP1N6Il0fSf994y67mho+J/cJFS+jB7n3sc/xl5s+bQeXKXk0nTpxU0qyu4yXOuk23bU4kVBP7WbPnUt9+j7p1P6xyc5zMm7+AevW2JPNAjcyYPpmqVK6kqmDcYfwhmSTXpWt3WrrM0gqpg8bHZZeVpJVfLFElY8d9SE8PsSReo4qd3bThKypQoEBAQg0Vj82bVlP+pKQsxGlOTJ3Ptt0JR+bxxx6mXj0tzcOYMWNp2HMvqBpejfVVK5dSiRLFKT09nSpWusZx9ey7muxw5JYWrWnHjm9VJZNQo3m20Zi+RqD3HPr8xfLFSnrHOZgUT548lT4YO4F+3r0bRX9YioxQfd1TxMoECI7EP9S/LJAqlW8iS6f5mD8LJsbS9SUTqfkVSVQiHzMtH7ckUouQNcFqkRdS6kkmzDV7TtHM747T3uOZdJIlU6XmzbDIFGpeSKdnmUyUdMr9yWlkCojMge4kMR+EQTduhKFJzTnrdWuwbNlkpTLCcWdfTEKtymqwE6wOC5S2bl5L+fLlVS+0aAk1IyODKqTUCHQ5qlChPM2dPU3ViYRQg0ndaHj2zKmUklIhG6F6iXPAm+SDOZFQoZKFahbJy9l/v7696OH+D6l2hz37Ao15b6zKB/oY/txQatu2japiSj4mobZq3Za2bPGv8jMJNdiYCIVQn3p6GI0bPzFQl9UxjF2MYaTyFatTZmYmXXHF5bR86QJVtvKrVUrlrXYCfNRl6XQCS6lIpvrdfM8Euy+c6zbW9XONOiCwYEm9x32VevXpT/PmWfejCTXaZxtNh0KoqAe1+oiXnlNmG+zrBC0GzADA690xH9hStD7u9TYiQkUnmD/VB7ZZCJU5EzZUS90bw+reWLr1/5KoQem8Sv0LElbkiZN8Iq5Vhn2LTNczmc7ykenxM2ctMk33SaaKTH02U6h5ubkQvnuu9ccnc6A7SSzU3rgRKmw8UCft+f13qlf/pqDNJfEMeQvPlJGcfRFCdX/JeIlzsC/JJNSevfrR/M8WBjvFPm6qFr20oeICO7/doibBTluZffEIMoMHPUld7uuozry/Wy9asmRp0FZ69uxGTzxm2dpNMrtYhArVYiC7r76hD95/ixo2qK92a1/XkA4ePEjVqlWhT6datulg9krdTtGiRWnt6uVqd8WKL6nTfd1U3nzPREOoeqzr64Wzhb0V94F0MQgV14WvyFOD/8l20kZKXY8yM8HmPHXaDPrHgIG2/dk87kU+YkLFxZWE6tvm4Z08LF2yzZwSfYQKde/l+fNQ23IFqErxBLavcgX+O0+kMbbd9CyfD1Xv1n2nacb2Y7Tr8BklmZ5SdlOfZAo1LwiVGRQkytkcS6bctQsqoWonk1BmgehL8+ZN6Y3/jERWCFWhkPXDbdbuJc5Zr5h9D44VcLBACqaSdJ59c7MmNPqNUaoYRAxCNpO+j1DVi+a52naJshrX1qFjx46ZhyPK9+zxAD3x+CPq3JGj/kMjR/03aDujRo6glrfdqur16NmXPluwSOUvFqG+OOJVGj36naD9hq0YNmOkq8tVUVs49axZtUzlN27cTHe2uVflA32Yz/D06bPo4UeeUNW9ItQtm9ZQUlI+paVp1+G+QF3Jduzrr79hZ6kMVX6xCNXsVOVKKdSyZQtq2LAeVaxQwVYHo86mTVuo9V1/M6t7lo+aUNETCJuaUOHpm8iqXnj3FmLp9OrCcdS5ciEqzfZTePhCCoX9VDkg2eQaQ2dYd/vzkXSasuUofXvgDKWxzRQevWeYUM/bTJlEuR7UvDmdTIGLOdCdUiGOh5LcJFSoi6A2QqpTrzHt3bsvYHPwboSXI5KzLyKhukuoXuIc8Avig3XrXEcTxr+nqn373U5qfkurYKfYx01v0rffeY+eHz7CPoZMNIT62qiX6bYWt6j2QHwgwHASJLSa116j1Iip1zdSarcWtzan1197RTUDmydsn8GStnOjHrABRkgXi1CXfL6M7n+gp+pDoA/tfATv3Aop1e2q2is7VLMNpK/7OndQ54PIQehI5nsmGgl15RdLCGpxqHthQ9UEqS4SxkdOIFSzu7BX9+zRjR75e19bJRyJF73ZplveQ0K1vHyxXEYRKkunRfPFUs1SealdpUKUxPsWkVqkakuqvIt5zS9H02na1qP09d4zdOzUWToJMuX/dPwzeyqbqY9MmU+VZIptTk7mQHeSWKj9diNULE2BYwdSKDP8Jbxs5q//d6Wq7+yLEKo7oXqJswI/wEfBggVp4/qVqkaojiG6uaVL5tOVV/5F7T7U9xGaPWeePqS20RBqrVrX0qSPx6t20C94QbstQcpyUd4x7d+wZ8FJBcmU0H77bQ/Vb9hElQf60DY+qO5gd9fLRi4WoYZibjFt0M77NJcNwbaq78cNA9MLt0PHrvTlylWqqvmeiYZQx499l+rVq6PahBMfnPkiSTmNUPU9mBogLz3WdfvYRk2ozIeWDZWlzXiWPNX6UybPfPFEl+WPo9vK5acbrkqiBHgr6crgVJ+0CjXv3rQMmrzxCG367ZTy5oUTEsjU31pTRaZ8DlS+OT2ZA91JYqH23Y1Q4e0Ir0ckzCihwnBbfzXsmaeofbu29iWdffGSUOEcAGkJacCTg+mTSVPs65oZrx46N3xM7KN5yXiJs3n/bvmFn82i5OQy6nAo3smo+FCfnmr2jTzW1qVUvhbZLCkaQkVD5oQsHOek6Z9OoqpVKqu+OCXRFcsW0uWXl1bHnMuhVKHxYY5Rp8ruYhEquhdM7Wt6JsPrdMjQ5+y7+vcrL1KrVrepfX92b7siZxqzXXDMO2+oInNiggKvxrqpUg5lSRDME+XLl6MjvBzIXGPv1bONezOX+2ES5U9qHvfBO1SkaBHatm27so/iPH/JdOqaMXM29X/4cX/VoirzhFBZKKU8/IFlM4m8zZsAlW8s/aVQHupRuxj9tUi8WqMKqdRW97LNNINdig6fzKSpm47S+t0n6QjnT6WTUvXq5TEqcAMTBtS8IFFFqH8CMsW3Yg50J4mF+q25EQbON19WWO6BNXG/s5OSmTp1bEdDOHADSFd75Tn7Yr6sovXyNaUZ0xPR7BPyXj10bviY2EdDqOirVzijrWDJVIWibjC1Yv9+val/vz52s24z72gJFV7i8+fOsMfQmjXr6N7297lKVZBA8R3jPCSoO2GagEOOTqbEgPGJdaFm0A5d7/bbW9DIV1/Su0o9bC6NuZiEin537HS/LS3aneSM+VxB+sT9799/wK4Cu+qiBbNtTP898nUa9ZpFmnYlzsC0s2TRXOWEiPIPJ35CAwcNsat4OdZNe3kgkn/15Rfojjus9bnwqoZ3tU5ePdtozzRVmZ7d+lrYLpg/k66+2hpngVS5n3w0jmrXtjQkoXqWm9cJJR8dofIVWD2tJNQ4ljgR1AEOSSo6UmIMVSqZQH3qFqd8CbEWoTLxqsq8hRMSyHTRjmO09Ns0OoS1pr7lMUrNy6KrJlNeRfOnI1OAbw50LF6fPMVa+oFjgdJPP/1sBzpwIwycD3sHVH1YgI6EhxuLsX/99TdlK6hRvZpaV4ZjmB3jBQZSvZCEioXqsBkhoT/r1m1Q1/7mmx22zQvHvHro3PAxsY+WUL3CGfcdSoJtEcSq0y+//Eq4h7nzPlPfLbw9GzSoSw8+0IUQyUinn37eTY1vPH+eLsc2WkJFG2bUKOxDUsLL/aOPJtHO73dRwYIFqFGjBlS/bh26885WdmQukOmjjw+gGTNm47QsCYEWEHABCdIH2nrvg/GEZ6B8+bLUs3s3di651bZ9ISoRohOZ6WIRKlS4kLBxf9DEYFkGvit48P794b52EAb0dfSb79KLL71idlvlEZAAgQl0wv2NHPkf2rJ1m/Javefuu6jbA13UMjXUOXT4MKWyp7CpHvZyrNevX5cg8emEJSfzeNx9zFHR8uXNSy1aNKcmNzW2xx2e8YY3NFPjUp/j1bON9szADzA3LFy4hMZNmEg/81jfvfsXdclbbmlG/33dijKF/iAK0ii29WMNKt6Nqam1aNjQwbZjGMwV1a+5Ti1f0n32ahsxofJ7WSVobiGhIkqStp8mMYEW5OhILVIKUstKBSmOpVUQr7abIgoS7KJztxyhhd8cp4NpvNbUF7jhjC9oA49Re52pkk75dMbqT5XMgR5Ox/HQ1KpdX53iRhi6PcxeZ7BaDS9Zt6Q9AvXyhwtJqOiDfqCc/WnQqKn94Ok6eInm5HWo+h68wFm3FcoWLwi8KEJNmLBAYjxy5KjfU7wgVDSMEIAvDB9mS1V+L2YUHjp0iO5iyfPHH38ySs9nsZwL4zc5ucz5Qpfc6tVrqT3bDrGO00wXi1Bhx4RKEgEgAiXYs2HXdkumQ5lbHZQDy9s4gtGePVm1UOZ7JtrJI64D50VI11qjhTJ/CQQ3kCNnTZr0vyyHvXq20SgciuBXgLCZZgIpVqlWyy4yPcB1IcjVeQ8HDhyktvd2ol27ftDVPN1GTqjcDZCqIlT+gLrXWn9KHB0pVjkkPdSwOFXk9aexTLbaZgpOhMPRYl4as2DbUdrvI1Pl0cveSSo+Lz8vkEpzeuCGYN+E6WQSrK55HF966vUNVZH2Mg3mAIGZXOfO7anUZZfxbDYfHThwgL5jL8hXXn3NjiijvQqdhGrOkjFIgzmcaPd6N3d/vCQR1QUvX/NBaNT4ZntWCW9WeLXioQwWlSU5uQzBtogE71V4serkho+J/Vtvj6HhL7ysT/G71bautLQ0qlbjOr91UBgNzq6NuhxA2D8sLdFqU3/V4N0NycjExF89Hagg2Djyd66zLDm5DGEdacMG9WzJ0VkHUtvSpcuoZ+/+fu1ezvpYX9qx471+yQnPw5tvvUvvvPu+8zS1b4aeMyP2OCubjlDBxoR2GHJ6WzvJe/v2b3iC8Qzd0aplNiwwuYHDoBkq09knvQ9b6mOP9Lcdy3Q5ttAEfPrpTBr89DC/8WcvxFhHCMKhQwfZ9m+zP3hm163foJZm+ZvAefVs62tCNf6vfz5BjW9oaKu9nYSKuo0a1ufgDs9T8eLFshEpYjdDhY2JjXNCpq/jxTZyQvWRqSZU+BxB3YsISYiOlFwinvo2LkElOOygspsy+0IyPcGi6bofT9C0dYdp/7FMOs7xeq0oSFY4QaXmhVcvzy7+rJKpF1+M122YcUxDXUjuRR8wey7E0XYOHjzkyfpFL/p0Idu4EDgDQzhUlClzlQomD3s5JL41a9fZE5QLeU9ubWPihElRSkpFJoIr2I+CA43s2cORirbRgoWLs6gl3dpwlmNxPhzBChXCmDmoJoOm3dFZ/4/edxKqGZUJL378eMTx48dp0+YtEX038AquzPePifGp06cI6zvdpPs/4t4REa1SSgrHDS/Pk/SDylbsxTrkSPoOabVkyZKUmBDPAfn3BYx6hElorZo1ae++ffTll18FrBtJX9zOiZpQoe5VIQd99lMQahFeLtO4QgG6qya/TJP4gI9MsXZ03Q8naMb6w7Rr72k7pOBpn2SqlsdAMtXLYyDOcvJtrB35VAjkyZOHnuZ1abG8hSps2qczAiIDSQeL6ZEgrWGGLik4AoJzcIxyU41AhJqbcJB79Y9AxIQKyRQqXwR0iGPOjPcRKkIOFufoSJ3qFaPUq/Pz+lMWXbnyKRY9fzqYThOXH6Dv95+mtFP4KTa2parlMdbPsGm7KQunKnADmFTI1P8Xh9napg2rVGQTqNduanqr64wYMWpnTp+iVFKwK2Bxvelt6f8KUgoEBGcZByYCQqgmGpJ3IhAVoSp1r49Q8QszsKGCQK8qGU/dG5eksqUSWecdww5I5+g3joI0et5e+vVwOh1nMoVUqgI3sL0020+x+XoJYpXkjgA8Cfs+ZEVqgXPPrFlzadGSz5UnHALcJyeXof59e2fxkpw0eWrAtVruV8u9RwTn3PvdO+9cCNWJiOybCEREqJBM+c92SIL9VBEqS6cF2H5as0wSdb2R7aeF4tluyiEFD6TT5C8O0Ea2napfjuG1ppZkCm9f63dNlQMS64ShFkYSMrVwCPQJdeRHE8eyrSD4Ty2hnVAiKgW6Xm49Jjjn1m8++30LoWbHRErOIxAxoTKHsjrsvMoXS2YSOIZvUVb3NqlWiNo3KK68e/cfT6epXx6itTvT6AivNYVkqmLzYstkqteaclY5IaFrQqbnv6BQcggYPmTIQCpSuHA27zZ45P3GbvbP8k9k6WDiobQpdbIjIDhnxyS3lcDpaMA/HlW3/WCPPlkCNeQ2LOR+syMQGaFyO1D3KkJlUkVQB02oVxSLp3vYftqkemEOI3iWJq04QEu3HqOjHMRBSaVMpBnMnoiEZJEpiNT69RhoeIVMs39J4ZQgdmoqRwOBJ+iy5SvkgQ8HvDDqCs5hgCVVBYFcgkBkhAoyZYBsQmUdMH5lJp7tpSlXJlL3my+jK4ol0IzVh2jOmsMctOEsx+VFoHuLTOF8xL5I7M1rkSmkUyHTXDLi5DYFAUFAELhEEYiaUCGpnpdQYyi1fH7q2qwEreFwgtNXHaIjx1kyhWoXJMqkil+NyUamPkK9RDGW2xIEBAFBQBDIBQhERqgMjFb5xrJ0irWoVpSkGLqjTlEqVSSOnZAO0aFjGedJlElV/Ti4kkpFMs0FY0tuURAQBASBXIVAZITKBMp/FqmCUFn/q39YvGVqUfpqx3Haf5TJFCTKUilUugglCEKFjdQMKShrTXPVeJObFQQEAUHgkkUgKkLF8hklqXJGBXfgnYIcJQnrTDOZRS3yBIFa/9nIlGEVJ6RLdmzJjQkCgoAgkKsQiIxQAZFDSgWxgmD5z0qcAVmqfy4BqSJKj9ryvhCpDyfZCAKCgCAgCFwSCEREqLhzTZ5Zt/yrMjajMmlyPZCoJlW9FTXvJTF25CYEAUFAEBAEDASiIlS0A/7U/1pq1WKqTaBcx85DUsWJkgQBQUAQEAQEgUsIgYgJFRhoadQQShU0el8Tp9oKkV5Cw0ZuRRAQBAQBQcCJQFSEqhtTBKpZVBc6tpBQJQkCgoAgIAgIApcqAp4QqgmOllqFQE1UJC8ICAKCgCBwqSPgOaFe6oDJ/QkCgoAgIAgIAv4QEEL1h4qUCQKCgCAgCAgCYSIghBomYFJdEBAEBAFBQBDwh4AQqj9UpEwQEAQEAUFAEAgTASHUMAGT6oKAICAICAKCgD8EhFD9oSJlgoAgIAgIAoJAmAgIoYYJmFQXBAQBQUAQEAT8ISCE6g8VKRMEBAFBQBAQBMJEQAg1TMCkuiAgCAgCgoAg4A8BIVR/qEiZICAICAKCgCAQJgJCqGECJtUFAUFAEBAEBAF/CAih+kNFygQBQUAQEAQEgTAREEINEzCpLggIAoKAICAI+ENACNUfKlImCAgCgoAgIAiEiYAQapiASXVBQBAQBAQBQcAfAkKo/lCRMkFAEBAEBAFBIEwEhFDDBEyqCwKCgCAgCAgC/hAQQvWHipQJAoKAICAICAJhIvD/Jvuro6vjJZoAAAAASUVORK5CYII=";var pp="2.23.0";var fp=cp({...hp.dark,base:"dark",brandTitle:`Lightning UI Components v${pp}`,brandUrl:"https://github.com/rdkcentral/Lightning-UI-Components",brandImage:dp});h();d();p();var Et="lui-addons",Vn=`${Et}/downloadbutton`,Gn=`${Et}/announcetoggle`,Yn=`${Et}/gridoverlaypanel`,gp=`${Et}/themepanel`,mp=`${Et}/componentstylespanel`,Xn=`${Et}/stagecolortoggle`,Kn=`${Et}/themepicker`;h();d();p();h();d();p();Ge();h();d();p();var dV=__STORYBOOK_COMPONENTS__,{A:pV,ActionBar:fV,AddonPanel:yp,Badge:gV,Bar:mV,Blockquote:_V,Button:yV,ClipboardCode:xV,Code:bV,DL:vV,Div:SV,DocumentWrapper:wV,EmptyTabContent:TV,ErrorFormatter:CV,FlexBar:AV,Form:EV,H1:IV,H2:RV,H3:PV,H4:kV,H5:OV,H6:LV,HR:DV,IconButton:Sr,IconButtonSkeleton:FV,Icons:wr,Img:BV,LI:MV,Link:NV,ListItem:zV,Loader:jV,Modal:UV,OL:HV,P:WV,Placeholder:qV,Pre:$V,ResetWrapper:VV,ScrollArea:GV,Separator:YV,Spaced:XV,Span:KV,StorybookIcon:JV,StorybookLogo:QV,Symbols:ZV,SyntaxHighlighter:eG,TT:tG,TabBar:rG,TabButton:xp,TabWrapper:iG,Table:sG,Tabs:nG,TabsState:oG,TooltipLinkList:bp,TooltipMessage:aG,TooltipNote:lG,UL:uG,WithTooltip:vp,WithTooltipPure:cG,Zoom:hG,codeCommon:dG,components:pG,createCopyToClipboardFunction:fG,getStoryHref:gG,icons:mG,interleaveSeparators:_G,nameSpaceClassNames:yG,resetComponents:xG,withReset:bG}=__STORYBOOK_COMPONENTS__;var Pl=ye(Ce()),kl=hs(function(){let[{announce:e},t]=_t(),i=$n(),s=[!0,"true"].includes(e),n=ut(()=>{t({announce:!s})},[s]);return He(()=>{i.setAddonShortcut(Et,{label:"Announce Toggle [0]",actionName:"Announce",action:n})},[n,i]),(0,Pl.jsx)(Sr,{active:s,title:"Toggle a11y announcing (voice guidance) of components",onClick:n,children:(0,Pl.jsx)(wr,{icon:"speaker"})},Gn)});h();d();p();Ge();var Ol=ye(Ce()),Ll=hs(function(){let[{stageColor:e},t]=_t(),i=$n(),s=[!0,"true"].includes(e),n=ut(()=>{t({stageColor:!s})},[s]);return He(()=>{i.setAddonShortcut(Et,{label:"Stage Color Toggle",actionName:"stage color",showInMenu:!1,action:n})},[n,i]),(0,Ol.jsx)(Sr,{active:s,title:"Switch stage color",onClick:n,children:(0,Ol.jsx)(wr,{icon:"paintbrush"})},Xn)});h();d();p();Ge();h();d();p();h();d();p();h();d();p();h();d();p();var fe=class r{static mergeNumbers(e,t,i){return e*i+t*(1-i)}static rgb(e,t,i){return(e<<16)+(t<<8)+i+255*16777216}static rgba(e,t,i,s){return(e<<16)+(t<<8)+i+(s*255|0)*16777216}static getRgbString(e){let t=(e/65536|0)%256,i=(e/256|0)%256,s=e%256;return"rgb("+t+","+i+","+s+")"}static getRgbaString(e){let t=(e/65536|0)%256,i=(e/256|0)%256,s=e%256,n=(e/16777216|0)/255;return"rgba("+t+","+i+","+s+","+n.toFixed(4)+")"}static getRgbaStringFromArray(e){let t=Math.floor(e[0]*255),i=Math.floor(e[1]*255),s=Math.floor(e[2]*255),n=Math.floor(e[3]*255)/255;return"rgba("+t+","+i+","+s+","+n.toFixed(4)+")"}static getRgbaComponentsNormalized(e){let t=(e/65536|0)%256,i=(e/256|0)%256,s=e%256,n=e/16777216|0;return[t/255,i/255,s/255,n/255]}static getRgbComponentsNormalized(e){let t=(e/65536|0)%256,i=(e/256|0)%256,s=e%256;return[t/255,i/255,s/255]}static getRgbaComponents(e){let t=(e/65536|0)%256,i=(e/256|0)%256,s=e%256,n=e/16777216|0;return[t,i,s,n]}static getArgbNumber(e){e[0]=Math.max(0,Math.min(255,e[0])),e[1]=Math.max(0,Math.min(255,e[1])),e[2]=Math.max(0,Math.min(255,e[2])),e[3]=Math.max(0,Math.min(255,e[3]));let t=((e[3]|0)<<24)+((e[0]|0)<<16)+((e[1]|0)<<8)+(e[2]|0);return t<0&&(t=4294967295+t+1),t}static mergeColors(e,t,i){let s=(e/65536|0)%256,n=(e/256|0)%256,o=e%256,a=e/16777216|0,l=(t/65536|0)%256,u=(t/256|0)%256,c=t%256,g=t/16777216|0,m=s*i+l*(1-i),y=n*i+u*(1-i),b=o*i+c*(1-i),C=a*i+g*(1-i);return Math.round(C)*16777216+Math.round(m)*65536+Math.round(y)*256+Math.round(b)}static mergeMultiColors(e,t){let i=0,s=0,n=0,o=0,a=0,l=e.length;for(let u=0;u>16&255)*i/255&255)+((e&65280)*i/255&65280)+(((e&255)<<16)*i/255&16711680)+(i<<24)}static rad(e){return e*(Math.PI/180)}static getTimingBezier(e,t,i,s){let n=3*e,o=3*(i-e)-n,a=1-n-o,l=3*t,u=3*(s-t)-l,c=1-l-u;return function(g){if(g>=1)return 1;if(g<=0)return 0;let m=.5,y,b,C;for(let R=0;R<20;R++){if(y=m*(m*(m*a+o)+n),C=g-y,C>-1e-8&&C<1e-8)return m*(m*(m*c+u)+l);if(b=m*(m*(3*a)+2*o)+n,b>1e-10&&b<1e-10)break;m+=C/b}let A=0,T=1;for(let R=0;R<20;R++){if(m=.5*(A+T),y=m*(m*(m*a+o)+n),C=g-y,C>-1e-8&&C<1e-8)return m*(m*(m*c+u)+l);C<0?T=m:A=m}}}static getTimingFunction(e){switch(e){case"linear":return function(i){return i};case"ease":return r.getTimingBezier(.25,.1,.25,1);case"ease-in":return r.getTimingBezier(.42,0,1,1);case"ease-out":return r.getTimingBezier(0,0,.58,1);case"ease-in-out":return r.getTimingBezier(.42,0,.58,1);case"step-start":return function(){return 1};case"step-end":return function(i){return i===1?1:0};default:let t="cubic-bezier(";if(e&&e.indexOf(t)===0){let i=e.substr(t.length,e.length-t.length-1).split(",");if(i.length!==4)return console.warn("[Lightning] Unknown timing function: "+e),function(l){return l};let s=parseFloat(i[0]),n=parseFloat(i[1]),o=parseFloat(i[2]),a=parseFloat(i[3]);return isNaN(s)||isNaN(n)||isNaN(o)||isNaN(a)?(console.warn("[Lightning] Unknown timing function: "+e),function(l){return l}):r.getTimingBezier(s,n,o,a)}else return console.warn("[Lightning] Unknown timing function: "+e),function(i){return i}}}},K=class{static isFunction(e){return typeof e=="function"}static isNumber(e){return typeof e=="number"}static isInteger(e){return typeof e=="number"&&e%1===0}static isBoolean(e){return e===!0||e===!1}static isString(e){return typeof e=="string"}static clone(e){return K.isObjectLiteral(e)||Array.isArray(e)?K.getDeepClone(e):e}static cloneObjShallow(e){let t=Object.keys(e),i={};for(let s=0;s=65&&e<=90}};K.isWeb=typeof window<"u"&&typeof sparkscene>"u";K.isWPE=K.isWeb&&navigator.userAgent.indexOf("WPE")!==-1;K.isSpark=typeof sparkscene<"u";K.isNode=typeof window>"u"||K.isSpark;K.isPS4=K.isWeb&&navigator.userAgent.indexOf("PlayStation 4")!==-1;K.isZiggo=K.isWeb&&(navigator.userAgent.indexOf("EOSSTB")!==-1||navigator.userAgent.indexOf("HZNSTB")!==-1);var dt=class r{static defaultSetter(e,t,i){e[t]=i}static patchObject(e,t){if(!K.isObjectLiteral(t))console.error("[Lightning] Settings must be object literal");else{let i=Object.keys(t);for(let s=0,n=i.length;s0&&(a=t/n.length);let l=i;for(let u=0,c=n.length;u0&&(i=Math.max(i,s)),i}static getPlainAxisMinSize(e,t){return e.isFlexEnabled()?e._flex._layout.getAxisMinSize(t):e.flexItem.shrink!==0?0:this.getRelAxisSize(e,t)}static resizeAxis(e,t,i){e.isFlexEnabled()?e._flex._horizontal===t?e._flex._layout.resizeMainAxis(i):e._flex._layout.resizeCrossAxis(i):this.setAxisLayoutSize(e,t,i)}static getPaddingOffset(e,t){if(e.isFlexEnabled()){let i=e._flex;return t?i.paddingLeft:i.paddingTop}else return 0}static getTotalPadding(e,t){if(e.isFlexEnabled()){let i=e._flex;return t?i.paddingRight+i.paddingLeft:i.paddingTop+i.paddingBottom}else return 0}static getMarginOffset(e,t){let i=e.flexItem;return i?t?i.marginLeft:i.marginTop:0}static getTotalMargin(e,t){let i=e.flexItem;return i?t?i.marginRight+i.marginLeft:i.marginTop+i.marginBottom:0}},Fl=class{constructor(e){this._line=e,this._amountRemaining=0,this._shrunkSize=0}shrink(e){this._shrunkSize=0,this._amountRemaining=e;let t=this._getTotalShrinkAmount();if(t){let i=this._line.items;do{let s=this._amountRemaining/t;for(let n=this._line.startIndex;n<=this._line.endIndex;n++){let a=i[n].flexItem,l=a.shrink;if(l>0){let c=l*s,g=a._getMainAxisMinSize(),m=a._getMainAxisLayoutSize();if(m>g){let y=m-g;c>=y&&(c=y,t-=l);let C=m-c;if(a._resizeMainAxis(C),this._shrunkSize+=c,this._amountRemaining-=c,Math.abs(this._amountRemaining)<1e-5)return}}}}while(t&&Math.abs(this._amountRemaining)>1e-5)}}_getTotalShrinkAmount(){let e=0,t=this._line.items;for(let i=this._line.startIndex;i<=this._line.endIndex;i++){let n=t[i].flexItem;if(n.shrink){let o=n._getMainAxisMinSize();n._getMainAxisLayoutSize()>o&&(e+=n.shrink)}}return e}getShrunkSize(){return this._shrunkSize}},Bl=class{constructor(e){this._line=e,this._amountRemaining=0,this._grownSize=0}grow(e){this._grownSize=0,this._amountRemaining=e;let t=this._getTotalGrowAmount();if(t){let i=this._line.items;do{let s=this._amountRemaining/t;for(let n=this._line.startIndex;n<=this._line.endIndex;n++){let a=i[n].flexItem,l=a.grow;if(l>0){let c=l*s,g=a._getMainAxisMaxSizeSetting(),m=a._getMainAxisLayoutSize();if(g>0)if(m>=g)c=0;else{let y=g-m;c>=y&&(c=y,t-=l)}if(c>0){let y=m+c;if(a._resizeMainAxis(y),this._grownSize+=c,this._amountRemaining-=c,Math.abs(this._amountRemaining)<1e-5)return}}}}while(t&&Math.abs(this._amountRemaining)>1e-5)}}_getTotalGrowAmount(){let e=0,t=this._line.items;for(let i=this._line.startIndex;i<=this._line.endIndex;i++){let n=t[i].flexItem;if(n.grow){let o=n._getMainAxisMaxSizeSetting(),a=n._getMainAxisLayoutSize();(o===0||a0&&(i=Math.max(i,s));let n=e._getCrossAxisMaxSizeSetting();n>0&&(i=Math.min(i,n)),e._resizeCrossAxis(i),e._getMainAxisLayoutSize()!==t&&(this._recursiveResizeOccured=!0)}_preventStretch(e){let t=e._hasFixedCrossAxisSize(),i=e.alignSelf==="stretch";return t&&!i}},zl=class{constructor(e,t,i,s){this._layout=e,this.items=e.items,this.startIndex=t,this.endIndex=i,this._availableSpace=s}performLayout(){this._setItemSizes(),this.setItemPositions(),this._calcLayoutInfo()}_setItemSizes(){this._availableSpace>0?this._growItemSizes(this._availableSpace):this._availableSpace<0&&this._shrinkItemSizes(-this._availableSpace)}_growItemSizes(e){let t=new Bl(this);t.grow(e),this._availableSpace-=t.getGrownSize()}_shrinkItemSizes(e){let t=new Fl(this);t.shrink(e),this._availableSpace+=t.getShrunkSize()}setItemPositions(){new Ml(this).position()}createItemAligner(){return new Nl(this)}_calcLayoutInfo(){this._calcCrossAxisMaxLayoutSize()}getMainAxisMinSize(){let e=0;for(let t=this.startIndex;t<=this.endIndex;t++){let i=this.items[t];e+=i.flexItem._getMainAxisMinSizeWithPaddingAndMargin()}return e}get numberOfItems(){return this.endIndex-this.startIndex+1}get crossAxisLayoutSize(){let e=this._layout.isCrossAxisFitToContents()&&!this._layout.resizingCrossAxis;return this._layout.isWrapping()||e?this._crossAxisMaxLayoutSize:this._layout.crossAxisSize}_calcCrossAxisMaxLayoutSize(){this._crossAxisMaxLayoutSize=this._getCrossAxisMaxLayoutSize()}_getCrossAxisMaxLayoutSize(){let e=0;for(let t=this.startIndex;t<=this.endIndex;t++){let i=this.items[t];e=Math.max(e,i.flexItem._getCrossAxisLayoutSizeWithPaddingAndMargin())}return e}},jl=class{constructor(e){this._layout=e,this._mainAxisMinSize=-1,this._crossAxisMinSize=-1,this._mainAxisContentSize=0}get lines(){return this._lines}get mainAxisMinSize(){return this._mainAxisMinSize===-1&&(this._mainAxisMinSize=this._getMainAxisMinSize()),this._mainAxisMinSize}get crossAxisMinSize(){return this._crossAxisMinSize===-1&&(this._crossAxisMinSize=this._getCrossAxisMinSize()),this._crossAxisMinSize}get mainAxisContentSize(){return this._mainAxisContentSize}layoutLines(){this._setup();let e=this._layout.items,t=this._layout.isWrapping(),i=0,s,n=e.length;for(s=0;si&&this._curMainAxisPos+a>this._mainAxisSize&&(this._layoutLine(i,s-1),this._curMainAxisPos=0,i=s),this._addToMainAxisPos(a)}ithis._maxMainAxisPos&&(this._maxMainAxisPos=this._curMainAxisPos)}_layoutLine(e,t){let i=this._getAvailableMainAxisLayoutSpace(),s=new zl(this._layout,e,t,i);s.performLayout(),this._lines.push(s),(this._mainAxisContentSize===0||this._curMainAxisPos>this._mainAxisContentSize)&&(this._mainAxisContentSize=this._curMainAxisPos)}_getAvailableMainAxisLayoutSpace(){return!this._layout.resizingMainAxis&&this._layout.isMainAxisFitToContents()?0:this._mainAxisSize-this._curMainAxisPos}_getCrossAxisMinSize(){let e=0,t=this._layout.items;for(let i=0,s=t.length;i0?this.performResizeMainAxis(e):this._checkValidCacheMainAxisResize()?(this.mainAxisSize=e,this._fitCrossAxisSizeToContents()):(this.item.enableLocalRecalcFlag(),this.performResizeMainAxis(e)))}_checkValidCacheMainAxisResize(e){return e===this.targetMainAxisSize||!this.isCrossAxisFitToContents()}performResizeMainAxis(e){let t=e0?this.performResizeCrossAxis(e):this.crossAxisSize=e)}performResizeCrossAxis(e){this.crossAxisSize=e,this._resizingCrossAxis=!0,this._layoutCrossAxis(),this._resizingCrossAxis=!1}get targetMainAxisSize(){return this._horizontal?this.item.target.w:this.item.target.h}get targetCrossAxisSize(){return this._horizontal?this.item.target.h:this.item.target.w}getParentFlexContainer(){return this.item.isFlexItemEnabled()?this.item.flexItem.ctr:null}_getHorizontalPadding(){return pe.getTotalPadding(this.item,!0)}_getVerticalPadding(){return pe.getTotalPadding(this.item,!1)}_getHorizontalPaddingOffset(){return pe.getPaddingOffset(this.item,!0)}_getVerticalPaddingOffset(){return pe.getPaddingOffset(this.item,!1)}_getMainAxisBasis(){return pe.getRelAxisSize(this.item,this._horizontal)}_getCrossAxisBasis(){return pe.getRelAxisSize(this.item,!this._horizontal)}get _horizontal(){return this._flexContainer._horizontal}get _reverse(){return this._flexContainer._reverse}get item(){return this._flexContainer.item}get items(){return this.item.items}get resizingMainAxis(){return this._resizingMainAxis}get resizingCrossAxis(){return this._resizingCrossAxis}get numberOfItems(){return this.items.length}get mainAxisSize(){return pe.getAxisLayoutSize(this.item,this._horizontal)}get crossAxisSize(){return pe.getAxisLayoutSize(this.item,!this._horizontal)}set mainAxisSize(e){pe.setAxisLayoutSize(this.item,this._horizontal,e)}set crossAxisSize(e){pe.setAxisLayoutSize(this.item,!this._horizontal,e)}},Tr=class r{constructor(e){this._item=e,this._layout=new Hl(this),this._horizontal=!0,this._reverse=!1,this._wrap=!1,this._alignItems="stretch",this._justifyContent="flex-start",this._alignContent="flex-start",this._paddingLeft=0,this._paddingTop=0,this._paddingRight=0,this._paddingBottom=0}get item(){return this._item}_changedDimensions(){this._item.changedDimensions()}_changedContents(){this._item.changedContents()}get direction(){return(this._horizontal?"row":"column")+(this._reverse?"-reverse":"")}set direction(e){this.direction!==e&&(this._horizontal=e==="row"||e==="row-reverse",this._reverse=e==="row-reverse"||e==="column-reverse",this._changedContents())}set wrap(e){this._wrap=e,this._changedContents()}get wrap(){return this._wrap}get alignItems(){return this._alignItems}set alignItems(e){if(this._alignItems!==e){if(r.ALIGN_ITEMS.indexOf(e)===-1)throw new Error("Unknown alignItems, options: "+r.ALIGN_ITEMS.join(","));this._alignItems=e,this._changedContents()}}get alignContent(){return this._alignContent}set alignContent(e){if(this._alignContent!==e){if(r.ALIGN_CONTENT.indexOf(e)===-1)throw new Error("Unknown alignContent, options: "+r.ALIGN_CONTENT.join(","));this._alignContent=e,this._changedContents()}}get justifyContent(){return this._justifyContent}set justifyContent(e){if(this._justifyContent!==e){if(r.JUSTIFY_CONTENT.indexOf(e)===-1)throw new Error("Unknown justifyContent, options: "+r.JUSTIFY_CONTENT.join(","));this._justifyContent=e,this._changedContents()}}set padding(e){this.paddingLeft=e,this.paddingTop=e,this.paddingRight=e,this.paddingBottom=e}get padding(){return this.paddingLeft}set paddingLeft(e){this._paddingLeft=e,this._changedDimensions()}get paddingLeft(){return this._paddingLeft}set paddingTop(e){this._paddingTop=e,this._changedDimensions()}get paddingTop(){return this._paddingTop}set paddingRight(e){this._paddingRight=e,this._changedDimensions()}get paddingRight(){return this._paddingRight}set paddingBottom(e){this._paddingBottom=e,this._changedDimensions()}get paddingBottom(){return this._paddingBottom}patch(e){dt.patchObject(this,e)}};Tr.ALIGN_ITEMS=["flex-start","flex-end","center","stretch"];Tr.ALIGN_CONTENT=["flex-start","flex-end","center","space-between","space-around","space-evenly","stretch"];Tr.JUSTIFY_CONTENT=["flex-start","flex-end","center","space-between","space-around","space-evenly"];var Zn=class r{constructor(e){this._ctr=null,this._item=e,this._grow=0,this._shrink=r.SHRINK_AUTO,this._alignSelf=void 0,this._minWidth=0,this._minHeight=0,this._maxWidth=0,this._maxHeight=0,this._marginLeft=0,this._marginTop=0,this._marginRight=0,this._marginBottom=0}get item(){return this._item}get grow(){return this._grow}set grow(e){this._grow!==e&&(this._grow=parseInt(e)||0,this._changed())}get shrink(){return this._shrink===r.SHRINK_AUTO?this._getDefaultShrink():this._shrink}_getDefaultShrink(){return this.item.isFlexEnabled()?1:0}set shrink(e){this._shrink!==e&&(this._shrink=parseInt(e)||0,this._changed())}get alignSelf(){return this._alignSelf}set alignSelf(e){if(this._alignSelf!==e){if(e===void 0)this._alignSelf=void 0;else{if(Tr.ALIGN_ITEMS.indexOf(e)===-1)throw new Error("Unknown alignSelf, options: "+Tr.ALIGN_ITEMS.join(","));this._alignSelf=e}this._changed()}}get minWidth(){return this._minWidth}set minWidth(e){this._minWidth=Math.max(0,e),this._item.changedDimensions(!0,!1)}get minHeight(){return this._minHeight}set minHeight(e){this._minHeight=Math.max(0,e),this._item.changedDimensions(!1,!0)}get maxWidth(){return this._maxWidth}set maxWidth(e){this._maxWidth=Math.max(0,e),this._item.changedDimensions(!0,!1)}get maxHeight(){return this._maxHeight}set maxHeight(e){this._maxHeight=Math.max(0,e),this._item.changedDimensions(!1,!0)}set margin(e){this.marginLeft=e,this.marginTop=e,this.marginRight=e,this.marginBottom=e}get margin(){return this.marginLeft}set marginLeft(e){this._marginLeft=e,this._changed()}get marginLeft(){return this._marginLeft}set marginTop(e){this._marginTop=e,this._changed()}get marginTop(){return this._marginTop}set marginRight(e){this._marginRight=e,this._changed()}get marginRight(){return this._marginRight}set marginBottom(e){this._marginBottom=e,this._changed()}get marginBottom(){return this._marginBottom}_changed(){this.ctr&&this.ctr._changedContents()}set ctr(e){this._ctr=e}get ctr(){return this._ctr}patch(e){dt.patchObject(this,e)}_resetLayoutSize(){this._resetHorizontalAxisLayoutSize(),this._resetVerticalAxisLayoutSize()}_resetCrossAxisLayoutSize(){this.ctr._horizontal?this._resetVerticalAxisLayoutSize():this._resetHorizontalAxisLayoutSize()}_resetHorizontalAxisLayoutSize(){let e=pe.getRelAxisSize(this.item,!0);this._minWidth&&(e=Math.max(this._minWidth,e)),this._maxWidth&&(e=Math.min(this._maxWidth,e)),pe.setAxisLayoutSize(this.item,!0,e)}_resetVerticalAxisLayoutSize(){let e=pe.getRelAxisSize(this.item,!1);this._minHeight&&(e=Math.max(this._minHeight,e)),this._maxHeight&&(e=Math.min(this._maxHeight,e)),pe.setAxisLayoutSize(this.item,!1,e)}_getCrossAxisMinSizeSetting(){return this._getMinSizeSetting(!this.ctr._horizontal)}_getCrossAxisMaxSizeSetting(){return this._getMaxSizeSetting(!this.ctr._horizontal)}_getMainAxisMaxSizeSetting(){return this._getMaxSizeSetting(this.ctr._horizontal)}_getMinSizeSetting(e){return e?this._minWidth:this._minHeight}_getMaxSizeSetting(e){return e?this._maxWidth:this._maxHeight}_getMainAxisMinSize(){return pe.getAxisMinSize(this.item,this.ctr._horizontal)}_getCrossAxisMinSize(){return pe.getAxisMinSize(this.item,!this.ctr._horizontal)}_getMainAxisLayoutSize(){return pe.getAxisLayoutSize(this.item,this.ctr._horizontal)}_getMainAxisLayoutPos(){return pe.getAxisLayoutPos(this.item,this.ctr._horizontal)}_setMainAxisLayoutPos(e){return pe.setAxisLayoutPos(this.item,this.ctr._horizontal,e)}_setCrossAxisLayoutPos(e){return pe.setAxisLayoutPos(this.item,!this.ctr._horizontal,e)}_getCrossAxisLayoutSize(){return pe.getAxisLayoutSize(this.item,!this.ctr._horizontal)}_resizeCrossAxis(e){return pe.resizeAxis(this.item,!this.ctr._horizontal,e)}_resizeMainAxis(e){return pe.resizeAxis(this.item,this.ctr._horizontal,e)}_getMainAxisPadding(){return pe.getTotalPadding(this.item,this.ctr._horizontal)}_getCrossAxisPadding(){return pe.getTotalPadding(this.item,!this.ctr._horizontal)}_getMainAxisMargin(){return pe.getTotalMargin(this.item,this.ctr._horizontal)}_getCrossAxisMargin(){return pe.getTotalMargin(this.item,!this.ctr._horizontal)}_getHorizontalMarginOffset(){return pe.getMarginOffset(this.item,!0)}_getVerticalMarginOffset(){return pe.getMarginOffset(this.item,!1)}_getMainAxisMinSizeWithPaddingAndMargin(){return this._getMainAxisMinSize()+this._getMainAxisPadding()+this._getMainAxisMargin()}_getCrossAxisMinSizeWithPaddingAndMargin(){return this._getCrossAxisMinSize()+this._getCrossAxisPadding()+this._getCrossAxisMargin()}_getMainAxisLayoutSizeWithPaddingAndMargin(){return this._getMainAxisLayoutSize()+this._getMainAxisPadding()+this._getMainAxisMargin()}_getCrossAxisLayoutSizeWithPaddingAndMargin(){return this._getCrossAxisLayoutSize()+this._getCrossAxisPadding()+this._getCrossAxisMargin()}_hasFixedCrossAxisSize(){return!pe.isZeroAxisSize(this.item,!this.ctr._horizontal)}_hasRelCrossAxisSize(){return!!(this.ctr._horizontal?this.item.funcH:this.item.funcW)}};Zn.SHRINK_AUTO=-1;var Wl=class{constructor(e){this._target=e,this._recalc=0,this._enabled=!1,this.x=0,this.y=0,this.w=0,this.h=0,this._originalX=0,this._originalY=0,this._originalWidth=0,this._originalHeight=0,this._flex=null,this._flexItem=null,this._flexItemDisabled=!1,this._items=null}get flexLayout(){return this.flex?this.flex._layout:null}layoutFlexTree(){this.isFlexEnabled()&&this.isChanged()&&this.flexLayout.layoutTree()}get target(){return this._target}get flex(){return this._flex}set flex(e){e?(this.isFlexEnabled()||this._enableFlex(),this._flex.patch(e)):this.isFlexEnabled()&&this._disableFlex()}get flexItem(){return this._flexItemDisabled?!1:(this._ensureFlexItem(),this._flexItem)}set flexItem(e){if(e===!1){if(!this._flexItemDisabled){let t=this.flexParent;this._flexItemDisabled=!0,this._checkEnabled(),t&&(t._clearFlexItemsCache(),t.changedContents())}}else if(this._ensureFlexItem(),this._flexItem.patch(e),this._flexItemDisabled){this._flexItemDisabled=!1,this._checkEnabled();let t=this.flexParent;t&&(t._clearFlexItemsCache(),t.changedContents())}}_enableFlex(){this._flex=new Tr(this),this._checkEnabled(),this.changedDimensions(),this._enableChildrenAsFlexItems()}_disableFlex(){this.changedDimensions(),this._flex=null,this._checkEnabled(),this._disableChildrenAsFlexItems()}_enableChildrenAsFlexItems(){let e=this._target._children;if(e)for(let t=0,i=e.length;t0}_updateRecalc(e=!1,t=!1){if(this.isFlexEnabled()){let n=this._flex._layout;e=e||n.isAxisFitToContents(!0),t=t||n.isAxisFitToContents(!1)}let i=1+(e?2:0)+(t?4:0),s=this.getNewRecalcFlags(i);this._recalc|=i,s>1?this.flexParent?this.flexParent._updateRecalcBottomUp(i):this._target.triggerLayout():this._target.triggerLayout()}getNewRecalcFlags(e){return 7-this._recalc&e}_updateRecalcBottomUp(e){let t=this._getRecalcFromChangedChildRecalc(e),i=this.getNewRecalcFlags(t);if(this._recalc|=t,i>1){let s=this.flexParent;s?s._updateRecalcBottomUp(t):this._target.triggerLayout()}else this._target.triggerLayout()}_getRecalcFromChangedChildRecalc(e){let t=this._flex._layout,i=t._horizontal?1:2,s=t._horizontal?2:1;e&s||e&i&&t.isWrapping()&&t.isCrossAxisFitToContents()&&(e+=s);let o=t.isAxisFitToContents(!0),a=t.isAxisFitToContents(!1);t.shrunk&&(t._horizontal?o=!0:a=!0);let l=1+(o?2:0)+(a?4:0);return e&l}get recalc(){return this._recalc}clearRecalcFlag(){this._recalc=0}enableLocalRecalcFlag(){this._recalc=1}get originalX(){return this._originalX}setOriginalXWithoutUpdatingLayout(e){this._originalX=e}get originalY(){return this._originalY}setOriginalYWithoutUpdatingLayout(e){this._originalY=e}get originalWidth(){return this._originalWidth}set originalWidth(e){this._originalWidth!==e&&(this._originalWidth=e,this.changedDimensions(!0,!1))}get originalHeight(){return this._originalHeight}set originalHeight(e){this._originalHeight!==e&&(this._originalHeight=e,this.changedDimensions(!1,!0))}get funcX(){return this._target.funcX}get funcY(){return this._target.funcY}get funcW(){return this._target.funcW}get funcH(){return this._target.funcH}},mi=class r{constructor(e,t=null){this.id=r.id++,this.manager=e,this.stage=e.stage,this.textures=new Set,this._activeTextureCount=0,this.loader=t,this.lookupId=null,this._cancelCb=null,this.loadingSince=0,this.w=0,this.h=0,this._nativeTexture=null,this.permanent=!1,this.renderInfo=null,this._isResultTexture=!this.loader,this._loadError=null,this._imageRef=null,this._hasAlpha=!1}get hasAlpha(){return this._hasAlpha}get loadError(){return this._loadError}addTexture(e){this.textures.has(e)||this.textures.add(e)}removeTexture(e){this.textures.delete(e)}incActiveTextureCount(){this._activeTextureCount++,this._activeTextureCount===1&&this.becomesUsed()}decActiveTextureCount(){this._activeTextureCount--,this._activeTextureCount===0&&this.becomesUnused()}get isResultTexture(){return this._isResultTexture}set isResultTexture(e){this._isResultTexture=e}forEachEnabledElement(e){this.textures.forEach(t=>{t.elements.forEach(e)})}hasEnabledElements(){return this.textures.size>0}forEachActiveElement(e){this.textures.forEach(t=>{t.elements.forEach(i=>{i.active&&e(i)})})}getRenderWidth(){return this.w}getRenderHeight(){return this.h}allowCleanup(){return!this.permanent&&!this.isUsed()}becomesUsed(){this.load()}becomesUnused(){this.cancel()}cancel(){this.isLoading()&&(this._cancelCb&&(this._cancelCb(this),this._cancelCb=null),this.loadingSince=0)}isLoaded(){return!!this._nativeTexture}isLoading(){return this.loadingSince>0}isError(){return!!this._loadError}reload(){this.free(),this.isUsed()&&this.load()}load(e=!1){this.isResultTexture||!this._nativeTexture&&!this.isLoading()&&(this.loadingSince=new Date().getTime(),this._cancelCb=this.loader((t,i)=>{if(this.isLoading()){if(this._cancelCb=null,this.manager.stage.destroyed)return;if(t)this.onError(t);else if(i&&i.source)if(!this.stage.isUpdatingFrame()&&!e&&i.throttle!==!1){let s=this.stage.textureThrottler;this._cancelCb=s.genericCancelCb,s.add(this,i)}else this.processLoadedSource(i)}},this))}processLoadedSource(e){this.loadingSince=0,this.setSource(e)}setSource(e){let t=e.source;this._hasAlpha=e&&e.hasAlpha||!1,this.w=t.width||e&&e.w||0,this.h=t.height||e&&e.h||0,e&&e.renderInfo&&(this.renderInfo=e.renderInfo),this.permanent=!!e.permanent,e&&e.imageRef&&(this._imageRef=e.imageRef),e&&e.flipTextureY?this._flipTextureY=e.flipTextureY:this._flipTextureY=!1,this._isNativeTexture(t)?(this._nativeTexture=t,this.w=this.w||t.w,this.h=this.h||t.h,this.permanent=e.hasOwnProperty("permanent")?e.permanent:!0):this.manager.uploadTextureSource(this,e),this._loadError=null,this.onLoad()}isUsed(){return this._activeTextureCount>0}onLoad(){this.isUsed()&&this.textures.forEach(e=>{e.onLoad()})}forceRenderUpdate(){this._nativeTexture&&(this._nativeTexture.update=this.stage.frameCounter),this.forEachActiveElement(function(e){e.forceRenderUpdate()})}forceUpdateRenderCoords(){this.forEachActiveElement(function(e){e._updateTextureCoords()})}get nativeTexture(){return this._nativeTexture}clearNativeTexture(){this._nativeTexture=null,this._imageRef=null}replaceNativeTexture(e,t,i){let s=this._nativeTexture;this._nativeTexture=e,this.w=t,this.h=i,!s&&this._nativeTexture&&this.forEachActiveElement(n=>n.onTextureSourceLoaded()),this._nativeTexture||this.forEachActiveElement(n=>n._setDisplayedTexture(null)),this.forEachEnabledElement(n=>n._updateDimensions())}onError(e){this._loadError=e,this.loadingSince=0,console.error("[Lightning] texture load error",e,this.lookupId),this.forEachActiveElement(t=>t.onTextureSourceLoadError(e))}free(){this.isLoaded()&&this.manager.freeTextureSource(this)}_isNativeTexture(e){return K.isNode?e.constructor.name==="WebGLTexture":"WebGLTexture"in window?e instanceof WebGLTexture:!1}};mi.prototype.isTextureSource=!0;mi.id=1;var eo=class{constructor(e){this._element=e.element,this._core=e,this.ctx=this._core.ctx,this._enabled=!1,this.lazy=!1,this._colorize=!1,this._renderTexture=null,this._renderTextureReused=!1,this._resultTextureSource=null,this._renderOffscreen=!1,this.empty=!1}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._core.updateRenderToTextureEnabled()}get renderOffscreen(){return this._renderOffscreen}set renderOffscreen(e){this._renderOffscreen=e,this._core.setHasRenderUpdates(1),this._core._setRecalc(6)}get colorize(){return this._colorize}set colorize(e){this._colorize!==e&&(this._colorize=e,this._core.setHasRenderUpdates(1))}_getTextureSource(){return this._resultTextureSource||(this._resultTextureSource=new mi(this._element.stage.textureManager),this.updateResultTexture()),this._resultTextureSource}hasResultTexture(){return!!this._resultTextureSource}resultTextureInUse(){return this._resultTextureSource&&this._resultTextureSource.hasEnabledElements()}updateResultTexture(){let e=this.getResultTexture();if(this._resultTextureSource){if(this._resultTextureSource.nativeTexture!==e){let t=e?e.w:0,i=e?e.h:0;this._resultTextureSource.replaceNativeTexture(e,t,i)}this._resultTextureSource.forEachEnabledElement(t=>{t._updateDimensions(),t.core.setHasRenderUpdates(3)})}}mustRenderToTexture(){return this._enabled&&!this.lazy?!0:!!(this._enabled&&this.lazy&&this._core._hasRenderUpdates<3)}deactivate(){this.release()}get renderTextureReused(){return this._renderTextureReused}release(){this.releaseRenderTexture()}releaseRenderTexture(){this._renderTexture&&(this._renderTextureReused||this.ctx.releaseRenderTexture(this._renderTexture),this._renderTexture=null,this._renderTextureReused=!1,this.updateResultTexture())}reuseTextureAsRenderTexture(e){this._renderTexture!==e&&(this.releaseRenderTexture(),this._renderTexture=e,this._renderTextureReused=!0)}hasRenderTexture(){return!!this._renderTexture}getRenderTexture(){return this._renderTexture||(this._renderTexture=this.ctx.allocateRenderTexture(this._core._w,this._core._h),this._renderTextureReused=!1),this._renderTexture}getResultTexture(){return this._renderTexture}},ds=class r{constructor(e){this._element=e,this.ctx=e.stage.ctx,this._recalc=0,this._parent=null,this._onUpdate=null,this._pRecalc=0,this._worldContext=new sr,this._hasUpdates=!1,this._localAlpha=1,this._onAfterCalcs=null,this._onAfterUpdate=null,this._localPx=0,this._localPy=0,this._localTa=1,this._localTb=0,this._localTc=0,this._localTd=1,this._isComplex=!1,this._dimsUnknown=!1,this._clipping=!1,this._zSort=!1,this._outOfBounds=0,this._displayedTextureSource=null,this._zContextUsage=0,this._children=null,this._hasRenderUpdates=0,this._zIndexedChildren=null,this._renderContext=this._worldContext,this.renderState=this.ctx.renderState,this._scissor=null,this._shaderOwner=null,this._updateTreeOrder=0,this._colorUl=this._colorUr=this._colorBl=this._colorBr=4294967295,this._x=0,this._y=0,this._w=0,this._h=0,this._optFlags=0,this._funcX=null,this._funcY=null,this._funcW=null,this._funcH=null,this._scaleX=1,this._scaleY=1,this._pivotX=.5,this._pivotY=.5,this._mountX=0,this._mountY=0,this._rotation=0,this._alpha=1,this._visible=!0,this._ulx=0,this._uly=0,this._brx=1,this._bry=1,this._zIndex=0,this._forceZIndexContext=!1,this._zParent=null,this._isRoot=!1,this._zIndexResort=!1,this._shader=null,this._renderToTextureEnabled=!1,this._texturizer=null,this._useRenderToTexture=!1,this._boundsMargin=null,this._recBoundsMargin=null,this._withinBoundsMargin=!1,this._viewport=null,this._clipbox=!0,this.render=this._renderSimple,this._layout=null}get offsetX(){return this._funcX?this._funcX:this.hasFlexLayout()?this._layout.originalX:this._x}set offsetX(e){K.isFunction(e)?this.funcX=e:(this._disableFuncX(),this.hasFlexLayout()?(this.x+=e-this._layout.originalX,this._layout.setOriginalXWithoutUpdatingLayout(e)):this.x=e)}get x(){return this._x}set x(e){e!==this._x&&(this._updateLocalTranslateDelta(e-this._x,0),this._x=e)}get funcX(){return this._optFlags&1?this._funcX:null}set funcX(e){this._funcX!==e&&(this._optFlags|=1,this._funcX=e,this.hasFlexLayout()?(this._layout.setOriginalXWithoutUpdatingLayout(0),this.layout.forceLayout()):(this._x=0,this._triggerRecalcTranslate()))}_disableFuncX(){this._optFlags=this._optFlags&65534,this._funcX=null}get offsetY(){return this._funcY?this._funcY:this.hasFlexLayout()?this._layout.originalY:this._y}set offsetY(e){K.isFunction(e)?this.funcY=e:(this._disableFuncY(),this.hasFlexLayout()?(this.y+=e-this._layout.originalY,this._layout.setOriginalYWithoutUpdatingLayout(e)):this.y=e)}get y(){return this._y}set y(e){e!==this._y&&(this._updateLocalTranslateDelta(0,e-this._y),this._y=e)}get funcY(){return this._optFlags&2?this._funcY:null}set funcY(e){this._funcY!==e&&(this._optFlags|=2,this._funcY=e,this.hasFlexLayout()?(this._layout.setOriginalYWithoutUpdatingLayout(0),this.layout.forceLayout()):(this._y=0,this._triggerRecalcTranslate()))}_disableFuncY(){this._optFlags=this._optFlags&65533,this._funcY=null}get funcW(){return this._optFlags&4?this._funcW:null}set funcW(e){this._funcW!==e&&(this._optFlags|=4,this._funcW=e,this.hasFlexLayout()?(this._layout._originalWidth=0,this.layout.changedDimensions(!0,!1)):(this._w=0,this._triggerRecalcTranslate()))}disableFuncW(){this._optFlags=this._optFlags&65531,this._funcW=null}get funcH(){return this._optFlags&8?this._funcH:null}set funcH(e){this._funcH!==e&&(this._optFlags|=8,this._funcH=e,this.hasFlexLayout()?(this._layout._originalHeight=0,this.layout.changedDimensions(!1,!0)):(this._h=0,this._triggerRecalcTranslate()))}disableFuncH(){this._optFlags=this._optFlags&65527,this._funcH=null}get w(){return this._w}getRenderWidth(){return this.hasFlexLayout()?this._layout.originalWidth:this._w}get h(){return this._h}getRenderHeight(){return this.hasFlexLayout()?this._layout.originalHeight:this._h}get scaleX(){return this._scaleX}set scaleX(e){this._scaleX!==e&&(this._scaleX=e,this._updateLocalTransform())}get scaleY(){return this._scaleY}set scaleY(e){this._scaleY!==e&&(this._scaleY=e,this._updateLocalTransform())}get scale(){return this.scaleX}set scale(e){(this._scaleX!==e||this._scaleY!==e)&&(this._scaleX=e,this._scaleY=e,this._updateLocalTransform())}get pivotX(){return this._pivotX}set pivotX(e){this._pivotX!==e&&(this._pivotX=e,this._updateLocalTranslate())}get pivotY(){return this._pivotY}set pivotY(e){this._pivotY!==e&&(this._pivotY=e,this._updateLocalTranslate())}get pivot(){return this._pivotX}set pivot(e){(this._pivotX!==e||this._pivotY!==e)&&(this._pivotX=e,this._pivotY=e,this._updateLocalTranslate())}get mountX(){return this._mountX}set mountX(e){this._mountX!==e&&(this._mountX=e,this._updateLocalTranslate())}get mountY(){return this._mountY}set mountY(e){this._mountY!==e&&(this._mountY=e,this._updateLocalTranslate())}get mount(){return this._mountX}set mount(e){(this._mountX!==e||this._mountY!==e)&&(this._mountX=e,this._mountY=e,this._updateLocalTranslate())}get rotation(){return this._rotation}set rotation(e){this._rotation!==e&&(this._rotation=e,this._updateLocalTransform())}get alpha(){return this._alpha}set alpha(e){if(e=e>1?1:e<1e-14?0:e,this._alpha!==e){let t=this._alpha;this._alpha=e,this._updateLocalAlpha(),t===0!=(e===0)&&this._element._updateEnabledFlag()}}get visible(){return this._visible}set visible(e){this._visible!==e&&(this._visible=e,this._updateLocalAlpha(),this._element._updateEnabledFlag(),this.hasFlexLayout()&&this.layout.setVisible(e))}_updateLocalTransform(){if(this._rotation!==0&&this._rotation%(2*Math.PI)){let e=Math.sin(this._rotation),t=Math.cos(this._rotation);this._setLocalTransform(t*this._scaleX,-e*this._scaleY,e*this._scaleX,t*this._scaleY)}else this._setLocalTransform(this._scaleX,0,0,this._scaleY);this._updateLocalTranslate()}_updateLocalTranslate(){this._recalcLocalTranslate(),this._triggerRecalcTranslate()}_recalcLocalTranslate(){let e=this._pivotX*this._w,t=this._pivotY*this._h,i=this._x-(e*this._localTa+t*this._localTb)+e,s=this._y-(e*this._localTc+t*this._localTd)+t;i-=this._mountX*this._w,s-=this._mountY*this._h,this._localPx=i,this._localPy=s}_updateLocalTranslateDelta(e,t){this._addLocalTranslate(e,t)}_updateLocalAlpha(){this._setLocalAlpha(this._visible?this._alpha:0)}setHasRenderUpdates(e){if(this._worldContext.alpha){let t=this;for(t._hasRenderUpdates=Math.max(e,t._hasRenderUpdates);(t=t._parent)&&t._hasRenderUpdates!==3;)t._hasRenderUpdates=3}}_setRecalc(e){this._recalc|=e,this._setHasUpdates(),this._parent&&this._parent.setHasRenderUpdates(3)}_setHasUpdates(){let e=this;for(;e&&!e._hasUpdates;)e._hasUpdates=!0,e=e._parent}getParent(){return this._parent}setParent(e){if(e!==this._parent){let t=this.isZContext(),i=this._parent;if(this._parent=e,(this._layout||e&&e.isFlexContainer())&&this.layout.setParent(i,e),i&&i.setHasRenderUpdates(3),this._setRecalc(7),this._parent&&this._parent._setHasUpdates(),this._zIndex===0?this.setZParent(e):this.setZParent(e?e.findZContext():null),t!==this.isZContext()&&(this.isZContext()?this.enableZContext(i.findZContext()):this.disableZContext()),this._zIndexResort=!0,this._zParent&&this._zParent.enableZSort(),!this._shader){let s=e&&!e._renderToTextureEnabled?e._shaderOwner:null;s!==this._shaderOwner&&(this.setHasRenderUpdates(1),this._setShaderOwnerRecursive(s))}}}enableZSort(e=!1){!this._zSort&&this._zContextUsage>0&&(this._zSort=!0,e&&this.ctx.forceZSort(this))}addChildAt(e,t){this._children||(this._children=[]),this._children.splice(e,0,t),t.setParent(this)}setChildAt(e,t){this._children||(this._children=[]),this._children[e].setParent(null),this._children[e]=t,t.setParent(this)}removeChildAt(e){let t=this._children[e];this._children.splice(e,1),t.setParent(null)}removeChildren(){if(this._children){for(let e=0,t=this._children.length;e0;this._zIndex!==0&&e.incZContextUsage(),e._zContextUsage>0&&(!t&&this._parent===e||e._zIndexedChildren.push(this),e.enableZSort())}this._zParent=e,this._zIndexResort=!0}}incZContextUsage(){if(this._zContextUsage++,this._zContextUsage===1&&(this._zIndexedChildren||(this._zIndexedChildren=[]),this._children)){for(let e=0,t=this._children.length;e0&&this._getZIndexedDescs().forEach(i=>{this.isAncestorOf(i)&&i._zIndex!==0&&i.setZParent(this)})}_getZIndexedDescs(){let e=[];if(this._children)for(let t=0,i=this._children.length;t0){let e=this._parent.findZContext();this._zSort&&this.sortZIndexedChildren(),this._zIndexedChildren.slice().forEach(function(t){t._zIndex!==0&&t.setZParent(e)})}}get colorUl(){return this._colorUl}set colorUl(e){this._colorUl!==e&&(this.setHasRenderUpdates(this._displayedTextureSource?3:1),this._colorUl=e)}get colorUr(){return this._colorUr}set colorUr(e){this._colorUr!==e&&(this.setHasRenderUpdates(this._displayedTextureSource?3:1),this._colorUr=e)}get colorBl(){return this._colorBl}set colorBl(e){this._colorBl!==e&&(this.setHasRenderUpdates(this._displayedTextureSource?3:1),this._colorBl=e)}get colorBr(){return this._colorBr}set colorBr(e){this._colorBr!==e&&(this.setHasRenderUpdates(this._displayedTextureSource?3:1),this._colorBr=e)}set onUpdate(e){this._onUpdate=e,this._setRecalc(7)}set onAfterUpdate(e){this._onAfterUpdate=e,this._setRecalc(7)}set onAfterCalcs(e){this._onAfterCalcs=e,this._setRecalc(7)}get shader(){return this._shader}set shader(e){this.setHasRenderUpdates(1);let t=this._shader;if(this._shader=e,!e&&t){let i=this._parent&&!this._parent._renderToTextureEnabled?this._parent._shaderOwner:null;this._setShaderOwnerRecursive(i)}else e&&this._setShaderOwnerRecursive(this)}get activeShader(){return this._shaderOwner?this._shaderOwner.shader:this.renderState.defaultShader}get activeShaderOwner(){return this._shaderOwner}get clipping(){return this._clipping}set clipping(e){this._clipping!==e&&(this._clipping=e,this._setRecalc(3))}get clipbox(){return this._clipbox}set clipbox(e){this._clipbox=e}_setShaderOwnerRecursive(e){if(this._shaderOwner=e,this._children&&!this._renderToTextureEnabled)for(let t=0,i=this._children.length;t1e-14}get outOfBounds(){return this._outOfBounds}set boundsMargin(e){this._boundsMargin=e?e.slice():null,this._triggerRecalcTranslate()}get boundsMargin(){return this._boundsMargin}update(){this._recalc|=this._parent._pRecalc,this._layout&&this._layout.isEnabled()?this._recalc&256&&this._layout.layoutFlexTree():this._recalc&2&&this._optFlags&&this._applyRelativeDimFuncs(),this._onUpdate&&(this._hasUpdates=!0,this._onUpdate(this.element,this));let e=this._parent._worldContext,t=this._worldContext,i=e.alpha&&this._localAlpha;if(this._hasUpdates||this._recalc&&i||t.alpha&&!i){let s=this._recalc;s&1&&(!t.alpha&&i&&(this._hasRenderUpdates=3),t.alpha=e.alpha*this._localAlpha,t.alpha<1e-14&&(t.alpha=0)),s&6&&(t.px=e.px+this._localPx*e.ta,t.py=e.py+this._localPy*e.td,e.tb!==0&&(t.px+=this._localPy*e.tb),e.tc!==0&&(t.py+=this._localPx*e.tc)),s&4&&(t.ta=this._localTa*e.ta,t.tb=this._localTd*e.tb,t.tc=this._localTa*e.tc,t.td=this._localTd*e.td,this._isComplex&&(t.ta+=this._localTc*e.tb,t.tb+=this._localTb*e.ta,t.tc+=this._localTc*e.td,t.td+=this._localTb*e.tc));let n=this._parent._renderContext;if(this._parent._hasRenderContext()){let C=this._renderContext===this._worldContext;C&&(this._renderContext=new sr);let A=this._renderContext;(C||s&1)&&(A.alpha=n.alpha*this._localAlpha,A.alpha<1e-14&&(A.alpha=0)),(C||s&6)&&(A.px=n.px+this._localPx*n.ta,A.py=n.py+this._localPy*n.td,n.tb!==0&&(A.px+=this._localPy*n.tb),n.tc!==0&&(A.py+=this._localPx*n.tc)),C&&(s|=2),(C||s&4)&&(A.ta=this._localTa*n.ta,A.tb=this._localTd*n.tb,A.tc=this._localTa*n.tc,A.td=this._localTd*n.td,this._isComplex&&(A.ta+=this._localTc*n.tb,A.tb+=this._localTb*n.ta,A.tc+=this._localTc*n.td,A.td+=this._localTb*n.tc))}else this._renderContext=this._worldContext;this.ctx.updateTreeOrder===-1?this.ctx.updateTreeOrder=this._updateTreeOrder+1:this._updateTreeOrder=this.ctx.updateTreeOrder++;let o=this._renderToTextureEnabled&&this._texturizer.mustRenderToTexture();this._useRenderToTexture!==o&&(this._recalc|=6,s|=2,this._useRenderToTexture||this._texturizer.release()),this._useRenderToTexture=o;let a=this._renderContext,l=this._dimsUnknown?2048:this._w,u=this._dimsUnknown?2048:this._h,c,g,m,y,b=a.tb!==0||a.tc!==0||a.ta<0||a.td<0;if(b?(c=Math.min(0,l*a.ta,l*a.ta+u*a.tb,u*a.tb)+a.px,m=Math.max(0,l*a.ta,l*a.ta+u*a.tb,u*a.tb)+a.px,g=Math.min(0,l*a.tc,l*a.tc+u*a.td,u*a.td)+a.py,y=Math.max(0,l*a.tc,l*a.tc+u*a.td,u*a.td)+a.py):(c=a.px,m=a.px+a.ta*l,g=a.py,y=a.py+a.td*u),this._dimsUnknown&&(b||this._localTa<1||this._localTb<1)){let C=this._x*n.ta+this._y*n.tb+n.px,A=this._x*n.tc+this._y*n.td+n.py;Cm&&(m=C),A>y&&(y=A)}if(s&6||!this._scissor)if(this._clipping&&a.isSquare()){let C=this._parent._useRenderToTexture?this._parent._viewport:this._parent._scissor;if(C){let A=Math.max(C[0],c),T=Math.max(C[1],g);this._scissor=[A,T,Math.min(C[2]+C[0],m)-A,Math.min(C[3]+C[1],y)-T]}else this._scissor=[c,g,m-c,y-g]}else this._scissor=this._parent._useRenderToTexture?this._parent._viewport:this._parent._scissor;if(this._boundsMargin?this._recBoundsMargin=this._boundsMargin:this._recBoundsMargin=this._parent._recBoundsMargin,this._onAfterCalcs&&this._onAfterCalcs(this.element)&&(b?(c=Math.min(0,l*a.ta,l*a.ta+u*a.tb,u*a.tb)+a.px,m=Math.max(0,l*a.ta,l*a.ta+u*a.tb,u*a.tb)+a.px,g=Math.min(0,l*a.tc,l*a.tc+u*a.td,u*a.td)+a.py,y=Math.max(0,l*a.tc,l*a.tc+u*a.td,u*a.td)+a.py):(c=a.px,m=a.px+a.ta*l,g=a.py,y=a.py+a.td*u),this._dimsUnknown&&(b||this._localTa<1||this._localTb<1))){let C=this._x*n.ta+this._y*n.tb+n.px,A=this._x*n.tc+this._y*n.td+n.py;Cm&&(m=C),A>y&&(y=A)}if(this._parent._outOfBounds===2)this._outOfBounds=2,this._withinBoundsMargin&&(this._withinBoundsMargin=!1,this.element._disableWithinBoundsMargin());else if(s&6){this._outOfBounds=0;let C=!0;if((!this._renderToTextureEnabled||!this._texturizer||!this._texturizer.renderOffscreen)&&(this._scissor&&(this._scissor[2]<=0||this._scissor[3]<=0)?this._outOfBounds=2:((this._scissor[0]>m||this._scissor[1]>y||c>this._scissor[0]+this._scissor[2]||g>this._scissor[1]+this._scissor[3])&&(this._outOfBounds=1),this._outOfBounds&&(this._clipping||this._useRenderToTexture||this._clipbox&&l&&u)&&(this._outOfBounds=2)),C=this._outOfBounds===0,C||(this._recBoundsMargin?C=!(mthis._scissor[0]+this._scissor[2]+this._recBoundsMargin[0]||g>this._scissor[1]+this._scissor[3]+this._recBoundsMargin[1]):C=!(mthis._scissor[0]+this._scissor[2]+100||g>this._scissor[1]+this._scissor[3]+100),C&&this._outOfBounds===2&&(this._outOfBounds=1))),this._withinBoundsMargin!==C)if(this._withinBoundsMargin=C,this._withinBoundsMargin){this._hasUpdates=!0;let A=this._recalc;if(this._recalc=0,this.element._enableWithinBoundsMargin(),this._recalc)return this.update();this._recalc=A}else this.element._disableWithinBoundsMargin()}if(this._useRenderToTexture&&(this._viewport?(this._viewport[2]=l,this._viewport[3]=u):this._viewport=[0,0,l,u]),this._pRecalc=this._recalc&135,this._recalc=0,this._hasUpdates=!1,this._outOfBounds<2){if(this._useRenderToTexture&&(this._worldContext.isIdentity()?this._renderContext=this._worldContext:this._renderContext=sr.IDENTITY),this._children)for(let C=0,A=this._children.length;C=this.ctx.updateTreeOrder?this.ctx.updateTreeOrder=-1:this.updateTreeOrder()}_applyRelativeDimFuncs(){if(this._optFlags&1){let t=this._funcX(this._parent.w);t!==this._x&&(this._localPx+=t-this._x,this._x=t)}if(this._optFlags&2){let t=this._funcY(this._parent.h);t!==this._y&&(this._localPy+=t-this._y,this._y=t)}let e=!1;if(this._optFlags&4){let t=this._funcW(this._parent.w);t!==this._w&&(this._w=t,e=!0)}if(this._optFlags&8){let t=this._funcH(this._parent.h);t!==this._h&&(this._h=t,e=!0)}e&&(this._recalcLocalTranslate(),this.element.onDimensionsChanged(this._w,this._h))}updateOutOfBounds(){if(this._outOfBounds!==2&&this._renderContext.alpha>0&&(this._outOfBounds=2,this._withinBoundsMargin&&(this._withinBoundsMargin=!1,this.element._disableWithinBoundsMargin()),this._children))for(let e=0,t=this._children.length;e=3){if(this.ctx.renderToTextureCount++,t.setShader(t.defaultShader,this),n=t.renderTextureInfo,s={nativeTexture:null,offset:0,w:this._w,h:this._h,empty:!0,cleared:!1,ignore:!1,cache:!1},(this._texturizer.hasResultTexture()||!t.isCachingTexturizer&&e<3)&&(s.cache=!0,t.isCachingTexturizer=!0),this._texturizer.hasResultTexture()||this._texturizer.releaseRenderTexture(),t.setRenderTextureInfo(s),t.setScissor(null),this._displayedTextureSource){let o=this._renderContext;this._renderContext=sr.IDENTITY,this.renderState.addQuad(this),this._renderContext=o}}else i=!1}else this._outOfBounds===0&&this._displayedTextureSource&&(t.setShader(this.activeShader,this._shaderOwner),t.setScissor(this._scissor),this.renderState.addQuad(this));if(i&&this._children)if(this._zContextUsage)for(let o=0,a=this._zIndexedChildren.length;o0?s[l++]:i[a++];if((t===0||u[t-1]!==g)&&(u[t++]=g),a>=o){do{let m=s[l++];(t===0||u[t-1]!==m)&&(u[t++]=m)}while(l=n){do{let m=i[a++];(t===0||u[t-1]!==m)&&(u[t++]=m)}while(at&&i.splice(t)}}else i.length>t&&i.splice(t);this._zSort=!1}get localTa(){return this._localTa}get localTb(){return this._localTb}get localTc(){return this._localTc}get localTd(){return this._localTd}get element(){return this._element}get renderUpdates(){return this._hasRenderUpdates}get texturizer(){return this._texturizer||(this._texturizer=new eo(this)),this._texturizer}getCornerPoints(){let e=this._worldContext;return[e.px,e.py,e.px+this._w*e.ta,e.py+this._w*e.tc,e.px+this._w*e.ta+this._h*e.tb,e.py+this._w*e.tc+this._h*e.td,e.px+this._h*e.tb,e.py+this._h*e.td]}getRenderTextureCoords(e,t){let i=this._renderContext;return[i.px+i.ta*e+i.tb*t,i.py+i.tc*e+i.td*t]}getAbsoluteCoords(e,t){let i=this._renderContext;return[i.px+i.ta*e+i.tb*t,i.py+i.tc*e+i.td*t]}collectAtCoord(e,t,i){if(this._renderContext.alpha!==0){if(this.inBound(e,t)&&(this._scissor?this.inScissor()&&i.push(this):i.push(this)),this._children){let s=this._children.length;for(let n=0;ni[0]&&ei[1]&&t=e[0]&&t[0]<=e[0]+e[2]&&t[7]>=e[1]&&t[1]<=e[1]+e[3]}get layout(){return this._ensureLayout(),this._layout}get flex(){return this._layout?this._layout.flex:null}set flex(e){this.layout.flex=e}get flexItem(){return this._layout?this._layout.flexItem:null}set flexItem(e){this.layout.flexItem=e}isFlexItem(){return!!this._layout&&this._layout.isFlexItemEnabled()}isFlexContainer(){return!!this._layout&&this._layout.isFlexEnabled()}enableFlexLayout(){this._ensureLayout()}_ensureLayout(){this._layout||(this._layout=new Wl(this))}disableFlexLayout(){this._triggerRecalcTranslate()}hasFlexLayout(){return this._layout&&this._layout.isEnabled()}setLayout(e,t,i,s){this.x=e,this.y=t,this._updateDimensions(i,s)}triggerLayout(){this._setRecalc(256)}_triggerRecalcTranslate(){this._setRecalc(2)}},sr=class{constructor(){this.alpha=1,this.px=0,this.py=0,this.ta=1,this.tb=0,this.tc=0,this.td=1}isIdentity(){return this.alpha===1&&this.px===0&&this.py===0&&this.ta===1&&this.tb===0&&this.tc===0&&this.td===1}isSquare(){return this.tb===0&&this.tc===0}};sr.IDENTITY=new sr;ds.sortZIndexedChildren=function(r,e){return r._zIndex===e._zIndex?r._updateTreeOrder-e._updateTreeOrder:r._zIndex-e._zIndex};var ct=class r{constructor(){this._hasEventListeners=!1}on(e,t){this._hasEventListeners||(this._eventFunction={},this._eventListeners={},this._hasEventListeners=!0),this._eventFunction[e]?this._eventFunction[e]!==r.combiner?(this._eventListeners[e]=[this._eventFunction[e],t],this._eventFunction[e]=r.combiner):this._eventListeners[e].push(t):this._eventFunction[e]=t}once(e,t){let i=(s,n,o)=>{t(s,n,o),this.off(e,i)};i.__originalFunc=t,this.on(e,i)}has(e,t){if(this._hasEventListeners){let i=this._eventFunction[e];if(i){if(i===r.combiner){let s=this._eventListeners[e];for(let n of s)if(n===t||n.__originalFunc==t)return!0}else if(this._eventFunction[e]===t||this._eventFunction[e].__originalFunc===t)return!0}}return!1}off(e,t){if(this._hasEventListeners){let i=this._eventFunction[e];if(i)if(i===r.combiner){let s=this._eventListeners[e],n=s.indexOf(t);n>=0&&s.splice(n,1),n=s.map(o=>o.__originalFunc).indexOf(t),n>=0&&s.splice(n,1),s.length===1&&(this._eventFunction[e]=s[0],this._eventListeners[e]=void 0)}else(this._eventFunction[e]===t||this._eventFunction[e].__originalFunc===t)&&(this._eventFunction[e]=void 0)}}removeListener(e,t){this.off(e,t)}emit(e,t,i,s){if(this._hasEventListeners){let n=this._eventFunction[e];n&&(n===r.combiner?n(this,e,t,i,s):n(t,i,s))}}listenerCount(e){if(this._hasEventListeners){let t=this._eventFunction[e];if(t)return t===r.combiner?this._eventListeners[e].length:1}return 0}removeAllListeners(e){this._hasEventListeners&&(delete this._eventFunction[e],delete this._eventListeners[e])}};ct.combiner=function(r,e,t,i,s){let n=r._eventListeners[e];if(n)for(let o of[...n])o(t,i,s)};ct.addAsMixin=function(r){r.prototype.on=ct.prototype.on,r.prototype.once=ct.prototype.once,r.prototype.has=ct.prototype.has,r.prototype.off=ct.prototype.off,r.prototype.removeListener=ct.prototype.removeListener,r.prototype.emit=ct.prototype.emit,r.prototype.listenerCount=ct.prototype.listenerCount,r.prototype.removeAllListeners=ct.prototype.removeAllListeners};var qr=class{constructor(e){this._initialized=!1,this.ctx=e,this._elements=new Set}static create(e,t){let i;if(K.isObjectLiteral(t))t.type?i=e.renderer.createShader(e.ctx,t):i=this.shader,i&&dt.patchObject(i,t);else if(t===null)i=e.ctx.renderState.defaultShader;else if(t===void 0)i=null;else if(t.isShader)e.renderer.isValidShaderType(t.constructor)||(console.error("[Lightning] Invalid shader type"),t=null),i=t;else{console.error("[Lightning] Please specify a shader type.");return}return i}static getWebGL(){}static getC2d(){}addElement(e){this._elements.add(e)}removeElement(e){this._elements.delete(e),this._elements||this.cleanup()}redraw(){this._elements.forEach(e=>{e.setHasRenderUpdates(2)})}patch(e){dt.patchObject(this,e)}useDefault(){return!1}addEmpty(){return!1}cleanup(){}get isShader(){return!0}},Rt=class r{constructor(e){this.stage=e,this.manager=this.stage.textureManager,this.id=r.id++,this.elements=new Set,this._activeCount=0,this._source=null,this._resizeMode=null,this._x=0,this._y=0,this._w=0,this._h=0,this._precision=1,this.mw=0,this.mh=0,this.clipping=!1,this._mustUpdate=!0}get source(){return(this._mustUpdate||this.stage.hasUpdateSourceTexture(this))&&(this._performUpdateSource(!0),this.stage.removeUpdateSourceTexture(this)),this._source}addElement(e){this.elements.has(e)||(this.elements.add(e),this.elements.size===1&&this._source&&this._source.addTexture(this),e.active&&this.incActiveCount())}removeElement(e){this.elements.delete(e)&&(this.elements.size===0&&this._source&&this._source.removeTexture(this),e.active&&this.decActiveCount())}incActiveCount(){this.source&&this._checkForNewerReusableTextureSource(),this._activeCount++,this._activeCount===1&&this.becomesUsed()}decActiveCount(){this.source,this._activeCount--,this._activeCount||this.becomesUnused()}becomesUsed(){this.source&&this.source.incActiveTextureCount()}onLoad(){this._resizeMode&&this._applyResizeMode(),this.elements.forEach(e=>{e.active&&e.onTextureSourceLoaded()})}_checkForNewerReusableTextureSource(){let e=this.source;if(e.isLoaded())this._resizeMode&&this._applyResizeMode();else{let t=this._getReusableTextureSource();t&&t.isLoaded()&&t!==e&&this._replaceTextureSource(t)}}becomesUnused(){this.source&&this.source.decActiveTextureCount()}isUsed(){return this._activeCount>0}_getLookupId(){return null}_getSourceLoader(){throw new Error("Texture.generate must be implemented.")}get isValid(){return this._getIsValid()}_getIsValid(){return!0}_changed(){this.isUsed()?this._updateSource():this._mustUpdate=!0}_updateSource(){this.stage.addUpdateSourceTexture(this)}_performUpdateSource(e=!1){if(e||this.isUsed()){this._mustUpdate=!1;let t=this._getTextureSource();this._replaceTextureSource(t)}}_getTextureSource(){let e=null;if(this._getIsValid()){let t=this._getLookupId();e=this._getReusableTextureSource(t),e||(e=this.manager.getTextureSource(this._getSourceLoader(),t))}return e}_getReusableTextureSource(e=this._getLookupId()){return this._getIsValid()&&e?this.manager.getReusableTextureSource(e):null}_replaceTextureSource(e=null){let t=this._source;if(this._source=e,this.elements.size&&(t&&(this._activeCount&&t.decActiveTextureCount(),t.removeTexture(this),this.text&&!t.isUsed()&&this.manager.freeTextureSource(t)),e&&(e.addTexture(this),this._activeCount&&e.incActiveTextureCount())),this.isUsed())if(e)if(e.isLoaded())this._resizeMode&&this._applyResizeMode(),this.elements.forEach(i=>{i.active&&i._setDisplayedTexture(this)});else{let i=e.loadError;i&&this.elements.forEach(s=>{s.active&&s.onTextureSourceLoadError(i)})}else this.elements.forEach(i=>{i.active&&i._setDisplayedTexture(null)})}load(){this.source&&(this.isLoaded()||this.source.load(!0))}isLoaded(){return this._source&&this._source.isLoaded()}get loadError(){return this._source&&this._source.loadError}free(){this._source&&this._source.free()}set resizeMode({type:e="cover",w:t=0,h:i=0,clipX:s=.5,clipY:n=.5}){this._resizeMode={type:e,w:t,h:i,clipX:s,clipY:n},this.isLoaded()&&this._applyResizeMode()}get resizeMode(){return this._resizeMode}_clearResizeMode(){this._resizeMode=null}_applyResizeMode(){this._resizeMode.type==="cover"?this._applyResizeCover():this._resizeMode.type==="contain"&&this._applyResizeContain(),this._updatePrecision(),this._updateClipping()}_applyResizeCover(){let e=this._resizeMode.w/this._source.w,t=this._resizeMode.h/this._source.h,i=Math.max(e,t);if(i){if(this._precision=1/i,e&&e=65&&i<=90||i>=97&&i<=122||i==46)&&(e=this.stage.getOption("srcBasePath")+e)}return s=>this.stage.platform.loadSrcTexture({src:e,hasAlpha:t},s)}getNonDefaults(){let e=super.getNonDefaults();return this._src&&(e.src=this._src),e}};function to(r,e,t,i,s){let n=r;Array.isArray(n)||(n=[n]);let o=[];for(let a=0,l=n.length;an!="")}function ro(r,e,t=0){return t?e.split("").reduce((i,s)=>Ap(s)?i:i+r.measureText(s).width+t,0):r.measureText(e).width}function k1(r,e,t,i,s){let n=/ |\u200B/g,o=e.split(/\r?\n/g),a=[],l=[];for(let u=0;um?(C>0&&(c.push(g),g=""),g+=T,m=t-R-(C===0?s:0)):(m-=P,g+=A+T)}c.push(g),g="",a=a.concat(c),u{console.warn("[Lightning] Font load error",t,e)}).then(()=>{document.fonts.check(e,this._settings.text)||console.warn("[Lightning] Font not found",e)})}catch{console.warn("[Lightning] Can't check font loading for "+e)}}}draw(){let e=this._load();return e?e.then(()=>K.isSpark?this._stage.platform.drawText(this):this._draw()):K.isSpark?this._stage.platform.drawText(this):this._draw()}_calculateRenderInfo(){let e={},t=this.getPrecision(),i=this._settings.paddingLeft*t,s=this._settings.paddingRight*t,n=this._settings.fontSize*t,o=this._settings.offsetY===null?null:this._settings.offsetY*t,a=this._settings.lineHeight*t,l=this._settings.w*t,u=this._settings.h*t,c=this._settings.wordWrapWidth*t,g=this._settings.cutSx*t,m=this._settings.cutEx*t,y=this._settings.cutSy*t,b=this._settings.cutEy*t,C=(this._settings.letterSpacing||0)*t,A=this._settings.textIndent*t;this.setFontProperties();let T=l||this._stage.getOption("w"),R=T-i;if(R<10&&(T+=10-R,R=10),c||(c=R),this._settings.textOverflow&&!this._settings.wordWrap){let F;switch(this._settings.textOverflow){case"clip":F="";break;case"ellipsis":F=this._settings.maxLinesSuffix;break;default:F=this._settings.textOverflow}this._settings.text=this.wrapWord(this._settings.text,c-A,F)}let P;if(this._settings.wordWrap)P=this.wrapText(this._settings.text,c,C,A);else{P={l:this._settings.text.split(/(?:\r\n|\r|\n)/),n:[]};let F=P.l.length;for(let U=0;Uthis._settings.maxLines){let F=E.slice(0,this._settings.maxLines),U=null;if(this._settings.maxLinesSuffix){let D=this._settings.maxLinesSuffix?this.measureText(this._settings.maxLinesSuffix):0,N=this.wrapText(F[F.length-1],c-D,C,A);F[F.length-1]=N.l[0]+this._settings.maxLinesSuffix,U=[N.l.length>1?N.l[1]:""]}else U=[""];let q,ee=E.length,te=0,$=P.n.length;for(q=this._settings.maxLines;q=128&&(this._context.globalAlpha=.01,this._context.fillRect(0,0,.01,.01),this._context.globalAlpha=1),(e.cutSx||e.cutSy)&&this._context.translate(-e.cutSx,-e.cutSy);let i,s,n=[];for(let a=0,l=e.lines.length;at)for(;a>0&&(l=this.measureText(e.substring(0,a))+s,l>t);)a-=1;else for(;a=s?i:"")}wrapText(e,t,i,s=0){return k1(this._context,e,t,i,s)}measureText(e,t=0){return ro(this._context,e,t)}},so=class{constructor(e,t,i){this._stage=e,this._canvas=t,this._context=this._canvas.getContext("2d"),this._settings=i}getPrecision(){return this._settings.precision}setFontProperties(){let e=to(this._settings.fontFace,this._settings.fontStyle,this._settings.fontSize,this.getPrecision(),this._stage.getOption("defaultFontFace"));return this._context.font=e,this._context.textBaseline=this._settings.textBaseline,e}_load(){if(K.isWeb&&document.fonts){let e=to(this._settings.fontFace,this._settings.fontStyle,this._settings.fontSize,this.getPrecision(),this._stage.getOption("defaultFontFace"));try{if(!document.fonts.check(e,this._settings.text))return document.fonts.load(e,this._settings.text).catch(t=>{console.warn("Font load error",t,e)}).then(()=>{document.fonts.check(e,this._settings.text)||console.warn("Font not found",e)})}catch{console.warn("Can't check font loading for "+e)}}}draw(){let e=this._load();return e?e.then(()=>K.isSpark?this._stage.platform.drawText(this):this._draw()):K.isSpark?this._stage.platform.drawText(this):this._draw()}_calculateRenderInfo(){let e={},t=this.getPrecision(),i=this._settings.paddingLeft*t,s=this._settings.paddingRight*t,n=this._settings.fontSize*t,o=this._settings.lineHeight*t||n,a=this._settings.w!=0?this._settings.w*t:this._stage.getOption("w"),l=this._settings.wordWrapWidth*t,u=this._settings.cutSx*t,c=this._settings.cutEx*t,g=this._settings.cutSy*t,m=this._settings.cutEy*t,y=this._settings.letterSpacing||0;e.baseFont=this.setFontProperties(),e.w=a,e.width=a,e.text=this._settings.text,e.precision=t,e.fontSize=n,e.fontBaselineRatio=this._settings.fontBaselineRatio,e.lineHeight=o,e.letterSpacing=y,e.textAlign=this._settings.textAlign,e.textColor=this._settings.textColor,e.verticalAlign=this._settings.verticalAlign,e.highlight=this._settings.highlight,e.highlightColor=this._settings.highlightColor,e.highlightHeight=this._settings.highlightHeight,e.highlightPaddingLeft=this._settings.highlightPaddingLeft,e.highlightPaddingRight=this._settings.highlightPaddingRight,e.highlightOffset=this._settings.highlightOffset,e.paddingLeft=this._settings.paddingLeft,e.paddingRight=this._settings.paddingRight,e.maxLines=this._settings.maxLines,e.maxLinesSuffix=this._settings.maxLinesSuffix,e.textOverflow=this._settings.textOverflow,e.wordWrap=this._settings.wordWrap,e.wordWrapWidth=l,e.shadow=this._settings.shadow,e.shadowColor=this._settings.shadowColor,e.shadowOffsetX=this._settings.shadowOffsetX,e.shadowOffsetY=this._settings.shadowOffsetY,e.shadowBlur=this._settings.shadowBlur,e.cutSx=u,e.cutEx=c,e.cutSy=g,e.cutEy=m,e.textIndent=this._settings.textIndent*t,e.wordBreak=this._settings.wordBreak;let b=e.text,C=e.wordWrap&&e.wordWrapWidth||e.width;if(e.textOverflow&&!e.wordWrap){let E;switch(this._settings.textOverflow){case"clip":E="";break;case"ellipsis":E=this._settings.maxLinesSuffix;break;default:E=this._settings.textOverflow}b=this.wrapWord(b,l||e.w,E)}b=this.tokenize(b),b=this.parse(b),b=this.measure(b,y,e.baseFont),e.textIndent&&(b=this.indent(b,e.textIndent)),e.wordBreak&&(b=b.reduce((E,k)=>E.concat(this.wordBreak(k,C,e.baseFont)),[]),this.resetFontStyle());let A=i,T=0;for(let E of b)(e.wordWrap&&A+E.width>C||E.text==` +`)&&(A=i,T+=1),E.lineNo=T,E.text!=` +`&&(E.x=A,A+=E.width);e.lineNum=T+1,this._settings.h?e.h=this._settings.h:e.maxLines&&e.maxLinesk+O.width,0);if(e.width=this._settings.w!=0?this._settings.w*t:Math.max(...e.lines.map(E=>E.width))+s,e.w=e.width,e.maxLines&&e.lineNum>e.maxLines&&e.maxLinesSuffix){let E=e.maxLines-1,k=b.filter(U=>U.lineNo==E),O=e.maxLinesSuffix;O=this.tokenize(O),O=this.parse(O),O=this.measure(O,e.letterSpacing,e.baseFont);for(let U of O)U.lineNo=E,U.x=0,k.push(U);let B=O.length+1,F=k.reduce((U,q)=>U+q.width,0);for(;(F>e.width||Cp(k[k.length-B].text))&&(k.splice(k.length-B,1),F=k.reduce((U,q)=>U+q.width,0),!(k.length=128&&(this._context.globalAlpha=.01,this._context.fillRect(0,0,.01,.01),this._context.globalAlpha=1),(e.cutSx||e.cutSy)&&this._context.translate(-e.cutSx,-e.cutSy),e.highlight){let u=e.highlightColor||0,c=e.highlightHeight?e.highlightHeight*t:e.fontSize*1.5,g=e.highlightOffset?e.highlightOffset*t:0,m=e.highlightPaddingLeft!==null?e.highlightPaddingLeft*t:e.paddingLeft,y=e.highlightPaddingRight!==null?e.highlightPaddingRight*t:e.paddingRight;this._context.fillStyle=fe.getRgbaString(u);let b=e.maxLines?Math.min(e.maxLines,e.lineNum):e.lineNum;for(let C=0;C=e.maxLines))if(c.color!=l&&(l=c.color,this._context.fillStyle=l),this._context.font=c.fontStyle,c.letters)for(let m of c.letters){let y=e.lines[c.lineNo].x+c.x+g;this._context.fillText(m.text,y,e.lines[c.lineNo].y+e.fontSize),g+=m.width}else{let m=e.lines[c.lineNo].x+c.x;this._context.fillText(c.text,m,e.lines[c.lineNo].y+e.fontSize)}}o&&(this._context.shadowColor=o[0],this._context.shadowOffsetX=o[1],this._context.shadowOffsetY=o[2],this._context.shadowBlur=o[3]),(e.cutSx||e.cutSy)&&this._context.translate(e.cutSx,e.cutSy),e.lines=e.lines.map(u=>u.text.reduce((c,g)=>c+g.text,"")),e.maxLines&&(e.lines=e.lines.slice(0,e.maxLines)),this.renderInfo=e}measureText(e,t=0){return ro(this._context,e,t)}tokenize(e){return P1(/ |\u200B|\n||<\/i>||<\/b>||<\/color>/g,e)}parse(e){let t=0,i=0,s=[fe.getRgbaString(this._settings.textColor)],n=0,o=//;return e.map(a=>{if(a=="")t+=1,a="";else if(a==""&&t>0)t-=1,a="";else if(a=="")i+=1,a="";else if(a==""&&i>0)i-=1,a="";else if(a=="")s.length>1&&(n-=1,s.pop()),a="";else if(o.test(a)){let l=o.exec(a);s.push(fe.getRgbaString(parseInt(l[1]))),n+=1,a=""}return{text:a,italic:t,bold:i,color:s[n]}}).filter(a=>a.text!="")}applyFontStyle(e,t){let i=t;e.bold&&(i="bold "+i),e.italic&&(i="italic "+i),this._context.font=i,e.fontStyle=i}resetFontStyle(e){this._context.font=e}measure(e,t=0,i){for(let s of e)if(this.applyFontStyle(s,i),s.width=this.measureText(s.text,t),t>0){s.letters=s.text.split("").map(n=>({text:n}));for(let n of s.letters)n.width=this.measureText(n.text,t)}return this.resetFontStyle(i),e}indent(e,t){return e.splice(0,0,{text:"",width:t}),e}wrapWord(e,t,i){let s=this.measureText(i),n=e.length,o=this.measureText(e);if(o<=t)return e;let a=Math.floor(t*n/o),l=this.measureText(e.substring(0,a))+s;if(l>t)for(;a>0&&(l=this.measureText(e.substring(0,a))+s,l>t);)a-=1;else for(;a=s?i:"")}_getBreakIndex(e,t){let i=e.length,s=this.measureText(e);if(s<=t)return{breakIndex:e.length,truncWordWidth:s};let n=Math.floor(t*i/s),o=this.measureText(e.substring(0,n));if(o>t)for(;n>0&&(o=this.measureText(e.substring(0,n)),o>t);)n-=1;else for(;n=t?(s.push({...e}),s[s.length-1].text=n.slice(0,l),s[s.length-1].width=o,s[s.length-1].letters=a,n=n.slice(l),o=0,a=[],l=0):(l+=1,a.push(u),o+=u.width);o>0&&(s.push({...e}),s[s.length-1].text=n.slice(0,l),s[s.length-1].width=o,s[s.length-1].letters=a)}else for(;;){let{breakIndex:o,truncWordWidth:a}=this._getBreakIndex(n,t);if(s.push({...e}),s[s.length-1].text=n.slice(0,o),s[s.length-1].width=a,o===n.length)break;n=n.slice(o)}return s}alignLine(e,t=0){let i=0,s=t;for(let n of e)n.text!=` +`&&(n.x=s+i,s=n.x,i=n.width)}},nr=class extends Rt{constructor(e){super(e),this._precision=this.stage.getOption("precision")}static renderer(e,t,i){return this.advancedRenderer?new so(e,t,i):new io(e,t,i)}get text(){return this._text}set text(e){this._text!==e&&(this._text=""+e,this._changed())}get w(){return this._w}set w(e){this._w!==e&&(this._w=e,this._changed())}get h(){return this._h}set h(e){this._h!==e&&(this._h=e,this._changed())}get fontStyle(){return this._fontStyle}set fontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this._changed())}get fontBaselineRatio(){return this._fontBaselineRatio}set fontBaselineRatio(e){this._fontBaselineRatio!==e&&(this._fontBaselineRatio=e,this._changed())}get fontSize(){return this._fontSize}set fontSize(e){this._fontSize!==e&&(this._fontSize=e,this._changed())}get fontFace(){return this._fontFace}set fontFace(e){this._fontFace!==e&&(this._fontFace=e,this._changed())}get wordWrap(){return this._wordWrap}set wordWrap(e){this._wordWrap!==e&&(this._wordWrap=e,this._changed())}get wordWrapWidth(){return this._wordWrapWidth}set wordWrapWidth(e){this._wordWrapWidth!==e&&(this._wordWrapWidth=e,this._changed())}get wordBreak(){return this._wordBreak}set wordBreak(e){this._wordBreak!==e&&(this._wordBreak=e,this._changed())}get textOverflow(){return this._textOverflow}set textOverflow(e){e!=this._textOverflow&&(this._textOverflow=e,this._changed())}get lineHeight(){return this._lineHeight}set lineHeight(e){this._lineHeight!==e&&(this._lineHeight=e,this._changed())}get textBaseline(){return this._textBaseline}set textBaseline(e){this._textBaseline!==e&&(this._textBaseline=e,this._changed())}get textAlign(){return this._textAlign}set textAlign(e){this._textAlign!==e&&(this._textAlign=e,this._changed())}get verticalAlign(){return this._verticalAlign}set verticalAlign(e){this._verticalAlign!==e&&(this._verticalAlign=e,this._changed())}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY!==e&&(this._offsetY=e,this._changed())}get maxLines(){return this._maxLines}set maxLines(e){this._maxLines!==e&&(this._maxLines=e,this._changed())}get maxLinesSuffix(){return this._maxLinesSuffix}set maxLinesSuffix(e){this._maxLinesSuffix!==e&&(this._maxLinesSuffix=e,this._changed())}get textColor(){return this._textColor}set textColor(e){this._textColor!==e&&(this._textColor=e,this._changed())}get paddingLeft(){return this._paddingLeft}set paddingLeft(e){this._paddingLeft!==e&&(this._paddingLeft=e,this._changed())}get paddingRight(){return this._paddingRight}set paddingRight(e){this._paddingRight!==e&&(this._paddingRight=e,this._changed())}get shadow(){return this._shadow}set shadow(e){this._shadow!==e&&(this._shadow=e,this._changed())}get shadowColor(){return this._shadowColor}set shadowColor(e){this._shadowColor!==e&&(this._shadowColor=e,this._changed())}get shadowOffsetX(){return this._shadowOffsetX}set shadowOffsetX(e){this._shadowOffsetX!==e&&(this._shadowOffsetX=e,this._changed())}get shadowOffsetY(){return this._shadowOffsetY}set shadowOffsetY(e){this._shadowOffsetY!==e&&(this._shadowOffsetY=e,this._changed())}get shadowBlur(){return this._shadowBlur}set shadowBlur(e){this._shadowBlur!==e&&(this._shadowBlur=e,this._changed())}get highlight(){return this._highlight}set highlight(e){this._highlight!==e&&(this._highlight=e,this._changed())}get highlightHeight(){return this._highlightHeight}set highlightHeight(e){this._highlightHeight!==e&&(this._highlightHeight=e,this._changed())}get highlightColor(){return this._highlightColor}set highlightColor(e){this._highlightColor!==e&&(this._highlightColor=e,this._changed())}get highlightOffset(){return this._highlightOffset}set highlightOffset(e){this._highlightOffset!==e&&(this._highlightOffset=e,this._changed())}get highlightPaddingLeft(){return this._highlightPaddingLeft}set highlightPaddingLeft(e){this._highlightPaddingLeft!==e&&(this._highlightPaddingLeft=e,this._changed())}get highlightPaddingRight(){return this._highlightPaddingRight}set highlightPaddingRight(e){this._highlightPaddingRight!==e&&(this._highlightPaddingRight=e,this._changed())}get cutSx(){return this._cutSx}set cutSx(e){this._cutSx!==e&&(this._cutSx=e,this._changed())}get cutEx(){return this._cutEx}set cutEx(e){this._cutEx!==e&&(this._cutEx=e,this._changed())}get cutSy(){return this._cutSy}set cutSy(e){this._cutSy!==e&&(this._cutSy=e,this._changed())}get cutEy(){return this._cutEy}set cutEy(e){this._cutEy!==e&&(this._cutEy=e,this._changed())}get advancedRenderer(){return this._advancedRenderer}set advancedRenderer(e){this._advancedRenderer!==e&&(this._advancedRenderer=e,this._changed())}set letterSpacing(e){this._letterSpacing!==e&&(this._letterSpacing=e,this._changed())}get letterSpacing(){return this._letterSpacing}set textIndent(e){this._textIndent!==e&&(this._textIndent=e,this._changed())}get textIndent(){return this._textIndent}get precision(){return super.precision}set precision(e){this.precision!==e&&(super.precision=e,this._changed())}_getIsValid(){return!!this.text}_getLookupId(){let e=[];return this.w!==0&&e.push("w "+this.w),this.h!==0&&e.push("h "+this.h),this.fontStyle!=="normal"&&e.push("fS"+this.fontStyle),this.fontSize!==40&&e.push("fs"+this.fontSize),this.fontBaselineRatio!==0&&e.push("fb"+this.fontBaselineRatio),this.fontFace!==null&&e.push("ff"+(Array.isArray(this.fontFace)?this.fontFace.join(","):this.fontFace)),this.wordWrap!==!0&&e.push("wr"+(this.wordWrap?1:0)),this.wordWrapWidth!==0&&e.push("ww"+this.wordWrapWidth),this.wordBreak!==!1&&e.push("wb"+this.wordBreak?1:0),this.textOverflow!=""&&e.push("to"+this.textOverflow),this.lineHeight!==null&&e.push("lh"+this.lineHeight),this.textBaseline!=="alphabetic"&&e.push("tb"+this.textBaseline),this.textAlign!=="left"&&e.push("ta"+this.textAlign),this.verticalAlign!=="top"&&e.push("va"+this.verticalAlign),this.offsetY!==null&&e.push("oy"+this.offsetY),this.maxLines!==0&&e.push("ml"+this.maxLines),this.maxLinesSuffix!==".."&&e.push("ms"+this.maxLinesSuffix),e.push("pc"+this.precision),this.textColor!==4294967295&&e.push("co"+this.textColor.toString(16)),this.paddingLeft!==0&&e.push("pl"+this.paddingLeft),this.paddingRight!==0&&e.push("pr"+this.paddingRight),this.shadow!==!1&&e.push("sh"+(this.shadow?1:0)),this.shadowColor!==4278190080&&e.push("sc"+this.shadowColor.toString(16)),this.shadowOffsetX!==0&&e.push("sx"+this.shadowOffsetX),this.shadowOffsetY!==0&&e.push("sy"+this.shadowOffsetY),this.shadowBlur!==5&&e.push("sb"+this.shadowBlur),this.highlight!==!1&&e.push("hL"+(this.highlight?1:0)),this.highlightHeight!==0&&e.push("hh"+this.highlightHeight),this.highlightColor!==4278190080&&e.push("hc"+this.highlightColor.toString(16)),this.highlightOffset!==null&&e.push("ho"+this.highlightOffset),this.highlightPaddingLeft!==null&&e.push("hl"+this.highlightPaddingLeft),this.highlightPaddingRight!==null&&e.push("hr"+this.highlightPaddingRight),this.letterSpacing!==null&&e.push("ls"+this.letterSpacing),this.textIndent!==null&&e.push("ti"+this.textIndent),this.cutSx&&e.push("csx"+this.cutSx),this.cutEx&&e.push("cex"+this.cutEx),this.cutSy&&e.push("csy"+this.cutSy),this.cutEy&&e.push("cey"+this.cutEy),this.advancedRenderer&&e.push("aR"+this.advancedRenderer?1:0),"TX$"+e.join("|")+":"+this.text}_getSourceLoader(){let e=this.cloneArgs(),t=this.stage.gl;return function(i){let s=this.stage.platform.getDrawingCanvas(),n=e.advancedRenderer?new so(this.stage,s,e):new io(this.stage,s,e),o=n.draw(),a={},l=this.stage.getOption("fontSharp"),u=!1;K.isBoolean(l)?u=l:K.isObject(l)&&(u=this.stage.getRenderPrecision()<=l.precision&&e.fontSize<=l.fontSize),t&&u&&(a[t.TEXTURE_MAG_FILTER]=t.NEAREST),o?o.then(()=>{i(null,Object.assign({renderInfo:n.renderInfo,throttle:!1,texParams:a},this.stage.platform.getTextureOptionsForDrawingCanvas(s)))}).catch(c=>{i(c)}):i(null,Object.assign({renderInfo:n.renderInfo,throttle:!1,texParams:a},this.stage.platform.getTextureOptionsForDrawingCanvas(s)))}}getNonDefaults(){let e=super.getNonDefaults();return this.text!==""&&(e.text=this.text),this.w!==0&&(e.w=this.w),this.h!==0&&(e.h=this.h),this.fontStyle!=="normal"&&(e.fontStyle=this.fontStyle),this.fontSize!==40&&(e.fontSize=this.fontSize),this.fontBaselineRatio!==0&&(e.fontBaselineRatio=this.fontBaselineRatio),this.fontFace!==null&&(e.fontFace=this.fontFace),this.wordWrap!==!0&&(e.wordWrap=this.wordWrap),this.wordWrapWidth!==0&&(e.wordWrapWidth=this.wordWrapWidth),this.wordBreak!==!1&&(e.wordBreak=this.wordBreak),this.textOverflow!=""&&(e.textOverflow=this.textOverflow),this.lineHeight!==null&&(e.lineHeight=this.lineHeight),this.textBaseline!=="alphabetic"&&(e.textBaseline=this.textBaseline),this.textAlign!=="left"&&(e.textAlign=this.textAlign),this.verticalAlign!=="top"&&(e.verticalAlign=this.verticalAlign),this.offsetY!==null&&(e.offsetY=this.offsetY),this.maxLines!==0&&(e.maxLines=this.maxLines),this.maxLinesSuffix!==".."&&(e.maxLinesSuffix=this.maxLinesSuffix),this.precision!==this.stage.getOption("precision")&&(e.precision=this.precision),this.textColor!==4294967295&&(e.textColor=this.textColor),this.paddingLeft!==0&&(e.paddingLeft=this.paddingLeft),this.paddingRight!==0&&(e.paddingRight=this.paddingRight),this.shadow!==!1&&(e.shadow=this.shadow),this.shadowColor!==4278190080&&(e.shadowColor=this.shadowColor),this.shadowOffsetX!==0&&(e.shadowOffsetX=this.shadowOffsetX),this.shadowOffsetY!==0&&(e.shadowOffsetY=this.shadowOffsetY),this.shadowBlur!==5&&(e.shadowBlur=this.shadowBlur),this.highlight!==!1&&(e.highlight=this.highlight),this.highlightHeight!==0&&(e.highlightHeight=this.highlightHeight),this.highlightColor!==4278190080&&(e.highlightColor=this.highlightColor),this.highlightOffset!==0&&(e.highlightOffset=this.highlightOffset),this.highlightPaddingLeft!==0&&(e.highlightPaddingLeft=this.highlightPaddingLeft),this.highlightPaddingRight!==0&&(e.highlightPaddingRight=this.highlightPaddingRight),this.letterSpacing!==0&&(e.letterSpacing=this.letterSpacing),this.textIndent!==0&&(e.textIndent=this.textIndent),this.cutSx&&(e.cutSx=this.cutSx),this.cutEx&&(e.cutEx=this.cutEx),this.cutSy&&(e.cutSy=this.cutSy),this.cutEy&&(e.cutEy=this.cutEy),this.advancedRenderer&&(e.renderer=this.advancedRenderer),e}cloneArgs(){let e={};return e.text=this._text,e.w=this._w,e.h=this._h,e.fontStyle=this._fontStyle,e.fontSize=this._fontSize,e.fontBaselineRatio=this._fontBaselineRatio,e.fontFace=this._fontFace,e.wordWrap=this._wordWrap,e.wordWrapWidth=this._wordWrapWidth,e.wordBreak=this._wordBreak,e.textOverflow=this._textOverflow,e.lineHeight=this._lineHeight,e.textBaseline=this._textBaseline,e.textAlign=this._textAlign,e.verticalAlign=this._verticalAlign,e.offsetY=this._offsetY,e.maxLines=this._maxLines,e.maxLinesSuffix=this._maxLinesSuffix,e.precision=this._precision,e.textColor=this._textColor,e.paddingLeft=this._paddingLeft,e.paddingRight=this._paddingRight,e.shadow=this._shadow,e.shadowColor=this._shadowColor,e.shadowOffsetX=this._shadowOffsetX,e.shadowOffsetY=this._shadowOffsetY,e.shadowBlur=this._shadowBlur,e.highlight=this._highlight,e.highlightHeight=this._highlightHeight,e.highlightColor=this._highlightColor,e.highlightOffset=this._highlightOffset,e.highlightPaddingLeft=this._highlightPaddingLeft,e.highlightPaddingRight=this._highlightPaddingRight,e.letterSpacing=this._letterSpacing,e.textIndent=this._textIndent,e.cutSx=this._cutSx,e.cutEx=this._cutEx,e.cutSy=this._cutSy,e.cutEy=this._cutEy,e.advancedRenderer=this._advancedRenderer,e}},me=nr.prototype;me._text="";me._w=0;me._h=0;me._fontStyle="normal";me._fontSize=40;me._fontFace=null;me._wordWrap=!0;me._wordWrapWidth=0;me._wordBreak=!1;me._textOverflow="";me._lineHeight=null;me._textBaseline="alphabetic";me._textAlign="left";me._verticalAlign="top";me._offsetY=null;me._maxLines=0;me._maxLinesSuffix="..";me._textColor=4294967295;me._paddingLeft=0;me._paddingRight=0;me._shadow=!1;me._shadowColor=4278190080;me._shadowOffsetX=0;me._shadowOffsetY=0;me._shadowBlur=5;me._highlight=!1;me._highlightHeight=0;me._highlightColor=4278190080;me._highlightOffset=0;me._highlightPaddingLeft=0;me._highlightPaddingRight=0;me._letterSpacing=0;me._textIndent=0;me._cutSx=0;me._cutEx=0;me._cutSy=0;me._cutEy=0;me._advancedRenderer=!1;me._fontBaselineRatio=0;var no=class extends Rt{constructor(e){super(e),this._textureSource=void 0}get textureSource(){return this._textureSource}set textureSource(e){e!==this._textureSource&&(e.isResultTexture&&(this._precision=this.stage.getRenderPrecision()),this._textureSource=e,this._changed())}_getTextureSource(){return this._textureSource}},fs=class extends ct{constructor(e,t,i,s){super(),this.manager=e,this._settings=t,this._element=i,this._getter=i.constructor.getGetter(s),this._setter=i.constructor.getSetter(s),this._merger=t.merger,this._merger||(this._merger=i.constructor.getMerger(s)),this._startValue=this._getter(this._element),this._targetValue=this._startValue,this._p=1,this._delayLeft=0}start(e){this._startValue=this._getter(this._element),this.isAttached()?e===this._startValue?this.reset(e,1):(this._targetValue=e,this._p=0,this._delayLeft=this._settings.delay,this.emit("start"),this.add()):(this._targetValue=e,this._p=1,this._updateDrawValue())}finish(){this._p<1&&(this._p=1)}stop(){this.emit("stop"),this.manager.removeActive(this)}pause(){this.stop()}play(){this.manager.addActive(this)}reset(e,t){this.isAttached()?(this._startValue=this._getter(this._element),this._targetValue=e,this._p=t,this.add()):(this._startValue=this._getter(this._element),this._targetValue=e,this._p=1,this._updateDrawValue())}_updateDrawValue(){this._setter(this._element,this.getDrawValue())}add(){this.manager.addActive(this)}isAttached(){return this._element.attached}isRunning(){return this._p<1}progress(e){if(this.isAttached()||(this._p=1),this.p<1){if(this.delayLeft>0)if(this._delayLeft-=e,this.delayLeft<0)e=-this.delayLeft,this._delayLeft=0,this.emit("delayEnd");else return;this._settings.duration==0?this._p=1:this._p+=e/this._settings.duration,this._p>=1&&(this._p=1)}this._updateDrawValue(),this.invokeListeners()}invokeListeners(){this.emit("progress",this.p),this.p===1&&this.emit("finish")}updateTargetValue(e){let t=this._settings.timingFunctionImpl(this.p);t===1?this._targetValue=e:t===0?(this._startValue=this._targetValue,this._targetValue=e):(this._startValue=e-(e-this._targetValue)/(1-t),this._targetValue=e)}getDrawValue(){if(this.p>=1)return this.targetValue;{let e=this._settings._timingFunctionImpl(this.p);return this._merger(this.targetValue,this.startValue,e)}}skipDelay(){this._delayLeft=0}get startValue(){return this._startValue}get targetValue(){return this._targetValue}get p(){return this._p}get delayLeft(){return this._delayLeft}get element(){return this._element}get settings(){return this._settings}set settings(e){this._settings=e}};fs.prototype.isTransition=!0;var oo=class{constructor(){this._items=[],this._refs={}}get(){return this._items}get first(){return this._items[0]}get last(){return this._items.length?this._items[this._items.length-1]:void 0}add(e){this.addAt(e,this._items.length)}addAt(e,t){if(t>=0&&t<=this._items.length){let i=this._items.indexOf(e);if(i===t)return e;if(K.isObjectLiteral(e)){let s=e;e=this.createItem(s),e.patch(s)}i!=-1?this.setAt(e,t):(e.ref&&(this._refs[e.ref]=e),this._items.splice(t,0,e),this.onAdd(e,t))}else throw new Error("addAt: The index "+t+" is out of bounds "+this._items.length)}replaceByRef(e){if(e.ref){let t=this.getByRef(e.ref);if(!t)throw new Error("replaceByRef: no item found with reference: "+e.ref);this.replace(e,t)}else throw new Error("replaceByRef: no ref specified in item");this.addAt(e,this._items.length)}replace(e,t){let i=this.getIndex(t);if(i===-1)throw new Error("replace: The previous item does not exist");this.setAt(e,i)}setAt(e,t){if(t>=0&&t=0&&e{let o=n.marker;return delete n.marker,o}),s=e.filter(n=>t.indexOf(n)===-1);if(i.length||s.length){this._refs={};for(let n=0,o=this._items.length;nn.core;this._element.core.syncChildren(e.map(s),t.map(s),i.map(s))}onSet(e,t,i){i._setParent(null),this._connectParent(e),this._element.core.setChildAt(t,e.core)}onMove(e,t,i){this._element.core.moveChild(t,i)}createItem(e){return e.type?new e.type(this._element.stage):this._element.stage.createElement()}isItem(e){return e.isElement}},yt=class r{constructor(e){this.stage=e,this.__id=r.id++,this.__start(),this._hasEventListeners=!1,this.__core=new ds(this),this.__ref=null,this.__attached=!1,this.__enabled=!1,this.__active=!1,this.__parent=null,this.__texture=null,this.__displayedTexture=null,this.__tags=null,this.__treeTags=null,this.__tagRoot=!1,this.__childList=null,this._w=0,this._h=0}__start(){}get id(){return this.__id}set ref(e){if(this.__ref!==e){let t=e.charCodeAt(0);K.isUcChar(t)||this._throwError("Ref must start with an upper case character: "+e),this.__ref!==null&&(this.removeTag(this.__ref),this.__parent&&this.__parent.__childList.clearRef(this.__ref)),this.__ref=e,this.__ref&&(this._addTag(this.__ref),this.__parent&&this.__parent.__childList.setRef(this.__ref,this))}}get ref(){return this.__ref}get core(){return this.__core}setAsRoot(){this.__core.setAsRoot(),this._updateAttachedFlag(),this._updateEnabledFlag()}get isRoot(){return this.__core.isRoot}_setParent(e){this.__parent!==e&&(this.__parent&&this._unsetTagsParent(),this.__parent=e,e&&this._setTagsParent(),this._updateAttachedFlag(),this._updateEnabledFlag(),this._updateCollision(),this.isRoot&&e&&this._throwError("Root should not be added as a child! Results are unspecified!"))}getDepth(){let e=0,t=this.__parent;for(;t;)e++,t=t.__parent;return e}getAncestor(e){let t=this;for(;e>0&&t.__parent;)t=t.__parent,e--;return t}getAncestors(){let e=[],t=this;for(;t;)e.push(t),t=t.__parent;return e}getAncestorAtDepth(e){let t=this.getDepth()-e;return t<0?null:this.getAncestor(t)}isAncestorOf(e){let t=e;for(;t=t.parent;)if(this===t)return!0;return!1}getSharedAncestor(e){let t=this,i=e,s=t.getDepth(),n=i.getDepth();s>n?t=t.getAncestor(s-n):n>s&&(i=i.getAncestor(n-s));do{if(t===i)return t;t=t.__parent,i=i.__parent}while(t&&i);return null}get attached(){return this.__attached}get enabled(){return this.__enabled}get active(){return this.__active}_isAttached(){return this.__parent?this.__parent.__attached:this.stage.root===this}_isEnabled(){return this.__core.visible&&this.__core.alpha>0&&(this.__parent?this.__parent.__enabled:this.stage.root===this)}_isActive(){return this._isEnabled()&&this.withinBoundsMargin}_updateAttachedFlag(){let e=this._isAttached();if(this.__attached!==e){this.__attached=e,e&&this._onSetup();let t=this._children.get();if(t){let i=t.length;if(i>0)for(let s=0;s0)for(let s=0;se.removeElement(this.__core)),this.__enabled=!1}_setActiveFlag(){this.__active=!0,this.__texture&&this.__texture.incActiveCount(),this.__texture&&this._enableTexture(),this._onActive()}_unsetActiveFlag(){this.__texture&&this.__texture.decActiveCount(),this.__active=!1,this.__texture&&this._disableTexture(),this._hasTexturizer()&&this.texturizer.deactivate(),this._onInactive()}_onSetup(){}_onAttach(){}_onDetach(){}_onEnabled(){}_onDisabled(){}_onActive(){}_onInactive(){}_onResize(){}_getRenderWidth(){return this._w?this._w:this.__displayedTexture?this.__displayedTexture.getRenderWidth():this.__texture?this.__texture.getRenderWidth():0}_getRenderHeight(){return this._h?this._h:this.__displayedTexture?this.__displayedTexture.getRenderHeight():this.__texture?this.__texture.getRenderHeight():0}get renderWidth(){return this.__enabled?this.__core.getRenderWidth():this._getRenderWidth()}get renderHeight(){return this.__enabled?this.__core.getRenderHeight():this._getRenderHeight()}get finalX(){return this.__core.x}get finalY(){return this.__core.y}get finalW(){return this.__core.w}get finalH(){return this.__core.h}textureIsLoaded(){return this.__texture&&this.__texture.isLoaded()}loadTexture(){this.__texture&&(this.__texture.load(),(!this.__texture.isUsed()||!this._isEnabled())&&this._updateDimensions())}_enableTextureError(){let e=this.__texture.loadError;e&&this.emit("txError",e,this.__texture._source)}_enableTexture(){this.__texture.isLoaded()?this._setDisplayedTexture(this.__texture):(this._setDisplayedTexture(null),this._enableTextureError())}_disableTexture(){this._setDisplayedTexture(null)}get texture(){return this.__texture}set texture(e){let t;if(K.isObjectLiteral(e))e.type?t=new e.type(this.stage):t=this.texture,t&&dt.patchObject(t,e);else if(!e)t=null;else if(e.isTexture)t=e;else if(e.isTextureSource)t=new no(this.stage),t.textureSource=e;else{console.error("[Lightning] Please specify a texture type.");return}let i=this.__texture;t!==i&&(this.__texture=t,this.__texture?this.__enabled&&(this.__texture.addElement(this),this.withinBoundsMargin&&(this.__texture.isLoaded()?this._setDisplayedTexture(this.__texture):this._enableTextureError())):this._setDisplayedTexture(null),i&&i!==this.__displayedTexture&&i.removeElement(this),this._updateDimensions())}get displayedTexture(){return this.__displayedTexture}_setDisplayedTexture(e){let t=this.__displayedTexture;t&&e!==t&&this.__texture!==t&&t.removeElement(this);let i=this.__core.displayedTextureSource?this.__core.displayedTextureSource._source:null,s=(e?e._source:null)!==i;this.__displayedTexture=e,this._updateDimensions(),this.__displayedTexture?s&&(this._updateTextureCoords(),this.__core.setDisplayedTextureSource(this.__displayedTexture._source)):this.__core.setDisplayedTextureSource(null),s&&(this.__displayedTexture?this.emit("txLoaded",this.__displayedTexture):this.emit("txUnloaded",this.__displayedTexture))}onTextureSourceLoaded(){this.active&&this._setDisplayedTexture(this.__texture)}onTextureSourceLoadError(e){this.emit("txError",e,this.__texture._source)}forceRenderUpdate(){this.__core.setHasRenderUpdates(3)}onDisplayedTextureClippingChanged(){this._updateDimensions(),this._updateTextureCoords()}onPrecisionChanged(){this._updateDimensions()}onDimensionsChanged(e,t){this.texture instanceof nr&&(this.texture.w=e,this.texture.h=t,this.w=e,this.h=t)}_updateDimensions(){let e=this._getRenderWidth(),t=this._getRenderHeight(),i=!1;(!e||!t)&&!this.__displayedTexture&&this.__texture&&(e=e||this.__texture.mw,t=t||this.__texture.mh,(!e||!t)&&this.__texture.isAutosizeTexture()&&(i=!0)),this.__core.setDimensions(e,t,i)&&this._onResize()}_updateTextureCoords(){if(this.displayedTexture&&this.displayedTexture._source){let e=this.displayedTexture,t=this.displayedTexture._source,i=0,s=0,n=1,o=1;if(e.clipping){let a=t.getRenderWidth(),l=t.getRenderHeight(),u,c,g,m;u=1/a,c=1/l,e.pw?g=e.pw*u:g=(a-e.px)*u,e.ph?m=e.ph*c:m=(l-e.py)*c,u*=e.px,c*=e.py,i=u,s=c,n=n*g+u,o=o*m+c,i=Math.max(0,i),s=Math.max(0,s),n=Math.min(1,n),o=Math.min(1,o)}if(t._flipTextureY){let a=o;o=s,s=a}this.__core.setTextureCoords(i,s,n,o)}}getCornerPoints(){return this.__core.getCornerPoints()}_unsetTagsParent(){this.__tags&&this.__tags.forEach(i=>{let s=this;for(;(s=s.__parent)&&(s.__treeTags.get(i).delete(this),!s.__tagRoot););});let e=null,t=0;if(this.__treeTags&&!this.__tagRoot&&(e=K.iteratorToArray(this.__treeTags.keys()),t=e.length,t>0))for(let i=0;i{let t=this;for(;t=t.__parent;){t.__treeTags||(t.__treeTags=new Map);let i=t.__treeTags.get(e);if(i||(i=new Set,t.__treeTags.set(e,i)),i.add(this),t.__tagRoot)break}}),this.__treeTags&&this.__treeTags.size&&(this.__tagRoot||this.__treeTags.forEach((e,t)=>{let i=this;for(;!i.__tagRoot&&(i=i.__parent);){i.__tagRoot,i.__treeTags||(i.__treeTags=new Map);let s=i.__treeTags.get(t);s||(s=new Set,i.__treeTags.set(t,s)),e.forEach(function(n){s.add(n)})}}))}_getByTag(e){if(!this.__treeTags)return[];let t=this.__treeTags.get(e);return t?K.setToArray(t):[]}getTags(){return this.__tags?this.__tags:[]}setTags(e){e=e.reduce((a,l)=>a.concat(l.split(" ")),[]),this.__ref&&e.push(this.__ref);let t,i=e.length,s=[],n=[];for(t=0;t=0){let i=e.split("."),s=this._getByTag(i[0]),n=1,o=i.length;for(;s.length&&n");if(t===-1&&i===-1)return this.mtag(e);let s;return i===0?(s=!0,e=e.substr(1)):t===0?(s=!1,e=e.substr(1)):s=!1,this._selectChilds(e,s)}_selectChilds(e,t){let i=e.indexOf("."),s=e.indexOf(">");if(i===-1&&s===-1)if(t){let n=this.getByRef(e);return n?[n]:[]}else return this.mtag(e);if(s===-1||i!==-1&&i{e.children[o.ref]=o}))}}return e.id=this.id,e}getNonDefaults(){let e={};if(this.constructor!==r&&(e.type=this.constructor.name),this.__ref&&(e.ref=this.__ref),this.__tags&&this.__tags.length&&(e.tags=this.__tags),this.x!==0&&(e.x=this.x),this.y!==0&&(e.y=this.y),this.w!==0&&(e.w=this.w),this.h!==0&&(e.h=this.h),this.scaleX===this.scaleY?this.scaleX!==1&&(e.scale=this.scaleX):(this.scaleX!==1&&(e.scaleX=this.scaleX),this.scaleY!==1&&(e.scaleY=this.scaleY)),this.pivotX===this.pivotY?this.pivotX!==.5&&(e.pivot=this.pivotX):(this.pivotX!==.5&&(e.pivotX=this.pivotX),this.pivotY!==.5&&(e.pivotY=this.pivotY)),this.mountX===this.mountY?this.mountX!==0&&(e.mount=this.mountX):(this.mountX!==0&&(e.mountX=this.mountX),this.mountY!==0&&(e.mountY=this.mountY)),this.alpha!==1&&(e.alpha=this.alpha),this.visible||(e.visible=!1),this.rotation!==0&&(e.rotation=this.rotation),this.colorUl===this.colorUr&&this.colorBl===this.colorBr&&this.colorUl===this.colorBl?this.colorUl!==4294967295&&(e.color=this.colorUl.toString(16)):(this.colorUl!==4294967295&&(e.colorUl=this.colorUl.toString(16)),this.colorUr!==4294967295&&(e.colorUr=this.colorUr.toString(16)),this.colorBl!==4294967295&&(e.colorBl=this.colorBl.toString(16)),this.colorBr!==4294967295&&(e.colorBr=this.colorBr.toString(16))),this.zIndex&&(e.zIndex=this.zIndex),this.forceZIndexContext&&(e.forceZIndexContext=!0),this.clipping&&(e.clipping=this.clipping),this.clipbox||(e.clipbox=this.clipbox),this.__texture){let t=this.__texture.getNonDefaults();Object.keys(t).length&&(e.texture=t)}if(this.shader&&K.isFunction(this.shader.getNonDefaults)){let t=this.shader.getNonDefaults();Object.keys(t).length&&(e.shader=t)}return this._hasTexturizer()&&(this.texturizer.enabled&&(e.renderToTexture=this.texturizer.enabled),this.texturizer.lazy&&(e.renderToTextureLazy=this.texturizer.lazy),this.texturizer.colorize&&(e.colorizeResultTexture=this.texturizer.colorize),this.texturizer.renderOffscreen&&(e.renderOffscreen=this.texturizer.renderOffscreen)),e}static getGetter(e){let t=r.PROP_GETTERS.get(e);return t||(t=new Function("obj","return obj."+e),r.PROP_GETTERS.set(e,t)),t}static getSetter(e){let t=r.PROP_SETTERS.get(e);return t||(t=new Function("obj","v","obj."+e+" = v"),r.PROP_SETTERS.set(e,t)),t}get withinBoundsMargin(){return this.__core._withinBoundsMargin}_enableWithinBoundsMargin(){this.__enabled&&this._setActiveFlag()}_disableWithinBoundsMargin(){this.__active&&this._unsetActiveFlag()}set boundsMargin(e){if(!Array.isArray(e)&&e!==null)throw new Error("boundsMargin should be an array of left-top-right-bottom values or null (inherit margin)");this.__core.boundsMargin=e}get boundsMargin(){return this.__core.boundsMargin}get x(){return this.__core.offsetX}set x(e){this.__core.offsetX=e}get y(){return this.__core.offsetY}set y(e){this.__core.offsetY=e}get w(){return this._w}set w(e){K.isFunction(e)?(this._w=0,this.__core.funcW=e):(e=Math.max(e,0),this._w!==e&&(this.__core.disableFuncW(),this._w=e,this._updateDimensions()))}get h(){return this._h}set h(e){K.isFunction(e)?(this._h=0,this.__core.funcH=e):(e=Math.max(e,0),this._h!==e&&(this.__core.disableFuncH(),this._h=e,this._updateDimensions()))}get collision(){return this._collision}set collision(e){this._collision=e}_updateCollision(){this.collision&&this.__parent&&this.__parent.collision===void 0&&(this.__parent.collision=2)}get scaleX(){return this.__core.scaleX}set scaleX(e){this.__core.scaleX=e}get scaleY(){return this.__core.scaleY}set scaleY(e){this.__core.scaleY=e}get scale(){return this.__core.scale}set scale(e){this.__core.scale=e}get pivotX(){return this.__core.pivotX}set pivotX(e){this.__core.pivotX=e}get pivotY(){return this.__core.pivotY}set pivotY(e){this.__core.pivotY=e}get pivot(){return this.__core.pivot}set pivot(e){this.__core.pivot=e}get mountX(){return this.__core.mountX}set mountX(e){this.__core.mountX=e}get mountY(){return this.__core.mountY}set mountY(e){this.__core.mountY=e}get mount(){return this.__core.mount}set mount(e){this.__core.mount=e}get rotation(){return this.__core.rotation}set rotation(e){this.__core.rotation=e}get alpha(){return this.__core.alpha}set alpha(e){this.__core.alpha=e}get visible(){return this.__core.visible}set visible(e){this.__core.visible=e}get colorUl(){return this.__core.colorUl}set colorUl(e){this.__core.colorUl=e}get colorUr(){return this.__core.colorUr}set colorUr(e){this.__core.colorUr=e}get colorBl(){return this.__core.colorBl}set colorBl(e){this.__core.colorBl=e}get colorBr(){return this.__core.colorBr}set colorBr(e){this.__core.colorBr=e}get color(){return this.__core.colorUl}set color(e){(this.colorUl!==e||this.colorUr!==e||this.colorBl!==e||this.colorBr!==e)&&(this.colorUl=e,this.colorUr=e,this.colorBl=e,this.colorBr=e)}get colorTop(){return this.colorUl}set colorTop(e){(this.colorUl!==e||this.colorUr!==e)&&(this.colorUl=e,this.colorUr=e)}get colorBottom(){return this.colorBl}set colorBottom(e){(this.colorBl!==e||this.colorBr!==e)&&(this.colorBl=e,this.colorBr=e)}get colorLeft(){return this.colorUl}set colorLeft(e){(this.colorUl!==e||this.colorBl!==e)&&(this.colorUl=e,this.colorBl=e)}get colorRight(){return this.colorUr}set colorRight(e){(this.colorUr!==e||this.colorBr!==e)&&(this.colorUr=e,this.colorBr=e)}get zIndex(){return this.__core.zIndex}set zIndex(e){this.__core.zIndex=e}get forceZIndexContext(){return this.__core.forceZIndexContext}set forceZIndexContext(e){this.__core.forceZIndexContext=e}get clipping(){return this.__core.clipping}set clipping(e){this.__core.clipping=e}get clipbox(){return this.__core.clipbox}set clipbox(e){this.__core.clipbox=e}get tags(){return this.getTags()}set tags(e){Array.isArray(e)||(e=[e]),this.setTags(e)}set t(e){this.tags=e}get _children(){return this.__childList||(this.__childList=new ql(this,!1)),this.__childList}get childList(){return this._allowChildrenAccess()||this._throwError("Direct access to children is not allowed in "+this.getLocationString()),this._children}hasChildren(){return this._allowChildrenAccess()&&this.__childList&&this.__childList.length>0}_allowChildrenAccess(){return!0}get children(){return this.childList.get()}set children(e){this.childList.patch(e)}add(e){return this.childList.a(e)}get p(){return this.__parent}get parent(){return this.__parent}get src(){if(this.texture&&this.texture instanceof ps)return this.texture._src}set src(e){let t=new ps(this.stage);t.src=e,this.texture=t}set mw(e){this.texture?(this.texture.mw=e,this._updateDimensions()):this._throwError("Please set mw after setting a texture.")}set mh(e){this.texture?(this.texture.mh=e,this._updateDimensions()):this._throwError("Please set mh after setting a texture.")}get rect(){return this.texture===this.stage.rectangleTexture}set rect(e){e?this.texture=this.stage.rectangleTexture:this.texture=null}enableTextTexture(){return(!this.texture||!(this.texture instanceof nr))&&(this.texture=new nr(this.stage),!this.texture.w&&!this.texture.h&&(this.texture.w=this.w,this.texture.h=this.h)),this.texture}get text(){return this.texture&&this.texture instanceof nr?this.texture:null}set text(e){(!this.texture||!(this.texture instanceof nr))&&this.enableTextTexture(),K.isString(e)?this.texture.text=e:this.texture.patch(e)}set onUpdate(e){this.__core.onUpdate=e}set onAfterCalcs(e){this.__core.onAfterCalcs=e}set onAfterUpdate(e){this.__core.onAfterUpdate=e}forceUpdate(){this.__core._setHasUpdates()}get shader(){return this.__core.shader}set shader(e){if(K.isObjectLiteral(e)&&!e.type)this.shader&&this.shader.patch(e);else{let t=qr.create(this.stage,e);this.__enabled&&this.__core.shader&&this.__core.shader.removeElement(this.__core),this.__core.shader=t,this.__enabled&&this.__core.shader&&this.__core.shader.addElement(this.__core)}}_hasTexturizer(){return!!this.__core._texturizer}get renderToTexture(){return this.rtt}set renderToTexture(e){this.rtt=e}get rtt(){return this._hasTexturizer()&&this.texturizer.enabled}set rtt(e){this.texturizer.enabled=e}get rttLazy(){return this._hasTexturizer()&&this.texturizer.lazy}set rttLazy(e){this.texturizer.lazy=e}get renderOffscreen(){return this._hasTexturizer()&&this.texturizer.renderOffscreen}set renderOffscreen(e){this.texturizer.renderOffscreen=e}get colorizeResultTexture(){return this._hasTexturizer()&&this.texturizer.colorize}set colorizeResultTexture(e){this.texturizer.colorize=e}getTexture(){return this.texturizer._getTextureSource()}get texturizer(){return this.__core.texturizer}patch(e){let t=Object.keys(e);for(let i=0,s=t.length;i{this.transition(i,e[i])})}set smooth(e){Object.keys(e).forEach(i=>{let s=e[i];Array.isArray(s)?this.setSmooth(i,s[0],s[1]):this.setSmooth(i,s)})}fastForward(e){if(this._transitions){let t=this._transitions[e];t&&t.isTransition&&t.finish()}}_getTransition(e){this._transitions||(this._transitions={});let t=this._transitions[e];return t?t.isTransitionSettings&&(t=new fs(this.stage.transitions,t,this,e)):t=new fs(this.stage.transitions,this.stage.transitions.defaultTransitionSettings,this,e),this._transitions[e]=t,t}_setTransition(e,t){if(!t)this._removeTransition(e);else{K.isObjectLiteral(t)&&(t=this.stage.transitions.createSettings(t)),this._transitions||(this._transitions={});let i=this._transitions[e];if(i&&i.isTransition)return i.settings=t,i;this._transitions[e]=t}}_removeTransition(e){this._transitions&&delete this._transitions[e]}getSmooth(e,t){let i=this._getTransition(e);return i&&i.isAttached()?i.targetValue:t}setSmooth(e,t,i){i&&this._setTransition(e,i);let s=this._getTransition(e);return s.start(t),s}get flex(){return this.__core.flex}set flex(e){this.__core.flex=e}get flexItem(){return this.__core.flexItem}set flexItem(e){this.__core.flexItem=e}static isColorProperty(e){return e.toLowerCase().indexOf("color")>=0}static getMerger(e){return r.isColorProperty(e)?fe.mergeColors:fe.mergeNumbers}toJSON(){let e=[`${this.constructor.name}`],t={};return t[e]={},this.hasChildren()?r.collectChildren(t[e],this.__childList):t[e]={...r.getProperties(this)},t}static collectChildren(e,t){let i=t;for(let s=0,n=i.length;st;)i.push(e),e=e.__parent;return i}static _getSharedState(e,t){let i=r._getAncestorStates(e),s=r._getAncestorStates(t),n=Math.min(i.length,s.length);for(let o=0;oe.__level)){for(;t{this._addMemberRouter(t)})}_addMemberRouter(e){let t=Object.keys(this._stateMap),i=[],s=[];t.forEach((o,a)=>{let l=this._stateMap[o],u=this._getDescriptor(l,e);if(u){i[a]=u;let c=r.getStateMemberAlias(u._source.__path,e);s[a]=c,this._router.prototype.hasOwnProperty(c)||Object.defineProperty(this._router.prototype,c,u)}else i[a]=null,s[a]=null});let n;switch(i.forEach(o=>{if(o){let a=this._getDescriptorType(o);if(n&&n!==a){console.warn(`[Lightning] Member ${e} in ${this._type.name} has inconsistent types.`);return}n=a}}),n){case"method":this._addMethodRouter(e,i,s);break;case"getter":this._addGetterSetterRouters(e);break;case"property":console.warn("[Lightning] Fixed properties are not supported; please use a getter instead!");break}}_getDescriptor(e,t,i=()=>!0){let s=e,n=e;do{let o=Object.getOwnPropertyDescriptor(s.prototype,t);if(o&&i(o))return o._source=n,o;s=Object.getPrototypeOf(s),s&&s.hasOwnProperty("__state")&&(n=s)}while(s&&s.prototype)}_getDescriptorType(e){return e.get||e.set?"getter":typeof e.value=="function"?"method":"property"}static _supportsSpread(){if(this.__supportsSpread===void 0){this.__supportsSpread=!1;try{new Function("return [].concat(...arguments);")(),this.__supportsSpread=!0}catch{}}return this.__supportsSpread}_addMethodRouter(e,t,i){let s=["//@ sourceURL=StateMachineRouter.js","var i = this._stateIndex;"],n=i[0],o=r._supportsSpread();for(let c=1,g=i.length;c{let c=this._stateMap[l],g=this._getDescriptor(c,e,m=>m.get);if(g){let m=r.getStateMemberAlias(g._source.__path,e);i[u]=m,this._router.prototype.hasOwnProperty(m)||Object.defineProperty(this._router.prototype,m,g)}else i[u]=null});let s=["//@ sourceURL=StateMachineRouter.js","var i = this._stateIndex;"],n=i[0];for(let l=1,u=i.length;l{let c=this._stateMap[l],g=this._getDescriptor(c,e,m=>m.set);if(g){let m=r.getStateMemberAlias(g._source.__path,e);i[u]=m,this._router.prototype.hasOwnProperty(m)||Object.defineProperty(this._router.prototype,m,g)}else i[u]=null});let s=["//@ sourceURL=StateMachineRouter.js","var i = this._stateIndex;"],n=i[0];for(let l=1,u=i.length;l{if(s==="")return;let n=e[s];this._getStateMemberNames(n).forEach(a=>{i.add(a)})}),[...i]}_getStateMemberNames(e){let t=e,i=new Set,s=this._type===e;do this._getStateMemberNamesForType(t).forEach(o=>{i.add(o)}),t=Object.getPrototypeOf(t);while(t&&t.prototype&&(!t.hasOwnProperty("__state")||s));return i}_getStateMemberNamesForType(e){return Object.getOwnPropertyNames(e.prototype).filter(i=>i!=="constructor"&&!r._isStateLocalMember(i))}static _isStateLocalMember(e){return e==="$enter"||e==="$exit"}getStateByPath(e){if(this._stateMap[e])return this._stateMap[e];let t=e.split(".");for(;t.pop();){let i=t.join(".");if(this._stateMap[i])return this._stateMap[i]}}_getStateMap(){return this._stateMap||(this._stateMap=this._createStateMap()),this._stateMap}_createStateMap(){let e={};return this._addState(this._type,null,"",e),e}_addState(e,t,i,s){e.__state=!0,e.__name=i,this._addStaticStateProperty(e,t);let n=t?t.__path:"",o=(n?n+".":"")+i;e.__path=o,e.__level=t?t.__level+1:0,e.__parent=t,e.__index=Object.keys(s).length,s[o]=e;let a=e._states;a&&(t&&t._states===a||e._states().forEach(c=>{let g=r._getStateName(c);this._addState(c,e,g,s)}))}static _getStateName(e){let t=e.name,i=t.indexOf("$");return i>0?t.substr(0,i):t}_addStaticStateProperty(e,t){t&&(t&&!t.__parent?this._router[e.__name]=e:t[e.__name]=e)}},ht=class r extends yt{constructor(e,t){super(e),this.tagRoot=!0,K.isObjectLiteral(t)&&Object.assign(this,t),this.__initialized=!1,this.__firstActive=!1,this.__firstEnable=!1,this.__signals=void 0,this.__passSignals=void 0,this.__construct();let i=this.constructor.getTemplateFunc(this);i.f(this,i.a),this._build()}__start(){gs.setupStateMachine(this),this._onStateChange=r.prototype.__onStateChange}get state(){return this._getState()}__onStateChange(){this.application&&this.application.updateFocusPath()}_refocus(){this.application&&this.application.updateFocusPath()}static bindProp(e,t=null){return{__propertyBinding:!0,__name:e,__func:t}}__bindProperty(e,t,i){let s=t,n=i,o=Array.isArray(e.__name)?e.__name:[e.__name];for(let a=0;ac[l];this.hasOwnProperty(l)?this[`__prop_bindings_${l}`].push({__obj:s,__prop:n,__func:u}):(this[`__prop_bindings_${l}`]=[{__obj:s,__prop:n,__func:u}],Object.defineProperty(this,l,{set:c=>{this[`__prop_${l}`]=c;for(let{__obj:g,__prop:m,__func:y}of this[`__prop_bindings_${l}`])g[m]=y(this)},get:()=>this[`__prop_${l}`]}))}}static getTemplateFunc(e){let t="_templateFunc",i="__has"+t;return this[i]!==this&&(this[i]=this,this[t]=this.parseTemplate(this._template(e))),this[t]}static parseTemplate(e){let t={loc:[],store:[],rid:0};this.parseTemplateRec(e,t,"element");let i=t.loc.join(`; +`);return{f:new Function("element","store",i),a:t.store}}static parseTemplateRec(e,t,i){let s=t.store,n=t.loc;Object.keys(e).forEach(a=>{let l=e[a];if(K.isUcChar(a.charCodeAt(0)))if(K.isObjectLiteral(l)){let u=`r${a.replace(/[^a-z0-9]/gi,"")+t.rid}`,c=l.type?l.type:yt;c===yt?n.push(`var ${u} = element.stage.createElement()`):(s.push(c),n.push(`var ${u} = new store[${s.length-1}](${i}.stage)`)),n.push(`${u}.ref = "${a}"`),t.rid++,this.parseTemplateRec(l,t,u),n.push(`${i}.childList.add(${u})`)}else K.isObject(l)&&(s.push(l),n.push(`${i}.childList.add(store[${s.length-1}])`));else if(a==="text"){let u=i+"__text";n.push(`var ${u} = ${i}.enableTextTexture()`),l.__propertyBinding===!0?(s.push(l),n.push(`element.__bindProperty(store[${s.length-1}], ${i}, "${a}")`)):this.parseTemplatePropRec(l,t,u)}else if(a==="shader"&&K.isObjectLiteral(l)){let u=`${i}["shader"]`;s.push(l),n.push(`${i}["${a}"] = store[${s.length-1}]`),this.parsePropertyBindings(l,t,u)}else if(a==="texture"&&K.isObjectLiteral(l)){let u=i+"__texture",c=l.type;c?(s.push(c),n.push(`var ${u} = new store[${s.length-1}](${i}.stage)`),this.parseTemplatePropRec(l,t,u),n.push(`${i}["${a}"] = ${u}`)):(n.push(`${u} = ${i}.texture`),this.parseTemplatePropRec(l,t,u))}else K.isObjectLiteral(l)&&l.__propertyBinding===!0?(s.push(l),n.push(`element.__bindProperty(store[${s.length-1}], ${i}, "${a}")`)):K.isNumber(l)?n.push(`${i}["${a}"] = ${l}`):K.isBoolean(l)?n.push(`${i}["${a}"] = ${l?"true":"false"}`):K.isObject(l)||Array.isArray(l)?(s.push(l),n.push(`${i}["${a}"] = store[${s.length-1}]`)):n.push(`${i}["${a}"] = ${JSON.stringify(l)}`)})}static parseTemplatePropRec(e,t,i){let s=t.store,n=t.loc;Object.keys(e).forEach(a=>{if(a!=="type"){let l=e[a];K.isNumber(l)?n.push(`${i}["${a}"] = ${l}`):K.isBoolean(l)?n.push(`${i}["${a}"] = ${l?"true":"false"}`):K.isObject(l)&&l.__propertyBinding===!0?(s.push(l),n.push(`element.__bindProperty(store[${s.length-1}], ${i}, "${a}")`)):K.isObject(l)||Array.isArray(l)?(s.push(l),n.push(`${i}["${a}"] = store[${s.length-1}]`)):n.push(`${i}["${a}"] = ${JSON.stringify(l)}`)}})}static parsePropertyBindings(e,t,i){let s=t.store,n=t.loc;Object.keys(e).forEach(a=>{if(a!=="type"){let l=e[a];K.isObjectLiteral(l)&&l.__propertyBinding===!0&&(s.push(l),n.push(`element.__bindProperty(store[${s.length-1}], ${i}, "${a}")`))}})}_onSetup(){this.__initialized||this._setup()}_setup(){}_onAttach(){this.__initialized||(this.__init(),this.__initialized=!0),this._attach()}_attach(){}_onDetach(){this._detach()}_detach(){}_onEnabled(){this.__firstEnable||(this._firstEnable(),this.__firstEnable=!0),this._enable()}_firstEnable(){}_enable(){}_onDisabled(){this._disable()}_disable(){}_onActive(){this.__firstActive||(this._firstActive(),this.__firstActive=!0),this._active()}_firstActive(){}_active(){}_onInactive(){this._inactive()}_inactive(){}get application(){return this.stage.application}__construct(){this._construct()}_construct(){}_build(){}__init(){this._init()}_init(){}_focus(e,t){}_unfocus(e){}_focusChange(e,t){}_getFocused(){return this}_setFocusSettings(e){}_handleFocusSettings(e){}static _template(){return{}}hasFinalFocus(){let e=this.application._focusPath;return e&&e.length&&e[e.length-1]===this}hasFocus(){let e=this.application._focusPath;return e&&e.indexOf(this)>=0}get cparent(){return r.getParent(this)}seekAncestorByType(e){let t=this.cparent;for(;t;){if(t.constructor===e)return t;t=t.cparent}}getSharedAncestorComponent(e){let t=this.getSharedAncestor(e);for(;t&&!t.isComponent;)t=t.parent;return t}get signals(){return this.__signals}set signals(e){K.isObjectLiteral(e)||this._throwError("Signals: specify an object with signal-to-fire mappings"),this.__signals=e}set alterSignals(e){K.isObjectLiteral(e)||this._throwError("Signals: specify an object with signal-to-fire mappings"),this.__signals||(this.__signals={});for(let t in e)e[t]===void 0?delete this.__signals[t]:this.__signals[t]=e}get passSignals(){return this.__passSignals||{}}set passSignals(e){this.__passSignals=Object.assign(this.__passSignals||{},e)}set alterPassSignals(e){K.isObjectLiteral(e)||this._throwError("Signals: specify an object with signal-to-fire mappings"),this.__passSignals||(this.__passSignals={});for(let t in e)e[t]===void 0?delete this.__passSignals[t]:this.__passSignals[t]=e}signal(e,...t){return this._signal(e,t)}_signal(e,t){let i=this._getParentSignalHandler();if(i){if(this.__signals){let n=this.__signals[e];if(n===!1)return;if(n){if(n===!0&&(n=e),K.isFunction(n))return n(...t);if(i._hasMethod(n))return i[n](...t)}}let s=this.__passSignals&&this.__passSignals[e];if(s)return s&&s!==!0&&(e=s),i._signal(e,t)}}_getParentSignalHandler(){return this.cparent?this.cparent._getSignalHandler():null}_getSignalHandler(){return this._signalProxy?this.cparent?this.cparent._getSignalHandler():null:this}get _signalProxy(){return!1}fireAncestors(e,...t){if(!e.startsWith("$"))throw new Error("Ancestor event name must be prefixed by dollar sign.");let i=this._getParentSignalHandler();if(i)return i._doFireAncestors(e,t)}_doFireAncestors(e,t){if(this._hasMethod(e))return this.fire(e,...t);{let i=this._getParentSignalHandler();if(i)return i._doFireAncestors(e,t)}}static collectSubComponents(e,t){if(t.hasChildren()){let i=t.__childList;for(let s=0,n=i.length;s0&&this._quadOperation.scissor[3]>0)&&this.quadOperations.push(this._quadOperation),this._temporaryTexturizers.length){for(let t=0,i=this._temporaryTexturizers.length;t""+ ++s+": "+n).join(` +`)),null}return i}getUniformLocation(e){let t=this._uniformLocations.get(e);return t===void 0&&(t=this.gl.getUniformLocation(this._program,e),this._uniformLocations.set(e,t)),t}getAttribLocation(e){let t=this._attributeLocations.get(e);return t===void 0&&(t=this.gl.getAttribLocation(this._program,e),this._attributeLocations.set(e,t)),t}destroy(){this._program&&this.gl.deleteProgram(this._program),this._attributeLocations=null,this._currentUniformValues=null,this.fragmentShaderSource=null,this._program=null,this.gl=null,this._uniformLocations=null,this.vertexShaderSource=null,delete this.vertexShaderSource,delete this._program,delete this._currentUniformValues,delete this.fragmentShaderSource,delete this.gl,delete this._uniformLocations,delete this._attributeLocations}get glProgram(){return this._program}get compiled(){return!!this._program}_valueEquals(e,t){if(e.length&&t.length){for(let i=0,s=e.length;ie.destroy()),this.shaderPrograms=null,this._compressedTextureExtensions=null,delete this.shaderPrograms,delete this._compressedTextureExtensions}_createDefaultShader(e){return new Ae(e)}_getShaderBaseType(){return _i}_getShaderAlternative(e){return e.getWebGL&&e.getWebGL()}createCoreQuadList(e){return new $l(e)}createCoreQuadOperation(e,t,i,s,n,o){return new Vl(e,t,i,s,n,o)}createCoreRenderExecutor(e){return new Gl(e)}createCoreRenderState(e){return new ho(e)}createRenderTexture(e,t,i,s){let n=this.stage.gl,o=n.createTexture();return n.bindTexture(n.TEXTURE_2D,o),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,i,s,0,n.RGBA,n.UNSIGNED_BYTE,null),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),o.params={},o.params[n.TEXTURE_MAG_FILTER]=n.LINEAR,o.params[n.TEXTURE_MIN_FILTER]=n.LINEAR,o.params[n.TEXTURE_WRAP_S]=n.CLAMP_TO_EDGE,o.params[n.TEXTURE_WRAP_T]=n.CLAMP_TO_EDGE,o.options={format:n.RGBA,internalFormat:n.RGBA,type:n.UNSIGNED_BYTE},o.framebuffer=n.createFramebuffer(),o.projection=new Float32Array([2/e,2/t]),n.bindFramebuffer(n.FRAMEBUFFER,o.framebuffer),n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,o,0),o}freeRenderTexture(e){let t=this.stage.gl;t.deleteFramebuffer(e.framebuffer),t.deleteTexture(e)}_getBytesPerPixel(e,t){let i=this.stage.gl;if(e===i.RGBA)switch(t){case i.UNSIGNED_BYTE:return 4;case i.UNSIGNED_SHORT_4_4_4_4:return 2;case i.UNSIGNED_SHORT_5_5_5_1:return 2;default:throw new Error("Invalid type specified for GL_RGBA format")}else if(e===i.RGB)switch(t){case i.UNSIGNED_BYTE:return 3;case i.UNSIGNED_BYTE_5_6_5:return 2;default:throw new Error("Invalid type specified for GL_RGB format")}else throw new Error("Invalid format specified in call to _getBytesPerPixel()")}uploadTextureSource(e,t){let i=this.stage.gl,s=t.source,n=!1;t.renderInfo&&(n=t.renderInfo.compressed||!1);let o={premultiplyAlpha:!0,hasAlpha:!0};t&&t.hasOwnProperty("premultiplyAlpha")&&(o.premultiplyAlpha=t.premultiplyAlpha),t&&t.hasOwnProperty("flipBlueRed")&&(o.flipBlueRed=t.flipBlueRed),t&&t.hasOwnProperty("hasAlpha")&&(o.hasAlpha=t.hasAlpha),o.hasAlpha||(o.premultiplyAlpha=!1),o.texParams=t.texParams||{},o.texOptions=t.texOptions||{};let a=i.createTexture();i.bindTexture(i.TEXTURE_2D,a),i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,o.premultiplyAlpha),K.isNode&&i.pixelStorei(i.UNPACK_FLIP_BLUE_RED,!!o.flipBlueRed);let l=o.texParams;if(l[i.TEXTURE_MAG_FILTER]||(l[i.TEXTURE_MAG_FILTER]=i.LINEAR),l[i.TEXTURE_MIN_FILTER]||(l[i.TEXTURE_MIN_FILTER]=i.LINEAR),l[i.TEXTURE_WRAP_S]||(l[i.TEXTURE_WRAP_S]=i.CLAMP_TO_EDGE),l[i.TEXTURE_WRAP_T]||(l[i.TEXTURE_WRAP_T]=i.CLAMP_TO_EDGE),Object.keys(l).forEach(c=>{let g=l[c];i.texParameteri(i.TEXTURE_2D,parseInt(c),g)}),n)return this.stage.platform.uploadCompressedGlTexture(i,e,s),a;let u=o.texOptions;return u.format=u.format||(o.hasAlpha?i.RGBA:i.RGB),u.type=u.type||i.UNSIGNED_BYTE,u.internalFormat=u.internalFormat||u.format,t&&t.imageRef&&(u.imageRef=t.imageRef),this.stage.platform.uploadGlTexture(i,e,s,u),a.params=K.cloneObjShallow(l),a.options=K.cloneObjShallow(u),a.bytesPerPixel=this._getBytesPerPixel(u.format,u.type),a}freeTextureSource(e){this.stage.gl.deleteTexture(e.nativeTexture)}addQuad(e,t,i){let s=i*20,n=t.quadElements[i],o=n._renderContext,a=e.quads.floats,l=e.quads.uints,u=fe.mergeColorAlpha;if(o.tb!==0||o.tc!==0)a[s++]=o.px,a[s++]=o.py,a[s++]=n._ulx,a[s++]=n._uly,l[s++]=u(n._colorUl,o.alpha),a[s++]=o.px+n._w*o.ta,a[s++]=o.py+n._w*o.tc,a[s++]=n._brx,a[s++]=n._uly,l[s++]=u(n._colorUr,o.alpha),a[s++]=o.px+n._w*o.ta+n._h*o.tb,a[s++]=o.py+n._w*o.tc+n._h*o.td,a[s++]=n._brx,a[s++]=n._bry,l[s++]=u(n._colorBr,o.alpha),a[s++]=o.px+n._h*o.tb,a[s++]=o.py+n._h*o.td,a[s++]=n._ulx,a[s++]=n._bry,l[s]=u(n._colorBl,o.alpha);else{let c=o.px+n._w*o.ta,g=o.py+n._h*o.td;a[s++]=o.px,a[s++]=o.py,a[s++]=n._ulx,a[s++]=n._uly,l[s++]=u(n._colorUl,o.alpha),a[s++]=c,a[s++]=o.py,a[s++]=n._brx,a[s++]=n._uly,l[s++]=u(n._colorUr,o.alpha),a[s++]=c,a[s++]=g,a[s++]=n._brx,a[s++]=n._bry,l[s++]=u(n._colorBr,o.alpha),a[s++]=o.px,a[s++]=g,a[s++]=n._ulx,a[s++]=n._bry,l[s]=u(n._colorBl,o.alpha)}}isRenderTextureReusable(e,t){let i=e._renderTextureInfo.offset*80/4,s=e.quads.floats,n=e.quads.uints;return s[i]===0&&s[i+1]===0&&s[i+2]===0&&s[i+3]===0&&n[i+4]===4294967295&&s[i+5]===t.w&&s[i+6]===0&&s[i+7]===1&&s[i+8]===0&&n[i+9]===4294967295&&s[i+10]===t.w&&s[i+11]===t.h&&s[i+12]===1&&s[i+13]===1&&n[i+14]===4294967295&&s[i+15]===0&&s[i+16]===t.h&&s[i+17]===0&&s[i+18]===1&&n[i+19]===4294967295}finishRenderState(e){let t=e.length*80;for(let i=0,s=e.quadOperations.length;in.u&&this._tintTexture(n.tx,e,t),n.tx;{let o=s.memoryUsage,a=s.reuseTexture(i);a?a.ctx.clearRect(0,0,a.width,a.height):(a=document.createElement("canvas"),a.width=e.w,a.height=e.h,a.ctx=a.getContext("2d")),this._tintTexture(a,e,t),s.set(t,a,i);let l=s.memoryUsage;return l!==o&&this._addMemoryUsage(l-o),a}}_tintTexture(e,t,i){let s=i.toString(16);for(;s.length<6;)s="0"+s;e.ctx.fillStyle="#"+s,e.ctx.globalCompositeOperation="copy",e.ctx.fillRect(0,0,t.w,t.h),e.ctx.globalCompositeOperation="multiply",e.ctx.drawImage(t,0,0,t.w,t.h,0,0,e.width,e.height),e.ctx.globalCompositeOperation="destination-in",e.ctx.drawImage(t,0,0,t.w,t.h,0,0,e.width,e.height)}_hasCache(e){return!!e._tintCache}_getCache(e){return e._tintCache||(e._tintCache=new Zl(e)),e._tintCache}gc(e=!1){let t=this.stage.frameCounter,i=0;this._cachedNativeTextures.forEach(s=>{let n=this._getCache(s);if(e)i+=n.memoryUsage,n.clear();else{let o=n.memoryUsage;n.cleanup(t),n.releaseBlancoTextures(),i+=n.memoryUsage-o}}),e&&this._cachedNativeTextures.clear(),i&&this._addMemoryUsage(i)}},Zl=class{constructor(e){this._tx=e,this._colors=new Map,this._blancoTextures=null,this._lastCleanupFrame=0,this._memTextures=0}get memoryUsage(){return this._memTextures*this._tx.w*this._tx.h}releaseBlancoTextures(){this._memTextures-=this._blancoTextures.length,this._blancoTextures=[]}clear(){this._blancoTextures=null,this._colors.clear(),this._memTextures=0}get(e){let t=this._colors.get(e);return t||(t={lf:-1,tx:void 0,u:-1},this._colors.set(e,t)),t}set(e,t,i){let s=this.get(e);s.lf=i,s.tx=t,s.u=i,this._memTextures++}cleanup(e){this._lastCleanupFrame!==e&&(this._blancoTextures=[],this._colors.forEach((t,i)=>{t.lf0?o-1:o,u=this.ctx.stage.getOption("precision"),c=e.getElementCore(l);this.ctx.stage.platform.paint(t,s.options.imageRef,c._worldContext.px*u,c._worldContext.py*u,c._colorUl,c)}else t.bindTexture(t.TEXTURE_2D,s),t.drawElements(t.TRIANGLES,6*(o-n),t.UNSIGNED_SHORT,(n+e.index)*6*2);s=a,n=o}}if(n{if(s.data&&s.data.id){let n=s.data.id,o=this._items.get(n);o&&(s.data.type=="data"?this.finish(o,s.data.info):this.error(o,s.data.info))}}}create(e){let t=++this._id,i=new iu(this,t,e);return this._items.set(t,i),this._worker.postMessage({type:"add",id:t,src:e}),i}cancel(e){this._worker.postMessage({type:"cancel",id:e.id}),this._items.delete(e.id)}error(e,t){e.error(t),this._items.delete(e.id)}finish(e,t){e.load(t),this._items.delete(e.id)}},iu=class{constructor(e,t,i){this._manager=e,this._id=t,this._src=i,this._onError=null,this._onLoad=null}get id(){return this._id}get src(){return this._src}set onError(e){this._onError=e}set onLoad(e){this._onLoad=e}cancel(){this._manager.cancel(this)}load(e){this._onLoad&&this._onLoad(e)}error(e){this._onError&&this._onError(e)}},O1=function(){function r(){this.items=new Map;var t=this;onmessage=function(i){t._receiveMessage(i)}}r.isPathAbsolute=function(t){return/^(?:\/|[a-z]+:\/\/)/.test(t)||t.substr(0,5)=="data:"},r.prototype._receiveMessage=function(t){if(t.data.type==="config"){this.config=t.data.config;var i=this.config.path,s=/#.*?\//;s.test(i)&&(i=i.replace(/#.*$/,""));var n=i.split("/");n.pop(),this._relativeBase=n.join("/")+"/"}else t.data.type==="add"?this.add(t.data.id,t.data.src):t.data.type==="cancel"&&this.cancel(t.data.id)},r.prototype.add=function(t,i){r.isPathAbsolute(i)||(i=this._relativeBase+i),i.substr(0,2)==="//"&&(i=this.config.protocol+i);var s=new e(t,i),n=this;s.onFinish=function(o){n.finish(s,o)},s.onError=function(o){n.error(s,o)},this.items.set(t,s),s.start()},r.prototype.cancel=function(t){var i=this.items.get(t);i&&(i.cancel(),this.items.delete(t))},r.prototype.finish=function(t,{imageBitmap:i,hasAlphaChannel:s}){postMessage({type:"data",id:t.id,info:{imageBitmap:i,hasAlphaChannel:s}},[i]),this.items.delete(t.id)},r.prototype.error=function(t,{type:i,message:s}){postMessage({type:"error",id:t.id,info:{type:i,message:s}}),this.items.delete(t.id)},r.isWPEBrowser=function(){return navigator.userAgent.indexOf("WPE")!==-1};function e(t,i){this._onError=void 0,this._onFinish=void 0,this._id=t,this._src=i,this._xhr=void 0,this._mimeType=void 0,this._canceled=!1}Object.defineProperty(e.prototype,"id",{get:function(){return this._id}}),Object.defineProperty(e.prototype,"onFinish",{get:function(){return this._onFinish},set:function(t){this._onFinish=t}}),Object.defineProperty(e.prototype,"onError",{get:function(){return this._onError},set:function(t){this._onError=t}}),e.prototype.start=function(){this._xhr=new XMLHttpRequest,this._xhr.open("GET",this._src,!0),this._xhr.responseType="blob";var t=this;this._xhr.onerror=function(i){t.error({type:"connection",message:"Connection error"})},this._xhr.onload=function(i){var s=t._xhr.response;t._mimeType=s.type,t._createImageBitmap(s)},this._xhr.send()},e.prototype._createImageBitmap=function(t){var i=this;createImageBitmap(t,{premultiplyAlpha:"premultiply",colorSpaceConversion:"none",imageOrientation:"none"}).then(function(s){i.finish({imageBitmap:s,hasAlphaChannel:i._hasAlphaChannel()})}).catch(function(s){i.error({type:"parse",message:"Error parsing image data"})})},e.prototype._hasAlphaChannel=function(){return r.isWPEBrowser()?!0:this._mimeType.indexOf("image/png")!==-1},e.prototype.cancel=function(){this._canceled||(this._xhr&&this._xhr.abort(),this._canceled=!0)},e.prototype.error=function(t,i){!this._canceled&&this._onError&&this._onError({type:t,message:i})},e.prototype.finish=function(t){!this._canceled&&this._onFinish&&this._onFinish(t)},new r},su=class{init(e){this.stage=e,this._looping=!1,this._awaitingLoop=!1,this._loopHandler=null,this._idleLoopCounter=0,this._idleLoopDelay=60,this.stage.getOption("useImageWorker")&&(!window.createImageBitmap||!window.Worker?console.warn("[Lightning] Can't use image worker because browser does not have createImageBitmap and Web Worker support"):this._imageWorker=new ru),this._registerVisibilityChangeHandler()}destroy(){this._imageWorker&&this._imageWorker.destroy(),clearInterval(this._loopHandler),this._removeKeyHandler(),this._removeClickHandler(),this._removeHoverHandler(),this._removeScrollWheelHandler(),this._removeVisibilityChangeHandler(),this.stage=null,delete this.stage}startLoop(){this._looping=!0,this._awaitingLoop||this.loop()}stopLoop(){this._looping=!1}switchLoop(){if(this._idleLoopCounter{this.stage.updateFrame(),this.stage.idleFrame(),this.stage.ctx.hasRenderUpdates()&&(clearInterval(this._loopHandler),this.startLoop())},1e3/60))}loop(){let e=this,t=function(){e._awaitingLoop=!1,e._looping&&(e.stage.updateFrame(),e.stage.getOption("pauseRafLoopOnIdle")&&e.switchLoop(),e.stage.renderFrame(),requestAnimationFrame(t),e._awaitingLoop=!0)};requestAnimationFrame(t)}uploadCompressedGlTexture(e,t,i,s){let n=i.pvr?i.mipmaps[0]:new DataView(i.mipmaps[0]);e.compressedTexImage2D(e.TEXTURE_2D,0,i.glInternalFormat,i.pixelWidth,i.pixelHeight,0,n),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR)}uploadGlTexture(e,t,i,s){if(i instanceof ImageData||i instanceof HTMLImageElement||i instanceof HTMLVideoElement||window.ImageBitmap&&i instanceof ImageBitmap)e.texImage2D(e.TEXTURE_2D,0,s.internalFormat,s.format,s.type,i);else if(i instanceof HTMLCanvasElement){if(K.isZiggo||this.stage.getOption("forceTxCanvasSource"))e.texImage2D(e.TEXTURE_2D,0,s.internalFormat,s.format,s.type,i);else if(i.width>0&&i.height>0){let n=i.getContext("2d");e.texImage2D(e.TEXTURE_2D,0,s.internalFormat,s.format,s.type,n.getImageData(0,0,i.width,i.height))}}else e.texImage2D(e.TEXTURE_2D,0,s.internalFormat,t.w,t.h,0,s.format,s.type,i)}handleKtxLoad(e,t){var i=this;return function(){var s=this.response,n=new DataView(s),o=3632701469;o!==n.getUint32(0)+n.getUint32(4)+n.getUint32(8)&&e("Parsing failed: identifier ktx mismatch:",t);var a=n.getUint32(12)===16909060,l={glType:n.getUint32(16,a),glTypeSize:n.getUint32(20,a),glFormat:n.getUint32(24,a),glInternalFormat:n.getUint32(28,a),glBaseInternalFormat:n.getUint32(32,a),pixelWidth:n.getUint32(36,a),pixelHeight:n.getUint32(40,a),pixelDepth:n.getUint32(44,a),numberOfArrayElements:n.getUint32(48,a),numberOfFaces:n.getUint32(52,a),numberOfMipmapLevels:n.getUint32(56,a),bytesOfKeyValueData:n.getUint32(60,a),kvps:[],mipmaps:[],get width(){return this.pixelWidth},get height(){return this.pixelHeight}};let u=b=>{let C=[];for(let A in b)C.push(b[A]);return C};Object.values(i.stage.renderer.getCompressedTextureExtensions()).filter(b=>b!=null).map(b=>u(b)).reduce((b,C)=>b.concat(C)).includes(l.glInternalFormat)||console.warn("[Lightning] Unrecognized texture extension format:",t,l.glInternalFormat,i.stage.renderer.getCompressedTextureExtensions());var g=64;g+=l.bytesOfKeyValueData;for(var m=0;m>2)*(A+3>>2)*8,P=new Uint8Array(u,m.byteOffset+b,R);y.mipmaps.push(P),b+=R,C=C>>1,A=A>>1}e(null,{source:y,renderInfo:{src:t,compressed:!0}})}}loadSrcTexture({src:e,hasAlpha:t},i){let s,n=e.toLowerCase().indexOf(".png")>=0||e.substr(0,21)=="data:image/png;base64",o=e.indexOf(".ktx")>=0,a=e.indexOf(".pvr")>=0;if(o||a){let l=new XMLHttpRequest;l.addEventListener("load",o?this.handleKtxLoad(i,e):this.handlePvrLoad(i,e)),l.open("GET",e),l.responseType="arraybuffer",l.send(),s=function(){l.abort()}}else if(this._imageWorker){let l=this._imageWorker.create(e);l.onError=function(u){return i("Image load error")},l.onLoad=function({imageBitmap:u,hasAlphaChannel:c}){i(null,{source:u,renderInfo:{src:e,compressed:!1},hasAlpha:c,premultiplyAlpha:!0})},s=function(){l.cancel()}}else{let l=new Image;e.substr(0,5)!="data:"&&!K.isPS4&&(l.crossOrigin="Anonymous"),l.onerror=function(u){if(l.src)return i("Image load error")},l.onload=function(){i(null,{source:l,renderInfo:{src:e,compressed:!1},hasAlpha:n||t})},l.src=e,s=function(){l.onerror=null,l.onload=null,l.removeAttribute("src")}}return s}createWebGLContext(e,t){let i=this.stage.getOption("canvas")||document.createElement("canvas");e&&t&&(i.width=e,i.height=t);let s={alpha:!0,antialias:!1,premultipliedAlpha:!0,stencil:!0,preserveDrawingBuffer:!1},n=i.getContext("webgl",s)||i.getContext("experimental-webgl",s)||i.getContext("webgl2",s);if(!n)throw new Error("This browser does not support webGL.");return n}createCanvasContext(e,t){let i=this.stage.getOption("canvas")||document.createElement("canvas");e&&t&&(i.width=e,i.height=t);let s=i.getContext("2d");if(!s)throw new Error("This browser does not support 2d canvas.");return s}getHrTime(){return window.performance?window.performance.now():new Date().getTime()}getDrawingCanvas(){return document.createElement("canvas")}getTextureOptionsForDrawingCanvas(e){let t={};return t.source=e,t}nextFrame(e){}registerKeydownHandler(e){this._keydownListener=t=>{e(t)},window.addEventListener("keydown",this._keydownListener)}registerKeyupHandler(e){this._keyupListener=t=>{e(t)},window.addEventListener("keyup",this._keyupListener)}_removeKeyHandler(){this._keydownListener&&window.removeEventListener("keydown",this._keydownListener),this._keyupListener&&window.removeEventListener("keyup",this._keyupListener)}registerClickHandler(e){this._clickListener=t=>{e(t)},window.addEventListener("mousedown",this._clickListener)}_removeClickHandler(){this._clickListener&&window.removeEventListener("mousedown",this._clickListener)}registerHoverHandler(e){this._hoverListener=t=>{e(t)},window.addEventListener("mousemove",this._hoverListener)}_removeHoverHandler(){this._hoverListener&&window.removeEventListener("mousemove",this._hoverListener)}registerScrollWheelHandler(e){this._scrollWheelListener=t=>{e(t)},window.addEventListener("wheel",this._scrollWheelListener)}_removeScrollWheelHandler(){this._scrollWheelListener&&window.removeEventListener("wheel",this._scrollWheelListener)}_registerVisibilityChangeHandler(){this._visibilityChangeHandler=()=>{document.visibilityState==="visible"&&(this.stage.root.core.setHasRenderUpdates(2),this.stage.renderFrame())},document.addEventListener("visibilitychange",this._visibilityChangeHandler)}_removeVisibilityChangeHandler(){this._visibilityChangeHandler&&document.removeEventListener("visibilitychange",this._visibilityChangeHandler)}},nu=class{static load(e){return e.platform?e.platform:su}},gi=class r{static isFunction(e){return typeof e=="function"}static isNumber(e){return typeof e=="number"}static isInteger(e){return typeof e=="number"&&e%1===0}static isBoolean(e){return e===!0||e===!1}static isString(e){return typeof e=="string"}static isObject(e){let t=typeof e;return!!e&&(t=="object"||t=="function")}static isPlainObject(e){return!!e&&typeof e=="object"}static isObjectLiteral(e){return typeof e=="object"&&e&&e.constructor===Object}static getArrayIndex(e,t){return r.getModuloIndex(e,t.length)}static equalValues(e,t){return typeof e!=typeof t?!1:r.isObjectLiteral(e)?r.isObjectLiteral(t)&&r.equalObjectLiterals(e,t):Array.isArray(e)?Array.isArray(t)&&r.equalArrays(e,t):e===t}static equalObjectLiterals(e,t){let i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(let n=0,o=i.length;n{e._buffers.get(s)!==i&&this._gl._bindBuffer(s,i)}),e._buffers.forEach((i,s)=>{t._buffers.get(s)===void 0&&this._gl._bindBuffer(s,null)}),t._buffers.get(this._gl.ARRAY_BUFFER)!==e._buffers.get(this._gl.ARRAY_BUFFER)}_migrateFramebuffers(e,t){t._framebuffers.forEach((i,s)=>{e._framebuffers.get(s)!==i&&this._gl._bindFramebuffer(s,i)}),e._framebuffers.forEach((i,s)=>{t._framebuffers.get(s)===void 0&&this._gl._bindFramebuffer(s,null)})}_migrateRenderbuffers(e,t){t._renderbuffers.forEach((i,s)=>{e._renderbuffers.get(s)!==i&&this._gl._bindRenderbuffer(s,i)}),e._renderbuffers.forEach((i,s)=>{t._renderbuffers.get(s)===void 0&&this._gl._bindRenderbuffer(s,null)})}_migrateAttributes(e,t,i){i?t._vertexAttribs.forEach((s,n)=>{s[0]&&this._gl._vertexAttribPointer(n,s[0],s[1],s[2],s[3],s[4]),s[5]&&this._gl._enableVertexAttribArray(n)}):(e._vertexAttribs.forEach((s,n)=>{t._vertexAttribs[n]||this._gl._disableVertexAttribArray(n)}),t._vertexAttribs.forEach((s,n)=>{this._gl._vertexAttribPointer(n,s[0],s[1],s[2],s[4]),s[5]?this._gl._enableVertexAttribArray(n):this._gl._disableVertexAttribArray(n)}))}_migrateSettings(e,t){let i=this.constructor.getDefaultSettings();e._settings.forEach((s,n)=>{let o=n.name||n.xname;if(!t._settings.has(n)){let a=i.get(o);gi.isFunction(a)&&(a=a(this._gl)),t._settings.set(n,a),n.apply(this._gl,a)}}),t._settings.forEach((s,n)=>{let o=e._settings.get(n);(!o||!gi.equalValues(o,s))&&n.apply(this._gl,s)})}_migrateFlags(e,t){e._nonDefaultFlags.forEach(i=>{t._nonDefaultFlags.has(i)||(this._getDefaultFlag(i)?this._gl._enable(i):this._gl._disable(i))}),t._nonDefaultFlags.forEach(i=>{e._nonDefaultFlags.has(i)||(this._getDefaultFlag(i)?this._gl._disable(i):this._gl._enable(i))})}static getDefaultSettings(){if(!this._defaultSettings){this._defaultSettings=new Map;let e=this._defaultSettings,t=WebGLRenderingContext.prototype;e.set("viewport",function(i){return[0,0,i.canvas.width,i.canvas.height]}),e.set("scissor",function(i){return[0,0,i.canvas.width,i.canvas.height]}),e.set("blendColor",[0,0,0,0]),e.set("blendEquation",[t.FUNC_ADD]),e.set("blendEquationSeparate",[t.FUNC_ADD,t.FUNC_ADD]),e.set("blendFunc",[t.ONE,t.ZERO]),e.set("blendFuncSeparate",[t.ONE,t.ZERO,t.ONE,t.ZERO]),e.set("clearColor",[0,0,0,0]),e.set("clearDepth",[1]),e.set("clearStencil",[0]),e.set("colorMask",[!0,!0,!0,!0]),e.set("cullFace",[t.BACK]),e.set("depthFunc",[t.LESS]),e.set("depthMask",[!0]),e.set("depthRange",[0,1]),e.set("frontFace",[t.CCW]),e.set("lineWidth",[1]),e.set("polygonOffset",[0,0]),e.set("sampleCoverage",[1,!1]),e.set("stencilFunc",[t.ALWAYS,0,1]),e.set("_stencilFuncSeparateFront",[t.ALWAYS,0,1]),e.set("_stencilFuncSeparateBack",[t.ALWAYS,0,1]),e.set("_stencilFuncSeparateFrontAndBack",[t.ALWAYS,0,1]),e.set("stencilMask",[1]),e.set("_stencilMaskSeparateFront",[1]),e.set("_stencilMaskSeparateBack",[1]),e.set("_stencilMaskSeparateFrontAndBack",[1]),e.set("stencilOp",[t.KEEP,t.KEEP,t.KEEP]),e.set("_stencilOpSeparateFront",[t.KEEP,t.KEEP,t.KEEP]),e.set("_stencilOpSeparateBack",[t.KEEP,t.KEEP,t.KEEP]),e.set("_stencilOpSeparateFrontAndBack",[t.KEEP,t.KEEP,t.KEEP]),e.set("vertexAttrib1f",[]),e.set("vertexAttrib1fv",[]),e.set("vertexAttrib2f",[]),e.set("vertexAttrib2fv",[]),e.set("vertexAttrib3f",[]),e.set("vertexAttrib3fv",[]),e.set("vertexAttrib4f",[]),e.set("vertexAttrib4fv",[])}return this._defaultSettings}static _getTextureTargetIndex(e){switch(e){case 3553:return 0;case 34067:return 1;default:throw new Error("Unknown texture target: "+e)}}static _getTextureTargetByIndex(e){return this._textureTargetIndices||(this._textureTargetIndices=[3553,34067]),this._textureTargetIndices[e]}static _getTextureIndex(e){return e-33984}static _getTextureByIndex(e){return e+33984}static _getPixelStoreiIndex(e){switch(e){case 3333:return 0;case 3317:return 1;case 37440:return 2;case 37441:return 3;case 37443:return 4;case 37445:return 5;default:throw new Error("Unknown pixelstorei: "+e)}}static _getPixelStoreiByIndex(e){return this._pixelStoreiIndices||(this._pixelStoreiIndices=[3333,3317,37440,37441,37443]),this._pixelStoreiIndices[e]}static _getDefaultPixelStoreiByIndex(e){return this._pixelStoreiDefaults||(this._pixelStoreiDefaults=[4,4,!1,!1,WebGLRenderingContext.prototype.BROWSER_DEFAULT_WEBGL]),this._pixelStoreiDefaults[e]}},au=class r{_initStateManager(e="default"){this._states={},this._state=this._getState(e)}_getState(e){return this._states[e]||(this._states[e]=new ou(e,this)),this._states[e]}switchState(e="default"){if(this._state._id!==e){let t=this._getState(e);this._state.migrate(t),this._state=t}}$useProgram(e){this._state.setProgram(e)&&this._useProgram(e)}$bindBuffer(e,t){this._state.setBuffer(e,t)&&this._bindBuffer(e,t)}$bindFramebuffer(e,t){this._state.setFramebuffer(e,t)&&this._bindFramebuffer(e,t)}$bindRenderbuffer(e,t){this._state.setRenderbuffer(e,t)&&this._bindRenderbuffer(e,t)}$enable(e){this._state.setFlag(e,!0)&&this._enable(e)}$disable(e){this._state.setFlag(e,!1)&&this._disable(e)}$viewport(e,t,i,s){this._state.setSetting(this._viewport,[e,t,i,s])&&this._viewport(e,t,i,s)}$scissor(e,t,i,s){this._state.setSetting(this._scissor,[e,t,i,s])&&this._scissor(e,t,i,s)}$disableVertexAttribArray(e){this._state.disableVertexAttribArray(e)&&this._disableVertexAttribArray(e)}$enableVertexAttribArray(e){this._state.enableVertexAttribArray(e)&&this._enableVertexAttribArray(e)}$vertexAttribPointer(e,t,i,s,n,o){this._state.vertexAttribPointer(e,[t,i,s,n,o])&&this._vertexAttribPointer(e,t,i,s,n,o)}$activeTexture(e){this._state.setActiveTexture(e)&&this._activeTexture(e)}$bindTexture(e,t){this._state.bindTexture(e,t)&&this._bindTexture(e,t)}$pixelStorei(e,t){this._state.setPixelStorei(e,t)&&this._pixelStorei(e,t)}$stencilFuncSeparate(e,t,i,s){let n;switch(e){case this.FRONT:n=this._stencilFuncSeparateFront;break;case this.BACK:n=this._stencilFuncSeparateBack;break;case this.FRONT_AND_BACK:n=this._stencilFuncSeparateFrontAndBack;break}this._state.setSetting(n,[t,i,s])&&n.apply(this,[t,i,s])}_stencilFuncSeparateFront(e,t,i){this._stencilFuncSeparate(this.FRONT,e,t,i)}_stencilFuncSeparateBack(e,t,i){this._stencilFuncSeparate(this.BACK,e,t,i)}_stencilFuncSeparateFrontAndBack(e,t,i){this._stencilFuncSeparate(this.FRONT_AND_BACK,e,t,i)}$stencilMaskSeparate(e,t){let i;switch(e){case this.FRONT:i=this._stencilMaskSeparateFront;break;case this.BACK:i=this._stencilMaskSeparateBack;break;case this.FRONT_AND_BACK:i=this._stencilMaskSeparateFrontAndBack;break}this._state.setSetting(i,[t])&&i.apply(this,[t])}_stencilMaskSeparateFront(e){this._stencilMaskSeparate(this.FRONT,e)}_stencilMaskSeparateBack(e){this._stencilMaskSeparate(this.BACK,e)}_stencilMaskSeparateFrontAndBack(e){this._stencilMaskSeparate(this.FRONT_AND_BACK,e)}$stencilOpSeparate(e,t,i,s){let n;switch(e){case this.FRONT:n=this._stencilOpSeparateFront;break;case this.BACK:n=this._stencilOpSeparateBack;break;case this.FRONT_AND_BACK:n=this._stencilOpSeparateFrontAndBack;break}this._state.setSetting(n,[t,i,s])&&n.apply(this,[t,i,s])}_stencilOpSeparateFront(e,t,i){this._stencilOpSeparate(this.FRONT,e,t,i)}_stencilOpSeparateBack(e,t,i){this._stencilOpSeparate(this.BACK,e,t,i)}_stencilOpSeparateFrontAndBack(e,t,i){this._stencilOpSeparate(this.FRONT_AND_BACK,e,t,i)}$blendColor(e,t,i,s){this._state.setSetting(this._blendColor,[e,t,i,s])&&this._blendColor(e,t,i,s)}$blendEquation(e){this._state.setSetting(this._blendEquation,[e])&&this._blendEquation(e)}$blendEquationSeparate(e,t){this._state.setSetting(this._blendEquationSeparate,[e,t])&&this._blendEquationSeparate(e,t)}$blendFunc(e,t){this._state.setSetting(this._blendFunc,[e,t])&&this._blendFunc(e,t)}$blendFuncSeparate(e,t,i,s){this._state.setSetting(this._blendFuncSeparate,[e,t,i,s])&&this._blendFuncSeparate(e,t,i,s)}$clearColor(e,t,i,s){this._state.setSetting(this._clearColor,[e,t,i,s])&&this._clearColor(e,t,i,s)}$clearDepth(e){this._state.setSetting(this._clearDepth,[e])&&this._clearDepth(e)}$clearStencil(e){this._state.setSetting(this._clearStencil,[e])&&this._clearStencil(e)}$colorMask(e,t,i,s){this._state.setSetting(this._colorMask,[e,t,i,s])&&this._colorMask(e,t,i,s)}$cullFace(e){this._state.setSetting(this._cullFace,[e])&&this._cullFace(e)}$depthFunc(e){this._state.setSetting(this._depthFunc,[e])&&this._depthFunc(e)}$depthMask(e){this._state.setSetting(this._depthMask,[e])&&this._depthMask(e)}$depthRange(e,t){this._state.setSetting(this._depthRange,[e,t])&&this._depthRange(e,t)}$frontFace(e){this._state.setSetting(this._frontFace,[e])&&this._frontFace(e)}$lineWidth(e){this._state.setSetting(this._lineWidth,[e])&&this._lineWidth(e)}$polygonOffset(e,t){this._state.setSetting(this._polygonOffset,[e,t])&&this._polygonOffset(e,t)}$sampleCoverage(e,t){this._state.setSetting(this._sampleCoverage,[e,t])&&this._sampleCoverage(e,t)}$stencilFunc(e,t,i){this._state.setSetting(this._stencilFunc,[e,t,i])&&this._stencilFunc(e,t,i)}$stencilMask(e){this._state.setSetting(this._stencilMask,[e])&&this._stencilMask(e)}$stencilOp(e,t,i){this._state.setSetting(this._stencilOp,[e,t,i])&&this._stencilOp(e,t,i)}$vertexAttrib1f(e,t){this._state.setSetting(this._vertexAttrib1f,[e,t])&&this._vertexAttrib1f(e,t)}$vertexAttrib1fv(e,t){this._state.setSetting(this._vertexAttrib1fv,[e,t])&&this._vertexAttrib1fv(e,t)}$vertexAttrib2f(e,t,i){this._state.setSetting(this._vertexAttrib2f,[e,t,i])&&this._vertexAttrib2f(e,t,i)}$vertexAttrib2fv(e,t){this._state.setSetting(this._vertexAttrib2fv,[e,t])&&this._vertexAttrib2fv(e,t)}$vertexAttrib3f(e,t,i,s){this._state.setSetting(this._vertexAttrib3f,[e,t,i,s])&&this._vertexAttrib3f(e,t,i,s)}$vertexAttrib3fv(e,t){this._state.setSetting(this._vertexAttrib3fv,[e,t])&&this._vertexAttrib3fv(e,t)}$vertexAttrib4f(e,t,i,s,n){this._state.setSetting(this._vertexAttrib4f,[e,t,i,s,n])&&this._vertexAttrib4f(e,t,i,s,n)}$vertexAttrib4fv(e,t){this._state.setSetting(this._vertexAttrib4fv,[e,t])&&this._vertexAttrib4fv(e,t)}static enable(e,t="default"){let i=Object.getOwnPropertyNames(r.prototype);return e.__proto__,i.forEach(s=>{if(s!=="constructor"){let n=r.prototype[s];s.charAt(0)==="$"&&(s=s.substr(1)),e[s]!==n&&(e[s]&&(e[s].name||(e[s].xname=s),e["_"+s]=e[s]),e[s]=n)}}),r.prototype._initStateManager.call(e,t),e}},lu=class{constructor(e){this.stage=e,this._usedMemory=0,this._uploadedTextureSources=[],this.textureSourceHashmap=new Map}get usedMemory(){return this._usedMemory}destroy(){for(let e=0,t=this._uploadedTextureSources.length;e{!(e.isLoaded()||e.isLoading())&&!e.isUsed()&&this.textureSourceHashmap.delete(t)})}freeTextureSource(e){let t=this._uploadedTextureSources.indexOf(e),i=t!==-1;e.isLoaded()&&(i&&(this._addMemoryUsage(-e.w*e.h),this._uploadedTextureSources.splice(t,1)),this._nativeFreeTextureSource(e)),e.loadingSince=null}_nativeUploadTextureSource(e,t){return this.stage.renderer.uploadTextureSource(e,t)}_nativeFreeTextureSource(e){this.stage.renderer.freeTextureSource(e),e.clearNativeTexture()}},go=class r{constructor(e){this.stage=e,this.genericCancelCb=t=>{this._remove(t)},this._sources=[],this._data=[]}destroy(){this._sources=[],this._data=[],this.stage=null,delete this._sources,delete this._data,delete this.stage}processSome(){if(this._sources.length){let e=Date.now();do this._processItem();while(this._sources.length&&Date.now()-e=0&&(this._sources.splice(t,1),this._data.splice(t,1))}};go.MAX_UPLOAD_TIME_PER_FRAME=10;var uu=class{constructor(e){this.stage=e,this.root=null,this.updateTreeOrder=0,this.renderState=this.stage.renderer.createCoreRenderState(this),this.renderExec=this.stage.renderer.createCoreRenderExecutor(this),this.renderExec.init(),this._usedMemory=0,this._renderTexturePool=[],this._renderTextureId=1,this._zSorts=[],this.renderToTextureCount=0}get usedMemory(){return this._usedMemory}destroy(){this._renderTexturePool.forEach(e=>this._freeRenderTexture(e)),this._usedMemory=0,this.stage=null,this.root=null,this.renderState=null,this.renderExec=null,this._renderTexturePool=null,this._zSorts=null,delete this.stage,delete this.root,delete this.renderState,delete this.renderExec,delete this._renderTexturePool,delete this._zSorts}hasRenderUpdates(){return!!this.root._parent._hasRenderUpdates}render(){this.root._parent._hasRenderUpdates=0,this._render()}update(){this._update(),this.root._hasUpdates&&this._update(),this._performForcedZSorts()}_performForcedZSorts(){if(this._zSorts.length){for(let t=0,i=this._zSorts.length;t=this.stage.getOption("readPixelsAfterDrawThreshold")&&(e&&console.log("[Lightning] readPixelsAfterDraw behavior triggered"),this._readPixels()),this.renderToTextureCount=0}_readPixels(){let e=new Uint8Array(4),t=this.stage.gl;t.readPixels(0,0,1,1,t.RGBA,t.UNSIGNED_BYTE,e)}_fillRenderState(){this.renderState.reset(),this.root.render(),this.renderState.finish()}_performRender(){this.renderExec.execute()}_addMemoryUsage(e){this._usedMemory+=e,this.stage.addMemoryUsage(e)}allocateRenderTexture(e,t){let i=this.stage.getRenderPrecision(),s=Math.max(1,Math.round(e*i)),n=Math.max(1,Math.round(t*i)),o=this._renderTexturePool.length;for(let l=o-1;l>=0;l--){let u=this._renderTexturePool[l];if(u.w===s&&u.h===n&&u.update!==this.stage.frameCounter)return u.f=this.stage.frameCounter,this._renderTexturePool.splice(l,1),u}let a=this._createRenderTexture(e,t,s,n);return a.precision=i,a}releaseRenderTexture(e){this._renderTexturePool.push(e)}freeUnusedRenderTextures(e=60){let t=this.stage.frameCounter-e;this._renderTexturePool=this._renderTexturePool.filter(i=>i.f<=t?(this._freeRenderTexture(i),!1):!0)}_createRenderTexture(e,t,i,s){this._addMemoryUsage(i*s);let n=this.stage.renderer.createRenderTexture(e,t,i,s);return n.id=this._renderTextureId++,n.f=this.stage.frameCounter,n.ow=e,n.oh=t,n.w=i,n.h=s,n}_freeRenderTexture(e){this.stage.renderer.freeRenderTexture(e),this._addMemoryUsage(-e.w*e.h)}copyRenderTexture(e,t,i){this.stage.renderer.copyRenderTexture(e,t,i)}forceZSort(e){this._zSorts.push(e)}},ys=class{constructor(e){this.stage=e,this._timingFunction="ease",this._timingFunctionImpl=fe.getTimingFunction(this._timingFunction),this.delay=0,this.duration=.2,this.merger=null}get timingFunction(){return this._timingFunction}set timingFunction(e){this._timingFunction=e,this._timingFunctionImpl=fe.getTimingFunction(e)}get timingFunctionImpl(){return this._timingFunctionImpl}patch(e){dt.patchObject(this,e)}};ys.prototype.isTransitionSettings=!0;var cu=class{constructor(e){this.stage=e,this.stage.on("frameStart",()=>this.progress()),this.active=new Set,this.defaultTransitionSettings=new ys(this.stage)}progress(){if(this.active.size){let e=this.stage.dt,t=!1;this.active.forEach(function(i){i.progress(e),i.isRunning()||(t=!0)}),t&&(this.active=new Set([...this.active].filter(i=>i.isRunning())))}}createSettings(e){let t=new ys;return dt.patchObject(t,e),t}addActive(e){this.active.add(e)}removeActive(e){this.active.delete(e)}},mo=class r{constructor(){this._clear()}_clear(){this._p=[],this._pe=[],this._idp=[],this._f=[],this._v=[],this._lv=[],this._sm=[],this._s=[],this._ve=[],this._sme=[],this._se=[],this._length=0}parse(e,t){let i,s;K.isObjectLiteral(t)||(t={0:t});let n=.5,o=[];for(let a in t)if(t.hasOwnProperty(a)){let l=t[a];K.isObjectLiteral(l)||(l={v:l});let u=parseFloat(a);a==="sm"?n=l.v:!isNaN(u)&&u>=0&&u<=2&&(l.p=u,l.f=K.isFunction(l.v),l.lv=l.f?l.v(0,0):l.v,o.push(l))}for(o=o.sort(function(a,l){return a.p-l.p}),s=o.length,i=0;il&&(o[i].pe=l)}o[i].pe===o[i].p?o[i].idp=0:o[i].idp=1/(o[i].pe-o[i].p)}for(i=0;i-1e-8&&m<1e-8)return c*(c*(c*o+a)+l)+u;let A=c*(c*(3*i)+2*s)+n;if(A>1e-10&&A<1e-10)break;c+=m/A}let y=0,b=1;for(let C=0;C<20;C++){if(c=.5*(y+b),g=c*(c*(c*i+s)+n),m=t-g,m>-1e-8&&m<1e-8)return c*(c*(c*o+a)+l)+u;m<0?b=c:y=c}return c}static mergeColors(e,t,i){let s=(e/65536|0)%256,n=(e/256|0)%256,o=e%256,a=e/16777216|0,l=(t/65536|0)%256,u=(t/256|0)%256,c=t%256,g=t/16777216|0,m=s*i+l*(1-i),y=n*i+u*(1-i),b=o*i+c*(1-i),C=a*i+g*(1-i);return Math.round(C)*16777216+Math.round(m)*65536+Math.round(y)*256+Math.round(b)}static getArgbNumber(e){e[0]=Math.max(0,Math.min(255,e[0])),e[1]=Math.max(0,Math.min(255,e[1])),e[2]=Math.max(0,Math.min(255,e[2])),e[3]=Math.max(0,Math.min(255,e[3]));let t=((e[3]|0)<<24)+((e[0]|0)<<16)+((e[1]|0)<<8)+(e[2]|0);return t<0&&(t=4294967295+t+1),t}},_o=class{constructor(e){this.animationSettings=e,this._selector="",this._items=new mo,this._props=[],this._propSetters=[],this._resetValue=void 0,this._hasResetValue=!1,this._hasColorProperty=void 0}getResetValue(){return this._hasResetValue?this._resetValue:this._items.getValue(0)}apply(e,t,i){let s=this.getAnimatedElements(e),n=this._items.getValue(t);if(n===void 0||!s.length)return;if(i!==1){let l=this.getResetValue();K.isNumber(n)&&K.isNumber(l)&&(this.hasColorProperty()?n=fe.mergeColors(n,l,i):n=fe.mergeNumbers(n,l,i))}let o=this._propSetters.length,a=s.length;for(let l=0;l{this._props.push(t),this._propSetters.push(yt.getSetter(t))})}set property(e){this._hasColorProperty=void 0,this.properties=e}set p(e){this.properties=e}patch(e){dt.patchObject(this,e)}hasColorProperty(){return this._hasColorProperty===void 0&&(this._hasColorProperty=this._props.length?yt.isColorProperty(this._props[0]):!1),this._hasColorProperty}};_o.prototype.isAnimationActionSettings=!0;var St=class r{constructor(){this._actions=[],this.delay=0,this.duration=1,this.repeat=0,this.repeatOffset=0,this.repeatDelay=0,this.autostop=!1,this.stopMethod=r.STOP_METHODS.FADE,this._stopTimingFunction="ease",this._stopTimingFunctionImpl=fe.getTimingFunction(this._stopTimingFunction),this.stopDuration=0,this.stopDelay=0}get actions(){return this._actions}set actions(e){this._actions=[];for(let t=0,i=e.length;t0?(this._state=r.STATES.STOPPING,this.emit("stop")):(this.settings.stopMethod===St.STOP_METHODS.FADE&&(this._stopP=0),this._state=r.STATES.STOPPING,this.emit("stop")),this.checkActive())}stopNow(){(this._state!==r.STATES.STOPPED||this._state!==r.STATES.IDLE)&&(this._state=r.STATES.STOPPING,this._p=0,this.emit("stop"),this.reset(),this._state=r.STATES.STOPPED,this.emit("stopFinish"))}isPaused(){return this._state===r.STATES.PAUSED}isPlaying(){return this._state===r.STATES.PLAYING}isStopping(){return this._state===r.STATES.STOPPING}isFinished(){return this._state===r.STATES.FINISHED}checkActive(){this.isActive()&&this.manager.addActive(this)}isActive(){return(this._state==r.STATES.PLAYING||this._state==r.STATES.STOPPING)&&this._element&&this._element.attached}progress(e){this._element&&(this._progress(e),this.apply())}_progress(e){if(this._state==r.STATES.STOPPING){this._stopProgress(e);return}if(this._state==r.STATES.PLAYING){if(this._delayLeft>0)if(this._delayLeft-=e,this._delayLeft<0)e=-this._delayLeft,this._delayLeft=0,this.emit("delayEnd");else return;this.settings.duration===0?this._p=1:this.settings.duration>0&&(this._p+=e/this.settings.duration),this._p>=1?this.settings.repeat==-1||this._repeatsLeft>0?(this._repeatsLeft>0&&this._repeatsLeft--,this._p=this.settings.repeatOffset,this.emit("progress",this._p),this.settings.repeatDelay&&(this._delayLeft=this.settings.repeatDelay),this.emit("repeat",this._repeatsLeft)):(this._p=1,this.emit("progress",this._p),this._state=r.STATES.FINISHED,this.emit("finish"),this.settings.autostop&&this.stop()):this.emit("progress",this._p)}}_stopProgress(e){let t=this._getStopDuration();if(this._stopDelayLeft>0)if(this._stopDelayLeft-=e,this._stopDelayLeft<0)e=-this._stopDelayLeft,this._stopDelayLeft=0,this.emit("stopDelayEnd");else return;this.settings.stopMethod==St.STOP_METHODS.IMMEDIATE?(this._state=r.STATES.STOPPED,this.emit("stopFinish")):this.settings.stopMethod==St.STOP_METHODS.REVERSE?(t===0?this._p=0:t>0&&(this._p-=e/t),this._p<=0&&(this._p=0,this._state=r.STATES.STOPPED,this.emit("stopFinish"))):this.settings.stopMethod==St.STOP_METHODS.FADE?(this._progressStopTransition(e),this._stopP>=1&&(this._p=0,this._state=r.STATES.STOPPED,this.emit("stopFinish"))):this.settings.stopMethod==St.STOP_METHODS.ONETOTWO?this._p<2&&(t===0?this._p=2:t>0&&(this._p<1?this._p+=e/this.settings.duration:this._p+=e/t),this._p>=2?(this._p=2,this._state=r.STATES.STOPPED,this.emit("stopFinish")):this.emit("progress",this._p)):this.settings.stopMethod==St.STOP_METHODS.FORWARD&&this._p<1&&(this.settings.duration==0?this._p=1:this._p+=e/this.settings.duration,this._p>=1?this.settings.stopMethod==St.STOP_METHODS.FORWARD?(this._p=1,this._state=r.STATES.STOPPED,this.emit("stopFinish")):this._repeatsLeft>0?(this._repeatsLeft--,this._p=0,this.emit("repeat",this._repeatsLeft)):(this._p=1,this._state=r.STATES.STOPPED,this.emit("stopFinish")):this.emit("progress",this._p))}_progressStopTransition(e){if(this._stopP<1){if(this._stopDelayLeft>0)if(this._stopDelayLeft-=e,this._stopDelayLeft<0)e=-this._stopDelayLeft,this._stopDelayLeft=0,this.emit("delayEnd");else return;let t=this._getStopDuration();t==0?this._stopP=1:this._stopP+=e/t,this._stopP>=1&&(this._stopP=1)}}_getStopDuration(){return this.settings.stopDuration||this.settings.duration}apply(){if(this._state===r.STATES.STOPPED)this.reset();else{let e=1;this._state===r.STATES.STOPPING&&this.settings.stopMethod===St.STOP_METHODS.FADE&&(e=1-this.settings.stopTimingFunctionImpl(this._stopP)),this._settings.apply(this._element,this._p,e)}}reset(){this._settings.reset(this._element)}get state(){return this._state}get p(){return this._p}get delayLeft(){return this._delayLeft}get element(){return this._element}get frame(){return Math.round(this._p*this._settings.duration*60)}get settings(){return this._settings}};yo.STATES={IDLE:0,PLAYING:1,STOPPING:2,STOPPED:3,FINISHED:4,PAUSED:5};var hu=class{constructor(e){this.stage=e,this.stage.on("frameStart",()=>this.progress()),this.active=new Set}progress(){if(this.active.size){let e=this.stage.dt,t=!1;this.active.forEach(function(i){i.isActive()?i.progress(e):t=!0}),t&&(this.active=new Set([...this.active].filter(i=>i.isActive())))}}createAnimation(e,t){return K.isObjectLiteral(t)&&(t=this.createSettings(t)),new yo(this,t,e)}createSettings(e){let t=new St;return dt.patchObject(t,e),t}addActive(e){this.active.add(e)}},xo=class extends Rt{_getLookupId(){return"__whitepix"}_getSourceLoader(){return function(e){var t=new Uint8Array([255,255,255,255]);e(null,{source:t,w:1,h:1,permanent:!0})}}isAutosizeTexture(){return!1}},xs=class r extends ct{constructor(e={}){super(),this._setOptions(e),this._usedMemory=0,this._lastGcFrame=0,this._usedVramAlpha=0,this._usedVramNonAlpha=0;let t=r.platform?r.platform:nu.load(e);this.platform=new t,this.platform.init&&this.platform.init(this),this.gl=null,this.c2d=null;let i=this.getOption("context");if(i?i.useProgram?this.gl=i:this.c2d=i:K.isWeb&&(!r.isWebglSupported()||this.getOption("canvas2d"))?this.c2d=this.platform.createCanvasContext(this.getOption("w"),this.getOption("h")):this.gl=this.platform.createWebGLContext(this.getOption("w"),this.getOption("h")),this.gl&&au.enable(this.gl,"lightning"),this._mode=this.gl?0:1,this.getCanvas()){if(this.getOption("devicePixelRatio")!==1){let s=this.getOption("devicePixelRatio");this.getCanvas().style.width=this._options.w/s+"px",this.getCanvas().style.height=this._options.h/s+"px"}this._options.w=this.getCanvas().width,this._options.h=this.getCanvas().height}this._mode===0?K.isSpark?this._renderer=new tu(this):this._renderer=new fo(this):this._renderer=new eu(this),this.setClearColor(this.getOption("clearColor")),this.frameCounter=0,this.transitions=new cu(this),this.animations=new hu(this),this.textureManager=new lu(this),this.textureThrottler=new go(this),this.startTime=0,this.currentTime=0,this.dt=0,this.rectangleTexture=new xo(this),this.rectangleTexture.load(),this.rectangleTexture.source.permanent=!0,this.ctx=new uu(this),this._updateSourceTextures=new Set}get renderer(){return this._renderer}static isWebglSupported(){if(K.isNode)return!0;try{return!!window.WebGLRenderingContext}catch{return!1}}get mode(){return this._mode}isWebgl(){return this.mode===0}isC2d(){return this.mode===1}getOption(e){return this._options[e]}_setOptions(e){this._options={};let t=(i,s)=>{let n=e[i];n===void 0?this._options[i]=s:this._options[i]=n};t("canvas",null),t("context",null),t("w",1920),t("h",1080),t("srcBasePath",null),t("memoryPressure",24e6),t("bufferMemory",2e6),t("textRenderIssueMargin",0),t("fontSharp",{precision:.6666666667,fontSize:24}),t("clearColor",[0,0,0,0]),t("defaultFontFace","sans-serif"),t("fixedDt",0),t("useImageWorker",!0),t("autostart",!0),t("precision",1),t("canvas2d",!1),t("platform",null),t("readPixelsBeforeDraw",!1),t("devicePixelRatio",1),t("readPixelsAfterDraw",!1),t("readPixelsAfterDrawThreshold",0),t("debugFrame",!1),t("forceTxCanvasSource",!1),t("pauseRafLoopOnIdle",!1),e.devicePixelRatio!=null&&e.devicePixelRatio!==1&&(this._options.precision*=e.devicePixelRatio,this._options.w*=e.devicePixelRatio,this._options.h*=e.devicePixelRatio)}setApplication(e){this.application=e}init(){this.application.getOption("debug")&&this.platform._imageWorker&&console.log("[Lightning] Using image worker!"),this.application.getOption("debug")&&this.c2d&&console.log("[Lightning] Using canvas2d renderer"),this.application.setAsRoot(),this.getOption("autostart")&&this.platform.startLoop()}destroy(){this.platform.stopLoop(),this.platform.destroy(),this.ctx.destroy(),this.textureManager.destroy(),this._renderer.destroy(),this.gl?(this.gl.clearColor(0,0,0,0),this.gl.clear(this.gl.COLOR_BUFFER_BIT)):this.c2d&&this.c2d.clearRect(0,0,this.c2d.canvas.width,this.c2d.canvas.height),this.gl=null,this.c2d=null,this.ctx=null,this._options=null,this.platform=null,this.textureManager=null,this._renderer=null,delete this.gl,delete this.c2d,delete this.ctx,delete this._options,delete this.platform,delete this.textureManager,delete this._renderer}stop(){this.platform.stopLoop()}resume(){this.platform.startLoop()}get root(){return this.application}getCanvas(){return this._mode?this.c2d.canvas:this.gl.canvas}getRenderPrecision(){return this._options.precision}addUpdateSourceTexture(e){this._updatingFrame?e._performUpdateSource():this._updateSourceTextures.add(e)}removeUpdateSourceTexture(e){this._updateSourceTextures&&this._updateSourceTextures.delete(e)}hasUpdateSourceTexture(e){return this._updateSourceTextures&&this._updateSourceTextures.has(e)}_performUpdateSource(){this._updateSourceTextures.size&&(this._updateSourceTextures.forEach(e=>{e._performUpdateSource()}),this._updateSourceTextures=new Set)}_calculateDt(){this.startTime=this.currentTime,this.currentTime=this.platform.getHrTime(),this._options.fixedDt?this.dt=this._options.fixedDt:this.dt=this.startTime?.001*(this.currentTime-this.startTime):.02}updateFrame(){this._calculateDt(),this.emit("frameStart"),this._performUpdateSource(),this.emit("update")}idleFrame(){this.textureThrottler.processSome(),this.emit("frameEnd"),this.frameCounter++}renderFrame(){let e=this.ctx.hasRenderUpdates();this.textureThrottler.processSome(),e&&(this._updatingFrame=!0,this.ctx.update(),this.ctx.render(),this._updatingFrame=!1),this.platform.nextFrame(e),this.emit("frameEnd"),this.frameCounter++}isUpdatingFrame(){return this._updatingFrame}drawFrame(){this.updateFrame(),this.renderFrame()}forceRenderUpdate(){this.root&&this.root.core._parent.setHasRenderUpdates(1)}setClearColor(e){this.forceRenderUpdate(),e===null?this._clearColor=null:Array.isArray(e)?this._clearColor=e:this._clearColor=fe.getRgbaComponentsNormalized(e)}getClearColor(){return this._clearColor}createElement(e){return e?this.element(e):new yt(this)}createShader(e){return qr.create(this,e)}element(e){if(e.isElement)return e;let t;return e.type?t=new e.type(this):t=new yt(this),t.patch(e),t}c(e){return this.element(e)}get w(){return this._options.w}get h(){return this._options.h}get coordsWidth(){return this.w/this._options.precision}get coordsHeight(){return this.h/this._options.precision}addMemoryUsage(e){this._usedMemory+=e,this._lastGcFrame!==this.frameCounter&&this._usedMemory>this.getOption("memoryPressure")&&(this.gc(!1),this._usedMemory>this.getOption("memoryPressure")-2e6&&this.gc(!0))}get usedMemory(){return this._usedMemory}addVramUsage(e,t){t?this._usedVramAlpha+=e:this._usedVramNonAlpha+=e}get usedVramAlpha(){return this._usedVramAlpha}get usedVramNonAlpha(){return this._usedVramNonAlpha}get usedVram(){return this._usedVramAlpha+this._usedVramNonAlpha}gc(e){if(this._lastGcFrame!==this.frameCounter){this._lastGcFrame=this.frameCounter;let t=this._usedMemory;if(this.gcTextureMemory(e),this.gcRenderTextureMemory(e),this.renderer.gc(e),this.application.getOption("debug")){console.log(`[Lightning] GC${e?"[aggressive]":""}! Frame ${this._lastGcFrame} Freed ${((t-this._usedMemory)/1e6).toFixed(2)}MP from GPU memory. Remaining: ${(this._usedMemory/1e6).toFixed(2)}MP`);let i=this._usedMemory-this.textureManager.usedMemory-this.ctx.usedMemory;console.log(`[Lightning] Textures: ${(this.textureManager.usedMemory/1e6).toFixed(2)}MP, Render Textures: ${(this.ctx.usedMemory/1e6).toFixed(2)}MP, Renderer caches: ${(i/1e6).toFixed(2)}MP`)}}}gcTextureMemory(e=!1){e&&this.ctx.root.visible?(this.ctx.root.visible=!1,this.textureManager.gc(),this.ctx.root.visible=!0):this.textureManager.gc()}gcRenderTextureMemory(e=!1){e&&this.root.visible?(this.root.visible=!1,this.ctx.freeUnusedRenderTextures(0),this.root.visible=!0):this.ctx.freeUnusedRenderTextures(0)}getDrawingCanvas(){return this.platform.getDrawingCanvas()}update(){this.ctx.update()}addServiceProvider(e){K.isSpark&&this.platform.addServiceProvider(e)}getChildrenByPosition(e,t){let i=[];return this.root.core.update(),this.root.core.collectAtCoord(e,t,i),i}},du=class r extends ht{constructor(e={},t){r._temp_options=e,r.booting=!0;let i=new xs(e.stage);super(i,t),r.booting=!1,this.__updateFocusCounter=0,this.__keypressTimers=new Map,this.__hoveredChild=null,this.stage.init(),this.updateFocusSettings(),this.__keymap=this.getOption("keys"),this.__keymap&&(this.stage.platform.registerKeydownHandler(s=>{this._receiveKeydown(s)}),this.stage.platform.registerKeyupHandler(s=>{this._receiveKeyup(s)})),this.getOption("enablePointer")&&(this.stage.platform.registerClickHandler(s=>{this._receiveClick(s)}),this.stage.platform.registerHoverHandler(s=>{this._receiveHover(s)}),this.stage.platform.registerScrollWheelHandler(s=>{this._recieveScrollWheel(s)}),this.cursor="default")}getOption(e){return this.__options[e]}_setOptions(e){this.__options={};let t=(i,s)=>{let n=e[i];n===void 0?this.__options[i]=s:this.__options[i]=n};t("debug",!1),t("keys",{38:"Up",40:"Down",37:"Left",39:"Right",13:"Enter",8:"Back",27:"Exit"}),t("enablePointer",!1)}__construct(){this.stage.setApplication(this),this._setOptions(r._temp_options),delete r._temp_options,super.__construct()}__init(){super.__init(),this.__updateFocus()}updateFocusPath(){this.__updateFocus()}__updateFocus(){let e=this.__updateFocusRec();!r.booting&&e&&this.updateFocusSettings()}__updateFocusRec(){let e=++this.__updateFocusCounter;this.__updateFocusId=e;let t=this.__getFocusPath(),i=t[t.length-1],s=this._focusPath?this._focusPath[this._focusPath.length-1]:void 0;if(s){let n=Math.min(this._focusPath.length,t.length),o;for(o=0;o=o;a--)if(this._focusPath.pop()._unfocus(i,s),this.__updateFocusId!==e)return!1;for(let a=o,l=t.length;a=0;n--){let o=i[n]._getMostSpecificHandledMember(e);if(o!==void 0&&i[n][o](...t)!==!1)return!0}return!1}_receiveKeydown(e){let t=e,i=this.__keymap[e.keyCode],s=this.focusPath,n;if(i&&(n=Array.isArray(i)?i:[i]),n)for(let a=0,l=n.length;a{this.stage.application.focusTopDownEvent([`_capture${e}Long`,"_captureKey"],{})||this.stage.application.focusBottomUpEvent([`_handle${e}Long`,"_handleKey"],{}),this.__keypressTimers.delete(e)},n||500)):t._throwError("config value for longpress must be a number")}}_recieveScrollWheel(e){let t=e,{clientX:i,clientY:s}=t;i<=this.stage.w&&s<=this.stage.h&&(this.fireTopDownScrollWheelHandler("_captureScroll",t)||this.fireBottomUpScrollWheelHandler("_handleScroll",t))}fireTopDownScrollWheelHandler(e,t){let i=this.stage.application.children,s=this._findChildren([],i).reverse(),n=s.length;for(;n--;){let o=s[n];if(o&&o[e])return o._captureScroll(t),!0}return!1}fireBottomUpScrollWheelHandler(e,t){let{clientX:i,clientY:s}=t,o=this._getTargetChild(i,s);for(;o!==null;){if(o&&o[e])return o._handleScroll(t),!0;o=o.parent}return!1}_receiveClick(e){let t=e,{clientX:i,clientY:s}=t;i<=this.stage.w&&s<=this.stage.h&&this.stage.application.fireBottomUpClickHandler(t)}fireBottomUpClickHandler(e){let{clientX:t,clientY:i}=e,s=this._getTargetChild(t,i),n=this.stage.getRenderPrecision()/this.stage.getOption("devicePixelRatio"),o=s;for(;o!==null;){if(o&&o._handleClick){let{px:a,py:l}=o.core._worldContext,u=a*n,c=l*n,g={x:t-u,y:i-c};if(o._handleClick(s,g)!==!1)break}o=o.parent}}_receiveHover(e){let t=e,{clientX:i,clientY:s}=t;i<=this.stage.w&&s<=this.stage.h&&this.stage.application.fireBottomUpHoverHandler(t)}fireBottomUpHoverHandler(e){let{clientX:t,clientY:i}=e,s=this._getTargetChild(t,i);if(s!==this.__hoveredChild){let n=new Set,o=new Set;if(s&&(o=new Set(s.getAncestors())),this.__hoveredChild){n=new Set(this.__hoveredChild.getAncestors());for(let u of[...n].filter(c=>!o.has(c))){let c=ht.getComponent(u);c._handleUnhover&&c._handleUnhover(u),u.parent&&u.parent.cursor&&(this.stage.getCanvas().style.cursor=u.parent.cursor)}}this.__hoveredChild=s;let a=[...o].filter(u=>!n.has(u));for(let u of a){let c=ht.getComponent(u);c._handleHover&&c._handleHover(u)}let l=a[0];if(l&&l.cursor&&(this.stage.getCanvas().style.cursor=l.cursor),a.length===0&&s){let u=ht.getComponent(s);u._handleHover&&u._handleHover(s)}}}_getTargetChild(e,t){let i=this.stage.application.children,s=this._findChildren([],i),n=this._withinClickableRange(s,e,t);return n.sort((o,a)=>o.zIndex>a.zIndex?1:o.zIndexa.id?1:-1),n.length?n.slice(-1)[0]:null}_findChildren(e,t){let i=t.length;for(;i--;){let s=t[i];s.__active&&s.collision&&(s.collision===!0&&e.push(s),s.hasChildren()&&this._findChildren(e,s.children))}return e}_withinClickableRange(e,t,i){let s=e.length,n=[];for(;s--;){let o=e[s],a=this.stage.getRenderPrecision()/this.stage.getOption("devicePixelRatio"),l=o.core._worldContext,u=l.px*a,c=l.py*a,g=o.finalW*l.ta*a,m=o.finalH*l.td*a;if(!(u>this.stage.w||c>this.stage.h)){if(o.parent.core._scissor){let y=o.parent.core._scissor.map(b=>b*a);if(!this._testCollision(t,i,...y))continue}this._testCollision(t,i,u,c,g,m)&&n.push(o)}}return n}_testCollision(e,t,i,s,n,o){return e>=i&&e<=i+n&&t>=s&&t<=s+o}destroy(){this._destroyed||(this._destroy(),this.stage.destroy(),this._destroyed=!0)}_destroy(){if(this.stage.setApplication(void 0),this._updateAttachedFlag(),this._updateEnabledFlag(),this.__keypressTimers.size){for(let e of this.__keypressTimers.values())clearTimeout(e);this.__keypressTimers.clear()}}getCanvas(){return this.stage.getCanvas()}},bo=class extends Rt{constructor(e){super(e),this._factory=void 0,this._lookupId=void 0}set content({factory:e,lookupId:t=void 0}){this._factory=e,this._lookupId=t,this._changed()}_getIsValid(){return!!this._factory}_getLookupId(){return this._lookupId}_getSourceLoader(){let e=this._factory;return t=>e((i,s)=>{if(i)return t(i);t(null,this.stage.platform.getTextureOptionsForDrawingCanvas(s))},this.stage)}},pu=class r{static getCanvasTexture(e,t){return{type:bo,content:{factory:e,lookupId:t}}}static getRoundRect(e,t,i,s,n,o,a){Array.isArray(i)||(i=[i,i,i,i]);let l=(c,g)=>{K.isSpark?g.platform.createRoundRect(c,g,e,t,i,s,n,o,a):c(null,this.createRoundRect(g,e,t,i,s,n,o,a))},u="rect"+[e,t,s,n,o?1:0,a].concat(i).join(",");return r.getCanvasTexture(l,u)}static createRoundRect(e,t,i,s,n,o,a,l){a===void 0&&(a=!0),n===void 0&&(n=0);let u=e.platform.getDrawingCanvas(),c=u.getContext("2d");c.imageSmoothingEnabled=!0,u.width=t+n+2,u.height=i+n+2,c.beginPath();let g=.5*n+1,m=.5*n+1;return c.moveTo(g+s[0],m),c.lineTo(g+t-s[1],m),c.arcTo(g+t,m,g+t,m+s[1],s[1]),c.lineTo(g+t,m+i-s[2]),c.arcTo(g+t,m+i,g+t-s[2],m+i,s[2]),c.lineTo(g+s[3],m+i),c.arcTo(g,m+i,g,m+i-s[3],s[3]),c.lineTo(g,m+s[0]),c.arcTo(g,m,g+s[0],m,s[0]),c.closePath(),a&&(K.isNumber(l)?c.fillStyle=fe.getRgbaString(l):c.fillStyle="white",c.fill()),n&&(K.isNumber(o)?c.strokeStyle=fe.getRgbaString(o):c.strokeStyle="white",c.lineWidth=n,c.stroke()),u}static getShadowRect(e,t,i=0,s=5,n=s*2){Array.isArray(i)||(i=[i,i,i,i]);let o=(l,u)=>{K.isSpark?u.platform.createShadowRect(l,u,e,t,i,s,n):l(null,this.createShadowRect(u,e,t,i,s,n))},a="shadow"+[e,t,s,n].concat(i).join(",");return r.getCanvasTexture(o,a)}static createShadowRect(e,t,i,s,n,o){let a=e.platform.getDrawingCanvas(),l=a.getContext("2d");l.imageSmoothingEnabled=!0,a.width=t+o*2,a.height=i+o*2,l.globalAlpha=.01,l.fillRect(0,0,.01,.01),l.globalAlpha=1,l.shadowColor=fe.getRgbaString(4294967295),l.fillStyle=fe.getRgbaString(4294967295),l.shadowBlur=n,l.shadowOffsetX=t+10+o,l.shadowOffsetY=o,l.beginPath();let u=-(t+10),c=0;return l.moveTo(u+s[0],c),l.lineTo(u+t-s[1],c),l.arcTo(u+t,c,u+t,c+s[1],s[1]),l.lineTo(u+t,c+i-s[2]),l.arcTo(u+t,c+i,u+t-s[2],c+i,s[2]),l.lineTo(u+s[3],c+i),l.arcTo(u,c+i,u,c+i-s[3],s[3]),l.lineTo(u,c+s[0]),l.arcTo(u,c,u+s[0],c,s[0]),l.closePath(),l.fill(),a}static getSvgTexture(e,t,i){let s=(o,a)=>{K.isSpark?a.platform.createSvg(o,a,e,t,i):this.createSvg(o,a,e,t,i)},n="svg"+[t,i,e].join(",");return r.getCanvasTexture(s,n)}static createSvg(e,t,i,s,n){let o=t.platform.getDrawingCanvas(),a=o.getContext("2d");a.imageSmoothingEnabled=!0;let l=new Image;l.onload=()=>{o.width=s,o.height=n,a.drawImage(l,0,0,o.width,o.height),e(null,o)},l.onError=u=>{e(u)},K.isPS4||(l.crossOrigin="Anonymous"),l.src=i}},fu=class r{static isMf(e){return K.isFunction(e)&&e.__mf}static mf(e){return e.__mf=!0,e}static merge(e,t){let i=Object.keys(e),s=Object.keys(t);if(!s.length)return e;let n={},o={};for(let c=0,g=s.length;c=0;){let R=i[b];if(o[R]!==-1)break}for(;++b=0;){let c=i[u];if(o[c]!==-1)break}for(;++uthis.wrap(s)),i=i.map(s=>s._wrapper),super.onSync(e,t,i)}onSet(e,t){e=this.wrap(e),super.onSet(e,t)}onMove(e,t,i){super.onMove(e,t,i)}},wo=class extends Rt{_getLookupId(){return"__noise"}_getSourceLoader(){let e=this.stage.gl;return function(t){let i=new Uint8Array(65536);for(let n=0;n<128*128*4;n+=4){let o=Math.floor(Math.random()*256);i[n]=o,i[n+1]=o,i[n+2]=o,i[n+3]=255}let s={};e&&(s[e.TEXTURE_WRAP_S]=e.REPEAT,s[e.TEXTURE_WRAP_T]=e.REPEAT,s[e.TEXTURE_MIN_FILTER]=e.NEAREST,s[e.TEXTURE_MAG_FILTER]=e.NEAREST),t(null,{source:i,w:128,h:128,texParams:s})}}},gu=class r extends Rt{constructor(e){super(e),this._htmlElement=void 0,this._scale=1}set htmlElement(e){this._htmlElement=e,this._changed()}get htmlElement(){return this._htmlElement}set scale(e){this._scale=e,this._changed()}get scale(){return this._scale}set html(e){if(!e)this.htmlElement=void 0;else{let t=document.createElement("div");t.innerHTML="
"+e+"
",this.htmlElement=t.firstElementChild}}get html(){return this._htmlElement.innerHTML}_getIsValid(){return this.htmlElement}_getLookupId(){return this._scale+":"+this._htmlElement.innerHTML}_getSourceLoader(){let e=this._htmlElement,t=this._scale;return function(i){if(!window.html2canvas)return i(new Error("Please include html2canvas (https://html2canvas.hertzen.com/)"));let s=r.getPreloadArea();s.appendChild(e),html2canvas(e,{backgroundColor:null,scale:t}).then(function(n){if(s.removeChild(e),n.height===0)return i(new Error("Canvas height is 0"));i(null,{source:n,width:n.width,height:n.height})}).catch(n=>{console.error("[Lightning]",n)})}}static getPreloadArea(){return this._preloadArea||(this._preloadArea=document.createElement("div"),this._preloadArea.attachShadow&&this._preloadArea.attachShadow({mode:"closed"}),this._preloadArea.style.opacity=0,this._preloadArea.style.pointerEvents="none",this._preloadArea.style.position="fixed",this._preloadArea.style.display="block",this._preloadArea.style.top="100vh",this._preloadArea.style.overflow="hidden",document.body.appendChild(this._preloadArea)),this._preloadArea}},mu=class extends Rt{constructor(e,t){super(e),this._options=t}set options(e){this._options!==e&&(this._options=e,this._changed())}get options(){return this._options}_getIsValid(){return!!this._options}_getSourceLoader(){return e=>{e(null,this._options)}}},_u=class extends ht{constructor(e){super(e),this._wrapper=super._children.a({}),this._reloadVisibleElements=!1,this._visibleItems=new Set,this._index=0,this._started=!1,this._scrollTransitionSettings=this.stage.transitions.createSettings({}),this._itemSize=100,this._viewportScrollOffset=0,this._itemScrollOffset=0,this._roll=!1,this._rollMin=0,this._rollMax=0,this._progressAnimation=null,this._invertDirection=!1,this._horizontal=!0,this.itemList=new yu(this)}_allowChildrenAccess(){return!1}get items(){return this.itemList.get()}set items(e){this.itemList.patch(e)}start(){this._wrapper.transition(this.property,this._scrollTransitionSettings),this._scrollTransition=this._wrapper.transition(this.property),this._scrollTransition.on("progress",e=>this.update()),this.setIndex(0,!0,!0),this._started=!0,this.update()}setIndex(e,t=!1,i=!1){let s=this.length;if(!s)return;if(this.emit("unfocus",this.getElement(this.realIndex),this._index,this.realIndex),i){let a=K.getModuloIndex(e,s),l=K.getModuloIndex(this.index,s),u=a-l;u>.5*s?u-=s:u<-.5*s&&(u+=s),this._index+=u}else this._index=e;(this._roll||this.viewportSize>this._itemSize*s)&&(this._index=K.getModuloIndex(this._index,s));let n=this._horizontal^this._invertDirection?-1:1,o=n*this._index*this._itemSize;if(this._roll){let a,l,u;if(n==1)l=(s-1)*this._itemSize,u=this._viewportScrollOffset*this.viewportSize-this._itemScrollOffset*this._itemSize,l-=u,a=this.viewportSize-(this._itemSize+u),this._rollMin&&(a-=this._rollMin),this._rollMax&&(l+=this._rollMax),o=Math.max(Math.min(o,l),a);else{l=s*this._itemSize-this.viewportSize,u=this._viewportScrollOffset*this.viewportSize-this._itemScrollOffset*this._itemSize,l+=u;let c=u;this._rollMin&&(c-=this._rollMin),this._rollMax&&(l+=this._rollMax),o=Math.min(Math.max(-l,o),-c)}}this._scrollTransition.start(o),t&&this._scrollTransition.finish(),this.emit("focus",this.getElement(this.realIndex),this._index,this.realIndex)}getAxisPosition(){let e=-this._scrollTransition._targetValue,i=-(this._horizontal^this._invertDirection?-1:1)*this._index*this._itemSize;return this._viewportScrollOffset*this.viewportSize+(i-e)}update(){if(!this._started)return;let e=this.length;if(!e)return;let t=this._horizontal^this._invertDirection?-1:1,i=this._horizontal?this._wrapper.x:this._wrapper.y,s=this.viewportSize,n=this._viewportScrollOffset*s-this._itemScrollOffset*this._itemSize;i+=n;let o,a,l,u;t==-1?(o=Math.floor(-i/this._itemSize),l=1-(-i/this._itemSize-o),a=Math.floor((s-i)/this._itemSize),u=(s-i)/this._itemSize-a):(o=Math.ceil(i/this._itemSize),l=1+i/this._itemSize-o,a=Math.ceil((i-s)/this._itemSize),u=a-(i-s)/this._itemSize),(this._roll||s>this._itemSize*e)&&(a>=e&&(a=e-1,u=1),o>=e&&(o=e-1,l=1),a<=-1&&(a=0,u=1),o<=-1&&(o=0,l=1));let c=-t*o*this._itemSize,g;for(let y=o;t==-1?y<=a:y>=a;t==-1?y++:y--){let b=K.getModuloIndex(y,e),C=this.getElement(b);g=C.parent,this._visibleItems.delete(g),this._horizontal?g.x=c+n:g.y=c+n;let A=g.visible;if(g.visible=!0,(!A||this._reloadVisibleElements)&&this.emit("visible",y,b),this._progressAnimation){let T=1;y==o?T=l:y==a&&(T=u),this._progressAnimation.apply(C,T)}c+=this._itemSize}let m=this;this._visibleItems.forEach(function(y){y.visible=!1,m._visibleItems.delete(y)});for(let y=o;t==-1?y<=a:y>=a;t==-1?y++:y--){let b=K.getModuloIndex(y,e);this._visibleItems.add(this.getWrapper(b))}this._reloadVisibleElements=!1}setPrevious(){this.setIndex(this._index-1)}setNext(){this.setIndex(this._index+1)}getWrapper(e){return this._wrapper.children[e]}getElement(e){let t=this._wrapper.children[e];return t?t.children[0]:null}reload(){this._reloadVisibleElements=!0,this.update()}get element(){let e=this._wrapper.children[this.realIndex];return e?e.children[0]:null}get length(){return this._wrapper.children.length}get property(){return this._horizontal?"x":"y"}get viewportSize(){return this._horizontal?this.w:this.h}get index(){return this._index}get realIndex(){return K.getModuloIndex(this._index,this.length)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,this.update()}get viewportScrollOffset(){return this._viewportScrollOffset}set viewportScrollOffset(e){this._viewportScrollOffset=e,this.update()}get itemScrollOffset(){return this._itemScrollOffset}set itemScrollOffset(e){this._itemScrollOffset=e,this.update()}get scrollTransitionSettings(){return this._scrollTransitionSettings}set scrollTransitionSettings(e){this._scrollTransitionSettings.patch(e)}set scrollTransition(e){this._scrollTransitionSettings.patch(e)}get scrollTransition(){return this._scrollTransition}get progressAnimation(){return this._progressAnimation}set progressAnimation(e){K.isObjectLiteral(e)?this._progressAnimation=this.stage.animations.createSettings(e):this._progressAnimation=e,this.update()}get roll(){return this._roll}set roll(e){this._roll=e,this.update()}get rollMin(){return this._rollMin}set rollMin(e){this._rollMin=e,this.update()}get rollMax(){return this._rollMax}set rollMax(e){this._rollMax=e,this.update()}get invertDirection(){return this._invertDirection}set invertDirection(e){this._started||(this._invertDirection=e)}get horizontal(){return this._horizontal}set horizontal(e){e!==this._horizontal&&(this._started||(this._horizontal=e))}},yu=class extends So{constructor(e){let t=i=>{let s=i.stage.createElement();return s.add(i),s.visible=!1,s};super(e._wrapper._children,t),this.list=e}onAdd(e,t){super.onAdd(e,t),this.checkStarted(t)}checkStarted(e){this.list._reloadVisibleElements=!0,this.list._started?(this.list.length===1?this.list.setIndex(0,!0,!0):this.list._index>=this.list.length&&this.list.setIndex(0),this.list.update()):this.list.start()}onRemove(e,t){super.onRemove(e,t);let i=this.list.realIndex;i===t?(i===this.list.length&&i--,i>=0&&this.list.setIndex(i)):i>t&&this.list.setIndex(i-1),this.list._reloadVisibleElements=!0}onSet(e,t){super.onSet(e,t),this.checkStarted(t)}onSync(e,t,i){super.onSync(e,t,i),this.checkStarted(0)}get _signalProxy(){return!0}},xi=class extends Ae{constructor(e){super(e),this._direction=new Float32Array([1,0]),this._kernelRadius=1}get x(){return this._direction[0]}set x(e){this._direction[0]=e,this.redraw()}get y(){return this._direction[1]}set y(e){this._direction[1]=e,this.redraw()}get kernelRadius(){return this._kernelRadius}set kernelRadius(e){this._kernelRadius=e,this.redraw()}useDefault(){return this._kernelRadius===0}setupUniforms(e){super.setupUniforms(e),this._setUniform("direction",this._direction,this.gl.uniform2fv),this._setUniform("kernelRadius",this._kernelRadius,this.gl.uniform1i);let t=e.getRenderWidth(),i=e.getRenderHeight();this._setUniform("resolution",new Float32Array([t,i]),this.gl.uniform2fv)}};xi.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + uniform vec2 resolution; + varying vec2 vTextureCoord; + varying vec4 vColor; + uniform sampler2D uSampler; + uniform vec2 direction; + uniform int kernelRadius; + + vec4 blur1(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { + vec4 color = vec4(0.0); + vec2 off1 = vec2(1.3333333333333333) * direction; + color += texture2D(image, uv) * 0.29411764705882354; + color += texture2D(image, uv + (off1 / resolution)) * 0.35294117647058826; + color += texture2D(image, uv - (off1 / resolution)) * 0.35294117647058826; + return color; + } + + vec4 blur2(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { + vec4 color = vec4(0.0); + vec2 off1 = vec2(1.3846153846) * direction; + vec2 off2 = vec2(3.2307692308) * direction; + color += texture2D(image, uv) * 0.2270270270; + color += texture2D(image, uv + (off1 / resolution)) * 0.3162162162; + color += texture2D(image, uv - (off1 / resolution)) * 0.3162162162; + color += texture2D(image, uv + (off2 / resolution)) * 0.0702702703; + color += texture2D(image, uv - (off2 / resolution)) * 0.0702702703; + return color; + } + + vec4 blur3(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { + vec4 color = vec4(0.0); + vec2 off1 = vec2(1.411764705882353) * direction; + vec2 off2 = vec2(3.2941176470588234) * direction; + vec2 off3 = vec2(5.176470588235294) * direction; + color += texture2D(image, uv) * 0.1964825501511404; + color += texture2D(image, uv + (off1 / resolution)) * 0.2969069646728344; + color += texture2D(image, uv - (off1 / resolution)) * 0.2969069646728344; + color += texture2D(image, uv + (off2 / resolution)) * 0.09447039785044732; + color += texture2D(image, uv - (off2 / resolution)) * 0.09447039785044732; + color += texture2D(image, uv + (off3 / resolution)) * 0.010381362401148057; + color += texture2D(image, uv - (off3 / resolution)) * 0.010381362401148057; + return color; + } + + void main(void){ + if (kernelRadius == 1) { + gl_FragColor = blur1(uSampler, vTextureCoord, resolution, direction) * vColor; + } else if (kernelRadius == 2) { + gl_FragColor = blur2(uSampler, vTextureCoord, resolution, direction) * vColor; + } else { + gl_FragColor = blur3(uSampler, vTextureCoord, resolution, direction) * vColor; + } + } +`;var It=class extends Ae{setupUniforms(e){super.setupUniforms(e);let t=1/e.getTextureWidth(0),i=1/e.getTextureHeight(0);this._setUniform("stepTextureCoord",new Float32Array([t,i]),this.gl.uniform2fv)}};It.vertexShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + uniform vec2 stepTextureCoord; + attribute vec2 aVertexPosition; + attribute vec2 aTextureCoord; + attribute vec4 aColor; + uniform vec2 projection; + varying vec4 vColor; + varying vec2 vTextureCoordUl; + varying vec2 vTextureCoordUr; + varying vec2 vTextureCoordBl; + varying vec2 vTextureCoordBr; + void main(void){ + gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0); + vTextureCoordUl = aTextureCoord - stepTextureCoord; + vTextureCoordBr = aTextureCoord + stepTextureCoord; + vTextureCoordUr = vec2(vTextureCoordBr.x, vTextureCoordUl.y); + vTextureCoordBl = vec2(vTextureCoordUl.x, vTextureCoordBr.y); + vColor = aColor; + gl_Position.y = -sign(projection.y) * gl_Position.y; + } +`;It.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoordUl; + varying vec2 vTextureCoordUr; + varying vec2 vTextureCoordBl; + varying vec2 vTextureCoordBr; + varying vec4 vColor; + uniform sampler2D uSampler; + void main(void){ + vec4 color = 0.25 * (texture2D(uSampler, vTextureCoordUl) + texture2D(uSampler, vTextureCoordUr) + texture2D(uSampler, vTextureCoordBl) + texture2D(uSampler, vTextureCoordBr)); + gl_FragColor = color * vColor; + } +`;var To=class extends yi{constructor(e){super(e),this._kernelRadius=1}get kernelRadius(){return this._kernelRadius}set kernelRadius(e){this._kernelRadius=e,this.redraw()}useDefault(){return this._amount===0}_beforeDrawEl({target:e}){e.ctx.filter="blur("+this._kernelRadius+"px)"}_afterDrawEl({target:e}){e.ctx.filter="none"}},xu=class extends ht{static _template(){return{}}get wrap(){return this.tag("Wrap")}set content(e){return this.wrap.content=e}get content(){return this.wrap.content}set padding(e){this.wrap._paddingX=e,this.wrap._paddingY=e,this.wrap._updateBlurSize()}set paddingX(e){this.wrap._paddingX=e,this.wrap._updateBlurSize()}set paddingY(e){this.wrap._paddingY=e,this.wrap._updateBlurSize()}set amount(e){return this.wrap.amount=e}get amount(){return this.wrap.amount}_onResize(){this.wrap.w=this.renderWidth,this.wrap.h=this.renderHeight}get _signalProxy(){return!0}_build(){this.patch({Wrap:{type:this.stage.gl?vu:bu}})}},bu=class r extends ht{static _template(){return{forceZIndexContext:!0,rtt:!0,Textwrap:{shader:{type:To},Content:{}}}}constructor(e){super(e),this._textwrap=this.sel("Textwrap"),this._wrapper=this.sel("Textwrap>Content"),this._amount=0,this._paddingX=0,this._paddingY=0}static getSpline(){return this._multiSpline||(this._multiSpline=new mo,this._multiSpline.parse(!1,{0:0,.25:1.5,.5:5.5,.75:18,1:39})),this._multiSpline}get content(){return this.sel("Textwrap>Content")}set content(e){this.sel("Textwrap>Content").patch(e,!0)}set padding(e){this._paddingX=e,this._paddingY=e,this._updateBlurSize()}set paddingX(e){this._paddingX=e,this._updateBlurSize()}set paddingY(e){this._paddingY=e,this._updateBlurSize()}_updateBlurSize(){let e=this.renderWidth,t=this.renderHeight,i=this._paddingX,s=this._paddingY;this._wrapper.x=i,this._textwrap.x=-i,this._wrapper.y=s,this._textwrap.y=-s,this._textwrap.w=e+i*2,this._textwrap.h=t+s*2}get amount(){return this._amount}set amount(e){this._amount=e,this._textwrap.shader.kernelRadius=r._amountToKernelRadius(e)}static _amountToKernelRadius(e){return r.getSpline().getValue(Math.min(1,e*.25))}get _signalProxy(){return!0}},vu=class extends ht{static _template(){let e=function(t,i){if(i._recalc&130){let s=i.w,n=i.h,o=i;do o=o._children[0],o._element.w=s,o._element.h=n;while(o._children)}};return{Textwrap:{rtt:!0,forceZIndexContext:!0,renderOffscreen:!0,Content:{}},Layers:{L0:{rtt:!0,onUpdate:e,renderOffscreen:!0,visible:!1,Content:{shader:{type:It}}},L1:{rtt:!0,onUpdate:e,renderOffscreen:!0,visible:!1,Content:{shader:{type:It}}},L2:{rtt:!0,onUpdate:e,renderOffscreen:!0,visible:!1,Content:{shader:{type:It}}},L3:{rtt:!0,onUpdate:e,renderOffscreen:!0,visible:!1,Content:{shader:{type:It}}}},Result:{shader:{type:Co},visible:!1}}}get _signalProxy(){return!0}constructor(e){super(e),this._textwrap=this.sel("Textwrap"),this._wrapper=this.sel("Textwrap>Content"),this._layers=this.sel("Layers"),this._output=this.sel("Result"),this._amount=0,this._paddingX=0,this._paddingY=0}_buildLayers(){let t=[{x:1,y:0,kernelRadius:1},{x:0,y:1,kernelRadius:1},{x:1.5,y:0,kernelRadius:1},{x:0,y:1.5,kernelRadius:1}].map(i=>qr.create(this.stage,Object.assign({type:xi},i)));this._setLayerTexture(this.getLayerContents(0),this._textwrap.getTexture(),[]),this._setLayerTexture(this.getLayerContents(1),this.getLayer(0).getTexture(),[t[0],t[1]]),this._setLayerTexture(this.getLayerContents(2),this.getLayer(1).getTexture(),[t[0],t[1],t[2],t[3]]),this._setLayerTexture(this.getLayerContents(3),this.getLayer(2).getTexture(),[t[0],t[1],t[2],t[3]])}_setLayerTexture(e,t,i){if(!i.length)e.texture=t;else{let s=i.pop(),n=e.stage.c({rtt:!0,shader:s});this._setLayerTexture(n,t,i),e.childList.add(n)}return e}get content(){return this.sel("Textwrap>Content")}set content(e){this.sel("Textwrap>Content").patch(e,!0)}set padding(e){this._paddingX=e,this._paddingY=e,this._updateBlurSize()}set paddingX(e){this._paddingX=e,this._updateBlurSize()}set paddingY(e){this._paddingY=e,this._updateBlurSize()}getLayer(e){return this._layers.sel("L"+e)}getLayerContents(e){return this.getLayer(e).sel("Content")}_onResize(){this._updateBlurSize()}_updateBlurSize(){let e=this.renderWidth,t=this.renderHeight,i=this._paddingX,s=this._paddingY,n=e+i*2,o=t+s*2;this._textwrap.w=n,this._wrapper.x=i,this.getLayer(0).w=this.getLayerContents(0).w=n/2,this.getLayer(1).w=this.getLayerContents(1).w=n/4,this.getLayer(2).w=this.getLayerContents(2).w=n/8,this.getLayer(3).w=this.getLayerContents(3).w=n/16,this._output.x=-i,this._textwrap.x=-i,this._output.w=n,this._textwrap.h=o,this._wrapper.y=s,this.getLayer(0).h=this.getLayerContents(0).h=o/2,this.getLayer(1).h=this.getLayerContents(1).h=o/4,this.getLayer(2).h=this.getLayerContents(2).h=o/8,this.getLayer(3).h=this.getLayerContents(3).h=o/16,this._output.y=-s,this._textwrap.y=-s,this._output.h=o,this.w=e,this.h=t}set amount(e){this._amount=e,this._update()}get amount(){return this._amount}_update(){let e=Math.min(4,Math.max(0,this._amount));e===0?(this._textwrap.renderToTexture=!1,this._output.shader.otherTextureSource=null,this._output.visible=!1):(this._textwrap.renderToTexture=!0,this._output.visible=!0,this.getLayer(0).visible=e>0,this.getLayer(1).visible=e>1,this.getLayer(2).visible=e>2,this.getLayer(3).visible=e>3,e<=1?(this._output.texture=this._textwrap.getTexture(),this._output.shader.otherTextureSource=this.getLayer(0).getTexture(),this._output.shader.a=e):e<=2?(this._output.texture=this.getLayer(0).getTexture(),this._output.shader.otherTextureSource=this.getLayer(1).getTexture(),this._output.shader.a=e-1):e<=3?(this._output.texture=this.getLayer(1).getTexture(),this._output.shader.otherTextureSource=this.getLayer(2).getTexture(),this._output.shader.a=e-2):e<=4&&(this._output.texture=this.getLayer(2).getTexture(),this._output.shader.otherTextureSource=this.getLayer(3).getTexture(),this._output.shader.a=e-3))}set shader(e){super.shader=e,this.renderToTexture||console.warn("[Lightning] Please enable renderToTexture to use with a shader.")}_firstActive(){this._buildLayers()}},Co=class extends Ae{constructor(e){super(e),this._a=0,this._otherTextureSource=null}get a(){return this._a}set a(e){this._a=e,this.redraw()}set otherTextureSource(e){this._otherTextureSource=e,this.redraw()}setupUniforms(e){super.setupUniforms(e),this._setUniform("a",this._a,this.gl.uniform1f),this._setUniform("uSampler2",1,this.gl.uniform1i)}beforeDraw(e){let t=this._otherTextureSource?this._otherTextureSource.nativeTexture:null,i=this.gl;i.activeTexture(i.TEXTURE1),i.bindTexture(i.TEXTURE_2D,t),i.activeTexture(i.TEXTURE0)}};Co.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec4 vColor; + uniform sampler2D uSampler; + uniform sampler2D uSampler2; + uniform float a; + void main(void){ + if (a == 1.0) { + gl_FragColor = texture2D(uSampler2, vTextureCoord) * vColor; + } else { + gl_FragColor = ((1.0 - a) * texture2D(uSampler, vTextureCoord) + (a * texture2D(uSampler2, vTextureCoord))) * vColor; + } + } +`;var Su=class extends ht{static _template(){let e=function(t,i){if(i._recalc&130){let s=i.w,n=i.h,o=i;do o=o._children[0],o._element.w=s,o._element.h=n;while(o._children)}};return{Textwrap:{rtt:!0,forceZIndexContext:!0,renderOffscreen:!0,BloomBase:{shader:{type:Ao},Content:{}}},Layers:{L0:{rtt:!0,onUpdate:e,scale:2,pivot:0,visible:!1,Content:{shader:{type:It}}},L1:{rtt:!0,onUpdate:e,scale:4,pivot:0,visible:!1,Content:{shader:{type:It}}},L2:{rtt:!0,onUpdate:e,scale:8,pivot:0,visible:!1,Content:{shader:{type:It}}},L3:{rtt:!0,onUpdate:e,scale:16,pivot:0,visible:!1,Content:{shader:{type:It}}}}}}get _signalProxy(){return!0}constructor(e){super(e),this._textwrap=this.sel("Textwrap"),this._wrapper=this.sel("Textwrap.Content"),this._layers=this.sel("Layers"),this._amount=0,this._paddingX=0,this._paddingY=0}_build(){let t=[{x:1,y:0,kernelRadius:3},{x:0,y:1,kernelRadius:3},{x:1.5,y:0,kernelRadius:3},{x:0,y:1.5,kernelRadius:3}].map(i=>this.stage.createShader(Object.assign({type:xi},i)));this._setLayerTexture(this.getLayerContents(0),this._textwrap.getTexture(),[]),this._setLayerTexture(this.getLayerContents(1),this.getLayer(0).getTexture(),[t[0],t[1]]),this._setLayerTexture(this.getLayerContents(2),this.getLayer(1).getTexture(),[t[0],t[1],t[2],t[3]]),this._setLayerTexture(this.getLayerContents(3),this.getLayer(2).getTexture(),[t[0],t[1],t[2],t[3]])}_setLayerTexture(e,t,i){if(!i.length)e.texture=t;else{let s=i.pop(),n=e.stage.c({rtt:!0,shader:s});this._setLayerTexture(n,t,i),e.childList.add(n)}return e}get content(){return this.sel("Textwrap.Content")}set content(e){this.sel("Textwrap.Content").patch(e)}set padding(e){this._paddingX=e,this._paddingY=e,this._updateBlurSize()}set paddingX(e){this._paddingX=e,this._updateBlurSize()}set paddingY(e){this._paddingY=e,this._updateBlurSize()}getLayer(e){return this._layers.sel("L"+e)}getLayerContents(e){return this.getLayer(e).sel("Content")}_onResize(){this._updateBlurSize()}_updateBlurSize(){let e=this.renderWidth,t=this.renderHeight,i=this._paddingX,s=this._paddingY,n=e+i*2,o=t+s*2;this._textwrap.w=n,this._wrapper.x=i,this.getLayer(0).w=this.getLayerContents(0).w=n/2,this.getLayer(1).w=this.getLayerContents(1).w=n/4,this.getLayer(2).w=this.getLayerContents(2).w=n/8,this.getLayer(3).w=this.getLayerContents(3).w=n/16,this._textwrap.x=-i,this._textwrap.h=o,this._wrapper.y=s,this.getLayer(0).h=this.getLayerContents(0).h=o/2,this.getLayer(1).h=this.getLayerContents(1).h=o/4,this.getLayer(2).h=this.getLayerContents(2).h=o/8,this.getLayer(3).h=this.getLayerContents(3).h=o/16,this._textwrap.y=-s,this.w=e,this.h=t}set amount(e){this._amount=e,this._update()}get amount(){return this._amount}_update(){let e=Math.min(4,Math.max(0,this._amount));e>0&&(this.getLayer(0).visible=e>0,this.getLayer(1).visible=e>1,this.getLayer(2).visible=e>2,this.getLayer(3).visible=e>3)}set shader(e){super.shader=e,this.renderToTexture||console.warn("[Lightning] Please enable renderToTexture to use with a shader.")}_firstActive(){this._build()}},Ao=class extends Ae{};Ao.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec4 vColor; + uniform sampler2D uSampler; + void main(void){ + vec4 color = texture2D(uSampler, vTextureCoord) * vColor; + float m = max(max(color.r, color.g), color.b); + float c = max(0.0, (m - 0.80)) * 5.0; + color = color * c; + gl_FragColor = color; + } +`;var wu=class r extends ht{static _template(){return{ContentWrap:{renderOffscreen:!0,forceZIndexContext:!0,onAfterUpdate:r._updateDimensions,Content:{}},Scale:{visible:!1}}}constructor(e){super(e),this._smoothScale=1,this._iterations=0}get content(){return this.tag("Content")}set content(e){this.tag("Content").patch(e,!0)}get smoothScale(){return this._smoothScale}set smoothScale(e){if(this._smoothScale!==e){let t=0;for(;e<.5&&t<12;)t++,e=e*2;this.scale=e,this._setIterations(t),this._smoothScale=e}}_setIterations(e){if(this._iterations!==e){let t=this.sel("Scale").childList,i=this.sel("ContentWrap");for(;t.length0;this.patch({ContentWrap:{renderToTexture:s},Scale:{visible:s}});for(let n=0,o=t.length;n0}set borderWidthRight(e){this._borderRight.w=e,this._borderRight.visible=e>0}set borderWidthBottom(e){this._borderBottom.h=e,this._borderBottom.visible=e>0}set borderWidthLeft(e){this._borderLeft.w=e,this._borderLeft.visible=e>0}get colorBorder(){return this.colorBorderTop}get colorBorderTop(){return this._borderTop.color}get colorBorderRight(){return this._borderRight.color}get colorBorderBottom(){return this._borderBottom.color}get colorBorderLeft(){return this._borderLeft.color}set colorBorder(e){this.colorBorderTop=e,this.colorBorderRight=e,this.colorBorderBottom=e,this.colorBorderLeft=e}set colorBorderTop(e){this._borderTop.color=e}set colorBorderRight(e){this._borderRight.color=e}set colorBorderBottom(e){this._borderBottom.color=e}set colorBorderLeft(e){this._borderLeft.color=e}get borderTop(){return this._borderTop}set borderTop(e){this.borderTop.patch(e)}get borderRight(){return this._borderRight}set borderRight(e){this.borderRight.patch(e)}get borderBottom(){return this._borderBottom}set borderBottom(e){this.borderBottom.patch(e)}get borderLeft(){return this._borderLeft}set borderLeft(e){this.borderLeft.patch(e)}set borders(e){this.borderTop=e,this.borderLeft=e,this.borderBottom=e,this.borderRight=e}},bs=class extends Ae{constructor(e){super(e),this._amount=1}static getC2d(){return Eo}set amount(e){this._amount=e,this.redraw()}get amount(){return this._amount}useDefault(){return this._amount===0}setupUniforms(e){super.setupUniforms(e),this._setUniform("amount",this._amount,this.gl.uniform1f)}};bs.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec4 vColor; + uniform sampler2D uSampler; + uniform float amount; + void main(void){ + vec4 color = texture2D(uSampler, vTextureCoord) * vColor; + float grayness = 0.2 * color.r + 0.6 * color.g + 0.2 * color.b; + gl_FragColor = vec4(amount * vec3(grayness, grayness, grayness) + (1.0 - amount) * color.rgb, color.a); + } +`;var Eo=class extends yi{constructor(e){super(e),this._amount=1}static getWebGL(){return bs}set amount(e){this._amount=e,this.redraw()}get amount(){return this._amount}useDefault(){return this._amount===0}_beforeDrawEl({target:e}){e.ctx.filter="grayscale("+this._amount+")"}_afterDrawEl({target:e}){e.ctx.filter="none"}},vs=class extends Ae{constructor(e){super(e),this._noiseTexture=new wo(e.stage),this._graining=1/256,this._random=!1}set graining(e){this._graining=e,this.redraw()}set random(e){this._random=e,this.redraw()}setExtraAttribsInBuffer(e){this._noiseTexture.load();let t=e.extraAttribsDataByteOffset/4,i=e.quads.floats,s=e.length;for(let n=0;n100&&(console.warn("[Lightning] CircularPushShader: supports max 100 buckets"),e=100),this._buckets=e,this._values=new Uint8Array(this._getValues(e)),this.redraw()}get buckets(){return this._buckets}_getValues(e){let t=[];for(let i=0;i=0;t--){let i=t-e;i<0?(this._normalizedValue=Math.min(this._normalizedValue+this._maxDerivative,Math.max(this._normalizedValue-this._maxDerivative,this._inputValue)),this._values[t]=255*this._normalizedValue):this._values[t]=this._values[i]}}set offset(e){this._offset=e,this.redraw()}setupUniforms(e){super.setupUniforms(e),this._setUniform("aspectRatio",this._aspectRatio,this.gl.uniform1f),this._setUniform("offsetX",this._offsetX,this.gl.uniform1f),this._setUniform("offsetY",this._offsetY,this.gl.uniform1f),this._setUniform("amount",this._amount,this.gl.uniform1f),this._setUniform("offset",this._offset,this.gl.uniform1f),this._setUniform("buckets",this._buckets,this.gl.uniform1f),this._setUniform("uValueSampler",1,this.gl.uniform1i)}useDefault(){return this._amount===0}beforeDraw(e){let t=this.gl;t.activeTexture(t.TEXTURE1),this._valuesTexture?t.bindTexture(t.TEXTURE_2D,this._valuesTexture):(this._valuesTexture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this._valuesTexture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),K.isNode&&t.pixelStorei(t.UNPACK_FLIP_BLUE_RED,!1),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1)),t.texImage2D(t.TEXTURE_2D,0,t.ALPHA,this._buckets,1,0,t.ALPHA,t.UNSIGNED_BYTE,this._values),t.activeTexture(t.TEXTURE0)}cleanup(){this._valuesTexture&&this.gl.deleteTexture(this._valuesTexture)}};Ss.vertexShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + attribute vec2 aVertexPosition; + attribute vec2 aTextureCoord; + attribute vec4 aColor; + uniform vec2 projection; + uniform float offsetX; + uniform float offsetY; + uniform float aspectRatio; + varying vec2 vTextureCoord; + varying vec2 vPos; + varying vec4 vColor; + void main(void){ + gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0); + vTextureCoord = aTextureCoord; + vPos = vTextureCoord * 2.0 - 1.0; + vPos.y = vPos.y * aspectRatio; + vPos.y = vPos.y + offsetY; + vPos.x = vPos.x + offsetX; + vColor = aColor; + gl_Position.y = -sign(projection.y) * gl_Position.y; + } +`;Ss.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec4 vColor; + varying vec2 vPos; + uniform float amount; + uniform float offset; + uniform float values[100]; + uniform float buckets; + uniform sampler2D uSampler; + uniform sampler2D uValueSampler; + void main(void){ + float l = length(vPos); + float m = (l * buckets * 0.678 - offset) / buckets; + float f = texture2D(uValueSampler, vec2(m, 0.0)).a * amount; + vec2 unit = vPos / l; + gl_FragColor = texture2D(uSampler, vTextureCoord - f * unit) * vColor; + } +`;var Io=class extends Ae{constructor(e){super(e),this._amount=1}set amount(e){this._amount=e,this.redraw()}get amount(){return this._amount}useDefault(){return this._amount===0}setupUniforms(e){super.setupUniforms(e),this._setUniform("amount",this._amount,this.gl.uniform1f)}};Io.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec4 vColor; + uniform sampler2D uSampler; + uniform float amount; + void main(void){ + vec4 color = texture2D(uSampler, vTextureCoord); + color.rgb = color.rgb * (1.0 - amount) + amount * (1.0 * color.a - color.rgb); + gl_FragColor = color * vColor; + } +`;var ws=class extends Ae{constructor(e){super(e),this._width=5,this._col=4294967295,this._color=[1,1,1,1]}set width(e){this._width=e,this.redraw()}get color(){return this._col}set color(e){if(this._col!==e){let t=fe.getRgbaComponentsNormalized(e);t[0]=t[0]*t[3],t[1]=t[1]*t[3],t[2]=t[2]*t[3],this._color=t,this.redraw(),this._col=e}}useDefault(){return this._width===0||this._col[3]===0}setupUniforms(e){super.setupUniforms(e);let t=this.gl;this._setUniform("color",new Float32Array(this._color),t.uniform4fv)}enableAttribs(){super.enableAttribs(),this.gl.enableVertexAttribArray(this._attrib("aCorner"))}disableAttribs(){super.disableAttribs(),this.gl.disableVertexAttribArray(this._attrib("aCorner"))}setExtraAttribsInBuffer(e){let t=e.extraAttribsDataByteOffset/4,i=e.quads.floats,s=e.length;for(let n=0;n(n+.5)*i);this._setUniform("radius",new Float32Array(s),this.gl.uniform4fv),this._setUniform("alpha",e.getElementCore(0).renderContext.alpha,this.gl.uniform1f),this._setUniform("blend",this._blend,this.gl.uniform1f),this._setUniform("strokeColor",this._strokeColor,this.gl.uniform4fv),this._setUniform("fillColor",this._fillColor,this.gl.uniform4fv),this._setUniform("stroke",this._stroke*i,this.gl.uniform1f),this._setUniform("resolution",new Float32Array([t._w*i,t._h*i]),this.gl.uniform2fv)}};As.vertexShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + attribute vec2 aVertexPosition; + attribute vec2 aTextureCoord; + + attribute vec4 aColor; + uniform vec2 projection; + varying vec2 vTextureCoord; + varying vec4 vColor; + + void main(void){ + gl_Position = vec4(aVertexPosition.x * projection.x - 1.0, aVertexPosition.y * -abs(projection.y) + 1.0, 0.0, 1.0); + vTextureCoord = aTextureCoord; + vColor = aColor; + gl_Position.y = -sign(projection.y) * gl_Position.y; + } +`;As.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + + #define PI 3.14159265359 + + varying vec2 vTextureCoord; + varying vec4 vColor; + + uniform sampler2D uSampler; + uniform vec2 resolution; + uniform vec4 radius; + uniform float stroke; + uniform vec4 strokeColor; + uniform vec4 fillColor; + uniform float alpha; + uniform float fill; + uniform float blend; + + float boxDist(vec2 p, vec2 size, float radius){ + size -= vec2(radius); + vec2 d = abs(p) - size; + return min(max(d.x, d.y), 0.0) + length(max(d, 0.0)) - radius; + } + + float fillMask(float dist){ + return clamp(-dist, 0.0, 1.0); + } + + float innerBorderMask(float dist, float width){ + float alpha1 = clamp(dist + width, 0.0, 1.0); + float alpha2 = clamp(dist, 0.0, 1.0); + return alpha1 - alpha2; + } + + void main() { + vec2 halfRes = 0.5 * resolution.xy; + float r = 0.0; + if (vTextureCoord.x < 0.5 && vTextureCoord.y < 0.5) { + r = radius[0]; + } else if (vTextureCoord.x >= 0.5 && vTextureCoord.y < 0.5) { + r = radius[1]; + } else if (vTextureCoord.x >= 0.5 && vTextureCoord.y >= 0.5) { + r = radius[2]; + } else { + r = radius[3]; + } + + float b = boxDist(vTextureCoord.xy * resolution - halfRes, halfRes - 0.005, r); + vec4 tex = texture2D(uSampler, vTextureCoord) * vColor; + vec4 blend = mix(vec4(1.0) * alpha, tex, blend); + vec4 layer1 = mix(vec4(0.0), tex * fillColor, fillMask(b)); + gl_FragColor = mix(layer1, blend * strokeColor, innerBorderMask(b, stroke)); + } +`;var Ro=class extends Ae{constructor(e){super(e),this._fade=[0,0,0,0]}set top(e){this._fade[0]=e,this.redraw()}get top(){return this._fade[0]}set right(e){this._fade[1]=e,this.redraw()}get right(){return this._fade[1]}set bottom(e){this._fade[2]=e,this.redraw()}get bottom(){return this._fade[2]}set left(e){this._fade[3]=e,this.redraw()}get left(){return this._fade[3]}set fade(e){Array.isArray(e)?e.length===2?this._fade=[e[0],e[1],e[0],e[1]]:e.length===3?this._fade=[e[0],e[1],e[2],this._fade[3]]:e.length===4?this._fade=e:this._fade=[e[0],e[0],e[0],e[0]]:this._fade=[e,e,e,e],this.redraw()}get fade(){return this._fade}setupUniforms(e){super.setupUniforms(e);let t=e.shaderOwner,i=this.ctx.stage.getRenderPrecision(),s=this._fade.map(n=>n*i);this._setUniform("fade",new Float32Array(s),this.gl.uniform4fv),this._setUniform("resolution",new Float32Array([t._w*i,t._h*i]),this.gl.uniform2fv)}};Ro.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec4 vColor; + uniform sampler2D uSampler; + uniform vec2 resolution; + uniform vec4 fade; + + void main() { + vec4 color = texture2D(uSampler, vTextureCoord) * vColor; + vec2 halfRes = 0.5 * resolution.xy; + vec2 point = vTextureCoord.xy * resolution.xy; + + vec2 pos1; + vec2 pos2; + vec2 d; + float c; + float t = 0.0; + + if(fade[0] > 0.0) { + pos1 = vec2(point.x, point.y); + pos2 = vec2(point.x, point.y + fade[0]); + d = pos2 - pos1; + c = dot(pos1, d) / dot(d, d); + t = smoothstep(0.0, 1.0, clamp(c, 0.0, 1.0)); + color = mix(vec4(0.0), color, t); + } + + if(fade[1] > 0.0) { + vec2 pos1 = vec2(point.x - resolution.x - fade[1], vTextureCoord.y); + vec2 pos2 = vec2(point.x - resolution.x, vTextureCoord.y); + d = pos1 - pos2; + c = dot(pos2, d) / dot(d, d); + t = smoothstep(0.0, 1.0, clamp(c, 0.0, 1.0)); + color = mix(vec4(0.0), color, t); + } + + if(fade[2] > 0.0) { + vec2 pos1 = vec2(vTextureCoord.x, point.y - resolution.y - fade[2]); + vec2 pos2 = vec2(vTextureCoord.x, point.y - resolution.y); + d = pos1 - pos2; + c = dot(pos2, d) / dot(d, d); + t = smoothstep(0.0, 1.0, clamp(c, 0.0, 1.0)); + color = mix(vec4(0.0), color, t); + } + + if(fade[3] > 0.0) { + pos1 = vec2(point.x, point.y); + pos2 = vec2(point.x + fade[3], point.y); + d = pos2 - pos1; + c = dot(pos1, d) / dot(d, d); + t = smoothstep(0.0, 1.0, clamp(c, 0.0, 1.0)); + color = mix(vec4(0.0), color, t); + } + + gl_FragColor = color; + } +`;var Es=class extends Ae{constructor(e){super(e),this._magnitude=1.3,this._intensity=.7,this._pivot=[.5,.5]}setupUniforms(e){super.setupUniforms(e),this._setUniform("magnitude",this._magnitude,this.gl.uniform1f),this._setUniform("intensity",this._intensity,this.gl.uniform1f),this._setUniform("pivot",new Float32Array(this._pivot),this.gl.uniform2fv),this.redraw()}set pivot(e){Array.isArray(e)?this._pivot=e:this._pivot=[e,e],this.redraw()}get pivotX(){return this._pivot[0]}set pivotX(e){this._pivot[0]=e,this.redraw()}get pivotY(){return this._pivot[1]}set pivotY(e){this._pivot[1]=e,this.redraw()}get intensity(){return this._intensity}set intensity(e){this._intensity=e,this.redraw()}get magnitude(){return this._magnitude}set magnitude(e){this._magnitude=e,this.redraw()}};Es.vertexShaderSource=Ae.vertexShaderSource;Es.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec4 vColor; + uniform sampler2D uSampler; + + uniform float magnitude; + uniform float intensity; + uniform vec2 pivot; + + void main() { + vec2 uv = vTextureCoord.xy - pivot + vec2(0.5); + uv.x = clamp(uv.x, 0.0, 1.0); + uv.y = clamp(uv.y, 0.0, 1.0); + + uv *= 1.00 - uv.yx; + float vig = uv.x * uv.y * 25.0 * intensity; + vig = pow(vig, 0.45 * magnitude); + vec4 fragColor = vec4(vig) * vColor; + gl_FragColor = texture2D(uSampler, vTextureCoord) * fragColor; + + } +`;var Is=class extends Ae{constructor(e){super(e),this._radius=100,this._width=50,this._period=1,this._angle=.5,this._smooth=.005,this._color=4294967295,this._backgroundColor=4278190080,this._time=Date.now()}set radius(e){this._radius=e,this.redraw()}set width(e){this._width=e,this.redraw()}set period(e){this._period=e,this.redraw()}set angle(e){this._angle=e,this.redraw()}set smooth(e){this._smooth=e,this.redraw()}set color(e){this._color=e,this.redraw()}set backgroundColor(e){this._backgroundColor=e,this.redraw()}setupUniforms(e){super.setupUniforms(e);let t=e.shaderOwner;this._setUniform("iTime",Date.now()-this._time,this.gl.uniform1f);let i=this.ctx.stage.getRenderPrecision();this._setUniform("radius",this._radius*i,this.gl.uniform1f),this._setUniform("width",this._width*i,this.gl.uniform1f),this._setUniform("period",this._period,this.gl.uniform1f),this._setUniform("angle",this._angle,this.gl.uniform1f),this._setUniform("smooth",this._smooth,this.gl.uniform1f),this._setUniform("color",new Float32Array(fe.getRgbaComponentsNormalized(this._color)),this.gl.uniform4fv),this._setUniform("backgroundColor",new Float32Array(fe.getRgbaComponentsNormalized(this._backgroundColor)),this.gl.uniform4fv),this._setUniform("resolution",new Float32Array([t._w*i,t._h*i]),this.gl.uniform2fv),this.redraw()}};Is.vertexShaderSource=Ae.vertexShaderSource;Is.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec4 vColor; + uniform sampler2D uSampler; + + uniform float iTime; + uniform float radius; + uniform float width; + uniform float period; + uniform float angle; + uniform float smooth; + uniform vec2 resolution; + + uniform vec4 color; + uniform vec4 backgroundColor; + + float ratio = resolution.y / resolution.x; + + vec2 transpose_pos(vec2 pos) { + if (ratio < 1.) { + float diff = 0.5 - pos.x; + pos.x = 0.5 - diff / ratio; + } else { + float diff = 0.5 - pos.y; + pos.y = 0.5 - diff * ratio; + } + return pos; + } + + float get_angle(vec2 pos) { + pos = transpose_pos(pos); + float a = atan(pos.y - 0.5, pos.x - 0.5); + a = (1.0+a/3.14159)/2.0; + + return a; + } + + float dist(vec2 pos1, vec2 pos2) { + pos1 = transpose_pos(pos1); + return distance(pos1, pos2); + } + + void main() + { + vec2 fragCoord = vTextureCoord; + vec4 fragColor = vColor; + + vec2 st = vTextureCoord; + float pct = dist(st, vec2(0.5)); + + float a = get_angle(st); + float t = iTime / 1000.0 / period; + + float inner = max((radius - width) / resolution.x, (radius - width) / resolution.y); + float outer = max(radius / resolution.x, radius / resolution.y); + + float x1 = mod(t, 1.0); + float x2 = mod(t + angle, 1.0); + + if (x1 < x2) { + if (a > x1 && a < x2) { + float val = (1.0 - (x2 - a) / angle) * smoothstep(0.0, 3. * smooth, (x2 - a)); + fragColor = mix(backgroundColor, color, val); + } else { + fragColor = backgroundColor; + } + } else { + if (a < x2) { + float val = (1.0 - (x2 - a) / angle) * smoothstep(0.0, 3. * smooth, (x2 - a)); + fragColor = mix(backgroundColor, color, val); + } else if (a > x1) { + float val = (1.0 - (1.0 + x2 - a) / angle) * smoothstep(0.0, 3. * smooth, (1.0 + x2 - a)); + fragColor = mix(backgroundColor, color, val); + } else { + fragColor = backgroundColor; + } + } + + float s = smoothstep(inner, inner + smooth + 0.00001, pct) * (1.0 - smoothstep(outer, outer + smooth + 0.00001, pct)); + gl_FragColor = texture2D(uSampler, fragCoord) * vColor * (1. - s * fragColor.a) + fragColor * s; + } +`;var Rs=class extends Ae{constructor(e){super(e),this._x=0,this._y=0,this._w=0,this._h=0,this._radius=0}get x(){return this._x}set x(e){this._x=e,this.redraw()}get y(){return this._y}set y(e){this._y=e,this.redraw()}get w(){return this._w}set w(e){this._w=e,this.redraw()}get h(){return this._h}set h(e){this._h=e,this.redraw()}get radius(){return this._radius}set radius(e){this._radius=e,this.redraw()}setupUniforms(e){super.setupUniforms(e);let t=e.shaderOwner,i=this.ctx.stage.getRenderPrecision();this._setUniform("x",this._x*i,this.gl.uniform1f),this._setUniform("y",this._y*i,this.gl.uniform1f),this._setUniform("w",this._w*i,this.gl.uniform1f),this._setUniform("h",this._h*i,this.gl.uniform1f),this._setUniform("radius",(this._radius+.5)*i,this.gl.uniform1f),this._setUniform("resolution",new Float32Array([t._w*i,t._h*i]),this.gl.uniform2fv)}useDefault(){return this._x===0&&this._y===0&&this._w===0&&this._h===0}};Rs.vertexShaderSource=Ae.vertexShaderSource;Rs.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec4 vColor; + uniform sampler2D uSampler; + uniform float x; + uniform float y; + uniform float w; + uniform float h; + uniform vec2 resolution; + uniform float radius; + + float roundBox(vec2 p, vec2 b, float r) { + float d = length(max(abs(p)-b+r, 0.1))-r; + return smoothstep(1.0, 0.0, d); + } + + void main(void){ + vec4 color = texture2D(uSampler, vTextureCoord); + vec2 pos = vTextureCoord.xy * resolution - vec2(x, y) - vec2(w, h) / 2.0; + vec2 size = vec2(w, h) / 2.0; + float b = roundBox(pos, size, radius); + gl_FragColor = mix(color, vec4(0.0), b) * vColor; + } +`;var Po=class extends Ae{constructor(e){super(e),this._pivot=[0,0],this._ic=4294967295,this._normalizedIC=this._getNormalizedColor(this._ic),this._oc=16777215,this._normalizedOC=this._getNormalizedColor(this._oc),this._radius=0}set radiusX(e){this.radius=e}get radiusX(){return this._radius}set radiusY(e){this._radiusY=e,this.redraw()}get radiusY(){return this._radiusY}set radius(e){this._radius=e,this.redraw()}set innerColor(e){this._ic=e,this._normalizedIC=this._getNormalizedColor(e),this.redraw()}get innerColor(){return this._ic}set outerColor(e){this._oc=e,this._normalizedOC=this._getNormalizedColor(e),this.redraw()}set color(e){this.innerColor=e}get color(){return this.innerColor}get outerColor(){return this._ic}set x(e){this._x=e,this.redraw()}set y(e){this._y=e,this.redraw()}set pivot(e){Array.isArray(e)&&e.length===2?this._pivot=e:Array.isArray(e)?this._pivot=[e[0],e[1]||e[0]]:this._pivot=[e,e],this.redraw()}get pivot(){return this._pivot[0]}set pivotY(e){this._pivot[1]=e,this.redraw()}get pivotY(){return this._pivot[1]}set pivotX(e){this._pivot[0]=e,this.redraw()}get pivotX(){return this._pivot[0]}_getNormalizedColor(e){let t=fe.getRgbaComponentsNormalized(e);return t[0]*=t[3],t[1]*=t[3],t[2]*=t[3],new Float32Array(t)}setupUniforms(e){super.setupUniforms(e);let t=e.shaderOwner;this._x&&(this._pivot[0]=this._x/t.w),this._y&&(this._pivot[1]=this._y/t.h),this._radius===0&&(this._radius=t.w*.5),this._setUniform("innerColor",this._normalizedIC,this.gl.uniform4fv),this._setUniform("fill",fe.getRgbaComponentsNormalized(this._oc)[3],this.gl.uniform1f),this._setUniform("outerColor",this._normalizedOC,this.gl.uniform4fv),this._setUniform("pivot",new Float32Array(this._pivot),this.gl.uniform2fv),this._setUniform("resolution",new Float32Array([t._w,t._h]),this.gl.uniform2fv),this._setUniform("alpha",e.getElementCore(0).renderContext.alpha,this.gl.uniform1f),this._setUniform("radius",this._radius,this.gl.uniform1f),this._setUniform("radiusY",this._radiusY||this._radius,this.gl.uniform1f)}};Po.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + + #define PI 3.14159265359 + + varying vec2 vTextureCoord; + varying vec4 vColor; + uniform sampler2D uSampler; + uniform vec2 resolution; + uniform vec2 pivot; + uniform vec4 innerColor; + uniform vec4 outerColor; + uniform float radius; + uniform float radiusY; + uniform float alpha; + uniform float fill; + uniform float aspectRatio; + + void main() { + vec2 point = vTextureCoord.xy * resolution; + vec2 projection = vec2(pivot.x * resolution.x, pivot.y * resolution.y); + float d = length((point - projection) / vec2(radius * 2.0, radiusY * 2.0)); + vec4 color = mix(texture2D(uSampler, vTextureCoord) * vColor, outerColor * alpha, fill); + gl_FragColor = mix(innerColor * alpha, color, smoothstep(0.0, 1.0, d)); + } +`;var Ps=class extends Ae{constructor(e){super(e),this._strength=.5,this._ambient=.5,this._fudge=.4,this._rx=0,this._ry=0,this._z=0,this._pivotX=NaN,this._pivotY=NaN,this._pivotZ=0,this._lightY=0,this._lightZ=0}setupUniforms(e){super.setupUniforms(e);let t=e.shaderOwner,i=t.element,s=isNaN(this._pivotX)?i.pivotX*t.w:this._pivotX,n=isNaN(this._pivotY)?i.pivotY*t.h:this._pivotY,o=t.getRenderTextureCoords(s,n),a=-Math.atan2(t._renderContext.tc,t._renderContext.ta),l=this.gl;this._setUniform("pivot",new Float32Array([o[0],o[1],this._pivotZ]),l.uniform3fv),this._setUniform("rot",new Float32Array([this._rx,this._ry,a]),l.uniform3fv),this._setUniform("z",this._z,l.uniform1f),this._setUniform("lightY",this.lightY,l.uniform1f),this._setUniform("lightZ",this.lightZ,l.uniform1f),this._setUniform("strength",this._strength,l.uniform1f),this._setUniform("ambient",this._ambient,l.uniform1f),this._setUniform("fudge",this._fudge,l.uniform1f)}set strength(e){this._strength=e,this.redraw()}get strength(){return this._strength}set ambient(e){this._ambient=e,this.redraw()}get ambient(){return this._ambient}set fudge(e){this._fudge=e,this.redraw()}get fudge(){return this._fudge}get rx(){return this._rx}set rx(e){this._rx=e,this.redraw()}get ry(){return this._ry}set ry(e){this._ry=e,this.redraw()}get z(){return this._z}set z(e){this._z=e,this.redraw()}get pivotX(){return this._pivotX}set pivotX(e){this._pivotX=e+1,this.redraw()}get pivotY(){return this._pivotY}set pivotY(e){this._pivotY=e+1,this.redraw()}get lightY(){return this._lightY}set lightY(e){this._lightY=e,this.redraw()}get pivotZ(){return this._pivotZ}set pivotZ(e){this._pivotZ=e,this.redraw()}get lightZ(){return this._lightZ}set lightZ(e){this._lightZ=e,this.redraw()}useDefault(){return this._rx===0&&this._ry===0&&this._z===0&&this._strength===0&&this._ambient===1}};Ps.vertexShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + attribute vec2 aVertexPosition; + attribute vec2 aTextureCoord; + attribute vec4 aColor; + uniform vec2 projection; + varying vec2 vTextureCoord; + varying vec4 vColor; + + uniform float fudge; + uniform float strength; + uniform float ambient; + uniform float z; + uniform float lightY; + uniform float lightZ; + uniform vec3 pivot; + uniform vec3 rot; + varying vec3 pos; + + void main(void) { + pos = vec3(aVertexPosition.xy, z); + + pos -= pivot; + + // Undo XY rotation + mat2 iRotXy = mat2( cos(rot.z), sin(rot.z), + -sin(rot.z), cos(rot.z)); + pos.xy = iRotXy * pos.xy; + + // Perform 3d rotations + gl_Position.x = cos(rot.x) * pos.x - sin(rot.x) * pos.z; + gl_Position.y = pos.y; + gl_Position.z = sin(rot.x) * pos.x + cos(rot.x) * pos.z; + + pos.x = gl_Position.x; + pos.y = cos(rot.y) * gl_Position.y - sin(rot.y) * gl_Position.z; + pos.z = sin(rot.y) * gl_Position.y + cos(rot.y) * gl_Position.z; + + // Redo XY rotation + iRotXy[0][1] = -iRotXy[0][1]; + iRotXy[1][0] = -iRotXy[1][0]; + pos.xy = iRotXy * pos.xy; + + // Undo translate to pivot position + pos.xyz += pivot; + + pos = vec3(pos.x * projection.x - 1.0, pos.y * -abs(projection.y) + 1.0, pos.z * projection.x); + + // Set depth perspective + float perspective = 1.0 + fudge * pos.z; + + pos.z += lightZ * projection.x; + + // Map coords to gl coordinate space. + // Set z to 0 because we don't want to perform z-clipping + gl_Position = vec4(pos.xy, 0.0, perspective); + + // Correct light source position. + pos.y += lightY * abs(projection.y); + + vTextureCoord = aTextureCoord; + vColor = aColor; + + gl_Position.y = -sign(projection.y) * gl_Position.y; + } +`;Ps.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec4 vColor; + varying vec3 pos; + uniform sampler2D uSampler; + uniform float ambient; + uniform float strength; + void main(void){ + vec4 rgba = texture2D(uSampler, vTextureCoord); + float d = length(pos); + float n = 1.0 / max(0.1, d); + rgba.rgb = rgba.rgb * (strength * n + ambient); + gl_FragColor = rgba * vColor; + } +`;var ks=class extends Ae{constructor(e){super(e),this._fudge=.2,this._rx=0,this._ry=0,this._z=1}setupUniforms(e){super.setupUniforms(e);let t=e.shaderOwner,i=t.element,s=i.pivotX*t.w,n=i.pivotY*t.h,o=t.getRenderTextureCoords(s,n),a=-Math.atan2(t._renderContext.tc,t._renderContext.ta),l=this.gl;this._setUniform("pivot",new Float32Array([o[0],o[1],0]),l.uniform3fv),this._setUniform("rot",new Float32Array([this._rx,this._ry,a]),l.uniform3fv),this._setUniform("z",this._z,l.uniform1f),this._setUniform("fudge",this._fudge,l.uniform1f)}set fudge(e){this._fudge=e,this.redraw()}get fudge(){return this._fudge}get rx(){return this._rx}set rx(e){this._rx=e,this.redraw()}get ry(){return this._ry}set ry(e){this._ry=e,this.redraw()}get z(){return this._z}set z(e){this._z=e,this.redraw()}useDefault(){return this._rx===0&&this._ry===0&&this._z===0}};ks.vertexShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + attribute vec2 aVertexPosition; + attribute vec2 aTextureCoord; + attribute vec4 aColor; + uniform vec2 projection; + varying vec2 vTextureCoord; + varying vec4 vColor; + + uniform float z; + uniform vec3 pivot; + uniform vec3 rot; + varying vec3 pos; + + void main(void) { + pos = vec3(aVertexPosition.xy, z); + + pos -= pivot; + + // Undo XY rotation + mat2 iRotXy = mat2( cos(rot.z), sin(rot.z), + -sin(rot.z), cos(rot.z)); + pos.xy = iRotXy * pos.xy; + + // Perform 3d rotations + gl_Position.x = cos(rot.x) * pos.x - sin(rot.x) * pos.z; + gl_Position.y = pos.y; + gl_Position.z = sin(rot.x) * pos.x + cos(rot.x) * pos.z; + + pos.x = gl_Position.x; + pos.y = cos(rot.y) * gl_Position.y - sin(rot.y) * gl_Position.z; + pos.z = sin(rot.y) * gl_Position.y + cos(rot.y) * gl_Position.z; + + // Redo XY rotation + iRotXy[0][1] = -iRotXy[0][1]; + iRotXy[1][0] = -iRotXy[1][0]; + pos.xy = iRotXy * pos.xy; + + // Undo translate to pivot position + pos.xyz += pivot; + + pos = vec3(pos.x * projection.x - 1.0, pos.y * -abs(projection.y) + 1.0, pos.z * projection.x); + + // Map coords to gl coordinate space. + // Set z to 0 because we don't want to perform z-clipping + gl_Position = vec4(pos.xy, 0.0, z); + + vTextureCoord = aTextureCoord; + vColor = aColor; + + gl_Position.y = -sign(projection.y) * gl_Position.y; + } +`;ks.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + varying vec2 vTextureCoord; + varying vec4 vColor; + uniform sampler2D uSampler; + + uniform vec3 rot; + uniform float fudge; + + void main(void) { + vec2 coords = vTextureCoord; + + coords.xy -= vec2(0.5); + coords.y = coords.y + (sign(rot[0]) * 0.5 - coords.x) * sin(rot[0]) * fudge * coords.y; + coords.x = coords.x + (sign(rot[1]) * 0.5 - coords.y) * sin(rot[1]) * fudge * coords.x; + coords.xy += vec2(0.5); + + if (coords.x < 0.0 || coords.x > 1.0 || coords.y < 0.0 || coords.y > 1.0) { + gl_FragColor = vec4(0.0); + } else { + gl_FragColor = texture2D(uSampler, coords) * vColor; + } + } +`;var Os=class extends Ae{constructor(e){super(e),this._x=0,this._y=0,this._w=0,this._h=0,this._radius=0,this._magnification=.6}get x(){return this._x}set x(e){this._x=e,this.redraw()}get y(){return this._y}set y(e){this._y=e,this.redraw()}get w(){return this._w}set w(e){this._w=e,this.redraw()}get h(){return this._h}set h(e){this._h=e,this.redraw()}get magnification(){return this._magnification}set magnification(e){this._magnification=e,this.redraw()}get radius(){return this._radius}set radius(e){this._radius=e,this.redraw()}setupUniforms(e){super.setupUniforms(e);let t=e.shaderOwner,i=this.ctx.stage.getRenderPrecision();this._setUniform("x",this._x*i,this.gl.uniform1f),this._setUniform("y",this._y*i,this.gl.uniform1f),this._setUniform("w",this._w*i,this.gl.uniform1f),this._setUniform("h",this._h*i,this.gl.uniform1f),this._setUniform("magnification",this._magnification,this.gl.uniform1f),this._setUniform("radius",(this._radius+.5)*i,this.gl.uniform1f),this._setUniform("resolution",new Float32Array([t._w*i,t._h*i]),this.gl.uniform2fv)}useDefault(){return this._w===0&&this._h===0}};Os.vertexShaderSource=Ae.vertexShaderSource;Os.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + + varying vec2 vTextureCoord; + varying vec4 vColor; + uniform sampler2D uSampler; + uniform float x; + uniform float y; + uniform float w; + uniform float h; + uniform vec2 resolution; + uniform float radius; + uniform float magnification; + + float roundBox(vec2 p, vec2 b, float r) { + float d = length(max(abs(p)-b+r, 0.1))-r; + return smoothstep(1.0, 0.0, d); + } + + float inside(vec2 v) { + vec2 s = step(vec2(0.0, 0.0), v) - step(vec2(1.0, 1.0), v); + return s.x * s.y; + } + + void main(void) { + vec4 color = texture2D(uSampler, vTextureCoord); + vec2 pos = vTextureCoord.xy * resolution - vec2(x, y) - vec2(w, h) / 2.0; + vec2 size = vec2(w, h) / 2.0; + float b = roundBox(pos, size, radius); + vec2 pos2 = (vTextureCoord.xy * magnification * resolution + vec2(x, y) * magnification) / resolution; + gl_FragColor = mix(color, texture2D(uSampler, pos2) * inside(pos2), b) * vColor; + } + `;var Ls=class r extends Ae{constructor(e){super(e),this._period=1,this._stroke=0,this._showDot=!0,this._clockwise=!0,this._bc=4278190080,this._normalizedBC=this._getNormalizedColor(this._bc),this._c=4294967295,this._normalizedC=this._getNormalizedColor(this._c)}set radius(e){e===0&&(e=1),this._radius=e}set stroke(e){this._stroke=Math.abs(e)}get stroke(){return this._stroke}set color(e){this._c=e,this._normalizedC=this._getNormalizedColor(e)}get color(){return this._c}set backgroundColor(e){this._bc=e,this._normalizedBC=this._getNormalizedColor(e)}get backgroundColor(){return this._sc}set showDot(e){this._showDot=e}get showDot(){return this._showDot}set clockwise(e){this._clockwise=e}get clockwise(){return this._clockwise}set period(e){this._period=e}get period(){return this._period}_getNormalizedColor(e){let t=fe.getRgbaComponentsNormalized(e);return t[0]*=t[3],t[1]*=t[3],t[2]*=t[3],new Float32Array(t)}setupUniforms(e){super.setupUniforms(e);let t=e.shaderOwner,i=this._radius||t._w/2;this._stroke===0&&(this._stroke=i*.33),this._setUniform("resolution",new Float32Array([t._w,t._h]),this.gl.uniform2fv),this._setUniform("color",this._normalizedC,this.gl.uniform4fv),this._setUniform("backgroundColor",this._normalizedBC,this.gl.uniform4fv),this._setUniform("stroke",this._stroke,this.gl.uniform1f),this._setUniform("radius",i,this.gl.uniform1f),this._setUniform("direction",this._clockwise?-1:1,this.gl.uniform1f),this._setUniform("showDot",!!this._showDot,this.gl.uniform1f),this._setUniform("time",Date.now()-r.spinSync,this.gl.uniform1f),this._setUniform("period",this._period,this.gl.uniform1f),this._setUniform("alpha",e.getElementCore(0).renderContext.alpha,this.gl.uniform1f),(this._sc!==this._bc||this._stroke!==i*.5)&&this.redraw()}};Ls.spinSync=Date.now();Ls.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + + #define PI 3.14159265359 + + varying vec2 vTextureCoord; + varying vec4 vColor; + + uniform sampler2D uSampler; + uniform vec2 resolution; + uniform vec4 color; + uniform vec4 backgroundColor; + uniform float direction; + uniform float radius; + uniform float time; + uniform float stroke; + uniform float showDot; + uniform float period; + uniform float alpha; + + float circleDist(vec2 p, float radius){ + return length(p) - radius; + } + + float fillMask(float dist){ + return clamp(-dist, 0.0, 1.0); + } + + void main() { + vec2 halfRes = 0.5 * resolution.xy; + vec2 center = vTextureCoord.xy * resolution - halfRes; + + float c = max(-circleDist(center, radius - stroke), circleDist(center, radius)); + float rot = -(time / 1000.0 / period) * 6.0 * direction; + center *= mat2(cos(rot), sin(rot), -sin(rot), cos(rot)); + + float a = direction * atan(center.x, center.y) * PI * 0.05 + 0.45; + + float strokeRad = stroke * 0.5; + a = mix(a, max(a, fillMask(circleDist(vec2(center.x, center.y + (radius - strokeRad)), strokeRad))), showDot); + vec4 base = mix(vec4(0.0), backgroundColor * alpha, fillMask(c)); + gl_FragColor = mix(base, color * alpha, fillMask(c) * a); + } +`;var le={Application:du,Component:ht,Base:dt,Utils:K,StageUtils:fe,Element:yt,Tools:pu,Stage:xs,ElementCore:ds,ElementTexturizer:eo,Texture:Rt,EventEmitter:ct,shaders:{Grayscale:bs,BoxBlur:It,Dithering:vs,CircularPush:Ss,Inversion:Io,LinearBlur:xi,Outline:ws,Pixelate:Ts,RadialFilter:Cs,RoundedRectangle:As,Spinner2:Ls,FadeOut:Ro,Hole:Rs,Vignette:Es,Spinner:Is,RadialGradient:Po,Light3d:Ps,Perspective:ks,Magnifier:Os,WebGLShader:_i,WebGLDefaultShader:Ae,C2dShader:ms,C2dDefaultShader:yi,c2d:{Grayscale:Eo,Blur:To}},textures:{RectangleTexture:xo,NoiseTexture:wo,TextTexture:nr,ImageTexture:ps,HtmlTexture:gu,StaticTexture:mu,StaticCanvasTexture:bo,SourceTexture:no},components:{FastBlurComponent:xu,BloomComponent:Su,SmoothScaleComponent:wu,BorderComponent:Tu,ListComponent:_u},tools:{ObjMerger:fu,ObjectListProxy:vo,ObjectListWrapper:So}};K.isWeb&&(window.lng=le);h();d();p();var Cu=class{constructor(){this._logCallback=void 0,this._prefix="LightningUI",this._debug=!1}get debug(){return this._debug}set debug(e){this._debug=!!e}get logCallback(){return this._logCallback}set logCallback(e){if(typeof e!="function"){this.warn(`logCallback value must be a function, instead received ${typeof e}`);return}this._logCallback=e}log(...e){this._logCallback&&this._logCallback({level:"log",payload:e}),this.debug&&console.log(this._prefix,...e)}info(...e){this._logCallback&&this._logCallback({level:"info",payload:e}),this.debug&&console.info(this._prefix,...e)}warn(...e){this._logCallback&&this._logCallback({level:"warn",payload:e}),this.debug&&console.warn(this._prefix,...e)}error(...e){this._logCallback&&this._logCallback({level:"error",payload:e}),this.debug&&console.error(this._prefix,...e)}},be=new Cu;function Au(r,e={}){if(!r)return!1;let{w:t,h:i,core:{renderContext:{px:s,py:n},_scissor:o=[]}={}}=r,a=r.stage.h/r.stage.getRenderPrecision(),l=r.stage.w/r.stage.getRenderPrecision(),u=s,c=n,g=s-r.x,m=n-r.y,y=e.offsetX-g||0,b=e.offsetY-m||0;r.transition("x")&&(u=s-r.x+r.transition("x").targetValue),r.transition("y")&&(c=n-r.y+r.transition("y").targetValue),u+=y,c+=b;let C=u>=0&&u+t<=l,A=c>=0&&c+i<=a;if(!C||!A)return!1;if(o&&o.length){let[T=null,R=null,P=null,E=null]=o,k=Math.round(u+t)>=Math.round(T),O=Math.round(u)<=Math.round(T+P),B=Math.round(c+i)>=Math.round(R),F=Math.round(c+i)<=Math.round(R+E);return k&&O&&B&&F}return!0}function bi(r,e=1){let t=r.layout.screenW,i=r.layout.columnCount,s=r.layout.marginX,n=r.layout.gutterX;if(e<1||e>i){console.error(`Column expects a number between 1 & ${i}. Received ${e}`);return}let o=t-s*2,a=(e-1)*n;return(o-a)/e}function Ds(r,e){let t=r.layout.columnCount,i=r.layout.gutterX;return bi(r,t)*e+i*(e-1)}function Eu(r,e={},t={}){let{w:i,h:s,ratioX:n,ratioY:o,upCount:a}=e,l=t.w||0,u=t.h||0,c={};return i&&s?c={w:i,h:s}:s&&n&&o?c={w:Math.round(s*n/o),h:s}:n&&o&&a?c=L1(r,n,o,a):s&&a?c={w:Math.round(bi(r,a)),h:s}:s?c={w:l,h:s}:i?c={w:i,h:u}:c={w:l,h:u},c={...c,ratioX:n,ratioY:o,upCount:a},c}function L1(r,e,t,i){let s,n;return e&&t&&i?(s=Math.round(bi(r,i)),n=Math.round(s/e*t)):(s=0,n=0),{w:s,h:n}}function D1(r,e="16:9",t=":"){let[i,s]=e.split(t);return r*(i/s)}function F1(r,e="16:9",t=":"){let[i,s]=e.split(t);return r/(i/s)}function Cr(r,e=1){if(!r)return 0;typeof r=="number"&&(r=r.toString(16).slice(2)),r=r.replace("#","");let i=`0x${Math.round(e*255).toString(16)}${r}`;return Number(i)}function vi(r){if(typeof r=="string"||typeof r=="number"){if(/^0x[0-9a-fA-F]{8}/g.test(r))return Number(r);if(/^#[0-9a-fA-F]{6}/g.test(r))return Cr(r.substr(1,6));if(typeof r=="string"&&/^[0-9]{8,10}/g.test(r))return parseInt(r);if(typeof r=="number"&&/^[0-9]{8,10}/g.test(r.toString()))return r;if(typeof r=="string"&&r.indexOf("rgba")>-1)return Ip(r);if(typeof r=="string"&&r.indexOf("rgb")>-1){let e=[...r.replace(/rgb\(|\)/g,"").split(","),"255"];return le.StageUtils.getArgbNumber(e)}}return null}function B1([r,e]){for(let t=r;t>0;t--)if(!(r%t)&&!(e%t))return[r/t,e/t]}function Ep(r){return B1(r.split("/").map(e=>+e)).join("/")}var Fs=(r,e)=>(typeof e=="string"&&(e=e.split(".").filter(t=>t.length)),e.reduce((t,i)=>t&&t[i],r));function Ip(r){let e=r.replace(/rgba\(|\)/g,"").split(",");return e[3]=e[3]*255,le.StageUtils.getArgbNumber(e)}function Bs(r){return r.charAt(0).toUpperCase()+r.slice(1)}var M1={getWidth(r,e={}){let{padding:t,paddingLeft:i,paddingRight:s,strokeWidth:n}={padding:0,paddingLeft:0,paddingRight:0,strokeWidth:0,...e};return r?r-(i||t)-(s||t)-n:0},getHeight(r,e={}){let{padding:t,paddingBottom:i,paddingTop:s,strokeWidth:n}={padding:0,paddingBottom:0,paddingTop:0,strokeWidth:0,...e};return r?r-(i||t)-(s||t)-n:0}};function tt(r,e){let t=Object.create(Object.getPrototypeOf(r));if(Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)),!e||r===e)return t;for(let i in e){let s=e[i];r.hasOwnProperty(i)?t[i]=Rp(i,r,e):t[i]=s}return t}function Rp(r,e,t){let i=e[r],s=t[r],n=typeof i,o=typeof s;return n!==o||o==="function"||Array.isArray(s)?s:s&&o==="object"?tt(i,s):s}function ko(r={}){let t=document.createElement("canvas").getContext("2d"),{fontStyle:i,fontWeight:s,fontSize:n,fontFamily:o=r.fontFace||"sans-serif"}=r,a=[i,s,n?`${n}px`:"0",`'${o}'`].filter(Boolean).join(" ");t.font=a;let l=t.measureText(r.text||"");return Math.round(l.width)}function N1(...r){return r.find(Number.isFinite)}function z1(r,e){if(!e)return 0;let t=e.transition(r);if(t.isRunning())return t.targetValue;let i=r;return r==="w"?i="renderWidth":r==="h"&&(i="renderHeight"),e[i]||e[r]}function Oo(r){return r.reduce((e,t)=>e.concat(Array.isArray(t)?Oo(t):t),[])}function j1(r,e){return e.reduce((t,i)=>t&&t[i]!=="undefined"?t[i]:void 0,r)}function Lo(r,e){return JSON.stringify(r)===JSON.stringify(e)}function U1(r,e=16){setTimeout(r,e)}function H1(r,e,t){["plain","json"].includes(t)||(t="plain");let s=`data:text/${t};charset=utf-8,`+encodeURIComponent(JSON.stringify(r)),n=document.createElement("a");n.setAttribute("href",s),n.setAttribute("download",e),n.click()}var Pp=r=>r*(Math.PI/180),kp=/({ICON.*?}|{BADGE:.*?}|{NEWLINE}|{TEXT:.*?})/g;function W1(r=""){return typeof r!="string"?!1:kp.test(r)}function Op(r=""){let e=[];if(r&&typeof r=="string"||r.text){let t=typeof r=="string"?r:r.text,i=/^{ICON:(.*?)?\|(.*?)?}$/g,s=/^{BADGE:(.*?)}$/g,n=/^{NEWLINE}$/g,o=/^{TEXT:(.*?)?\|(.*?)?}$/g,a=t.split(kp);a&&a.length&&a.forEach(l=>{let u=l,c=s.exec(l),g=i.exec(l),m=n.exec(l),y=o.exec(l);c&&c[1]?u={badge:c[1]}:g&&g[1]?u={title:g[1],icon:g[2]||g[1]}:m?u={newline:!0}:y&&y[1]&&(u={text:y[1],style:y[2]}),e.push(u)})}return e}function q1(r,e){!r.zIndex&&typeof e<"u"&&e!==0&&(r.forceZIndexContext=!0,r.zIndex=0)}function Lp({element:r,watchProps:e=[],sideEffect:t=()=>{}}){r?.isElement||be.error(`watchForUpdates: Expected a Lightning Element passed to element parameter, received ${typeof r}`);let i=r.__core?._onAfterUpdate;return r.onAfterUpdate=(function(s){let n=!1;e.forEach(o=>{if(s.transition(o)&&s.transition(o).isRunning())return;let a=`__watchPrev${o}`,l=s[o];l!==s[a]&&(s[a]=l,n=!0)}),n&&t(),i&&i(s)}).bind(this),r}function $1(r){switch(r){case"left":return"flex-start";case"center":return"center";case"right":return"flex-end";default:return console.warn(`Expected "textAlign" values are "left," "center," and "right," but instead, ${r} was received and will fall back to "left."`),"flex-start"}}function wt(r,e,t,i=0){let s=n=>Math.max(0,Math.min(n,Math.min(e,t)/2)+i);return Array.isArray(r)?r.map(n=>Number(s(n))||0):Number(s(r))||0}var V1={isMarkupString:W1,capitalizeFirstLetter:Bs,degreesToRadians:Pp,downloadFile:H1,delayForAnimation:U1,stringifyCompare:Lo,objectPropertyOf:j1,flatten:Oo,getDimension:z1,getFirstNumber:N1,measureTextWidth:ko,clone:tt,getMergeValue:Rp,RoundRect:M1,rgba2argb:Ip,getValFromObjPath:Fs,reduceFraction:Ep,getValidColor:vi,getHexColor:Cr,getAspectRatioH:F1,getAspectRatioW:D1,getWidthByUpCount:bi,getDimensions:Eu,getWidthByColumnSpan:Ds,createConditionalZContext:q1,watchForUpdates:Lp,convertTextAlignToFlexJustify:$1,getMaxRoundRadius:wt},ke=V1;h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();var Iu=class{constructor(){this._keyMetricsCallback=void 0}get keyMetricsCallback(){return this._keyMetricsCallback}set keyMetricsCallback(e){if(-1<["undefined","function"].indexOf(typeof e)){this._keyMetricsCallback=e;return}be.warn(`context keyMetricsCallback expected a function. Received ${typeof e}`)}},Ru=new Iu;h();d();p();var G1=new le.EventEmitter,$r=G1;h();d();p();h();d();p();var Do={name:"Base Lightning TV",alpha:{primary:1,secondary:.7,tertiary:.1,inactive:.5,full:1,none:0,alpha1:.1,alpha2:.3,alpha3:.5,alpha4:.7,alpha5:.9},animation:{duration:{none:0,xfast:.1,fast:.25,normal:.5,slow:.75,xslow:.9},delay:{none:0,xfast:.01,fast:.025,normal:.05,slow:.075,xslow:.09},expressive:{timingFunction:"cubic-bezier(0, 0, 1, 1)",delay:0,duration:.25},expressiveEntrance:{timingFunction:"cubic-bezier(0, 0, 1, 1)",delay:0,duration:.25},expressiveExit:{timingFunction:"cubic-bezier(0, 0, 1, 1)",delay:0,duration:.25},standard:{timingFunction:"cubic-bezier(0, 0, 1, 1)",delay:0,duration:.25},standardEntrance:{timingFunction:"cubic-bezier(0, 0, 1, 1)",delay:0,duration:.25},standardExit:{timingFunction:"cubic-bezier(0, 0, 1, 1)",delay:0,duration:.25},utility:{timingFunction:"cubic-bezier(0, 0, 1, 1)",delay:0,duration:.25},utilityEntrance:{timingFunction:"cubic-bezier(0, 0, 1, 1)",delay:0,duration:.25},utilityExit:{timingFunction:"cubic-bezier(0, 0, 1, 1)",delay:0,duration:.25}},asset:{arrowLeft:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAGKADAAQAAAABAAAAGAAAAADiNXWtAAAAi0lEQVRIDWNgGAWjIfD//38JID5Fk5AAGqwKxPeA+D/VLQCaaQLEr0CGgwBVLQCa5wbEn0EGwwDVLAAaGA3Ev2AGw2iqWAA0rBiI/8EMRaYptgBoWDeygehsci1gIlcjWfqArqZdEMFcBLSEdpGMZAntkimSJbTLaEiW0K6oQLKEdoUdzJJRemiHAAD4n+yzPWCs7QAAAABJRU5ErkJggg==",arrowRight:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAGKADAAQAAAABAAAAGAAAAADiNXWtAAAAg0lEQVRIDWNgGAWjIYArBP7//38KiCVwyVMsDjQcBO4BsSrFhmEzAGw8hHgFpEywqaFIDMkCEPMzELtRZCC6ZjQLQNxfQByNro5sPhYLQEL/gLiYbEORNeKwACbcDVPLBGMMOhrmVDSapkFE00imaTKlaUajaVFB28Ju0CXrUQfhDAEAEgHss6NhpLQAAAAASUVORK5CYII=",backspaceOutline:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAACQCAYAAADnRuK4AAAAAXNSR0IArs4c6QAACmpJREFUeF7tnVmoZUcVhv/feY4gBEVEH/KgCCZxCK2itNo4xQQH+kUN0TjEiDGKKBqnaExwBjUaR6KY+NQgiQkOMSYhYEScIopGJOqDE2hHjfP0y4p1Oqdv33v2qr32Prv2Paug6Ye7Vu2qv75TtWvtGohMqUBAAQZ80zUVQAKUEIQUSIBC8qVzApQMhBRIgELypXMClAyEFEiAQvKlcwKUDIQUSIBC8qVzApQMhBRIgELypXMClAyEFEiAQvKlcwKUDIQUSIBC8qVzApQMhBRIgELypXMClAyEFEiAQvKlcwKUDIQUSIBC8qVzApQMhBRIgELypXMClAyEFEiAQvKlcwKUDIQUSIBC8qVzApQMhBRIgELypfPsAJJ0NYC92XRHKPB3AAfLv18BuBLAFSR/NKZWswJI0vkA3jCmILsw75sAvIfkR8eo22wAknQSgMvGEGFD8vwxgFeQvGrI+s4CIEnHAPgugHsMWfkNzevDAM4i+Z8h6t88QJLuXOB5yBAVzjxuVeBaAM8ieXNUjzkAdAmA50Yrmv5HKPATACeQ/GNEm6YBkvRyANblZhpHAXsfekpkOGsWIEmPAHA9gDuOo13mWhS4gOSZfdVoEiBJ9wFwA4D7961Y+lUpsK/v7KxVgL4K4ElOCS4l+Uyn7a41k3Q0gMcC2ANgH4CHV1T2OyStx69OzQEk6TwAZztr8lMAx5P8s9N+Y8wk2cTjfQDu66z080h+zml7yKwpgCSdCOByZyX+BuBRJH/otN84M0kWN/s0gOc4Kv8Nko922B1m0gxAkh4I4AcVwcL9JA/UVnjT7CXdHYD9yEzfVUkAjib5uxqNmgCoBAu/CeBhzsJ/kORZTtuNN5Nk70bXAZ0Hy59G8qIawVoB6LMAnu8suE3tH0/y3077NAMg6esAuoaoC0la7M2dJgdI0ssAXOgs8W8BHEvS/s9UoYCkdwN4bYfL5STto7U7TQpQZbDQehzreawHylSpgKSTAVza4XYDyeNqsp4MoB7BwteQfH9N5dL2NgWK3l0vyAdJWhDXnSYBSNLtANh3GO/KwgMk97trlYbbKiDJPpzea5U8JKuYqDIeql0kvQPAG5352ZLMR5L8q9M+zXZQYFcAJOnJAL7sbGWLMFuk2SLOmYIKzB6gEiz8HoB7O7U4meQXnLZp1qGApD8BuOcsh7AewcL3kuyadg4OjSSbhRxH0j4BjJok2Ufga0j+YdQHlcznDlBNsPAa+xpP8r/rEHbxjAKPbRuyHvKFY0Ik6QUALOprPfIT1gHRbAGSdDoA77aSX5Zg4e8nhGfx6FEgWoJn8Zy1QCTplq5vjc3NwnoEC/eQ/HYD8IwC0TbwrA2i2QHUI1h4JskLGoJnUIhWwLMWiGYFkCSLMX2t5WDhlneeLm5Dw5kDntEhkmRhEVvesWNqZgiTdC6AN3W1Svn72oOFkuxF+WcVIQUrai+IKuA5BBHJ453auc1mA1AJFn7Jsf7EKj9ZsLBHw1ZDtI5neAmaBUBzCxaO2cBj5u2FZtlO0l8A3K3ZIaxHsPB8kt5vYn00c/mM0dBj5OmqzAqjOQDUfLBwJ32HbPAh84pCM5seSNJLAHzcWeFJgoVdZRui4YfIo6ucff8uyVY03LW5IawyWPgvW5u77mChV/QIABFfb/kidk0CVKbDth3Huw35dJLeniqiV2/fniDYx1f7vlWTeoUFah6wZQhrqwcqwUKbrtsaH0+6mOQpHsOpbXpCVFPstcJjBZNkmzHv0swQJultAN7iVO375TyafzjtJzcbEaK1w9McQJXBQlvvYmtsfjE5FZUFGAGiSeBpCqDKYKFtmX0qya9Utl0z5gNCNBk8BSA7CtiODNwxjf4trEew8BySNtTNOg0A0aTwtARQTbDQeh3rfawXmn0KQDQ5PC0B9EkAL3LSkAD9X6hWALIJzJ3mNoSdS9I7U3NyuX6zQO+zKOzkEEmaHqDSFdpZM97tOfkSfRvvk0LUDEAFIgseetf85DS+AYgk/bPr1NvRZ2HLg4ektwI4xzmgZCBxYohaBMjWPeenDOcvaIvZ2oez5gAqQ5mtLbb3oa4z+Bb6nTHW1UP92vFIr54vzJ8BcGplGdYKkSRbCXGHSWdh2z1ckp1taGccroxyFt9cznG4iGuDqFmASk9kZxxakNGTckHZBBA1DVCB6BMAXuwhyA4VmGL/+05l6zlsbdt7DJmXU0uXmSQ7JvD2zQ1hiwJJsotRvlVxXO87SU5+heUYDT5Gni5KVhg1D1DphWqCjOYy6RlAYzb0mHn3gWkWABWIaoKMubHwSBpGebGWZNdc2vmUO6a1BhJXFUSSff/yLuOYamvzzwEcVfFr7tWwPXqi6uN2PXWYG0C1Qca1n8RaDlewl3kPRL3gWXo/XBwo1dXWdk/a3jEOnJoVQGUoqw0yvpLkh7oUHvLvTohC8FRANBo8pT3sxLeVJ/M2M4QtiVYTZJzkNPoOiAaBxwHRqPDMFqBS8Jog4yT3YewA0aDwrIBodHhmDVApvG0mtO3PnjTJjTxbIBoFnm0gWgs8pQ06lxY3N4QtCWZBRgPDezdnHvPr+alV2EiaL0DlF2Dbn20bdB40XtHwQ5nOHqAC0SyCjEM1Wkv57AqACkRvBvB2p7hrDzI6yzU7s90EUPNBxtnR4SjwrgGo9EK1Qca8cM4ByU4mkuz++F93ZHELyZX3iW31n+S+sKWZWfNBxkCbNeUq6ekArugo1I0kH1xT8EkBKj1R80HGGkFbtZVkZ3bb2d2r0tUkn1hTh8kBKhB9DMBLnQWfJMjoLFuTZpJsO/ONAB7UUcBLSHqvX781q1YAqg0yfoDkq5psrQYLJeldAF7nKFr1x+wmACq9kAUZLazvvTV4P8kDDlE22kTSQ4uuK9dCF5HuR/I3NYI1A1CBaB+AK50VsAMj7TJeixNl2kYBSccCsB/ZMQ6Brif5GIfdYSZNAVQg8rzsLSphl/Hapby2LDZTUaBcq/56ALb1fOVxLkuinULy4loRmwOoQGQX7T7DWZnPk3y203bXmkl6AIA91isDOBGADV3e1HsJbasA1QYZvUKl3fYKPI2knXFQnZoEqPRCNUHG6oqnwyEFLiJ5Wl89mgWoQFQTZOyrwSb7WUztcSRtu0+v1DRABaKPADijV+3SaZUCNgE5geTNEZnmAFBtkDGix6b4Xld2BNvJcaHUPEClF6oNMoZE2eXOtm3q1ZFha1mfWQBUINoL4Kqurbm7vPEj1bOAqx3udW0kk62+swGoQHQ2gPOGFGAD8roJgF0t+qkx6jorgApElwE4aQwxZp6n3YNxsPyzA7yst/4iSdvEMFqaHUCjKZEZ91IgAeolWzotFEiAkoWQAglQSL50ToCSgZACCVBIvnROgJKBkAIJUEi+dE6AkoGQAglQSL50ToCSgZACCVBIvnROgJKBkAIJUEi+dE6AkoGQAglQSL50ToCSgZACCVBIvnROgJKBkAIJUEi+dE6AkoGQAglQSL50ToCSgZACCVBIvnROgJKBkAIJUEi+dE6AkoGQAglQSL50ToCSgZACCVBIvnT+H0jPT81J3xWWAAAAAElFTkSuQmCC",check:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAOCAYAAAAi2ky3AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACtSURBVHgBvdPdDcIgEAfwoy8Nb45QN3AGF2s36Ahu4gpuIDoBfSgfpdoTlCbEWEMh6T8hFzjyg5AAkBHOcQe5UWqspRx435sDpMYj6IYQwwVSEiJ2MKVUBWuzLSLl2HL+uxmNCGFO8yaL7RHxve6qRZoAuS4hxac8735elWVx7jrtMKL1o0Gcat9jhExHSukN/kUIFZ7MpDRtzE1isDRkAUtDvrA8ZI597FUf8gWH9P0b4gko9wAAAABJRU5ErkJggg=="},color:{white:["#ffffff",1],black:["#000000",1],grey:["#929096",1],red:["#e74c3c",1],orange:["#dc7633",1],yellow:["#f7dc6f",1],green:["#2Ecc71",1],blue:["#93a9fd",1],purple:["#663399",1],palette:{"grey-05":["#f8f7fa",1],"grey-40":["#929096",1],"grey-70":["#48474b",1],"grey-90":["#181819",1],"blue-20":["#becffe",1],"blue-40":["#93a9fd",1],"blue-90":["#000033",1]},material:["#181819",1],materialBrand:["#000033",1],overlay:["#181819",.7],textNeutral:["#f8f7fa",1],textNeutralSecondary:["#f8f7fa",.7],textNeutralTertiary:["#f8f7fa",.1],textNeutralDisabled:["#f8f7fa",.5],textInverse:["#181819",1],textInverseSecondary:["#181819",.7],textInverseTertiary:["#181819",.1],textInverseDisabled:["#181819",.5],textBrand:["#93a9fd",1],textBrandSecondary:["#93a9fd",.7],textBrandTertiary:["#93a9fd",.1],textBrandDisabled:["#93a9fd",.5],textPositive:["#2Ecc71",1],textNegative:["#e74c3c",1],textInfo:["#93a9fd",1],textCaution:["#dc7633",1],fillTransparent:["#ffffff",0],fillNeutral:["#f8f7fa",1],fillNeutralSecondary:["#f8f7fa",.7],fillNeutralTertiary:["#f8f7fa",.1],fillNeutralDisabled:["#f8f7fa",.5],fillInverse:["#181819",1],fillInverseSecondary:["#181819",.7],fillInverseTertiary:["#181819",.1],fillInverseDisabled:["#181819",.5],fillBrand:["#93a9fd",1],fillBrandSecondary:["#93a9fd",.7],fillBrandTertiary:["#93a9fd",.1],fillBrandDisabled:["#93a9fd",.5],fillPositive:["#2Ecc71",1],fillNegative:["#e74c3c",1],fillInfo:["#93a9fd",1],fillCaution:["#dc7633",1],strokeNeutral:["#f8f7fa",1],strokeNeutralSecondary:["#f8f7fa",.7],strokeNeutralTertiary:["#f8f7fa",.1],strokeNeutralDisabled:["#f8f7fa",.5],strokeInverse:["#181819",1],strokeInverseSecondary:["#181819",.7],strokeInverseTertiary:["#181819",.1],strokeInverseDisabled:["#181819",.5],strokeBrand:["#93a9fd",1],strokeBrandSecondary:["#93a9fd",.7],strokeBrandTertiary:["#93a9fd",.1],strokeBrandDisabled:["#93a9fd",.5],strokePositive:["#2Ecc71",1],strokeNegative:["#e74c3c",1],strokeInfo:["#93a9fd",1],strokeCaution:["#dc7633",1],interactiveNeutral:["#ffffff",.1],interactiveNeutralFocus:["#ffffff",1],interactiveNeutralFocusSoft:["#ffffff",.1],interactiveInverse:["#48474b",void 0],interactiveInverseFocus:["#48474b",1],interactiveInverseFocusSoft:["#48474b",.1],interactiveBrand:["#becffe",.1],interactiveBrandFocus:["#becffe",1],interactiveBrandFocusSoft:["#becffe",.1],shadowNeutral:["#000000",.7],shadowNeutralFocus:["#000000",.7],shadowNeutralFocusSoft:["#000000",.7],shadowNeutralText:["#000000",1],shadowInverse:["#000000",.7],shadowInverseFocus:["#000000",.7],shadowInverseFocusSoft:["#000000",.7],shadowInverseText:["#000000",1],shadowBrand:["#000000",.7],shadowBrandFocus:["#000000",.7],shadowBrandFocusSoft:["#000000",.7],shadowBrandText:["#000000",1]},componentConfig:{Keyboard:{style:{keyProps:{delete:{title:null,icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAACQCAYAAADnRuK4AAAAAXNSR0IArs4c6QAACmpJREFUeF7tnVmoZUcVhv/feY4gBEVEH/KgCCZxCK2itNo4xQQH+kUN0TjEiDGKKBqnaExwBjUaR6KY+NQgiQkOMSYhYEScIopGJOqDE2hHjfP0y4p1Oqdv33v2qr32Prv2Paug6Ye7Vu2qv75TtWvtGohMqUBAAQZ80zUVQAKUEIQUSIBC8qVzApQMhBRIgELypXMClAyEFEiAQvKlcwKUDIQUSIBC8qVzApQMhBRIgELypXMClAyEFEiAQvKlcwKUDIQUSIBC8qVzApQMhBRIgELypXMClAyEFEiAQvKlcwKUDIQUSIBC8qVzApQMhBRIgELypXMClAyEFEiAQvKlcwKUDIQUSIBC8qVzApQMhBRIgELypfPsAJJ0NYC92XRHKPB3AAfLv18BuBLAFSR/NKZWswJI0vkA3jCmILsw75sAvIfkR8eo22wAknQSgMvGEGFD8vwxgFeQvGrI+s4CIEnHAPgugHsMWfkNzevDAM4i+Z8h6t88QJLuXOB5yBAVzjxuVeBaAM8ieXNUjzkAdAmA50Yrmv5HKPATACeQ/GNEm6YBkvRyANblZhpHAXsfekpkOGsWIEmPAHA9gDuOo13mWhS4gOSZfdVoEiBJ9wFwA4D7961Y+lUpsK/v7KxVgL4K4ElOCS4l+Uyn7a41k3Q0gMcC2ANgH4CHV1T2OyStx69OzQEk6TwAZztr8lMAx5P8s9N+Y8wk2cTjfQDu66z080h+zml7yKwpgCSdCOByZyX+BuBRJH/otN84M0kWN/s0gOc4Kv8Nko922B1m0gxAkh4I4AcVwcL9JA/UVnjT7CXdHYD9yEzfVUkAjib5uxqNmgCoBAu/CeBhzsJ/kORZTtuNN5Nk70bXAZ0Hy59G8qIawVoB6LMAnu8suE3tH0/y3077NAMg6esAuoaoC0la7M2dJgdI0ssAXOgs8W8BHEvS/s9UoYCkdwN4bYfL5STto7U7TQpQZbDQehzreawHylSpgKSTAVza4XYDyeNqsp4MoB7BwteQfH9N5dL2NgWK3l0vyAdJWhDXnSYBSNLtANh3GO/KwgMk97trlYbbKiDJPpzea5U8JKuYqDIeql0kvQPAG5352ZLMR5L8q9M+zXZQYFcAJOnJAL7sbGWLMFuk2SLOmYIKzB6gEiz8HoB7O7U4meQXnLZp1qGApD8BuOcsh7AewcL3kuyadg4OjSSbhRxH0j4BjJok2Ufga0j+YdQHlcznDlBNsPAa+xpP8r/rEHbxjAKPbRuyHvKFY0Ik6QUALOprPfIT1gHRbAGSdDoA77aSX5Zg4e8nhGfx6FEgWoJn8Zy1QCTplq5vjc3NwnoEC/eQ/HYD8IwC0TbwrA2i2QHUI1h4JskLGoJnUIhWwLMWiGYFkCSLMX2t5WDhlneeLm5Dw5kDntEhkmRhEVvesWNqZgiTdC6AN3W1Svn72oOFkuxF+WcVIQUrai+IKuA5BBHJ453auc1mA1AJFn7Jsf7EKj9ZsLBHw1ZDtI5neAmaBUBzCxaO2cBj5u2FZtlO0l8A3K3ZIaxHsPB8kt5vYn00c/mM0dBj5OmqzAqjOQDUfLBwJ32HbPAh84pCM5seSNJLAHzcWeFJgoVdZRui4YfIo6ucff8uyVY03LW5IawyWPgvW5u77mChV/QIABFfb/kidk0CVKbDth3Huw35dJLeniqiV2/fniDYx1f7vlWTeoUFah6wZQhrqwcqwUKbrtsaH0+6mOQpHsOpbXpCVFPstcJjBZNkmzHv0swQJultAN7iVO375TyafzjtJzcbEaK1w9McQJXBQlvvYmtsfjE5FZUFGAGiSeBpCqDKYKFtmX0qya9Utl0z5gNCNBk8BSA7CtiODNwxjf4trEew8BySNtTNOg0A0aTwtARQTbDQeh3rfawXmn0KQDQ5PC0B9EkAL3LSkAD9X6hWALIJzJ3mNoSdS9I7U3NyuX6zQO+zKOzkEEmaHqDSFdpZM97tOfkSfRvvk0LUDEAFIgseetf85DS+AYgk/bPr1NvRZ2HLg4ektwI4xzmgZCBxYohaBMjWPeenDOcvaIvZ2oez5gAqQ5mtLbb3oa4z+Bb6nTHW1UP92vFIr54vzJ8BcGplGdYKkSRbCXGHSWdh2z1ckp1taGccroxyFt9cznG4iGuDqFmASk9kZxxakNGTckHZBBA1DVCB6BMAXuwhyA4VmGL/+05l6zlsbdt7DJmXU0uXmSQ7JvD2zQ1hiwJJsotRvlVxXO87SU5+heUYDT5Gni5KVhg1D1DphWqCjOYy6RlAYzb0mHn3gWkWABWIaoKMubHwSBpGebGWZNdc2vmUO6a1BhJXFUSSff/yLuOYamvzzwEcVfFr7tWwPXqi6uN2PXWYG0C1Qca1n8RaDlewl3kPRL3gWXo/XBwo1dXWdk/a3jEOnJoVQGUoqw0yvpLkh7oUHvLvTohC8FRANBo8pT3sxLeVJ/M2M4QtiVYTZJzkNPoOiAaBxwHRqPDMFqBS8Jog4yT3YewA0aDwrIBodHhmDVApvG0mtO3PnjTJjTxbIBoFnm0gWgs8pQ06lxY3N4QtCWZBRgPDezdnHvPr+alV2EiaL0DlF2Dbn20bdB40XtHwQ5nOHqAC0SyCjEM1Wkv57AqACkRvBvB2p7hrDzI6yzU7s90EUPNBxtnR4SjwrgGo9EK1Qca8cM4ByU4mkuz++F93ZHELyZX3iW31n+S+sKWZWfNBxkCbNeUq6ekArugo1I0kH1xT8EkBKj1R80HGGkFbtZVkZ3bb2d2r0tUkn1hTh8kBKhB9DMBLnQWfJMjoLFuTZpJsO/ONAB7UUcBLSHqvX781q1YAqg0yfoDkq5psrQYLJeldAF7nKFr1x+wmACq9kAUZLazvvTV4P8kDDlE22kTSQ4uuK9dCF5HuR/I3NYI1A1CBaB+AK50VsAMj7TJeixNl2kYBSccCsB/ZMQ6Brif5GIfdYSZNAVQg8rzsLSphl/Hapby2LDZTUaBcq/56ALb1fOVxLkuinULy4loRmwOoQGQX7T7DWZnPk3y203bXmkl6AIA91isDOBGADV3e1HsJbasA1QYZvUKl3fYKPI2knXFQnZoEqPRCNUHG6oqnwyEFLiJ5Wl89mgWoQFQTZOyrwSb7WUztcSRtu0+v1DRABaKPADijV+3SaZUCNgE5geTNEZnmAFBtkDGix6b4Xld2BNvJcaHUPEClF6oNMoZE2eXOtm3q1ZFha1mfWQBUINoL4Kqurbm7vPEj1bOAqx3udW0kk62+swGoQHQ2gPOGFGAD8roJgF0t+qkx6jorgApElwE4aQwxZp6n3YNxsPyzA7yst/4iSdvEMFqaHUCjKZEZ91IgAeolWzotFEiAkoWQAglQSL50ToCSgZACCVBIvnROgJKBkAIJUEi+dE6AkoGQAglQSL50ToCSgZACCVBIvnROgJKBkAIJUEi+dE6AkoGQAglQSL50ToCSgZACCVBIvnROgJKBkAIJUEi+dE6AkoGQAglQSL50ToCSgZACCVBIvnROgJKBkAIJUEi+dE6AkoGQAglQSL50ToCSgZACCVBIvnT+H0jPT81J3xWWAAAAAElFTkSuQmCC"}}}}},font:[],layout:{columnCount:10,focusScale:1.2,gutterX:20,gutterY:20,marginX:150,marginY:150,safe:50,screenW:1920,screenH:1080},radius:{none:0,xs:2,sm:4,md:8,lg:16,xl:24},spacer:{none:0,xxs:2,xs:4,sm:8,md:10,lg:20,xl:30,xxl:40,xxxl:50},stroke:{none:0,sm:2,md:4,lg:6,xl:8},typography:{display1:{fontFamily:"Arial",fontSize:75,lineHeight:85,fontStyle:"500",verticalAlign:"middle",textBaseline:"bottom"},display2:{fontFamily:"Arial",fontSize:50,lineHeight:60,fontStyle:"500",verticalAlign:"middle",textBaseline:"bottom"},headline1:{fontFamily:"Arial",fontSize:35,fontStyle:"500",lineHeight:48,verticalAlign:"middle",textBaseline:"bottom"},headline2:{fontFamily:"Arial",fontSize:30,fontStyle:"500",lineHeight:40,verticalAlign:"middle",textBaseline:"bottom"},headline3:{fontFamily:"Arial",fontSize:25,fontStyle:"500",lineHeight:36,verticalAlign:"middle",textBaseline:"bottom"},body1:{fontFamily:"Arial",fontSize:25,fontStyle:"300",lineHeight:40,verticalAlign:"middle",textBaseline:"bottom"},body2:{fontFamily:"Arial",fontSize:22,fontStyle:"300",lineHeight:32,verticalAlign:"middle",textBaseline:"bottom"},body3:{fontFamily:"Arial",fontSize:20,fontStyle:"300",lineHeight:32,verticalAlign:"middle",textBaseline:"bottom"},button1:{fontFamily:"Arial",fontSize:25,fontStyle:"500",lineHeight:32,verticalAlign:"middle",textBaseline:"bottom"},button2:{fontFamily:"Arial",fontSize:20,fontStyle:"500",lineHeight:32,verticalAlign:"middle",textBaseline:"bottom"},callout1:{fontFamily:"Arial",fontSize:20,fontStyle:"500",lineHeight:32,verticalAlign:"middle",textBaseline:"bottom"},caption1:{fontFamily:"Arial",fontSize:15,fontStyle:"500",lineHeight:24,verticalAlign:"middle",textBaseline:"bottom"},tag1:{fontFamily:"Arial",fontSize:20,fontStyle:"500",lineHeight:24,verticalAlign:"middle",textBaseline:"bottom"},footnote1:{fontFamily:"Arial",fontSize:22,fontStyle:"300",lineHeight:30,verticalAlign:"middle",textBaseline:"bottom"}}};h();d();p();var Fo=[];var Dp=r=>{let e=[];for(let t=0;tl.substr(0,5)==="local"?l:`url(${l})`).join(","):"url("+s+")",a=new FontFace(i,o,n||{});be.info("Loading font",i),document.fonts.add(a),e.push(new Promise(l=>{a.load().then(()=>{Fo.push(a),l(i)}).catch(u=>{l(new Error(`${i}: ${u.message}`))})}))}return Promise.all(e).then(t=>{let i=t.filter(n=>!(n instanceof Error)).join(", ");i&&be.log(`Fonts loaded: ${i}`);let s=t.filter(n=>n instanceof Error).map(n=>n.message).join(", ");s&&be.error(`Unable to load fonts: ${s}`)})},Fp=async r=>{if(document.fonts&&"delete"in document.fonts){if(!Fo.length)return;Fo=Fo.filter(e=>r.find(t=>t.family===e.family)?e:(be.info("Removing font",e.family),document.fonts.delete(e),!1))}else be.info("Unable to remove manually-added fonts")};h();d();p();var Pu={fontFamily:"fontFace"};var ku={all:r=>{let e={};for(let t=0;tr.slice(0,8)==="subTheme";function Y1(r){let e=r.match(/^data:(.*?);base64,/);return e&&e.length===2?e[1]:null}function X1(r){let e=/^data:image\/(jpeg|jpg|png|gif);base64,/,t=e.test(r),i=t?Y1(r.match(e)[0]):null;return{isImage:t,mimeType:i}}function K1(r,e){let t=atob(r.substring(r.indexOf(",")+1)),i=[];try{for(let o=0;o"u")&&(window.LUI||(window.LUI={}),window.LUI.themeManagerInstances?window.LUI.themeManagerInstances.push({themeManager:this,events:$r}):window.LUI.themeManagerInstances=[{themeManager:this,events:$r}])}_setCache(e,t){typeof window>"u"||window.LUI.themeManagerInstances.forEach(({themeManager:i})=>{i&&i._cache.set(e,t)})}_deleteCache(e){typeof window>"u"||window.LUI.themeManagerInstances.forEach(({themeManager:t})=>{t&&t._cache.delete(e)})}_emit(e,t){typeof window>"u"||window.LUI.themeManagerInstances.forEach(({events:i})=>{i.emit(e,t)})}getTheme(){if(this._cache.has("theme"))return this._cache.get("theme");let e=this._processTheme.call(this);return this._setCache("theme",e),e}async setTheme(e){let t;if(Array.isArray(e)?t=ku.all(e):t=e,typeof t!="object"||t===null){be.warn(`context theme expected an object. Received ${typeof t}`);return}this._clearCache();let i=this._processTheme.call(this,[t],t.extensions);return this._setCache("theme",i),await Fp(i.font),i.font&&i.font.length&&await this._loadFonts(i.font),this._refreshSubThemes(),this._emit("themeExtensionsUpdate"),this._emit("themeUpdate"),i}getSubTheme(e){if(this._cache.has(`subTheme${e}`))return this._cache.get(`subTheme${e}`).result}async setSubTheme(e,t,i=!0){if(!e){be.warn("Sub theme name not specified");return}if(typeof e!="string"){be.warn(`Sub theme name must be a string. Received an ${typeof e}`);return}if(typeof t!="object"||!Object.keys(t).length){be.warn(`Could not set subTheme ${e}, value should be an object with properties. Received an ${typeof t}`);return}let s=this.getTheme(),n=this._processTheme.call(this,[s,t]);return n.font&&n.font.length&&await this._loadFonts(n.font),this._setCache(`subTheme${e}`,{original:t,result:n}),i&&this._emit(`themeUpdate${e}`),n}_refreshSubThemes(){[...this._cache.keys()].forEach(e=>{if(typeof e=="string"&&Ou(e)){let t=this._cache.get(e);t.original&&this.updateSubTheme(e.replace(/^subTheme/,""),t.original)}})}async _loadFonts(e){try{await Dp(e)}catch(t){be.error(`Unable to load font: ${t}`)}}async updateTheme(e){let t;Array.isArray(e)?t=ku.all(e):t=e;let i={};this._cache.has("theme")&&(i=this._cache.get("theme")),this._clearCache();let s=this._processTheme.call(this,[i,t],t.extensions||i.extensions);return this._setCache("theme",s),s.font&&s.font.length&&await this._loadFonts(s.font),this._refreshSubThemes(),t.extensions&&this._emit("themeExtensionsUpdate"),this._emit("themeUpdate"),s}_clearCache(){Bp.filter(e=>(window.URL&&typeof window.URL.revokeObjectURL=="function"&&URL.revokeObjectURL(e),!1)),this._cache.forEach((e,t)=>{(typeof t!="string"||!Ou(t))&&this._deleteCache(t)}),this._cache.forEach((e,t)=>{typeof t=="string"&&Ou(t)&&this.setSubTheme(t.replace("subTheme",""),e.original,!1)})}async updateSubTheme(e,t,i=!0){if(!e){be.warn("Sub theme name not specified");return}if(typeof t!="object"||!Object.keys(t).length){be.warn(`Could not update subTheme ${e} due to invalid value`);return}let s=this.getTheme(),n={};this._cache.has(`subTheme${e}`)&&(n=this._cache.get(`subTheme${e}`).original);let o=this._processTheme.call(this,[s,n,t]);return o.font&&o.font.length&&await this._loadFonts(o.font),this._setCache(`subTheme${e}`,{original:tt(n,t),result:o}),i&&this._emit(`themeUpdate${e}`),o}removeSubTheme(e){this._cache.has(`subTheme${e}`)&&this._deleteCache(`subTheme${e}`),this._emit(`themeUpdate${e}`)}_getComponentUUID(e){return`componentStyle${e}`}_processTheme(e=[],t){if(!Array.isArray(e))throw new Error(`context processTheme expected an array. Received ${typeof e}`);let i=ku.all([Do,...e]),s={},n=JSON.stringify(i,(o,a)=>{let l=a;if(l&&typeof l=="object"){let m=a;for(var u in l)Object.hasOwnProperty.call(l,u)&&Pu[u]&&(m[u&&Pu[u]]=l[u],delete m[u]);l=m}let{isImage:c,mimeType:g}=X1(l);if(window.URL&&typeof window.URL.createObjectURL=="function"&&c)try{let m=K1(l,g);return Bp.push(m),m}catch{return l}if(Array.isArray(l)&&l.length===2&&!l[0].targetComponent&&l[0].length&&typeof l[0]=="string"&&l[0].substr(0,1)==="#"&&typeof l[1]=="number")return Cr(l[0],l[1]);if(o==="extensions"||typeof l=="function"||typeof l=="object"&&l!==null&&l.constructor.name!=="Object"&&!Array.isArray(l)){s[o]=l;return}else if(typeof l=="string"&&l.includes("theme.")){let m=Fs({theme:i},l);return m||l}else{let m=vi(l);return m||l}});return{...JSON.parse(n),...s,extensions:t}}},or=new Lu;var Du=class{get theme(){return or.getTheme()}set theme(e){be.warn("Context.theme must be set using context.setTheme or context.updateTheme")}get keyMetricsCallback(){return Ru.keyMetricsCallback}set keyMetricsCallback(e){be.warn("Context.keyMetricsCallback must be set using context.setKeyMetricsCallback")}get debug(){return be.debug}set debug(e){be.debug=e}on(){return $r.on(...arguments)}off(){return $r.off(...arguments)}emit(){return $r.emit(...arguments)}log(...e){be.log(...e)}info(...e){be.info(...e)}warn(...e){be.warn(...e)}error(...e){be.error(e)}setTheme(e){return or.setTheme(e)}updateTheme(e){return or.updateTheme(e)}getSubTheme(e){return or.getSubTheme(e)}setSubThemes(e){if(typeof e!="object"){be.warn("subThemes must be an object");return}for(let t in e)or.setSubTheme(t,e[t])}setSubTheme(e,t){return or.setSubTheme(e,t)}updateSubTheme(e,t){return or.updateSubTheme(e,t)}removeSubTheme(e){or.removeSubTheme(e)}setLogCallback(e){be.logCallback=e}setKeyMetricsCallback(e){Ru.keyMetricsCallback=e}config(e={}){let t=Object.keys(e);for(let i=0;i{try{e._updateThemeComponent()}catch(t){he.error("Error updating component themes",t)}}),this._updateThemeSet.clear(),this._requestUpdateSet.forEach(e=>{try{e.requestUpdate()}catch(t){he.error("Error updating component",t)}}),this._requestUpdateSet.clear()}flush(){this._timeout&&(clearTimeout(this._timeout),this._runUpdatesTimeoutHandler())}addUpdateTheme(e){this._updateThemeSet.add(e),this._timeout||(this._timeout=setTimeout(this._runUpdatesTimeoutHandler,0))}deleteUpdateTheme(e){this._updateThemeSet.delete(e)}addRequestUpdate(e){this._requestUpdateSet.add(e),this._timeout||(this._timeout=setTimeout(this._runUpdatesTimeoutHandler,0))}deleteRequestUpdate(e){this._requestUpdateSet.delete(e)}hasQueuedRequestFor(e){return this._requestUpdateSet.has(e)}},ar=new Fu;function Mp(r){return r.charAt(0).toUpperCase()+r.slice(1)}function Np(r,e){let t=e;return typeof r=="object"&&Object.keys(r).length&&typeof e=="object"&&(t=tt(r,e)),t??r}function J1(r,e){return{get(){let t=this[`_get${Mp(r)}`];if(t&&typeof t=="function"){let i=t.call(this,this[e]);return this[e]=i||this.__componentConfigProps?.[r],Np(this.__componentConfigProps?.[r],i)}return Np(this.__componentConfigProps?.[r],this[e])},set(t){let i=this[e];if(t!==i){let s=this[`_set${Mp(r)}`];s&&typeof s=="function"&&(t=s.call(this,t));let n=e==="style"?tt(this[e],t):t;if(typeof this[e]=="object"&&this[e]!==null&&this[e].style){let o=tt(this[e].style,t.style||{});n.style=o}this[e]=n,this.queueRequestUpdate()}},configurable:!0,enumerable:!0}}function Q1(r,e){let t=`The property "${r}" is deprecated and will be removed in a future release. Please use "${e}" instead.`;return{get(){return console.warn(t),this[e]},set(i){console.warn(t),this[e]=i}}}function Bo(r){return class extends r{static get name(){return r.name}_construct(){let e=Object.getPrototypeOf(this);e._withUpdatesInitialized||((this.constructor.properties||[]).forEach(s=>{let n="_"+s,o=J1(s,n);o!==void 0&&Object.defineProperty(e,s,o)}),(this.constructor.aliasProperties||[]).forEach(s=>{if(s&&typeof s.prev=="string"&&typeof s.curr=="string"){let n=Q1(s.prev,s.curr);n!==void 0&&Object.defineProperty(e,s.prev,n)}}),e._withUpdatesInitialized=!0),this._whenEnabled=new Promise(t=>{this._whenEnabledResolver=t}),super._construct&&super._construct()}queueRequestUpdate(){this._isAttached()&&ar.addRequestUpdate(this)}_firstEnable(){this._readyForUpdates=!0,this._whenEnabledResolver(),ar.deleteRequestUpdate(this),this.requestUpdate(),super._firstEnable&&super._firstEnable()}requestEarlyUpdate(){return this._readyForUpdates=!0,ar.hasQueuedRequestFor(this)?(ar.deleteRequestUpdate(this),this._readyForUpdates=!0,this.requestUpdate(),!0):!1}_detach(){super._detach(),ar.deleteRequestUpdate(this)}requestUpdate(e=!1){if(this._readyForUpdates||e){let t=this._update();typeof t=="object"&&t!==null&&t.catch&&t.catch(i=>{he.error(`asyncronous _update() error in '${this.constructor.__componentName}'`,this,i)})}}logPropTable(){console.table(this._propTable)}get _propTable(){return this.constructor.properties.reduce((e,t)=>(e[t]=this[t],e),{})}}}h();d();p();function Z1(r){return{get(){return this.tag(r)},configurable:!0,enumerable:!0}}function Mo(r){return class extends r{static get name(){return r.name}_construct(){let e=Object.getPrototypeOf(this);e._withTagsInitialized||((this.constructor.tags||[]).forEach(i=>{if(typeof i=="object")var{name:s,path:n}=i;else var s=i,n=i;let o="_"+s,a=Z1(n);Object.defineProperty(e,o,a)}),e._withTagsInitialized=!0),super._construct&&super._construct()}}}h();d();p();function No(r){return class extends r{static get name(){return r.name}_handleKey(e){return this._processEvent(e)}_handleKeyRelease(e){return this._processEvent(e,"Release")}_processEvent(e,t=""){let s=(this.stage.application.__keymap||{})[e.keyCode];return s||(s=e.key),s&&typeof this[`on${s}${t}`]=="function"?(this._invokeKeyPayloadCallback(s+t),this[`on${s}${t}`].call(this,this,e)):!1}_invokeKeyPayloadCallback(e){this.metricsPayload&&typeof he.keyMetricsCallback=="function"&&he.keyMetricsCallback(e,this.metricsPayload)}}}h();d();p();function zo(r){return class extends r{_construct(){super._construct&&super._construct(),this._previousDimensionData=null}get itemLayout(){return this._itemLayout}set itemLayout(e){let t=this.constructor._componentName||this.constructor.name,i;e&&(i=JSON.parse(JSON.stringify(e,(s,n)=>{if(s!=="circle"&&n<0){he.error(`itemLayout for ${t} received an invalid value of ${n} for ${s}`);return}else if(s==="circle")return!!n;return n}))),Lo(this._itemLayout,i)||(i&&!i.upCount?(this._originalW=this.w,this._originalH=this.h,this._itemLayout={w:this._originalW,h:this._originalH,...i}):this._itemLayout=i,this._updateItemLayout())}_allowUpdate(){let{w:e="",h:t="",circle:i="",ratioX:s="",ratioY:n="",upCount:o=""}=this._itemLayout||{},a=Object.values(he.theme.layout).join("")+`${e}${t}${i?1:0}${s}${n}${o}`;return a!==this._previousDimensionData?(this._previousDimensionData=a,!0):!1}_updateItemLayout(){if(!this._allowUpdate())return;let{w:e,h:t}=Eu(this.theme,this._itemLayout);if(t||e){let i=he.theme.layout.screenW,s=he.theme.layout.screenH,n=e||t*(i/s),o=t||e*(s/i);this.w=this._itemLayout&&this._itemLayout.circle?o:n,this.h=o,this._itemLayout&&this._itemLayout.circle&&this.style.radius?(this._circleSet=!0,this._originalRadius=this.style.radius,this.style={...this.style,radius:o/2}):this._circleSet&&(this.style={...this.style,radius:this._originalRadius},this._originalRadius=void 0,this._circleSet=!1),this.queueRequestUpdate&&this.queueRequestUpdate(),this.fireAncestors("$itemChanged")}}}}h();d();p();h();d();p();h();d();p();var e2=(r,e)=>r.charCodeAt(0)*(e+1),Hp=r=>{let e={};return Object.keys(r).sort().forEach(t=>{typeof r[t]=="object"&&r[t]!==null&&!Array.isArray(r[t])?e[t]=Hp(r[t]):e[t]=r[t]}),e},t2=r=>{let e=Hp(r),t=JSON.stringify(e).replace(/[{}:",\s]/g,""),i=0;for(let s=0;sJSON.stringify(r).length+"-"+t2(r);function jo(r,e){if(typeof r=="function"){let t=r(e);return jo(t,e)}else{if(Array.isArray(r))return r.map(t=>jo(t,e));if(typeof r=="object"&&r!==null){let t={};for(let i in r)r.hasOwnProperty(i)&&(t[i]=jo(r[i],e));return t}else return r}}function Bu(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)&&!(r instanceof Date)&&!(r instanceof RegExp)&&!(r instanceof Function)&&!(r instanceof Error)}var qp=r=>{for(;r&&(!r.subTheme||typeof r.subTheme!="string");)r=r.p;return r?r.subTheme:void 0},Mu=r=>Bu(r)?r?.theme?.componentConfig?.[r.constructor.__componentName]||{}:{};function $p(r){for(let e in r)r.hasOwnProperty(e)&&Bu(r[e])&&($p(r[e]),Object.keys(r[e]).length===0&&delete r[e]);return r}function r2(r={}){let e=new Map;function t(s){return JSON.stringify(s,Object.keys(s).sort())}function i(s){for(let n in s)if(s.hasOwnProperty(n)){let o=s[n];if(typeof o=="object"&&o!==null){let a=t(o);e.has(a)?s[n]=e.get(a):(e.set(a,o),i(o))}}}return i(r),r}function zp(r=[]){if(!Array.isArray(r))throw new TypeError("Expected defaultProps to be an array of strings.");return[...new Set(r)]}function i2(r,e,t,i,s,n){let o=tt(e,r);return o=tt(o,s?.[t]),o=tt(o,n?.[i]),o=tt(o,s?.[t]?.mode?.[i]||{}),o=tt(o,n?.[i]?.tone?.[t]||{}),o}function jp(r,e){let t=[];function i(n){if(typeof n=="object"&&n!==null)for(let o in n)n.hasOwnProperty(o)&&t.push(o)}function s(n){if(typeof n=="object"&&n!==null){for(let o in n)if(n.hasOwnProperty(o)){if(o===e){i(n[o]);break}s(n[o])}}}return s(r),t}var s2=({base:r={},tone:e={},mode:t={},defaultStyle:i={}},s=[],n=[])=>{let o={},a=zp(["focused","disabled",...s,"unfocused"]),l=zp(["neutral","inverse","brand",...n]);for(let u of a)for(let c of l){let g=i2(r,i,c,u,e,t);o[`${u}_${c}`]=g}return o},Up=["unfocused_neutral","unfocused_inverse","unfocused_brand","focused_neutral","focused_inverse","focused_brand","disabled_neutral","disabled_inverse","disabled_brand"];function n2(r){let e={};for(let t of[...Up,...Object.keys(r)])if(r.hasOwnProperty(t))typeof r[t]!="object"?e[t]={}:e[t]=r[t];else{let i=Up.find(s=>r.hasOwnProperty(s));if(i){let s=r[i];e[t]=typeof s!="object"?{}:s}else e[t]={}}return e}var Vp=({theme:r={},styleChain:e=[],inlineStyle:t={},alias:i=[]}={})=>{if(typeof r!="object")throw new Error("Expected theme to be an object");if(!Array.isArray(e))throw new Error("Expected styleChain to be an array");if(typeof t!="object")throw new Error("Expected inlineStyle to be an object");if(!Array.isArray(i))throw new Error("Expected alias to be an array");let s=e.map(({style:b})=>{if(typeof b=="object"&&!b.base&&!b.mode&&!b.tone&&!b.default)return{base:b};{let{base:C={},mode:A={},tone:T={}}=b,R;if(b){let P=JSON.parse(JSON.stringify(b));delete P.base,delete P.tone,delete P.mode,R=P}return{defaultStyle:R||{},base:C,mode:A,tone:T}}}),n;if(t){let b=JSON.parse(JSON.stringify(t));delete b.base,delete b.tone,delete b.mode,n=b}let o={defaultStyle:n||{},base:t?.base||{},mode:t?.mode||{},tone:t?.tone||{}},l=[...s,o].map(b=>jo(b,r)),u=jp(l,"mode"),c=jp(l,"tone"),g=l.reduce((b,C)=>tt(b,s2(C,u,c)),{}),m=l2($p(o2({theme:r},g))||{},i),y=r2(m);return n2(y)},o2=(r,e)=>{if(typeof r!="object"||r===null)throw new TypeError("targetObject must be an object.");if(typeof e!="object"||e===null)throw new TypeError("styleObj must be an object.");let t=JSON.stringify(e,(i,s)=>-1<["tone","mode"].indexOf(i)?s:typeof s=="string"&&s.startsWith("theme.")?Fs(r,s):Array.isArray(s)&&s.length===2&&typeof s[0]=="string"&&s[0].substr(0,1)==="#"&&typeof s[1]=="number"&&Cr(s[0],s[1])||s);return JSON.parse(t||{})},Gp=(r,e={})=>{if(!Bu(r))return{};let{mode:t="unfocused",tone:i="neutral"}=r;return e[`${t}_${i}`]||e.unfocused_neutral||{}};function Yp(r,e=""){if(!r)return e;let t=Object.getPrototypeOf(r);if(!t||!t.constructor)return e;let i=`${e?e+".":""}${t?.constructor?.__componentName||""}`.replace(/\.*$/,"").trim();return Yp(t,i)}var Si={},Xp=()=>{for(let r in Si)Si.hasOwnProperty(r)&&delete Si[r]},Kp=r=>{let e=Yp(r);if(Si[e])return Si[e];let t=a2(r);return Si[e]=t,t},a2=r=>{let e=new Map,t;do{if(t=t?Object.getPrototypeOf(t):r,t?.constructor===Object)break;if(t&&typeof t=="object"&&t.hasOwnProperty("constructor")){let{style:s}=Mu(t);Object.keys(s||{}).length&&(e.has(s)||e.set(s,{style:s}));let n=t.constructor.hasOwnProperty("__themeStyle")&&t.constructor.__themeStyle;Object.keys(n||{}).length?e.has(n)||e.set(n,{style:{...n}}):typeof n=="function"&&(e.has(n)||e.set(n,{style:n}));let o=t.constructor.hasOwnProperty("__mixinStyle")&&t.constructor.__mixinStyle;Object.keys(o||{}).length&&(e.has(o)||e.set(o,{style:o}))}}while(t);return Array.from(e.values()).map(s=>s).reverse()},l2=(r,e=[])=>{if(typeof r!="object"||r===null)throw new Error("The originalObj parameter must be an object.");let t=new Set;return t.add([u2,[e]]),Array.from(t).reduce((s,[n,o])=>n(s,...o),r)},u2=(r,e=[])=>{if(typeof r!="object"||r===null)throw new Error("Value must be an object");if(!Array.isArray(e))throw new Error("Alias styles must be an array");let t=JSON.stringify(r);return[{prev:"height",curr:"h",skipWarn:!0},{prev:"width",curr:"w",skipWarn:!0},...e||[]].forEach(s=>{s&&typeof s.prev=="string"&&typeof s.curr=="string"&&(!s.skipWarn&&t.search(`"${s.prev}":`)>=0&&be.warn(`The style property "${s.prev}" is deprecated and will be removed in a future release. Please use "${s.curr}" instead.`),t=t.replace(new RegExp(`"${s.prev}":`,"gi"),`"${s.curr}":`))}),JSON.parse(t)};h();d();p();var Jp=new Map;he.on("themeUpdate",()=>{Jp.clear()});var lr=Jp;var Ms=class extends le.EventEmitter{constructor({component:e={}}={}){super(...arguments),this.init(e)}init(e){this.isActive=!0,this.component=e,this.setupListeners(),this._style={},this.update()}setupListeners(){this._boundThemeUpdate=this._onThemeUpdate.bind(this),this._hasSubTheme=!!this.component._targetSubTheme,this.component._targetSubTheme?he.on(`themeUpdate${this.component._targetSubTheme}`,this._boundThemeUpdate):he.on("themeUpdate",this._boundThemeUpdate)}clearListeners(){this._boundThemeUpdate&&(this.component._targetSubTheme?he.off(`themeUpdate${this.component._targetSubTheme}`,this._boundThemeUpdate):he.off("themeUpdate",this._boundThemeUpdate))}destroy(){this.isActive=!1,this._cleanupCache(),this.clearListeners(),this._styleCache=null,this._boundThemeUpdate=null,this.component=null}_onThemeUpdate(){Xp(),this.clearSourceCache(),this.clearStyleCache(),this.update()}clearSourceCache(){if(!this.component)return;let e=this._generateCacheKey("styleSource");this._removeCache(e)}clearStyleCache(){if(!this.component)return;let{tone:e,mode:t}=this.component,i=this._generateCacheKey(`style_${t}_${e}`);lr.delete(i)}_generateCacheKey(e){return[e,this.component.constructor.__componentName,this._customStyleHash].filter(Boolean).join("_")}_addCache(e,t){let i=this._generateCacheKey(e),s=lr.get(i);lr.set(i,{ids:[...new Set([...s?.ids||[],this.component.__id])],payload:t})}_cleanupCache(){this.component&&lr.forEach(({ids:e,payload:t},i)=>{let s=e&&e.length&&e.indexOf(this.component.__id);s>-1&&e.length>1?lr.set(i,{ids:e.slice(0,s).concat(e.slice(s+1)),payload:t}):s>-1&&lr.delete(i)})}_removeCache(e){lr.delete(e)}_getCache(e){let t=this._generateCacheKey(e);return lr.get(t)}update(){if(!this.component)return;let{mode:e,tone:t}=this.component;try{let i=this._getCache("styleSource")?.payload;i||(i=Vp({alias:this.component.constructor.aliasStyles,componentConfig:this.component._componentConfig,inlineStyle:this.component._componentLevelStyle,styleChain:Kp(this.component),theme:this.component.theme}),this._addCache("styleSource",i));let s=this._getCache(`style_${e}_${t}`)?.payload;s||(s=Gp(this.component,i),this._addCache(`style_${e}_${t}`,s)),this._style=s,this.emit("styleUpdate",this.style)}catch(i){he.error("styleManager: ",i.message)}}set style(e){he.warn("styleManager: Cannot mutate style directly")}get style(){return this._style}set props(e){he.warn("styleManager: Cannot mutate props directly")}get props(){return Object.keys(this.component._componentConfig).reduce((e,t)=>(["base","tone","mode","style","styleConfig"].includes(t)||(e[t]=this.component._componentConfig[t]),e),{})}get _customStyleHash(){if(!!Object.keys(this.component.constructor.__mixinStyle||{}).length||!!Object.keys(this.component._componentLevelStyle||{}).length)return Wp(tt(this.component.constructor.__mixinStyle||{},this.component._componentLevelStyle||{}))}};function Uo(r,e){if(r!==null&&typeof r=="object"){if(Array.isArray(r))return r.map((t,i)=>Uo(t,Array.isArray(e)?e[i]:void 0));{let t={};return new Set([...Object.keys(r),...Object.keys(e)]).forEach(s=>{typeof r[s]=="object"&&r[s]!==null?t[s]=Uo(r[s],e[s]||{}):typeof e[s]=="object"&&e[s]!==null?t[s]=Uo(r[s]||{},e[s]):t[s]=e.hasOwnProperty(s)?e[s]:void 0}),t}}else return r}function Ho(r,e={}){return class extends r{_construct(){if(this._withThemeStylesSetupComplete){super._construct();return}this._hSetByUser=!1,this._wSetByUser=!1,this._styleManager=new Ms({component:this}),this._style=this._styleManager.style,this._updatePropDefaults(),this._styleManager.on("styleUpdate",()=>{this._style=this._styleManager.style,this._updatePropDefaults(),this.queueThemeUpdate()}),this._withThemeStylesSetupComplete=!0,super._construct()}_setup(){super._setup&&super._setup(),this._targetSubTheme=qp(this),this._targetSubTheme&&(this._styleManager.clearListeners(),this._styleManager.setupListeners(),this._styleManager.clearStyleCache(),this._styleManager.clearSourceCache(),this._styleManager.update())}_updatePropDefaults(){if(!Object.keys(this._styleManager.props).length||JSON.stringify(this._styleManager.props)===JSON.stringify(this._prevComponentConfigProps))return;let t=this._prevComponentConfigProps?Uo(this._prevComponentConfigProps||{},this._styleManager.props||{}):this._styleManager.props||{};this._prevComponentConfigProps=this._styleManager.props&&JSON.parse(JSON.stringify(this._styleManager.props)),this.__componentConfigProps=t}_attach(){super._attach(),this._styleManager.isActive||this._styleManager.init(this)}_detach(){super._detach(),this._styleManager.destroy()}_unfocus(){this._isFocusedMode&&(this.mode="unfocused"),super._unfocus()}_focus(){this._isDisabledMode||(this.mode="focused"),super._focus()}_checkDimensionUpdates(){let t=!1;!this._wSetByUser&&this.style.w&&this._w!==this.style.w&&(this._w=this.style.w,t=!0),!this._hSetByUser&&this.style.h&&this._h!==this.style.h&&(this._h=this.style.h,t=!0),t&&this._updateDimensions()}_updateThemeComponent(){this.style&&this._isAttached()&&(this._checkDimensionUpdates(),this.queueRequestUpdate?this.queueRequestUpdate():this._update&&this._update(),this._updateItemLayout&&this._updateItemLayout())}queueThemeUpdate(){ar.addUpdateTheme(this)}static get name(){return r.name}static get __componentName(){if(!super.__componentName)throw new Error(`A valid static __componentName property is required for theming to work properly. Please add this to the ${this.constructor.name} class.`);return super.__componentName}static get __mixinStyle(){return e}get theme(){return this._targetSubTheme&&he.getSubTheme(this._targetSubTheme)||he.theme}set style(t){if(Object.prototype.toString.call(t)!=="[object Object]"){he.error("style must be an object");return}this._componentLevelStyle=t,this._styleManager.clearStyleCache(),this._styleManager.update()}get style(){return this._style}get _componentStyle(){return he.info("_componentStyle will soon be deprecated. Please use Component.style"),this._style}set styleConfig(t){he.info("style config is deprecated. Please use style = { base: {}, tone: {}, mode: {} }"),this._styleConfig=t,this._styleManager.update()}get styleConfig(){return this._styleConfig}get _componentConfig(){return Mu(this)}get mode(){return this._mode||this._componentConfig?.mode||"unfocused"}set mode(t){if(typeof t!="string"||this._mode===t)return;this._mode=t;let i=this[`on${Bs(t)}`];i&&typeof i=="function"&&i.call(this),this._styleManager.update()}get tone(){return this._tone||this._componentConfig.tone||"neutral"}set tone(t){typeof t!="string"||this._tone===t||(this._tone=t,this._styleManager.update())}get w(){return this._wSetByUser&&this._w||this.style?.w||0}set w(t){this._w!==t&&(super.w=t,this._wSetByUser=!0,this._updateThemeComponent())}get h(){return this._hSetByUser&&this._h||this.style?.h||this._h||0}set h(t){this._h!==t&&(super.h=t,this._hSetByUser=!0,this._updateThemeComponent())}}}h();d();p();var wi="__original";function Wo(r){return r.prototype.constructor._withExtensionsApplied?r:class extends r{static get name(){return r.name}static get __componentName(){if(!super.__componentName)throw new Error(`A valid static __componentName property is required for theming to work properly. Please add this to the ${this.constructor.name} class.`);return super.__componentName}static get _withExtensionsApplied(){return!0}get _prototypeChain(){if(this.__prototypeChain)return this.__prototypeChain;let e=new Set,t=this;do if(t=Object.getPrototypeOf(t),t!==null&&typeof t=="object")try{t.constructor.__componentName&&e.add(t.constructor.__componentName)}catch{}while(t);return this.__prototypeChain=e,e}get _extensions(){let e=he&&he.theme&&he.theme.extensions;return!e||!Array.isArray(e)||Array.isArray(e)&&!e.length?[]:e.filter(({targetComponent:t,extension:i})=>(typeof t=="string"||Array.isArray(t))&&typeof i=="function").slice().reverse()||[]}get _componentExtensions(){return this._extensions.filter(({targetComponent:e})=>typeof e=="string"?e===this.constructor.__componentName||this._prototypeChain.has(e):Array.isArray(e)?e.find(t=>{if(t.startsWith("/")&&t.endsWith("/")){let i=new RegExp(t.slice(1,-1));return Array.from(this._prototypeChain).some(s=>i.test(s))}else return this._prototypeChain.has(t)}):!1).reduce((e,{extension:t})=>(e.push(t),e),[])}get _extensionApplied(){return this._currentComponentExtensionLength===this._appliedExtensionLength}_construct(){this._appliedExtensionLength=0,this._extendedList={},this._extensionInstance={},this._setupExtensionBound=this._setupExtension.bind(this),he.on("themeUpdate",this._setupExtensionBound),this._currentComponentExtensionLength=this._calculateComponentExtensionLength(),this._createExtension(),super._construct()}_detach(){super._detach(),he.off("themeUpdate",this._setupExtensionBound)}_setupExtension(){this._currentComponentExtensionLength=this._calculateComponentExtensionLength(),this._createExtension.call(this)}_resetComponent(){this._extensionInstance._extensionCleanup&&this._extensionInstance._extensionCleanup.call(this),(Object.keys(this._extendedList)||[]).forEach(e=>{delete this[e],delete this[e+wi]}),this._extensionInstance={},this._extendedList={}}_calculateComponentExtensionLength(){return this._componentExtensions.reduce((t,i)=>(t+=i.toString().length,t),0)}_createExtension(){if(this._extensionApplied)return;this._resetComponent();let e=this._createExtensionClass(),t=new e;this._extendedList=this._createExtensionAliases(t),this._extensionInstance=t,this._setComponentAliases(this._extendedList)}_createExtensionClass(){function e(){}let t=this._componentExtensions.reduce((i,s)=>s(i),e);return this._appliedExtensionLength=this._calculateComponentExtensionLength(),t}_createExtensionAliases(e){let t=e;for(let n=0;n{let a=new o(class{}),l=new a,u=Object.getOwnPropertyDescriptors(Object.getPrototypeOf(l));return Object.keys(u).forEach(c=>{if(!["constructor"].includes(c)){if(u[c].get||u[c].set){i[c]={type:"accessor"},n[c]={get:function(){return this[c+wi]},set:function(g){this[c+wi]=g}};return}i[c]={type:"method"},n[c]={value:function(){this[c+wi]&&this[c+wi]()}}}}),n},{});return Object.defineProperties(t,s),Object.setPrototypeOf(t,this),i}_setComponentAliases(e){Object.keys(e).forEach(t=>{this[t+wi]=this[t],e[t].type==="method"?this[t]=this._extensionInstance[t]:e[t].type==="accessor"&&Object.defineProperty(this,t,{configurable:!0,get(){return this._extensionInstance[t]},set(i){this._extensionInstance[t]=i}})})}}}var Nu=class extends le.Component{static get __componentName(){return"Base"}_construct(){this.constructor.__componentName,this.skipPlinko=!1,this.centerInParent=!1,this.loaded||(this.loaded=Promise.resolve())}_init(){this.queueRequestUpdate()}_resetLoadedPromise(){this.loaded=new Promise((e,t)=>{this._resolveLoadedPromise=e,this._rejectLoadedPromise=t})}_update(){}_focus(){this._updateShouldSmooth(),this.queueRequestUpdate()}_unfocus(){this.queueRequestUpdate()}_updateShouldSmooth(){this.shouldSmooth===void 0&&(this.shouldSmooth=!0)}applySmooth(e,t,i){this.shouldSmooth?e.smooth=i||t:e.patch(t)}get announce(){return this._announce}set announce(e){this._announce=e}get announceContext(){return this._announceContext}set announceContext(e){this._announceContext=e}get shouldSmooth(){return this._shouldSmooth}set shouldSmooth(e){this._shouldSmooth=e}get _isDisabledMode(){return this.mode==="disabled"}get _isUnfocusedMode(){return this.mode==="unfocused"}get _isFocusedMode(){return this.mode==="focused"}isFullyOnScreen(e){return Au(this,e)}getFocusScale(){return he.theme.layout.focusScale}getUnfocusScale(){return 1}};function c2(r){return Wo(zo(Ho(Bo(Mo(No(r))))))}var ve=c2(Nu);h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();function p2(r){return r.startsWith("{n.width=i,n.height=s,o.drawImage(a,0,0,n.width,n.height),r(null,{source:n,w:i,h:s})},a.onerror=l=>{r(l)},le.Utils.isPS4||(a.crossOrigin="Anonymous"),a.src=t}function g2({src:r},e){let t=new Image;return r.substr(0,5)!="data:"&&!le.Utils.isPS4&&(t.crossOrigin="Anonymous"),t.onerror=function(){if(t.src)return e("Image load error")},t.onload=function(){e(null,{source:t,renderInfo:{src:r,compressed:!1},hasAlpha:!0})},t.src=r,function(){t.onerror=null,t.onload=null,t.removeAttribute("src")}}var Ti=class extends le.Texture{constructor(e){super(e),this._src=void 0,this._hasAlpha=!1}get src(){return this._src}set src(e){this._src!==e&&(this._src=e,this._changed())}get hasAlpha(){return this._hasAlpha}set hasAlpha(e){this._hasAlpha!==e&&(this._hasAlpha=e,this._changed())}get w(){return this._w}set w(e){this._w=e,this._changed()}get h(){return this._h}set h(e){this._h=e,this._changed()}_getIsValid(){return!!this._src}_getLookupId(){return this._src}_getSourceLoader(){let e=this._w,t=this._h,i=this._src,s=this._hasAlpha;if(this.stage.getOption("srcBasePath")){let n=i.charCodeAt(0);i.indexOf("//")===-1&&(n>=65&&n<=90||n>=97&&n<=122||n==46)&&(i=this.stage.getOption("srcBasePath")+i)}return n=>{switch(p2(i)){case"SVG":return f2(n,this.stage,`data:image/svg+xml,${encodeURIComponent(i)}`,e,t);case"Blob":return g2({src:i},n);default:return this.stage.platform.loadSrcTexture({src:i,hasAlpha:s},n)}}}getNonDefaults(){let e=super.getNonDefaults();return this._src&&(e.src=this._src),e}};h();d();p();h();d();p();h();d();p();var zu={};rr(zu,{tone:()=>m2});h();d();p();var m2=r=>({neutral:{color:r.color.fillNeutral},inverse:{color:r.color.fillInverse},brand:{color:r.color.fillBrand}});var We=class extends ve{static get __componentName(){return"Icon"}static get __themeStyle(){return zu}static get properties(){return["icon","fixed","color"]}_init(){this.on("txLoaded",()=>{this.fixed||this._notify.bind(this)()}),this.on("txError",this._handleTxtError.bind(this))}_getColor(){return this._color||this.style.color}_notify(){this.w=this.finalW,this.h=this.finalH,this.signal("itemChanged",this),this.fireAncestors("$itemChanged")}_handleTxtError(){he.error(`Unable to load icon ${this._icon}`),this._icon=null,this.texture=null}_update(){if(!this._icon){this.texture=null;return}this.patch(this._iconPatch)}get _iconPatch(){let[e,t]=[/^$/,/\.svg$/].map(l=>RegExp.prototype.test.bind(l)),i,s=e(this.icon),n=t(this.icon);s?i=le.Tools.getSvgTexture(`data:image/svg+xml,${encodeURIComponent(this.icon)}`,this.w,this.h):n?i=le.Tools.getSvgTexture(this.icon,this.w,this.h):i={type:Ti,w:this.w,h:this.h,src:this.icon};let o=vi(this._color||this.style.color),a=this.radius||this.style.radius?{radius:this.radius||this.style.radius,type:le.shaders.RoundedRectangle}:void 0;return{texture:i,shader:a,...o?{colorUl:o,colorUr:o,colorBl:o,colorBr:o}:{}}}};var ju={};rr(ju,{base:()=>_2,tone:()=>y2});h();d();p();var _2=r=>({contentSpacing:r.spacer.xs,offsetY:1,paddingX:r.spacer.md,paddingY:r.spacer.xs,radius:r.radius.sm,strokeWidth:r.stroke.sm,textStyle:{...r.typography.tag1,textAlign:"center"}}),y2=r=>({neutral:{backgroundColor:r.color.fillInverseSecondary,iconColor:r.color.textNeutral,textStyle:{textColor:r.color.textNeutral},strokeColor:r.color.strokeNeutralSecondary},inverse:{backgroundColor:r.color.fillNeutralSecondary,iconColor:r.color.textInverse,textStyle:{textColor:r.color.textInverse},strokeColor:r.color.strokeInverseSecondary},brand:{backgroundColor:r.color.fillBrand,iconColor:r.color.textNeutral,textStyle:{textColor:r.color.textNeutral},strokeColor:r.color.strokeInverseSecondary}});var Ar=class extends ve{static _template(){return{Text:{mountY:.5},Icon:{type:We,mountY:.5,signals:{itemChanged:"_updateLayout"}}}}static get __componentName(){return"Badge"}static get __themeStyle(){return ju}static get properties(){return["title","icon","iconAlign","iconWidth","iconHeight"]}static get tags(){return["Background","Text","Icon"]}_init(){this._Text.on("txLoaded",this._updateLayout.bind(this)),super._init()}_update(){this._updateText(),this._updateIcon(),this._updateLayout(),this._updateVisibility()}_updateVisibility(){this.alpha=this.title||this.icon?1:0}_updateLayout(){this._updateWidth(),this._updateBackground(),this._updatePositions(),this.signal("loadedBadge",this)}_updateBackground(){let e=Math.max(this._Text.renderHeight,this._Icon.h)+this.style.paddingY*2;this.patch({h:e,texture:le.Tools.getRoundRect(this.w,e,wt(this.style.radius,this.w,e),this.style.strokeWidth,this.style.strokeColor,!0,this.style.backgroundColor)})}_updateText(){this._Text&&this._Text.patch({text:{...this.style.textStyle,text:this.title||""}})}_updateIcon(){this._Icon.patch({icon:this.icon,w:this.iconWidth,h:this.iconHeight,style:{color:Cr(this.style.iconColor)}})}_updateWidth(){let e=0;this.title&&this.icon?e=this._Text.renderWidth+this._Icon.finalW+this.style.contentSpacing+this.style.paddingX*2:this.title?e=this._Text.renderWidth+this.style.paddingX*2:this.icon&&(e=this._Icon.finalW+this.style.paddingX*2),this.w=e}_updatePositions(){this._Icon.y=this.h/2,this.iconAlign==="left"&&this.title&&this.icon?(this._Icon.x=this.style.paddingX,this._Text.x=this._Icon.x+this._Icon.finalW+this.style.contentSpacing):this.iconAlign==="right"&&this.title&&this.icon?(this._Text.x=this.style.paddingX,this._Icon.x=this._Text.x+this._Text.renderWidth+this.style.contentSpacing):(this._Text.x=this.style.paddingX,this._Icon.x=this.style.paddingX),this._Text.y=this._h/2+this.style.offsetY}_getIconHeight(){return this.icon?!this._Icon.finalH&&this._Text?this._Text.text.lineHeight:this._Icon.finalH:0}set announce(e){super.announce=e}get announce(){return this._announce||this.title}};h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();var Hu={};rr(Hu,{base:()=>w2,tone:()=>T2});h();d();p();var w2=r=>({offsetY:r.spacer.xxs,offsetX:0,textStyle:r.typography.body1}),T2=r=>({neutral:{textStyle:{textColor:r.color.fillNeutral}},inverse:{textStyle:{textColor:r.color.fillInverse}},brand:{textStyle:{textColor:r.color.fillBrand}}});h();d();p();h();d();p();h();d();p();var Wu={};rr(Wu,{base:()=>C2});h();d();p();var C2=r=>({textY:0,iconWidth:r.spacer.xxl+r.spacer.xs,iconHeight:r.spacer.xxl+r.spacer.xs,contentSpacing:r.spacer.md,marginBottom:0,strikethroughRatio:.08,strikethroughColor:r.color.textNeutral,textStyle:{...r.typography.body1},maxLines:1,justify:"flex-start"});var zs=r=>typeof r=="string"||!!r.text,rf=r=>!!r.icon,A2=r=>!!r.badge,ur=class extends ve{static get properties(){return["content","contentProperties","badgeY","badgeProperties","justify","contentWrap","customStyleMappings","maxLines","maxLinesSuffix"]}static get __componentName(){return"InlineContent"}static get __themeStyle(){return Wu}static get aliasStyles(){return[{prev:"iconH",curr:"iconHeight"},{prev:"iconW",curr:"iconWidth"}]}_construct(){super._construct(),this._maxLinesSuffix=".."}_update(){this._updateContent(),this._waitForComponentLoad()}_updateContent(){this.childList.clear(),this._shouldTruncate&&(this.alpha=.001),this._parsedContent&&this._parsedContent.length&&(this.patch({flex:{direction:"row",wrap:!!this.contentWrap,justifyContent:this.justify!=null?this.justify:this.style.justify}}),this._parsedContent.forEach((e,t)=>{let i=t===this._parsedContent.length-1,s={flexItem:{...this.contentProperties,marginBottom:i?0:this._marginBottom,marginRight:i?0:this.contentProperties.marginRight||this.style.contentSpacing}};if(zs(e)){let n=this._parsedContent[t+1];(n&&zs(n)||this.contentWrap&&n&&n.newline&&this._parsedContent[t+2]&&zs(this._parsedContent[t+2]))&&(s.flexItem.marginRight=0),this.childList.a(this._createText(s,e))}else rf(e)?this.childList.a(this._createIcon(s,e)):A2(e)?this.childList.a(this._createBadge(s,e.badge)):e.newline&&this.contentWrap&&this.childList.a({h:0,w:this.w})}))}_waitForComponentLoad(){this.children.length?Promise.all(this.children.map(e=>new Promise(t=>{e.h===0&&e.w===this.w?t():e.on("txLoaded",t)}))).finally(()=>this._contentLoaded()):(this.h=0,this._contentLoaded())}_notifyAncestors(){this.fireAncestors("$loadedInlineContent",this),this.signal("loadedInlineContent",this.finalW,this.multiLineHeight)}_contentLoaded(){this.children.length?setTimeout(()=>{if(this.multiLineHeight=this.finalH,this.flex&&this.flex._layout&&this.flex._layout._lineLayouter&&this.flex._layout._lineLayouter._lines){let e=0;this.flex._layout._lineLayouter._lines.forEach(t=>{e+=Object.entries(t.items).sort((i,s)=>s[1].h-i[1].h)[0][1].h}),this.multiLineHeight=e,this._shouldTruncate&&this._renderMaxLines(),this._notifyAncestors()}else this._contentLoaded()},10):this._notifyAncestors()}_renderMaxLines(){let e=this._calcChildrenDimensions();this.childList.clear();let t=!1;e.forEach((i,s)=>{if(t)return;let n=e[s+1];if(!n){this.childList.add(i.component);return}let o=i.line===this.maxLines,l=o&&n.line>this.maxLines&&i.hasSpaceForSuffix,u=o&&i.hasSpaceForSuffix&&!n.hasSpaceForSuffix,c=!n||l||u;i.line<=this.maxLines&&(c&&s!==e.length-1?(this.childList.add(this._addSuffix(i)),t=!0):this.childList.add(i.component))}),this.alpha=1}_calcChildrenDimensions(){let e=ko({...this.style.textStyle,text:this.maxLinesSuffix}),t=0,i=1;return this.children.reduce((s,n)=>{let o=n,a,l,u;if(n.w==this.w&&n.h===0){i++,t=0;let y={type:"linebreak",component:o,content:l,line:i,hasSpaceForSuffix:!0};return s.push(y),s}zs(n)?(a="text",l=n.text.text,u=n.texture.getRenderWidth()):rf(n)?(a="icon",u=n.w):n.constructor.__componentName==="Badge"&&(a="badge",u=n.w),t+=u,t+=n.flexItem.marginRight,Math.ceil(t)>=this.w&&(i++,t=u);let g=Math.ceil(t)+e<=this.w,m={type:a,component:o,content:l,line:i,hasSpaceForSuffix:g};return s.push(m),s},[])}_addSuffix({type:e,component:t,content:i}){let s=t.flexItem.marginRight*-1,n;if(e==="text"){let{fontFace:o,fontSize:a,fontStyle:l,lineHeight:u,verticalAlign:c}=t.text;n=this._createText({flexItem:this.contentProperties},{text:`${i.trim()}${this.maxLinesSuffix}`,style:{fontFace:o,fontSize:a,fontStyle:l,lineHeight:u,verticalAlign:c}})}else this.childList.add(t),n=this._createText({flexItem:{...this.contentProperties,marginLeft:s}},this.maxLinesSuffix);return n}_createIcon(e,t){let i=(this.textHeight>this.style.textStyle.lineHeight?this.textHeight:this.style.textStyle.lineHeight)-this.style.iconHeight;return{...e,type:We,y:i,w:this.style.iconWidth,h:this.style.iconHeight,signals:{itemChanged:"_updateIconPosition"},...t}}_createText(e,t){let i=typeof t.style=="string"?this.customStyleMappings[t.style]:t.style,s={...e,y:this.textY!==void 0?this.textY:this.style.textY,h:i?.lineHeight||i?.fontSize||this.textHeight,text:{...this.style.textStyle,...i,text:t.text||t}};if(i?.textDecoration==="line-through"){let n=ko({...this.style.textStyle,...i,text:t.text||t}),o={rect:!0,w:n,color:this.style.strikethroughColor||i?.textColor||this.style.textStyle.textColor,h:s.h*this.style.strikethroughRatio,y:s.h/2,mountY:1};return{type:le.Component,w:n+s.flexItem.marginRight,h:s.h,children:[{...s},{...o}]}}return s}_createBadge(e,t){return{...e,y:this.badgeY||0,...this.badgeProperties,type:Ar,title:t,signals:{loadedBadge:"_loadedBadge"}}}_updateIconPosition(e){e.y=this.style.textStyle.lineHeight-e.h}_loadedBadge(e){this.badgeY===void 0&&(e.y=this.style.textStyle.lineHeight-e.h)}_formatSpaces(e){let t=/(.+?\s+)/;return Oo((e||[]).reduce((i,s)=>{let n=s;if(zs(s)){if(typeof s=="object"){let o=s.text.split(t).map(a=>a&&{...s,text:a});return i.push(...o),i}n=s.split(t)}return i.push(n),i},[])).map((i,s,n)=>i===" "?!1:n[s+1]===" "?i+" ":i).filter(Boolean)}_setContent(e){if(e!==this._content){this._content=e;let t=this._content;e&&!Array.isArray(e)&&(t=Op(e)),this._parsedContent=this._formatSpaces(t)}return e}_setBadgeProperties(e){if(typeof e=="object")return e}_getBadgeProperties(){return this._badgeProperties||{}}_setContentProperties(e){if(typeof e=="object")return e}_getContentProperties(){return this._contentProperties||{}}_setCustomStyleMappings(e){if(typeof e=="object")return e}_getCustomStyleMappings(){return this._customStyleMappings||{}}_setMaxLines(e){return e>=1?Math.floor(e):0}get textHeight(){return this.style.textStyle.lineHeight||this.style.textStyle.fontSize}get _marginBottom(){return this.contentProperties.marginBottom!==void 0?this.contentProperties.marginBottom:this.style.marginBottom?this.style.marginBottom:0}get _shouldTruncate(){return this.contentWrap&&this.maxLines}set announce(e){super.announce=e}get announce(){if(this._announce)return this._announce;let e=this._parsedContent&&this._parsedContent.reduce((t,i)=>(typeof i=="string"?t+=i:i.announce?t+=i.announce:i.text?(t+=i.text,i.style?.textDecoration==="line-through"&&(t+="strikethrough")):i.title?t+=i.title:i.badge&&(t+=i.badge),t+" "),"");return e?e.replace(/\s+(?=\s)|\s$/g,""):""}};h();d();p();h();d();p();var qu={};rr(qu,{base:()=>E2});h();d();p();var E2=r=>({fadeWidth:100,offset:r.spacer.xxl,shouldSmooth:!1,textStyle:r.typography.body1});h();d();p();var Yt=class extends le.shaders.WebGLDefaultShader{constructor(e){super(e),this._margin={left:0,right:0}}set positionLeft(e){this._positionLeft=e}set positionRight(e){this._positionRight=e}setupUniforms(e){super.setupUniforms(e);let t=e.shaderOwner;this._positionLeft===0&&(this._positionLeft=.001),this._positionRight===0&&(this._positionRight=.001);let i=this.ctx.stage.getRenderPrecision();this._setUniform("margin",[this._positionLeft*i,this._positionRight*i],this.gl.uniform1fv),this._setUniform("resolution",new Float32Array([t._w*i,t._h*i]),this.gl.uniform2fv)}};Yt.fragmentShaderSource=` + #ifdef GL_ES + # ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + # else + precision lowp float; + # endif + #endif + + #define PI 3.14159265359 + + varying vec2 vTextureCoord; + varying vec4 vColor; + + uniform sampler2D uSampler; + uniform vec2 resolution; + uniform float margin[2]; + + void main() { + vec4 color = texture2D(uSampler, vTextureCoord) * vColor; + vec2 halfRes = 0.5 * resolution.xy; + vec2 point = vTextureCoord.xy * resolution; + + + vec2 pos1 = vec2(point.x, point.y); + vec2 pos2 = pos1; + pos2.x += margin[0]; + + vec2 d = pos2 - pos1; + float t = dot(pos1, d) / dot(d, d); + t = smoothstep(0.0, 1.0, clamp(t, 0.0, 1.0)); + + vec2 pos3 = vec2(vTextureCoord.x * resolution.x, vTextureCoord.y); + pos3.x -= resolution.x - margin[1]; + vec2 pos4 = vec2(vTextureCoord.x + margin[1], vTextureCoord.y); + + vec2 d2 = pos4 - pos3; + float t2 = dot(pos3, d2) / dot(d2, d2); + t2 = smoothstep(0.0, 1.0, clamp(t2, 0.0, 1.0)); + + color = mix(vec4(0.0), color, t); + color = mix(color, vec4(0.0), t2); + + gl_FragColor = color; + } +`;var Ir=class extends ve{static _template(){return{ContentClipper:{boundsMargin:[],ContentBox:{Content:{},ContentLoopTexture:{}}}}}static get __componentName(){return"Marquee"}static get __themeStyle(){return qu}static get tags(){return["ContentClipper",{name:"ContentBox",path:"ContentClipper.ContentBox"},{name:"Content",path:"ContentClipper.ContentBox.Content"},{name:"ContentLoopTexture",path:"ContentClipper.ContentBox.ContentLoopTexture"}]}static get properties(){return["autoStart","title","contentTexture","color","centerAlign","delay","repeat","overrideLoopX"]}static get aliasStyles(){return[{prev:"fadeW",curr:"fadeWidth"}]}_construct(){super._construct(),this._scrolling=!1,this._autoStart=!1,this._centerAlign=!1}_init(){this._Content.on("txLoaded",this._updateContentTexture.bind(this)),super._init()}_updateContentTexture(){let e=this._restartScrolling;this.stopScrolling(),this._currentTexture.h||(this._ContentClipper.h=this._currentTexture.text&&this._currentTexture.text.lineHeight?this._currentTexture.text.lineHeight:this._Content.finalH),this._shouldClip?this._updateShader():(this._ContentClipper.shader=null,this._positionTexture()),e&&this.startScrolling(),this.signal("marqueeContentLoaded")}_update(){this._updateColor(),this._updateTexture(),this._updateShader(),this._restartScrolling&&this.startScrolling()}get _restartScrolling(){return this.autoStart||this._scrolling||this._shouldTryScrolling}_updateColor(){this.color&&(this._Content.smooth={color:ke.getValidColor(this.color)})}get _currentTexture(){return this._Content.text||this._Content.texture||{}}_updateTexture(){let e={rtt:!0};this.contentTexture?e.texture=this.contentTexture:this.title&&(e.text={...this.style.textStyle,...this.title,text:this.textContent}),this.patch({ContentClipper:{w:this.w+14,ContentBox:{Content:e,ContentLoopTexture:{}}}}),this.signal("marqueeContentLoaded")}_updateShader(){this._ContentClipper.patch({w:this.w>0?this.w+this.style.fadeWidth/2:0,shader:{type:Yt,positionLeft:0,positionRight:this.style.fadeWidth},rtt:!0})}_updateAnimation(){this._scrollAnimation&&this._scrollAnimation.stopNow(),this._scrollAnimation=this.animation({duration:this._loopWidth/50,delay:isNaN(this.delay)?1.5:this.delay,repeat:isNaN(this.repeat)?-1:this.repeat,actions:[{t:"ContentBox",p:"x",v:{sm:0,0:{v:0},.5:{v:-(this._loopWidth+this.style.offset)}}},{t:"ContentClipper",p:"shader.positionLeft",v:{sm:0,0:{v:0},.1:{v:this.style.fadeWidth},.4:{v:this.style.fadeWidth},.5:{v:0}}}]})}_positionTexture(){let e=this._shouldCenter()?(this.w-this._textRenderedW)/2:0;this.style.shouldSmooth?this._ContentBox.smooth={x:e}:this._ContentBox.x=e}startScrolling(){this._Content.off("txLoaded",this.startScrolling.bind(this)),this._shouldTryScrolling=!0,this._textRenderedW===0&&this._Content.on("txLoaded",this.startScrolling.bind(this)),this._shouldClip?(this._scrolling=!0,this._ContentLoopTexture.x=this._loopWidth+this.style.offset,this._ContentLoopTexture.texture=this._Content.getTexture(),this._updateAnimation(),this._scrollAnimation.start()):this._scrolling=!1}stopScrolling(){this._shouldTryScrolling=!1,this._scrolling=!1,this._scrollAnimation&&(this._scrollAnimation.stopNow(),this._ContentLoopTexture.texture=null)}get _shouldClip(){return this._textRenderedW>this.w-this.style.fadeWidth/4}_shouldCenter(){return this._centerAlign||this._Content.text&&this._Content.text.textAlign==="center"}_setAutoStart(e){return this.autoStart&&!e&&this._updateContentTexture(),e}_setCenterAlign(e){return this._centerAlign=e,this._updateContentTexture(),e}get textContent(){return this.title?.text??this.title??""}get _loopWidth(){return this.overrideLoopX||this._textRenderedW}get _textRenderedW(){return this._Content.renderWidth}set announce(e){super.announce=e}get announce(){return this._announce||this.title&&this.title.text}};var I2=Object.entries(Object.getOwnPropertyDescriptors(le.textures.TextTexture.prototype)).reduce((r,[e])=>{let t=le.textures.TextTexture.prototype[e];return e.startsWith("_")||["undefined","function"].includes(typeof t)?r:{[e]:t,...r}},{}),Ne=class extends ve{static _template(){return{alpha:.001}}static get __componentName(){return"TextBox"}static get __themeStyle(){return Hu}static get tags(){return["InlineContent","Marquee","Text"]}static get properties(){return[...ur.properties,"content","fixed","marquee","marqueeProps","hideOnLoad"]}_setDimensions(e,t){let i=e,s=t;this._isInlineContent||(i=this._Text.texture.getRenderWidth(),s=this._Text.texture.getRenderHeight());let n=this.w!==i||this.h!==s;i&&s&&n&&(this.h=s,this.fixed||(this.w=i),!this.hideOnLoad&&this.alpha<1&&(this.alpha=1),this._notifyAncestors())}_setContent(e){return this._isInlineContent=!1,(Array.isArray(e)||ke.isMarkupString(e))&&(this._isInlineContent=!0),typeof e!="string"&&!this._isInlineContent?"":e}get title(){return this._content}_notifyAncestors(e=this.w,t=this.h){this.fireAncestors("$itemChanged"),this.signal("textBoxChanged",{w:e,h:t})}_construct(){super._construct(),this._marqueeContentListenerAttached=!1,this._marqueeOverrideLoopX=void 0,this._resetMarqueePromise()}_update(){if(!this.content){(this._Text||this._InlineContent)&&(this.w=this.h=0,this._notifyAncestors(),this._updateMarquee(),this.patch({Text:void 0,InlineContent:void 0}));return}this._isInlineContent?this._updateInlineContent():this._updateText(),this._updateMarquee()}_updateInlineContent(){this.patch({Text:void 0});let e=ur.properties.reduce((t,i)=>(this[i]!=null&&(t[i]=this[i]),t),{style:{...this.style,textStyle:this._textStyleSet}});this._textStyleSet.wordWrapWidth&&(e.w=this._textStyleSet.wordWrapWidth,e.rtt=!0),this._textStyleSet.maxLines&&(e.maxLines=this._textStyleSet.maxLines),this._textStyleSet.maxLinesSuffix&&(e.maxLinesSuffix=this._textStyleSet.maxLinesSuffix),this.patch({alpha:1,InlineContent:{type:ur,w:this.w,...e,signals:{loadedInlineContent:"_setDimensions"}}})}_updateText(){this.patch({InlineContent:void 0}),this._Text||(this.patch({Text:{}}),this._Text.on("txLoaded",this._setDimensions.bind(this)));let e=this._textStyleSet;this._Text&&this._Text.patch({y:this.style.offsetY,x:this.style.offsetX,text:{...I2,...e}})}set marqueeOverrideLoopX(e){this._marqueeOverrideLoopX=e,this._Marquee&&(this._Marquee.overrideLoopX=this._marqueeOverrideLoopX),this._resolveAwaitMarqueeOverrideX()}get marqueeOverrideLoopX(){return this._marqueeOverrideLoopX}_resetMarqueePromise(){this._awaitMarqueeOverrideX=new Promise((e,t)=>{this._resolveAwaitMarqueeOverrideX=e,this._rejectAwaitMarqueeOverrideX=t})}_loadedMarqueeContent(){this.signal("willMarquee",this._Marquee)}_updateMarquee(){if(this._Marquee&&!this.marquee&&this._toggleMarquee(this._contentTag),this.marquee){this._resetMarqueePromise();let e={...this.marqueeProps,w:this._textStyleSet.wordWrapWidth||this.w,h:this.h,y:this.style.offsetY,x:this.style.offsetX,signals:{marqueeContentLoaded:"_loadedMarqueeContent"}};this._Marquee||(e.type=Ir),this._isInlineContent?(this._InlineContent.w=0,e.title=void 0,e.contentTexture=this._contentTag.getTexture(),e.w=this._textStyleSet.wordWrapWidth||this.w):(e.contentTexture=void 0,e.title={text:this._contentTag.text.text,...this._textStyleSet,wordWrapWidth:0,maxLines:1}),this.patch({Marquee:e}),this._marqueeContentListenerAttached||(this._marqueeContentListenerAttached=!0),typeof this._marqueeOverrideLoopX<"u"?this._awaitMarqueeOverrideX.then(()=>{this._toggleMarquee(this._contentTag)}):this._toggleMarquee(this._contentTag)}}_getMarqueeProps(){return this._marqueeProps??{}}get _textStyleSet(){let e={...this.theme.typography.body1,...this.style.textStyle!==null&&typeof this.style.textStyle=="object"&&Object.keys(this.style.textStyle)?this.style.textStyle:this.theme.typography[this.style.textStyle]};return this.constructor.properties.forEach(t=>{if(t!=="fontStyle"&&typeof this[`_${t}`]<"u"){let i=t==="content"?"text":t;e[i]=this[`_${t}`]}}),this.w&&!this._isInlineContent&&!this.style.textStyle.wordWrapWidth&&this.fixed&&(e.wordWrapWidth=this.w),e}get _contentTag(){return this._isInlineContent?this._InlineContent:this._Text}_toggleMarquee(e){this.marquee?(e&&(e.alpha=.001),this._Marquee&&(this._Marquee.alpha=1,this._Marquee.startScrolling())):(e&&(e.alpha=1),this._Marquee&&(this._Marquee.alpha=.001,this._Marquee.stopScrolling()))}toggleMarquee(){this._toggleMarquee(this._contentTag)}get announce(){return this._announce||(this._isInlineContent&&this._InlineContent?this._InlineContent.announce:this.content)}set announce(e){super.announce=e}set smooth(e){he.warn("warning: value smoothing is known to cause bugs with the TextBox - patch updated values instead."),super.smooth=e}};h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();function Vu(r){return class extends r{static get name(){return r.name}_init(){super._init(),this._shouldSync&&this._updateSignals()}_update(){super._update(),this._shouldSync?this._updateSignals():this._cleanupSyncValues()}_cleanupSyncValues(){this.syncArray.map(e=>{e.marqueeOverrideLoopX=void 0,e.signals&&e.signals.willMarquee&&delete e.signals.willMarquee})}_updateSignals(){this.syncArray&&this.syncArray.map(e=>{e.signals={...e.signals,willMarquee:"_willMarquee"}})}_willMarquee(e){this._shouldSync&&(this._longestMarqueeWidth=Math.max(e._textRenderedW||0,this._longestMarqueeWidth||0),this.syncArray.map(t=>{t.marqueeOverrideLoopX=this._longestMarqueeWidth}))}get _shouldSync(){return this.style.marqueeSync===!1?!1:this.syncArray?Array.isArray(this.syncArray)?this.syncArray.length<2?(be.warn("warning: syncArray must contain at least two component references."),!1):!0:(be.warn("warning: syncArray must be typeof array."),!1):(be.warn("warning: components using MarqueeSync must have a syncArray getter defined."),!1)}}}var Gu=Vu;var Yu={};rr(Yu,{base:()=>U2,mode:()=>H2,tone:()=>W2});h();d();p();var U2=r=>({descriptionTextStyle:{...r.typography.body2,maxLines:1},fadeWidth:100,logoWidth:r.typography.body3.lineHeight,logoHeight:r.typography.body3.lineHeight,logoPadding:r.spacer.lg,detailsTextStyle:r.typography.body3,subtitleTextStyle:r.typography.body3,titleTextStyle:{...r.typography.headline1,maxLines:1},marqueeSync:!0,alpha:r.alpha.primary}),H2=r=>({disabled:{detailsTextStyle:{textColor:r.color.textNeutralDisabled},alpha:r.alpha.inactive}}),W2=r=>({neutral:{titleTextStyle:{textColor:r.color.textNeutral},subtitleTextStyle:{textColor:r.color.textNeutralSecondary},detailsTextStyle:{textColor:r.color.textNeutral},descriptionTextStyle:{textColor:r.color.textNeutralSecondary},mode:{disabled:{titleTextStyle:{textColor:r.color.textNeutralDisabled},detailsTextStyle:{textColor:r.color.textNeutralDisabled},descriptionTextStyle:{textColor:r.color.textNeutralDisabled}}}},inverse:{titleTextStyle:{textColor:r.color.textInverse},subtitleTextStyle:{textColor:r.color.textInverseSecondary},detailsTextStyle:{textColor:r.color.textInverse},descriptionTextStyle:{textColor:r.color.textInverseSecondary},mode:{disabled:{titleTextStyle:{textColor:r.color.textNeutralDisabled},subtitleTextStyle:{textColor:r.color.textNeutralDisabled},detailsTextStyle:{textColor:r.color.textNeutralDisabled},descriptionTextStyle:{textColor:r.color.textNeutralDisabled}}}},brand:{titleTextStyle:{textColor:r.color.textNeutral},subtitleTextStyle:{textColor:r.color.textNeutralSecondary},detailsTextStyle:{textColor:r.color.textNeutral},descriptionTextStyle:{textColor:r.color.textNeutralSecondary},mode:{disabled:{titleTextStyle:{textColor:r.color.textNeutralDisabled},detailsTextStyle:{textColor:r.color.textNeutralDisabled},descriptionTextStyle:{textColor:r.color.textNeutralDisabled}}}}});var Xu=class extends ve{static get __componentName(){return"MetadataBase"}static get __themeStyle(){return Yu}static _template(){return{Text:{flex:{direction:"column",justifyContent:"flex-start"},DetailsWrapper:{}}}}static get properties(){return["description","logo","logoHeight","logoPosition","logoTitle","logoWidth","details","subtitle","title","marquee"]}static get tags(){return["Text",{name:"Title",path:"Text.Title"},{name:"Subtitle",path:"Text.Subtitle"},{name:"DetailsWrapper",path:"Text.DetailsWrapper"},{name:"Details",path:"Text.DetailsWrapper.Details"},{name:"Description",path:"Text.Description"},"Logo"]}_titleLoaded(){this._updateLayout()}_subtitleLoaded(){this._updateLayout()}_detailsLoaded({w:e,h:t}){this._updateDetailsLayout({w:e,h:t}),this._updateLayout()}_descriptionLoaded(){this._updateLayout()}_updateDetailsLayout({w:e,h:t}){!this.details&&!this._Details||this._DetailsWrapper&&(this._DetailsWrapper.alpha=this.style.alpha,this._DetailsWrapper.w=e,this._DetailsWrapper.h=t)}_update(){this._updateLines(),this._updateLayout()}_updateLines(){this._Text.w=this._textW(),this._updateTitle(),this._updateSubtitle(),this._updateDetails(),this._updateDescription()}_updateLayout(){this._Text.h=this._textH(),this._updateMetadataHeight(),this._updatePositions(),this._updateLogo()}_updatePositions(){this._Text.x=this.logo&&this.logoPosition==="left"?this.logoWidth+this.style.logoPadding:0,this._Text.y=(this.h-this._Text.h)/2}_updateMetadataHeight(){let e=Math.max(this.logoHeight,this._Text.h);this.h!==e&&(this.h=e,this.signal("updateComponentDimensions"))}_updateTitle(){!this.title&&!this._Title||(this._Title||this._Text.childList.addAt({ref:"Title",type:Ne,signals:{textBoxChanged:"_titleLoaded"}},0),this._Title.patch({content:this.title,marquee:this.marquee,style:{textStyle:{...this.style.titleTextStyle,maxLines:1,wordWrap:!0,wordWrapWidth:this._Text.w}}}))}_updateSubtitle(){!this.subtitle&&!this._Subtitle||(this._Subtitle||this._Text.childList.addAt({ref:"Subtitle",type:Ne,signals:{textBoxChanged:"_subtitleLoaded"}},1),this._Subtitle.patch({content:this.subtitle,marquee:this.marquee,style:{textStyle:{...this.style.subtitleTextStyle,maxLines:1,wordWrap:!0,wordWrapWidth:this._Text.w}}}))}resetMarquee(){this.marquee&&(this.title&&(this._Title||this._updateTitle(),this._Title.toggleMarquee()),this.description&&(this._Description||this._updateDescription(),this._Description.toggleMarquee()))}_updateDetails(){!this.details&&!this._Details||(this._Details||this._DetailsWrapper.patch({Details:{type:Ne,signals:{textBoxChanged:"_detailsLoaded"}}}),this._Details.patch({content:this.details,style:{textStyle:this.style.detailsTextStyle}}),this._Details.finalW>this._textW()?this._Details.patch({w:this._textW()+this.style.fadeWidth/2,shader:{type:Yt,positionLeft:0,positionRight:this.style.fadeWidth},rtt:!0}):this._DetailsWrapper.shader=void 0,this._DetailsWrapper.visible=!!this.details,this._DetailsWrapper.alpha=this.style.alpha)}_updateDescription(){!this.description&&!this._Description||(this._Description||this._Text.childList.add({ref:"Description",type:Ne,signals:{textBoxChanged:"_descriptionLoaded"}}),this._Description.patch({content:this.description,marquee:this.marquee,style:{textStyle:{...this.style.descriptionTextStyle,maxLines:1,wordWrap:!0,wordWrapWidth:this._Text.w}}}))}_updateLogo(){if(!this.logo&&!this._Logo)return;this._Logo||this.patch({Logo:{flexItem:!1,type:We}}),this.logoPosition=this.logoPosition||"right";let e=this.subtitle&&this._Subtitle&&this._Subtitle.h||0;this._Logo.patch({w:this.logoWidth,h:this.logoHeight,icon:this.logo,alpha:this.style.alpha}),this._Logo.x=this.logoPosition==="left"?0:this.w-this._Logo.w,this._Logo.y=(this.h-this.logoHeight+e)/2}_textW(){return this.w-(this.logo?this.logoWidth+this.style.logoPadding:0)}_textH(){let e=this.title&&this._Title&&this._Title.h||0,t=this.subtitle&&this._Subtitle&&this._Subtitle.h||0,i=this.details&&this._DetailsWrapper&&this._DetailsWrapper.h||0,s=this.description&&this._Description&&this._Description.h||0;return e+t+i+s}_getLogoWidth(){return this._logoWidth!==void 0?this._logoWidth:this.style.logoWidth}_setLogoWidth(e){return e!==void 0?e:this.logoWidth}_getLogoHeight(){return this._logoHeight!==void 0?this._logoHeight:this.style.logoHeight}_setLogoHeight(e){return e!==void 0?e:this.logoHeight}get syncArray(){return[...this._Title?[this._Title]:[],...this._Subtitle?[this._Subtitle]:[],...this._Description?[this._Description]:[],...this._Details?[this._Details]:[]]}set announce(e){super.announce=e}get announce(){return this._announce||[this._Title&&this._Title.announce,this._Subtitle&&this._Subtitle.announce,this._Details&&this._Details.announce,this._Description&&this._Description.announce,this.logoTitle]}},js=Gu(Xu);h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();var Us=class extends le.Texture{constructor(e){super(e),this._w=0,this._h=0,this._radius=0,this._pointerWidth=0,this._pointerHeight=0,this._strokeWidth=0,this._color="white"}set w(e){this._w=e,this._changed()}get w(){return this._w}set h(e){this._h=e,this._changed()}get h(){return this._h}set radius(e){Array.isArray(e)?this._radius=new Array(4).fill().map((t,i)=>e[i]||0):this._radius=e,this._changed()}get radius(){return this._radius}set pointerWidth(e){this._pointerWidth=e,this._changed()}get pointerWidth(){return this._pointerWidth}set pointerHeight(e){this._pointerHeight=e,this._changed()}get pointerHeight(){return this._pointerHeight}set strokeWidth(e){this._strokeWidth=e,this._changed()}get strokeWidth(){return this._strokeWidth}set color(e){this._color=le.StageUtils.getRgbaString(e),this._changed()}get color(){return this._color}createBubble({stage:e,w:t=0,h:i=0,radius:s=0,pointerWidth:n=0,pointerHeight:o=0,strokeWidth:a=1,color:l="white"}){let u=e.platform.getDrawingCanvas(),c=u.getContext("2d");u.width=t+a+4,u.height=i+a+4,c.imageSmoothingEnabled=!0,c.fillStyle=l,c.strokeStyle=l,c.lineWidth=a,c.lineCap="round",c.lineJoin="round";let g=.5*a+1,m=g,y=m+t,b=g,C=b+i,A=C-o,T=Array.isArray(s);return c.beginPath(),c.moveTo(m+(T?s[0]:s),b),c.lineTo(y-(T?s[0]:s),b),c.arcTo(y,b,y,b+(T?s[1]:s),T?s[1]:s),c.lineTo(y,A-(T?s[2]:s)),c.arcTo(y,A,y-(T?s[2]:s),A,T?s[2]:s),c.lineTo(t/2+n/2,A),c.arcTo(t/2,C,t/2-n/2,A,2),c.lineTo(t/2-n/2,A),c.lineTo(m+(T?s[3]:s),A),c.arcTo(m,A,m,A-(T?s[3]:s),T?s[3]:s),c.lineTo(m,b+(T?s[0]:s)),c.arcTo(m,b,m+(T?s[0]:s),b,T?s[0]:s),c.stroke(),c.fill(),u}_getLookupId(){let{w:e,h:t,radius:i,pointerWidth:s,pointerHeight:n,color:o}=this;return`__bubble_${e}x${t}_radius-${i}_pointer-${s}x${n}_fill-${o}`}_getSourceLoader(){return e=>{e(null,{source:this.createBubble(this)})}}};h();d();p();h();d();p();h();d();p();h();d();p();h();d();p();var Zu=[{pattern:"TV-14",replacer:"Rated TV-14"},{pattern:"CC",replacer:"Closed Captions available"},{pattern:"HD",replacer:"High Definition available"},{pattern:/ENG(?!\+)/,replacer:"English Available"},{pattern:/ENG\+ES/,replacer:"Available in English and Spanish"},{pattern:"AD",replacer:"Audio Description available"},{pattern:"RT",replacer:"Rotten Tomatoes"},{pattern:/(S)+(\d+)+(E)+(\d+)+/,replacer:(r,e,t,i,s)=>`Season ${t} Episode ${s}`}],bf=ec(Zu);function xf(r){return`\\b${r}\\b`}function MA(r){return new RegExp(r.toString()+"|").exec("").length-1}function ec(r=Zu,e){let t=e?[...Zu,...r]:r,i={},s={},n="",o=0;return t.forEach(({pattern:a,replacer:l},u)=>{let c;if(a instanceof RegExp){let g=u+o;s[g]={pattern:a,replacer:l},c=xf(a.source),o+=MA(a)}else i[a]={replacer:l},c=xf(a);n=n===""?`(${c})`:`${n}|(${c})`}),n=new RegExp(n,"g"),{abbreviationsPattern:n,stringPatternMap:i,regExpPatternMap:s}}var whe=300*1e3;h();d();p();h();d();p();h();d();p();h();d();p();var tc=r=>r*Math.PI/180,zA=r=>r*180/Math.PI,jA=(r,e)=>{let t=e/2,i=r/2,s=Math.sqrt(Math.pow(t,2)+Math.pow(i,2)),n=90,o=Math.ceil(zA(Math.asin(t*Math.sin(tc(n))/s))),a=180-n-o;return[a,90,90+o,180,180+a,270,270+o,360]},UA=(r,e,t)=>{let i=jA(e,t),s=i.findIndex(b=>b>=r),n=t/2,o=e/2;[1,2,5,6].includes(s)&&(n=e/2,o=t/2),[2,4,6].includes(s)?r=r-i[s-1]:s>0&&(r=i[s]-r);let a=r,l=90-a,u=Math.ceil(Math.sin(tc(a))*n/Math.sin(tc(l)));u>o&&(u=o);let c=0,g=0,m=0,y=0;switch(s){case 0:c=e/2+u;break;case 1:c=e,g=t/2-u;break;case 2:c=e,g=t/2+u;break;case 3:c=e/2+u,g=t;break;case 4:c=e/2-u,g=t;break;case 5:g=t/2+u;break;case 6:g=t/2-u;break;case 7:c=e/2-u;break}return c==0&&(m=e,y=t-g),g==0&&(y=t,m=e-c),c==e&&(m=0,y=t-g),g==t&&(y=0,m=e-c),{x0:c,y0:g,x1:m,y1:y}},Yo=class extends le.Texture{constructor(e){super(e),this._w=0,this._h=0,this._steps=[],this._degrees=0}get w(){return this._w}set w(e){this._w=e,this._changed()}get h(){return this._h}set h(e){this._h=e,this._changed()}get steps(){return this._steps}set steps(e){this._steps=e,this._changed()}get degrees(){return this._degrees}set degrees(e){this._degrees=e,this._changed()}_getLookupId(){return`__linearGradient_${this._h}_${this._w}_${this._steps.count}_${this._degrees}`}_getSourceLoader(){let e=this._w,t=this._h,i=this._degrees,s=UA(i,e,t),{x0:n,y0:o,x1:a,y1:l}=s,u=this._steps,c=this.strokeWidth,g=this.strokeRadius?Array.isArray(this.strokeRadius)&&this.strokeRadius.length===4?this.strokeRadius:Array(4).fill(this.strokeRadius):Array(4).fill(0);return function(m){let y=this.stage.platform.getDrawingCanvas();y.width=e+c+2,y.height=t+c+2;var b=y.getContext("2d"),C=b.createLinearGradient(n,o,a,l);if(u.forEach(A=>{C.addColorStop(A.percent,A.color)}),c){let A=.5*c+1,T=.5*c+1;b.beginPath(),b.moveTo(A+g[0],T),b.lineTo(A+e-g[1],T),b.arcTo(A+e,T,A+e,T+g[1],g[1]),b.lineTo(A+e,T+t-g[2]),b.arcTo(A+e,T+t,A+e-g[2],T+t,g[2]),b.lineTo(A+g[3],T+t),b.arcTo(A,T+t,A,T+t-g[3],g[3]),b.lineTo(A,T+g[0]),b.arcTo(A,T,A+g[0],T,g[0]),b.closePath(),b.lineWidth=c,b.strokeStyle=C,b.stroke()}else b.fillStyle=C,b.fillRect(0,0,e,t);m(null,{source:y,w:e,h:t})}}};h();d();p();var Xo=class extends le.Texture{constructor(e){super(e),this._color="rgb(0,0,0)",this._fill=!0,this._radius=100,this._stroke=!1,this._strokeColor="rgb(0,0,0)",this._strokeWidth=1}get fill(){return this._fill}set fill(e){this._fill=e,this._changed()}get radius(){return this._radius}set radius(e){this._radius=e,this._changed()}get color(){return this._color}set color(e){this._color=e,this._changed()}get stroke(){return this._stroke}set stroke(e){this._stroke=e,this._changed()}get strokeWidth(){return this._strokeWidth}set strokeWidth(e){this._strokeWidth=e,this._changed()}get strokeColor(){return this._strokeColor}set strokeColor(e){this._strokeColor=e,this._changed()}_getLookupId(){return`__circle_${this._radius}`}_getSourceLoader(){let e=this._color,t=this._fill,i=this._radius,s=this._stroke,n=this._strokeColor,o=this._strokeWidth,a=this.stage.platform.getDrawingCanvas(),l=i;return s&&(l=i+o*2),a.width=l*2,a.height=l*2,function(u){let c=a.getContext("2d");c.lineWidth=o,c.strokeStyle=n,c.fillStyle=e,c.beginPath(),c.arc(l,l,i,0,2*Math.PI),t&&c.fill(),s&&c.stroke(),u(null,{source:a,radius:i})}}};h();d();p();var Ko=class extends le.Texture{constructor(e){super(e),this._color="rgb(13, 13, 15)",this._w=0,this._h=0,this._direction="right"}get w(){return this._w}set w(e){this._w=e,this._changed()}get h(){return this._h}set h(e){this._h=e,this._changed()}get direction(){return this._direction}get color(){return this._color}set color(e){this._color=e,this._changed()}set direction(e){this._direction=e,this._changed()}_getLookupId(){return`__triangle_${this._direction}_${this._w}x${this._h}`}_getSourceLoader(){let e=this._color,t=this._w,i=this._h,s=this._direction;var n=this.stage.platform.getDrawingCanvas();return function(o){var a=n.getContext("2d");n.width=t,n.height=i,a.fillStyle=e,a.strokeStyle=a.fillStyle,a.lineWidth=2,a.lineCap="round",a.lineJoin="round";let l=a.lineWidth/2;a.beginPath(),s==="right"?(a.moveTo(l,l),a.lineTo(l,i-l),a.lineTo(t-l,i/2)):s==="down"?(a.moveTo(l,l),a.lineTo(t-l,l),a.lineTo(t/2,i-l)):(a.moveTo(l,i/2),a.lineTo(t-l,l),a.lineTo(t-l,i-l)),a.closePath(),a.stroke(),a.fill(),o(null,{source:n,w:t,h:i,direction:s})}}};h();d();p();var Jo=class extends le.Texture{constructor(e){super(e),this._w=0,this._h=0,this._rounded=!1}get w(){return this._w}set w(e){this._w=e,this._changed()}get h(){return this._h}set h(e){this._h=e,this._changed()}get rounded(){return this._rounded}set rounded(e){this._rounded=e,this._changed()}_getLookupId(){return`__line_${this._w}x${this._h}${this._rounded?"_rounded":""}`}_getSourceLoader(){let e=this._w,t=this._h,i=this._rounded;var s=this.stage.platform.getDrawingCanvas();return function(n){var o=s.getContext("2d");s.width=e,s.height=t,o.lineWidth=t,i&&(o.lineCap="round"),o.strokeStyle="white",o.beginPath(),o.moveTo(i?2:0,t/2),o.lineTo(i?e-2:e,t/2),o.stroke(),n(null,{source:s,w:e,h:t,rounded:i})}}};h();d();p();function vf(r){let[e,t,i,s]=HA(r);return[WA(e,t,i).toUpperCase(),s*100]}function HA(r){let e=(r/65536|0)%256,t=(r/256|0)%256,i=r%256,s=(r/16777216|0)/255;return[e,t,i,s.toFixed(2)]}function rc(r){let e=r.toString(16);return e.length==1?"0"+e:e}function WA(r,e,t){return"#"+rc(r)+rc(e)+rc(t)}function Sf(r){try{if(ke.getValidColor(r))return"color";if(typeof r=="number")return"number"}catch(e){console.error(e)}}function wf(r){if(r!==void 0)return ke.capitalizeFirstLetter(r)}var ic=ye(Ce()),sc=()=>(0,ic.jsx)(Sr,{title:"Download LUI Theme JSON",onClick:()=>{console.log("Downloading LUI-Theme.json...");let e=document.querySelector("iframe").contentWindow.CONTEXT,t=JSON.parse(JSON.stringify(e.theme,(i,s)=>typeof s=="number"&&/^[0-9]{10}$/g.test(s.toString())?vf(s):s));ke.downloadFile(t,`LUI-Theme-${t.name}.json`,"json")},children:(0,ic.jsx)(wr,{icon:"download"})},Vn);h();d();p();Ge();h();d();p();var Af=ye(Cf()),Ef=()=>document&&document.querySelector("iframe")&&document.querySelector("iframe").contentWindow&&document.querySelector("iframe").contentWindow.APP,Hs=()=>document&&document.querySelector("iframe")&&document.querySelector("iframe").contentWindow&&document.querySelector("iframe").contentWindow.CONTEXT,Yr=()=>{let r=Hs();return r&&r.theme},Qo=()=>Yr()||Do;function Ws(r,e){document&&document.querySelector("iframe")&&document.querySelector("iframe").contentWindow&&document.querySelector("iframe").contentWindow.postMessage({theme:r}),e&&e({LUITheme:r})}var qs=(r,e,t=!0)=>{let i=Hs();if(i&&(i.updateTheme(r),t)){let s=Yr(),n=Object.keys(s).reduce((o,a)=>(typeof s[a]=="function"&&(o[a]=s[a]),o),{});Hs().storybookCustomTheme={...JSON.parse(JSON.stringify(Yr())),...n},e({LUITheme:"custom"})}},qA=(0,Af.default)((r,e,t)=>{qs({color:{[r]:ke.getValidColor(e)}},t)},500);function If(){qA(...arguments)}var $s=ye(Ce()),oc=()=>{let[{LUITheme:r},e]=_t(),[t,i]=Fe([]),[s,n]=Fe(!0);return He(()=>{if(r){if(s&&r==="custom"){e({LUITheme:"base"});return}else s&&r!=="base"&&Ws(r);n(!1),i(["base"].filter(o=>r==="custom"?o:o!=="custom").map((o,a)=>({active:o.toLowerCase()===r,id:a,title:ke.capitalizeFirstLetter(o),onClick(){Ws(o.toLowerCase(),e)}})))}},[r]),(0,$s.jsx)("div",{children:(0,$s.jsx)(vp,{placement:"bottom",trigger:"click",closeOnOutsideClick:!0,tooltip:(0,$s.jsx)(bp,{links:t}),children:(0,$s.jsx)(xp,{title:"Theme",children:"Theme"},Kn)})})};h();d();p();h();d();p();Ge();h();d();p();h();d();p();Ge();var Xt=ye(Ce());function cr({title:r,rows:e}){return(0,Xt.jsxs)("div",{style:{marginBottom:"40px"},children:[(0,Xt.jsx)("h2",{children:r}),(0,Xt.jsxs)("table",{children:[(0,Xt.jsx)("thead",{children:(0,Xt.jsxs)("tr",{children:[(0,Xt.jsx)("th",{children:"Property"}),(0,Xt.jsx)("th",{children:"Value"})]})}),(0,Xt.jsx)("tbody",{children:e})]})]})}h();d();p();Ge();var Vs=ye(Ce());function Tt({label:r,control:e}){return(0,Vs.jsxs)("tr",{children:[(0,Vs.jsx)("td",{children:r}),(0,Vs.jsx)("td",{children:e})]})}h();d();p();Ge();h();d();p();lc();Ge();ta();yc();h();d();p();h();d();p();function xt(){return xt=Object.assign?Object.assign.bind():function(r){for(var e=1;e=0&&s<1?(a=n,l=o):s>=1&&s<2?(a=o,l=n):s>=2&&s<3?(l=n,u=o):s>=3&&s<4?(l=o,u=n):s>=4&&s<5?(a=o,u=n):s>=5&&s<6&&(a=n,u=o);var c=t-n/2,g=a+c,m=l+c,y=u+c;return i(g,m,y)}var Zf={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function $E(r){if(typeof r!="string")return r;var e=r.toLowerCase();return Zf[e]?"#"+Zf[e]:r}var VE=/^#[a-fA-F0-9]{6}$/,GE=/^#[a-fA-F0-9]{8}$/,YE=/^#[a-fA-F0-9]{3}$/,XE=/^#[a-fA-F0-9]{4}$/,vc=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,KE=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,JE=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,QE=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Ii(r){if(typeof r!="string")throw new Ct(3);var e=$E(r);if(e.match(VE))return{red:parseInt(""+e[1]+e[2],16),green:parseInt(""+e[3]+e[4],16),blue:parseInt(""+e[5]+e[6],16)};if(e.match(GE)){var t=parseFloat((parseInt(""+e[7]+e[8],16)/255).toFixed(2));return{red:parseInt(""+e[1]+e[2],16),green:parseInt(""+e[3]+e[4],16),blue:parseInt(""+e[5]+e[6],16),alpha:t}}if(e.match(YE))return{red:parseInt(""+e[1]+e[1],16),green:parseInt(""+e[2]+e[2],16),blue:parseInt(""+e[3]+e[3],16)};if(e.match(XE)){var i=parseFloat((parseInt(""+e[4]+e[4],16)/255).toFixed(2));return{red:parseInt(""+e[1]+e[1],16),green:parseInt(""+e[2]+e[2],16),blue:parseInt(""+e[3]+e[3],16),alpha:i}}var s=vc.exec(e);if(s)return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)};var n=KE.exec(e.substring(0,50));if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[3],10),alpha:parseFloat(""+n[4])>1?parseFloat(""+n[4])/100:parseFloat(""+n[4])};var o=JE.exec(e);if(o){var a=parseInt(""+o[1],10),l=parseInt(""+o[2],10)/100,u=parseInt(""+o[3],10)/100,c="rgb("+Gs(a,l,u)+")",g=vc.exec(c);if(!g)throw new Ct(4,e,c);return{red:parseInt(""+g[1],10),green:parseInt(""+g[2],10),blue:parseInt(""+g[3],10)}}var m=QE.exec(e.substring(0,50));if(m){var y=parseInt(""+m[1],10),b=parseInt(""+m[2],10)/100,C=parseInt(""+m[3],10)/100,A="rgb("+Gs(y,b,C)+")",T=vc.exec(A);if(!T)throw new Ct(4,e,A);return{red:parseInt(""+T[1],10),green:parseInt(""+T[2],10),blue:parseInt(""+T[3],10),alpha:parseFloat(""+m[4])>1?parseFloat(""+m[4])/100:parseFloat(""+m[4])}}throw new Ct(5)}function ZE(r){var e=r.red/255,t=r.green/255,i=r.blue/255,s=Math.max(e,t,i),n=Math.min(e,t,i),o=(s+n)/2;if(s===n)return r.alpha!==void 0?{hue:0,saturation:0,lightness:o,alpha:r.alpha}:{hue:0,saturation:0,lightness:o};var a,l=s-n,u=o>.5?l/(2-s-n):l/(s+n);switch(s){case e:a=(t-i)/l+(t=1?sa(r,e,t):"rgba("+Gs(r,e,t)+","+i+")";if(typeof r=="object"&&e===void 0&&t===void 0&&i===void 0)return r.alpha>=1?sa(r.hue,r.saturation,r.lightness):"rgba("+Gs(r.hue,r.saturation,r.lightness)+","+r.alpha+")";throw new Ct(2)}function Tc(r,e,t){if(typeof r=="number"&&typeof e=="number"&&typeof t=="number")return wc("#"+Jr(r)+Jr(e)+Jr(t));if(typeof r=="object"&&e===void 0&&t===void 0)return wc("#"+Jr(r.red)+Jr(r.green)+Jr(r.blue));throw new Ct(6)}function Ut(r,e,t,i){if(typeof r=="string"&&typeof e=="number"){var s=Ii(r);return"rgba("+s.red+","+s.green+","+s.blue+","+e+")"}else{if(typeof r=="number"&&typeof e=="number"&&typeof t=="number"&&typeof i=="number")return i>=1?Tc(r,e,t):"rgba("+r+","+e+","+t+","+i+")";if(typeof r=="object"&&e===void 0&&t===void 0&&i===void 0)return r.alpha>=1?Tc(r.red,r.green,r.blue):"rgba("+r.red+","+r.green+","+r.blue+","+r.alpha+")"}throw new Ct(7)}var sI=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},nI=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},oI=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},aI=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Or(r){if(typeof r!="object")throw new Ct(8);if(nI(r))return Ut(r);if(sI(r))return Tc(r);if(aI(r))return iI(r);if(oI(r))return rI(r);throw new Ct(8)}function tg(r,e,t){return function(){var s=t.concat(Array.prototype.slice.call(arguments));return s.length>=e?r.apply(this,s):tg(r,e,s)}}function Pt(r){return tg(r,r.length,[])}function lI(r,e){if(e==="transparent")return e;var t=kr(e);return Or(xt({},t,{hue:t.hue+parseFloat(r)}))}var Cme=Pt(lI);function Ri(r,e,t){return Math.max(r,Math.min(e,t))}function uI(r,e){if(e==="transparent")return e;var t=kr(e);return Or(xt({},t,{lightness:Ri(0,1,t.lightness-parseFloat(r))}))}var cI=Pt(uI),Ht=cI;function hI(r,e){if(e==="transparent")return e;var t=kr(e);return Or(xt({},t,{saturation:Ri(0,1,t.saturation-parseFloat(r))}))}var Ame=Pt(hI);function dI(r,e){if(e==="transparent")return e;var t=kr(e);return Or(xt({},t,{lightness:Ri(0,1,t.lightness+parseFloat(r))}))}var pI=Pt(dI),Lr=pI;function fI(r,e,t){if(e==="transparent")return t;if(t==="transparent")return e;if(r===0)return t;var i=Ii(e),s=xt({},i,{alpha:typeof i.alpha=="number"?i.alpha:1}),n=Ii(t),o=xt({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),a=s.alpha-o.alpha,l=parseFloat(r)*2-1,u=l*a===-1?l:l+a,c=1+l*a,g=(u/c+1)/2,m=1-g,y={red:Math.floor(s.red*g+o.red*m),green:Math.floor(s.green*g+o.green*m),blue:Math.floor(s.blue*g+o.blue*m),alpha:s.alpha*parseFloat(r)+o.alpha*(1-parseFloat(r))};return Ut(y)}var gI=Pt(fI),rg=gI;function mI(r,e){if(e==="transparent")return e;var t=Ii(e),i=typeof t.alpha=="number"?t.alpha:1,s=xt({},t,{alpha:Ri(0,1,(i*100+parseFloat(r)*100)/100)});return Ut(s)}var _I=Pt(mI),Ys=_I;function yI(r,e){if(e==="transparent")return e;var t=kr(e);return Or(xt({},t,{saturation:Ri(0,1,t.saturation+parseFloat(r))}))}var Eme=Pt(yI);function xI(r,e){return e==="transparent"?e:Or(xt({},kr(e),{hue:parseFloat(r)}))}var Ime=Pt(xI);function bI(r,e){return e==="transparent"?e:Or(xt({},kr(e),{lightness:parseFloat(r)}))}var Rme=Pt(bI);function vI(r,e){return e==="transparent"?e:Or(xt({},kr(e),{saturation:parseFloat(r)}))}var Pme=Pt(vI);function SI(r,e){return e==="transparent"?e:rg(parseFloat(r),"rgb(0, 0, 0)",e)}var kme=Pt(SI);function wI(r,e){return e==="transparent"?e:rg(parseFloat(r),"rgb(255, 255, 255)",e)}var Ome=Pt(wI);function TI(r,e){if(e==="transparent")return e;var t=Ii(e),i=typeof t.alpha=="number"?t.alpha:1,s=xt({},t,{alpha:Ri(0,1,+(i*100-parseFloat(r)*100).toFixed(2)/100)});return Ut(s)}var CI=Pt(TI),Oe=CI;h();d();p();var kt=(()=>{let r;return typeof window<"u"?r=window:typeof globalThis<"u"?r=globalThis:typeof window<"u"?r=window:typeof self<"u"?r=self:r={},r})();Ac();h();d();p();var Kbe=__STORYBOOK_CLIENT_LOGGER__,{deprecate:kI,logger:na,once:OI,pretty:Jbe}=__STORYBOOK_CLIENT_LOGGER__;h();d();p();var LI=Object.create,mg=Object.defineProperty,DI=Object.getOwnPropertyDescriptor,FI=Object.getOwnPropertyNames,BI=Object.getPrototypeOf,MI=Object.prototype.hasOwnProperty,NI=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),zI=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of FI(e))!MI.call(r,s)&&s!==t&&mg(r,s,{get:()=>e[s],enumerable:!(i=DI(e,s))||i.enumerable});return r},jI=(r,e,t)=>(t=r!=null?LI(BI(r)):{},zI(e||!r||!r.__esModule?mg(t,"default",{value:r,enumerable:!0}):t,r)),UI=NI(r=>{Object.defineProperty(r,"__esModule",{value:!0}),r.isEqual=function(){var e=Object.prototype.toString,t=Object.getPrototypeOf,i=Object.getOwnPropertySymbols?function(s){return Object.keys(s).concat(Object.getOwnPropertySymbols(s))}:Object.keys;return function(s,n){return function o(a,l,u){var c,g,m,y=e.call(a),b=e.call(l);if(a===l)return!0;if(a==null||l==null)return!1;if(u.indexOf(a)>-1&&u.indexOf(l)>-1)return!0;if(u.push(a,l),y!=b||(c=i(a),g=i(l),c.length!=g.length||c.some(function(C){return!o(a[C],l[C],u)})))return!1;switch(y.slice(8,-1)){case"Symbol":return a.valueOf()==l.valueOf();case"Date":case"Number":return+a==+l||+a!=+a&&+l!=+l;case"RegExp":case"Function":case"String":case"Boolean":return""+a==""+l;case"Set":case"Map":c=a.entries(),g=l.entries();do if(!o((m=c.next()).value,g.next().value,u))return!1;while(!m.done);return!0;case"ArrayBuffer":a=new Uint8Array(a),l=new Uint8Array(l);case"DataView":a=new Uint8Array(a.buffer),l=new Uint8Array(l.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(a.length!=l.length)return!1;for(m=0;m`${t} ${i}${s}`).replace(/([a-z])([A-Z])/g,(e,t,i)=>`${t} ${i}`).replace(/([a-z])([0-9])/gi,(e,t,i)=>`${t} ${i}`).replace(/([0-9])([a-z])/gi,(e,t,i)=>`${t} ${i}`).replace(/(\s|^)(\w)/g,(e,t,i)=>`${t}${i.toUpperCase()}`).replace(/ +/g," ").trim()}var pg=jI(UI()),_g=r=>r.map(e=>typeof e<"u").filter(Boolean).length,WI=(r,e)=>{let{exists:t,eq:i,neq:s,truthy:n}=r;if(_g([t,i,s,n])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:t,eq:i,neq:s})}`);if(typeof i<"u")return(0,pg.isEqual)(e,i);if(typeof s<"u")return!(0,pg.isEqual)(e,s);if(typeof t<"u"){let o=typeof e<"u";return t?o:!o}return typeof n>"u"||n?!!e:!e},Ec=(r,e,t)=>{if(!r.if)return!0;let{arg:i,global:s}=r.if;if(_g([i,s])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:i,global:s})}`);let n=i?e[i]:t[s];return WI(r.if,n)},Ic=r=>r.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),fg=(r,e)=>{let t=Ic(r);if(t==="")throw new Error(`Invalid ${e} '${r}', must include alphanumeric characters`);return t},yg=(r,e)=>`${fg(r,"kind")}${e?`--${fg(e,"name")}`:""}`,xg=r=>HI(r);function gg(r,e){return Array.isArray(e)?e.includes(r):r.match(e)}function oa(r,{includeStories:e,excludeStories:t}){return r!=="__esModule"&&(!e||gg(r,e))&&(!t||!gg(r,t))}var bg=(...r)=>{let e=r.reduce((t,i)=>(i.startsWith("!")?t.delete(i.slice(1)):t.add(i),t),new Set);return Array.from(e)};var D8=ye(Nx(),1);h();d();p();Ge();var zx;(function(r){r[r.MAX=0]="MAX",r[r.HIGH=1]="HIGH",r[r.MED=2]="MED",r[r.LOW=3]="LOW",r[r.MIN=4]="MIN"})(zx||(zx={}));var SEe=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((r,e)=>(r[e.toLowerCase()]=e,r),{for:"htmlFor"});var DB=/^(\s*>[\s\S]*?)(?=\n{2,})/;var FB=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,BB=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/;var MB=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,NB=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,zB=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,jB=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i;var UB=/^)/;var HB=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i;var WB=/^(.*\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/;var Ca="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",wEe=new RegExp(`^([*_])\\1${Ca}\\1\\1(?!\\1)`),TEe=new RegExp(`^([*_])${Ca}\\1(?!\\1|\\w)`),CEe=new RegExp(`^==${Ca}==`),AEe=new RegExp(`^~~${Ca}~~`);var ch="(?:\\d+\\.)",hh="(?:[*+-])";function jx(r){return"( *)("+(r===1?ch:hh)+") +"}var Ux=jx(1),Hx=jx(2);function Wx(r){return new RegExp("^"+(r===1?Ux:Hx))}var EEe=Wx(1),IEe=Wx(2);function qx(r){return new RegExp("^"+(r===1?Ux:Hx)+"[^\\n]*(?:\\n(?!\\1"+(r===1?ch:hh)+" )[^\\n]*)*(\\n|$)","gm")}var qB=qx(1),$B=qx(2);function $x(r){let e=r===1?ch:hh;return new RegExp("^( *)("+e+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+e+" (?!"+e+" ))\\n*|\\s*\\n*$)")}var VB=$x(1),GB=$x(2);var REe=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`);var YB=[DB,FB,BB,MB,zB,NB,UB,WB,qB,VB,$B,GB],PEe=[...YB,/^[^\n]+(?: \n|\n{2,})/,jB,HB];var F8=ye(Kb(),1),B8=ye(m0(),1),kC=ye(fh(),1);h();d();p();h();d();p();h();d();p();var lPe=__STORYBOOK_CHANNELS__,{Channel:y0,PostMessageTransport:uPe,WebsocketTransport:cPe,createBrowserChannel:hPe}=__STORYBOOK_CHANNELS__;h();d();p();var mPe=__STORYBOOK_CLIENT_LOGGER__,{deprecate:hr,logger:Pe,once:Br,pretty:_Pe}=__STORYBOOK_CLIENT_LOGGER__;h();d();p();var SPe=__STORYBOOK_CORE_EVENTS__,{ARGTYPES_INFO_REQUEST:x0,ARGTYPES_INFO_RESPONSE:gh,CHANNEL_CREATED:wPe,CHANNEL_WS_DISCONNECT:TPe,CONFIG_ERROR:b0,CREATE_NEW_STORYFILE_REQUEST:CPe,CREATE_NEW_STORYFILE_RESPONSE:APe,CURRENT_STORY_WAS_SET:mh,DOCS_PREPARED:v0,DOCS_RENDERED:Ia,FILE_COMPONENT_SEARCH_REQUEST:EPe,FILE_COMPONENT_SEARCH_RESPONSE:IPe,FORCE_REMOUNT:S0,FORCE_RE_RENDER:Ra,GLOBALS_UPDATED:Zr,NAVIGATE_URL:w0,PLAY_FUNCTION_THREW_EXCEPTION:T0,PRELOAD_ENTRIES:C0,PREVIEW_BUILDER_PROGRESS:RPe,PREVIEW_KEYDOWN:A0,REGISTER_SUBSCRIPTION:PPe,REQUEST_WHATS_NEW_DATA:kPe,RESET_STORY_ARGS:cn,RESULT_WHATS_NEW_DATA:OPe,SAVE_STORY_REQUEST:LPe,SAVE_STORY_RESPONSE:DPe,SELECT_STORY:FPe,SET_CONFIG:BPe,SET_CURRENT_STORY:E0,SET_FILTER:MPe,SET_GLOBALS:I0,SET_INDEX:NPe,SET_STORIES:zPe,SET_WHATS_NEW_CACHE:jPe,SHARED_STATE_CHANGED:UPe,SHARED_STATE_SET:HPe,STORIES_COLLAPSE_ALL:WPe,STORIES_EXPAND_ALL:qPe,STORY_ARGS_UPDATED:_h,STORY_CHANGED:R0,STORY_ERRORED:P0,STORY_INDEX_INVALIDATED:k0,STORY_MISSING:yh,STORY_PREPARED:O0,STORY_RENDERED:hn,STORY_RENDER_PHASE_CHANGED:Ui,STORY_SPECIFIED:L0,STORY_THREW_EXCEPTION:D0,STORY_UNCHANGED:F0,TELEMETRY_ERROR:$Pe,TOGGLE_WHATS_NEW_NOTIFICATIONS:VPe,UNHANDLED_ERRORS_WHILE_PLAYING:B0,UPDATE_GLOBALS:Pa,UPDATE_QUERY_PARAMS:M0,UPDATE_STORY_ARGS:dn}=__STORYBOOK_CORE_EVENTS__;h();d();p();var jN=Object.defineProperty,qe=(r,e)=>jN(r,"name",{value:e,configurable:!0});function Ye(r){for(var e=[],t=1;t` - ${o}`).join(` +`)}`),`${s}${n!=null?` + +More info: ${n} +`:""}`}};qe(N0,"StorybookError");var rt=N0,UN=(r=>(r.BLOCKS="BLOCKS",r.DOCS_TOOLS="DOCS-TOOLS",r.PREVIEW_CLIENT_LOGGER="PREVIEW_CLIENT-LOGGER",r.PREVIEW_CHANNELS="PREVIEW_CHANNELS",r.PREVIEW_CORE_EVENTS="PREVIEW_CORE-EVENTS",r.PREVIEW_INSTRUMENTER="PREVIEW_INSTRUMENTER",r.PREVIEW_API="PREVIEW_API",r.PREVIEW_REACT_DOM_SHIM="PREVIEW_REACT-DOM-SHIM",r.PREVIEW_ROUTER="PREVIEW_ROUTER",r.PREVIEW_THEMING="PREVIEW_THEMING",r.RENDERER_HTML="RENDERER_HTML",r.RENDERER_PREACT="RENDERER_PREACT",r.RENDERER_REACT="RENDERER_REACT",r.RENDERER_SERVER="RENDERER_SERVER",r.RENDERER_SVELTE="RENDERER_SVELTE",r.RENDERER_VUE="RENDERER_VUE",r.RENDERER_VUE3="RENDERER_VUE3",r.RENDERER_WEB_COMPONENTS="RENDERER_WEB-COMPONENTS",r.FRAMEWORK_NEXTJS="FRAMEWORK_NEXTJS",r.ADDON_VITEST="ADDON_VITEST",r))(UN||{}),j0=class extends rt{constructor(e){super({category:"PREVIEW_API",code:1,message:Ye` + Couldn't find story matching id '${e.storyId}' after HMR. + - Did you just rename a story? + - Did you remove it from your CSF file? + - Are you sure a story with the id '${e.storyId}' exists? + - Please check the values in the stories field of your main.js config and see if they would match your CSF File. + - Also check the browser console and terminal for potential error messages.`}),this.data=e}};qe(j0,"MissingStoryAfterHmrError");var U0=j0,HN=class extends rt{constructor(e){super({category:"PREVIEW_API",code:2,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function",message:Ye` + We detected that you use an implicit action arg while ${e.phase} of your story. + ${e.deprecated?` +This is deprecated and won't work in Storybook 8 anymore. +`:""} + Please provide an explicit spy to your args like this: + import { fn } from '@storybook/test'; + ... + args: { + ${e.name}: fn() + }`}),this.data=e}};qe(HN,"ImplicitActionsDuringRendering");var H0=class extends rt{constructor(){super({category:"PREVIEW_API",code:3,message:Ye` + Cannot call \`storyStore.extract()\` without calling \`storyStore.cacheAllCsfFiles()\` first. + + You probably meant to call \`await preview.extract()\` which does the above for you.`})}};qe(H0,"CalledExtractOnStoreError");var W0=H0,q0=class extends rt{constructor(){super({category:"PREVIEW_API",code:4,message:Ye` + Expected your framework's preset to export a \`renderToCanvas\` field. + + Perhaps it needs to be upgraded for Storybook 7.0?`,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field"})}};qe(q0,"MissingRenderToCanvasError");var $0=q0,V0=class extends rt{constructor(e){super({category:"PREVIEW_API",code:5,message:Ye` + Called \`Preview.${e.methodName}()\` before initialization. + + The preview needs to load the story index before most methods can be called. If you want + to call \`${e.methodName}\`, try \`await preview.initializationPromise;\` first. + + If you didn't call the above code, then likely it was called by an addon that needs to + do the above.`}),this.data=e}};qe(V0,"CalledPreviewMethodBeforeInitializationError");var At=V0,G0=class extends rt{constructor(e){super({category:"PREVIEW_API",code:6,message:Ye` + Error fetching \`/index.json\`: + + ${e.text} + + If you are in development, this likely indicates a problem with your Storybook process, + check the terminal for errors. + + If you are in a deployed Storybook, there may have been an issue deploying the full Storybook + build.`}),this.data=e}};qe(G0,"StoryIndexFetchError");var Y0=G0,X0=class extends rt{constructor(e){super({category:"PREVIEW_API",code:7,message:Ye` + Tried to render docs entry ${e.storyId} but it is a MDX file that has no CSF + references, or autodocs for a CSF file that some doesn't refer to itself. + + This likely is an internal error in Storybook's indexing, or you've attached the + \`attached-mdx\` tag to an MDX file that is not attached.`}),this.data=e}};qe(X0,"MdxFileWithNoCsfReferencesError");var K0=X0,J0=class extends rt{constructor(){super({category:"PREVIEW_API",code:8,message:Ye` + Couldn't find any stories in your Storybook. + + - Please check your stories field of your main.js config: does it match correctly? + - Also check the browser console and terminal for error messages.`})}};qe(J0,"EmptyIndexError");var Q0=J0,Z0=class extends rt{constructor(e){super({category:"PREVIEW_API",code:9,message:Ye` + Couldn't find story matching '${e.storySpecifier}'. + + - Are you sure a story with that id exists? + - Please check your stories field of your main.js config. + - Also check the browser console and terminal for error messages.`}),this.data=e}};qe(Z0,"NoStoryMatchError");var ev=Z0,tv=class extends rt{constructor(e){super({category:"PREVIEW_API",code:10,message:Ye` + Couldn't find story matching id '${e.storyId}' after importing a CSF file. + + The file was indexed as if the story was there, but then after importing the file in the browser + we didn't find the story. Possible reasons: + - You are using a custom story indexer that is misbehaving. + - You have a custom file loader that is removing or renaming exports. + + Please check your browser console and terminal for errors that may explain the issue.`}),this.data=e}};qe(tv,"MissingStoryFromCsfFileError");var rv=tv,iv=class extends rt{constructor(){super({category:"PREVIEW_API",code:11,message:Ye` + Cannot access the Story Store until the index is ready. + + It is not recommended to use methods directly on the Story Store anyway, in Storybook 9 we will + remove access to the store entirely`})}};qe(iv,"StoryStoreAccessedBeforeInitializationError");var sv=iv,nv=class extends rt{constructor(e){super({category:"PREVIEW_API",code:12,message:Ye` + Incorrect use of mount in the play function. + + To use mount in the play function, you must satisfy the following two requirements: + + 1. You *must* destructure the mount property from the \`context\` (the argument passed to your play function). + This makes sure that Storybook does not start rendering the story before the play function begins. + + 2. Your Storybook framework or builder must be configured to transpile to ES2017 or newer. + This is because destructuring statements and async/await usages are otherwise transpiled away, + which prevents Storybook from recognizing your usage of \`mount\`. + + Note that Angular is not supported. As async/await is transpiled to support the zone.js polyfill. + + More info: https://storybook.js.org/docs/writing-tests/interaction-testing#run-code-before-the-component-gets-rendered + + Received the following play function: + ${e.playFunction}`}),this.data=e}};qe(nv,"MountMustBeDestructuredError");var ka=nv,ov=class extends rt{constructor(e){super({category:"PREVIEW_API",code:14,message:Ye` + No render function available for storyId '${e.id}' + `}),this.data=e}};qe(ov,"NoRenderFunctionError");var av=ov,lv=class extends rt{constructor(){super({category:"PREVIEW_API",code:15,message:Ye` + No component is mounted in your story. + + This usually occurs when you destructure mount in the play function, but forget to call it. + + For example: + + async play({ mount, canvasElement }) { + // 👈 mount should be called: await mount(); + const canvas = within(canvasElement); + const button = await canvas.findByRole('button'); + await userEvent.click(button); + }; + + Make sure to either remove it or call mount in your play function. + `})}};qe(lv,"NoStoryMountedError");var uv=lv,WN=class extends rt{constructor(){super({category:"FRAMEWORK_NEXTJS",code:1,documentation:"https://storybook.js.org/docs/get-started/nextjs#faq",message:Ye` + You are importing avif images, but you don't have sharp installed. + + You have to install sharp in order to use image optimization features in Next.js. + `})}};qe(WN,"NextJsSharpError");var qN=class extends rt{constructor(e){super({category:"FRAMEWORK_NEXTJS",code:2,message:Ye` + Tried to access router mocks from "${e.importType}" but they were not created yet. You might be running code in an unsupported environment. + `}),this.data=e}};qe(qN,"NextjsRouterMocksNotAvailable");var cv=class extends rt{constructor(e){super({category:"DOCS-TOOLS",code:1,documentation:"https://github.com/storybookjs/storybook/issues/26606",message:Ye` + There was a failure when generating detailed ArgTypes in ${e.language} for: + ${JSON.stringify(e.type,null,2)} + + Storybook will fall back to use a generic type description instead. + + This type is either not supported or it is a bug in the docgen generation in Storybook. + If you think this is a bug, please detail it as much as possible in the Github issue. + `}),this.data=e}};qe(cv,"UnknownArgTypesError");var Oa=cv,$N=class extends rt{constructor(e){super({category:"ADDON_VITEST",code:1,message:Ye` + Encountered an unsupported value "${e.value}" when setting the viewport ${e.dimension} dimension. + + The Storybook plugin only supports values in the following units: + - px, vh, vw, em, rem and %. + + You can either change the viewport for this story to use one of the supported units or skip the test by adding '!test' to the story's tags per https://storybook.js.org/docs/writing-stories/tags + `}),this.data=e}};qe($N,"UnsupportedViewportDimensionError");var VN=Object.create,jh=Object.defineProperty,GN=Object.getOwnPropertyDescriptor,YN=Object.getOwnPropertyNames,XN=Object.getPrototypeOf,KN=Object.prototype.hasOwnProperty,x=(r,e)=>jh(r,"name",{value:e,configurable:!0}),La=(r=>typeof Ft<"u"?Ft:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof Ft<"u"?Ft:e)[t]}):r)(function(r){if(typeof Ft<"u")return Ft.apply(this,arguments);throw Error('Dynamic require of "'+r+'" is not supported')}),j=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),JN=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of YN(e))!KN.call(r,s)&&s!==t&&jh(r,s,{get:()=>e[s],enumerable:!(i=GN(e,s))||i.enumerable});return r},bt=(r,e,t)=>(t=r!=null?VN(XN(r)):{},JN(e||!r||!r.__esModule?jh(t,"default",{value:r,enumerable:!0}):t,r)),Ev=j((r,e)=>{var t=typeof window=="object"&&window&&window.Object===Object&&window;e.exports=t}),fr=j((r,e)=>{var t=Ev(),i=typeof self=="object"&&self&&self.Object===Object&&self,s=t||i||Function("return this")();e.exports=s}),_n=j((r,e)=>{var t=fr(),i=t.Symbol;e.exports=i}),QN=j((r,e)=>{var t=_n(),i=Object.prototype,s=i.hasOwnProperty,n=i.toString,o=t?t.toStringTag:void 0;function a(l){var u=s.call(l,o),c=l[o];try{l[o]=void 0;var g=!0}catch{}var m=n.call(l);return g&&(u?l[o]=c:delete l[o]),m}x(a,"getRawTag"),e.exports=a}),ZN=j((r,e)=>{var t=Object.prototype,i=t.toString;function s(n){return i.call(n)}x(s,"objectToString"),e.exports=s}),Vi=j((r,e)=>{var t=_n(),i=QN(),s=ZN(),n="[object Null]",o="[object Undefined]",a=t?t.toStringTag:void 0;function l(u){return u==null?u===void 0?o:n:a&&a in Object(u)?i(u):s(u)}x(l,"baseGetTag"),e.exports=l}),yn=j((r,e)=>{function t(i){var s=typeof i;return i!=null&&(s=="object"||s=="function")}x(t,"isObject"),e.exports=t}),Iv=j((r,e)=>{var t=Vi(),i=yn(),s="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",a="[object Proxy]";function l(u){if(!i(u))return!1;var c=t(u);return c==n||c==o||c==s||c==a}x(l,"isFunction"),e.exports=l}),ez=j((r,e)=>{var t=fr(),i=t["__core-js_shared__"];e.exports=i}),tz=j((r,e)=>{var t=ez(),i=function(){var n=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function s(n){return!!i&&i in n}x(s,"isMasked"),e.exports=s}),Rv=j((r,e)=>{var t=Function.prototype,i=t.toString;function s(n){if(n!=null){try{return i.call(n)}catch{}try{return n+""}catch{}}return""}x(s,"toSource"),e.exports=s}),rz=j((r,e)=>{var t=Iv(),i=tz(),s=yn(),n=Rv(),o=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,g=u.hasOwnProperty,m=RegExp("^"+c.call(g).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function y(b){if(!s(b)||i(b))return!1;var C=t(b)?m:a;return C.test(n(b))}x(y,"baseIsNative"),e.exports=y}),iz=j((r,e)=>{function t(i,s){return i?.[s]}x(t,"getValue"),e.exports=t}),ii=j((r,e)=>{var t=rz(),i=iz();function s(n,o){var a=i(n,o);return t(a)?a:void 0}x(s,"getNative"),e.exports=s}),Pv=j((r,e)=>{var t=ii(),i=function(){try{var s=t(Object,"defineProperty");return s({},"",{}),s}catch{}}();e.exports=i}),kv=j((r,e)=>{var t=Pv();function i(s,n,o){n=="__proto__"&&t?t(s,n,{configurable:!0,enumerable:!0,value:o,writable:!0}):s[n]=o}x(i,"baseAssignValue"),e.exports=i}),sz=j((r,e)=>{function t(i){return function(s,n,o){for(var a=-1,l=Object(s),u=o(s),c=u.length;c--;){var g=u[i?c:++a];if(n(l[g],g,l)===!1)break}return s}}x(t,"createBaseFor"),e.exports=t}),nz=j((r,e)=>{var t=sz(),i=t();e.exports=i}),oz=j((r,e)=>{function t(i,s){for(var n=-1,o=Array(i);++n{function t(i){return i!=null&&typeof i=="object"}x(t,"isObjectLike"),e.exports=t}),az=j((r,e)=>{var t=Vi(),i=Gi(),s="[object Arguments]";function n(o){return i(o)&&t(o)==s}x(n,"baseIsArguments"),e.exports=n}),Uh=j((r,e)=>{var t=az(),i=Gi(),s=Object.prototype,n=s.hasOwnProperty,o=s.propertyIsEnumerable,a=t(function(){return arguments}())?t:function(l){return i(l)&&n.call(l,"callee")&&!o.call(l,"callee")};e.exports=a}),gr=j((r,e)=>{var t=Array.isArray;e.exports=t}),lz=j((r,e)=>{function t(){return!1}x(t,"stubFalse"),e.exports=t}),Ov=j((r,e)=>{var t=fr(),i=lz(),s=typeof r=="object"&&r&&!r.nodeType&&r,n=s&&typeof e=="object"&&e&&!e.nodeType&&e,o=n&&n.exports===s,a=o?t.Buffer:void 0,l=a?a.isBuffer:void 0,u=l||i;e.exports=u}),Hh=j((r,e)=>{var t=9007199254740991,i=/^(?:0|[1-9]\d*)$/;function s(n,o){var a=typeof n;return o=o??t,!!o&&(a=="number"||a!="symbol"&&i.test(n))&&n>-1&&n%1==0&&n{var t=9007199254740991;function i(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=t}x(i,"isLength"),e.exports=i}),uz=j((r,e)=>{var t=Vi(),i=Wh(),s=Gi(),n="[object Arguments]",o="[object Array]",a="[object Boolean]",l="[object Date]",u="[object Error]",c="[object Function]",g="[object Map]",m="[object Number]",y="[object Object]",b="[object RegExp]",C="[object Set]",A="[object String]",T="[object WeakMap]",R="[object ArrayBuffer]",P="[object DataView]",E="[object Float32Array]",k="[object Float64Array]",O="[object Int8Array]",B="[object Int16Array]",F="[object Int32Array]",U="[object Uint8Array]",q="[object Uint8ClampedArray]",ee="[object Uint16Array]",te="[object Uint32Array]",$={};$[E]=$[k]=$[O]=$[B]=$[F]=$[U]=$[q]=$[ee]=$[te]=!0,$[n]=$[o]=$[R]=$[a]=$[P]=$[l]=$[u]=$[c]=$[g]=$[m]=$[y]=$[b]=$[C]=$[A]=$[T]=!1;function D(N){return s(N)&&i(N.length)&&!!$[t(N)]}x(D,"baseIsTypedArray"),e.exports=D}),cz=j((r,e)=>{function t(i){return function(s){return i(s)}}x(t,"baseUnary"),e.exports=t}),hz=j((r,e)=>{var t=Ev(),i=typeof r=="object"&&r&&!r.nodeType&&r,s=i&&typeof e=="object"&&e&&!e.nodeType&&e,n=s&&s.exports===i,o=n&&t.process,a=function(){try{var l=s&&s.require&&s.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=a}),Lv=j((r,e)=>{var t=uz(),i=cz(),s=hz(),n=s&&s.isTypedArray,o=n?i(n):t;e.exports=o}),Dv=j((r,e)=>{var t=oz(),i=Uh(),s=gr(),n=Ov(),o=Hh(),a=Lv(),l=Object.prototype,u=l.hasOwnProperty;function c(g,m){var y=s(g),b=!y&&i(g),C=!y&&!b&&n(g),A=!y&&!b&&!C&&a(g),T=y||b||C||A,R=T?t(g.length,String):[],P=R.length;for(var E in g)(m||u.call(g,E))&&!(T&&(E=="length"||C&&(E=="offset"||E=="parent")||A&&(E=="buffer"||E=="byteLength"||E=="byteOffset")||o(E,P)))&&R.push(E);return R}x(c,"arrayLikeKeys"),e.exports=c}),Fv=j((r,e)=>{var t=Object.prototype;function i(s){var n=s&&s.constructor,o=typeof n=="function"&&n.prototype||t;return s===o}x(i,"isPrototype"),e.exports=i}),Bv=j((r,e)=>{function t(i,s){return function(n){return i(s(n))}}x(t,"overArg"),e.exports=t}),dz=j((r,e)=>{var t=Bv(),i=t(Object.keys,Object);e.exports=i}),pz=j((r,e)=>{var t=Fv(),i=dz(),s=Object.prototype,n=s.hasOwnProperty;function o(a){if(!t(a))return i(a);var l=[];for(var u in Object(a))n.call(a,u)&&u!="constructor"&&l.push(u);return l}x(o,"baseKeys"),e.exports=o}),Mv=j((r,e)=>{var t=Iv(),i=Wh();function s(n){return n!=null&&i(n.length)&&!t(n)}x(s,"isArrayLike"),e.exports=s}),qh=j((r,e)=>{var t=Dv(),i=pz(),s=Mv();function n(o){return s(o)?t(o):i(o)}x(n,"keys"),e.exports=n}),fz=j((r,e)=>{var t=nz(),i=qh();function s(n,o){return n&&t(n,o,i)}x(s,"baseForOwn"),e.exports=s}),gz=j((r,e)=>{function t(){this.__data__=[],this.size=0}x(t,"listCacheClear"),e.exports=t}),$h=j((r,e)=>{function t(i,s){return i===s||i!==i&&s!==s}x(t,"eq"),e.exports=t}),ja=j((r,e)=>{var t=$h();function i(s,n){for(var o=s.length;o--;)if(t(s[o][0],n))return o;return-1}x(i,"assocIndexOf"),e.exports=i}),mz=j((r,e)=>{var t=ja(),i=Array.prototype,s=i.splice;function n(o){var a=this.__data__,l=t(a,o);if(l<0)return!1;var u=a.length-1;return l==u?a.pop():s.call(a,l,1),--this.size,!0}x(n,"listCacheDelete"),e.exports=n}),_z=j((r,e)=>{var t=ja();function i(s){var n=this.__data__,o=t(n,s);return o<0?void 0:n[o][1]}x(i,"listCacheGet"),e.exports=i}),yz=j((r,e)=>{var t=ja();function i(s){return t(this.__data__,s)>-1}x(i,"listCacheHas"),e.exports=i}),xz=j((r,e)=>{var t=ja();function i(s,n){var o=this.__data__,a=t(o,s);return a<0?(++this.size,o.push([s,n])):o[a][1]=n,this}x(i,"listCacheSet"),e.exports=i}),Ua=j((r,e)=>{var t=gz(),i=mz(),s=_z(),n=yz(),o=xz();function a(l){var u=-1,c=l==null?0:l.length;for(this.clear();++u{var t=Ua();function i(){this.__data__=new t,this.size=0}x(i,"stackClear"),e.exports=i}),vz=j((r,e)=>{function t(i){var s=this.__data__,n=s.delete(i);return this.size=s.size,n}x(t,"stackDelete"),e.exports=t}),Sz=j((r,e)=>{function t(i){return this.__data__.get(i)}x(t,"stackGet"),e.exports=t}),wz=j((r,e)=>{function t(i){return this.__data__.has(i)}x(t,"stackHas"),e.exports=t}),Vh=j((r,e)=>{var t=ii(),i=fr(),s=t(i,"Map");e.exports=s}),Ha=j((r,e)=>{var t=ii(),i=t(Object,"create");e.exports=i}),Tz=j((r,e)=>{var t=Ha();function i(){this.__data__=t?t(null):{},this.size=0}x(i,"hashClear"),e.exports=i}),Cz=j((r,e)=>{function t(i){var s=this.has(i)&&delete this.__data__[i];return this.size-=s?1:0,s}x(t,"hashDelete"),e.exports=t}),Az=j((r,e)=>{var t=Ha(),i="__lodash_hash_undefined__",s=Object.prototype,n=s.hasOwnProperty;function o(a){var l=this.__data__;if(t){var u=l[a];return u===i?void 0:u}return n.call(l,a)?l[a]:void 0}x(o,"hashGet"),e.exports=o}),Ez=j((r,e)=>{var t=Ha(),i=Object.prototype,s=i.hasOwnProperty;function n(o){var a=this.__data__;return t?a[o]!==void 0:s.call(a,o)}x(n,"hashHas"),e.exports=n}),Iz=j((r,e)=>{var t=Ha(),i="__lodash_hash_undefined__";function s(n,o){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=t&&o===void 0?i:o,this}x(s,"hashSet"),e.exports=s}),Rz=j((r,e)=>{var t=Tz(),i=Cz(),s=Az(),n=Ez(),o=Iz();function a(l){var u=-1,c=l==null?0:l.length;for(this.clear();++u{var t=Rz(),i=Ua(),s=Vh();function n(){this.size=0,this.__data__={hash:new t,map:new(s||i),string:new t}}x(n,"mapCacheClear"),e.exports=n}),kz=j((r,e)=>{function t(i){var s=typeof i;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?i!=="__proto__":i===null}x(t,"isKeyable"),e.exports=t}),Wa=j((r,e)=>{var t=kz();function i(s,n){var o=s.__data__;return t(n)?o[typeof n=="string"?"string":"hash"]:o.map}x(i,"getMapData"),e.exports=i}),Oz=j((r,e)=>{var t=Wa();function i(s){var n=t(this,s).delete(s);return this.size-=n?1:0,n}x(i,"mapCacheDelete"),e.exports=i}),Lz=j((r,e)=>{var t=Wa();function i(s){return t(this,s).get(s)}x(i,"mapCacheGet"),e.exports=i}),Dz=j((r,e)=>{var t=Wa();function i(s){return t(this,s).has(s)}x(i,"mapCacheHas"),e.exports=i}),Fz=j((r,e)=>{var t=Wa();function i(s,n){var o=t(this,s),a=o.size;return o.set(s,n),this.size+=o.size==a?0:1,this}x(i,"mapCacheSet"),e.exports=i}),Gh=j((r,e)=>{var t=Pz(),i=Oz(),s=Lz(),n=Dz(),o=Fz();function a(l){var u=-1,c=l==null?0:l.length;for(this.clear();++u{var t=Ua(),i=Vh(),s=Gh(),n=200;function o(a,l){var u=this.__data__;if(u instanceof t){var c=u.__data__;if(!i||c.length{var t=Ua(),i=bz(),s=vz(),n=Sz(),o=wz(),a=Bz();function l(u){var c=this.__data__=new t(u);this.size=c.size}x(l,"Stack"),l.prototype.clear=i,l.prototype.delete=s,l.prototype.get=n,l.prototype.has=o,l.prototype.set=a,e.exports=l}),Mz=j((r,e)=>{var t="__lodash_hash_undefined__";function i(s){return this.__data__.set(s,t),this}x(i,"setCacheAdd"),e.exports=i}),Nz=j((r,e)=>{function t(i){return this.__data__.has(i)}x(t,"setCacheHas"),e.exports=t}),zz=j((r,e)=>{var t=Gh(),i=Mz(),s=Nz();function n(o){var a=-1,l=o==null?0:o.length;for(this.__data__=new t;++a{function t(i,s){for(var n=-1,o=i==null?0:i.length;++n{function t(i,s){return i.has(s)}x(t,"cacheHas"),e.exports=t}),zv=j((r,e)=>{var t=zz(),i=jz(),s=Uz(),n=1,o=2;function a(l,u,c,g,m,y){var b=c&n,C=l.length,A=u.length;if(C!=A&&!(b&&A>C))return!1;var T=y.get(l),R=y.get(u);if(T&&R)return T==u&&R==l;var P=-1,E=!0,k=c&o?new t:void 0;for(y.set(l,u),y.set(u,l);++P{var t=fr(),i=t.Uint8Array;e.exports=i}),Wz=j((r,e)=>{function t(i){var s=-1,n=Array(i.size);return i.forEach(function(o,a){n[++s]=[a,o]}),n}x(t,"mapToArray"),e.exports=t}),qz=j((r,e)=>{function t(i){var s=-1,n=Array(i.size);return i.forEach(function(o){n[++s]=o}),n}x(t,"setToArray"),e.exports=t}),$z=j((r,e)=>{var t=_n(),i=Hz(),s=$h(),n=zv(),o=Wz(),a=qz(),l=1,u=2,c="[object Boolean]",g="[object Date]",m="[object Error]",y="[object Map]",b="[object Number]",C="[object RegExp]",A="[object Set]",T="[object String]",R="[object Symbol]",P="[object ArrayBuffer]",E="[object DataView]",k=t?t.prototype:void 0,O=k?k.valueOf:void 0;function B(F,U,q,ee,te,$,D){switch(q){case E:if(F.byteLength!=U.byteLength||F.byteOffset!=U.byteOffset)return!1;F=F.buffer,U=U.buffer;case P:return!(F.byteLength!=U.byteLength||!$(new i(F),new i(U)));case c:case g:case b:return s(+F,+U);case m:return F.name==U.name&&F.message==U.message;case C:case T:return F==U+"";case y:var N=o;case A:var G=ee&l;if(N||(N=a),F.size!=U.size&&!G)return!1;var Q=D.get(F);if(Q)return Q==U;ee|=u,D.set(F,U);var ne=n(N(F),N(U),ee,te,$,D);return D.delete(F),ne;case R:if(O)return O.call(F)==O.call(U)}return!1}x(B,"equalByTag"),e.exports=B}),Yh=j((r,e)=>{function t(i,s){for(var n=-1,o=s.length,a=i.length;++n{var t=Yh(),i=gr();function s(n,o,a){var l=o(n);return i(n)?l:t(l,a(n))}x(s,"baseGetAllKeys"),e.exports=s}),Vz=j((r,e)=>{function t(i,s){for(var n=-1,o=i==null?0:i.length,a=0,l=[];++n{function t(){return[]}x(t,"stubArray"),e.exports=t}),Hv=j((r,e)=>{var t=Vz(),i=Uv(),s=Object.prototype,n=s.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(l){return l==null?[]:(l=Object(l),t(o(l),function(u){return n.call(l,u)}))}:i;e.exports=a}),Gz=j((r,e)=>{var t=jv(),i=Hv(),s=qh();function n(o){return t(o,s,i)}x(n,"getAllKeys"),e.exports=n}),Yz=j((r,e)=>{var t=Gz(),i=1,s=Object.prototype,n=s.hasOwnProperty;function o(a,l,u,c,g,m){var y=u&i,b=t(a),C=b.length,A=t(l),T=A.length;if(C!=T&&!y)return!1;for(var R=C;R--;){var P=b[R];if(!(y?P in l:n.call(l,P)))return!1}var E=m.get(a),k=m.get(l);if(E&&k)return E==l&&k==a;var O=!0;m.set(a,l),m.set(l,a);for(var B=y;++R{var t=ii(),i=fr(),s=t(i,"DataView");e.exports=s}),Kz=j((r,e)=>{var t=ii(),i=fr(),s=t(i,"Promise");e.exports=s}),Jz=j((r,e)=>{var t=ii(),i=fr(),s=t(i,"Set");e.exports=s}),Qz=j((r,e)=>{var t=ii(),i=fr(),s=t(i,"WeakMap");e.exports=s}),Zz=j((r,e)=>{var t=Xz(),i=Vh(),s=Kz(),n=Jz(),o=Qz(),a=Vi(),l=Rv(),u="[object Map]",c="[object Object]",g="[object Promise]",m="[object Set]",y="[object WeakMap]",b="[object DataView]",C=l(t),A=l(i),T=l(s),R=l(n),P=l(o),E=a;(t&&E(new t(new ArrayBuffer(1)))!=b||i&&E(new i)!=u||s&&E(s.resolve())!=g||n&&E(new n)!=m||o&&E(new o)!=y)&&(E=x(function(k){var O=a(k),B=O==c?k.constructor:void 0,F=B?l(B):"";if(F)switch(F){case C:return b;case A:return u;case T:return g;case R:return m;case P:return y}return O},"getTag")),e.exports=E}),e3=j((r,e)=>{var t=Nv(),i=zv(),s=$z(),n=Yz(),o=Zz(),a=gr(),l=Ov(),u=Lv(),c=1,g="[object Arguments]",m="[object Array]",y="[object Object]",b=Object.prototype,C=b.hasOwnProperty;function A(T,R,P,E,k,O){var B=a(T),F=a(R),U=B?m:o(T),q=F?m:o(R);U=U==g?y:U,q=q==g?y:q;var ee=U==y,te=q==y,$=U==q;if($&&l(T)){if(!l(R))return!1;B=!0,ee=!1}if($&&!ee)return O||(O=new t),B||u(T)?i(T,R,P,E,k,O):s(T,R,U,P,E,k,O);if(!(P&c)){var D=ee&&C.call(T,"__wrapped__"),N=te&&C.call(R,"__wrapped__");if(D||N){var G=D?T.value():T,Q=N?R.value():R;return O||(O=new t),k(G,Q,P,E,O)}}return $?(O||(O=new t),n(T,R,P,E,k,O)):!1}x(A,"baseIsEqualDeep"),e.exports=A}),Wv=j((r,e)=>{var t=e3(),i=Gi();function s(n,o,a,l,u){return n===o?!0:n==null||o==null||!i(n)&&!i(o)?n!==n&&o!==o:t(n,o,a,l,s,u)}x(s,"baseIsEqual"),e.exports=s}),t3=j((r,e)=>{var t=Nv(),i=Wv(),s=1,n=2;function o(a,l,u,c){var g=u.length,m=g,y=!c;if(a==null)return!m;for(a=Object(a);g--;){var b=u[g];if(y&&b[2]?b[1]!==a[b[0]]:!(b[0]in a))return!1}for(;++g{var t=yn();function i(s){return s===s&&!t(s)}x(i,"isStrictComparable"),e.exports=i}),r3=j((r,e)=>{var t=qv(),i=qh();function s(n){for(var o=i(n),a=o.length;a--;){var l=o[a],u=n[l];o[a]=[l,u,t(u)]}return o}x(s,"getMatchData"),e.exports=s}),$v=j((r,e)=>{function t(i,s){return function(n){return n==null?!1:n[i]===s&&(s!==void 0||i in Object(n))}}x(t,"matchesStrictComparable"),e.exports=t}),i3=j((r,e)=>{var t=t3(),i=r3(),s=$v();function n(o){var a=i(o);return a.length==1&&a[0][2]?s(a[0][0],a[0][1]):function(l){return l===o||t(l,o,a)}}x(n,"baseMatches"),e.exports=n}),Xh=j((r,e)=>{var t=Vi(),i=Gi(),s="[object Symbol]";function n(o){return typeof o=="symbol"||i(o)&&t(o)==s}x(n,"isSymbol"),e.exports=n}),Kh=j((r,e)=>{var t=gr(),i=Xh(),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function o(a,l){if(t(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||i(a)?!0:n.test(a)||!s.test(a)||l!=null&&a in Object(l)}x(o,"isKey"),e.exports=o}),s3=j((r,e)=>{var t=Gh(),i="Expected a function";function s(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new TypeError(i);var a=x(function(){var l=arguments,u=o?o.apply(this,l):l[0],c=a.cache;if(c.has(u))return c.get(u);var g=n.apply(this,l);return a.cache=c.set(u,g)||c,g},"memoized");return a.cache=new(s.Cache||t),a}x(s,"memoize"),s.Cache=t,e.exports=s}),n3=j((r,e)=>{var t=s3(),i=500;function s(n){var o=t(n,function(l){return a.size===i&&a.clear(),l}),a=o.cache;return o}x(s,"memoizeCapped"),e.exports=s}),o3=j((r,e)=>{var t=n3(),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,n=t(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(i,function(l,u,c,g){a.push(c?g.replace(s,"$1"):u||l)}),a});e.exports=n}),Vv=j((r,e)=>{function t(i,s){for(var n=-1,o=i==null?0:i.length,a=Array(o);++n{var t=_n(),i=Vv(),s=gr(),n=Xh(),o=1/0,a=t?t.prototype:void 0,l=a?a.toString:void 0;function u(c){if(typeof c=="string")return c;if(s(c))return i(c,u)+"";if(n(c))return l?l.call(c):"";var g=c+"";return g=="0"&&1/c==-o?"-0":g}x(u,"baseToString"),e.exports=u}),l3=j((r,e)=>{var t=a3();function i(s){return s==null?"":t(s)}x(i,"toString"),e.exports=i}),qa=j((r,e)=>{var t=gr(),i=Kh(),s=o3(),n=l3();function o(a,l){return t(a)?a:i(a,l)?[a]:s(n(a))}x(o,"castPath"),e.exports=o}),xn=j((r,e)=>{var t=Xh(),i=1/0;function s(n){if(typeof n=="string"||t(n))return n;var o=n+"";return o=="0"&&1/n==-i?"-0":o}x(s,"toKey"),e.exports=s}),Jh=j((r,e)=>{var t=qa(),i=xn();function s(n,o){o=t(o,n);for(var a=0,l=o.length;n!=null&&a{var t=Jh();function i(s,n,o){var a=s==null?void 0:t(s,n);return a===void 0?o:a}x(i,"get"),e.exports=i}),c3=j((r,e)=>{function t(i,s){return i!=null&&s in Object(i)}x(t,"baseHasIn"),e.exports=t}),h3=j((r,e)=>{var t=qa(),i=Uh(),s=gr(),n=Hh(),o=Wh(),a=xn();function l(u,c,g){c=t(c,u);for(var m=-1,y=c.length,b=!1;++m{var t=c3(),i=h3();function s(n,o){return n!=null&&i(n,o,t)}x(s,"hasIn"),e.exports=s}),d3=j((r,e)=>{var t=Wv(),i=u3(),s=Gv(),n=Kh(),o=qv(),a=$v(),l=xn(),u=1,c=2;function g(m,y){return n(m)&&o(y)?a(l(m),y):function(b){var C=i(b,m);return C===void 0&&C===y?s(b,m):t(y,C,u|c)}}x(g,"baseMatchesProperty"),e.exports=g}),Yv=j((r,e)=>{function t(i){return i}x(t,"identity"),e.exports=t}),p3=j((r,e)=>{function t(i){return function(s){return s?.[i]}}x(t,"baseProperty"),e.exports=t}),f3=j((r,e)=>{var t=Jh();function i(s){return function(n){return t(n,s)}}x(i,"basePropertyDeep"),e.exports=i}),g3=j((r,e)=>{var t=p3(),i=f3(),s=Kh(),n=xn();function o(a){return s(a)?t(n(a)):i(a)}x(o,"property"),e.exports=o}),Xv=j((r,e)=>{var t=i3(),i=d3(),s=Yv(),n=gr(),o=g3();function a(l){return typeof l=="function"?l:l==null?s:typeof l=="object"?n(l)?i(l[0],l[1]):t(l):o(l)}x(a,"baseIteratee"),e.exports=a}),$a=j((r,e)=>{var t=kv(),i=fz(),s=Xv();function n(o,a){var l={};return a=s(a,3),i(o,function(u,c,g){t(l,c,a(u,c,g))}),l}x(n,"mapValues"),e.exports=n}),m3=j((r,e)=>{var t=kv(),i=$h(),s=Object.prototype,n=s.hasOwnProperty;function o(a,l,u){var c=a[l];(!(n.call(a,l)&&i(c,u))||u===void 0&&!(l in a))&&t(a,l,u)}x(o,"assignValue"),e.exports=o}),_3=j((r,e)=>{var t=m3(),i=qa(),s=Hh(),n=yn(),o=xn();function a(l,u,c,g){if(!n(l))return l;u=i(u,l);for(var m=-1,y=u.length,b=y-1,C=l;C!=null&&++m{var t=Jh(),i=_3(),s=qa();function n(o,a,l){for(var u=-1,c=a.length,g={};++u{var t=Kv(),i=Gv();function s(n,o){return t(n,o,function(a,l){return i(n,l)})}x(s,"basePick"),e.exports=s}),x3=j((r,e)=>{var t=_n(),i=Uh(),s=gr(),n=t?t.isConcatSpreadable:void 0;function o(a){return s(a)||i(a)||!!(n&&a&&a[n])}x(o,"isFlattenable"),e.exports=o}),b3=j((r,e)=>{var t=Yh(),i=x3();function s(n,o,a,l,u){var c=-1,g=n.length;for(a||(a=i),u||(u=[]);++c0&&a(m)?o>1?s(m,o-1,a,l,u):t(u,m):l||(u[u.length]=m)}return u}x(s,"baseFlatten"),e.exports=s}),v3=j((r,e)=>{var t=b3();function i(s){var n=s==null?0:s.length;return n?t(s,1):[]}x(i,"flatten"),e.exports=i}),S3=j((r,e)=>{function t(i,s,n){switch(n.length){case 0:return i.call(s);case 1:return i.call(s,n[0]);case 2:return i.call(s,n[0],n[1]);case 3:return i.call(s,n[0],n[1],n[2])}return i.apply(s,n)}x(t,"apply"),e.exports=t}),w3=j((r,e)=>{var t=S3(),i=Math.max;function s(n,o,a){return o=i(o===void 0?n.length-1:o,0),function(){for(var l=arguments,u=-1,c=i(l.length-o,0),g=Array(c);++u{function t(i){return function(){return i}}x(t,"constant"),e.exports=t}),C3=j((r,e)=>{var t=T3(),i=Pv(),s=Yv(),n=i?function(o,a){return i(o,"toString",{configurable:!0,enumerable:!1,value:t(a),writable:!0})}:s;e.exports=n}),A3=j((r,e)=>{var t=800,i=16,s=Date.now;function n(o){var a=0,l=0;return function(){var u=s(),c=i-(u-l);if(l=u,c>0){if(++a>=t)return arguments[0]}else a=0;return o.apply(void 0,arguments)}}x(n,"shortOut"),e.exports=n}),E3=j((r,e)=>{var t=C3(),i=A3(),s=i(t);e.exports=s}),I3=j((r,e)=>{var t=v3(),i=w3(),s=E3();function n(o){return s(i(o,void 0,t),o+"")}x(n,"flatRest"),e.exports=n}),R3=j((r,e)=>{var t=y3(),i=I3(),s=i(function(n,o){return n==null?{}:t(n,o)});e.exports=s}),Jv=j((r,e)=>{(function(t){if(typeof r=="object"&&typeof e<"u")e.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else{var i;typeof window<"u"||typeof window<"u"?i=window:typeof self<"u"?i=self:i=this,i.memoizerific=t()}})(function(){var t,i,s;return x(function n(o,a,l){function u(m,y){if(!a[m]){if(!o[m]){var b=typeof La=="function"&&La;if(!y&&b)return b(m,!0);if(c)return c(m,!0);var C=new Error("Cannot find module '"+m+"'");throw C.code="MODULE_NOT_FOUND",C}var A=a[m]={exports:{}};o[m][0].call(A.exports,function(T){var R=o[m][1][T];return u(R||T)},A,A.exports,n,o,a,l)}return a[m].exports}x(u,"s");for(var c=typeof La=="function"&&La,g=0;g=0)return this.lastItem=this.list[c],this.list[c].val},l.prototype.set=function(u,c){var g;return this.lastItem&&this.isEqual(this.lastItem.key,u)?(this.lastItem.val=c,this):(g=this.indexOf(u),g>=0?(this.lastItem=this.list[g],this.list[g].val=c,this):(this.lastItem={key:u,val:c},this.list.push(this.lastItem),this.size++,this))},l.prototype.delete=function(u){var c;if(this.lastItem&&this.isEqual(this.lastItem.key,u)&&(this.lastItem=void 0),c=this.indexOf(u),c>=0)return this.size--,this.list.splice(c,1)[0]},l.prototype.has=function(u){var c;return this.lastItem&&this.isEqual(this.lastItem.key,u)?!0:(c=this.indexOf(u),c>=0?(this.lastItem=this.list[c],!0):!1)},l.prototype.forEach=function(u,c){var g;for(g=0;g0&&(k[E]={cacheItem:T,arg:arguments[E]},O?u(b,k):b.push(k),b.length>m&&c(b.shift())),A.wasMemoized=O,A.numArgs=E+1,P},"memoizerific");return A.limit=m,A.wasMemoized=!1,A.cache=y,A.lru=b,A}};function u(m,y){var b=m.length,C=y.length,A,T,R;for(T=0;T=0&&(b=m[A],C=b.cacheItem.get(b.arg),!C||!C.size);A--)b.cacheItem.delete(b.arg)}x(c,"removeCachedResult");function g(m,y){return m===y||m!==m&&y!==y}x(g,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})}),Qv=j((r,e)=>{var t=Bv(),i=t(Object.getPrototypeOf,Object);e.exports=i}),Qh=j((r,e)=>{var t=Vi(),i=Qv(),s=Gi(),n="[object Object]",o=Function.prototype,a=Object.prototype,l=o.toString,u=a.hasOwnProperty,c=l.call(Object);function g(m){if(!s(m)||t(m)!=n)return!1;var y=i(m);if(y===null)return!0;var b=u.call(y,"constructor")&&y.constructor;return typeof b=="function"&&b instanceof b&&l.call(b)==c}x(g,"isPlainObject"),e.exports=g}),P3=j((r,e)=>{var t=Yh(),i=Qv(),s=Hv(),n=Uv(),o=Object.getOwnPropertySymbols,a=o?function(l){for(var u=[];l;)t(u,s(l)),l=i(l);return u}:n;e.exports=a}),k3=j((r,e)=>{function t(i){var s=[];if(i!=null)for(var n in Object(i))s.push(n);return s}x(t,"nativeKeysIn"),e.exports=t}),O3=j((r,e)=>{var t=yn(),i=Fv(),s=k3(),n=Object.prototype,o=n.hasOwnProperty;function a(l){if(!t(l))return s(l);var u=i(l),c=[];for(var g in l)g=="constructor"&&(u||!o.call(l,g))||c.push(g);return c}x(a,"baseKeysIn"),e.exports=a}),L3=j((r,e)=>{var t=Dv(),i=O3(),s=Mv();function n(o){return s(o)?t(o,!0):i(o)}x(n,"keysIn"),e.exports=n}),D3=j((r,e)=>{var t=jv(),i=P3(),s=L3();function n(o){return t(o,s,i)}x(n,"getAllKeysIn"),e.exports=n}),F3=j((r,e)=>{var t=Vv(),i=Xv(),s=Kv(),n=D3();function o(a,l){if(a==null)return{};var u=t(n(a),function(c){return[c]});return l=i(l),s(a,u,function(c,g){return l(c,g[0])})}x(o,"pickBy"),e.exports=o}),B3=j((r,e)=>{"use strict";e.exports=Error}),M3=j((r,e)=>{"use strict";e.exports=EvalError}),N3=j((r,e)=>{"use strict";e.exports=RangeError}),z3=j((r,e)=>{"use strict";e.exports=ReferenceError}),Zv=j((r,e)=>{"use strict";e.exports=SyntaxError}),bn=j((r,e)=>{"use strict";e.exports=TypeError}),j3=j((r,e)=>{"use strict";e.exports=URIError}),U3=j((r,e)=>{"use strict";e.exports=x(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},i=Symbol("test"),s=Object(i);if(typeof i=="string"||Object.prototype.toString.call(i)!=="[object Symbol]"||Object.prototype.toString.call(s)!=="[object Symbol]")return!1;var n=42;t[i]=n;for(i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==i||!Object.prototype.propertyIsEnumerable.call(t,i))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,i);if(a.value!==n||a.enumerable!==!0)return!1}return!0},"hasSymbols")}),H3=j((r,e)=>{"use strict";var t=typeof Symbol<"u"&&Symbol,i=U3();e.exports=x(function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:i()},"hasNativeSymbols")}),W3=j((r,e)=>{"use strict";var t={__proto__:null,foo:{}},i=Object;e.exports=x(function(){return{__proto__:t}.foo===t.foo&&!(t instanceof i)},"hasProto")}),q3=j((r,e)=>{"use strict";var t="Function.prototype.bind called on incompatible ",i=Object.prototype.toString,s=Math.max,n="[object Function]",o=x(function(u,c){for(var g=[],m=0;m{"use strict";var t=q3();e.exports=Function.prototype.bind||t}),$3=j((r,e)=>{"use strict";var t=Function.prototype.call,i=Object.prototype.hasOwnProperty,s=Zh();e.exports=s.call(t,i)}),Yi=j((r,e)=>{"use strict";var t,i=B3(),s=M3(),n=N3(),o=z3(),a=Zv(),l=bn(),u=j3(),c=Function,g=x(function(ie){try{return c('"use strict"; return ('+ie+").constructor;")()}catch{}},"getEvalledConstructor"),m=Object.getOwnPropertyDescriptor;if(m)try{m({},"")}catch{m=null}var y=x(function(){throw new l},"throwTypeError"),b=m?function(){try{return arguments.callee,y}catch{try{return m(arguments,"callee").get}catch{return y}}}():y,C=H3()(),A=W3()(),T=Object.getPrototypeOf||(A?function(ie){return ie.__proto__}:null),R={},P=typeof Uint8Array>"u"||!T?t:T(Uint8Array),E={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":C&&T?T([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":s,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":c,"%GeneratorFunction%":R,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C&&T?T(T([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!C||!T?t:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":n,"%ReferenceError%":o,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!C||!T?t:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&T?T(""[Symbol.iterator]()):t,"%Symbol%":C?Symbol:t,"%SyntaxError%":a,"%ThrowTypeError%":b,"%TypedArray%":P,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet};if(T)try{null.error}catch(ie){k=T(T(ie)),E["%Error.prototype%"]=k}var k,O=x(function ie(re){var ae;if(re==="%AsyncFunction%")ae=g("async function () {}");else if(re==="%GeneratorFunction%")ae=g("function* () {}");else if(re==="%AsyncGeneratorFunction%")ae=g("async function* () {}");else if(re==="%AsyncGenerator%"){var ce=ie("%AsyncGeneratorFunction%");ce&&(ae=ce.prototype)}else if(re==="%AsyncIteratorPrototype%"){var Se=ie("%AsyncGenerator%");Se&&T&&(ae=T(Se.prototype))}return E[re]=ae,ae},"doEval"),B={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},F=Zh(),U=$3(),q=F.call(Function.call,Array.prototype.concat),ee=F.call(Function.apply,Array.prototype.splice),te=F.call(Function.call,String.prototype.replace),$=F.call(Function.call,String.prototype.slice),D=F.call(Function.call,RegExp.prototype.exec),N=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,Q=x(function(ie){var re=$(ie,0,1),ae=$(ie,-1);if(re==="%"&&ae!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(ae==="%"&&re!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var ce=[];return te(ie,N,function(Se,we,xe,Ie){ce[ce.length]=xe?te(Ie,G,"$1"):we||Se}),ce},"stringToPath"),ne=x(function(ie,re){var ae=ie,ce;if(U(B,ae)&&(ce=B[ae],ae="%"+ce[0]+"%"),U(E,ae)){var Se=E[ae];if(Se===R&&(Se=O(ae)),typeof Se>"u"&&!re)throw new l("intrinsic "+ie+" exists, but is not available. Please file an issue!");return{alias:ce,name:ae,value:Se}}throw new a("intrinsic "+ie+" does not exist!")},"getBaseIntrinsic");e.exports=x(function(ie,re){if(typeof ie!="string"||ie.length===0)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof re!="boolean")throw new l('"allowMissing" argument must be a boolean');if(D(/^%?[^%]*%?$/,ie)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ae=Q(ie),ce=ae.length>0?ae[0]:"",Se=ne("%"+ce+"%",re),we=Se.name,xe=Se.value,Ie=!1,De=Se.alias;De&&(ce=De[0],ee(ae,q([0,1],De)));for(var nt=1,$e=!0;nt=ae.length){var at=m(xe,Re);$e=!!at,$e&&"get"in at&&!("originalValue"in at.get)?xe=at.get:xe=xe[Re]}else $e=U(xe,Re),xe=xe[Re];$e&&!Ie&&(E[we]=xe)}}return xe},"GetIntrinsic")}),ed=j((r,e)=>{"use strict";var t=Yi(),i=t("%Object.defineProperty%",!0)||!1;if(i)try{i({},"a",{value:1})}catch{i=!1}e.exports=i}),eS=j((r,e)=>{"use strict";var t=Yi(),i=t("%Object.getOwnPropertyDescriptor%",!0);if(i)try{i([],"length")}catch{i=null}e.exports=i}),V3=j((r,e)=>{"use strict";var t=ed(),i=Zv(),s=bn(),n=eS();e.exports=x(function(o,a,l){if(!o||typeof o!="object"&&typeof o!="function")throw new s("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new s("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,g=arguments.length>5?arguments[5]:null,m=arguments.length>6?arguments[6]:!1,y=!!n&&n(o,a);if(t)t(o,a,{configurable:g===null&&y?y.configurable:!g,enumerable:u===null&&y?y.enumerable:!u,value:l,writable:c===null&&y?y.writable:!c});else if(m||!u&&!c&&!g)o[a]=l;else throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},"defineDataProperty")}),G3=j((r,e)=>{"use strict";var t=ed(),i=x(function(){return!!t},"hasPropertyDescriptors");i.hasArrayLengthDefineBug=x(function(){if(!t)return null;try{return t([],"length",{value:1}).length!==1}catch{return!0}},"hasArrayLengthDefineBug"),e.exports=i}),Y3=j((r,e)=>{"use strict";var t=Yi(),i=V3(),s=G3()(),n=eS(),o=bn(),a=t("%Math.floor%");e.exports=x(function(l,u){if(typeof l!="function")throw new o("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||a(u)!==u)throw new o("`length` must be a positive 32-bit integer");var c=arguments.length>2&&!!arguments[2],g=!0,m=!0;if("length"in l&&n){var y=n(l,"length");y&&!y.configurable&&(g=!1),y&&!y.writable&&(m=!1)}return(g||m||!c)&&(s?i(l,"length",u,!0,!0):i(l,"length",u)),l},"setFunctionLength")}),X3=j((r,e)=>{"use strict";var t=Zh(),i=Yi(),s=Y3(),n=bn(),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),l=i("%Reflect.apply%",!0)||t.call(a,o),u=ed(),c=i("%Math.max%");e.exports=x(function(m){if(typeof m!="function")throw new n("a function is required");var y=l(t,a,arguments);return s(y,1+c(0,m.length-(arguments.length-1)),!0)},"callBind");var g=x(function(){return l(t,o,arguments)},"applyBind");u?u(e.exports,"apply",{value:g}):e.exports.apply=g}),K3=j((r,e)=>{"use strict";var t=Yi(),i=X3(),s=i(t("String.prototype.indexOf"));e.exports=x(function(n,o){var a=t(n,!!o);return typeof a=="function"&&s(n,".prototype.")>-1?i(a):a},"callBoundIntrinsic")}),J3=j(()=>{}),Q3=j((r,e)=>{var t=typeof Map=="function"&&Map.prototype,i=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,s=t&&i&&typeof i.get=="function"?i.get:null,n=t&&Map.prototype.forEach,o=typeof Set=="function"&&Set.prototype,a=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=o&&a&&typeof a.get=="function"?a.get:null,u=o&&Set.prototype.forEach,c=typeof WeakMap=="function"&&WeakMap.prototype,g=c?WeakMap.prototype.has:null,m=typeof WeakSet=="function"&&WeakSet.prototype,y=m?WeakSet.prototype.has:null,b=typeof WeakRef=="function"&&WeakRef.prototype,C=b?WeakRef.prototype.deref:null,A=Boolean.prototype.valueOf,T=Object.prototype.toString,R=Function.prototype.toString,P=String.prototype.match,E=String.prototype.slice,k=String.prototype.replace,O=String.prototype.toUpperCase,B=String.prototype.toLowerCase,F=RegExp.prototype.test,U=Array.prototype.concat,q=Array.prototype.join,ee=Array.prototype.slice,te=Math.floor,$=typeof BigInt=="function"?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,G=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Q=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===G||!0)?Symbol.toStringTag:null,ne=Object.prototype.propertyIsEnumerable,ie=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(W){return W.__proto__}:null);function re(W,Y){if(W===1/0||W===-1/0||W!==W||W&&W>-1e3&&W<1e3||F.call(/e/,Y))return Y;var _e=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof W=="number"){var de=W<0?-te(-W):te(W);if(de!==W){var Me=String(de),ge=E.call(Y,Me.length+1);return k.call(Me,_e,"$&_")+"."+k.call(k.call(ge,/([0-9]{3})/g,"$&_"),/_$/,"")}}return k.call(Y,_e,"$&_")}x(re,"addNumericSeparator");var ae=J3(),ce=ae.custom,Se=at(ce)?ce:null;e.exports=x(function W(Y,_e,de,Me){var ge=_e||{};if(Ee(ge,"quoteStyle")&&ge.quoteStyle!=="single"&&ge.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ee(ge,"maxStringLength")&&(typeof ge.maxStringLength=="number"?ge.maxStringLength<0&&ge.maxStringLength!==1/0:ge.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var lt=Ee(ge,"customInspect")?ge.customInspect:!0;if(typeof lt!="boolean"&<!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ee(ge,"indent")&&ge.indent!==null&&ge.indent!==" "&&!(parseInt(ge.indent,10)===ge.indent&&ge.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ee(ge,"numericSeparator")&&typeof ge.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Wt=ge.numericSeparator;if(typeof Y>"u")return"undefined";if(Y===null)return"null";if(typeof Y=="boolean")return Y?"true":"false";if(typeof Y=="string")return ns(Y,ge);if(typeof Y=="number"){if(Y===0)return 1/0/Y>0?"0":"-0";var gt=String(Y);return Wt?re(Y,gt):gt}if(typeof Y=="bigint"){var qt=String(Y)+"n";return Wt?re(Y,qt):qt}var as=typeof ge.depth>"u"?5:ge.depth;if(typeof de>"u"&&(de=0),de>=as&&as>0&&typeof Y=="object")return Ie(Y)?"[Array]":"[Object]";var mt=zn(ge,de);if(typeof Me>"u")Me=[];else if(yr(Me,Y)>=0)return"[Circular]";function vt(ue,Te,et){if(Te&&(Me=ee.call(Me),Me.push(Te)),et){var Ve={depth:ge.depth};return Ee(ge,"quoteStyle")&&(Ve.quoteStyle=ge.quoteStyle),W(ue,Ve,de+1,Me)}return W(ue,ge,de+1,Me)}if(x(vt,"inspect"),typeof Y=="function"&&!nt(Y)){var jn=Zt(Y),$t=Wr(Y,vt);return"[Function"+(jn?": "+jn:" (anonymous)")+"]"+($t.length>0?" { "+q.call($t,", ")+" }":"")}if(at(Y)){var Un=G?k.call(String(Y),/^(Symbol\(.*\))_[^)]*$/,"$1"):N.call(Y);return typeof Y=="object"&&!G?xr(Un):Un}if(Bn(Y)){for(var er="<"+B.call(String(Y.nodeName)),ls=Y.attributes||[],hi=0;hi",er}if(Ie(Y)){if(Y.length===0)return"[]";var us=Wr(Y,vt);return mt&&!Nn(us)?"["+ci(us,mt)+"]":"[ "+q.call(us,", ")+" ]"}if($e(Y)){var di=Wr(Y,vt);return!("cause"in Error.prototype)&&"cause"in Y&&!ne.call(Y,"cause")?"{ ["+String(Y)+"] "+q.call(U.call("[cause]: "+vt(Y.cause),di),", ")+" }":di.length===0?"["+String(Y)+"]":"{ ["+String(Y)+"] "+q.call(di,", ")+" }"}if(typeof Y=="object"&<){if(Se&&typeof Y[Se]=="function"&&ae)return ae(Y,{depth:as-de});if(lt!=="symbol"&&typeof Y.inspect=="function")return Y.inspect()}if(li(Y)){var pi=[];return n&&n.call(Y,function(ue,Te){pi.push(vt(Te,Y,!0)+" => "+vt(ue,Y))}),os("Map",s.call(Y),pi,mt)}if(Dn(Y)){var Hn=[];return u&&u.call(Y,function(ue){Hn.push(vt(ue,Y))}),os("Set",l.call(Y),Hn,mt)}if(ss(Y))return ui("WeakMap");if(Fn(Y))return ui("WeakSet");if(Ln(Y))return ui("WeakRef");if(ot(Y))return xr(vt(Number(Y)));if(jt(Y))return xr(vt($.call(Y)));if(je(Y))return xr(A.call(Y));if(Re(Y))return xr(vt(String(Y)));if(typeof window<"u"&&Y===window)return"{ [object Window] }";if(Y===window)return"{ [object globalThis] }";if(!De(Y)&&!nt(Y)){var _=Wr(Y,vt),I=ie?ie(Y)===Object.prototype:Y instanceof Object||Y.constructor===Object,L=Y instanceof Object?"":"null prototype",V=!I&&Q&&Object(Y)===Y&&Q in Y?E.call(ze(Y),8,-1):L?"Object":"",Z=I||typeof Y.constructor!="function"?"":Y.constructor.name?Y.constructor.name+" ":"",oe=Z+(V||L?"["+q.call(U.call([],V||[],L||[]),": ")+"] ":"");return _.length===0?oe+"{}":mt?oe+"{"+ci(_,mt)+"}":oe+"{ "+q.call(_,", ")+" }"}return String(Y)},"inspect_");function we(W,Y,_e){var de=(_e.quoteStyle||Y)==="double"?'"':"'";return de+W+de}x(we,"wrapQuotes");function xe(W){return k.call(String(W),/"/g,""")}x(xe,"quote");function Ie(W){return ze(W)==="[object Array]"&&(!Q||!(typeof W=="object"&&Q in W))}x(Ie,"isArray");function De(W){return ze(W)==="[object Date]"&&(!Q||!(typeof W=="object"&&Q in W))}x(De,"isDate");function nt(W){return ze(W)==="[object RegExp]"&&(!Q||!(typeof W=="object"&&Q in W))}x(nt,"isRegExp");function $e(W){return ze(W)==="[object Error]"&&(!Q||!(typeof W=="object"&&Q in W))}x($e,"isError");function Re(W){return ze(W)==="[object String]"&&(!Q||!(typeof W=="object"&&Q in W))}x(Re,"isString");function ot(W){return ze(W)==="[object Number]"&&(!Q||!(typeof W=="object"&&Q in W))}x(ot,"isNumber");function je(W){return ze(W)==="[object Boolean]"&&(!Q||!(typeof W=="object"&&Q in W))}x(je,"isBoolean");function at(W){if(G)return W&&typeof W=="object"&&W instanceof Symbol;if(typeof W=="symbol")return!0;if(!W||typeof W!="object"||!N)return!1;try{return N.call(W),!0}catch{}return!1}x(at,"isSymbol");function jt(W){if(!W||typeof W!="object"||!$)return!1;try{return $.call(W),!0}catch{}return!1}x(jt,"isBigInt");var Ze=Object.prototype.hasOwnProperty||function(W){return W in this};function Ee(W,Y){return Ze.call(W,Y)}x(Ee,"has");function ze(W){return T.call(W)}x(ze,"toStr");function Zt(W){if(W.name)return W.name;var Y=P.call(R.call(W),/^function\s*([\w$]+)/);return Y?Y[1]:null}x(Zt,"nameOf");function yr(W,Y){if(W.indexOf)return W.indexOf(Y);for(var _e=0,de=W.length;_eY.maxStringLength){var _e=W.length-Y.maxStringLength,de="... "+_e+" more character"+(_e>1?"s":"");return ns(E.call(W,0,Y.maxStringLength),Y)+de}var Me=k.call(k.call(W,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Mn);return we(Me,"single",Y)}x(ns,"inspectString");function Mn(W){var Y=W.charCodeAt(0),_e={8:"b",9:"t",10:"n",12:"f",13:"r"}[Y];return _e?"\\"+_e:"\\x"+(Y<16?"0":"")+O.call(Y.toString(16))}x(Mn,"lowbyte");function xr(W){return"Object("+W+")"}x(xr,"markBoxed");function ui(W){return W+" { ? }"}x(ui,"weakCollectionOf");function os(W,Y,_e,de){var Me=de?ci(_e,de):q.call(_e,", ");return W+" ("+Y+") {"+Me+"}"}x(os,"collectionOf");function Nn(W){for(var Y=0;Y=0)return!1;return!0}x(Nn,"singleLineValues");function zn(W,Y){var _e;if(W.indent===" ")_e=" ";else if(typeof W.indent=="number"&&W.indent>0)_e=q.call(Array(W.indent+1)," ");else return null;return{base:_e,prev:q.call(Array(Y+1),_e)}}x(zn,"getIndent");function ci(W,Y){if(W.length===0)return"";var _e=` +`+Y.prev+Y.base;return _e+q.call(W,","+_e)+` +`+Y.prev}x(ci,"indentedJoin");function Wr(W,Y){var _e=Ie(W),de=[];if(_e){de.length=W.length;for(var Me=0;Me{"use strict";var t=Yi(),i=K3(),s=Q3(),n=bn(),o=t("%WeakMap%",!0),a=t("%Map%",!0),l=i("WeakMap.prototype.get",!0),u=i("WeakMap.prototype.set",!0),c=i("WeakMap.prototype.has",!0),g=i("Map.prototype.get",!0),m=i("Map.prototype.set",!0),y=i("Map.prototype.has",!0),b=x(function(R,P){for(var E=R,k;(k=E.next)!==null;E=k)if(k.key===P)return E.next=k.next,k.next=R.next,R.next=k,k},"listGetNode"),C=x(function(R,P){var E=b(R,P);return E&&E.value},"listGet"),A=x(function(R,P,E){var k=b(R,P);k?k.value=E:R.next={key:P,next:R.next,value:E}},"listSet"),T=x(function(R,P){return!!b(R,P)},"listHas");e.exports=x(function(){var R,P,E,k={assert:x(function(O){if(!k.has(O))throw new n("Side channel does not contain "+s(O))},"assert"),get:x(function(O){if(o&&O&&(typeof O=="object"||typeof O=="function")){if(R)return l(R,O)}else if(a){if(P)return g(P,O)}else if(E)return C(E,O)},"get"),has:x(function(O){if(o&&O&&(typeof O=="object"||typeof O=="function")){if(R)return c(R,O)}else if(a){if(P)return y(P,O)}else if(E)return T(E,O);return!1},"has"),set:x(function(O,B){o&&O&&(typeof O=="object"||typeof O=="function")?(R||(R=new o),u(R,O,B)):a?(P||(P=new a),m(P,O,B)):(E||(E={key:{},next:null}),A(E,O,B))},"set")};return k},"getSideChannel")}),td=j((r,e)=>{"use strict";var t=String.prototype.replace,i=/%20/g,s={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:s.RFC3986,formatters:{RFC1738:x(function(n){return t.call(n,i,"+")},"RFC1738"),RFC3986:x(function(n){return String(n)},"RFC3986")},RFC1738:s.RFC1738,RFC3986:s.RFC3986}}),tS=j((r,e)=>{"use strict";var t=td(),i=Object.prototype.hasOwnProperty,s=Array.isArray,n=function(){for(var R=[],P=0;P<256;++P)R.push("%"+((P<16?"0":"")+P.toString(16)).toUpperCase());return R}(),o=x(function(R){for(;R.length>1;){var P=R.pop(),E=P.obj[P.prop];if(s(E)){for(var k=[],O=0;O=g?B.slice(U,U+g):B,ee=[],te=0;te=48&&$<=57||$>=65&&$<=90||$>=97&&$<=122||O===t.RFC1738&&($===40||$===41)){ee[ee.length]=q.charAt(te);continue}if($<128){ee[ee.length]=n[$];continue}if($<2048){ee[ee.length]=n[192|$>>6]+n[128|$&63];continue}if($<55296||$>=57344){ee[ee.length]=n[224|$>>12]+n[128|$>>6&63]+n[128|$&63];continue}te+=1,$=65536+(($&1023)<<10|q.charCodeAt(te)&1023),ee[ee.length]=n[240|$>>18]+n[128|$>>12&63]+n[128|$>>6&63]+n[128|$&63]}F+=ee.join("")}return F},"encode"),y=x(function(R){for(var P=[{obj:{o:R},prop:"o"}],E=[],k=0;k{"use strict";var t=Z3(),i=tS(),s=td(),n=Object.prototype.hasOwnProperty,o={brackets:x(function(T){return T+"[]"},"brackets"),comma:"comma",indices:x(function(T,R){return T+"["+R+"]"},"indices"),repeat:x(function(T){return T},"repeat")},a=Array.isArray,l=Array.prototype.push,u=x(function(T,R){l.apply(T,a(R)?R:[R])},"pushToArray"),c=Date.prototype.toISOString,g=s.default,m={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,format:g,formatter:s.formatters[g],indices:!1,serializeDate:x(function(T){return c.call(T)},"serializeDate"),skipNulls:!1,strictNullHandling:!1},y=x(function(T){return typeof T=="string"||typeof T=="number"||typeof T=="boolean"||typeof T=="symbol"||typeof T=="bigint"},"isNonNullishPrimitive"),b={},C=x(function T(R,P,E,k,O,B,F,U,q,ee,te,$,D,N,G,Q,ne,ie){for(var re=R,ae=ie,ce=0,Se=!1;(ae=ae.get(b))!==void 0&&!Se;){var we=ae.get(R);if(ce+=1,typeof we<"u"){if(we===ce)throw new RangeError("Cyclic object value");Se=!0}typeof ae.get(b)>"u"&&(ce=0)}if(typeof ee=="function"?re=ee(P,re):re instanceof Date?re=D(re):E==="comma"&&a(re)&&(re=i.maybeMap(re,function(ze){return ze instanceof Date?D(ze):ze})),re===null){if(B)return q&&!Q?q(P,m.encoder,ne,"key",N):P;re=""}if(y(re)||i.isBuffer(re)){if(q){var xe=Q?P:q(P,m.encoder,ne,"key",N);return[G(xe)+"="+G(q(re,m.encoder,ne,"value",N))]}return[G(P)+"="+G(String(re))]}var Ie=[];if(typeof re>"u")return Ie;var De;if(E==="comma"&&a(re))Q&&q&&(re=i.maybeMap(re,q)),De=[{value:re.length>0?re.join(",")||null:void 0}];else if(a(ee))De=ee;else{var nt=Object.keys(re);De=te?nt.sort(te):nt}var $e=U?P.replace(/\./g,"%2E"):P,Re=k&&a(re)&&re.length===1?$e+"[]":$e;if(O&&a(re)&&re.length===0)return Re+"[]";for(var ot=0;ot"u"?T.encodeDotInKeys===!0?!0:m.allowDots:!!T.allowDots;return{addQueryPrefix:typeof T.addQueryPrefix=="boolean"?T.addQueryPrefix:m.addQueryPrefix,allowDots:B,allowEmptyArrays:typeof T.allowEmptyArrays=="boolean"?!!T.allowEmptyArrays:m.allowEmptyArrays,arrayFormat:O,charset:R,charsetSentinel:typeof T.charsetSentinel=="boolean"?T.charsetSentinel:m.charsetSentinel,commaRoundTrip:T.commaRoundTrip,delimiter:typeof T.delimiter>"u"?m.delimiter:T.delimiter,encode:typeof T.encode=="boolean"?T.encode:m.encode,encodeDotInKeys:typeof T.encodeDotInKeys=="boolean"?T.encodeDotInKeys:m.encodeDotInKeys,encoder:typeof T.encoder=="function"?T.encoder:m.encoder,encodeValuesOnly:typeof T.encodeValuesOnly=="boolean"?T.encodeValuesOnly:m.encodeValuesOnly,filter:k,format:P,formatter:E,serializeDate:typeof T.serializeDate=="function"?T.serializeDate:m.serializeDate,skipNulls:typeof T.skipNulls=="boolean"?T.skipNulls:m.skipNulls,sort:typeof T.sort=="function"?T.sort:null,strictNullHandling:typeof T.strictNullHandling=="boolean"?T.strictNullHandling:m.strictNullHandling}},"normalizeStringifyOptions");e.exports=function(T,R){var P=T,E=A(R),k,O;typeof E.filter=="function"?(O=E.filter,P=O("",P)):a(E.filter)&&(O=E.filter,k=O);var B=[];if(typeof P!="object"||P===null)return"";var F=o[E.arrayFormat],U=F==="comma"&&E.commaRoundTrip;k||(k=Object.keys(P)),E.sort&&k.sort(E.sort);for(var q=t(),ee=0;ee0?D+$:""}}),tj=j((r,e)=>{"use strict";var t=tS(),i=Object.prototype.hasOwnProperty,s=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:t.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},o=x(function(b){return b.replace(/&#(\d+);/g,function(C,A){return String.fromCharCode(parseInt(A,10))})},"interpretNumericEntities"),a=x(function(b,C){return b&&typeof b=="string"&&C.comma&&b.indexOf(",")>-1?b.split(","):b},"parseArrayValue"),l="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",c=x(function(b,C){var A={__proto__:null},T=C.ignoreQueryPrefix?b.replace(/^\?/,""):b;T=T.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var R=C.parameterLimit===1/0?void 0:C.parameterLimit,P=T.split(C.delimiter,R),E=-1,k,O=C.charset;if(C.charsetSentinel)for(k=0;k-1&&(ee=s(ee)?[ee]:ee);var te=i.call(A,q);te&&C.duplicates==="combine"?A[q]=t.combine(A[q],ee):(!te||C.duplicates==="last")&&(A[q]=ee)}return A},"parseQueryStringValues"),g=x(function(b,C,A,T){for(var R=T?C:a(C,A),P=b.length-1;P>=0;--P){var E,k=b[P];if(k==="[]"&&A.parseArrays)E=A.allowEmptyArrays&&(R===""||A.strictNullHandling&&R===null)?[]:[].concat(R);else{E=A.plainObjects?Object.create(null):{};var O=k.charAt(0)==="["&&k.charAt(k.length-1)==="]"?k.slice(1,-1):k,B=A.decodeDotInKeys?O.replace(/%2E/g,"."):O,F=parseInt(B,10);!A.parseArrays&&B===""?E={0:R}:!isNaN(F)&&k!==B&&String(F)===B&&F>=0&&A.parseArrays&&F<=A.arrayLimit?(E=[],E[F]=R):B!=="__proto__"&&(E[B]=R)}R=E}return R},"parseObject"),m=x(function(b,C,A,T){if(b){var R=A.allowDots?b.replace(/\.([^.[]+)/g,"[$1]"):b,P=/(\[[^[\]]*])/,E=/(\[[^[\]]*])/g,k=A.depth>0&&P.exec(R),O=k?R.slice(0,k.index):R,B=[];if(O){if(!A.plainObjects&&i.call(Object.prototype,O)&&!A.allowPrototypes)return;B.push(O)}for(var F=0;A.depth>0&&(k=E.exec(R))!==null&&F"u"?n.charset:b.charset,A=typeof b.duplicates>"u"?n.duplicates:b.duplicates;if(A!=="combine"&&A!=="first"&&A!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var T=typeof b.allowDots>"u"?b.decodeDotInKeys===!0?!0:n.allowDots:!!b.allowDots;return{allowDots:T,allowEmptyArrays:typeof b.allowEmptyArrays=="boolean"?!!b.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof b.allowPrototypes=="boolean"?b.allowPrototypes:n.allowPrototypes,allowSparse:typeof b.allowSparse=="boolean"?b.allowSparse:n.allowSparse,arrayLimit:typeof b.arrayLimit=="number"?b.arrayLimit:n.arrayLimit,charset:C,charsetSentinel:typeof b.charsetSentinel=="boolean"?b.charsetSentinel:n.charsetSentinel,comma:typeof b.comma=="boolean"?b.comma:n.comma,decodeDotInKeys:typeof b.decodeDotInKeys=="boolean"?b.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof b.decoder=="function"?b.decoder:n.decoder,delimiter:typeof b.delimiter=="string"||t.isRegExp(b.delimiter)?b.delimiter:n.delimiter,depth:typeof b.depth=="number"||b.depth===!1?+b.depth:n.depth,duplicates:A,ignoreQueryPrefix:b.ignoreQueryPrefix===!0,interpretNumericEntities:typeof b.interpretNumericEntities=="boolean"?b.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof b.parameterLimit=="number"?b.parameterLimit:n.parameterLimit,parseArrays:b.parseArrays!==!1,plainObjects:typeof b.plainObjects=="boolean"?b.plainObjects:n.plainObjects,strictNullHandling:typeof b.strictNullHandling=="boolean"?b.strictNullHandling:n.strictNullHandling}},"normalizeParseOptions");e.exports=function(b,C){var A=y(C);if(b===""||b===null||typeof b>"u")return A.plainObjects?Object.create(null):{};for(var T=typeof b=="string"?c(b,A):b,R=A.plainObjects?Object.create(null):{},P=Object.keys(T),E=0;E{"use strict";var t=ej(),i=tj(),s=td();e.exports={formats:s,parse:i,stringify:t}}),rS=j((r,e)=>{e.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` +`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}}),rj=j((r,e)=>{e.exports={Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",AElig:"\xC6",aelig:"\xE6",Agrave:"\xC0",agrave:"\xE0",amp:"&",AMP:"&",Aring:"\xC5",aring:"\xE5",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",brvbar:"\xA6",Ccedil:"\xC7",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",COPY:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Egrave:"\xC8",egrave:"\xE8",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",GT:">",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",iexcl:"\xA1",Igrave:"\xCC",igrave:"\xEC",iquest:"\xBF",Iuml:"\xCF",iuml:"\xEF",laquo:"\xAB",lt:"<",LT:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",Ntilde:"\xD1",ntilde:"\xF1",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Ograve:"\xD2",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",Oslash:"\xD8",oslash:"\xF8",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',QUOT:'"',raquo:"\xBB",reg:"\xAE",REG:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",THORN:"\xDE",thorn:"\xFE",times:"\xD7",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Ugrave:"\xD9",ugrave:"\xF9",uml:"\xA8",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}}),iS=j((r,e)=>{e.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}),ij=j((r,e)=>{e.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}),sj=j(r=>{"use strict";var e=r&&r.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(r,"__esModule",{value:!0});var t=e(ij()),i=String.fromCodePoint||function(n){var o="";return n>65535&&(n-=65536,o+=String.fromCharCode(n>>>10&1023|55296),n=56320|n&1023),o+=String.fromCharCode(n),o};function s(n){return n>=55296&&n<=57343||n>1114111?"\uFFFD":(n in t.default&&(n=t.default[n]),i(n))}x(s,"decodeCodePoint"),r.default=s}),hv=j(r=>{"use strict";var e=r&&r.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(r,"__esModule",{value:!0}),r.decodeHTML=r.decodeHTMLStrict=r.decodeXML=void 0;var t=e(rS()),i=e(rj()),s=e(iS()),n=e(sj()),o=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;r.decodeXML=a(s.default),r.decodeHTMLStrict=a(t.default);function a(c){var g=u(c);return function(m){return String(m).replace(o,g)}}x(a,"getStrictDecoder");var l=x(function(c,g){return c{"use strict";var e=r&&r.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(r,"__esModule",{value:!0}),r.escapeUTF8=r.escape=r.encodeNonAsciiHTML=r.encodeHTML=r.encodeXML=void 0;var t=e(iS()),i=l(t.default),s=u(i);r.encodeXML=T(i);var n=e(rS()),o=l(n.default),a=u(o);r.encodeHTML=y(o,a),r.encodeNonAsciiHTML=T(o);function l(R){return Object.keys(R).sort().reduce(function(P,E){return P[R[E]]="&"+E+";",P},{})}x(l,"getInverseObj");function u(R){for(var P=[],E=[],k=0,O=Object.keys(R);k1?g(R):R.charCodeAt(0)).toString(16).toUpperCase()+";"}x(m,"singleCharReplacer");function y(R,P){return function(E){return E.replace(P,function(k){return R[k]}).replace(c,m)}}x(y,"getInverse");var b=new RegExp(s.source+"|"+c.source,"g");function C(R){return R.replace(b,m)}x(C,"escape"),r.escape=C;function A(R){return R.replace(s,m)}x(A,"escapeUTF8"),r.escapeUTF8=A;function T(R){return function(P){return P.replace(b,function(E){return R[E]||m(E)})}}x(T,"getASCIIEncoder")}),nj=j(r=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.decodeXMLStrict=r.decodeHTML5Strict=r.decodeHTML4Strict=r.decodeHTML5=r.decodeHTML4=r.decodeHTMLStrict=r.decodeHTML=r.decodeXML=r.encodeHTML5=r.encodeHTML4=r.escapeUTF8=r.escape=r.encodeNonAsciiHTML=r.encodeHTML=r.encodeXML=r.encode=r.decodeStrict=r.decode=void 0;var e=hv(),t=dv();function i(l,u){return(!u||u<=0?e.decodeXML:e.decodeHTML)(l)}x(i,"decode"),r.decode=i;function s(l,u){return(!u||u<=0?e.decodeXML:e.decodeHTMLStrict)(l)}x(s,"decodeStrict"),r.decodeStrict=s;function n(l,u){return(!u||u<=0?t.encodeXML:t.encodeHTML)(l)}x(n,"encode"),r.encode=n;var o=dv();Object.defineProperty(r,"encodeXML",{enumerable:!0,get:x(function(){return o.encodeXML},"get")}),Object.defineProperty(r,"encodeHTML",{enumerable:!0,get:x(function(){return o.encodeHTML},"get")}),Object.defineProperty(r,"encodeNonAsciiHTML",{enumerable:!0,get:x(function(){return o.encodeNonAsciiHTML},"get")}),Object.defineProperty(r,"escape",{enumerable:!0,get:x(function(){return o.escape},"get")}),Object.defineProperty(r,"escapeUTF8",{enumerable:!0,get:x(function(){return o.escapeUTF8},"get")}),Object.defineProperty(r,"encodeHTML4",{enumerable:!0,get:x(function(){return o.encodeHTML},"get")}),Object.defineProperty(r,"encodeHTML5",{enumerable:!0,get:x(function(){return o.encodeHTML},"get")});var a=hv();Object.defineProperty(r,"decodeXML",{enumerable:!0,get:x(function(){return a.decodeXML},"get")}),Object.defineProperty(r,"decodeHTML",{enumerable:!0,get:x(function(){return a.decodeHTML},"get")}),Object.defineProperty(r,"decodeHTMLStrict",{enumerable:!0,get:x(function(){return a.decodeHTMLStrict},"get")}),Object.defineProperty(r,"decodeHTML4",{enumerable:!0,get:x(function(){return a.decodeHTML},"get")}),Object.defineProperty(r,"decodeHTML5",{enumerable:!0,get:x(function(){return a.decodeHTML},"get")}),Object.defineProperty(r,"decodeHTML4Strict",{enumerable:!0,get:x(function(){return a.decodeHTMLStrict},"get")}),Object.defineProperty(r,"decodeHTML5Strict",{enumerable:!0,get:x(function(){return a.decodeHTMLStrict},"get")}),Object.defineProperty(r,"decodeXMLStrict",{enumerable:!0,get:x(function(){return a.decodeXML},"get")})}),oj=j((r,e)=>{"use strict";function t(D,N){if(!(D instanceof N))throw new TypeError("Cannot call a class as a function")}x(t,"_classCallCheck");function i(D,N){for(var G=0;G=D.length?{done:!0}:{done:!1,value:D[Q++]}},"n"),e:x(function(ce){throw ce},"e"),f:ne}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ie=!0,re=!1,ae;return{s:x(function(){G=G.call(D)},"s"),n:x(function(){var ce=G.next();return ie=ce.done,ce},"n"),e:x(function(ce){re=!0,ae=ce},"e"),f:x(function(){try{!ie&&G.return!=null&&G.return()}finally{if(re)throw ae}},"f")}}x(n,"_createForOfIteratorHelper");function o(D,N){if(D){if(typeof D=="string")return a(D,N);var G=Object.prototype.toString.call(D).slice(8,-1);if(G==="Object"&&D.constructor&&(G=D.constructor.name),G==="Map"||G==="Set")return Array.from(D);if(G==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return a(D,N)}}x(o,"_unsupportedIterableToArray");function a(D,N){(N==null||N>D.length)&&(N=D.length);for(var G=0,Q=new Array(N);G0?D*40+55:0,re=N>0?N*40+55:0,ae=G>0?G*40+55:0;Q[ne]=y([ie,re,ae])}x(g,"setStyleColor");function m(D){for(var N=D.toString(16);N.length<2;)N="0"+N;return N}x(m,"toHexString");function y(D){var N=[],G=n(D),Q;try{for(G.s();!(Q=G.n()).done;){var ne=Q.value;N.push(m(ne))}}catch(ie){G.e(ie)}finally{G.f()}return"#"+N.join("")}x(y,"toColorHexString");function b(D,N,G,Q){var ne;return N==="text"?ne=k(G,Q):N==="display"?ne=A(D,G,Q):N==="xterm256Foreground"?ne=F(D,Q.colors[G]):N==="xterm256Background"?ne=U(D,Q.colors[G]):N==="rgb"&&(ne=C(D,G)),ne}x(b,"generateOutput");function C(D,N){N=N.substring(2).slice(0,-1);var G=+N.substr(0,2),Q=N.substring(5).split(";"),ne=Q.map(function(ie){return("0"+Number(ie).toString(16)).substr(-2)}).join("");return B(D,(G===38?"color:#":"background-color:#")+ne)}x(C,"handleRgb");function A(D,N,G){N=parseInt(N,10);var Q={"-1":x(function(){return"
"},"_"),0:x(function(){return D.length&&T(D)},"_"),1:x(function(){return O(D,"b")},"_"),3:x(function(){return O(D,"i")},"_"),4:x(function(){return O(D,"u")},"_"),8:x(function(){return B(D,"display:none")},"_"),9:x(function(){return O(D,"strike")},"_"),22:x(function(){return B(D,"font-weight:normal;text-decoration:none;font-style:normal")},"_"),23:x(function(){return q(D,"i")},"_"),24:x(function(){return q(D,"u")},"_"),39:x(function(){return F(D,G.fg)},"_"),49:x(function(){return U(D,G.bg)},"_"),53:x(function(){return B(D,"text-decoration:overline")},"_")},ne;return Q[N]?ne=Q[N]():4"}).join("")}x(T,"resetStyles");function R(D,N){for(var G=[],Q=D;Q<=N;Q++)G.push(Q);return G}x(R,"range");function P(D){return function(N){return(D===null||N.category!==D)&&D!=="all"}}x(P,"notCategory");function E(D){D=parseInt(D,10);var N=null;return D===0?N="all":D===1?N="bold":2")}x(O,"pushTag");function B(D,N){return O(D,"span",N)}x(B,"pushStyle");function F(D,N){return O(D,"span","color:"+N)}x(F,"pushForegroundColor");function U(D,N){return O(D,"span","background-color:"+N)}x(U,"pushBackgroundColor");function q(D,N){var G;if(D.slice(-1)[0]===N&&(G=D.pop()),G)return""}x(q,"closeTag");function ee(D,N,G){var Q=!1,ne=3;function ie(){return""}x(ie,"remove");function re(Ze,Ee){return G("xterm256Foreground",Ee),""}x(re,"removeXterm256Foreground");function ae(Ze,Ee){return G("xterm256Background",Ee),""}x(ae,"removeXterm256Background");function ce(Ze){return N.newline?G("display",-1):G("text",Ze),""}x(ce,"newline");function Se(Ze,Ee){Q=!0,Ee.trim().length===0&&(Ee="0"),Ee=Ee.trimRight(";").split(";");var ze=n(Ee),Zt;try{for(ze.s();!(Zt=ze.n()).done;){var yr=Zt.value;G("display",yr)}}catch(li){ze.e(li)}finally{ze.f()}return""}x(Se,"ansiMess");function we(Ze){return G("text",Ze),""}x(we,"realText");function xe(Ze){return G("rgb",Ze),""}x(xe,"rgb");var Ie=[{pattern:/^\x08+/,sub:ie},{pattern:/^\x1b\[[012]?K/,sub:ie},{pattern:/^\x1b\[\(B/,sub:ie},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:xe},{pattern:/^\x1b\[38;5;(\d+)m/,sub:re},{pattern:/^\x1b\[48;5;(\d+)m/,sub:ae},{pattern:/^\n/,sub:ce},{pattern:/^\r+\n/,sub:ce},{pattern:/^\r/,sub:ce},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Se},{pattern:/^\x1b\[\d?J/,sub:ie},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:ie},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:ie},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:we}];function De(Ze,Ee){Ee>ne&&Q||(Q=!1,D=D.replace(Ze.pattern,Ze.sub))}x(De,"process");var nt=[],$e=D,Re=$e.length;e:for(;Re>0;){for(var ot=0,je=0,at=Ie.length;je{let r;return typeof window<"u"?r=window:typeof globalThis<"u"?r=globalThis:typeof window<"u"?r=window:typeof self<"u"?r=self:r={},r})();function sS(){let r={setHandler:x(()=>{},"setHandler"),send:x(()=>{},"send")};return new y0({transport:r})}x(sS,"mockChannel");var nS=class{constructor(){this.getChannel=x(()=>{if(!this.channel){let e=sS();return this.setChannel(e),e}return this.channel},"getChannel"),this.ready=x(()=>this.promise,"ready"),this.hasChannel=x(()=>!!this.channel,"hasChannel"),this.setChannel=x(e=>{this.channel=e,this.resolve()},"setChannel"),this.promise=new Promise(e=>{this.resolve=()=>e(this.getChannel())})}};x(nS,"AddonStore");var aj=nS,bh="__STORYBOOK_ADDONS_PREVIEW";function oS(){return it[bh]||(it[bh]=new aj),it[bh]}x(oS,"getAddonsStore");var ri=oS(),aS=class{constructor(){this.hookListsMap=void 0,this.mountedDecorators=void 0,this.prevMountedDecorators=void 0,this.currentHooks=void 0,this.nextHookIndex=void 0,this.currentPhase=void 0,this.currentEffects=void 0,this.prevEffects=void 0,this.currentDecoratorName=void 0,this.hasUpdates=void 0,this.currentContext=void 0,this.renderListener=x(e=>{e===this.currentContext?.id&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},"renderListener"),this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase="NONE",this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach(e=>{e.destroy&&e.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let e=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,e}triggerEffects(){this.prevEffects.forEach(e=>{!this.currentEffects.includes(e)&&e.destroy&&e.destroy()}),this.currentEffects.forEach(e=>{this.prevEffects.includes(e)||(e.destroy=e.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),ri.getChannel().on(hn,this.renderListener)}removeRenderListeners(){ri.getChannel().removeListener(hn,this.renderListener)}};x(aS,"HooksContext");var lS=aS;function Eh(r){let e=x((...t)=>{let{hooks:i}=typeof t[0]=="function"?t[1]:t[0],s=i.currentPhase,n=i.currentHooks,o=i.nextHookIndex,a=i.currentDecoratorName;i.currentDecoratorName=r.name,i.prevMountedDecorators.has(r)?(i.currentPhase="UPDATE",i.currentHooks=i.hookListsMap.get(r)||[]):(i.currentPhase="MOUNT",i.currentHooks=[],i.hookListsMap.set(r,i.currentHooks),i.prevMountedDecorators.add(r)),i.nextHookIndex=0;let l=it.STORYBOOK_HOOKS_CONTEXT;it.STORYBOOK_HOOKS_CONTEXT=i;let u=r(...t);if(it.STORYBOOK_HOOKS_CONTEXT=l,i.currentPhase==="UPDATE"&&i.getNextHook()!=null)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return i.currentPhase=s,i.currentHooks=n,i.nextHookIndex=o,i.currentDecoratorName=a,u},"hookified");return e.originalFn=r,e}x(Eh,"hookify");var vh=0,lj=25,uj=x(r=>(e,t)=>{let i=r(Eh(e),t.map(s=>Eh(s)));return s=>{let{hooks:n}=s;n.prevMountedDecorators??=new Set,n.mountedDecorators=new Set([e,...t]),n.currentContext=s,n.hasUpdates=!1;let o=i(s);for(vh=1;n.hasUpdates;)if(n.hasUpdates=!1,n.currentEffects=[],o=i(s),vh+=1,vh>lj)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return n.addRenderListeners(),o}},"applyHooks"),cj=x((r,e)=>r.length===e.length&&r.every((t,i)=>t===e[i]),"areDepsEqual"),id=x(()=>new Error("Storybook preview hooks can only be called inside decorators and story functions."),"invalidHooksError");function sd(){return it.STORYBOOK_HOOKS_CONTEXT||null}x(sd,"getHooksContextOrNull");function Va(){let r=sd();if(r==null)throw id();return r}x(Va,"getHooksContextOrThrow");function uS(r,e,t){let i=Va();if(i.currentPhase==="MOUNT"){t!=null&&!Array.isArray(t)&&Pe.warn(`${r} received a final argument that is not an array (instead, received ${t}). When specified, the final argument must be an array.`);let s={name:r,deps:t};return i.currentHooks.push(s),e(s),s}if(i.currentPhase==="UPDATE"){let s=i.getNextHook();if(s==null)throw new Error("Rendered more hooks than during the previous render.");return s.name!==r&&Pe.warn(`Storybook has detected a change in the order of Hooks${i.currentDecoratorName?` called by ${i.currentDecoratorName}`:""}. This will lead to bugs and errors if not fixed.`),t!=null&&s.deps==null&&Pe.warn(`${r} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),t!=null&&s.deps!=null&&t.length!==s.deps.length&&Pe.warn(`The final argument passed to ${r} changed size between renders. The order and size of this array must remain constant. +Previous: ${s.deps} +Incoming: ${t}`),(t==null||s.deps==null||!cj(t,s.deps))&&(e(s),s.deps=t),s}throw id()}x(uS,"useHook");function vn(r,e,t){let{memoizedState:i}=uS(r,s=>{s.memoizedState=e()},t);return i}x(vn,"useMemoLike");function hj(r,e){return vn("useMemo",r,e)}x(hj,"useMemo");function gn(r,e){return vn("useCallback",()=>r,e)}x(gn,"useCallback");function nd(r,e){return vn(r,()=>({current:e}),[])}x(nd,"useRefLike");function dj(r){return nd("useRef",r)}x(dj,"useRef");function cS(){let r=sd();if(r!=null&&r.currentPhase!=="NONE")r.hasUpdates=!0;else try{ri.getChannel().emit(Ra)}catch{Pe.warn("State updates of Storybook preview hooks work only in browser")}}x(cS,"triggerUpdate");function od(r,e){let t=nd(r,typeof e=="function"?e():e),i=x(s=>{t.current=typeof s=="function"?s(t.current):s,cS()},"setState");return[t.current,i]}x(od,"useStateLike");function pj(r){return od("useState",r)}x(pj,"useState");function fj(r,e,t){let i=t!=null?()=>t(e):e,[s,n]=od("useReducer",i);return[s,x(o=>n(a=>r(a,o)),"dispatch")]}x(fj,"useReducer");function hS(r,e){let t=Va(),i=vn("useEffect",()=>({create:r}),e);t.currentEffects.includes(i)||t.currentEffects.push(i)}x(hS,"useEffect");function gj(r,e=[]){let t=ri.getChannel();return hS(()=>(Object.entries(r).forEach(([i,s])=>t.on(i,s)),()=>{Object.entries(r).forEach(([i,s])=>t.removeListener(i,s))}),[...Object.keys(r),...e]),gn(t.emit.bind(t),[t])}x(gj,"useChannel");function Ga(){let{currentContext:r}=Va();if(r==null)throw id();return r}x(Ga,"useStoryContext");function mj(r,e){let{parameters:t}=Ga();if(r)return t[r]??e}x(mj,"useParameter");function _j(){let r=ri.getChannel(),{id:e,args:t}=Ga(),i=gn(n=>r.emit(dn,{storyId:e,updatedArgs:n}),[r,e]),s=gn(n=>r.emit(cn,{storyId:e,argNames:n}),[r,e]);return[t,i,s]}x(_j,"useArgs");function yj(){let r=ri.getChannel(),{globals:e}=Ga(),t=gn(i=>r.emit(Pa,{globals:i}),[r]);return[e,t]}x(yj,"useGlobals");var Tke=x(({name:r,parameterName:e,wrapper:t,skipIfNoParametersOrOptions:i=!1})=>{let s=x(n=>(o,a)=>{let l=a.parameters&&a.parameters[e];return l&&l.disable||i&&!n&&!l?o(a):t(o,a,{options:n,parameters:l})},"decorator");return(...n)=>typeof n[0]=="function"?s()(...n):(...o)=>{if(o.length>1)return n.length>1?s(n)(...o):s(...n)(...o);throw new Error(`Passing stories directly into ${r}() is not allowed, + instead use addDecorator(${r}) and pass options with the '${e}' parameter`)}},"makeDecorator"),xj=bt($a(),1),pv=bt(R3(),1),Sh=bt(Jv(),1),fv=Object.prototype.hasOwnProperty;function Ih(r,e,t){for(t of r.keys())if(qi(t,e))return t}x(Ih,"find");function qi(r,e){var t,i,s;if(r===e)return!0;if(r&&e&&(t=r.constructor)===e.constructor){if(t===Date)return r.getTime()===e.getTime();if(t===RegExp)return r.toString()===e.toString();if(t===Array){if((i=r.length)===e.length)for(;i--&&qi(r[i],e[i]););return i===-1}if(t===Set){if(r.size!==e.size)return!1;for(i of r)if(s=i,s&&typeof s=="object"&&(s=Ih(e,s),!s)||!e.has(s))return!1;return!0}if(t===Map){if(r.size!==e.size)return!1;for(i of r)if(s=i[0],s&&typeof s=="object"&&(s=Ih(e,s),!s)||!qi(i[1],e.get(s)))return!1;return!0}if(t===ArrayBuffer)r=new Uint8Array(r),e=new Uint8Array(e);else if(t===DataView){if((i=r.byteLength)===e.byteLength)for(;i--&&r.getInt8(i)===e.getInt8(i););return i===-1}if(ArrayBuffer.isView(r)){if((i=r.byteLength)===e.byteLength)for(;i--&&r[i]===e[i];);return i===-1}if(!t||typeof r=="object"){i=0;for(t in r)if(fv.call(r,t)&&++i&&!fv.call(e,t)||!(t in e)||!qi(r[t],e[t]))return!1;return Object.keys(e).length===i}}return r!==r&&e!==e}x(qi,"dequal");var Ba=bt(Qh(),1);function Nt(r){for(var e=[],t=1;t{let t=e.type;if(r==null||!t||e.mapping)return r;switch(t.name){case"string":return String(r);case"enum":return r;case"number":return Number(r);case"boolean":return String(r)==="true";case"array":return!t.value||!Array.isArray(r)?Hi:r.reduce((i,s,n)=>{let o=Rh(s,{type:t.value});return o!==Hi&&(i[n]=o),i},new Array(r.length));case"object":return typeof r=="string"||typeof r=="number"?r:!t.value||typeof r!="object"?Hi:Object.entries(r).reduce((i,[s,n])=>{let o=Rh(n,{type:t.value[s]});return o===Hi?i:Object.assign(i,{[s]:o})},{});default:return Hi}},"map"),bj=x((r,e)=>Object.entries(r).reduce((t,[i,s])=>{if(!e[i])return t;let n=Rh(s,e[i]);return n===Hi?t:Object.assign(t,{[i]:n})},{}),"mapArgsToTypes"),Ph=x((r,e)=>Array.isArray(r)&&Array.isArray(e)?e.reduce((t,i,s)=>(t[s]=Ph(r[s],e[s]),t),[...r]).filter(t=>t!==void 0):!(0,Ba.default)(r)||!(0,Ba.default)(e)?e:Object.keys({...r,...e}).reduce((t,i)=>{if(i in e){let s=Ph(r[i],e[i]);s!==void 0&&(t[i]=s)}else t[i]=r[i];return t},{}),"combineArgs"),vj=x((r,e)=>Object.entries(e).reduce((t,[i,{options:s}])=>{function n(){return i in r&&(t[i]=r[i]),t}if(x(n,"allowArg"),!s)return n();if(!Array.isArray(s))return Br.error(Nt` + Invalid argType: '${i}.options' should be an array. + + More info: https://storybook.js.org/docs/react/api/argtypes + `),n();if(s.some(g=>g&&["object","function"].includes(typeof g)))return Br.error(Nt` + Invalid argType: '${i}.options' should only contain primitives. Use a 'mapping' for complex values. + + More info: https://storybook.js.org/docs/react/writing-stories/args#mapping-to-complex-arg-values + `),n();let o=Array.isArray(r[i]),a=o&&r[i].findIndex(g=>!s.includes(g)),l=o&&a===-1;if(r[i]===void 0||s.includes(r[i])||l)return n();let u=o?`${i}[${a}]`:i,c=s.map(g=>typeof g=="string"?`'${g}'`:String(g)).join(", ");return Br.warn(`Received illegal value for '${u}'. Supported options: ${c}`),t},{}),"validateOptions"),pn=Symbol("Deeply equal"),Ma=x((r,e)=>{if(typeof r!=typeof e)return e;if(qi(r,e))return pn;if(Array.isArray(r)&&Array.isArray(e)){let t=e.reduce((i,s,n)=>{let o=Ma(r[n],s);return o!==pn&&(i[n]=o),i},new Array(e.length));return e.length>=r.length?t:t.concat(new Array(r.length-e.length).fill(void 0))}return(0,Ba.default)(r)&&(0,Ba.default)(e)?Object.keys({...r,...e}).reduce((t,i)=>{let s=Ma(r?.[i],e?.[i]);return s===pn?t:Object.assign(t,{[i]:s})},{}):e},"deepDiff"),dS="UNTARGETED";function pS({args:r,argTypes:e}){let t={};return Object.entries(r).forEach(([i,s])=>{let{target:n=dS}=e[i]||{};t[n]=t[n]||{},t[n][i]=s}),t}x(pS,"groupArgsByTarget");function fS(r){return Object.keys(r).forEach(e=>r[e]===void 0&&delete r[e]),r}x(fS,"deleteUndefined");var gS=class{constructor(){this.initialArgsByStoryId={},this.argsByStoryId={}}get(e){if(!(e in this.argsByStoryId))throw new Error(`No args known for ${e} -- has it been rendered yet?`);return this.argsByStoryId[e]}setInitial(e){if(!this.initialArgsByStoryId[e.id])this.initialArgsByStoryId[e.id]=e.initialArgs,this.argsByStoryId[e.id]=e.initialArgs;else if(this.initialArgsByStoryId[e.id]!==e.initialArgs){let t=Ma(this.initialArgsByStoryId[e.id],this.argsByStoryId[e.id]);this.initialArgsByStoryId[e.id]=e.initialArgs,this.argsByStoryId[e.id]=e.initialArgs,t!==pn&&this.updateFromDelta(e,t)}}updateFromDelta(e,t){let i=vj(t,e.argTypes);this.argsByStoryId[e.id]=Ph(this.argsByStoryId[e.id],i)}updateFromPersisted(e,t){let i=bj(t,e.argTypes);return this.updateFromDelta(e,i)}update(e,t){if(!(e in this.argsByStoryId))throw new Error(`No args known for ${e} -- has it been rendered yet?`);this.argsByStoryId[e]=fS({...this.argsByStoryId[e],...t})}};x(gS,"ArgsStore");var Sj=gS,mS=x((r={})=>Object.entries(r).reduce((e,[t,{defaultValue:i}])=>(typeof i<"u"&&(e[t]=i),e),{}),"getValuesFromArgTypes"),_S=class{constructor({globals:e={},globalTypes:t={}}){this.set({globals:e,globalTypes:t})}set({globals:e={},globalTypes:t={}}){let i=this.initialGlobals&&Ma(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(e),...Object.keys(t)]);let s=mS(t);this.initialGlobals={...s,...e},this.globals=this.initialGlobals,i&&i!==pn&&this.updateFromPersisted(i)}filterAllowedGlobals(e){return Object.entries(e).reduce((t,[i,s])=>(this.allowedGlobalNames.has(i)?t[i]=s:Pe.warn(`Attempted to set a global (${i}) that is not defined in initial globals or globalTypes`),t),{})}updateFromPersisted(e){let t=this.filterAllowedGlobals(e);this.globals={...this.globals,...t}}get(){return this.globals}update(e){this.globals={...this.globals,...this.filterAllowedGlobals(e)}}};x(_S,"GlobalsStore");var wj=_S,Tj=bt(Jv(),1),Cj=(0,Tj.default)(1)(r=>Object.values(r).reduce((e,t)=>(e[t.importPath]=e[t.importPath]||t,e),{})),yS=class{constructor({entries:e}={v:5,entries:{}}){this.entries=e}entryFromSpecifier(e){let t=Object.values(this.entries);if(e==="*")return t[0];if(typeof e=="string")return this.entries[e]?this.entries[e]:t.find(n=>n.id.startsWith(e));let{name:i,title:s}=e;return t.find(n=>n.name===i&&n.title===s)}storyIdToEntry(e){let t=this.entries[e];if(!t)throw new U0({storyId:e});return t}importPathToEntry(e){return Cj(this.entries)[e]}};x(yS,"StoryIndexStore");var Aj=yS,Ej=bt($a(),1),Ij=x(r=>typeof r=="string"?{name:r}:r,"normalizeType"),Rj=x(r=>typeof r=="string"?{type:r}:r,"normalizeControl"),Pj=x((r,e)=>{let{type:t,control:i,...s}=r,n={name:e,...s};return t&&(n.type=Ij(t)),i?n.control=Rj(i):i===!1&&(n.control={disable:!0}),n},"normalizeInputType"),Na=x(r=>(0,Ej.default)(r,Pj),"normalizeInputTypes"),Xe=x(r=>Array.isArray(r)?r:r?[r]:[],"normalizeArrays"),kj=Nt` +CSF .story annotations deprecated; annotate story functions directly: +- StoryFn.story.name => StoryFn.storyName +- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators) +See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod. +`;function ad(r,e,t){let i=e,s=typeof e=="function"?e:null,{story:n}=i;n&&(Pe.debug("deprecated story",n),hr(kj));let o=xg(r),a=typeof i!="function"&&i.name||i.storyName||n?.name||o,l=[...Xe(i.decorators),...Xe(n?.decorators)],u={...n?.parameters,...i.parameters},c={...n?.args,...i.args},g={...n?.argTypes,...i.argTypes},m=[...Xe(i.loaders),...Xe(n?.loaders)],y=[...Xe(i.beforeEach),...Xe(n?.beforeEach)],{render:b,play:C,tags:A=[],globals:T={}}=i,R=u.__id||yg(t.id,o);return{moduleExport:e,id:R,name:a,tags:A,decorators:l,parameters:u,args:c,argTypes:Na(g),loaders:m,beforeEach:y,globals:T,...b&&{render:b},...s&&{userStoryFn:s},...C&&{play:C}}}x(ad,"normalizeStory");function ld(r,e=r.title,t){let{id:i,argTypes:s}=r;return{id:Ic(i||e),...r,title:e,...s&&{argTypes:Na(s)},parameters:{fileName:t,...r.parameters}}}x(ld,"normalizeComponentAnnotations");var Oj=x(r=>{let{globals:e,globalTypes:t}=r;(e||t)&&Pe.error("Global args/argTypes can only be set globally",JSON.stringify({globals:e,globalTypes:t}))},"checkGlobals"),Lj=x(r=>{let{options:e}=r;e?.storySort&&Pe.error("The storySort option parameter can only be set globally")},"checkStorySort"),gv=x(r=>{r&&(Oj(r),Lj(r))},"checkDisallowedParameters");function xS(r,e,t){let{default:i,__namedExportsOrder:s,...n}=r,o=ld(i,t,e);gv(o.parameters);let a={meta:o,stories:{},moduleExports:r};return Object.keys(n).forEach(l=>{if(oa(l,o)){let u=ad(l,n[l],o);gv(u.parameters),a.stories[u.id]=u}}),a}x(xS,"processCSFFile");function bS(r){return r!=null&&vS(r).includes("mount")}x(bS,"mountDestructured");function vS(r){let e=r.toString().match(/[^(]*\(([^)]*)/);if(!e)return[];let t=kh(e[1]);if(!t.length)return[];let i=t[0];return i.startsWith("{")&&i.endsWith("}")?kh(i.slice(1,-1).replace(/\s/g,"")).map(s=>s.replace(/:.*|=.*/g,"")):[]}x(vS,"getUsedProps");function kh(r){let e=[],t=[],i=0;for(let n=0;ne(i,s)}x(SS,"decorateStory");function wS({componentId:r,title:e,kind:t,id:i,name:s,story:n,parameters:o,initialArgs:a,argTypes:l,...u}={}){return u}x(wS,"sanitizeStoryContextUpdate");function TS(r,e){let t={},i=x(n=>o=>{if(!t.value)throw new Error("Decorated function called without init");return t.value={...t.value,...wS(o)},n(t.value)},"bindWithContext"),s=e.reduce((n,o)=>SS(n,o,i),r);return n=>(t.value=n,s(n))}x(TS,"defaultDecorateStory");var wh=bt(Qh(),1),pr=x((...r)=>{let e={},t=r.filter(Boolean),i=t.reduce((s,n)=>(Object.entries(n).forEach(([o,a])=>{let l=s[o];Array.isArray(a)||typeof l>"u"?s[o]=a:(0,wh.default)(a)&&(0,wh.default)(l)?e[o]=!0:typeof a<"u"&&(s[o]=a)}),s),{});return Object.keys(e).forEach(s=>{let n=t.filter(Boolean).map(o=>o[s]).filter(o=>typeof o<"u");n.every(o=>(0,wh.default)(o))?i[s]=pr(...n):i[s]=n[n.length-1]}),i},"combineParameters");function ud(r,e,t){let{moduleExport:i,id:s,name:n}=r||{},o=cd(r,e,t),a=x(async k=>{let O={};for(let B of[..."__STORYBOOK_TEST_LOADERS__"in it&&Array.isArray(it.__STORYBOOK_TEST_LOADERS__)?[it.__STORYBOOK_TEST_LOADERS__]:[],Xe(t.loaders),Xe(e.loaders),Xe(r.loaders)]){if(k.abortSignal.aborted)return O;let F=await Promise.all(B.map(U=>U(k)));Object.assign(O,...F)}return O},"applyLoaders"),l=x(async k=>{let O=new Array;for(let B of[...Xe(t.beforeEach),...Xe(e.beforeEach),...Xe(r.beforeEach)]){if(k.abortSignal.aborted)return O;let F=await B(k);F&&O.push(F)}return O},"applyBeforeEach"),u=x(k=>k.originalStoryFn(k.args,k),"undecoratedStoryFn"),{applyDecorators:c=TS,runStep:g}=t,m=[...Xe(r?.decorators),...Xe(e?.decorators),...Xe(t?.decorators)],y=r?.userStoryFn||r?.render||e.render||t.render,b=uj(c)(u,m),C=x(k=>b(k),"unboundStoryFn"),A=r?.play??e?.play,T=bS(A);if(!y&&!T)throw new av({id:s});let R=x(k=>async()=>(await k.renderToCanvas(),k.canvas),"defaultMount"),P=r.mount??e.mount??t.mount??R,E=t.testingLibraryRender;return{storyGlobals:{},...o,moduleExport:i,id:s,name:n,story:n,originalStoryFn:y,undecoratedStoryFn:u,unboundStoryFn:C,applyLoaders:a,applyBeforeEach:l,playFunction:A,runStep:g,mount:P,testingLibraryRender:E,renderToCanvas:t.renderToCanvas,usesMount:T}}x(ud,"prepareStory");function CS(r,e,t){return{...cd(void 0,r,e),moduleExport:t}}x(CS,"prepareMeta");function cd(r,e,t){let i=["dev","test"],s=it.DOCS_OPTIONS?.autodocs===!0?["autodocs"]:[],n=bg(...i,...s,...t.tags??[],...e.tags??[],...r?.tags??[]),o=pr(t.parameters,e.parameters,r?.parameters),{argTypesEnhancers:a=[],argsEnhancers:l=[]}=t,u=pr(t.argTypes,e.argTypes,r?.argTypes);if(r){let T=r?.userStoryFn||r?.render||e.render||t.render;o.__isArgsStory=T&&T.length>0}let c={...t.args,...e.args,...r?.args},g={...e.globals,...r?.globals},m={componentId:e.id,title:e.title,kind:e.title,id:r?.id||e.id,name:r?.name||"__meta",story:r?.name||"__meta",component:e.component,subcomponents:e.subcomponents,tags:n,parameters:o,initialArgs:c,argTypes:u,storyGlobals:g};m.argTypes=a.reduce((T,R)=>R({...m,argTypes:T}),m.argTypes);let y={...c};m.initialArgs=l.reduce((T,R)=>({...T,...R({...m,initialArgs:T})}),y);let{name:b,story:C,...A}=m;return A}x(cd,"preparePartialAnnotations");function hd(r){let{args:e}=r,t={...r,allArgs:void 0,argsByTarget:void 0};if(it.FEATURES?.argTypeTargetsV7){let n=pS(r);t={...r,allArgs:r.args,argsByTarget:n,args:n[dS]||{}}}let i=Object.entries(t.args).reduce((n,[o,a])=>{if(!t.argTypes[o]?.mapping)return n[o]=a,n;let l=x(u=>{let c=t.argTypes[o].mapping;return c&&u in c?c[u]:u},"mappingFn");return n[o]=Array.isArray(a)?a.map(l):l(a),n},{}),s=Object.entries(i).reduce((n,[o,a])=>{let l=t.argTypes[o]||{};return Ec(l,i,t.globals)&&(n[o]=a),n},{});return{...t,unmappedArgs:e,args:s}}x(hd,"prepareContext");var Oh=bt($a(),1),Lh=x((r,e,t)=>{let i=typeof r;switch(i){case"boolean":case"string":case"number":case"function":case"symbol":return{name:i};default:break}return r?t.has(r)?(Pe.warn(Nt` + We've detected a cycle in arg '${e}'. Args should be JSON-serializable. + + Consider using the mapping feature or fully custom args: + - Mapping: https://storybook.js.org/docs/react/writing-stories/args#mapping-to-complex-arg-values + - Custom args: https://storybook.js.org/docs/react/essentials/controls#fully-custom-args + `),{name:"other",value:"cyclic object"}):(t.add(r),Array.isArray(r)?{name:"array",value:r.length>0?Lh(r[0],e,new Set(t)):{name:"other",value:"unknown"}}:{name:"object",value:(0,Oh.default)(r,s=>Lh(s,e,new Set(t)))}):{name:"object",value:{}}},"inferType"),AS=x(r=>{let{id:e,argTypes:t={},initialArgs:i={}}=r,s=(0,Oh.default)(i,(o,a)=>({name:a,type:Lh(o,`${e}.${a}`,new Set)})),n=(0,Oh.default)(t,(o,a)=>({name:a}));return pr(s,n,t)},"inferArgTypes");AS.secondPass=!0;var Dj=bt($a(),1),Fj=bt(F3(),1),mv=x((r,e)=>Array.isArray(e)?e.includes(r):r.match(e),"matches"),ES=x((r,e,t)=>!e&&!t?r:r&&(0,Fj.default)(r,(i,s)=>{let n=i.name||s;return(!e||mv(n,e))&&(!t||!mv(n,t))}),"filterArgTypes"),Bj=x((r,e,t)=>{let{type:i,options:s}=r;if(i){if(t.color&&t.color.test(e)){let n=i.name;if(n==="string")return{control:{type:"color"}};n!=="enum"&&Pe.warn(`Addon controls: Control of type color only supports string, received "${n}" instead`)}if(t.date&&t.date.test(e))return{control:{type:"date"}};switch(i.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:n}=i;return{control:{type:n?.length<=5?"radio":"select"},options:n}}case"function":case"symbol":return null;default:return{control:{type:s?"select":"object"}}}}},"inferControl"),IS=x(r=>{let{argTypes:e,parameters:{__isArgsStory:t,controls:{include:i=null,exclude:s=null,matchers:n={}}={}}}=r;if(!t)return e;let o=ES(e,i,s),a=(0,Dj.default)(o,(l,u)=>l?.type&&Bj(l,u,n));return pr(a,o)},"inferControls");IS.secondPass=!0;function za({argTypes:r,globalTypes:e,argTypesEnhancers:t,decorators:i,loaders:s,beforeEach:n,globals:o,initialGlobals:a,...l}){return o&&Object.keys(o).length>0&&hr(Nt` + The preview.js 'globals' field is deprecated and will be removed in Storybook 9.0. + Please use 'initialGlobals' instead. Learn more: + + https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#previewjs-globals-renamed-to-initialglobals + `),{...r&&{argTypes:Na(r)},...e&&{globalTypes:Na(e)},decorators:Xe(i),loaders:Xe(s),beforeEach:Xe(n),argTypesEnhancers:[...t||[],AS,IS],initialGlobals:pr(a,o),...l}}x(za,"normalizeProjectAnnotations");var Mj=x(r=>async()=>{let e=[];for(let t of r){let i=await t();i&&e.unshift(i)}return async()=>{for(let t of e)await t()}},"composeBeforeAllHooks");function RS(r){return async(e,t,i)=>{await r.reduceRight((s,n)=>async()=>n(e,s,i),async()=>t(i))()}}x(RS,"composeStepRunners");function $i(r,e){return r.map(t=>t.default?.[e]??t[e]).filter(Boolean)}x($i,"getField");function Mr(r,e,t={}){return $i(r,e).reduce((i,s)=>{let n=Xe(s);return t.reverseFileOrder?[...n,...i]:[...i,...n]},[])}x(Mr,"getArrayField");function Wi(r,e){return Object.assign({},...$i(r,e))}x(Wi,"getObjectField");function ei(r,e){return $i(r,e).pop()}x(ei,"getSingletonField");function mn(r){let e=Mr(r,"argTypesEnhancers"),t=$i(r,"runStep"),i=Mr(r,"beforeAll");return{parameters:pr(...$i(r,"parameters")),decorators:Mr(r,"decorators",{reverseFileOrder:!(it.FEATURES?.legacyDecoratorFileOrder??!1)}),args:Wi(r,"args"),argsEnhancers:Mr(r,"argsEnhancers"),argTypes:Wi(r,"argTypes"),argTypesEnhancers:[...e.filter(s=>!s.secondPass),...e.filter(s=>s.secondPass)],globals:Wi(r,"globals"),initialGlobals:Wi(r,"initialGlobals"),globalTypes:Wi(r,"globalTypes"),loaders:Mr(r,"loaders"),beforeAll:Mj(i),beforeEach:Mr(r,"beforeEach"),render:ei(r,"render"),renderToCanvas:ei(r,"renderToCanvas"),renderToDOM:ei(r,"renderToDOM"),applyDecorators:ei(r,"applyDecorators"),runStep:RS(t),tags:Mr(r,"tags"),mount:ei(r,"mount"),testingLibraryRender:ei(r,"testingLibraryRender")}}x(mn,"composeConfigs");function Nj(r){globalThis.defaultProjectAnnotations=r}x(Nj,"setDefaultProjectAnnotations");var zj="ComposedStory",jj="Unnamed Story";function PS(r){return r?"default"in r?r.default:r:{}}x(PS,"extractAnnotation");function Uj(r){let e=Array.isArray(r)?r:[r];return globalThis.globalProjectAnnotations=mn(e.map(PS)),mn([globalThis.defaultProjectAnnotations??{},globalThis.globalProjectAnnotations??{}])}x(Uj,"setProjectAnnotations");var Nr=[];function kS(r,e,t,i,s){if(r===void 0)throw new Error("Expected a story but received undefined.");e.title=e.title??zj;let n=ld(e),o=s||r.storyName||r.story?.name||r.name||jj,a=ad(o,r,n),l=za(mn([i&&Object.keys(i).length>0?i:globalThis.defaultProjectAnnotations??{},globalThis.globalProjectAnnotations??{},t??{}])),u=ud(a,n,l),c=mS(l.globalTypes),g=x(()=>{let A=hd({hooks:new lS,globals:{...c,...l.initialGlobals,...u.storyGlobals},args:{...u.initialArgs},viewMode:"story",loaded:{},abortSignal:new AbortController().signal,step:x((T,R)=>u.runStep(T,R,A),"step"),canvasElement:null,canvas:{},globalTypes:l.globalTypes,...u,context:null,mount:null});return A.context=A,u.renderToCanvas&&(A.renderToCanvas=async()=>{let T=await u.renderToCanvas?.({componentId:u.componentId,title:u.title,id:u.id,name:u.name,tags:u.tags,showMain:x(()=>{},"showMain"),showError:x(R=>{throw new Error(`${R.title} +${R.description}`)},"showError"),showException:x(R=>{throw R},"showException"),forceRemount:!0,storyContext:A,storyFn:x(()=>u.unboundStoryFn(A),"storyFn"),unboundStoryFn:u.unboundStoryFn},A.canvasElement);T&&Nr.push(T)}),A.mount=u.mount(A),A},"initializeContext"),m,y=x(async A=>{let T=g();return T.canvasElement??=globalThis?.document?.body,m&&(T.loaded=m.loaded),Object.assign(T,A),u.playFunction(T)},"play"),b=x(A=>{let T=g();return Object.assign(T,A),OS(u,T)},"run"),C=u.playFunction?y:void 0;return Object.assign(x(function(A){let T=g();return m&&(T.loaded=m.loaded),T.args={...T.initialArgs,...A},u.unboundStoryFn(T)},"storyFn"),{id:u.id,storyName:o,load:x(async()=>{for(let T of[...Nr].reverse())await T();Nr.length=0;let A=g();A.loaded=await u.applyLoaders(A),Nr.push(...(await u.applyBeforeEach(A)).filter(Boolean)),m=A},"load"),args:u.initialArgs,parameters:u.parameters,argTypes:u.argTypes,play:C,run:b,tags:u.tags})}x(kS,"composeStory");var Hj=x((r,e,t,i)=>kS(r,e,t,{},i),"defaultComposeStory");function Wj(r,e,t=Hj){let{default:i,__esModule:s,__namedExportsOrder:n,...o}=r;return Object.entries(o).reduce((a,[l,u])=>oa(l,i)?Object.assign(a,{[l]:t(u,i,e,l)}):a,{})}x(Wj,"composeStories");function qj(r){return r.extend({mount:x(async({mount:e,page:t},i)=>{await i(async(s,...n)=>{if(!("__pw_type"in s)||"__pw_type"in s&&s.__pw_type!=="jsx")throw new Error(Nt` + Portable stories in Playwright CT only work when referencing JSX elements. + Please use JSX format for your components such as: + + instead of: + await mount(MyComponent, { props: { foo: 'bar' } }) + + do: + await mount() + + More info: https://storybook.js.org/docs/api/portable-stories-playwright + `);await t.evaluate(async a=>{let l=await globalThis.__pwUnwrapObject?.(a);return("__pw_type"in l?l.type:l)?.load?.()},s);let o=await e(s,...n);return await t.evaluate(async a=>{let l=await globalThis.__pwUnwrapObject?.(a),u="__pw_type"in l?l.type:l,c=document.querySelector("#root");return u?.play?.({canvasElement:c})},s),o})},"mount")})}x(qj,"createPlaywrightTest");async function OS(r,e){for(let s of[...Nr].reverse())await s();if(Nr.length=0,!e.canvasElement){let s=document.createElement("div");globalThis?.document?.body?.appendChild(s),e.canvasElement=s,Nr.push(()=>{globalThis?.document?.body?.contains(s)&&globalThis?.document?.body?.removeChild(s)})}if(e.loaded=await r.applyLoaders(e),e.abortSignal.aborted)return;Nr.push(...(await r.applyBeforeEach(e)).filter(Boolean));let t=r.playFunction,i=r.usesMount;i||await e.mount(),!e.abortSignal.aborted&&t&&(i||(e.mount=async()=>{throw new ka({playFunction:t.toString()})}),await t(e))}x(OS,"runStory");var _v=1e3,$j=1e4,LS=class{constructor(e,t,i){this.importFn=t,this.getStoriesJsonData=x(()=>{let o=this.getSetStoriesPayload(),a=["fileName","docsOnly","framework","__id","__isArgsStory"];return{v:3,stories:(0,xj.default)(o.stories,l=>{let{importPath:u}=this.storyIndex.entries[l.id];return{...(0,pv.default)(l,["id","name","title"]),importPath:u,kind:l.title,story:l.name,parameters:{...(0,pv.default)(l.parameters,a),fileName:u}}})}},"getStoriesJsonData"),this.storyIndex=new Aj(e),this.projectAnnotations=za(i);let{initialGlobals:s,globalTypes:n}=this.projectAnnotations;this.args=new Sj,this.userGlobals=new wj({globals:s,globalTypes:n}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,Sh.default)(_v)(xS),this.prepareMetaWithCache=(0,Sh.default)(_v)(CS),this.prepareStoryWithCache=(0,Sh.default)($j)(ud)}setProjectAnnotations(e){this.projectAnnotations=za(e);let{initialGlobals:t,globalTypes:i}=e;this.userGlobals.set({globals:t,globalTypes:i})}async onStoriesChanged({importFn:e,storyIndex:t}){e&&(this.importFn=e),t&&(this.storyIndex.entries=t.entries),this.cachedCSFFiles&&await this.cacheAllCSFFiles()}async storyIdToEntry(e){return this.storyIndex.storyIdToEntry(e)}async loadCSFFileByStoryId(e){let{importPath:t,title:i}=this.storyIndex.storyIdToEntry(e),s=await this.importFn(t);return this.processCSFFileWithCache(s,t,i)}async loadAllCSFFiles(){let e={};return Object.entries(this.storyIndex.entries).forEach(([t,{importPath:i}])=>{e[i]=t}),(await Promise.all(Object.entries(e).map(async([t,i])=>({importPath:t,csfFile:await this.loadCSFFileByStoryId(i)})))).reduce((t,{importPath:i,csfFile:s})=>(t[i]=s,t),{})}async cacheAllCSFFiles(){this.cachedCSFFiles=await this.loadAllCSFFiles()}preparedMetaFromCSFFile({csfFile:e}){let t=e.meta;return this.prepareMetaWithCache(t,this.projectAnnotations,e.moduleExports.default)}async loadStory({storyId:e}){let t=await this.loadCSFFileByStoryId(e);return this.storyFromCSFFile({storyId:e,csfFile:t})}storyFromCSFFile({storyId:e,csfFile:t}){let i=t.stories[e];if(!i)throw new rv({storyId:e});let s=t.meta,n=this.prepareStoryWithCache(i,s,this.projectAnnotations);return this.args.setInitial(n),this.hooks[n.id]=this.hooks[n.id]||new lS,n}componentStoriesFromCSFFile({csfFile:e}){return Object.keys(this.storyIndex.entries).filter(t=>!!e.stories[t]).map(t=>this.storyFromCSFFile({storyId:t,csfFile:e}))}async loadEntry(e){let t=await this.storyIdToEntry(e),i=t.type==="docs"?t.storiesImports:[],[s,...n]=await Promise.all([this.importFn(t.importPath),...i.map(o=>{let a=this.storyIndex.importPathToEntry(o);return this.loadCSFFileByStoryId(a.id)})]);return{entryExports:s,csfFiles:n}}getStoryContext(e,{forceInitialArgs:t=!1}={}){let i=this.userGlobals.get(),{initialGlobals:s}=this.userGlobals;return hd({...e,args:t?e.initialArgs:this.args.get(e.id),initialGlobals:s,globalTypes:this.projectAnnotations.globalTypes,userGlobals:i,globals:{...i,...e.storyGlobals},hooks:this.hooks[e.id]})}addCleanupCallbacks(e,t){this.cleanupCallbacks[e.id]=t}async cleanupStory(e){this.hooks[e.id].clean();let t=this.cleanupCallbacks[e.id];if(t)for(let i of[...t].reverse())await i();delete this.cleanupCallbacks[e.id]}extract(e={includeDocsOnly:!1}){let{cachedCSFFiles:t}=this;if(!t)throw new W0;return Object.entries(this.storyIndex.entries).reduce((i,[s,{type:n,importPath:o}])=>{if(n==="docs")return i;let a=t[o],l=this.storyFromCSFFile({storyId:s,csfFile:a});return!e.includeDocsOnly&&l.parameters.docsOnly||(i[s]=Object.entries(l).reduce((u,[c,g])=>c==="moduleExport"||typeof g=="function"?u:Array.isArray(g)?Object.assign(u,{[c]:g.slice().sort()}):Object.assign(u,{[c]:g}),{args:l.initialArgs})),i},{})}getSetStoriesPayload(){let e=this.extract({includeDocsOnly:!0}),t=Object.values(e).reduce((i,{title:s})=>(i[s]={},i),{});return{v:2,globals:this.userGlobals.get(),globalParameters:{},kindParameters:t,stories:e}}raw(){return hr("StoryStore.raw() is deprecated and will be removed in 9.0, please use extract() instead"),Object.values(this.extract()).map(({id:e})=>this.fromId(e)).filter(Boolean)}fromId(e){if(hr("StoryStore.fromId() is deprecated and will be removed in 9.0, please use loadStory() instead"),!this.cachedCSFFiles)throw new Error("Cannot call fromId/raw() unless you call cacheAllCSFFiles() first.");let t;try{({importPath:t}=this.storyIndex.storyIdToEntry(e))}catch{return null}let i=this.cachedCSFFiles[t],s=this.storyFromCSFFile({storyId:e,csfFile:i});return{...s,storyFn:x(n=>{let o={...this.getStoryContext(s),abortSignal:new AbortController().signal,canvasElement:null,loaded:{},step:x((a,l)=>s.runStep(a,l,o),"step"),context:null,mount:null,canvas:{},viewMode:"story"};return s.unboundStoryFn({...o,...n})},"storyFn")}}};x(LS,"StoryStore");var Vj=LS;function DS(r){return r.startsWith("\\\\?\\")?r:r.replace(/\\/g,"/")}x(DS,"slash");var Gj=x(r=>{if(r.length===0)return r;let e=r[r.length-1],t=e?.replace(/(?:[.](?:story|stories))?([.][^.]+)$/i,"");if(r.length===1)return[t];let i=r[r.length-2];return t&&i&&t.toLowerCase()===i.toLowerCase()?[...r.slice(0,-2),t]:t&&(/^(story|stories)([.][^.]+)$/i.test(e)||/^index$/i.test(t))?r.slice(0,-1):[...r.slice(0,-1),t]},"sanitize");function Dh(r){return r.flatMap(e=>e.split("/")).filter(Boolean).join("/")}x(Dh,"pathJoin");var Yj=x((r,e,t)=>{let{directory:i,importPathMatcher:s,titlePrefix:n=""}=e||{};typeof r=="number"&&Br.warn(Nt` + CSF Auto-title received a numeric fileName. This typically happens when + webpack is mis-configured in production mode. To force webpack to produce + filenames, set optimization.moduleIds = "named" in your webpack config. + `);let o=DS(String(r));if(s.exec(o)){if(!t){let a=o.replace(i,""),l=Dh([n,a]).split("/");return l=Gj(l),l.join("/")}return n?Dh([n,t]):t}},"userOrAutoTitleFromSpecifier"),Gke=x((r,e,t)=>{for(let i=0;i(e,t)=>{if(e.title===t.title&&!r.includeNames)return 0;let i=r.method||"configure",s=r.order||[],n=e.title.trim().split(yv),o=t.title.trim().split(yv);r.includeNames&&(n.push(e.name),o.push(t.name));let a=0;for(;n[a]||o[a];){if(!n[a])return-1;if(!o[a])return 1;let l=n[a],u=o[a];if(l!==u){let g=s.indexOf(l),m=s.indexOf(u),y=s.indexOf("*");return g!==-1||m!==-1?(g===-1&&(y!==-1?g=y:g=s.length),m===-1&&(y!==-1?m=y:m=s.length),g-m):i==="configure"?0:l.localeCompare(u,r.locales?r.locales:void 0,{numeric:!0,sensitivity:"accent"})}let c=s.indexOf(l);c===-1&&(c=s.indexOf("*")),s=c!==-1&&Array.isArray(s[c+1])?s[c+1]:[],a+=1}return 0},"storySort"),Kj=x((r,e,t)=>{if(e){let i;typeof e=="function"?i=e:i=Xj(e),r.sort(i)}else r.sort((i,s)=>t.indexOf(i.importPath)-t.indexOf(s.importPath));return r},"sortStoriesCommon"),Yke=x((r,e,t)=>{try{return Kj(r,e,t)}catch(i){throw new Error(Nt` + Error sorting stories with sort parameter ${e}: + + > ${i.message} + + Are you using a V6-style sort function in V7 mode? + + More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort + `)}},"sortStoriesV7"),Ya=new Error("prepareAborted"),{AbortController:xv}=globalThis;function Fh(r){try{let{name:e="Error",message:t=String(r),stack:i}=r;return{name:e,message:t,stack:i}}catch{return{name:"Error",message:String(r)}}}x(Fh,"serializeError");var FS=class{constructor(e,t,i,s,n,o,a={autoplay:!0,forceInitialArgs:!1},l){this.channel=e,this.store=t,this.renderToScreen=i,this.callbacks=s,this.id=n,this.viewMode=o,this.renderOptions=a,this.type="story",this.notYetRendered=!0,this.rerenderEnqueued=!1,this.disableKeyListeners=!1,this.teardownRender=x(()=>{},"teardownRender"),this.torndown=!1,this.abortController=new xv,l&&(this.story=l,this.phase="preparing")}async runPhase(e,t,i){this.phase=t,this.channel.emit(Ui,{newPhase:this.phase,storyId:this.id}),i&&(await i(),this.checkIfAborted(e))}checkIfAborted(e){return e.aborted?(this.phase="aborted",this.channel.emit(Ui,{newPhase:this.phase,storyId:this.id}),!0):!1}async prepare(){if(await this.runPhase(this.abortController.signal,"preparing",async()=>{this.story=await this.store.loadStory({storyId:this.id})}),this.abortController.signal.aborted)throw await this.store.cleanupStory(this.story),Ya}isEqual(e){return!!(this.id===e.id&&this.story&&this.story===e.story)}isPreparing(){return["preparing"].includes(this.phase)}isPending(){return["loading","beforeEach","rendering","playing"].includes(this.phase)}async renderToElement(e){return this.canvasElement=e,this.render({initial:!0,forceRemount:!0})}storyContext(){if(!this.story)throw new Error("Cannot call storyContext before preparing");let{forceInitialArgs:e}=this.renderOptions;return this.store.getStoryContext(this.story,{forceInitialArgs:e})}async render({initial:e=!1,forceRemount:t=!1}={}){let{canvasElement:i}=this;if(!this.story)throw new Error("cannot render when not prepared");let s=this.story;if(!i)throw new Error("cannot render when canvasElement is unset");let{id:n,componentId:o,title:a,name:l,tags:u,applyLoaders:c,applyBeforeEach:g,unboundStoryFn:m,playFunction:y,runStep:b}=s;t&&!e&&(this.cancelRender(),this.abortController=new xv);let C=this.abortController.signal,A=!1,T=s.usesMount;try{let R={...this.storyContext(),viewMode:this.viewMode,abortSignal:C,canvasElement:i,loaded:{},step:x((F,U)=>b(F,U,R),"step"),context:null,canvas:{},renderToCanvas:x(async()=>{let F=await this.renderToScreen(P,i);this.teardownRender=F||(()=>{}),A=!0},"renderToCanvas"),mount:x(async(...F)=>{this.callbacks.showStoryDuringRender?.();let U=null;return await this.runPhase(C,"rendering",async()=>{U=await s.mount(R)(...F)}),T&&await this.runPhase(C,"playing"),U},"mount")};R.context=R;let P={componentId:o,title:a,kind:a,id:n,name:l,story:l,tags:u,...this.callbacks,showError:x(F=>(this.phase="errored",this.callbacks.showError(F)),"showError"),showException:x(F=>(this.phase="errored",this.callbacks.showException(F)),"showException"),forceRemount:t||this.notYetRendered,storyContext:R,storyFn:x(()=>m(R),"storyFn"),unboundStoryFn:m};if(await this.runPhase(C,"loading",async()=>{R.loaded=await c(R)}),C.aborted)return;let E=await g(R);if(this.store.addCleanupCallbacks(s,E),this.checkIfAborted(C)||(!A&&!T&&await R.mount(),this.notYetRendered=!1,C.aborted))return;let k=this.story.parameters?.test?.dangerouslyIgnoreUnhandledErrors===!0,O=new Set,B=x(F=>O.add("error"in F?F.error:F.reason),"onError");if(this.renderOptions.autoplay&&t&&y&&this.phase!=="errored"){window.addEventListener("error",B),window.addEventListener("unhandledrejection",B),this.disableKeyListeners=!0;try{if(T?await y(R):(R.mount=async()=>{throw new ka({playFunction:y.toString()})},await this.runPhase(C,"playing",async()=>y(R))),!A)throw new uv;this.checkIfAborted(C),!k&&O.size>0?await this.runPhase(C,"errored"):await this.runPhase(C,"played")}catch(F){if(this.callbacks.showStoryDuringRender?.(),await this.runPhase(C,"errored",async()=>{this.channel.emit(T0,Fh(F))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw F;console.error(F)}if(!k&&O.size>0&&this.channel.emit(B0,Array.from(O).map(Fh)),this.disableKeyListeners=!1,window.removeEventListener("unhandledrejection",B),window.removeEventListener("error",B),C.aborted)return}await this.runPhase(C,"completed",async()=>this.channel.emit(hn,n))}catch(R){this.phase="errored",this.callbacks.showException(R)}this.rerenderEnqueued&&(this.rerenderEnqueued=!1,this.render())}async rerender(){if(this.isPending()&&this.phase!=="playing")this.rerenderEnqueued=!0;else return this.render()}async remount(){return await this.teardown(),this.render({forceRemount:!0})}cancelRender(){this.abortController?.abort()}async teardown(){this.torndown=!0,this.cancelRender(),this.story&&await this.store.cleanupStory(this.story);for(let e=0;e<3;e+=1){if(!this.isPending()){await this.teardownRender();return}await new Promise(t=>setTimeout(t,0))}window.location.reload(),await new Promise(()=>{})}};x(FS,"StoryRender");var Bh=FS,{fetch:Jj}=it,Qj="./index.json",BS=class{constructor(e,t,i=ri.getChannel(),s=!0){this.importFn=e,this.getProjectAnnotations=t,this.channel=i,this.storyRenders=[],this.storeInitializationPromise=new Promise((n,o)=>{this.resolveStoreInitializationPromise=n,this.rejectStoreInitializationPromise=o}),s&&this.initialize()}get storyStore(){return new Proxy({},{get:x((e,t)=>{if(this.storyStoreValue)return hr("Accessing the Story Store is deprecated and will be removed in 9.0"),this.storyStoreValue[t];throw new sv},"get")})}async initialize(){this.setupListeners();try{let e=await this.getProjectAnnotationsOrRenderError();await this.runBeforeAllHook(e),await this.initializeWithProjectAnnotations(e)}catch(e){this.rejectStoreInitializationPromise(e)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(k0,this.onStoryIndexChanged.bind(this)),this.channel.on(Pa,this.onUpdateGlobals.bind(this)),this.channel.on(dn,this.onUpdateArgs.bind(this)),this.channel.on(x0,this.onRequestArgTypesInfo.bind(this)),this.channel.on(cn,this.onResetArgs.bind(this)),this.channel.on(Ra,this.onForceReRender.bind(this)),this.channel.on(S0,this.onForceRemount.bind(this))}async getProjectAnnotationsOrRenderError(){try{let e=await this.getProjectAnnotations();if(this.renderToCanvas=e.renderToCanvas,!this.renderToCanvas)throw new $0;return e}catch(e){throw this.renderPreviewEntryError("Error reading preview.js:",e),e}}async initializeWithProjectAnnotations(e){this.projectAnnotationsBeforeInitialization=e;try{let t=await this.getStoryIndexFromServer();return this.initializeWithStoryIndex(t)}catch(t){throw this.renderPreviewEntryError("Error loading story index:",t),t}}async runBeforeAllHook(e){try{await this.beforeAllCleanup?.(),this.beforeAllCleanup=await e.beforeAll?.()}catch(t){throw this.renderPreviewEntryError("Error in beforeAll hook:",t),t}}async getStoryIndexFromServer(){let e=await Jj(Qj);if(e.status===200)return e.json();throw new Y0({text:await e.text()})}initializeWithStoryIndex(e){if(!this.projectAnnotationsBeforeInitialization)throw new Error("Cannot call initializeWithStoryIndex until project annotations resolve");this.storyStoreValue=new Vj(e,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new At({methodName:"emitGlobals"});let e={globals:this.storyStoreValue.userGlobals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(I0,e)}async onGetProjectAnnotationsChanged({getProjectAnnotations:e}){delete this.previewEntryError,this.getProjectAnnotations=e;let t=await this.getProjectAnnotationsOrRenderError();if(await this.runBeforeAllHook(t),!this.storyStoreValue){await this.initializeWithProjectAnnotations(t);return}this.storyStoreValue.setProjectAnnotations(t),this.emitGlobals()}async onStoryIndexChanged(){if(delete this.previewEntryError,!(!this.storyStoreValue&&!this.projectAnnotationsBeforeInitialization))try{let e=await this.getStoryIndexFromServer();if(this.projectAnnotationsBeforeInitialization){this.initializeWithStoryIndex(e);return}await this.onStoriesChanged({storyIndex:e})}catch(e){throw this.renderPreviewEntryError("Error loading story index:",e),e}}async onStoriesChanged({importFn:e,storyIndex:t}){if(!this.storyStoreValue)throw new At({methodName:"onStoriesChanged"});await this.storyStoreValue.onStoriesChanged({importFn:e,storyIndex:t})}async onUpdateGlobals({globals:e,currentStory:t}){if(this.storyStoreValue||await this.storeInitializationPromise,!this.storyStoreValue)throw new At({methodName:"onUpdateGlobals"});if(this.storyStoreValue.userGlobals.update(e),t){let{initialGlobals:i,storyGlobals:s,userGlobals:n,globals:o}=this.storyStoreValue.getStoryContext(t);this.channel.emit(Zr,{initialGlobals:i,userGlobals:n,storyGlobals:s,globals:o})}else{let{initialGlobals:i,globals:s}=this.storyStoreValue.userGlobals;this.channel.emit(Zr,{initialGlobals:i,userGlobals:s,storyGlobals:{},globals:s})}await Promise.all(this.storyRenders.map(i=>i.rerender()))}async onUpdateArgs({storyId:e,updatedArgs:t}){if(!this.storyStoreValue)throw new At({methodName:"onUpdateArgs"});this.storyStoreValue.args.update(e,t),await Promise.all(this.storyRenders.filter(i=>i.id===e&&!i.renderOptions.forceInitialArgs).map(i=>i.story&&i.story.usesMount?i.remount():i.rerender())),this.channel.emit(_h,{storyId:e,args:this.storyStoreValue.args.get(e)})}async onRequestArgTypesInfo({id:e,payload:t}){try{await this.storeInitializationPromise;let i=await this.storyStoreValue?.loadStory(t);this.channel.emit(gh,{id:e,success:!0,payload:{argTypes:i?.argTypes||{}},error:null})}catch(i){this.channel.emit(gh,{id:e,success:!1,error:i?.message})}}async onResetArgs({storyId:e,argNames:t}){if(!this.storyStoreValue)throw new At({methodName:"onResetArgs"});let i=this.storyRenders.find(n=>n.id===e)?.story||await this.storyStoreValue.loadStory({storyId:e}),s=(t||[...new Set([...Object.keys(i.initialArgs),...Object.keys(this.storyStoreValue.args.get(e))])]).reduce((n,o)=>(n[o]=i.initialArgs[o],n),{});await this.onUpdateArgs({storyId:e,updatedArgs:s})}async onForceReRender(){await Promise.all(this.storyRenders.map(e=>e.rerender()))}async onForceRemount({storyId:e}){await Promise.all(this.storyRenders.filter(t=>t.id===e).map(t=>t.remount()))}renderStoryToElement(e,t,i,s){if(!this.renderToCanvas||!this.storyStoreValue)throw new At({methodName:"renderStoryToElement"});let n=new Bh(this.channel,this.storyStoreValue,this.renderToCanvas,i,e.id,"docs",s,e);return n.renderToElement(t),this.storyRenders.push(n),async()=>{await this.teardownRender(n)}}async teardownRender(e,{viewModeChanged:t}={}){this.storyRenders=this.storyRenders.filter(i=>i!==e),await e?.teardown?.({viewModeChanged:t})}async loadStory({storyId:e}){if(!this.storyStoreValue)throw new At({methodName:"loadStory"});return this.storyStoreValue.loadStory({storyId:e})}getStoryContext(e,{forceInitialArgs:t=!1}={}){if(!this.storyStoreValue)throw new At({methodName:"getStoryContext"});return this.storyStoreValue.getStoryContext(e,{forceInitialArgs:t})}async extract(e){if(!this.storyStoreValue)throw new At({methodName:"extract"});if(this.previewEntryError)throw this.previewEntryError;return await this.storyStoreValue.cacheAllCSFFiles(),this.storyStoreValue.extract(e)}renderPreviewEntryError(e,t){this.previewEntryError=t,Pe.error(e),Pe.error(t),this.channel.emit(b0,t)}};x(BS,"Preview");var MS=BS,Zj=!1,Th="Invariant failed";function Da(r,e){if(!r){if(Zj)throw new Error(Th);var t=typeof e=="function"?e():e,i=t?"".concat(Th,": ").concat(t):Th;throw new Error(i)}}x(Da,"invariant");var NS=class{constructor(e,t,i,s){this.channel=e,this.store=t,this.renderStoryToElement=i,this.storyIdByName=x(n=>{let o=this.nameToStoryId.get(n);if(o)return o;throw new Error(`No story found with that name: ${n}`)},"storyIdByName"),this.componentStories=x(()=>this.componentStoriesValue,"componentStories"),this.componentStoriesFromCSFFile=x(n=>this.store.componentStoriesFromCSFFile({csfFile:n}),"componentStoriesFromCSFFile"),this.storyById=x(n=>{if(!n){if(!this.primaryStory)throw new Error("No primary story defined for docs entry. Did you forget to use ``?");return this.primaryStory}let o=this.storyIdToCSFFile.get(n);if(!o)throw new Error(`Called \`storyById\` for story that was never loaded: ${n}`);return this.store.storyFromCSFFile({storyId:n,csfFile:o})},"storyById"),this.getStoryContext=x(n=>({...this.store.getStoryContext(n),loaded:{},viewMode:"docs"}),"getStoryContext"),this.loadStory=x(n=>this.store.loadStory({storyId:n}),"loadStory"),this.componentStoriesValue=[],this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.attachedCSFFiles=new Set,s.forEach((n,o)=>{this.referenceCSFFile(n)})}referenceCSFFile(e){this.exportsToCSFFile.set(e.moduleExports,e),this.exportsToCSFFile.set(e.moduleExports.default,e),this.store.componentStoriesFromCSFFile({csfFile:e}).forEach(t=>{let i=e.stories[t.id];this.storyIdToCSFFile.set(i.id,e),this.exportToStory.set(i.moduleExport,t)})}attachCSFFile(e){if(!this.exportsToCSFFile.has(e.moduleExports))throw new Error("Cannot attach a CSF file that has not been referenced");this.attachedCSFFiles.has(e)||(this.attachedCSFFiles.add(e),this.store.componentStoriesFromCSFFile({csfFile:e}).forEach(t=>{this.nameToStoryId.set(t.name,t.id),this.componentStoriesValue.push(t),this.primaryStory||(this.primaryStory=t)}))}referenceMeta(e,t){let i=this.resolveModuleExport(e);if(i.type!=="meta")throw new Error(" must reference a CSF file module export or meta export. Did you mistakenly reference your component instead of your CSF file?");t&&this.attachCSFFile(i.csfFile)}get projectAnnotations(){let{projectAnnotations:e}=this.store;if(!e)throw new Error("Can't get projectAnnotations from DocsContext before they are initialized");return e}resolveAttachedModuleExportType(e){if(e==="story"){if(!this.primaryStory)throw new Error("No primary story attached to this docs file, did you forget to use ?");return{type:"story",story:this.primaryStory}}if(this.attachedCSFFiles.size===0)throw new Error("No CSF file attached to this docs file, did you forget to use ?");let t=Array.from(this.attachedCSFFiles)[0];if(e==="meta")return{type:"meta",csfFile:t};let{component:i}=t.meta;if(!i)throw new Error("Attached CSF file does not defined a component, did you forget to export one?");return{type:"component",component:i}}resolveModuleExport(e){let t=this.exportsToCSFFile.get(e);if(t)return{type:"meta",csfFile:t};let i=this.exportToStory.get(e);return i?{type:"story",story:i}:{type:"component",component:e}}resolveOf(e,t=[]){let i;if(["component","meta","story"].includes(e)){let s=e;i=this.resolveAttachedModuleExportType(s)}else i=this.resolveModuleExport(e);if(t.length&&!t.includes(i.type)){let s=i.type==="component"?"component or unknown":i.type;throw new Error(Nt`Invalid value passed to the 'of' prop. The value was resolved to a '${s}' type but the only types for this block are: ${t.join(", ")}. + - Did you pass a component to the 'of' prop when the block only supports a story or a meta? + - ... or vice versa? + - Did you pass a story, CSF file or meta to the 'of' prop that is not indexed, ie. is not targeted by the 'stories' globs in the main configuration?`)}switch(i.type){case"component":return{...i,projectAnnotations:this.projectAnnotations};case"meta":return{...i,preparedMeta:this.store.preparedMetaFromCSFFile({csfFile:i.csfFile})};case"story":default:return i}}};x(NS,"DocsContext");var dd=NS,zS=class{constructor(e,t,i,s){this.channel=e,this.store=t,this.entry=i,this.callbacks=s,this.type="docs",this.subtype="csf",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=i.id}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:e,csfFiles:t=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Ya;let{importPath:i,title:s}=this.entry,n=this.store.processCSFFileWithCache(e,i,s),o=Object.keys(n.stories)[0];this.story=this.store.storyFromCSFFile({storyId:o,csfFile:n}),this.csfFiles=[n,...t],this.preparing=!1}isEqual(e){return!!(this.id===e.id&&this.story&&this.story===e.story)}docsContext(e){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");let t=new dd(this.channel,this.store,e,this.csfFiles);return this.csfFiles.forEach(i=>t.attachCSFFile(i)),t}async renderToElement(e,t){if(!this.story||!this.csfFiles)throw new Error("Cannot render docs before preparing");let i=this.docsContext(t),{docs:s}=this.story.parameters||{};if(!s)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let n=await s.renderer(),{render:o}=n,a=x(async()=>{try{await o(i,s,e),this.channel.emit(Ia,this.id)}catch(l){this.callbacks.showException(l)}},"renderDocs");return this.rerender=async()=>a(),this.teardownRender=async({viewModeChanged:l})=>{!l||!e||n.unmount(e)},a()}async teardown({viewModeChanged:e}={}){this.teardownRender?.({viewModeChanged:e}),this.torndown=!0}};x(zS,"CsfDocsRender");var bv=zS,jS=class{constructor(e,t,i,s){this.channel=e,this.store=t,this.entry=i,this.callbacks=s,this.type="docs",this.subtype="mdx",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=i.id}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:e,csfFiles:t=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Ya;this.csfFiles=t,this.exports=e,this.preparing=!1}isEqual(e){return!!(this.id===e.id&&this.exports&&this.exports===e.exports)}docsContext(e){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");return new dd(this.channel,this.store,e,this.csfFiles)}async renderToElement(e,t){if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw new Error("Cannot render docs before preparing");let i=this.docsContext(t),{docs:s}=this.store.projectAnnotations.parameters||{};if(!s)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let n={...s,page:this.exports.default},o=await s.renderer(),{render:a}=o,l=x(async()=>{try{await a(i,n,e),this.channel.emit(Ia,this.id)}catch(u){this.callbacks.showException(u)}},"renderDocs");return this.rerender=async()=>l(),this.teardownRender=async({viewModeChanged:u}={})=>{!u||!e||(o.unmount(e),this.torndown=!0)},l()}async teardown({viewModeChanged:e}={}){this.teardownRender?.({viewModeChanged:e}),this.torndown=!0}};x(jS,"MdxDocsRender");var vv=jS,eU=globalThis;function US(r){let e=r.composedPath&&r.composedPath()[0]||r.target;return/input|textarea/i.test(e.tagName)||e.getAttribute("contenteditable")!==null}x(US,"focusInInput");var HS="attached-mdx",tU="unattached-mdx";function WS({tags:r}){return r?.includes(tU)||r?.includes(HS)}x(WS,"isMdxEntry");function Fa(r){return r.type==="story"}x(Fa,"isStoryRender");function qS(r){return r.type==="docs"}x(qS,"isDocsRender");function $S(r){return qS(r)&&r.subtype==="csf"}x($S,"isCsfDocsRender");var VS=class extends MS{constructor(e,t,i,s){super(e,t,void 0,!1),this.importFn=e,this.getProjectAnnotations=t,this.selectionStore=i,this.view=s,this.initialize()}setupListeners(){super.setupListeners(),eU.onkeydown=this.onKeydown.bind(this),this.channel.on(E0,this.onSetCurrentStory.bind(this)),this.channel.on(M0,this.onUpdateQueryParams.bind(this)),this.channel.on(C0,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new At({methodName:"setInitialGlobals"});let{globals:e}=this.selectionStore.selectionSpecifier||{};e&&this.storyStoreValue.userGlobals.updateFromPersisted(e),this.emitGlobals()}async initializeWithStoryIndex(e){return await super.initializeWithStoryIndex(e),this.selectSpecifiedStory()}async selectSpecifiedStory(){if(!this.storyStoreValue)throw new At({methodName:"selectSpecifiedStory"});if(this.selectionStore.selection){await this.renderSelection();return}if(!this.selectionStore.selectionSpecifier){this.renderMissingStory();return}let{storySpecifier:e,args:t}=this.selectionStore.selectionSpecifier,i=this.storyStoreValue.storyIndex.entryFromSpecifier(e);if(!i){e==="*"?this.renderStoryLoadingException(e,new Q0):this.renderStoryLoadingException(e,new ev({storySpecifier:e.toString()}));return}let{id:s,type:n}=i;this.selectionStore.setSelection({storyId:s,viewMode:n}),this.channel.emit(L0,this.selectionStore.selection),this.channel.emit(mh,this.selectionStore.selection),await this.renderSelection({persistedArgs:t})}async onGetProjectAnnotationsChanged({getProjectAnnotations:e}){await super.onGetProjectAnnotationsChanged({getProjectAnnotations:e}),this.selectionStore.selection&&this.renderSelection()}async onStoriesChanged({importFn:e,storyIndex:t}){await super.onStoriesChanged({importFn:e,storyIndex:t}),this.selectionStore.selection?await this.renderSelection():await this.selectSpecifiedStory()}onKeydown(e){if(!this.storyRenders.find(t=>t.disableKeyListeners)&&!US(e)){let{altKey:t,ctrlKey:i,metaKey:s,shiftKey:n,key:o,code:a,keyCode:l}=e;this.channel.emit(A0,{event:{altKey:t,ctrlKey:i,metaKey:s,shiftKey:n,key:o,code:a,keyCode:l}})}}async onSetCurrentStory(e){this.selectionStore.setSelection({viewMode:"story",...e}),await this.storeInitializationPromise,this.channel.emit(mh,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(e){this.selectionStore.setQueryParams(e)}async onUpdateGlobals({globals:e}){let t=this.currentRender instanceof Bh&&this.currentRender.story||void 0;super.onUpdateGlobals({globals:e,currentStory:t}),(this.currentRender instanceof vv||this.currentRender instanceof bv)&&await this.currentRender.rerender?.()}async onUpdateArgs({storyId:e,updatedArgs:t}){super.onUpdateArgs({storyId:e,updatedArgs:t})}async onPreloadStories({ids:e}){await this.storeInitializationPromise,this.storyStoreValue&&await Promise.allSettled(e.map(t=>this.storyStoreValue?.loadEntry(t)))}async renderSelection({persistedArgs:e}={}){let{renderToCanvas:t}=this;if(!this.storyStoreValue||!t)throw new At({methodName:"renderSelection"});let{selection:i}=this.selectionStore;if(!i)throw new Error("Cannot call renderSelection as no selection was made");let{storyId:s}=i,n;try{n=await this.storyStoreValue.storyIdToEntry(s)}catch(m){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(s,m);return}let o=this.currentSelection?.storyId!==s,a=this.currentRender?.type!==n.type;n.type==="story"?this.view.showPreparingStory({immediate:a}):this.view.showPreparingDocs({immediate:a}),this.currentRender?.isPreparing()&&await this.teardownRender(this.currentRender);let l;n.type==="story"?l=new Bh(this.channel,this.storyStoreValue,t,this.mainStoryCallbacks(s),s,"story"):WS(n)?l=new vv(this.channel,this.storyStoreValue,n,this.mainStoryCallbacks(s)):l=new bv(this.channel,this.storyStoreValue,n,this.mainStoryCallbacks(s));let u=this.currentSelection;this.currentSelection=i;let c=this.currentRender;this.currentRender=l;try{await l.prepare()}catch(m){c&&await this.teardownRender(c),m!==Ya&&this.renderStoryLoadingException(s,m);return}let g=!o&&c&&!l.isEqual(c);if(e&&Fa(l)&&(Da(!!l.story),this.storyStoreValue.args.updateFromPersisted(l.story,e)),c&&!c.torndown&&!o&&!g&&!a){this.currentRender=c,this.channel.emit(F0,s),this.view.showMain();return}if(c&&await this.teardownRender(c,{viewModeChanged:a}),u&&(o||a)&&this.channel.emit(R0,s),Fa(l)){Da(!!l.story);let{parameters:m,initialArgs:y,argTypes:b,unmappedArgs:C,initialGlobals:A,userGlobals:T,storyGlobals:R,globals:P}=this.storyStoreValue.getStoryContext(l.story);this.channel.emit(O0,{id:s,parameters:m,initialArgs:y,argTypes:b,args:C}),this.channel.emit(Zr,{userGlobals:T,storyGlobals:R,globals:P,initialGlobals:A})}else{let{parameters:m}=this.storyStoreValue.projectAnnotations,{initialGlobals:y,globals:b}=this.storyStoreValue.userGlobals;if(this.channel.emit(Zr,{globals:b,initialGlobals:y,storyGlobals:{},userGlobals:b}),$S(l)||l.entry.tags?.includes(HS)){if(!l.csfFiles)throw new K0({storyId:s});({parameters:m}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:l.csfFiles[0]}))}this.channel.emit(v0,{id:s,parameters:m})}Fa(l)?(Da(!!l.story),this.storyRenders.push(l),this.currentRender.renderToElement(this.view.prepareForStory(l.story))):this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))}async teardownRender(e,{viewModeChanged:t=!1}={}){this.storyRenders=this.storyRenders.filter(i=>i!==e),await e?.teardown?.({viewModeChanged:t})}mainStoryCallbacks(e){return{showStoryDuringRender:x(()=>this.view.showStoryDuringRender(),"showStoryDuringRender"),showMain:x(()=>this.view.showMain(),"showMain"),showError:x(t=>this.renderError(e,t),"showError"),showException:x(t=>this.renderException(e,t),"showException")}}renderPreviewEntryError(e,t){super.renderPreviewEntryError(e,t),this.view.showErrorDisplay(t)}renderMissingStory(){this.view.showNoPreview(),this.channel.emit(yh)}renderStoryLoadingException(e,t){Pe.error(t),this.view.showErrorDisplay(t),this.channel.emit(yh,e)}renderException(e,t){let{name:i="Error",message:s=String(t),stack:n}=t;this.channel.emit(D0,{name:i,message:s,stack:n}),this.channel.emit(Ui,{newPhase:"errored",storyId:e}),this.view.showErrorDisplay(t),Pe.error(`Error rendering story '${e}':`),Pe.error(t)}renderError(e,{title:t,description:i}){Pe.error(`Error rendering story ${t}: ${i}`),this.channel.emit(P0,{title:t,description:i}),this.channel.emit(Ui,{newPhase:"errored",storyId:e}),this.view.showErrorDisplay({message:t,stack:i})}};x(VS,"PreviewWithSelection");var rU=VS,Mh=bt(rd(),1),iU=bt(Qh(),1),sU=bt(rd(),1),Sv=/^[a-zA-Z0-9 _-]*$/,GS=/^-?[0-9]+(\.[0-9]+)?$/,nU=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,YS=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,Nh=x((r="",e)=>r===null||r===""||!Sv.test(r)?!1:e==null||e instanceof Date||typeof e=="number"||typeof e=="boolean"?!0:typeof e=="string"?Sv.test(e)||GS.test(e)||nU.test(e)||YS.test(e):Array.isArray(e)?e.every(t=>Nh(r,t)):(0,iU.default)(e)?Object.entries(e).every(([t,i])=>Nh(t,i)):!1,"validateArgs"),oU={delimiter:";",allowDots:!0,allowSparse:!0,decoder(r,e,t,i){if(i==="value"&&r.startsWith("!")){if(r==="!undefined")return;if(r==="!null")return null;if(r==="!true")return!0;if(r==="!false")return!1;if(r.startsWith("!date(")&&r.endsWith(")"))return new Date(r.slice(6,-1));if(r.startsWith("!hex(")&&r.endsWith(")"))return`#${r.slice(5,-1)}`;let s=r.slice(1).match(YS);if(s)return r.startsWith("!rgba")?`${s[1]}(${s[2]}, ${s[3]}, ${s[4]}, ${s[5]})`:r.startsWith("!hsla")?`${s[1]}(${s[2]}, ${s[3]}%, ${s[4]}%, ${s[5]})`:r.startsWith("!rgb")?`${s[1]}(${s[2]}, ${s[3]}, ${s[4]})`:`${s[1]}(${s[2]}, ${s[3]}%, ${s[4]}%)`}return i==="value"&&GS.test(r)?Number(r):e(r,e,t)}},wv=x(r=>{let e=r.split(";").map(t=>t.replace("=","~").replace(":","="));return Object.entries(sU.default.parse(e.join(";"),oU)).reduce((t,[i,s])=>Nh(i,s)?Object.assign(t,{[i]:s}):(Br.warn(Nt` + Omitted potentially unsafe URL args. + + More info: https://storybook.js.org/docs/react/writing-stories/args#setting-args-through-the-url + `),t),{})},"parseArgsParam"),{history:XS,document:dr}=it;function KS(r){let e=(r||"").match(/^\/story\/(.+)/);if(!e)throw new Error(`Invalid path '${r}', must start with '/story/'`);return e[1]}x(KS,"pathToId");var JS=x(({selection:r,extraParams:e})=>{let t=typeof dr<"u"?dr.location.search:"",{path:i,selectedKind:s,selectedStory:n,...o}=Mh.default.parse(t,{ignoreQueryPrefix:!0});return Mh.default.stringify({...o,...e,...r&&{id:r.storyId,viewMode:r.viewMode}},{encode:!1,addQueryPrefix:!0})},"getQueryString"),aU=x(r=>{if(!r)return;let e=JS({selection:r}),{hash:t=""}=dr.location;dr.title=r.storyId,XS.replaceState({},"",`${dr.location.pathname}${e}${t}`)},"setPath"),lU=x(r=>r!=null&&typeof r=="object"&&Array.isArray(r)===!1,"isObject"),fn=x(r=>{if(r!==void 0){if(typeof r=="string")return r;if(Array.isArray(r))return fn(r[0]);if(lU(r))return fn(Object.values(r).filter(Boolean))}},"getFirstString"),uU=x(()=>{if(typeof dr<"u"){let r=Mh.default.parse(dr.location.search,{ignoreQueryPrefix:!0}),e=typeof r.args=="string"?wv(r.args):void 0,t=typeof r.globals=="string"?wv(r.globals):void 0,i=fn(r.viewMode);(typeof i!="string"||!i.match(/docs|story/))&&(i="story");let s=fn(r.path),n=s?KS(s):fn(r.id);if(n)return{storySpecifier:n,args:e,globals:t,viewMode:i}}return null},"getSelectionSpecifierFromPath"),QS=class{constructor(){this.selectionSpecifier=uU()}setSelection(e){this.selection=e,aU(this.selection)}setQueryParams(e){let t=JS({extraParams:e}),{hash:i=""}=dr.location;XS.replaceState({},"",`${dr.location.pathname}${t}${i}`)}};x(QS,"UrlStore");var cU=QS,hU=bt(oj(),1),dU=bt(rd(),1),{document:ft}=it,Tv=100,ZS=(r=>(r.MAIN="MAIN",r.NOPREVIEW="NOPREVIEW",r.PREPARING_STORY="PREPARING_STORY",r.PREPARING_DOCS="PREPARING_DOCS",r.ERROR="ERROR",r))(ZS||{}),Ch={PREPARING_STORY:"sb-show-preparing-story",PREPARING_DOCS:"sb-show-preparing-docs",MAIN:"sb-show-main",NOPREVIEW:"sb-show-nopreview",ERROR:"sb-show-errordisplay"},Ah={centered:"sb-main-centered",fullscreen:"sb-main-fullscreen",padded:"sb-main-padded"},Cv=new hU.default({escapeXML:!0}),ew=class{constructor(){if(this.testing=!1,typeof ft<"u"){let{__SPECIAL_TEST_PARAMETER__:e}=dU.default.parse(ft.location.search,{ignoreQueryPrefix:!0});switch(e){case"preparing-story":{this.showPreparingStory(),this.testing=!0;break}case"preparing-docs":{this.showPreparingDocs(),this.testing=!0;break}default:}}}prepareForStory(e){return this.showStory(),this.applyLayout(e.parameters.layout),ft.documentElement.scrollTop=0,ft.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return ft.getElementById("storybook-root")}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout("fullscreen"),ft.documentElement.scrollTop=0,ft.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return ft.getElementById("storybook-docs")}applyLayout(e="padded"){if(e==="none"){ft.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(e);let t=Ah[e];ft.body.classList.remove(this.currentLayoutClass),ft.body.classList.add(t),this.currentLayoutClass=t}checkIfLayoutExists(e){Ah[e]||Pe.warn(Nt` + The desired layout: ${e} is not a valid option. + The possible options are: ${Object.keys(Ah).join(", ")}, none. + `)}showMode(e){clearTimeout(this.preparingTimeout),Object.keys(ZS).forEach(t=>{t===e?ft.body.classList.add(Ch[t]):ft.body.classList.remove(Ch[t])})}showErrorDisplay({message:e="",stack:t=""}){let i=e,s=t,n=e.split(` +`);n.length>1&&([i]=n,s=n.slice(1).join(` +`).replace(/^\n/,"")),ft.getElementById("error-message").innerHTML=Cv.toHtml(i),ft.getElementById("error-stack").innerHTML=Cv.toHtml(s),this.showMode("ERROR")}showNoPreview(){this.testing||(this.showMode("NOPREVIEW"),this.storyRoot()?.setAttribute("hidden","true"),this.docsRoot()?.setAttribute("hidden","true"))}showPreparingStory({immediate:e=!1}={}){clearTimeout(this.preparingTimeout),e?this.showMode("PREPARING_STORY"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_STORY"),Tv)}showPreparingDocs({immediate:e=!1}={}){clearTimeout(this.preparingTimeout),e?this.showMode("PREPARING_DOCS"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_DOCS"),Tv)}showMain(){this.showMode("MAIN")}showDocs(){this.storyRoot().setAttribute("hidden","true"),this.docsRoot().removeAttribute("hidden")}showStory(){this.docsRoot().setAttribute("hidden","true"),this.storyRoot().removeAttribute("hidden")}showStoryDuringRender(){ft.body.classList.add(Ch.MAIN)}};x(ew,"WebView");var pU=ew,fU=class extends rU{constructor(e,t){super(e,t,new cU,new pU),this.importFn=e,this.getProjectAnnotations=t,it.__STORYBOOK_PREVIEW__=this}};x(fU,"PreviewWeb");var{document:ti}=it,gU=["application/javascript","application/ecmascript","application/x-ecmascript","application/x-javascript","text/ecmascript","text/javascript","text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-ecmascript","text/x-javascript","module"],mU="script",Av="scripts-root";function zh(){let r=ti.createEvent("Event");r.initEvent("DOMContentLoaded",!0,!0),ti.dispatchEvent(r)}x(zh,"simulateDOMContentLoaded");function tw(r,e,t){let i=ti.createElement("script");i.type=r.type==="module"?"module":"text/javascript",r.src?(i.onload=e,i.onerror=e,i.src=r.src):i.textContent=r.innerText,t?t.appendChild(i):ti.head.appendChild(i),r.parentNode.removeChild(r),r.src||e()}x(tw,"insertScript");function pd(r,e,t=0){r[t](()=>{t++,t===r.length?e():pd(r,e,t)})}x(pd,"insertScriptsSequentially");function _U(r){let e=ti.getElementById(Av);e?e.innerHTML="":(e=ti.createElement("div"),e.id=Av,ti.body.appendChild(e));let t=Array.from(r.querySelectorAll(mU));if(t.length){let i=[];t.forEach(s=>{let n=s.getAttribute("type");(!n||gU.includes(n))&&i.push(o=>tw(s,o,e))}),i.length&&pd(i,zh,void 0)}else zh()}x(_U,"simulatePageLoad");h();d();p();h();d();p();var Xi=ye(iw(),1);var yU=Object.create,fd=Object.defineProperty,xU=Object.getOwnPropertyDescriptor,bU=Object.getOwnPropertyNames,vU=Object.getPrototypeOf,SU=Object.prototype.hasOwnProperty,M=(r,e)=>fd(r,"name",{value:e,configurable:!0}),X=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),wU=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of bU(e))!SU.call(r,s)&&s!==t&&fd(r,s,{get:()=>e[s],enumerable:!(i=xU(e,s))||i.enumerable});return r},TU=(r,e,t)=>(t=r!=null?yU(vU(r)):{},wU(e||!r||!r.__esModule?fd(t,"default",{value:r,enumerable:!0}):t,r)),sw=X((r,e)=>{var t=typeof window=="object"&&window&&window.Object===Object&&window;e.exports=t}),mr=X((r,e)=>{var t=sw(),i=typeof self=="object"&&self&&self.Object===Object&&self,s=t||i||Function("return this")();e.exports=s}),Ka=X((r,e)=>{var t=mr(),i=t.Symbol;e.exports=i}),CU=X((r,e)=>{var t=Ka(),i=Object.prototype,s=i.hasOwnProperty,n=i.toString,o=t?t.toStringTag:void 0;function a(l){var u=s.call(l,o),c=l[o];try{l[o]=void 0;var g=!0}catch{}var m=n.call(l);return g&&(u?l[o]=c:delete l[o]),m}M(a,"getRawTag"),e.exports=a}),AU=X((r,e)=>{var t=Object.prototype,i=t.toString;function s(n){return i.call(n)}M(s,"objectToString"),e.exports=s}),Cn=X((r,e)=>{var t=Ka(),i=CU(),s=AU(),n="[object Null]",o="[object Undefined]",a=t?t.toStringTag:void 0;function l(u){return u==null?u===void 0?o:n:a&&a in Object(u)?i(u):s(u)}M(l,"baseGetTag"),e.exports=l}),gd=X((r,e)=>{function t(i){var s=typeof i;return i!=null&&(s=="object"||s=="function")}M(t,"isObject"),e.exports=t}),nw=X((r,e)=>{var t=Cn(),i=gd(),s="[object AsyncFunction]",n="[object Function]",o="[object GeneratorFunction]",a="[object Proxy]";function l(u){if(!i(u))return!1;var c=t(u);return c==n||c==o||c==s||c==a}M(l,"isFunction"),e.exports=l}),EU=X((r,e)=>{var t=mr(),i=t["__core-js_shared__"];e.exports=i}),IU=X((r,e)=>{var t=EU(),i=function(){var n=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function s(n){return!!i&&i in n}M(s,"isMasked"),e.exports=s}),ow=X((r,e)=>{var t=Function.prototype,i=t.toString;function s(n){if(n!=null){try{return i.call(n)}catch{}try{return n+""}catch{}}return""}M(s,"toSource"),e.exports=s}),RU=X((r,e)=>{var t=nw(),i=IU(),s=gd(),n=ow(),o=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,g=u.hasOwnProperty,m=RegExp("^"+c.call(g).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function y(b){if(!s(b)||i(b))return!1;var C=t(b)?m:a;return C.test(n(b))}M(y,"baseIsNative"),e.exports=y}),PU=X((r,e)=>{function t(i,s){return i?.[s]}M(t,"getValue"),e.exports=t}),ni=X((r,e)=>{var t=RU(),i=PU();function s(n,o){var a=i(n,o);return t(a)?a:void 0}M(s,"getNative"),e.exports=s}),kU=X((r,e)=>{var t=ni(),i=function(){try{var s=t(Object,"defineProperty");return s({},"",{}),s}catch{}}();e.exports=i}),OU=X((r,e)=>{var t=kU();function i(s,n,o){n=="__proto__"&&t?t(s,n,{configurable:!0,enumerable:!0,value:o,writable:!0}):s[n]=o}M(i,"baseAssignValue"),e.exports=i}),LU=X((r,e)=>{function t(i){return function(s,n,o){for(var a=-1,l=Object(s),u=o(s),c=u.length;c--;){var g=u[i?c:++a];if(n(l[g],g,l)===!1)break}return s}}M(t,"createBaseFor"),e.exports=t}),DU=X((r,e)=>{var t=LU(),i=t();e.exports=i}),FU=X((r,e)=>{function t(i,s){for(var n=-1,o=Array(i);++n{function t(i){return i!=null&&typeof i=="object"}M(t,"isObjectLike"),e.exports=t}),BU=X((r,e)=>{var t=Cn(),i=An(),s="[object Arguments]";function n(o){return i(o)&&t(o)==s}M(n,"baseIsArguments"),e.exports=n}),aw=X((r,e)=>{var t=BU(),i=An(),s=Object.prototype,n=s.hasOwnProperty,o=s.propertyIsEnumerable,a=t(function(){return arguments}())?t:function(l){return i(l)&&n.call(l,"callee")&&!o.call(l,"callee")};e.exports=a}),jr=X((r,e)=>{var t=Array.isArray;e.exports=t}),MU=X((r,e)=>{function t(){return!1}M(t,"stubFalse"),e.exports=t}),lw=X((r,e)=>{var t=mr(),i=MU(),s=typeof r=="object"&&r&&!r.nodeType&&r,n=s&&typeof e=="object"&&e&&!e.nodeType&&e,o=n&&n.exports===s,a=o?t.Buffer:void 0,l=a?a.isBuffer:void 0,u=l||i;e.exports=u}),uw=X((r,e)=>{var t=9007199254740991,i=/^(?:0|[1-9]\d*)$/;function s(n,o){var a=typeof n;return o=o??t,!!o&&(a=="number"||a!="symbol"&&i.test(n))&&n>-1&&n%1==0&&n{var t=9007199254740991;function i(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=t}M(i,"isLength"),e.exports=i}),NU=X((r,e)=>{var t=Cn(),i=md(),s=An(),n="[object Arguments]",o="[object Array]",a="[object Boolean]",l="[object Date]",u="[object Error]",c="[object Function]",g="[object Map]",m="[object Number]",y="[object Object]",b="[object RegExp]",C="[object Set]",A="[object String]",T="[object WeakMap]",R="[object ArrayBuffer]",P="[object DataView]",E="[object Float32Array]",k="[object Float64Array]",O="[object Int8Array]",B="[object Int16Array]",F="[object Int32Array]",U="[object Uint8Array]",q="[object Uint8ClampedArray]",ee="[object Uint16Array]",te="[object Uint32Array]",$={};$[E]=$[k]=$[O]=$[B]=$[F]=$[U]=$[q]=$[ee]=$[te]=!0,$[n]=$[o]=$[R]=$[a]=$[P]=$[l]=$[u]=$[c]=$[g]=$[m]=$[y]=$[b]=$[C]=$[A]=$[T]=!1;function D(N){return s(N)&&i(N.length)&&!!$[t(N)]}M(D,"baseIsTypedArray"),e.exports=D}),zU=X((r,e)=>{function t(i){return function(s){return i(s)}}M(t,"baseUnary"),e.exports=t}),jU=X((r,e)=>{var t=sw(),i=typeof r=="object"&&r&&!r.nodeType&&r,s=i&&typeof e=="object"&&e&&!e.nodeType&&e,n=s&&s.exports===i,o=n&&t.process,a=function(){try{var l=s&&s.require&&s.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=a}),cw=X((r,e)=>{var t=NU(),i=zU(),s=jU(),n=s&&s.isTypedArray,o=n?i(n):t;e.exports=o}),UU=X((r,e)=>{var t=FU(),i=aw(),s=jr(),n=lw(),o=uw(),a=cw(),l=Object.prototype,u=l.hasOwnProperty;function c(g,m){var y=s(g),b=!y&&i(g),C=!y&&!b&&n(g),A=!y&&!b&&!C&&a(g),T=y||b||C||A,R=T?t(g.length,String):[],P=R.length;for(var E in g)(m||u.call(g,E))&&!(T&&(E=="length"||C&&(E=="offset"||E=="parent")||A&&(E=="buffer"||E=="byteLength"||E=="byteOffset")||o(E,P)))&&R.push(E);return R}M(c,"arrayLikeKeys"),e.exports=c}),HU=X((r,e)=>{var t=Object.prototype;function i(s){var n=s&&s.constructor,o=typeof n=="function"&&n.prototype||t;return s===o}M(i,"isPrototype"),e.exports=i}),WU=X((r,e)=>{function t(i,s){return function(n){return i(s(n))}}M(t,"overArg"),e.exports=t}),qU=X((r,e)=>{var t=WU(),i=t(Object.keys,Object);e.exports=i}),$U=X((r,e)=>{var t=HU(),i=qU(),s=Object.prototype,n=s.hasOwnProperty;function o(a){if(!t(a))return i(a);var l=[];for(var u in Object(a))n.call(a,u)&&u!="constructor"&&l.push(u);return l}M(o,"baseKeys"),e.exports=o}),VU=X((r,e)=>{var t=nw(),i=md();function s(n){return n!=null&&i(n.length)&&!t(n)}M(s,"isArrayLike"),e.exports=s}),_d=X((r,e)=>{var t=UU(),i=$U(),s=VU();function n(o){return s(o)?t(o):i(o)}M(n,"keys"),e.exports=n}),GU=X((r,e)=>{var t=DU(),i=_d();function s(n,o){return n&&t(n,o,i)}M(s,"baseForOwn"),e.exports=s}),YU=X((r,e)=>{function t(){this.__data__=[],this.size=0}M(t,"listCacheClear"),e.exports=t}),hw=X((r,e)=>{function t(i,s){return i===s||i!==i&&s!==s}M(t,"eq"),e.exports=t}),Ja=X((r,e)=>{var t=hw();function i(s,n){for(var o=s.length;o--;)if(t(s[o][0],n))return o;return-1}M(i,"assocIndexOf"),e.exports=i}),XU=X((r,e)=>{var t=Ja(),i=Array.prototype,s=i.splice;function n(o){var a=this.__data__,l=t(a,o);if(l<0)return!1;var u=a.length-1;return l==u?a.pop():s.call(a,l,1),--this.size,!0}M(n,"listCacheDelete"),e.exports=n}),KU=X((r,e)=>{var t=Ja();function i(s){var n=this.__data__,o=t(n,s);return o<0?void 0:n[o][1]}M(i,"listCacheGet"),e.exports=i}),JU=X((r,e)=>{var t=Ja();function i(s){return t(this.__data__,s)>-1}M(i,"listCacheHas"),e.exports=i}),QU=X((r,e)=>{var t=Ja();function i(s,n){var o=this.__data__,a=t(o,s);return a<0?(++this.size,o.push([s,n])):o[a][1]=n,this}M(i,"listCacheSet"),e.exports=i}),Qa=X((r,e)=>{var t=YU(),i=XU(),s=KU(),n=JU(),o=QU();function a(l){var u=-1,c=l==null?0:l.length;for(this.clear();++u{var t=Qa();function i(){this.__data__=new t,this.size=0}M(i,"stackClear"),e.exports=i}),e4=X((r,e)=>{function t(i){var s=this.__data__,n=s.delete(i);return this.size=s.size,n}M(t,"stackDelete"),e.exports=t}),t4=X((r,e)=>{function t(i){return this.__data__.get(i)}M(t,"stackGet"),e.exports=t}),r4=X((r,e)=>{function t(i){return this.__data__.has(i)}M(t,"stackHas"),e.exports=t}),yd=X((r,e)=>{var t=ni(),i=mr(),s=t(i,"Map");e.exports=s}),Za=X((r,e)=>{var t=ni(),i=t(Object,"create");e.exports=i}),i4=X((r,e)=>{var t=Za();function i(){this.__data__=t?t(null):{},this.size=0}M(i,"hashClear"),e.exports=i}),s4=X((r,e)=>{function t(i){var s=this.has(i)&&delete this.__data__[i];return this.size-=s?1:0,s}M(t,"hashDelete"),e.exports=t}),n4=X((r,e)=>{var t=Za(),i="__lodash_hash_undefined__",s=Object.prototype,n=s.hasOwnProperty;function o(a){var l=this.__data__;if(t){var u=l[a];return u===i?void 0:u}return n.call(l,a)?l[a]:void 0}M(o,"hashGet"),e.exports=o}),o4=X((r,e)=>{var t=Za(),i=Object.prototype,s=i.hasOwnProperty;function n(o){var a=this.__data__;return t?a[o]!==void 0:s.call(a,o)}M(n,"hashHas"),e.exports=n}),a4=X((r,e)=>{var t=Za(),i="__lodash_hash_undefined__";function s(n,o){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=t&&o===void 0?i:o,this}M(s,"hashSet"),e.exports=s}),l4=X((r,e)=>{var t=i4(),i=s4(),s=n4(),n=o4(),o=a4();function a(l){var u=-1,c=l==null?0:l.length;for(this.clear();++u{var t=l4(),i=Qa(),s=yd();function n(){this.size=0,this.__data__={hash:new t,map:new(s||i),string:new t}}M(n,"mapCacheClear"),e.exports=n}),c4=X((r,e)=>{function t(i){var s=typeof i;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?i!=="__proto__":i===null}M(t,"isKeyable"),e.exports=t}),el=X((r,e)=>{var t=c4();function i(s,n){var o=s.__data__;return t(n)?o[typeof n=="string"?"string":"hash"]:o.map}M(i,"getMapData"),e.exports=i}),h4=X((r,e)=>{var t=el();function i(s){var n=t(this,s).delete(s);return this.size-=n?1:0,n}M(i,"mapCacheDelete"),e.exports=i}),d4=X((r,e)=>{var t=el();function i(s){return t(this,s).get(s)}M(i,"mapCacheGet"),e.exports=i}),p4=X((r,e)=>{var t=el();function i(s){return t(this,s).has(s)}M(i,"mapCacheHas"),e.exports=i}),f4=X((r,e)=>{var t=el();function i(s,n){var o=t(this,s),a=o.size;return o.set(s,n),this.size+=o.size==a?0:1,this}M(i,"mapCacheSet"),e.exports=i}),xd=X((r,e)=>{var t=u4(),i=h4(),s=d4(),n=p4(),o=f4();function a(l){var u=-1,c=l==null?0:l.length;for(this.clear();++u{var t=Qa(),i=yd(),s=xd(),n=200;function o(a,l){var u=this.__data__;if(u instanceof t){var c=u.__data__;if(!i||c.length{var t=Qa(),i=ZU(),s=e4(),n=t4(),o=r4(),a=g4();function l(u){var c=this.__data__=new t(u);this.size=c.size}M(l,"Stack"),l.prototype.clear=i,l.prototype.delete=s,l.prototype.get=n,l.prototype.has=o,l.prototype.set=a,e.exports=l}),m4=X((r,e)=>{var t="__lodash_hash_undefined__";function i(s){return this.__data__.set(s,t),this}M(i,"setCacheAdd"),e.exports=i}),_4=X((r,e)=>{function t(i){return this.__data__.has(i)}M(t,"setCacheHas"),e.exports=t}),y4=X((r,e)=>{var t=xd(),i=m4(),s=_4();function n(o){var a=-1,l=o==null?0:o.length;for(this.__data__=new t;++a{function t(i,s){for(var n=-1,o=i==null?0:i.length;++n{function t(i,s){return i.has(s)}M(t,"cacheHas"),e.exports=t}),pw=X((r,e)=>{var t=y4(),i=x4(),s=b4(),n=1,o=2;function a(l,u,c,g,m,y){var b=c&n,C=l.length,A=u.length;if(C!=A&&!(b&&A>C))return!1;var T=y.get(l),R=y.get(u);if(T&&R)return T==u&&R==l;var P=-1,E=!0,k=c&o?new t:void 0;for(y.set(l,u),y.set(u,l);++P{var t=mr(),i=t.Uint8Array;e.exports=i}),S4=X((r,e)=>{function t(i){var s=-1,n=Array(i.size);return i.forEach(function(o,a){n[++s]=[a,o]}),n}M(t,"mapToArray"),e.exports=t}),w4=X((r,e)=>{function t(i){var s=-1,n=Array(i.size);return i.forEach(function(o){n[++s]=o}),n}M(t,"setToArray"),e.exports=t}),T4=X((r,e)=>{var t=Ka(),i=v4(),s=hw(),n=pw(),o=S4(),a=w4(),l=1,u=2,c="[object Boolean]",g="[object Date]",m="[object Error]",y="[object Map]",b="[object Number]",C="[object RegExp]",A="[object Set]",T="[object String]",R="[object Symbol]",P="[object ArrayBuffer]",E="[object DataView]",k=t?t.prototype:void 0,O=k?k.valueOf:void 0;function B(F,U,q,ee,te,$,D){switch(q){case E:if(F.byteLength!=U.byteLength||F.byteOffset!=U.byteOffset)return!1;F=F.buffer,U=U.buffer;case P:return!(F.byteLength!=U.byteLength||!$(new i(F),new i(U)));case c:case g:case b:return s(+F,+U);case m:return F.name==U.name&&F.message==U.message;case C:case T:return F==U+"";case y:var N=o;case A:var G=ee&l;if(N||(N=a),F.size!=U.size&&!G)return!1;var Q=D.get(F);if(Q)return Q==U;ee|=u,D.set(F,U);var ne=n(N(F),N(U),ee,te,$,D);return D.delete(F),ne;case R:if(O)return O.call(F)==O.call(U)}return!1}M(B,"equalByTag"),e.exports=B}),C4=X((r,e)=>{function t(i,s){for(var n=-1,o=s.length,a=i.length;++n{var t=C4(),i=jr();function s(n,o,a){var l=o(n);return i(n)?l:t(l,a(n))}M(s,"baseGetAllKeys"),e.exports=s}),E4=X((r,e)=>{function t(i,s){for(var n=-1,o=i==null?0:i.length,a=0,l=[];++n{function t(){return[]}M(t,"stubArray"),e.exports=t}),R4=X((r,e)=>{var t=E4(),i=I4(),s=Object.prototype,n=s.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(l){return l==null?[]:(l=Object(l),t(o(l),function(u){return n.call(l,u)}))}:i;e.exports=a}),P4=X((r,e)=>{var t=A4(),i=R4(),s=_d();function n(o){return t(o,s,i)}M(n,"getAllKeys"),e.exports=n}),k4=X((r,e)=>{var t=P4(),i=1,s=Object.prototype,n=s.hasOwnProperty;function o(a,l,u,c,g,m){var y=u&i,b=t(a),C=b.length,A=t(l),T=A.length;if(C!=T&&!y)return!1;for(var R=C;R--;){var P=b[R];if(!(y?P in l:n.call(l,P)))return!1}var E=m.get(a),k=m.get(l);if(E&&k)return E==l&&k==a;var O=!0;m.set(a,l),m.set(l,a);for(var B=y;++R{var t=ni(),i=mr(),s=t(i,"DataView");e.exports=s}),L4=X((r,e)=>{var t=ni(),i=mr(),s=t(i,"Promise");e.exports=s}),D4=X((r,e)=>{var t=ni(),i=mr(),s=t(i,"Set");e.exports=s}),F4=X((r,e)=>{var t=ni(),i=mr(),s=t(i,"WeakMap");e.exports=s}),B4=X((r,e)=>{var t=O4(),i=yd(),s=L4(),n=D4(),o=F4(),a=Cn(),l=ow(),u="[object Map]",c="[object Object]",g="[object Promise]",m="[object Set]",y="[object WeakMap]",b="[object DataView]",C=l(t),A=l(i),T=l(s),R=l(n),P=l(o),E=a;(t&&E(new t(new ArrayBuffer(1)))!=b||i&&E(new i)!=u||s&&E(s.resolve())!=g||n&&E(new n)!=m||o&&E(new o)!=y)&&(E=M(function(k){var O=a(k),B=O==c?k.constructor:void 0,F=B?l(B):"";if(F)switch(F){case C:return b;case A:return u;case T:return g;case R:return m;case P:return y}return O},"getTag")),e.exports=E}),M4=X((r,e)=>{var t=dw(),i=pw(),s=T4(),n=k4(),o=B4(),a=jr(),l=lw(),u=cw(),c=1,g="[object Arguments]",m="[object Array]",y="[object Object]",b=Object.prototype,C=b.hasOwnProperty;function A(T,R,P,E,k,O){var B=a(T),F=a(R),U=B?m:o(T),q=F?m:o(R);U=U==g?y:U,q=q==g?y:q;var ee=U==y,te=q==y,$=U==q;if($&&l(T)){if(!l(R))return!1;B=!0,ee=!1}if($&&!ee)return O||(O=new t),B||u(T)?i(T,R,P,E,k,O):s(T,R,U,P,E,k,O);if(!(P&c)){var D=ee&&C.call(T,"__wrapped__"),N=te&&C.call(R,"__wrapped__");if(D||N){var G=D?T.value():T,Q=N?R.value():R;return O||(O=new t),k(G,Q,P,E,O)}}return $?(O||(O=new t),n(T,R,P,E,k,O)):!1}M(A,"baseIsEqualDeep"),e.exports=A}),fw=X((r,e)=>{var t=M4(),i=An();function s(n,o,a,l,u){return n===o?!0:n==null||o==null||!i(n)&&!i(o)?n!==n&&o!==o:t(n,o,a,l,s,u)}M(s,"baseIsEqual"),e.exports=s}),N4=X((r,e)=>{var t=dw(),i=fw(),s=1,n=2;function o(a,l,u,c){var g=u.length,m=g,y=!c;if(a==null)return!m;for(a=Object(a);g--;){var b=u[g];if(y&&b[2]?b[1]!==a[b[0]]:!(b[0]in a))return!1}for(;++g{var t=gd();function i(s){return s===s&&!t(s)}M(i,"isStrictComparable"),e.exports=i}),z4=X((r,e)=>{var t=gw(),i=_d();function s(n){for(var o=i(n),a=o.length;a--;){var l=o[a],u=n[l];o[a]=[l,u,t(u)]}return o}M(s,"getMatchData"),e.exports=s}),mw=X((r,e)=>{function t(i,s){return function(n){return n==null?!1:n[i]===s&&(s!==void 0||i in Object(n))}}M(t,"matchesStrictComparable"),e.exports=t}),j4=X((r,e)=>{var t=N4(),i=z4(),s=mw();function n(o){var a=i(o);return a.length==1&&a[0][2]?s(a[0][0],a[0][1]):function(l){return l===o||t(l,o,a)}}M(n,"baseMatches"),e.exports=n}),bd=X((r,e)=>{var t=Cn(),i=An(),s="[object Symbol]";function n(o){return typeof o=="symbol"||i(o)&&t(o)==s}M(n,"isSymbol"),e.exports=n}),vd=X((r,e)=>{var t=jr(),i=bd(),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function o(a,l){if(t(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||i(a)?!0:n.test(a)||!s.test(a)||l!=null&&a in Object(l)}M(o,"isKey"),e.exports=o}),U4=X((r,e)=>{var t=xd(),i="Expected a function";function s(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new TypeError(i);var a=M(function(){var l=arguments,u=o?o.apply(this,l):l[0],c=a.cache;if(c.has(u))return c.get(u);var g=n.apply(this,l);return a.cache=c.set(u,g)||c,g},"memoized");return a.cache=new(s.Cache||t),a}M(s,"memoize"),s.Cache=t,e.exports=s}),H4=X((r,e)=>{var t=U4(),i=500;function s(n){var o=t(n,function(l){return a.size===i&&a.clear(),l}),a=o.cache;return o}M(s,"memoizeCapped"),e.exports=s}),W4=X((r,e)=>{var t=H4(),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,n=t(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(i,function(l,u,c,g){a.push(c?g.replace(s,"$1"):u||l)}),a});e.exports=n}),q4=X((r,e)=>{function t(i,s){for(var n=-1,o=i==null?0:i.length,a=Array(o);++n{var t=Ka(),i=q4(),s=jr(),n=bd(),o=1/0,a=t?t.prototype:void 0,l=a?a.toString:void 0;function u(c){if(typeof c=="string")return c;if(s(c))return i(c,u)+"";if(n(c))return l?l.call(c):"";var g=c+"";return g=="0"&&1/c==-o?"-0":g}M(u,"baseToString"),e.exports=u}),V4=X((r,e)=>{var t=$4();function i(s){return s==null?"":t(s)}M(i,"toString"),e.exports=i}),_w=X((r,e)=>{var t=jr(),i=vd(),s=W4(),n=V4();function o(a,l){return t(a)?a:i(a,l)?[a]:s(n(a))}M(o,"castPath"),e.exports=o}),tl=X((r,e)=>{var t=bd(),i=1/0;function s(n){if(typeof n=="string"||t(n))return n;var o=n+"";return o=="0"&&1/n==-i?"-0":o}M(s,"toKey"),e.exports=s}),yw=X((r,e)=>{var t=_w(),i=tl();function s(n,o){o=t(o,n);for(var a=0,l=o.length;n!=null&&a{var t=yw();function i(s,n,o){var a=s==null?void 0:t(s,n);return a===void 0?o:a}M(i,"get"),e.exports=i}),Y4=X((r,e)=>{function t(i,s){return i!=null&&s in Object(i)}M(t,"baseHasIn"),e.exports=t}),X4=X((r,e)=>{var t=_w(),i=aw(),s=jr(),n=uw(),o=md(),a=tl();function l(u,c,g){c=t(c,u);for(var m=-1,y=c.length,b=!1;++m{var t=Y4(),i=X4();function s(n,o){return n!=null&&i(n,o,t)}M(s,"hasIn"),e.exports=s}),J4=X((r,e)=>{var t=fw(),i=G4(),s=K4(),n=vd(),o=gw(),a=mw(),l=tl(),u=1,c=2;function g(m,y){return n(m)&&o(y)?a(l(m),y):function(b){var C=i(b,m);return C===void 0&&C===y?s(b,m):t(y,C,u|c)}}M(g,"baseMatchesProperty"),e.exports=g}),Q4=X((r,e)=>{function t(i){return i}M(t,"identity"),e.exports=t}),Z4=X((r,e)=>{function t(i){return function(s){return s?.[i]}}M(t,"baseProperty"),e.exports=t}),eH=X((r,e)=>{var t=yw();function i(s){return function(n){return t(n,s)}}M(i,"basePropertyDeep"),e.exports=i}),tH=X((r,e)=>{var t=Z4(),i=eH(),s=vd(),n=tl();function o(a){return s(a)?t(n(a)):i(a)}M(o,"property"),e.exports=o}),rH=X((r,e)=>{var t=j4(),i=J4(),s=Q4(),n=jr(),o=tH();function a(l){return typeof l=="function"?l:l==null?s:typeof l=="object"?n(l)?i(l[0],l[1]):t(l):o(l)}M(a,"baseIteratee"),e.exports=a}),iH=X((r,e)=>{var t=OU(),i=GU(),s=rH();function n(o,a){var l={};return a=s(a,3),i(o,function(u,c,g){t(l,c,a(u,c,g))}),l}M(n,"mapValues"),e.exports=n}),sH=M(r=>r.name==="literal","isLiteral"),nH=M(r=>r.value.replace(/['|"]/g,""),"toEnumOption"),oH=M(r=>{switch(r.type){case"function":return{name:"function"};case"object":let e={};return r.signature.properties.forEach(t=>{e[t.key]=wn(t.value)}),{name:"object",value:e};default:throw new Oa({type:r,language:"Flow"})}},"convertSig"),wn=M(r=>{let{name:e,raw:t}=r,i={};switch(typeof t<"u"&&(i.raw=t),r.name){case"literal":return{...i,name:"other",value:r.value};case"string":case"number":case"symbol":case"boolean":return{...i,name:e};case"Array":return{...i,name:"array",value:r.elements.map(wn)};case"signature":return{...i,...oH(r)};case"union":return r.elements?.every(sH)?{...i,name:"enum",value:r.elements?.map(nH)}:{...i,name:e,value:r.elements?.map(wn)};case"intersection":return{...i,name:e,value:r.elements?.map(wn)};default:return{...i,name:"other",value:e}}},"convert"),aH=TU(iH(),1),xw=/^['"]|['"]$/g,lH=M(r=>r.replace(xw,""),"trimQuotes"),uH=M(r=>xw.test(r),"includesQuotes"),bw=M(r=>{let e=lH(r);return uH(r)||Number.isNaN(Number(e))?e:Number(e)},"parseLiteral"),cH=/^\(.*\) => /,Sn=M(r=>{let{name:e,raw:t,computed:i,value:s}=r,n={};switch(typeof t<"u"&&(n.raw=t),e){case"enum":{let a=i?s:s.map(l=>bw(l.value));return{...n,name:e,value:a}}case"string":case"number":case"symbol":return{...n,name:e};case"func":return{...n,name:"function"};case"bool":case"boolean":return{...n,name:"boolean"};case"arrayOf":case"array":return{...n,name:"array",value:s&&Sn(s)};case"object":return{...n,name:e};case"objectOf":return{...n,name:e,value:Sn(s)};case"shape":case"exact":let o=(0,aH.default)(s,a=>Sn(a));return{...n,name:"object",value:o};case"union":return{...n,name:"union",value:s.map(a=>Sn(a))};case"instanceOf":case"element":case"elementType":default:{if(e?.indexOf("|")>0)try{let u=e.split("|").map(c=>JSON.parse(c));return{...n,name:"enum",value:u}}catch{}let a=s?`${e}(${s})`:e,l=cH.test(e)?"function":"other";return{...n,name:l,value:a}}}},"convert"),hH=M(r=>{switch(r.type){case"function":return{name:"function"};case"object":let e={};return r.signature.properties.forEach(t=>{e[t.key]=Tn(t.value)}),{name:"object",value:e};default:throw new Oa({type:r,language:"Typescript"})}},"convertSig"),Tn=M(r=>{let{name:e,raw:t}=r,i={};switch(typeof t<"u"&&(i.raw=t),r.name){case"string":case"number":case"symbol":case"boolean":return{...i,name:e};case"Array":return{...i,name:"array",value:r.elements.map(Tn)};case"signature":return{...i,...hH(r)};case"union":let s;return r.elements?.every(n=>n.name==="literal")?s={...i,name:"enum",value:r.elements?.map(n=>bw(n.value))}:s={...i,name:e,value:r.elements?.map(Tn)},s;case"intersection":return{...i,name:e,value:r.elements?.map(Tn)};default:return{...i,name:"other",value:e}}},"convert"),Sd=M(r=>{let{type:e,tsType:t,flowType:i}=r;try{if(e!=null)return Sn(e);if(t!=null)return Tn(t);if(i!=null)return wn(i)}catch(s){console.error(s)}return null},"convert"),dH=(r=>(r.JAVASCRIPT="JavaScript",r.FLOW="Flow",r.TYPESCRIPT="TypeScript",r.UNKNOWN="Unknown",r))(dH||{}),pH=["null","undefined"];function rl(r){return pH.some(e=>e===r)}M(rl,"isDefaultValueBlacklisted");var fH=M(r=>{if(!r)return"";if(typeof r=="string")return r;throw new Error(`Description: expected string, got: ${JSON.stringify(r)}`)},"str");function wd(r){return!!r.__docgenInfo}M(wd,"hasDocgen");function vw(r){return r!=null&&Object.keys(r).length>0}M(vw,"isValidDocgenSection");function Sw(r,e){return wd(r)?r.__docgenInfo[e]:null}M(Sw,"getDocgenSection");function ww(r){return wd(r)?fH(r.__docgenInfo.description):""}M(ww,"getDocgenDescription");var zr;(function(r){r.start="/**",r.nostart="/***",r.delim="*",r.end="*/"})(zr=zr||(zr={}));function Tw(r){return/^\s+$/.test(r)}M(Tw,"isSpace");function Cw(r){let e=r.match(/\r+$/);return e==null?["",r]:[r.slice(-e[0].length),r.slice(0,-e[0].length)]}M(Cw,"splitCR");function si(r){let e=r.match(/^\s+/);return e==null?["",r]:[r.slice(0,e[0].length),r.slice(e[0].length)]}M(si,"splitSpace");function Aw(r){return r.split(/\n/)}M(Aw,"splitLines");function Ew(r={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},r)}M(Ew,"seedSpec");function Iw(r={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},r)}M(Iw,"seedTokens");var gH=/^@\S+/;function Rw({fence:r="```"}={}){let e=Pw(r),t=M((i,s)=>e(i)?!s:s,"toggleFence");return M(function(i){let s=[[]],n=!1;for(let o of i)gH.test(o.tokens.description)&&!n?s.push([o]):s[s.length-1].push(o),n=t(o.tokens.description,n);return s},"parseBlock")}M(Rw,"getParser");function Pw(r){return typeof r=="string"?e=>e.split(r).length%2===0:r}M(Pw,"getFencer");function kw({startLine:r=0,markers:e=zr}={}){let t=null,i=r;return M(function(s){let n=s,o=Iw();if([o.lineEnd,n]=Cw(n),[o.start,n]=si(n),t===null&&n.startsWith(e.start)&&!n.startsWith(e.nostart)&&(t=[],o.delimiter=n.slice(0,e.start.length),n=n.slice(e.start.length),[o.postDelimiter,n]=si(n)),t===null)return i++,null;let a=n.trimRight().endsWith(e.end);if(o.delimiter===""&&n.startsWith(e.delim)&&!n.startsWith(e.end)&&(o.delimiter=e.delim,n=n.slice(e.delim.length),[o.postDelimiter,n]=si(n)),a){let l=n.trimRight();o.end=n.slice(l.length-e.end.length),n=l.slice(0,-e.end.length)}if(o.description=n,t.push({number:i,source:s,tokens:o}),i++,a){let l=t.slice();return t=null,l}return null},"parseSource")}M(kw,"getParser");function Ow({tokenizers:r}){return M(function(e){var t;let i=Ew({source:e});for(let s of r)if(i=s(i),!((t=i.problems[i.problems.length-1])===null||t===void 0)&&t.critical)break;return i},"parseSpec")}M(Ow,"getParser");function Lw(){return r=>{let{tokens:e}=r.source[0],t=e.description.match(/\s*(@(\S+))(\s*)/);return t===null?(r.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:r.source[0].number,critical:!0}),r):(e.tag=t[1],e.postTag=t[3],e.description=e.description.slice(t[0].length),r.tag=t[2],r)}}M(Lw,"tagTokenizer");function Dw(r="compact"){let e=Fw(r);return t=>{let i=0,s=[];for(let[a,{tokens:l}]of t.source.entries()){let u="";if(a===0&&l.description[0]!=="{")return t;for(let c of l.description)if(c==="{"&&i++,c==="}"&&i--,u+=c,i===0)break;if(s.push([l,u]),i===0)break}if(i!==0)return t.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:t.source[0].number,critical:!0}),t;let n=[],o=s[0][0].postDelimiter.length;for(let[a,[l,u]]of s.entries())l.type=u,a>0&&(l.type=l.postDelimiter.slice(o)+u,l.postDelimiter=l.postDelimiter.slice(0,o)),[l.postType,l.description]=si(l.description.slice(u.length)),n.push(l.type);return n[0]=n[0].slice(1),n[n.length-1]=n[n.length-1].slice(0,-1),t.type=e(n),t}}M(Dw,"typeTokenizer");var mH=M(r=>r.trim(),"trim");function Fw(r){return r==="compact"?e=>e.map(mH).join(""):r==="preserve"?e=>e.join(` +`):r}M(Fw,"getJoiner");var _H=M(r=>r&&r.startsWith('"')&&r.endsWith('"'),"isQuoted");function Bw(){let r=M((e,{tokens:t},i)=>t.type===""?e:i,"typeEnd");return e=>{let{tokens:t}=e.source[e.source.reduce(r,0)],i=t.description.trimLeft(),s=i.split('"');if(s.length>1&&s[0]===""&&s.length%2===1)return e.name=s[1],t.name=`"${s[1]}"`,[t.postName,t.description]=si(i.slice(t.name.length)),e;let n=0,o="",a=!1,l;for(let c of i){if(n===0&&Tw(c))break;c==="["&&n++,c==="]"&&n--,o+=c}if(n!==0)return e.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:e.source[0].number,critical:!0}),e;let u=o;if(o[0]==="["&&o[o.length-1]==="]"){a=!0,o=o.slice(1,-1);let c=o.split("=");if(o=c[0].trim(),c[1]!==void 0&&(l=c.slice(1).join("=").trim()),o==="")return e.problems.push({code:"spec:name:empty-name",message:"empty name",line:e.source[0].number,critical:!0}),e;if(l==="")return e.problems.push({code:"spec:name:empty-default",message:"empty default value",line:e.source[0].number,critical:!0}),e;if(!_H(l)&&/=(?!>)/.test(l))return e.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:e.source[0].number,critical:!0}),e}return e.optional=a,e.name=o,t.name=u,l!==void 0&&(e.default=l),[t.postName,t.description]=si(i.slice(t.name.length)),e}}M(Bw,"nameTokenizer");function Mw(r="compact",e=zr){let t=Td(r);return i=>(i.description=t(i.source,e),i)}M(Mw,"descriptionTokenizer");function Td(r){return r==="compact"?Nw:r==="preserve"?zw:r}M(Td,"getJoiner");function Nw(r,e=zr){return r.map(({tokens:{description:t}})=>t.trim()).filter(t=>t!=="").join(" ")}M(Nw,"compactJoiner");var yH=M((r,{tokens:e},t)=>e.type===""?r:t,"lineNo"),xH=M(({tokens:r})=>(r.delimiter===""?r.start:r.postDelimiter.slice(1))+r.description,"getDescription");function zw(r,e=zr){if(r.length===0)return"";r[0].tokens.description===""&&r[0].tokens.delimiter===e.start&&(r=r.slice(1));let t=r[r.length-1];return t!==void 0&&t.tokens.description===""&&t.tokens.end.endsWith(e.end)&&(r=r.slice(0,-1)),r=r.slice(r.reduce(yH,0)),r.map(xH).join(` +`)}M(zw,"preserveJoiner");function jw({startLine:r=0,fence:e="```",spacing:t="compact",markers:i=zr,tokenizers:s=[Lw(),Dw(t),Bw(),Mw(t)]}={}){if(r<0||r%1>0)throw new Error("Invalid startLine");let n=kw({startLine:r,markers:i}),o=Rw({fence:e}),a=Ow({tokenizers:s}),l=Td(t);return function(u){let c=[];for(let g of Aw(u)){let m=n(g);if(m===null)continue;let y=o(m),b=y.slice(1).map(a);c.push({description:l(y[0],i),tags:b,source:m,problems:b.reduce((C,A)=>C.concat(A.problems),[])})}return c}}M(jw,"getParser");function Uw(r){return r.start+r.delimiter+r.postDelimiter+r.tag+r.postTag+r.type+r.postType+r.name+r.postName+r.description+r.end+r.lineEnd}M(Uw,"join");function Hw(){return r=>r.source.map(({tokens:e})=>Uw(e)).join(` +`)}M(Hw,"getStringifier");var bH={line:0,start:0,delimiter:0,postDelimiter:0,tag:0,postTag:0,name:0,postName:0,type:0,postType:0,description:0,end:0,lineEnd:0},kOe=Object.keys(bH);function Ww(r,e={}){return jw(e)(r)}M(Ww,"parse");var OOe=Hw();function qw(r){return r!=null&&r.includes("@")}M(qw,"containsJsDoc");function $w(r){let e=`/** +`+(r??"").split(` +`).map(i=>` * ${i}`).join(` +`)+` +*/`,t=Ww(e,{spacing:"preserve"});if(!t||t.length===0)throw new Error("Cannot parse JSDoc tags.");return t[0]}M($w,"parse");var vH={tags:["param","arg","argument","returns","ignore","deprecated"]},SH=M((r,e=vH)=>{if(!qw(r))return{includesJsDoc:!1,ignore:!1};let t=$w(r),i=Vw(t,e.tags);return i.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:t.description.trim(),extractedTags:i}},"parseJsDoc");function Vw(r,e){let t={params:null,deprecated:null,returns:null,ignore:!1};for(let i of r.tags)if(!(e!==void 0&&!e.includes(i.tag)))if(i.tag==="ignore"){t.ignore=!0;break}else switch(i.tag){case"param":case"arg":case"argument":{let s=Yw(i);s!=null&&(t.params==null&&(t.params=[]),t.params.push(s));break}case"deprecated":{let s=Xw(i);s!=null&&(t.deprecated=s);break}case"returns":{let s=Kw(i);s!=null&&(t.returns=s);break}default:break}return t}M(Vw,"extractJsDocTags");function Gw(r){return r.replace(/[\.-]$/,"")}M(Gw,"normaliseParamName");function Yw(r){if(!r.name||r.name==="-")return null;let e=Ed(r.type);return{name:r.name,type:e,description:Ad(r.description),getPrettyName:M(()=>Gw(r.name),"getPrettyName"),getTypeName:M(()=>e?Id(e):null,"getTypeName")}}M(Yw,"extractParam");function Xw(r){return r.name?Cd(r.name,r.description):null}M(Xw,"extractDeprecated");function Cd(r,e){let t=r===""?e:`${r} ${e}`;return Ad(t)}M(Cd,"joinNameAndDescription");function Ad(r){let e=r.replace(/^- /g,"").trim();return e===""?null:e}M(Ad,"normaliseDescription");function Kw(r){let e=Ed(r.type);return e?{type:e,description:Cd(r.name,r.description),getTypeName:M(()=>Id(e),"getTypeName")}:null}M(Kw,"extractReturns");var Ur=(0,Xi.stringifyRules)(),wH=Ur.JsdocTypeObject;Ur.JsdocTypeAny=()=>"any";Ur.JsdocTypeObject=(r,e)=>`(${wH(r,e)})`;Ur.JsdocTypeOptional=(r,e)=>e(r.element);Ur.JsdocTypeNullable=(r,e)=>e(r.element);Ur.JsdocTypeNotNullable=(r,e)=>e(r.element);Ur.JsdocTypeUnion=(r,e)=>r.elements.map(e).join("|");function Ed(r){try{return(0,Xi.parse)(r,"typescript")}catch{return null}}M(Ed,"extractType");function Id(r){return(0,Xi.transform)(Ur,r)}M(Id,"extractTypeName");function Rd(r){return r.length>90}M(Rd,"isTooLongForTypeSummary");function Jw(r){return r.length>50}M(Jw,"isTooLongForDefaultValueSummary");function Ke(r,e){return r===e?{summary:r}:{summary:r,detail:e}}M(Ke,"createSummaryValue");var LOe=M(r=>r.replace(/\\r\\n/g,"\\n"),"normalizeNewlines");function Qw(r,e){if(r!=null){let{value:t}=r;if(!rl(t))return Jw(t)?Ke(e?.name,t):Ke(t)}return null}M(Qw,"createDefaultValue");function Pd({name:r,value:e,elements:t,raw:i}){return e??(t!=null?t.map(Pd).join(" | "):i??r)}M(Pd,"generateUnionElement");function Zw({name:r,raw:e,elements:t}){return t!=null?Ke(t.map(Pd).join(" | ")):e!=null?Ke(e.replace(/^\|\s*/,"")):Ke(r)}M(Zw,"generateUnion");function eT({type:r,raw:e}){return e!=null?Ke(e):Ke(r)}M(eT,"generateFuncSignature");function tT({type:r,raw:e}){return e!=null?Rd(e)?Ke(r,e):Ke(e):Ke(r)}M(tT,"generateObjectSignature");function rT(r){let{type:e}=r;return e==="object"?tT(r):eT(r)}M(rT,"generateSignature");function iT({name:r,raw:e}){return e!=null?Rd(e)?Ke(r,e):Ke(e):Ke(r)}M(iT,"generateDefault");function sT(r){if(r==null)return null;switch(r.name){case"union":return Zw(r);case"signature":return rT(r);default:return iT(r)}}M(sT,"createType");var TH=M((r,e)=>{let{flowType:t,description:i,required:s,defaultValue:n}=e;return{name:r,type:sT(t),required:s,description:i,defaultValue:Qw(n??null,t??null)}},"createFlowPropDef");function nT({defaultValue:r}){if(r!=null){let{value:e}=r;if(!rl(e))return Ke(e)}return null}M(nT,"createDefaultValue");function oT({tsType:r,required:e}){if(r==null)return null;let t=r.name;return e||(t=t.replace(" | undefined","")),Ke(["Array","Record","signature"].includes(r.name)?r.raw:t)}M(oT,"createType");var CH=M((r,e)=>{let{description:t,required:i}=e;return{name:r,type:oT(e),required:i,description:t,defaultValue:nT(e)}},"createTsPropDef");function aT(r){return r!=null?Ke(r.name):null}M(aT,"createType");function lT(r){let{computed:e,func:t}=r;return typeof e>"u"&&typeof t>"u"}M(lT,"isReactDocgenTypescript");function uT(r){return r?r.name==="string"?!0:r.name==="enum"?Array.isArray(r.value)&&r.value.every(({value:e})=>typeof e=="string"&&e[0]==='"'&&e[e.length-1]==='"'):!1:!1}M(uT,"isStringValued");function cT(r,e){if(r!=null){let{value:t}=r;if(!rl(t))return lT(r)&&uT(e)?Ke(JSON.stringify(t)):Ke(t)}return null}M(cT,"createDefaultValue");function kd(r,e,t){let{description:i,required:s,defaultValue:n}=t;return{name:r,type:aT(e),required:s,description:i,defaultValue:cT(n,e)}}M(kd,"createBasicPropDef");function En(r,e){if(e?.includesJsDoc){let{description:t,extractedTags:i}=e;t!=null&&(r.description=e.description);let s={...i,params:i?.params?.map(n=>({name:n.getPrettyName(),description:n.description}))};Object.values(s).filter(Boolean).length>0&&(r.jsDocTags=s)}return r}M(En,"applyJsDocResult");var AH=M((r,e,t)=>{let i=kd(r,e.type,e);return i.sbType=Sd(e),En(i,t)},"javaScriptFactory"),EH=M((r,e,t)=>{let i=CH(r,e);return i.sbType=Sd(e),En(i,t)},"tsFactory"),IH=M((r,e,t)=>{let i=TH(r,e);return i.sbType=Sd(e),En(i,t)},"flowFactory"),RH=M((r,e,t)=>{let i=kd(r,{name:"unknown"},e);return En(i,t)},"unknownFactory"),hT=M(r=>{switch(r){case"JavaScript":return AH;case"TypeScript":return EH;case"Flow":return IH;default:return RH}},"getPropDefFactory"),dT=M(r=>r.type!=null?"JavaScript":r.flowType!=null?"Flow":r.tsType!=null?"TypeScript":"Unknown","getTypeSystem"),PH=M(r=>{let e=dT(r[0]),t=hT(e);return r.map(i=>{let s=i;return i.type?.elements&&(s={...i,type:{...i.type,value:i.type.elements}}),Od(s.name,s,e,t)})},"extractComponentSectionArray"),kH=M(r=>{let e=Object.keys(r),t=dT(r[e[0]]),i=hT(t);return e.map(s=>{let n=r[s];return n!=null?Od(s,n,t,i):null}).filter(Boolean)},"extractComponentSectionObject"),DOe=M((r,e)=>{let t=Sw(r,e);return vw(t)?Array.isArray(t)?PH(t):kH(t):[]},"extractComponentProps");function Od(r,e,t,i){let s=SH(e.description);return s.includesJsDoc&&s.ignore?null:{propDef:i(r,e,s),jsDocTags:s.extractedTags,docgenInfo:e,typeSystem:t}}M(Od,"extractProp");function OH(r){return r!=null?ww(r):""}M(OH,"extractComponentDescription");var BOe=M(r=>{let{component:e,argTypes:t,parameters:{docs:i={}}}=r,{extractArgTypes:s}=i,n=s&&e?s(e):{};return n?pr(n,t):t},"enhanceArgTypes"),pT="storybook/docs",MOe=`${pT}/panel`;var LH=`${pT}/snippet-rendered`,fT=(r=>(r.AUTO="auto",r.CODE="code",r.DYNAMIC="dynamic",r))(fT||{}),DH=/(addons\/|addon-|addon-essentials\/)(docs|controls)/,NOe=M(r=>r.presetsList?.some(e=>DH.test(e.name)),"hasDocsOrControls");h();d();p();h();d();p();var FH=Object.create,gT=Object.defineProperty,BH=Object.getOwnPropertyDescriptor,mT=Object.getOwnPropertyNames,MH=Object.getPrototypeOf,NH=Object.prototype.hasOwnProperty,Ot=(r,e)=>function(){return e||(0,r[mT(r)[0]])((e={exports:{}}).exports,e),e.exports},zH=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of mT(e))!NH.call(r,s)&&s!==t&&gT(r,s,{get:()=>e[s],enumerable:!(i=BH(e,s))||i.enumerable});return r},il=(r,e,t)=>(t=r!=null?FH(MH(r)):{},zH(e||!r||!r.__esModule?gT(t,"default",{value:r,enumerable:!0}):t,r)),jH=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],UH=["detail"];function _T(r){let e=jH.filter(t=>r[t]!==void 0).reduce((t,i)=>({...t,[i]:r[i]}),{});return r instanceof CustomEvent&&UH.filter(t=>r[t]!==void 0).forEach(t=>{e[t]=r[t]}),e}var OT=ye(fh(),1),wT=Ot({"node_modules/has-symbols/shams.js"(r,e){"use strict";e.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var i={},s=Symbol("test"),n=Object(s);if(typeof s=="string"||Object.prototype.toString.call(s)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;i[s]=o;for(s in i)return!1;if(typeof Object.keys=="function"&&Object.keys(i).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(i).length!==0)return!1;var a=Object.getOwnPropertySymbols(i);if(a.length!==1||a[0]!==s||!Object.prototype.propertyIsEnumerable.call(i,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(i,s);if(l.value!==o||l.enumerable!==!0)return!1}return!0}}}),TT=Ot({"node_modules/has-symbols/index.js"(r,e){"use strict";var t=typeof Symbol<"u"&&Symbol,i=wT();e.exports=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:i()}}}),HH=Ot({"node_modules/function-bind/implementation.js"(r,e){"use strict";var t="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,s=Object.prototype.toString,n="[object Function]";e.exports=function(a){var l=this;if(typeof l!="function"||s.call(l)!==n)throw new TypeError(t+l);for(var u=i.call(arguments,1),c,g=function(){if(this instanceof c){var A=l.apply(this,u.concat(i.call(arguments)));return Object(A)===A?A:this}else return l.apply(a,u.concat(i.call(arguments)))},m=Math.max(0,l.length-u.length),y=[],b=0;b"u"?t:g(Uint8Array),b={"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":c?g([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":m,"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":m,"%AsyncIteratorPrototype%":m,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":m,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c?g(g([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!c?t:g(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!c?t:g(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c?g(""[Symbol.iterator]()):t,"%Symbol%":c?Symbol:t,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":y,"%TypeError%":n,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet},C=function te($){var D;if($==="%AsyncFunction%")D=o("async function () {}");else if($==="%GeneratorFunction%")D=o("function* () {}");else if($==="%AsyncGeneratorFunction%")D=o("async function* () {}");else if($==="%AsyncGenerator%"){var N=te("%AsyncGeneratorFunction%");N&&(D=N.prototype)}else if($==="%AsyncIteratorPrototype%"){var G=te("%AsyncGenerator%");G&&(D=g(G.prototype))}return b[$]=D,D},A={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},T=Dd(),R=WH(),P=T.call(Function.call,Array.prototype.concat),E=T.call(Function.apply,Array.prototype.splice),k=T.call(Function.call,String.prototype.replace),O=T.call(Function.call,String.prototype.slice),B=T.call(Function.call,RegExp.prototype.exec),F=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,U=/\\(\\)?/g,q=function($){var D=O($,0,1),N=O($,-1);if(D==="%"&&N!=="%")throw new i("invalid intrinsic syntax, expected closing `%`");if(N==="%"&&D!=="%")throw new i("invalid intrinsic syntax, expected opening `%`");var G=[];return k($,F,function(Q,ne,ie,re){G[G.length]=ie?k(re,U,"$1"):ne||Q}),G},ee=function($,D){var N=$,G;if(R(A,N)&&(G=A[N],N="%"+G[0]+"%"),R(b,N)){var Q=b[N];if(Q===m&&(Q=C(N)),typeof Q>"u"&&!D)throw new n("intrinsic "+$+" exists, but is not available. Please file an issue!");return{alias:G,name:N,value:Q}}throw new i("intrinsic "+$+" does not exist!")};e.exports=function($,D){if(typeof $!="string"||$.length===0)throw new n("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof D!="boolean")throw new n('"allowMissing" argument must be a boolean');if(B(/^%?[^%]*%?$/,$)===null)throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var N=q($),G=N.length>0?N[0]:"",Q=ee("%"+G+"%",D),ne=Q.name,ie=Q.value,re=!1,ae=Q.alias;ae&&(G=ae[0],E(N,P([0,1],ae)));for(var ce=1,Se=!0;ce=N.length){var De=a(ie,we);Se=!!De,Se&&"get"in De&&!("originalValue"in De.get)?ie=De.get:ie=ie[we]}else Se=R(ie,we),ie=ie[we];Se&&!re&&(b[ne]=ie)}}return ie}}}),qH=Ot({"node_modules/call-bind/index.js"(r,e){"use strict";var t=Dd(),i=CT(),s=i("%Function.prototype.apply%"),n=i("%Function.prototype.call%"),o=i("%Reflect.apply%",!0)||t.call(n,s),a=i("%Object.getOwnPropertyDescriptor%",!0),l=i("%Object.defineProperty%",!0),u=i("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}e.exports=function(m){var y=o(t,n,arguments);if(a&&l){var b=a(y,"length");b.configurable&&l(y,"length",{value:1+u(0,m.length-(arguments.length-1))})}return y};var c=function(){return o(t,s,arguments)};l?l(e.exports,"apply",{value:c}):e.exports.apply=c}}),$H=Ot({"node_modules/call-bind/callBound.js"(r,e){"use strict";var t=CT(),i=qH(),s=i(t("String.prototype.indexOf"));e.exports=function(o,a){var l=t(o,!!a);return typeof l=="function"&&s(o,".prototype.")>-1?i(l):l}}}),VH=Ot({"node_modules/has-tostringtag/shams.js"(r,e){"use strict";var t=wT();e.exports=function(){return t()&&!!Symbol.toStringTag}}}),GH=Ot({"node_modules/is-regex/index.js"(r,e){"use strict";var t=$H(),i=VH()(),s,n,o,a;i&&(s=t("Object.prototype.hasOwnProperty"),n=t("RegExp.prototype.exec"),o={},l=function(){throw o},a={toString:l,valueOf:l},typeof Symbol.toPrimitive=="symbol"&&(a[Symbol.toPrimitive]=l));var l,u=t("Object.prototype.toString"),c=Object.getOwnPropertyDescriptor,g="[object RegExp]";e.exports=i?function(y){if(!y||typeof y!="object")return!1;var b=c(y,"lastIndex"),C=b&&s(b,"value");if(!C)return!1;try{n(y,a)}catch(A){return A===o}}:function(y){return!y||typeof y!="object"&&typeof y!="function"?!1:u(y)===g}}}),YH=Ot({"node_modules/is-function/index.js"(r,e){e.exports=i;var t=Object.prototype.toString;function i(s){if(!s)return!1;var n=t.call(s);return n==="[object Function]"||typeof s=="function"&&n!=="[object RegExp]"||typeof window<"u"&&(s===window.setTimeout||s===window.alert||s===window.confirm||s===window.prompt)}}}),XH=Ot({"node_modules/is-symbol/index.js"(r,e){"use strict";var t=Object.prototype.toString,i=TT()();i?(s=Symbol.prototype.toString,n=/^Symbol\(.*\)$/,o=function(l){return typeof l.valueOf()!="symbol"?!1:n.test(s.call(l))},e.exports=function(l){if(typeof l=="symbol")return!0;if(t.call(l)!=="[object Symbol]")return!1;try{return o(l)}catch{return!1}}):e.exports=function(l){return!1};var s,n,o}}),KH=il(GH()),JH=il(YH()),QH=il(XH());function ZH(r){return r!=null&&typeof r=="object"&&Array.isArray(r)===!1}var eW=typeof window=="object"&&window&&window.Object===Object&&window,tW=eW,rW=typeof self=="object"&&self&&self.Object===Object&&self,iW=tW||rW||Function("return this")(),Fd=iW,sW=Fd.Symbol,Ki=sW,AT=Object.prototype,nW=AT.hasOwnProperty,oW=AT.toString,In=Ki?Ki.toStringTag:void 0;function aW(r){var e=nW.call(r,In),t=r[In];try{r[In]=void 0;var i=!0}catch{}var s=oW.call(r);return i&&(e?r[In]=t:delete r[In]),s}var lW=aW,uW=Object.prototype,cW=uW.toString;function hW(r){return cW.call(r)}var dW=hW,pW="[object Null]",fW="[object Undefined]",yT=Ki?Ki.toStringTag:void 0;function gW(r){return r==null?r===void 0?fW:pW:yT&&yT in Object(r)?lW(r):dW(r)}var ET=gW;function mW(r){return r!=null&&typeof r=="object"}var _W=mW,yW="[object Symbol]";function xW(r){return typeof r=="symbol"||_W(r)&&ET(r)==yW}var Bd=xW;function bW(r,e){for(var t=-1,i=r==null?0:r.length,s=Array(i);++t-1}var P6=R6;function k6(r,e){var t=this.__data__,i=nl(t,r);return i<0?(++this.size,t.push([r,e])):t[i][1]=e,this}var O6=k6;function Qi(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e{let e=null,t=!1,i=!1,s=!1,n="";if(r.indexOf("//")>=0||r.indexOf("/*")>=0)for(let o=0;ogq(r).replace(/\n\s*/g,"").trim()),_q=function(e,t){let i=t.slice(0,t.indexOf("{")),s=t.slice(t.indexOf("{"));if(i.includes("=>")||i.includes("function"))return t;let n=i;return n=n.replace(e,"function"),n+s},yq=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,xq=r=>r.match(/^[\[\{\"\}].*[\]\}\"]$/);function LT(r){if(!sl(r))return r;let e=r,t=!1;return typeof Event<"u"&&r instanceof Event&&(e=_T(e),t=!0),e=Object.keys(e).reduce((i,s)=>{try{e[s]&&e[s].toJSON,i[s]=e[s]}catch{t=!0}return i},{}),t?e:r}var bq=function(e){let t,i,s,n;return function(a,l){try{if(a==="")return n=[],t=new Map([[l,"[]"]]),i=new Map,s=[],l;let u=i.get(this)||this;for(;s.length&&u!==s[0];)s.shift(),n.pop();if(typeof l=="boolean")return l;if(l===void 0)return e.allowUndefined?"_undefined_":void 0;if(l===null)return null;if(typeof l=="number")return l===-1/0?"_-Infinity_":l===1/0?"_Infinity_":Number.isNaN(l)?"_NaN_":l;if(typeof l=="bigint")return`_bigint_${l.toString()}`;if(typeof l=="string")return yq.test(l)?e.allowDate?`_date_${l}`:void 0:l;if((0,KH.default)(l))return e.allowRegExp?`_regexp_${l.flags}|${l.source}`:void 0;if((0,JH.default)(l)){if(!e.allowFunction)return;let{name:g}=l,m=l.toString();return m.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${g}|${(()=>{}).toString()}`:`_function_${g}|${mq(_q(a,m))}`}if((0,QH.default)(l)){if(!e.allowSymbol)return;let g=Symbol.keyFor(l);return g!==void 0?`_gsymbol_${g}`:`_symbol_${l.toString().slice(7,-1)}`}if(s.length>=e.maxDepth)return Array.isArray(l)?`[Array(${l.length})]`:"[Object]";if(l===this)return`_duplicate_${JSON.stringify(n)}`;if(l instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...l.cause?{cause:l.cause}:{},...l,name:l.name,message:l.message,stack:l.stack,"_constructor-name_":l.constructor.name}};if(l.constructor&&l.constructor.name&&l.constructor.name!=="Object"&&!Array.isArray(l)&&!e.allowClass)return;let c=t.get(l);if(!c){let g=Array.isArray(l)?l:LT(l);if(l.constructor&&l.constructor.name&&l.constructor.name!=="Object"&&!Array.isArray(l)&&e.allowClass)try{Object.assign(g,{"_constructor-name_":l.constructor.name})}catch{}return n.push(a),s.unshift(g),t.set(l,JSON.stringify(n)),l!==g&&i.set(l,g),g}return`_duplicate_${c}`}catch{return}}},vq=function reviver(options){let refs=[],root;return function revive(key,value){if(key===""&&(root=value,refs.forEach(({target:r,container:e,replacement:t})=>{let i=xq(t)?JSON.parse(t):t.split(".");i.length===0?e[r]=root:e[r]=fq(root,i)})),key==="_constructor-name_")return value;if(sl(value)&&value.__isConvertedError__){let{message:r,...e}=value.errorProperties,t=new Error(r);return Object.assign(t,e),t}if(sl(value)&&value["_constructor-name_"]&&options.allowFunction){let r=value["_constructor-name_"];if(r!=="Object"){let e=new Function(`return function ${r.replace(/[^a-zA-Z0-9$_]+/g,"")}(){}`)();Object.setPrototypeOf(value,new e)}return delete value["_constructor-name_"],value}if(typeof value=="string"&&value.startsWith("_function_")&&options.allowFunction){let[,name,source]=value.match(/_function_([^|]*)\|(.*)/)||[],sourceSanitized=source.replace(/[(\(\))|\\| |\]|`]*$/,"");if(!options.lazyEval)return eval(`(${sourceSanitized})`);let result=(...args)=>{let f=eval(`(${sourceSanitized})`);return f(...args)};return Object.defineProperty(result,"toString",{value:()=>sourceSanitized}),Object.defineProperty(result,"name",{value:name}),result}if(typeof value=="string"&&value.startsWith("_regexp_")&&options.allowRegExp){let[,r,e]=value.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(e,r)}return typeof value=="string"&&value.startsWith("_date_")&&options.allowDate?new Date(value.replace("_date_","")):typeof value=="string"&&value.startsWith("_duplicate_")?(refs.push({target:key,container:this,replacement:value.replace(/^_duplicate_/,"")}),null):typeof value=="string"&&value.startsWith("_symbol_")&&options.allowSymbol?Symbol(value.replace("_symbol_","")):typeof value=="string"&&value.startsWith("_gsymbol_")&&options.allowSymbol?Symbol.for(value.replace("_gsymbol_","")):typeof value=="string"&&value==="_-Infinity_"?-1/0:typeof value=="string"&&value==="_Infinity_"?1/0:typeof value=="string"&&value==="_NaN_"?NaN:typeof value=="string"&&value.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(value.replace("_bigint_","")):value}},DT={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},Sq=(r,e={})=>{let t={...DT,...e};return JSON.stringify(LT(r),bq(t),e.space)},wq=()=>{let r=new Map;return function e(t){sl(t)&&Object.entries(t).forEach(([i,s])=>{s==="_undefined_"?t[i]=void 0:r.get(s)||(r.set(s,!0),e(s))}),Array.isArray(t)&&t.forEach((i,s)=>{i==="_undefined_"?(r.set(i,!0),t[s]=void 0):r.get(i)||(r.set(i,!0),e(i))})}},ZOe=(r,e={})=>{let t={...DT,...e},i=JSON.parse(r,vq(t));return wq()(i),i};h();d();p();h();d();p();h();d();p();var pLe=__STORYBOOK_CHANNELS__,{Channel:Tq,PostMessageTransport:fLe,WebsocketTransport:gLe,createBrowserChannel:mLe}=__STORYBOOK_CHANNELS__;var M8=Xr({"../../node_modules/tocbot/src/js/default-options.js"(r,e){e.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(t){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(t){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0}}}),N8=Xr({"../../node_modules/tocbot/src/js/build-html.js"(r,e){e.exports=function(t){var i=[].forEach,s=[].some,n=document.body,o,a=!0,l=" ";function u(E,k){var O=k.appendChild(g(E));if(E.children.length){var B=m(E.isCollapsed);E.children.forEach(function(F){u(F,B)}),O.appendChild(B)}}function c(E,k){var O=!1,B=m(O);if(k.forEach(function(F){u(F,B)}),o=E||o,o!==null)return o.firstChild&&o.removeChild(o.firstChild),k.length===0?o:o.appendChild(B)}function g(E){var k=document.createElement("li"),O=document.createElement("a");return t.listItemClass&&k.setAttribute("class",t.listItemClass),t.onClick&&(O.onclick=t.onClick),t.includeTitleTags&&O.setAttribute("title",E.textContent),t.includeHtml&&E.childNodes.length?i.call(E.childNodes,function(B){O.appendChild(B.cloneNode(!0))}):O.textContent=E.textContent,O.setAttribute("href",t.basePath+"#"+E.id),O.setAttribute("class",t.linkClass+l+"node-name--"+E.nodeName+l+t.extraLinkClasses),k.appendChild(O),k}function m(E){var k=t.orderedList?"ol":"ul",O=document.createElement(k),B=t.listClass+l+t.extraListClasses;return E&&(B=B+l+t.collapsibleClass,B=B+l+t.isCollapsedClass),O.setAttribute("class",B),O}function y(){if(t.scrollContainer&&document.querySelector(t.scrollContainer)){var E;E=document.querySelector(t.scrollContainer).scrollTop}else E=document.documentElement.scrollTop||n.scrollTop;var k=document.querySelector(t.positionFixedSelector);t.fixedSidebarOffset==="auto"&&(t.fixedSidebarOffset=o.offsetTop),E>t.fixedSidebarOffset?k.className.indexOf(t.positionFixedClass)===-1&&(k.className+=l+t.positionFixedClass):k.className=k.className.replace(l+t.positionFixedClass,"")}function b(E){var k=0;return E!==null&&(k=E.offsetTop,t.hasInnerContainers&&(k+=b(E.offsetParent))),k}function C(E,k){return E&&E.className!==k&&(E.className=k),E}function A(E){if(t.scrollContainer&&document.querySelector(t.scrollContainer)){var k;k=document.querySelector(t.scrollContainer).scrollTop}else k=document.documentElement.scrollTop||n.scrollTop;t.positionFixedSelector&&y();var O=E,B;if(a&&o!==null&&O.length>0){s.call(O,function(D,N){if(b(D)>k+t.headingsOffset+10){var G=N===0?N:N-1;return B=O[G],!0}else if(N===O.length-1)return B=O[O.length-1],!0});var F=o.querySelector("."+t.activeLinkClass),U=o.querySelector("."+t.linkClass+".node-name--"+B.nodeName+'[href="'+t.basePath+"#"+B.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1")+'"]');if(F===U)return;var q=o.querySelectorAll("."+t.linkClass);i.call(q,function(D){C(D,D.className.replace(l+t.activeLinkClass,""))});var ee=o.querySelectorAll("."+t.listItemClass);i.call(ee,function(D){C(D,D.className.replace(l+t.activeListItemClass,""))}),U&&U.className.indexOf(t.activeLinkClass)===-1&&(U.className+=l+t.activeLinkClass);var te=U&&U.parentNode;te&&te.className.indexOf(t.activeListItemClass)===-1&&(te.className+=l+t.activeListItemClass);var $=o.querySelectorAll("."+t.listClass+"."+t.collapsibleClass);i.call($,function(D){D.className.indexOf(t.isCollapsedClass)===-1&&(D.className+=l+t.isCollapsedClass)}),U&&U.nextSibling&&U.nextSibling.className.indexOf(t.isCollapsedClass)!==-1&&C(U.nextSibling,U.nextSibling.className.replace(l+t.isCollapsedClass,"")),T(U&&U.parentNode.parentNode)}}function T(E){return E&&E.className.indexOf(t.collapsibleClass)!==-1&&E.className.indexOf(t.isCollapsedClass)!==-1?(C(E,E.className.replace(l+t.isCollapsedClass,"")),T(E.parentNode.parentNode)):E}function R(E){var k=E.target||E.srcElement;typeof k.className!="string"||k.className.indexOf(t.linkClass)===-1||(a=!1)}function P(){a=!0}return{enableTocAnimation:P,disableTocAnimation:R,render:c,updateToc:A}}}}),z8=Xr({"../../node_modules/tocbot/src/js/parse-content.js"(r,e){e.exports=function(t){var i=[].reduce;function s(g){return g[g.length-1]}function n(g){return+g.nodeName.toUpperCase().replace("H","")}function o(g){try{return g instanceof window.HTMLElement||g instanceof window.parent.HTMLElement}catch{return g instanceof window.HTMLElement}}function a(g){if(!o(g))return g;if(t.ignoreHiddenElements&&(!g.offsetHeight||!g.offsetParent))return null;let m=g.getAttribute("data-heading-label")||(t.headingLabelCallback?String(t.headingLabelCallback(g.innerText)):(g.innerText||g.textContent).trim());var y={id:g.id,children:[],nodeName:g.nodeName,headingLevel:n(g),textContent:m};return t.includeHtml&&(y.childNodes=g.childNodes),t.headingObjectCallback?t.headingObjectCallback(y,g):y}function l(g,m){for(var y=a(g),b=y.headingLevel,C=m,A=s(C),T=A?A.headingLevel:0,R=b-T;R>0&&(A=s(C),!(A&&b===A.headingLevel));)A&&A.children!==void 0&&(C=A.children),R--;return b>=t.collapseDepth&&(y.isCollapsed=!0),C.push(y),C}function u(g,m){var y=m;t.ignoreSelector&&(y=m.split(",").map(function(b){return b.trim()+":not("+t.ignoreSelector+")"}));try{return g.querySelectorAll(y)}catch{return console.warn("Headers not found with selector: "+y),null}}function c(g){return i.call(g,function(m,y){var b=a(y);return b&&l(b,m.nest),m},{nest:[]})}return{nestHeadingsArray:c,selectHeadings:u}}}}),j8=Xr({"../../node_modules/tocbot/src/js/update-toc-scroll.js"(r,e){e.exports=function(t){var i=t.tocElement||document.querySelector(t.tocSelector);if(i&&i.scrollHeight>i.clientHeight){var s=i.querySelector("."+t.activeListItemClass);s&&(i.scrollTop=s.offsetTop-t.tocScrollOffset)}}}}),U8=Xr({"../../node_modules/tocbot/src/js/scroll-smooth/index.js"(r){r.initSmoothScrolling=e;function e(i){var s=i.duration,n=i.offset,o=location.hash?u(location.href):location.href;a();function a(){document.body.addEventListener("click",g,!1);function g(m){!l(m.target)||m.target.className.indexOf("no-smooth-scroll")>-1||m.target.href.charAt(m.target.href.length-2)==="#"&&m.target.href.charAt(m.target.href.length-1)==="!"||m.target.className.indexOf(i.linkClass)===-1||t(m.target.hash,{duration:s,offset:n,callback:function(){c(m.target.hash)}})}}function l(g){return g.tagName.toLowerCase()==="a"&&(g.hash.length>0||g.href.charAt(g.href.length-1)==="#")&&(u(g.href)===o||u(g.href)+"#"===o)}function u(g){return g.slice(0,g.lastIndexOf("#"))}function c(g){var m=document.getElementById(g.substring(1));m&&(/^(?:a|select|input|button|textarea)$/i.test(m.tagName)||(m.tabIndex=-1),m.focus())}}function t(i,s){var n=window.pageYOffset,o={duration:s.duration,offset:s.offset||0,callback:s.callback,easing:s.easing||b},a=document.querySelector('[id="'+decodeURI(i).split("#").join("")+'"]')||document.querySelector('[id="'+i.split("#").join("")+'"]'),l=typeof i=="string"?o.offset+(i?a&&a.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):i,u=typeof o.duration=="function"?o.duration(l):o.duration,c,g;requestAnimationFrame(function(C){c=C,m(C)});function m(C){g=C-c,window.scrollTo(0,o.easing(g,n,l,u)),g"u"&&!g)return;var m,y=Object.prototype.hasOwnProperty;function b(){for(var R={},P=0;P({backgroundColor:r.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:r.appBorderRadius,border:`1px dashed ${r.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:Oe(.3,r.color.defaultText),fontSize:r.typography.size.s2})),q8=r=>z.createElement(W8,{...r,className:"docblock-emptyblock sb-unstyled"}),$8=J(dc)(({theme:r})=>({fontSize:`${r.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:r.appBorderRadius,boxShadow:r.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),V8=J.div(({theme:r})=>({background:r.background.content,borderRadius:r.appBorderRadius,border:`1px solid ${r.appBorderColor}`,boxShadow:r.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),pl=J.div(({theme:r})=>({animation:`${r.animation.glow} 1.5s ease-in-out infinite`,background:r.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${$f}`]:{margin:0}})),G8=()=>z.createElement(V8,null,z.createElement(pl,null),z.createElement(pl,{style:{width:"80%"}}),z.createElement(pl,{style:{width:"30%"}}),z.createElement(pl,{style:{width:"80%"}})),Y8=({isLoading:r,error:e,language:t,code:i,dark:s,format:n=!1,...o})=>{let{typography:a}=Vf();if(r)return z.createElement(G8,null);if(e)return z.createElement(q8,null,e);let l=z.createElement($8,{bordered:!0,copyable:!0,format:n,language:t,className:"docblock-source sb-unstyled",...o},i);if(typeof s>"u")return l;let u=s?_c.dark:_c.light;return z.createElement(Wf,{theme:qf({...u,fontCode:a.fonts.mono,fontBase:a.fonts.base})},l)},Je=r=>`& :where(${r}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${r}))`,Qd=600,FDe=J.h1(Ei,({theme:r})=>({color:r.color.defaultText,fontSize:r.typography.size.m3,fontWeight:r.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Qd}px)`]:{fontSize:r.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),BDe=J.h2(Ei,({theme:r})=>({fontWeight:r.typography.weight.regular,fontSize:r.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Qd}px)`]:{fontSize:r.typography.size.m1,lineHeight:"28px",marginBottom:24},color:Oe(.25,r.color.defaultText)})),MDe=J.div(({theme:r})=>{let e={fontFamily:r.typography.fonts.base,fontSize:r.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},t={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:r.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},i={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:r.typography.size.s2-1,border:r.base==="light"?`1px solid ${r.color.mediumlight}`:`1px solid ${r.color.darker}`,color:r.base==="light"?Oe(.1,r.color.defaultText):Oe(.3,r.color.defaultText),backgroundColor:r.base==="light"?r.color.lighter:r.color.border};return{maxWidth:1e3,width:"100%",[Je("a")]:{...e,fontSize:"inherit",lineHeight:"24px",color:r.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[Je("blockquote")]:{...e,margin:"16px 0",borderLeft:`4px solid ${r.color.medium}`,padding:"0 15px",color:r.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[Je("div")]:e,[Je("dl")]:{...e,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[Je("h1")]:{...e,...t,fontSize:`${r.typography.size.l1}px`,fontWeight:r.typography.weight.bold},[Je("h2")]:{...e,...t,fontSize:`${r.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${r.appBorderColor}`},[Je("h3")]:{...e,...t,fontSize:`${r.typography.size.m1}px`,fontWeight:r.typography.weight.bold},[Je("h4")]:{...e,...t,fontSize:`${r.typography.size.s3}px`},[Je("h5")]:{...e,...t,fontSize:`${r.typography.size.s2}px`},[Je("h6")]:{...e,...t,fontSize:`${r.typography.size.s2}px`,color:r.color.dark},[Je("hr")]:{border:"0 none",borderTop:`1px solid ${r.appBorderColor}`,height:4,padding:0},[Je("img")]:{maxWidth:"100%"},[Je("li")]:{...e,fontSize:r.typography.size.s2,color:r.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":i},[Je("ol")]:{...e,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[Je("p")]:{...e,margin:"16px 0",fontSize:r.typography.size.s2,lineHeight:"24px",color:r.color.defaultText,"& code":i},[Je("pre")]:{...e,fontFamily:r.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[Je("span")]:{...e,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${r.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:r.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[Je("table")]:{...e,margin:"16px 0",fontSize:r.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${r.appBorderColor}`,backgroundColor:r.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:r.base==="dark"?r.color.darker:r.color.lighter},"& tr th":{fontWeight:"bold",color:r.color.defaultText,border:`1px solid ${r.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${r.appBorderColor}`,color:r.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[Je("ul")]:{...e,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),NDe=J.div(({theme:r})=>({background:r.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Qd}px)`]:{}}));var fl=r=>({borderRadius:r.appBorderRadius,background:r.background.content,boxShadow:r.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${r.appBorderColor}`}),{window:zDe}=kt;var X8=fi({scale:1}),{PREVIEW_URL:jDe}=kt;var UDe=J.strong(({theme:r})=>({color:r.color.orange}));var K8=J(cc)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),J8=J.div({display:"flex",alignItems:"center",gap:4}),Q8=J.div(({theme:r})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:r.appBorderColor,animation:`${r.animation.glow} 1.5s ease-in-out infinite`})),Z8=({isLoading:r,storyId:e,baseUrl:t,zoom:i,resetZoom:s,...n})=>z.createElement(K8,{...n},z.createElement(J8,{key:"left"},r?[1,2,3].map(o=>z.createElement(Q8,{key:o})):z.createElement(z.Fragment,null,z.createElement(Kr,{key:"zoomin",onClick:o=>{o.preventDefault(),i(.8)},title:"Zoom in"},z.createElement(cg,null)),z.createElement(Kr,{key:"zoomout",onClick:o=>{o.preventDefault(),i(1.25)},title:"Zoom out"},z.createElement(hg,null)),z.createElement(Kr,{key:"zoomreset",onClick:o=>{o.preventDefault(),s()},title:"Reset zoom"},z.createElement(dg,null))))),e9=J.div(({isColumn:r,columns:e,layout:t})=>({display:r||!e?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:r?"column":"row","& .innerZoomElementWrapper > *":r?{width:t!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:t!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:r="padded"})=>r==="centered"||r==="padded"?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{},({layout:r="padded"})=>r==="centered"?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:r})=>r&&r>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${r} - 20px)`}}:{}),AC=J(Y8)(({theme:r})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:r.appBorderRadius,borderBottomRightRadius:r.appBorderRadius,border:"none",background:r.base==="light"?"rgba(0, 0, 0, 0.85)":Ht(.05,r.background.content),color:r.color.lightest,button:{background:r.base==="light"?"rgba(0, 0, 0, 0.85)":Ht(.05,r.background.content)}})),t9=J.div(({theme:r,withSource:e,isExpanded:t})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...fl(r),borderBottomLeftRadius:e&&t&&0,borderBottomRightRadius:e&&t&&0,borderBottomWidth:t&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:r})=>r&&{paddingTop:40}),r9=(r,e,t)=>{switch(!0){case!!(r&&r.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>t(!1)}};case e:return{source:z.createElement(AC,{...r,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>t(!1)}};default:return{source:z.createElement(AC,{...r,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>t(!0)}}}};function i9(r){if(Tl.count(r)===1){let e=r;if(e.props)return e.props.id}return null}var s9=J(Z8)({position:"absolute",top:0,left:0,right:0,height:40}),n9=J.div({overflow:"hidden",position:"relative"}),o9=({isLoading:r,isColumn:e,columns:t,children:i,withSource:s,withToolbar:n=!1,isExpanded:o=!1,additionalActions:a,className:l,layout:u="padded",...c})=>{let[g,m]=Fe(o),{source:y,actionItem:b}=r9(s,g,m),[C,A]=Fe(1),T=[l].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),R=s?[b]:[],[P,E]=Fe(a?[...a]:[]),k=[...R,...P],{window:O}=kt,B=ut(async U=>{let{createCopyToClipboardFunction:q}=await Promise.resolve().then(()=>(ta(),Hf));q()},[]),F=U=>{let q=O.getSelection();q&&q.type==="Range"||(U.preventDefault(),P.filter(ee=>ee.title==="Copied").length===0&&B(y.props.code).then(()=>{E([...P,{title:"Copied",onClick:()=>{}}]),O.setTimeout(()=>E(P.filter(ee=>ee.title!=="Copied")),1500)}))};return z.createElement(t9,{withSource:s,withToolbar:n,...c,className:T.join(" ")},n&&z.createElement(s9,{isLoading:r,border:!0,zoom:U=>A(C*U),resetZoom:()=>A(1),storyId:i9(i),baseUrl:"./iframe.html"}),z.createElement(X8.Provider,{value:{scale:C}},z.createElement(n9,{className:"docs-story",onCopyCapture:s&&F},z.createElement(e9,{isColumn:e||!Array.isArray(i),columns:t,layout:u},z.createElement(fc.Element,{scale:C},Array.isArray(i)?i.map((U,q)=>z.createElement("div",{key:q},U)):z.createElement("div",null,i))),z.createElement(uc,{actionItems:k}))),s&&g&&y)};J(o9)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var a9=J.label(({theme:r})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:r.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${r.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:r.typography.size.s1,fontWeight:r.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:Oe(.5,r.color.defaultText),background:"transparent","&:hover":{boxShadow:`${Ys(.3,r.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${Ys(.05,r.appBorderColor)} 0 0 0 2px inset`,color:Ys(1,r.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:r.boolean.selectedBackground,boxShadow:r.base==="light"?`${Ys(.1,r.appBorderColor)} 0 0 2px`:`${r.appBorderColor} 0 0 0 1px`,color:r.color.defaultText,padding:"7px 15px"}})),l9=r=>r==="true",OC=({name:r,value:e,onChange:t,onBlur:i,onFocus:s,argType:n})=>{let o=ut(()=>t(!1),[t]),a=!!n?.table?.readonly;if(e===void 0)return z.createElement(Zo,{variant:"outline",size:"medium",id:ac(r),onClick:o,disabled:a},"Set boolean");let l=Kt(r),u=typeof e=="string"?l9(e):e;return z.createElement(a9,{"aria-disabled":a,htmlFor:l,"aria-label":r},z.createElement("input",{id:l,type:"checkbox",onChange:c=>t(c.target.checked),checked:u,role:"switch",disabled:a,name:r,onBlur:i,onFocus:s}),z.createElement("span",{"aria-hidden":"true"},"False"),z.createElement("span",{"aria-hidden":"true"},"True"))};var HDe=J(Rr.Input)(({readOnly:r})=>({opacity:r?.5:1})),WDe=J.div(({theme:r})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:r.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}}));var u9=J.label({display:"flex"}),c9=r=>{let e=parseFloat(r);return Number.isNaN(e)?void 0:e};var h9=J(Rr.Input)(({readOnly:r})=>({opacity:r?.5:1})),gl=({name:r,value:e,onChange:t,min:i,max:s,step:n,onBlur:o,onFocus:a,argType:l})=>{let[u,c]=Fe(typeof e=="number"?e:""),[g,m]=Fe(!1),[y,b]=Fe(null),C=!!l?.table?.readonly,A=ut(P=>{c(P.target.value);let E=parseFloat(P.target.value);Number.isNaN(E)?b(new Error(`'${P.target.value}' is not a number`)):(t(E),b(null))},[t,b]),T=ut(()=>{c("0"),t(0),m(!0)},[m]),R=Bt(null);return He(()=>{g&&R.current&&R.current.select()},[g]),He(()=>{u!==(typeof e=="number"?e:"")&&c(e)},[e]),e===void 0?z.createElement(Zo,{variant:"outline",size:"medium",id:ac(r),onClick:T,disabled:C},"Set number"):z.createElement(u9,null,z.createElement(h9,{ref:R,id:Kt(r),type:"number",onChange:A,size:"flex",placeholder:"Edit number...",value:u,valid:y?"error":null,autoFocus:g,readOnly:C,name:r,min:i,max:s,step:n,onFocus:a,onBlur:o}))},LC=(r,e)=>{let t=e&&Object.entries(e).find(([i,s])=>s===r);return t?t[0]:void 0},Kd=(r,e)=>r&&e?Object.entries(e).filter(t=>r.includes(t[1])).map(t=>t[0]):[],DC=(r,e)=>r&&e&&r.map(t=>e[t]),d9=J.div(({isInline:r})=>r?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},r=>{if(r["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),p9=J.span({"[aria-readonly=true] &":{opacity:.5}}),f9=J.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),EC=({name:r,options:e,value:t,onChange:i,isInline:s,argType:n})=>{if(!e)return na.warn(`Checkbox with no options: ${r}`),z.createElement(z.Fragment,null,"-");let o=Kd(t,e),[a,l]=Fe(o),u=!!n?.table?.readonly,c=m=>{let y=m.target.value,b=[...a];b.includes(y)?b.splice(b.indexOf(y),1):b.push(y),i(DC(b,e)),l(b)};He(()=>{l(Kd(t,e))},[t]);let g=Kt(r);return z.createElement(d9,{"aria-readonly":u,isInline:s},Object.keys(e).map((m,y)=>{let b=`${g}-${y}`;return z.createElement(f9,{key:b,htmlFor:b},z.createElement("input",{type:"checkbox",disabled:u,id:b,name:b,value:m,onChange:c,checked:a?.includes(m)}),z.createElement(p9,null,m))}))},g9=J.div(({isInline:r})=>r?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},r=>{if(r["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),m9=J.span({"[aria-readonly=true] &":{opacity:.5}}),_9=J.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),IC=({name:r,options:e,value:t,onChange:i,isInline:s,argType:n})=>{if(!e)return na.warn(`Radio with no options: ${r}`),z.createElement(z.Fragment,null,"-");let o=LC(t,e),a=Kt(r),l=!!n?.table?.readonly;return z.createElement(g9,{"aria-readonly":l,isInline:s},Object.keys(e).map((u,c)=>{let g=`${a}-${c}`;return z.createElement(_9,{key:g,htmlFor:g},z.createElement("input",{type:"radio",id:g,name:a,disabled:l,value:u,onChange:m=>i(e[m.currentTarget.value]),checked:u===o}),z.createElement(m9,null,u))}))},y9={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},FC=J.select(y9,({theme:r})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:r.input.color||"inherit",background:r.input.background,borderRadius:r.input.borderRadius,boxShadow:`${r.input.border} 0 0 0 1px inset`,fontSize:r.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${r.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:r.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}})),BC=J.span(({theme:r})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:r.textMutedColor,path:{fill:r.textMutedColor}}})),RC="Choose option...",x9=({name:r,value:e,options:t,onChange:i,argType:s})=>{let n=u=>{i(t[u.currentTarget.value])},o=LC(e,t)||RC,a=Kt(r),l=!!s?.table?.readonly;return z.createElement(BC,null,z.createElement(Cc,null),z.createElement(FC,{disabled:l,id:a,value:o,onChange:n},z.createElement("option",{key:"no-selection",disabled:!0},RC),Object.keys(t).map(u=>z.createElement("option",{key:u,value:u},u))))},b9=({name:r,value:e,options:t,onChange:i,argType:s})=>{let n=u=>{let c=Array.from(u.currentTarget.options).filter(g=>g.selected).map(g=>g.value);i(DC(c,t))},o=Kd(e,t),a=Kt(r),l=!!s?.table?.readonly;return z.createElement(BC,null,z.createElement(FC,{disabled:l,id:a,multiple:!0,value:o,onChange:n},Object.keys(t).map(u=>z.createElement("option",{key:u,value:u},u))))},PC=r=>{let{name:e,options:t}=r;return t?r.isMulti?z.createElement(b9,{...r}):z.createElement(x9,{...r}):(na.warn(`Select with no options: ${e}`),z.createElement(z.Fragment,null,"-"))},v9=(r,e)=>Array.isArray(r)?r.reduce((t,i)=>(t[e?.[i]||String(i)]=i,t),{}):r,S9={check:EC,"inline-check":EC,radio:IC,"inline-radio":IC,select:PC,"multi-select":PC},MC=r=>{let{type:e="select",labels:t,argType:i}=r,s={...r,argType:i,options:i?v9(i.options,t):{},isInline:e.includes("inline"),isMulti:e.includes("multi")},n=S9[e];if(n)return z.createElement(n,{...s});throw new Error(`Unknown options type: ${e}`)},w9="Error",T9="Object",C9="Array",A9="String",E9="Number",I9="Boolean",R9="Date",P9="Null",k9="Undefined",O9="Function",L9="Symbol",NC="ADD_DELTA_TYPE",zC="REMOVE_DELTA_TYPE",jC="UPDATE_DELTA_TYPE",Zd="value",D9="key";function ai(r){return r!==null&&typeof r=="object"&&!Array.isArray(r)&&typeof r[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(r).slice(8,-1)}function UC(r,e){let t=ai(r),i=ai(e);return(t==="Function"||i==="Function")&&i!==t}var ep=class extends ir{constructor(r){super(r),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:r,inputRefValue:e}=this.state,{onlyValue:t}=this.props;r&&typeof r.focus=="function"&&r.focus(),t&&e&&typeof e.focus=="function"&&e.focus(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(r){r.altKey||r.ctrlKey||r.metaKey||r.shiftKey||r.repeat||((r.code==="Enter"||r.key==="Enter")&&(r.preventDefault(),this.onSubmit()),(r.code==="Escape"||r.key==="Escape")&&(r.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd:r,onlyValue:e,onSubmitValueParser:t,keyPath:i,deep:s}=this.props,{inputRefKey:n,inputRefValue:o}=this.state,a={};if(!e){if(!n.value)return;a.key=n.value}a.newValue=t(!1,i,s,a.key,o.value),r(a)}refInputKey(r){this.state.inputRefKey=r}refInputValue(r){this.state.inputRefValue=r}render(){let{handleCancel:r,onlyValue:e,addButtonElement:t,cancelButtonElement:i,inputElementGenerator:s,keyPath:n,deep:o}=this.props,a=Ue(t,{onClick:this.onSubmit}),l=Ue(i,{onClick:r}),u=s(Zd,n,o),c=Ue(u,{placeholder:"Value",ref:this.refInputValue}),g=null;if(!e){let m=s(D9,n,o);g=Ue(m,{placeholder:"Key",ref:this.refInputKey})}return z.createElement("span",{className:"rejt-add-value-node"},g,c,l,a)}};ep.defaultProps={onlyValue:!1,addButtonElement:z.createElement("button",null,"+"),cancelButtonElement:z.createElement("button",null,"c")};var HC=class extends ir{constructor(r){super(r);let e=[...r.keyPath,r.name];this.state={data:r.data,name:r.name,keyPath:e,deep:r.deep,nextDeep:r.deep+1,collapsed:r.isCollapsed(e,r.deep,r.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(r,e){return r.data!==e.data?{data:r.data}:null}onChildUpdate(r,e){let{data:t,keyPath:i}=this.state;t[r]=e,this.setState({data:t});let{onUpdate:s}=this.props,n=i.length;s(i[n-1],t)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(r=>({collapsed:!r.collapsed}))}handleRemoveItem(r){return()=>{let{beforeRemoveAction:e,logger:t}=this.props,{data:i,keyPath:s,nextDeep:n}=this.state,o=i[r];e(r,s,n,o).then(()=>{let a={keyPath:s,deep:n,key:r,oldValue:o,type:zC};i.splice(r,1),this.setState({data:i});let{onUpdate:l,onDeltaUpdate:u}=this.props;l(s[s.length-1],i),u(a)}).catch(t.error)}}handleAddValueAdd({newValue:r}){let{data:e,keyPath:t,nextDeep:i}=this.state,{beforeAddAction:s,logger:n}=this.props;s(e.length,t,i,r).then(()=>{let o=[...e,r];this.setState({data:o}),this.handleAddValueCancel();let{onUpdate:a,onDeltaUpdate:l}=this.props;a(t[t.length-1],o),l({type:NC,keyPath:t,deep:i,key:o.length-1,newValue:r})}).catch(n.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:r,value:e}){return new Promise((t,i)=>{let{beforeUpdateAction:s}=this.props,{data:n,keyPath:o,nextDeep:a}=this.state,l=n[r];s(r,o,a,l,e).then(()=>{n[r]=e,this.setState({data:n});let{onUpdate:u,onDeltaUpdate:c}=this.props;u(o[o.length-1],n),c({type:jC,keyPath:o,deep:a,key:r,newValue:e,oldValue:l}),t(void 0)}).catch(i)})}renderCollapsed(){let{name:r,data:e,keyPath:t,deep:i}=this.state,{handleRemove:s,readOnly:n,getStyle:o,dataType:a,minusMenuElement:l}=this.props,{minus:u,collapsed:c}=o(r,e,t,i,a),g=n(r,e,t,i,a),m=Ue(l,{onClick:s,className:"rejt-minus-menu",style:u});return z.createElement("span",{className:"rejt-collapsed"},z.createElement("span",{className:"rejt-collapsed-text",style:c,onClick:this.handleCollapseMode},"[...] ",e.length," ",e.length===1?"item":"items"),!g&&m)}renderNotCollapsed(){let{name:r,data:e,keyPath:t,deep:i,addFormVisible:s,nextDeep:n}=this.state,{isCollapsed:o,handleRemove:a,onDeltaUpdate:l,readOnly:u,getStyle:c,dataType:g,addButtonElement:m,cancelButtonElement:y,editButtonElement:b,inputElementGenerator:C,textareaElementGenerator:A,minusMenuElement:T,plusMenuElement:R,beforeRemoveAction:P,beforeAddAction:E,beforeUpdateAction:k,logger:O,onSubmitValueParser:B}=this.props,{minus:F,plus:U,delimiter:q,ul:ee,addForm:te}=c(r,e,t,i,g),$=u(r,e,t,i,g),D=Ue(R,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:U}),N=Ue(T,{onClick:a,className:"rejt-minus-menu",style:F});return z.createElement("span",{className:"rejt-not-collapsed"},z.createElement("span",{className:"rejt-not-collapsed-delimiter",style:q},"["),!s&&D,z.createElement("ul",{className:"rejt-not-collapsed-list",style:ee},e.map((G,Q)=>z.createElement(ml,{key:Q,name:Q.toString(),data:G,keyPath:t,deep:n,isCollapsed:o,handleRemove:this.handleRemoveItem(Q),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:l,readOnly:u,getStyle:c,addButtonElement:m,cancelButtonElement:y,editButtonElement:b,inputElementGenerator:C,textareaElementGenerator:A,minusMenuElement:T,plusMenuElement:R,beforeRemoveAction:P,beforeAddAction:E,beforeUpdateAction:k,logger:O,onSubmitValueParser:B}))),!$&&s&&z.createElement("div",{className:"rejt-add-form",style:te},z.createElement(ep,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:m,cancelButtonElement:y,inputElementGenerator:C,keyPath:t,deep:i,onSubmitValueParser:B})),z.createElement("span",{className:"rejt-not-collapsed-delimiter",style:q},"]"),!$&&N)}render(){let{name:r,collapsed:e,data:t,keyPath:i,deep:s}=this.state,{dataType:n,getStyle:o}=this.props,a=e?this.renderCollapsed():this.renderNotCollapsed(),l=o(r,t,i,s,n);return z.createElement("div",{className:"rejt-array-node"},z.createElement("span",{onClick:this.handleCollapseMode},z.createElement("span",{className:"rejt-name",style:l.name},r," :"," ")),a)}};HC.defaultProps={keyPath:[],deep:0,minusMenuElement:z.createElement("span",null," - "),plusMenuElement:z.createElement("span",null," + ")};var WC=class extends ir{constructor(r){super(r);let e=[...r.keyPath,r.name];this.state={value:r.value,name:r.name,keyPath:e,deep:r.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(r,e){return r.value!==e.value?{value:r.value}:null}componentDidUpdate(){let{editEnabled:r,inputRef:e,name:t,value:i,keyPath:s,deep:n}=this.state,{readOnly:o,dataType:a}=this.props,l=o(t,i,s,n,a);r&&!l&&typeof e.focus=="function"&&e.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(r){r.altKey||r.ctrlKey||r.metaKey||r.shiftKey||r.repeat||((r.code==="Enter"||r.key==="Enter")&&(r.preventDefault(),this.handleEdit()),(r.code==="Escape"||r.key==="Escape")&&(r.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:r,originalValue:e,logger:t,onSubmitValueParser:i,keyPath:s}=this.props,{inputRef:n,name:o,deep:a}=this.state;if(!n)return;let l=i(!0,s,a,o,n.value);r({value:l,key:o}).then(()=>{UC(e,l)||this.handleCancelEdit()}).catch(t.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(r){this.state.inputRef=r}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:r,value:e,editEnabled:t,keyPath:i,deep:s}=this.state,{handleRemove:n,originalValue:o,readOnly:a,dataType:l,getStyle:u,editButtonElement:c,cancelButtonElement:g,textareaElementGenerator:m,minusMenuElement:y,keyPath:b}=this.props,C=u(r,o,i,s,l),A=null,T=null,R=a(r,o,i,s,l);if(t&&!R){let P=m(Zd,b,s,r,o,l),E=Ue(c,{onClick:this.handleEdit}),k=Ue(g,{onClick:this.handleCancelEdit}),O=Ue(P,{ref:this.refInput,defaultValue:o});A=z.createElement("span",{className:"rejt-edit-form",style:C.editForm},O," ",k,E),T=null}else{A=z.createElement("span",{className:"rejt-value",style:C.value,onClick:R?null:this.handleEditMode},e);let P=Ue(y,{onClick:n,className:"rejt-minus-menu",style:C.minus});T=R?null:P}return z.createElement("li",{className:"rejt-function-value-node",style:C.li},z.createElement("span",{className:"rejt-name",style:C.name},r," :"," "),A,T)}};WC.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:z.createElement("button",null,"e"),cancelButtonElement:z.createElement("button",null,"c"),minusMenuElement:z.createElement("span",null," - ")};var ml=class extends ir{constructor(r){super(r),this.state={data:r.data,name:r.name,keyPath:r.keyPath,deep:r.deep}}static getDerivedStateFromProps(r,e){return r.data!==e.data?{data:r.data}:null}render(){let{data:r,name:e,keyPath:t,deep:i}=this.state,{isCollapsed:s,handleRemove:n,handleUpdateValue:o,onUpdate:a,onDeltaUpdate:l,readOnly:u,getStyle:c,addButtonElement:g,cancelButtonElement:m,editButtonElement:y,inputElementGenerator:b,textareaElementGenerator:C,minusMenuElement:A,plusMenuElement:T,beforeRemoveAction:R,beforeAddAction:P,beforeUpdateAction:E,logger:k,onSubmitValueParser:O}=this.props,B=()=>!0,F=ai(r);switch(F){case w9:return z.createElement(Jd,{data:r,name:e,isCollapsed:s,keyPath:t,deep:i,handleRemove:n,onUpdate:a,onDeltaUpdate:l,readOnly:B,dataType:F,getStyle:c,addButtonElement:g,cancelButtonElement:m,editButtonElement:y,inputElementGenerator:b,textareaElementGenerator:C,minusMenuElement:A,plusMenuElement:T,beforeRemoveAction:R,beforeAddAction:P,beforeUpdateAction:E,logger:k,onSubmitValueParser:O});case T9:return z.createElement(Jd,{data:r,name:e,isCollapsed:s,keyPath:t,deep:i,handleRemove:n,onUpdate:a,onDeltaUpdate:l,readOnly:u,dataType:F,getStyle:c,addButtonElement:g,cancelButtonElement:m,editButtonElement:y,inputElementGenerator:b,textareaElementGenerator:C,minusMenuElement:A,plusMenuElement:T,beforeRemoveAction:R,beforeAddAction:P,beforeUpdateAction:E,logger:k,onSubmitValueParser:O});case C9:return z.createElement(HC,{data:r,name:e,isCollapsed:s,keyPath:t,deep:i,handleRemove:n,onUpdate:a,onDeltaUpdate:l,readOnly:u,dataType:F,getStyle:c,addButtonElement:g,cancelButtonElement:m,editButtonElement:y,inputElementGenerator:b,textareaElementGenerator:C,minusMenuElement:A,plusMenuElement:T,beforeRemoveAction:R,beforeAddAction:P,beforeUpdateAction:E,logger:k,onSubmitValueParser:O});case A9:return z.createElement(Hr,{name:e,value:`"${r}"`,originalValue:r,keyPath:t,deep:i,handleRemove:n,handleUpdateValue:o,readOnly:u,dataType:F,getStyle:c,cancelButtonElement:m,editButtonElement:y,inputElementGenerator:b,minusMenuElement:A,logger:k,onSubmitValueParser:O});case E9:return z.createElement(Hr,{name:e,value:r,originalValue:r,keyPath:t,deep:i,handleRemove:n,handleUpdateValue:o,readOnly:u,dataType:F,getStyle:c,cancelButtonElement:m,editButtonElement:y,inputElementGenerator:b,minusMenuElement:A,logger:k,onSubmitValueParser:O});case I9:return z.createElement(Hr,{name:e,value:r?"true":"false",originalValue:r,keyPath:t,deep:i,handleRemove:n,handleUpdateValue:o,readOnly:u,dataType:F,getStyle:c,cancelButtonElement:m,editButtonElement:y,inputElementGenerator:b,minusMenuElement:A,logger:k,onSubmitValueParser:O});case R9:return z.createElement(Hr,{name:e,value:r.toISOString(),originalValue:r,keyPath:t,deep:i,handleRemove:n,handleUpdateValue:o,readOnly:B,dataType:F,getStyle:c,cancelButtonElement:m,editButtonElement:y,inputElementGenerator:b,minusMenuElement:A,logger:k,onSubmitValueParser:O});case P9:return z.createElement(Hr,{name:e,value:"null",originalValue:"null",keyPath:t,deep:i,handleRemove:n,handleUpdateValue:o,readOnly:u,dataType:F,getStyle:c,cancelButtonElement:m,editButtonElement:y,inputElementGenerator:b,minusMenuElement:A,logger:k,onSubmitValueParser:O});case k9:return z.createElement(Hr,{name:e,value:"undefined",originalValue:"undefined",keyPath:t,deep:i,handleRemove:n,handleUpdateValue:o,readOnly:u,dataType:F,getStyle:c,cancelButtonElement:m,editButtonElement:y,inputElementGenerator:b,minusMenuElement:A,logger:k,onSubmitValueParser:O});case O9:return z.createElement(WC,{name:e,value:r.toString(),originalValue:r,keyPath:t,deep:i,handleRemove:n,handleUpdateValue:o,readOnly:u,dataType:F,getStyle:c,cancelButtonElement:m,editButtonElement:y,textareaElementGenerator:C,minusMenuElement:A,logger:k,onSubmitValueParser:O});case L9:return z.createElement(Hr,{name:e,value:r.toString(),originalValue:r,keyPath:t,deep:i,handleRemove:n,handleUpdateValue:o,readOnly:B,dataType:F,getStyle:c,cancelButtonElement:m,editButtonElement:y,inputElementGenerator:b,minusMenuElement:A,logger:k,onSubmitValueParser:O});default:return null}}};ml.defaultProps={keyPath:[],deep:0};var Jd=class extends ir{constructor(r){super(r);let e=r.deep===-1?[]:[...r.keyPath,r.name];this.state={name:r.name,data:r.data,keyPath:e,deep:r.deep,nextDeep:r.deep+1,collapsed:r.isCollapsed(e,r.deep,r.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(r,e){return r.data!==e.data?{data:r.data}:null}onChildUpdate(r,e){let{data:t,keyPath:i}=this.state;t[r]=e,this.setState({data:t});let{onUpdate:s}=this.props,n=i.length;s(i[n-1],t)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:r,newValue:e}){let{data:t,keyPath:i,nextDeep:s}=this.state,{beforeAddAction:n,logger:o}=this.props;n(r,i,s,e).then(()=>{t[r]=e,this.setState({data:t}),this.handleAddValueCancel();let{onUpdate:a,onDeltaUpdate:l}=this.props;a(i[i.length-1],t),l({type:NC,keyPath:i,deep:s,key:r,newValue:e})}).catch(o.error)}handleRemoveValue(r){return()=>{let{beforeRemoveAction:e,logger:t}=this.props,{data:i,keyPath:s,nextDeep:n}=this.state,o=i[r];e(r,s,n,o).then(()=>{let a={keyPath:s,deep:n,key:r,oldValue:o,type:zC};delete i[r],this.setState({data:i});let{onUpdate:l,onDeltaUpdate:u}=this.props;l(s[s.length-1],i),u(a)}).catch(t.error)}}handleCollapseMode(){this.setState(r=>({collapsed:!r.collapsed}))}handleEditValue({key:r,value:e}){return new Promise((t,i)=>{let{beforeUpdateAction:s}=this.props,{data:n,keyPath:o,nextDeep:a}=this.state,l=n[r];s(r,o,a,l,e).then(()=>{n[r]=e,this.setState({data:n});let{onUpdate:u,onDeltaUpdate:c}=this.props;u(o[o.length-1],n),c({type:jC,keyPath:o,deep:a,key:r,newValue:e,oldValue:l}),t()}).catch(i)})}renderCollapsed(){let{name:r,keyPath:e,deep:t,data:i}=this.state,{handleRemove:s,readOnly:n,dataType:o,getStyle:a,minusMenuElement:l}=this.props,{minus:u,collapsed:c}=a(r,i,e,t,o),g=Object.getOwnPropertyNames(i),m=n(r,i,e,t,o),y=Ue(l,{onClick:s,className:"rejt-minus-menu",style:u});return z.createElement("span",{className:"rejt-collapsed"},z.createElement("span",{className:"rejt-collapsed-text",style:c,onClick:this.handleCollapseMode},"{...}"," ",g.length," ",g.length===1?"key":"keys"),!m&&y)}renderNotCollapsed(){let{name:r,data:e,keyPath:t,deep:i,nextDeep:s,addFormVisible:n}=this.state,{isCollapsed:o,handleRemove:a,onDeltaUpdate:l,readOnly:u,getStyle:c,dataType:g,addButtonElement:m,cancelButtonElement:y,editButtonElement:b,inputElementGenerator:C,textareaElementGenerator:A,minusMenuElement:T,plusMenuElement:R,beforeRemoveAction:P,beforeAddAction:E,beforeUpdateAction:k,logger:O,onSubmitValueParser:B}=this.props,{minus:F,plus:U,addForm:q,ul:ee,delimiter:te}=c(r,e,t,i,g),$=Object.getOwnPropertyNames(e),D=u(r,e,t,i,g),N=Ue(R,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:U}),G=Ue(T,{onClick:a,className:"rejt-minus-menu",style:F}),Q=$.map(ne=>z.createElement(ml,{key:ne,name:ne,data:e[ne],keyPath:t,deep:s,isCollapsed:o,handleRemove:this.handleRemoveValue(ne),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:l,readOnly:u,getStyle:c,addButtonElement:m,cancelButtonElement:y,editButtonElement:b,inputElementGenerator:C,textareaElementGenerator:A,minusMenuElement:T,plusMenuElement:R,beforeRemoveAction:P,beforeAddAction:E,beforeUpdateAction:k,logger:O,onSubmitValueParser:B}));return z.createElement("span",{className:"rejt-not-collapsed"},z.createElement("span",{className:"rejt-not-collapsed-delimiter",style:te},"{"),!D&&N,z.createElement("ul",{className:"rejt-not-collapsed-list",style:ee},Q),!D&&n&&z.createElement("div",{className:"rejt-add-form",style:q},z.createElement(ep,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:m,cancelButtonElement:y,inputElementGenerator:C,keyPath:t,deep:i,onSubmitValueParser:B})),z.createElement("span",{className:"rejt-not-collapsed-delimiter",style:te},"}"),!D&&G)}render(){let{name:r,collapsed:e,data:t,keyPath:i,deep:s}=this.state,{getStyle:n,dataType:o}=this.props,a=e?this.renderCollapsed():this.renderNotCollapsed(),l=n(r,t,i,s,o);return z.createElement("div",{className:"rejt-object-node"},z.createElement("span",{onClick:this.handleCollapseMode},z.createElement("span",{className:"rejt-name",style:l.name},r," :"," ")),a)}};Jd.defaultProps={keyPath:[],deep:0,minusMenuElement:z.createElement("span",null," - "),plusMenuElement:z.createElement("span",null," + ")};var Hr=class extends ir{constructor(r){super(r);let e=[...r.keyPath,r.name];this.state={value:r.value,name:r.name,keyPath:e,deep:r.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(r,e){return r.value!==e.value?{value:r.value}:null}componentDidUpdate(){let{editEnabled:r,inputRef:e,name:t,value:i,keyPath:s,deep:n}=this.state,{readOnly:o,dataType:a}=this.props,l=o(t,i,s,n,a);r&&!l&&typeof e.focus=="function"&&e.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(r){r.altKey||r.ctrlKey||r.metaKey||r.shiftKey||r.repeat||((r.code==="Enter"||r.key==="Enter")&&(r.preventDefault(),this.handleEdit()),(r.code==="Escape"||r.key==="Escape")&&(r.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:r,originalValue:e,logger:t,onSubmitValueParser:i,keyPath:s}=this.props,{inputRef:n,name:o,deep:a}=this.state;if(!n)return;let l=i(!0,s,a,o,n.value);r({value:l,key:o}).then(()=>{UC(e,l)||this.handleCancelEdit()}).catch(t.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(r){this.state.inputRef=r}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:r,value:e,editEnabled:t,keyPath:i,deep:s}=this.state,{handleRemove:n,originalValue:o,readOnly:a,dataType:l,getStyle:u,editButtonElement:c,cancelButtonElement:g,inputElementGenerator:m,minusMenuElement:y,keyPath:b}=this.props,C=u(r,o,i,s,l),A=a(r,o,i,s,l),T=t&&!A,R=m(Zd,b,s,r,o,l),P=Ue(c,{onClick:this.handleEdit}),E=Ue(g,{onClick:this.handleCancelEdit}),k=Ue(R,{ref:this.refInput,defaultValue:JSON.stringify(o)}),O=Ue(y,{onClick:n,className:"rejt-minus-menu",style:C.minus});return z.createElement("li",{className:"rejt-value-node",style:C.li},z.createElement("span",{className:"rejt-name",style:C.name},r," : "),T?z.createElement("span",{className:"rejt-edit-form",style:C.editForm},k," ",E,P):z.createElement("span",{className:"rejt-value",style:C.value,onClick:A?null:this.handleEditMode},String(e)),!A&&!T&&O)}};Hr.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:z.createElement("button",null,"e"),cancelButtonElement:z.createElement("button",null,"c"),minusMenuElement:z.createElement("span",null," - ")};function F9(r){let e=r;if(e.indexOf("function")===0)return(0,eval)(`(${e})`);try{e=JSON.parse(r)}catch{}return e}var B9={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},M9={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},N9={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}},z9=class extends ir{constructor(r){super(r),this.state={data:r.data,rootName:r.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(r,e){return r.data!==e.data||r.rootName!==e.rootName?{data:r.data,rootName:r.rootName}:null}onUpdate(r,e){this.setState({data:e}),this.props.onFullyUpdate(e)}removeRoot(){this.onUpdate(null,null)}render(){let{data:r,rootName:e}=this.state,{isCollapsed:t,onDeltaUpdate:i,readOnly:s,getStyle:n,addButtonElement:o,cancelButtonElement:a,editButtonElement:l,inputElement:u,textareaElement:c,minusMenuElement:g,plusMenuElement:m,beforeRemoveAction:y,beforeAddAction:b,beforeUpdateAction:C,logger:A,onSubmitValueParser:T,fallback:R=null}=this.props,P=ai(r),E=s;ai(s)==="Boolean"&&(E=()=>s);let k=u;u&&ai(u)!=="Function"&&(k=()=>u);let O=c;return c&&ai(c)!=="Function"&&(O=()=>c),P==="Object"||P==="Array"?z.createElement("div",{className:"rejt-tree"},z.createElement(ml,{data:r,name:e,deep:-1,isCollapsed:t,onUpdate:this.onUpdate,onDeltaUpdate:i,readOnly:E,getStyle:n,addButtonElement:o,cancelButtonElement:a,editButtonElement:l,inputElementGenerator:k,textareaElementGenerator:O,minusMenuElement:g,plusMenuElement:m,handleRemove:this.removeRoot,beforeRemoveAction:y,beforeAddAction:b,beforeUpdateAction:C,logger:A,onSubmitValueParser:T})):R}};z9.defaultProps={rootName:"root",isCollapsed:(r,e)=>e!==-1,getStyle:(r,e,t,i,s)=>{switch(s){case"Object":case"Error":return B9;case"Array":return M9;default:return N9}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(r,e,t,i,s)=>F9(s),inputElement:()=>z.createElement("input",null),textareaElement:()=>z.createElement("textarea",null),fallback:null};var{window:qDe}=kt,$De=J.div(({theme:r})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:r.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:r.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:r.color.lighter,borderColor:r.appBorderColor}})),VDe=J.button(({theme:r,primary:e})=>({border:0,height:20,margin:1,borderRadius:4,background:e?r.color.secondary:"transparent",color:e?r.color.lightest:r.color.dark,fontWeight:e?"bold":"normal",cursor:"pointer",order:e?"initial":9})),GDe=J(ig)(({theme:r,disabled:e})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:e?"not-allowed":"pointer",color:r.textMutedColor,"&:hover":e?{}:{color:r.color.ancillary},"svg + &":{marginLeft:0}})),YDe=J(ug)(({theme:r,disabled:e})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:e?"not-allowed":"pointer",color:r.textMutedColor,"&:hover":e?{}:{color:r.color.negative},"svg + &":{marginLeft:0}})),XDe=J.input(({theme:r,placeholder:e})=>({outline:0,margin:e?1:"1px 0",padding:"3px 4px",color:r.color.defaultText,background:r.background.app,border:`1px solid ${r.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:e==="Key"?80:120,"&:focus":{border:`1px solid ${r.color.secondary}`}})),KDe=J(Kr)(({theme:r})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:r.background.bar,border:`1px solid ${r.appBorderColor}`,borderRadius:3,color:r.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),JDe=J(Rr.Textarea)(({theme:r})=>({flex:1,padding:"7px 6px",fontFamily:r.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:r.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}}));var j9=J.input(({theme:r,min:e,max:t,value:i,disabled:s})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:r.base==="light"?`linear-gradient(to right, + ${r.color.green} 0%, ${r.color.green} ${(i-e)/(t-e)*100}%, + ${Ht(.02,r.input.background)} ${(i-e)/(t-e)*100}%, + ${Ht(.02,r.input.background)} 100%)`:`linear-gradient(to right, + ${r.color.green} 0%, ${r.color.green} ${(i-e)/(t-e)*100}%, + ${Lr(.02,r.input.background)} ${(i-e)/(t-e)*100}%, + ${Lr(.02,r.input.background)} 100%)`,boxShadow:`${r.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:s?"not-allowed":"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${Ut(r.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Ut(r.appBorderColor,.2)}`,cursor:s?"not-allowed":"grab",appearance:"none",background:`${r.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${Ht(.05,r.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${r.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:s?"not-allowed":"grab"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:Ut(r.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:r.color.secondary,boxShadow:`0 0px 5px 0px ${r.color.secondary}`}},"&::-moz-range-track":{background:r.base==="light"?`linear-gradient(to right, + ${r.color.green} 0%, ${r.color.green} ${(i-e)/(t-e)*100}%, + ${Ht(.02,r.input.background)} ${(i-e)/(t-e)*100}%, + ${Ht(.02,r.input.background)} 100%)`:`linear-gradient(to right, + ${r.color.green} 0%, ${r.color.green} ${(i-e)/(t-e)*100}%, + ${Lr(.02,r.input.background)} ${(i-e)/(t-e)*100}%, + ${Lr(.02,r.input.background)} 100%)`,boxShadow:`${r.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:s?"not-allowed":"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${Ut(r.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Ut(r.appBorderColor,.2)}`,cursor:s?"not-allowed":"grap",background:`${r.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${Ht(.05,r.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${r.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:r.base==="light"?`linear-gradient(to right, + ${r.color.green} 0%, ${r.color.green} ${(i-e)/(t-e)*100}%, + ${Ht(.02,r.input.background)} ${(i-e)/(t-e)*100}%, + ${Ht(.02,r.input.background)} 100%)`:`linear-gradient(to right, + ${r.color.green} 0%, ${r.color.green} ${(i-e)/(t-e)*100}%, + ${Lr(.02,r.input.background)} ${(i-e)/(t-e)*100}%, + ${Lr(.02,r.input.background)} 100%)`,boxShadow:`${r.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${r.input.background}`,border:`1px solid ${Ut(r.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),qC=J.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),U9=J(qC)(({numberOFDecimalsPlaces:r,max:e})=>({width:`${r+e.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),H9=J.div({display:"flex",alignItems:"center",width:"100%"});function W9(r){let e=r.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}var $C=({name:r,value:e,onChange:t,min:i=0,max:s=100,step:n=1,onBlur:o,onFocus:a,argType:l})=>{let u=y=>{t(c9(y.target.value))},c=e!==void 0,g=vr(()=>W9(n),[n]),m=!!l?.table?.readonly;return z.createElement(H9,{"aria-readonly":m},z.createElement(qC,null,i),z.createElement(j9,{id:Kt(r),type:"range",disabled:m,onChange:u,name:r,value:e,min:i,max:s,step:n,onFocus:a,onBlur:o}),z.createElement(U9,{numberOFDecimalsPlaces:g,max:s},c?e.toFixed(g):"--"," / ",s))},QDe=J.label({display:"flex"}),ZDe=J.div(({isMaxed:r})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:r?"red":void 0}));var eFe=J(Rr.Input)({padding:10});var q9=Al(()=>Promise.resolve().then(()=>(CC(),TC))),_l=r=>z.createElement(Cl,{fallback:z.createElement("div",null)},z.createElement(q9,{...r}));var tFe=J.table(({theme:r})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Ai({theme:r}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:r.typography.size.s1}}}));var rFe=J.div(({isExpanded:r})=>({display:"flex",flexDirection:r?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),iFe=J.span(Ai,({theme:r,simple:e=!1})=>({flex:"0 0 auto",fontFamily:r.typography.fonts.mono,fontSize:r.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...e&&{background:"transparent",border:"0 none",paddingLeft:0}})),sFe=J.button(({theme:r})=>({fontFamily:r.typography.fonts.mono,color:r.color.secondary,marginBottom:"4px",background:"none",border:"none"})),nFe=J.div(Ai,({theme:r})=>({fontFamily:r.typography.fonts.mono,color:r.color.secondary,fontSize:r.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),oFe=J.div(({theme:r,width:e})=>({width:e,minWidth:200,maxWidth:800,padding:15,fontFamily:r.typography.fonts.mono,fontSize:r.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),aFe=J(og)({marginLeft:4}),lFe=J(Cc)({marginLeft:4});var uFe=(0,kC.default)(1e3)(r=>{let e=r.split(/\r?\n/);return`${Math.max(...e.map(t=>t.length))}ch`});var cFe=J.span({fontWeight:"bold"}),hFe=J.span(({theme:r})=>({color:r.color.negative,fontFamily:r.typography.fonts.mono,cursor:"help"})),dFe=J.div(({theme:r})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:r.color.secondary}},code:{...Ai({theme:r}),fontSize:12,fontFamily:r.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),pFe=J.div(({theme:r,hasDescription:e})=>({color:r.base==="light"?Oe(.1,r.color.defaultText):Oe(.2,r.color.defaultText),marginTop:e?4:0})),fFe=J.div(({theme:r,hasDescription:e})=>({color:r.base==="light"?Oe(.1,r.color.defaultText):Oe(.2,r.color.defaultText),marginTop:e?12:0,marginBottom:12})),gFe=J.td(({theme:r,expandable:e})=>({paddingLeft:e?"40px !important":"20px !important"}));var mFe=J.div(({inAddonPanel:r,theme:e})=>({height:r?"100%":"auto",display:"flex",border:r?"none":`1px solid ${e.appBorderColor}`,borderRadius:r?0:e.appBorderRadius,padding:r?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"})),_Fe=J.div(({theme:r})=>({display:"flex",fontSize:r.typography.size.s2-1,gap:25})),yFe=J.div(({theme:r})=>({width:1,height:16,backgroundColor:r.appBorderColor}));var xFe=J(sg)(({theme:r})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:r.base==="light"?Oe(.25,r.color.defaultText):Oe(.3,r.color.defaultText),border:"none",display:"inline-block"})),bFe=J(ng)(({theme:r})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:r.base==="light"?Oe(.25,r.color.defaultText):Oe(.3,r.color.defaultText),border:"none",display:"inline-block"})),vFe=J.span(({theme:r})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),SFe=J.td(({theme:r})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:r.typography.weight.bold,fontSize:r.typography.size.s1-1,color:r.base==="light"?Oe(.4,r.color.defaultText):Oe(.6,r.color.defaultText),background:`${r.background.app} !important`,"& ~ td":{background:`${r.background.app} !important`}})),wFe=J.td(({theme:r})=>({position:"relative",fontWeight:r.typography.weight.bold,fontSize:r.typography.size.s2-1,background:r.background.app})),TFe=J.td(()=>({position:"relative"})),CFe=J.tr(({theme:r})=>({"&:hover > td":{backgroundColor:`${Lr(.005,r.background.app)} !important`,boxShadow:`${r.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),AFe=J.button(()=>({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}));var EFe=J.div(({theme:r})=>({display:"flex",gap:16,borderBottom:`1px solid ${r.appBorderColor}`,"&:last-child":{borderBottom:0}})),IFe=J.div(({numColumn:r})=>({display:"flex",flexDirection:"column",flex:r||1,gap:5,padding:"12px 20px"})),RFe=J.div(({theme:r,width:e,height:t})=>({animation:`${r.animation.glow} 1.5s ease-in-out infinite`,background:r.appBorderColor,width:e||"100%",height:t||16,borderRadius:3}));var PFe=J.table(({theme:r,compact:e,inAddonPanel:t})=>({"&&":{borderSpacing:0,color:r.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:r.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:t?0:25,marginBottom:t?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...e?null:{width:"35%"}},"td:nth-of-type(3)":{...e?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...e?null:{width:"25%"}},th:{color:r.base==="light"?Oe(.25,r.color.defaultText):Oe(.45,r.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:t?0:1,marginRight:t?0:1,tbody:{...t?null:{filter:r.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:r.background.content,borderTop:`1px solid ${r.appBorderColor}`},...t?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${r.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${r.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${r.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${r.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:r.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:r.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:r.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:r.appBorderRadius}}}}})),kFe=J(Kr)(({theme:r})=>({margin:"-4px -12px -4px 0"})),OFe=J.span({display:"flex",justifyContent:"space-between"});var LFe=J.div(({theme:r})=>({marginRight:30,fontSize:`${r.typography.size.s1}px`,color:r.base==="light"?Oe(.4,r.color.defaultText):Oe(.6,r.color.defaultText)})),DFe=J.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),FFe=J.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}}),BFe=J.div(Ei,({theme:r})=>({...fl(r),margin:"25px 0 40px",padding:"30px 20px"}));var MFe=J.div(({theme:r})=>({fontWeight:r.typography.weight.bold,color:r.color.defaultText})),NFe=J.div(({theme:r})=>({color:r.base==="light"?Oe(.2,r.color.defaultText):Oe(.6,r.color.defaultText)})),zFe=J.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5}),jFe=J.div(({theme:r})=>({flex:1,textAlign:"center",fontFamily:r.typography.fonts.mono,fontSize:r.typography.size.s1,lineHeight:1,overflow:"hidden",color:r.base==="light"?Oe(.4,r.color.defaultText):Oe(.6,r.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}})),UFe=J.div({display:"flex",flexDirection:"row"}),HFe=J.div(({background:r})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:r,content:'""'}})),WFe=J.div(({theme:r})=>({...fl(r),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"})),qFe=J.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30}),$Fe=J.div({flex:1,display:"flex",flexDirection:"row"}),VFe=J.div({display:"flex",alignItems:"flex-start"}),GFe=J.div({flex:"0 0 30%"}),YFe=J.div({flex:1}),XFe=J.div(({theme:r})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:r.typography.weight.bold,color:r.base==="light"?Oe(.4,r.color.defaultText):Oe(.6,r.color.defaultText)})),KFe=J.div(({theme:r})=>({fontSize:r.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));var JFe=J.div(({theme:r})=>({fontFamily:r.typography.fonts.base,fontSize:r.typography.size.s2,color:r.color.defaultText,marginLeft:10,lineHeight:1.2})),QFe=J.div(({theme:r})=>({...fl(r),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}})),ZFe=J.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"}),eBe=J.div({display:"flex",flexFlow:"row wrap"});kt&&kt.__DOCS_CONTEXT__===void 0&&(kt.__DOCS_CONTEXT__=fi(null),kt.__DOCS_CONTEXT__.displayName="DocsContext");var $9=kt?kt.__DOCS_CONTEXT__:fi(null);var tBe=fi({sources:{}});var{document:V9}=kt;function G9(r,e){r.channel.emit(w0,e)}var rBe=gc.a;var VC=["h1","h2","h3","h4","h5","h6"],Y9=VC.reduce((r,e)=>({...r,[e]:J(e)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),X9=J.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),K9=({as:r,id:e,children:t,...i})=>{let s=El($9),n=Y9[r],o=`#${e}`;return z.createElement(n,{id:e,...i},z.createElement(X9,{"aria-hidden":"true",href:o,tabIndex:-1,target:"_self",onClick:a=>{V9.getElementById(e)&&G9(s,o)}},z.createElement(ag,null)),t)},GC=r=>{let{as:e,id:t,children:i,...s}=r;if(t)return z.createElement(K9,{as:e,id:t,...s},i);let n=e,{as:o,...a}=r;return z.createElement(n,{...mc(a,e)})},iBe=VC.reduce((r,e)=>({...r,[e]:t=>z.createElement(GC,{as:e,...t})}),{});var J9=(r=>(r.INFO="info",r.NOTES="notes",r.DOCGEN="docgen",r.AUTO="auto",r))(J9||{});var sBe=kf(H8()),nBe=J.div(({theme:r})=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),oBe=J.div(({theme:r})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:r.typography.fonts.base,fontSize:r.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${r.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${r.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${r.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${r.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:r.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:r.color.secondary,textDecoration:"none"}})),aBe=J.p(({theme:r})=>({fontWeight:600,fontSize:"0.875em",color:r.textColor,textTransform:"uppercase",marginBottom:10}));var{document:lBe,window:uBe}=kt;var Q9=({children:r,disableAnchor:e,...t})=>{if(e||typeof r!="string")return z.createElement(hc,null,r);let i=r.toLowerCase().replace(/[^a-z0-9]/gi,"-");return z.createElement(GC,{as:"h2",id:i,...t},r)},cBe=J(Q9)(({theme:r})=>({fontSize:`${r.typography.size.s2-1}px`,fontWeight:r.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:r.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}}));h();d();p();var yl=(r,e,t,i)=>{qs({componentConfig:{[r]:{style:{[e]:t}}}},i)};var tp=ye(Ce());function xl({styleProp:r,defaultValue:e,componentName:t,updateGlobals:i}){let[s,n]=Fe(e);return(0,tp.jsx)(Tt,{label:r,control:(0,tp.jsx)(gl,{name:r,value:s,onChange:o=>{n(o),yl(t,r,o,i)}})})}h();d();p();Ge();var rp=ye(Ce());function bl({styleProp:r,defaultValue:e,componentName:t,updateGlobals:i}){let[s,n]=Fe(e);return(0,rp.jsx)(Tt,{label:r,control:(0,rp.jsx)(_l,{name:r,value:s,onChange:o=>{n(o),yl(t,r,o,i)}})})}h();d();p();Ge();var ip=ye(Ce());function vl({defaultTone:r,componentName:e}){let[t,i]=Fe(r);return He(()=>{let s=Hs();s&&s.updateTheme({componentConfig:{[e]:{tone:t}}})},[t]),(0,ip.jsx)(Tt,{label:"tone",control:(0,ip.jsx)(MC,{name:"tones",type:"inline-radio",value:t,argType:{options:["neutral","inverse","brand"]},onChange:s=>{i(s)}})})}h();d();p();Ge();var is=ye(Ce());function Sl(){let[{LUITheme:r},e]=_t(),i=Yr().name;return(0,is.jsx)(is.Fragment,{children:(0,is.jsx)(Sr,{title:"reset styles",label:"reset-panel",onClick:()=>Ws(i,e),children:(0,is.jsx)(wr,{icon:"undo"})})})}h();d();p();Ge();var zt=ye(Ce());function Z9(r,e){let t,i=r._style,s=Yr(),n=r.constructor.__componentName,a={defaultTone:s?.componentConfig?.[n]?.tone?s.componentConfig[n].tone:"neutral",componentName:n,updateGlobals:e},l=Object.keys(i||{}).reduce((u,c)=>{let g=Sf(i[c]);t=new Date().valueOf();let m=g==="color"?le.StageUtils.getRgbaString(i[c]):i[c],y={version:t,defaultValue:m,componentName:n,styleProp:c,updateGlobals:e};return g==="color"?u.push((0,zt.jsx)(bl,{...y},`${n}-${c}-${t}`)):g==="number"&&u.push((0,zt.jsx)(xl,{...y},`${n}-${c}-${t}`)),u},[]);if(l&&l.length)return l.unshift((0,zt.jsx)(vl,{...a},`Tone-${n}-${t}`)),l}function wl(r){let[{LUITheme:e},t]=_t(),i=Z9(r,t);return i&&i.length?(0,zt.jsxs)("div",{children:[(0,zt.jsxs)("div",{style:{display:"flex"},children:[(0,zt.jsxs)("h1",{style:{flex:1},children:["Current Theme: ",wf(e)]}),(0,zt.jsx)(Sl,{style:{flex:1}})]}),(0,zt.jsx)("div",{children:(0,zt.jsx)(cr,{title:"Component Level Theme Styles",rows:i})})]}):(0,zt.jsx)("h3",{children:"No theme values available on this component."})}var _r=ye(Ce()),YC,sp=r=>{let e=Ef();return e&&(YC=e._getFocused().childList.first),(0,_r.jsx)(yp,{...r,children:(0,_r.jsx)("div",{className:"component-styles-panel-wrapper",children:r.active?(0,_r.jsx)(_r.Fragment,{children:(0,_r.jsx)(wl,{...YC})}):(0,_r.jsx)(_r.Fragment,{})})})};h();d();p();Ge();var pt=ye(Ce());function e$(){let[r,e]=_t();if(!r)return(0,pt.jsx)(pt.Fragment,{});let t="GridOverlay-",i=`${t}toggle-`,s=Object.keys(r).filter(l=>l.startsWith(i));if(!s)return(0,pt.jsx)(pt.Fragment,{});let n=[],o="alpha",a=t+o;return r[a]&&n.push((0,pt.jsx)(Tt,{label:o,control:(0,pt.jsx)($C,{name:o,value:parseFloat(r[a]),min:0,max:1,step:.1,onChange:l=>e({[a]:l.toString()})},a)},o)),n.push(...s.map(l=>{let u=l.replace(i,"");return(0,pt.jsx)(Tt,{label:u,control:(0,pt.jsx)(OC,{name:u,value:r[l]==="true",onChange:c=>e({[l]:c.toString()})},l)},l)})),(0,pt.jsx)(pt.Fragment,{children:n})}var t$=({active:r})=>(0,pt.jsx)("div",{className:"grid-overlay-panel-wrapper",style:r?{}:{display:"none"},children:(0,pt.jsx)("div",{className:"grid-overal-panel-controls",children:(0,pt.jsx)(cr,{title:"Grid Overlay Controls",rows:(0,pt.jsx)(e$,{})},"controls")},Yn)}),np=r=>(0,pt.jsx)(t$,{active:r.active},"GridOverlayPanel");h();d();p();Ge();var Qe=ye(Ce());function r$(){let[{LUITheme:r},e]=_t(),i=Qo().color,s=Object.keys(i).map(n=>{let o=Array.isArray(i[n])?ke.getHexColor(i[n][0],i[n][1]):ke.getValidColor(i[n]),a=le.StageUtils.getRgbaString(o);return(0,Qe.jsx)(Tt,{label:n,control:(0,Qe.jsx)(_l,{name:n,onChange:l=>If(n,l,e),value:a})},r?`${r}-${n}`:n)});return(0,Qe.jsx)(Qe.Fragment,{children:s})}var i$=(r,e,t)=>{qs({radius:{[r]:e}},t)};function s$(){let[{LUITheme:r},e]=_t(),i=Qo().radius,s=Object.keys(i).map(n=>(0,Qe.jsx)(Tt,{label:n,control:(0,Qe.jsx)(gl,{name:n,onChange:o=>i$(n,o,e),value:parseInt(i[n]),min:0})},r?`${r}-${n}`:n));return(0,Qe.jsx)(Qe.Fragment,{children:s})}var n$=({active:r})=>(0,Qe.jsx)("div",{className:"theme-panel-wrapper",style:r?{}:{display:"none"},children:(0,Qe.jsxs)("div",{className:"theme-panel-controls",children:[(0,Qe.jsxs)("h1",{children:["Current Theme: ",Qo().name]}),(0,Qe.jsx)(cr,{title:"Global Theme Color Values",rows:(0,Qe.jsx)(r$,{})}),(0,Qe.jsx)(cr,{title:"Global Theme Radius Values",rows:(0,Qe.jsx)(s$,{})})]})}),op=r=>(0,Qe.jsx)(n$,{active:r.active},"ThemePanel");Gt.setConfig({theme:fp,enableShortcuts:!1});Gt.register(Et,()=>{Gt.add(Gn,{type:br.TOOL,title:"Announce Toggle",match:({viewMode:r})=>r==="story",render:kl}),Gt.add(Kn,{type:br.TOOL,title:"Theme",match:({viewMode:r})=>r==="story",render:oc}),Gt.add(Vn,{type:br.TOOL,title:"Download Button",match:({viewMode:r})=>r==="story",render:sc}),Gt.add(Xn,{type:br.TOOL,title:"Stage Color",match:({viewMode:r})=>r==="story",render:Ll}),Gt.add(Yn,{type:br.PANEL,title:"Grid Layout Overlay",match:({viewMode:r})=>r==="story",render:r=>np(r)}),Gt.add(mp,{type:br.PANEL,title:"Component Style Theme Values",match:({viewMode:r})=>r==="story",render:r=>sp(r)}),Gt.add(gp,{type:br.PANEL,title:"Global Theme Values",match:({viewMode:r})=>r==="story",render:op})});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/sb-addons/essentials-controls-0/manager-bundle.js.LEGAL.txt b/sb-addons/storybook-6/manager-bundle.js.LEGAL.txt similarity index 66% rename from sb-addons/essentials-controls-0/manager-bundle.js.LEGAL.txt rename to sb-addons/storybook-6/manager-bundle.js.LEGAL.txt index cfea3e72c..264ca3fc7 100644 --- a/sb-addons/essentials-controls-0/manager-bundle.js.LEGAL.txt +++ b/sb-addons/storybook-6/manager-bundle.js.LEGAL.txt @@ -1,5 +1,16 @@ Bundled license information: +react/cjs/react-jsx-runtime.production.min.js: + /** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + telejson/dist/index.mjs: /*! * isobject diff --git a/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js b/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js new file mode 100644 index 000000000..92f5dd46d --- /dev/null +++ b/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js @@ -0,0 +1,3 @@ +try{ +(()=>{var T=__STORYBOOK_API__,{ActiveTabs:_,Consumer:g,ManagerContext:O,Provider:f,RequestResponseError:A,addons:n,combineParameters:v,controlOrMetaKey:P,controlOrMetaSymbol:k,eventMatchesShortcut:x,eventToShortcut:M,experimental_requestResponse:R,isMacLike:w,isShortcutTaken:C,keyToSymbol:G,merge:I,mockChannel:K,optionOrAltSymbol:q,shortcutMatchesShortcut:B,shortcutToHumanString:F,types:Y,useAddonState:j,useArgTypes:E,useArgs:H,useChannel:L,useGlobalTypes:N,useGlobals:z,useParameter:D,useSharedState:J,useStoryPrepared:Q,useStorybookApi:U,useStorybookState:V}=__STORYBOOK_API__;var S=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof window<"u"?e=window:typeof self<"u"?e=self:e={},e})(),u="static-filter";n.register(u,e=>{let i=Object.entries(S.TAGS_OPTIONS??{}).reduce((t,r)=>{let[o,c]=r;return c.excludeFromSidebar&&(t[o]=!0),t},{});e.experimental_setFilter(u,t=>{let r=t.tags??[];return(r.includes("dev")||t.type==="docs")&&r.filter(o=>i[o]).length===0})});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js.LEGAL.txt b/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js.LEGAL.txt new file mode 100644 index 000000000..e69de29bb diff --git a/sb-addons/storysource-4/manager-bundle.js b/sb-addons/storysource-4/manager-bundle.js deleted file mode 100644 index 6b0c83355..000000000 --- a/sb-addons/storysource-4/manager-bundle.js +++ /dev/null @@ -1,3 +0,0 @@ -try{ -(()=>{var g=__REACT__,{Children:ht,Component:Ot,Fragment:_t,Profiler:vt,PureComponent:Pt,StrictMode:Lt,Suspense:Tt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Et,cloneElement:Ct,createContext:Rt,createElement:kt,createFactory:Nt,createRef:wt,forwardRef:xt,isValidElement:jt,lazy:Bt,memo:It,useCallback:At,useContext:Dt,useDebugValue:Mt,useEffect:Ht,useImperativeHandle:Kt,useLayoutEffect:Yt,useMemo:Ft,useReducer:Wt,useRef:$t,useState:Gt,version:Ut}=__REACT__;var Jt=__STORYBOOK_API__,{ActiveTabs:Zt,Consumer:Xt,ManagerContext:rt,Provider:tc,addons:w,combineParameters:cc,controlOrMetaKey:oc,controlOrMetaSymbol:ec,eventMatchesShortcut:nc,eventToShortcut:ac,isMacLike:ic,isShortcutTaken:sc,keyToSymbol:lc,merge:uc,mockChannel:pc,optionOrAltSymbol:dc,shortcutMatchesShortcut:mc,shortcutToHumanString:yc,types:D,useAddonState:fc,useArgTypes:gc,useArgs:Sc,useChannel:bc,useGlobalTypes:hc,useGlobals:Oc,useParameter:x,useSharedState:_c,useStoryPrepared:vc,useStorybookApi:Pc,useStorybookState:Lc}=__STORYBOOK_API__;var kc=__STORYBOOK_THEMING__,{CacheProvider:Nc,ClassNames:wc,Global:xc,ThemeProvider:jc,background:Bc,color:Ic,convert:Ac,create:Dc,createCache:Mc,createGlobal:Hc,createReset:Kc,css:Yc,darken:Fc,ensure:Wc,ignoreSsrWarning:$c,isPropValid:Gc,jsx:Uc,keyframes:Vc,lighten:qc,styled:C,themes:zc,typography:Qc,useTheme:Jc,withTheme:Zc}=__STORYBOOK_THEMING__;var oo=__STORYBOOK_ROUTER__,{BaseLocationProvider:eo,DEEPLY_EQUAL:no,Link:M,Location:ao,LocationProvider:io,Match:so,Route:lo,buildArgsParam:uo,deepDiff:po,getMatch:mo,parsePath:yo,queryFromLocation:fo,queryFromString:go,stringifyQuery:So,useNavigate:bo}=__STORYBOOK_ROUTER__;var Po=__STORYBOOK_COMPONENTS__,{A:Lo,ActionBar:To,AddonPanel:Eo,Badge:Co,Bar:Ro,Blockquote:ko,Button:No,ClipboardCode:wo,Code:xo,DL:jo,Div:Bo,DocumentWrapper:Io,ErrorFormatter:Ao,FlexBar:Do,Form:Mo,H1:Ho,H2:Ko,H3:Yo,H4:Fo,H5:Wo,H6:$o,HR:Go,IconButton:Uo,IconButtonSkeleton:Vo,Icons:qo,Img:zo,LI:Qo,Link:Jo,ListItem:Zo,Loader:Xo,OL:ro,P:te,Placeholder:ce,Pre:oe,ResetWrapper:ee,ScrollArea:ne,Separator:ae,Spaced:ie,Span:se,StorybookIcon:le,StorybookLogo:ue,Symbols:pe,SyntaxHighlighter:H,TT:de,TabBar:me,TabButton:ye,TabWrapper:fe,Table:ge,Tabs:Se,TabsState:be,TooltipLinkList:he,TooltipMessage:Oe,TooltipNote:_e,UL:ve,WithTooltip:Pe,WithTooltipPure:Le,Zoom:Te,codeCommon:Ee,components:Ce,createCopyToClipboardFunction:Re,getStoryHref:ke,icons:Ne,interleaveSeparators:we,nameSpaceClassNames:xe,resetComponents:je,withReset:Be}=__STORYBOOK_COMPONENTS__;var z=!0,j="Invariant failed";function K(t,c){if(!t){if(z)throw new Error(j);var o=typeof c=="function"?c():c,e=o?"".concat(j,": ").concat(o):j;throw new Error(e)}}function P(t){"@babel/helpers - typeof";return P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},P(t)}function Q(t,c){if(P(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var e=o.call(t,c||"default");if(P(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(t)}function J(t){var c=Q(t,"string");return P(c)==="symbol"?c:String(c)}function Z(t,c,o){return c=J(c),c in t?Object.defineProperty(t,c,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[c]=o,t}function I(){return I=Object.assign?Object.assign.bind():function(t){for(var c=1;c=4)return[t[0],t[1],t[2],t[3],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[2],".").concat(t[3]),"".concat(t[3],".").concat(t[0]),"".concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[0]),"".concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[3],".").concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[2],".").concat(t[1],".").concat(t[0])]}var B={};function r(t){if(t.length===0||t.length===1)return t;var c=t.join(".");return B[c]||(B[c]=X(t)),B[c]}function tt(t){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,e=t.filter(function(m){return m!=="token"}),n=r(e);return n.reduce(function(m,v){return _(_({},m),o[v])},c)}function F(t){return t.join(" ")}function ct(t,c){var o=0;return function(e){return o+=1,e.map(function(n,m){return W({node:n,stylesheet:t,useInlineStyles:c,key:"code-segment-".concat(o,"-").concat(m)})})}}function W(t){var c=t.node,o=t.stylesheet,e=t.style,n=e===void 0?{}:e,m=t.useInlineStyles,v=t.key,l=c.properties,L=c.type,O=c.tagName,R=c.value;if(L==="text")return R;if(O){var k=ct(o,m),a;if(!m)a=_(_({},l),{},{className:F(l.className)});else{var i=Object.keys(o).reduce(function(d,y){return y.split(".").forEach(function(f){d.includes(f)||d.push(f)}),d},[]),u=l.className&&l.className.includes("token")?["token"]:[],s=l.className&&u.concat(l.className.filter(function(d){return!i.includes(d)}));a=_(_({},l),{},{className:F(s)||void 0,style:tt(l.className,Object.assign({},l.style,n),o)})}var p=k(c.children);return g.createElement(O,I({key:v},a),p)}}var ot=C(M)(({theme:t})=>({display:"block",textDecoration:"none",borderRadius:t.appBorderRadius,color:"inherit","&:hover":{background:t.background.hoverable}})),et=C.div(({theme:t})=>({background:t.background.hoverable,borderRadius:t.appBorderRadius})),nt=C(H)(({theme:t})=>({fontSize:t.typography.size.s2-1})),at=(t,c)=>t.startLoc.line===c.startLoc.line&&t.startLoc.col===c.startLoc.col&&t.endLoc.line===c.endLoc.line&&t.endLoc.col===c.endLoc.col,it=({api:t})=>{let c=t.getCurrentStoryData(),o=g.useRef(null),{source:e,locationsMap:n}=x("storySource",{}),{source:{originalSource:m}={}}=x("docs",{}),v=e||m||"loading source...",l=n?Object.keys(n).find(a=>{let i=a.split("--");return c.id.endsWith(i[i.length-1])}):void 0,L=n&&l?n[l]:void 0;g.useEffect(()=>{o.current&&o.current.scrollIntoView()},[o.current]);let O=({rows:a,stylesheet:i,useInlineStyles:u})=>a.map((s,p)=>W({node:s,stylesheet:i,useInlineStyles:u,key:`code-segment${p}`})),R=({rows:a,stylesheet:i,useInlineStyles:u,location:s,id:p,refId:d})=>{let y=s.startLoc.line-1,f=s.endLoc.line,N=a.slice(y,f),T=O({rows:N,stylesheet:i,useInlineStyles:u}),E=`${y}-${f}`;return L&&at(s,L)?g.createElement(et,{key:E,ref:o},T):g.createElement(ot,{to:d?`/story/${d}_${p}`:`/story/${p}`,key:E},T)},k=({rows:a,stylesheet:i,useInlineStyles:u})=>{let s=[],p=0;K(n,"locationsMap should be defined while creating parts"),Object.keys(n).forEach(y=>{let f=n[y],N=f.startLoc.line-1,T=f.endLoc.line,{title:E,refId:G}=c,A=y.split("--"),U=t.storyId(E,A[A.length-1]),V=O({rows:a.slice(p,N),stylesheet:i,useInlineStyles:u}),q=R({rows:a,stylesheet:i,useInlineStyles:u,location:f,id:U,refId:G});s.push(...V),s.push(q),p=T});let d=O({rows:a.slice(p),stylesheet:i,useInlineStyles:u});return s.push(...d),s};return c?g.createElement(nt,{language:"jsx",showLineNumbers:!0,renderer:({rows:a,stylesheet:i,useInlineStyles:u})=>{let s=a.map(({properties:d,...y})=>({...y,properties:{className:[]}}));if(!n||!Object.keys(n).length)return O({rows:s,stylesheet:i,useInlineStyles:u});let p=k({rows:s,stylesheet:i,useInlineStyles:u});return g.createElement("span",null,p)},format:!1,copyable:!1,padded:!0,wrapLongLines:!0,lineProps:{style:{whiteSpace:"pre"}}},v):null},$="storybook/source-loader",st=`${$}/panel`;w.register($,t=>{w.add(st,{type:D.PANEL,title:"Code",render:({active:c})=>c?g.createElement(it,{api:t}):null,paramKey:"storysource"})});})(); -}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/sb-addons/storysource-5/manager-bundle.js b/sb-addons/storysource-5/manager-bundle.js new file mode 100644 index 000000000..9fb6227ca --- /dev/null +++ b/sb-addons/storysource-5/manager-bundle.js @@ -0,0 +1,3 @@ +try{ +(()=>{var h=__REACT__,{Children:ht,Component:_t,Fragment:Ot,Profiler:vt,PureComponent:Pt,StrictMode:Tt,Suspense:Et,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Lt,cloneElement:kt,createContext:Rt,createElement:Ct,createFactory:Nt,createRef:wt,forwardRef:xt,isValidElement:jt,lazy:It,memo:Bt,startTransition:At,unstable_act:Dt,useCallback:Mt,useContext:Ht,useDebugValue:Kt,useDeferredValue:Yt,useEffect:Ft,useId:Wt,useImperativeHandle:$t,useInsertionEffect:qt,useLayoutEffect:rt,useMemo:Gt,useReducer:Ut,useRef:Vt,useState:zt,useSyncExternalStore:Qt,useTransition:Jt,version:Zt}=__REACT__;var ec=__STORYBOOK_API__,{ActiveTabs:nc,Consumer:ac,ManagerContext:sc,Provider:ic,RequestResponseError:uc,addons:w,combineParameters:lc,controlOrMetaKey:pc,controlOrMetaSymbol:dc,eventMatchesShortcut:mc,eventToShortcut:yc,experimental_requestResponse:fc,isMacLike:gc,isShortcutTaken:Sc,keyToSymbol:bc,merge:hc,mockChannel:_c,optionOrAltSymbol:Oc,shortcutMatchesShortcut:vc,shortcutToHumanString:Pc,types:D,useAddonState:Tc,useArgTypes:Ec,useArgs:Lc,useChannel:kc,useGlobalTypes:Rc,useGlobals:Cc,useParameter:x,useSharedState:Nc,useStoryPrepared:wc,useStorybookApi:xc,useStorybookState:jc}=__STORYBOOK_API__;var Mc=__STORYBOOK_COMPONENTS__,{A:Hc,ActionBar:Kc,AddonPanel:Yc,Badge:Fc,Bar:Wc,Blockquote:$c,Button:qc,ClipboardCode:rc,Code:Gc,DL:Uc,Div:Vc,DocumentWrapper:zc,EmptyTabContent:Qc,ErrorFormatter:Jc,FlexBar:Zc,Form:Xc,H1:to,H2:co,H3:oo,H4:eo,H5:no,H6:ao,HR:so,IconButton:io,IconButtonSkeleton:uo,Icons:lo,Img:po,LI:mo,Link:yo,ListItem:fo,Loader:go,Modal:So,OL:bo,P:ho,Placeholder:_o,Pre:Oo,ResetWrapper:vo,ScrollArea:Po,Separator:To,Spaced:Eo,Span:Lo,StorybookIcon:ko,StorybookLogo:Ro,Symbols:Co,SyntaxHighlighter:M,TT:No,TabBar:wo,TabButton:xo,TabWrapper:jo,Table:Io,Tabs:Bo,TabsState:Ao,TooltipLinkList:Do,TooltipMessage:Mo,TooltipNote:Ho,UL:Ko,WithTooltip:Yo,WithTooltipPure:Fo,Zoom:Wo,codeCommon:$o,components:qo,createCopyToClipboardFunction:ro,getStoryHref:Go,icons:Uo,interleaveSeparators:Vo,nameSpaceClassNames:zo,resetComponents:Qo,withReset:Jo}=__STORYBOOK_COMPONENTS__;var oe=__STORYBOOK_ROUTER__,{BaseLocationProvider:ee,DEEPLY_EQUAL:ne,Link:H,Location:ae,LocationProvider:se,Match:ie,Route:ue,buildArgsParam:le,deepDiff:pe,getMatch:de,parsePath:me,queryFromLocation:ye,queryFromString:fe,stringifyQuery:ge,useNavigate:Se}=__STORYBOOK_ROUTER__;var ve=__STORYBOOK_THEMING__,{CacheProvider:Pe,ClassNames:Te,Global:Ee,ThemeProvider:Le,background:ke,color:Re,convert:Ce,create:Ne,createCache:we,createGlobal:xe,createReset:je,css:Ie,darken:Be,ensure:Ae,ignoreSsrWarning:De,isPropValid:Me,jsx:He,keyframes:Ke,lighten:Ye,styled:k,themes:Fe,typography:We,useTheme:$e,withTheme:qe}=__STORYBOOK_THEMING__;var V=!0,j="Invariant failed";function K(t,c){if(!t){if(V)throw new Error(j);var o=typeof c=="function"?c():c,e=o?"".concat(j,": ").concat(o):j;throw new Error(e)}}function P(t){"@babel/helpers - typeof";return P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},P(t)}function z(t,c){if(P(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var e=o.call(t,c||"default");if(P(e)!="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(t)}function Q(t){var c=z(t,"string");return P(c)=="symbol"?c:c+""}function J(t,c,o){return(c=Q(c))in t?Object.defineProperty(t,c,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[c]=o,t}function B(){return B=Object.assign?Object.assign.bind():function(t){for(var c=1;c=4)return[t[0],t[1],t[2],t[3],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[2],".").concat(t[3]),"".concat(t[3],".").concat(t[0]),"".concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[0]),"".concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[3],".").concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[2],".").concat(t[1],".").concat(t[0])]}var I={};function X(t){if(t.length===0||t.length===1)return t;var c=t.join(".");return I[c]||(I[c]=Z(t)),I[c]}function tt(t){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,e=t.filter(function(m){return m!=="token"}),n=X(e);return n.reduce(function(m,v){return O(O({},m),o[v])},c)}function F(t){return t.join(" ")}function ct(t,c){var o=0;return function(e){return o+=1,e.map(function(n,m){return W({node:n,stylesheet:t,useInlineStyles:c,key:"code-segment-".concat(o,"-").concat(m)})})}}function W(t){var c=t.node,o=t.stylesheet,e=t.style,n=e===void 0?{}:e,m=t.useInlineStyles,v=t.key,u=c.properties,T=c.type,_=c.tagName,R=c.value;if(T==="text")return R;if(_){var C=ct(o,m),a;if(!m)a=O(O({},u),{},{className:F(u.className)});else{var s=Object.keys(o).reduce(function(d,y){return y.split(".").forEach(function(f){d.includes(f)||d.push(f)}),d},[]),l=u.className&&u.className.includes("token")?["token"]:[],i=u.className&&l.concat(u.className.filter(function(d){return!s.includes(d)}));a=O(O({},u),{},{className:F(i)||void 0,style:tt(u.className,Object.assign({},u.style,n),o)})}var p=C(c.children);return h.createElement(_,B({key:v},a),p)}}var ot=k(H)(({theme:t})=>({display:"block",textDecoration:"none",borderRadius:t.appBorderRadius,color:"inherit","&:hover":{background:t.background.hoverable}})),et=k.div(({theme:t})=>({background:t.background.hoverable,borderRadius:t.appBorderRadius})),nt=k(M)(({theme:t})=>({fontSize:t.typography.size.s2-1})),at=(t,c)=>t.startLoc.line===c.startLoc.line&&t.startLoc.col===c.startLoc.col&&t.endLoc.line===c.endLoc.line&&t.endLoc.col===c.endLoc.col,st=({api:t})=>{let c=t.getCurrentStoryData(),o=h.useRef(null),{source:e,locationsMap:n}=x("storySource",{}),{source:{originalSource:m}={}}=x("docs",{}),v=e||m||"loading source...",u=n?Object.keys(n).find(a=>{let s=a.split("--");return c.id.endsWith(s[s.length-1])}):void 0,T=n&&u?n[u]:void 0;h.useEffect(()=>{o.current&&o.current.scrollIntoView()},[o.current]);let _=({rows:a,stylesheet:s,useInlineStyles:l})=>a.map((i,p)=>W({node:i,stylesheet:s,useInlineStyles:l,key:`code-segment${p}`})),R=({rows:a,stylesheet:s,useInlineStyles:l,location:i,id:p,refId:d})=>{let y=i.startLoc.line-1,f=i.endLoc.line,N=a.slice(y,f),E=_({rows:N,stylesheet:s,useInlineStyles:l}),L=`${y}-${f}`;return T&&at(i,T)?h.createElement(et,{key:L,ref:o},E):h.createElement(ot,{to:d?`/story/${d}_${p}`:`/story/${p}`,key:L},E)},C=({rows:a,stylesheet:s,useInlineStyles:l})=>{let i=[],p=0;K(n,"locationsMap should be defined while creating parts"),Object.keys(n).forEach(y=>{let f=n[y],N=f.startLoc.line-1,E=f.endLoc.line,{title:L,refId:q}=c,A=y.split("--"),r=t.storyId(L,A[A.length-1]),G=_({rows:a.slice(p,N),stylesheet:s,useInlineStyles:l}),U=R({rows:a,stylesheet:s,useInlineStyles:l,location:f,id:r,refId:q});i.push(...G),i.push(U),p=E});let d=_({rows:a.slice(p),stylesheet:s,useInlineStyles:l});return i.push(...d),i};return c?h.createElement(nt,{language:"jsx",showLineNumbers:!0,renderer:({rows:a,stylesheet:s,useInlineStyles:l})=>{let i=a.map(({properties:d,...y})=>({...y,properties:{className:[]}}));if(!n||!Object.keys(n).length)return _({rows:i,stylesheet:s,useInlineStyles:l});let p=C({rows:i,stylesheet:s,useInlineStyles:l});return h.createElement("span",null,p)},format:!1,copyable:!1,padded:!0,wrapLongLines:!0,lineProps:{style:{whiteSpace:"pre"}}},v):null},$="storybook/source-loader",it=`${$}/panel`;w.register($,t=>{w.add(it,{type:D.PANEL,title:"Code",render:({active:c})=>c?h.createElement(st,{api:t}):null,paramKey:"storysource"})});})(); +}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/sb-addons/storysource-5/manager-bundle.js.LEGAL.txt b/sb-addons/storysource-5/manager-bundle.js.LEGAL.txt new file mode 100644 index 000000000..e69de29bb diff --git a/sb-common-assets/favicon.svg b/sb-common-assets/favicon.svg new file mode 100644 index 000000000..571f90fe9 --- /dev/null +++ b/sb-common-assets/favicon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/sb-common-assets/fonts.css b/sb-common-assets/fonts.css deleted file mode 100644 index 90050cc0b..000000000 --- a/sb-common-assets/fonts.css +++ /dev/null @@ -1,31 +0,0 @@ -@font-face { - font-family: 'Nunito Sans'; - font-style: normal; - font-weight: 400; - font-display: swap; - src: url('./nunito-sans-regular.woff2') format('woff2'); -} - -@font-face { - font-family: 'Nunito Sans'; - font-style: italic; - font-weight: 400; - font-display: swap; - src: url('./nunito-sans-italic.woff2') format('woff2'); -} - -@font-face { - font-family: 'Nunito Sans'; - font-style: normal; - font-weight: 700; - font-display: swap; - src: url('./nunito-sans-bold.woff2') format('woff2'); -} - -@font-face { - font-family: 'Nunito Sans'; - font-style: italic; - font-weight: 700; - font-display: swap; - src: url('./nunito-sans-bold-italic.woff2') format('woff2'); -} diff --git a/sb-manager/WithTooltip-V3YHNWJZ-LVYLGZW2.js b/sb-manager/WithTooltip-V3YHNWJZ-LVYLGZW2.js deleted file mode 100644 index bcf1b6c02..000000000 --- a/sb-manager/WithTooltip-V3YHNWJZ-LVYLGZW2.js +++ /dev/null @@ -1 +0,0 @@ -import{WithToolTipState,WithTooltipPure}from"./chunk-NGTUFCUO.js";import"./chunk-INSKDKQB.js";import"./chunk-ZEU7PDD3.js";export{WithToolTipState,WithToolTipState as WithTooltip,WithTooltipPure}; diff --git a/sb-manager/chunk-2IXBUOFS.js b/sb-manager/chunk-2IXBUOFS.js deleted file mode 100644 index 5f5d61619..000000000 --- a/sb-manager/chunk-2IXBUOFS.js +++ /dev/null @@ -1,7 +0,0 @@ -import{logger,newStyled,require_react,require_react_dom,scope}from"./chunk-INSKDKQB.js";import{__commonJS2 as __commonJS,__toESM,__toESM2,require_memoizerific}from"./chunk-ZEU7PDD3.js";var require_markdown=__commonJS({"../../node_modules/refractor/lang/markdown.js"(exports,module){module.exports=markdown,markdown.displayName="markdown",markdown.aliases=["md"];function markdown(Prism){(function(Prism2){var inner=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function createInline(pattern){return pattern=pattern.replace(//g,function(){return inner}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+pattern+")")}var tableCell=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,tableRow=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return tableCell}),tableLine=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;Prism2.languages.markdown=Prism2.languages.extend("markup",{}),Prism2.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:Prism2.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+tableRow+tableLine+"(?:"+tableRow+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+tableRow+tableLine+")(?:"+tableRow+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(tableCell),inside:Prism2.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+tableRow+")"+tableLine+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+tableRow+"$"),inside:{"table-header":{pattern:RegExp(tableCell),alias:"important",inside:Prism2.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:createInline(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:createInline(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:createInline(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:createInline(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(token){["url","bold","italic","strike","code-snippet"].forEach(function(inside){token!==inside&&(Prism2.languages.markdown[token].inside.content.inside[inside]=Prism2.languages.markdown[inside])})}),Prism2.hooks.add("after-tokenize",function(env){if(env.language!=="markdown"&&env.language!=="md")return;function walkTokens(tokens){if(!(!tokens||typeof tokens=="string"))for(var i=0,l=tokens.length;i",quot:'"'},fromCodePoint=String.fromCodePoint||String.fromCharCode;function textContent(html){var text=html.replace(tagPattern,"");return text=text.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(m,code){if(code=code.toLowerCase(),code[0]==="#"){var value;return code[1]==="x"?value=parseInt(code.slice(2),16):value=Number(code.slice(1)),fromCodePoint(value)}else{var known=KNOWN_ENTITY_NAMES[code];return known||m}}),text}Prism2.languages.md=Prism2.languages.markdown})(Prism)}}});var require_yaml=__commonJS({"../../node_modules/refractor/lang/yaml.js"(exports,module){module.exports=yaml,yaml.displayName="yaml",yaml.aliases=["yml"];function yaml(Prism){(function(Prism2){var anchorOrAlias=/[*&][^\s[\]{},]+/,tag=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,properties="(?:"+tag.source+"(?:[ ]+"+anchorOrAlias.source+")?|"+anchorOrAlias.source+"(?:[ ]+"+tag.source+")?)",plainKey=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),string=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function createValuePattern(value,flags){flags=(flags||"").replace(/m/g,"")+"m";var pattern=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return properties}).replace(/<>/g,function(){return value});return RegExp(pattern,flags)}Prism2.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return properties})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return properties}).replace(/<>/g,function(){return"(?:"+plainKey+"|"+string+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:createValuePattern(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:createValuePattern(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:createValuePattern(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:createValuePattern(string),lookbehind:!0,greedy:!0},number:{pattern:createValuePattern(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag,important:anchorOrAlias,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},Prism2.languages.yml=Prism2.languages.yaml})(Prism)}}});var require_typescript=__commonJS({"../../node_modules/refractor/lang/typescript.js"(exports,module){module.exports=typescript,typescript.displayName="typescript",typescript.aliases=["ts"];function typescript(Prism){(function(Prism2){Prism2.languages.typescript=Prism2.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),Prism2.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete Prism2.languages.typescript.parameter,delete Prism2.languages.typescript["literal-property"];var typeInside=Prism2.languages.extend("typescript",{});delete typeInside["class-name"],Prism2.languages.typescript["class-name"].inside=typeInside,Prism2.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:typeInside}}}}),Prism2.languages.ts=Prism2.languages.typescript})(Prism)}}});var require_jsx=__commonJS({"../../node_modules/refractor/lang/jsx.js"(exports,module){module.exports=jsx,jsx.displayName="jsx",jsx.aliases=[];function jsx(Prism){(function(Prism2){var javascript=Prism2.util.clone(Prism2.languages.javascript),space=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,braces=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,spread=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function re(source,flags){return source=source.replace(//g,function(){return space}).replace(//g,function(){return braces}).replace(//g,function(){return spread}),RegExp(source,flags)}spread=re(spread).source,Prism2.languages.jsx=Prism2.languages.extend("markup",javascript),Prism2.languages.jsx.tag.pattern=re(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),Prism2.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,Prism2.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,Prism2.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,Prism2.languages.jsx.tag.inside.comment=javascript.comment,Prism2.languages.insertBefore("inside","attr-name",{spread:{pattern:re(//.source),inside:Prism2.languages.jsx}},Prism2.languages.jsx.tag),Prism2.languages.insertBefore("inside","special-attr",{script:{pattern:re(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:Prism2.languages.jsx}}},Prism2.languages.jsx.tag);var stringifyToken=function(token){return token?typeof token=="string"?token:typeof token.content=="string"?token.content:token.content.map(stringifyToken).join(""):""},walkTokens=function(tokens){for(var openedTags=[],i=0;i0&&openedTags[openedTags.length-1].tagName===stringifyToken(token.content[0].content[1])&&openedTags.pop():token.content[token.content.length-1].content==="/>"||openedTags.push({tagName:stringifyToken(token.content[0].content[1]),openedBraces:0}):openedTags.length>0&&token.type==="punctuation"&&token.content==="{"?openedTags[openedTags.length-1].openedBraces++:openedTags.length>0&&openedTags[openedTags.length-1].openedBraces>0&&token.type==="punctuation"&&token.content==="}"?openedTags[openedTags.length-1].openedBraces--:notTagNorBrace=!0),(notTagNorBrace||typeof token=="string")&&openedTags.length>0&&openedTags[openedTags.length-1].openedBraces===0){var plainText=stringifyToken(token);i0&&(typeof tokens[i-1]=="string"||tokens[i-1].type==="plain-text")&&(plainText=stringifyToken(tokens[i-1])+plainText,tokens.splice(i-1,1),i--),tokens[i]=new Prism2.Token("plain-text",plainText,null,plainText)}token.content&&typeof token.content!="string"&&walkTokens(token.content)}};Prism2.hooks.add("after-tokenize",function(env){env.language!=="jsx"&&env.language!=="tsx"||walkTokens(env.tokens)})})(Prism)}}});var require_tsx=__commonJS({"../../node_modules/refractor/lang/tsx.js"(exports,module){var refractorJsx=require_jsx(),refractorTypescript=require_typescript();module.exports=tsx,tsx.displayName="tsx",tsx.aliases=[];function tsx(Prism){Prism.register(refractorJsx),Prism.register(refractorTypescript),function(Prism2){var typescript=Prism2.util.clone(Prism2.languages.typescript);Prism2.languages.tsx=Prism2.languages.extend("jsx",typescript),delete Prism2.languages.tsx.parameter,delete Prism2.languages.tsx["literal-property"];var tag=Prism2.languages.tsx.tag;tag.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+tag.pattern.source+")",tag.pattern.flags),tag.lookbehind=!0}(Prism)}}});var require_clike=__commonJS({"../../node_modules/refractor/lang/clike.js"(exports,module){module.exports=clike,clike.displayName="clike",clike.aliases=[];function clike(Prism){Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}}});var require_javascript=__commonJS({"../../node_modules/refractor/lang/javascript.js"(exports,module){module.exports=javascript,javascript.displayName="javascript",javascript.aliases=["js"];function javascript(Prism){Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript}}});var require_css=__commonJS({"../../node_modules/refractor/lang/css.js"(exports,module){module.exports=css,css.displayName="css",css.aliases=[];function css(Prism){(function(Prism2){var string=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;Prism2.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+string.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+string.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+string.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:string,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},Prism2.languages.css.atrule.inside.rest=Prism2.languages.css;var markup=Prism2.languages.markup;markup&&(markup.tag.addInlined("style","css"),markup.tag.addAttribute("style","css"))})(Prism)}}});var require_markup=__commonJS({"../../node_modules/refractor/lang/markup.js"(exports,module){module.exports=markup,markup.displayName="markup",markup.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function markup(Prism){Prism.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(env){env.type==="entity"&&(env.attributes.title=env.content.value.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(tagName,lang){var includedCdataInside={};includedCdataInside["language-"+lang]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[lang]},includedCdataInside.cdata=/^$/i;var inside={"included-cdata":{pattern://i,inside:includedCdataInside}};inside["language-"+lang]={pattern:/[\s\S]+/,inside:Prism.languages[lang]};var def={};def[tagName]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return tagName}),"i"),lookbehind:!0,greedy:!0,inside},Prism.languages.insertBefore("markup","cdata",def)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(attrName,lang){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+attrName+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[lang,"language-"+lang],inside:Prism.languages[lang]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml}}});var require_immutable=__commonJS({"../../node_modules/xtend/immutable.js"(exports,module){module.exports=extend;var hasOwnProperty=Object.prototype.hasOwnProperty;function extend(){for(var target={},i=0;i4&&normal.slice(0,4)===data&&valid.test(value)&&(value.charAt(4)==="-"?prop=datasetToProperty(value):value=datasetToAttribute(value),Type=DefinedInfo),new Type(prop,value))}function datasetToProperty(attribute){var value=attribute.slice(5).replace(dash,camelcase);return data+value.charAt(0).toUpperCase()+value.slice(1)}function datasetToAttribute(property){var value=property.slice(4);return dash.test(value)?property:(value=value.replace(cap,kebab),value.charAt(0)!=="-"&&(value="-"+value),data+value)}function kebab($0){return"-"+$0.toLowerCase()}function camelcase($0){return $0.charAt(1).toUpperCase()}}}),require_hast_util_parse_selector=__commonJS({"../../node_modules/hast-util-parse-selector/index.js"(exports,module){module.exports=parse;var search=/[#.]/g;function parse(selector,defaultTagName){for(var value=selector||"",name=defaultTagName||"div",props={},start=0,subvalue,previous,match;start",Iacute:"\xCD",Icirc:"\xCE",Igrave:"\xCC",Iuml:"\xCF",LT:"<",Ntilde:"\xD1",Oacute:"\xD3",Ocirc:"\xD4",Ograve:"\xD2",Oslash:"\xD8",Otilde:"\xD5",Ouml:"\xD6",QUOT:'"',REG:"\xAE",THORN:"\xDE",Uacute:"\xDA",Ucirc:"\xDB",Ugrave:"\xD9",Uuml:"\xDC",Yacute:"\xDD",aacute:"\xE1",acirc:"\xE2",acute:"\xB4",aelig:"\xE6",agrave:"\xE0",amp:"&",aring:"\xE5",atilde:"\xE3",auml:"\xE4",brvbar:"\xA6",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",eacute:"\xE9",ecirc:"\xEA",egrave:"\xE8",eth:"\xF0",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",iacute:"\xED",icirc:"\xEE",iexcl:"\xA1",igrave:"\xEC",iquest:"\xBF",iuml:"\xEF",laquo:"\xAB",lt:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",ntilde:"\xF1",oacute:"\xF3",ocirc:"\xF4",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",oslash:"\xF8",otilde:"\xF5",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',raquo:"\xBB",reg:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",thorn:"\xFE",times:"\xD7",uacute:"\xFA",ucirc:"\xFB",ugrave:"\xF9",uml:"\xA8",uuml:"\xFC",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}}}),require_character_reference_invalid=__commonJS({"../../node_modules/character-reference-invalid/index.json"(exports,module){module.exports={0:"\uFFFD",128:"\u20AC",130:"\u201A",131:"\u0192",132:"\u201E",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02C6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017D",145:"\u2018",146:"\u2019",147:"\u201C",148:"\u201D",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02DC",153:"\u2122",154:"\u0161",155:"\u203A",156:"\u0153",158:"\u017E",159:"\u0178"}}}),require_is_decimal=__commonJS({"../../node_modules/is-decimal/index.js"(exports,module){module.exports=decimal;function decimal(character){var code=typeof character=="string"?character.charCodeAt(0):character;return code>=48&&code<=57}}}),require_is_hexadecimal=__commonJS({"../../node_modules/is-hexadecimal/index.js"(exports,module){module.exports=hexadecimal;function hexadecimal(character){var code=typeof character=="string"?character.charCodeAt(0):character;return code>=97&&code<=102||code>=65&&code<=70||code>=48&&code<=57}}}),require_is_alphabetical=__commonJS({"../../node_modules/is-alphabetical/index.js"(exports,module){module.exports=alphabetical;function alphabetical(character){var code=typeof character=="string"?character.charCodeAt(0):character;return code>=97&&code<=122||code>=65&&code<=90}}}),require_is_alphanumerical=__commonJS({"../../node_modules/is-alphanumerical/index.js"(exports,module){var alphabetical=require_is_alphabetical(),decimal=require_is_decimal();module.exports=alphanumerical;function alphanumerical(character){return alphabetical(character)||decimal(character)}}}),require_character_entities=__commonJS({"../../node_modules/parse-entities/node_modules/character-entities/index.json"(exports,module){module.exports={AEli:"\xC6",AElig:"\xC6",AM:"&",AMP:"&",Aacut:"\xC1",Aacute:"\xC1",Abreve:"\u0102",Acir:"\xC2",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrav:"\xC0",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Arin:"\xC5",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atild:"\xC3",Atilde:"\xC3",Aum:"\xC4",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COP:"\xA9",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedi:"\xC7",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ET:"\xD0",ETH:"\xD0",Eacut:"\xC9",Eacute:"\xC9",Ecaron:"\u011A",Ecir:"\xCA",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrav:"\xC8",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Eum:"\xCB",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",G:">",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacut:"\xCD",Iacute:"\xCD",Icir:"\xCE",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrav:"\xCC",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Ium:"\xCF",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",L:"<",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` -`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntild:"\xD1",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacut:"\xD3",Oacute:"\xD3",Ocir:"\xD4",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograv:"\xD2",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslas:"\xD8",Oslash:"\xD8",Otild:"\xD5",Otilde:"\xD5",Otimes:"\u2A37",Oum:"\xD6",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUO:'"',QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",RE:"\xAE",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THOR:"\xDE",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacut:"\xDA",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucir:"\xDB",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrav:"\xD9",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uum:"\xDC",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacut:"\xDD",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacut:"\xE1",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acir:"\xE2",acirc:"\xE2",acut:"\xB4",acute:"\xB4",acy:"\u0430",aeli:"\xE6",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrav:"\xE0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",am:"&",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",arin:"\xE5",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atild:"\xE3",atilde:"\xE3",aum:"\xE4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvba:"\xA6",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedi:"\xE7",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedi:"\xB8",cedil:"\xB8",cemptyv:"\u29B2",cen:"\xA2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",cop:"\xA9",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curre:"\xA4",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",de:"\xB0",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divid:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacut:"\xE9",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\xEA",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrav:"\xE8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",et:"\xF0",eth:"\xF0",eum:"\xEB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac1:"\xBC",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac3:"\xBE",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",g:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacut:"\xED",iacute:"\xED",ic:"\u2063",icir:"\xEE",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexc:"\xA1",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrav:"\xEC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iques:"\xBF",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",ium:"\xEF",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laqu:"\xAB",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",l:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",mac:"\xAF",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micr:"\xB5",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middo:"\xB7",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbs:"\xA0",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",no:"\xAC",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntild:"\xF1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacut:"\xF3",oacute:"\xF3",oast:"\u229B",ocir:"\xF4",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograv:"\xF2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\xBA",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslas:"\xF8",oslash:"\xF8",osol:"\u2298",otild:"\xF5",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",oum:"\xF6",ouml:"\xF6",ovbar:"\u233D",par:"\xB6",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusm:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",poun:"\xA3",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quo:'"',quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raqu:"\xBB",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",re:"\xAE",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sec:"\xA7",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",sh:"\xAD",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szli:"\xDF",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thor:"\xFE",thorn:"\xFE",tilde:"\u02DC",time:"\xD7",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacut:"\xFA",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucir:"\xFB",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrav:"\xF9",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",um:"\xA8",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uum:"\xFC",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacut:"\xFD",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",ye:"\xA5",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yum:"\xFF",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}}}),require_decode_entity=__commonJS({"../../node_modules/parse-entities/decode-entity.js"(exports,module){var characterEntities=require_character_entities();module.exports=decodeEntity;var own={}.hasOwnProperty;function decodeEntity(characters){return own.call(characterEntities,characters)?characterEntities[characters]:!1}}}),require_parse_entities=__commonJS({"../../node_modules/parse-entities/index.js"(exports,module){var legacy=require_character_entities_legacy(),invalid=require_character_reference_invalid(),decimal=require_is_decimal(),hexadecimal=require_is_hexadecimal(),alphanumerical=require_is_alphanumerical(),decodeEntity=require_decode_entity();module.exports=parseEntities;var own={}.hasOwnProperty,fromCharCode=String.fromCharCode,noop=Function.prototype,defaults={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},tab=9,lineFeed=10,formFeed=12,space=32,ampersand=38,semicolon=59,lessThan=60,equalsTo=61,numberSign=35,uppercaseX=88,lowercaseX=120,replacementCharacter=65533,name="named",hexa="hexadecimal",deci="decimal",bases={};bases[hexa]=16,bases[deci]=10;var tests={};tests[name]=alphanumerical,tests[deci]=decimal,tests[hexa]=hexadecimal;var namedNotTerminated=1,numericNotTerminated=2,namedEmpty=3,numericEmpty=4,namedUnknown=5,numericDisallowed=6,numericProhibited=7,messages={};messages[namedNotTerminated]="Named character references must be terminated by a semicolon",messages[numericNotTerminated]="Numeric character references must be terminated by a semicolon",messages[namedEmpty]="Named character references cannot be empty",messages[numericEmpty]="Numeric character references cannot be empty",messages[namedUnknown]="Named character references must be known",messages[numericDisallowed]="Numeric character references cannot be disallowed",messages[numericProhibited]="Numeric character references cannot be outside the permissible Unicode range";function parseEntities(value,options){var settings={},option,key;options||(options={});for(key in defaults)option=options[key],settings[key]=option??defaults[key];return(settings.position.indent||settings.position.start)&&(settings.indent=settings.position.indent||[],settings.position=settings.position.start),parse(value,settings)}function parse(value,settings){var additional=settings.additional,nonTerminated=settings.nonTerminated,handleText=settings.text,handleReference=settings.reference,handleWarning=settings.warning,textContext=settings.textContext,referenceContext=settings.referenceContext,warningContext=settings.warningContext,pos=settings.position,indent=settings.indent||[],length=value.length,index=0,lines=-1,column=pos.column||1,line=pos.line||1,queue="",result=[],entityCharacters,namedEntity,terminated,characters,character,reference,following,warning,reason,output,entity,begin,start,type,test,prev,next,diff,end;for(typeof additional=="string"&&(additional=additional.charCodeAt(0)),prev=now(),warning=handleWarning?parseError:noop,index--,length++;++index65535&&(reference-=65536,output+=fromCharCode(reference>>>10|55296),reference=56320|reference&1023),reference=output+fromCharCode(reference))):type!==name&&warning(numericEmpty,diff)),reference?(flush(),prev=now(),index=end-1,column+=end-start+1,result.push(reference),next=now(),next.offset++,handleReference&&handleReference.call(referenceContext,reference,{start:prev,end:next},value.slice(start-1,end)),prev=next):(characters=value.slice(start-1,end),queue+=characters,column+=characters.length,index=end-1)}else character===10&&(line++,lines++,column=0),character===character?(queue+=fromCharCode(character),column++):flush();return result.join("");function now(){return{line,column,offset:index+(pos.offset||0)}}function parseError(code,offset){var position=now();position.column+=offset,position.offset+=offset,handleWarning.call(warningContext,messages[code],position,code)}function flush(){queue&&(result.push(queue),handleText&&handleText.call(textContext,queue,{start:prev,end:now()}),queue="")}}function prohibited(code){return code>=55296&&code<=57343||code>1114111}function disallowed(code){return code>=1&&code<=8||code===11||code>=13&&code<=31||code>=127&&code<=159||code>=64976&&code<=65007||(code&65535)===65535||(code&65535)===65534}}}),require_prism_core=__commonJS({"../../node_modules/refractor/node_modules/prismjs/components/prism-core.js"(exports,module){var _self=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{},Prism=function(_self2){var lang=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,uniqueId=0,plainTextGrammar={},_={manual:_self2.Prism&&_self2.Prism.manual,disableWorkerMessageHandler:_self2.Prism&&_self2.Prism.disableWorkerMessageHandler,util:{encode:function encode(tokens){return tokens instanceof Token?new Token(tokens.type,encode(tokens.content),tokens.alias):Array.isArray(tokens)?tokens.map(encode):tokens.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(err){var src=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(err.stack)||[])[1];if(src){var scripts=document.getElementsByTagName("script");for(var i in scripts)if(scripts[i].src==src)return scripts[i]}return null}},isActive:function(element,className,defaultActivation){for(var no="no-"+className;element;){var classList=element.classList;if(classList.contains(className))return!0;if(classList.contains(no))return!1;element=element.parentElement}return!!defaultActivation}},languages:{plain:plainTextGrammar,plaintext:plainTextGrammar,text:plainTextGrammar,txt:plainTextGrammar,extend:function(id,redef){var lang2=_.util.clone(_.languages[id]);for(var key in redef)lang2[key]=redef[key];return lang2},insertBefore:function(inside,before,insert,root){root=root||_.languages;var grammar=root[inside],ret={};for(var token in grammar)if(grammar.hasOwnProperty(token)){if(token==before)for(var newToken in insert)insert.hasOwnProperty(newToken)&&(ret[newToken]=insert[newToken]);insert.hasOwnProperty(token)||(ret[token]=grammar[token])}var old=root[inside];return root[inside]=ret,_.languages.DFS(_.languages,function(key,value){value===old&&key!=inside&&(this[key]=ret)}),ret},DFS:function DFS(o,callback,type,visited){visited=visited||{};var objId=_.util.objId;for(var i in o)if(o.hasOwnProperty(i)){callback.call(o,i,o[i],type||i);var property=o[i],propertyType=_.util.type(property);propertyType==="Object"&&!visited[objId(property)]?(visited[objId(property)]=!0,DFS(property,callback,null,visited)):propertyType==="Array"&&!visited[objId(property)]&&(visited[objId(property)]=!0,DFS(property,callback,i,visited))}}},plugins:{},highlightAll:function(async,callback){_.highlightAllUnder(document,async,callback)},highlightAllUnder:function(container,async,callback){var env={callback,container,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};_.hooks.run("before-highlightall",env),env.elements=Array.prototype.slice.apply(env.container.querySelectorAll(env.selector)),_.hooks.run("before-all-elements-highlight",env);for(var i=0,element;element=env.elements[i++];)_.highlightElement(element,async===!0,env.callback)},highlightElement:function(element,async,callback){var language=_.util.getLanguage(element),grammar=_.languages[language];_.util.setLanguage(element,language);var parent=element.parentElement;parent&&parent.nodeName.toLowerCase()==="pre"&&_.util.setLanguage(parent,language);var code=element.textContent,env={element,language,grammar,code};function insertHighlightedCode(highlightedCode){env.highlightedCode=highlightedCode,_.hooks.run("before-insert",env),env.element.innerHTML=env.highlightedCode,_.hooks.run("after-highlight",env),_.hooks.run("complete",env),callback&&callback.call(env.element)}if(_.hooks.run("before-sanity-check",env),parent=env.element.parentElement,parent&&parent.nodeName.toLowerCase()==="pre"&&!parent.hasAttribute("tabindex")&&parent.setAttribute("tabindex","0"),!env.code){_.hooks.run("complete",env),callback&&callback.call(env.element);return}if(_.hooks.run("before-highlight",env),!env.grammar){insertHighlightedCode(_.util.encode(env.code));return}if(async&&_self2.Worker){var worker=new Worker(_.filename);worker.onmessage=function(evt){insertHighlightedCode(evt.data)},worker.postMessage(JSON.stringify({language:env.language,code:env.code,immediateClose:!0}))}else insertHighlightedCode(_.highlight(env.code,env.grammar,env.language))},highlight:function(text,grammar,language){var env={code:text,grammar,language};if(_.hooks.run("before-tokenize",env),!env.grammar)throw new Error('The language "'+env.language+'" has no grammar.');return env.tokens=_.tokenize(env.code,env.grammar),_.hooks.run("after-tokenize",env),Token.stringify(_.util.encode(env.tokens),env.language)},tokenize:function(text,grammar){var rest=grammar.rest;if(rest){for(var token in rest)grammar[token]=rest[token];delete grammar.rest}var tokenList=new LinkedList;return addAfter(tokenList,tokenList.head,text),matchGrammar(text,tokenList,grammar,tokenList.head,0),toArray(tokenList)},hooks:{all:{},add:function(name,callback){var hooks=_.hooks.all;hooks[name]=hooks[name]||[],hooks[name].push(callback)},run:function(name,env){var callbacks=_.hooks.all[name];if(!(!callbacks||!callbacks.length))for(var i=0,callback;callback=callbacks[i++];)callback(env)}},Token};_self2.Prism=_;function Token(type,content,alias,matchedStr){this.type=type,this.content=content,this.alias=alias,this.length=(matchedStr||"").length|0}Token.stringify=function stringify(o,language){if(typeof o=="string")return o;if(Array.isArray(o)){var s="";return o.forEach(function(e){s+=stringify(e,language)}),s}var env={type:o.type,content:stringify(o.content,language),tag:"span",classes:["token",o.type],attributes:{},language},aliases=o.alias;aliases&&(Array.isArray(aliases)?Array.prototype.push.apply(env.classes,aliases):env.classes.push(aliases)),_.hooks.run("wrap",env);var attributes="";for(var name in env.attributes)attributes+=" "+name+'="'+(env.attributes[name]||"").replace(/"/g,""")+'"';return"<"+env.tag+' class="'+env.classes.join(" ")+'"'+attributes+">"+env.content+""};function matchPattern(pattern,pos,text,lookbehind){pattern.lastIndex=pos;var match=pattern.exec(text);if(match&&lookbehind&&match[1]){var lookbehindLength=match[1].length;match.index+=lookbehindLength,match[0]=match[0].slice(lookbehindLength)}return match}function matchGrammar(text,tokenList,grammar,startNode,startPos,rematch){for(var token in grammar)if(!(!grammar.hasOwnProperty(token)||!grammar[token])){var patterns=grammar[token];patterns=Array.isArray(patterns)?patterns:[patterns];for(var j=0;j=rematch.reach);pos+=currentNode.value.length,currentNode=currentNode.next){var str=currentNode.value;if(tokenList.length>text.length)return;if(!(str instanceof Token)){var removeCount=1,match;if(greedy){if(match=matchPattern(pattern,pos,text,lookbehind),!match||match.index>=text.length)break;var from=match.index,to=match.index+match[0].length,p=pos;for(p+=currentNode.value.length;from>=p;)currentNode=currentNode.next,p+=currentNode.value.length;if(p-=currentNode.value.length,pos=p,currentNode.value instanceof Token)continue;for(var k=currentNode;k!==tokenList.tail&&(prematch.reach&&(rematch.reach=reach);var removeFrom=currentNode.prev;before&&(removeFrom=addAfter(tokenList,removeFrom,before),pos+=before.length),removeRange(tokenList,removeFrom,removeCount);var wrapped=new Token(token,inside?_.tokenize(matchStr,inside):matchStr,alias,matchStr);if(currentNode=addAfter(tokenList,removeFrom,wrapped),after&&addAfter(tokenList,currentNode,after),removeCount>1){var nestedRematch={cause:token+","+j,reach};matchGrammar(text,tokenList,grammar,currentNode.prev,pos,nestedRematch),rematch&&nestedRematch.reach>rematch.reach&&(rematch.reach=nestedRematch.reach)}}}}}}function LinkedList(){var head={value:null,prev:null,next:null},tail={value:null,prev:head,next:null};head.next=tail,this.head=head,this.tail=tail,this.length=0}function addAfter(list,node,value){var next=node.next,newNode={value,prev:node,next};return node.next=newNode,next.prev=newNode,list.length++,newNode}function removeRange(list,node,count){for(var next=node.next,i=0;i>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+envVars),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};Prism2.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+envVars),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:insideString},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:commandAfterHeredoc}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:insideString},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:insideString.entity}}],environment:{pattern:RegExp("\\$?"+envVars),alias:"constant"},variable:insideString.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},commandAfterHeredoc.inside=Prism2.languages.bash;for(var toBeCopied=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],inside=insideString.variable[1].inside,i=0;i/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),flags)}Prism2.languages.insertBefore("javascript","keyword",{imports:{pattern:withId(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:Prism2.languages.javascript},exports:{pattern:withId(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:Prism2.languages.javascript}}),Prism2.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),Prism2.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),Prism2.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:withId(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var maybeClassNameTokens=["function","function-variable","method","method-variable","property-access"],i=0;i0)){var mutationEnd=findClosingBracket(/^\{$/,/^\}$/);if(mutationEnd===-1)continue;for(var i=currentIndex;i=0&&addAlias(varToken,"variable-input")}}}}})}}});var import_react=__toESM(require_react(),1);var import_memoizerific=__toESM(require_memoizerific(),1),import_react_dom=__toESM(require_react_dom(),1),import_jsx=__toESM2(require_jsx()),jsx_default=import_jsx.default,import_bash=__toESM2(require_bash()),bash_default=import_bash.default,import_css=__toESM2(require_css()),css_default=import_css.default,import_js_extras=__toESM2(require_js_extras()),js_extras_default=import_js_extras.default,import_json=__toESM2(require_json()),json_default=import_json.default,import_graphql=__toESM2(require_graphql()),graphql_default=import_graphql.default,import_markup=__toESM2(require_markup()),markup_default=import_markup.default,import_markdown=__toESM2(require_markdown()),markdown_default=import_markdown.default,import_yaml=__toESM2(require_yaml()),yaml_default=import_yaml.default,import_tsx=__toESM2(require_tsx()),tsx_default=import_tsx.default,import_typescript=__toESM2(require_typescript()),typescript_default=import_typescript.default;function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={},sourceKeys=Object.keys(source),key,i;for(i=0;i=0)&&(target[key]=source[key]);return target}function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded),key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(source,key)&&(target[key]=source[key])}return target}function _arrayLikeToArray(arr,len){(len==null||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i=4)return[arr[0],arr[1],arr[2],arr[3],"".concat(arr[0],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[0]),"".concat(arr[1],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[1]),"".concat(arr[2],".").concat(arr[3]),"".concat(arr[3],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[1],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[1],".").concat(arr[3]),"".concat(arr[0],".").concat(arr[2],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[2],".").concat(arr[3]),"".concat(arr[0],".").concat(arr[3],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[3],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[0],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[0],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[2],".").concat(arr[0]),"".concat(arr[1],".").concat(arr[2],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[3],".").concat(arr[0]),"".concat(arr[1],".").concat(arr[3],".").concat(arr[2]),"".concat(arr[2],".").concat(arr[0],".").concat(arr[1]),"".concat(arr[2],".").concat(arr[0],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[1],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[1],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[3],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[3],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[0],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[0],".").concat(arr[2]),"".concat(arr[3],".").concat(arr[1],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[1],".").concat(arr[2]),"".concat(arr[3],".").concat(arr[2],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[2],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[1],".").concat(arr[2],".").concat(arr[3]),"".concat(arr[0],".").concat(arr[1],".").concat(arr[3],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[2],".").concat(arr[1],".").concat(arr[3]),"".concat(arr[0],".").concat(arr[2],".").concat(arr[3],".").concat(arr[1]),"".concat(arr[0],".").concat(arr[3],".").concat(arr[1],".").concat(arr[2]),"".concat(arr[0],".").concat(arr[3],".").concat(arr[2],".").concat(arr[1]),"".concat(arr[1],".").concat(arr[0],".").concat(arr[2],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[0],".").concat(arr[3],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[2],".").concat(arr[0],".").concat(arr[3]),"".concat(arr[1],".").concat(arr[2],".").concat(arr[3],".").concat(arr[0]),"".concat(arr[1],".").concat(arr[3],".").concat(arr[0],".").concat(arr[2]),"".concat(arr[1],".").concat(arr[3],".").concat(arr[2],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[0],".").concat(arr[1],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[0],".").concat(arr[3],".").concat(arr[1]),"".concat(arr[2],".").concat(arr[1],".").concat(arr[0],".").concat(arr[3]),"".concat(arr[2],".").concat(arr[1],".").concat(arr[3],".").concat(arr[0]),"".concat(arr[2],".").concat(arr[3],".").concat(arr[0],".").concat(arr[1]),"".concat(arr[2],".").concat(arr[3],".").concat(arr[1],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[0],".").concat(arr[1],".").concat(arr[2]),"".concat(arr[3],".").concat(arr[0],".").concat(arr[2],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[1],".").concat(arr[0],".").concat(arr[2]),"".concat(arr[3],".").concat(arr[1],".").concat(arr[2],".").concat(arr[0]),"".concat(arr[3],".").concat(arr[2],".").concat(arr[0],".").concat(arr[1]),"".concat(arr[3],".").concat(arr[2],".").concat(arr[1],".").concat(arr[0])]}var classNameCombinations={};function getClassNameCombinations(classNames){if(classNames.length===0||classNames.length===1)return classNames;var key=classNames.join(".");return classNameCombinations[key]||(classNameCombinations[key]=powerSetPermutations(classNames)),classNameCombinations[key]}function createStyleObject(classNames){var elementStyle=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},stylesheet=arguments.length>2?arguments[2]:void 0,nonTokenClassNames=classNames.filter(function(className){return className!=="token"}),classNamesCombinations=getClassNameCombinations(nonTokenClassNames);return classNamesCombinations.reduce(function(styleObject,className){return _objectSpread(_objectSpread({},styleObject),stylesheet[className])},elementStyle)}function createClassNameString(classNames){return classNames.join(" ")}function createChildren(stylesheet,useInlineStyles){var childrenCount=0;return function(children){return childrenCount+=1,children.map(function(child,i){return createElement({node:child,stylesheet,useInlineStyles,key:"code-segment-".concat(childrenCount,"-").concat(i)})})}}function createElement(_ref){var node=_ref.node,stylesheet=_ref.stylesheet,_ref$style=_ref.style,style=_ref$style===void 0?{}:_ref$style,useInlineStyles=_ref.useInlineStyles,key=_ref.key,properties=node.properties,type=node.type,TagName=node.tagName,value=node.value;if(type==="text")return value;if(TagName){var childrenCreator=createChildren(stylesheet,useInlineStyles),props;if(!useInlineStyles)props=_objectSpread(_objectSpread({},properties),{},{className:createClassNameString(properties.className)});else{var allStylesheetSelectors=Object.keys(stylesheet).reduce(function(classes,selector){return selector.split(".").forEach(function(className2){classes.includes(className2)||classes.push(className2)}),classes},[]),startingClassName=properties.className&&properties.className.includes("token")?["token"]:[],className=properties.className&&startingClassName.concat(properties.className.filter(function(className2){return!allStylesheetSelectors.includes(className2)}));props=_objectSpread(_objectSpread({},properties),{},{className:createClassNameString(className)||void 0,style:createStyleObject(properties.className,Object.assign({},properties.style,style),stylesheet)})}var children=childrenCreator(node.children);return import_react.default.createElement(TagName,_extends({key},props),children)}}var checkForListedLanguage_default=function(astGenerator,language){var langs=astGenerator.listLanguages();return langs.indexOf(language)!==-1},_excluded=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function ownKeys2(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}function _objectSpread2(target){for(var i=1;i1&&arguments[1]!==void 0?arguments[1]:[],newTree=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],i=0;i2&&arguments[2]!==void 0?arguments[2]:[];return createLineElement({children:children2,lineNumber:lineNumber2,lineNumberStyle,largestLineNumber,showInlineLineNumbers,lineProps,className,showLineNumbers,wrapLongLines})}function createUnwrappedLine(children2,lineNumber2){if(showLineNumbers&&lineNumber2&&showInlineLineNumbers){var inlineLineNumberStyle=assembleLineNumberStyles(lineNumberStyle,lineNumber2,largestLineNumber);children2.unshift(getInlineLineNumber(lineNumber2,inlineLineNumberStyle))}return children2}function createLine(children2,lineNumber2){var className=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return wrapLines||className.length>0?createWrappedLine(children2,lineNumber2,className):createUnwrappedLine(children2,lineNumber2)}for(var _loop=function(){var node=tree[index],value=node.children[0].value,newLines=getNewLines(value);if(newLines){var splitValue=value.split(` -`);splitValue.forEach(function(text,i){var lineNumber2=showLineNumbers&&newTree.length+startingLineNumber,newChild={type:"text",value:"".concat(text,` -`)};if(i===0){var _children=tree.slice(lastLineBreakIndex+1,index).concat(createLineElement({children:[newChild],className:node.properties.className})),_line=createLine(_children,lineNumber2);newTree.push(_line)}else if(i===splitValue.length-1){var stringChild=tree[index+1]&&tree[index+1].children&&tree[index+1].children[0],lastLineInPreviousSpan={type:"text",value:"".concat(text)};if(stringChild){var newElem=createLineElement({children:[lastLineInPreviousSpan],className:node.properties.className});tree.splice(index+1,0,newElem)}else{var _children2=[lastLineInPreviousSpan],_line2=createLine(_children2,lineNumber2,node.properties.className);newTree.push(_line2)}}else{var _children3=[newChild],_line3=createLine(_children3,lineNumber2,node.properties.className);newTree.push(_line3)}}),lastLineBreakIndex=index}index++};index({position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",background:theme.background.content,zIndex:1})),ActionButton=newStyled.button(({theme})=>({margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:theme.color.defaultText,background:theme.background.content,fontSize:12,lineHeight:"16px",fontFamily:theme.typography.fonts.base,fontWeight:theme.typography.weight.bold,borderTop:`1px solid ${theme.appBorderColor}`,borderLeft:`1px solid ${theme.appBorderColor}`,marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:`1px solid ${theme.appBorderColor}`},"& + *":{borderLeft:`1px solid ${theme.appBorderColor}`,borderRadius:0},"&:focus":{boxShadow:`${theme.color.secondary} 0 -3px 0 0 inset`,outline:"0 none"}}),({disabled})=>disabled&&{cursor:"not-allowed",opacity:.5});ActionButton.displayName="ActionButton";var ActionBar=({actionItems,...props})=>import_react.default.createElement(Container,{...props},actionItems.map(({title,className,onClick,disabled},index)=>import_react.default.createElement(ActionButton,{key:index,className,onClick,disabled},title)));function _extends2(){return _extends2=Object.assign?Object.assign.bind():function(target){for(var i=1;irefs.forEach(ref=>$6ed0406888f73fc4$var$setRef(ref,node))}function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...refs){return(0,import_react.useCallback)($6ed0406888f73fc4$export$43e446d32b3d21af(...refs),refs)}var $5e63c961fc1ce211$export$8c6ed5c666ac1360=(0,import_react.forwardRef)((props,forwardedRef)=>{let{children,...slotProps}=props,childrenArray=import_react.Children.toArray(children),slottable=childrenArray.find($5e63c961fc1ce211$var$isSlottable);if(slottable){let newElement=slottable.props.children,newChildren=childrenArray.map(child=>child===slottable?import_react.Children.count(newElement)>1?import_react.Children.only(null):(0,import_react.isValidElement)(newElement)?newElement.props.children:null:child);return(0,import_react.createElement)($5e63c961fc1ce211$var$SlotClone,_extends4({},slotProps,{ref:forwardedRef}),(0,import_react.isValidElement)(newElement)?(0,import_react.cloneElement)(newElement,void 0,newChildren):null)}return(0,import_react.createElement)($5e63c961fc1ce211$var$SlotClone,_extends4({},slotProps,{ref:forwardedRef}),children)});$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName="Slot";var $5e63c961fc1ce211$var$SlotClone=(0,import_react.forwardRef)((props,forwardedRef)=>{let{children,...slotProps}=props;return(0,import_react.isValidElement)(children)?(0,import_react.cloneElement)(children,{...$5e63c961fc1ce211$var$mergeProps(slotProps,children.props),ref:forwardedRef?$6ed0406888f73fc4$export$43e446d32b3d21af(forwardedRef,children.ref):children.ref}):import_react.Children.count(children)>1?import_react.Children.only(null):null});$5e63c961fc1ce211$var$SlotClone.displayName="SlotClone";var $5e63c961fc1ce211$export$d9f1ccf0bdb05d45=({children})=>(0,import_react.createElement)(import_react.Fragment,null,children);function $5e63c961fc1ce211$var$isSlottable(child){return(0,import_react.isValidElement)(child)&&child.type===$5e63c961fc1ce211$export$d9f1ccf0bdb05d45}function $5e63c961fc1ce211$var$mergeProps(slotProps,childProps){let overrideProps={...childProps};for(let propName in childProps){let slotPropValue=slotProps[propName],childPropValue=childProps[propName];/^on[A-Z]/.test(propName)?slotPropValue&&childPropValue?overrideProps[propName]=(...args)=>{childPropValue(...args),slotPropValue(...args)}:slotPropValue&&(overrideProps[propName]=slotPropValue):propName==="style"?overrideProps[propName]={...slotPropValue,...childPropValue}:propName==="className"&&(overrideProps[propName]=[slotPropValue,childPropValue].filter(Boolean).join(" "))}return{...slotProps,...overrideProps}}var $8927f6f2acc4f386$var$NODES=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],$8927f6f2acc4f386$export$250ffa63cdc0d034=$8927f6f2acc4f386$var$NODES.reduce((primitive,node)=>{let Node=(0,import_react.forwardRef)((props,forwardedRef)=>{let{asChild,...primitiveProps}=props,Comp=asChild?$5e63c961fc1ce211$export$8c6ed5c666ac1360:node;return(0,import_react.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,import_react.createElement)(Comp,_extends3({},primitiveProps,{ref:forwardedRef}))});return Node.displayName=`Primitive.${node}`,{...primitive,[node]:Node}},{}),$9f79659886946c16$export$e5c5a5f917a5871c=globalThis?.document?import_react.useLayoutEffect:()=>{};function $fe963b355347cc68$export$3e6543de14f8614f(initialState,machine){return(0,import_react.useReducer)((state,event)=>machine[state][event]??state,initialState)}var $921a889cee6df7e8$export$99c2b779aa4e8b8b=props=>{let{present,children}=props,presence=$921a889cee6df7e8$var$usePresence(present),child=typeof children=="function"?children({present:presence.isPresent}):import_react.Children.only(children),ref=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(presence.ref,child.ref);return typeof children=="function"||presence.isPresent?(0,import_react.cloneElement)(child,{ref}):null};$921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName="Presence";function $921a889cee6df7e8$var$usePresence(present){let[node1,setNode]=(0,import_react.useState)(),stylesRef=(0,import_react.useRef)({}),prevPresentRef=(0,import_react.useRef)(present),prevAnimationNameRef=(0,import_react.useRef)("none"),initialState=present?"mounted":"unmounted",[state,send]=$fe963b355347cc68$export$3e6543de14f8614f(initialState,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,import_react.useEffect)(()=>{let currentAnimationName=$921a889cee6df7e8$var$getAnimationName(stylesRef.current);prevAnimationNameRef.current=state==="mounted"?currentAnimationName:"none"},[state]),$9f79659886946c16$export$e5c5a5f917a5871c(()=>{let styles=stylesRef.current,wasPresent=prevPresentRef.current;if(wasPresent!==present){let prevAnimationName=prevAnimationNameRef.current,currentAnimationName=$921a889cee6df7e8$var$getAnimationName(styles);present?send("MOUNT"):currentAnimationName==="none"||styles?.display==="none"?send("UNMOUNT"):send(wasPresent&&prevAnimationName!==currentAnimationName?"ANIMATION_OUT":"UNMOUNT"),prevPresentRef.current=present}},[present,send]),$9f79659886946c16$export$e5c5a5f917a5871c(()=>{if(node1){let handleAnimationEnd=event=>{let isCurrentAnimation=$921a889cee6df7e8$var$getAnimationName(stylesRef.current).includes(event.animationName);event.target===node1&&isCurrentAnimation&&(0,import_react_dom.flushSync)(()=>send("ANIMATION_END"))},handleAnimationStart=event=>{event.target===node1&&(prevAnimationNameRef.current=$921a889cee6df7e8$var$getAnimationName(stylesRef.current))};return node1.addEventListener("animationstart",handleAnimationStart),node1.addEventListener("animationcancel",handleAnimationEnd),node1.addEventListener("animationend",handleAnimationEnd),()=>{node1.removeEventListener("animationstart",handleAnimationStart),node1.removeEventListener("animationcancel",handleAnimationEnd),node1.removeEventListener("animationend",handleAnimationEnd)}}else send("ANIMATION_END")},[node1,send]),{isPresent:["mounted","unmountSuspended"].includes(state),ref:(0,import_react.useCallback)(node=>{node&&(stylesRef.current=getComputedStyle(node)),setNode(node)},[])}}function $921a889cee6df7e8$var$getAnimationName(styles){return styles?.animationName||"none"}function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName,createContextScopeDeps=[]){let defaultContexts=[];function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName,defaultContext){let BaseContext=(0,import_react.createContext)(defaultContext),index=defaultContexts.length;defaultContexts=[...defaultContexts,defaultContext];function Provider(props){let{scope:scope2,children,...context}=props,Context=scope2?.[scopeName][index]||BaseContext,value=(0,import_react.useMemo)(()=>context,Object.values(context));return(0,import_react.createElement)(Context.Provider,{value},children)}function useContext$1(consumerName,scope2){let Context=scope2?.[scopeName][index]||BaseContext,context=(0,import_react.useContext)(Context);if(context)return context;if(defaultContext!==void 0)return defaultContext;throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``)}return Provider.displayName=rootComponentName+"Provider",[Provider,useContext$1]}let createScope=()=>{let scopeContexts=defaultContexts.map(defaultContext=>(0,import_react.createContext)(defaultContext));return function(scope2){let contexts=scope2?.[scopeName]||scopeContexts;return(0,import_react.useMemo)(()=>({[`__scope${scopeName}`]:{...scope2,[scopeName]:contexts}}),[scope2,contexts])}};return createScope.scopeName=scopeName,[$c512c27ab02ef895$export$fd42f52fd3ae1109,$c512c27ab02ef895$var$composeContextScopes(createScope,...createContextScopeDeps)]}function $c512c27ab02ef895$var$composeContextScopes(...scopes){let baseScope=scopes[0];if(scopes.length===1)return baseScope;let createScope1=()=>{let scopeHooks=scopes.map(createScope=>({useScope:createScope(),scopeName:createScope.scopeName}));return function(overrideScopes){let nextScopes1=scopeHooks.reduce((nextScopes,{useScope,scopeName})=>{let currentScope=useScope(overrideScopes)[`__scope${scopeName}`];return{...nextScopes,...currentScope}},{});return(0,import_react.useMemo)(()=>({[`__scope${baseScope.scopeName}`]:nextScopes1}),[nextScopes1])}};return createScope1.scopeName=baseScope.scopeName,createScope1}function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback){let callbackRef=(0,import_react.useRef)(callback);return(0,import_react.useEffect)(()=>{callbackRef.current=callback}),(0,import_react.useMemo)(()=>(...args)=>{var _callbackRef$current;return(_callbackRef$current=callbackRef.current)===null||_callbackRef$current===void 0?void 0:_callbackRef$current.call(callbackRef,...args)},[])}var $f631663db3294ace$var$DirectionContext=(0,import_react.createContext)(void 0);function $f631663db3294ace$export$b39126d51d94e6f3(localDir){let globalDir=(0,import_react.useContext)($f631663db3294ace$var$DirectionContext);return localDir||globalDir||"ltr"}function $ae6933e535247d3d$export$7d15b64cf5a3a4c4(value,[min,max]){return Math.min(max,Math.max(min,value))}function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler,ourEventHandler,{checkForDefaultPrevented=!0}={}){return function(event){if(originalEventHandler?.(event),checkForDefaultPrevented===!1||!event.defaultPrevented)return ourEventHandler?.(event)}}function $6c2e24571c90391f$export$3e6543de14f8614f(initialState,machine){return(0,import_react.useReducer)((state,event)=>machine[state][event]??state,initialState)}var $57acba87d6e25586$var$SCROLL_AREA_NAME="ScrollArea",[$57acba87d6e25586$var$createScrollAreaContext,$57acba87d6e25586$export$488468afe3a6f2b1]=$c512c27ab02ef895$export$50c7b4e9d9f19c1($57acba87d6e25586$var$SCROLL_AREA_NAME),[$57acba87d6e25586$var$ScrollAreaProvider,$57acba87d6e25586$var$useScrollAreaContext]=$57acba87d6e25586$var$createScrollAreaContext($57acba87d6e25586$var$SCROLL_AREA_NAME),$57acba87d6e25586$export$ccf8d8d7bbf3c2cc=(0,import_react.forwardRef)((props,forwardedRef)=>{let{__scopeScrollArea,type="hover",dir,scrollHideDelay=600,...scrollAreaProps}=props,[scrollArea,setScrollArea]=(0,import_react.useState)(null),[viewport,setViewport]=(0,import_react.useState)(null),[content,setContent]=(0,import_react.useState)(null),[scrollbarX,setScrollbarX]=(0,import_react.useState)(null),[scrollbarY,setScrollbarY]=(0,import_react.useState)(null),[cornerWidth,setCornerWidth]=(0,import_react.useState)(0),[cornerHeight,setCornerHeight]=(0,import_react.useState)(0),[scrollbarXEnabled,setScrollbarXEnabled]=(0,import_react.useState)(!1),[scrollbarYEnabled,setScrollbarYEnabled]=(0,import_react.useState)(!1),composedRefs=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,node=>setScrollArea(node)),direction=$f631663db3294ace$export$b39126d51d94e6f3(dir);return(0,import_react.createElement)($57acba87d6e25586$var$ScrollAreaProvider,{scope:__scopeScrollArea,type,dir:direction,scrollHideDelay,scrollArea,viewport,onViewportChange:setViewport,content,onContentChange:setContent,scrollbarX,onScrollbarXChange:setScrollbarX,scrollbarXEnabled,onScrollbarXEnabledChange:setScrollbarXEnabled,scrollbarY,onScrollbarYChange:setScrollbarY,scrollbarYEnabled,onScrollbarYEnabledChange:setScrollbarYEnabled,onCornerWidthChange:setCornerWidth,onCornerHeightChange:setCornerHeight},(0,import_react.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends2({dir:direction},scrollAreaProps,{ref:composedRefs,style:{position:"relative","--radix-scroll-area-corner-width":cornerWidth+"px","--radix-scroll-area-corner-height":cornerHeight+"px",...props.style}})))}),$57acba87d6e25586$var$VIEWPORT_NAME="ScrollAreaViewport",$57acba87d6e25586$export$a21cbf9f11fca853=(0,import_react.forwardRef)((props,forwardedRef)=>{let{__scopeScrollArea,children,...viewportProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$VIEWPORT_NAME,__scopeScrollArea),ref=(0,import_react.useRef)(null),composedRefs=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,ref,context.onViewportChange);return(0,import_react.createElement)(import_react.Fragment,null,(0,import_react.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"}}),(0,import_react.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends2({"data-radix-scroll-area-viewport":""},viewportProps,{ref:composedRefs,style:{overflowX:context.scrollbarXEnabled?"scroll":"hidden",overflowY:context.scrollbarYEnabled?"scroll":"hidden",...props.style}}),(0,import_react.createElement)("div",{ref:context.onContentChange,style:{minWidth:"100%",display:"table"}},children)))}),$57acba87d6e25586$var$SCROLLBAR_NAME="ScrollAreaScrollbar",$57acba87d6e25586$export$2fabd85d0eba3c57=(0,import_react.forwardRef)((props,forwardedRef)=>{let{forceMount,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,props.__scopeScrollArea),{onScrollbarXEnabledChange,onScrollbarYEnabledChange}=context,isHorizontal=props.orientation==="horizontal";return(0,import_react.useEffect)(()=>(isHorizontal?onScrollbarXEnabledChange(!0):onScrollbarYEnabledChange(!0),()=>{isHorizontal?onScrollbarXEnabledChange(!1):onScrollbarYEnabledChange(!1)}),[isHorizontal,onScrollbarXEnabledChange,onScrollbarYEnabledChange]),context.type==="hover"?(0,import_react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarHover,_extends2({},scrollbarProps,{ref:forwardedRef,forceMount})):context.type==="scroll"?(0,import_react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarScroll,_extends2({},scrollbarProps,{ref:forwardedRef,forceMount})):context.type==="auto"?(0,import_react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarAuto,_extends2({},scrollbarProps,{ref:forwardedRef,forceMount})):context.type==="always"?(0,import_react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarVisible,_extends2({},scrollbarProps,{ref:forwardedRef})):null}),$57acba87d6e25586$var$ScrollAreaScrollbarHover=(0,import_react.forwardRef)((props,forwardedRef)=>{let{forceMount,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,props.__scopeScrollArea),[visible,setVisible]=(0,import_react.useState)(!1);return(0,import_react.useEffect)(()=>{let scrollArea=context.scrollArea,hideTimer=0;if(scrollArea){let handlePointerEnter=()=>{window.clearTimeout(hideTimer),setVisible(!0)},handlePointerLeave=()=>{hideTimer=window.setTimeout(()=>setVisible(!1),context.scrollHideDelay)};return scrollArea.addEventListener("pointerenter",handlePointerEnter),scrollArea.addEventListener("pointerleave",handlePointerLeave),()=>{window.clearTimeout(hideTimer),scrollArea.removeEventListener("pointerenter",handlePointerEnter),scrollArea.removeEventListener("pointerleave",handlePointerLeave)}}},[context.scrollArea,context.scrollHideDelay]),(0,import_react.createElement)($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:forceMount||visible},(0,import_react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarAuto,_extends2({"data-state":visible?"visible":"hidden"},scrollbarProps,{ref:forwardedRef})))}),$57acba87d6e25586$var$ScrollAreaScrollbarScroll=(0,import_react.forwardRef)((props,forwardedRef)=>{let{forceMount,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,props.__scopeScrollArea),isHorizontal=props.orientation==="horizontal",debounceScrollEnd=$57acba87d6e25586$var$useDebounceCallback(()=>send("SCROLL_END"),100),[state,send]=$6c2e24571c90391f$export$3e6543de14f8614f("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return(0,import_react.useEffect)(()=>{if(state==="idle"){let hideTimer=window.setTimeout(()=>send("HIDE"),context.scrollHideDelay);return()=>window.clearTimeout(hideTimer)}},[state,context.scrollHideDelay,send]),(0,import_react.useEffect)(()=>{let viewport=context.viewport,scrollDirection=isHorizontal?"scrollLeft":"scrollTop";if(viewport){let prevScrollPos=viewport[scrollDirection],handleScroll=()=>{let scrollPos=viewport[scrollDirection];prevScrollPos!==scrollPos&&(send("SCROLL"),debounceScrollEnd()),prevScrollPos=scrollPos};return viewport.addEventListener("scroll",handleScroll),()=>viewport.removeEventListener("scroll",handleScroll)}},[context.viewport,isHorizontal,send,debounceScrollEnd]),(0,import_react.createElement)($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:forceMount||state!=="hidden"},(0,import_react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarVisible,_extends2({"data-state":state==="hidden"?"hidden":"visible"},scrollbarProps,{ref:forwardedRef,onPointerEnter:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerEnter,()=>send("POINTER_ENTER")),onPointerLeave:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerLeave,()=>send("POINTER_LEAVE"))})))}),$57acba87d6e25586$var$ScrollAreaScrollbarAuto=(0,import_react.forwardRef)((props,forwardedRef)=>{let context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,props.__scopeScrollArea),{forceMount,...scrollbarProps}=props,[visible,setVisible]=(0,import_react.useState)(!1),isHorizontal=props.orientation==="horizontal",handleResize=$57acba87d6e25586$var$useDebounceCallback(()=>{if(context.viewport){let isOverflowX=context.viewport.offsetWidth{let{orientation="vertical",...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,props.__scopeScrollArea),thumbRef=(0,import_react.useRef)(null),pointerOffsetRef=(0,import_react.useRef)(0),[sizes,setSizes]=(0,import_react.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),thumbRatio=$57acba87d6e25586$var$getThumbRatio(sizes.viewport,sizes.content),commonProps={...scrollbarProps,sizes,onSizesChange:setSizes,hasThumb:thumbRatio>0&&thumbRatio<1,onThumbChange:thumb=>thumbRef.current=thumb,onThumbPointerUp:()=>pointerOffsetRef.current=0,onThumbPointerDown:pointerPos=>pointerOffsetRef.current=pointerPos};function getScrollPosition(pointerPos,dir){return $57acba87d6e25586$var$getScrollPositionFromPointer(pointerPos,pointerOffsetRef.current,sizes,dir)}return orientation==="horizontal"?(0,import_react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarX,_extends2({},commonProps,{ref:forwardedRef,onThumbPositionChange:()=>{if(context.viewport&&thumbRef.current){let scrollPos=context.viewport.scrollLeft,offset=$57acba87d6e25586$var$getThumbOffsetFromScroll(scrollPos,sizes,context.dir);thumbRef.current.style.transform=`translate3d(${offset}px, 0, 0)`}},onWheelScroll:scrollPos=>{context.viewport&&(context.viewport.scrollLeft=scrollPos)},onDragScroll:pointerPos=>{context.viewport&&(context.viewport.scrollLeft=getScrollPosition(pointerPos,context.dir))}})):orientation==="vertical"?(0,import_react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarY,_extends2({},commonProps,{ref:forwardedRef,onThumbPositionChange:()=>{if(context.viewport&&thumbRef.current){let scrollPos=context.viewport.scrollTop,offset=$57acba87d6e25586$var$getThumbOffsetFromScroll(scrollPos,sizes);thumbRef.current.style.transform=`translate3d(0, ${offset}px, 0)`}},onWheelScroll:scrollPos=>{context.viewport&&(context.viewport.scrollTop=scrollPos)},onDragScroll:pointerPos=>{context.viewport&&(context.viewport.scrollTop=getScrollPosition(pointerPos))}})):null}),$57acba87d6e25586$var$ScrollAreaScrollbarX=(0,import_react.forwardRef)((props,forwardedRef)=>{let{sizes,onSizesChange,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,props.__scopeScrollArea),[computedStyle,setComputedStyle]=(0,import_react.useState)(),ref=(0,import_react.useRef)(null),composeRefs=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,ref,context.onScrollbarXChange);return(0,import_react.useEffect)(()=>{ref.current&&setComputedStyle(getComputedStyle(ref.current))},[ref]),(0,import_react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarImpl,_extends2({"data-orientation":"horizontal"},scrollbarProps,{ref:composeRefs,sizes,style:{bottom:0,left:context.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:context.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":$57acba87d6e25586$var$getThumbSize(sizes)+"px",...props.style},onThumbPointerDown:pointerPos=>props.onThumbPointerDown(pointerPos.x),onDragScroll:pointerPos=>props.onDragScroll(pointerPos.x),onWheelScroll:(event,maxScrollPos)=>{if(context.viewport){let scrollPos=context.viewport.scrollLeft+event.deltaX;props.onWheelScroll(scrollPos),$57acba87d6e25586$var$isScrollingWithinScrollbarBounds(scrollPos,maxScrollPos)&&event.preventDefault()}},onResize:()=>{ref.current&&context.viewport&&computedStyle&&onSizesChange({content:context.viewport.scrollWidth,viewport:context.viewport.offsetWidth,scrollbar:{size:ref.current.clientWidth,paddingStart:$57acba87d6e25586$var$toInt(computedStyle.paddingLeft),paddingEnd:$57acba87d6e25586$var$toInt(computedStyle.paddingRight)}})}}))}),$57acba87d6e25586$var$ScrollAreaScrollbarY=(0,import_react.forwardRef)((props,forwardedRef)=>{let{sizes,onSizesChange,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,props.__scopeScrollArea),[computedStyle,setComputedStyle]=(0,import_react.useState)(),ref=(0,import_react.useRef)(null),composeRefs=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,ref,context.onScrollbarYChange);return(0,import_react.useEffect)(()=>{ref.current&&setComputedStyle(getComputedStyle(ref.current))},[ref]),(0,import_react.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarImpl,_extends2({"data-orientation":"vertical"},scrollbarProps,{ref:composeRefs,sizes,style:{top:0,right:context.dir==="ltr"?0:void 0,left:context.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":$57acba87d6e25586$var$getThumbSize(sizes)+"px",...props.style},onThumbPointerDown:pointerPos=>props.onThumbPointerDown(pointerPos.y),onDragScroll:pointerPos=>props.onDragScroll(pointerPos.y),onWheelScroll:(event,maxScrollPos)=>{if(context.viewport){let scrollPos=context.viewport.scrollTop+event.deltaY;props.onWheelScroll(scrollPos),$57acba87d6e25586$var$isScrollingWithinScrollbarBounds(scrollPos,maxScrollPos)&&event.preventDefault()}},onResize:()=>{ref.current&&context.viewport&&computedStyle&&onSizesChange({content:context.viewport.scrollHeight,viewport:context.viewport.offsetHeight,scrollbar:{size:ref.current.clientHeight,paddingStart:$57acba87d6e25586$var$toInt(computedStyle.paddingTop),paddingEnd:$57acba87d6e25586$var$toInt(computedStyle.paddingBottom)}})}}))}),[$57acba87d6e25586$var$ScrollbarProvider,$57acba87d6e25586$var$useScrollbarContext]=$57acba87d6e25586$var$createScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME),$57acba87d6e25586$var$ScrollAreaScrollbarImpl=(0,import_react.forwardRef)((props,forwardedRef)=>{let{__scopeScrollArea,sizes,hasThumb,onThumbChange,onThumbPointerUp,onThumbPointerDown,onThumbPositionChange,onDragScroll,onWheelScroll,onResize,...scrollbarProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME,__scopeScrollArea),[scrollbar,setScrollbar]=(0,import_react.useState)(null),composeRefs=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,node=>setScrollbar(node)),rectRef=(0,import_react.useRef)(null),prevWebkitUserSelectRef=(0,import_react.useRef)(""),viewport=context.viewport,maxScrollPos=sizes.content-sizes.viewport,handleWheelScroll=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onWheelScroll),handleThumbPositionChange=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onThumbPositionChange),handleResize=$57acba87d6e25586$var$useDebounceCallback(onResize,10);function handleDragScroll(event){if(rectRef.current){let x=event.clientX-rectRef.current.left,y=event.clientY-rectRef.current.top;onDragScroll({x,y})}}return(0,import_react.useEffect)(()=>{let handleWheel=event=>{let element=event.target;scrollbar?.contains(element)&&handleWheelScroll(event,maxScrollPos)};return document.addEventListener("wheel",handleWheel,{passive:!1}),()=>document.removeEventListener("wheel",handleWheel,{passive:!1})},[viewport,scrollbar,maxScrollPos,handleWheelScroll]),(0,import_react.useEffect)(handleThumbPositionChange,[sizes,handleThumbPositionChange]),$57acba87d6e25586$var$useResizeObserver(scrollbar,handleResize),$57acba87d6e25586$var$useResizeObserver(context.content,handleResize),(0,import_react.createElement)($57acba87d6e25586$var$ScrollbarProvider,{scope:__scopeScrollArea,scrollbar,hasThumb,onThumbChange:$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onThumbChange),onThumbPointerUp:$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onThumbPointerUp),onThumbPositionChange:handleThumbPositionChange,onThumbPointerDown:$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onThumbPointerDown)},(0,import_react.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends2({},scrollbarProps,{ref:composeRefs,style:{position:"absolute",...scrollbarProps.style},onPointerDown:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDown,event=>{event.button===0&&(event.target.setPointerCapture(event.pointerId),rectRef.current=scrollbar.getBoundingClientRect(),prevWebkitUserSelectRef.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",context.viewport&&(context.viewport.style.scrollBehavior="auto"),handleDragScroll(event))}),onPointerMove:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerMove,handleDragScroll),onPointerUp:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerUp,event=>{let element=event.target;element.hasPointerCapture(event.pointerId)&&element.releasePointerCapture(event.pointerId),document.body.style.webkitUserSelect=prevWebkitUserSelectRef.current,context.viewport&&(context.viewport.style.scrollBehavior=""),rectRef.current=null})})))}),$57acba87d6e25586$var$THUMB_NAME="ScrollAreaThumb",$57acba87d6e25586$export$9fba1154677d7cd2=(0,import_react.forwardRef)((props,forwardedRef)=>{let{forceMount,...thumbProps}=props,scrollbarContext=$57acba87d6e25586$var$useScrollbarContext($57acba87d6e25586$var$THUMB_NAME,props.__scopeScrollArea);return(0,import_react.createElement)($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:forceMount||scrollbarContext.hasThumb},(0,import_react.createElement)($57acba87d6e25586$var$ScrollAreaThumbImpl,_extends2({ref:forwardedRef},thumbProps)))}),$57acba87d6e25586$var$ScrollAreaThumbImpl=(0,import_react.forwardRef)((props,forwardedRef)=>{let{__scopeScrollArea,style,...thumbProps}=props,scrollAreaContext=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$THUMB_NAME,__scopeScrollArea),scrollbarContext=$57acba87d6e25586$var$useScrollbarContext($57acba87d6e25586$var$THUMB_NAME,__scopeScrollArea),{onThumbPositionChange}=scrollbarContext,composedRef=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(forwardedRef,node=>scrollbarContext.onThumbChange(node)),removeUnlinkedScrollListenerRef=(0,import_react.useRef)(),debounceScrollEnd=$57acba87d6e25586$var$useDebounceCallback(()=>{removeUnlinkedScrollListenerRef.current&&(removeUnlinkedScrollListenerRef.current(),removeUnlinkedScrollListenerRef.current=void 0)},100);return(0,import_react.useEffect)(()=>{let viewport=scrollAreaContext.viewport;if(viewport){let handleScroll=()=>{if(debounceScrollEnd(),!removeUnlinkedScrollListenerRef.current){let listener=$57acba87d6e25586$var$addUnlinkedScrollListener(viewport,onThumbPositionChange);removeUnlinkedScrollListenerRef.current=listener,onThumbPositionChange()}};return onThumbPositionChange(),viewport.addEventListener("scroll",handleScroll),()=>viewport.removeEventListener("scroll",handleScroll)}},[scrollAreaContext.viewport,debounceScrollEnd,onThumbPositionChange]),(0,import_react.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends2({"data-state":scrollbarContext.hasThumb?"visible":"hidden"},thumbProps,{ref:composedRef,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...style},onPointerDownCapture:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDownCapture,event=>{let thumbRect=event.target.getBoundingClientRect(),x=event.clientX-thumbRect.left,y=event.clientY-thumbRect.top;scrollbarContext.onThumbPointerDown({x,y})}),onPointerUp:$e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerUp,scrollbarContext.onThumbPointerUp)}))}),$57acba87d6e25586$var$CORNER_NAME="ScrollAreaCorner",$57acba87d6e25586$export$56969d565df7cc4b=(0,import_react.forwardRef)((props,forwardedRef)=>{let context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$CORNER_NAME,props.__scopeScrollArea),hasBothScrollbarsVisible=!!(context.scrollbarX&&context.scrollbarY);return context.type!=="scroll"&&hasBothScrollbarsVisible?(0,import_react.createElement)($57acba87d6e25586$var$ScrollAreaCornerImpl,_extends2({},props,{ref:forwardedRef})):null}),$57acba87d6e25586$var$ScrollAreaCornerImpl=(0,import_react.forwardRef)((props,forwardedRef)=>{let{__scopeScrollArea,...cornerProps}=props,context=$57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$CORNER_NAME,__scopeScrollArea),[width1,setWidth]=(0,import_react.useState)(0),[height1,setHeight]=(0,import_react.useState)(0),hasSize=!!(width1&&height1);return $57acba87d6e25586$var$useResizeObserver(context.scrollbarX,()=>{var _context$scrollbarX;let height=((_context$scrollbarX=context.scrollbarX)===null||_context$scrollbarX===void 0?void 0:_context$scrollbarX.offsetHeight)||0;context.onCornerHeightChange(height),setHeight(height)}),$57acba87d6e25586$var$useResizeObserver(context.scrollbarY,()=>{var _context$scrollbarY;let width=((_context$scrollbarY=context.scrollbarY)===null||_context$scrollbarY===void 0?void 0:_context$scrollbarY.offsetWidth)||0;context.onCornerWidthChange(width),setWidth(width)}),hasSize?(0,import_react.createElement)($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends2({},cornerProps,{ref:forwardedRef,style:{width:width1,height:height1,position:"absolute",right:context.dir==="ltr"?0:void 0,left:context.dir==="rtl"?0:void 0,bottom:0,...props.style}})):null});function $57acba87d6e25586$var$toInt(value){return value?parseInt(value,10):0}function $57acba87d6e25586$var$getThumbRatio(viewportSize,contentSize){let ratio=viewportSize/contentSize;return isNaN(ratio)?0:ratio}function $57acba87d6e25586$var$getThumbSize(sizes){let ratio=$57acba87d6e25586$var$getThumbRatio(sizes.viewport,sizes.content),scrollbarPadding=sizes.scrollbar.paddingStart+sizes.scrollbar.paddingEnd,thumbSize=(sizes.scrollbar.size-scrollbarPadding)*ratio;return Math.max(thumbSize,18)}function $57acba87d6e25586$var$getScrollPositionFromPointer(pointerPos,pointerOffset,sizes,dir="ltr"){let thumbSizePx=$57acba87d6e25586$var$getThumbSize(sizes),thumbCenter=thumbSizePx/2,offset=pointerOffset||thumbCenter,thumbOffsetFromEnd=thumbSizePx-offset,minPointerPos=sizes.scrollbar.paddingStart+offset,maxPointerPos=sizes.scrollbar.size-sizes.scrollbar.paddingEnd-thumbOffsetFromEnd,maxScrollPos=sizes.content-sizes.viewport,scrollRange=dir==="ltr"?[0,maxScrollPos]:[maxScrollPos*-1,0];return $57acba87d6e25586$var$linearScale([minPointerPos,maxPointerPos],scrollRange)(pointerPos)}function $57acba87d6e25586$var$getThumbOffsetFromScroll(scrollPos,sizes,dir="ltr"){let thumbSizePx=$57acba87d6e25586$var$getThumbSize(sizes),scrollbarPadding=sizes.scrollbar.paddingStart+sizes.scrollbar.paddingEnd,scrollbar=sizes.scrollbar.size-scrollbarPadding,maxScrollPos=sizes.content-sizes.viewport,maxThumbPos=scrollbar-thumbSizePx,scrollClampRange=dir==="ltr"?[0,maxScrollPos]:[maxScrollPos*-1,0],scrollWithoutMomentum=$ae6933e535247d3d$export$7d15b64cf5a3a4c4(scrollPos,scrollClampRange);return $57acba87d6e25586$var$linearScale([0,maxScrollPos],[0,maxThumbPos])(scrollWithoutMomentum)}function $57acba87d6e25586$var$linearScale(input,output){return value=>{if(input[0]===input[1]||output[0]===output[1])return output[0];let ratio=(output[1]-output[0])/(input[1]-input[0]);return output[0]+ratio*(value-input[0])}}function $57acba87d6e25586$var$isScrollingWithinScrollbarBounds(scrollPos,maxScrollPos){return scrollPos>0&&scrollPos{})=>{let prevPosition={left:node.scrollLeft,top:node.scrollTop},rAF=0;return function loop(){let position={left:node.scrollLeft,top:node.scrollTop},isHorizontalScroll=prevPosition.left!==position.left,isVerticalScroll=prevPosition.top!==position.top;(isHorizontalScroll||isVerticalScroll)&&handler(),prevPosition=position,rAF=window.requestAnimationFrame(loop)}(),()=>window.cancelAnimationFrame(rAF)};function $57acba87d6e25586$var$useDebounceCallback(callback,delay){let handleCallback=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback),debounceTimerRef=(0,import_react.useRef)(0);return(0,import_react.useEffect)(()=>()=>window.clearTimeout(debounceTimerRef.current),[]),(0,import_react.useCallback)(()=>{window.clearTimeout(debounceTimerRef.current),debounceTimerRef.current=window.setTimeout(handleCallback,delay)},[handleCallback,delay])}function $57acba87d6e25586$var$useResizeObserver(element,onResize){let handleResize=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onResize);$9f79659886946c16$export$e5c5a5f917a5871c(()=>{let rAF=0;if(element){let resizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(rAF),rAF=window.requestAnimationFrame(handleResize)});return resizeObserver.observe(element),()=>{window.cancelAnimationFrame(rAF),resizeObserver.unobserve(element)}}},[element,handleResize])}var $57acba87d6e25586$export$be92b6f5f03c0fe9=$57acba87d6e25586$export$ccf8d8d7bbf3c2cc,$57acba87d6e25586$export$d5c6c08dc2d3ca7=$57acba87d6e25586$export$a21cbf9f11fca853,$57acba87d6e25586$export$9a4e88b92edfce6b=$57acba87d6e25586$export$2fabd85d0eba3c57,$57acba87d6e25586$export$6521433ed15a34db=$57acba87d6e25586$export$9fba1154677d7cd2,$57acba87d6e25586$export$ac61190d9fc311a9=$57acba87d6e25586$export$56969d565df7cc4b,ScrollAreaRoot=newStyled($57acba87d6e25586$export$be92b6f5f03c0fe9)(({scrollbarsize,offset})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${scrollbarsize+offset}px`,"--radix-scroll-area-thumb-width":`${scrollbarsize}px`})),ScrollAreaViewport=newStyled($57acba87d6e25586$export$d5c6c08dc2d3ca7)({width:"100%",height:"100%"}),ScrollAreaScrollbar=newStyled($57acba87d6e25586$export$9a4e88b92edfce6b)(({offset,horizontal,vertical})=>({display:"flex",userSelect:"none",touchAction:"none",background:"transparent",transition:"all 0.2s ease-out",borderRadius:"var(--scrollbar-size)",'&[data-orientation="vertical"]':{width:"var(--scrollbar-size)",paddingRight:offset,marginTop:offset,marginBottom:horizontal==="true"&&vertical==="true"?0:offset},'&[data-orientation="horizontal"]':{flexDirection:"column",height:"var(--scrollbar-size)",paddingBottom:offset,marginLeft:offset,marginRight:horizontal==="true"&&vertical==="true"?0:offset}})),ScrollAreaThumb=newStyled($57acba87d6e25586$export$6521433ed15a34db)(({theme})=>({flex:1,background:theme.textMutedColor,opacity:.5,borderRadius:"var(--scrollbar-size)",position:"relative",transition:"opacity 0.2s ease-out","&:hover":{opacity:.8},"::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",width:"100%",height:"100%",minWidth:44,minHeight:44}})),ScrollArea=({children,horizontal=!1,vertical=!1,offset=2,scrollbarSize=6,className})=>import_react.default.createElement(ScrollAreaRoot,{scrollbarsize:scrollbarSize,offset,className},import_react.default.createElement(ScrollAreaViewport,null,children),horizontal&&import_react.default.createElement(ScrollAreaScrollbar,{orientation:"horizontal",offset,horizontal:horizontal.toString(),vertical:vertical.toString()},import_react.default.createElement(ScrollAreaThumb,null)),vertical&&import_react.default.createElement(ScrollAreaScrollbar,{orientation:"vertical",offset,horizontal:horizontal.toString(),vertical:vertical.toString()},import_react.default.createElement(ScrollAreaThumb,null)),horizontal&&vertical&&import_react.default.createElement($57acba87d6e25586$export$ac61190d9fc311a9,null)),{navigator,document:document2,window:globalWindow}=scope;prism_light_default.registerLanguage("jsextra",js_extras_default);prism_light_default.registerLanguage("jsx",jsx_default);prism_light_default.registerLanguage("json",json_default);prism_light_default.registerLanguage("yml",yaml_default);prism_light_default.registerLanguage("md",markdown_default);prism_light_default.registerLanguage("bash",bash_default);prism_light_default.registerLanguage("css",css_default);prism_light_default.registerLanguage("html",markup_default);prism_light_default.registerLanguage("tsx",tsx_default);prism_light_default.registerLanguage("typescript",typescript_default);prism_light_default.registerLanguage("graphql",graphql_default);var themedSyntax=(0,import_memoizerific.default)(2)(theme=>Object.entries(theme.code||{}).reduce((acc,[key,val])=>({...acc,[`* .${key}`]:val}),{})),copyToClipboard=createCopyToClipboardFunction();function createCopyToClipboardFunction(){return navigator?.clipboard?text=>navigator.clipboard.writeText(text):async text=>{let tmp=document2.createElement("TEXTAREA"),focus=document2.activeElement;tmp.value=text,document2.body.appendChild(tmp),tmp.select(),document2.execCommand("copy"),document2.body.removeChild(tmp),focus.focus()}}var Wrapper=newStyled.div(({theme})=>({position:"relative",overflow:"hidden",color:theme.color.defaultText}),({theme,bordered})=>bordered?{border:`1px solid ${theme.appBorderColor}`,borderRadius:theme.borderRadius,background:theme.background.content}:{},({showLineNumbers})=>showLineNumbers?{".react-syntax-highlighter-line-number::before":{content:"attr(data-line-number)"}}:{}),UnstyledScroller=({children,className})=>import_react.default.createElement(ScrollArea,{horizontal:!0,vertical:!0,className},children),Scroller=newStyled(UnstyledScroller)({position:"relative"},({theme})=>themedSyntax(theme)),Pre=newStyled.pre(({theme,padded})=>({display:"flex",justifyContent:"flex-start",margin:0,padding:padded?theme.layoutMargin:0})),Code=newStyled.div(({theme})=>({flex:1,paddingLeft:2,paddingRight:theme.layoutMargin,opacity:1})),processLineNumber=row=>{let children=[...row.children],lineNumberNode=children[0],lineNumber=lineNumberNode.children[0].value,processedLineNumberNode={...lineNumberNode,children:[],properties:{...lineNumberNode.properties,"data-line-number":lineNumber,style:{...lineNumberNode.properties.style,userSelect:"auto"}}};return children[0]=processedLineNumberNode,{...row,children}},defaultRenderer2=({rows,stylesheet,useInlineStyles})=>rows.map((node,i)=>createElement({node:processLineNumber(node),stylesheet,useInlineStyles,key:`code-segement${i}`})),wrapRenderer=(renderer,showLineNumbers)=>showLineNumbers?renderer?({rows,...rest})=>renderer({rows:rows.map(row=>processLineNumber(row)),...rest}):defaultRenderer2:renderer,SyntaxHighlighter2=({children,language="jsx",copyable=!1,bordered=!1,padded=!1,format=!0,formatter=null,className=null,showLineNumbers=!1,...rest})=>{if(typeof children!="string"||!children.trim())return null;let highlightableCode=formatter?formatter(format,children):children.trim(),[copied,setCopied]=(0,import_react.useState)(!1),onClick=(0,import_react.useCallback)(e=>{e.preventDefault(),copyToClipboard(highlightableCode).then(()=>{setCopied(!0),globalWindow.setTimeout(()=>setCopied(!1),1500)}).catch(logger.error)},[highlightableCode]),renderer=wrapRenderer(rest.renderer,showLineNumbers);return import_react.default.createElement(Wrapper,{bordered,padded,showLineNumbers,className},import_react.default.createElement(Scroller,null,import_react.default.createElement(prism_light_default,{padded:padded||bordered,language,showLineNumbers,showInlineLineNumbers:showLineNumbers,useInlineStyles:!1,PreTag:Pre,CodeTag:Code,lineNumberContainerStyle:{},...rest,renderer},highlightableCode)),copyable?import_react.default.createElement(ActionBar,{actionItems:[{title:copied?"Copied":"Copy",onClick}]}):null)};SyntaxHighlighter2.registerLanguage=(...args)=>prism_light_default.registerLanguage(...args);var syntaxhighlighter_default=SyntaxHighlighter2;export{ActionBar,ScrollArea,createCopyToClipboardFunction,SyntaxHighlighter2,syntaxhighlighter_default}; diff --git a/sb-manager/chunk-INSKDKQB.js b/sb-manager/chunk-INSKDKQB.js deleted file mode 100644 index b21c3d554..000000000 --- a/sb-manager/chunk-INSKDKQB.js +++ /dev/null @@ -1,348 +0,0 @@ -import{__commonJS,__export,__toESM,require_memoizerific}from"./chunk-ZEU7PDD3.js";var require_object_assign=__commonJS({"../../node_modules/object-assign/index.js"(exports,module){"use strict";var getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty3=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;function toObject(val){if(val==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(val)}function shouldUseNative(){try{if(!Object.assign)return!1;var test1=new String("abc");if(test1[5]="de",Object.getOwnPropertyNames(test1)[0]==="5")return!1;for(var test2={},i=0;i<10;i++)test2["_"+String.fromCharCode(i)]=i;var order2=Object.getOwnPropertyNames(test2).map(function(n){return test2[n]});if(order2.join("")!=="0123456789")return!1;var test3={};return"abcdefghijklmnopqrst".split("").forEach(function(letter){test3[letter]=letter}),Object.keys(Object.assign({},test3)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}module.exports=shouldUseNative()?Object.assign:function(target,source){for(var from2,to=toObject(target),symbols,s=1;s1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];printWarning("warn",format2,args)}}function error(format2){{for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];printWarning("error",format2,args)}}function printWarning(level,format2,args){{var hasExistingStack=args.length>0&&typeof args[args.length-1]=="string"&&args[args.length-1].indexOf(` - in`)===0;if(!hasExistingStack){var ReactDebugCurrentFrame2=ReactSharedInternals.ReactDebugCurrentFrame,stack=ReactDebugCurrentFrame2.getStackAddendum();stack!==""&&(format2+="%s",args=args.concat([stack]))}var argsWithFormat=args.map(function(item){return""+item});argsWithFormat.unshift("Warning: "+format2),Function.prototype.apply.call(console[level],console,argsWithFormat);try{var argIndex=0,message="Warning: "+format2.replace(/%s/g,function(){return args[argIndex++]});throw new Error(message)}catch{}}}var didWarnStateUpdateForUnmountedComponent={};function warnNoop(publicInstance,callerName){{var _constructor=publicInstance.constructor,componentName=_constructor&&(_constructor.displayName||_constructor.name)||"ReactClass",warningKey=componentName+"."+callerName;if(didWarnStateUpdateForUnmountedComponent[warningKey])return;error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",callerName,componentName),didWarnStateUpdateForUnmountedComponent[warningKey]=!0}}var ReactNoopUpdateQueue={isMounted:function(publicInstance){return!1},enqueueForceUpdate:function(publicInstance,callback,callerName){warnNoop(publicInstance,"forceUpdate")},enqueueReplaceState:function(publicInstance,completeState,callback,callerName){warnNoop(publicInstance,"replaceState")},enqueueSetState:function(publicInstance,partialState,callback,callerName){warnNoop(publicInstance,"setState")}},emptyObject={};Object.freeze(emptyObject);function Component(props,context,updater){this.props=props,this.context=context,this.refs=emptyObject,this.updater=updater||ReactNoopUpdateQueue}Component.prototype.isReactComponent={},Component.prototype.setState=function(partialState,callback){if(!(typeof partialState=="object"||typeof partialState=="function"||partialState==null))throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,partialState,callback,"setState")},Component.prototype.forceUpdate=function(callback){this.updater.enqueueForceUpdate(this,callback,"forceUpdate")};{var deprecatedAPIs={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},defineDeprecationWarning=function(methodName,info){Object.defineProperty(Component.prototype,methodName,{get:function(){warn("%s(...) is deprecated in plain JavaScript React classes. %s",info[0],info[1])}})};for(var fnName in deprecatedAPIs)deprecatedAPIs.hasOwnProperty(fnName)&&defineDeprecationWarning(fnName,deprecatedAPIs[fnName])}function ComponentDummy(){}ComponentDummy.prototype=Component.prototype;function PureComponent(props,context,updater){this.props=props,this.context=context,this.refs=emptyObject,this.updater=updater||ReactNoopUpdateQueue}var pureComponentPrototype=PureComponent.prototype=new ComponentDummy;pureComponentPrototype.constructor=PureComponent,_assign(pureComponentPrototype,Component.prototype),pureComponentPrototype.isPureReactComponent=!0;function createRef(){var refObject={current:null};return Object.seal(refObject),refObject}var hasOwnProperty3=Object.prototype.hasOwnProperty,RESERVED_PROPS={key:!0,ref:!0,__self:!0,__source:!0},specialPropKeyWarningShown,specialPropRefWarningShown,didWarnAboutStringRefs;didWarnAboutStringRefs={};function hasValidRef(config){if(hasOwnProperty3.call(config,"ref")){var getter=Object.getOwnPropertyDescriptor(config,"ref").get;if(getter&&getter.isReactWarning)return!1}return config.ref!==void 0}function hasValidKey(config){if(hasOwnProperty3.call(config,"key")){var getter=Object.getOwnPropertyDescriptor(config,"key").get;if(getter&&getter.isReactWarning)return!1}return config.key!==void 0}function defineKeyPropWarningGetter(props,displayName){var warnAboutAccessingKey=function(){specialPropKeyWarningShown||(specialPropKeyWarningShown=!0,error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",displayName))};warnAboutAccessingKey.isReactWarning=!0,Object.defineProperty(props,"key",{get:warnAboutAccessingKey,configurable:!0})}function defineRefPropWarningGetter(props,displayName){var warnAboutAccessingRef=function(){specialPropRefWarningShown||(specialPropRefWarningShown=!0,error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",displayName))};warnAboutAccessingRef.isReactWarning=!0,Object.defineProperty(props,"ref",{get:warnAboutAccessingRef,configurable:!0})}function warnIfStringRefCannotBeAutoConverted(config){if(typeof config.ref=="string"&&ReactCurrentOwner.current&&config.__self&&ReactCurrentOwner.current.stateNode!==config.__self){var componentName=getComponentName(ReactCurrentOwner.current.type);didWarnAboutStringRefs[componentName]||(error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',getComponentName(ReactCurrentOwner.current.type),config.ref),didWarnAboutStringRefs[componentName]=!0)}}var ReactElement=function(type,key,ref,self2,source,owner,props){var element={$$typeof:REACT_ELEMENT_TYPE,type,key,ref,props,_owner:owner};return element._store={},Object.defineProperty(element._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(element,"_self",{configurable:!1,enumerable:!1,writable:!1,value:self2}),Object.defineProperty(element,"_source",{configurable:!1,enumerable:!1,writable:!1,value:source}),Object.freeze&&(Object.freeze(element.props),Object.freeze(element)),element};function createElement2(type,config,children){var propName,props={},key=null,ref=null,self2=null,source=null;if(config!=null){hasValidRef(config)&&(ref=config.ref,warnIfStringRefCannotBeAutoConverted(config)),hasValidKey(config)&&(key=""+config.key),self2=config.__self===void 0?null:config.__self,source=config.__source===void 0?null:config.__source;for(propName in config)hasOwnProperty3.call(config,propName)&&!RESERVED_PROPS.hasOwnProperty(propName)&&(props[propName]=config[propName])}var childrenLength=arguments.length-2;if(childrenLength===1)props.children=children;else if(childrenLength>1){for(var childArray=Array(childrenLength),i=0;i1){for(var childArray=Array(childrenLength),i=0;i is not supported and will be removed in a future major release. Did you mean to render instead?")),context.Provider},set:function(_Provider){context.Provider=_Provider}},_currentValue:{get:function(){return context._currentValue},set:function(_currentValue){context._currentValue=_currentValue}},_currentValue2:{get:function(){return context._currentValue2},set:function(_currentValue2){context._currentValue2=_currentValue2}},_threadCount:{get:function(){return context._threadCount},set:function(_threadCount){context._threadCount=_threadCount}},Consumer:{get:function(){return hasWarnedAboutUsingNestedContextConsumers||(hasWarnedAboutUsingNestedContextConsumers=!0,error("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?")),context.Consumer}}}),context.Consumer=Consumer}return context._currentRenderer=null,context._currentRenderer2=null,context}function lazy(ctor){var lazyType={$$typeof:REACT_LAZY_TYPE,_ctor:ctor,_status:-1,_result:null};{var defaultProps,propTypes;Object.defineProperties(lazyType,{defaultProps:{configurable:!0,get:function(){return defaultProps},set:function(newDefaultProps){error("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),defaultProps=newDefaultProps,Object.defineProperty(lazyType,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return propTypes},set:function(newPropTypes){error("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),propTypes=newPropTypes,Object.defineProperty(lazyType,"propTypes",{enumerable:!0})}}})}return lazyType}function forwardRef3(render){return render!=null&&render.$$typeof===REACT_MEMO_TYPE?error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof render!="function"?error("forwardRef requires a render function but was given %s.",render===null?"null":typeof render):render.length!==0&&render.length!==2&&error("forwardRef render functions accept exactly two parameters: props and ref. %s",render.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),render!=null&&(render.defaultProps!=null||render.propTypes!=null)&&error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:REACT_FORWARD_REF_TYPE,render}}function isValidElementType(type){return typeof type=="string"||typeof type=="function"||type===REACT_FRAGMENT_TYPE||type===REACT_CONCURRENT_MODE_TYPE||type===REACT_PROFILER_TYPE||type===REACT_STRICT_MODE_TYPE||type===REACT_SUSPENSE_TYPE||type===REACT_SUSPENSE_LIST_TYPE||typeof type=="object"&&type!==null&&(type.$$typeof===REACT_LAZY_TYPE||type.$$typeof===REACT_MEMO_TYPE||type.$$typeof===REACT_PROVIDER_TYPE||type.$$typeof===REACT_CONTEXT_TYPE||type.$$typeof===REACT_FORWARD_REF_TYPE||type.$$typeof===REACT_FUNDAMENTAL_TYPE||type.$$typeof===REACT_RESPONDER_TYPE||type.$$typeof===REACT_SCOPE_TYPE||type.$$typeof===REACT_BLOCK_TYPE)}function memo(type,compare){return isValidElementType(type)||error("memo: The first argument must be a component. Instead received: %s",type===null?"null":typeof type),{$$typeof:REACT_MEMO_TYPE,type,compare:compare===void 0?null:compare}}function resolveDispatcher(){var dispatcher=ReactCurrentDispatcher.current;if(dispatcher===null)throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: -1. You might have mismatching versions of React and the renderer (such as React DOM) -2. You might be breaking the Rules of Hooks -3. You might have more than one copy of React in the same app -See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.`);return dispatcher}function useContext3(Context,unstable_observedBits){var dispatcher=resolveDispatcher();if(unstable_observedBits!==void 0&&error("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",unstable_observedBits,typeof unstable_observedBits=="number"&&Array.isArray(arguments[2])?` - -Did you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks`:""),Context._context!==void 0){var realContext=Context._context;realContext.Consumer===Context?error("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):realContext.Provider===Context&&error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return dispatcher.useContext(Context,unstable_observedBits)}function useState(initialState){var dispatcher=resolveDispatcher();return dispatcher.useState(initialState)}function useReducer(reducer,initialArg,init){var dispatcher=resolveDispatcher();return dispatcher.useReducer(reducer,initialArg,init)}function useRef2(initialValue){var dispatcher=resolveDispatcher();return dispatcher.useRef(initialValue)}function useEffect(create3,deps){var dispatcher=resolveDispatcher();return dispatcher.useEffect(create3,deps)}function useLayoutEffect2(create3,deps){var dispatcher=resolveDispatcher();return dispatcher.useLayoutEffect(create3,deps)}function useCallback(callback,deps){var dispatcher=resolveDispatcher();return dispatcher.useCallback(callback,deps)}function useMemo(create3,deps){var dispatcher=resolveDispatcher();return dispatcher.useMemo(create3,deps)}function useImperativeHandle(ref,create3,deps){var dispatcher=resolveDispatcher();return dispatcher.useImperativeHandle(ref,create3,deps)}function useDebugValue(value,formatterFn){{var dispatcher=resolveDispatcher();return dispatcher.useDebugValue(value,formatterFn)}}var propTypesMisspellWarningShown;propTypesMisspellWarningShown=!1;function getDeclarationErrorAddendum(){if(ReactCurrentOwner.current){var name=getComponentName(ReactCurrentOwner.current.type);if(name)return` - -Check the render method of \``+name+"`."}return""}function getSourceInfoErrorAddendum(source){if(source!==void 0){var fileName=source.fileName.replace(/^.*[\\\/]/,""),lineNumber=source.lineNumber;return` - -Check your code at `+fileName+":"+lineNumber+"."}return""}function getSourceInfoErrorAddendumForProps(elementProps){return elementProps!=null?getSourceInfoErrorAddendum(elementProps.__source):""}var ownerHasKeyUseWarning={};function getCurrentComponentErrorInfo(parentType){var info=getDeclarationErrorAddendum();if(!info){var parentName=typeof parentType=="string"?parentType:parentType.displayName||parentType.name;parentName&&(info=` - -Check the top-level render call using <`+parentName+">.")}return info}function validateExplicitKey(element,parentType){if(!(!element._store||element._store.validated||element.key!=null)){element._store.validated=!0;var currentComponentErrorInfo=getCurrentComponentErrorInfo(parentType);if(!ownerHasKeyUseWarning[currentComponentErrorInfo]){ownerHasKeyUseWarning[currentComponentErrorInfo]=!0;var childOwner="";element&&element._owner&&element._owner!==ReactCurrentOwner.current&&(childOwner=" It was passed a child from "+getComponentName(element._owner.type)+"."),setCurrentlyValidatingElement(element),error('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',currentComponentErrorInfo,childOwner),setCurrentlyValidatingElement(null)}}}function validateChildKeys(node2,parentType){if(typeof node2=="object"){if(Array.isArray(node2))for(var i=0;i",info=" Did you accidentally export a JSX literal instead of a component?"):typeString=typeof type,error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",typeString,info)}var element=createElement2.apply(this,arguments);if(element==null)return element;if(validType)for(var i=2;i"u"||typeof MessageChannel!="function"){var _callback=null,_timeoutID=null,_flushCallback=function(){if(_callback!==null)try{var currentTime=exports.unstable_now(),hasRemainingTime=!0;_callback(hasRemainingTime,currentTime),_callback=null}catch(e){throw setTimeout(_flushCallback,0),e}},initialTime=Date.now();exports.unstable_now=function(){return Date.now()-initialTime},requestHostCallback=function(cb){_callback!==null?setTimeout(requestHostCallback,0,cb):(_callback=cb,setTimeout(_flushCallback,0))},requestHostTimeout=function(cb,ms){_timeoutID=setTimeout(cb,ms)},cancelHostTimeout=function(){clearTimeout(_timeoutID)},shouldYieldToHost=function(){return!1},requestPaint=exports.unstable_forceFrameRate=function(){}}else{var performance2=window.performance,_Date=window.Date,_setTimeout=window.setTimeout,_clearTimeout=window.clearTimeout;if(typeof console<"u"){var requestAnimationFrame=window.requestAnimationFrame,cancelAnimationFrame=window.cancelAnimationFrame;typeof requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),typeof cancelAnimationFrame!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if(typeof performance2=="object"&&typeof performance2.now=="function")exports.unstable_now=function(){return performance2.now()};else{var _initialTime=_Date.now();exports.unstable_now=function(){return _Date.now()-_initialTime}}var isMessageLoopRunning=!1,scheduledHostCallback=null,taskTimeoutID=-1,yieldInterval=5,deadline=0;shouldYieldToHost=function(){return exports.unstable_now()>=deadline},requestPaint=function(){},exports.unstable_forceFrameRate=function(fps){if(fps<0||fps>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported");return}fps>0?yieldInterval=Math.floor(1e3/fps):yieldInterval=5};var performWorkUntilDeadline=function(){if(scheduledHostCallback!==null){var currentTime=exports.unstable_now();deadline=currentTime+yieldInterval;var hasTimeRemaining=!0;try{var hasMoreWork=scheduledHostCallback(hasTimeRemaining,currentTime);hasMoreWork?port.postMessage(null):(isMessageLoopRunning=!1,scheduledHostCallback=null)}catch(error){throw port.postMessage(null),error}}else isMessageLoopRunning=!1},channel=new MessageChannel,port=channel.port2;channel.port1.onmessage=performWorkUntilDeadline,requestHostCallback=function(callback){scheduledHostCallback=callback,isMessageLoopRunning||(isMessageLoopRunning=!0,port.postMessage(null))},requestHostTimeout=function(callback,ms){taskTimeoutID=_setTimeout(function(){callback(exports.unstable_now())},ms)},cancelHostTimeout=function(){_clearTimeout(taskTimeoutID),taskTimeoutID=-1}}function push(heap,node2){var index=heap.length;heap.push(node2),siftUp(heap,node2,index)}function peek2(heap){var first=heap[0];return first===void 0?null:first}function pop(heap){var first=heap[0];if(first!==void 0){var last=heap.pop();return last!==first&&(heap[0]=last,siftDown(heap,last,0)),first}else return null}function siftUp(heap,node2,i){for(var index=i;;){var parentIndex=index-1>>>1,parent=heap[parentIndex];if(parent!==void 0&&compare(parent,node2)>0)heap[parentIndex]=node2,heap[index]=parent,index=parentIndex;else return}}function siftDown(heap,node2,i){for(var index=i,length2=heap.length;indexeventLogSize){if(eventLogSize*=2,eventLogSize>MAX_EVENT_LOG_SIZE){console.error("Scheduler Profiling: Event log exceeded maximum size. Don't forget to call `stopLoggingProfilingEvents()`."),stopLoggingProfilingEvents();return}var newEventLog=new Int32Array(eventLogSize*4);newEventLog.set(eventLog),eventLogBuffer=newEventLog.buffer,eventLog=newEventLog}eventLog.set(entries,offset)}}function startLoggingProfilingEvents(){eventLogSize=INITIAL_EVENT_LOG_SIZE,eventLogBuffer=new ArrayBuffer(eventLogSize*4),eventLog=new Int32Array(eventLogBuffer),eventLogIndex=0}function stopLoggingProfilingEvents(){var buffer=eventLogBuffer;return eventLogSize=0,eventLogBuffer=null,eventLog=null,eventLogIndex=0,buffer}function markTaskStart(task,ms){profilingState[QUEUE_SIZE]++,eventLog!==null&&logEvent([TaskStartEvent,ms*1e3,task.id,task.priorityLevel])}function markTaskCompleted(task,ms){profilingState[PRIORITY]=NoPriority,profilingState[CURRENT_TASK_ID]=0,profilingState[QUEUE_SIZE]--,eventLog!==null&&logEvent([TaskCompleteEvent,ms*1e3,task.id])}function markTaskCanceled(task,ms){profilingState[QUEUE_SIZE]--,eventLog!==null&&logEvent([TaskCancelEvent,ms*1e3,task.id])}function markTaskErrored(task,ms){profilingState[PRIORITY]=NoPriority,profilingState[CURRENT_TASK_ID]=0,profilingState[QUEUE_SIZE]--,eventLog!==null&&logEvent([TaskErrorEvent,ms*1e3,task.id])}function markTaskRun(task,ms){runIdCounter++,profilingState[PRIORITY]=task.priorityLevel,profilingState[CURRENT_TASK_ID]=task.id,profilingState[CURRENT_RUN_ID]=runIdCounter,eventLog!==null&&logEvent([TaskRunEvent,ms*1e3,task.id,runIdCounter])}function markTaskYield(task,ms){profilingState[PRIORITY]=NoPriority,profilingState[CURRENT_TASK_ID]=0,profilingState[CURRENT_RUN_ID]=0,eventLog!==null&&logEvent([TaskYieldEvent,ms*1e3,task.id,runIdCounter])}function markSchedulerSuspended(ms){mainThreadIdCounter++,eventLog!==null&&logEvent([SchedulerSuspendEvent,ms*1e3,mainThreadIdCounter])}function markSchedulerUnsuspended(ms){eventLog!==null&&logEvent([SchedulerResumeEvent,ms*1e3,mainThreadIdCounter])}var maxSigned31BitInt=1073741823,IMMEDIATE_PRIORITY_TIMEOUT=-1,USER_BLOCKING_PRIORITY=250,NORMAL_PRIORITY_TIMEOUT=5e3,LOW_PRIORITY_TIMEOUT=1e4,IDLE_PRIORITY=maxSigned31BitInt,taskQueue=[],timerQueue=[],taskIdCounter=1,currentTask=null,currentPriorityLevel=NormalPriority,isPerformingWork=!1,isHostCallbackScheduled=!1,isHostTimeoutScheduled=!1;function advanceTimers(currentTime){for(var timer=peek2(timerQueue);timer!==null;){if(timer.callback===null)pop(timerQueue);else if(timer.startTime<=currentTime)pop(timerQueue),timer.sortIndex=timer.expirationTime,push(taskQueue,timer),markTaskStart(timer,currentTime),timer.isQueued=!0;else return;timer=peek2(timerQueue)}}function handleTimeout(currentTime){if(isHostTimeoutScheduled=!1,advanceTimers(currentTime),!isHostCallbackScheduled)if(peek2(taskQueue)!==null)isHostCallbackScheduled=!0,requestHostCallback(flushWork);else{var firstTimer=peek2(timerQueue);firstTimer!==null&&requestHostTimeout(handleTimeout,firstTimer.startTime-currentTime)}}function flushWork(hasTimeRemaining,initialTime2){markSchedulerUnsuspended(initialTime2),isHostCallbackScheduled=!1,isHostTimeoutScheduled&&(isHostTimeoutScheduled=!1,cancelHostTimeout()),isPerformingWork=!0;var previousPriorityLevel=currentPriorityLevel;try{if(enableProfiling)try{return workLoop(hasTimeRemaining,initialTime2)}catch(error){if(currentTask!==null){var currentTime=exports.unstable_now();markTaskErrored(currentTask,currentTime),currentTask.isQueued=!1}throw error}else return workLoop(hasTimeRemaining,initialTime2)}finally{currentTask=null,currentPriorityLevel=previousPriorityLevel,isPerformingWork=!1;{var _currentTime=exports.unstable_now();markSchedulerSuspended(_currentTime)}}}function workLoop(hasTimeRemaining,initialTime2){var currentTime=initialTime2;for(advanceTimers(currentTime),currentTask=peek2(taskQueue);currentTask!==null&&!enableSchedulerDebugging&&!(currentTask.expirationTime>currentTime&&(!hasTimeRemaining||shouldYieldToHost()));){var callback=currentTask.callback;if(callback!==null){currentTask.callback=null,currentPriorityLevel=currentTask.priorityLevel;var didUserCallbackTimeout=currentTask.expirationTime<=currentTime;markTaskRun(currentTask,currentTime);var continuationCallback=callback(didUserCallbackTimeout);currentTime=exports.unstable_now(),typeof continuationCallback=="function"?(currentTask.callback=continuationCallback,markTaskYield(currentTask,currentTime)):(markTaskCompleted(currentTask,currentTime),currentTask.isQueued=!1,currentTask===peek2(taskQueue)&&pop(taskQueue)),advanceTimers(currentTime)}else pop(taskQueue);currentTask=peek2(taskQueue)}if(currentTask!==null)return!0;var firstTimer=peek2(timerQueue);return firstTimer!==null&&requestHostTimeout(handleTimeout,firstTimer.startTime-currentTime),!1}function unstable_runWithPriority(priorityLevel,eventHandler){switch(priorityLevel){case ImmediatePriority:case UserBlockingPriority:case NormalPriority:case LowPriority:case IdlePriority:break;default:priorityLevel=NormalPriority}var previousPriorityLevel=currentPriorityLevel;currentPriorityLevel=priorityLevel;try{return eventHandler()}finally{currentPriorityLevel=previousPriorityLevel}}function unstable_next(eventHandler){var priorityLevel;switch(currentPriorityLevel){case ImmediatePriority:case UserBlockingPriority:case NormalPriority:priorityLevel=NormalPriority;break;default:priorityLevel=currentPriorityLevel;break}var previousPriorityLevel=currentPriorityLevel;currentPriorityLevel=priorityLevel;try{return eventHandler()}finally{currentPriorityLevel=previousPriorityLevel}}function unstable_wrapCallback(callback){var parentPriorityLevel=currentPriorityLevel;return function(){var previousPriorityLevel=currentPriorityLevel;currentPriorityLevel=parentPriorityLevel;try{return callback.apply(this,arguments)}finally{currentPriorityLevel=previousPriorityLevel}}}function timeoutForPriorityLevel(priorityLevel){switch(priorityLevel){case ImmediatePriority:return IMMEDIATE_PRIORITY_TIMEOUT;case UserBlockingPriority:return USER_BLOCKING_PRIORITY;case IdlePriority:return IDLE_PRIORITY;case LowPriority:return LOW_PRIORITY_TIMEOUT;case NormalPriority:default:return NORMAL_PRIORITY_TIMEOUT}}function unstable_scheduleCallback(priorityLevel,callback,options){var currentTime=exports.unstable_now(),startTime,timeout;if(typeof options=="object"&&options!==null){var delay=options.delay;typeof delay=="number"&&delay>0?startTime=currentTime+delay:startTime=currentTime,timeout=typeof options.timeout=="number"?options.timeout:timeoutForPriorityLevel(priorityLevel)}else timeout=timeoutForPriorityLevel(priorityLevel),startTime=currentTime;var expirationTime=startTime+timeout,newTask={id:taskIdCounter++,callback,priorityLevel,startTime,expirationTime,sortIndex:-1};return newTask.isQueued=!1,startTime>currentTime?(newTask.sortIndex=startTime,push(timerQueue,newTask),peek2(taskQueue)===null&&newTask===peek2(timerQueue)&&(isHostTimeoutScheduled?cancelHostTimeout():isHostTimeoutScheduled=!0,requestHostTimeout(handleTimeout,startTime-currentTime))):(newTask.sortIndex=expirationTime,push(taskQueue,newTask),markTaskStart(newTask,currentTime),newTask.isQueued=!0,!isHostCallbackScheduled&&!isPerformingWork&&(isHostCallbackScheduled=!0,requestHostCallback(flushWork))),newTask}function unstable_pauseExecution(){}function unstable_continueExecution(){!isHostCallbackScheduled&&!isPerformingWork&&(isHostCallbackScheduled=!0,requestHostCallback(flushWork))}function unstable_getFirstCallbackNode(){return peek2(taskQueue)}function unstable_cancelCallback(task){if(task.isQueued){var currentTime=exports.unstable_now();markTaskCanceled(task,currentTime),task.isQueued=!1}task.callback=null}function unstable_getCurrentPriorityLevel(){return currentPriorityLevel}function unstable_shouldYield(){var currentTime=exports.unstable_now();advanceTimers(currentTime);var firstTask=peek2(taskQueue);return firstTask!==currentTask&¤tTask!==null&&firstTask!==null&&firstTask.callback!==null&&firstTask.startTime<=currentTime&&firstTask.expirationTime3&&arguments[3]!==void 0?arguments[3]:DEFAULT_THREAD_ID,interaction={__count:1,id:interactionIDCounter++,name,timestamp},prevInteractions=exports.__interactionsRef.current,interactions=new Set(prevInteractions);interactions.add(interaction),exports.__interactionsRef.current=interactions;var subscriber=exports.__subscriberRef.current,returnValue;try{subscriber!==null&&subscriber.onInteractionTraced(interaction)}finally{try{subscriber!==null&&subscriber.onWorkStarted(interactions,threadID)}finally{try{returnValue=callback()}finally{exports.__interactionsRef.current=prevInteractions;try{subscriber!==null&&subscriber.onWorkStopped(interactions,threadID)}finally{interaction.__count--,subscriber!==null&&interaction.__count===0&&subscriber.onInteractionScheduledWorkCompleted(interaction)}}}}return returnValue}function unstable_wrap(callback){var threadID=arguments.length>1&&arguments[1]!==void 0?arguments[1]:DEFAULT_THREAD_ID,wrappedInteractions=exports.__interactionsRef.current,subscriber=exports.__subscriberRef.current;subscriber!==null&&subscriber.onWorkScheduled(wrappedInteractions,threadID),wrappedInteractions.forEach(function(interaction){interaction.__count++});var hasRun=!1;function wrapped(){var prevInteractions=exports.__interactionsRef.current;exports.__interactionsRef.current=wrappedInteractions,subscriber=exports.__subscriberRef.current;try{var returnValue;try{subscriber!==null&&subscriber.onWorkStarted(wrappedInteractions,threadID)}finally{try{returnValue=callback.apply(void 0,arguments)}finally{exports.__interactionsRef.current=prevInteractions,subscriber!==null&&subscriber.onWorkStopped(wrappedInteractions,threadID)}}return returnValue}finally{hasRun||(hasRun=!0,wrappedInteractions.forEach(function(interaction){interaction.__count--,subscriber!==null&&interaction.__count===0&&subscriber.onInteractionScheduledWorkCompleted(interaction)}))}}return wrapped.cancel=function(){subscriber=exports.__subscriberRef.current;try{subscriber!==null&&subscriber.onWorkCanceled(wrappedInteractions,threadID)}finally{wrappedInteractions.forEach(function(interaction){interaction.__count--,subscriber&&interaction.__count===0&&subscriber.onInteractionScheduledWorkCompleted(interaction)})}},wrapped}var subscribers=null;subscribers=new Set;function unstable_subscribe(subscriber){subscribers.add(subscriber),subscribers.size===1&&(exports.__subscriberRef.current={onInteractionScheduledWorkCompleted,onInteractionTraced,onWorkCanceled,onWorkScheduled,onWorkStarted,onWorkStopped})}function unstable_unsubscribe(subscriber){subscribers.delete(subscriber),subscribers.size===0&&(exports.__subscriberRef.current=null)}function onInteractionTraced(interaction){var didCatchError=!1,caughtError=null;if(subscribers.forEach(function(subscriber){try{subscriber.onInteractionTraced(interaction)}catch(error){didCatchError||(didCatchError=!0,caughtError=error)}}),didCatchError)throw caughtError}function onInteractionScheduledWorkCompleted(interaction){var didCatchError=!1,caughtError=null;if(subscribers.forEach(function(subscriber){try{subscriber.onInteractionScheduledWorkCompleted(interaction)}catch(error){didCatchError||(didCatchError=!0,caughtError=error)}}),didCatchError)throw caughtError}function onWorkScheduled(interactions,threadID){var didCatchError=!1,caughtError=null;if(subscribers.forEach(function(subscriber){try{subscriber.onWorkScheduled(interactions,threadID)}catch(error){didCatchError||(didCatchError=!0,caughtError=error)}}),didCatchError)throw caughtError}function onWorkStarted(interactions,threadID){var didCatchError=!1,caughtError=null;if(subscribers.forEach(function(subscriber){try{subscriber.onWorkStarted(interactions,threadID)}catch(error){didCatchError||(didCatchError=!0,caughtError=error)}}),didCatchError)throw caughtError}function onWorkStopped(interactions,threadID){var didCatchError=!1,caughtError=null;if(subscribers.forEach(function(subscriber){try{subscriber.onWorkStopped(interactions,threadID)}catch(error){didCatchError||(didCatchError=!0,caughtError=error)}}),didCatchError)throw caughtError}function onWorkCanceled(interactions,threadID){var didCatchError=!1,caughtError=null;if(subscribers.forEach(function(subscriber){try{subscriber.onWorkCanceled(interactions,threadID)}catch(error){didCatchError||(didCatchError=!0,caughtError=error)}}),didCatchError)throw caughtError}exports.unstable_clear=unstable_clear,exports.unstable_getCurrent=unstable_getCurrent,exports.unstable_getThreadID=unstable_getThreadID,exports.unstable_subscribe=unstable_subscribe,exports.unstable_trace=unstable_trace,exports.unstable_unsubscribe=unstable_unsubscribe,exports.unstable_wrap=unstable_wrap})()}});var require_tracing=__commonJS({"../../node_modules/scheduler/tracing.js"(exports,module){"use strict";module.exports=require_scheduler_tracing_development()}});var require_react_dom_development=__commonJS({"../../node_modules/react-dom/cjs/react-dom.development.js"(exports){"use strict";(function(){"use strict";var React3=require_react(),_assign=require_object_assign(),Scheduler=require_scheduler(),checkPropTypes=require_checkPropTypes(),tracing=require_tracing(),ReactSharedInternals=React3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;ReactSharedInternals.hasOwnProperty("ReactCurrentDispatcher")||(ReactSharedInternals.ReactCurrentDispatcher={current:null}),ReactSharedInternals.hasOwnProperty("ReactCurrentBatchConfig")||(ReactSharedInternals.ReactCurrentBatchConfig={suspense:null});function warn(format2){{for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++)args[_key-1]=arguments[_key];printWarning("warn",format2,args)}}function error(format2){{for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];printWarning("error",format2,args)}}function printWarning(level,format2,args){{var hasExistingStack=args.length>0&&typeof args[args.length-1]=="string"&&args[args.length-1].indexOf(` - in`)===0;if(!hasExistingStack){var ReactDebugCurrentFrame2=ReactSharedInternals.ReactDebugCurrentFrame,stack=ReactDebugCurrentFrame2.getStackAddendum();stack!==""&&(format2+="%s",args=args.concat([stack]))}var argsWithFormat=args.map(function(item){return""+item});argsWithFormat.unshift("Warning: "+format2),Function.prototype.apply.call(console[level],console,argsWithFormat);try{var argIndex=0,message="Warning: "+format2.replace(/%s/g,function(){return args[argIndex++]});throw new Error(message)}catch{}}}if(!React3)throw Error("ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.");var invokeGuardedCallbackImpl=function(name,func,context,a,b,c,d,e,f){var funcArgs=Array.prototype.slice.call(arguments,3);try{func.apply(context,funcArgs)}catch(error2){this.onError(error2)}};if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var fakeNode=document.createElement("react"),invokeGuardedCallbackDev=function(name,func,context,a,b,c,d,e,f){if(!(typeof document<"u"))throw Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var evt=document.createEvent("Event"),didError=!0,windowEvent=window.event,windowEventDescriptor=Object.getOwnPropertyDescriptor(window,"event"),funcArgs=Array.prototype.slice.call(arguments,3);function callCallback2(){fakeNode.removeEventListener(evtType,callCallback2,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=windowEvent),func.apply(context,funcArgs),didError=!1}var error2,didSetError=!1,isCrossOriginError=!1;function handleWindowError(event){if(error2=event.error,didSetError=!0,error2===null&&event.colno===0&&event.lineno===0&&(isCrossOriginError=!0),event.defaultPrevented&&error2!=null&&typeof error2=="object")try{error2._suppressLogging=!0}catch{}}var evtType="react-"+(name||"invokeguardedcallback");window.addEventListener("error",handleWindowError),fakeNode.addEventListener(evtType,callCallback2,!1),evt.initEvent(evtType,!1,!1),fakeNode.dispatchEvent(evt),windowEventDescriptor&&Object.defineProperty(window,"event",windowEventDescriptor),didError&&(didSetError?isCrossOriginError&&(error2=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://fb.me/react-crossorigin-error for more information.")):error2=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(error2)),window.removeEventListener("error",handleWindowError)};invokeGuardedCallbackImpl=invokeGuardedCallbackDev}var invokeGuardedCallbackImpl$1=invokeGuardedCallbackImpl,hasError=!1,caughtError=null,hasRethrowError=!1,rethrowError=null,reporter={onError:function(error2){hasError=!0,caughtError=error2}};function invokeGuardedCallback(name,func,context,a,b,c,d,e,f){hasError=!1,caughtError=null,invokeGuardedCallbackImpl$1.apply(reporter,arguments)}function invokeGuardedCallbackAndCatchFirstError(name,func,context,a,b,c,d,e,f){if(invokeGuardedCallback.apply(this,arguments),hasError){var error2=clearCaughtError();hasRethrowError||(hasRethrowError=!0,rethrowError=error2)}}function rethrowCaughtError(){if(hasRethrowError){var error2=rethrowError;throw hasRethrowError=!1,rethrowError=null,error2}}function hasCaughtError(){return hasError}function clearCaughtError(){if(hasError){var error2=caughtError;return hasError=!1,caughtError=null,error2}else throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}var getFiberCurrentPropsFromNode=null,getInstanceFromNode=null,getNodeFromInstance=null;function setComponentTree(getFiberCurrentPropsFromNodeImpl,getInstanceFromNodeImpl,getNodeFromInstanceImpl){getFiberCurrentPropsFromNode=getFiberCurrentPropsFromNodeImpl,getInstanceFromNode=getInstanceFromNodeImpl,getNodeFromInstance=getNodeFromInstanceImpl,(!getNodeFromInstance||!getInstanceFromNode)&&error("EventPluginUtils.setComponentTree(...): Injected module is missing getNodeFromInstance or getInstanceFromNode.")}var validateEventDispatches;validateEventDispatches=function(event){var dispatchListeners=event._dispatchListeners,dispatchInstances=event._dispatchInstances,listenersIsArr=Array.isArray(dispatchListeners),listenersLen=listenersIsArr?dispatchListeners.length:dispatchListeners?1:0,instancesIsArr=Array.isArray(dispatchInstances),instancesLen=instancesIsArr?dispatchInstances.length:dispatchInstances?1:0;(instancesIsArr!==listenersIsArr||instancesLen!==listenersLen)&&error("EventPluginUtils: Invalid `event`.")};function executeDispatch(event,listener,inst){var type=event.type||"unknown-event";event.currentTarget=getNodeFromInstance(inst),invokeGuardedCallbackAndCatchFirstError(type,listener,void 0,event),event.currentTarget=null}function executeDispatchesInOrder(event){var dispatchListeners=event._dispatchListeners,dispatchInstances=event._dispatchInstances;if(validateEventDispatches(event),Array.isArray(dispatchListeners))for(var i=0;i-1))throw Error("EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `"+pluginName+"`.");if(!plugins[pluginIndex]){if(!pluginModule.extractEvents)throw Error("EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `"+pluginName+"` does not.");plugins[pluginIndex]=pluginModule;var publishedEvents=pluginModule.eventTypes;for(var eventName in publishedEvents)if(!publishEventForPlugin(publishedEvents[eventName],pluginModule,eventName))throw Error("EventPluginRegistry: Failed to publish event `"+eventName+"` for plugin `"+pluginName+"`.")}}}function publishEventForPlugin(dispatchConfig,pluginModule,eventName){if(eventNameDispatchConfigs.hasOwnProperty(eventName))throw Error("EventPluginRegistry: More than one plugin attempted to publish the same event name, `"+eventName+"`.");eventNameDispatchConfigs[eventName]=dispatchConfig;var phasedRegistrationNames=dispatchConfig.phasedRegistrationNames;if(phasedRegistrationNames){for(var phaseName in phasedRegistrationNames)if(phasedRegistrationNames.hasOwnProperty(phaseName)){var phasedRegistrationName=phasedRegistrationNames[phaseName];publishRegistrationName(phasedRegistrationName,pluginModule,eventName)}return!0}else if(dispatchConfig.registrationName)return publishRegistrationName(dispatchConfig.registrationName,pluginModule,eventName),!0;return!1}function publishRegistrationName(registrationName,pluginModule,eventName){if(registrationNameModules[registrationName])throw Error("EventPluginRegistry: More than one plugin attempted to publish the same registration name, `"+registrationName+"`.");registrationNameModules[registrationName]=pluginModule,registrationNameDependencies[registrationName]=pluginModule.eventTypes[eventName].dependencies;{var lowerCasedName=registrationName.toLowerCase();possibleRegistrationNames[lowerCasedName]=registrationName,registrationName==="onDoubleClick"&&(possibleRegistrationNames.ondblclick=registrationName)}}var plugins=[],eventNameDispatchConfigs={},registrationNameModules={},registrationNameDependencies={},possibleRegistrationNames={};function injectEventPluginOrder(injectedEventPluginOrder){if(eventPluginOrder)throw Error("EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.");eventPluginOrder=Array.prototype.slice.call(injectedEventPluginOrder),recomputePluginOrdering()}function injectEventPluginsByName(injectedNamesToPlugins){var isOrderingDirty=!1;for(var pluginName in injectedNamesToPlugins)if(injectedNamesToPlugins.hasOwnProperty(pluginName)){var pluginModule=injectedNamesToPlugins[pluginName];if(!namesToPlugins.hasOwnProperty(pluginName)||namesToPlugins[pluginName]!==pluginModule){if(namesToPlugins[pluginName])throw Error("EventPluginRegistry: Cannot inject two different event plugins using the same name, `"+pluginName+"`.");namesToPlugins[pluginName]=pluginModule,isOrderingDirty=!0}}isOrderingDirty&&recomputePluginOrdering()}var canUseDOM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",PLUGIN_EVENT_SYSTEM=1,IS_REPLAYED=32,IS_FIRST_ANCESTOR=64,restoreImpl=null,restoreTarget=null,restoreQueue=null;function restoreStateOfTarget(target){var internalInstance=getInstanceFromNode(target);if(internalInstance){if(typeof restoreImpl!="function")throw Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var stateNode=internalInstance.stateNode;if(stateNode){var _props=getFiberCurrentPropsFromNode(stateNode);restoreImpl(internalInstance.stateNode,internalInstance.type,_props)}}}function setRestoreImplementation(impl){restoreImpl=impl}function enqueueStateRestore(target){restoreTarget?restoreQueue?restoreQueue.push(target):restoreQueue=[target]:restoreTarget=target}function needsStateRestore(){return restoreTarget!==null||restoreQueue!==null}function restoreStateIfNeeded(){if(restoreTarget){var target=restoreTarget,queuedTargets=restoreQueue;if(restoreTarget=null,restoreQueue=null,restoreStateOfTarget(target),queuedTargets)for(var i=0;i2&&(name[0]==="o"||name[0]==="O")&&(name[1]==="n"||name[1]==="N")}function shouldRemoveAttributeWithWarning(name,value,propertyInfo,isCustomComponentTag){if(propertyInfo!==null&&propertyInfo.type===RESERVED)return!1;switch(typeof value){case"function":case"symbol":return!0;case"boolean":{if(isCustomComponentTag)return!1;if(propertyInfo!==null)return!propertyInfo.acceptsBooleans;var prefix2=name.toLowerCase().slice(0,5);return prefix2!=="data-"&&prefix2!=="aria-"}default:return!1}}function shouldRemoveAttribute(name,value,propertyInfo,isCustomComponentTag){if(value===null||typeof value>"u"||shouldRemoveAttributeWithWarning(name,value,propertyInfo,isCustomComponentTag))return!0;if(isCustomComponentTag)return!1;if(propertyInfo!==null)switch(propertyInfo.type){case BOOLEAN:return!value;case OVERLOADED_BOOLEAN:return value===!1;case NUMERIC:return isNaN(value);case POSITIVE_NUMERIC:return isNaN(value)||value<1}return!1}function getPropertyInfo(name){return properties.hasOwnProperty(name)?properties[name]:null}function PropertyInfoRecord(name,type,mustUseProperty,attributeName,attributeNamespace,sanitizeURL2){this.acceptsBooleans=type===BOOLEANISH_STRING||type===BOOLEAN||type===OVERLOADED_BOOLEAN,this.attributeName=attributeName,this.attributeNamespace=attributeNamespace,this.mustUseProperty=mustUseProperty,this.propertyName=name,this.type=type,this.sanitizeURL=sanitizeURL2}var properties={},reservedProps=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];reservedProps.forEach(function(name){properties[name]=new PropertyInfoRecord(name,RESERVED,!1,name,null,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(_ref){var name=_ref[0],attributeName=_ref[1];properties[name]=new PropertyInfoRecord(name,STRING,!1,attributeName,null,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,BOOLEANISH_STRING,!1,name.toLowerCase(),null,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,BOOLEANISH_STRING,!1,name,null,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,BOOLEAN,!1,name.toLowerCase(),null,!1)}),["checked","multiple","muted","selected"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,BOOLEAN,!0,name,null,!1)}),["capture","download"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,OVERLOADED_BOOLEAN,!1,name,null,!1)}),["cols","rows","size","span"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,POSITIVE_NUMERIC,!1,name,null,!1)}),["rowSpan","start"].forEach(function(name){properties[name]=new PropertyInfoRecord(name,NUMERIC,!1,name.toLowerCase(),null,!1)});var CAMELIZE=/[\-\:]([a-z])/g,capitalize=function(token2){return token2[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(attributeName){var name=attributeName.replace(CAMELIZE,capitalize);properties[name]=new PropertyInfoRecord(name,STRING,!1,attributeName,null,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(attributeName){var name=attributeName.replace(CAMELIZE,capitalize);properties[name]=new PropertyInfoRecord(name,STRING,!1,attributeName,"http://www.w3.org/1999/xlink",!1)}),["xml:base","xml:lang","xml:space"].forEach(function(attributeName){var name=attributeName.replace(CAMELIZE,capitalize);properties[name]=new PropertyInfoRecord(name,STRING,!1,attributeName,"http://www.w3.org/XML/1998/namespace",!1)}),["tabIndex","crossOrigin"].forEach(function(attributeName){properties[attributeName]=new PropertyInfoRecord(attributeName,STRING,!1,attributeName.toLowerCase(),null,!1)});var xlinkHref="xlinkHref";properties[xlinkHref]=new PropertyInfoRecord("xlinkHref",STRING,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach(function(attributeName){properties[attributeName]=new PropertyInfoRecord(attributeName,STRING,!1,attributeName.toLowerCase(),null,!0)});var ReactDebugCurrentFrame=null;ReactDebugCurrentFrame=ReactSharedInternals.ReactDebugCurrentFrame;var isJavaScriptProtocol=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,didWarn=!1;function sanitizeURL(url){!didWarn&&isJavaScriptProtocol.test(url)&&(didWarn=!0,error("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(url)))}function getValueForProperty(node2,name,expected,propertyInfo){if(propertyInfo.mustUseProperty){var propertyName=propertyInfo.propertyName;return node2[propertyName]}else{propertyInfo.sanitizeURL&&sanitizeURL(""+expected);var attributeName=propertyInfo.attributeName,stringValue=null;if(propertyInfo.type===OVERLOADED_BOOLEAN){if(node2.hasAttribute(attributeName)){var value=node2.getAttribute(attributeName);return value===""?!0:shouldRemoveAttribute(name,expected,propertyInfo,!1)?value:value===""+expected?expected:value}}else if(node2.hasAttribute(attributeName)){if(shouldRemoveAttribute(name,expected,propertyInfo,!1))return node2.getAttribute(attributeName);if(propertyInfo.type===BOOLEAN)return expected;stringValue=node2.getAttribute(attributeName)}return shouldRemoveAttribute(name,expected,propertyInfo,!1)?stringValue===null?expected:stringValue:stringValue===""+expected?expected:stringValue}}function getValueForAttribute(node2,name,expected){{if(!isAttributeNameSafe(name))return;if(!node2.hasAttribute(name))return expected===void 0?void 0:null;var value=node2.getAttribute(name);return value===""+expected?expected:value}}function setValueForProperty(node2,name,value,isCustomComponentTag){var propertyInfo=getPropertyInfo(name);if(!shouldIgnoreAttribute(name,propertyInfo,isCustomComponentTag)){if(shouldRemoveAttribute(name,value,propertyInfo,isCustomComponentTag)&&(value=null),isCustomComponentTag||propertyInfo===null){if(isAttributeNameSafe(name)){var _attributeName=name;value===null?node2.removeAttribute(_attributeName):node2.setAttribute(_attributeName,""+value)}return}var mustUseProperty=propertyInfo.mustUseProperty;if(mustUseProperty){var propertyName=propertyInfo.propertyName;if(value===null){var type=propertyInfo.type;node2[propertyName]=type===BOOLEAN?!1:""}else node2[propertyName]=value;return}var attributeName=propertyInfo.attributeName,attributeNamespace=propertyInfo.attributeNamespace;if(value===null)node2.removeAttribute(attributeName);else{var _type=propertyInfo.type,attributeValue;_type===BOOLEAN||_type===OVERLOADED_BOOLEAN&&value===!0?attributeValue="":(attributeValue=""+value,propertyInfo.sanitizeURL&&sanitizeURL(attributeValue.toString())),attributeNamespace?node2.setAttributeNS(attributeNamespace,attributeName,attributeValue):node2.setAttribute(attributeName,attributeValue)}}}var BEFORE_SLASH_RE=/^(.*)[\\\/]/;function describeComponentFrame(name,source,ownerName){var sourceInfo="";if(source){var path=source.fileName,fileName=path.replace(BEFORE_SLASH_RE,"");if(/^index\./.test(fileName)){var match2=path.match(BEFORE_SLASH_RE);if(match2){var pathBeforeSlash=match2[1];if(pathBeforeSlash){var folderName=pathBeforeSlash.replace(BEFORE_SLASH_RE,"");fileName=folderName+"/"+fileName}}}sourceInfo=" (at "+fileName+":"+source.lineNumber+")"}else ownerName&&(sourceInfo=" (created by "+ownerName+")");return` - in `+(name||"Unknown")+sourceInfo}var hasSymbol=typeof Symbol=="function"&&Symbol.for,REACT_ELEMENT_TYPE=hasSymbol?Symbol.for("react.element"):60103,REACT_PORTAL_TYPE=hasSymbol?Symbol.for("react.portal"):60106,REACT_FRAGMENT_TYPE=hasSymbol?Symbol.for("react.fragment"):60107,REACT_STRICT_MODE_TYPE=hasSymbol?Symbol.for("react.strict_mode"):60108,REACT_PROFILER_TYPE=hasSymbol?Symbol.for("react.profiler"):60114,REACT_PROVIDER_TYPE=hasSymbol?Symbol.for("react.provider"):60109,REACT_CONTEXT_TYPE=hasSymbol?Symbol.for("react.context"):60110,REACT_CONCURRENT_MODE_TYPE=hasSymbol?Symbol.for("react.concurrent_mode"):60111,REACT_FORWARD_REF_TYPE=hasSymbol?Symbol.for("react.forward_ref"):60112,REACT_SUSPENSE_TYPE=hasSymbol?Symbol.for("react.suspense"):60113,REACT_SUSPENSE_LIST_TYPE=hasSymbol?Symbol.for("react.suspense_list"):60120,REACT_MEMO_TYPE=hasSymbol?Symbol.for("react.memo"):60115,REACT_LAZY_TYPE=hasSymbol?Symbol.for("react.lazy"):60116,REACT_BLOCK_TYPE=hasSymbol?Symbol.for("react.block"):60121,MAYBE_ITERATOR_SYMBOL=typeof Symbol=="function"&&Symbol.iterator,FAUX_ITERATOR_SYMBOL="@@iterator";function getIteratorFn(maybeIterable){if(maybeIterable===null||typeof maybeIterable!="object")return null;var maybeIterator=MAYBE_ITERATOR_SYMBOL&&maybeIterable[MAYBE_ITERATOR_SYMBOL]||maybeIterable[FAUX_ITERATOR_SYMBOL];return typeof maybeIterator=="function"?maybeIterator:null}var Uninitialized=-1,Pending=0,Resolved=1,Rejected=2;function refineResolvedLazyComponent(lazyComponent){return lazyComponent._status===Resolved?lazyComponent._result:null}function initializeLazyComponentType(lazyComponent){if(lazyComponent._status===Uninitialized){lazyComponent._status=Pending;var ctor=lazyComponent._ctor,thenable=ctor();lazyComponent._result=thenable,thenable.then(function(moduleObject){if(lazyComponent._status===Pending){var defaultExport=moduleObject.default;defaultExport===void 0&&error(`lazy: Expected the result of a dynamic import() call. Instead received: %s - -Your code should look like: - const MyComponent = lazy(() => import('./MyComponent'))`,moduleObject),lazyComponent._status=Resolved,lazyComponent._result=defaultExport}},function(error2){lazyComponent._status===Pending&&(lazyComponent._status=Rejected,lazyComponent._result=error2)})}}function getWrappedName(outerType,innerType,wrapperName){var functionName=innerType.displayName||innerType.name||"";return outerType.displayName||(functionName!==""?wrapperName+"("+functionName+")":wrapperName)}function getComponentName(type){if(type==null)return null;if(typeof type.tag=="number"&&error("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof type=="function")return type.displayName||type.name||null;if(typeof type=="string")return type;switch(type){case REACT_FRAGMENT_TYPE:return"Fragment";case REACT_PORTAL_TYPE:return"Portal";case REACT_PROFILER_TYPE:return"Profiler";case REACT_STRICT_MODE_TYPE:return"StrictMode";case REACT_SUSPENSE_TYPE:return"Suspense";case REACT_SUSPENSE_LIST_TYPE:return"SuspenseList"}if(typeof type=="object")switch(type.$$typeof){case REACT_CONTEXT_TYPE:return"Context.Consumer";case REACT_PROVIDER_TYPE:return"Context.Provider";case REACT_FORWARD_REF_TYPE:return getWrappedName(type,type.render,"ForwardRef");case REACT_MEMO_TYPE:return getComponentName(type.type);case REACT_BLOCK_TYPE:return getComponentName(type.render);case REACT_LAZY_TYPE:{var thenable=type,resolvedThenable=refineResolvedLazyComponent(thenable);if(resolvedThenable)return getComponentName(resolvedThenable);break}}return null}var ReactDebugCurrentFrame$1=ReactSharedInternals.ReactDebugCurrentFrame;function describeFiber(fiber){switch(fiber.tag){case HostRoot:case HostPortal:case HostText:case Fragment2:case ContextProvider:case ContextConsumer:return"";default:var owner=fiber._debugOwner,source=fiber._debugSource,name=getComponentName(fiber.type),ownerName=null;return owner&&(ownerName=getComponentName(owner.type)),describeComponentFrame(name,source,ownerName)}}function getStackByFiberInDevAndProd(workInProgress2){var info="",node2=workInProgress2;do info+=describeFiber(node2),node2=node2.return;while(node2);return info}var current=null,isRendering=!1;function getCurrentFiberOwnerNameInDevOrNull(){{if(current===null)return null;var owner=current._debugOwner;if(owner!==null&&typeof owner<"u")return getComponentName(owner.type)}return null}function getCurrentFiberStackInDev(){return current===null?"":getStackByFiberInDevAndProd(current)}function resetCurrentFiber(){ReactDebugCurrentFrame$1.getCurrentStack=null,current=null,isRendering=!1}function setCurrentFiber(fiber){ReactDebugCurrentFrame$1.getCurrentStack=getCurrentFiberStackInDev,current=fiber,isRendering=!1}function setIsRendering(rendering){isRendering=rendering}function toString(value){return""+value}function getToStringValue(value){switch(typeof value){case"boolean":case"number":case"object":case"string":case"undefined":return value;default:return""}}var ReactDebugCurrentFrame$2=null,ReactControlledValuePropTypes={checkPropTypes:null};{ReactDebugCurrentFrame$2=ReactSharedInternals.ReactDebugCurrentFrame;var hasReadOnlyValue={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},propTypes={value:function(props,propName,componentName){return hasReadOnlyValue[props.type]||props.onChange||props.readOnly||props.disabled||props[propName]==null||enableDeprecatedFlareAPI?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(props,propName,componentName){return props.onChange||props.readOnly||props.disabled||props[propName]==null||enableDeprecatedFlareAPI?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}};ReactControlledValuePropTypes.checkPropTypes=function(tagName,props){checkPropTypes(propTypes,props,"prop",tagName,ReactDebugCurrentFrame$2.getStackAddendum)}}function isCheckable(elem){var type=elem.type,nodeName=elem.nodeName;return nodeName&&nodeName.toLowerCase()==="input"&&(type==="checkbox"||type==="radio")}function getTracker(node2){return node2._valueTracker}function detachTracker(node2){node2._valueTracker=null}function getValueFromNode(node2){var value="";return node2&&(isCheckable(node2)?value=node2.checked?"true":"false":value=node2.value),value}function trackValueOnNode(node2){var valueField=isCheckable(node2)?"checked":"value",descriptor=Object.getOwnPropertyDescriptor(node2.constructor.prototype,valueField),currentValue=""+node2[valueField];if(!(node2.hasOwnProperty(valueField)||typeof descriptor>"u"||typeof descriptor.get!="function"||typeof descriptor.set!="function")){var get2=descriptor.get,set2=descriptor.set;Object.defineProperty(node2,valueField,{configurable:!0,get:function(){return get2.call(this)},set:function(value){currentValue=""+value,set2.call(this,value)}}),Object.defineProperty(node2,valueField,{enumerable:descriptor.enumerable});var tracker={getValue:function(){return currentValue},setValue:function(value){currentValue=""+value},stopTracking:function(){detachTracker(node2),delete node2[valueField]}};return tracker}}function track(node2){getTracker(node2)||(node2._valueTracker=trackValueOnNode(node2))}function updateValueIfChanged(node2){if(!node2)return!1;var tracker=getTracker(node2);if(!tracker)return!0;var lastValue=tracker.getValue(),nextValue=getValueFromNode(node2);return nextValue!==lastValue?(tracker.setValue(nextValue),!0):!1}var didWarnValueDefaultValue=!1,didWarnCheckedDefaultChecked=!1,didWarnControlledToUncontrolled=!1,didWarnUncontrolledToControlled=!1;function isControlled(props){var usesChecked=props.type==="checkbox"||props.type==="radio";return usesChecked?props.checked!=null:props.value!=null}function getHostProps(element,props){var node2=element,checked=props.checked,hostProps=_assign({},props,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:checked??node2._wrapperState.initialChecked});return hostProps}function initWrapperState(element,props){ReactControlledValuePropTypes.checkPropTypes("input",props),props.checked!==void 0&&props.defaultChecked!==void 0&&!didWarnCheckedDefaultChecked&&(error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://fb.me/react-controlled-components",getCurrentFiberOwnerNameInDevOrNull()||"A component",props.type),didWarnCheckedDefaultChecked=!0),props.value!==void 0&&props.defaultValue!==void 0&&!didWarnValueDefaultValue&&(error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://fb.me/react-controlled-components",getCurrentFiberOwnerNameInDevOrNull()||"A component",props.type),didWarnValueDefaultValue=!0);var node2=element,defaultValue=props.defaultValue==null?"":props.defaultValue;node2._wrapperState={initialChecked:props.checked!=null?props.checked:props.defaultChecked,initialValue:getToStringValue(props.value!=null?props.value:defaultValue),controlled:isControlled(props)}}function updateChecked(element,props){var node2=element,checked=props.checked;checked!=null&&setValueForProperty(node2,"checked",checked,!1)}function updateWrapper(element,props){var node2=element;{var controlled=isControlled(props);!node2._wrapperState.controlled&&controlled&&!didWarnUncontrolledToControlled&&(error("A component is changing an uncontrolled input of type %s to be controlled. Input elements should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://fb.me/react-controlled-components",props.type),didWarnUncontrolledToControlled=!0),node2._wrapperState.controlled&&!controlled&&!didWarnControlledToUncontrolled&&(error("A component is changing a controlled input of type %s to be uncontrolled. Input elements should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://fb.me/react-controlled-components",props.type),didWarnControlledToUncontrolled=!0)}updateChecked(element,props);var value=getToStringValue(props.value),type=props.type;if(value!=null)type==="number"?(value===0&&node2.value===""||node2.value!=value)&&(node2.value=toString(value)):node2.value!==toString(value)&&(node2.value=toString(value));else if(type==="submit"||type==="reset"){node2.removeAttribute("value");return}props.hasOwnProperty("value")?setDefaultValue(node2,props.type,value):props.hasOwnProperty("defaultValue")&&setDefaultValue(node2,props.type,getToStringValue(props.defaultValue)),props.checked==null&&props.defaultChecked!=null&&(node2.defaultChecked=!!props.defaultChecked)}function postMountWrapper(element,props,isHydrating2){var node2=element;if(props.hasOwnProperty("value")||props.hasOwnProperty("defaultValue")){var type=props.type,isButton=type==="submit"||type==="reset";if(isButton&&(props.value===void 0||props.value===null))return;var initialValue=toString(node2._wrapperState.initialValue);isHydrating2||initialValue!==node2.value&&(node2.value=initialValue),node2.defaultValue=initialValue}var name=node2.name;name!==""&&(node2.name=""),node2.defaultChecked=!node2.defaultChecked,node2.defaultChecked=!!node2._wrapperState.initialChecked,name!==""&&(node2.name=name)}function restoreControlledState(element,props){var node2=element;updateWrapper(node2,props),updateNamedCousins(node2,props)}function updateNamedCousins(rootNode,props){var name=props.name;if(props.type==="radio"&&name!=null){for(var queryRoot=rootNode;queryRoot.parentNode;)queryRoot=queryRoot.parentNode;for(var group=queryRoot.querySelectorAll("input[name="+JSON.stringify(""+name)+'][type="radio"]'),i=0;i children."))))}),props.selected!=null&&!didWarnSelectedSetOnOption&&(error("Use the `defaultValue` or `value` props on must be a scalar value if `multiple` is false.%s",propName,getDeclarationErrorAddendum())}}}}function updateOptions(node2,multiple,propValue,setDefaultSelected){var options=node2.options;if(multiple){for(var selectedValues=propValue,selectedValue={},i=0;i.");var hostProps=_assign({},props,{value:void 0,defaultValue:void 0,children:toString(node2._wrapperState.initialValue)});return hostProps}function initWrapperState$2(element,props){var node2=element;ReactControlledValuePropTypes.checkPropTypes("textarea",props),props.value!==void 0&&props.defaultValue!==void 0&&!didWarnValDefaultVal&&(error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://fb.me/react-controlled-components",getCurrentFiberOwnerNameInDevOrNull()||"A component"),didWarnValDefaultVal=!0);var initialValue=props.value;if(initialValue==null){var children=props.children,defaultValue=props.defaultValue;if(children!=null){error("Use the `defaultValue` or `value` props instead of setting children on
",z="",G="